@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.
Files changed (74) hide show
  1. package/check-box/lib/check-box.component.d.ts +3 -3
  2. package/common/lib/classes/components.class.d.ts +11 -0
  3. package/common/lib/components/value-component.class.d.ts +10 -4
  4. package/data-table/lib/data-table.component.d.ts +1 -1
  5. package/datetime-box/lib/datetime-box.component.d.ts +1 -1
  6. package/esm2022/calendar/lib/calendar-range.component.mjs +1 -2
  7. package/esm2022/calendar/lib/calendar.component.mjs +10 -2
  8. package/esm2022/check-box/lib/check-box.component.mjs +9 -4
  9. package/esm2022/color-palette/lib/color-palette.component.mjs +4 -2
  10. package/esm2022/common/lib/classes/components.class.mjs +1 -1
  11. package/esm2022/common/lib/components/value-component.class.mjs +38 -65
  12. package/esm2022/data-pager/lib/data-pager.component.mjs +1 -2
  13. package/esm2022/data-table/lib/data-table.component.mjs +6 -4
  14. package/esm2022/datetime-box/lib/datetime-box.component.mjs +5 -4
  15. package/esm2022/dialog/lib/dialog.module.mjs +4 -4
  16. package/esm2022/form/index.mjs +2 -3
  17. package/esm2022/form/lib/form-field.component.mjs +34 -6
  18. package/esm2022/form/lib/form.component.mjs +44 -86
  19. package/esm2022/form/lib/form.config.mjs +3 -23
  20. package/esm2022/form/lib/form.module.mjs +9 -8
  21. package/esm2022/form/lib/validation-rule.directive.mjs +33 -0
  22. package/esm2022/form/lib/validation-summary.component.mjs +19 -13
  23. package/esm2022/label/lib/label.component.mjs +21 -10
  24. package/esm2022/number-box/lib/number-box.component.mjs +8 -3
  25. package/esm2022/otp/lib/otp.component.mjs +1 -1
  26. package/esm2022/password-box/lib/password-box.component.mjs +4 -2
  27. package/esm2022/radio/lib/radio.component.mjs +2 -2
  28. package/esm2022/select-box/lib/select-box.component.mjs +1 -2
  29. package/esm2022/selection-list/lib/selection-list.component.mjs +8 -8
  30. package/fesm2022/acorex-components-calendar.mjs +9 -2
  31. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  32. package/fesm2022/acorex-components-check-box.mjs +8 -3
  33. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  34. package/fesm2022/acorex-components-color-palette.mjs +3 -1
  35. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  36. package/fesm2022/acorex-components-common.mjs +36 -63
  37. package/fesm2022/acorex-components-common.mjs.map +1 -1
  38. package/fesm2022/acorex-components-data-pager.mjs +0 -1
  39. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  40. package/fesm2022/acorex-components-data-table.mjs +4 -2
  41. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  42. package/fesm2022/acorex-components-datetime-box.mjs +4 -3
  43. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  44. package/fesm2022/acorex-components-dialog.mjs +3 -3
  45. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  46. package/fesm2022/acorex-components-form.mjs +135 -250
  47. package/fesm2022/acorex-components-form.mjs.map +1 -1
  48. package/fesm2022/acorex-components-label.mjs +19 -8
  49. package/fesm2022/acorex-components-label.mjs.map +1 -1
  50. package/fesm2022/acorex-components-number-box.mjs +7 -2
  51. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  52. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  53. package/fesm2022/acorex-components-password-box.mjs +3 -1
  54. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  55. package/fesm2022/acorex-components-radio.mjs +1 -1
  56. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  57. package/fesm2022/acorex-components-select-box.mjs +0 -1
  58. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  59. package/fesm2022/acorex-components-selection-list.mjs +6 -6
  60. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  61. package/form/index.d.ts +1 -2
  62. package/form/lib/form-field.component.d.ts +8 -2
  63. package/form/lib/form.component.d.ts +9 -13
  64. package/form/lib/form.config.d.ts +0 -10
  65. package/form/lib/form.module.d.ts +3 -2
  66. package/form/lib/validation-rule.directive.d.ts +16 -0
  67. package/form/lib/validation-summary.component.d.ts +8 -5
  68. package/label/lib/label.component.d.ts +6 -6
  69. package/package.json +1 -1
  70. package/selection-list/lib/selection-list.component.d.ts +2 -2
  71. package/esm2022/form/lib/validation-rule.widget.mjs +0 -124
  72. package/esm2022/form/lib/validation.class.mjs +0 -2
  73. package/form/lib/validation-rule.widget.d.ts +0 -23
  74. 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
- }