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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) 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/calendar/lib/calendar.component.mjs +186 -158
  32. package/esm2022/calendar/lib/calendar.module.mjs +5 -4
  33. package/esm2022/check-box/lib/check-box.component.mjs +39 -22
  34. package/esm2022/cron-job/acorex-components-cron-job.mjs +5 -0
  35. package/esm2022/cron-job/index.mjs +9 -0
  36. package/esm2022/cron-job/lib/cron-job-container/cron-job-container.component.mjs +90 -0
  37. package/esm2022/cron-job/lib/cron-job.module.mjs +80 -0
  38. package/esm2022/cron-job/lib/cron-job.service.mjs +60 -0
  39. package/esm2022/cron-job/lib/day/day.component.mjs +61 -0
  40. package/esm2022/cron-job/lib/day/day.model.mjs +88 -0
  41. package/esm2022/cron-job/lib/day/day.service.mjs +196 -0
  42. package/esm2022/cron-job/lib/hours/hours.component.mjs +38 -0
  43. package/esm2022/cron-job/lib/hours/hours.model.mjs +8 -0
  44. package/esm2022/cron-job/lib/hours/hours.service.mjs +82 -0
  45. package/esm2022/cron-job/lib/minutes/minutes.component.mjs +38 -0
  46. package/esm2022/cron-job/lib/minutes/minutes.model.mjs +8 -0
  47. package/esm2022/cron-job/lib/minutes/minutes.service.mjs +82 -0
  48. package/esm2022/cron-job/lib/month/month.component.mjs +47 -0
  49. package/esm2022/cron-job/lib/month/month.model.mjs +8 -0
  50. package/esm2022/cron-job/lib/month/month.service.mjs +96 -0
  51. package/esm2022/cron-job/lib/seconds/seconds.component.mjs +38 -0
  52. package/esm2022/cron-job/lib/seconds/seconds.model.mjs +8 -0
  53. package/esm2022/cron-job/lib/seconds/seconds.service.mjs +82 -0
  54. package/esm2022/cron-job/lib/types/iexpression.mjs +2 -0
  55. package/esm2022/cron-job/lib/types/shared.model.mjs +49 -0
  56. package/esm2022/cron-job/lib/year/year.component.mjs +45 -0
  57. package/esm2022/cron-job/lib/year/year.model.mjs +28 -0
  58. package/esm2022/cron-job/lib/year/year.service.mjs +82 -0
  59. package/esm2022/datetime-input/lib/datetime-input.component.mjs +38 -10
  60. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +17 -4
  61. package/esm2022/list/lib/list.component.mjs +3 -3
  62. package/esm2022/loading/lib/loading.component.mjs +7 -3
  63. package/esm2022/loading/lib/loading.service.mjs +3 -3
  64. package/esm2022/radio/lib/radio.component.mjs +3 -3
  65. package/esm2022/selection-list/lib/selection-list.component.mjs +70 -28
  66. package/esm2022/text-box/lib/text-box.component.mjs +11 -8
  67. package/fesm2022/acorex-components-calendar.mjs +187 -159
  68. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  69. package/fesm2022/acorex-components-check-box.mjs +39 -22
  70. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  71. package/fesm2022/acorex-components-cron-job.mjs +1191 -0
  72. package/fesm2022/acorex-components-cron-job.mjs.map +1 -0
  73. package/fesm2022/acorex-components-datetime-input.mjs +36 -8
  74. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  75. package/fesm2022/acorex-components-datetime-picker.mjs +15 -2
  76. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  77. package/fesm2022/acorex-components-list.mjs +2 -2
  78. package/fesm2022/acorex-components-list.mjs.map +1 -1
  79. package/fesm2022/acorex-components-loading.mjs +8 -4
  80. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  81. package/fesm2022/acorex-components-radio.mjs +2 -2
  82. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  83. package/fesm2022/acorex-components-selection-list.mjs +69 -27
  84. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  85. package/fesm2022/acorex-components-text-box.mjs +10 -7
  86. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  87. package/package.json +7 -1
  88. package/selection-list/lib/selection-list.component.d.ts +26 -6
  89. package/text-box/lib/text-box.component.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-check-box.mjs","sources":["../../../../libs/components/check-box/src/lib/check-box.component.ts","../../../../libs/components/check-box/src/lib/check-box.component.html","../../../../libs/components/check-box/src/lib/check-box.module.ts","../../../../libs/components/check-box/src/acorex-components-check-box.ts"],"sourcesContent":["import { AXValuableComponent, MXValueComponent } from '@acorex/components/common';\n\nimport { AXLabelComponent } from '@acorex/components/label';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n HostListener,\n Input,\n QueryList,\n ViewEncapsulation,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\n/**\n * A checkbox component that allows users to select or deselect an option.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-check-box',\n templateUrl: './check-box.component.html',\n styleUrls: ['./check-box.component.scss'],\n inputs: ['disabled', 'tabIndex', 'readonly', 'value', 'name', 'id', 'checked'],\n outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: AXValuableComponent, useExisting: AXCheckBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXCheckBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXCheckBoxComponent extends MXValueComponent<boolean | null> implements AfterViewInit {\n /**\n * @ignore\n */\n @ContentChildren(AXLabelComponent)\n private _labels: QueryList<AXLabelComponent>;\n\n /**\n * Sets the checkbox to an indeterminate state.\n *\n * @defaultValue false\n */\n @Input()\n public indeterminate = false;\n\n /**\n * @ignore\n */\n protected _stateIndeterminate = false;\n\n /**\n * @ignore\n */\n protected override internalGetValue(value: unknown): boolean | null {\n if (!this.indeterminate && value == null) {\n return false;\n }\n if (this.indeterminate && value == null) {\n return null;\n }\n return coerceBooleanProperty(value);\n }\n\n /**\n * Sets the checkbox state based on the provided value.\n *\n * @param value - `boolean` or `null`. Determines if the checkbox is checked, unchecked, or indeterminate.\n */\n override internalSetValue(value: boolean | null) {\n if (this.indeterminate && value == null) {\n this._stateIndeterminate = true;\n return null;\n } else if (!this.indeterminate && value == null) {\n this._stateIndeterminate = false;\n return false;\n } else {\n this._stateIndeterminate = false;\n return value == true ? true : false;\n }\n }\n\n /**\n * @ignore\n */\n protected override ngOnInit(): void {\n super.ngOnInit();\n //\n this.registerValidation();\n }\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n this._labels?.forEach((c) => {\n //TODO: remove listener\n c.getHostElement().addEventListener('click', () => {\n if (!this.readonly && !this.disabled) {\n this.commitValue(!this.value, true);\n }\n });\n });\n }\n\n \n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n private _handleClick(e: UIEvent) {\n e.stopPropagation();\n if (this.readonly || this.disabled) {\n e.preventDefault();\n return false;\n }\n return true;\n }\n\n /**\n * @ignore\n */\n protected _handleModelChange(value: boolean | null) {\n this.commitValue(value, true);\n }\n}\n","<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-checkbox\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n />\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXCheckBoxComponent } from './check-box.component';\n@NgModule({\n declarations: [AXCheckBoxComponent],\n imports: [CommonModule, FormsModule, AXDecoratorModule],\n exports: [AXCheckBoxComponent],\n providers: [],\n})\nexport class AXCheckBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mapp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AE,iBAAiB,CAAC;oBACvD,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-check-box.mjs","sources":["../../../../libs/components/check-box/src/lib/check-box.component.ts","../../../../libs/components/check-box/src/lib/check-box.component.html","../../../../libs/components/check-box/src/lib/check-box.module.ts","../../../../libs/components/check-box/src/acorex-components-check-box.ts"],"sourcesContent":["import { AXValuableComponent, MXColorComponent, MXValueComponent } from '@acorex/components/common';\n\nimport { AXLabelComponent } from '@acorex/components/label';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n HostBinding,\n HostListener,\n Input,\n QueryList,\n ViewEncapsulation,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\n/**\n * A checkbox component that allows users to select or deselect an option.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-check-box',\n templateUrl: './check-box.component.html',\n styleUrls: ['./check-box.component.scss'],\n inputs: ['disabled', 'tabIndex', 'readonly', 'color', 'value', 'name', 'id', 'checked'],\n outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: AXValuableComponent, useExisting: AXCheckBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXCheckBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXCheckBoxComponent extends classes(MXValueComponent<boolean>, MXColorComponent) {\n /**\n * @ignore\n */\n @ContentChildren(AXLabelComponent)\n private _labels: QueryList<AXLabelComponent>;\n\n /**\n * Sets the checkbox to an indeterminate state.\n *\n * @defaultValue false\n */\n @Input()\n public indeterminate = false;\n\n /**\n * @ignore\n */\n protected _stateIndeterminate = false;\n\n /**\n * @ignore\n */\n protected override internalGetValue(value: unknown): boolean | null {\n if (!this.indeterminate && value == null) {\n return false;\n }\n if (this.indeterminate && value == null) {\n return null;\n }\n return coerceBooleanProperty(value);\n }\n\n /**\n * Sets the checkbox state based on the provided value.\n *\n * @param value - `boolean` or `null`. Determines if the checkbox is checked, unchecked, or indeterminate.\n */\n override internalSetValue(value: boolean | null) {\n if (this.indeterminate && value == null) {\n this._stateIndeterminate = true;\n return null;\n } else if (!this.indeterminate && value == null) {\n this._stateIndeterminate = false;\n return false;\n } else {\n this._stateIndeterminate = false;\n return value == true ? true : false;\n }\n }\n\n /**\n * @ignore\n */\n protected override ngOnInit(): void {\n super.ngOnInit();\n //\n this.registerValidation();\n }\n\n /**\n * @ignore\n */\n // ngAfterViewInit() {\n // this._labels?.forEach((c) => {\n // //TODO: remove listener\n // c.getHostElement().addEventListener('click', () => {\n // if (!this.readonly && !this.disabled) {\n // this.commitValue(!this.value, true);\n // }\n // });\n // });\n // }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n private _handleClick(event: UIEvent): boolean {\n event.stopPropagation();\n\n if (this.readonly || this.disabled) {\n event.preventDefault();\n return false;\n }\n\n const allowedTags = ['label', 'svg', 'path', 'input'];\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n\n if (!allowedTags.includes(targetTag)) {\n return false;\n }\n this.commitValue(!this.value, true);\n return true;\n }\n\n /**\n * @ignore\n */\n protected _handleModelChange(value: boolean | null) {\n this.commitValue(value, true);\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-${this.color ? this.color : 'primary'}-solid`;\n }\n}\n","<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\">\n <svg\n *ngIf=\"cb.indeterminate\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n <svg *ngIf=\"cb.checked\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXCheckBoxComponent } from './check-box.component';\n@NgModule({\n declarations: [AXCheckBoxComponent],\n imports: [CommonModule, FormsModule, AXDecoratorModule],\n exports: [AXCheckBoxComponent],\n providers: [],\n})\nexport class AXCheckBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAkBA;;;;AAIG;AAkBG,MAAO,mBAAoB,SAAQ,OAAO,EAAC,gBAAyB,GAAE,gBAAgB,CAAC,CAAA;AAjB7F,IAAA,WAAA,GAAA;;AAwBE;;;;AAIG;QAEI,IAAa,CAAA,aAAA,GAAG,KAAK;AAE5B;;AAEG;QACO,IAAmB,CAAA,m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