monkey-style-guide-v2 0.0.120 → 0.0.121
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/assets/scss/partials/_variables.scss +2 -2
- package/fesm2022/monkey-style-guide-v2.mjs +1287 -1352
- package/fesm2022/monkey-style-guide-v2.mjs.map +1 -1
- package/index.d.ts +28 -29
- package/monkey-style-guide-v2-0.0.121.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-v2-0.0.120.tgz +0 -0
|
@@ -2,17 +2,17 @@ import { trigger, state, transition, style, animate, keyframes } from '@angular/
|
|
|
2
2
|
import * as i1 from '@angular/common';
|
|
3
3
|
import { CommonModule, NgTemplateOutlet, CurrencyPipe } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, input, Component, TemplateRef, inject, booleanAttribute, Input, HostBinding, ViewEncapsulation, output,
|
|
5
|
+
import { Injectable, input, Component, TemplateRef, inject, booleanAttribute, Input, HostBinding, ViewEncapsulation, output, InjectionToken, EventEmitter, Output, ViewContainerRef, ElementRef, NgZone, DestroyRef, Optional, Inject, Directive, LOCALE_ID, signal, computed, effect, HostListener, ContentChildren, ChangeDetectorRef, DEFAULT_CURRENCY_CODE, ContentChild, NgModule, ViewChild, Injector, forwardRef, ChangeDetectionStrategy, ViewChildren, DOCUMENT } from '@angular/core';
|
|
6
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
7
|
import * as i3 from '@angular/forms';
|
|
8
8
|
import { Validators, NgControl, FormsModule, ReactiveFormsModule, FormControlDirective, NgModel, FormControlName, FormGroupDirective, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
9
|
-
import { of, map, BehaviorSubject, firstValueFrom,
|
|
10
|
-
import { HttpClient } from '@angular/common/http';
|
|
9
|
+
import { filter, of, map, BehaviorSubject, firstValueFrom, merge, Subject, debounceTime, distinctUntilChanged, switchMap, catchError, Subscription } from 'rxjs';
|
|
11
10
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
12
11
|
import { Overlay, OverlayPositionBuilder, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';
|
|
13
12
|
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
14
13
|
import * as i1$2 from '@angular/router';
|
|
15
14
|
import { Router, NavigationStart, NavigationEnd } from '@angular/router';
|
|
15
|
+
import { HttpClient } from '@angular/common/http';
|
|
16
16
|
import { format, parseISO, addYears, subYears, subMonths, addMonths, getMonth, getYear, startOfWeek, startOfMonth, endOfWeek, endOfMonth, isSameMonth, isBefore, isAfter, isToday, addDays, isWithinInterval, subDays } from 'date-fns';
|
|
17
17
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
18
18
|
import { getSupportedInputTypes } from '@angular/cdk/platform';
|
|
@@ -31,10 +31,10 @@ class IdGenerator {
|
|
|
31
31
|
counters[prefix] = currentCount + 1;
|
|
32
32
|
return `${prefix}${currentCount}`;
|
|
33
33
|
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
35
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IdGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
35
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IdGenerator, providedIn: 'root' }); }
|
|
36
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IdGenerator, decorators: [{
|
|
38
38
|
type: Injectable,
|
|
39
39
|
args: [{ providedIn: 'root' }]
|
|
40
40
|
}] });
|
|
@@ -85,8 +85,8 @@ class UtilIconComponent {
|
|
|
85
85
|
constructor() {
|
|
86
86
|
this.name = input.required(...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
87
87
|
}
|
|
88
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
89
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: UtilIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: UtilIconComponent, isStandalone: true, selector: "util-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
90
90
|
@switch (name()) {
|
|
91
91
|
@case ('clear') {
|
|
92
92
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
|
|
@@ -342,7 +342,7 @@ class UtilIconComponent {
|
|
|
342
342
|
}
|
|
343
343
|
`, isInline: true, styles: [":host{display:flex;background-color:transparent}\n"] }); }
|
|
344
344
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: UtilIconComponent, decorators: [{
|
|
346
346
|
type: Component,
|
|
347
347
|
args: [{ selector: 'util-icon', template: `
|
|
348
348
|
@switch (name()) {
|
|
@@ -633,8 +633,8 @@ class MonkeyAccordionComponent {
|
|
|
633
633
|
return;
|
|
634
634
|
this.open = !this.open;
|
|
635
635
|
}
|
|
636
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
637
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyAccordionComponent, isStandalone: true, selector: "monkey-accordion", inputs: { open: ["open", "open", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], title: "title", id: "id" }, host: { attributes: { "data-testid": "monkey-accordion" }, properties: { "class.disabled": "disabled", "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<div class=\"header\" (click)=\"onClick()\">\n <div class=\"title\">\n @if (titleRef) {\n <ng-container *ngTemplateOutlet=\"titleRef\" />\n } @else {\n {{ titleStr }}\n }\n </div>\n <util-icon class=\"icon\" name=\"arrowDown\" [class.rotated]=\"open\" />\n</div>\n<div class=\"content-wrapper\">\n @if (open) {\n <div [@content]>\n <div class=\"content\">\n <ng-content />\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:flex;flex-direction:column;border-radius:16px;border:2px solid var(--mecx-color-gray-400);background:var(--mecx-color-white);overflow:hidden}:host .header{display:flex;align-items:center;justify-content:space-between;padding:24px;gap:24px;cursor:pointer}:host .header .title{color:var(--mecx-color-gray-900);font-size:18px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.54px}:host .header .icon{transform:rotate(0);transition:transform .2s ease-in-out}:host .header .icon.rotated{transform:rotate(180deg)}:host.disabled .header{cursor:not-allowed;background:var(--mecx-color-gray-200)}:host .content-wrapper{overflow:hidden}:host .content-wrapper .content{border-top:1px solid var(--mecx-color-gray-200);padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }], animations: [
|
|
638
638
|
trigger('content', [
|
|
639
639
|
state('void', style({
|
|
640
640
|
height: '0px'
|
|
@@ -652,7 +652,7 @@ class MonkeyAccordionComponent {
|
|
|
652
652
|
])
|
|
653
653
|
] }); }
|
|
654
654
|
}
|
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAccordionComponent, decorators: [{
|
|
656
656
|
type: Component,
|
|
657
657
|
args: [{ selector: 'monkey-accordion', imports: [CommonModule, UtilIconComponent], host: {
|
|
658
658
|
'data-testid': 'monkey-accordion',
|
|
@@ -700,16 +700,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
700
700
|
* MIT Licence
|
|
701
701
|
************************* */
|
|
702
702
|
class MonkeyActionBarComponent {
|
|
703
|
+
get classes() {
|
|
704
|
+
return this.position();
|
|
705
|
+
}
|
|
706
|
+
get id() {
|
|
707
|
+
return this._id;
|
|
708
|
+
}
|
|
709
|
+
set id(value) {
|
|
710
|
+
this._id = value || this._uid;
|
|
711
|
+
}
|
|
703
712
|
constructor() {
|
|
704
713
|
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
705
714
|
this.position = input(...(ngDevMode ? [undefined, { debugName: "position" }] : []));
|
|
706
715
|
this.open = input(...(ngDevMode ? [undefined, { debugName: "open" }] : []));
|
|
716
|
+
this._uid = inject(IdGenerator).getId('monkey-action-bar-');
|
|
717
|
+
// eslint-disable-next-line no-self-assign
|
|
718
|
+
this.id = this.id;
|
|
707
719
|
}
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
711
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyActionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
712
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: MonkeyActionBarComponent, isStandalone: true, selector: "monkey-action-bar", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-action-bar" }, properties: { "attr.id": "id", "id": "id", "class.open": "open()", "class": "this.classes" } }, ngImport: i0, template: `@if (open()) {
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyActionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
721
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyActionBarComponent, isStandalone: true, selector: "monkey-action-bar", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-action-bar" }, properties: { "attr.id": "id", "id": "id", "class.open": "open()", "class": "this.classes" } }, ngImport: i0, template: `@if (open()) {
|
|
713
722
|
<span style="font-size: 13px" data-testid="label" *ngIf="label() as lb">
|
|
714
723
|
{{ lb }}
|
|
715
724
|
</span>
|
|
@@ -717,7 +726,7 @@ class MonkeyActionBarComponent {
|
|
|
717
726
|
<ng-content></ng-content>
|
|
718
727
|
}`, isInline: true, styles: ["monkey-action-bar{background-color:var(--mecx-color-white);border-radius:12px;position:fixed;bottom:60px;gap:24px;display:none;align-items:center;padding:4px 4px 4px 24px;border:2px solid var(--mecx-color-gray-200);box-shadow:0 8px 12px -4px var(--mecx-color-box-shadow),0 8px 8px 0 var(--mecx-color-box-shadow),0 16px 16px 8px var(--mecx-color-box-shadow);z-index:999}monkey-action-bar.center{left:50%;transform:translate(-50%)}monkey-action-bar.right{right:60px}monkey-action-bar.left{left:60px}monkey-action-bar.open{display:flex}@media (851px < width < 1315px){monkey-action-bar{left:60px!important;transform:translate(0)!important}}@media (width < 852px){monkey-action-bar{flex-direction:column;padding:16px}monkey-action-bar>*:before{content:initial!important;padding:16px!important}}@media (width < 450px){monkey-action-bar{flex-direction:column;left:24px!important;right:24px!important;bottom:24px!important;transform:translate(0)!important}monkey-action-bar>*:before{content:initial!important;padding:16px!important}}monkey-action-bar>*:not(:first-child){flex-shrink:0;display:inline-flex}monkey-action-bar>*:not(:first-child):before{content:\"\";display:flex;box-sizing:border-box;width:1px;background-color:var(--mecx-color-gray-200);margin-right:24px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
719
728
|
}
|
|
720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyActionBarComponent, decorators: [{
|
|
721
730
|
type: Component,
|
|
722
731
|
args: [{ encapsulation: ViewEncapsulation.None, imports: [CommonModule], selector: 'monkey-action-bar', template: `@if (open()) {
|
|
723
732
|
<span style="font-size: 13px" data-testid="label" *ngIf="label() as lb">
|
|
@@ -731,10 +740,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
731
740
|
'[id]': 'id',
|
|
732
741
|
'[class.open]': 'open()'
|
|
733
742
|
}, styles: ["monkey-action-bar{background-color:var(--mecx-color-white);border-radius:12px;position:fixed;bottom:60px;gap:24px;display:none;align-items:center;padding:4px 4px 4px 24px;border:2px solid var(--mecx-color-gray-200);box-shadow:0 8px 12px -4px var(--mecx-color-box-shadow),0 8px 8px 0 var(--mecx-color-box-shadow),0 16px 16px 8px var(--mecx-color-box-shadow);z-index:999}monkey-action-bar.center{left:50%;transform:translate(-50%)}monkey-action-bar.right{right:60px}monkey-action-bar.left{left:60px}monkey-action-bar.open{display:flex}@media (851px < width < 1315px){monkey-action-bar{left:60px!important;transform:translate(0)!important}}@media (width < 852px){monkey-action-bar{flex-direction:column;padding:16px}monkey-action-bar>*:before{content:initial!important;padding:16px!important}}@media (width < 450px){monkey-action-bar{flex-direction:column;left:24px!important;right:24px!important;bottom:24px!important;transform:translate(0)!important}monkey-action-bar>*:before{content:initial!important;padding:16px!important}}monkey-action-bar>*:not(:first-child){flex-shrink:0;display:inline-flex}monkey-action-bar>*:not(:first-child):before{content:\"\";display:flex;box-sizing:border-box;width:1px;background-color:var(--mecx-color-gray-200);margin-right:24px}\n"] }]
|
|
734
|
-
}], propDecorators: { classes: [{
|
|
743
|
+
}], ctorParameters: () => [], propDecorators: { classes: [{
|
|
735
744
|
type: HostBinding,
|
|
736
745
|
args: ['class']
|
|
737
|
-
}], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }]
|
|
746
|
+
}], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], id: [{
|
|
747
|
+
type: Input
|
|
748
|
+
}] } });
|
|
738
749
|
|
|
739
750
|
/** ************************
|
|
740
751
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
@@ -771,10 +782,10 @@ class MonkeyIconComponent {
|
|
|
771
782
|
throw new Error('monkey-icon must have icon input');
|
|
772
783
|
}
|
|
773
784
|
}
|
|
774
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
775
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
785
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
786
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyIconComponent, isStandalone: true, selector: "monkey-icon", inputs: { icon: "icon", size: "size", id: "id" }, host: { properties: { "class": "_icon+' '+size", "attr.id": "id", "id": "id" } }, ngImport: i0, template: '', isInline: true, styles: ["monkey-icon{display:inline-flex;align-items:center;justify-content:center}monkey-icon.sm{font-size:16px;width:16px;height:16px}monkey-icon.md{font-size:18px;width:18px;height:18px}monkey-icon.lg{font-size:24px;width:24px;height:24px}monkey-icon.xl{font-size:32px;width:32px;height:32px}monkey-icon.xxl{font-size:48px;width:48px;height:48px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
776
787
|
}
|
|
777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyIconComponent, decorators: [{
|
|
778
789
|
type: Component,
|
|
779
790
|
args: [{ selector: 'monkey-icon', imports: [CommonModule], template: '', encapsulation: ViewEncapsulation.None, host: {
|
|
780
791
|
'[class]': `_icon+' '+size`,
|
|
@@ -827,10 +838,10 @@ class MonkeyAlertComponent {
|
|
|
827
838
|
};
|
|
828
839
|
return typeIcons[type];
|
|
829
840
|
}
|
|
830
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
831
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
842
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyAlertComponent, isStandalone: true, selector: "monkey-alert", inputs: { buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: true, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onButtonClicked: "onButtonClicked" }, host: { attributes: { "data-testid": "monkey-alert" }, properties: { "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<div [class]=\"'monkey-alert__card ' + type()\">\n @if (type()) {\n <monkey-icon size=\"lg\" [class]=\"'monkey-alert__card__type-' + type()\" [icon]=\"icon(type())\" />\n }\n <div class=\"monkey-alert__card__content\">\n <h4 class=\"monkey-alert__card__title\">{{ title() }}</h4>\n <h5 class=\"monkey-alert__card__message\">{{ message() }}</h5>\n @if (buttonLabel()) {\n <div>\n <a\n href=\"javascript:void(0)\"\n class=\"mecx-link fw-medium fs-base\"\n (click)=\"onButtonClicked.emit()\"\n >\n <span>{{ buttonLabel() }}</span>\n </a>\n </div>\n }\n </div>\n</div>\n", styles: ["monkey-alert{display:flex}monkey-alert .mecx-link{letter-spacing:.42px}monkey-alert .monkey-alert__card{border-radius:8px;display:flex;gap:var(--mecx-spaces-xs);padding:var(--mecx-spaces-cozy)}monkey-alert .monkey-alert__card.alert{background-color:var(--mecx-color-warning-100);border:solid 2px var(--mecx-color-warning-500)}monkey-alert .monkey-alert__card.alert>.mk-i{color:var(--mecx-color-warning-500)}monkey-alert .monkey-alert__card.default{background-color:var(--mecx-color-gray-50);border:solid 2px var(--mecx-color-gray-400)}monkey-alert .monkey-alert__card.default>.mk-i{color:var(--mecx-color-gray-900)}monkey-alert .monkey-alert__card.error{background-color:var(--mecx-color-error-100);border:solid 2px var(--mecx-color-error-500)}monkey-alert .monkey-alert__card.error>.mk-i{color:var(--mecx-color-error-500)}monkey-alert .monkey-alert__card.info{background-color:var(--mecx-color-question-100);border:solid 2px var(--mecx-color-question-500)}monkey-alert .monkey-alert__card.info>.mk-i{color:var(--mecx-color-question-500)}monkey-alert .monkey-alert__card.success{background-color:var(--mecx-color-success-100);border:solid 2px var(--mecx-color-success-500)}monkey-alert .monkey-alert__card.success>.mk-i{color:var(--mecx-color-success-500)}monkey-alert .monkey-alert__card__content{display:flex;flex-direction:column}monkey-alert .monkey-alert__card__title{color:var(--mecx-color-gray-900);font-size:var(--mecx-fs-base);font-weight:var(--mecx-fw-semibold);letter-spacing:.14px;line-height:var(--mecx-lh-24)}monkey-alert .monkey-alert__card__message{color:var(--mecx-color-gray-700);font-size:var(--mecx-fs-xxs);font-weight:var(--mecx-fw-regular);letter-spacing:.14px;line-height:var(--mecx-lh-24);margin-bottom:8px}\n"], dependencies: [{ kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
832
843
|
}
|
|
833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAlertComponent, decorators: [{
|
|
834
845
|
type: Component,
|
|
835
846
|
args: [{ encapsulation: ViewEncapsulation.None, imports: [MonkeyIconComponent], selector: 'monkey-alert', host: {
|
|
836
847
|
'data-testid': 'monkey-alert',
|
|
@@ -847,79 +858,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
847
858
|
* MIT Licence
|
|
848
859
|
************************* */
|
|
849
860
|
|
|
850
|
-
/** ************************
|
|
851
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
852
|
-
* This style guide was developed by Monkey Exchange Team
|
|
853
|
-
* MIT Licence
|
|
854
|
-
************************* */
|
|
855
|
-
class MonkeyBadgeDirective {
|
|
856
|
-
constructor(el, renderer) {
|
|
857
|
-
this.el = el;
|
|
858
|
-
this.renderer = renderer;
|
|
859
|
-
this.badgePosition = 'right';
|
|
860
|
-
this.badgeSize = 'md';
|
|
861
|
-
this.badgeHidden = false;
|
|
862
|
-
this.monkeyBadge = '';
|
|
863
|
-
this.badgeBackground = null;
|
|
864
|
-
this.badgeColor = null;
|
|
865
|
-
this.badgeEl = null;
|
|
866
|
-
// not to do
|
|
867
|
-
}
|
|
868
|
-
ngOnChanges() {
|
|
869
|
-
const { badgeHidden, badgeEl, renderer, el } = this;
|
|
870
|
-
if (badgeHidden) {
|
|
871
|
-
this.removeBadge();
|
|
872
|
-
return;
|
|
873
|
-
}
|
|
874
|
-
if (!badgeEl) {
|
|
875
|
-
this.badgeEl = renderer.createElement('span');
|
|
876
|
-
renderer.setStyle(el.nativeElement, 'position', 'relative');
|
|
877
|
-
renderer.appendChild(el.nativeElement, this.badgeEl);
|
|
878
|
-
}
|
|
879
|
-
this.updateBadge();
|
|
880
|
-
}
|
|
881
|
-
updateBadge() {
|
|
882
|
-
const { badgeEl, renderer, monkeyBadge, badgeSize, badgeColor, badgePosition, badgeBackground } = this;
|
|
883
|
-
renderer.addClass(badgeEl, 'monkey-badge');
|
|
884
|
-
renderer.addClass(badgeEl, `monkey-badge-${badgeSize}`);
|
|
885
|
-
renderer.addClass(badgeEl, `monkey-badge-${badgePosition}`);
|
|
886
|
-
renderer.setAttribute(badgeEl, 'style', `
|
|
887
|
-
--badge-background: ${badgeBackground ?? 'unset'};
|
|
888
|
-
--badge-color: ${badgeColor ?? 'unset'}
|
|
889
|
-
`);
|
|
890
|
-
this.renderer.setProperty(this.badgeEl, 'textContent', monkeyBadge);
|
|
891
|
-
}
|
|
892
|
-
removeBadge() {
|
|
893
|
-
const { renderer, el, badgeEl } = this;
|
|
894
|
-
if (!el.nativeElement || !badgeEl)
|
|
895
|
-
return;
|
|
896
|
-
renderer.removeChild(el.nativeElement, badgeEl);
|
|
897
|
-
renderer.removeStyle(el.nativeElement, 'position');
|
|
898
|
-
this.badgeEl = null;
|
|
899
|
-
}
|
|
900
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyBadgeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
901
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.14", type: MonkeyBadgeDirective, isStandalone: false, selector: "[monkeyBadge]", inputs: { badgePosition: "badgePosition", badgeSize: "badgeSize", badgeHidden: "badgeHidden", monkeyBadge: "monkeyBadge", badgeBackground: "badgeBackground", badgeColor: "badgeColor" }, usesOnChanges: true, ngImport: i0 }); }
|
|
902
|
-
}
|
|
903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyBadgeDirective, decorators: [{
|
|
904
|
-
type: Directive,
|
|
905
|
-
args: [{
|
|
906
|
-
selector: '[monkeyBadge]',
|
|
907
|
-
standalone: false
|
|
908
|
-
}]
|
|
909
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { badgePosition: [{
|
|
910
|
-
type: Input
|
|
911
|
-
}], badgeSize: [{
|
|
912
|
-
type: Input
|
|
913
|
-
}], badgeHidden: [{
|
|
914
|
-
type: Input
|
|
915
|
-
}], monkeyBadge: [{
|
|
916
|
-
type: Input
|
|
917
|
-
}], badgeBackground: [{
|
|
918
|
-
type: Input
|
|
919
|
-
}], badgeColor: [{
|
|
920
|
-
type: Input
|
|
921
|
-
}] } });
|
|
922
|
-
|
|
923
861
|
/** ************************
|
|
924
862
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
925
863
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -938,906 +876,913 @@ function injectTokenWithWarning(token, name) {
|
|
|
938
876
|
return value;
|
|
939
877
|
}
|
|
940
878
|
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
879
|
+
/** ************************
|
|
880
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
881
|
+
* This style guide was developed by Monkey Exchange Team
|
|
882
|
+
* MIT Licence
|
|
883
|
+
************************* */
|
|
884
|
+
class MonkeyPopoverContentComponent {
|
|
885
|
+
constructor(host) {
|
|
886
|
+
this.host = host;
|
|
887
|
+
this.onClose = new EventEmitter();
|
|
888
|
+
this.enableAutofocus = false;
|
|
889
|
+
// not to do
|
|
945
890
|
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
891
|
+
ngAfterViewInit() {
|
|
892
|
+
if (this.enableAutofocus) {
|
|
893
|
+
setTimeout(() => {
|
|
894
|
+
const focusable = this.host.nativeElement.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
895
|
+
focusable?.focus();
|
|
950
896
|
});
|
|
951
|
-
return result?.[field] || '';
|
|
952
|
-
};
|
|
953
|
-
return places.map((_) => {
|
|
954
|
-
const { addressComponents } = _;
|
|
955
|
-
const address = getComponent(addressComponents, 'route');
|
|
956
|
-
const addressNumber = getComponent(addressComponents, 'street_number');
|
|
957
|
-
const neighborhood = getComponent(addressComponents, 'sublocality_level_1');
|
|
958
|
-
const city = getComponent(addressComponents, 'administrative_area_level_2');
|
|
959
|
-
const state = getComponent(addressComponents, 'administrative_area_level_1');
|
|
960
|
-
const country = getComponent(addressComponents, 'country', 'shortText');
|
|
961
|
-
const zipCode = getComponent(addressComponents, 'postal_code');
|
|
962
|
-
return {
|
|
963
|
-
formattedAddress: _.formattedAddress,
|
|
964
|
-
adrFormatAddress: _.adrFormatAddress,
|
|
965
|
-
address,
|
|
966
|
-
addressNumber,
|
|
967
|
-
neighborhood,
|
|
968
|
-
city,
|
|
969
|
-
state,
|
|
970
|
-
country,
|
|
971
|
-
zipCode
|
|
972
|
-
};
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
get(textQuery) {
|
|
976
|
-
if (!textQuery) {
|
|
977
|
-
return of([]);
|
|
978
897
|
}
|
|
979
|
-
return this._http
|
|
980
|
-
.post('https://places.googleapis.com/v1/places:searchText', {
|
|
981
|
-
textQuery
|
|
982
|
-
}, {
|
|
983
|
-
headers: {
|
|
984
|
-
'X-Goog-Api-Key': this._googleApiKey,
|
|
985
|
-
'X-Goog-FieldMask': 'places.formattedAddress,places.addressComponents,places.displayName,places.adrFormatAddress'
|
|
986
|
-
}
|
|
987
|
-
})
|
|
988
|
-
.pipe(map((resp) => {
|
|
989
|
-
return this.mappingData(resp.places);
|
|
990
|
-
}));
|
|
991
898
|
}
|
|
992
|
-
|
|
993
|
-
|
|
899
|
+
isTemplate(value) {
|
|
900
|
+
return value instanceof TemplateRef;
|
|
901
|
+
}
|
|
902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPopoverContentComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
903
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyPopoverContentComponent, isStandalone: true, selector: "monkey-popover-content", inputs: { title: "title", content: "content", actions: "actions", hideHeader: ["hideHeader", "hideHeader", booleanAttribute], hideClose: ["hideClose", "hideClose", booleanAttribute], hideActions: ["hideActions", "hideActions", booleanAttribute], enableAutofocus: "enableAutofocus" }, outputs: { onClose: "onClose" }, ngImport: i0, template: `
|
|
904
|
+
<div class="mecx-popover-container">
|
|
905
|
+
@if (!hideHeader) {
|
|
906
|
+
<div class="mecx-popover-header">
|
|
907
|
+
@if (title) {
|
|
908
|
+
<div>
|
|
909
|
+
<ng-container *ngIf="isTemplate(title); else stringTitle">
|
|
910
|
+
<ng-container *ngTemplateOutlet="title"></ng-container>
|
|
911
|
+
</ng-container>
|
|
912
|
+
<ng-template #stringTitle>
|
|
913
|
+
{{ title }}
|
|
914
|
+
</ng-template>
|
|
915
|
+
</div>
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
@if (!hideClose) {
|
|
919
|
+
<util-icon class="mecx-popover-close" name="clear" (click)="onClose.next(null)" />
|
|
920
|
+
}
|
|
921
|
+
</div>
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
<div class="mecx-popover-content" [class.add-radius]="hideHeader">
|
|
925
|
+
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
926
|
+
</div>
|
|
927
|
+
|
|
928
|
+
@if (!hideActions) {
|
|
929
|
+
<div class="mecx-popover-actions" *ngIf="actions">
|
|
930
|
+
<ng-container *ngIf="isTemplate(actions); else stringActions">
|
|
931
|
+
<ng-container *ngTemplateOutlet="actions"></ng-container>
|
|
932
|
+
</ng-container>
|
|
933
|
+
<ng-template #stringActions>
|
|
934
|
+
<span>{{ actions }}</span>
|
|
935
|
+
</ng-template>
|
|
936
|
+
</div>
|
|
937
|
+
}
|
|
938
|
+
</div>
|
|
939
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }] }); }
|
|
994
940
|
}
|
|
995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
996
|
-
type:
|
|
997
|
-
args: [{
|
|
998
|
-
|
|
941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPopoverContentComponent, decorators: [{
|
|
942
|
+
type: Component,
|
|
943
|
+
args: [{
|
|
944
|
+
selector: 'monkey-popover-content',
|
|
945
|
+
imports: [CommonModule, NgTemplateOutlet, UtilIconComponent],
|
|
946
|
+
template: `
|
|
947
|
+
<div class="mecx-popover-container">
|
|
948
|
+
@if (!hideHeader) {
|
|
949
|
+
<div class="mecx-popover-header">
|
|
950
|
+
@if (title) {
|
|
951
|
+
<div>
|
|
952
|
+
<ng-container *ngIf="isTemplate(title); else stringTitle">
|
|
953
|
+
<ng-container *ngTemplateOutlet="title"></ng-container>
|
|
954
|
+
</ng-container>
|
|
955
|
+
<ng-template #stringTitle>
|
|
956
|
+
{{ title }}
|
|
957
|
+
</ng-template>
|
|
958
|
+
</div>
|
|
959
|
+
}
|
|
999
960
|
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
class
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
LAST_12_MONTHS: 'Ultimos 12 meses',
|
|
1048
|
-
NEXT_30_DAYS: 'Próximos 30 dias',
|
|
1049
|
-
NEXT_60_DAYS: 'Próximos 60 dias',
|
|
1050
|
-
NEXT_90_DAYS: 'Próximos 90 dias',
|
|
1051
|
-
NEXT_6_MONTHS: 'Próximos 6 meses',
|
|
1052
|
-
NEXT_12_MONTHS: 'Próximos 12 meses'
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
'es-CL': {
|
|
1057
|
-
EDIT: 'Editar',
|
|
1058
|
-
'NO-RESULTS': 'No se encontraron resultados',
|
|
1059
|
-
'NO-DATA': 'Sin datos',
|
|
1060
|
-
'NO-DATA-ADDRESS': 'No se encontraron direcciones con esta búsqueda',
|
|
1061
|
-
'NOT-PROVIDED': 'No informado',
|
|
1062
|
-
LOADING: 'Cargando...',
|
|
1063
|
-
'DATE-RANGE': {
|
|
1064
|
-
'START-DATE': 'Fecha de inicio',
|
|
1065
|
-
'END-DATE': 'Fecha de termino',
|
|
1066
|
-
INVALID: 'Rango de fechas no válido',
|
|
1067
|
-
ACTIONS: {
|
|
1068
|
-
CANCEL: 'Cancelar',
|
|
1069
|
-
APPLY: 'Aplicar'
|
|
1070
|
-
},
|
|
1071
|
-
'WEEK-DAYS': ['Dom.', 'Lun.', 'Mar.', 'Mié.', 'Jue.', 'Vie.', 'Sab.'],
|
|
1072
|
-
MONTHS: {
|
|
1073
|
-
0: 'Enero',
|
|
1074
|
-
1: 'Febrero',
|
|
1075
|
-
2: 'Marzo',
|
|
1076
|
-
3: 'Abril',
|
|
1077
|
-
4: 'Mayo',
|
|
1078
|
-
5: 'Junio',
|
|
1079
|
-
6: 'Julio',
|
|
1080
|
-
7: 'Agosto',
|
|
1081
|
-
8: 'Septiembre',
|
|
1082
|
-
9: 'Octubre',
|
|
1083
|
-
10: 'Noviembre',
|
|
1084
|
-
11: 'Diciembre'
|
|
1085
|
-
},
|
|
1086
|
-
'QUICK-ACTIONS': {
|
|
1087
|
-
CUSTOM: 'Personalizado',
|
|
1088
|
-
LAST_30_DAYS: 'Últimos 30 días',
|
|
1089
|
-
LAST_60_DAYS: 'Últimos 60 días',
|
|
1090
|
-
LAST_90_DAYS: 'Últimos 90 días',
|
|
1091
|
-
LAST_6_MONTHS: 'Últimos 6 meses',
|
|
1092
|
-
LAST_12_MONTHS: 'Últimos 12 meses',
|
|
1093
|
-
NEXT_30_DAYS: 'Próximos 30 días',
|
|
1094
|
-
NEXT_60_DAYS: 'Próximos 60 días',
|
|
1095
|
-
NEXT_90_DAYS: 'Próximos 90 días',
|
|
1096
|
-
NEXT_6_MONTHS: 'Próximos 6 meses',
|
|
1097
|
-
NEXT_12_MONTHS: 'Próximos 12 meses'
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
},
|
|
1101
|
-
'es-MX': {
|
|
1102
|
-
EDIT: 'Editar',
|
|
1103
|
-
'NO-RESULTS': 'No se encontraron resultados',
|
|
1104
|
-
'NO-DATA': 'Sin datos',
|
|
1105
|
-
'NO-DATA-ADDRESS': 'No se encontraron direcciones con esta búsqueda',
|
|
1106
|
-
'NOT-PROVIDED': 'No informado',
|
|
1107
|
-
LOADING: 'Cargando...',
|
|
1108
|
-
'DATE-RANGE': {
|
|
1109
|
-
'START-DATE': 'Fecha de inicio',
|
|
1110
|
-
'END-DATE': 'Fecha de termino',
|
|
1111
|
-
INVALID: 'Rango de fechas no válido',
|
|
1112
|
-
ACTIONS: {
|
|
1113
|
-
CANCEL: 'Cancelar',
|
|
1114
|
-
APPLY: 'Aplicar'
|
|
1115
|
-
},
|
|
1116
|
-
'WEEK-DAYS': ['Dom.', 'Lun.', 'Mar.', 'Mié.', 'Jue.', 'Vie.', 'Sab.'],
|
|
1117
|
-
MONTHS: {
|
|
1118
|
-
0: 'Enero',
|
|
1119
|
-
1: 'Febrero',
|
|
1120
|
-
2: 'Marzo',
|
|
1121
|
-
3: 'Abril',
|
|
1122
|
-
4: 'Mayo',
|
|
1123
|
-
5: 'Junio',
|
|
1124
|
-
6: 'Julio',
|
|
1125
|
-
7: 'Agosto',
|
|
1126
|
-
8: 'Septiembre',
|
|
1127
|
-
9: 'Octubre',
|
|
1128
|
-
10: 'Noviembre',
|
|
1129
|
-
11: 'Diciembre'
|
|
1130
|
-
},
|
|
1131
|
-
'QUICK-ACTIONS': {
|
|
1132
|
-
CUSTOM: 'Personalizado',
|
|
1133
|
-
LAST_30_DAYS: 'Últimos 30 días',
|
|
1134
|
-
LAST_60_DAYS: 'Últimos 60 días',
|
|
1135
|
-
LAST_90_DAYS: 'Últimos 90 días',
|
|
1136
|
-
LAST_6_MONTHS: 'Últimos 6 meses',
|
|
1137
|
-
LAST_12_MONTHS: 'Últimos 12 meses',
|
|
1138
|
-
NEXT_30_DAYS: 'Próximos 30 días',
|
|
1139
|
-
NEXT_60_DAYS: 'Próximos 60 días',
|
|
1140
|
-
NEXT_90_DAYS: 'Próximos 90 días',
|
|
1141
|
-
NEXT_6_MONTHS: 'Próximos 6 meses',
|
|
1142
|
-
NEXT_12_MONTHS: 'Próximos 12 meses'
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
},
|
|
1146
|
-
'en-US': {
|
|
1147
|
-
EDIT: 'Edit',
|
|
1148
|
-
'NO-RESULTS': 'No results found',
|
|
1149
|
-
'NO-DATA': 'No data',
|
|
1150
|
-
'NO-DATA-ADDRESS': 'No address found with this search',
|
|
1151
|
-
'NOT-PROVIDED': 'Not provided',
|
|
1152
|
-
LOADING: 'Loading...',
|
|
1153
|
-
'DATE-RANGE': {
|
|
1154
|
-
'START-DATE': 'Start date',
|
|
1155
|
-
'END-DATE': 'End Date',
|
|
1156
|
-
INVALID: 'Invalid date range',
|
|
1157
|
-
ACTIONS: {
|
|
1158
|
-
CANCEL: 'Cancel',
|
|
1159
|
-
APPLY: 'Apply'
|
|
1160
|
-
},
|
|
1161
|
-
'WEEK-DAYS': ['Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.'],
|
|
1162
|
-
MONTHS: {
|
|
1163
|
-
0: 'January',
|
|
1164
|
-
1: 'February',
|
|
1165
|
-
2: 'March',
|
|
1166
|
-
3: 'April',
|
|
1167
|
-
4: 'May',
|
|
1168
|
-
5: 'June',
|
|
1169
|
-
6: 'July',
|
|
1170
|
-
7: 'August',
|
|
1171
|
-
8: 'September',
|
|
1172
|
-
9: 'October',
|
|
1173
|
-
10: 'November',
|
|
1174
|
-
11: 'December'
|
|
1175
|
-
},
|
|
1176
|
-
'QUICK-ACTIONS': {
|
|
1177
|
-
CUSTOM: 'Custom',
|
|
1178
|
-
LAST_30_DAYS: 'Last 30 days',
|
|
1179
|
-
LAST_60_DAYS: 'Last 60 days',
|
|
1180
|
-
LAST_90_DAYS: 'Last 90 days',
|
|
1181
|
-
LAST_6_MONTHS: 'Last 6 months',
|
|
1182
|
-
LAST_12_MONTHS: 'Last 12 months',
|
|
1183
|
-
NEXT_30_DAYS: 'Next 30 days',
|
|
1184
|
-
NEXT_60_DAYS: 'Next 60 days',
|
|
1185
|
-
NEXT_90_DAYS: 'Next 90 days',
|
|
1186
|
-
NEXT_6_MONTHS: 'Next 6 months',
|
|
1187
|
-
NEXT_12_MONTHS: 'Next 12 months'
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
});
|
|
1192
|
-
const tokenSubject = inject(MECX_I18N_WRAPPER, { optional: true });
|
|
1193
|
-
tokenSubject?.pipe(takeUntilDestroyed(this._destroyRef)).subscribe((value) => {
|
|
1194
|
-
this.handleWrapperValues(value);
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
handleWrapperValues(value) {
|
|
1198
|
-
try {
|
|
1199
|
-
const locale = this._localeId || 'pt-BR';
|
|
1200
|
-
const wrappedData = JSON.parse(value);
|
|
1201
|
-
const currentData = this._data$.value;
|
|
1202
|
-
const updated = {
|
|
1203
|
-
...currentData,
|
|
1204
|
-
[locale]: {
|
|
1205
|
-
...currentData[locale],
|
|
1206
|
-
...wrappedData
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
|
-
this._data$.next(updated);
|
|
961
|
+
@if (!hideClose) {
|
|
962
|
+
<util-icon class="mecx-popover-close" name="clear" (click)="onClose.next(null)" />
|
|
963
|
+
}
|
|
964
|
+
</div>
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
<div class="mecx-popover-content" [class.add-radius]="hideHeader">
|
|
968
|
+
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
969
|
+
</div>
|
|
970
|
+
|
|
971
|
+
@if (!hideActions) {
|
|
972
|
+
<div class="mecx-popover-actions" *ngIf="actions">
|
|
973
|
+
<ng-container *ngIf="isTemplate(actions); else stringActions">
|
|
974
|
+
<ng-container *ngTemplateOutlet="actions"></ng-container>
|
|
975
|
+
</ng-container>
|
|
976
|
+
<ng-template #stringActions>
|
|
977
|
+
<span>{{ actions }}</span>
|
|
978
|
+
</ng-template>
|
|
979
|
+
</div>
|
|
980
|
+
}
|
|
981
|
+
</div>
|
|
982
|
+
`
|
|
983
|
+
}]
|
|
984
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { title: [{
|
|
985
|
+
type: Input
|
|
986
|
+
}], content: [{
|
|
987
|
+
type: Input
|
|
988
|
+
}], actions: [{
|
|
989
|
+
type: Input
|
|
990
|
+
}], onClose: [{
|
|
991
|
+
type: Output
|
|
992
|
+
}], hideHeader: [{
|
|
993
|
+
type: Input,
|
|
994
|
+
args: [{ transform: booleanAttribute }]
|
|
995
|
+
}], hideClose: [{
|
|
996
|
+
type: Input,
|
|
997
|
+
args: [{ transform: booleanAttribute }]
|
|
998
|
+
}], hideActions: [{
|
|
999
|
+
type: Input,
|
|
1000
|
+
args: [{ transform: booleanAttribute }]
|
|
1001
|
+
}], enableAutofocus: [{
|
|
1002
|
+
type: Input
|
|
1003
|
+
}] } });
|
|
1004
|
+
class MonkeyPopoverDirective {
|
|
1005
|
+
set popover(show) {
|
|
1006
|
+
if (this._show === show) {
|
|
1007
|
+
return;
|
|
1210
1008
|
}
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1009
|
+
this._show = show;
|
|
1010
|
+
if (show) {
|
|
1011
|
+
setTimeout(() => {
|
|
1012
|
+
this.createPopover();
|
|
1013
|
+
}, 0);
|
|
1014
|
+
}
|
|
1015
|
+
else {
|
|
1016
|
+
this.disposePopover();
|
|
1214
1017
|
}
|
|
1215
1018
|
}
|
|
1216
|
-
get(
|
|
1217
|
-
|
|
1218
|
-
return this._data$.pipe(map((data) => {
|
|
1219
|
-
return data[locale]?.[key] ?? null;
|
|
1220
|
-
}));
|
|
1019
|
+
get popover() {
|
|
1020
|
+
return this._show;
|
|
1221
1021
|
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
}
|
|
1225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDictionaryService, decorators: [{
|
|
1226
|
-
type: Injectable,
|
|
1227
|
-
args: [{
|
|
1228
|
-
providedIn: 'root'
|
|
1229
|
-
}]
|
|
1230
|
-
}], ctorParameters: () => [] });
|
|
1231
|
-
|
|
1232
|
-
/** ************************
|
|
1233
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1234
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1235
|
-
* MIT Licence
|
|
1236
|
-
************************* */
|
|
1237
|
-
class MonkeyStepperService {
|
|
1238
|
-
constructor() {
|
|
1239
|
-
this._steppers = signal(new Map(), ...(ngDevMode ? [{ debugName: "_steppers" }] : []));
|
|
1022
|
+
set target(value) {
|
|
1023
|
+
this._target = value;
|
|
1240
1024
|
}
|
|
1241
|
-
|
|
1242
|
-
return
|
|
1243
|
-
return this._steppers().get(id);
|
|
1244
|
-
});
|
|
1025
|
+
get target() {
|
|
1026
|
+
return this._target;
|
|
1245
1027
|
}
|
|
1246
|
-
|
|
1247
|
-
this.
|
|
1248
|
-
|
|
1249
|
-
|
|
1028
|
+
constructor() {
|
|
1029
|
+
this._tpl = inject(TemplateRef);
|
|
1030
|
+
this._vcr = inject(ViewContainerRef);
|
|
1031
|
+
this._el = inject(ElementRef);
|
|
1032
|
+
this._zone = inject(NgZone);
|
|
1033
|
+
this._overlay = inject(Overlay);
|
|
1034
|
+
this._overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
1035
|
+
this._router = inject(Router);
|
|
1036
|
+
this._destroyRef = inject(DestroyRef);
|
|
1037
|
+
this._show = false;
|
|
1038
|
+
this.minwidth = false;
|
|
1039
|
+
this.backdrop = true;
|
|
1040
|
+
this.watch = false;
|
|
1041
|
+
this.dir = 'ltr';
|
|
1042
|
+
this.contextmenu = false;
|
|
1043
|
+
this._router.events
|
|
1044
|
+
.pipe(filter((event) => {
|
|
1045
|
+
return event instanceof NavigationStart;
|
|
1046
|
+
}), takeUntilDestroyed(this._destroyRef))
|
|
1047
|
+
.subscribe(() => {
|
|
1048
|
+
this.closePopover();
|
|
1049
|
+
});
|
|
1250
1050
|
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyStepperService, decorators: [{
|
|
1255
|
-
type: Injectable,
|
|
1256
|
-
args: [{
|
|
1257
|
-
providedIn: 'root'
|
|
1258
|
-
}]
|
|
1259
|
-
}] });
|
|
1260
|
-
|
|
1261
|
-
class MonkeyToastRef {
|
|
1262
|
-
constructor(componentRef) {
|
|
1263
|
-
this.componentRef = componentRef;
|
|
1264
|
-
// not to do
|
|
1051
|
+
ngOnDestroy() {
|
|
1052
|
+
this.disposePopover();
|
|
1053
|
+
this._resizeObserver?.disconnect();
|
|
1265
1054
|
}
|
|
1266
|
-
|
|
1267
|
-
this.
|
|
1055
|
+
closePopover(event) {
|
|
1056
|
+
if (this._show) {
|
|
1057
|
+
this._show = false;
|
|
1058
|
+
this.disposePopover();
|
|
1059
|
+
this._zone.run(() => {
|
|
1060
|
+
this.closed?.(event);
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1268
1063
|
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
/** ************************
|
|
1278
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1279
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1280
|
-
* MIT Licence
|
|
1281
|
-
************************* */
|
|
1282
|
-
class MonkeyToastService {
|
|
1283
|
-
constructor() {
|
|
1284
|
-
this.overlay = inject(Overlay);
|
|
1064
|
+
disposePopover() {
|
|
1065
|
+
this._resizeObserver?.disconnect();
|
|
1066
|
+
this._resizeObserver = undefined;
|
|
1067
|
+
if (this._overlayRef) {
|
|
1068
|
+
this._overlayRef.dispose();
|
|
1069
|
+
this._overlayRef = undefined;
|
|
1070
|
+
}
|
|
1285
1071
|
}
|
|
1286
|
-
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1072
|
+
getPositions(dir) {
|
|
1073
|
+
const oppositeVertical = {
|
|
1074
|
+
top: 'bottom',
|
|
1075
|
+
bottom: 'top',
|
|
1076
|
+
center: 'center'
|
|
1077
|
+
};
|
|
1078
|
+
const oppositeHorizontal = {
|
|
1079
|
+
start: 'end',
|
|
1080
|
+
end: 'start',
|
|
1081
|
+
center: 'center'
|
|
1082
|
+
};
|
|
1083
|
+
const centerY = (pos) => {
|
|
1084
|
+
return {
|
|
1085
|
+
originX: 'center',
|
|
1086
|
+
originY: pos,
|
|
1087
|
+
overlayX: 'center',
|
|
1088
|
+
overlayY: oppositeVertical[pos]
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
const centerX = (pos) => {
|
|
1092
|
+
return {
|
|
1093
|
+
originX: oppositeHorizontal[pos],
|
|
1094
|
+
originY: 'center',
|
|
1095
|
+
overlayX: pos,
|
|
1096
|
+
overlayY: 'center'
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
const ltr = (axis) => {
|
|
1100
|
+
return {
|
|
1101
|
+
originX: 'start',
|
|
1102
|
+
originY: axis,
|
|
1103
|
+
overlayX: 'start',
|
|
1104
|
+
overlayY: oppositeVertical[axis]
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
const rtl = (axis) => {
|
|
1108
|
+
return {
|
|
1109
|
+
originX: 'end',
|
|
1110
|
+
originY: axis,
|
|
1111
|
+
overlayX: 'end',
|
|
1112
|
+
overlayY: oppositeVertical[axis]
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
const side = (axisX, axisY) => {
|
|
1116
|
+
return {
|
|
1117
|
+
originX: axisX,
|
|
1118
|
+
originY: axisY,
|
|
1119
|
+
overlayX: oppositeHorizontal[axisX],
|
|
1120
|
+
overlayY: axisY
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
const cmp = dir ?? this._options?.dir ?? this.dir;
|
|
1124
|
+
switch (cmp) {
|
|
1125
|
+
case 'ct':
|
|
1126
|
+
return [centerY('top'), centerY('bottom'), centerX('start'), centerX('end')];
|
|
1127
|
+
case 'cr':
|
|
1128
|
+
return [centerX('end'), centerX('start'), centerY('top'), centerY('bottom')];
|
|
1129
|
+
case 'cc':
|
|
1130
|
+
return [centerX('center')];
|
|
1131
|
+
case 'ltr':
|
|
1132
|
+
return [ltr('bottom'), ltr('top')];
|
|
1133
|
+
case 'rtl':
|
|
1134
|
+
return [rtl('bottom'), rtl('top')];
|
|
1135
|
+
case 'tltr':
|
|
1136
|
+
return [ltr('top'), ltr('bottom')];
|
|
1137
|
+
case 'trtl':
|
|
1138
|
+
return [rtl('top'), rtl('bottom')];
|
|
1139
|
+
case 'rt':
|
|
1140
|
+
return [side('end', 'top'), side('end', 'bottom'), ltr('top')];
|
|
1141
|
+
case 'rb':
|
|
1142
|
+
return [side('end', 'bottom'), side('end', 'top'), ltr('bottom'), rtl('bottom')];
|
|
1143
|
+
case 'lt':
|
|
1144
|
+
return [side('start', 'top'), side('start', 'bottom'), rtl('top')];
|
|
1145
|
+
case 'lb':
|
|
1146
|
+
return [side('start', 'bottom'), side('start', 'top'), rtl('bottom')];
|
|
1299
1147
|
default:
|
|
1300
|
-
return
|
|
1148
|
+
return [];
|
|
1301
1149
|
}
|
|
1302
1150
|
}
|
|
1303
|
-
|
|
1304
|
-
if (this.
|
|
1305
|
-
|
|
1151
|
+
createPopover(origin, options) {
|
|
1152
|
+
if (!this.target) {
|
|
1153
|
+
// eslint-disable-next-line no-console
|
|
1154
|
+
console.error('MonkeyPopoverDirective -> target element is not defined.');
|
|
1155
|
+
return;
|
|
1306
1156
|
}
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
this.
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
toastConfig.action();
|
|
1324
|
-
if (toastConfig.closeOnAction ?? true) {
|
|
1325
|
-
componentRef.instance.close();
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1157
|
+
const originEl = this.target instanceof HTMLElement ? this.target : this.target.element;
|
|
1158
|
+
this._positionStrategy = this._overlayPositionBuilder
|
|
1159
|
+
.flexibleConnectedTo(origin ?? originEl)
|
|
1160
|
+
.withPush(true)
|
|
1161
|
+
.withGrowAfterOpen(true)
|
|
1162
|
+
.withPositions(this.getPositions(options?.dir));
|
|
1163
|
+
this._overlayRef = this._overlay.create({
|
|
1164
|
+
positionStrategy: this._positionStrategy,
|
|
1165
|
+
disposeOnNavigation: true,
|
|
1166
|
+
direction: 'ltr',
|
|
1167
|
+
hasBackdrop: this.backdrop,
|
|
1168
|
+
scrollStrategy: this._overlay.scrollStrategies.reposition(),
|
|
1169
|
+
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
1170
|
+
width: this._options?.minwidth || this.minwidth ? this.target.offsetWidth - 2 : undefined,
|
|
1171
|
+
maxHeight: '95%',
|
|
1172
|
+
height: this.height
|
|
1328
1173
|
});
|
|
1329
|
-
|
|
1330
|
-
|
|
1174
|
+
this._overlayRef
|
|
1175
|
+
.backdropClick()
|
|
1176
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
1177
|
+
.subscribe((event) => {
|
|
1178
|
+
this.closePopover(event);
|
|
1331
1179
|
});
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1180
|
+
const portal = new ComponentPortal(MonkeyPopoverContentComponent, this._vcr);
|
|
1181
|
+
this._componentRef = this._overlayRef.attach(portal);
|
|
1182
|
+
this._componentRef.instance.content = this._tpl;
|
|
1183
|
+
this._componentRef.instance.title = this.title;
|
|
1184
|
+
this._componentRef.instance.actions = this.actions;
|
|
1185
|
+
this._componentRef.instance.hideClose = this.hideClose;
|
|
1186
|
+
this._componentRef.instance.hideHeader = this.hideHeader;
|
|
1187
|
+
this._componentRef.instance.hideActions = this.hideActions;
|
|
1188
|
+
this._componentRef.instance.enableAutofocus = this.enableAutofocus;
|
|
1189
|
+
if (!this.hideClose || !this.hideHeader) {
|
|
1190
|
+
this._componentRef.instance.onClose
|
|
1191
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
1192
|
+
.subscribe(() => {
|
|
1193
|
+
this.closePopover();
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
if (this.watch && 'ResizeObserver' in window) {
|
|
1197
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
1198
|
+
this._overlayRef?.updatePosition();
|
|
1199
|
+
});
|
|
1200
|
+
this._resizeObserver.observe(this._componentRef.location.nativeElement);
|
|
1336
1201
|
}
|
|
1337
|
-
return componentRef.instance;
|
|
1338
1202
|
}
|
|
1339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1340
|
-
static { this.ɵ
|
|
1203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1204
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyPopoverDirective, isStandalone: true, selector: "[monkeyPopover]", inputs: { popover: ["monkeyPopover", "popover"], closed: ["monkeyPopoverClosed", "closed"], target: ["monkeyPopoverTarget", "target"], minwidth: ["monkeyPopoverMinwidth", "minwidth"], backdrop: ["monkeyPopoverBackdrop", "backdrop"], watch: ["monkeyPopoverWatch", "watch"], dir: ["monkeyPopoverDir", "dir"], contextmenu: ["monkeyPopoverContextmenu", "contextmenu"], height: ["monkeyPopoverHeight", "height"], title: ["monkeyPopoverTitle", "title"], actions: ["monkeyPopoverActions", "actions"], hideClose: ["monkeyPopoverHideClose", "hideClose", booleanAttribute], hideHeader: ["monkeyPopoverHideHeader", "hideHeader", booleanAttribute], hideActions: ["monkeyPopoverHideActions", "hideActions", booleanAttribute], enableAutofocus: ["monkeyPopoverEnableAutofocus", "enableAutofocus", booleanAttribute] }, ngImport: i0 }); }
|
|
1341
1205
|
}
|
|
1342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1343
|
-
type:
|
|
1206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPopoverDirective, decorators: [{
|
|
1207
|
+
type: Directive,
|
|
1344
1208
|
args: [{
|
|
1345
|
-
|
|
1209
|
+
selector: '[monkeyPopover]'
|
|
1346
1210
|
}]
|
|
1347
|
-
}]
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1211
|
+
}], ctorParameters: () => [], propDecorators: { _options: [{
|
|
1212
|
+
type: Optional
|
|
1213
|
+
}, {
|
|
1214
|
+
type: Inject,
|
|
1215
|
+
args: [MECX_POPOVER_OPTIONS]
|
|
1216
|
+
}], popover: [{
|
|
1217
|
+
type: Input,
|
|
1218
|
+
args: ['monkeyPopover']
|
|
1219
|
+
}], closed: [{
|
|
1220
|
+
type: Input,
|
|
1221
|
+
args: ['monkeyPopoverClosed']
|
|
1222
|
+
}], target: [{
|
|
1223
|
+
type: Input,
|
|
1224
|
+
args: ['monkeyPopoverTarget']
|
|
1225
|
+
}], minwidth: [{
|
|
1226
|
+
type: Input,
|
|
1227
|
+
args: ['monkeyPopoverMinwidth']
|
|
1228
|
+
}], backdrop: [{
|
|
1229
|
+
type: Input,
|
|
1230
|
+
args: ['monkeyPopoverBackdrop']
|
|
1231
|
+
}], watch: [{
|
|
1232
|
+
type: Input,
|
|
1233
|
+
args: ['monkeyPopoverWatch']
|
|
1234
|
+
}], dir: [{
|
|
1235
|
+
type: Input,
|
|
1236
|
+
args: ['monkeyPopoverDir']
|
|
1237
|
+
}], contextmenu: [{
|
|
1238
|
+
type: Input,
|
|
1239
|
+
args: ['monkeyPopoverContextmenu']
|
|
1240
|
+
}], height: [{
|
|
1241
|
+
type: Input,
|
|
1242
|
+
args: ['monkeyPopoverHeight']
|
|
1243
|
+
}], title: [{
|
|
1244
|
+
type: Input,
|
|
1245
|
+
args: ['monkeyPopoverTitle']
|
|
1246
|
+
}], actions: [{
|
|
1247
|
+
type: Input,
|
|
1248
|
+
args: ['monkeyPopoverActions']
|
|
1249
|
+
}], hideClose: [{
|
|
1250
|
+
type: Input,
|
|
1251
|
+
args: [{ alias: 'monkeyPopoverHideClose', transform: booleanAttribute }]
|
|
1252
|
+
}], hideHeader: [{
|
|
1253
|
+
type: Input,
|
|
1254
|
+
args: [{ alias: 'monkeyPopoverHideHeader', transform: booleanAttribute }]
|
|
1255
|
+
}], hideActions: [{
|
|
1256
|
+
type: Input,
|
|
1257
|
+
args: [{ alias: 'monkeyPopoverHideActions', transform: booleanAttribute }]
|
|
1258
|
+
}], enableAutofocus: [{
|
|
1259
|
+
type: Input,
|
|
1260
|
+
args: [{ alias: 'monkeyPopoverEnableAutofocus', transform: booleanAttribute }]
|
|
1261
|
+
}] } });
|
|
1262
|
+
|
|
1263
|
+
class MonkeyEcxAddressService {
|
|
1264
|
+
constructor() {
|
|
1265
|
+
this._http = inject(HttpClient);
|
|
1266
|
+
this._googleApiKey = injectTokenWithWarning(MECX_GOOGLE_API_KEY, 'MECX_GOOGLE_API_KEY');
|
|
1267
|
+
}
|
|
1268
|
+
mappingData(places) {
|
|
1269
|
+
const getComponent = (components, type, field = 'longText') => {
|
|
1270
|
+
const result = components.find((c) => {
|
|
1271
|
+
return c.types.includes(type);
|
|
1272
|
+
});
|
|
1273
|
+
return result?.[field] || '';
|
|
1274
|
+
};
|
|
1275
|
+
return places.map((_) => {
|
|
1276
|
+
const { addressComponents } = _;
|
|
1277
|
+
const address = getComponent(addressComponents, 'route');
|
|
1278
|
+
const addressNumber = getComponent(addressComponents, 'street_number');
|
|
1279
|
+
const neighborhood = getComponent(addressComponents, 'sublocality_level_1');
|
|
1280
|
+
const city = getComponent(addressComponents, 'administrative_area_level_2');
|
|
1281
|
+
const state = getComponent(addressComponents, 'administrative_area_level_1');
|
|
1282
|
+
const country = getComponent(addressComponents, 'country', 'shortText');
|
|
1283
|
+
const zipCode = getComponent(addressComponents, 'postal_code');
|
|
1284
|
+
return {
|
|
1285
|
+
formattedAddress: _.formattedAddress,
|
|
1286
|
+
adrFormatAddress: _.adrFormatAddress,
|
|
1287
|
+
address,
|
|
1288
|
+
addressNumber,
|
|
1289
|
+
neighborhood,
|
|
1290
|
+
city,
|
|
1291
|
+
state,
|
|
1292
|
+
country,
|
|
1293
|
+
zipCode
|
|
1294
|
+
};
|
|
1376
1295
|
});
|
|
1377
1296
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1396
|
-
static { this.ɵ
|
|
1397
|
-
}
|
|
1398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyErrorDirective, decorators: [{
|
|
1399
|
-
type: Directive,
|
|
1400
|
-
args: [{
|
|
1401
|
-
selector: 'monkey-error',
|
|
1402
|
-
standalone: false
|
|
1403
|
-
}]
|
|
1404
|
-
}] });
|
|
1405
|
-
|
|
1406
|
-
/** ************************
|
|
1407
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1408
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1409
|
-
* MIT Licence
|
|
1410
|
-
************************* */
|
|
1411
|
-
class MonkeyHelperDirective {
|
|
1412
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyHelperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1413
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.14", type: MonkeyHelperDirective, isStandalone: false, selector: "monkey-helper", ngImport: i0 }); }
|
|
1414
|
-
}
|
|
1415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyHelperDirective, decorators: [{
|
|
1416
|
-
type: Directive,
|
|
1417
|
-
args: [{
|
|
1418
|
-
selector: 'monkey-helper',
|
|
1419
|
-
standalone: false
|
|
1420
|
-
}]
|
|
1421
|
-
}] });
|
|
1422
|
-
|
|
1423
|
-
/** ************************
|
|
1424
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1425
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1426
|
-
* MIT Licence
|
|
1427
|
-
************************* */
|
|
1428
|
-
class MonkeyInfoDirective {
|
|
1429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyInfoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1430
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.14", type: MonkeyInfoDirective, isStandalone: false, selector: "monkey-info", ngImport: i0 }); }
|
|
1431
|
-
}
|
|
1432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyInfoDirective, decorators: [{
|
|
1433
|
-
type: Directive,
|
|
1434
|
-
args: [{
|
|
1435
|
-
selector: 'monkey-info',
|
|
1436
|
-
standalone: false
|
|
1437
|
-
}]
|
|
1438
|
-
}] });
|
|
1439
|
-
|
|
1440
|
-
/** ************************
|
|
1441
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1442
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1443
|
-
* MIT Licence
|
|
1444
|
-
************************* */
|
|
1445
|
-
class MonkeyLabelDirective {
|
|
1446
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1447
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.14", type: MonkeyLabelDirective, isStandalone: false, selector: "monkey-label", ngImport: i0 }); }
|
|
1297
|
+
get(textQuery) {
|
|
1298
|
+
if (!textQuery) {
|
|
1299
|
+
return of([]);
|
|
1300
|
+
}
|
|
1301
|
+
return this._http
|
|
1302
|
+
.post('https://places.googleapis.com/v1/places:searchText', {
|
|
1303
|
+
textQuery
|
|
1304
|
+
}, {
|
|
1305
|
+
headers: {
|
|
1306
|
+
'X-Goog-Api-Key': this._googleApiKey,
|
|
1307
|
+
'X-Goog-FieldMask': 'places.formattedAddress,places.addressComponents,places.displayName,places.adrFormatAddress'
|
|
1308
|
+
}
|
|
1309
|
+
})
|
|
1310
|
+
.pipe(map((resp) => {
|
|
1311
|
+
return this.mappingData(resp.places);
|
|
1312
|
+
}));
|
|
1313
|
+
}
|
|
1314
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyEcxAddressService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1315
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyEcxAddressService, providedIn: 'root' }); }
|
|
1448
1316
|
}
|
|
1449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1450
|
-
type:
|
|
1451
|
-
args: [{
|
|
1452
|
-
selector: 'monkey-label',
|
|
1453
|
-
standalone: false
|
|
1454
|
-
}]
|
|
1317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyEcxAddressService, decorators: [{
|
|
1318
|
+
type: Injectable,
|
|
1319
|
+
args: [{ providedIn: 'root' }]
|
|
1455
1320
|
}] });
|
|
1456
1321
|
|
|
1322
|
+
/* eslint-disable no-console */
|
|
1457
1323
|
/** ************************
|
|
1458
1324
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
1459
1325
|
* This style guide was developed by Monkey Exchange Team
|
|
1460
1326
|
* MIT Licence
|
|
1461
1327
|
************************* */
|
|
1462
|
-
class
|
|
1463
|
-
constructor(host) {
|
|
1464
|
-
this.host = host;
|
|
1465
|
-
this.onClose = new EventEmitter();
|
|
1466
|
-
this.enableAutofocus = false;
|
|
1467
|
-
// not to do
|
|
1468
|
-
}
|
|
1469
|
-
ngAfterViewInit() {
|
|
1470
|
-
if (this.enableAutofocus) {
|
|
1471
|
-
setTimeout(() => {
|
|
1472
|
-
const focusable = this.host.nativeElement.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1473
|
-
focusable?.focus();
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
isTemplate(value) {
|
|
1478
|
-
return value instanceof TemplateRef;
|
|
1479
|
-
}
|
|
1480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyPopoverContentComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1481
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: MonkeyPopoverContentComponent, isStandalone: true, selector: "monkey-popover-content", inputs: { title: "title", content: "content", actions: "actions", hideHeader: ["hideHeader", "hideHeader", booleanAttribute], hideClose: ["hideClose", "hideClose", booleanAttribute], hideActions: ["hideActions", "hideActions", booleanAttribute], enableAutofocus: "enableAutofocus" }, outputs: { onClose: "onClose" }, ngImport: i0, template: `
|
|
1482
|
-
<div class="mecx-popover-container">
|
|
1483
|
-
@if (!hideHeader) {
|
|
1484
|
-
<div class="mecx-popover-header">
|
|
1485
|
-
@if (title) {
|
|
1486
|
-
<div>
|
|
1487
|
-
<ng-container *ngIf="isTemplate(title); else stringTitle">
|
|
1488
|
-
<ng-container *ngTemplateOutlet="title"></ng-container>
|
|
1489
|
-
</ng-container>
|
|
1490
|
-
<ng-template #stringTitle>
|
|
1491
|
-
{{ title }}
|
|
1492
|
-
</ng-template>
|
|
1493
|
-
</div>
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
@if (!hideClose) {
|
|
1497
|
-
<util-icon class="mecx-popover-close" name="clear" (click)="onClose.next(null)" />
|
|
1498
|
-
}
|
|
1499
|
-
</div>
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
<div class="mecx-popover-content" [class.add-radius]="hideHeader">
|
|
1503
|
-
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
1504
|
-
</div>
|
|
1505
|
-
|
|
1506
|
-
@if (!hideActions) {
|
|
1507
|
-
<div class="mecx-popover-actions" *ngIf="actions">
|
|
1508
|
-
<ng-container *ngIf="isTemplate(actions); else stringActions">
|
|
1509
|
-
<ng-container *ngTemplateOutlet="actions"></ng-container>
|
|
1510
|
-
</ng-container>
|
|
1511
|
-
<ng-template #stringActions>
|
|
1512
|
-
<span>{{ actions }}</span>
|
|
1513
|
-
</ng-template>
|
|
1514
|
-
</div>
|
|
1515
|
-
}
|
|
1516
|
-
</div>
|
|
1517
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }] }); }
|
|
1518
|
-
}
|
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyPopoverContentComponent, decorators: [{
|
|
1520
|
-
type: Component,
|
|
1521
|
-
args: [{
|
|
1522
|
-
selector: 'monkey-popover-content',
|
|
1523
|
-
imports: [CommonModule, NgTemplateOutlet, UtilIconComponent],
|
|
1524
|
-
template: `
|
|
1525
|
-
<div class="mecx-popover-container">
|
|
1526
|
-
@if (!hideHeader) {
|
|
1527
|
-
<div class="mecx-popover-header">
|
|
1528
|
-
@if (title) {
|
|
1529
|
-
<div>
|
|
1530
|
-
<ng-container *ngIf="isTemplate(title); else stringTitle">
|
|
1531
|
-
<ng-container *ngTemplateOutlet="title"></ng-container>
|
|
1532
|
-
</ng-container>
|
|
1533
|
-
<ng-template #stringTitle>
|
|
1534
|
-
{{ title }}
|
|
1535
|
-
</ng-template>
|
|
1536
|
-
</div>
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
@if (!hideClose) {
|
|
1540
|
-
<util-icon class="mecx-popover-close" name="clear" (click)="onClose.next(null)" />
|
|
1541
|
-
}
|
|
1542
|
-
</div>
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
<div class="mecx-popover-content" [class.add-radius]="hideHeader">
|
|
1546
|
-
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
1547
|
-
</div>
|
|
1548
|
-
|
|
1549
|
-
@if (!hideActions) {
|
|
1550
|
-
<div class="mecx-popover-actions" *ngIf="actions">
|
|
1551
|
-
<ng-container *ngIf="isTemplate(actions); else stringActions">
|
|
1552
|
-
<ng-container *ngTemplateOutlet="actions"></ng-container>
|
|
1553
|
-
</ng-container>
|
|
1554
|
-
<ng-template #stringActions>
|
|
1555
|
-
<span>{{ actions }}</span>
|
|
1556
|
-
</ng-template>
|
|
1557
|
-
</div>
|
|
1558
|
-
}
|
|
1559
|
-
</div>
|
|
1560
|
-
`
|
|
1561
|
-
}]
|
|
1562
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { title: [{
|
|
1563
|
-
type: Input
|
|
1564
|
-
}], content: [{
|
|
1565
|
-
type: Input
|
|
1566
|
-
}], actions: [{
|
|
1567
|
-
type: Input
|
|
1568
|
-
}], onClose: [{
|
|
1569
|
-
type: Output
|
|
1570
|
-
}], hideHeader: [{
|
|
1571
|
-
type: Input,
|
|
1572
|
-
args: [{ transform: booleanAttribute }]
|
|
1573
|
-
}], hideClose: [{
|
|
1574
|
-
type: Input,
|
|
1575
|
-
args: [{ transform: booleanAttribute }]
|
|
1576
|
-
}], hideActions: [{
|
|
1577
|
-
type: Input,
|
|
1578
|
-
args: [{ transform: booleanAttribute }]
|
|
1579
|
-
}], enableAutofocus: [{
|
|
1580
|
-
type: Input
|
|
1581
|
-
}] } });
|
|
1582
|
-
class MonkeyPopoverDirective {
|
|
1583
|
-
set popover(show) {
|
|
1584
|
-
if (this._show === show) {
|
|
1585
|
-
return;
|
|
1586
|
-
}
|
|
1587
|
-
this._show = show;
|
|
1588
|
-
if (show) {
|
|
1589
|
-
setTimeout(() => {
|
|
1590
|
-
this.createPopover();
|
|
1591
|
-
}, 0);
|
|
1592
|
-
}
|
|
1593
|
-
else {
|
|
1594
|
-
this.disposePopover();
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
get popover() {
|
|
1598
|
-
return this._show;
|
|
1599
|
-
}
|
|
1600
|
-
set target(value) {
|
|
1601
|
-
this._target = value;
|
|
1602
|
-
}
|
|
1603
|
-
get target() {
|
|
1604
|
-
return this._target;
|
|
1605
|
-
}
|
|
1328
|
+
class MonkeyDictionaryService {
|
|
1606
1329
|
constructor() {
|
|
1607
|
-
this.
|
|
1608
|
-
this._vcr = inject(ViewContainerRef);
|
|
1609
|
-
this._el = inject(ElementRef);
|
|
1610
|
-
this._zone = inject(NgZone);
|
|
1611
|
-
this._overlay = inject(Overlay);
|
|
1612
|
-
this._overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
1613
|
-
this._router = inject(Router);
|
|
1330
|
+
this._localeId = inject(LOCALE_ID);
|
|
1614
1331
|
this._destroyRef = inject(DestroyRef);
|
|
1615
|
-
this.
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1332
|
+
this._data$ = new BehaviorSubject({
|
|
1333
|
+
'pt-BR': {
|
|
1334
|
+
EDIT: 'Editar',
|
|
1335
|
+
'NO-RESULTS': 'Nenhum resultado encontrado',
|
|
1336
|
+
'NO-DATA': 'Sem dados',
|
|
1337
|
+
'NO-DATA-ADDRESS': 'Nenhum endereço encontrado com esta pesquisa',
|
|
1338
|
+
'NOT-PROVIDED': 'Não informado',
|
|
1339
|
+
LOADING: 'Carregando...',
|
|
1340
|
+
'DATE-RANGE': {
|
|
1341
|
+
'START-DATE': 'Data de início',
|
|
1342
|
+
'END-DATE': 'Data de término',
|
|
1343
|
+
INVALID: 'Intervalo de datas inválido',
|
|
1344
|
+
ACTIONS: {
|
|
1345
|
+
CANCEL: 'Cancelar',
|
|
1346
|
+
APPLY: 'Aplicar'
|
|
1347
|
+
},
|
|
1348
|
+
'WEEK-DAYS': ['Dom.', '2ª', '3ª', '4ª', '5ª', '6ª', 'Sab.'],
|
|
1349
|
+
MONTHS: {
|
|
1350
|
+
0: 'Janeiro',
|
|
1351
|
+
1: 'Fevereiro',
|
|
1352
|
+
2: 'Março',
|
|
1353
|
+
3: 'Abril',
|
|
1354
|
+
4: 'Maio',
|
|
1355
|
+
5: 'Junho',
|
|
1356
|
+
6: 'Julho',
|
|
1357
|
+
7: 'Agosto',
|
|
1358
|
+
8: 'Setembro',
|
|
1359
|
+
9: 'Outubro',
|
|
1360
|
+
10: 'Novembro',
|
|
1361
|
+
11: 'Dezembro'
|
|
1362
|
+
},
|
|
1363
|
+
'QUICK-ACTIONS': {
|
|
1364
|
+
CUSTOM: 'Customizado',
|
|
1365
|
+
LAST_30_DAYS: 'Ultimos 30 dias',
|
|
1366
|
+
LAST_60_DAYS: 'Ultimos 60 dias',
|
|
1367
|
+
LAST_90_DAYS: 'Ultimos 90 dias',
|
|
1368
|
+
LAST_6_MONTHS: 'Ultimos 6 meses',
|
|
1369
|
+
LAST_12_MONTHS: 'Ultimos 12 meses',
|
|
1370
|
+
NEXT_30_DAYS: 'Próximos 30 dias',
|
|
1371
|
+
NEXT_60_DAYS: 'Próximos 60 dias',
|
|
1372
|
+
NEXT_90_DAYS: 'Próximos 90 dias',
|
|
1373
|
+
NEXT_6_MONTHS: 'Próximos 6 meses',
|
|
1374
|
+
NEXT_12_MONTHS: 'Próximos 12 meses'
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
'es-CL': {
|
|
1379
|
+
EDIT: 'Editar',
|
|
1380
|
+
'NO-RESULTS': 'No se encontraron resultados',
|
|
1381
|
+
'NO-DATA': 'Sin datos',
|
|
1382
|
+
'NO-DATA-ADDRESS': 'No se encontraron direcciones con esta búsqueda',
|
|
1383
|
+
'NOT-PROVIDED': 'No informado',
|
|
1384
|
+
LOADING: 'Cargando...',
|
|
1385
|
+
'DATE-RANGE': {
|
|
1386
|
+
'START-DATE': 'Fecha de inicio',
|
|
1387
|
+
'END-DATE': 'Fecha de termino',
|
|
1388
|
+
INVALID: 'Rango de fechas no válido',
|
|
1389
|
+
ACTIONS: {
|
|
1390
|
+
CANCEL: 'Cancelar',
|
|
1391
|
+
APPLY: 'Aplicar'
|
|
1392
|
+
},
|
|
1393
|
+
'WEEK-DAYS': ['Dom.', 'Lun.', 'Mar.', 'Mié.', 'Jue.', 'Vie.', 'Sab.'],
|
|
1394
|
+
MONTHS: {
|
|
1395
|
+
0: 'Enero',
|
|
1396
|
+
1: 'Febrero',
|
|
1397
|
+
2: 'Marzo',
|
|
1398
|
+
3: 'Abril',
|
|
1399
|
+
4: 'Mayo',
|
|
1400
|
+
5: 'Junio',
|
|
1401
|
+
6: 'Julio',
|
|
1402
|
+
7: 'Agosto',
|
|
1403
|
+
8: 'Septiembre',
|
|
1404
|
+
9: 'Octubre',
|
|
1405
|
+
10: 'Noviembre',
|
|
1406
|
+
11: 'Diciembre'
|
|
1407
|
+
},
|
|
1408
|
+
'QUICK-ACTIONS': {
|
|
1409
|
+
CUSTOM: 'Personalizado',
|
|
1410
|
+
LAST_30_DAYS: 'Últimos 30 días',
|
|
1411
|
+
LAST_60_DAYS: 'Últimos 60 días',
|
|
1412
|
+
LAST_90_DAYS: 'Últimos 90 días',
|
|
1413
|
+
LAST_6_MONTHS: 'Últimos 6 meses',
|
|
1414
|
+
LAST_12_MONTHS: 'Últimos 12 meses',
|
|
1415
|
+
NEXT_30_DAYS: 'Próximos 30 días',
|
|
1416
|
+
NEXT_60_DAYS: 'Próximos 60 días',
|
|
1417
|
+
NEXT_90_DAYS: 'Próximos 90 días',
|
|
1418
|
+
NEXT_6_MONTHS: 'Próximos 6 meses',
|
|
1419
|
+
NEXT_12_MONTHS: 'Próximos 12 meses'
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
'es-MX': {
|
|
1424
|
+
EDIT: 'Editar',
|
|
1425
|
+
'NO-RESULTS': 'No se encontraron resultados',
|
|
1426
|
+
'NO-DATA': 'Sin datos',
|
|
1427
|
+
'NO-DATA-ADDRESS': 'No se encontraron direcciones con esta búsqueda',
|
|
1428
|
+
'NOT-PROVIDED': 'No informado',
|
|
1429
|
+
LOADING: 'Cargando...',
|
|
1430
|
+
'DATE-RANGE': {
|
|
1431
|
+
'START-DATE': 'Fecha de inicio',
|
|
1432
|
+
'END-DATE': 'Fecha de termino',
|
|
1433
|
+
INVALID: 'Rango de fechas no válido',
|
|
1434
|
+
ACTIONS: {
|
|
1435
|
+
CANCEL: 'Cancelar',
|
|
1436
|
+
APPLY: 'Aplicar'
|
|
1437
|
+
},
|
|
1438
|
+
'WEEK-DAYS': ['Dom.', 'Lun.', 'Mar.', 'Mié.', 'Jue.', 'Vie.', 'Sab.'],
|
|
1439
|
+
MONTHS: {
|
|
1440
|
+
0: 'Enero',
|
|
1441
|
+
1: 'Febrero',
|
|
1442
|
+
2: 'Marzo',
|
|
1443
|
+
3: 'Abril',
|
|
1444
|
+
4: 'Mayo',
|
|
1445
|
+
5: 'Junio',
|
|
1446
|
+
6: 'Julio',
|
|
1447
|
+
7: 'Agosto',
|
|
1448
|
+
8: 'Septiembre',
|
|
1449
|
+
9: 'Octubre',
|
|
1450
|
+
10: 'Noviembre',
|
|
1451
|
+
11: 'Diciembre'
|
|
1452
|
+
},
|
|
1453
|
+
'QUICK-ACTIONS': {
|
|
1454
|
+
CUSTOM: 'Personalizado',
|
|
1455
|
+
LAST_30_DAYS: 'Últimos 30 días',
|
|
1456
|
+
LAST_60_DAYS: 'Últimos 60 días',
|
|
1457
|
+
LAST_90_DAYS: 'Últimos 90 días',
|
|
1458
|
+
LAST_6_MONTHS: 'Últimos 6 meses',
|
|
1459
|
+
LAST_12_MONTHS: 'Últimos 12 meses',
|
|
1460
|
+
NEXT_30_DAYS: 'Próximos 30 días',
|
|
1461
|
+
NEXT_60_DAYS: 'Próximos 60 días',
|
|
1462
|
+
NEXT_90_DAYS: 'Próximos 90 días',
|
|
1463
|
+
NEXT_6_MONTHS: 'Próximos 6 meses',
|
|
1464
|
+
NEXT_12_MONTHS: 'Próximos 12 meses'
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
'en-US': {
|
|
1469
|
+
EDIT: 'Edit',
|
|
1470
|
+
'NO-RESULTS': 'No results found',
|
|
1471
|
+
'NO-DATA': 'No data',
|
|
1472
|
+
'NO-DATA-ADDRESS': 'No address found with this search',
|
|
1473
|
+
'NOT-PROVIDED': 'Not provided',
|
|
1474
|
+
LOADING: 'Loading...',
|
|
1475
|
+
'DATE-RANGE': {
|
|
1476
|
+
'START-DATE': 'Start date',
|
|
1477
|
+
'END-DATE': 'End Date',
|
|
1478
|
+
INVALID: 'Invalid date range',
|
|
1479
|
+
ACTIONS: {
|
|
1480
|
+
CANCEL: 'Cancel',
|
|
1481
|
+
APPLY: 'Apply'
|
|
1482
|
+
},
|
|
1483
|
+
'WEEK-DAYS': ['Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.'],
|
|
1484
|
+
MONTHS: {
|
|
1485
|
+
0: 'January',
|
|
1486
|
+
1: 'February',
|
|
1487
|
+
2: 'March',
|
|
1488
|
+
3: 'April',
|
|
1489
|
+
4: 'May',
|
|
1490
|
+
5: 'June',
|
|
1491
|
+
6: 'July',
|
|
1492
|
+
7: 'August',
|
|
1493
|
+
8: 'September',
|
|
1494
|
+
9: 'October',
|
|
1495
|
+
10: 'November',
|
|
1496
|
+
11: 'December'
|
|
1497
|
+
},
|
|
1498
|
+
'QUICK-ACTIONS': {
|
|
1499
|
+
CUSTOM: 'Custom',
|
|
1500
|
+
LAST_30_DAYS: 'Last 30 days',
|
|
1501
|
+
LAST_60_DAYS: 'Last 60 days',
|
|
1502
|
+
LAST_90_DAYS: 'Last 90 days',
|
|
1503
|
+
LAST_6_MONTHS: 'Last 6 months',
|
|
1504
|
+
LAST_12_MONTHS: 'Last 12 months',
|
|
1505
|
+
NEXT_30_DAYS: 'Next 30 days',
|
|
1506
|
+
NEXT_60_DAYS: 'Next 60 days',
|
|
1507
|
+
NEXT_90_DAYS: 'Next 90 days',
|
|
1508
|
+
NEXT_6_MONTHS: 'Next 6 months',
|
|
1509
|
+
NEXT_12_MONTHS: 'Next 12 months'
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
const tokenSubject = inject(MECX_I18N_WRAPPER, { optional: true });
|
|
1515
|
+
tokenSubject?.pipe(takeUntilDestroyed(this._destroyRef)).subscribe((value) => {
|
|
1516
|
+
this.handleWrapperValues(value);
|
|
1627
1517
|
});
|
|
1628
1518
|
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
disposePopover() {
|
|
1643
|
-
this._resizeObserver?.disconnect();
|
|
1644
|
-
this._resizeObserver = undefined;
|
|
1645
|
-
if (this._overlayRef) {
|
|
1646
|
-
this._overlayRef.dispose();
|
|
1647
|
-
this._overlayRef = undefined;
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
getPositions(dir) {
|
|
1651
|
-
const oppositeVertical = {
|
|
1652
|
-
top: 'bottom',
|
|
1653
|
-
bottom: 'top',
|
|
1654
|
-
center: 'center'
|
|
1655
|
-
};
|
|
1656
|
-
const oppositeHorizontal = {
|
|
1657
|
-
start: 'end',
|
|
1658
|
-
end: 'start',
|
|
1659
|
-
center: 'center'
|
|
1660
|
-
};
|
|
1661
|
-
const centerY = (pos) => {
|
|
1662
|
-
return {
|
|
1663
|
-
originX: 'center',
|
|
1664
|
-
originY: pos,
|
|
1665
|
-
overlayX: 'center',
|
|
1666
|
-
overlayY: oppositeVertical[pos]
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
const centerX = (pos) => {
|
|
1670
|
-
return {
|
|
1671
|
-
originX: oppositeHorizontal[pos],
|
|
1672
|
-
originY: 'center',
|
|
1673
|
-
overlayX: pos,
|
|
1674
|
-
overlayY: 'center'
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
|
-
const ltr = (axis) => {
|
|
1678
|
-
return {
|
|
1679
|
-
originX: 'start',
|
|
1680
|
-
originY: axis,
|
|
1681
|
-
overlayX: 'start',
|
|
1682
|
-
overlayY: oppositeVertical[axis]
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
const rtl = (axis) => {
|
|
1686
|
-
return {
|
|
1687
|
-
originX: 'end',
|
|
1688
|
-
originY: axis,
|
|
1689
|
-
overlayX: 'end',
|
|
1690
|
-
overlayY: oppositeVertical[axis]
|
|
1691
|
-
};
|
|
1692
|
-
};
|
|
1693
|
-
const side = (axisX, axisY) => {
|
|
1694
|
-
return {
|
|
1695
|
-
originX: axisX,
|
|
1696
|
-
originY: axisY,
|
|
1697
|
-
overlayX: oppositeHorizontal[axisX],
|
|
1698
|
-
overlayY: axisY
|
|
1519
|
+
handleWrapperValues(value) {
|
|
1520
|
+
try {
|
|
1521
|
+
const locale = this._localeId || 'pt-BR';
|
|
1522
|
+
const wrappedData = JSON.parse(value);
|
|
1523
|
+
const currentData = this._data$.value;
|
|
1524
|
+
const updated = {
|
|
1525
|
+
...currentData,
|
|
1526
|
+
[locale]: {
|
|
1527
|
+
...currentData[locale],
|
|
1528
|
+
...wrappedData
|
|
1529
|
+
}
|
|
1699
1530
|
};
|
|
1700
|
-
|
|
1701
|
-
const cmp = dir ?? this._options?.dir ?? this.dir;
|
|
1702
|
-
switch (cmp) {
|
|
1703
|
-
case 'ct':
|
|
1704
|
-
return [centerY('top'), centerY('bottom'), centerX('start'), centerX('end')];
|
|
1705
|
-
case 'cr':
|
|
1706
|
-
return [centerX('end'), centerX('start'), centerY('top'), centerY('bottom')];
|
|
1707
|
-
case 'cc':
|
|
1708
|
-
return [centerX('center')];
|
|
1709
|
-
case 'ltr':
|
|
1710
|
-
return [ltr('bottom'), ltr('top')];
|
|
1711
|
-
case 'rtl':
|
|
1712
|
-
return [rtl('bottom'), rtl('top')];
|
|
1713
|
-
case 'tltr':
|
|
1714
|
-
return [ltr('top'), ltr('bottom')];
|
|
1715
|
-
case 'trtl':
|
|
1716
|
-
return [rtl('top'), rtl('bottom')];
|
|
1717
|
-
case 'rt':
|
|
1718
|
-
return [side('end', 'top'), side('end', 'bottom'), ltr('top')];
|
|
1719
|
-
case 'rb':
|
|
1720
|
-
return [side('end', 'bottom'), side('end', 'top'), ltr('bottom'), rtl('bottom')];
|
|
1721
|
-
case 'lt':
|
|
1722
|
-
return [side('start', 'top'), side('start', 'bottom'), rtl('top')];
|
|
1723
|
-
case 'lb':
|
|
1724
|
-
return [side('start', 'bottom'), side('start', 'top'), rtl('bottom')];
|
|
1725
|
-
default:
|
|
1726
|
-
return [];
|
|
1531
|
+
this._data$.next(updated);
|
|
1727
1532
|
}
|
|
1728
|
-
|
|
1729
|
-
createPopover(origin, options) {
|
|
1730
|
-
if (!this.target) {
|
|
1533
|
+
catch (e) {
|
|
1731
1534
|
// eslint-disable-next-line no-console
|
|
1732
|
-
console.error(
|
|
1733
|
-
return;
|
|
1535
|
+
console.error(`MonkeyDictionaryService - handleWrapperValues -> ${e}`);
|
|
1734
1536
|
}
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1537
|
+
}
|
|
1538
|
+
get(key) {
|
|
1539
|
+
const locale = this._localeId || 'pt-BR';
|
|
1540
|
+
return this._data$.pipe(map((data) => {
|
|
1541
|
+
return data[locale]?.[key] ?? null;
|
|
1542
|
+
}));
|
|
1543
|
+
}
|
|
1544
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDictionaryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1545
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDictionaryService, providedIn: 'root' }); }
|
|
1546
|
+
}
|
|
1547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDictionaryService, decorators: [{
|
|
1548
|
+
type: Injectable,
|
|
1549
|
+
args: [{
|
|
1550
|
+
providedIn: 'root'
|
|
1551
|
+
}]
|
|
1552
|
+
}], ctorParameters: () => [] });
|
|
1553
|
+
|
|
1554
|
+
/** ************************
|
|
1555
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1556
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1557
|
+
* MIT Licence
|
|
1558
|
+
************************* */
|
|
1559
|
+
class MonkeyStepperService {
|
|
1560
|
+
constructor() {
|
|
1561
|
+
this._steppers = signal(new Map(), ...(ngDevMode ? [{ debugName: "_steppers" }] : []));
|
|
1562
|
+
}
|
|
1563
|
+
currentStep(id) {
|
|
1564
|
+
return computed(() => {
|
|
1565
|
+
return this._steppers().get(id);
|
|
1751
1566
|
});
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
.
|
|
1756
|
-
this.closePopover(event);
|
|
1567
|
+
}
|
|
1568
|
+
setCurrentStep(id, step) {
|
|
1569
|
+
this._steppers.update((items) => {
|
|
1570
|
+
return new Map(items).set(id, step);
|
|
1757
1571
|
});
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1572
|
+
}
|
|
1573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1574
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperService, providedIn: 'root' }); }
|
|
1575
|
+
}
|
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperService, decorators: [{
|
|
1577
|
+
type: Injectable,
|
|
1578
|
+
args: [{
|
|
1579
|
+
providedIn: 'root'
|
|
1580
|
+
}]
|
|
1581
|
+
}] });
|
|
1582
|
+
|
|
1583
|
+
class MonkeyToastRef {
|
|
1584
|
+
constructor(componentRef) {
|
|
1585
|
+
this.componentRef = componentRef;
|
|
1586
|
+
// not to do
|
|
1587
|
+
}
|
|
1588
|
+
close() {
|
|
1589
|
+
this.componentRef.instance.close();
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/** ************************
|
|
1594
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1595
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1596
|
+
* MIT Licence
|
|
1597
|
+
************************* */
|
|
1598
|
+
|
|
1599
|
+
/** ************************
|
|
1600
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1601
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1602
|
+
* MIT Licence
|
|
1603
|
+
************************* */
|
|
1604
|
+
class MonkeyToastService {
|
|
1605
|
+
constructor() {
|
|
1606
|
+
this.overlay = inject(Overlay);
|
|
1607
|
+
}
|
|
1608
|
+
getPositionStrategy(position) {
|
|
1609
|
+
const globalPosition = this.overlay.position().global();
|
|
1610
|
+
switch (position) {
|
|
1611
|
+
case 'top-left':
|
|
1612
|
+
return globalPosition.top('40px').start('40px');
|
|
1613
|
+
case 'top-center':
|
|
1614
|
+
return globalPosition.top('40px').centerHorizontally();
|
|
1615
|
+
case 'top-right':
|
|
1616
|
+
return globalPosition.top('40px').end('40px');
|
|
1617
|
+
case 'bottom-left':
|
|
1618
|
+
return globalPosition.bottom('40px').start('40px');
|
|
1619
|
+
case 'bottom-center':
|
|
1620
|
+
return globalPosition.bottom('40px').centerHorizontally();
|
|
1621
|
+
default:
|
|
1622
|
+
return globalPosition.bottom('40px').end('40px');
|
|
1773
1623
|
}
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1624
|
+
}
|
|
1625
|
+
show(toastConfig) {
|
|
1626
|
+
if (this.lastToast) {
|
|
1627
|
+
this.lastToast.close();
|
|
1628
|
+
}
|
|
1629
|
+
const overlayRef = this.overlay.create({
|
|
1630
|
+
hasBackdrop: false,
|
|
1631
|
+
positionStrategy: this.getPositionStrategy(toastConfig.position)
|
|
1632
|
+
});
|
|
1633
|
+
const portal = new ComponentPortal(MonkeyToastComponent);
|
|
1634
|
+
const componentRef = overlayRef.attach(portal);
|
|
1635
|
+
this.lastToast = new MonkeyToastRef(componentRef);
|
|
1636
|
+
componentRef.instance.id = getRandomString(6);
|
|
1637
|
+
componentRef.instance.type = toastConfig.type ?? 'default';
|
|
1638
|
+
componentRef.instance.icon = toastConfig.icon;
|
|
1639
|
+
componentRef.instance.isClosable = toastConfig.isClosable ?? false;
|
|
1640
|
+
componentRef.instance.message = toastConfig.message;
|
|
1641
|
+
componentRef.instance.actionLabel = toastConfig.actionLabel;
|
|
1642
|
+
componentRef.instance.actionIcon = toastConfig.actionIcon;
|
|
1643
|
+
componentRef.instance.onActionClick.subscribe(() => {
|
|
1644
|
+
if (toastConfig.action) {
|
|
1645
|
+
toastConfig.action();
|
|
1646
|
+
if (toastConfig.closeOnAction ?? true) {
|
|
1647
|
+
componentRef.instance.close();
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
componentRef.instance.onClose.subscribe(() => {
|
|
1652
|
+
overlayRef.detach();
|
|
1653
|
+
});
|
|
1654
|
+
if (!toastConfig.keepOpen) {
|
|
1655
|
+
setTimeout(() => {
|
|
1656
|
+
componentRef.instance.close();
|
|
1657
|
+
}, toastConfig.duration ?? 4000);
|
|
1779
1658
|
}
|
|
1659
|
+
return componentRef.instance;
|
|
1660
|
+
}
|
|
1661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1662
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToastService, providedIn: 'root' }); }
|
|
1663
|
+
}
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToastService, decorators: [{
|
|
1665
|
+
type: Injectable,
|
|
1666
|
+
args: [{
|
|
1667
|
+
providedIn: 'root'
|
|
1668
|
+
}]
|
|
1669
|
+
}] });
|
|
1670
|
+
|
|
1671
|
+
/** ************************
|
|
1672
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1673
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1674
|
+
* MIT Licence
|
|
1675
|
+
************************* */
|
|
1676
|
+
|
|
1677
|
+
/** ************************
|
|
1678
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1679
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1680
|
+
* MIT Licence
|
|
1681
|
+
************************* */
|
|
1682
|
+
class MonkeyFormFieldControl {
|
|
1683
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1684
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyFormFieldControl, isStandalone: true, ngImport: i0 }); }
|
|
1685
|
+
}
|
|
1686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldControl, decorators: [{
|
|
1687
|
+
type: Directive
|
|
1688
|
+
}] });
|
|
1689
|
+
|
|
1690
|
+
/** ************************
|
|
1691
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1692
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1693
|
+
* MIT Licence
|
|
1694
|
+
************************* */
|
|
1695
|
+
class MonkeyDisplayDirective {
|
|
1696
|
+
constructor(el) {
|
|
1697
|
+
this.el = el;
|
|
1698
|
+
this.fallbackText = 'Not provided';
|
|
1699
|
+
this.i18nDictionary = inject(MonkeyDictionaryService).get('NOT-PROVIDED');
|
|
1700
|
+
this.displayValue = input.required(...(ngDevMode ? [{ debugName: "displayValue" }] : []));
|
|
1701
|
+
this.displayedText = computed(() => {
|
|
1702
|
+
const value = this.displayValue();
|
|
1703
|
+
if (value === null || value === undefined || value === '') {
|
|
1704
|
+
return this.fallbackText;
|
|
1705
|
+
}
|
|
1706
|
+
return String(value);
|
|
1707
|
+
}, ...(ngDevMode ? [{ debugName: "displayedText" }] : []));
|
|
1708
|
+
effect(async () => {
|
|
1709
|
+
this.el.nativeElement.innerHTML = this.displayedText();
|
|
1710
|
+
this.fallbackText = await firstValueFrom(this.i18nDictionary);
|
|
1711
|
+
});
|
|
1780
1712
|
}
|
|
1781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1782
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1713
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDisplayDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1714
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: MonkeyDisplayDirective, isStandalone: true, selector: "monkey-display", inputs: { displayValue: { classPropertyName: "displayValue", publicName: "displayValue", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
1783
1715
|
}
|
|
1784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDisplayDirective, decorators: [{
|
|
1785
1717
|
type: Directive,
|
|
1786
1718
|
args: [{
|
|
1787
|
-
selector: '
|
|
1788
|
-
|
|
1719
|
+
selector: 'monkey-display'
|
|
1720
|
+
}]
|
|
1721
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { displayValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayValue", required: true }] }] } });
|
|
1722
|
+
|
|
1723
|
+
/** ************************
|
|
1724
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1725
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1726
|
+
* MIT Licence
|
|
1727
|
+
************************* */
|
|
1728
|
+
class MonkeyErrorDirective {
|
|
1729
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyErrorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1730
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyErrorDirective, isStandalone: true, selector: "monkey-error", ngImport: i0 }); }
|
|
1731
|
+
}
|
|
1732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyErrorDirective, decorators: [{
|
|
1733
|
+
type: Directive,
|
|
1734
|
+
args: [{
|
|
1735
|
+
selector: 'monkey-error'
|
|
1736
|
+
}]
|
|
1737
|
+
}] });
|
|
1738
|
+
|
|
1739
|
+
/** ************************
|
|
1740
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1741
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1742
|
+
* MIT Licence
|
|
1743
|
+
************************* */
|
|
1744
|
+
class MonkeyHelperDirective {
|
|
1745
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyHelperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1746
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyHelperDirective, isStandalone: true, selector: "monkey-helper", ngImport: i0 }); }
|
|
1747
|
+
}
|
|
1748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyHelperDirective, decorators: [{
|
|
1749
|
+
type: Directive,
|
|
1750
|
+
args: [{
|
|
1751
|
+
selector: 'monkey-helper'
|
|
1752
|
+
}]
|
|
1753
|
+
}] });
|
|
1754
|
+
|
|
1755
|
+
/** ************************
|
|
1756
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1757
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1758
|
+
* MIT Licence
|
|
1759
|
+
************************* */
|
|
1760
|
+
class MonkeyInfoDirective {
|
|
1761
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInfoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1762
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyInfoDirective, isStandalone: true, selector: "monkey-info", ngImport: i0 }); }
|
|
1763
|
+
}
|
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInfoDirective, decorators: [{
|
|
1765
|
+
type: Directive,
|
|
1766
|
+
args: [{
|
|
1767
|
+
selector: 'monkey-info'
|
|
1768
|
+
}]
|
|
1769
|
+
}] });
|
|
1770
|
+
|
|
1771
|
+
/** ************************
|
|
1772
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
1773
|
+
* This style guide was developed by Monkey Exchange Team
|
|
1774
|
+
* MIT Licence
|
|
1775
|
+
************************* */
|
|
1776
|
+
class MonkeyLabelDirective {
|
|
1777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1778
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyLabelDirective, isStandalone: true, selector: "monkey-label", ngImport: i0 }); }
|
|
1779
|
+
}
|
|
1780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyLabelDirective, decorators: [{
|
|
1781
|
+
type: Directive,
|
|
1782
|
+
args: [{
|
|
1783
|
+
selector: 'monkey-label'
|
|
1789
1784
|
}]
|
|
1790
|
-
}]
|
|
1791
|
-
type: Optional
|
|
1792
|
-
}, {
|
|
1793
|
-
type: Inject,
|
|
1794
|
-
args: [MECX_POPOVER_OPTIONS]
|
|
1795
|
-
}], popover: [{
|
|
1796
|
-
type: Input,
|
|
1797
|
-
args: ['monkeyPopover']
|
|
1798
|
-
}], closed: [{
|
|
1799
|
-
type: Input,
|
|
1800
|
-
args: ['monkeyPopoverClosed']
|
|
1801
|
-
}], target: [{
|
|
1802
|
-
type: Input,
|
|
1803
|
-
args: ['monkeyPopoverTarget']
|
|
1804
|
-
}], minwidth: [{
|
|
1805
|
-
type: Input,
|
|
1806
|
-
args: ['monkeyPopoverMinwidth']
|
|
1807
|
-
}], backdrop: [{
|
|
1808
|
-
type: Input,
|
|
1809
|
-
args: ['monkeyPopoverBackdrop']
|
|
1810
|
-
}], watch: [{
|
|
1811
|
-
type: Input,
|
|
1812
|
-
args: ['monkeyPopoverWatch']
|
|
1813
|
-
}], dir: [{
|
|
1814
|
-
type: Input,
|
|
1815
|
-
args: ['monkeyPopoverDir']
|
|
1816
|
-
}], contextmenu: [{
|
|
1817
|
-
type: Input,
|
|
1818
|
-
args: ['monkeyPopoverContextmenu']
|
|
1819
|
-
}], height: [{
|
|
1820
|
-
type: Input,
|
|
1821
|
-
args: ['monkeyPopoverHeight']
|
|
1822
|
-
}], title: [{
|
|
1823
|
-
type: Input,
|
|
1824
|
-
args: ['monkeyPopoverTitle']
|
|
1825
|
-
}], actions: [{
|
|
1826
|
-
type: Input,
|
|
1827
|
-
args: ['monkeyPopoverActions']
|
|
1828
|
-
}], hideClose: [{
|
|
1829
|
-
type: Input,
|
|
1830
|
-
args: [{ alias: 'monkeyPopoverHideClose', transform: booleanAttribute }]
|
|
1831
|
-
}], hideHeader: [{
|
|
1832
|
-
type: Input,
|
|
1833
|
-
args: [{ alias: 'monkeyPopoverHideHeader', transform: booleanAttribute }]
|
|
1834
|
-
}], hideActions: [{
|
|
1835
|
-
type: Input,
|
|
1836
|
-
args: [{ alias: 'monkeyPopoverHideActions', transform: booleanAttribute }]
|
|
1837
|
-
}], enableAutofocus: [{
|
|
1838
|
-
type: Input,
|
|
1839
|
-
args: [{ alias: 'monkeyPopoverEnableAutofocus', transform: booleanAttribute }]
|
|
1840
|
-
}] } });
|
|
1785
|
+
}] });
|
|
1841
1786
|
|
|
1842
1787
|
/** ************************
|
|
1843
1788
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
@@ -1845,14 +1790,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
1845
1790
|
* MIT Licence
|
|
1846
1791
|
************************* */
|
|
1847
1792
|
class MonkeyPrefixDirective {
|
|
1848
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1849
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPrefixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1794
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyPrefixDirective, isStandalone: true, selector: "monkey-prefix", ngImport: i0 }); }
|
|
1850
1795
|
}
|
|
1851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPrefixDirective, decorators: [{
|
|
1852
1797
|
type: Directive,
|
|
1853
1798
|
args: [{
|
|
1854
|
-
selector: 'monkey-prefix'
|
|
1855
|
-
standalone: false
|
|
1799
|
+
selector: 'monkey-prefix'
|
|
1856
1800
|
}]
|
|
1857
1801
|
}] });
|
|
1858
1802
|
|
|
@@ -1878,17 +1822,16 @@ class MonkeySuffixDirective {
|
|
|
1878
1822
|
this.action(event);
|
|
1879
1823
|
}
|
|
1880
1824
|
}
|
|
1881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1882
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeySuffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1826
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeySuffixDirective, isStandalone: true, selector: "monkey-suffix", inputs: { _hasAction: ["hasAction", "_hasAction"] }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.has-action": "hasAction" } }, ngImport: i0 }); }
|
|
1883
1827
|
}
|
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeySuffixDirective, decorators: [{
|
|
1885
1829
|
type: Directive,
|
|
1886
1830
|
args: [{
|
|
1887
1831
|
selector: 'monkey-suffix',
|
|
1888
1832
|
host: {
|
|
1889
1833
|
'[class.has-action]': 'hasAction'
|
|
1890
|
-
}
|
|
1891
|
-
standalone: false
|
|
1834
|
+
}
|
|
1892
1835
|
}]
|
|
1893
1836
|
}], propDecorators: { _hasAction: [{
|
|
1894
1837
|
type: Input,
|
|
@@ -1898,80 +1841,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
1898
1841
|
args: ['click', ['$event']]
|
|
1899
1842
|
}] } });
|
|
1900
1843
|
|
|
1901
|
-
/** ************************
|
|
1902
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1903
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1904
|
-
* MIT Licence
|
|
1905
|
-
************************* */
|
|
1906
|
-
class MonkeyDirectivesModule {
|
|
1907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1908
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDirectivesModule, declarations: [MonkeyErrorDirective,
|
|
1909
|
-
MonkeyHelperDirective,
|
|
1910
|
-
MonkeyInfoDirective,
|
|
1911
|
-
MonkeyLabelDirective,
|
|
1912
|
-
MonkeyDisplayDirective,
|
|
1913
|
-
MonkeyPrefixDirective,
|
|
1914
|
-
MonkeySuffixDirective,
|
|
1915
|
-
MonkeyBadgeDirective,
|
|
1916
|
-
MonkeyPopoverDirective], imports: [MonkeyPopoverContentComponent], exports: [MonkeyErrorDirective,
|
|
1917
|
-
MonkeyHelperDirective,
|
|
1918
|
-
MonkeyInfoDirective,
|
|
1919
|
-
MonkeyLabelDirective,
|
|
1920
|
-
MonkeyDisplayDirective,
|
|
1921
|
-
MonkeyPrefixDirective,
|
|
1922
|
-
MonkeySuffixDirective,
|
|
1923
|
-
MonkeyBadgeDirective,
|
|
1924
|
-
MonkeyPopoverDirective] }); }
|
|
1925
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDirectivesModule, imports: [MonkeyPopoverContentComponent] }); }
|
|
1926
|
-
}
|
|
1927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDirectivesModule, decorators: [{
|
|
1928
|
-
type: NgModule,
|
|
1929
|
-
args: [{
|
|
1930
|
-
imports: [MonkeyPopoverContentComponent],
|
|
1931
|
-
declarations: [
|
|
1932
|
-
MonkeyErrorDirective,
|
|
1933
|
-
MonkeyHelperDirective,
|
|
1934
|
-
MonkeyInfoDirective,
|
|
1935
|
-
MonkeyLabelDirective,
|
|
1936
|
-
MonkeyDisplayDirective,
|
|
1937
|
-
MonkeyPrefixDirective,
|
|
1938
|
-
MonkeySuffixDirective,
|
|
1939
|
-
MonkeyBadgeDirective,
|
|
1940
|
-
MonkeyPopoverDirective
|
|
1941
|
-
],
|
|
1942
|
-
exports: [
|
|
1943
|
-
MonkeyErrorDirective,
|
|
1944
|
-
MonkeyHelperDirective,
|
|
1945
|
-
MonkeyInfoDirective,
|
|
1946
|
-
MonkeyLabelDirective,
|
|
1947
|
-
MonkeyDisplayDirective,
|
|
1948
|
-
MonkeyPrefixDirective,
|
|
1949
|
-
MonkeySuffixDirective,
|
|
1950
|
-
MonkeyBadgeDirective,
|
|
1951
|
-
MonkeyPopoverDirective
|
|
1952
|
-
]
|
|
1953
|
-
}]
|
|
1954
|
-
}] });
|
|
1955
|
-
|
|
1956
|
-
/** ************************
|
|
1957
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1958
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1959
|
-
* MIT Licence
|
|
1960
|
-
************************* */
|
|
1961
|
-
|
|
1962
|
-
/** ************************
|
|
1963
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1964
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1965
|
-
* MIT Licence
|
|
1966
|
-
************************* */
|
|
1967
|
-
class MonkeyFormFieldControl {
|
|
1968
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1969
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.14", type: MonkeyFormFieldControl, isStandalone: true, ngImport: i0 }); }
|
|
1970
|
-
}
|
|
1971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyFormFieldControl, decorators: [{
|
|
1972
|
-
type: Directive
|
|
1973
|
-
}] });
|
|
1974
|
-
|
|
1975
1844
|
/** ************************
|
|
1976
1845
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
1977
1846
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -2036,6 +1905,27 @@ class MonkeyFormFieldComponent {
|
|
|
2036
1905
|
this.size = 'md';
|
|
2037
1906
|
this.displayOnly = input(false, ...(ngDevMode ? [{ debugName: "displayOnly" }] : []));
|
|
2038
1907
|
this.onDisplayOnlyChange = output();
|
|
1908
|
+
this._displayChild = ContentChildren(MonkeyDisplayDirective, {
|
|
1909
|
+
descendants: true
|
|
1910
|
+
});
|
|
1911
|
+
this._labelChildren = ContentChildren(MonkeyLabelDirective, {
|
|
1912
|
+
descendants: true
|
|
1913
|
+
});
|
|
1914
|
+
this._helperChildren = ContentChildren(MonkeyHelperDirective, {
|
|
1915
|
+
descendants: true
|
|
1916
|
+
});
|
|
1917
|
+
this._prefixChildren = ContentChildren(MonkeyPrefixDirective, {
|
|
1918
|
+
descendants: true
|
|
1919
|
+
});
|
|
1920
|
+
this._suffixChildren = ContentChildren(MonkeySuffixDirective, {
|
|
1921
|
+
descendants: true
|
|
1922
|
+
});
|
|
1923
|
+
this._infoChildren = ContentChildren(MonkeyInfoDirective, {
|
|
1924
|
+
descendants: true
|
|
1925
|
+
});
|
|
1926
|
+
this._errorChildren = ContentChildren(MonkeyErrorDirective, {
|
|
1927
|
+
descendants: true
|
|
1928
|
+
});
|
|
2039
1929
|
this.elementRef = inject(ElementRef);
|
|
2040
1930
|
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
2041
1931
|
this._idGenerator = inject(IdGenerator);
|
|
@@ -2090,7 +1980,7 @@ class MonkeyFormFieldComponent {
|
|
|
2090
1980
|
checkPrefixAndSuffix() {
|
|
2091
1981
|
this.hasPrefix = !!this._prefixChildren?.length;
|
|
2092
1982
|
this.hasSuffix = !!this._suffixChildren?.length;
|
|
2093
|
-
const suffix = this._suffixChildren
|
|
1983
|
+
const suffix = this._suffixChildren?.get?.(0);
|
|
2094
1984
|
if (suffix) {
|
|
2095
1985
|
suffix.action = (event) => {
|
|
2096
1986
|
event.preventDefault();
|
|
@@ -2100,10 +1990,12 @@ class MonkeyFormFieldComponent {
|
|
|
2100
1990
|
}
|
|
2101
1991
|
initializePrefixAndSuffix() {
|
|
2102
1992
|
this.checkPrefixAndSuffix();
|
|
2103
|
-
|
|
2104
|
-
this.
|
|
2105
|
-
|
|
2106
|
-
|
|
1993
|
+
if (this._prefixChildren?.changes || this._suffixChildren?.changes) {
|
|
1994
|
+
merge(this._prefixChildren?.changes, this._suffixChildren?.changes).subscribe(() => {
|
|
1995
|
+
this.checkPrefixAndSuffix();
|
|
1996
|
+
this._changeDetectorRef.markForCheck();
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
2107
1999
|
}
|
|
2108
2000
|
checkInfoError() {
|
|
2109
2001
|
this.hasInfo = !!this._infoChildren?.length;
|
|
@@ -2111,10 +2003,12 @@ class MonkeyFormFieldComponent {
|
|
|
2111
2003
|
}
|
|
2112
2004
|
initializeInfoError() {
|
|
2113
2005
|
this.checkInfoError();
|
|
2114
|
-
|
|
2115
|
-
this.
|
|
2116
|
-
|
|
2117
|
-
|
|
2006
|
+
if (this._infoChildren?.changes || this._errorChildren?.changes) {
|
|
2007
|
+
merge(this._infoChildren?.changes, this._errorChildren?.changes).subscribe(() => {
|
|
2008
|
+
this.checkInfoError();
|
|
2009
|
+
this._changeDetectorRef.markForCheck();
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2118
2012
|
}
|
|
2119
2013
|
initializeComponents() {
|
|
2120
2014
|
this.hasLabel = !!this._labelChildren?.length;
|
|
@@ -2220,10 +2114,10 @@ class MonkeyFormFieldComponent {
|
|
|
2220
2114
|
this.control.onContainerClick(event);
|
|
2221
2115
|
}, 0);
|
|
2222
2116
|
}
|
|
2223
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2224
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2118
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyFormFieldComponent, isStandalone: false, selector: "monkey-form-field", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, hideAction: { classPropertyName: "hideAction", publicName: "hideAction", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, enableClear: { classPropertyName: "enableClear", publicName: "enableClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, displayOnly: { classPropertyName: "displayOnly", publicName: "displayOnly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onDisplayOnlyChange: "onDisplayOnlyChange" }, host: { properties: { "class.mecx-disabled": "control.disabled", "class.mecx-form-field-focused": "control.focused", "class.mecx-form-field-invalid": "showInvalid", "class.mecx-form-field-borderless": "hideBorder()", "attr.id": "id", "id": "id", "class": "size" }, classAttribute: "mecx-form-field" }, queries: [{ propertyName: "_formFieldControl", first: true, predicate: MonkeyFormFieldControl, descendants: true }], exportAs: ["monkeyFormField"], ngImport: i0, template: "@if (internalDisplayOnly()) {\n <div class=\"mecx-form-field-display-only\" (click)=\"onCancelDisplayOnly($event)\">\n <div class=\"mecx-form-field-display-only-header\">\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n </div>\n <div class=\"mecx-form-field-display-only-body\">\n <ng-content select=\"monkey-display\"></ng-content>\n </div>\n <div class=\"mecx-form-field-display-only-action\">\n {{ editDictionary | async }} <util-icon name=\"edit\" />\n </div>\n </div>\n} @else {\n @if (showHeader) {\n <div class=\"mecx-form-field-header\" (click)=\"control.onContainerClick($event)\">\n <label [id]=\"labelId\" [attr.for]=\"control.id\">\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n </label>\n <ng-content select=\"monkey-helper\"></ng-content>\n </div>\n }\n\n <div class=\"mecx-form-field-body\" (click)=\"control.onContainerClick($event)\">\n @if (hasPrefix) {\n <ng-content select=\"monkey-prefix\"></ng-content>\n }\n @if (getSymbols(); as symbols) {\n <div class=\"mecx-form-field-prefix-symbol\">\n {{ symbols }}\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (showClear()) {\n <util-icon class=\"mecx-clear\" name=\"clear\" (click)=\"onClear($event)\" />\n }\n @if (showCalendar) {\n <util-icon class=\"mecx-calendar\" name=\"calendar\" (click)=\"onOpenCalendar($event)\" />\n }\n @if (showLoading) {\n <util-icon class=\"mecx-form-field-loading\" name=\"loading\" />\n }\n\n @if (hasSuffix) {\n <ng-content select=\"monkey-suffix\"></ng-content>\n }\n </div>\n\n @if (showFooter) {\n <div class=\"mecx-form-field-footer\" (click)=\"control.onContainerClick($event)\">\n @switch (getFooterMessages()) {\n @case ('error') {\n <ng-content select=\"monkey-error\"></ng-content>\n }\n @case ('info') {\n <div class=\"mecx-form-field-info\">\n <ng-content select=\"monkey-info\"></ng-content>\n </div>\n }\n }\n </div>\n }\n}\n\n<ng-template #labelTpl>\n <ng-content select=\"monkey-label\"></ng-content>\n</ng-template>\n", styles: [".mecx-form-field{width:100%;display:inline-flex;flex-direction:column;min-width:0;text-align:left;gap:6px}.mecx-disabled .mecx-form-field{cursor:not-allowed;pointer-events:none}.mecx-form-field-header{display:flex;justify-content:space-between;align-items:center}.mecx-disabled .mecx-form-field-header label{pointer-events:none}.mecx-form-field-loading{display:flex}.mecx-form-field-loading svg path{fill:var(--mecx-color-theme-main)}.mecx-form-field-body{width:100%;border-radius:4px;border:2px solid var(--mecx-color-gray-400);padding:8px;gap:4px;background:var(--mecx-color-white);color:var(--mecx-color-gray-500);box-sizing:border-box;height:40px;display:flex;align-items:center;position:relative}.mecx-form-field-invalid .mecx-form-field-body{border:2px solid var(--mecx-color-error-700)}.mecx-form-field-invalid .mecx-form-field-body .mecx-option:not(.mecx-option-disabled).radio:before{border:2px solid var(--mecx-color-error-700)}.mecx-form-field-focused .mecx-form-field-body{border-color:var(--mecx-color-gray-900)}.mecx-disabled .mecx-form-field-body{border-color:var(--mecx-color-gray-50);background:var(--mecx-color-gray-50);border-radius:8px;cursor:not-allowed}.mecx-form-field-body .mecx-clear,.mecx-form-field-body .mecx-calendar{display:flex;align-items:center;justify-content:center;cursor:pointer}.mecx-form-field-body .mecx-calendar svg path{fill:var(--mecx-color-theme-main)}.sm .mecx-form-field-body{height:32px}.md .mecx-form-field-body{height:40px}.lg .mecx-form-field-body{height:48px}.mecx-form-field-footer{display:flex;flex-direction:column}.mecx-form-field-prefix-symbol{color:var(--mecx-color-gray-700);font-size:16px;font-weight:400;font-style:normal;width:22px;text-align:center}.mecx-form-field-prefix-symbol .mk-i{display:flex}.mecx-disabled .mecx-form-field-prefix-symbol{color:var(--mecx-color-gray-400)!important;pointer-events:none}.mecx-form-field-borderless .mecx-form-field-body{background-color:transparent;border:0;border-radius:0;padding:0;height:unset;align-items:flex-start;outline:none;outline-offset:unset}.mecx-form-field-borderless.mecx-form-field-focused .mecx-form-field-body{outline:none;outline-offset:unset}.mecx-form-field-display-only{position:relative;display:inline-flex;width:100%;cursor:pointer}.mecx-form-field-display-only-header{width:50%;max-width:255px}@media (max-width: 767.98px){.mecx-form-field-display-only-header{width:100%}}.mecx-form-field-display-only-header monkey-label{color:var(--mecx-color-gray-700);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.14px;word-wrap:break-word}.mecx-form-field-display-only-body{color:var(--mecx-color-gray-900);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.14px;word-wrap:break-word}.mecx-form-field-display-only-action{position:absolute;right:0;display:none;align-items:center;gap:4px;color:var(--mecx-color-gray-900);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.14px;word-wrap:break-word;background:var(--mecx-color-white);padding:0 10px}.mecx-form-field-display-only-action util-icon svg{width:20px;height:20px}.mecx-form-field-display-only:hover .mecx-form-field-display-only-action{display:inline-flex;text-decoration:underline}\n/*!\n* Bootstrap Grid v5.3.7 (https://getbootstrap.com/)\n* Copyright 2011-2025 The Bootstrap Authors\n* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n*/\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2225
2119
|
}
|
|
2226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldComponent, decorators: [{
|
|
2227
2121
|
type: Component,
|
|
2228
2122
|
args: [{ encapsulation: ViewEncapsulation.None, selector: 'monkey-form-field', exportAs: 'monkeyFormField', host: {
|
|
2229
2123
|
class: 'mecx-form-field',
|
|
@@ -2234,7 +2128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
2234
2128
|
'[attr.id]': 'id',
|
|
2235
2129
|
'[id]': 'id',
|
|
2236
2130
|
'[class]': 'size'
|
|
2237
|
-
}, standalone: false, template: "@if (internalDisplayOnly()) {\n <div class=\"mecx-form-field-display-only\" (click)=\"onCancelDisplayOnly($event)\">\n <div class=\"mecx-form-field-display-only-header\">\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n </div>\n <div class=\"mecx-form-field-display-only-body\">\n <ng-content select=\"monkey-display\"></ng-content>\n </div>\n <div class=\"mecx-form-field-display-only-action\">\n {{ editDictionary | async }} <util-icon name=\"edit\" />\n </div>\n </div>\n} @else {\n @if (showHeader) {\n <div class=\"mecx-form-field-header\" (click)=\"control.onContainerClick($event)\">\n <label [id]=\"labelId\" [attr.for]=\"control.id\">\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n </label>\n <ng-content select=\"monkey-helper\"></ng-content>\n </div>\n }\n\n <div class=\"mecx-form-field-body\" (click)=\"control.onContainerClick($event)\">\n @if (hasPrefix) {\n <ng-content select=\"monkey-prefix\"></ng-content>\n }\n @if (getSymbols(); as symbols) {\n <div class=\"mecx-form-field-prefix-symbol\">\n {{ symbols }}\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (showClear()) {\n <util-icon class=\"mecx-clear\" name=\"clear\" (click)=\"onClear($event)\" />\n }\n @if (showCalendar) {\n <util-icon class=\"mecx-calendar\" name=\"calendar\" (click)=\"onOpenCalendar($event)\" />\n }\n @if (showLoading) {\n <util-icon class=\"mecx-form-field-loading\" name=\"loading\" />\n }\n\n @if (hasSuffix) {\n <ng-content select=\"monkey-suffix\"></ng-content>\n }\n </div>\n\n @if (showFooter) {\n <div class=\"mecx-form-field-footer\" (click)=\"control.onContainerClick($event)\">\n @switch (getFooterMessages()) {\n @case ('error') {\n <ng-content select=\"monkey-error\"></ng-content>\n }\n @case ('info') {\n <div class=\"mecx-form-field-info\">\n <ng-content select=\"monkey-info\"></ng-content>\n </div>\n }\n }\n </div>\n }\n}\n\n<ng-template #labelTpl>\n <ng-content select=\"monkey-label\"></ng-content>\n</ng-template>\n", styles: [".mecx-form-field{width:100%;display:inline-flex;flex-direction:column;min-width:0;text-align:left;gap:6px}.mecx-disabled .mecx-form-field{cursor:not-allowed;pointer-events:none}.mecx-form-field-header{display:flex;justify-content:space-between;align-items:center}.mecx-disabled .mecx-form-field-header label{pointer-events:none}.mecx-form-field-body{width:100%;border-radius:4px;border:2px solid var(--mecx-color-gray-400);padding:8px;gap:4px;background:var(--mecx-color-white);color:var(--mecx-color-gray-500);box-sizing:border-box;height:40px;display:flex;align-items:center;position:relative}.mecx-form-field-invalid .mecx-form-field-body{border:2px solid var(--mecx-color-error-700)}.mecx-form-field-invalid .mecx-form-field-body .mecx-option:not(.mecx-option-disabled).radio:before{border:2px solid var(--mecx-color-error-700)}.mecx-form-field-focused .mecx-form-field-body{border-color:var(--mecx-color-gray-900)}.mecx-disabled .mecx-form-field-body{border-color:var(--mecx-color-gray-50);background:var(--mecx-color-gray-50);border-radius:8px;cursor:not-allowed}.mecx-form-field-body .mecx-clear,.mecx-form-field-body .mecx-calendar{display:flex;align-items:center;justify-content:center;cursor:pointer}.mecx-form-field-body .mecx-calendar svg path{fill:var(--mecx-color-theme-main)}.sm .mecx-form-field-body{height:32px}.md .mecx-form-field-body{height:40px}.lg .mecx-form-field-body{height:48px}.mecx-form-field-footer{display:flex;flex-direction:column}.mecx-form-field-prefix-symbol{color:var(--mecx-color-gray-700);font-size:16px;font-weight:400;font-style:normal;width:22px;text-align:center}.mecx-form-field-prefix-symbol .mk-i{display:flex}.mecx-disabled .mecx-form-field-prefix-symbol{color:var(--mecx-color-gray-400)!important;pointer-events:none}.mecx-form-field-
|
|
2131
|
+
}, standalone: false, template: "@if (internalDisplayOnly()) {\n <div class=\"mecx-form-field-display-only\" (click)=\"onCancelDisplayOnly($event)\">\n <div class=\"mecx-form-field-display-only-header\">\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n </div>\n <div class=\"mecx-form-field-display-only-body\">\n <ng-content select=\"monkey-display\"></ng-content>\n </div>\n <div class=\"mecx-form-field-display-only-action\">\n {{ editDictionary | async }} <util-icon name=\"edit\" />\n </div>\n </div>\n} @else {\n @if (showHeader) {\n <div class=\"mecx-form-field-header\" (click)=\"control.onContainerClick($event)\">\n <label [id]=\"labelId\" [attr.for]=\"control.id\">\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n </label>\n <ng-content select=\"monkey-helper\"></ng-content>\n </div>\n }\n\n <div class=\"mecx-form-field-body\" (click)=\"control.onContainerClick($event)\">\n @if (hasPrefix) {\n <ng-content select=\"monkey-prefix\"></ng-content>\n }\n @if (getSymbols(); as symbols) {\n <div class=\"mecx-form-field-prefix-symbol\">\n {{ symbols }}\n </div>\n }\n\n <ng-content></ng-content>\n\n @if (showClear()) {\n <util-icon class=\"mecx-clear\" name=\"clear\" (click)=\"onClear($event)\" />\n }\n @if (showCalendar) {\n <util-icon class=\"mecx-calendar\" name=\"calendar\" (click)=\"onOpenCalendar($event)\" />\n }\n @if (showLoading) {\n <util-icon class=\"mecx-form-field-loading\" name=\"loading\" />\n }\n\n @if (hasSuffix) {\n <ng-content select=\"monkey-suffix\"></ng-content>\n }\n </div>\n\n @if (showFooter) {\n <div class=\"mecx-form-field-footer\" (click)=\"control.onContainerClick($event)\">\n @switch (getFooterMessages()) {\n @case ('error') {\n <ng-content select=\"monkey-error\"></ng-content>\n }\n @case ('info') {\n <div class=\"mecx-form-field-info\">\n <ng-content select=\"monkey-info\"></ng-content>\n </div>\n }\n }\n </div>\n }\n}\n\n<ng-template #labelTpl>\n <ng-content select=\"monkey-label\"></ng-content>\n</ng-template>\n", styles: [".mecx-form-field{width:100%;display:inline-flex;flex-direction:column;min-width:0;text-align:left;gap:6px}.mecx-disabled .mecx-form-field{cursor:not-allowed;pointer-events:none}.mecx-form-field-header{display:flex;justify-content:space-between;align-items:center}.mecx-disabled .mecx-form-field-header label{pointer-events:none}.mecx-form-field-loading{display:flex}.mecx-form-field-loading svg path{fill:var(--mecx-color-theme-main)}.mecx-form-field-body{width:100%;border-radius:4px;border:2px solid var(--mecx-color-gray-400);padding:8px;gap:4px;background:var(--mecx-color-white);color:var(--mecx-color-gray-500);box-sizing:border-box;height:40px;display:flex;align-items:center;position:relative}.mecx-form-field-invalid .mecx-form-field-body{border:2px solid var(--mecx-color-error-700)}.mecx-form-field-invalid .mecx-form-field-body .mecx-option:not(.mecx-option-disabled).radio:before{border:2px solid var(--mecx-color-error-700)}.mecx-form-field-focused .mecx-form-field-body{border-color:var(--mecx-color-gray-900)}.mecx-disabled .mecx-form-field-body{border-color:var(--mecx-color-gray-50);background:var(--mecx-color-gray-50);border-radius:8px;cursor:not-allowed}.mecx-form-field-body .mecx-clear,.mecx-form-field-body .mecx-calendar{display:flex;align-items:center;justify-content:center;cursor:pointer}.mecx-form-field-body .mecx-calendar svg path{fill:var(--mecx-color-theme-main)}.sm .mecx-form-field-body{height:32px}.md .mecx-form-field-body{height:40px}.lg .mecx-form-field-body{height:48px}.mecx-form-field-footer{display:flex;flex-direction:column}.mecx-form-field-prefix-symbol{color:var(--mecx-color-gray-700);font-size:16px;font-weight:400;font-style:normal;width:22px;text-align:center}.mecx-form-field-prefix-symbol .mk-i{display:flex}.mecx-disabled .mecx-form-field-prefix-symbol{color:var(--mecx-color-gray-400)!important;pointer-events:none}.mecx-form-field-borderless .mecx-form-field-body{background-color:transparent;border:0;border-radius:0;padding:0;height:unset;align-items:flex-start;outline:none;outline-offset:unset}.mecx-form-field-borderless.mecx-form-field-focused .mecx-form-field-body{outline:none;outline-offset:unset}.mecx-form-field-display-only{position:relative;display:inline-flex;width:100%;cursor:pointer}.mecx-form-field-display-only-header{width:50%;max-width:255px}@media (max-width: 767.98px){.mecx-form-field-display-only-header{width:100%}}.mecx-form-field-display-only-header monkey-label{color:var(--mecx-color-gray-700);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.14px;word-wrap:break-word}.mecx-form-field-display-only-body{color:var(--mecx-color-gray-900);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.14px;word-wrap:break-word}.mecx-form-field-display-only-action{position:absolute;right:0;display:none;align-items:center;gap:4px;color:var(--mecx-color-gray-900);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.14px;word-wrap:break-word;background:var(--mecx-color-white);padding:0 10px}.mecx-form-field-display-only-action util-icon svg{width:20px;height:20px}.mecx-form-field-display-only:hover .mecx-form-field-display-only-action{display:inline-flex;text-decoration:underline}\n/*!\n* Bootstrap Grid v5.3.7 (https://getbootstrap.com/)\n* Copyright 2011-2025 The Bootstrap Authors\n* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n*/\n"] }]
|
|
2238
2132
|
}], ctorParameters: () => [], propDecorators: { id: [{
|
|
2239
2133
|
type: Input
|
|
2240
2134
|
}], hideAction: [{
|
|
@@ -2248,27 +2142,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
2248
2142
|
}], displayOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayOnly", required: false }] }], onDisplayOnlyChange: [{ type: i0.Output, args: ["onDisplayOnlyChange"] }], _formFieldControl: [{
|
|
2249
2143
|
type: ContentChild,
|
|
2250
2144
|
args: [MonkeyFormFieldControl]
|
|
2251
|
-
}], _displayChild: [{
|
|
2252
|
-
type: ContentChild,
|
|
2253
|
-
args: [MonkeyDisplayDirective]
|
|
2254
|
-
}], _labelChildren: [{
|
|
2255
|
-
type: ContentChildren,
|
|
2256
|
-
args: [MonkeyLabelDirective, { descendants: true }]
|
|
2257
|
-
}], _helperChildren: [{
|
|
2258
|
-
type: ContentChildren,
|
|
2259
|
-
args: [MonkeyHelperDirective, { descendants: true }]
|
|
2260
|
-
}], _prefixChildren: [{
|
|
2261
|
-
type: ContentChildren,
|
|
2262
|
-
args: [MonkeyPrefixDirective, { descendants: true }]
|
|
2263
|
-
}], _suffixChildren: [{
|
|
2264
|
-
type: ContentChildren,
|
|
2265
|
-
args: [MonkeySuffixDirective, { descendants: true }]
|
|
2266
|
-
}], _infoChildren: [{
|
|
2267
|
-
type: ContentChildren,
|
|
2268
|
-
args: [MonkeyInfoDirective, { descendants: true }]
|
|
2269
|
-
}], _errorChildren: [{
|
|
2270
|
-
type: ContentChildren,
|
|
2271
|
-
args: [MonkeyErrorDirective, { descendants: true }]
|
|
2272
2145
|
}] } });
|
|
2273
2146
|
|
|
2274
2147
|
/** ************************
|
|
@@ -2277,11 +2150,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
2277
2150
|
* MIT Licence
|
|
2278
2151
|
************************* */
|
|
2279
2152
|
class MonkeyFormFieldModule {
|
|
2280
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2281
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2282
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2154
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldModule, declarations: [MonkeyFormFieldComponent], imports: [CommonModule, UtilIconComponent], exports: [MonkeyFormFieldComponent] }); }
|
|
2155
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldModule, imports: [CommonModule] }); }
|
|
2283
2156
|
}
|
|
2284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFormFieldModule, decorators: [{
|
|
2285
2158
|
type: NgModule,
|
|
2286
2159
|
args: [{
|
|
2287
2160
|
imports: [CommonModule, UtilIconComponent],
|
|
@@ -2332,8 +2205,8 @@ class MonkeyOptionComponent {
|
|
|
2332
2205
|
this.handleAction(event);
|
|
2333
2206
|
}
|
|
2334
2207
|
}
|
|
2335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2336
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2209
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyOptionComponent, isStandalone: true, selector: "monkey-option", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-option" }, listeners: { "click": "onClick($event)", "keydown": "handleKeyDown($event)" }, properties: { "attr.id": "id", "class.mecx-option-disabled": "disabled", "class.mecx-option-selected": "selected", "attr.tabindex": "disabled ? -1 : tabIndex", "class": "type" }, classAttribute: "mecx-option" }, viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true, static: true }], ngImport: i0, template: `
|
|
2337
2210
|
@if (type === 'checkbox') {
|
|
2338
2211
|
<span class="mecx-option-checkbox">
|
|
2339
2212
|
<util-icon class="icon" name="check" />
|
|
@@ -2342,7 +2215,7 @@ class MonkeyOptionComponent {
|
|
|
2342
2215
|
<div #content><ng-content /></div>
|
|
2343
2216
|
`, isInline: true, styles: ["monkey-option{display:flex;position:relative;cursor:pointer;padding:16px;line-height:16px;font-size:14px;color:var(--mecx-color-gray-900);transition:all .1s ease-in-out}monkey-option>div{display:flex;white-space:normal;word-break:break-all}monkey-option.select:hover{color:var(--mecx-color-gray-900);background-color:var(--mecx-color-gray-100)}monkey-option.select.mecx-option-disabled{color:var(--mecx-color-gray-400);background-color:var(--mecx-color-white);cursor:default}monkey-option.select.mecx-option-selected{color:var(--mecx-color-gray-900);background-color:var(--mecx-color-gray-300)}monkey-option.select.mecx-option-selected svg path{fill:var(--mecx-color-gray-900)}.ng-animating monkey-option.select.mecx-option-selected{color:var(--mecx-color-gray-900);background-color:var(--mecx-color-gray-100)}monkey-option.radio{display:flex;align-items:center;gap:10px;padding:8px 24px 8px 0;cursor:pointer;border-radius:4px;-webkit-user-select:none;user-select:none;position:relative}monkey-option.radio:before{content:\"\";width:20px;height:20px;border:2px solid var(--mecx-color-gray-600);border-radius:800px;box-sizing:border-box;background-color:var(--mecx-color-white)}monkey-option.radio:focus-visible{outline:unset;outline-offset:1px}monkey-option.radio:focus-visible:before{outline:2px solid var(--mecx-color-theme-main);outline-offset:1px}monkey-option.radio.mecx-option-selected:before{border:5px solid var(--mecx-color-theme-main)}monkey-option.radio.mecx-option-disabled{opacity:.5;pointer-events:none}monkey-option.radio.mecx-option-disabled:before{background:var(--mecx-color-white);border-color:var(--mecx-color-gray-400)}monkey-option.checkbox{display:flex;align-items:center;gap:10px;padding:8px 24px 8px 8px;cursor:pointer;border-radius:4px;-webkit-user-select:none;user-select:none;position:relative}monkey-option.checkbox:hover{color:var(--mecx-color-gray-900);background-color:var(--mecx-color-gray-100)}monkey-option.checkbox .mecx-option-checkbox{display:block;width:24px;height:24px;border:2px solid var(--mecx-color-gray-400);background-color:var(--mecx-color-white);border-radius:8px;position:relative;transition:background-color .2s ease;box-sizing:border-box;flex-shrink:0}monkey-option.checkbox .mecx-option-checkbox .icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}monkey-option.checkbox.mecx-option-selected .mecx-option-checkbox{border:none;background-color:var(--mecx-color-theme-main)}monkey-option.checkbox.mecx-option-disabled{opacity:.5;pointer-events:none}monkey-option.checkbox.mecx-option-disabled .mecx-option-checkbox{outline:unset;outline-offset:unset}monkey-option.checkbox:focus{outline:unset;outline-offset:1px}monkey-option.checkbox:focus .mecx-option-checkbox{outline:2px solid var(--mecx-color-theme-main);outline-offset:1px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2344
2217
|
}
|
|
2345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyOptionComponent, decorators: [{
|
|
2346
2219
|
type: Component,
|
|
2347
2220
|
args: [{ selector: 'monkey-option', standalone: true, imports: [CommonModule, UtilIconComponent], template: `
|
|
2348
2221
|
@if (type === 'checkbox') {
|
|
@@ -2464,7 +2337,7 @@ class MonkeyAutocompleteComponent {
|
|
|
2464
2337
|
return this._elementRef?.nativeElement;
|
|
2465
2338
|
}
|
|
2466
2339
|
updateWidth() {
|
|
2467
|
-
this.initialDisplayWidth = this.elementTarget?.offsetWidth - 12;
|
|
2340
|
+
this.initialDisplayWidth = (this.elementTarget?.offsetWidth || 0) - 12;
|
|
2468
2341
|
}
|
|
2469
2342
|
ngAfterContentInit() {
|
|
2470
2343
|
this._searchEvent
|
|
@@ -2558,8 +2431,8 @@ class MonkeyAutocompleteComponent {
|
|
|
2558
2431
|
isSelected(option) {
|
|
2559
2432
|
return option?.value === this.value;
|
|
2560
2433
|
}
|
|
2561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2562
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2434
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAutocompleteComponent, deps: [{ token: MonkeyFormFieldComponent, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2435
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyAutocompleteComponent, isStandalone: true, selector: "monkey-autocomplete", inputs: { placeholder: "placeholder", debounce: "debounce", tabIndex: "tabIndex", fetchOptions: "fetchOptions", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "focus": "_onFocus()", "blur": "_onBlur($event)" }, properties: { "attr.data-testid": "'monkey-autocomplete'", "class.mecx-autocomplete-disabled": "_disabled", "class.mecx-autocomplete-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-autocomplete" }, providers: [
|
|
2563
2436
|
// eslint-disable-next-line no-use-before-define
|
|
2564
2437
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyAutocompleteComponent }
|
|
2565
2438
|
], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["optionTemplate"], descendants: true }], viewQueries: [{ propertyName: "containerWrapper", first: true, predicate: ["containerWrapper"], descendants: true }], ngImport: i0, template: `
|
|
@@ -2577,68 +2450,63 @@ class MonkeyAutocompleteComponent {
|
|
|
2577
2450
|
[(ngModel)]="searchData"
|
|
2578
2451
|
/>
|
|
2579
2452
|
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2453
|
+
<ng-template
|
|
2454
|
+
[monkeyPopover]="showPopOver"
|
|
2455
|
+
[monkeyPopoverTarget]="elementTarget"
|
|
2456
|
+
[monkeyPopoverClosed]="closePopOver"
|
|
2457
|
+
monkeyPopoverDir="ltr"
|
|
2458
|
+
[monkeyPopoverBackdrop]="false"
|
|
2459
|
+
[monkeyPopoverHideHeader]="true"
|
|
2460
|
+
[monkeyPopoverWatch]="true"
|
|
2461
|
+
>
|
|
2462
|
+
<div
|
|
2463
|
+
#containerWrapper
|
|
2464
|
+
class="mecx-autocomplete-wrapper"
|
|
2465
|
+
[style.width.px]="initialDisplayWidth"
|
|
2589
2466
|
>
|
|
2590
|
-
<div
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
*
|
|
2599
|
-
(click)="onSelect(option)"
|
|
2600
|
-
[class.mecx-autocomplete-selected]="isSelected(option)"
|
|
2467
|
+
<div *ngIf="options.length > 0" class="mecx-autocomplete-options">
|
|
2468
|
+
<div
|
|
2469
|
+
class="mecx-autocomplete-option"
|
|
2470
|
+
*ngFor="let option of options"
|
|
2471
|
+
(click)="onSelect(option)"
|
|
2472
|
+
[class.mecx-autocomplete-selected]="isSelected(option)"
|
|
2473
|
+
>
|
|
2474
|
+
<ng-container
|
|
2475
|
+
*ngTemplateOutlet="optionTemplate || defaultTemplate; context: { $implicit: option }"
|
|
2601
2476
|
>
|
|
2602
|
-
|
|
2603
|
-
*ngTemplateOutlet="
|
|
2604
|
-
optionTemplate || defaultTemplate;
|
|
2605
|
-
context: { $implicit: option }
|
|
2606
|
-
"
|
|
2607
|
-
>
|
|
2608
|
-
</ng-container>
|
|
2609
|
-
</div>
|
|
2477
|
+
</ng-container>
|
|
2610
2478
|
</div>
|
|
2611
|
-
@if (loading) {
|
|
2612
|
-
<div class="mecx-autocomplete-loading">
|
|
2613
|
-
<util-icon name="loading" />
|
|
2614
|
-
{{ loadingDictionary | async }}
|
|
2615
|
-
</div>
|
|
2616
|
-
}
|
|
2617
|
-
@if (!loading && !options.length) {
|
|
2618
|
-
<div class="mecx-autocomplete-no-data">
|
|
2619
|
-
<util-icon class="mecx-autocomplete-no-data-icon" name="searchFail" />
|
|
2620
|
-
{{ noDataDictionary | async }}
|
|
2621
|
-
</div>
|
|
2622
|
-
}
|
|
2623
2479
|
</div>
|
|
2480
|
+
@if (loading) {
|
|
2481
|
+
<div class="mecx-autocomplete-loading">
|
|
2482
|
+
<util-icon name="loading" />
|
|
2483
|
+
{{ loadingDictionary | async }}
|
|
2484
|
+
</div>
|
|
2485
|
+
}
|
|
2486
|
+
@if (!loading && !options.length) {
|
|
2487
|
+
<div class="mecx-autocomplete-no-data">
|
|
2488
|
+
<util-icon class="mecx-autocomplete-no-data-icon" name="searchFail" />
|
|
2489
|
+
{{ noDataDictionary | async }}
|
|
2490
|
+
</div>
|
|
2491
|
+
}
|
|
2492
|
+
</div>
|
|
2624
2493
|
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
</ng-template>
|
|
2494
|
+
<ng-template #defaultTemplate let-option>
|
|
2495
|
+
<monkey-option>
|
|
2496
|
+
{{ option.description }}
|
|
2497
|
+
</monkey-option>
|
|
2630
2498
|
</ng-template>
|
|
2631
|
-
|
|
2632
|
-
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host input{background:transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "
|
|
2499
|
+
</ng-template>
|
|
2500
|
+
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host input{background:transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "directive", type: MonkeyPopoverDirective, selector: "[monkeyPopover]", inputs: ["monkeyPopover", "monkeyPopoverClosed", "monkeyPopoverTarget", "monkeyPopoverMinwidth", "monkeyPopoverBackdrop", "monkeyPopoverWatch", "monkeyPopoverDir", "monkeyPopoverContextmenu", "monkeyPopoverHeight", "monkeyPopoverTitle", "monkeyPopoverActions", "monkeyPopoverHideClose", "monkeyPopoverHideHeader", "monkeyPopoverHideActions", "monkeyPopoverEnableAutofocus"] }, { kind: "component", type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["value", "disabled", "type"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
2633
2501
|
}
|
|
2634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAutocompleteComponent, decorators: [{
|
|
2635
2503
|
type: Component,
|
|
2636
2504
|
args: [{ selector: 'monkey-autocomplete', imports: [
|
|
2637
2505
|
CommonModule,
|
|
2638
2506
|
FormsModule,
|
|
2639
2507
|
ReactiveFormsModule,
|
|
2640
2508
|
MonkeyFormFieldModule,
|
|
2641
|
-
|
|
2509
|
+
MonkeyPopoverDirective,
|
|
2642
2510
|
MonkeyOptionComponent,
|
|
2643
2511
|
UtilIconComponent
|
|
2644
2512
|
], template: `
|
|
@@ -2656,58 +2524,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
2656
2524
|
[(ngModel)]="searchData"
|
|
2657
2525
|
/>
|
|
2658
2526
|
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2527
|
+
<ng-template
|
|
2528
|
+
[monkeyPopover]="showPopOver"
|
|
2529
|
+
[monkeyPopoverTarget]="elementTarget"
|
|
2530
|
+
[monkeyPopoverClosed]="closePopOver"
|
|
2531
|
+
monkeyPopoverDir="ltr"
|
|
2532
|
+
[monkeyPopoverBackdrop]="false"
|
|
2533
|
+
[monkeyPopoverHideHeader]="true"
|
|
2534
|
+
[monkeyPopoverWatch]="true"
|
|
2535
|
+
>
|
|
2536
|
+
<div
|
|
2537
|
+
#containerWrapper
|
|
2538
|
+
class="mecx-autocomplete-wrapper"
|
|
2539
|
+
[style.width.px]="initialDisplayWidth"
|
|
2668
2540
|
>
|
|
2669
|
-
<div
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
*
|
|
2678
|
-
(click)="onSelect(option)"
|
|
2679
|
-
[class.mecx-autocomplete-selected]="isSelected(option)"
|
|
2541
|
+
<div *ngIf="options.length > 0" class="mecx-autocomplete-options">
|
|
2542
|
+
<div
|
|
2543
|
+
class="mecx-autocomplete-option"
|
|
2544
|
+
*ngFor="let option of options"
|
|
2545
|
+
(click)="onSelect(option)"
|
|
2546
|
+
[class.mecx-autocomplete-selected]="isSelected(option)"
|
|
2547
|
+
>
|
|
2548
|
+
<ng-container
|
|
2549
|
+
*ngTemplateOutlet="optionTemplate || defaultTemplate; context: { $implicit: option }"
|
|
2680
2550
|
>
|
|
2681
|
-
|
|
2682
|
-
*ngTemplateOutlet="
|
|
2683
|
-
optionTemplate || defaultTemplate;
|
|
2684
|
-
context: { $implicit: option }
|
|
2685
|
-
"
|
|
2686
|
-
>
|
|
2687
|
-
</ng-container>
|
|
2688
|
-
</div>
|
|
2551
|
+
</ng-container>
|
|
2689
2552
|
</div>
|
|
2690
|
-
@if (loading) {
|
|
2691
|
-
<div class="mecx-autocomplete-loading">
|
|
2692
|
-
<util-icon name="loading" />
|
|
2693
|
-
{{ loadingDictionary | async }}
|
|
2694
|
-
</div>
|
|
2695
|
-
}
|
|
2696
|
-
@if (!loading && !options.length) {
|
|
2697
|
-
<div class="mecx-autocomplete-no-data">
|
|
2698
|
-
<util-icon class="mecx-autocomplete-no-data-icon" name="searchFail" />
|
|
2699
|
-
{{ noDataDictionary | async }}
|
|
2700
|
-
</div>
|
|
2701
|
-
}
|
|
2702
2553
|
</div>
|
|
2554
|
+
@if (loading) {
|
|
2555
|
+
<div class="mecx-autocomplete-loading">
|
|
2556
|
+
<util-icon name="loading" />
|
|
2557
|
+
{{ loadingDictionary | async }}
|
|
2558
|
+
</div>
|
|
2559
|
+
}
|
|
2560
|
+
@if (!loading && !options.length) {
|
|
2561
|
+
<div class="mecx-autocomplete-no-data">
|
|
2562
|
+
<util-icon class="mecx-autocomplete-no-data-icon" name="searchFail" />
|
|
2563
|
+
{{ noDataDictionary | async }}
|
|
2564
|
+
</div>
|
|
2565
|
+
}
|
|
2566
|
+
</div>
|
|
2703
2567
|
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
</ng-template>
|
|
2568
|
+
<ng-template #defaultTemplate let-option>
|
|
2569
|
+
<monkey-option>
|
|
2570
|
+
{{ option.description }}
|
|
2571
|
+
</monkey-option>
|
|
2709
2572
|
</ng-template>
|
|
2710
|
-
|
|
2573
|
+
</ng-template>
|
|
2711
2574
|
`, providers: [
|
|
2712
2575
|
// eslint-disable-next-line no-use-before-define
|
|
2713
2576
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyAutocompleteComponent }
|
|
@@ -2841,7 +2704,7 @@ class MonkeyAutocompleteAddressComponent {
|
|
|
2841
2704
|
return this._elementRef.nativeElement;
|
|
2842
2705
|
}
|
|
2843
2706
|
updateWidth() {
|
|
2844
|
-
this.initialDisplayWidth = this.elementTarget?.offsetWidth - 12;
|
|
2707
|
+
this.initialDisplayWidth = (this.elementTarget?.offsetWidth || 0) - 12;
|
|
2845
2708
|
}
|
|
2846
2709
|
ngAfterContentInit() {
|
|
2847
2710
|
this._searchEvent
|
|
@@ -2929,8 +2792,8 @@ class MonkeyAutocompleteAddressComponent {
|
|
|
2929
2792
|
isSelected(option) {
|
|
2930
2793
|
return option === this.value;
|
|
2931
2794
|
}
|
|
2932
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2933
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAutocompleteAddressComponent, deps: [{ token: MonkeyFormFieldComponent, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2796
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyAutocompleteAddressComponent, isStandalone: true, selector: "monkey-autocomplete-address", inputs: { placeholder: "placeholder", debounce: "debounce", tabIndex: "tabIndex", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "focus": "_onFocus()", "blur": "_onBlur($event)" }, properties: { "attr.data-testid": "'monkey-autocomplete-address'", "class.mecx-autocomplete-address-disabled": "_disabled", "class.mecx-autocomplete-address-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-autocomplete-address" }, providers: [
|
|
2934
2797
|
// eslint-disable-next-line no-use-before-define
|
|
2935
2798
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyAutocompleteAddressComponent }
|
|
2936
2799
|
], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["optionTemplate"], descendants: true }], viewQueries: [{ propertyName: "containerWrapper", first: true, predicate: ["containerWrapper"], descendants: true }], ngImport: i0, template: `
|
|
@@ -2992,16 +2855,16 @@ class MonkeyAutocompleteAddressComponent {
|
|
|
2992
2855
|
</div>
|
|
2993
2856
|
</div>
|
|
2994
2857
|
</ng-template>
|
|
2995
|
-
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host input{background:transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "
|
|
2858
|
+
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host input{background:transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "directive", type: MonkeyPopoverDirective, selector: "[monkeyPopover]", inputs: ["monkeyPopover", "monkeyPopoverClosed", "monkeyPopoverTarget", "monkeyPopoverMinwidth", "monkeyPopoverBackdrop", "monkeyPopoverWatch", "monkeyPopoverDir", "monkeyPopoverContextmenu", "monkeyPopoverHeight", "monkeyPopoverTitle", "monkeyPopoverActions", "monkeyPopoverHideClose", "monkeyPopoverHideHeader", "monkeyPopoverHideActions", "monkeyPopoverEnableAutofocus"] }, { kind: "component", type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["value", "disabled", "type"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
2996
2859
|
}
|
|
2997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAutocompleteAddressComponent, decorators: [{
|
|
2998
2861
|
type: Component,
|
|
2999
2862
|
args: [{ selector: 'monkey-autocomplete-address', imports: [
|
|
3000
2863
|
CommonModule,
|
|
3001
2864
|
FormsModule,
|
|
3002
2865
|
ReactiveFormsModule,
|
|
3003
2866
|
MonkeyFormFieldModule,
|
|
3004
|
-
|
|
2867
|
+
MonkeyPopoverDirective,
|
|
3005
2868
|
MonkeyOptionComponent,
|
|
3006
2869
|
UtilIconComponent
|
|
3007
2870
|
], template: `
|
|
@@ -3151,10 +3014,10 @@ class MonkeyAvatarComponent {
|
|
|
3151
3014
|
this.avatar = getInitial(value.name);
|
|
3152
3015
|
}
|
|
3153
3016
|
}
|
|
3154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3155
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3017
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3018
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyAvatarComponent, isStandalone: true, selector: "monkey-avatar", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-avatar" }, properties: { "attr.id": "_id", "id": "_id", "class": "this.classes" } }, ngImport: i0, template: "@switch (avatarType) {\n @case ('name') {\n <p [class]=\"size()\">{{ avatar }}</p>\n }\n\n @case ('icon') {\n <monkey-icon [icon]=\"avatar\" [size]=\"size()\" />\n }\n\n @case ('image') {\n <img loading=\"lazy\" [alt]=\"'Avatar ' + avatarType\" [class]=\"size()\" [src]=\"avatar\" />\n }\n}\n", styles: ["monkey-avatar{align-items:center;background:var(--mecx-color-gray-100);border-radius:4px;display:flex;flex-shrink:0;flex-direction:column;justify-content:center}monkey-avatar.xs{height:24px;width:24px}monkey-avatar.sm{height:32px;width:32px}monkey-avatar.md{border-radius:8px;height:40px;width:40px}monkey-avatar.lg{border-radius:12px;height:48px;width:48px}monkey-avatar p{font-style:normal;font-weight:400;letter-spacing:.26px;line-height:16px}monkey-avatar p.xs{font-size:16px}monkey-avatar p.sm{font-size:18px}monkey-avatar p.md{font-size:20px}monkey-avatar p.lg{font-size:22px}monkey-avatar img{border-radius:4px;height:auto}monkey-avatar img.xs{width:24px}monkey-avatar img.sm{width:32px}monkey-avatar img.md{border-radius:8px;width:40px}monkey-avatar img.lg{border-radius:12px;width:48px}\n"], dependencies: [{ kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3156
3019
|
}
|
|
3157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3020
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyAvatarComponent, decorators: [{
|
|
3158
3021
|
type: Component,
|
|
3159
3022
|
args: [{ imports: [MonkeyIconComponent], encapsulation: ViewEncapsulation.None, selector: 'monkey-avatar', host: {
|
|
3160
3023
|
'data-testid': 'monkey-avatar',
|
|
@@ -3208,10 +3071,10 @@ class MonkeyBadgeComponent {
|
|
|
3208
3071
|
};
|
|
3209
3072
|
}
|
|
3210
3073
|
}
|
|
3211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3212
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3074
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3075
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyBadgeComponent, isStandalone: true, selector: "monkey-badge", inputs: { type: "type", typeColors: "typeColors", size: "size", largePadding: ["largePadding", "largePadding", booleanAttribute], icon: "icon", text: "text" }, host: { attributes: { "data-testid": "monkey-badge" }, properties: { "attr.id": "id", "style": "this.hostVariables", "class": "this.size", "class.large-padding": "this.largePadding" } }, ngImport: i0, template: "@if (text) {\n @if (icon) {\n <monkey-icon class=\"icon\" [icon]=\"icon\"></monkey-icon>\n }\n <span>\n {{ text }}\n </span>\n} @else {\n <ng-content></ng-content>\n}\n", styles: [":host{gap:4px;display:inline-flex;font-weight:500;border-radius:8px;align-items:center;font-style:normal;letter-spacing:.24px;color:var(--monkey-badge-color, var(--mecx-color-gray-900));background-color:var(--monkey-badge-background, var(--mecx-color-gray-50))}:host.large-padding{padding:12px 16px}:host.sm{font-size:12px;line-height:16px;padding:4px 8px}:host.sm .icon{font-size:16px}:host.md{font-size:16px;line-height:20px;padding:8px 12px}:host.md .icon{font-size:20px}:host.lg{font-size:20px;line-height:24px;padding:12px 16px}:host.lg .icon{font-size:24px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }] }); }
|
|
3213
3076
|
}
|
|
3214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyBadgeComponent, decorators: [{
|
|
3215
3078
|
type: Component,
|
|
3216
3079
|
args: [{ selector: 'monkey-badge', imports: [CommonModule, MonkeyIconComponent], host: {
|
|
3217
3080
|
'data-testid': 'monkey-badge',
|
|
@@ -3274,10 +3137,10 @@ class MonkeyBreadcrumbComponent {
|
|
|
3274
3137
|
this._router.navigate([item.path]);
|
|
3275
3138
|
}
|
|
3276
3139
|
}
|
|
3277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyBreadcrumbComponent, isStandalone: true, selector: "monkey-breadcrumb", inputs: { first: "first", last: "last", colapsed: ["colapsed", "colapsed", booleanAttribute], id: "id" }, host: { attributes: { "data-testid": "monkey-breadcrumb" }, properties: { "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<div class=\"breadcrumbs\">\n <a class=\"first\" (click)=\"handleNavigate(first)\">\n {{ first.label | titlecase }}\n </a>\n <span>/</span>\n @if(colapsed){\n <span>...</span>\n <span>/</span>\n }\n <a class=\"last\" (click)=\"handleNavigate(last)\">\n {{ last.label | titlecase }}\n </a>\n</div>\n", styles: ["monkey-breadcrumb .last{color:var(--mecx-color-theme-main);text-decoration:none}monkey-breadcrumb .last:hover{text-decoration:underline}monkey-breadcrumb .first{color:var(--mecx-color-gray-900);text-decoration:none}monkey-breadcrumb .first:hover{text-decoration:underline}monkey-breadcrumb .breadcrumbs{display:flex;gap:var(--mecx-spaces-xs);align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3279
3142
|
}
|
|
3280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyBreadcrumbComponent, decorators: [{
|
|
3281
3144
|
type: Component,
|
|
3282
3145
|
args: [{ selector: 'monkey-breadcrumb', imports: [CommonModule], encapsulation: ViewEncapsulation.None, host: {
|
|
3283
3146
|
'data-testid': 'monkey-breadcrumb',
|
|
@@ -3334,10 +3197,10 @@ class MonkeyButtonComponent {
|
|
|
3334
3197
|
get element() {
|
|
3335
3198
|
return this.elementRef.nativeElement;
|
|
3336
3199
|
}
|
|
3337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3338
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3201
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyButtonComponent, isStandalone: true, selector: "monkey-button", inputs: { disabled: "disabled", color: "color", size: "size", type: "type", loading: "loading", id: "id" }, host: { attributes: { "data-testid": "monkey-button" }, listeners: { "click": "onClick($event)" }, properties: { "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<button class=\"mecx-button {{ type }} {{ size }} {{ color }}\" [disabled]=\"disabled || loading\">\n <div class=\"content\">\n <ng-content *ngIf=\"!loading\" select=\"[first]\"></ng-content>\n <span><ng-content></ng-content></span>\n <ng-content *ngIf=\"!loading\" select=\"[last]\"></ng-content>\n @if (loading) {\n <util-icon class=\"mecx-button-loading\" name=\"loading\" />\n }\n </div>\n</button>\n", styles: ["monkey-button{display:inline-block}monkey-button.has-progress button:disabled{position:relative;overflow:hidden;border:2px solid var(--mecx-color-gray-400)}monkey-button.has-progress :is(.mecx-button){transition:none!important}monkey-button.has-progress :is(.mecx-button) :is(.content){transition:none!important}monkey-button .mecx-button{width:100%;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;transition:background-color .15s ease-out,color .15s ease-out}monkey-button .mecx-button .content{display:flex;align-items:center;justify-content:center;gap:var(--mecx-spaces-xs);padding:0px var(--mecx-spaces-small);flex-shrink:0;letter-spacing:.48px;font-weight:400;transition:transform .2s cubic-bezier(0,.5,.2,1)}monkey-button .mecx-button .content span{width:100%}monkey-button .mecx-button .content .mk-i{display:flex}monkey-button .mecx-button.secondary{border:2px solid var(--mecx-color-gray-400);background:var(--mecx-color-white)}monkey-button .mecx-button.secondary:disabled{border-width:1px}monkey-button .mecx-button:disabled{background:var(--mecx-color-gray-100)!important;color:var(--mecx-color-gray-400)!important;cursor:not-allowed!important}monkey-button .mecx-button:disabled.secondary{background:unset!important;border:1px solid var(--mecx-color-gray-400)!important}monkey-button .mecx-button .mecx-button-loading{display:flex;background:transparent}monkey-button .mecx-button .mecx-button-loading svg path{fill:var(--mecx-color-theme-main)}monkey-button .mecx-button.primary{color:var(--mecx-color-theme-contrast-main);background:var(--mecx-color-theme-main)}monkey-button .mecx-button.primary.error{color:var(--mecx-color-white);background:var(--mecx-color-error-500)}monkey-button .mecx-button.primary.success{color:var(--mecx-color-white);background:var(--mecx-color-success-500)}monkey-button .mecx-button.primary:hover:not(:disabled){background:var(--mecx-color-theme-600)}monkey-button .mecx-button.primary:hover:not(:disabled) util-icon svg path{fill:var(--mecx-color-theme-600)}monkey-button .mecx-button.primary:hover:not(:disabled).error{background:var(--mecx-color-error-700)}monkey-button .mecx-button.primary:hover:not(:disabled).success{background:var(--mecx-color-success-700)}monkey-button .mecx-button.secondary:hover:not(:disabled){color:var(--mecx-color-theme-main)}monkey-button .mecx-button.secondary:hover:not(:disabled) util-icon svg path{fill:var(--mecx-color-theme-main)}monkey-button .mecx-button.secondary:hover:not(:disabled).error{color:var(--mecx-color-error-500)}monkey-button .mecx-button.secondary:hover:not(:disabled).success{color:var(--mecx-color-success-500)}monkey-button .mecx-button.tertiary{background:unset}monkey-button .mecx-button.tertiary span{text-decoration:underline}monkey-button .mecx-button.tertiary:disabled{background:unset!important;border-width:1px}monkey-button .mecx-button.tertiary:hover:not(:disabled){color:var(--mecx-color-theme-main)}monkey-button .mecx-button.tertiary:hover:not(:disabled) util-icon svg path{fill:var(--mecx-color-theme-main)}monkey-button .mecx-button.tertiary:hover:not(:disabled).error{color:var(--mecx-color-error-500)}monkey-button .mecx-button.tertiary:hover:not(:disabled).success{color:var(--mecx-color-success-500)}monkey-button .mecx-button.sm{height:32px}monkey-button .mecx-button.sm .mk-i{font-size:20px}monkey-button .mecx-button.md{height:40px}monkey-button .mecx-button.md .mk-i{font-size:22px}monkey-button .mecx-button.lg{height:48px;text-align:center;font-size:16px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.48px}monkey-button .mecx-button.lg .mk-i{font-size:24px}monkey-button .mecx-button.full-width{width:100%}monkey-button .mecx-button:focus-visible{outline:2px solid var(--mecx-color-theme-main);outline-offset:1px}monkey-button .mecx-button:focus-visible.error{outline-color:var(--mecx-color-error-500)}monkey-button .mecx-button:focus-visible.success{outline-color:var(--mecx-color-success-500)}monkey-button .mecx-button:active:not(:disabled){opacity:.8;outline:none}monkey-button .mecx-button:active:not(:disabled).primary{background:var(--mecx-color-theme-main)}monkey-button .mecx-button:active:not(:disabled).primary.error{background:var(--mecx-color-error-500)}monkey-button .mecx-button:active:not(:disabled).primary.success{background:var(--mecx-color-success-500)}monkey-button .mecx-button:active:not(:disabled) .content{transform:scale(.9)}:host:has(.mecx-button:active) .mecx-button{outline:unset;outline-offset:unset}\n"], dependencies: [{ kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3339
3202
|
}
|
|
3340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyButtonComponent, decorators: [{
|
|
3341
3204
|
type: Component,
|
|
3342
3205
|
args: [{ encapsulation: ViewEncapsulation.None, imports: [UtilIconComponent, CommonModule], selector: 'monkey-button', standalone: true, host: {
|
|
3343
3206
|
'data-testid': 'monkey-button',
|
|
@@ -3471,8 +3334,8 @@ class MonkeyCheckboxComponent {
|
|
|
3471
3334
|
}
|
|
3472
3335
|
return '';
|
|
3473
3336
|
}
|
|
3474
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3475
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3338
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyCheckboxComponent, isStandalone: true, selector: "monkey-checkbox", inputs: { disabled: ["disabled", "disabled", booleanAttribute], indeterminate: ["indeterminate", "indeterminate", booleanAttribute], required: ["required", "required", booleanAttribute], showFooter: ["showFooter", "showFooter", booleanAttribute], size: "size", value: "value" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "input-checkbox" }, properties: { "class.mecx-disabled": "disabled", "class.mecx-checkbox-checked": "value", "class.mecx-checkbox-focused": "isFocused", "class.mecx-checkbox-indeterminate": "indeterminate", "class.mecx-checkbox-invalid": "showInvalid", "class.sm": "size.includes(\"sm\")", "class.md": "size.includes(\"md\")", "class.lg": "size.includes(\"lg\")" }, classAttribute: "mecx-checkbox" }, providers: [
|
|
3476
3339
|
{
|
|
3477
3340
|
provide: NG_VALUE_ACCESSOR,
|
|
3478
3341
|
useExisting: forwardRef(() => {
|
|
@@ -3504,7 +3367,7 @@ class MonkeyCheckboxComponent {
|
|
|
3504
3367
|
])
|
|
3505
3368
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3506
3369
|
}
|
|
3507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyCheckboxComponent, decorators: [{
|
|
3508
3371
|
type: Component,
|
|
3509
3372
|
args: [{ selector: 'monkey-checkbox', imports: [ReactiveFormsModule, FormsModule, UtilIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
3510
3373
|
trigger('iconAnimation', [
|
|
@@ -3709,8 +3572,8 @@ class MonkeyInputCurrencyDirective {
|
|
|
3709
3572
|
focusOutChanged() {
|
|
3710
3573
|
this.ngControl?.control?.markAsTouched();
|
|
3711
3574
|
}
|
|
3712
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3713
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
3575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputCurrencyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3576
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyInputCurrencyDirective, isStandalone: false, selector: "input[monkey-input-currency]", inputs: { name: "name", disabled: ["disabled", "disabled", booleanAttribute], id: "id", required: "required", type: "type" }, host: { listeners: { "focus": "focusChanged(true)", "focusout": "focusOutChanged()", "blur": "focusChanged(false)" }, properties: { "class.mecx-input-disabled": "disabled", "id": "id", "disabled": "disabled", "required": "required", "attr.name": "name || null", "attr.disabled": "disabled || null", "attr.aria-invalid": "(empty && required) ? null : errorState", "attr.aria-required": "required", "attr.id": "id" }, classAttribute: "mecx-input" }, providers: [
|
|
3714
3577
|
{
|
|
3715
3578
|
provide: MonkeyFormFieldControl,
|
|
3716
3579
|
// eslint-disable-next-line no-use-before-define
|
|
@@ -3718,7 +3581,7 @@ class MonkeyInputCurrencyDirective {
|
|
|
3718
3581
|
}
|
|
3719
3582
|
], exportAs: ["monkeyInput"], usesOnChanges: true, ngImport: i0 }); }
|
|
3720
3583
|
}
|
|
3721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputCurrencyDirective, decorators: [{
|
|
3722
3585
|
type: Directive,
|
|
3723
3586
|
args: [{
|
|
3724
3587
|
selector: 'input[monkey-input-currency]',
|
|
@@ -3901,8 +3764,8 @@ class MonkeyInputDirective {
|
|
|
3901
3764
|
focusOutChanged() {
|
|
3902
3765
|
this.ngControl?.control?.markAsTouched();
|
|
3903
3766
|
}
|
|
3904
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3905
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
3767
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3768
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyInputDirective, isStandalone: false, selector: "input[monkey-input],textarea[monkey-input]", inputs: { name: "name", disabled: ["disabled", "disabled", booleanAttribute], id: "id", required: "required", type: "type", min: "min", max: "max", percent: "percent" }, host: { attributes: { "data-testid": "monkey-input" }, listeners: { "focus": "focusChanged(true)", "focusout": "focusOutChanged()", "blur": "focusChanged(false)" }, properties: { "class.mecx-input-disabled": "disabled", "id": "id", "disabled": "disabled", "required": "required", "attr.name": "name || null", "attr.disabled": "disabled || null", "attr.aria-invalid": "(empty && required) ? null : errorState", "attr.aria-required": "required", "attr.id": "id" }, classAttribute: "mecx-input" }, providers: [
|
|
3906
3769
|
{
|
|
3907
3770
|
provide: MonkeyFormFieldControl,
|
|
3908
3771
|
// eslint-disable-next-line no-use-before-define
|
|
@@ -3910,7 +3773,7 @@ class MonkeyInputDirective {
|
|
|
3910
3773
|
}
|
|
3911
3774
|
], exportAs: ["monkeyInput"], usesOnChanges: true, ngImport: i0 }); }
|
|
3912
3775
|
}
|
|
3913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputDirective, decorators: [{
|
|
3914
3777
|
type: Directive,
|
|
3915
3778
|
args: [{
|
|
3916
3779
|
selector: 'input[monkey-input],textarea[monkey-input]',
|
|
@@ -3965,11 +3828,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
3965
3828
|
* MIT Licence
|
|
3966
3829
|
************************* */
|
|
3967
3830
|
class MonkeyInputModule {
|
|
3968
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3969
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
3970
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
3831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3832
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputModule, declarations: [MonkeyInputDirective, MonkeyInputCurrencyDirective], exports: [MonkeyInputDirective, MonkeyInputCurrencyDirective] }); }
|
|
3833
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputModule, providers: [CurrencyPipe] }); }
|
|
3971
3834
|
}
|
|
3972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputModule, decorators: [{
|
|
3973
3836
|
type: NgModule,
|
|
3974
3837
|
args: [{
|
|
3975
3838
|
providers: [CurrencyPipe],
|
|
@@ -4012,10 +3875,10 @@ class MonkeyIconButtonComponent {
|
|
|
4012
3875
|
event.stopImmediatePropagation();
|
|
4013
3876
|
}
|
|
4014
3877
|
}
|
|
4015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4016
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3878
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyIconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3879
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyIconButtonComponent, isStandalone: true, selector: "monkey-icon-button", inputs: { type: "type", size: "size", disabled: "disabled", icon: "icon", loading: "loading", id: "id" }, host: { attributes: { "data-testid": "monkey-icon-button" }, listeners: { "click": "onClick($event)" }, properties: { "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<button class=\"mecx-icon-button\" [ngClass]=\"type + ' ' + size\" [disabled]=\"disabled || loading\">\n <div class=\"content\">\n @if (loading) {\n <util-icon class=\"mecx-icon-loading\" name=\"loading\" />\n }\n <monkey-icon *ngIf=\"!loading\" name=\"icon\" [icon]=\"icon\" [size]=\"size\" first></monkey-icon>\n </div>\n</button>\n", styles: ["monkey-icon-button{display:inline-block;margin:0 2px}monkey-icon-button .mecx-icon-button{width:100%;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;transition:background-color .15s ease-out,color .15s ease-out}monkey-icon-button .mecx-icon-button .content{display:flex;align-items:center;justify-content:center;padding:var(--mecx-spaces-small);transition:transform .2s cubic-bezier(0,.5,.2,1)}monkey-icon-button .mecx-icon-button .content span{width:100%}monkey-icon-button .mecx-icon-button .content .mk-i{display:flex}monkey-icon-button .mecx-icon-button.secondary{border:2px solid var(--mecx-color-gray-400);background:var(--mecx-color-white)}monkey-icon-button .mecx-icon-button.secondary:disabled{border-width:1px}monkey-icon-button .mecx-icon-button:disabled{background:var(--mecx-color-gray-100)!important;color:var(--mecx-color-gray-400)!important;cursor:not-allowed!important}monkey-icon-button .mecx-icon-button:disabled.secondary{background:unset!important;border:1px solid var(--mecx-color-gray-400)!important}monkey-icon-button .mecx-icon-button.primary{color:var(--mecx-color-theme-contrast-main);background:var(--mecx-color-theme-main)}monkey-icon-button .mecx-icon-button.primary:hover:not(:disabled){background:var(--mecx-color-theme-600)}monkey-icon-button .mecx-icon-button.secondary:hover:not(:disabled){color:var(--mecx-color-theme-main)}monkey-icon-button .mecx-icon-button.tertiary{background:unset}monkey-icon-button .mecx-icon-button.tertiary span{text-decoration:underline}monkey-icon-button .mecx-icon-button.tertiary:disabled{background:unset!important;border-width:1px}monkey-icon-button .mecx-icon-button.tertiary:hover:not(:disabled){color:var(--mecx-color-theme-main)}monkey-icon-button .mecx-icon-button.sm{width:32px;height:32px}monkey-icon-button .mecx-icon-button.sm .mk-i{font-size:16px}monkey-icon-button .mecx-icon-button.md{width:40px;height:40px}monkey-icon-button .mecx-icon-button.md .mk-i{font-size:18px}monkey-icon-button .mecx-icon-button.lg{width:48px;height:48px}monkey-icon-button .mecx-icon-button.lg .mk-i{font-size:24px}monkey-icon-button .mecx-icon-button.full-width{width:100%}monkey-icon-button .mecx-icon-button:focus-visible{outline:2px solid var(--mecx-color-theme-main);outline-offset:1px}monkey-icon-button .mecx-icon-button:active:not(:disabled).primary{background:var(--mecx-color-theme-main);opacity:.8;outline:none}monkey-icon-button .mecx-icon-button:active:not(:disabled) .content{transform:scale(.8)}.mecx-icon-loading{display:flex}.mecx-icon-loading svg path{fill:var(--mecx-color-theme-main)}:host:has(.mecx-button:active) .mecx-button{outline:unset;outline-offset:unset}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4017
3880
|
}
|
|
4018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyIconButtonComponent, decorators: [{
|
|
4019
3882
|
type: Component,
|
|
4020
3883
|
args: [{ selector: 'monkey-icon-button', imports: [CommonModule, MonkeyIconComponent, UtilIconComponent], encapsulation: ViewEncapsulation.None, host: {
|
|
4021
3884
|
'data-testid': 'monkey-icon-button',
|
|
@@ -4247,10 +4110,10 @@ class MonkeyDateRangeMonthComponent {
|
|
|
4247
4110
|
endDate: this._handledEndDate
|
|
4248
4111
|
});
|
|
4249
4112
|
}
|
|
4250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDateRangeMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4114
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyDateRangeMonthComponent, isStandalone: true, selector: "monkey-date-range-month", inputs: { month: "month", year: "year", startDate: "startDate", endDate: "endDate", hidePrevious: ["hidePrevious", "hidePrevious", booleanAttribute], hideNext: ["hideNext", "hideNext", booleanAttribute], minDate: "minDate", maxDate: "maxDate", id: "id" }, outputs: { onNavigate: "onNavigate", onDate: "onDate" }, host: { attributes: { "data-testid": "month" }, properties: { "attr.id": "id", "id": "id" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"i18nDictionary | async as i18n\">\n <div class=\"header\">\n @if (!hidePrevious) {\n <monkey-icon-button\n size=\"sm\"\n icon=\"arrow-left\"\n type=\"secondary\"\n class=\"previous\"\n [disabled]=\"daysInMonth.blockPrev\"\n (click)=\"onNavigate.next('previous')\"\n >\n </monkey-icon-button>\n }\n\n {{ i18n?.['MONTHS']?.[month] }} {{ year }}\n\n @if (!hideNext) {\n <monkey-icon-button\n size=\"sm\"\n icon=\"arrow-right\"\n type=\"secondary\"\n class=\"next\"\n [disabled]=\"daysInMonth.blockNext\"\n (click)=\"onNavigate.next('next')\"\n >\n </monkey-icon-button>\n }\n </div>\n\n <div class=\"week-labels\">\n @for (day of i18n?.['WEEK-DAYS']; track day) {\n <span class=\"day\">{{ day }}</span>\n }\n </div>\n\n <div class=\"dates\">\n @for (day of daysInMonth.days; track $index) {\n <div\n class=\"day\"\n [class.disabled]=\"day!.isDisabled\"\n [class.in-range]=\"isInRange(day!)\"\n [class.selected]=\"isSelected(day!)\"\n [class.first]=\"isFirst(day!)\"\n [class.last]=\"isLast(day!)\"\n [class.in-range-temporary]=\"isInRangeTemporary(day!)\"\n [class.temporary-last]=\"isInLastTemporary(day!)\"\n (click)=\"onSelectDate($event, day!)\"\n (mouseenter)=\"temporaryEndDate = day!\"\n (mouseleave)=\"temporaryEndDate = null\"\n >\n {{ day!.date | date: 'd' }}\n @if (day?.isToday) {\n <span class=\"today\"></span>\n }\n </div>\n }\n </div>\n</ng-container>\n", styles: [":host{width:100%}:host .header{display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:12px}:host .header monkey-icon-button{max-width:32px;background:transparent}:host .header monkey-icon-button.previous{position:absolute;left:0}:host .header monkey-icon-button.next{position:absolute;right:0}:host .week-labels{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-weight:700;font-size:.9rem;margin-bottom:4px;gap:12px 0}:host .week-labels .day{height:24px;border:none;background:transparent;text-align:center;display:flex;align-items:center;justify-content:center;font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.14px}:host .dates{display:grid;grid-template-columns:repeat(7,1fr);gap:12px 0}:host .dates .day{height:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:var(--mecx-color-gray-700);text-align:center;font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.14px;position:relative;border:1px solid transparent;-webkit-user-select:none;user-select:none}:host .dates .day .today{position:absolute;width:60%;bottom:1px;font-size:36px;letter-spacing:1.48!important}:host .dates .day .today:not(.selected){border-bottom:2px solid var(--mecx-color-theme-main)}:host .dates .day.disabled{color:var(--mecx-color-gray-400);font-weight:400;cursor:not-allowed}:host .dates .day.selected{background-color:var(--mecx-color-theme-main)!important;color:var(--mecx-color-white)!important}:host .dates .day.in-range{background-color:var(--mecx-color-gray-100);color:var(--mecx-color-theme-main)}:host .dates .day.in-range-temporary{background-color:var(--mecx-color-gray-100);color:var(--mecx-color-theme-main)}:host .dates .day.first,:host .dates .day.last{background-color:var(--mecx-color-theme-main);color:var(--mecx-color-white)}:host .dates .day.first{border-top-left-radius:8px;border-bottom-left-radius:8px}:host .dates .day.last,:host .dates .day.temporary-last{border-top-right-radius:8px;border-bottom-right-radius:8px}:host .dates .day:hover:not(.disabled,.in-range):before{content:\"\";border:1px solid var(--mecx-color-theme-main);border-radius:8px;height:100%;width:100%;position:absolute}:host .dates .day:hover:not(.disabled,.in-range).selected{background:var(--mecx-color-gray-100);color:var(--mecx-color-theme-main)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MonkeyIconButtonComponent, selector: "monkey-icon-button", inputs: ["type", "size", "disabled", "icon", "loading", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] }); }
|
|
4252
4115
|
}
|
|
4253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDateRangeMonthComponent, decorators: [{
|
|
4254
4117
|
type: Component,
|
|
4255
4118
|
args: [{ selector: 'monkey-date-range-month', imports: [CommonModule, MonkeyIconButtonComponent], host: {
|
|
4256
4119
|
'data-testid': 'month',
|
|
@@ -4316,10 +4179,10 @@ class MonkeyDateRangeQuickActionsComponent {
|
|
|
4316
4179
|
this.selectedAction = key;
|
|
4317
4180
|
this.onChange.next(value);
|
|
4318
4181
|
}
|
|
4319
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4320
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDateRangeQuickActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4183
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyDateRangeQuickActionsComponent, isStandalone: true, selector: "monkey-date-range-quick-actions", inputs: { id: "id" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "quick-actions" }, properties: { "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<ng-container *ngIf=\"i18nDictionary | async as i18n\">\n @for (item of actions; track item.key) {\n <div\n class=\"item\"\n [class.selected]=\"item.key === selectedAction\"\n (click)=\"onHandleAction(item)\"\n [attr.tabindex]=\"$index\"\n >\n {{ i18n?.['QUICK-ACTIONS']?.[item.key] }}\n </div>\n }\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 8px 12px 12px;gap:4px}:host .item{color:var(--mecx-color-gray-900);font-size:13px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.26px;padding:4px 12px;cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;border-radius:4px}:host .item.selected{border-radius:4px;background:var(--mecx-color-gray-100)}:host .item:hover{border-radius:4px;background:var(--mecx-color-gray-100)}:host .item:focus{outline:2px solid var(--mecx-color-theme-main);outline-offset:1px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
4321
4184
|
}
|
|
4322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDateRangeQuickActionsComponent, decorators: [{
|
|
4323
4186
|
type: Component,
|
|
4324
4187
|
args: [{ selector: 'monkey-date-range-quick-actions', imports: [CommonModule], host: {
|
|
4325
4188
|
'data-testid': 'quick-actions',
|
|
@@ -4511,17 +4374,18 @@ class MonkeyDateRangeComponent {
|
|
|
4511
4374
|
this.firstCalendar = calendars.firstCalendar;
|
|
4512
4375
|
this.secondCalendar = calendars.secondCalendar;
|
|
4513
4376
|
}
|
|
4514
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4515
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4377
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4378
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyDateRangeComponent, isStandalone: true, selector: "monkey-date-range", inputs: { startDate: "startDate", endDate: "endDate", hideQuickAction: ["hideQuickAction", "hideQuickAction", booleanAttribute], hideHeader: ["hideHeader", "hideHeader", booleanAttribute], hideActions: ["hideActions", "hideActions", booleanAttribute], hideSecondCalendar: ["hideSecondCalendar", "hideSecondCalendar", booleanAttribute], allowFastActionOnHeader: ["allowFastActionOnHeader", "allowFastActionOnHeader", booleanAttribute], minDate: "minDate", maxDate: "maxDate", id: "id" }, outputs: { onCancel: "onCancel", onDate: "onDate" }, host: { attributes: { "data-testid": "monkey-date-range" }, listeners: { "window:resize": "onResize($event)" }, properties: { "attr.id": "id", "id": "id" } }, ngImport: i0, template: "<ng-container *ngIf=\"i18nDictionary | async as i18n\">\n <div class=\"container-date-range-group\">\n @if (!hideQuickAction) {\n <div class=\"quick-actions\">\n <monkey-date-range-quick-actions (onChange)=\"onHandleQuickAction($event)\">\n </monkey-date-range-quick-actions>\n </div>\n }\n\n <div class=\"container-date-range\">\n @if (!hideHeader) {\n <div class=\"header\" [class.no-quick-action]=\"hideQuickAction\">\n @if (allowFastActionOnHeader) {\n <div class=\"quick-actions\">\n <monkey-date-range-quick-actions (onChange)=\"onHandleQuickAction($event)\">\n </monkey-date-range-quick-actions>\n </div>\n } @else {\n <div class=\"inputs\">\n <monkey-form-field hideAction enableClear size=\"sm\">\n <monkey-label>{{ i18n?.['START-DATE'] }}</monkey-label>\n <input\n type=\"date\"\n monkey-input\n id=\"startDate\"\n [(ngModel)]=\"handledStartDate\"\n (ngModelChange)=\"onDataChange($event, true)\"\n [min]=\"handledMinDate\"\n [max]=\"handledEndDate ? handledEndDate : handledMaxDate\"\n (change)=\"onChangeInputStartDate($event)\"\n />\n </monkey-form-field>\n <monkey-form-field hideAction enableClear size=\"sm\">\n <monkey-label>{{ i18n?.['END-DATE'] }}</monkey-label>\n <input\n type=\"date\"\n monkey-input\n id=\"endDate\"\n [(ngModel)]=\"handledEndDate\"\n (ngModelChange)=\"onDataChange($event, false)\"\n [min]=\"handledStartDate ? handledStartDate : ''\"\n [max]=\"handledMaxDate\"\n (change)=\"onChangeInputEndDate($event)\"\n />\n </monkey-form-field>\n </div>\n @if (isInvalidInterval) {\n <monkey-error>{{ i18n?.['INVALID'] }}</monkey-error>\n }\n }\n </div>\n }\n\n <div class=\"body\">\n <div class=\"calendars\">\n <monkey-date-range-month\n [month]=\"firstCalendar.month\"\n [year]=\"firstCalendar.year\"\n [startDate]=\"handledStartDate\"\n [endDate]=\"handledEndDate\"\n (onDate)=\"onHandleDate($event)\"\n (onNavigate)=\"onHandleNavigate($event)\"\n [hideNext]=\"!hideSecondCalendar\"\n [minDate]=\"handledMinDate\"\n [maxDate]=\"handledMaxDate\"\n >\n </monkey-date-range-month>\n\n @if (!hideSecondCalendar) {\n <monkey-date-range-month\n [month]=\"secondCalendar.month\"\n [year]=\"secondCalendar.year\"\n [startDate]=\"handledStartDate\"\n [endDate]=\"handledEndDate\"\n (onDate)=\"onHandleDate($event)\"\n (onNavigate)=\"onHandleNavigate($event)\"\n hidePrevious\n [minDate]=\"handledMinDate\"\n [maxDate]=\"handledMaxDate\"\n >\n </monkey-date-range-month>\n }\n </div>\n </div>\n\n @if (!hideActions) {\n <div class=\"actions\">\n <monkey-button size=\"md\" type=\"secondary\" (click)=\"onCancel.next(null)\">\n {{ i18n?.ACTIONS?.CANCEL }}\n </monkey-button>\n <monkey-button\n size=\"md\"\n (click)=\"onSubmit()\"\n [disabled]=\"!this.handledStartDate || !this.handledEndDate\"\n >\n {{ i18n?.ACTIONS?.APPLY }}\n </monkey-button>\n </div>\n }\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;border:2px solid var(--mecx-color-gray-200);border-radius:16px}:host .container-date-range-group{width:100%;display:inline-flex}:host .container-date-range-group .quick-actions{width:100%;max-width:172px;border-top-left-radius:16px;border-bottom-left-radius:16px;border-right:2px solid var(--mecx-color-gray-200);background:var(--mecx-color-white)}:host .container-date-range-group .container-date-range{width:100%;display:inline-flex;flex-direction:column}:host .header{padding:16px 24px;border-radius:1px 16px 1px 1px;border-bottom:1px solid var(--mecx-color-gray-200);background:var(--mecx-color-gray-50)}:host .header .quick-actions{max-width:unset;border:unset}:host .header .quick-actions monkey-date-range-quick-actions{flex-flow:row wrap;padding:unset;justify-content:space-between;background:var(--mecx-color-gray-50)}:host .header.no-quick-action{border-top-left-radius:16px}:host .header .inputs{max-width:400px;display:flex;gap:16px}:host .header monkey-error{margin-top:2px}:host .body{padding:16px 24px}:host .body .calendars{display:inline-flex;width:100%;gap:48px}:host .actions{border-top:1px solid var(--mecx-color-gray-200);padding:16px 24px;display:flex;justify-content:flex-end;align-items:center;gap:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MonkeyInputModule }, { kind: "directive", type: MonkeyInputDirective, selector: "input[monkey-input],textarea[monkey-input]", inputs: ["name", "disabled", "id", "required", "type", "min", "max", "percent"], exportAs: ["monkeyInput"] }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "component", type: MonkeyFormFieldComponent, selector: "monkey-form-field", inputs: ["id", "hideAction", "enableClear", "size", "displayOnly"], outputs: ["onDisplayOnlyChange"], exportAs: ["monkeyFormField"] }, { kind: "directive", type: MonkeyLabelDirective, selector: "monkey-label" }, { kind: "directive", type: MonkeyErrorDirective, selector: "monkey-error" }, { kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }, { kind: "component", type: MonkeyDateRangeMonthComponent, selector: "monkey-date-range-month", inputs: ["month", "year", "startDate", "endDate", "hidePrevious", "hideNext", "minDate", "maxDate", "id"], outputs: ["onNavigate", "onDate"] }, { kind: "component", type: MonkeyDateRangeQuickActionsComponent, selector: "monkey-date-range-quick-actions", inputs: ["id"], outputs: ["onChange"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
4516
4379
|
}
|
|
4517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDateRangeComponent, decorators: [{
|
|
4518
4381
|
type: Component,
|
|
4519
4382
|
args: [{ selector: 'monkey-date-range', imports: [
|
|
4520
4383
|
CommonModule,
|
|
4521
4384
|
FormsModule,
|
|
4522
4385
|
MonkeyInputModule,
|
|
4523
4386
|
MonkeyFormFieldModule,
|
|
4524
|
-
|
|
4387
|
+
MonkeyLabelDirective,
|
|
4388
|
+
MonkeyErrorDirective,
|
|
4525
4389
|
MonkeyButtonComponent,
|
|
4526
4390
|
MonkeyDateRangeMonthComponent,
|
|
4527
4391
|
MonkeyDateRangeQuickActionsComponent
|
|
@@ -4594,10 +4458,10 @@ class MonkeyDividerComponent {
|
|
|
4594
4458
|
// eslint-disable-next-line no-self-assign
|
|
4595
4459
|
this.id = this.id;
|
|
4596
4460
|
}
|
|
4597
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4598
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
4461
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4462
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: MonkeyDividerComponent, isStandalone: true, selector: "monkey-divider", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-divider" }, properties: { "attr.id": "id", "id": "id", "class": "this.classes" } }, ngImport: i0, template: '', isInline: true, styles: ["monkey-divider{display:flex;box-sizing:border-box;width:100%;background-color:var(--mecx-color-gray-200)}monkey-divider.lg{height:4px}monkey-divider.lg.vertical{width:4px!important}monkey-divider.md{height:2px}monkey-divider.md.vertical{width:2px!important}monkey-divider.sm{height:1px}monkey-divider.sm.vertical{width:1px!important}monkey-divider.vertical{height:100%}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4599
4463
|
}
|
|
4600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDividerComponent, decorators: [{
|
|
4601
4465
|
type: Component,
|
|
4602
4466
|
args: [{ encapsulation: ViewEncapsulation.None, selector: 'monkey-divider', standalone: true, template: '', host: {
|
|
4603
4467
|
'data-testid': 'monkey-divider',
|
|
@@ -4652,8 +4516,8 @@ class MonkeyDownloadButtonComponent {
|
|
|
4652
4516
|
onDownload() {
|
|
4653
4517
|
this.onChange.emit({ component: this });
|
|
4654
4518
|
}
|
|
4655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4656
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4519
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDownloadButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4520
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyDownloadButtonComponent, isStandalone: true, selector: "monkey-download-button", inputs: { progress: "progress", disabled: "disabled", color: "color", size: "size", type: "type", loading: "loading", tabIndex: "tabIndex", id: "id" }, outputs: { onChange: "onChange" }, host: { properties: { "attr.data-testid": "'monkey-download-button'", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-download-button" }, ngImport: i0, template: `
|
|
4657
4521
|
<monkey-button
|
|
4658
4522
|
[type]="type"
|
|
4659
4523
|
[color]="color"
|
|
@@ -4679,7 +4543,7 @@ class MonkeyDownloadButtonComponent {
|
|
|
4679
4543
|
</monkey-button>
|
|
4680
4544
|
`, isInline: true, styles: [":host{display:inline-flex}:host .content-download{display:flex;align-items:center;justify-content:center;gap:var(--mecx-spaces-xs);padding:0px var(--mecx-spaces-small);flex-shrink:0;letter-spacing:.48px;font-weight:400;transition:transform .2s cubic-bezier(0,.5,.2,1)}:host .content-download-progress{position:absolute;left:0;top:0;height:100%;color:var(--mecx-color-theme-contrast-main);background:var(--mecx-color-theme-main);z-index:1;font-weight:500;font-size:12px;display:flex;align-items:center;justify-content:flex-end;width:var(--mecx-button-progress);transition:width .01s ease-in-out;text-align:right}:host .content-download-progress:before,:host .content-download-progress:after{content:\"\";position:absolute;width:200px;height:200px;top:50%;right:-8px;background:var(--mecx-color-theme-main);border-radius:45% 47% 43% 46%;transform:translateY(-50%) rotate(0);animation:rotate 7s linear infinite;z-index:-1}:host .content-download-progress:after{content:\"\";border-radius:47% 42% 46% 44%;background:var(--mecx-color-theme-300);transform:translateY(-50%) rotate(0);animation:rotate 9s linear -4s infinite;z-index:-2;width:140px;height:150px}@keyframes rotate{50%{transform:translateY(-50%) rotate(180deg)}to{transform:translateY(-50%) rotate(360deg)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }] }); }
|
|
4681
4545
|
}
|
|
4682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyDownloadButtonComponent, decorators: [{
|
|
4683
4547
|
type: Component,
|
|
4684
4548
|
args: [{ selector: 'monkey-download-button', imports: [CommonModule, MonkeyButtonComponent], template: `
|
|
4685
4549
|
<monkey-button
|
|
@@ -4758,8 +4622,8 @@ class MonkeyFilterBarComponent {
|
|
|
4758
4622
|
this.elementTarget = el.element;
|
|
4759
4623
|
this.showPopOver = true;
|
|
4760
4624
|
}
|
|
4761
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4762
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFilterBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4626
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyFilterBarComponent, isStandalone: true, selector: "monkey-filter-bar", host: { listeners: { "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "attr.data-testid": "'monkey-filter-bar'", "class.mecx-filter-bar-disabled": "_disabled", "class.mecx-filter-bar-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-filter-bar" }, usesOnChanges: true, ngImport: i0, template: `
|
|
4763
4627
|
<monkey-form-field>
|
|
4764
4628
|
<input type="text" monkey-input placeholder="Pesquise pelo nome ou CNPJ" />
|
|
4765
4629
|
</monkey-form-field>
|
|
@@ -4784,16 +4648,15 @@ class MonkeyFilterBarComponent {
|
|
|
4784
4648
|
<monkey-option> Data de Emissão </monkey-option>
|
|
4785
4649
|
<monkey-option> Data de Vencimento </monkey-option>
|
|
4786
4650
|
</ng-template>
|
|
4787
|
-
`, isInline: true, styles: [":host{width:100%;display:inline-flex;min-width:0;gap:12px}:host .mecx-form-field{width:100%;max-width:400px}:host .btn-filter{width:100%;max-width:160px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "component", type: MonkeyFormFieldComponent, selector: "monkey-form-field", inputs: ["id", "hideAction", "enableClear", "size", "displayOnly"], outputs: ["onDisplayOnlyChange"], exportAs: ["monkeyFormField"] }, { kind: "ngmodule", type:
|
|
4651
|
+
`, isInline: true, styles: [":host{width:100%;display:inline-flex;min-width:0;gap:12px}:host .mecx-form-field{width:100%;max-width:400px}:host .btn-filter{width:100%;max-width:160px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "component", type: MonkeyFormFieldComponent, selector: "monkey-form-field", inputs: ["id", "hideAction", "enableClear", "size", "displayOnly"], outputs: ["onDisplayOnlyChange"], exportAs: ["monkeyFormField"] }, { kind: "ngmodule", type: MonkeyInputModule }, { kind: "directive", type: MonkeyInputDirective, selector: "input[monkey-input],textarea[monkey-input]", inputs: ["name", "disabled", "id", "required", "type", "min", "max", "percent"], exportAs: ["monkeyInput"] }, { kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "component", type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["value", "disabled", "type"] }] }); }
|
|
4788
4652
|
}
|
|
4789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyFilterBarComponent, decorators: [{
|
|
4790
4654
|
type: Component,
|
|
4791
4655
|
args: [{ selector: 'monkey-filter-bar', imports: [
|
|
4792
4656
|
CommonModule,
|
|
4793
4657
|
FormsModule,
|
|
4794
4658
|
ReactiveFormsModule,
|
|
4795
4659
|
MonkeyFormFieldModule,
|
|
4796
|
-
MonkeyDirectivesModule,
|
|
4797
4660
|
MonkeyFormFieldModule,
|
|
4798
4661
|
MonkeyInputModule,
|
|
4799
4662
|
MonkeyButtonComponent,
|
|
@@ -5037,13 +4900,13 @@ class MonkeyInputCodeComponent {
|
|
|
5037
4900
|
setDisabledState(isDisabled) {
|
|
5038
4901
|
this.disabled = isDisabled;
|
|
5039
4902
|
}
|
|
5040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5041
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputCodeComponent, deps: [{ token: MonkeyFormFieldComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4904
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyInputCodeComponent, isStandalone: true, selector: "monkey-input-code", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, inputType: { classPropertyName: "inputType", publicName: "inputType", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-input-code" }, properties: { "attr.id": "id", "id": "id" } }, providers: [
|
|
5042
4905
|
// eslint-disable-next-line no-use-before-define
|
|
5043
4906
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyInputCodeComponent }
|
|
5044
4907
|
], viewQueries: [{ propertyName: "inputs", predicate: ["codeInput"], descendants: true }], ngImport: i0, template: "<div class=\"monkey-input-code\">\n @for (idx of inputIndices(); track $index; let i = $index) {\n <input\n #codeInput\n class=\"focus\"\n autocomplete=\"one-time-code\"\n [attr.type]=\"inputType()\"\n [disabled]=\"_disabled\"\n [attr.maxlength]=\"1\"\n [class.invalid]=\"isInvalid()\"\n [(ngModel)]=\"inputIndices()[i]\"\n (focus)=\"onFocus($event)\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeyDown($event, i)\"\n (paste)=\"onPaste($event)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n", styles: [".monkey-input-code{display:flex;gap:12px}.monkey-input-code input{box-sizing:border-box;border-radius:4px;border:2px solid var(--mecx-color-gray-400);color:var(--mecx-color-gray-900);font-size:18px;font-style:normal;font-weight:400;letter-spacing:.14px;line-height:24px;text-align:center}.monkey-input-code input:focus{outline:2px solid var(--mecx-color-theme-main);outline-offset:2px}.monkey-input-code input.invalid{border:2px solid var(--mecx-color-error-700)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
5045
4908
|
}
|
|
5046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputCodeComponent, decorators: [{
|
|
5047
4910
|
type: Component,
|
|
5048
4911
|
args: [{ selector: 'monkey-input-code', imports: [CommonModule, FormsModule], host: {
|
|
5049
4912
|
'data-testid': 'monkey-input-code',
|
|
@@ -5217,8 +5080,8 @@ class MonkeyInputDateRangeComponent {
|
|
|
5217
5080
|
// not to do
|
|
5218
5081
|
}
|
|
5219
5082
|
}
|
|
5220
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5221
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
5083
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputDateRangeComponent, deps: [{ token: MonkeyFormFieldComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5084
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyInputDateRangeComponent, isStandalone: true, selector: "monkey-input-date-range", inputs: { placeholder: "placeholder", title: "title", tabIndex: "tabIndex", minDate: "minDate", maxDate: "maxDate", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, host: { listeners: { "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "attr.data-testid": "'monkey-input-date-range'", "class.mecx-input-date-range-disabled": "_disabled", "class.mecx-input-date-range-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-input-date-range" }, providers: [
|
|
5222
5085
|
// eslint-disable-next-line no-use-before-define
|
|
5223
5086
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyInputDateRangeComponent }
|
|
5224
5087
|
], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -5249,16 +5112,16 @@ class MonkeyInputDateRangeComponent {
|
|
|
5249
5112
|
>
|
|
5250
5113
|
</monkey-date-range>
|
|
5251
5114
|
</ng-template>
|
|
5252
|
-
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host.mecx-input-date-range-disabled{pointer-events:none;color:var(--mecx-color-gray-400)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "
|
|
5115
|
+
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host.mecx-input-date-range-disabled{pointer-events:none;color:var(--mecx-color-gray-400)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "directive", type: MonkeyPopoverDirective, selector: "[monkeyPopover]", inputs: ["monkeyPopover", "monkeyPopoverClosed", "monkeyPopoverTarget", "monkeyPopoverMinwidth", "monkeyPopoverBackdrop", "monkeyPopoverWatch", "monkeyPopoverDir", "monkeyPopoverContextmenu", "monkeyPopoverHeight", "monkeyPopoverTitle", "monkeyPopoverActions", "monkeyPopoverHideClose", "monkeyPopoverHideHeader", "monkeyPopoverHideActions", "monkeyPopoverEnableAutofocus"] }, { kind: "component", type: MonkeyDateRangeComponent, selector: "monkey-date-range", inputs: ["startDate", "endDate", "hideQuickAction", "hideHeader", "hideActions", "hideSecondCalendar", "allowFastActionOnHeader", "minDate", "maxDate", "id"], outputs: ["onCancel", "onDate"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] }); }
|
|
5253
5116
|
}
|
|
5254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputDateRangeComponent, decorators: [{
|
|
5255
5118
|
type: Component,
|
|
5256
5119
|
args: [{ selector: 'monkey-input-date-range', imports: [
|
|
5257
5120
|
CommonModule,
|
|
5258
5121
|
FormsModule,
|
|
5259
5122
|
ReactiveFormsModule,
|
|
5260
5123
|
MonkeyFormFieldModule,
|
|
5261
|
-
|
|
5124
|
+
MonkeyPopoverDirective,
|
|
5262
5125
|
MonkeyDateRangeComponent
|
|
5263
5126
|
], template: `
|
|
5264
5127
|
<span #popoverTarget (click)="onOpenPopover()">
|
|
@@ -5704,8 +5567,8 @@ class MonkeySelectComponent {
|
|
|
5704
5567
|
// not to do
|
|
5705
5568
|
}
|
|
5706
5569
|
}
|
|
5707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5708
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeySelectComponent, deps: [{ token: i1$1.Overlay }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: MonkeyFormFieldComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5571
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeySelectComponent, isStandalone: true, selector: "monkey-select", inputs: { tabIndex: "tabIndex", placeholder: "placeholder", loading: ["loading", "loading", booleanAttribute], showSearch: ["showSearch", "showSearch", booleanAttribute], searchPlaceholder: "searchPlaceholder", type: "type", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "monkey-select" }, listeners: { "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "class.mecx-select-disabled": "_disabled", "class.mecx-select-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-select" }, providers: [
|
|
5709
5572
|
// eslint-disable-next-line no-use-before-define
|
|
5710
5573
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeySelectComponent }
|
|
5711
5574
|
], queries: [{ propertyName: "options", predicate: MonkeyOptionComponent }], viewQueries: [{ propertyName: "overlayTemplate", first: true, predicate: ["overlayTemplate"], descendants: true }, { propertyName: "overlayEl", first: true, predicate: ["overlay"], descendants: true }, { propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"mecx-select-trigger\"\n [class.open]=\"isOpen\"\n (click)=\"toggleDropdown()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen\"\n #trigger\n>\n <div class=\"mecx-select-value\" [class.has-value]=\"value\">\n <span>{{ labelSelected || placeholder }}</span>\n </div>\n\n @if (!loading) {\n <util-icon class=\"mecx-select-icon\" name=\"arrowDown\" />\n }\n</div>\n\n<ng-template #overlayTemplate>\n <div class=\"mecx-select-body-overlay\">\n @if (showSearch) {\n <div class=\"mecx-select-search\">\n <util-icon class=\"mecx-select-search-icon\" name=\"search\" />\n <input\n (input)=\"onHandleSearch($event)\"\n type=\"text\"\n [id]=\"id + '-search'\"\n autocomplete=\"off\"\n maxlength=\"50\"\n [placeholder]=\"searchPlaceholder\"\n [(ngModel)]=\"searchData\"\n />\n </div>\n }\n <div\n class=\"mecx-select-overlay\"\n #overlay\n [@animation]=\"isOpen ? 'open' : 'closed'\"\n (@animation.done)=\"onAnimationEnd($event)\"\n >\n <ng-content />\n </div>\n @if (showSearch && showSearchNoData) {\n <div class=\"mecx-select-search-no-data\">\n <util-icon class=\"mecx-select-search-no-data-icon\" name=\"searchFail\" />\n {{ searchDictionary | async }}\n </div>\n }\n @if (loading) {\n <div class=\"mecx-select-search-loading\">\n {{ loadingDictionary | async }}\n </div>\n }\n </div>\n</ng-template>\n", styles: ["monkey-select{display:inline-flex;width:100%;min-width:0;position:relative}monkey-select:focus-visible,monkey-select:focus{outline:none}.mecx-select-trigger{width:100%;display:inline-flex;align-items:center;cursor:pointer;gap:8px;box-sizing:border-box}.mecx-select-trigger .mecx-select-value{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--mecx-color-gray-500);font-size:14px;line-height:24px;letter-spacing:.42px}.mecx-select-trigger .mecx-select-value.has-value{color:var(--mecx-color-gray-900)}.mecx-select-trigger .mecx-select-icon{display:flex;transition:all .2s ease-in-out}.mecx-select-trigger .mecx-select-icon svg *{stroke:var(--mecx-color-theme-main)}.mecx-select-disabled .mecx-select-trigger{background-color:var(--mecx-color-gray-50);border-color:var(--mecx-color-gray-50);cursor:default}.mecx-select-disabled .mecx-select-trigger .mecx-select-value{color:var(--mecx-color-gray-400)}.mecx-select-disabled .mecx-select-trigger .mecx-select-icon svg *{stroke:var(--mecx-color-gray-400)}.mecx-select-trigger.open .mecx-select-icon{transform:rotate(180deg)}.mecx-select-body-overlay{width:100%;background:#fff;border:2px solid var(--mecx-color-gray-400);overflow:hidden;border-radius:4px;box-shadow:0 16px 32px 0 var(--mecx-color-box-shadow)}.mecx-select-body-overlay .mecx-select-search{display:flex;gap:4px;border-bottom:2px solid var(--mecx-color-gray-400);padding:8px}.mecx-select-body-overlay .mecx-select-search-icon{width:12px;display:flex}.mecx-select-body-overlay .mecx-select-search-icon svg path{stroke:var(--mecx-color-gray-600)}.mecx-select-body-overlay input{border:none;width:90%;color:var(--mecx-color-gray-600)!important;font-size:12px;letter-spacing:.54px}.mecx-select-body-overlay .mecx-select-search-no-data,.mecx-select-body-overlay .mecx-select-search-loading{padding:12px;display:flex;justify-content:center;flex-direction:column;align-items:center;gap:4px;color:var(--mecx-color-gray-600);font-size:12px;letter-spacing:.54px;text-align:center}.mecx-select-body-overlay .mecx-select-search-no-data-icon svg path,.mecx-select-body-overlay .mecx-select-search-loading-icon svg path{stroke:var(--mecx-color-gray-600)}.mecx-select-overlay{width:100%;background:#fff;overflow:hidden auto;max-height:360px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [
|
|
@@ -5728,7 +5591,7 @@ class MonkeySelectComponent {
|
|
|
5728
5591
|
])
|
|
5729
5592
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
5730
5593
|
}
|
|
5731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeySelectComponent, decorators: [{
|
|
5732
5595
|
type: Component,
|
|
5733
5596
|
args: [{ selector: 'monkey-select', imports: [CommonModule, ReactiveFormsModule, FormsModule, UtilIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
5734
5597
|
// eslint-disable-next-line no-use-before-define
|
|
@@ -6009,8 +5872,8 @@ class MonkeyInputPhoneComponent {
|
|
|
6009
5872
|
return 20;
|
|
6010
5873
|
}
|
|
6011
5874
|
}
|
|
6012
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6013
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputPhoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5876
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyInputPhoneComponent, isStandalone: true, selector: "monkey-input-phone", inputs: { placeholder: "placeholder", tabIndex: "tabIndex", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, host: { listeners: { "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "attr.data-testid": "'monkey-input-phone'", "class.mecx-input-phone-disabled": "_disabled", "class.mecx-input-phone-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-input-phone" }, providers: [
|
|
6014
5877
|
// eslint-disable-next-line no-use-before-define
|
|
6015
5878
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyInputPhoneComponent }
|
|
6016
5879
|
], viewQueries: [{ propertyName: "inputs", predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -6044,7 +5907,7 @@ class MonkeyInputPhoneComponent {
|
|
|
6044
5907
|
/>
|
|
6045
5908
|
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0}:host monkey-select{width:164px;border-right:2px solid var(--mecx-color-gray-400)}:host.mecx-input-phone-disabled monkey-select{border-right:2px solid var(--mecx-color-gray-200)}:host input{width:100%;border:none;margin-left:8px}monkey-option .option-flag{font-size:30px}monkey-option .option-name{letter-spacing:.48px;margin-left:4px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: MonkeySelectComponent, selector: "monkey-select", inputs: ["tabIndex", "placeholder", "loading", "showSearch", "searchPlaceholder", "type", "disabled", "required", "value"], outputs: ["onChange"] }, { kind: "component", type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["value", "disabled", "type"] }, { kind: "ngmodule", type: MonkeyFormFieldModule }] }); }
|
|
6046
5909
|
}
|
|
6047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputPhoneComponent, decorators: [{
|
|
6048
5911
|
type: Component,
|
|
6049
5912
|
args: [{ selector: 'monkey-input-phone', imports: [
|
|
6050
5913
|
CommonModule,
|
|
@@ -6270,8 +6133,8 @@ class MonkeyInputUploadComponent {
|
|
|
6270
6133
|
};
|
|
6271
6134
|
}
|
|
6272
6135
|
}
|
|
6273
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6274
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6137
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyInputUploadComponent, isStandalone: true, selector: "monkey-input-upload", inputs: { progress: "progress", placeholder: "placeholder", maxSizeBytes: "maxSizeBytes", allowedExtensions: "allowedExtensions", loading: ["loading", "loading", booleanAttribute], tabIndex: "tabIndex", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "attr.data-testid": "'monkey-input-upload'", "class.mecx-input-upload-disabled": "_disabled", "class.mecx-input-upload-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex" }, classAttribute: "mecx-input-upload" }, providers: [
|
|
6275
6138
|
// eslint-disable-next-line no-use-before-define
|
|
6276
6139
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyInputUploadComponent }
|
|
6277
6140
|
], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -6292,7 +6155,7 @@ class MonkeyInputUploadComponent {
|
|
|
6292
6155
|
}
|
|
6293
6156
|
`, isInline: true, styles: [":host{display:inline-flex;width:100%;min-width:0;cursor:pointer}:host .progress{position:absolute;left:0;bottom:0;right:0;height:4px;background-color:var(--mecx-color-gray-300);width:100%}:host .progress .progress-bar{background-color:var(--mecx-color-theme-main);height:100%;transition:width .2s}:host:focus-visible,:host:focus{outline:none}:host .mecx-input-upload-value{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:24px}:host .mecx-input-upload-value.has-value{color:var(--mecx-color-gray-900)}:host.mecx-input-upload-disabled .mecx-input-upload-value{color:var(--mecx-color-gray-400)!important}:host .file-input{display:none}\n"] }); }
|
|
6294
6157
|
}
|
|
6295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyInputUploadComponent, decorators: [{
|
|
6296
6159
|
type: Component,
|
|
6297
6160
|
args: [{ selector: 'monkey-input-upload', imports: [], template: `
|
|
6298
6161
|
<div class="mecx-input-upload-value" [class.has-value]="value">
|
|
@@ -6367,10 +6230,10 @@ class MonkeyModalActionsDirective {
|
|
|
6367
6230
|
this.mkAlign = 'end';
|
|
6368
6231
|
this.id = inject(IdGenerator).getId('monkey-modal-actions-');
|
|
6369
6232
|
}
|
|
6370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6371
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6234
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyModalActionsDirective, isStandalone: false, selector: "monkey-modal-actions, [monkey-modal-actions]", inputs: { mkAlign: "mkAlign" }, host: { properties: { "class": "'mecx-modal-actions align-'+mkAlign", "attr.id": "id || null" } }, ngImport: i0 }); }
|
|
6372
6235
|
}
|
|
6373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalActionsDirective, decorators: [{
|
|
6374
6237
|
type: Directive,
|
|
6375
6238
|
args: [{
|
|
6376
6239
|
selector: 'monkey-modal-actions, [monkey-modal-actions]',
|
|
@@ -6393,10 +6256,10 @@ class MonkeyModalContentDirective {
|
|
|
6393
6256
|
constructor() {
|
|
6394
6257
|
this.id = inject(IdGenerator).getId('monkey-modal-content-');
|
|
6395
6258
|
}
|
|
6396
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6397
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6259
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6260
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyModalContentDirective, isStandalone: false, selector: "monkey-modal-content, [monkey-modal-content]", host: { properties: { "attr.id": "id || null" }, classAttribute: "mecx-modal-content" }, ngImport: i0 }); }
|
|
6398
6261
|
}
|
|
6399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalContentDirective, decorators: [{
|
|
6400
6263
|
type: Directive,
|
|
6401
6264
|
args: [{
|
|
6402
6265
|
selector: 'monkey-modal-content, [monkey-modal-content]',
|
|
@@ -6417,10 +6280,10 @@ class MonkeyModalSubtitleDirective {
|
|
|
6417
6280
|
constructor() {
|
|
6418
6281
|
this.id = inject(IdGenerator).getId('monkey-modal-subtitle-');
|
|
6419
6282
|
}
|
|
6420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6421
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6283
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6284
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyModalSubtitleDirective, isStandalone: false, selector: "monkey-modal-subtitle, [monkey-modal-subtitle]", host: { properties: { "attr.id": "id || null" }, classAttribute: "mecx-modal-subtitle" }, ngImport: i0 }); }
|
|
6422
6285
|
}
|
|
6423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalSubtitleDirective, decorators: [{
|
|
6424
6287
|
type: Directive,
|
|
6425
6288
|
args: [{
|
|
6426
6289
|
selector: 'monkey-modal-subtitle, [monkey-modal-subtitle]',
|
|
@@ -6441,10 +6304,10 @@ class MonkeyModalTitleDirective {
|
|
|
6441
6304
|
constructor() {
|
|
6442
6305
|
this.id = inject(IdGenerator).getId('monkey-modal-title-');
|
|
6443
6306
|
}
|
|
6444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6445
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6307
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6308
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyModalTitleDirective, isStandalone: false, selector: "monkey-modal-title, [monkey-modal-title]", host: { properties: { "attr.id": "id || null" }, classAttribute: "mecx-modal-title" }, ngImport: i0 }); }
|
|
6446
6309
|
}
|
|
6447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalTitleDirective, decorators: [{
|
|
6448
6311
|
type: Directive,
|
|
6449
6312
|
args: [{
|
|
6450
6313
|
selector: 'monkey-modal-title, [monkey-modal-title]',
|
|
@@ -6563,8 +6426,8 @@ class MonkeyModalComponent {
|
|
|
6563
6426
|
this.modalRef?.close();
|
|
6564
6427
|
}, 150);
|
|
6565
6428
|
}
|
|
6566
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6567
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6429
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.OverlayRef, optional: true }, { token: MonkeyModalRef, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6430
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyModalComponent, isStandalone: false, selector: "monkey-modal", host: { attributes: { "tabindex": "-1" }, properties: { "attr.id": "modalRef?.id || null" }, classAttribute: "mecx-modal" }, ngImport: i0, template: `
|
|
6568
6431
|
<div class="mecx-modal-header">
|
|
6569
6432
|
<div class="mecx-modal-header-group">
|
|
6570
6433
|
<div class="mecx-modal-header-title">
|
|
@@ -6597,7 +6460,7 @@ class MonkeyModalComponent {
|
|
|
6597
6460
|
<ng-content select="[monkey-modal-actions]"></ng-content>
|
|
6598
6461
|
`, isInline: true, styles: ["monkey-modal{width:100%;height:100%;display:flex;flex-direction:column;background:#fff;border-radius:8px}.mecx-modal{opacity:0;animation:modal-fade-in .2s ease-out forwards;transition:opacity .15s ease-in}.mecx-modal.fade-out{animation:modal-fade-out .15s ease-in forwards}@keyframes modal-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes modal-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.mecx-modal-header{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--mecx-color-gray-200);padding:12px;position:relative}.mecx-modal-header-group{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px}.mecx-modal-header-title{display:flex;gap:8px;align-items:center;justify-content:flex-start}.mecx-modal-header-icon{padding:8px;display:flex;align-items:center;justify-content:center;background:var(--mecx-color-gray-100);border-radius:8px;font-size:24px;color:var(--mecx-color-gray-900)}.mecx-modal-title{font-size:18px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.54px;color:var(--mecx-color-gray-900)}.mecx-modal-subtitle{font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.42px;color:var(--mecx-color-gray-700)}.mecx-modal-content{display:block;flex-grow:1;box-sizing:border-box;overflow:auto;max-height:65vh;padding:12px;scrollbar-color:var(--mecx-color-gray-400) transparent}.mecx-modal-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--mecx-color-gray-200);padding:12px}.mecx-modal-actions.align-start{justify-content:flex-start}.mecx-modal-actions.align-center{justify-content:center}.mecx-modal-actions.align-end{justify-content:flex-end}.mecx-modal-overlay{background:#00000052}.monkey-modal-panel{padding:16px}.monkey-modal-panel.monkey-modal-fullscreen{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;padding:0}.monkey-modal-panel.monkey-modal-fullscreen monkey-modal{border-radius:0}.monkey-modal-panel.monkey-modal-fullscreen monkey-modal .mecx-modal-content{max-height:100%}\n"], dependencies: [{ kind: "component", type: MonkeyIconButtonComponent, selector: "monkey-icon-button", inputs: ["type", "size", "disabled", "icon", "loading", "id"] }, { kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
6599
6462
|
}
|
|
6600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalComponent, decorators: [{
|
|
6601
6464
|
type: Component,
|
|
6602
6465
|
args: [{ encapsulation: ViewEncapsulation.None, selector: 'monkey-modal', template: `
|
|
6603
6466
|
<div class="mecx-modal-header">
|
|
@@ -6681,8 +6544,8 @@ class MonkeyModalDefaultComponent {
|
|
|
6681
6544
|
onClose() {
|
|
6682
6545
|
this.modalRef.close();
|
|
6683
6546
|
}
|
|
6684
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6685
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
6547
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalDefaultComponent, deps: [{ token: MECX_MODAL_DEFAULT_CONFIG }, { token: MonkeyModalRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6548
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyModalDefaultComponent, isStandalone: false, selector: "monkey-modal-default", ngImport: i0, template: `
|
|
6686
6549
|
<monkey-modal>
|
|
6687
6550
|
<monkey-modal-title [innerHTML]="config.title"></monkey-modal-title>
|
|
6688
6551
|
<monkey-modal-subtitle [innerHTML]="config.subtitle"></monkey-modal-subtitle>
|
|
@@ -6694,7 +6557,7 @@ class MonkeyModalDefaultComponent {
|
|
|
6694
6557
|
</monkey-modal>
|
|
6695
6558
|
`, isInline: true, dependencies: [{ kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }, { kind: "component", type: MonkeyModalComponent, selector: "monkey-modal" }, { kind: "directive", type: MonkeyModalTitleDirective, selector: "monkey-modal-title, [monkey-modal-title]" }, { kind: "directive", type: MonkeyModalSubtitleDirective, selector: "monkey-modal-subtitle, [monkey-modal-subtitle]" }, { kind: "directive", type: MonkeyModalContentDirective, selector: "monkey-modal-content, [monkey-modal-content]" }, { kind: "directive", type: MonkeyModalActionsDirective, selector: "monkey-modal-actions, [monkey-modal-actions]", inputs: ["mkAlign"] }] }); }
|
|
6696
6559
|
}
|
|
6697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalDefaultComponent, decorators: [{
|
|
6698
6561
|
type: Component,
|
|
6699
6562
|
args: [{
|
|
6700
6563
|
selector: 'monkey-modal-default',
|
|
@@ -6736,8 +6599,8 @@ class MonkeyModalConfirmationComponent {
|
|
|
6736
6599
|
onClose() {
|
|
6737
6600
|
this.modalRef.close();
|
|
6738
6601
|
}
|
|
6739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6740
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6602
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalConfirmationComponent, deps: [{ token: MECX_MODAL_CONFIRMATION_CONFIG }, { token: MonkeyModalRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6603
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyModalConfirmationComponent, isStandalone: false, selector: "monkey-modal-confirmation", ngImport: i0, template: `
|
|
6741
6604
|
<monkey-modal class="modal-confirmation">
|
|
6742
6605
|
<monkey-modal-content>
|
|
6743
6606
|
@if (config.icon) {
|
|
@@ -6755,7 +6618,7 @@ class MonkeyModalConfirmationComponent {
|
|
|
6755
6618
|
</monkey-modal>
|
|
6756
6619
|
`, isInline: true, styles: [".modal-confirmation .mecx-modal-header{border:none}.modal-confirmation .confirmation-title{color:var(--mecx-color-gray-900);text-align:center;font-size:18px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.54px;margin-bottom:8px}.modal-confirmation .confirmation-description{color:var(--mecx-color-gray-700);text-align:center;font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.42px;margin-bottom:24px}.modal-confirmation .modal-confirmation-icon{width:80px;height:80px;border-radius:50%;display:flex;margin:0 auto 16px;align-items:center;justify-content:center;background-color:var(--mecx-color-gray-50)}.modal-confirmation .modal-confirmation-icon monkey-icon{color:var(--mecx-color-gray-900)}.modal-confirmation .modal-confirmation-icon.warning{background-color:var(--mecx-color-warning-100)}.modal-confirmation .modal-confirmation-icon.warning monkey-icon{color:var(--mecx-color-warning-500)}.modal-confirmation .modal-confirmation-icon.error{background-color:var(--mecx-color-error-100)}.modal-confirmation .modal-confirmation-icon.error monkey-icon{color:var(--mecx-color-error-500)}.modal-confirmation .modal-confirmation-icon.success{background-color:var(--mecx-color-success-100)}.modal-confirmation .modal-confirmation-icon.success monkey-icon{color:var(--mecx-color-success-500)}\n"], dependencies: [{ kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }, { kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }, { kind: "component", type: MonkeyModalComponent, selector: "monkey-modal" }, { kind: "directive", type: MonkeyModalContentDirective, selector: "monkey-modal-content, [monkey-modal-content]" }, { kind: "directive", type: MonkeyModalActionsDirective, selector: "monkey-modal-actions, [monkey-modal-actions]", inputs: ["mkAlign"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
6757
6620
|
}
|
|
6758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalConfirmationComponent, decorators: [{
|
|
6759
6622
|
type: Component,
|
|
6760
6623
|
args: [{ selector: 'monkey-modal-confirmation', encapsulation: ViewEncapsulation.None, template: `
|
|
6761
6624
|
<monkey-modal class="modal-confirmation">
|
|
@@ -6788,8 +6651,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
6788
6651
|
* MIT Licence
|
|
6789
6652
|
************************* */
|
|
6790
6653
|
class MonkeyModalModule {
|
|
6791
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6792
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
6654
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6655
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalModule, declarations: [MonkeyModalComponent,
|
|
6793
6656
|
MonkeyModalDefaultComponent,
|
|
6794
6657
|
MonkeyModalConfirmationComponent,
|
|
6795
6658
|
MonkeyModalTitleDirective,
|
|
@@ -6800,9 +6663,9 @@ class MonkeyModalModule {
|
|
|
6800
6663
|
MonkeyModalSubtitleDirective,
|
|
6801
6664
|
MonkeyModalContentDirective,
|
|
6802
6665
|
MonkeyModalActionsDirective] }); }
|
|
6803
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
6666
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalModule, imports: [CommonModule, MonkeyButtonComponent, MonkeyIconButtonComponent, MonkeyIconComponent] }); }
|
|
6804
6667
|
}
|
|
6805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalModule, decorators: [{
|
|
6806
6669
|
type: NgModule,
|
|
6807
6670
|
args: [{
|
|
6808
6671
|
imports: [CommonModule, MonkeyButtonComponent, MonkeyIconButtonComponent, MonkeyIconComponent],
|
|
@@ -6957,10 +6820,10 @@ class MonkeyModalService {
|
|
|
6957
6820
|
});
|
|
6958
6821
|
this.openDialogs.splice(0, this.openDialogs.length);
|
|
6959
6822
|
}
|
|
6960
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6961
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
6823
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6824
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalService, providedIn: 'root' }); }
|
|
6962
6825
|
}
|
|
6963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyModalService, decorators: [{
|
|
6964
6827
|
type: Injectable,
|
|
6965
6828
|
args: [{ providedIn: 'root' }]
|
|
6966
6829
|
}] });
|
|
@@ -7101,13 +6964,13 @@ class MonkeyRadioButtonComponent {
|
|
|
7101
6964
|
this.disabled = isDisabled;
|
|
7102
6965
|
this.initializeOptions();
|
|
7103
6966
|
}
|
|
7104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7105
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
6967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyRadioButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: MonkeyFormFieldComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6968
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyRadioButtonComponent, isStandalone: true, selector: "monkey-radiobutton", inputs: { tabIndex: "tabIndex", position: "position", size: "size", disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute], value: "value" }, outputs: { onChange: "onChange", onSearch: "onSearch" }, host: { attributes: { "data-testid": "monkey-radiobutton" }, listeners: { "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "class.mecx-disabled": "disabled", "class.mecx-radiobutton-focused": "focused", "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex", "class": "this.classes" }, classAttribute: "mecx-radiobutton" }, providers: [
|
|
7106
6969
|
// eslint-disable-next-line no-use-before-define
|
|
7107
6970
|
{ provide: MonkeyFormFieldControl, useExisting: MonkeyRadioButtonComponent }
|
|
7108
6971
|
], queries: [{ propertyName: "options", predicate: MonkeyOptionComponent }], ngImport: i0, template: "<ng-content />\n", styles: ["monkey-radiobutton{display:inline-flex;width:100%;min-width:0;position:relative;flex-wrap:wrap}monkey-radiobutton:focus-visible,monkey-radiobutton:focus{outline:none}monkey-radiobutton.vertical{flex-direction:column}monkey-radiobutton monkey-option{transition:none!important}monkey-radiobutton.mecx-disabled monkey-option{opacity:.5;pointer-events:none}monkey-radiobutton.mecx-disabled monkey-option:before{background:var(--mecx-color-white);border-color:var(--mecx-color-gray-400)}monkey-radiobutton.mecx-form-field-invalid{background:var(--mecx-color-error-700)}monkey-radiobutton.md monkey-option:before{width:16px;height:16px}monkey-radiobutton.sm monkey-option:before{width:14px;height:14px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
7109
6972
|
}
|
|
7110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyRadioButtonComponent, decorators: [{
|
|
7111
6974
|
type: Component,
|
|
7112
6975
|
args: [{ selector: 'monkey-radiobutton', imports: [CommonModule, ReactiveFormsModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
7113
6976
|
// eslint-disable-next-line no-use-before-define
|
|
@@ -7191,10 +7054,10 @@ class MonkeySecurityLevelComponent {
|
|
|
7191
7054
|
// eslint-disable-next-line no-self-assign
|
|
7192
7055
|
this.id = this.id;
|
|
7193
7056
|
}
|
|
7194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7195
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
7057
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeySecurityLevelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7058
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: MonkeySecurityLevelComponent, isStandalone: true, selector: "monkey-security-level", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, score: { classPropertyName: "score", publicName: "score", isSignal: true, isRequired: true, transformFunction: null }, strengthLabel: { classPropertyName: "strengthLabel", publicName: "strengthLabel", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-security-level" }, properties: { "attr.id": "id", "id": "id", "class": "this.class" } }, ngImport: i0, template: "<div class=\"body\">\n <div>\n <span data-testid=\"label\" *ngIf=\"label() as lb\">\n {{ lb }}\n </span>\n <span data-testid=\"str-label\" class=\"level-info\" *ngIf=\"strengthLabel() as strLabel\">\n {{ strLabel }}\n </span>\n </div>\n <div class=\"bar\"></div>\n</div>\n", styles: ["monkey-security-level{display:flex;align-items:center;gap:8px;width:100%}monkey-security-level span{color:var(--mecx-color-gray-700);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.42px}monkey-security-level .level-info{color:var(--mecx-color-gray-900);margin-left:24px;font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.42px}monkey-security-level .body{display:flex;flex-direction:column;align-items:baseline;width:100%}monkey-security-level .bar{height:4px;width:100%;max-width:426px;border-radius:8px;background:var(--mecx-color-gray-300);position:relative;overflow:hidden}monkey-security-level .bar:before{content:\"\";display:block;position:absolute;height:100%;left:0;top:0;transition:all 1s}monkey-security-level.very-strong .bar:before{background:var(--mecx-color-success-main);width:100%}monkey-security-level.strong .bar:before{background:var(--mecx-color-success-main);width:80%}monkey-security-level.medium .bar:before{background:var(--mecx-color-warning-main);width:66%}monkey-security-level.weak .bar:before{background:var(--mecx-color-error-700);width:33%}monkey-security-level.empty .bar:before{background:var(--mecx-color-error-700);width:0%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
7196
7059
|
}
|
|
7197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeySecurityLevelComponent, decorators: [{
|
|
7198
7061
|
type: Component,
|
|
7199
7062
|
args: [{ encapsulation: ViewEncapsulation.None, imports: [CommonModule], selector: 'monkey-security-level', host: {
|
|
7200
7063
|
'data-testid': 'monkey-security-level',
|
|
@@ -7237,10 +7100,10 @@ class MonkeyStatusComponent {
|
|
|
7237
7100
|
// eslint-disable-next-line no-self-assign
|
|
7238
7101
|
this.id = this.id;
|
|
7239
7102
|
}
|
|
7240
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7241
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
7103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: MonkeyStatusComponent, isStandalone: true, selector: "monkey-status", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null } }, host: { attributes: { "data-testid": "monkey-status" }, properties: { "attr.id": "id", "id": "id", "class": "this.class" } }, ngImport: i0, template: "<div class=\"status\"></div>\n<span *ngIf=\"label() as lb\">\n {{ lb }}\n</span>\n", styles: [":host{display:flex;align-items:center;gap:8px}:host span{color:var(--mecx-color-gray-700);font-style:normal;font-weight:400;line-height:24px}:host .status{width:8px;height:8px;border-radius:50%;flex-shrink:0}:host.sm span{font-size:14px;letter-spacing:.42px}:host.sm .status{height:8px;width:8px}:host.md span{font-size:16px;letter-spacing:.48px}:host.md .status{height:12px;width:12px}:host.lg span{font-size:18px;letter-spacing:.52px}:host.lg .status{height:16px;width:16px}:host.default .status{background-color:var(--mecx-color-gray-300)}:host.success .status{background-color:var(--mecx-color-success-main)}:host.warning .status{background-color:var(--mecx-color-warning-main)}:host.error .status{background-color:var(--mecx-color-error-700)}:host.question .status{background-color:var(--mecx-color-question-main)}:host.info .status{background-color:var(--mecx-color-info)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
7242
7105
|
}
|
|
7243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStatusComponent, decorators: [{
|
|
7244
7107
|
type: Component,
|
|
7245
7108
|
args: [{ selector: 'monkey-status', imports: [CommonModule], host: {
|
|
7246
7109
|
'data-testid': 'monkey-status',
|
|
@@ -7283,8 +7146,8 @@ class MonkeyStepComponent {
|
|
|
7283
7146
|
this.hasSubSteps = false;
|
|
7284
7147
|
}
|
|
7285
7148
|
}
|
|
7286
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7287
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7150
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyStepComponent, isStandalone: false, selector: "monkey-step", inputs: { label: "label", step: "step", icon: "icon" }, host: { attributes: { "data-testid": "monkey-step" }, properties: { "attr.id": "id", "id": "id" } }, queries: [{ propertyName: "subSteps", predicate: MonkeyStepComponent }], ngImport: i0, template: `
|
|
7288
7151
|
<div
|
|
7289
7152
|
class="item"
|
|
7290
7153
|
[class.active]="isActive"
|
|
@@ -7319,7 +7182,7 @@ class MonkeyStepComponent {
|
|
|
7319
7182
|
}
|
|
7320
7183
|
`, isInline: true, styles: [":host{display:block}:host .item{display:flex;gap:var(--mecx-spaces-xs);align-items:center}:host .step .number{flex-shrink:0;display:flex;justify-content:center;align-items:center;border-radius:50%;border:solid 1px var(--mecx-color-gray-700);box-sizing:border-box;width:18px;height:18px}:host .step .number.icon{border:none}:host .label{display:flex;align-items:center;gap:var(--mecx-spaces-xs);justify-content:space-between;width:100%}@media (max-width: 575.98px){:host .label{text-align:center}}:host .substeps{display:flex;flex-direction:column;gap:var(--mecx-spaces-xs);margin-top:var(--mecx-spaces-small);margin-left:18px}:host .substeps .number{display:none}:host .active{color:var(--mecx-color-gray-900)}:host .active .number{border-color:var(--mecx-color-theme-main);color:var(--mecx-color-theme-main)}:host .current{color:var(--mecx-color-theme-main)}:host .current .number{border-color:var(--mecx-color-theme-main)}:host .current-icon{display:flex;align-items:center;color:var(--mecx-color-theme-main)}:host .current-icon monkey-icon{color:var(--mecx-color-theme-main)}:host .complete .number{border-color:var(--mecx-color-success-main);background:var(--mecx-color-success-main);color:var(--mecx-color-white)}:host .complete .number monkey-icon{color:var(--mecx-color-white)}\n/*!\n* Bootstrap Grid v5.3.7 (https://getbootstrap.com/)\n* Copyright 2011-2025 The Bootstrap Authors\n* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n*/\n"], dependencies: [{ kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }] }); }
|
|
7321
7184
|
}
|
|
7322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepComponent, decorators: [{
|
|
7323
7186
|
type: Component,
|
|
7324
7187
|
args: [{ selector: 'monkey-step', standalone: false, template: `
|
|
7325
7188
|
<div
|
|
@@ -7425,10 +7288,10 @@ class MonkeyStepperComponent {
|
|
|
7425
7288
|
}
|
|
7426
7289
|
});
|
|
7427
7290
|
}
|
|
7428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7429
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
7291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7292
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyStepperComponent, isStandalone: false, selector: "monkey-stepper", inputs: { direction: "direction", id: "id", currentStep: "currentStep" }, host: { attributes: { "data-testid": "monkey-stepper" }, properties: { "attr.id": "monkeyId", "id": "monkeyId", "class.horizontal": "direction === 'horizontal'" } }, queries: [{ propertyName: "steps", predicate: MonkeyStepComponent }], usesOnChanges: true, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["monkey-stepper{display:inline-flex;flex-direction:column;width:100%;color:var(--mecx-color-gray-700);font-size:var(--mecx-fs-12);line-height:var(--mecx-lh-16);letter-spacing:.24px;font-weight:var(--mecx-fw-medium);gap:var(--mecx-spaces-small)}monkey-stepper:not(.horizontal)>monkey-step:not(:last-child) .item.complete:not(.substep){margin-bottom:12px;position:relative}monkey-stepper:not(.horizontal)>monkey-step:not(:last-child) .item.complete:not(.substep):after{content:\"\";background:var(--mecx-color-success-main);display:block;position:absolute;width:1px;height:13px;border-radius:10px;left:8px;top:23px}monkey-stepper.horizontal{flex-direction:row;gap:0}monkey-stepper.horizontal>monkey-step{flex:1}monkey-stepper.horizontal>monkey-step:first-child .step:before,monkey-stepper.horizontal>monkey-step:last-child .step:after{background-color:transparent!important}monkey-stepper.horizontal>monkey-step .substeps{display:none!important}monkey-stepper.horizontal>monkey-step .item{flex-direction:column;margin:0}monkey-stepper.horizontal>monkey-step .item .label{justify-content:center;text-align:center}@media (max-width: 575.98px){monkey-stepper.horizontal>monkey-step .item .label{display:none}}monkey-stepper.horizontal>monkey-step .item .current-icon{display:none}monkey-stepper.horizontal>monkey-step .item .step{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}monkey-stepper.horizontal>monkey-step .item .step:before{display:block;content:\"\";width:100%;height:1px;background-color:var(--mecx-color-gray-700)}monkey-stepper.horizontal>monkey-step .item .step:after{display:block;content:\"\";width:100%;height:1px;background-color:var(--mecx-color-gray-700)}monkey-stepper.horizontal>monkey-step .item.complete .step:after,monkey-stepper.horizontal>monkey-step .item.complete .step:before{background-color:var(--mecx-color-success-main)}monkey-stepper.horizontal>monkey-step .item.current .step:after,monkey-stepper.horizontal>monkey-step .item.current .step:before{background-color:var(--mecx-color-theme-main)}\n/*!\n* Bootstrap Grid v5.3.7 (https://getbootstrap.com/)\n* Copyright 2011-2025 The Bootstrap Authors\n* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
7430
7293
|
}
|
|
7431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperComponent, decorators: [{
|
|
7432
7295
|
type: Component,
|
|
7433
7296
|
args: [{ selector: 'monkey-stepper', standalone: false, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
7434
7297
|
'data-testid': 'monkey-stepper',
|
|
@@ -7453,11 +7316,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
7453
7316
|
* MIT Licence
|
|
7454
7317
|
************************* */
|
|
7455
7318
|
class MonkeyStepperModule {
|
|
7456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7457
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7458
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7319
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7320
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperModule, declarations: [MonkeyStepperComponent, MonkeyStepComponent], imports: [UtilIconComponent, MonkeyIconComponent], exports: [MonkeyStepperComponent, MonkeyStepComponent] }); }
|
|
7321
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperModule, imports: [MonkeyIconComponent] }); }
|
|
7459
7322
|
}
|
|
7460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyStepperModule, decorators: [{
|
|
7461
7324
|
type: NgModule,
|
|
7462
7325
|
args: [{
|
|
7463
7326
|
declarations: [MonkeyStepperComponent, MonkeyStepComponent],
|
|
@@ -7486,10 +7349,10 @@ class MonkeyPaginationActionComponent {
|
|
|
7486
7349
|
// eslint-disable-next-line no-self-assign
|
|
7487
7350
|
this.id = this.id;
|
|
7488
7351
|
}
|
|
7489
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7490
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
7352
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPaginationActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7353
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyPaginationActionComponent, isStandalone: true, selector: "monkey-pagination-action", inputs: { disabled: "disabled", first: "first", last: "last", next: "next", prev: "prev", id: "id" }, outputs: { onAction: "onAction" }, host: { attributes: { "data-testid": "monkey-pagination-action" }, properties: { "attr.id": "id", "id": "id" } }, exportAs: ["monkeyPaginationAction"], ngImport: i0, template: "<monkey-button\n type=\"secondary\"\n size=\"sm\"\n (click)=\"onAction.next('prev')\"\n [disabled]=\"disabled || !prev\"\n>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M11.670 8.630 C 9.335 10.964,8.550 11.772,8.523 11.870 C 8.501 11.947,8.501 12.053,8.523 12.130 C 8.574 12.316,14.682 18.423,14.870 18.477 C 15.231 18.581,15.581 18.231,15.477 17.869 C 15.450 17.774,14.687 16.987,12.570 14.870 L 9.700 12.000 12.570 9.130 C 14.687 7.013,15.450 6.226,15.477 6.131 C 15.528 5.951,15.464 5.747,15.316 5.623 C 15.219 5.541,15.151 5.520,14.988 5.520 L 14.781 5.520 11.670 8.630 \"\n stroke=\"none\"\n fill-rule=\"evenodd\"\n fill=\"black\"\n ></path>\n </svg>\n</monkey-button>\n\n<monkey-button\n type=\"secondary\"\n size=\"sm\"\n (click)=\"onAction.next('next')\"\n [disabled]=\"disabled || !next\"\n>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.751 5.583 C 8.552 5.691,8.459 6.004,8.564 6.213 C 8.588 6.261,9.889 7.583,11.454 9.150 L 14.300 12.000 11.454 14.850 C 9.889 16.418,8.588 17.739,8.564 17.787 C 8.357 18.197,8.823 18.640,9.232 18.423 C 9.363 18.353,15.373 12.337,15.436 12.213 C 15.497 12.092,15.491 11.897,15.423 11.768 C 15.353 11.637,9.337 5.627,9.213 5.564 C 9.092 5.503,8.881 5.512,8.751 5.583 \"\n stroke=\"none\"\n fill-rule=\"evenodd\"\n fill=\"black\"\n ></path>\n </svg>\n</monkey-button>\n", styles: ["monkey-pagination-action{display:flex;align-items:center;gap:8px}monkey-pagination-action monkey-button .mecx-button .content{padding:unset}monkey-pagination-action monkey-button .mecx-button .content span{display:flex;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
7491
7354
|
}
|
|
7492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPaginationActionComponent, decorators: [{
|
|
7493
7356
|
type: Component,
|
|
7494
7357
|
args: [{ imports: [CommonModule, MonkeyButtonComponent], encapsulation: ViewEncapsulation.None, selector: 'monkey-pagination-action', exportAs: 'monkeyPaginationAction', host: {
|
|
7495
7358
|
'data-testid': 'monkey-pagination-action',
|
|
@@ -7531,10 +7394,10 @@ class MonkeyPaginationLabelComponent {
|
|
|
7531
7394
|
// eslint-disable-next-line no-self-assign
|
|
7532
7395
|
this.id = this.id;
|
|
7533
7396
|
}
|
|
7534
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7535
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
7397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPaginationLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7398
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyPaginationLabelComponent, isStandalone: true, selector: "monkey-pagination-label", inputs: { id: "id" }, host: { attributes: { "data-testid": "monkey-pagination-label" }, properties: { "attr.id": "id", "id": "id" } }, exportAs: ["monkeyPaginationLabel"], ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["monkey-pagination-label{font-size:12px}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
7536
7399
|
}
|
|
7537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPaginationLabelComponent, decorators: [{
|
|
7538
7401
|
type: Component,
|
|
7539
7402
|
args: [{ standalone: true, encapsulation: ViewEncapsulation.None, selector: 'monkey-pagination-label', exportAs: 'monkeyPaginationLabel', host: {
|
|
7540
7403
|
'data-testid': 'monkey-pagination-label',
|
|
@@ -7564,10 +7427,10 @@ class MonkeyPaginationSizeComponent {
|
|
|
7564
7427
|
// eslint-disable-next-line no-self-assign
|
|
7565
7428
|
this.id = this.id;
|
|
7566
7429
|
}
|
|
7567
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7568
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPaginationSizeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7431
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyPaginationSizeComponent, isStandalone: true, selector: "monkey-pagination-size", inputs: { size: "size", disabled: "disabled", id: "id" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "monkey-pagination-size" }, properties: { "attr.id": "id", "id": "id" } }, exportAs: ["monkeyPaginationSize"], ngImport: i0, template: "<ng-content></ng-content>\n<monkey-form-field hideClear size=\"sm\">\n <monkey-select\n placeholder=\"''\"\n [ngModel]=\"size\"\n (onChange)=\"onChange.next($event)\"\n [disabled]=\"disabled\"\n [showSearch]=\"false\"\n >\n @for (item of sizes; track item) {\n <monkey-option [value]=\"item\">{{ item }}</monkey-option>\n }\n </monkey-select>\n</monkey-form-field>\n", styles: ["monkey-pagination-size{display:flex;align-items:center;gap:8px}monkey-pagination-size .mecx-form-field-body{height:32px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: MonkeySelectComponent, selector: "monkey-select", inputs: ["tabIndex", "placeholder", "loading", "showSearch", "searchPlaceholder", "type", "disabled", "required", "value"], outputs: ["onChange"] }, { kind: "component", type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["value", "disabled", "type"] }, { kind: "ngmodule", type: MonkeyFormFieldModule }, { kind: "component", type: MonkeyFormFieldComponent, selector: "monkey-form-field", inputs: ["id", "hideAction", "enableClear", "size", "displayOnly"], outputs: ["onDisplayOnlyChange"], exportAs: ["monkeyFormField"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
7569
7432
|
}
|
|
7570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyPaginationSizeComponent, decorators: [{
|
|
7571
7434
|
type: Component,
|
|
7572
7435
|
args: [{ imports: [
|
|
7573
7436
|
CommonModule,
|
|
@@ -7680,10 +7543,10 @@ class MonkeyTableComponent {
|
|
|
7680
7543
|
this.stateChanges.emit({ loading });
|
|
7681
7544
|
}
|
|
7682
7545
|
}
|
|
7683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7684
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7546
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7547
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyTableComponent, isStandalone: false, selector: "monkey-table, table[monkey-table]", inputs: { scroll: "scroll", loading: "loading", loadingRef: "loadingRef" }, outputs: { sortChange: "sortChange" }, host: { properties: { "class.disabled": "this.loading" } }, queries: [{ propertyName: "_paginationActionChildren", predicate: MonkeyPaginationActionComponent, descendants: true }, { propertyName: "_paginationSizeChildren", predicate: MonkeyPaginationSizeComponent, descendants: true }], viewQueries: [{ propertyName: "_headerEl", first: true, predicate: ["header"], descendants: true, static: true }, { propertyName: "_tableHeaderEl", first: true, predicate: ["tableHeader"], descendants: true, static: true }, { propertyName: "_tableContentEl", first: true, predicate: ["tableContent"], descendants: true, static: true }, { propertyName: "_tableLoadingEl", first: true, predicate: ["tableLoading"], descendants: true, static: true }, { propertyName: "_tableScrollEl", first: true, predicate: ["tableScroll"], descendants: true, static: true }], exportAs: ["monkeyTable"], usesOnChanges: true, ngImport: i0, template: "<div class=\"mecx-table-container\">\n <div class=\"mecx-table-wrapper\">\n <div class=\"mecx-table-header\" #header>\n <table #tableHeader>\n <ng-content select=\"thead\"></ng-content>\n </table>\n </div>\n <div class=\"mecx-inner-scroll\" #tableScroll>\n <table #tableContent>\n <ng-content select=\"tbody\"></ng-content>\n </table>\n\n @if (loadingRef && loading) {\n <table #tableLoading>\n <ng-container *ngTemplateOutlet=\"loadingRef\"></ng-container>\n </table>\n }\n </div>\n </div>\n <div class=\"mecx-table-footer\">\n <ng-content select=\"monkey-pagination-size\"></ng-content>\n <div class=\"mecx-table-actions\">\n <ng-content select=\"monkey-pagination-label\"></ng-content>\n <ng-content select=\"monkey-pagination-action\"></ng-content>\n </div>\n </div>\n</div>\n", styles: ["monkey-table{position:relative;display:block;table-layout:fixed;border:2px solid var(--mecx-color-gray-400);border-radius:16px}.mecx-table-container{scrollbar-color:var(--mecx-color-gray-400) transparent}.mecx-table-wrapper{display:block}.mecx-table-header{overflow-x:hidden;overflow-y:scroll;white-space:nowrap;border-bottom:2px solid var(--mecx-color-gray-300);background:var(--mecx-color-gray-50);border-top-left-radius:16px;border-top-right-radius:16px}.mecx-table-header table{table-layout:fixed;width:100%;text-align:left;border-collapse:separate;height:48px}.mecx-table-header table thead{display:table-header-group;vertical-align:middle;unicode-bidi:isolate}.mecx-table-header table th{text-align:left;vertical-align:middle;padding:8px 12px;color:var(--mecx-color-gray-700);font-size:16px;font-weight:700;font-style:normal;white-space:nowrap;will-change:transform;backface-visibility:hidden;line-height:24px}.mecx-table-header table th svg{opacity:0;transform:opacity 2s ease-in-out}.mecx-table-header table th:hover svg{opacity:1}.mecx-table-header table .mecx-column-checked svg{opacity:1}.mecx-table-header .mecx-column-stick{position:sticky;background:var(--mecx-color-gray-50);z-index:3}.mecx-table-header .mecx-column-stick-left{border-right:1px solid var(--mecx-color-gray-200);left:0}.mecx-table-header .mecx-column-stick-right{border-left:1px solid var(--mecx-color-gray-200);right:0}.mecx-table-header .mecx-column-checked{position:sticky;left:0;border-right:1px solid var(--mecx-color-gray-200);background:var(--mecx-color-gray-50);z-index:3}.mecx-table-header .mecx-column-checked monkey-checkbox{vertical-align:middle}.mecx-inner-scroll{scroll-behavior:smooth}.mecx-inner-scroll table{table-layout:fixed;width:100%;text-align:left;border-collapse:separate;border-spacing:0px}.mecx-inner-scroll table td{text-align:left;border-bottom:2px solid var(--mecx-color-gray-100);padding:8px 12px;vertical-align:middle}.mecx-inner-scroll .mecx-column-stick{position:sticky;right:0;z-index:1;background:#fff}.mecx-inner-scroll .mecx-column-stick-left{border-right:1px solid var(--mecx-color-gray-200);left:0}.mecx-inner-scroll .mecx-column-stick-right{border-left:1px solid var(--mecx-color-gray-200);right:0}.mecx-inner-scroll .mecx-column-checked{position:sticky;left:0;z-index:1;border-right:1px solid var(--mecx-color-gray-200);background:#fff}.mecx-inner-scroll .mecx-column-checked monkey-checkbox{vertical-align:middle}.mecx-table-footer{border-top:1px solid var(--mecx-color-gray-200);padding:8px 12px;display:flex;align-items:center;justify-content:space-between}.mecx-table-footer .mecx-table-actions{display:flex;gap:8px;align-items:center}.mecx-column-sortable-disabled,.mecx-column-checked-disabled{pointer-events:none}.mecx-column-expansible{border-left:none!important;border-right:none!important}@keyframes rotate-right{0%{transform:rotate(0)}to{transform:rotate(90deg)}}@keyframes rotate-left{0%{transform:rotate(90deg)}to{transform:rotate(0)}}.mecx-column-expansible .rotate-animation-right{animation:rotate-right .3s ease-in-out}.mecx-column-expansible .rotate-animation-left{animation:rotate-left .3s ease-in-out}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
7685
7548
|
}
|
|
7686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTableComponent, decorators: [{
|
|
7687
7550
|
type: Component,
|
|
7688
7551
|
args: [{ encapsulation: ViewEncapsulation.None, selector: 'monkey-table, table[monkey-table]', exportAs: 'monkeyTable', standalone: false, template: "<div class=\"mecx-table-container\">\n <div class=\"mecx-table-wrapper\">\n <div class=\"mecx-table-header\" #header>\n <table #tableHeader>\n <ng-content select=\"thead\"></ng-content>\n </table>\n </div>\n <div class=\"mecx-inner-scroll\" #tableScroll>\n <table #tableContent>\n <ng-content select=\"tbody\"></ng-content>\n </table>\n\n @if (loadingRef && loading) {\n <table #tableLoading>\n <ng-container *ngTemplateOutlet=\"loadingRef\"></ng-container>\n </table>\n }\n </div>\n </div>\n <div class=\"mecx-table-footer\">\n <ng-content select=\"monkey-pagination-size\"></ng-content>\n <div class=\"mecx-table-actions\">\n <ng-content select=\"monkey-pagination-label\"></ng-content>\n <ng-content select=\"monkey-pagination-action\"></ng-content>\n </div>\n </div>\n</div>\n", styles: ["monkey-table{position:relative;display:block;table-layout:fixed;border:2px solid var(--mecx-color-gray-400);border-radius:16px}.mecx-table-container{scrollbar-color:var(--mecx-color-gray-400) transparent}.mecx-table-wrapper{display:block}.mecx-table-header{overflow-x:hidden;overflow-y:scroll;white-space:nowrap;border-bottom:2px solid var(--mecx-color-gray-300);background:var(--mecx-color-gray-50);border-top-left-radius:16px;border-top-right-radius:16px}.mecx-table-header table{table-layout:fixed;width:100%;text-align:left;border-collapse:separate;height:48px}.mecx-table-header table thead{display:table-header-group;vertical-align:middle;unicode-bidi:isolate}.mecx-table-header table th{text-align:left;vertical-align:middle;padding:8px 12px;color:var(--mecx-color-gray-700);font-size:16px;font-weight:700;font-style:normal;white-space:nowrap;will-change:transform;backface-visibility:hidden;line-height:24px}.mecx-table-header table th svg{opacity:0;transform:opacity 2s ease-in-out}.mecx-table-header table th:hover svg{opacity:1}.mecx-table-header table .mecx-column-checked svg{opacity:1}.mecx-table-header .mecx-column-stick{position:sticky;background:var(--mecx-color-gray-50);z-index:3}.mecx-table-header .mecx-column-stick-left{border-right:1px solid var(--mecx-color-gray-200);left:0}.mecx-table-header .mecx-column-stick-right{border-left:1px solid var(--mecx-color-gray-200);right:0}.mecx-table-header .mecx-column-checked{position:sticky;left:0;border-right:1px solid var(--mecx-color-gray-200);background:var(--mecx-color-gray-50);z-index:3}.mecx-table-header .mecx-column-checked monkey-checkbox{vertical-align:middle}.mecx-inner-scroll{scroll-behavior:smooth}.mecx-inner-scroll table{table-layout:fixed;width:100%;text-align:left;border-collapse:separate;border-spacing:0px}.mecx-inner-scroll table td{text-align:left;border-bottom:2px solid var(--mecx-color-gray-100);padding:8px 12px;vertical-align:middle}.mecx-inner-scroll .mecx-column-stick{position:sticky;right:0;z-index:1;background:#fff}.mecx-inner-scroll .mecx-column-stick-left{border-right:1px solid var(--mecx-color-gray-200);left:0}.mecx-inner-scroll .mecx-column-stick-right{border-left:1px solid var(--mecx-color-gray-200);right:0}.mecx-inner-scroll .mecx-column-checked{position:sticky;left:0;z-index:1;border-right:1px solid var(--mecx-color-gray-200);background:#fff}.mecx-inner-scroll .mecx-column-checked monkey-checkbox{vertical-align:middle}.mecx-table-footer{border-top:1px solid var(--mecx-color-gray-200);padding:8px 12px;display:flex;align-items:center;justify-content:space-between}.mecx-table-footer .mecx-table-actions{display:flex;gap:8px;align-items:center}.mecx-column-sortable-disabled,.mecx-column-checked-disabled{pointer-events:none}.mecx-column-expansible{border-left:none!important;border-right:none!important}@keyframes rotate-right{0%{transform:rotate(0)}to{transform:rotate(90deg)}}@keyframes rotate-left{0%{transform:rotate(90deg)}to{transform:rotate(0)}}.mecx-column-expansible .rotate-animation-right{animation:rotate-right .3s ease-in-out}.mecx-column-expansible .rotate-animation-left{animation:rotate-left .3s ease-in-out}\n"] }]
|
|
7689
7552
|
}], propDecorators: { scroll: [{
|
|
@@ -7795,10 +7658,10 @@ class MonkeyColumnChecked {
|
|
|
7795
7658
|
ngOnDestroy() {
|
|
7796
7659
|
this._subscriptions.unsubscribe();
|
|
7797
7660
|
}
|
|
7798
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7799
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
7661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnChecked, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: MonkeyTableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7662
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyColumnChecked, isStandalone: false, selector: "[mkChecked]", inputs: { checked: ["mkChecked", "checked"], disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, host: { properties: { "class.mecx-column-checked-disabled": "this.disabled" }, classAttribute: "mecx-column-checked" }, usesOnChanges: true, ngImport: i0 }); }
|
|
7800
7663
|
}
|
|
7801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnChecked, decorators: [{
|
|
7802
7665
|
type: Directive,
|
|
7803
7666
|
args: [{
|
|
7804
7667
|
selector: '[mkChecked]',
|
|
@@ -7927,10 +7790,10 @@ class MonkeyColumnExpansible {
|
|
|
7927
7790
|
ngOnDestroy() {
|
|
7928
7791
|
this._subscriptions.unsubscribe();
|
|
7929
7792
|
}
|
|
7930
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7931
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
7793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnExpansible, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: MonkeyTableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7794
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyColumnExpansible, isStandalone: false, selector: "[mkExpansible]", outputs: { expansionChange: "expansionChange" }, host: { listeners: { "click": "onClick()" }, properties: { "class.mecx-column-expansible-disabled": "this.disabled" }, classAttribute: "mecx-column-expansible" }, ngImport: i0 }); }
|
|
7932
7795
|
}
|
|
7933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnExpansible, decorators: [{
|
|
7934
7797
|
type: Directive,
|
|
7935
7798
|
args: [{
|
|
7936
7799
|
selector: '[mkExpansible]',
|
|
@@ -8019,10 +7882,10 @@ class MonkeyColumnSortable {
|
|
|
8019
7882
|
ngOnDestroy() {
|
|
8020
7883
|
this.subscriptions.unsubscribe();
|
|
8021
7884
|
}
|
|
8022
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8023
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
7885
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnSortable, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: MonkeyTableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7886
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyColumnSortable, isStandalone: false, selector: "[mkSortable]", inputs: { name: ["mkSortable", "name"] }, host: { listeners: { "click": "onClick()" }, properties: { "class.mecx-column-sortable-disabled": "this.disabled" }, classAttribute: "mecx-column-sortable" }, ngImport: i0 }); }
|
|
8024
7887
|
}
|
|
8025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnSortable, decorators: [{
|
|
8026
7889
|
type: Directive,
|
|
8027
7890
|
args: [{
|
|
8028
7891
|
selector: '[mkSortable]',
|
|
@@ -8056,10 +7919,10 @@ class MonkeyColumnStick {
|
|
|
8056
7919
|
constructor() {
|
|
8057
7920
|
this.position = 'right';
|
|
8058
7921
|
}
|
|
8059
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8060
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
7922
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnStick, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7923
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyColumnStick, isStandalone: false, selector: "[mkStick]", inputs: { position: ["mkStick", "position"] }, host: { properties: { "class": "\"mecx-column-stick-\"+position" }, classAttribute: "mecx-column-stick" }, ngImport: i0 }); }
|
|
8061
7924
|
}
|
|
8062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyColumnStick, decorators: [{
|
|
8063
7926
|
type: Directive,
|
|
8064
7927
|
args: [{
|
|
8065
7928
|
selector: '[mkStick]',
|
|
@@ -8080,8 +7943,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
8080
7943
|
* MIT Licence
|
|
8081
7944
|
************************* */
|
|
8082
7945
|
class MonkeyTableModule {
|
|
8083
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8084
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7947
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTableModule, declarations: [MonkeyTableComponent,
|
|
8085
7948
|
MonkeyColumnStick,
|
|
8086
7949
|
MonkeyColumnChecked,
|
|
8087
7950
|
MonkeyColumnSortable,
|
|
@@ -8094,12 +7957,12 @@ class MonkeyTableModule {
|
|
|
8094
7957
|
MonkeyColumnChecked,
|
|
8095
7958
|
MonkeyColumnSortable,
|
|
8096
7959
|
MonkeyColumnExpansible] }); }
|
|
8097
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7960
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTableModule, imports: [CommonModule,
|
|
8098
7961
|
MonkeyButtonComponent,
|
|
8099
7962
|
MonkeyPaginationSizeComponent,
|
|
8100
7963
|
MonkeyPaginationActionComponent] }); }
|
|
8101
7964
|
}
|
|
8102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTableModule, decorators: [{
|
|
8103
7966
|
type: NgModule,
|
|
8104
7967
|
args: [{
|
|
8105
7968
|
imports: [
|
|
@@ -8179,10 +8042,10 @@ class MonkeyTabLinkDirective {
|
|
|
8179
8042
|
}
|
|
8180
8043
|
}
|
|
8181
8044
|
}
|
|
8182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8183
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
8045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabLinkDirective, deps: [{ token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8046
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyTabLinkDirective, isStandalone: false, selector: "[monkey-tab-link]", inputs: { disabled: ["disabled", "disabled", booleanAttribute] }, host: { properties: { "class.disabled": "this.isDisabled", "attr.tabindex": "this.tabIndex" } }, ngImport: i0 }); }
|
|
8184
8047
|
}
|
|
8185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabLinkDirective, decorators: [{
|
|
8186
8049
|
type: Directive,
|
|
8187
8050
|
args: [{
|
|
8188
8051
|
selector: '[monkey-tab-link]',
|
|
@@ -8221,14 +8084,14 @@ class MonkeyTabComponent {
|
|
|
8221
8084
|
this.onClick.emit(this.value);
|
|
8222
8085
|
}
|
|
8223
8086
|
}
|
|
8224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8225
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
8087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8088
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyTabComponent, isStandalone: false, selector: "monkey-tab", inputs: { value: "value", disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { onClick: "onClick" }, host: { properties: { "class.selected": "this.isSelected" } }, ngImport: i0, template: `
|
|
8226
8089
|
<button type="button" [disabled]="disabled" (click)="handleClick()">
|
|
8227
8090
|
<ng-content />
|
|
8228
8091
|
</button>
|
|
8229
8092
|
`, isInline: true, styles: [":host{display:block}\n"] }); }
|
|
8230
8093
|
}
|
|
8231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabComponent, decorators: [{
|
|
8232
8095
|
type: Component,
|
|
8233
8096
|
args: [{ selector: 'monkey-tab', standalone: false, template: `
|
|
8234
8097
|
<button type="button" [disabled]="disabled" (click)="handleClick()">
|
|
@@ -8333,8 +8196,8 @@ class MonkeyTabsComponent {
|
|
|
8333
8196
|
ngOnDestroy() {
|
|
8334
8197
|
this.resizeObserver?.disconnect();
|
|
8335
8198
|
}
|
|
8336
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8337
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8200
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyTabsComponent, isStandalone: false, selector: "monkey-tabs", inputs: { selected: "selected", fullWidth: ["fullWidth", "fullWidth", booleanAttribute], position: "position" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "monkey-tabs" }, properties: { "attr.id": "monkeyId", "id": "monkeyId" } }, queries: [{ propertyName: "tabs", predicate: MonkeyTabComponent }], viewQueries: [{ propertyName: "tabsHeader", first: true, predicate: ["tabsHeader"], descendants: true }, { propertyName: "tabsContent", first: true, predicate: ["tabsContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
8338
8201
|
@if (hasScroll) {
|
|
8339
8202
|
<button
|
|
8340
8203
|
class="scroll-arrow scroll-arrow-left"
|
|
@@ -8369,7 +8232,7 @@ class MonkeyTabsComponent {
|
|
|
8369
8232
|
}
|
|
8370
8233
|
`, isInline: true, styles: ["monkey-tabs{display:flex;align-items:center;position:relative;width:100%;overflow:hidden}monkey-tabs .monkey-tabs-header{flex:1;overflow:hidden}monkey-tabs a[monkey-tab-link]{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 16px;height:32px;font-weight:400;background:transparent;cursor:pointer;font-size:14px;line-height:16px;border-bottom:2px solid var(--mecx-color-gray-400);color:var(--mecx-color-gray-900);white-space:nowrap;box-sizing:border-box;transition:all .2s ease;text-decoration:none}monkey-tabs a[monkey-tab-link].active:not(.disabled){color:var(--mecx-color-theme-main);border-bottom-color:var(--mecx-color-theme-main)}monkey-tabs a[monkey-tab-link]:hover:not(.disabled){background-color:var(--mecx-color-gray-100)}monkey-tabs a[monkey-tab-link].disabled{color:var(--mecx-color-gray-400);pointer-events:none}monkey-tabs monkey-tab{flex-shrink:0;min-width:max-content}monkey-tabs monkey-tab button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 16px;height:32px;font-weight:400;background:transparent;cursor:pointer;font-size:14px;line-height:16px;border-bottom:2px solid var(--mecx-color-gray-400);color:var(--mecx-color-gray-900);white-space:nowrap;box-sizing:border-box;transition:all .2s ease}monkey-tabs monkey-tab button:disabled{cursor:default;color:var(--mecx-color-gray-400)}monkey-tabs monkey-tab.selected button{color:var(--mecx-color-theme-main);border-bottom-color:var(--mecx-color-theme-main)}monkey-tabs .monkey-tabs-content{display:flex;transition:transform .3s ease;min-width:max-content}monkey-tabs .monkey-tabs-content.full-width monkey-tab,monkey-tabs .monkey-tabs-content.full-width a[monkey-tab-link]{flex:1}monkey-tabs .monkey-tabs-content.full-width monkey-tab button,monkey-tabs .monkey-tabs-content.full-width a[monkey-tab-link] button{width:100%}monkey-tabs .monkey-tabs-content monkey-tab button:hover:not(:disabled){background-color:var(--mecx-color-gray-100)}monkey-tabs .monkey-tabs-content.start{justify-content:flex-start}monkey-tabs .monkey-tabs-content.center{justify-content:center}monkey-tabs .monkey-tabs-content.end{justify-content:flex-end}monkey-tabs .scroll-arrow{width:32px;height:32px;background:transparent;border:none;font-size:18px;color:var(--mecx-color-gray-400);display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0;cursor:default;border-bottom:2px solid var(--mecx-color-gray-400);position:relative}monkey-tabs .scroll-arrow:before{transition:all .2s ease;opacity:0;content:\"\";display:block;height:32px;width:16px;position:absolute;top:0;background:transparent;z-index:1}monkey-tabs .scroll-arrow.scroll-arrow-left.enabled:before{background:linear-gradient(90deg,#0000001a,#0000);opacity:1;right:-16px}monkey-tabs .scroll-arrow.scroll-arrow-right.enabled:before{background:linear-gradient(-90deg,#0000001a,#0000);opacity:1;left:-16px}monkey-tabs .scroll-arrow.enabled{color:var(--mecx-color-gray-900)}monkey-tabs .scroll-arrow.enabled:hover{background-color:var(--mecx-color-gray-100);cursor:pointer}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
8371
8234
|
}
|
|
8372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabsComponent, decorators: [{
|
|
8373
8236
|
type: Component,
|
|
8374
8237
|
args: [{ selector: 'monkey-tabs', standalone: false, encapsulation: ViewEncapsulation.None, template: `
|
|
8375
8238
|
@if (hasScroll) {
|
|
@@ -8435,11 +8298,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
8435
8298
|
* MIT Licence
|
|
8436
8299
|
************************* */
|
|
8437
8300
|
class MonkeyTabsModule {
|
|
8438
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8439
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
8440
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
8301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8302
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabsModule, declarations: [MonkeyTabsComponent, MonkeyTabComponent, MonkeyTabLinkDirective], exports: [MonkeyTabsComponent, MonkeyTabComponent, MonkeyTabLinkDirective] }); }
|
|
8303
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabsModule }); }
|
|
8441
8304
|
}
|
|
8442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTabsModule, decorators: [{
|
|
8443
8306
|
type: NgModule,
|
|
8444
8307
|
args: [{
|
|
8445
8308
|
declarations: [MonkeyTabsComponent, MonkeyTabComponent, MonkeyTabLinkDirective],
|
|
@@ -8482,10 +8345,10 @@ class MonkeyToastComponent {
|
|
|
8482
8345
|
this.onClose.emit(this.id);
|
|
8483
8346
|
}
|
|
8484
8347
|
}
|
|
8485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8486
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToastComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8349
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyToastComponent, isStandalone: true, selector: "monkey-toast", inputs: { message: "message", icon: "icon", type: "type", isClosable: ["isClosable", "isClosable", booleanAttribute], actionLabel: "actionLabel", actionIcon: "actionIcon", id: "id" }, outputs: { onActionClick: "onActionClick", onClose: "onClose" }, host: { attributes: { "data-testid": "monkey-toast" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "attr.id": "id", "id": "id", "class": "this.class", "animation": "this.animationState" } }, ngImport: i0, template: "<div class=\"monkey-toast-content\">\n @if (icon) {\n <monkey-icon [icon]=\"icon\" size=\"lg\"></monkey-icon>\n }\n <div>\n <div class=\"monkey-toast-message\">\n {{ message }}\n </div>\n @if (actionLabel) {\n <div class=\"monkey-toast-action\">\n <monkey-button\n class=\"monkey-toast-btn-action\"\n type=\"tertiary\"\n size=\"sm\"\n (click)=\"onActionClick.emit(id)\"\n >\n {{ actionLabel }}\n @if (actionIcon) {\n <monkey-icon [icon]=\"actionIcon\" size=\"xs\" first></monkey-icon>\n }\n </monkey-button>\n </div>\n }\n </div>\n</div>\n@if (isClosable) {\n <div class=\"monkey-toast-divider\"></div>\n <div class=\"monkey-toast-close\" (click)=\"close()\">\n <util-icon name=\"clear\" />\n </div>\n}\n", styles: ["monkey-toast{display:flex;align-items:start;min-width:300px;width:100%;gap:var(--mecx-spaces-medium);padding:var(--mecx-spaces-medium);box-shadow:0 8px 16px 0 var(--mecx-color-box-shadow);background-color:var(--mecx-color-gray-900);color:var(--mecx-color-white);border-radius:4px;max-width:450px;box-sizing:border-box;animation:fade-in .3s}monkey-toast.closed{animation:fade-out .1s}monkey-toast .monkey-toast-content{display:flex;gap:var(--mecx-spaces-xs);line-height:var(--mecx-lh-24);font-size:var(--mecx-fs-xxs);letter-spacing:.48px;flex-grow:1}monkey-toast .monkey-toast-action{margin:8px 0 0 -12px}monkey-toast .monkey-toast-action .monkey-toast-btn-action{margin:0!important}monkey-toast .monkey-toast-action .monkey-toast-btn-action .mecx-button{height:24px;color:var(--mecx-color-white)!important;outline-color:var(--mecx-color-white)}monkey-toast .monkey-toast-action .monkey-toast-btn-action .mecx-button .content{padding:12px 8px}monkey-toast .monkey-toast-action .monkey-toast-btn-action .mecx-button:hover{color:var(--mecx-color-white)!important}monkey-toast .monkey-toast-divider{width:1px;height:24px;opacity:.2;background-color:var(--mecx-color-white)}monkey-toast .monkey-toast-close{display:flex;align-items:center;justify-content:center;cursor:pointer}monkey-toast .monkey-toast-close svg *{fill:var(--mecx-color-white)!important}monkey-toast.success{background-color:var(--mecx-color-success-main)}monkey-toast.error{background-color:var(--mecx-color-error-700)}monkey-toast.question{background-color:var(--mecx-color-question-800)}monkey-toast.warning{background-color:var(--mecx-color-warning-main)}monkey-toast.warning .monkey-toast-divider{background-color:var(--mecx-color-gray-900)}monkey-toast.warning .monkey-toast-content{color:var(--mecx-color-gray-900)}monkey-toast.warning .monkey-toast-close svg *{fill:var(--mecx-color-gray-900)!important}monkey-toast.warning .monkey-toast-action .monkey-toast-btn-action .mecx-button{color:var(--mecx-color-gray-900)!important;outline-color:var(--mecx-color-gray-900)}monkey-toast.warning .monkey-toast-action .monkey-toast-btn-action .mecx-button:hover{color:var(--mecx-color-gray-900)!important}@keyframes fade-in{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes fade-out{to{transform:scale(.9);opacity:0}}\n"], dependencies: [{ kind: "component", type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["disabled", "color", "size", "type", "loading", "id"] }, { kind: "component", type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "size", "id"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
8487
8350
|
}
|
|
8488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToastComponent, decorators: [{
|
|
8489
8352
|
type: Component,
|
|
8490
8353
|
args: [{ selector: 'monkey-toast', imports: [MonkeyButtonComponent, MonkeyIconComponent, UtilIconComponent], encapsulation: ViewEncapsulation.None, host: {
|
|
8491
8354
|
'data-testid': 'monkey-toast',
|
|
@@ -8564,10 +8427,10 @@ class MonkeyToggleComponent {
|
|
|
8564
8427
|
this._checked = !this._checked;
|
|
8565
8428
|
}
|
|
8566
8429
|
}
|
|
8567
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8568
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
8430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8431
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyToggleComponent, isStandalone: true, selector: "monkey-toggle", inputs: { disabled: "disabled", size: "size", value: "value", id: "id" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "monkey-toggle" }, listeners: { "click": "onClick($event)" }, properties: { "attr.id": "id", "id": "id", "class.disabled": "this.disabled", "class": "this.size" } }, ngImport: i0, template: "<input type=\"checkbox\" [checked]=\"_checked\" />\n<div class=\"slider\" [ngClass]=\"{ checked: _checked }\"></div>\n", styles: [":host{position:relative;display:inline-block}:host input{display:none}:host.disabled{box-shadow:none;pointer-events:none;opacity:.2}:host.lg{width:88px;height:48px}:host.lg input:checked+.checked:before{left:calc(100% - 42px)}:host.lg .slider{position:absolute;cursor:pointer;inset:0;border-radius:34px;transition:all .4s ease;background-color:#f8fafb;border:2px solid #bdc1c7}:host.lg .slider:before{position:absolute;content:\"\";bottom:2px;transition:.4s;border-radius:50%;background-color:#1f2024;left:2px;height:40px;width:40px}:host.lg .slider.checked{background-color:#ebfff8;border:2px solid #00875a}:host.lg .slider.checked:before{background-color:#00875a}:host.md{width:72px;height:40px}:host.md input:checked+.checked:before{left:calc(100% - 34px)}:host.md .slider{position:absolute;cursor:pointer;inset:0;border-radius:34px;transition:all .4s ease;background-color:#f8fafb;border:2px solid #bdc1c7}:host.md .slider:before{position:absolute;content:\"\";bottom:2px;transition:.4s;border-radius:50%;background-color:#1f2024;left:2px;height:32px;width:32px}:host.md .slider.checked{background-color:#ebfff8;border:2px solid #00875a}:host.md .slider.checked:before{background-color:#00875a}:host.sm{width:56px;height:32px}:host.sm input:checked+.checked:before{left:calc(100% - 26px)}:host.sm .slider{position:absolute;cursor:pointer;inset:0;border-radius:34px;transition:all .4s ease;background-color:#f8fafb;border:2px solid #bdc1c7}:host.sm .slider:before{position:absolute;content:\"\";bottom:2px;transition:.4s;border-radius:50%;background-color:#1f2024;left:2px;height:24px;width:24px}:host.sm .slider.checked{background-color:#ebfff8;border:2px solid #00875a}:host.sm .slider.checked:before{background-color:#00875a}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
8569
8432
|
}
|
|
8570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToggleComponent, decorators: [{
|
|
8571
8434
|
type: Component,
|
|
8572
8435
|
args: [{ selector: 'monkey-toggle', imports: [CommonModule], host: {
|
|
8573
8436
|
'data-testid': 'monkey-toggle',
|
|
@@ -8611,10 +8474,10 @@ class MonkeyToggleLineButtonComponent {
|
|
|
8611
8474
|
this.disabled = false;
|
|
8612
8475
|
this.onChange = new EventEmitter();
|
|
8613
8476
|
}
|
|
8614
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8615
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
8477
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToggleLineButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8478
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyToggleLineButtonComponent, isStandalone: true, selector: "monkey-toggle-line-button", inputs: { disabled: "disabled" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<input\n type=\"radio\"\n [name]=\"name\"\n [id]=\"value + '-' + name\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n (change)=\"onChange.emit(this.value)\"\n/>\n<label [for]=\"value + '-' + name\">\n <ng-content></ng-content>\n</label>\n", styles: ["monkey-toggle-line-button{display:flex;width:100%}monkey-toggle-line-button input{display:none}monkey-toggle-line-button label{display:flex;box-sizing:border-box;gap:8px;background:unset;height:100%;width:100%;align-items:center;justify-content:center;letter-spacing:.03em;text-align:center;color:var(--mecx-color-gray-900);cursor:pointer;padding:4px 8px;border:2px solid var(--mecx-color-gray-400);transition:all .2s ease-in-out}monkey-toggle-line-button label monkey-icon{transition:all .2s ease-in-out}monkey-toggle-line-button input:disabled+label{color:var(--mecx-color-gray-400)!important;cursor:not-allowed!important}monkey-toggle-line-button input:disabled+label monkey-icon{color:var(--mecx-color-gray-400)!important}monkey-toggle-line-button input:checked+label[for*=true]{background-color:var(--mecx-color-success-main);color:#fff}monkey-toggle-line-button input:checked+label[for*=true] monkey-icon{color:#fff}monkey-toggle-line-button input:checked+label[for*=false]{background-color:var(--mecx-color-error-700);color:#fff}monkey-toggle-line-button input:checked+label[for*=false] monkey-icon{color:#fff}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
8616
8479
|
}
|
|
8617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToggleLineButtonComponent, decorators: [{
|
|
8618
8481
|
type: Component,
|
|
8619
8482
|
args: [{ selector: 'monkey-toggle-line-button', standalone: true, encapsulation: ViewEncapsulation.None, template: "<input\n type=\"radio\"\n [name]=\"name\"\n [id]=\"value + '-' + name\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n (change)=\"onChange.emit(this.value)\"\n/>\n<label [for]=\"value + '-' + name\">\n <ng-content></ng-content>\n</label>\n", styles: ["monkey-toggle-line-button{display:flex;width:100%}monkey-toggle-line-button input{display:none}monkey-toggle-line-button label{display:flex;box-sizing:border-box;gap:8px;background:unset;height:100%;width:100%;align-items:center;justify-content:center;letter-spacing:.03em;text-align:center;color:var(--mecx-color-gray-900);cursor:pointer;padding:4px 8px;border:2px solid var(--mecx-color-gray-400);transition:all .2s ease-in-out}monkey-toggle-line-button label monkey-icon{transition:all .2s ease-in-out}monkey-toggle-line-button input:disabled+label{color:var(--mecx-color-gray-400)!important;cursor:not-allowed!important}monkey-toggle-line-button input:disabled+label monkey-icon{color:var(--mecx-color-gray-400)!important}monkey-toggle-line-button input:checked+label[for*=true]{background-color:var(--mecx-color-success-main);color:#fff}monkey-toggle-line-button input:checked+label[for*=true] monkey-icon{color:#fff}monkey-toggle-line-button input:checked+label[for*=false]{background-color:var(--mecx-color-error-700);color:#fff}monkey-toggle-line-button input:checked+label[for*=false] monkey-icon{color:#fff}\n"] }]
|
|
8620
8483
|
}], propDecorators: { disabled: [{
|
|
@@ -8677,10 +8540,10 @@ class MonkeyToggleLineComponent {
|
|
|
8677
8540
|
ngOnDestroy() {
|
|
8678
8541
|
this.subscriptions.unsubscribe();
|
|
8679
8542
|
}
|
|
8680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8681
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
8543
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToggleLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8544
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyToggleLineComponent, isStandalone: true, selector: "monkey-toggle-line", inputs: { value: "value", name: "name", size: "size", disabled: ["disabled", "disabled", booleanAttribute], id: "id" }, outputs: { onChange: "onChange" }, host: { attributes: { "data-testid": "monkey-toggle-line" }, properties: { "attr.id": "id", "id": "id", "class": "this.class" } }, queries: [{ propertyName: "radioButtons", predicate: MonkeyToggleLineButtonComponent }], usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["monkey-toggle-line{display:inline-flex;min-width:250px}monkey-toggle-line :first-child label{border-radius:8px 0 0 8px;border-right:none!important}monkey-toggle-line :first-child label monkey-icon{color:var(--mecx-color-error-700)}monkey-toggle-line :last-child label{border-radius:0 8px 8px 0}monkey-toggle-line :last-child label monkey-icon{color:var(--mecx-color-success-main)}monkey-toggle-line.lg{min-height:48px}monkey-toggle-line.lg label{font-size:16px}monkey-toggle-line.md{min-height:40px}monkey-toggle-line.md label{font-size:14px}monkey-toggle-line.sm{min-height:32px}monkey-toggle-line.sm label{font-size:14px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
8682
8545
|
}
|
|
8683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyToggleLineComponent, decorators: [{
|
|
8684
8547
|
type: Component,
|
|
8685
8548
|
args: [{ selector: 'monkey-toggle-line', imports: [CommonModule], encapsulation: ViewEncapsulation.None, host: {
|
|
8686
8549
|
'data-testid': 'monkey-toggle-line',
|
|
@@ -8741,10 +8604,10 @@ class MonkeyTooltipComponent {
|
|
|
8741
8604
|
this.afterClose.emit(true);
|
|
8742
8605
|
}
|
|
8743
8606
|
}
|
|
8744
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8745
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8607
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8608
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MonkeyTooltipComponent, isStandalone: true, selector: "monkey-tooltip", inputs: { text: "text", template: "template", left: "left", top: "top", id: "id" }, outputs: { afterClose: "afterClose" }, host: { attributes: { "data-testid": "monkey-tooltip" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "style.left.px": "left", "style.top.px": "top", "attr.id": "id", "id": "id" } }, ngImport: i0, template: "@if (template) {\n <ng-container *ngTemplateOutlet=\"template\"> </ng-container>\n}\n@if (text) {\n {{ text }}\n}\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;box-shadow:0 8px 16px 0 var(--mecx-color-box-shadow);background-color:var(--mecx-color-gray-900);padding:var(--mecx-spaces-xs) var(--mecx-spaces-small);flex-wrap:wrap;text-align:center;color:var(--mecx-color-white);font-size:14px;letter-spacing:.42px;line-height:16px;position:absolute;pointer-events:none;cursor:none;word-break:normal;overflow-wrap:anywhere;min-width:50px;max-width:200px;box-sizing:border-box;overflow:hidden;animation:fade-in .3s}:host.closed{animation:fade-out .1s}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{to{opacity:0}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
8746
8609
|
}
|
|
8747
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTooltipComponent, decorators: [{
|
|
8748
8611
|
type: Component,
|
|
8749
8612
|
args: [{ selector: 'monkey-tooltip', imports: [NgTemplateOutlet], host: {
|
|
8750
8613
|
'data-testid': 'monkey-tooltip',
|
|
@@ -8926,10 +8789,10 @@ class MonkeyTooltipDirective {
|
|
|
8926
8789
|
onScroll() {
|
|
8927
8790
|
this.hide();
|
|
8928
8791
|
}
|
|
8929
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8930
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
8792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTooltipDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.ApplicationRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8793
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.15", type: MonkeyTooltipDirective, isStandalone: true, selector: "[monkeyTooltip]", inputs: { tooltipText: ["monkeyTooltip", "tooltipText"], tooltipPosition: "tooltipPosition", enabled: ["enabled", "enabled", booleanAttribute] }, host: { listeners: { "mouseenter": "show()", "mouseleave": "hide()", "click": "hide()", "window:scroll": "onScroll()", "window:resize": "onScroll()" } }, ngImport: i0 }); }
|
|
8931
8794
|
}
|
|
8932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyTooltipDirective, decorators: [{
|
|
8933
8796
|
type: Directive,
|
|
8934
8797
|
args: [{
|
|
8935
8798
|
selector: '[monkeyTooltip]',
|
|
@@ -8994,8 +8857,8 @@ class MonkeyUserProfileButtonComponent {
|
|
|
8994
8857
|
event.preventDefault();
|
|
8995
8858
|
this.open = true;
|
|
8996
8859
|
}
|
|
8997
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8998
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
8860
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyUserProfileButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8861
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyUserProfileButtonComponent, isStandalone: true, selector: "monkey-user-profile-button", inputs: { size: "size", name: "name", iconName: "iconName", id: "id" }, host: { attributes: { "data-testid": "monkey-user-profile-button" }, listeners: { "click": "onClick($event)" }, properties: { "attr.id": "id", "id": "id", "class.open": "open", "class": "this.size" } }, ngImport: i0, template: `
|
|
8999
8862
|
<monkey-avatar [size]="size" [src]="iconName ? { iconName } : { name }" />
|
|
9000
8863
|
<div class="lh-24 text-truncate flex-grow-1 fs-xxs text-gray-900">
|
|
9001
8864
|
{{ name }}
|
|
@@ -9013,11 +8876,11 @@ class MonkeyUserProfileButtonComponent {
|
|
|
9013
8876
|
<ng-content />
|
|
9014
8877
|
</div>
|
|
9015
8878
|
</ng-template>
|
|
9016
|
-
`, isInline: true, styles: ["monkey-user-profile-button{padding:4px;background:var(--mecx-color-gray-100);border-radius:8px;max-width:140px;cursor:pointer;display:inline-flex;gap:4px;align-items:center}monkey-user-profile-button.open .arrow{transform:rotate(180deg)}monkey-user-profile-button monkey-avatar{background-color:var(--mecx-color-white)}monkey-user-profile-button.sm{max-width:150px}monkey-user-profile-button.md{border-radius:12px;max-width:160px}monkey-user-profile-button.lg{border-radius:16px;max-width:170px}monkey-user-profile-button .menu{min-width:150px}monkey-user-profile-button monkey-button span{text-decoration:none}\n"], dependencies: [{ kind: "component", type: MonkeyAvatarComponent, selector: "monkey-avatar", inputs: ["size", "src", "id"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "
|
|
8879
|
+
`, isInline: true, styles: ["monkey-user-profile-button{padding:4px;background:var(--mecx-color-gray-100);border-radius:8px;max-width:140px;cursor:pointer;display:inline-flex;gap:4px;align-items:center}monkey-user-profile-button.open .arrow{transform:rotate(180deg)}monkey-user-profile-button monkey-avatar{background-color:var(--mecx-color-white)}monkey-user-profile-button.sm{max-width:150px}monkey-user-profile-button.md{border-radius:12px;max-width:160px}monkey-user-profile-button.lg{border-radius:16px;max-width:170px}monkey-user-profile-button .menu{min-width:150px}monkey-user-profile-button monkey-button span{text-decoration:none}\n"], dependencies: [{ kind: "component", type: MonkeyAvatarComponent, selector: "monkey-avatar", inputs: ["size", "src", "id"] }, { kind: "component", type: UtilIconComponent, selector: "util-icon", inputs: ["name"] }, { kind: "directive", type: MonkeyPopoverDirective, selector: "[monkeyPopover]", inputs: ["monkeyPopover", "monkeyPopoverClosed", "monkeyPopoverTarget", "monkeyPopoverMinwidth", "monkeyPopoverBackdrop", "monkeyPopoverWatch", "monkeyPopoverDir", "monkeyPopoverContextmenu", "monkeyPopoverHeight", "monkeyPopoverTitle", "monkeyPopoverActions", "monkeyPopoverHideClose", "monkeyPopoverHideHeader", "monkeyPopoverHideActions", "monkeyPopoverEnableAutofocus"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9017
8880
|
}
|
|
9018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyUserProfileButtonComponent, decorators: [{
|
|
9019
8882
|
type: Component,
|
|
9020
|
-
args: [{ encapsulation: ViewEncapsulation.None, imports: [MonkeyAvatarComponent, UtilIconComponent,
|
|
8883
|
+
args: [{ encapsulation: ViewEncapsulation.None, imports: [MonkeyAvatarComponent, UtilIconComponent, MonkeyPopoverDirective], selector: 'monkey-user-profile-button', template: `
|
|
9021
8884
|
<monkey-avatar [size]="size" [src]="iconName ? { iconName } : { name }" />
|
|
9022
8885
|
<div class="lh-24 text-truncate flex-grow-1 fs-xxs text-gray-900">
|
|
9023
8886
|
{{ name }}
|
|
@@ -9070,6 +8933,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
9070
8933
|
* MIT Licence
|
|
9071
8934
|
************************* */
|
|
9072
8935
|
|
|
8936
|
+
/** ************************
|
|
8937
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
8938
|
+
* This style guide was developed by Monkey Exchange Team
|
|
8939
|
+
* MIT Licence
|
|
8940
|
+
************************* */
|
|
8941
|
+
class MonkeyBadgeDirective {
|
|
8942
|
+
constructor(el, renderer) {
|
|
8943
|
+
this.el = el;
|
|
8944
|
+
this.renderer = renderer;
|
|
8945
|
+
this.badgePosition = 'right';
|
|
8946
|
+
this.badgeSize = 'md';
|
|
8947
|
+
this.badgeHidden = false;
|
|
8948
|
+
this.monkeyBadge = '';
|
|
8949
|
+
this.badgeBackground = null;
|
|
8950
|
+
this.badgeColor = null;
|
|
8951
|
+
this.badgeEl = null;
|
|
8952
|
+
// not to do
|
|
8953
|
+
}
|
|
8954
|
+
ngOnChanges() {
|
|
8955
|
+
const { badgeHidden, badgeEl, renderer, el } = this;
|
|
8956
|
+
if (badgeHidden) {
|
|
8957
|
+
this.removeBadge();
|
|
8958
|
+
return;
|
|
8959
|
+
}
|
|
8960
|
+
if (!badgeEl) {
|
|
8961
|
+
this.badgeEl = renderer.createElement('span');
|
|
8962
|
+
renderer.setStyle(el.nativeElement, 'position', 'relative');
|
|
8963
|
+
renderer.appendChild(el.nativeElement, this.badgeEl);
|
|
8964
|
+
}
|
|
8965
|
+
this.updateBadge();
|
|
8966
|
+
}
|
|
8967
|
+
updateBadge() {
|
|
8968
|
+
const { badgeEl, renderer, monkeyBadge, badgeSize, badgeColor, badgePosition, badgeBackground } = this;
|
|
8969
|
+
renderer.addClass(badgeEl, 'monkey-badge');
|
|
8970
|
+
renderer.addClass(badgeEl, `monkey-badge-${badgeSize}`);
|
|
8971
|
+
renderer.addClass(badgeEl, `monkey-badge-${badgePosition}`);
|
|
8972
|
+
renderer.setAttribute(badgeEl, 'style', `
|
|
8973
|
+
--badge-background: ${badgeBackground ?? 'unset'};
|
|
8974
|
+
--badge-color: ${badgeColor ?? 'unset'}
|
|
8975
|
+
`);
|
|
8976
|
+
this.renderer.setProperty(this.badgeEl, 'textContent', monkeyBadge);
|
|
8977
|
+
}
|
|
8978
|
+
removeBadge() {
|
|
8979
|
+
const { renderer, el, badgeEl } = this;
|
|
8980
|
+
if (!el.nativeElement || !badgeEl)
|
|
8981
|
+
return;
|
|
8982
|
+
renderer.removeChild(el.nativeElement, badgeEl);
|
|
8983
|
+
renderer.removeStyle(el.nativeElement, 'position');
|
|
8984
|
+
this.badgeEl = null;
|
|
8985
|
+
}
|
|
8986
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyBadgeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8987
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: MonkeyBadgeDirective, isStandalone: true, selector: "[monkeyBadge]", inputs: { badgePosition: "badgePosition", badgeSize: "badgeSize", badgeHidden: "badgeHidden", monkeyBadge: "monkeyBadge", badgeBackground: "badgeBackground", badgeColor: "badgeColor" }, usesOnChanges: true, ngImport: i0 }); }
|
|
8988
|
+
}
|
|
8989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MonkeyBadgeDirective, decorators: [{
|
|
8990
|
+
type: Directive,
|
|
8991
|
+
args: [{
|
|
8992
|
+
selector: '[monkeyBadge]'
|
|
8993
|
+
}]
|
|
8994
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { badgePosition: [{
|
|
8995
|
+
type: Input
|
|
8996
|
+
}], badgeSize: [{
|
|
8997
|
+
type: Input
|
|
8998
|
+
}], badgeHidden: [{
|
|
8999
|
+
type: Input
|
|
9000
|
+
}], monkeyBadge: [{
|
|
9001
|
+
type: Input
|
|
9002
|
+
}], badgeBackground: [{
|
|
9003
|
+
type: Input
|
|
9004
|
+
}], badgeColor: [{
|
|
9005
|
+
type: Input
|
|
9006
|
+
}] } });
|
|
9007
|
+
|
|
9073
9008
|
/** ************************
|
|
9074
9009
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
9075
9010
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -9080,5 +9015,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
9080
9015
|
* Generated bundle index. Do not edit.
|
|
9081
9016
|
*/
|
|
9082
9017
|
|
|
9083
|
-
export { MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyColumnChecked, MonkeyColumnExpansible, MonkeyColumnSortable, MonkeyColumnStick, MonkeyDateRangeComponent, MonkeyDictionaryService,
|
|
9018
|
+
export { MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyColumnChecked, MonkeyColumnExpansible, MonkeyColumnSortable, MonkeyColumnStick, MonkeyDateRangeComponent, MonkeyDictionaryService, MonkeyDisplayDirective, MonkeyDividerComponent, MonkeyDownloadButtonComponent, MonkeyEcxAddressService, MonkeyErrorDirective, MonkeyFilterBarComponent, MonkeyFormFieldComponent, MonkeyFormFieldControl, MonkeyFormFieldModule, MonkeyHelperDirective, MonkeyIconButtonComponent, MonkeyIconComponent, MonkeyInfoDirective, MonkeyInputCodeComponent, MonkeyInputCurrencyDirective, MonkeyInputDateRangeComponent, MonkeyInputDirective, MonkeyInputModule, MonkeyInputPhoneComponent, MonkeyInputUploadComponent, MonkeyLabelDirective, MonkeyModalActionsDirective, MonkeyModalComponent, MonkeyModalConfig, MonkeyModalContentDirective, MonkeyModalModule, MonkeyModalRef, MonkeyModalService, MonkeyModalSubtitleDirective, MonkeyModalTitleDirective, MonkeyOptionComponent, MonkeyPaginationActionComponent, MonkeyPaginationLabelComponent, MonkeyPaginationSizeComponent, MonkeyPopoverContentComponent, MonkeyPopoverDirective, MonkeyPrefixDirective, MonkeyRadioButtonComponent, MonkeySecurityLevelComponent, MonkeySelectComponent, MonkeyStatusComponent, MonkeyStepComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStepperService, MonkeySuffixDirective, MonkeyTabComponent, MonkeyTabLinkDirective, MonkeyTableComponent, MonkeyTableModule, MonkeyTabsComponent, MonkeyTabsModule, MonkeyToastComponent, MonkeyToastRef, MonkeyToastService, MonkeyToggleComponent, MonkeyToggleLineButtonComponent, MonkeyToggleLineComponent, MonkeyTooltipComponent, MonkeyTooltipDirective, MonkeyUserProfileButtonComponent, getCurrencySymbol, injectTokenWithWarning };
|
|
9084
9019
|
//# sourceMappingURL=monkey-style-guide-v2.mjs.map
|