myrta-ui 1.1.19 → 1.1.21
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/esm2020/lib/components/form/formula-editor/formula-editor.component.mjs +164 -0
- package/esm2020/lib/components/form/formula-editor/formula-editor.module.mjs +50 -0
- package/esm2020/lib/components/form/input-tel/input-tel.component.mjs +2 -1
- package/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +7 -2
- package/esm2020/lib/services/mrx-form-validator/validations/callback.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/email.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/max-length.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/max-value.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/min-length.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/min-value.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/pattern.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/required.validation.mjs +2 -2
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/myrta-ui.mjs +218 -11
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +214 -11
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/lib/components/form/formula-editor/formula-editor.component.d.ts +32 -0
- package/lib/components/form/formula-editor/formula-editor.module.d.ts +14 -0
- package/lib/services/mrx-form-validator/validations/callback.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/email.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/max-length.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/max-value.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/min-length.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/min-value.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/pattern.validation.d.ts +1 -1
- package/lib/services/mrx-form-validator/validations/required.validation.d.ts +1 -1
- package/package.json +4 -2
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormulaEditorComponent implements AfterViewInit, ControlValueAccessor, OnDestroy {
|
|
6
|
+
private document;
|
|
7
|
+
private sanitizer;
|
|
8
|
+
_whitelist: string[];
|
|
9
|
+
private _tagify;
|
|
10
|
+
value: string;
|
|
11
|
+
isFocused: boolean;
|
|
12
|
+
selectionStart: number | undefined;
|
|
13
|
+
selectionEnd: number | undefined;
|
|
14
|
+
getSanitizedValue(): string;
|
|
15
|
+
inputElement: ElementRef<HTMLInputElement>;
|
|
16
|
+
constructor(document: Document, sanitizer: DomSanitizer);
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
registerOnChange(fn: any): void;
|
|
20
|
+
registerOnTouched(fn: any): void;
|
|
21
|
+
writeValue(obj: any): void;
|
|
22
|
+
onInput(event: Event): void;
|
|
23
|
+
onBlur(event: FocusEvent): void;
|
|
24
|
+
transformValue(array: string[]): void;
|
|
25
|
+
updateValue(array: string[]): void;
|
|
26
|
+
updateSelection(event: any): void;
|
|
27
|
+
onFocus(event: FocusEvent): void;
|
|
28
|
+
insertTag(row: string): void;
|
|
29
|
+
onSelectionChange(event: Event): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormulaEditorComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormulaEditorComponent, "mrx-formula-editor", never, {}, {}, never, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./formula-editor.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../chars-left/chars-left.module";
|
|
5
|
+
import * as i4 from "../../error-message/error-message.module";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "ngx-mask";
|
|
8
|
+
import * as i7 from "../../save-state/save-state.module";
|
|
9
|
+
import * as i8 from "../../../pipes/safe/safe.module";
|
|
10
|
+
export declare class FormulaEditorModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormulaEditorModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormulaEditorModule, [typeof i1.FormulaEditorComponent], [typeof i2.CommonModule, typeof i3.CharsLeftModule, typeof i4.ErrorMessageModule, typeof i5.FormsModule, typeof i6.NgxMaskModule, typeof i7.SaveStateModule, typeof i8.SafeModule], [typeof i1.FormulaEditorComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormulaEditorModule>;
|
|
14
|
+
}
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const callbackValidation: (value: string, validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const emailValidation: (value: string, validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const maxLengthValidation: (value: string | string[], validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const maxValueValidation: (value: string, validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const minLengthValidation: (value: string, validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const minValueValidation: (value: string, validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
|
2
2
|
import { IMessages, ValidationsType } from '../models/validations-options.model';
|
|
3
3
|
export declare const patternValidation: (value: string, validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { IMessages, ValidationsType } from '../models/validations-options.model'
|
|
|
2
2
|
import { ValidationTypesEnum } from '../models/validations-types.model';
|
|
3
3
|
export declare const requiredValidation: (value: string | string[], validations: ValidationsType, key: ValidationTypesEnum, invalidMessages: IMessages) => {
|
|
4
4
|
isValid: boolean;
|
|
5
|
-
message: string;
|
|
5
|
+
message: string | null;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myrta-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^13.3.0",
|
|
6
6
|
"@angular/core": "^13.3.0",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"uuid": "^8.3.2",
|
|
22
22
|
"@popperjs/core": "^2.11.5",
|
|
23
|
-
"mrx-gallery-lib": "^1.0.2"
|
|
23
|
+
"mrx-gallery-lib": "^1.0.2",
|
|
24
|
+
"@yaireo/tagify": "^4.31.3"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@angular/cdk": "13.3.9",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"uuid": "^8.3.2",
|
|
41
42
|
"@popperjs/core": "^2.11.5",
|
|
42
43
|
"mrx-gallery-lib": "^1.0.2",
|
|
44
|
+
"@yaireo/tagify": "^4.31.3",
|
|
43
45
|
"tslib": "^2.3.0"
|
|
44
46
|
},
|
|
45
47
|
"module": "fesm2015/myrta-ui.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -177,3 +177,6 @@ export * from './lib/components/form/input-tel/input-tel.component';
|
|
|
177
177
|
export * from './lib/components/form/input-tel/enums/input-phone.enum';
|
|
178
178
|
export * from './lib/components/form/input-tel/data/all-countries';
|
|
179
179
|
export * from './lib/components/form/input-tel/data/country-iso.enum';
|
|
180
|
+
export * from './lib/components/form/input-tel/data/countries-rus-label.enum';
|
|
181
|
+
export * from './lib/components/form/formula-editor/formula-editor.module';
|
|
182
|
+
export * from './lib/components/form/formula-editor/formula-editor.component';
|