@acorex/components 7.17.21 → 7.17.23
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/check-box/lib/check-box.component.d.ts +3 -3
- package/common/lib/classes/components.class.d.ts +11 -0
- package/common/lib/components/value-component.class.d.ts +10 -4
- package/data-table/lib/data-table.component.d.ts +1 -1
- package/datetime-box/lib/datetime-box.component.d.ts +1 -1
- package/esm2022/calendar/lib/calendar-range.component.mjs +1 -2
- package/esm2022/calendar/lib/calendar.component.mjs +10 -2
- package/esm2022/check-box/lib/check-box.component.mjs +9 -4
- package/esm2022/color-palette/lib/color-palette.component.mjs +4 -2
- package/esm2022/common/lib/classes/components.class.mjs +1 -1
- package/esm2022/common/lib/components/value-component.class.mjs +38 -65
- package/esm2022/data-pager/lib/data-pager.component.mjs +1 -2
- package/esm2022/data-table/lib/data-table.component.mjs +6 -4
- package/esm2022/datetime-box/lib/datetime-box.component.mjs +5 -4
- package/esm2022/dialog/lib/dialog.module.mjs +4 -4
- package/esm2022/form/index.mjs +2 -3
- package/esm2022/form/lib/form-field.component.mjs +34 -6
- package/esm2022/form/lib/form.component.mjs +44 -86
- package/esm2022/form/lib/form.config.mjs +3 -23
- package/esm2022/form/lib/form.module.mjs +9 -8
- package/esm2022/form/lib/validation-rule.directive.mjs +33 -0
- package/esm2022/form/lib/validation-summary.component.mjs +19 -13
- package/esm2022/label/lib/label.component.mjs +21 -10
- package/esm2022/number-box/lib/number-box.component.mjs +8 -3
- package/esm2022/otp/lib/otp.component.mjs +1 -1
- package/esm2022/password-box/lib/password-box.component.mjs +4 -2
- package/esm2022/radio/lib/radio.component.mjs +2 -2
- package/esm2022/select-box/lib/select-box.component.mjs +1 -2
- package/esm2022/selection-list/lib/selection-list.component.mjs +8 -8
- package/fesm2022/acorex-components-calendar.mjs +9 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +8 -3
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +3 -1
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +36 -63
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +0 -1
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +4 -2
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +4 -3
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +3 -3
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +135 -250
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +19 -8
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +7 -2
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +3 -1
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +1 -1
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +0 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +6 -6
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/form/index.d.ts +1 -2
- package/form/lib/form-field.component.d.ts +8 -2
- package/form/lib/form.component.d.ts +9 -13
- package/form/lib/form.config.d.ts +0 -10
- package/form/lib/form.module.d.ts +3 -2
- package/form/lib/validation-rule.directive.d.ts +16 -0
- package/form/lib/validation-summary.component.d.ts +8 -5
- package/label/lib/label.component.d.ts +6 -6
- package/package.json +1 -1
- package/selection-list/lib/selection-list.component.d.ts +2 -2
- package/esm2022/form/lib/validation-rule.widget.mjs +0 -124
- package/esm2022/form/lib/validation.class.mjs +0 -2
- package/form/lib/validation-rule.widget.d.ts +0 -23
- package/form/lib/validation.class.d.ts +0 -18
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9mb3JtL3NyYy9saWIvdmFsaWRhdGlvbi5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgQVhWYWxpZGF0aW9uUnVsZVR5cGVzID0gJ3JlcXVpcmVkJyB8ICdyZWdleCcgfCAnY2FsbGJhY2snIHwgJ2N1c3RvbSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhWYWxpZGF0aW9uUnVsZSB7XG4gIG1lc3NhZ2U/OiBzdHJpbmc7XG4gIHJ1bGU6IEFYVmFsaWRhdGlvblJ1bGVUeXBlcztcbiAgdmFsdWU/OiBhbnk7XG4gIGVuYWJsZWQ/OiBib29sZWFuO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFYVmFsaWRhdGlvblJ1bGVSZXN1bHQge1xuICBtZXNzYWdlPzogc3RyaW5nO1xuICBuYW1lPzogc3RyaW5nO1xuICByZXN1bHQ6IGJvb2xlYW47XG4gIHZhbHVlPzogYW55O1xuICBpZD86IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBWEZvcm1WYWxpZGF0aW9uUmVzdWx0IHtcbiAgcmVzdWx0OiBib29sZWFuO1xuICBpdGVtcz86IEFYVmFsaWRhdGlvblJ1bGVSZXN1bHRbXTtcbn1cbiJdfQ==
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { AXValuableComponent, MXBaseComponent } from '@acorex/components/common';
|
2
|
-
import { OnInit } from '@angular/core';
|
3
|
-
import { AXValidationRule, AXValidationRuleResult, AXValidationRuleTypes } from './validation.class';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export declare class AXValidationRuleComponent extends MXBaseComponent implements AXValidationRule, OnInit {
|
6
|
-
private control;
|
7
|
-
private _config;
|
8
|
-
rule: AXValidationRuleTypes;
|
9
|
-
message: string;
|
10
|
-
showMessage: boolean;
|
11
|
-
value: any;
|
12
|
-
enabled: boolean;
|
13
|
-
ngOnInit(): void;
|
14
|
-
/**
|
15
|
-
* @ignore
|
16
|
-
*/
|
17
|
-
constructor(control: AXValuableComponent);
|
18
|
-
validate(value: any): Promise<AXValidationRuleResult>;
|
19
|
-
private _internalValidate;
|
20
|
-
private _isNullOrEmpty;
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationRuleComponent, [{ optional: true; }]>;
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXValidationRuleComponent, "ax-validation-rule", never, { "rule": { "alias": "rule"; "required": false; }; "message": { "alias": "message"; "required": false; }; "showMessage": { "alias": "showMessage"; "required": false; }; "value": { "alias": "value"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; }, {}, never, never, false, never>;
|
23
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export type AXValidationRuleTypes = 'required' | 'regex' | 'callback' | 'custom';
|
2
|
-
export interface AXValidationRule {
|
3
|
-
message?: string;
|
4
|
-
rule: AXValidationRuleTypes;
|
5
|
-
value?: any;
|
6
|
-
enabled?: boolean;
|
7
|
-
}
|
8
|
-
export interface AXValidationRuleResult {
|
9
|
-
message?: string;
|
10
|
-
name?: string;
|
11
|
-
result: boolean;
|
12
|
-
value?: any;
|
13
|
-
id?: string;
|
14
|
-
}
|
15
|
-
export interface AXFormValidationResult {
|
16
|
-
result: boolean;
|
17
|
-
items?: AXValidationRuleResult[];
|
18
|
-
}
|