@acorex/components 18.14.1-next.0 → 18.14.1-next.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. package/calendar/lib/calendar.component.d.ts +16 -5
  2. package/calendar/lib/calendar.module.d.ts +2 -1
  3. package/check-box/lib/check-box.component.d.ts +13 -5
  4. package/cron-job/README.md +3 -0
  5. package/cron-job/index.d.ts +8 -0
  6. package/cron-job/lib/cron-job-container/cron-job-container.component.d.ts +31 -0
  7. package/cron-job/lib/cron-job.module.d.ts +25 -0
  8. package/cron-job/lib/cron-job.service.d.ts +22 -0
  9. package/cron-job/lib/day/day.component.d.ts +22 -0
  10. package/cron-job/lib/day/day.model.d.ts +61 -0
  11. package/cron-job/lib/day/day.service.d.ts +17 -0
  12. package/cron-job/lib/hours/hours.component.d.ts +14 -0
  13. package/cron-job/lib/hours/hours.model.d.ts +5 -0
  14. package/cron-job/lib/hours/hours.service.d.ts +13 -0
  15. package/cron-job/lib/minutes/minutes.component.d.ts +14 -0
  16. package/cron-job/lib/minutes/minutes.model.d.ts +5 -0
  17. package/cron-job/lib/minutes/minutes.service.d.ts +13 -0
  18. package/cron-job/lib/month/month.component.d.ts +16 -0
  19. package/cron-job/lib/month/month.model.d.ts +5 -0
  20. package/cron-job/lib/month/month.service.d.ts +14 -0
  21. package/cron-job/lib/seconds/seconds.component.d.ts +14 -0
  22. package/cron-job/lib/seconds/seconds.model.d.ts +5 -0
  23. package/cron-job/lib/seconds/seconds.service.d.ts +13 -0
  24. package/cron-job/lib/types/iexpression.d.ts +3 -0
  25. package/cron-job/lib/types/shared.model.d.ts +37 -0
  26. package/cron-job/lib/year/year.component.d.ts +15 -0
  27. package/cron-job/lib/year/year.model.d.ts +16 -0
  28. package/cron-job/lib/year/year.service.d.ts +12 -0
  29. package/datetime-input/lib/datetime-input.component.d.ts +9 -0
  30. package/datetime-picker/lib/datetime-picker.component.d.ts +1 -0
  31. package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +2 -2
  32. package/esm2022/calendar/lib/calendar.component.mjs +186 -158
  33. package/esm2022/calendar/lib/calendar.module.mjs +5 -4
  34. package/esm2022/check-box/lib/check-box.component.mjs +39 -22
  35. package/esm2022/cron-job/acorex-components-cron-job.mjs +5 -0
  36. package/esm2022/cron-job/index.mjs +9 -0
  37. package/esm2022/cron-job/lib/cron-job-container/cron-job-container.component.mjs +90 -0
  38. package/esm2022/cron-job/lib/cron-job.module.mjs +80 -0
  39. package/esm2022/cron-job/lib/cron-job.service.mjs +60 -0
  40. package/esm2022/cron-job/lib/day/day.component.mjs +61 -0
  41. package/esm2022/cron-job/lib/day/day.model.mjs +88 -0
  42. package/esm2022/cron-job/lib/day/day.service.mjs +196 -0
  43. package/esm2022/cron-job/lib/hours/hours.component.mjs +38 -0
  44. package/esm2022/cron-job/lib/hours/hours.model.mjs +8 -0
  45. package/esm2022/cron-job/lib/hours/hours.service.mjs +82 -0
  46. package/esm2022/cron-job/lib/minutes/minutes.component.mjs +38 -0
  47. package/esm2022/cron-job/lib/minutes/minutes.model.mjs +8 -0
  48. package/esm2022/cron-job/lib/minutes/minutes.service.mjs +82 -0
  49. package/esm2022/cron-job/lib/month/month.component.mjs +47 -0
  50. package/esm2022/cron-job/lib/month/month.model.mjs +8 -0
  51. package/esm2022/cron-job/lib/month/month.service.mjs +96 -0
  52. package/esm2022/cron-job/lib/seconds/seconds.component.mjs +38 -0
  53. package/esm2022/cron-job/lib/seconds/seconds.model.mjs +8 -0
  54. package/esm2022/cron-job/lib/seconds/seconds.service.mjs +82 -0
  55. package/esm2022/cron-job/lib/types/iexpression.mjs +2 -0
  56. package/esm2022/cron-job/lib/types/shared.model.mjs +49 -0
  57. package/esm2022/cron-job/lib/year/year.component.mjs +45 -0
  58. package/esm2022/cron-job/lib/year/year.model.mjs +28 -0
  59. package/esm2022/cron-job/lib/year/year.service.mjs +82 -0
  60. package/esm2022/datetime-input/lib/datetime-input.component.mjs +38 -10
  61. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +17 -4
  62. package/esm2022/list/lib/list.component.mjs +3 -3
  63. package/esm2022/loading/lib/loading.component.mjs +7 -3
  64. package/esm2022/loading/lib/loading.service.mjs +2 -2
  65. package/esm2022/radio/lib/radio.component.mjs +3 -3
  66. package/esm2022/selection-list/lib/selection-list.component.mjs +70 -28
  67. package/esm2022/text-box/lib/text-box.component.mjs +11 -8
  68. package/fesm2022/acorex-components-action-sheet.mjs +1 -1
  69. package/fesm2022/acorex-components-alert.mjs +1 -1
  70. package/fesm2022/acorex-components-audio-wave.mjs +1 -1
  71. package/fesm2022/acorex-components-avatar.mjs +1 -1
  72. package/fesm2022/acorex-components-badge.mjs +1 -1
  73. package/fesm2022/acorex-components-bottom-navigation.mjs +3 -3
  74. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  75. package/fesm2022/acorex-components-breadcrumbs.mjs +1 -1
  76. package/fesm2022/acorex-components-button-group.mjs +1 -1
  77. package/fesm2022/acorex-components-button.mjs +1 -1
  78. package/fesm2022/acorex-components-calendar.mjs +188 -160
  79. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  80. package/fesm2022/acorex-components-check-box.mjs +39 -22
  81. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  82. package/fesm2022/acorex-components-chips.mjs +1 -1
  83. package/fesm2022/acorex-components-circular-progress.mjs +1 -1
  84. package/fesm2022/acorex-components-collapse.mjs +1 -1
  85. package/fesm2022/acorex-components-color-box.mjs +1 -1
  86. package/fesm2022/acorex-components-color-palette.mjs +1 -1
  87. package/fesm2022/acorex-components-comment.mjs +1 -1
  88. package/fesm2022/acorex-components-common.mjs +1 -1
  89. package/fesm2022/acorex-components-conversation.mjs +1 -1
  90. package/fesm2022/acorex-components-cron-job.mjs +1191 -0
  91. package/fesm2022/acorex-components-cron-job.mjs.map +1 -0
  92. package/fesm2022/acorex-components-data-pager.mjs +1 -1
  93. package/fesm2022/acorex-components-data-table.mjs +1 -1
  94. package/fesm2022/acorex-components-datetime-box.mjs +1 -1
  95. package/fesm2022/acorex-components-datetime-input.mjs +36 -8
  96. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  97. package/fesm2022/acorex-components-datetime-picker.mjs +16 -3
  98. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  99. package/fesm2022/acorex-components-decorators.mjs +1 -1
  100. package/fesm2022/acorex-components-dialog.mjs +1 -1
  101. package/fesm2022/acorex-components-drawer.mjs +1 -1
  102. package/fesm2022/acorex-components-dropdown-button.mjs +1 -1
  103. package/fesm2022/acorex-components-dropdown.mjs +1 -1
  104. package/fesm2022/acorex-components-form.mjs +1 -1
  105. package/fesm2022/acorex-components-image-editor.mjs +1 -1
  106. package/fesm2022/acorex-components-image.mjs +1 -1
  107. package/fesm2022/acorex-components-json-viewer.mjs +1 -1
  108. package/fesm2022/acorex-components-label.mjs +1 -1
  109. package/fesm2022/acorex-components-list.mjs +3 -3
  110. package/fesm2022/acorex-components-list.mjs.map +1 -1
  111. package/fesm2022/acorex-components-loading-dialog.mjs +1 -1
  112. package/fesm2022/acorex-components-loading.mjs +8 -4
  113. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  114. package/fesm2022/acorex-components-map.mjs +1 -1
  115. package/fesm2022/acorex-components-media-viewer.mjs +1 -1
  116. package/fesm2022/acorex-components-menu.mjs +1 -1
  117. package/fesm2022/acorex-components-nav.mjs +1 -1
  118. package/fesm2022/acorex-components-navbar.mjs +1 -1
  119. package/fesm2022/acorex-components-notification.mjs +1 -1
  120. package/fesm2022/acorex-components-number-box.mjs +1 -1
  121. package/fesm2022/acorex-components-otp.mjs +1 -1
  122. package/fesm2022/acorex-components-page.mjs +1 -1
  123. package/fesm2022/acorex-components-paint.mjs +1 -1
  124. package/fesm2022/acorex-components-password-box.mjs +1 -1
  125. package/fesm2022/acorex-components-phone-box.mjs +1 -1
  126. package/fesm2022/acorex-components-picker.mjs +1 -1
  127. package/fesm2022/acorex-components-popover.mjs +1 -1
  128. package/fesm2022/acorex-components-popup.mjs +1 -1
  129. package/fesm2022/acorex-components-progress-bar.mjs +1 -1
  130. package/fesm2022/acorex-components-qrcode.mjs +1 -1
  131. package/fesm2022/acorex-components-radio.mjs +3 -3
  132. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  133. package/fesm2022/acorex-components-range-slider.mjs +1 -1
  134. package/fesm2022/acorex-components-rate-picker.mjs +1 -1
  135. package/fesm2022/acorex-components-result.mjs +1 -1
  136. package/fesm2022/acorex-components-routing-progress.mjs +1 -1
  137. package/fesm2022/acorex-components-scheduler.mjs +1 -1
  138. package/fesm2022/acorex-components-search-box.mjs +1 -1
  139. package/fesm2022/acorex-components-select-box.mjs +1 -1
  140. package/fesm2022/acorex-components-selection-list.mjs +70 -28
  141. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  142. package/fesm2022/acorex-components-side-menu.mjs +1 -1
  143. package/fesm2022/acorex-components-skeleton.mjs +1 -1
  144. package/fesm2022/acorex-components-slider.mjs +1 -1
  145. package/fesm2022/acorex-components-step-wizard.mjs +1 -1
  146. package/fesm2022/acorex-components-switch.mjs +1 -1
  147. package/fesm2022/acorex-components-tabs.mjs +1 -1
  148. package/fesm2022/acorex-components-tag.mjs +1 -1
  149. package/fesm2022/acorex-components-text-area.mjs +1 -1
  150. package/fesm2022/acorex-components-text-box.mjs +10 -7
  151. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  152. package/fesm2022/acorex-components-time-line.mjs +1 -1
  153. package/fesm2022/acorex-components-toast.mjs +1 -1
  154. package/fesm2022/acorex-components-tooltip.mjs +1 -1
  155. package/fesm2022/acorex-components-uploader.mjs +1 -1
  156. package/fesm2022/acorex-components-wysiwyg.mjs +1 -1
  157. package/package.json +7 -1
  158. package/selection-list/lib/selection-list.component.d.ts +26 -6
  159. package/text-box/lib/text-box.component.d.ts +2 -2
@@ -0,0 +1,96 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { StringService } from '../cron-job.service';
3
+ import { RegexItemsIndex, Type } from '../types/shared.model';
4
+ import { Month } from './month.model';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../cron-job.service";
7
+ export class MonthService {
8
+ constructor(stringService) {
9
+ this.stringService = stringService;
10
+ this.monthList = [
11
+ 'January',
12
+ 'February',
13
+ 'March',
14
+ 'April',
15
+ 'May',
16
+ 'June',
17
+ 'July',
18
+ 'August',
19
+ 'September',
20
+ 'October',
21
+ 'November',
22
+ 'December',
23
+ ];
24
+ this.monthModel = new Month();
25
+ }
26
+ getExpression() {
27
+ let expression = '';
28
+ if (this.monthModel.type === Type.Every) {
29
+ expression = '*';
30
+ }
31
+ else if (this.monthModel.type === Type.Custom) {
32
+ //type is custom
33
+ //isRepeat
34
+ if (this.monthModel.custom.repeat.isRepeat) {
35
+ const interval = +this.monthModel.custom.repeat.interval + 1;
36
+ const startAt = this.monthModel.custom.repeat.startAt;
37
+ expression = `${+startAt + 1}/${interval}`;
38
+ }
39
+ //isSpecific
40
+ if (this.monthModel.custom.specific.isSpecific) {
41
+ const specificValues = this.monthModel.custom.specific.values.map((v) => {
42
+ return v.id;
43
+ });
44
+ if (specificValues.length !== 0)
45
+ expression = this.stringService.addComma(expression);
46
+ expression = expression.concat(specificValues.join(','));
47
+ }
48
+ //isBetween
49
+ if (this.monthModel.custom.between.isBetween) {
50
+ expression = this.stringService.addComma(expression);
51
+ const from = this.monthModel.custom.between.from;
52
+ const to = this.monthModel.custom.between.to;
53
+ expression = expression.concat(`${+from + 1}-${+to + 1}`);
54
+ }
55
+ if (expression === '')
56
+ expression = '*';
57
+ }
58
+ return expression;
59
+ }
60
+ reversExpression(cronExpressionPattern) {
61
+ this.monthModel = new Month();
62
+ const regex = this.stringService.getRegexItem(cronExpressionPattern, RegexItemsIndex.Month);
63
+ const isCustom = regex !== '*';
64
+ if (!isCustom) {
65
+ this.monthModel.type = Type.Every;
66
+ return;
67
+ }
68
+ this.monthModel.type = Type.Custom;
69
+ const intervalData = this.stringService.getIntervalCronData(regex);
70
+ const hasIntervalItems = intervalData !== undefined;
71
+ if (hasIntervalItems) {
72
+ this.monthModel.custom.repeat.isRepeat = true;
73
+ this.monthModel.custom.repeat.interval = intervalData?.interval - 1;
74
+ this.monthModel.custom.repeat.startAt = intervalData?.startAt - 1;
75
+ }
76
+ const specificData = this.stringService.getSpecificCronData(regex, this.monthList);
77
+ const hasSpecificItems = specificData !== undefined;
78
+ if (hasSpecificItems) {
79
+ this.monthModel.custom.specific.isSpecific = true;
80
+ this.monthModel.custom.specific.values = specificData;
81
+ }
82
+ const rangeData = this.stringService.getRangeCronData(regex);
83
+ const hasRangeItem = rangeData !== undefined;
84
+ if (hasRangeItem) {
85
+ this.monthModel.custom.between.isBetween = true;
86
+ this.monthModel.custom.between.from = rangeData?.from - 1;
87
+ this.monthModel.custom.between.to = rangeData?.to - 1;
88
+ }
89
+ }
90
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: MonthService, deps: [{ token: i1.StringService }], target: i0.ɵɵFactoryTarget.Injectable }); }
91
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: MonthService }); }
92
+ }
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: MonthService, decorators: [{
94
+ type: Injectable
95
+ }], ctorParameters: () => [{ type: i1.StringService }] });
96
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGguc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jcm9uLWpvYi9zcmMvbGliL21vbnRoL21vbnRoLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE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NlLmdldFJhbmdlQ3JvbkRhdGEocmVnZXgpO1xuICAgIGNvbnN0IGhhc1JhbmdlSXRlbSA9IHJhbmdlRGF0YSAhPT0gdW5kZWZpbmVkO1xuICAgIGlmIChoYXNSYW5nZUl0ZW0pIHtcbiAgICAgIHRoaXMubW9udGhNb2RlbC5jdXN0b20uYmV0d2Vlbi5pc0JldHdlZW4gPSB0cnVlO1xuICAgICAgdGhpcy5tb250aE1vZGVsLmN1c3RvbS5iZXR3ZWVuLmZyb20gPSAocmFuZ2VEYXRhPy5mcm9tIGFzIG51bWJlcikgLSAxO1xuICAgICAgdGhpcy5tb250aE1vZGVsLmN1c3RvbS5iZXR3ZWVuLnRvID0gKHJhbmdlRGF0YT8udG8gYXMgbnVtYmVyKSAtIDE7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -0,0 +1,38 @@
1
+ import { afterNextRender, Component, inject, ViewEncapsulation } from '@angular/core';
2
+ import { DropDownItem, Type } from '../types/shared.model';
3
+ import { SecondsService } from './seconds.service';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@acorex/components/decorators";
6
+ import * as i2 from "@angular/forms";
7
+ import * as i3 from "@acorex/components/select-box";
8
+ import * as i4 from "@acorex/components/form";
9
+ import * as i5 from "@acorex/components/check-box";
10
+ import * as i6 from "@angular/common";
11
+ import * as i7 from "@acorex/core/translation";
12
+ export class AXCronSecondsComponent {
13
+ constructor() {
14
+ this.secondsService = inject(SecondsService);
15
+ this.dropdownList = [];
16
+ this.zeroTo59 = [];
17
+ this.#init = afterNextRender(() => {
18
+ for (let i = 0; i < 60; i++) {
19
+ this.zeroTo59[i] = i;
20
+ this.dropdownList[i] = new DropDownItem(i, i.toString());
21
+ }
22
+ });
23
+ }
24
+ #init;
25
+ changeHandler(e) {
26
+ this.secondsService.secondModel.custom.specific.values = e.component.selectedItems;
27
+ }
28
+ get isCustom() {
29
+ return this.secondsService.secondModel.type === Type.Every ? false : true;
30
+ }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCronSecondsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXCronSecondsComponent, selector: "ax-cron-seconds", ngImport: i0, template: "<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"every\"\n id=\"option1\"\n value=\"every\"\n [(ngModel)]=\"secondsService.secondModel.type\"\n checked\n />\n <label>{{ 'Every' | translate | async }} {{ 'time.second' | translate | async }}</label>\n</div>\n\n<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"custom\"\n id=\"option2\"\n value=\"custom\"\n [(ngModel)]=\"secondsService.secondModel.type\"\n />\n <label>{{ 'Custom' | translate | async }}</label>\n</div>\n\n<div class=\"ax-block-container\">\n <div class=\"ax-every-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"secondsService.secondModel.custom.repeat.isRepeat\">\n </ax-check-box>\n\n <span>{{ 'Every' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.repeat.interval\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'second(s) starting at second' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.repeat.startAt\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-specific-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box\n [disabled]=\"!isCustom\"\n [(ngModel)]=\"secondsService.secondModel.custom.specific.isSpecific\"\n >\n </ax-check-box>\n <label>\n {{ 'Specific second(s) (choose one or many)' | translate | async }}\n </label>\n </div>\n\n <ax-form>\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [placeholder]=\"'select second(s)' | translate | async\"\n [multiple]=\"true\"\n (onValueChanged)=\"changeHandler($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-between-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"secondsService.secondModel.custom.between.isBetween\">\n </ax-check-box>\n <label>\n {{ 'Every' | translate | async }} {{ 'time.second' | translate | async }}\n {{ 'between' | translate | async }} {{ 'time.second' | translate | async }}\n </label>\n </div>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.between.from\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'and' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.between.to\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n</div>\n", styles: ["ax-cron-day .ax-radio-container,ax-cron-hours .ax-radio-container,ax-cron-minutes .ax-radio-container,ax-cron-month .ax-radio-container,ax-cron-seconds .ax-radio-container,ax-cron-year .ax-radio-container{margin-bottom:.5rem;display:flex;align-items:center}ax-cron-day .ax-radio-container input,ax-cron-hours .ax-radio-container input,ax-cron-minutes .ax-radio-container input,ax-cron-month .ax-radio-container input,ax-cron-seconds .ax-radio-container input,ax-cron-year .ax-radio-container input{margin-inline-end:.5rem}ax-cron-day .ax-block-container,ax-cron-hours .ax-block-container,ax-cron-minutes .ax-block-container,ax-cron-month .ax-block-container,ax-cron-seconds .ax-block-container,ax-cron-year .ax-block-container{padding-inline-start:1.5rem}ax-cron-day .ax-block-container .ax-every-container,ax-cron-hours .ax-block-container .ax-every-container,ax-cron-minutes .ax-block-container .ax-every-container,ax-cron-month .ax-block-container .ax-every-container,ax-cron-seconds .ax-block-container .ax-every-container,ax-cron-year .ax-block-container .ax-every-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-every-container ax-form,ax-cron-hours .ax-block-container .ax-every-container ax-form,ax-cron-minutes .ax-block-container .ax-every-container ax-form,ax-cron-month .ax-block-container .ax-every-container ax-form,ax-cron-seconds .ax-block-container .ax-every-container ax-form,ax-cron-year .ax-block-container .ax-every-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-specific-container,ax-cron-hours .ax-block-container .ax-specific-container,ax-cron-minutes .ax-block-container .ax-specific-container,ax-cron-month .ax-block-container .ax-specific-container,ax-cron-seconds .ax-block-container .ax-specific-container,ax-cron-year .ax-block-container .ax-specific-container{margin-block:.5rem}ax-cron-day .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-month .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-year .ax-block-container .ax-specific-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container,ax-cron-hours .ax-block-container .ax-between-container,ax-cron-minutes .ax-block-container .ax-between-container,ax-cron-month .ax-block-container .ax-between-container,ax-cron-seconds .ax-block-container .ax-between-container,ax-cron-year .ax-block-container .ax-between-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-between-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-between-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-between-container .ax-flex-container,ax-cron-month .ax-block-container .ax-between-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-between-container .ax-flex-container,ax-cron-year .ax-block-container .ax-between-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container ax-form,ax-cron-hours .ax-block-container .ax-between-container ax-form,ax-cron-minutes .ax-block-container .ax-between-container ax-form,ax-cron-month .ax-block-container .ax-between-container ax-form,ax-cron-seconds .ax-block-container .ax-between-container ax-form,ax-cron-year .ax-block-container .ax-between-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-week-container,ax-cron-hours .ax-block-container .ax-week-container,ax-cron-minutes .ax-block-container .ax-week-container,ax-cron-month .ax-block-container .ax-week-container,ax-cron-seconds .ax-block-container .ax-week-container,ax-cron-year .ax-block-container .ax-week-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-week-container ax-form,ax-cron-hours .ax-block-container .ax-week-container ax-form,ax-cron-minutes .ax-block-container .ax-week-container ax-form,ax-cron-month .ax-block-container .ax-week-container ax-form,ax-cron-seconds .ax-block-container .ax-week-container ax-form,ax-cron-year .ax-block-container .ax-week-container ax-form{width:fit-content;margin-inline:.5rem}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "directive", type: i2.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: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "textTemplate", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "component", type: i4.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i4.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "component", type: i5.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCronSecondsComponent, decorators: [{
35
+ type: Component,
36
+ args: [{ selector: 'ax-cron-seconds', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"every\"\n id=\"option1\"\n value=\"every\"\n [(ngModel)]=\"secondsService.secondModel.type\"\n checked\n />\n <label>{{ 'Every' | translate | async }} {{ 'time.second' | translate | async }}</label>\n</div>\n\n<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"custom\"\n id=\"option2\"\n value=\"custom\"\n [(ngModel)]=\"secondsService.secondModel.type\"\n />\n <label>{{ 'Custom' | translate | async }}</label>\n</div>\n\n<div class=\"ax-block-container\">\n <div class=\"ax-every-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"secondsService.secondModel.custom.repeat.isRepeat\">\n </ax-check-box>\n\n <span>{{ 'Every' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.repeat.interval\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'second(s) starting at second' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.repeat.startAt\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-specific-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box\n [disabled]=\"!isCustom\"\n [(ngModel)]=\"secondsService.secondModel.custom.specific.isSpecific\"\n >\n </ax-check-box>\n <label>\n {{ 'Specific second(s) (choose one or many)' | translate | async }}\n </label>\n </div>\n\n <ax-form>\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [placeholder]=\"'select second(s)' | translate | async\"\n [multiple]=\"true\"\n (onValueChanged)=\"changeHandler($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-between-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"secondsService.secondModel.custom.between.isBetween\">\n </ax-check-box>\n <label>\n {{ 'Every' | translate | async }} {{ 'time.second' | translate | async }}\n {{ 'between' | translate | async }} {{ 'time.second' | translate | async }}\n </label>\n </div>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.between.from\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'and' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"zeroTo59\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"secondsService.secondModel.custom.between.to\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n</div>\n", styles: ["ax-cron-day .ax-radio-container,ax-cron-hours .ax-radio-container,ax-cron-minutes .ax-radio-container,ax-cron-month .ax-radio-container,ax-cron-seconds .ax-radio-container,ax-cron-year .ax-radio-container{margin-bottom:.5rem;display:flex;align-items:center}ax-cron-day .ax-radio-container input,ax-cron-hours .ax-radio-container input,ax-cron-minutes .ax-radio-container input,ax-cron-month .ax-radio-container input,ax-cron-seconds .ax-radio-container input,ax-cron-year .ax-radio-container input{margin-inline-end:.5rem}ax-cron-day .ax-block-container,ax-cron-hours .ax-block-container,ax-cron-minutes .ax-block-container,ax-cron-month .ax-block-container,ax-cron-seconds .ax-block-container,ax-cron-year .ax-block-container{padding-inline-start:1.5rem}ax-cron-day .ax-block-container .ax-every-container,ax-cron-hours .ax-block-container .ax-every-container,ax-cron-minutes .ax-block-container .ax-every-container,ax-cron-month .ax-block-container .ax-every-container,ax-cron-seconds .ax-block-container .ax-every-container,ax-cron-year .ax-block-container .ax-every-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-every-container ax-form,ax-cron-hours .ax-block-container .ax-every-container ax-form,ax-cron-minutes .ax-block-container .ax-every-container ax-form,ax-cron-month .ax-block-container .ax-every-container ax-form,ax-cron-seconds .ax-block-container .ax-every-container ax-form,ax-cron-year .ax-block-container .ax-every-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-specific-container,ax-cron-hours .ax-block-container .ax-specific-container,ax-cron-minutes .ax-block-container .ax-specific-container,ax-cron-month .ax-block-container .ax-specific-container,ax-cron-seconds .ax-block-container .ax-specific-container,ax-cron-year .ax-block-container .ax-specific-container{margin-block:.5rem}ax-cron-day .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-month .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-year .ax-block-container .ax-specific-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container,ax-cron-hours .ax-block-container .ax-between-container,ax-cron-minutes .ax-block-container .ax-between-container,ax-cron-month .ax-block-container .ax-between-container,ax-cron-seconds .ax-block-container .ax-between-container,ax-cron-year .ax-block-container .ax-between-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-between-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-between-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-between-container .ax-flex-container,ax-cron-month .ax-block-container .ax-between-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-between-container .ax-flex-container,ax-cron-year .ax-block-container .ax-between-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container ax-form,ax-cron-hours .ax-block-container .ax-between-container ax-form,ax-cron-minutes .ax-block-container .ax-between-container ax-form,ax-cron-month .ax-block-container .ax-between-container ax-form,ax-cron-seconds .ax-block-container .ax-between-container ax-form,ax-cron-year .ax-block-container .ax-between-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-week-container,ax-cron-hours .ax-block-container .ax-week-container,ax-cron-minutes .ax-block-container .ax-week-container,ax-cron-month .ax-block-container .ax-week-container,ax-cron-seconds .ax-block-container .ax-week-container,ax-cron-year .ax-block-container .ax-week-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-week-container ax-form,ax-cron-hours .ax-block-container .ax-week-container ax-form,ax-cron-minutes .ax-block-container .ax-week-container ax-form,ax-cron-month .ax-block-container .ax-week-container ax-form,ax-cron-seconds .ax-block-container .ax-week-container ax-form,ax-cron-year .ax-block-container .ax-week-container ax-form{width:fit-content;margin-inline:.5rem}\n"] }]
37
+ }] });
38
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY3Jvbi1qb2Ivc3JjL2xpYi9zZWNvbmRzL3NlY29uZHMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Nyb24tam9iL3NyYy9saWIvc2Vjb25kcy9zZWNvbmRzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxlQUFlLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RixPQUFPLEVBQUUsWUFBWSxFQUFFLElBQUksRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzNELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7Ozs7Ozs7O0FBUW5ELE1BQU0sT0FBTyxzQkFBc0I7SUFObkM7UUFPWSxtQkFBYyxHQUFHLE1BQU0sQ0FBQyxjQUFjLENBQUMsQ0FBQztRQUV4QyxpQkFBWSxHQUFtQixFQUFFLENBQUM7UUFFbEMsYUFBUSxHQUFhLEVBQUUsQ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3RvbVwiXG4gICAgICAgICAgW2RhdGFTb3VyY2VdPVwiemVyb1RvNTlcIlxuICAgICAgICAgIHRleHRGaWVsZD1cInRleHRcIlxuICAgICAgICAgIHZhbHVlRmllbGQ9XCJpZFwiXG4gICAgICAgICAgWyhuZ01vZGVsKV09XCJzZWNvbmRzU2VydmljZS5zZWNvbmRNb2RlbC5jdXN0b20uYmV0d2Vlbi5mcm9tXCJcbiAgICAgICAgPlxuICAgICAgICA8L2F4LXNlbGVjdC1ib3g+XG4gICAgICA8L2F4LWZvcm0tZmllbGQ+XG4gICAgPC9heC1mb3JtPlxuXG4gICAgPHNwYW4+e3sgJ2FuZCcgfCB0cmFuc2xhdGUgfCBhc3luYyB9fTwvc3Bhbj5cblxuICAgIDxheC1mb3JtIGNsYXNzPVwiYXgtc21cIj5cbiAgICAgIDxheC1mb3JtLWZpZWxkPlxuICAgICAgICA8YXgtc2VsZWN0LWJveFxuICAgICAgICAgIFtkaXNhYmxlZF09XCIhaXNDdXN0b21cIlxuICAgICAgICAgIFtkYXRhU291cmNlXT1cInplcm9UbzU5XCJcbiAgICAgICAgICB0ZXh0RmllbGQ9XCJ0ZXh0XCJcbiAgICAgICAgICB2YWx1ZUZpZWxkPVwiaWRcIlxuICAgICAgICAgIFsobmdNb2RlbCldPVwic2Vjb25kc1NlcnZpY2Uuc2Vjb25kTW9kZWwuY3VzdG9tLmJldHdlZW4udG9cIlxuICAgICAgICA+XG4gICAgICAgIDwvYXgtc2VsZWN0LWJveD5cbiAgICAgIDwvYXgtZm9ybS1maWVsZD5cbiAgICA8L2F4LWZvcm0+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -0,0 +1,8 @@
1
+ import { Custom, Type } from '../types/shared.model';
2
+ export class Seconds {
3
+ constructor() {
4
+ this.type = Type.Every;
5
+ this.custom = new Custom();
6
+ }
7
+ }
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kcy5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jcm9uLWpvYi9zcmMvbGliL3NlY29uZHMvc2Vjb25kcy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRXJELE1BQU0sT0FBTyxPQUFPO0lBQXBCO1FBQ0UsU0FBSSxHQUFTLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDeEIsV0FBTSxHQUFXLElBQUksTUFBTSxFQUFFLENBQUM7SUFDaEMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ3VzdG9tLCBUeXBlIH0gZnJvbSAnLi4vdHlwZXMvc2hhcmVkLm1vZGVsJztcblxuZXhwb3J0IGNsYXNzIFNlY29uZHMge1xuICB0eXBlOiBUeXBlID0gVHlwZS5FdmVyeTtcbiAgY3VzdG9tOiBDdXN0b20gPSBuZXcgQ3VzdG9tKCk7XG59XG4iXX0=
@@ -0,0 +1,82 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { StringService } from '../cron-job.service';
3
+ import { RegexItemsIndex, Type } from '../types/shared.model';
4
+ import { Seconds } from './seconds.model';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../cron-job.service";
7
+ export class SecondsService {
8
+ constructor(stringService) {
9
+ this.stringService = stringService;
10
+ this.secondModel = new Seconds();
11
+ }
12
+ getExpression() {
13
+ let expression = '';
14
+ if (this.secondModel.type === Type.Every) {
15
+ expression = '*';
16
+ }
17
+ else if (this.secondModel.type === Type.Custom) {
18
+ //type is custom
19
+ //isRepeat
20
+ if (this.secondModel.custom.repeat.isRepeat) {
21
+ const interval = this.secondModel.custom.repeat.interval;
22
+ const startAt = this.secondModel.custom.repeat.startAt;
23
+ expression = `${startAt}/${interval}`;
24
+ }
25
+ //isSpecific
26
+ if (this.secondModel.custom.specific.isSpecific) {
27
+ const specificValues = this.secondModel.custom.specific.values.map((v) => {
28
+ return v.id;
29
+ });
30
+ if (specificValues.length !== 0)
31
+ expression = this.stringService.addComma(expression);
32
+ expression = expression.concat(specificValues.join(','));
33
+ }
34
+ //isBetween
35
+ if (this.secondModel.custom.between.isBetween) {
36
+ expression = this.stringService.addComma(expression);
37
+ const from = this.secondModel.custom.between.from;
38
+ const to = this.secondModel.custom.between.to;
39
+ expression = expression.concat(`${from}-${to}`);
40
+ }
41
+ if (expression === '')
42
+ expression = '*';
43
+ }
44
+ return expression;
45
+ }
46
+ reversExpression(cronExpressionPattern) {
47
+ this.secondModel = new Seconds();
48
+ const regex = this.stringService.getRegexItem(cronExpressionPattern, RegexItemsIndex.Second);
49
+ const isCustom = regex !== '*';
50
+ if (!isCustom) {
51
+ this.secondModel.type = Type.Every;
52
+ return;
53
+ }
54
+ this.secondModel.type = Type.Custom;
55
+ const intervalData = this.stringService.getIntervalCronData(regex);
56
+ const hasIntervalItems = intervalData !== undefined;
57
+ if (hasIntervalItems) {
58
+ this.secondModel.custom.repeat.isRepeat = true;
59
+ this.secondModel.custom.repeat.interval = intervalData?.interval;
60
+ this.secondModel.custom.repeat.startAt = intervalData?.startAt;
61
+ }
62
+ const specificData = this.stringService.getSpecificCronData(regex);
63
+ const hasSpecificItems = specificData !== undefined;
64
+ if (hasSpecificItems) {
65
+ this.secondModel.custom.specific.isSpecific = true;
66
+ this.secondModel.custom.specific.values = specificData;
67
+ }
68
+ const rangeData = this.stringService.getRangeCronData(regex);
69
+ const hasRangeItem = rangeData !== undefined;
70
+ if (hasRangeItem) {
71
+ this.secondModel.custom.between.isBetween = true;
72
+ this.secondModel.custom.between.from = rangeData?.from;
73
+ this.secondModel.custom.between.to = rangeData?.to;
74
+ }
75
+ }
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SecondsService, deps: [{ token: i1.StringService }], target: i0.ɵɵFactoryTarget.Injectable }); }
77
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SecondsService }); }
78
+ }
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SecondsService, decorators: [{
80
+ type: Injectable
81
+ }], ctorParameters: () => [{ type: i1.StringService }] });
82
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kcy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Nyb24tam9iL3NyYy9saWIvc2Vjb25kcy9zZWNvbmRzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFcEQsT0FBTyxFQUFnQixlQUFlLEVBQUUsSUFBSSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDNUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7QUFHMUMsTUFBTSxPQUFPLGNBQWM7SUFHekIsWUFBb0IsYUFBNEI7UUFBNUIsa0JBQWEsR0FBYixhQUFhLENBQWU7UUFDOUMsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLE9BQU8sRUFBRSxDQUFDO0lBQ25DLENBQUM7SUFFRCxhQUFhO1FBQ1gsSUFBSSxVQUFVLEdBQUcsRUFBRSxDQUFDO1FBQ3BCLElBQUksSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDLEtBQUssRUFBRSxDQUFD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cbiAgICBjb25zdCBoYXNSYW5nZUl0ZW0gPSByYW5nZURhdGEgIT09IHVuZGVmaW5lZDtcbiAgICBpZiAoaGFzUmFuZ2VJdGVtKSB7XG4gICAgICB0aGlzLnNlY29uZE1vZGVsLmN1c3RvbS5iZXR3ZWVuLmlzQmV0d2VlbiA9IHRydWU7XG4gICAgICB0aGlzLnNlY29uZE1vZGVsLmN1c3RvbS5iZXR3ZWVuLmZyb20gPSByYW5nZURhdGE/LmZyb20gYXMgbnVtYmVyO1xuICAgICAgdGhpcy5zZWNvbmRNb2RlbC5jdXN0b20uYmV0d2Vlbi50byA9IHJhbmdlRGF0YT8udG8gYXMgbnVtYmVyO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWV4cHJlc3Npb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY3Jvbi1qb2Ivc3JjL2xpYi90eXBlcy9pZXhwcmVzc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJRXhwcmVzc2lvbiB7XG4gIGdldEV4cHJlc3Npb24oKTogYW55O1xufVxuIl19
@@ -0,0 +1,49 @@
1
+ export class Custom {
2
+ constructor() {
3
+ this.specific = new Specific();
4
+ this.repeat = new Repeat();
5
+ this.between = new Between();
6
+ }
7
+ }
8
+ export class Repeat {
9
+ constructor() {
10
+ this.isRepeat = false;
11
+ this.interval = 0;
12
+ this.startAt = 0;
13
+ }
14
+ }
15
+ export class Specific {
16
+ constructor() {
17
+ this.isSpecific = false;
18
+ this.values = [];
19
+ }
20
+ }
21
+ export class Between {
22
+ constructor() {
23
+ this.isBetween = false;
24
+ this.from = 0;
25
+ this.to = 0;
26
+ }
27
+ }
28
+ export var Type;
29
+ (function (Type) {
30
+ Type["Every"] = "every";
31
+ Type["Custom"] = "custom";
32
+ })(Type || (Type = {}));
33
+ export var RegexItemsIndex;
34
+ (function (RegexItemsIndex) {
35
+ RegexItemsIndex[RegexItemsIndex["Second"] = 0] = "Second";
36
+ RegexItemsIndex[RegexItemsIndex["Minute"] = 1] = "Minute";
37
+ RegexItemsIndex[RegexItemsIndex["Hour"] = 2] = "Hour";
38
+ RegexItemsIndex[RegexItemsIndex["DayOfMonth"] = 3] = "DayOfMonth";
39
+ RegexItemsIndex[RegexItemsIndex["Month"] = 4] = "Month";
40
+ RegexItemsIndex[RegexItemsIndex["DayOfWeek"] = 5] = "DayOfWeek";
41
+ RegexItemsIndex[RegexItemsIndex["Year"] = 6] = "Year";
42
+ })(RegexItemsIndex || (RegexItemsIndex = {}));
43
+ export class DropDownItem {
44
+ constructor(id, text) {
45
+ this.id = id;
46
+ this.text = text;
47
+ }
48
+ }
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Nyb24tam9iL3NyYy9saWIvdHlwZXMvc2hhcmVkLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxNQUFNO0lBQW5CO1FBQ0UsYUFBUSxHQUFhLElBQUksUUFBUSxFQUFFLENBQUM7UUFDcEMsV0FBTSxHQUFXLElBQUksTUFBTSxFQUFFLENBQUM7UUFDOUIsWUFBTyxHQUFZLElBQUksT0FBTyxFQUFFLENBQUM7SUFDbkMsQ0FBQztDQUFBO0FBRUQsTUFBTSxPQUFPLE1BQU07SUFBbkI7UUFDRSxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ2pCLGFBQVEsR0FBRyxDQUFDL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mV0d2VlbjogQmV0d2VlbiA9IG5ldyBCZXR3ZWVuKCk7XG59XG5cbmV4cG9ydCBjbGFzcyBSZXBlYXQge1xuICBpc1JlcGVhdCA9IGZhbHNlO1xuICBpbnRlcnZhbCA9IDA7XG4gIHN0YXJ0QXQgPSAwO1xufVxuXG5leHBvcnQgY2xhc3MgU3BlY2lmaWMge1xuICBpc1NwZWNpZmljID0gZmFsc2U7XG4gIHZhbHVlczogRHJvcERvd25JdGVtW10gPSBbXTtcbn1cblxuZXhwb3J0IGNsYXNzIEJldHdlZW4ge1xuICBpc0JldHdlZW4gPSBmYWxzZTtcbiAgZnJvbSA9IDA7XG4gIHRvID0gMDtcbn1cblxuZXhwb3J0IGVudW0gVHlwZSB7XG4gIEV2ZXJ5ID0gJ2V2ZXJ5JyxcbiAgQ3VzdG9tID0gJ2N1c3RvbScsXG59XG5cbmV4cG9ydCBlbnVtIFJlZ2V4SXRlbXNJbmRleCB7XG4gIFNlY29uZCA9IDAsXG4gIE1pbnV0ZSA9IDEsXG4gIEhvdXIgPSAyLFxuICBEYXlPZk1vbnRoID0gMyxcbiAgTW9udGggPSA0LFxuICBEYXlPZldlZWsgPSA1LFxuICBZZWFyID0gNixcbn1cbmV4cG9ydCBjbGFzcyBEcm9wRG93bkl0ZW0ge1xuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgaWQ6IG51bWJlcixcbiAgICBwdWJsaWMgdGV4dDogc3RyaW5nLFxuICApIHt9XG59XG4iXX0=
@@ -0,0 +1,45 @@
1
+ import { afterNextRender, Component, inject, ViewEncapsulation } from '@angular/core';
2
+ import { DropDownItem, Type } from '../types/shared.model';
3
+ import { YearService } from './year.service';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@acorex/components/decorators";
6
+ import * as i2 from "@angular/forms";
7
+ import * as i3 from "@acorex/components/select-box";
8
+ import * as i4 from "@acorex/components/form";
9
+ import * as i5 from "@acorex/components/check-box";
10
+ import * as i6 from "@angular/common";
11
+ import * as i7 from "@acorex/core/translation";
12
+ export class AXCronYearComponent {
13
+ constructor() {
14
+ this.yearService = inject(YearService);
15
+ this.dropdownList = [];
16
+ this.oneTo100 = [];
17
+ this.#init = afterNextRender(() => {
18
+ for (let i = 0; i < 100; i++) {
19
+ const year = this.getYearByOffset(i);
20
+ this.dropdownList[i] = new DropDownItem(year, year.toString());
21
+ }
22
+ for (let i = 0; i < 100; i++) {
23
+ this.oneTo100[i] = new DropDownItem(i, (i + 1).toString());
24
+ }
25
+ });
26
+ }
27
+ #init;
28
+ changeHandler(e) {
29
+ this.yearService.yearModel.custom.specific.values = e.component.selectedItems;
30
+ }
31
+ get isCustom() {
32
+ return this.yearService.yearModel.type === Type.Every ? false : true;
33
+ }
34
+ getYearByOffset(offset) {
35
+ const currentYear = new Date().getFullYear();
36
+ return currentYear + offset;
37
+ }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCronYearComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXCronYearComponent, selector: "ax-cron-year", ngImport: i0, template: "<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"every\"\n id=\"option1\"\n value=\"every\"\n [(ngModel)]=\"yearService.yearModel.type\"\n checked\n />\n <label>{{ 'Every' | translate | async }} {{ 'time.year' | translate | async }}</label>\n</div>\n\n<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"custom\"\n id=\"option2\"\n value=\"custom\"\n [(ngModel)]=\"yearService.yearModel.type\"\n />\n <label>{{ 'Custom' | translate | async }}</label>\n</div>\n\n<div class=\"ax-block-container\">\n <div class=\"ax-every-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"yearService.yearModel.custom.repeat.isRepeat\">\n </ax-check-box>\n\n <span>{{ 'Every' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n textField=\"text\"\n valueField=\"id\"\n [disabled]=\"!isCustom\"\n [dataSource]=\"oneTo100\"\n [(ngModel)]=\"yearService.yearModel.custom.repeat.interval\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'year(s) starting at year' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"yearService.yearModel.custom.repeat.startAt\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-specific-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"yearService.yearModel.custom.specific.isSpecific\">\n </ax-check-box>\n <label>\n {{ 'Specific year(s) (choose one or many)' | translate | async }}\n </label>\n </div>\n\n <ax-form>\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [placeholder]=\"'select year(s)' | translate | async\"\n [multiple]=\"true\"\n (onValueChanged)=\"changeHandler($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-between-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"yearService.yearModel.custom.between.isBetween\">\n </ax-check-box>\n <label>\n {{ 'Every' | translate | async }} {{ 'time.year' | translate | async }}\n {{ 'between' | translate | async }} {{ 'time.year' | translate | async }}\n </label>\n </div>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"yearService.yearModel.custom.between.from\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'and' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"yearService.yearModel.custom.between.to\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n</div>\n", styles: ["ax-cron-day .ax-radio-container,ax-cron-hours .ax-radio-container,ax-cron-minutes .ax-radio-container,ax-cron-month .ax-radio-container,ax-cron-seconds .ax-radio-container,ax-cron-year .ax-radio-container{margin-bottom:.5rem;display:flex;align-items:center}ax-cron-day .ax-radio-container input,ax-cron-hours .ax-radio-container input,ax-cron-minutes .ax-radio-container input,ax-cron-month .ax-radio-container input,ax-cron-seconds .ax-radio-container input,ax-cron-year .ax-radio-container input{margin-inline-end:.5rem}ax-cron-day .ax-block-container,ax-cron-hours .ax-block-container,ax-cron-minutes .ax-block-container,ax-cron-month .ax-block-container,ax-cron-seconds .ax-block-container,ax-cron-year .ax-block-container{padding-inline-start:1.5rem}ax-cron-day .ax-block-container .ax-every-container,ax-cron-hours .ax-block-container .ax-every-container,ax-cron-minutes .ax-block-container .ax-every-container,ax-cron-month .ax-block-container .ax-every-container,ax-cron-seconds .ax-block-container .ax-every-container,ax-cron-year .ax-block-container .ax-every-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-every-container ax-form,ax-cron-hours .ax-block-container .ax-every-container ax-form,ax-cron-minutes .ax-block-container .ax-every-container ax-form,ax-cron-month .ax-block-container .ax-every-container ax-form,ax-cron-seconds .ax-block-container .ax-every-container ax-form,ax-cron-year .ax-block-container .ax-every-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-specific-container,ax-cron-hours .ax-block-container .ax-specific-container,ax-cron-minutes .ax-block-container .ax-specific-container,ax-cron-month .ax-block-container .ax-specific-container,ax-cron-seconds .ax-block-container .ax-specific-container,ax-cron-year .ax-block-container .ax-specific-container{margin-block:.5rem}ax-cron-day .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-month .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-year .ax-block-container .ax-specific-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container,ax-cron-hours .ax-block-container .ax-between-container,ax-cron-minutes .ax-block-container .ax-between-container,ax-cron-month .ax-block-container .ax-between-container,ax-cron-seconds .ax-block-container .ax-between-container,ax-cron-year .ax-block-container .ax-between-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-between-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-between-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-between-container .ax-flex-container,ax-cron-month .ax-block-container .ax-between-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-between-container .ax-flex-container,ax-cron-year .ax-block-container .ax-between-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container ax-form,ax-cron-hours .ax-block-container .ax-between-container ax-form,ax-cron-minutes .ax-block-container .ax-between-container ax-form,ax-cron-month .ax-block-container .ax-between-container ax-form,ax-cron-seconds .ax-block-container .ax-between-container ax-form,ax-cron-year .ax-block-container .ax-between-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-week-container,ax-cron-hours .ax-block-container .ax-week-container,ax-cron-minutes .ax-block-container .ax-week-container,ax-cron-month .ax-block-container .ax-week-container,ax-cron-seconds .ax-block-container .ax-week-container,ax-cron-year .ax-block-container .ax-week-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-week-container ax-form,ax-cron-hours .ax-block-container .ax-week-container ax-form,ax-cron-minutes .ax-block-container .ax-week-container ax-form,ax-cron-month .ax-block-container .ax-week-container ax-form,ax-cron-seconds .ax-block-container .ax-week-container ax-form,ax-cron-year .ax-block-container .ax-week-container ax-form{width:fit-content;margin-inline:.5rem}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "directive", type: i2.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: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "textTemplate", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "component", type: i4.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i4.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "component", type: i5.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
40
+ }
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCronYearComponent, decorators: [{
42
+ type: Component,
43
+ args: [{ selector: 'ax-cron-year', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"every\"\n id=\"option1\"\n value=\"every\"\n [(ngModel)]=\"yearService.yearModel.type\"\n checked\n />\n <label>{{ 'Every' | translate | async }} {{ 'time.year' | translate | async }}</label>\n</div>\n\n<div class=\"ax-radio-container\">\n <input\n class=\"ax-radio\"\n type=\"radio\"\n name=\"custom\"\n id=\"option2\"\n value=\"custom\"\n [(ngModel)]=\"yearService.yearModel.type\"\n />\n <label>{{ 'Custom' | translate | async }}</label>\n</div>\n\n<div class=\"ax-block-container\">\n <div class=\"ax-every-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"yearService.yearModel.custom.repeat.isRepeat\">\n </ax-check-box>\n\n <span>{{ 'Every' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n textField=\"text\"\n valueField=\"id\"\n [disabled]=\"!isCustom\"\n [dataSource]=\"oneTo100\"\n [(ngModel)]=\"yearService.yearModel.custom.repeat.interval\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'year(s) starting at year' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"yearService.yearModel.custom.repeat.startAt\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-specific-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"yearService.yearModel.custom.specific.isSpecific\">\n </ax-check-box>\n <label>\n {{ 'Specific year(s) (choose one or many)' | translate | async }}\n </label>\n </div>\n\n <ax-form>\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [placeholder]=\"'select year(s)' | translate | async\"\n [multiple]=\"true\"\n (onValueChanged)=\"changeHandler($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n\n <div class=\"ax-between-container\">\n <div class=\"ax-flex-container\">\n <ax-check-box [disabled]=\"!isCustom\" [(ngModel)]=\"yearService.yearModel.custom.between.isBetween\">\n </ax-check-box>\n <label>\n {{ 'Every' | translate | async }} {{ 'time.year' | translate | async }}\n {{ 'between' | translate | async }} {{ 'time.year' | translate | async }}\n </label>\n </div>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"yearService.yearModel.custom.between.from\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n\n <span>{{ 'and' | translate | async }}</span>\n\n <ax-form class=\"ax-sm\">\n <ax-form-field>\n <ax-select-box\n [disabled]=\"!isCustom\"\n [dataSource]=\"dropdownList\"\n textField=\"text\"\n valueField=\"id\"\n [(ngModel)]=\"yearService.yearModel.custom.between.to\"\n >\n </ax-select-box>\n </ax-form-field>\n </ax-form>\n </div>\n</div>\n", styles: ["ax-cron-day .ax-radio-container,ax-cron-hours .ax-radio-container,ax-cron-minutes .ax-radio-container,ax-cron-month .ax-radio-container,ax-cron-seconds .ax-radio-container,ax-cron-year .ax-radio-container{margin-bottom:.5rem;display:flex;align-items:center}ax-cron-day .ax-radio-container input,ax-cron-hours .ax-radio-container input,ax-cron-minutes .ax-radio-container input,ax-cron-month .ax-radio-container input,ax-cron-seconds .ax-radio-container input,ax-cron-year .ax-radio-container input{margin-inline-end:.5rem}ax-cron-day .ax-block-container,ax-cron-hours .ax-block-container,ax-cron-minutes .ax-block-container,ax-cron-month .ax-block-container,ax-cron-seconds .ax-block-container,ax-cron-year .ax-block-container{padding-inline-start:1.5rem}ax-cron-day .ax-block-container .ax-every-container,ax-cron-hours .ax-block-container .ax-every-container,ax-cron-minutes .ax-block-container .ax-every-container,ax-cron-month .ax-block-container .ax-every-container,ax-cron-seconds .ax-block-container .ax-every-container,ax-cron-year .ax-block-container .ax-every-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-every-container ax-form,ax-cron-hours .ax-block-container .ax-every-container ax-form,ax-cron-minutes .ax-block-container .ax-every-container ax-form,ax-cron-month .ax-block-container .ax-every-container ax-form,ax-cron-seconds .ax-block-container .ax-every-container ax-form,ax-cron-year .ax-block-container .ax-every-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-specific-container,ax-cron-hours .ax-block-container .ax-specific-container,ax-cron-minutes .ax-block-container .ax-specific-container,ax-cron-month .ax-block-container .ax-specific-container,ax-cron-seconds .ax-block-container .ax-specific-container,ax-cron-year .ax-block-container .ax-specific-container{margin-block:.5rem}ax-cron-day .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-month .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-specific-container .ax-flex-container,ax-cron-year .ax-block-container .ax-specific-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container,ax-cron-hours .ax-block-container .ax-between-container,ax-cron-minutes .ax-block-container .ax-between-container,ax-cron-month .ax-block-container .ax-between-container,ax-cron-seconds .ax-block-container .ax-between-container,ax-cron-year .ax-block-container .ax-between-container{display:flex;align-items:center}ax-cron-day .ax-block-container .ax-between-container .ax-flex-container,ax-cron-hours .ax-block-container .ax-between-container .ax-flex-container,ax-cron-minutes .ax-block-container .ax-between-container .ax-flex-container,ax-cron-month .ax-block-container .ax-between-container .ax-flex-container,ax-cron-seconds .ax-block-container .ax-between-container .ax-flex-container,ax-cron-year .ax-block-container .ax-between-container .ax-flex-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-between-container ax-form,ax-cron-hours .ax-block-container .ax-between-container ax-form,ax-cron-minutes .ax-block-container .ax-between-container ax-form,ax-cron-month .ax-block-container .ax-between-container ax-form,ax-cron-seconds .ax-block-container .ax-between-container ax-form,ax-cron-year .ax-block-container .ax-between-container ax-form{width:fit-content;margin-inline:.5rem}ax-cron-day .ax-block-container .ax-week-container,ax-cron-hours .ax-block-container .ax-week-container,ax-cron-minutes .ax-block-container .ax-week-container,ax-cron-month .ax-block-container .ax-week-container,ax-cron-seconds .ax-block-container .ax-week-container,ax-cron-year .ax-block-container .ax-week-container{display:flex;align-items:center;margin-bottom:.5rem}ax-cron-day .ax-block-container .ax-week-container ax-form,ax-cron-hours .ax-block-container .ax-week-container ax-form,ax-cron-minutes .ax-block-container .ax-week-container ax-form,ax-cron-month .ax-block-container .ax-week-container ax-form,ax-cron-seconds .ax-block-container .ax-week-container ax-form,ax-cron-year .ax-block-container .ax-week-container ax-form{width:fit-content;margin-inline:.5rem}\n"] }]
44
+ }] });
45
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY3Jvbi1qb2Ivc3JjL2xpYi95ZWFyL3llYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Nyb24tam9iL3NyYy9saWIveWVhci95ZWFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9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BbZGF0YVNvdXJjZV09XCJkcm9wZG93bkxpc3RcIlxuICAgICAgICAgIHRleHRGaWVsZD1cInRleHRcIlxuICAgICAgICAgIHZhbHVlRmllbGQ9XCJpZFwiXG4gICAgICAgICAgWyhuZ01vZGVsKV09XCJ5ZWFyU2VydmljZS55ZWFyTW9kZWwuY3VzdG9tLmJldHdlZW4uZnJvbVwiXG4gICAgICAgID5cbiAgICAgICAgPC9heC1zZWxlY3QtYm94PlxuICAgICAgPC9heC1mb3JtLWZpZWxkPlxuICAgIDwvYXgtZm9ybT5cblxuICAgIDxzcGFuPnt7ICdhbmQnIHwgdHJhbnNsYXRlIHwgYXN5bmMgfX08L3NwYW4+XG5cbiAgICA8YXgtZm9ybSBjbGFzcz1cImF4LXNtXCI+XG4gICAgICA8YXgtZm9ybS1maWVsZD5cbiAgICAgICAgPGF4LXNlbGVjdC1ib3hcbiAgICAgICAgICBbZGlzYWJsZWRdPVwiIWlzQ3VzdG9tXCJcbiAgICAgICAgICBbZGF0YVNvdXJjZV09XCJkcm9wZG93bkxpc3RcIlxuICAgICAgICAgIHRleHRGaWVsZD1cInRleHRcIlxuICAgICAgICAgIHZhbHVlRmllbGQ9XCJpZFwiXG4gICAgICAgICAgWyhuZ01vZGVsKV09XCJ5ZWFyU2VydmljZS55ZWFyTW9kZWwuY3VzdG9tLmJldHdlZW4udG9cIlxuICAgICAgICA+XG4gICAgICAgIDwvYXgtc2VsZWN0LWJveD5cbiAgICAgIDwvYXgtZm9ybS1maWVsZD5cbiAgICA8L2F4LWZvcm0+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -0,0 +1,28 @@
1
+ import { Between as sharedBetween, Custom as sharedCustom, Repeat as sharedRepeat, Type, } from '../types/shared.model';
2
+ export class Year {
3
+ constructor() {
4
+ this.type = Type.Every;
5
+ this.custom = new Custom();
6
+ }
7
+ }
8
+ export class Repeat extends sharedRepeat {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.startAt = new Date().getFullYear();
12
+ }
13
+ }
14
+ export class Between extends sharedBetween {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.from = new Date().getFullYear();
18
+ this.to = new Date().getFullYear();
19
+ }
20
+ }
21
+ export class Custom extends sharedCustom {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.repeat = new Repeat();
25
+ this.between = new Between();
26
+ }
27
+ }
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVhci5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jcm9uLWpvYi9zcmMvbGliL3llYXIveWVhci5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsT0FBTyxJQUFJLGFBQWEsRUFDeEIsTUFBTSxJQUFJLFlBQVksRUFDdEIsTUFBTSxJQUFJLFlBQVksRUFDdEIsSUFBSSxHQUNMLE1BQU0sdUJBQXVCLENBQUM7QUFFL0IsTUFBTSxPQUFPLElBQUk7SUFBakI7UUFDRSxTQUFJLEdBQVMsSUFBSSxDQUFDLEtBQUssQ0FBQztRQUN4QixXQUFNLEdBQVcsSUFBSSxNQUFNLEVBQUUsQ0FBQztJQUNoQyxDQUFDO0NBQUE7QUFFRCxNQUFNLE9BQU8sTUFBTyxTQUFRLFlBQVk7SUFBeEM7O1FBQ1csWUFBTyxHQUFHLElBQUksSUFBSSxFQUFFLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDOUMsQ0FBQztDQUFBO0FBRUQsTUFBTSxPQUFPLE9BQVEsU0FBUSxhQUFhO0lBQTFDOztRQUNXLFNBQUksR0FBRyxJQUFJLElBQUksRUFBRSxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQ2hDLE9BQUUsR0FBRyxJQUFJLElBQUksRUFBRSxDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQ3pDLENB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