@eui/components 15.0.0-rc.17 → 15.0.0-rc.18
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/docs/components/EuiChipComponent.html +1 -1
- package/docs/components/EuiGrowlComponent.html +1 -1
- package/docs/components/EuiPaginatorComponent.html +1 -1
- package/docs/components/EuiTabsComponent.html +1 -1
- package/docs/components/UxDynamicModalComponent.html +1 -1
- package/docs/components/UxFieldSearchComponent.html +1 -1
- package/docs/dependencies.html +3 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +29 -29
- package/esm2020/eui-button/eui-button.component.mjs +2 -2
- package/esm2020/eui-chip/eui-chip.component.mjs +3 -3
- package/esm2020/eui-growl/eui-growl.component.mjs +3 -3
- package/esm2020/eui-paginator/eui-paginator.component.mjs +3 -3
- package/esm2020/eui-tabs/eui-tabs.component.mjs +3 -3
- package/esm2020/eui-timeline/eui-timeline-item.component.mjs +2 -2
- package/esm2020/eui-timeline/eui-timeline.component.mjs +2 -2
- package/esm2020/legacy/ux-datepicker/ux-datepicker.component.mjs +2 -2
- package/esm2020/legacy/ux-dynamic-modal/ux-dynamic-modal.component.mjs +3 -3
- package/esm2020/legacy/ux-field-search/ux-field-search.component.mjs +3 -3
- package/fesm2015/eui-components-eui-button.mjs +2 -2
- package/fesm2015/eui-components-eui-button.mjs.map +1 -1
- package/fesm2015/eui-components-eui-chip.mjs +2 -2
- package/fesm2015/eui-components-eui-chip.mjs.map +1 -1
- package/fesm2015/eui-components-eui-growl.mjs +2 -2
- package/fesm2015/eui-components-eui-growl.mjs.map +1 -1
- package/fesm2015/eui-components-eui-paginator.mjs +2 -2
- package/fesm2015/eui-components-eui-paginator.mjs.map +1 -1
- package/fesm2015/eui-components-eui-tabs.mjs +2 -2
- package/fesm2015/eui-components-eui-tabs.mjs.map +1 -1
- package/fesm2015/eui-components-eui-timeline.mjs +4 -4
- package/fesm2015/eui-components-legacy-ux-datepicker.mjs +2 -2
- package/fesm2015/eui-components-legacy-ux-datepicker.mjs.map +1 -1
- package/fesm2015/eui-components-legacy-ux-dynamic-modal.mjs +2 -2
- package/fesm2015/eui-components-legacy-ux-dynamic-modal.mjs.map +1 -1
- package/fesm2015/eui-components-legacy-ux-field-search.mjs +2 -2
- package/fesm2015/eui-components-legacy-ux-field-search.mjs.map +1 -1
- package/fesm2020/eui-components-eui-button.mjs +2 -2
- package/fesm2020/eui-components-eui-button.mjs.map +1 -1
- package/fesm2020/eui-components-eui-chip.mjs +2 -2
- package/fesm2020/eui-components-eui-chip.mjs.map +1 -1
- package/fesm2020/eui-components-eui-growl.mjs +2 -2
- package/fesm2020/eui-components-eui-growl.mjs.map +1 -1
- package/fesm2020/eui-components-eui-paginator.mjs +2 -2
- package/fesm2020/eui-components-eui-paginator.mjs.map +1 -1
- package/fesm2020/eui-components-eui-tabs.mjs +2 -2
- package/fesm2020/eui-components-eui-tabs.mjs.map +1 -1
- package/fesm2020/eui-components-eui-timeline.mjs +4 -4
- package/fesm2020/eui-components-legacy-ux-datepicker.mjs +2 -2
- package/fesm2020/eui-components-legacy-ux-datepicker.mjs.map +1 -1
- package/fesm2020/eui-components-legacy-ux-dynamic-modal.mjs +2 -2
- package/fesm2020/eui-components-legacy-ux-dynamic-modal.mjs.map +1 -1
- package/fesm2020/eui-components-legacy-ux-field-search.mjs +2 -2
- package/fesm2020/eui-components-legacy-ux-field-search.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -217,10 +217,10 @@ class UxDynamicModalComponent {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
/** @nocollapse */ UxDynamicModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicModalComponent, deps: [{ token: DYNAMIC_COMPONENT_CONFIG }, { token: i1.UxDynamicComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
220
|
-
/** @nocollapse */ UxDynamicModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: UxDynamicModalComponent, selector: "ux-dynamic-modal", inputs: { e2eAttr: "e2eAttr" }, queries: [{ propertyName: "customFooterContent", first: true, predicate: i0.forwardRef(function () { return UxDynamicModalFooterTagDirective; }), descendants: true }, { propertyName: "customHeaderContent", first: true, predicate: i0.forwardRef(function () { return UxDynamicModalHeaderTagDirective; }), descendants: true }, { propertyName: "customMessageBoxFooterContent", first: true, predicate: i0.forwardRef(function () { return UxDynamicMessageBoxFooterTagDirective; }), descendants: true }], viewQueries: [{ propertyName: "uxModalEl", first: true, predicate: ["modal"], descendants: true }, { propertyName: "uxModalBody", first: true, predicate: ["uxmodalbody"], descendants: true }, { propertyName: "vcCloseButton", first: true, predicate: ["closeButton"], descendants: true }], ngImport: i0, template: "<div id=\"{{config.id}}\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" #modal\n class=\"modal ux-modal {{ config.styleClass }} {{ stateClasses }} eui-u-anim\"\n role=\"dialog\"\n [class.eui-u-anim--slideInDown]=\"!config.isMessageBox\"\n [class.eui-u-anim--flipInY]=\"config.isMessageBox\"\n [class.ux-modal--full-height]=\"config.isSizeFullHeight\"\n [class.ux-modal--medium-height]=\"config.isSizeMediumHeight\"\n [class.ux-modal--draggable]=\"config.isDraggable\"\n [class.eui-u-anim--fast]=\"!config.isMessageBox\"\n [class.eui-u-anim--medium]=\"config.isMessageBox\"\n (keydown)=\"closeModalOnEscape($event)\"\n tabIndex=\"-1\"\n [style.display]=\"'block'\"\n attr.data-e2e=\"{{ e2eAttr }}\">\n\n <div class=\"modal-dialog ux-modal__dialog\" role=\"document\" [style.max-width]=\"config.customWidth\">\n <div class=\"modal-content ux-modal__content\" [class.ux-u-overflow-visible]=\"config.isOverflowVisible\" cdkDrag [cdkDragDisabled]=\"!config.isDraggable\">\n <div class=\"modal-header ux-modal__header\" cdkDragHandle>\n <ng-template [ngIf]=\"customHeaderContent\">\n <ng-content select=\"uxModalHeader\"></ng-content>\n </ng-template>\n <ng-template [ngIf]=\"!customHeaderContent\">\n <h5 class=\"modal-title ux-modal__header-title\">{{ config.titleLabel }}</h5>\n </ng-template>\n <button *ngIf=\"config.isShowCloseButton\" #closeButton\n type=\"button\"\n class=\"ux-modal__header-close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n (click)=\"close($event)\">\n <eui-icon-svg icon=\"eui-close-m\"></eui-icon-svg>\n </button>\n </div>\n <div #uxmodalbody class=\"modal-body ux-modal__body {{ config.bodyStyleClass }}\"\n [class.ux-modal--no-padding]=\"config.hasNoBodyPadding\"\n [class.ux-u-overflow-visible]=\"config.isOverflowVisible\">\n <span [outerHTML]=\"config.content\" *ngIf=\"!config.isMessageBox\"></span>\n\n <div class=\"ux-message-box__body\" *ngIf=\"config.isMessageBox\">\n <div class=\"ux-message-box__body-icon\"></div>\n <div class=\"ux-message-box__body-content\">\n <span [outerHTML]=\"config.content\"></span>\n </div>\n </div>\n\n </div>\n\n <div *ngIf=\"config.isFooterVisible\" class=\"modal-footer ux-modal__footer {{ config.footerStyleClass }}\"\n [class.ux-modal__footer--custom-alignment]=\"config.customFooterContent\">\n\n <uxDynamicModalFooter *ngIf=\"config.customFooterContent && !config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicModalFooter>\n\n <uxDynamicMessageBoxFooter *ngIf=\"config.customFooterContent && config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicMessageBoxFooter>\n\n <ng-template [ngIf]=\"!config.customFooterContent\">\n <ng-template [ngIf]=\"!config.isMessageBox\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.dismissActionDisabled\"\n (click)=\"onDismissActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.dismissIconClass}}\"></span>\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.acceptActionDisabled\"\n (click)=\"onAcceptActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.acceptIconClass}}\"></span>\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n\n <ng-template [ngIf]=\"config.isMessageBox\">\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'confirmation'\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n (click)=\"onClick(false)\">\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n (click)=\"onClick(true)\">\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'ok'\">\n <button type=\"button\" class=\"ux-button ux-button--secondary\" (click)=\"onClick(true)\">OK</button>\n </ng-template>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-backdrop show\" [style.display]=\"'block'\" (focus)=\"close($event)\"></div>\n", styles: [".ux-modal{inset:0;outline:0;overflow:hidden;position:fixed;z-index:var(--eui-base-z-index-modal)}.ux-modal__content{background-clip:padding-box;background-color:var(--eui-base-color-white);border:1px solid var(--eui-base-color-grey-10);border-radius:var(--eui-base-border-radius);display:flex;flex-direction:column;max-height:100%;outline:0;overflow:auto;pointer-events:auto;position:relative;width:100%;box-shadow:var(--eui-base-shadow-24)}.ux-modal__dialog{display:flex;flex-direction:column;height:100vh;justify-content:center;margin:1.75rem auto;margin-bottom:0;margin-top:0;max-width:50%;pointer-events:none;position:relative;width:auto}.ux-modal__header{align-items:center;border-bottom:1px solid var(--eui-base-color-grey-10);border-top-left-radius:var(--eui-border-radius-base);border-top-right-radius:var(--eui-border-radius-base);display:flex;justify-content:space-between;min-height:calc(4 * var(--eui-base-spacing-m));padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m)}.ux-modal--draggable .ux-modal__header{cursor:move}.ux-modal__header-title{font-size:var(--eui-base-font-size-xl);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-weight:700}.ux-modal__body{flex:1 1 auto;overflow:auto;padding:var(--eui-base-spacing-m);position:relative}.ux-modal__body.ux-modal--no-padding{padding:0}.ux-modal__footer{background-color:var(--eui-base-color-grey-5);border-top:1px solid var(--eui-base-color-grey-10);justify-content:flex-end;padding:var(--eui-base-spacing-s);align-items:center;display:flex;width:100%}.ux-modal__footer--custom-alignment{display:block}.ux-modal__footer button:not(:last-child){margin-right:var(--eui-base-spacing-xs)}.ux-modal__header-close{background-color:transparent;border:none;box-shadow:none;color:var(--eui-base-color-grey-25);font-size:var(--eui-base-font-size-2xl);margin-right:calc(-1 * var(--eui-base-spacing-s));outline:0;padding:var(--eui-base-spacing-2xs) var(--eui-base-spacing-xs)}.ux-modal__header-close:hover{color:var(--eui-base-color-text)}.ux-modal__header-close:active,.ux-modal__header-close:focus{outline:2px solid var(--eui-base-color-accessible-focus);outline-offset:-2px;-moz-outline-radius:var(--eui-base-border-radius);transition:outline .15s ease-in-out,border .15s ease-in-out}.ux-modal__header-close.disabled{display:none}uxmodalheader{display:flex;width:100%}.ux-modal--small .ux-modal__dialog{max-width:33%}.ux-modal--large .ux-modal__dialog{max-width:75%}.ux-modal--full-screen .ux-modal__content{height:98%;margin:1.5%;width:97%}.ux-modal--full-screen .ux-modal__dialog{height:100%;max-height:100%;max-width:100%;width:100%}.ux-modal--full-height{max-height:100%}.ux-modal--full-height .ux-modal__dialog{height:100%}.ux-modal--full-height .ux-modal__content{height:95%}.ux-modal--full-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.ux-modal--medium-height{max-height:100%}.ux-modal--medium-height .ux-modal__dialog{height:100%}.ux-modal--medium-height .ux-modal__content{height:50%}.ux-modal--medium-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-open .cdk-overlay-container{z-index:var(--eui-base-z-index-cdk-overlay-container)}.modal-backdrop{background-color:#00000080;height:100vh;left:0;opacity:0;position:fixed;top:0;transition:opacity .5s cubic-bezier(.25,.8,.25,1);width:100vw;z-index:var(--eui-base-z-index-modal-backdrop)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--eui-base-disabled-opacity)}@media screen and (max-width: 995px){.ux-modal__dialog,.ux-modal__dialog[style],.ux-modal--small .ux-modal__dialog,.ux-modal--big .ux-modal__dialog,.ux-modal--full-screen .ux-modal__dialog{margin-left:1.5%;max-width:100%!important;width:97%!important}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i0.forwardRef(function () { return i3.UxButtonComponent; }), selector: "ux-button", inputs: ["type", "styleClass", "typeClass", "iconClass", "isOutline", "isSecondary", "isSmall", "isLarge", "isBlock", "isFlat", "isLineWrap", "tabindex", "ariaLabel", "isDisabled", "e2eAttr"] }, { kind: "component", type: i0.forwardRef(function () { return i4.UxLayoutHorizontalComponent; }), selector: "ux-layout-horizontal", inputs: ["styleClass", "e2eAttr"] }, { kind: "directive", type: i0.forwardRef(function () { return i4.UxLayoutHorizontalLeftTagDirective; }), selector: "uxLayoutHorizontalLeft" }, { kind: "directive", type: i0.forwardRef(function () { return i4.UxLayoutHorizontalRightTagDirective; }), selector: "uxLayoutHorizontalRight" }, { kind: "directive", type: i0.forwardRef(function () { return i5.CdkTrapFocus; }), selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: i0.forwardRef(function () { return i6.CdkDrag; }), selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i0.forwardRef(function () { return i6.CdkDragHandle; }), selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: i0.forwardRef(function () { return i7.EuiIconSvgComponent; }), selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "aria-label", "ariaHidden", "focusable", "isLoading"] }, { kind: "directive", type: i0.forwardRef(function () { return UxDynamicModalFooterTagDirective; }), selector: "uxDynamicModalFooter" }, { kind: "directive", type: i0.forwardRef(function () { return UxDynamicMessageBoxFooterTagDirective; }), selector: "uxDynamicMessageBoxFooter" }], encapsulation: i0.ViewEncapsulation.None });
|
|
220
|
+
/** @nocollapse */ UxDynamicModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: UxDynamicModalComponent, selector: "ux-dynamic-modal", inputs: { e2eAttr: "e2eAttr" }, queries: [{ propertyName: "customFooterContent", first: true, predicate: i0.forwardRef(function () { return UxDynamicModalFooterTagDirective; }), descendants: true }, { propertyName: "customHeaderContent", first: true, predicate: i0.forwardRef(function () { return UxDynamicModalHeaderTagDirective; }), descendants: true }, { propertyName: "customMessageBoxFooterContent", first: true, predicate: i0.forwardRef(function () { return UxDynamicMessageBoxFooterTagDirective; }), descendants: true }], viewQueries: [{ propertyName: "uxModalEl", first: true, predicate: ["modal"], descendants: true }, { propertyName: "uxModalBody", first: true, predicate: ["uxmodalbody"], descendants: true }, { propertyName: "vcCloseButton", first: true, predicate: ["closeButton"], descendants: true }], ngImport: i0, template: "<div id=\"{{config.id}}\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" #modal\n class=\"modal ux-modal {{ config.styleClass }} {{ stateClasses }} eui-u-anim\"\n role=\"dialog\"\n [class.eui-u-anim--slideInDown]=\"!config.isMessageBox\"\n [class.eui-u-anim--flipInY]=\"config.isMessageBox\"\n [class.ux-modal--full-height]=\"config.isSizeFullHeight\"\n [class.ux-modal--medium-height]=\"config.isSizeMediumHeight\"\n [class.ux-modal--draggable]=\"config.isDraggable\"\n [class.eui-u-anim--fast]=\"!config.isMessageBox\"\n [class.eui-u-anim--medium]=\"config.isMessageBox\"\n (keydown)=\"closeModalOnEscape($event)\"\n tabIndex=\"-1\"\n [style.display]=\"'block'\"\n attr.data-e2e=\"{{ e2eAttr }}\">\n\n <div class=\"modal-dialog ux-modal__dialog\" role=\"document\" [style.max-width]=\"config.customWidth\">\n <div class=\"modal-content ux-modal__content\" [class.ux-u-overflow-visible]=\"config.isOverflowVisible\" cdkDrag [cdkDragDisabled]=\"!config.isDraggable\">\n <div class=\"modal-header ux-modal__header\" cdkDragHandle>\n <ng-template [ngIf]=\"customHeaderContent\">\n <ng-content select=\"uxModalHeader\"></ng-content>\n </ng-template>\n <ng-template [ngIf]=\"!customHeaderContent\">\n <h5 class=\"modal-title ux-modal__header-title mt-1 mb-1\">{{ config.titleLabel }}</h5>\n </ng-template>\n <button *ngIf=\"config.isShowCloseButton\" #closeButton\n type=\"button\"\n class=\"ux-modal__header-close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n (click)=\"close($event)\">\n <eui-icon-svg icon=\"eui-ecl-close\"></eui-icon-svg>\n </button>\n </div>\n <div #uxmodalbody class=\"modal-body ux-modal__body {{ config.bodyStyleClass }}\"\n [class.ux-modal--no-padding]=\"config.hasNoBodyPadding\"\n [class.ux-u-overflow-visible]=\"config.isOverflowVisible\">\n <span [outerHTML]=\"config.content\" *ngIf=\"!config.isMessageBox\"></span>\n\n <div class=\"ux-message-box__body\" *ngIf=\"config.isMessageBox\">\n <div class=\"ux-message-box__body-icon\"></div>\n <div class=\"ux-message-box__body-content\">\n <span [outerHTML]=\"config.content\"></span>\n </div>\n </div>\n\n </div>\n\n <div *ngIf=\"config.isFooterVisible\" class=\"modal-footer ux-modal__footer {{ config.footerStyleClass }}\"\n [class.ux-modal__footer--custom-alignment]=\"config.customFooterContent\">\n\n <uxDynamicModalFooter *ngIf=\"config.customFooterContent && !config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicModalFooter>\n\n <uxDynamicMessageBoxFooter *ngIf=\"config.customFooterContent && config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicMessageBoxFooter>\n\n <ng-template [ngIf]=\"!config.customFooterContent\">\n <ng-template [ngIf]=\"!config.isMessageBox\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.dismissActionDisabled\"\n (click)=\"onDismissActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.dismissIconClass}}\"></span>\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.acceptActionDisabled\"\n (click)=\"onAcceptActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.acceptIconClass}}\"></span>\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n\n <ng-template [ngIf]=\"config.isMessageBox\">\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'confirmation'\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n (click)=\"onClick(false)\">\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n (click)=\"onClick(true)\">\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'ok'\">\n <button type=\"button\" class=\"ux-button ux-button--secondary\" (click)=\"onClick(true)\">OK</button>\n </ng-template>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-backdrop show\" [style.display]=\"'block'\" (focus)=\"close($event)\"></div>\n", styles: [".ux-modal{inset:0;outline:0;overflow:hidden;position:fixed;z-index:var(--eui-base-z-index-modal)}.ux-modal__content{background-clip:padding-box;background-color:var(--eui-base-color-white);border:1px solid var(--eui-base-color-grey-10);border-radius:var(--eui-base-border-radius);display:flex;flex-direction:column;max-height:100%;outline:0;overflow:auto;pointer-events:auto;position:relative;width:100%;box-shadow:var(--eui-base-shadow-24)}.ux-modal__dialog{display:flex;flex-direction:column;height:100vh;justify-content:center;margin:1.75rem auto;margin-bottom:0;margin-top:0;max-width:50%;pointer-events:none;position:relative;width:auto}.ux-modal__header{align-items:center;border-bottom:1px solid var(--eui-base-color-grey-10);border-top-left-radius:var(--eui-border-radius-base);border-top-right-radius:var(--eui-border-radius-base);display:flex;justify-content:space-between;min-height:calc(4 * var(--eui-base-spacing-m));padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m)}.ux-modal--draggable .ux-modal__header{cursor:move}.ux-modal__header-title{font-size:var(--eui-base-font-size-xl);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-weight:700}.ux-modal__body{flex:1 1 auto;overflow:auto;padding:var(--eui-base-spacing-m);position:relative}.ux-modal__body.ux-modal--no-padding{padding:0}.ux-modal__footer{background-color:var(--eui-base-color-grey-5);border-top:1px solid var(--eui-base-color-grey-10);justify-content:flex-end;padding:var(--eui-base-spacing-s);align-items:center;display:flex;width:100%}.ux-modal__footer--custom-alignment{display:block}.ux-modal__footer button:not(:last-child){margin-right:var(--eui-base-spacing-xs)}.ux-modal__header-close{background-color:transparent;border:none;box-shadow:none;color:var(--eui-base-color-grey-25);font-size:var(--eui-base-font-size-2xl);margin-right:calc(-1 * var(--eui-base-spacing-s));outline:0;padding:var(--eui-base-spacing-2xs) var(--eui-base-spacing-xs)}.ux-modal__header-close:hover{color:var(--eui-base-color-text)}.ux-modal__header-close:active,.ux-modal__header-close:focus{outline:2px solid var(--eui-base-color-accessible-focus);outline-offset:-2px;-moz-outline-radius:var(--eui-base-border-radius);transition:outline .15s ease-in-out,border .15s ease-in-out}.ux-modal__header-close.disabled{display:none}uxmodalheader{display:flex;width:100%}.ux-modal--small .ux-modal__dialog{max-width:33%}.ux-modal--large .ux-modal__dialog{max-width:75%}.ux-modal--full-screen .ux-modal__content{height:98%;margin:1.5%;width:97%}.ux-modal--full-screen .ux-modal__dialog{height:100%;max-height:100%;max-width:100%;width:100%}.ux-modal--full-height{max-height:100%}.ux-modal--full-height .ux-modal__dialog{height:100%}.ux-modal--full-height .ux-modal__content{height:95%}.ux-modal--full-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.ux-modal--medium-height{max-height:100%}.ux-modal--medium-height .ux-modal__dialog{height:100%}.ux-modal--medium-height .ux-modal__content{height:50%}.ux-modal--medium-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-open .cdk-overlay-container{z-index:var(--eui-base-z-index-cdk-overlay-container)}.modal-backdrop{background-color:#00000080;height:100vh;left:0;opacity:0;position:fixed;top:0;transition:opacity .5s cubic-bezier(.25,.8,.25,1);width:100vw;z-index:var(--eui-base-z-index-modal-backdrop)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--eui-base-disabled-opacity)}@media screen and (max-width: 995px){.ux-modal__dialog,.ux-modal__dialog[style],.ux-modal--small .ux-modal__dialog,.ux-modal--big .ux-modal__dialog,.ux-modal--full-screen .ux-modal__dialog{margin-left:1.5%;max-width:100%!important;width:97%!important}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i0.forwardRef(function () { return i3.UxButtonComponent; }), selector: "ux-button", inputs: ["type", "styleClass", "typeClass", "iconClass", "isOutline", "isSecondary", "isSmall", "isLarge", "isBlock", "isFlat", "isLineWrap", "tabindex", "ariaLabel", "isDisabled", "e2eAttr"] }, { kind: "component", type: i0.forwardRef(function () { return i4.UxLayoutHorizontalComponent; }), selector: "ux-layout-horizontal", inputs: ["styleClass", "e2eAttr"] }, { kind: "directive", type: i0.forwardRef(function () { return i4.UxLayoutHorizontalLeftTagDirective; }), selector: "uxLayoutHorizontalLeft" }, { kind: "directive", type: i0.forwardRef(function () { return i4.UxLayoutHorizontalRightTagDirective; }), selector: "uxLayoutHorizontalRight" }, { kind: "directive", type: i0.forwardRef(function () { return i5.CdkTrapFocus; }), selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: i0.forwardRef(function () { return i6.CdkDrag; }), selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i0.forwardRef(function () { return i6.CdkDragHandle; }), selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: i0.forwardRef(function () { return i7.EuiIconSvgComponent; }), selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "aria-label", "ariaHidden", "focusable", "isLoading"] }, { kind: "directive", type: i0.forwardRef(function () { return UxDynamicModalFooterTagDirective; }), selector: "uxDynamicModalFooter" }, { kind: "directive", type: i0.forwardRef(function () { return UxDynamicMessageBoxFooterTagDirective; }), selector: "uxDynamicMessageBoxFooter" }], encapsulation: i0.ViewEncapsulation.None });
|
|
221
221
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxDynamicModalComponent, decorators: [{
|
|
222
222
|
type: Component,
|
|
223
|
-
args: [{ selector: 'ux-dynamic-modal', encapsulation: ViewEncapsulation.None, template: "<div id=\"{{config.id}}\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" #modal\n class=\"modal ux-modal {{ config.styleClass }} {{ stateClasses }} eui-u-anim\"\n role=\"dialog\"\n [class.eui-u-anim--slideInDown]=\"!config.isMessageBox\"\n [class.eui-u-anim--flipInY]=\"config.isMessageBox\"\n [class.ux-modal--full-height]=\"config.isSizeFullHeight\"\n [class.ux-modal--medium-height]=\"config.isSizeMediumHeight\"\n [class.ux-modal--draggable]=\"config.isDraggable\"\n [class.eui-u-anim--fast]=\"!config.isMessageBox\"\n [class.eui-u-anim--medium]=\"config.isMessageBox\"\n (keydown)=\"closeModalOnEscape($event)\"\n tabIndex=\"-1\"\n [style.display]=\"'block'\"\n attr.data-e2e=\"{{ e2eAttr }}\">\n\n <div class=\"modal-dialog ux-modal__dialog\" role=\"document\" [style.max-width]=\"config.customWidth\">\n <div class=\"modal-content ux-modal__content\" [class.ux-u-overflow-visible]=\"config.isOverflowVisible\" cdkDrag [cdkDragDisabled]=\"!config.isDraggable\">\n <div class=\"modal-header ux-modal__header\" cdkDragHandle>\n <ng-template [ngIf]=\"customHeaderContent\">\n <ng-content select=\"uxModalHeader\"></ng-content>\n </ng-template>\n <ng-template [ngIf]=\"!customHeaderContent\">\n <h5 class=\"modal-title ux-modal__header-title\">{{ config.titleLabel }}</h5>\n </ng-template>\n <button *ngIf=\"config.isShowCloseButton\" #closeButton\n type=\"button\"\n class=\"ux-modal__header-close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n (click)=\"close($event)\">\n <eui-icon-svg icon=\"eui-close-m\"></eui-icon-svg>\n </button>\n </div>\n <div #uxmodalbody class=\"modal-body ux-modal__body {{ config.bodyStyleClass }}\"\n [class.ux-modal--no-padding]=\"config.hasNoBodyPadding\"\n [class.ux-u-overflow-visible]=\"config.isOverflowVisible\">\n <span [outerHTML]=\"config.content\" *ngIf=\"!config.isMessageBox\"></span>\n\n <div class=\"ux-message-box__body\" *ngIf=\"config.isMessageBox\">\n <div class=\"ux-message-box__body-icon\"></div>\n <div class=\"ux-message-box__body-content\">\n <span [outerHTML]=\"config.content\"></span>\n </div>\n </div>\n\n </div>\n\n <div *ngIf=\"config.isFooterVisible\" class=\"modal-footer ux-modal__footer {{ config.footerStyleClass }}\"\n [class.ux-modal__footer--custom-alignment]=\"config.customFooterContent\">\n\n <uxDynamicModalFooter *ngIf=\"config.customFooterContent && !config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicModalFooter>\n\n <uxDynamicMessageBoxFooter *ngIf=\"config.customFooterContent && config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicMessageBoxFooter>\n\n <ng-template [ngIf]=\"!config.customFooterContent\">\n <ng-template [ngIf]=\"!config.isMessageBox\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.dismissActionDisabled\"\n (click)=\"onDismissActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.dismissIconClass}}\"></span>\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.acceptActionDisabled\"\n (click)=\"onAcceptActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.acceptIconClass}}\"></span>\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n\n <ng-template [ngIf]=\"config.isMessageBox\">\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'confirmation'\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n (click)=\"onClick(false)\">\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n (click)=\"onClick(true)\">\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'ok'\">\n <button type=\"button\" class=\"ux-button ux-button--secondary\" (click)=\"onClick(true)\">OK</button>\n </ng-template>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-backdrop show\" [style.display]=\"'block'\" (focus)=\"close($event)\"></div>\n", styles: [".ux-modal{inset:0;outline:0;overflow:hidden;position:fixed;z-index:var(--eui-base-z-index-modal)}.ux-modal__content{background-clip:padding-box;background-color:var(--eui-base-color-white);border:1px solid var(--eui-base-color-grey-10);border-radius:var(--eui-base-border-radius);display:flex;flex-direction:column;max-height:100%;outline:0;overflow:auto;pointer-events:auto;position:relative;width:100%;box-shadow:var(--eui-base-shadow-24)}.ux-modal__dialog{display:flex;flex-direction:column;height:100vh;justify-content:center;margin:1.75rem auto;margin-bottom:0;margin-top:0;max-width:50%;pointer-events:none;position:relative;width:auto}.ux-modal__header{align-items:center;border-bottom:1px solid var(--eui-base-color-grey-10);border-top-left-radius:var(--eui-border-radius-base);border-top-right-radius:var(--eui-border-radius-base);display:flex;justify-content:space-between;min-height:calc(4 * var(--eui-base-spacing-m));padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m)}.ux-modal--draggable .ux-modal__header{cursor:move}.ux-modal__header-title{font-size:var(--eui-base-font-size-xl);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-weight:700}.ux-modal__body{flex:1 1 auto;overflow:auto;padding:var(--eui-base-spacing-m);position:relative}.ux-modal__body.ux-modal--no-padding{padding:0}.ux-modal__footer{background-color:var(--eui-base-color-grey-5);border-top:1px solid var(--eui-base-color-grey-10);justify-content:flex-end;padding:var(--eui-base-spacing-s);align-items:center;display:flex;width:100%}.ux-modal__footer--custom-alignment{display:block}.ux-modal__footer button:not(:last-child){margin-right:var(--eui-base-spacing-xs)}.ux-modal__header-close{background-color:transparent;border:none;box-shadow:none;color:var(--eui-base-color-grey-25);font-size:var(--eui-base-font-size-2xl);margin-right:calc(-1 * var(--eui-base-spacing-s));outline:0;padding:var(--eui-base-spacing-2xs) var(--eui-base-spacing-xs)}.ux-modal__header-close:hover{color:var(--eui-base-color-text)}.ux-modal__header-close:active,.ux-modal__header-close:focus{outline:2px solid var(--eui-base-color-accessible-focus);outline-offset:-2px;-moz-outline-radius:var(--eui-base-border-radius);transition:outline .15s ease-in-out,border .15s ease-in-out}.ux-modal__header-close.disabled{display:none}uxmodalheader{display:flex;width:100%}.ux-modal--small .ux-modal__dialog{max-width:33%}.ux-modal--large .ux-modal__dialog{max-width:75%}.ux-modal--full-screen .ux-modal__content{height:98%;margin:1.5%;width:97%}.ux-modal--full-screen .ux-modal__dialog{height:100%;max-height:100%;max-width:100%;width:100%}.ux-modal--full-height{max-height:100%}.ux-modal--full-height .ux-modal__dialog{height:100%}.ux-modal--full-height .ux-modal__content{height:95%}.ux-modal--full-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.ux-modal--medium-height{max-height:100%}.ux-modal--medium-height .ux-modal__dialog{height:100%}.ux-modal--medium-height .ux-modal__content{height:50%}.ux-modal--medium-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-open .cdk-overlay-container{z-index:var(--eui-base-z-index-cdk-overlay-container)}.modal-backdrop{background-color:#00000080;height:100vh;left:0;opacity:0;position:fixed;top:0;transition:opacity .5s cubic-bezier(.25,.8,.25,1);width:100vw;z-index:var(--eui-base-z-index-modal-backdrop)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--eui-base-disabled-opacity)}@media screen and (max-width: 995px){.ux-modal__dialog,.ux-modal__dialog[style],.ux-modal--small .ux-modal__dialog,.ux-modal--big .ux-modal__dialog,.ux-modal--full-screen .ux-modal__dialog{margin-left:1.5%;max-width:100%!important;width:97%!important}}\n"] }]
|
|
223
|
+
args: [{ selector: 'ux-dynamic-modal', encapsulation: ViewEncapsulation.None, template: "<div id=\"{{config.id}}\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" #modal\n class=\"modal ux-modal {{ config.styleClass }} {{ stateClasses }} eui-u-anim\"\n role=\"dialog\"\n [class.eui-u-anim--slideInDown]=\"!config.isMessageBox\"\n [class.eui-u-anim--flipInY]=\"config.isMessageBox\"\n [class.ux-modal--full-height]=\"config.isSizeFullHeight\"\n [class.ux-modal--medium-height]=\"config.isSizeMediumHeight\"\n [class.ux-modal--draggable]=\"config.isDraggable\"\n [class.eui-u-anim--fast]=\"!config.isMessageBox\"\n [class.eui-u-anim--medium]=\"config.isMessageBox\"\n (keydown)=\"closeModalOnEscape($event)\"\n tabIndex=\"-1\"\n [style.display]=\"'block'\"\n attr.data-e2e=\"{{ e2eAttr }}\">\n\n <div class=\"modal-dialog ux-modal__dialog\" role=\"document\" [style.max-width]=\"config.customWidth\">\n <div class=\"modal-content ux-modal__content\" [class.ux-u-overflow-visible]=\"config.isOverflowVisible\" cdkDrag [cdkDragDisabled]=\"!config.isDraggable\">\n <div class=\"modal-header ux-modal__header\" cdkDragHandle>\n <ng-template [ngIf]=\"customHeaderContent\">\n <ng-content select=\"uxModalHeader\"></ng-content>\n </ng-template>\n <ng-template [ngIf]=\"!customHeaderContent\">\n <h5 class=\"modal-title ux-modal__header-title mt-1 mb-1\">{{ config.titleLabel }}</h5>\n </ng-template>\n <button *ngIf=\"config.isShowCloseButton\" #closeButton\n type=\"button\"\n class=\"ux-modal__header-close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n (click)=\"close($event)\">\n <eui-icon-svg icon=\"eui-ecl-close\"></eui-icon-svg>\n </button>\n </div>\n <div #uxmodalbody class=\"modal-body ux-modal__body {{ config.bodyStyleClass }}\"\n [class.ux-modal--no-padding]=\"config.hasNoBodyPadding\"\n [class.ux-u-overflow-visible]=\"config.isOverflowVisible\">\n <span [outerHTML]=\"config.content\" *ngIf=\"!config.isMessageBox\"></span>\n\n <div class=\"ux-message-box__body\" *ngIf=\"config.isMessageBox\">\n <div class=\"ux-message-box__body-icon\"></div>\n <div class=\"ux-message-box__body-content\">\n <span [outerHTML]=\"config.content\"></span>\n </div>\n </div>\n\n </div>\n\n <div *ngIf=\"config.isFooterVisible\" class=\"modal-footer ux-modal__footer {{ config.footerStyleClass }}\"\n [class.ux-modal__footer--custom-alignment]=\"config.customFooterContent\">\n\n <uxDynamicModalFooter *ngIf=\"config.customFooterContent && !config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicModalFooter>\n\n <uxDynamicMessageBoxFooter *ngIf=\"config.customFooterContent && config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicMessageBoxFooter>\n\n <ng-template [ngIf]=\"!config.customFooterContent\">\n <ng-template [ngIf]=\"!config.isMessageBox\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.dismissActionDisabled\"\n (click)=\"onDismissActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.dismissIconClass}}\"></span>\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.acceptActionDisabled\"\n (click)=\"onAcceptActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.acceptIconClass}}\"></span>\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n\n <ng-template [ngIf]=\"config.isMessageBox\">\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'confirmation'\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n (click)=\"onClick(false)\">\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n (click)=\"onClick(true)\">\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'ok'\">\n <button type=\"button\" class=\"ux-button ux-button--secondary\" (click)=\"onClick(true)\">OK</button>\n </ng-template>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-backdrop show\" [style.display]=\"'block'\" (focus)=\"close($event)\"></div>\n", styles: [".ux-modal{inset:0;outline:0;overflow:hidden;position:fixed;z-index:var(--eui-base-z-index-modal)}.ux-modal__content{background-clip:padding-box;background-color:var(--eui-base-color-white);border:1px solid var(--eui-base-color-grey-10);border-radius:var(--eui-base-border-radius);display:flex;flex-direction:column;max-height:100%;outline:0;overflow:auto;pointer-events:auto;position:relative;width:100%;box-shadow:var(--eui-base-shadow-24)}.ux-modal__dialog{display:flex;flex-direction:column;height:100vh;justify-content:center;margin:1.75rem auto;margin-bottom:0;margin-top:0;max-width:50%;pointer-events:none;position:relative;width:auto}.ux-modal__header{align-items:center;border-bottom:1px solid var(--eui-base-color-grey-10);border-top-left-radius:var(--eui-border-radius-base);border-top-right-radius:var(--eui-border-radius-base);display:flex;justify-content:space-between;min-height:calc(4 * var(--eui-base-spacing-m));padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m)}.ux-modal--draggable .ux-modal__header{cursor:move}.ux-modal__header-title{font-size:var(--eui-base-font-size-xl);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-weight:700}.ux-modal__body{flex:1 1 auto;overflow:auto;padding:var(--eui-base-spacing-m);position:relative}.ux-modal__body.ux-modal--no-padding{padding:0}.ux-modal__footer{background-color:var(--eui-base-color-grey-5);border-top:1px solid var(--eui-base-color-grey-10);justify-content:flex-end;padding:var(--eui-base-spacing-s);align-items:center;display:flex;width:100%}.ux-modal__footer--custom-alignment{display:block}.ux-modal__footer button:not(:last-child){margin-right:var(--eui-base-spacing-xs)}.ux-modal__header-close{background-color:transparent;border:none;box-shadow:none;color:var(--eui-base-color-grey-25);font-size:var(--eui-base-font-size-2xl);margin-right:calc(-1 * var(--eui-base-spacing-s));outline:0;padding:var(--eui-base-spacing-2xs) var(--eui-base-spacing-xs)}.ux-modal__header-close:hover{color:var(--eui-base-color-text)}.ux-modal__header-close:active,.ux-modal__header-close:focus{outline:2px solid var(--eui-base-color-accessible-focus);outline-offset:-2px;-moz-outline-radius:var(--eui-base-border-radius);transition:outline .15s ease-in-out,border .15s ease-in-out}.ux-modal__header-close.disabled{display:none}uxmodalheader{display:flex;width:100%}.ux-modal--small .ux-modal__dialog{max-width:33%}.ux-modal--large .ux-modal__dialog{max-width:75%}.ux-modal--full-screen .ux-modal__content{height:98%;margin:1.5%;width:97%}.ux-modal--full-screen .ux-modal__dialog{height:100%;max-height:100%;max-width:100%;width:100%}.ux-modal--full-height{max-height:100%}.ux-modal--full-height .ux-modal__dialog{height:100%}.ux-modal--full-height .ux-modal__content{height:95%}.ux-modal--full-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.ux-modal--medium-height{max-height:100%}.ux-modal--medium-height .ux-modal__dialog{height:100%}.ux-modal--medium-height .ux-modal__content{height:50%}.ux-modal--medium-height .ux-modal__body{overflow-x:hidden;overflow-y:scroll}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-open .cdk-overlay-container{z-index:var(--eui-base-z-index-cdk-overlay-container)}.modal-backdrop{background-color:#00000080;height:100vh;left:0;opacity:0;position:fixed;top:0;transition:opacity .5s cubic-bezier(.25,.8,.25,1);width:100vw;z-index:var(--eui-base-z-index-modal-backdrop)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--eui-base-disabled-opacity)}@media screen and (max-width: 995px){.ux-modal__dialog,.ux-modal__dialog[style],.ux-modal--small .ux-modal__dialog,.ux-modal--big .ux-modal__dialog,.ux-modal--full-screen .ux-modal__dialog{margin-left:1.5%;max-width:100%!important;width:97%!important}}\n"] }]
|
|
224
224
|
}], ctorParameters: function () {
|
|
225
225
|
return [{ type: UxDynamicModalConfig, decorators: [{
|
|
226
226
|
type: Inject,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-components-legacy-ux-dynamic-modal.mjs","sources":["../../legacy/ux-dynamic-modal/ux-dynamic-modal.config.model.ts","../../legacy/ux-dynamic-modal/ux-dynamic-modal.service.ts","../../legacy/ux-dynamic-modal/ux-dynamic-modal.component.ts","../../legacy/ux-dynamic-modal/ux-dynamic-modal.component.html","../../legacy/ux-dynamic-modal/eui-components-legacy-ux-dynamic-modal.ts"],"sourcesContent":["import { UxButtonConfig } from '@eui/components/legacy/ux-button';\n\nexport interface UxDynamicModalConfig {\n id: string;\n styleClass: string;\n titleLabel: string;\n dismissLabel: string;\n dismissDisabled: boolean;\n acceptLabel: string;\n acceptActionDisabled: boolean;\n dismissActionDisabled: boolean;\n isFooterVisible: boolean;\n isKeepBodyScroll: boolean;\n isSizeSmall: boolean;\n isSizeLarge: boolean;\n isSizeFullScreen: boolean;\n isSizeFullHeight: boolean;\n isSizeMediumHeight: boolean;\n isShowActionIcons: boolean;\n messageBoxType: string;\n acceptIconClass: string;\n dismissIconClass: string;\n hasNoBodyPadding: boolean;\n customWidth: string;\n isFooterCustomAlignment: boolean;\n isCloseModalOnEscape: boolean;\n isShowCloseButton: boolean;\n isMessageBox: boolean;\n isHandleCloseOnDismiss: boolean;\n isHandleCloseOnAccept: boolean;\n isHandleCloseOnClose: boolean;\n bodyStyleClass: string;\n footerStyleClass: string;\n isOverflowVisible: boolean;\n content: string;\n isDraggable: boolean;\n onAnimationEnd?: () => any;\n onClick?: (value) => any;\n bodyInjectedComponent: {\n component: any,\n config: any,\n };\n customFooterContent?: {\n left?: {\n buttons: UxButtonConfig[]\n },\n right?: {\n buttons: UxButtonConfig[]\n },\n };\n onDismiss?: (portalHostRef, portalRef) => any;\n onAccept?: (portalHostRef, portalRef) => any;\n onClose?: (portalHostRef, portalRef) => any;\n}\n\nexport class UxDynamicModalConfig implements UxDynamicModalConfig {\n id: string = 'single_modal';\n styleClass: string;\n titleLabel: string;\n dismissLabel: string = 'Cancel';\n dismissDisabled: boolean = false;\n acceptLabel: string = 'OK';\n acceptActionDisabled: boolean = false;\n dismissActionDisabled: boolean = false;\n isFooterVisible: boolean = true;\n isKeepBodyScroll: boolean = false;\n isSizeSmall: boolean = false;\n isSizeLarge: boolean = false;\n isSizeFullScreen: boolean = false;\n isSizeFullHeight: boolean = false;\n isSizeMediumHeight: boolean = false;\n isShowActionIcons: boolean = false;\n messageBoxType: string = '';\n acceptIconClass: string = 'ux-icon ux-icon-check';\n dismissIconClass: string = 'ux-icon ux-icon-times';\n hasNoBodyPadding: boolean = false;\n customWidth: string;\n isFooterCustomAlignment: boolean = false;\n isCloseModalOnEscape: boolean = true;\n isShowCloseButton: boolean = true;\n isMessageBox: boolean = false;\n isHandleCloseOnDismiss: boolean = true;\n isHandleCloseOnAccept: boolean = true;\n isHandleCloseOnClose: boolean = true;\n bodyStyleClass: string;\n footerStyleClass: string;\n isOverflowVisible: boolean = false;\n content: string = '';\n isDraggable = false;\n bodyInjectedComponent: {\n component: any,\n config: any,\n };\n customFooterContent?: {\n left?: {\n buttons: UxButtonConfig[]\n },\n right?: {\n buttons: UxButtonConfig[]\n },\n };\n\n onAnimationEnd?: () => any;\n onClick?: (value) => any;\n onDismiss?: (portalHostRef, portalRef) => any;\n onAccept?: (portalHostRef, portalRef) => any;\n onClose?: (portalHostRef, portalRef) => any;\n\n constructor(values) {\n Object.assign(this, values);\n }\n}\n","import { Injectable, ComponentRef } from '@angular/core';\nimport { DomPortalOutlet, Portal, ComponentPortal } from '@angular/cdk/portal';\n\nimport { UxDynamicComponentService } from '@eui/core';\nimport { UxDynamicModalConfig } from './ux-dynamic-modal.config.model';\nimport { UxDynamicModalComponent } from './ux-dynamic-modal.component';\n// import { UxDynamicMessageBoxComponent } from '../ux-dynamic-message-box/ux-dynamic-message-box.component';\n// import { UxDynamicMessageBoxConfig } from '../ux-dynamic-message-box/ux-dynamic-message-box.config.model';\n\n@Injectable()\nexport class UxDynamicModalService {\n\n private openModalData: {\n portalHost: DomPortalOutlet,\n portal: ComponentPortal<any>,\n portalComponentInstance: ComponentRef<any>,\n } = null;\n\n /**\n * Constructor\n */\n constructor(private uxDynamicComponentService: UxDynamicComponentService) {}\n\n /**\n * Open a modal dynamically (Add it to the DOM)\n */\n openModal(config: UxDynamicModalConfig): any {\n // openModal(config: UxDynamicMessageBoxConfig | UxDynamicModalConfig): any {\n\n let component;\n\n document.body.classList.add('modal-open');\n\n if (config instanceof UxDynamicModalConfig) {\n if (!(<UxDynamicModalConfig>config).onClose) {\n (<UxDynamicModalConfig>config).onClose = this.closeModal.bind(this);\n }\n component = UxDynamicModalComponent;\n } else {\n throw new Error(`Config is not instance of 'UxDynamicModalConfig'`);\n }\n\n this.openModalData = this.uxDynamicComponentService.add(component, null, config);\n return this.openModalData;\n }\n\n /**\n * Close a modal created dynamically (Remove it from the DOM)\n */\n closeModal(portalHostRef: DomPortalOutlet, portalRef?: Portal<any>) {\n document.body.classList.remove('modal-open');\n this.uxDynamicComponentService.remove(portalHostRef);\n this.openModalData = null;\n }\n\n}\n","import {\n AfterContentInit,\n AfterViewInit,\n Component,\n ComponentRef,\n ContentChild,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Input,\n NgModule,\n OnDestroy,\n QueryList,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DYNAMIC_COMPONENT_CONFIG, UxDynamicComponentService } from '@eui/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n\nimport { ComponentPortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport { UxDynamicModalConfig } from './ux-dynamic-modal.config.model';\nimport { UxButtonComponentModule, UxButtonConfig } from '@eui/components/legacy/ux-button';\nimport { UxLayoutHorizontalModule } from '@eui/components/legacy/layout';\nimport { UxDynamicModalService } from './ux-dynamic-modal.service';\nimport { EuiIconModule } from '@eui/components/eui-icon';\n\n@Component({\n selector: 'ux-dynamic-modal',\n templateUrl: './ux-dynamic-modal.component.html',\n styleUrls: ['./styles/_index.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class UxDynamicModalComponent implements AfterContentInit, AfterViewInit, OnDestroy {\n\n @Input() e2eAttr: string = 'ux-dynamic-modal';\n\n public stateClasses: string = '';\n public config: UxDynamicModalConfig;\n\n @ViewChild('modal') uxModalEl: ElementRef<HTMLDivElement>;\n @ViewChild('uxmodalbody') uxModalBody: ElementRef<HTMLDivElement>;\n @ViewChild('closeButton') vcCloseButton: ElementRef<HTMLButtonElement>;\n\n @ContentChild(forwardRef(() => UxDynamicModalFooterTagDirective))\n customFooterContent: QueryList<UxDynamicModalFooterTagDirective>;\n @ContentChild(forwardRef(() => UxDynamicModalHeaderTagDirective))\n customHeaderContent: QueryList<UxDynamicModalHeaderTagDirective>;\n @ContentChild(forwardRef(() => UxDynamicMessageBoxFooterTagDirective))\n customMessageBoxFooterContent: QueryList<UxDynamicMessageBoxFooterTagDirective>;\n\n private injectedComponent: {\n portalHost: DomPortalOutlet,\n portal: ComponentPortal<any>,\n portalComponentInstance: ComponentRef<any>,\n } = null;\n animationEndSubscription: Subscription;\n\n constructor(\n @Inject(DYNAMIC_COMPONENT_CONFIG) uxDynamicComponentConfig: UxDynamicModalConfig,\n private uxDynamicComponentService: UxDynamicComponentService,\n ) {\n this.config = uxDynamicComponentConfig;\n }\n\n ngAfterContentInit() {\n\n if (this.config.isSizeSmall) {\n this.stateClasses = 'ux-modal--small';\n }\n\n if (this.config.isSizeLarge) {\n this.stateClasses = 'ux-modal--large';\n }\n\n if (this.config.isSizeFullScreen) {\n this.stateClasses = 'ux-modal--full-screen';\n }\n\n if (this.config.bodyInjectedComponent && this.config.bodyInjectedComponent.component) {\n setTimeout(() => {\n\n Object.assign(this.config.bodyInjectedComponent.config, {\n parent: {\n portalHostRef: this.config['portalHostRef'],\n portalRef: this.config['portalRef'],\n portalComponentInstanceRef: this.config['portalComponentInstanceRef'],\n }\n });\n\n this.injectedComponent = this.uxDynamicComponentService.add(this.config.bodyInjectedComponent.component,\n this.uxModalBody,\n this.config.bodyInjectedComponent.config);\n\n if (this.injectedComponent) {\n Object.assign(this.config, {\n child: {\n portalHostRef: this.injectedComponent['portalHost'],\n portalRef: this.injectedComponent['portal'],\n portalComponentInstanceRef: this.injectedComponent['portalComponentInstance'],\n }\n });\n }\n\n }, 0);\n }\n }\n\n ngAfterViewInit() {\n if (this.vcCloseButton) {\n this.vcCloseButton.nativeElement.focus();\n }\n\n const modalEl = this.uxModalEl.nativeElement;\n this.animationEndSubscription = fromEvent(modalEl, 'animationend').subscribe(() => {\n if (this.config.onAnimationEnd) {\n this.config.onAnimationEnd();\n }\n });\n }\n\n ngOnDestroy() {\n if (this.animationEndSubscription) {\n this.animationEndSubscription.unsubscribe();\n }\n\n if (this.injectedComponent) {\n this.uxDynamicComponentService.remove(this.injectedComponent.portalHost);\n }\n }\n\n /**\n * Close modal function\n */\n public close(event: Event) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n /**\n * Close modal on escape(key 27) press\n */\n public closeModalOnEscape(event: KeyboardEvent) {\n if (this.config.isCloseModalOnEscape) {\n // eslint-disable-next-line\n if (event.keyCode === 27) {\n this.close(event);\n }\n }\n }\n\n /**\n * Trigger by the message-box when user click on OK button\n */\n public onAcceptActionClick(event: any) {\n if (this.config.isHandleCloseOnAccept) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onAccept) {\n this.config.onAccept(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onClick) {\n this.config.onClick(true);\n }\n }\n\n /**\n * Trigger by the message-box when user click on NO button\n */\n public onDismissActionClick(event: any) {\n if (this.config.isHandleCloseOnDismiss) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onDismiss) {\n this.config.onDismiss(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onClick) {\n this.config.onClick(false);\n }\n }\n\n /**\n * Trigger by the message-box when user click on a custom buttons defined in the config\n */\n public customFooterButtonClick(button: UxButtonConfig) {\n button.onClick(this.config['portalHostRef'], this.config['portalRef'], this.config['portalComponentInstanceRef']);\n }\n\n /**\n * Trigger by the message-box when user click on NO or OK buttons\n */\n public onClick(value: boolean) {\n if (this.config.onClick) {\n this.config.onClick(value);\n }\n\n if (this.config.onClose) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n }\n}\n\n/* eslint-disable */\n@Directive({selector: 'uxDynamicModalBody'})\nexport class UxDynamicModalBodyTagDirective {\n}\n\n@Directive({selector: 'uxDynamicModalFooter'})\nexport class UxDynamicModalFooterTagDirective {\n}\n\n@Directive({selector: 'uxDynamicModalHeader'})\nexport class UxDynamicModalHeaderTagDirective {\n}\n\n@Directive({selector: 'uxDynamicMessageBoxFooter'})\nexport class UxDynamicMessageBoxFooterTagDirective {\n}\n/* eslint-enable */\n\n@NgModule({\n imports: [\n CommonModule,\n UxButtonComponentModule,\n UxLayoutHorizontalModule,\n A11yModule,\n DragDropModule,\n EuiIconModule,\n ],\n exports: [\n UxDynamicModalComponent,\n UxDynamicModalBodyTagDirective,\n UxDynamicModalFooterTagDirective,\n UxDynamicModalHeaderTagDirective,\n UxDynamicMessageBoxFooterTagDirective,\n ],\n declarations: [\n UxDynamicModalComponent,\n UxDynamicModalBodyTagDirective,\n UxDynamicModalFooterTagDirective,\n UxDynamicModalHeaderTagDirective,\n UxDynamicMessageBoxFooterTagDirective,\n ],\n entryComponents: [\n UxDynamicModalComponent,\n ],\n providers: [\n UxDynamicModalService,\n UxDynamicComponentService,\n ],\n})\n\nexport class UxDynamicModalComponentModule {\n}\n","<div id=\"{{config.id}}\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" #modal\n class=\"modal ux-modal {{ config.styleClass }} {{ stateClasses }} eui-u-anim\"\n role=\"dialog\"\n [class.eui-u-anim--slideInDown]=\"!config.isMessageBox\"\n [class.eui-u-anim--flipInY]=\"config.isMessageBox\"\n [class.ux-modal--full-height]=\"config.isSizeFullHeight\"\n [class.ux-modal--medium-height]=\"config.isSizeMediumHeight\"\n [class.ux-modal--draggable]=\"config.isDraggable\"\n [class.eui-u-anim--fast]=\"!config.isMessageBox\"\n [class.eui-u-anim--medium]=\"config.isMessageBox\"\n (keydown)=\"closeModalOnEscape($event)\"\n tabIndex=\"-1\"\n [style.display]=\"'block'\"\n attr.data-e2e=\"{{ e2eAttr }}\">\n\n <div class=\"modal-dialog ux-modal__dialog\" role=\"document\" [style.max-width]=\"config.customWidth\">\n <div class=\"modal-content ux-modal__content\" [class.ux-u-overflow-visible]=\"config.isOverflowVisible\" cdkDrag [cdkDragDisabled]=\"!config.isDraggable\">\n <div class=\"modal-header ux-modal__header\" cdkDragHandle>\n <ng-template [ngIf]=\"customHeaderContent\">\n <ng-content select=\"uxModalHeader\"></ng-content>\n </ng-template>\n <ng-template [ngIf]=\"!customHeaderContent\">\n <h5 class=\"modal-title ux-modal__header-title\">{{ config.titleLabel }}</h5>\n </ng-template>\n <button *ngIf=\"config.isShowCloseButton\" #closeButton\n type=\"button\"\n class=\"ux-modal__header-close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n (click)=\"close($event)\">\n <eui-icon-svg icon=\"eui-close-m\"></eui-icon-svg>\n </button>\n </div>\n <div #uxmodalbody class=\"modal-body ux-modal__body {{ config.bodyStyleClass }}\"\n [class.ux-modal--no-padding]=\"config.hasNoBodyPadding\"\n [class.ux-u-overflow-visible]=\"config.isOverflowVisible\">\n <span [outerHTML]=\"config.content\" *ngIf=\"!config.isMessageBox\"></span>\n\n <div class=\"ux-message-box__body\" *ngIf=\"config.isMessageBox\">\n <div class=\"ux-message-box__body-icon\"></div>\n <div class=\"ux-message-box__body-content\">\n <span [outerHTML]=\"config.content\"></span>\n </div>\n </div>\n\n </div>\n\n <div *ngIf=\"config.isFooterVisible\" class=\"modal-footer ux-modal__footer {{ config.footerStyleClass }}\"\n [class.ux-modal__footer--custom-alignment]=\"config.customFooterContent\">\n\n <uxDynamicModalFooter *ngIf=\"config.customFooterContent && !config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicModalFooter>\n\n <uxDynamicMessageBoxFooter *ngIf=\"config.customFooterContent && config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicMessageBoxFooter>\n\n <ng-template [ngIf]=\"!config.customFooterContent\">\n <ng-template [ngIf]=\"!config.isMessageBox\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.dismissActionDisabled\"\n (click)=\"onDismissActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.dismissIconClass}}\"></span>\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.acceptActionDisabled\"\n (click)=\"onAcceptActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.acceptIconClass}}\"></span>\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n\n <ng-template [ngIf]=\"config.isMessageBox\">\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'confirmation'\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n (click)=\"onClick(false)\">\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n (click)=\"onClick(true)\">\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'ok'\">\n <button type=\"button\" class=\"ux-button ux-button--secondary\" (click)=\"onClick(true)\">OK</button>\n </ng-template>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-backdrop show\" [style.display]=\"'block'\" (focus)=\"close($event)\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;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wBAAwB;QACxB,UAAU;QACV,cAAc;QACd,aAAa,CAAA,EAAA,CAAA,CAAA;2FAyBR,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAhCzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,uBAAuB;wBACvB,wBAAwB;wBACxB,UAAU;wBACV,cAAc;wBACd,aAAa;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,uBAAuB;wBACvB,8BAA8B;wBAC9B,gCAAgC;wBAChC,gCAAgC;wBAChC,qCAAqC;AACxC,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,uBAAuB;wBACvB,8BAA8B;wBAC9B,gCAAgC;wBAChC,gCAAgC;wBAChC,qCAAqC;AACxC,qBAAA;AACD,oBAAA,eAAe,EAAE;wBACb,uBAAuB;AAC1B,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACP,qBAAqB;wBACrB,yBAAyB;AAC5B,qBAAA;iBACJ,CAAA;;;AEhQD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-components-legacy-ux-dynamic-modal.mjs","sources":["../../legacy/ux-dynamic-modal/ux-dynamic-modal.config.model.ts","../../legacy/ux-dynamic-modal/ux-dynamic-modal.service.ts","../../legacy/ux-dynamic-modal/ux-dynamic-modal.component.ts","../../legacy/ux-dynamic-modal/ux-dynamic-modal.component.html","../../legacy/ux-dynamic-modal/eui-components-legacy-ux-dynamic-modal.ts"],"sourcesContent":["import { UxButtonConfig } from '@eui/components/legacy/ux-button';\n\nexport interface UxDynamicModalConfig {\n id: string;\n styleClass: string;\n titleLabel: string;\n dismissLabel: string;\n dismissDisabled: boolean;\n acceptLabel: string;\n acceptActionDisabled: boolean;\n dismissActionDisabled: boolean;\n isFooterVisible: boolean;\n isKeepBodyScroll: boolean;\n isSizeSmall: boolean;\n isSizeLarge: boolean;\n isSizeFullScreen: boolean;\n isSizeFullHeight: boolean;\n isSizeMediumHeight: boolean;\n isShowActionIcons: boolean;\n messageBoxType: string;\n acceptIconClass: string;\n dismissIconClass: string;\n hasNoBodyPadding: boolean;\n customWidth: string;\n isFooterCustomAlignment: boolean;\n isCloseModalOnEscape: boolean;\n isShowCloseButton: boolean;\n isMessageBox: boolean;\n isHandleCloseOnDismiss: boolean;\n isHandleCloseOnAccept: boolean;\n isHandleCloseOnClose: boolean;\n bodyStyleClass: string;\n footerStyleClass: string;\n isOverflowVisible: boolean;\n content: string;\n isDraggable: boolean;\n onAnimationEnd?: () => any;\n onClick?: (value) => any;\n bodyInjectedComponent: {\n component: any,\n config: any,\n };\n customFooterContent?: {\n left?: {\n buttons: UxButtonConfig[]\n },\n right?: {\n buttons: UxButtonConfig[]\n },\n };\n onDismiss?: (portalHostRef, portalRef) => any;\n onAccept?: (portalHostRef, portalRef) => any;\n onClose?: (portalHostRef, portalRef) => any;\n}\n\nexport class UxDynamicModalConfig implements UxDynamicModalConfig {\n id: string = 'single_modal';\n styleClass: string;\n titleLabel: string;\n dismissLabel: string = 'Cancel';\n dismissDisabled: boolean = false;\n acceptLabel: string = 'OK';\n acceptActionDisabled: boolean = false;\n dismissActionDisabled: boolean = false;\n isFooterVisible: boolean = true;\n isKeepBodyScroll: boolean = false;\n isSizeSmall: boolean = false;\n isSizeLarge: boolean = false;\n isSizeFullScreen: boolean = false;\n isSizeFullHeight: boolean = false;\n isSizeMediumHeight: boolean = false;\n isShowActionIcons: boolean = false;\n messageBoxType: string = '';\n acceptIconClass: string = 'ux-icon ux-icon-check';\n dismissIconClass: string = 'ux-icon ux-icon-times';\n hasNoBodyPadding: boolean = false;\n customWidth: string;\n isFooterCustomAlignment: boolean = false;\n isCloseModalOnEscape: boolean = true;\n isShowCloseButton: boolean = true;\n isMessageBox: boolean = false;\n isHandleCloseOnDismiss: boolean = true;\n isHandleCloseOnAccept: boolean = true;\n isHandleCloseOnClose: boolean = true;\n bodyStyleClass: string;\n footerStyleClass: string;\n isOverflowVisible: boolean = false;\n content: string = '';\n isDraggable = false;\n bodyInjectedComponent: {\n component: any,\n config: any,\n };\n customFooterContent?: {\n left?: {\n buttons: UxButtonConfig[]\n },\n right?: {\n buttons: UxButtonConfig[]\n },\n };\n\n onAnimationEnd?: () => any;\n onClick?: (value) => any;\n onDismiss?: (portalHostRef, portalRef) => any;\n onAccept?: (portalHostRef, portalRef) => any;\n onClose?: (portalHostRef, portalRef) => any;\n\n constructor(values) {\n Object.assign(this, values);\n }\n}\n","import { Injectable, ComponentRef } from '@angular/core';\nimport { DomPortalOutlet, Portal, ComponentPortal } from '@angular/cdk/portal';\n\nimport { UxDynamicComponentService } from '@eui/core';\nimport { UxDynamicModalConfig } from './ux-dynamic-modal.config.model';\nimport { UxDynamicModalComponent } from './ux-dynamic-modal.component';\n// import { UxDynamicMessageBoxComponent } from '../ux-dynamic-message-box/ux-dynamic-message-box.component';\n// import { UxDynamicMessageBoxConfig } from '../ux-dynamic-message-box/ux-dynamic-message-box.config.model';\n\n@Injectable()\nexport class UxDynamicModalService {\n\n private openModalData: {\n portalHost: DomPortalOutlet,\n portal: ComponentPortal<any>,\n portalComponentInstance: ComponentRef<any>,\n } = null;\n\n /**\n * Constructor\n */\n constructor(private uxDynamicComponentService: UxDynamicComponentService) {}\n\n /**\n * Open a modal dynamically (Add it to the DOM)\n */\n openModal(config: UxDynamicModalConfig): any {\n // openModal(config: UxDynamicMessageBoxConfig | UxDynamicModalConfig): any {\n\n let component;\n\n document.body.classList.add('modal-open');\n\n if (config instanceof UxDynamicModalConfig) {\n if (!(<UxDynamicModalConfig>config).onClose) {\n (<UxDynamicModalConfig>config).onClose = this.closeModal.bind(this);\n }\n component = UxDynamicModalComponent;\n } else {\n throw new Error(`Config is not instance of 'UxDynamicModalConfig'`);\n }\n\n this.openModalData = this.uxDynamicComponentService.add(component, null, config);\n return this.openModalData;\n }\n\n /**\n * Close a modal created dynamically (Remove it from the DOM)\n */\n closeModal(portalHostRef: DomPortalOutlet, portalRef?: Portal<any>) {\n document.body.classList.remove('modal-open');\n this.uxDynamicComponentService.remove(portalHostRef);\n this.openModalData = null;\n }\n\n}\n","import {\n AfterContentInit,\n AfterViewInit,\n Component,\n ComponentRef,\n ContentChild,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Input,\n NgModule,\n OnDestroy,\n QueryList,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DYNAMIC_COMPONENT_CONFIG, UxDynamicComponentService } from '@eui/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n\nimport { ComponentPortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport { UxDynamicModalConfig } from './ux-dynamic-modal.config.model';\nimport { UxButtonComponentModule, UxButtonConfig } from '@eui/components/legacy/ux-button';\nimport { UxLayoutHorizontalModule } from '@eui/components/legacy/layout';\nimport { UxDynamicModalService } from './ux-dynamic-modal.service';\nimport { EuiIconModule } from '@eui/components/eui-icon';\n\n@Component({\n selector: 'ux-dynamic-modal',\n templateUrl: './ux-dynamic-modal.component.html',\n styleUrls: ['./styles/_index.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class UxDynamicModalComponent implements AfterContentInit, AfterViewInit, OnDestroy {\n\n @Input() e2eAttr: string = 'ux-dynamic-modal';\n\n public stateClasses: string = '';\n public config: UxDynamicModalConfig;\n\n @ViewChild('modal') uxModalEl: ElementRef<HTMLDivElement>;\n @ViewChild('uxmodalbody') uxModalBody: ElementRef<HTMLDivElement>;\n @ViewChild('closeButton') vcCloseButton: ElementRef<HTMLButtonElement>;\n\n @ContentChild(forwardRef(() => UxDynamicModalFooterTagDirective))\n customFooterContent: QueryList<UxDynamicModalFooterTagDirective>;\n @ContentChild(forwardRef(() => UxDynamicModalHeaderTagDirective))\n customHeaderContent: QueryList<UxDynamicModalHeaderTagDirective>;\n @ContentChild(forwardRef(() => UxDynamicMessageBoxFooterTagDirective))\n customMessageBoxFooterContent: QueryList<UxDynamicMessageBoxFooterTagDirective>;\n\n private injectedComponent: {\n portalHost: DomPortalOutlet,\n portal: ComponentPortal<any>,\n portalComponentInstance: ComponentRef<any>,\n } = null;\n animationEndSubscription: Subscription;\n\n constructor(\n @Inject(DYNAMIC_COMPONENT_CONFIG) uxDynamicComponentConfig: UxDynamicModalConfig,\n private uxDynamicComponentService: UxDynamicComponentService,\n ) {\n this.config = uxDynamicComponentConfig;\n }\n\n ngAfterContentInit() {\n\n if (this.config.isSizeSmall) {\n this.stateClasses = 'ux-modal--small';\n }\n\n if (this.config.isSizeLarge) {\n this.stateClasses = 'ux-modal--large';\n }\n\n if (this.config.isSizeFullScreen) {\n this.stateClasses = 'ux-modal--full-screen';\n }\n\n if (this.config.bodyInjectedComponent && this.config.bodyInjectedComponent.component) {\n setTimeout(() => {\n\n Object.assign(this.config.bodyInjectedComponent.config, {\n parent: {\n portalHostRef: this.config['portalHostRef'],\n portalRef: this.config['portalRef'],\n portalComponentInstanceRef: this.config['portalComponentInstanceRef'],\n }\n });\n\n this.injectedComponent = this.uxDynamicComponentService.add(this.config.bodyInjectedComponent.component,\n this.uxModalBody,\n this.config.bodyInjectedComponent.config);\n\n if (this.injectedComponent) {\n Object.assign(this.config, {\n child: {\n portalHostRef: this.injectedComponent['portalHost'],\n portalRef: this.injectedComponent['portal'],\n portalComponentInstanceRef: this.injectedComponent['portalComponentInstance'],\n }\n });\n }\n\n }, 0);\n }\n }\n\n ngAfterViewInit() {\n if (this.vcCloseButton) {\n this.vcCloseButton.nativeElement.focus();\n }\n\n const modalEl = this.uxModalEl.nativeElement;\n this.animationEndSubscription = fromEvent(modalEl, 'animationend').subscribe(() => {\n if (this.config.onAnimationEnd) {\n this.config.onAnimationEnd();\n }\n });\n }\n\n ngOnDestroy() {\n if (this.animationEndSubscription) {\n this.animationEndSubscription.unsubscribe();\n }\n\n if (this.injectedComponent) {\n this.uxDynamicComponentService.remove(this.injectedComponent.portalHost);\n }\n }\n\n /**\n * Close modal function\n */\n public close(event: Event) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n /**\n * Close modal on escape(key 27) press\n */\n public closeModalOnEscape(event: KeyboardEvent) {\n if (this.config.isCloseModalOnEscape) {\n // eslint-disable-next-line\n if (event.keyCode === 27) {\n this.close(event);\n }\n }\n }\n\n /**\n * Trigger by the message-box when user click on OK button\n */\n public onAcceptActionClick(event: any) {\n if (this.config.isHandleCloseOnAccept) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onAccept) {\n this.config.onAccept(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onClick) {\n this.config.onClick(true);\n }\n }\n\n /**\n * Trigger by the message-box when user click on NO button\n */\n public onDismissActionClick(event: any) {\n if (this.config.isHandleCloseOnDismiss) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onDismiss) {\n this.config.onDismiss(this.config['portalHostRef'], this.config['portalRef']);\n }\n\n if (this.config.onClick) {\n this.config.onClick(false);\n }\n }\n\n /**\n * Trigger by the message-box when user click on a custom buttons defined in the config\n */\n public customFooterButtonClick(button: UxButtonConfig) {\n button.onClick(this.config['portalHostRef'], this.config['portalRef'], this.config['portalComponentInstanceRef']);\n }\n\n /**\n * Trigger by the message-box when user click on NO or OK buttons\n */\n public onClick(value: boolean) {\n if (this.config.onClick) {\n this.config.onClick(value);\n }\n\n if (this.config.onClose) {\n this.config.onClose(this.config['portalHostRef'], this.config['portalRef']);\n }\n }\n}\n\n/* eslint-disable */\n@Directive({selector: 'uxDynamicModalBody'})\nexport class UxDynamicModalBodyTagDirective {\n}\n\n@Directive({selector: 'uxDynamicModalFooter'})\nexport class UxDynamicModalFooterTagDirective {\n}\n\n@Directive({selector: 'uxDynamicModalHeader'})\nexport class UxDynamicModalHeaderTagDirective {\n}\n\n@Directive({selector: 'uxDynamicMessageBoxFooter'})\nexport class UxDynamicMessageBoxFooterTagDirective {\n}\n/* eslint-enable */\n\n@NgModule({\n imports: [\n CommonModule,\n UxButtonComponentModule,\n UxLayoutHorizontalModule,\n A11yModule,\n DragDropModule,\n EuiIconModule,\n ],\n exports: [\n UxDynamicModalComponent,\n UxDynamicModalBodyTagDirective,\n UxDynamicModalFooterTagDirective,\n UxDynamicModalHeaderTagDirective,\n UxDynamicMessageBoxFooterTagDirective,\n ],\n declarations: [\n UxDynamicModalComponent,\n UxDynamicModalBodyTagDirective,\n UxDynamicModalFooterTagDirective,\n UxDynamicModalHeaderTagDirective,\n UxDynamicMessageBoxFooterTagDirective,\n ],\n entryComponents: [\n UxDynamicModalComponent,\n ],\n providers: [\n UxDynamicModalService,\n UxDynamicComponentService,\n ],\n})\n\nexport class UxDynamicModalComponentModule {\n}\n","<div id=\"{{config.id}}\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" #modal\n class=\"modal ux-modal {{ config.styleClass }} {{ stateClasses }} eui-u-anim\"\n role=\"dialog\"\n [class.eui-u-anim--slideInDown]=\"!config.isMessageBox\"\n [class.eui-u-anim--flipInY]=\"config.isMessageBox\"\n [class.ux-modal--full-height]=\"config.isSizeFullHeight\"\n [class.ux-modal--medium-height]=\"config.isSizeMediumHeight\"\n [class.ux-modal--draggable]=\"config.isDraggable\"\n [class.eui-u-anim--fast]=\"!config.isMessageBox\"\n [class.eui-u-anim--medium]=\"config.isMessageBox\"\n (keydown)=\"closeModalOnEscape($event)\"\n tabIndex=\"-1\"\n [style.display]=\"'block'\"\n attr.data-e2e=\"{{ e2eAttr }}\">\n\n <div class=\"modal-dialog ux-modal__dialog\" role=\"document\" [style.max-width]=\"config.customWidth\">\n <div class=\"modal-content ux-modal__content\" [class.ux-u-overflow-visible]=\"config.isOverflowVisible\" cdkDrag [cdkDragDisabled]=\"!config.isDraggable\">\n <div class=\"modal-header ux-modal__header\" cdkDragHandle>\n <ng-template [ngIf]=\"customHeaderContent\">\n <ng-content select=\"uxModalHeader\"></ng-content>\n </ng-template>\n <ng-template [ngIf]=\"!customHeaderContent\">\n <h5 class=\"modal-title ux-modal__header-title mt-1 mb-1\">{{ config.titleLabel }}</h5>\n </ng-template>\n <button *ngIf=\"config.isShowCloseButton\" #closeButton\n type=\"button\"\n class=\"ux-modal__header-close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n (click)=\"close($event)\">\n <eui-icon-svg icon=\"eui-ecl-close\"></eui-icon-svg>\n </button>\n </div>\n <div #uxmodalbody class=\"modal-body ux-modal__body {{ config.bodyStyleClass }}\"\n [class.ux-modal--no-padding]=\"config.hasNoBodyPadding\"\n [class.ux-u-overflow-visible]=\"config.isOverflowVisible\">\n <span [outerHTML]=\"config.content\" *ngIf=\"!config.isMessageBox\"></span>\n\n <div class=\"ux-message-box__body\" *ngIf=\"config.isMessageBox\">\n <div class=\"ux-message-box__body-icon\"></div>\n <div class=\"ux-message-box__body-content\">\n <span [outerHTML]=\"config.content\"></span>\n </div>\n </div>\n\n </div>\n\n <div *ngIf=\"config.isFooterVisible\" class=\"modal-footer ux-modal__footer {{ config.footerStyleClass }}\"\n [class.ux-modal__footer--custom-alignment]=\"config.customFooterContent\">\n\n <uxDynamicModalFooter *ngIf=\"config.customFooterContent && !config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicModalFooter>\n\n <uxDynamicMessageBoxFooter *ngIf=\"config.customFooterContent && config.isMessageBox\">\n <ux-layout-horizontal>\n <uxLayoutHorizontalLeft *ngIf=\"config.customFooterContent.left\">\n <ux-button *ngFor=\"let button of config.customFooterContent.left.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalLeft>\n <uxLayoutHorizontalRight *ngIf=\"config.customFooterContent.right\">\n <ux-button *ngFor=\"let button of config.customFooterContent.right.buttons\"\n type=\"{{ button.type }}\"\n styleClass=\"{{ button.styleClass }}\"\n typeClass=\"{{ button.typeClass }}\"\n iconClass=\"{{ button.iconClass }}\"\n [isOutline]=\"button.isOutline\"\n [isSecondary]=\"button.isSecondary\"\n [isSmall]=\"button.isSmall\"\n [isLarge]=\"button.isLarge\"\n [isBlock]=\"button.isBlock\"\n [isFlat]=\"button.isFlat\"\n [isDisabled]=\"button.isDisabled\"\n (click)=\"customFooterButtonClick(button)\">{{ button.label }}</ux-button>\n </uxLayoutHorizontalRight>\n </ux-layout-horizontal>\n </uxDynamicMessageBoxFooter>\n\n <ng-template [ngIf]=\"!config.customFooterContent\">\n <ng-template [ngIf]=\"!config.isMessageBox\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.dismissActionDisabled\"\n (click)=\"onDismissActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.dismissIconClass}}\"></span>\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n [class.ux-button--with-label]=\"config.isShowActionIcons\"\n [disabled]=\"config.acceptActionDisabled\"\n (click)=\"onAcceptActionClick($event)\">\n <span *ngIf=\"config.isShowActionIcons\" class=\"ux-button__icon {{config.acceptIconClass}}\"></span>\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n\n <ng-template [ngIf]=\"config.isMessageBox\">\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'confirmation'\">\n <button type=\"button\"\n class=\"ux-button ux-button--secondary\"\n (click)=\"onClick(false)\">\n {{ config.dismissLabel }}\n </button>\n <button type=\"button\"\n class=\"ux-button ux-button--primary\"\n (click)=\"onClick(true)\">\n {{ config.acceptLabel }}\n </button>\n </ng-template>\n <ng-template [ngIf]=\"config.messageBoxType && config.messageBoxType === 'ok'\">\n <button type=\"button\" class=\"ux-button ux-button--secondary\" (click)=\"onClick(true)\">OK</button>\n </ng-template>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-backdrop show\" [style.display]=\"'block'\" (focus)=\"close($event)\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAuDa,oBAAoB,CAAA;AAqD7B,IAAA,WAAA,CAAY,MAAM,EAAA;AApDlB,QA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AA,UAAA,EAAA,CAAA;kBAhCzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,uBAAuB;wBACvB,wBAAwB;wBACxB,UAAU;wBACV,cAAc;wBACd,aAAa;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,uBAAuB;wBACvB,8BAA8B;wBAC9B,gCAAgC;wBAChC,gCAAgC;wBAChC,qCAAqC;AACxC,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,uBAAuB;wBACvB,8BAA8B;wBAC9B,gCAAgC;wBAChC,gCAAgC;wBAChC,qCAAqC;AACxC,qBAAA;AACD,oBAAA,eAAe,EAAE;wBACb,uBAAuB;AAC1B,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACP,qBAAqB;wBACrB,yBAAyB;AAC5B,qBAAA;iBACJ,CAAA;;;AEhQD;;AAEG;;;;"}
|
|
@@ -148,14 +148,14 @@ class UxFieldSearchComponent {
|
|
|
148
148
|
provide: NG_VALUE_ACCESSOR,
|
|
149
149
|
useExisting: forwardRef((() => UxFieldSearchComponent)),
|
|
150
150
|
multi: true,
|
|
151
|
-
}], queries: [{ propertyName: "isFilterActive", first: true, predicate: i0.forwardRef(function () { return UxFieldSearchFilterContentTagDirective; }), descendants: true }], viewQueries: [{ propertyName: "uxFieldSearchInput", first: true, predicate: ["uxFieldSearchInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"ux-field-search {{styleClass}}\"\n [class.ux-field-search__with-filter]=\"isDropdownFilter\"\n [class.ux-field-search__with-prepend-icon]=\"isShowPrependSearchIcon\"\n\tattr.data-e2e=\"{{ e2eAttr }}\">\n <div class=\"ux-input-group\">\n <span class=\"ux-input-group-prepend\" *ngIf=\"isShowPrependSearchIcon\">\n <span class=\"ux-input-group-text\">\n <eui-icon-svg icon=\"eui-search-
|
|
151
|
+
}], queries: [{ propertyName: "isFilterActive", first: true, predicate: i0.forwardRef(function () { return UxFieldSearchFilterContentTagDirective; }), descendants: true }], viewQueries: [{ propertyName: "uxFieldSearchInput", first: true, predicate: ["uxFieldSearchInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"ux-field-search {{styleClass}}\"\n [class.ux-field-search__with-filter]=\"isDropdownFilter\"\n [class.ux-field-search__with-prepend-icon]=\"isShowPrependSearchIcon\"\n\tattr.data-e2e=\"{{ e2eAttr }}\">\n <div class=\"ux-input-group\">\n <span class=\"ux-input-group-prepend\" *ngIf=\"isShowPrependSearchIcon\">\n <span class=\"ux-input-group-text\">\n <eui-icon-svg icon=\"eui-search\" fillColor=\"grey-50\" class=\"ux-field-search__icon\"></eui-icon-svg>\n </span>\n </span>\n\n <div class=\"ux-clearable-input-wrapper\">\n <input #uxFieldSearchInput type=\"text\" matInput [matAutocomplete]=\"auto\" [formControl]=\"searchField\" class=\"eui-input-text\"\n placeholder=\"{{inputPlaceholderLabel ? inputPlaceholderLabel: ('eui.PLACEHOLDERSEARCH' | translate)}}\" (change)=\"onChange($event)\" (keyup)=\"onKeyup($event)\"\n (blur)=\"onTouched($event)\" [value]=\"defaultValue\" />\n <div class=\"ux-clearable-input-wrapper__clear\" *ngIf=\"data\" (click)=\"onClearClick()\">\n <eui-icon-svg icon=\"eui-close\" class=\"ux-clearable-input-wrapper__clear-icon\"></eui-icon-svg>\n </div>\n <mat-autocomplete #auto=\"matAutocomplete\" [displayWith]=\"displayFn\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\n {{ option }}\n </mat-option>\n </mat-autocomplete>\n\n <div class=\"ux-form-group__input-content\">\n <span *ngIf=\"suggestionsDataLoading\" class=\"ux-form-group__loading-indicator eui-icon eui-icon-refresh eui-icon-spin ux-u-color-primary\"></span>\n </div>\n </div>\n\n <span class=\"ux-input-group-append\" *ngIf=\"isDropdownFilter\">\n <ux-dropdown-button\n [hasItems]=\"dropdownFilterHasItems\"\n [links]=\"dropdownFilterLinks\"\n [styleClass]=\"'ux-dropdown-button-search ' + dropdownFilterStyleClass\"\n label=\"{{dropdownFilterLabel ? dropdownFilterLabel: ('eui.ADVANCEDSEARCH' | translate)}}\"\n [typeClass]=\"dropdownFilterTypeClass\"\n [iconClass]=\"dropdownFilterIconClass\"\n [isSplitButtonToggle]=\"dropdownFilterIsSplitButtonToggle\"\n [isDropDownRightAligned]=\"dropdownFilterIsDropDownRightAligned\"\n [isUpdateLabelFromSelectedItem]=\"dropdownFilterIsUpdateLabelFromSelectedItem\"\n [isOutline]=\"dropdownFilterIsOutline\"\n [isDisabled]=\"dropdownFilterIsDisabled\"\n [width]=\"dropdownFilterWidth\"\n [dropdownMaxHeight]=\"dropdownFilterMaxHeight\">\n\n <!-- <ng-container *ngIf=\"customFilterContent\"> -->\n <ng-content select=\"uxFieldSearchFilterContent\"></ng-content>\n <!-- </ng-container> -->\n\n </ux-dropdown-button>\n </span>\n\n <span class=\"ux-input-group-append\">\n <button class=\"ux-button ux-button--{{searchButtonTypeClass}} ux-field-search__search-button\" type=\"button\" (click)=\"onSearch($event)\">\n <span *ngIf=\"!searchButtonAsIcon\">{{searchButtonLabel ? searchButtonLabel: ('eui.SEARCH' | translate)}}</span>\n <eui-icon-svg *ngIf=\"searchButtonAsIcon\" icon=\"eui-search\" fillColor=\"white\"></eui-icon-svg>\n </button>\n </span>\n <span *ngIf=\"customFilterContent && isFilterButtonTrigger\" class=\"ux-input-group-append\">\n <button class=\"ux-button ux-button--secondary\" type=\"button\" (click)=\"isFilterActive = !isFilterActive\">\n <eui-icon-svg *ngIf=\"isFilterActive\" icon=\"eui-close\"></eui-icon-svg>\n <eui-icon-svg *ngIf=\"!isFilterActive\" icon=\"eui-filter\"></eui-icon-svg>\n </button>\n </span>\n </div>\n</div>\n", styles: [".ux-field-search{position:relative}.ux-field-search input,.ux-field-search .ui-widget input{height:calc(var(--eui-base-spacing-2xl) + 2px);padding-right:var(--eui-base-spacing-2xl)}.ux-field-search input.form-control{border-bottom-right-radius:0;border-top-right-radius:0}.ux-field-search .ux-dropdown-button{border-bottom:1px solid var(--eui-base-color-grey-20);border-radius:0;border-top:1px solid var(--eui-base-color-grey-20);box-shadow:none;height:calc(var(--eui-base-spacing-2xl) + 2px)}.ux-field-search .ux-dropdown-button:not(.ux-button--secondary){margin-left:-1px}.ux-field-search.ux-field-search__with-filter input.form-control{border-radius:0}.ux-field-search.ux-field-search__with-prepend-icon input.form-control{border-bottom-left-radius:0;border-top-left-radius:0}.ux-field-search__search-button{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:none;height:calc(var(--eui-base-spacing-2xl) + 2px)}.ux-field-search__search-button.ux-button--secondary{border:1px solid var(--eui-base-color-grey-20)}.ux-field-search__icon{font-size:var(--eui-base-font-size-xl);padding:0 var(--eui-base-spacing-3xs)}.ux-field-search .ux-clearable-input-wrapper .ux-clearable-input-wrapper__clear{position:relative}.ux-field-search .ux-clearable-input-wrapper .ux-clearable-input-wrapper__clear-icon{color:var(--eui-base-color-grey-35);font-size:var(--eui-base-font-size-m);position:absolute;right:var(--eui-base-spacing-s);top:calc(-1 * var(--eui-base-spacing-xs))}.ux-field-search .ux-clearable-input-wrapper .ux-clearable-input-wrapper__clear-icon:hover{color:var(--eui-base-color-grey-100);cursor:pointer}.ux-dropdown-button-search a{border:1px solid var(--eui-base-color-grey-20);border-left:1px solid var(--eui-base-color-grey-20);border-radius:0;box-shadow:0 0 #000000bf;margin-left:-1px;padding:var(--eui-base-spacing-xs) var(--eui-base-spacing-s)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.UxDropdownButtonComponent, selector: "ux-dropdown-button", inputs: ["styleClass", "label", "iconClass", "iconSvgName", "links", "activeLink", "typeClass", "dropdownMinHeight", "dropdownMaxHeight", "width", "buttonLabelAlignment", "e2eAttr", "menu", "id", "isUpdateLabelFromSelectedItem", "isDisabled", "isSmall", "isLarge", "isSplitButtonToggle", "isDropDownRightAligned", "isLinkToggle", "isOutline", "isShowDropdownToggle", "hasItems", "isSecondary", "isBlock"], outputs: ["linkSelected"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i4.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: i6.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "aria-label", "ariaHidden", "focusable", "isLoading"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
152
152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: UxFieldSearchComponent, decorators: [{
|
|
153
153
|
type: Component,
|
|
154
154
|
args: [{ selector: 'ux-field-search', providers: [{
|
|
155
155
|
provide: NG_VALUE_ACCESSOR,
|
|
156
156
|
useExisting: forwardRef((() => UxFieldSearchComponent)),
|
|
157
157
|
multi: true,
|
|
158
|
-
}], encapsulation: ViewEncapsulation.None, template: "<div class=\"ux-field-search {{styleClass}}\"\n [class.ux-field-search__with-filter]=\"isDropdownFilter\"\n [class.ux-field-search__with-prepend-icon]=\"isShowPrependSearchIcon\"\n\tattr.data-e2e=\"{{ e2eAttr }}\">\n <div class=\"ux-input-group\">\n <span class=\"ux-input-group-prepend\" *ngIf=\"isShowPrependSearchIcon\">\n <span class=\"ux-input-group-text\">\n <eui-icon-svg icon=\"eui-search-
|
|
158
|
+
}], encapsulation: ViewEncapsulation.None, template: "<div class=\"ux-field-search {{styleClass}}\"\n [class.ux-field-search__with-filter]=\"isDropdownFilter\"\n [class.ux-field-search__with-prepend-icon]=\"isShowPrependSearchIcon\"\n\tattr.data-e2e=\"{{ e2eAttr }}\">\n <div class=\"ux-input-group\">\n <span class=\"ux-input-group-prepend\" *ngIf=\"isShowPrependSearchIcon\">\n <span class=\"ux-input-group-text\">\n <eui-icon-svg icon=\"eui-search\" fillColor=\"grey-50\" class=\"ux-field-search__icon\"></eui-icon-svg>\n </span>\n </span>\n\n <div class=\"ux-clearable-input-wrapper\">\n <input #uxFieldSearchInput type=\"text\" matInput [matAutocomplete]=\"auto\" [formControl]=\"searchField\" class=\"eui-input-text\"\n placeholder=\"{{inputPlaceholderLabel ? inputPlaceholderLabel: ('eui.PLACEHOLDERSEARCH' | translate)}}\" (change)=\"onChange($event)\" (keyup)=\"onKeyup($event)\"\n (blur)=\"onTouched($event)\" [value]=\"defaultValue\" />\n <div class=\"ux-clearable-input-wrapper__clear\" *ngIf=\"data\" (click)=\"onClearClick()\">\n <eui-icon-svg icon=\"eui-close\" class=\"ux-clearable-input-wrapper__clear-icon\"></eui-icon-svg>\n </div>\n <mat-autocomplete #auto=\"matAutocomplete\" [displayWith]=\"displayFn\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\n {{ option }}\n </mat-option>\n </mat-autocomplete>\n\n <div class=\"ux-form-group__input-content\">\n <span *ngIf=\"suggestionsDataLoading\" class=\"ux-form-group__loading-indicator eui-icon eui-icon-refresh eui-icon-spin ux-u-color-primary\"></span>\n </div>\n </div>\n\n <span class=\"ux-input-group-append\" *ngIf=\"isDropdownFilter\">\n <ux-dropdown-button\n [hasItems]=\"dropdownFilterHasItems\"\n [links]=\"dropdownFilterLinks\"\n [styleClass]=\"'ux-dropdown-button-search ' + dropdownFilterStyleClass\"\n label=\"{{dropdownFilterLabel ? dropdownFilterLabel: ('eui.ADVANCEDSEARCH' | translate)}}\"\n [typeClass]=\"dropdownFilterTypeClass\"\n [iconClass]=\"dropdownFilterIconClass\"\n [isSplitButtonToggle]=\"dropdownFilterIsSplitButtonToggle\"\n [isDropDownRightAligned]=\"dropdownFilterIsDropDownRightAligned\"\n [isUpdateLabelFromSelectedItem]=\"dropdownFilterIsUpdateLabelFromSelectedItem\"\n [isOutline]=\"dropdownFilterIsOutline\"\n [isDisabled]=\"dropdownFilterIsDisabled\"\n [width]=\"dropdownFilterWidth\"\n [dropdownMaxHeight]=\"dropdownFilterMaxHeight\">\n\n <!-- <ng-container *ngIf=\"customFilterContent\"> -->\n <ng-content select=\"uxFieldSearchFilterContent\"></ng-content>\n <!-- </ng-container> -->\n\n </ux-dropdown-button>\n </span>\n\n <span class=\"ux-input-group-append\">\n <button class=\"ux-button ux-button--{{searchButtonTypeClass}} ux-field-search__search-button\" type=\"button\" (click)=\"onSearch($event)\">\n <span *ngIf=\"!searchButtonAsIcon\">{{searchButtonLabel ? searchButtonLabel: ('eui.SEARCH' | translate)}}</span>\n <eui-icon-svg *ngIf=\"searchButtonAsIcon\" icon=\"eui-search\" fillColor=\"white\"></eui-icon-svg>\n </button>\n </span>\n <span *ngIf=\"customFilterContent && isFilterButtonTrigger\" class=\"ux-input-group-append\">\n <button class=\"ux-button ux-button--secondary\" type=\"button\" (click)=\"isFilterActive = !isFilterActive\">\n <eui-icon-svg *ngIf=\"isFilterActive\" icon=\"eui-close\"></eui-icon-svg>\n <eui-icon-svg *ngIf=\"!isFilterActive\" icon=\"eui-filter\"></eui-icon-svg>\n </button>\n </span>\n </div>\n</div>\n", styles: [".ux-field-search{position:relative}.ux-field-search input,.ux-field-search .ui-widget input{height:calc(var(--eui-base-spacing-2xl) + 2px);padding-right:var(--eui-base-spacing-2xl)}.ux-field-search input.form-control{border-bottom-right-radius:0;border-top-right-radius:0}.ux-field-search .ux-dropdown-button{border-bottom:1px solid var(--eui-base-color-grey-20);border-radius:0;border-top:1px solid var(--eui-base-color-grey-20);box-shadow:none;height:calc(var(--eui-base-spacing-2xl) + 2px)}.ux-field-search .ux-dropdown-button:not(.ux-button--secondary){margin-left:-1px}.ux-field-search.ux-field-search__with-filter input.form-control{border-radius:0}.ux-field-search.ux-field-search__with-prepend-icon input.form-control{border-bottom-left-radius:0;border-top-left-radius:0}.ux-field-search__search-button{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:none;height:calc(var(--eui-base-spacing-2xl) + 2px)}.ux-field-search__search-button.ux-button--secondary{border:1px solid var(--eui-base-color-grey-20)}.ux-field-search__icon{font-size:var(--eui-base-font-size-xl);padding:0 var(--eui-base-spacing-3xs)}.ux-field-search .ux-clearable-input-wrapper .ux-clearable-input-wrapper__clear{position:relative}.ux-field-search .ux-clearable-input-wrapper .ux-clearable-input-wrapper__clear-icon{color:var(--eui-base-color-grey-35);font-size:var(--eui-base-font-size-m);position:absolute;right:var(--eui-base-spacing-s);top:calc(-1 * var(--eui-base-spacing-xs))}.ux-field-search .ux-clearable-input-wrapper .ux-clearable-input-wrapper__clear-icon:hover{color:var(--eui-base-color-grey-100);cursor:pointer}.ux-dropdown-button-search a{border:1px solid var(--eui-base-color-grey-20);border-left:1px solid var(--eui-base-color-grey-20);border-radius:0;box-shadow:0 0 #000000bf;margin-left:-1px;padding:var(--eui-base-spacing-xs) var(--eui-base-spacing-s)}\n"] }]
|
|
159
159
|
}], propDecorators: { styleClass: [{
|
|
160
160
|
type: Input
|
|
161
161
|
}], inputPlaceholderLabel: [{
|