primekit 1.0.11 → 1.0.12
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/esm2022/lib/lib/atomix-alert/atomix-alert.component.mjs +76 -0
- package/esm2022/lib/lib/atomix-autocomplete/atomix-autocomplete.component.mjs +108 -0
- package/esm2022/lib/lib/atomix-button/atomix-button.component.mjs +49 -0
- package/esm2022/lib/lib/atomix-button/atomix-button.models.mjs +2 -0
- package/esm2022/lib/lib/atomix-calendar/atomix-calendar.component.mjs +90 -0
- package/esm2022/lib/lib/atomix-card/atomix-card.component.mjs +24 -0
- package/esm2022/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.mjs +28 -0
- package/esm2022/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.mjs +674 -0
- package/esm2022/lib/lib/atomix-divider/atomix-divider.component.mjs +27 -0
- package/esm2022/lib/lib/atomix-dropdown/atomix-dropdown.component.mjs +105 -0
- package/esm2022/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.mjs +38 -0
- package/esm2022/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.models.mjs +2 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.mjs +67 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.mjs +59 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.mjs +48 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.mjs +54 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-chips/form.chips.models.mjs +2 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.mjs +70 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.mjs +80 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.mjs +48 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.mjs +48 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.mjs +46 -0
- package/esm2022/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.mjs +46 -0
- package/esm2022/lib/lib/atomix-input/atomix-input.component.mjs +94 -0
- package/esm2022/lib/lib/atomix-input-switch/atomix-input-switch.component.mjs +85 -0
- package/esm2022/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.mjs +44 -0
- package/esm2022/lib/lib/atomix-messages/messages.component.mjs +33 -0
- package/esm2022/lib/lib/atomix-pagination/atomix-pagination.component.mjs +48 -0
- package/esm2022/lib/lib/atomix-radio-button/atomix-radio-button.component.mjs +50 -0
- package/esm2022/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.mjs +149 -0
- package/esm2022/lib/lib/atomix-select-button/atomix-select-button-models.mjs +2 -0
- package/esm2022/lib/lib/atomix-select-button/atomix-select-button.component.mjs +25 -0
- package/esm2022/lib/lib/atomix-snackbar/atomix-snackbar.component.mjs +29 -0
- package/esm2022/lib/lib/atomix-spinner/atomix-spinner.component.mjs +24 -0
- package/esm2022/lib/lib/atomix-steps/atomix-steps.component.mjs +41 -0
- package/esm2022/lib/lib/atomix-tabMenu/atomix-tabMenu.component.mjs +51 -0
- package/esm2022/lib/lib/atomix-table/atomix-table.component.mjs +454 -0
- package/esm2022/lib/lib/atomix-table/atomix-table.models.mjs +2 -0
- package/esm2022/lib/lib/atomix-tag/atomix-tag.component.mjs +24 -0
- package/esm2022/lib/lib/utils/prime-icons.util.mjs +10 -0
- package/esm2022/lib/primekit.component.mjs +11 -0
- package/esm2022/lib/primekit.module.mjs +322 -0
- package/esm2022/lib/primekit.service.mjs +14 -0
- package/esm2022/primekit.mjs +5 -0
- package/esm2022/public-api.mjs +44 -0
- package/fesm2022/primekit.mjs +3115 -0
- package/fesm2022/primekit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/lib/atomix-alert/atomix-alert.component.d.ts +22 -0
- package/lib/lib/atomix-autocomplete/atomix-autocomplete.component.d.ts +34 -0
- package/lib/lib/atomix-button/atomix-button.component.d.ts +19 -0
- package/{src/lib/lib/atomix-button/atomix-button.models.ts → lib/lib/atomix-button/atomix-button.models.d.ts} +2 -2
- package/lib/lib/atomix-calendar/atomix-calendar.component.d.ts +27 -0
- package/lib/lib/atomix-card/atomix-card.component.d.ts +9 -0
- package/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.d.ts +12 -0
- package/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.d.ts +72 -0
- package/lib/lib/atomix-divider/atomix-divider.component.d.ts +12 -0
- package/lib/lib/atomix-dropdown/atomix-dropdown.component.d.ts +50 -0
- package/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.d.ts +15 -0
- package/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.models.d.ts +11 -0
- package/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.d.ts +25 -0
- package/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.d.ts +23 -0
- package/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.d.ts +18 -0
- package/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.d.ts +19 -0
- package/lib/lib/atomix-form/atomix-form-chips/form.chips.models.d.ts +5 -0
- package/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.d.ts +25 -0
- package/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.d.ts +28 -0
- package/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.d.ts +17 -0
- package/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.d.ts +17 -0
- package/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.d.ts +19 -0
- package/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.d.ts +17 -0
- package/lib/lib/atomix-input/atomix-input.component.d.ts +29 -0
- package/lib/lib/atomix-input-switch/atomix-input-switch.component.d.ts +30 -0
- package/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.d.ts +16 -0
- package/lib/lib/atomix-messages/messages.component.d.ts +13 -0
- package/lib/lib/atomix-pagination/atomix-pagination.component.d.ts +19 -0
- package/lib/lib/atomix-radio-button/atomix-radio-button.component.d.ts +15 -0
- package/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.d.ts +60 -0
- package/{src/lib/lib/atomix-select-button/atomix-select-button-models.ts → lib/lib/atomix-select-button/atomix-select-button-models.d.ts} +4 -4
- package/lib/lib/atomix-select-button/atomix-select-button.component.d.ts +12 -0
- package/lib/lib/atomix-snackbar/atomix-snackbar.component.d.ts +12 -0
- package/lib/lib/atomix-spinner/atomix-spinner.component.d.ts +9 -0
- package/lib/lib/atomix-steps/atomix-steps.component.d.ts +19 -0
- package/lib/lib/atomix-tabMenu/atomix-tabMenu.component.d.ts +19 -0
- package/lib/lib/atomix-table/atomix-table.component.d.ts +119 -0
- package/lib/lib/atomix-table/atomix-table.models.d.ts +43 -0
- package/lib/lib/atomix-tag/atomix-tag.component.d.ts +9 -0
- package/lib/lib/utils/prime-icons.util.d.ts +3 -0
- package/lib/primekit.component.d.ts +5 -0
- package/lib/primekit.module.d.ts +72 -0
- package/lib/primekit.service.d.ts +6 -0
- package/package.json +28 -15
- package/{src/public-api.ts → public-api.d.ts} +38 -47
- package/ng-package.json +0 -8
- package/src/lib/lib/atomix-alert/atomix-alert.component.css +0 -67
- package/src/lib/lib/atomix-alert/atomix-alert.component.html +0 -7
- package/src/lib/lib/atomix-alert/atomix-alert.component.spec.ts +0 -154
- package/src/lib/lib/atomix-alert/atomix-alert.component.ts +0 -75
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.html +0 -35
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.scss +0 -72
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.spec.ts +0 -210
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.ts +0 -70
- package/src/lib/lib/atomix-button/atomix-button.component.css +0 -70
- package/src/lib/lib/atomix-button/atomix-button.component.html +0 -20
- package/src/lib/lib/atomix-button/atomix-button.component.spec.ts +0 -135
- package/src/lib/lib/atomix-button/atomix-button.component.ts +0 -28
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.css +0 -5
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.html +0 -20
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.spec.ts +0 -145
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.ts +0 -71
- package/src/lib/lib/atomix-card/atomix-card.component.css +0 -4
- package/src/lib/lib/atomix-card/atomix-card.component.html +0 -3
- package/src/lib/lib/atomix-card/atomix-card.component.spec.ts +0 -63
- package/src/lib/lib/atomix-card/atomix-card.component.ts +0 -13
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.css +0 -12
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.html +0 -9
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.spec.ts +0 -63
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.ts +0 -22
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.html +0 -233
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.scss +0 -266
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.spec.ts +0 -1465
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.ts +0 -717
- package/src/lib/lib/atomix-divider/atomix-divider.component.css +0 -0
- package/src/lib/lib/atomix-divider/atomix-divider.component.html +0 -7
- package/src/lib/lib/atomix-divider/atomix-divider.component.spec.ts +0 -91
- package/src/lib/lib/atomix-divider/atomix-divider.component.ts +0 -17
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.css +0 -25
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.html +0 -37
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.spec.ts +0 -178
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.ts +0 -89
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.css +0 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.html +0 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.spec.ts +0 -128
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.ts +0 -42
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.models.ts +0 -12
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.html +0 -20
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.scss +0 -7
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.spec.ts +0 -169
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.ts +0 -41
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.html +0 -21
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.scss +0 -7
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.spec.ts +0 -142
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.ts +0 -32
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.html +0 -13
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.scss +0 -14
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.spec.ts +0 -112
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.ts +0 -28
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.html +0 -20
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.scss +0 -3
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.spec.ts +0 -153
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.ts +0 -28
- package/src/lib/lib/atomix-form/atomix-form-chips/form.chips.models.ts +0 -5
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.html +0 -24
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.scss +0 -15
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.spec.ts +0 -156
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.ts +0 -36
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.html +0 -33
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.scss +0 -32
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.spec.ts +0 -156
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.ts +0 -42
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.html +0 -14
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.scss +0 -0
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.spec.ts +0 -104
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.ts +0 -24
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.html +0 -16
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.scss +0 -0
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.spec.ts +0 -92
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.ts +0 -24
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.html +0 -23
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.scss +0 -3
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.spec.ts +0 -126
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.ts +0 -26
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.html +0 -17
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.scss +0 -6
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.spec.ts +0 -120
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.ts +0 -24
- package/src/lib/lib/atomix-input/atomix-input.component.css +0 -52
- package/src/lib/lib/atomix-input/atomix-input.component.html +0 -45
- package/src/lib/lib/atomix-input/atomix-input.component.spec.ts +0 -229
- package/src/lib/lib/atomix-input/atomix-input.component.ts +0 -64
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.css +0 -12
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.html +0 -17
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.spec.ts +0 -173
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.ts +0 -62
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.html +0 -47
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.scss +0 -14
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.spec.ts +0 -21
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.ts +0 -25
- package/src/lib/lib/atomix-messages/messages.component.css +0 -0
- package/src/lib/lib/atomix-messages/messages.component.html +0 -9
- package/src/lib/lib/atomix-messages/messages.component.spec.ts +0 -115
- package/src/lib/lib/atomix-messages/messages.component.ts +0 -17
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.css +0 -19
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.html +0 -24
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.spec.ts +0 -98
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.ts +0 -36
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.css +0 -0
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.html +0 -7
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.spec.ts +0 -116
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.ts +0 -37
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.css +0 -49
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.html +0 -68
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.spec.ts +0 -282
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.ts +0 -119
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.css +0 -5
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.html +0 -7
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.spec.ts +0 -73
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.ts +0 -19
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.css +0 -30
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.html +0 -4
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.spec.ts +0 -60
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.ts +0 -27
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.css +0 -0
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.html +0 -7
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.spec.ts +0 -70
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.ts +0 -13
- package/src/lib/lib/atomix-steps/atomix-steps.component.html +0 -9
- package/src/lib/lib/atomix-steps/atomix-steps.component.scss +0 -0
- package/src/lib/lib/atomix-steps/atomix-steps.component.spec.ts +0 -120
- package/src/lib/lib/atomix-steps/atomix-steps.component.ts +0 -32
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.css +0 -0
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.html +0 -26
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.spec.ts +0 -106
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.ts +0 -36
- package/src/lib/lib/atomix-table/atomix-table.component.css +0 -152
- package/src/lib/lib/atomix-table/atomix-table.component.html +0 -647
- package/src/lib/lib/atomix-table/atomix-table.component.spec.ts +0 -1648
- package/src/lib/lib/atomix-table/atomix-table.component.ts +0 -422
- package/src/lib/lib/atomix-table/atomix-table.models.ts +0 -39
- package/src/lib/lib/atomix-tag/atomix-tag.component.css +0 -0
- package/src/lib/lib/atomix-tag/atomix-tag.component.html +0 -6
- package/src/lib/lib/atomix-tag/atomix-tag.component.spec.ts +0 -47
- package/src/lib/lib/atomix-tag/atomix-tag.component.ts +0 -13
- package/src/lib/lib/utils/prime-icons.util.spec.ts +0 -21
- package/src/lib/lib/utils/prime-icons.util.ts +0 -11
- package/src/lib/primekit.component.spec.ts +0 -19
- package/src/lib/primekit.component.ts +0 -10
- package/src/lib/primekit.module.spec.ts +0 -155
- package/src/lib/primekit.module.ts +0 -183
- package/src/lib/primekit.service.spec.ts +0 -17
- package/src/lib/primekit.service.ts +0 -8
- package/tsconfig.lib.json +0 -13
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -10
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
import { AtomixCalendarComponent } from './atomix-calendar.component';
|
|
4
|
-
|
|
5
|
-
describe('AtomixCalendarComponent', () => {
|
|
6
|
-
let component: AtomixCalendarComponent;
|
|
7
|
-
let fixture: ComponentFixture<AtomixCalendarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [AtomixCalendarComponent],
|
|
12
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
13
|
-
});
|
|
14
|
-
fixture = TestBed.createComponent(AtomixCalendarComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
describe('date selection property binding', () => {
|
|
23
|
-
it('should have default placeholder as empty string', () => {
|
|
24
|
-
expect(component.placeholder).toBe('');
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should accept placeholder input', () => {
|
|
28
|
-
component.placeholder = 'Select a date';
|
|
29
|
-
fixture.detectChanges();
|
|
30
|
-
expect(component.placeholder).toBe('Select a date');
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('should have default selectionMode as single', () => {
|
|
34
|
-
expect(component.selectionMode).toBe('single');
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('should accept selectionMode input as multiple', () => {
|
|
38
|
-
component.selectionMode = 'multiple';
|
|
39
|
-
fixture.detectChanges();
|
|
40
|
-
expect(component.selectionMode).toBe('multiple');
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('should accept selectionMode input as range', () => {
|
|
44
|
-
component.selectionMode = 'range';
|
|
45
|
-
fixture.detectChanges();
|
|
46
|
-
expect(component.selectionMode).toBe('range');
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
it('should have default styleClass as empty string', () => {
|
|
50
|
-
expect(component.styleClass).toBe('');
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('should accept styleClass input', () => {
|
|
54
|
-
component.styleClass = 'custom-class';
|
|
55
|
-
fixture.detectChanges();
|
|
56
|
-
expect(component.styleClass).toBe('custom-class');
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
it('should have default inputStyleClass as empty string', () => {
|
|
60
|
-
expect(component.inputStyleClass).toBe('');
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it('should accept inputStyleClass input', () => {
|
|
64
|
-
component.inputStyleClass = 'input-custom';
|
|
65
|
-
fixture.detectChanges();
|
|
66
|
-
expect(component.inputStyleClass).toBe('input-custom');
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
it('should have default disabled as false', () => {
|
|
70
|
-
expect(component.disabled).toBe(false);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('should accept disabled input', () => {
|
|
74
|
-
component.disabled = true;
|
|
75
|
-
fixture.detectChanges();
|
|
76
|
-
expect(component.disabled).toBe(true);
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
it('should have default selectedDate as null', () => {
|
|
80
|
-
expect(component.selectedDate).toBeNull();
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
it('should accept selectedDate as a single Date', () => {
|
|
84
|
-
const date = new Date(2024, 0, 15);
|
|
85
|
-
component.selectedDate = date;
|
|
86
|
-
fixture.detectChanges();
|
|
87
|
-
expect(component.selectedDate).toBe(date);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it('should accept selectedDate as an array of Dates', () => {
|
|
91
|
-
const dates = [new Date(2024, 0, 15), new Date(2024, 0, 20)];
|
|
92
|
-
component.selectedDate = dates;
|
|
93
|
-
fixture.detectChanges();
|
|
94
|
-
expect(component.selectedDate).toBe(dates);
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it('should accept maxDate input', () => {
|
|
98
|
-
const maxDate = new Date(2025, 11, 31);
|
|
99
|
-
component.maxDate = maxDate;
|
|
100
|
-
fixture.detectChanges();
|
|
101
|
-
expect(component.maxDate).toBe(maxDate);
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
it('should accept minDate input', () => {
|
|
105
|
-
const minDate = new Date(2020, 0, 1);
|
|
106
|
-
component.minDate = minDate;
|
|
107
|
-
fixture.detectChanges();
|
|
108
|
-
expect(component.minDate).toBe(minDate);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it('should emit dateRangeChange when onDateRangeChange is called', () => {
|
|
112
|
-
const emitSpy = jest.fn();
|
|
113
|
-
component.dateRangeChange.subscribe(emitSpy);
|
|
114
|
-
|
|
115
|
-
const dateRange = [new Date(2024, 0, 1), new Date(2024, 0, 31)];
|
|
116
|
-
component.onDateRangeChange(dateRange);
|
|
117
|
-
|
|
118
|
-
expect(emitSpy).toHaveBeenCalledWith(dateRange);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
it('should emit dateRangeChange with null', () => {
|
|
122
|
-
const emitSpy = jest.fn();
|
|
123
|
-
component.dateRangeChange.subscribe(emitSpy);
|
|
124
|
-
|
|
125
|
-
component.onDateRangeChange(null);
|
|
126
|
-
|
|
127
|
-
expect(emitSpy).toHaveBeenCalledWith(null);
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
it('should clear selectedDate when clearDateRange is called', () => {
|
|
131
|
-
component.selectedDate = new Date(2024, 5, 15);
|
|
132
|
-
component.clearDateRange();
|
|
133
|
-
expect(component.selectedDate).toBeNull();
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
it('should have enLocale defined with correct structure', () => {
|
|
137
|
-
expect(component.enLocale).toBeDefined();
|
|
138
|
-
expect(component.enLocale.firstDayOfWeek).toBe(0);
|
|
139
|
-
expect(component.enLocale.dayNames).toHaveLength(7);
|
|
140
|
-
expect(component.enLocale.monthNames).toHaveLength(12);
|
|
141
|
-
expect(component.enLocale.today).toBe('Today');
|
|
142
|
-
expect(component.enLocale.clear).toBe('Clear');
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'atomix-calendar',
|
|
5
|
-
templateUrl: './atomix-calendar.component.html',
|
|
6
|
-
styleUrls: ['./atomix-calendar.component.css'],
|
|
7
|
-
})
|
|
8
|
-
export class AtomixCalendarComponent {
|
|
9
|
-
@Input() placeholder: string = '';
|
|
10
|
-
@Input() selectionMode: 'single' | 'multiple' | 'range' = 'single';
|
|
11
|
-
@Input() styleClass: string = '';
|
|
12
|
-
@Input() inputStyleClass: string = '';
|
|
13
|
-
@Input() disabled: boolean = false;
|
|
14
|
-
@Input() selectedDate: Date[] | null | Date = null;
|
|
15
|
-
@Output() dateRangeChange = new EventEmitter<any>();
|
|
16
|
-
@Input() maxDate!: Date;
|
|
17
|
-
@Input() minDate!: Date;
|
|
18
|
-
|
|
19
|
-
enLocale = {
|
|
20
|
-
firstDayOfWeek: 0,
|
|
21
|
-
dayNames: [
|
|
22
|
-
'Sunday',
|
|
23
|
-
'Monday',
|
|
24
|
-
'Tuesday',
|
|
25
|
-
'Wednesday',
|
|
26
|
-
'Thursday',
|
|
27
|
-
'Friday',
|
|
28
|
-
'Saturday',
|
|
29
|
-
],
|
|
30
|
-
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
31
|
-
dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
32
|
-
monthNames: [
|
|
33
|
-
'January',
|
|
34
|
-
'February',
|
|
35
|
-
'March',
|
|
36
|
-
'April',
|
|
37
|
-
'May',
|
|
38
|
-
'June',
|
|
39
|
-
'July',
|
|
40
|
-
'August',
|
|
41
|
-
'September',
|
|
42
|
-
'October',
|
|
43
|
-
'November',
|
|
44
|
-
'December',
|
|
45
|
-
],
|
|
46
|
-
monthNamesShort: [
|
|
47
|
-
'Jan',
|
|
48
|
-
'Feb',
|
|
49
|
-
'Mar',
|
|
50
|
-
'Apr',
|
|
51
|
-
'May',
|
|
52
|
-
'Jun',
|
|
53
|
-
'Jul',
|
|
54
|
-
'Aug',
|
|
55
|
-
'Sep',
|
|
56
|
-
'Oct',
|
|
57
|
-
'Nov',
|
|
58
|
-
'Dec',
|
|
59
|
-
],
|
|
60
|
-
today: 'Today',
|
|
61
|
-
clear: 'Clear',
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
clearDateRange() {
|
|
65
|
-
this.selectedDate = null;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
onDateRangeChange(dateRange: Date[] | null): void {
|
|
69
|
-
this.dateRangeChange.emit(dateRange);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
import { AtomixCardComponent } from './atomix-card.component';
|
|
4
|
-
|
|
5
|
-
describe('AtomixCardComponent', () => {
|
|
6
|
-
let component: AtomixCardComponent;
|
|
7
|
-
let fixture: ComponentFixture<AtomixCardComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [AtomixCardComponent],
|
|
12
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
13
|
-
});
|
|
14
|
-
fixture = TestBed.createComponent(AtomixCardComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
describe('input bindings', () => {
|
|
23
|
-
it('should have header as undefined by default', () => {
|
|
24
|
-
expect(component.header).toBeUndefined();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should accept header input', () => {
|
|
28
|
-
component.header = 'Card Title';
|
|
29
|
-
fixture.detectChanges();
|
|
30
|
-
expect(component.header).toBe('Card Title');
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('should have footer as undefined by default', () => {
|
|
34
|
-
expect(component.footer).toBeUndefined();
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('should accept footer input', () => {
|
|
38
|
-
component.footer = 'Card Footer';
|
|
39
|
-
fixture.detectChanges();
|
|
40
|
-
expect(component.footer).toBe('Card Footer');
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('should have content as undefined by default', () => {
|
|
44
|
-
expect(component.content).toBeUndefined();
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('should accept content input', () => {
|
|
48
|
-
component.content = 'Card Content';
|
|
49
|
-
fixture.detectChanges();
|
|
50
|
-
expect(component.content).toBe('Card Content');
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('should have class as undefined by default', () => {
|
|
54
|
-
expect(component.class).toBeUndefined();
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('should accept class input', () => {
|
|
58
|
-
component.class = 'custom-card-class';
|
|
59
|
-
fixture.detectChanges();
|
|
60
|
-
expect(component.class).toBe('custom-card-class');
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'atomix-card',
|
|
5
|
-
templateUrl: './atomix-card.component.html',
|
|
6
|
-
styleUrls: ['./atomix-card.component.css'],
|
|
7
|
-
})
|
|
8
|
-
export class AtomixCardComponent {
|
|
9
|
-
@Input() header: string | undefined;
|
|
10
|
-
@Input() footer: string | undefined;
|
|
11
|
-
@Input() content: string | undefined;
|
|
12
|
-
@Input() class: string | undefined;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<p class="global-sub-heading">
|
|
2
|
-
{{ config?.data?.message }}
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<div class="action-button-container">
|
|
6
|
-
<atomix-button buttonType="outlined" (buttonClick)="onNoClick()" label="No">
|
|
7
|
-
</atomix-button>
|
|
8
|
-
<atomix-button label="Yes" (buttonClick)="onYesClick()"></atomix-button>
|
|
9
|
-
</div>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
|
-
import { AtomixConfirmationDialogComponent } from './atomix-confirmation-dialog.component';
|
|
5
|
-
|
|
6
|
-
describe('AtomixConfirmationDialogComponent', () => {
|
|
7
|
-
let component: AtomixConfirmationDialogComponent;
|
|
8
|
-
let fixture: ComponentFixture<AtomixConfirmationDialogComponent>;
|
|
9
|
-
let mockDialogConfig: { data: { message: string } };
|
|
10
|
-
let mockDialogRef: { close: jest.Mock };
|
|
11
|
-
|
|
12
|
-
beforeEach(() => {
|
|
13
|
-
mockDialogConfig = { data: { message: 'Are you sure?' } };
|
|
14
|
-
mockDialogRef = { close: jest.fn() };
|
|
15
|
-
|
|
16
|
-
TestBed.configureTestingModule({
|
|
17
|
-
declarations: [AtomixConfirmationDialogComponent],
|
|
18
|
-
providers: [
|
|
19
|
-
{ provide: DynamicDialogConfig, useValue: mockDialogConfig },
|
|
20
|
-
{ provide: DynamicDialogRef, useValue: mockDialogRef },
|
|
21
|
-
],
|
|
22
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
23
|
-
});
|
|
24
|
-
fixture = TestBed.createComponent(AtomixConfirmationDialogComponent);
|
|
25
|
-
component = fixture.componentInstance;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('should create', () => {
|
|
29
|
-
expect(component).toBeTruthy();
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
describe('input configuration', () => {
|
|
33
|
-
it('should have default message as empty string', () => {
|
|
34
|
-
expect(component.message).toBe('');
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('should accept message input', () => {
|
|
38
|
-
component.message = 'Delete this item?';
|
|
39
|
-
fixture.detectChanges();
|
|
40
|
-
expect(component.message).toBe('Delete this item?');
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('should have access to DynamicDialogConfig', () => {
|
|
44
|
-
expect(component.config).toBe(mockDialogConfig);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('should read message from config data', () => {
|
|
48
|
-
expect(component.config.data.message).toBe('Are you sure?');
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
describe('dialog actions', () => {
|
|
53
|
-
it('should close dialog with true when onYesClick is called', () => {
|
|
54
|
-
component.onYesClick();
|
|
55
|
-
expect(mockDialogRef.close).toHaveBeenCalledWith(true);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it('should close dialog with false when onNoClick is called', () => {
|
|
59
|
-
component.onNoClick();
|
|
60
|
-
expect(mockDialogRef.close).toHaveBeenCalledWith(false);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'atomix-confirmation-dialog',
|
|
6
|
-
templateUrl: './atomix-confirmation-dialog.component.html',
|
|
7
|
-
styleUrls: ['./atomix-confirmation-dialog.component.css'],
|
|
8
|
-
})
|
|
9
|
-
export class AtomixConfirmationDialogComponent {
|
|
10
|
-
@Input() message: string = '';
|
|
11
|
-
constructor(
|
|
12
|
-
public config: DynamicDialogConfig,
|
|
13
|
-
private ref: DynamicDialogRef
|
|
14
|
-
) {}
|
|
15
|
-
onYesClick(): void {
|
|
16
|
-
this.ref.close(true);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
onNoClick(): void {
|
|
20
|
-
this.ref.close(false);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<ng-container *ngIf="!inline; else inlineBlock">
|
|
3
|
-
<div [ngClass]="styleClass" class="input-wrapper">
|
|
4
|
-
<input
|
|
5
|
-
pInputText
|
|
6
|
-
type="text"
|
|
7
|
-
[ngClass]="inputStyleClass"
|
|
8
|
-
[placeholder]="placeholder"
|
|
9
|
-
[value]="getDateRangeLabel()"
|
|
10
|
-
readonly
|
|
11
|
-
[disabled]="disabled"
|
|
12
|
-
(click)="overlayPanel?.toggle($event)"
|
|
13
|
-
(keydown)="onInputKeyDown($event)"
|
|
14
|
-
/>
|
|
15
|
-
<i
|
|
16
|
-
class="pi pi-calendar input-icon"
|
|
17
|
-
title="Open calendar"
|
|
18
|
-
(click)="!disabled && overlayPanel?.toggle($event)"
|
|
19
|
-
></i>
|
|
20
|
-
<i
|
|
21
|
-
*ngIf="hasSelection"
|
|
22
|
-
class="pi pi-times input-clear-icon"
|
|
23
|
-
title="Clear"
|
|
24
|
-
tabindex="0"
|
|
25
|
-
(click)="!disabled && clearAndStop($event)"
|
|
26
|
-
(keydown.enter)="!disabled && clearAndStop($event)"
|
|
27
|
-
(keydown.space)="!disabled && clearAndStop($event)"
|
|
28
|
-
></i>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<p-overlayPanel
|
|
32
|
-
#overlayPanel
|
|
33
|
-
[dismissable]="true"
|
|
34
|
-
appendTo="body"
|
|
35
|
-
styleClass="atomix-date-range-overlay"
|
|
36
|
-
(onShow)="onOverlayShow()"
|
|
37
|
-
(onHide)="onOverlayHide()"
|
|
38
|
-
>
|
|
39
|
-
<div class="overlay-inner">
|
|
40
|
-
<div class="overlay-left">
|
|
41
|
-
<div class="preset-list">
|
|
42
|
-
<button
|
|
43
|
-
pButton
|
|
44
|
-
pRipple
|
|
45
|
-
type="button"
|
|
46
|
-
class="preset-btn"
|
|
47
|
-
(click)="applyPreset('today')"
|
|
48
|
-
[ngClass]="{ active: selectedPreset === 'today' }"
|
|
49
|
-
label="Today"
|
|
50
|
-
></button>
|
|
51
|
-
<button
|
|
52
|
-
pButton
|
|
53
|
-
pRipple
|
|
54
|
-
type="button"
|
|
55
|
-
class="preset-btn"
|
|
56
|
-
(click)="applyPreset('yesterday')"
|
|
57
|
-
[ngClass]="{ active: selectedPreset === 'yesterday' }"
|
|
58
|
-
label="Yesterday"
|
|
59
|
-
></button>
|
|
60
|
-
<button
|
|
61
|
-
pButton
|
|
62
|
-
pRipple
|
|
63
|
-
type="button"
|
|
64
|
-
class="preset-btn"
|
|
65
|
-
(click)="applyPreset('last7days')"
|
|
66
|
-
[ngClass]="{ active: selectedPreset === 'last7days' }"
|
|
67
|
-
label="Last 7 days"
|
|
68
|
-
></button>
|
|
69
|
-
<button
|
|
70
|
-
pButton
|
|
71
|
-
pRipple
|
|
72
|
-
type="button"
|
|
73
|
-
class="preset-btn"
|
|
74
|
-
(click)="applyPreset('last30days')"
|
|
75
|
-
[ngClass]="{ active: selectedPreset === 'last30days' }"
|
|
76
|
-
label="Last 30 days"
|
|
77
|
-
></button>
|
|
78
|
-
<button
|
|
79
|
-
pButton
|
|
80
|
-
pRipple
|
|
81
|
-
type="button"
|
|
82
|
-
class="preset-btn"
|
|
83
|
-
(click)="applyPreset('last3months')"
|
|
84
|
-
[ngClass]="{ active: selectedPreset === 'last3months' }"
|
|
85
|
-
label="Last 3 months"
|
|
86
|
-
></button>
|
|
87
|
-
<button
|
|
88
|
-
pButton
|
|
89
|
-
pRipple
|
|
90
|
-
type="button"
|
|
91
|
-
class="preset-btn"
|
|
92
|
-
(click)="applyPreset('last6months')"
|
|
93
|
-
[ngClass]="{ active: selectedPreset === 'last6months' }"
|
|
94
|
-
label="Last 6 months"
|
|
95
|
-
></button>
|
|
96
|
-
<button
|
|
97
|
-
pButton
|
|
98
|
-
pRipple
|
|
99
|
-
type="button"
|
|
100
|
-
class="preset-btn"
|
|
101
|
-
(click)="applyPreset('last1year')"
|
|
102
|
-
[ngClass]="{ active: selectedPreset === 'last1year' }"
|
|
103
|
-
label="Last 1 year"
|
|
104
|
-
></button>
|
|
105
|
-
<a class="reset-link" (click)="resetAndClose()">Reset</a>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="overlay-right">
|
|
109
|
-
<p-calendar
|
|
110
|
-
[(ngModel)]="modelDate"
|
|
111
|
-
[selectionMode]="'range'"
|
|
112
|
-
[inline]="true"
|
|
113
|
-
[dateFormat]="'mm/dd/yyyy'"
|
|
114
|
-
[showOtherMonths]="true"
|
|
115
|
-
[locale]="enLocale"
|
|
116
|
-
[showIcon]="false"
|
|
117
|
-
[styleClass]="'atomix-overlay-calendar'"
|
|
118
|
-
(ngModelChange)="onModelChange($event)"
|
|
119
|
-
(onMonthChange)="onCalendarViewChanged($event)"
|
|
120
|
-
(onYearChange)="onCalendarViewChanged($event)"
|
|
121
|
-
[disabled]="disabled"
|
|
122
|
-
[maxDate]="maxDate"
|
|
123
|
-
[minDate]="minDate"
|
|
124
|
-
></p-calendar>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
</p-overlayPanel>
|
|
128
|
-
</ng-container>
|
|
129
|
-
|
|
130
|
-
<ng-template #inlineBlock>
|
|
131
|
-
<div [ngClass]="styleClass" class="input-wrapper">
|
|
132
|
-
<input
|
|
133
|
-
pInputText
|
|
134
|
-
type="text"
|
|
135
|
-
[ngClass]="inputStyleClass"
|
|
136
|
-
[placeholder]="placeholder"
|
|
137
|
-
[value]="getDateRangeLabel()"
|
|
138
|
-
readonly
|
|
139
|
-
[disabled]="disabled"
|
|
140
|
-
(keydown)="onInputKeyDown($event)"
|
|
141
|
-
/>
|
|
142
|
-
<i class="pi pi-calendar input-icon" title="Open calendar"></i>
|
|
143
|
-
<i
|
|
144
|
-
*ngIf="hasSelection"
|
|
145
|
-
class="pi pi-times input-clear-icon"
|
|
146
|
-
title="Clear"
|
|
147
|
-
tabindex="0"
|
|
148
|
-
(click)="clearAndStop($event)"
|
|
149
|
-
(keydown.enter)="clearAndStop($event)"
|
|
150
|
-
(keydown.space)="clearAndStop($event)"
|
|
151
|
-
></i>
|
|
152
|
-
</div>
|
|
153
|
-
<div class="overlay-inner inline-calendar flex">
|
|
154
|
-
<div class="overlay-left">
|
|
155
|
-
<div class="preset-list">
|
|
156
|
-
<button
|
|
157
|
-
pButton
|
|
158
|
-
pRipple
|
|
159
|
-
type="button"
|
|
160
|
-
class="preset-btn"
|
|
161
|
-
(click)="applyPreset('today')"
|
|
162
|
-
[ngClass]="{ active: selectedPreset === 'today' }"
|
|
163
|
-
label="Today"
|
|
164
|
-
></button>
|
|
165
|
-
<button
|
|
166
|
-
pButton
|
|
167
|
-
pRipple
|
|
168
|
-
type="button"
|
|
169
|
-
class="preset-btn"
|
|
170
|
-
(click)="applyPreset('yesterday')"
|
|
171
|
-
[ngClass]="{ active: selectedPreset === 'yesterday' }"
|
|
172
|
-
label="Yesterday"
|
|
173
|
-
></button>
|
|
174
|
-
<button
|
|
175
|
-
pButton
|
|
176
|
-
pRipple
|
|
177
|
-
type="button"
|
|
178
|
-
class="preset-btn"
|
|
179
|
-
(click)="applyPreset('last7days')"
|
|
180
|
-
[ngClass]="{ active: selectedPreset === 'last7days' }"
|
|
181
|
-
label="Last 7 days"
|
|
182
|
-
></button>
|
|
183
|
-
<button
|
|
184
|
-
pButton
|
|
185
|
-
pRipple
|
|
186
|
-
type="button"
|
|
187
|
-
class="preset-btn"
|
|
188
|
-
(click)="applyPreset('last30days')"
|
|
189
|
-
[ngClass]="{ active: selectedPreset === 'last30days' }"
|
|
190
|
-
label="Last 30 days"
|
|
191
|
-
></button>
|
|
192
|
-
<button
|
|
193
|
-
pButton
|
|
194
|
-
pRipple
|
|
195
|
-
type="button"
|
|
196
|
-
class="preset-btn"
|
|
197
|
-
(click)="applyPreset('last3months')"
|
|
198
|
-
[ngClass]="{ active: selectedPreset === 'last3months' }"
|
|
199
|
-
label="Last 3 months"
|
|
200
|
-
></button>
|
|
201
|
-
<button
|
|
202
|
-
pButton
|
|
203
|
-
pRipple
|
|
204
|
-
type="button"
|
|
205
|
-
class="preset-btn"
|
|
206
|
-
(click)="applyPreset('last1year')"
|
|
207
|
-
[ngClass]="{ active: selectedPreset === 'last1year' }"
|
|
208
|
-
label="Last 1 year"
|
|
209
|
-
></button>
|
|
210
|
-
<a class="reset-link" (click)="resetAndClose()">Reset</a>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
<div class="overlay-right">
|
|
214
|
-
<p-calendar
|
|
215
|
-
[(ngModel)]="modelDate"
|
|
216
|
-
[selectionMode]="'range'"
|
|
217
|
-
[inline]="true"
|
|
218
|
-
[dateFormat]="'mm/dd/yyyy'"
|
|
219
|
-
[showOtherMonths]="true"
|
|
220
|
-
[locale]="enLocale"
|
|
221
|
-
[showIcon]="false"
|
|
222
|
-
[styleClass]="'atomix-overlay-calendar'"
|
|
223
|
-
(ngModelChange)="onModelChange($event)"
|
|
224
|
-
(onMonthChange)="onCalendarViewChanged($event)"
|
|
225
|
-
(onYearChange)="onCalendarViewChanged($event)"
|
|
226
|
-
[disabled]="disabled"
|
|
227
|
-
[maxDate]="maxDate"
|
|
228
|
-
[minDate]="minDate"
|
|
229
|
-
></p-calendar>
|
|
230
|
-
</div>
|
|
231
|
-
</div>
|
|
232
|
-
</ng-template>
|
|
233
|
-
</div>
|