@ng-nest/ui 15.0.20 → 16.0.1
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/README.md +1 -1
- package/affix/affix.component.d.ts +9 -9
- package/affix/affix.module.d.ts +9 -9
- package/affix/affix.property.d.ts +25 -25
- package/affix/index.d.ts +5 -5
- package/affix/public-api.d.ts +3 -3
- package/alert/alert.component.d.ts +21 -21
- package/alert/alert.module.d.ts +14 -14
- package/alert/alert.property.d.ts +224 -224
- package/alert/index.d.ts +5 -5
- package/alert/public-api.d.ts +3 -3
- package/anchor/anchor-inner.component.d.ts +6 -6
- package/anchor/anchor.component.d.ts +39 -39
- package/anchor/anchor.module.d.ts +12 -12
- package/anchor/anchor.property.d.ts +73 -73
- package/anchor/index.d.ts +5 -5
- package/anchor/public-api.d.ts +4 -4
- package/api/api.component.d.ts +11 -11
- package/api/api.module.d.ts +8 -8
- package/api/api.property.d.ts +6 -6
- package/api/index.d.ts +5 -5
- package/api/public-api.d.ts +3 -3
- package/auto-complete/auto-complete-portal.component.d.ts +45 -45
- package/auto-complete/auto-complete.component.d.ts +72 -72
- package/auto-complete/auto-complete.module.d.ts +15 -15
- package/auto-complete/auto-complete.property.d.ts +105 -105
- package/auto-complete/index.d.ts +5 -5
- package/auto-complete/public-api.d.ts +4 -4
- package/avatar/avatar-group.component.d.ts +8 -8
- package/avatar/avatar.component.d.ts +28 -28
- package/avatar/avatar.module.d.ts +12 -12
- package/avatar/avatar.property.d.ts +83 -83
- package/avatar/index.d.ts +5 -5
- package/avatar/public-api.d.ts +4 -4
- package/back-top/back-top.component.d.ts +35 -35
- package/back-top/back-top.module.d.ts +11 -11
- package/back-top/back-top.property.d.ts +41 -41
- package/back-top/index.d.ts +5 -5
- package/back-top/public-api.d.ts +3 -3
- package/badge/badge.component.d.ts +26 -25
- package/badge/badge.module.d.ts +9 -9
- package/badge/badge.property.d.ts +50 -50
- package/badge/index.d.ts +5 -5
- package/badge/public-api.d.ts +3 -3
- package/base-form/base-form.component.d.ts +33 -33
- package/base-form/base-form.module.d.ts +8 -8
- package/base-form/base-form.property.d.ts +160 -160
- package/base-form/index.d.ts +5 -5
- package/base-form/public-api.d.ts +3 -3
- package/border/border.component.d.ts +11 -11
- package/border/border.module.d.ts +7 -7
- package/border/border.property.d.ts +6 -6
- package/border/index.d.ts +5 -5
- package/border/public-api.d.ts +3 -3
- package/button/button.component.d.ts +22 -22
- package/button/button.module.d.ts +12 -12
- package/button/button.property.d.ts +194 -194
- package/button/buttons.component.d.ts +16 -16
- package/button/index.d.ts +5 -5
- package/button/public-api.d.ts +4 -4
- package/calendar/calendar.component.d.ts +45 -45
- package/calendar/calendar.module.d.ts +16 -16
- package/calendar/calendar.property.d.ts +73 -73
- package/calendar/index.d.ts +5 -5
- package/calendar/public-api.d.ts +3 -3
- package/card/card.component.d.ts +15 -15
- package/card/card.module.d.ts +11 -11
- package/card/card.property.d.ts +42 -42
- package/card/index.d.ts +5 -5
- package/card/public-api.d.ts +3 -3
- package/carousel/carousel-panel.component.d.ts +36 -36
- package/carousel/carousel.component.d.ts +32 -32
- package/carousel/carousel.module.d.ts +11 -11
- package/carousel/carousel.property.d.ts +99 -99
- package/carousel/index.d.ts +5 -5
- package/carousel/public-api.d.ts +4 -4
- package/cascade/cascade-portal.component.d.ts +44 -44
- package/cascade/cascade.component.d.ts +69 -69
- package/cascade/cascade.module.d.ts +15 -15
- package/cascade/cascade.property.d.ts +95 -95
- package/cascade/index.d.ts +5 -5
- package/cascade/public-api.d.ts +4 -4
- package/checkbox/checkbox.component.d.ts +32 -32
- package/checkbox/checkbox.module.d.ts +14 -14
- package/checkbox/checkbox.property.d.ts +159 -159
- package/checkbox/index.d.ts +5 -5
- package/checkbox/public-api.d.ts +3 -3
- package/collapse/collapse-panel.component.d.ts +16 -16
- package/collapse/collapse.component.d.ts +17 -17
- package/collapse/collapse.module.d.ts +12 -12
- package/collapse/collapse.property.d.ts +89 -89
- package/collapse/index.d.ts +5 -5
- package/collapse/public-api.d.ts +4 -4
- package/color/color.component.d.ts +17 -17
- package/color/color.module.d.ts +9 -9
- package/color/color.property.d.ts +36 -36
- package/color/index.d.ts +5 -5
- package/color/public-api.d.ts +3 -3
- package/color-picker/color-picker-portal.component.d.ts +134 -134
- package/color-picker/color-picker.component.d.ts +63 -63
- package/color-picker/color-picker.module.d.ts +17 -17
- package/color-picker/color-picker.property.d.ts +53 -53
- package/color-picker/index.d.ts +5 -5
- package/color-picker/public-api.d.ts +4 -4
- package/comment/comment-reply.component.d.ts +20 -20
- package/comment/comment.component.d.ts +28 -28
- package/comment/comment.module.d.ts +18 -18
- package/comment/comment.property.d.ts +125 -125
- package/comment/index.d.ts +5 -5
- package/comment/public-api.d.ts +4 -4
- package/container/aside.component.d.ts +13 -13
- package/container/container.component.d.ts +15 -15
- package/container/container.module.d.ts +13 -13
- package/container/container.property.d.ts +80 -80
- package/container/footer.component.d.ts +17 -17
- package/container/header.component.d.ts +17 -17
- package/container/index.d.ts +5 -5
- package/container/main.component.d.ts +11 -11
- package/container/public-api.d.ts +7 -7
- package/core/animation/badge.d.ts +3 -3
- package/core/animation/connect.d.ts +4 -4
- package/core/animation/consts.d.ts +5 -5
- package/core/animation/drop.d.ts +2 -2
- package/core/animation/fade.d.ts +2 -2
- package/core/animation/move.d.ts +3 -3
- package/core/animation/opacity.d.ts +2 -2
- package/core/animation/public-api.d.ts +8 -8
- package/core/animation/slide.d.ts +3 -3
- package/core/config/config.d.ts +543 -543
- package/core/config/config.service.d.ts +22 -22
- package/core/config/public-api.d.ts +2 -2
- package/core/functions/chunk.d.ts +1 -1
- package/core/functions/clone-deep.d.ts +1 -1
- package/core/functions/convert.d.ts +12 -12
- package/core/functions/date.d.ts +14 -14
- package/core/functions/drop.d.ts +1 -1
- package/core/functions/flex.d.ts +3 -3
- package/core/functions/group-by.d.ts +1 -1
- package/core/functions/guid.d.ts +4 -4
- package/core/functions/has-in.d.ts +1 -1
- package/core/functions/order-by.d.ts +1 -1
- package/core/functions/parent-path.d.ts +1 -1
- package/core/functions/property.d.ts +10 -10
- package/core/functions/public-api.d.ts +14 -14
- package/core/functions/remove.d.ts +1 -1
- package/core/functions/resize.d.ts +7 -7
- package/core/index.d.ts +5 -5
- package/core/interfaces/data.type.d.ts +25 -25
- package/core/interfaces/identify.type.d.ts +18 -18
- package/core/interfaces/index.d.ts +1 -1
- package/core/interfaces/layout.type.d.ts +118 -118
- package/core/interfaces/public-api.d.ts +4 -4
- package/core/interfaces/result-list.type.d.ts +28 -28
- package/core/public-api.d.ts +7 -7
- package/core/services/http.service.d.ts +50 -50
- package/core/services/preloading-strategy.service.d.ts +9 -9
- package/core/services/public-api.d.ts +5 -5
- package/core/services/repository.service.d.ts +28 -28
- package/core/services/reuse-strategy.service.d.ts +39 -39
- package/core/services/storage.service.d.ts +36 -36
- package/core/theme/index.d.ts +1 -1
- package/core/theme/public-api.d.ts +2 -2
- package/core/theme/theme.d.ts +29 -29
- package/core/theme/theme.service.d.ts +41 -41
- package/core/util/animation.d.ts +1 -1
- package/core/util/check.d.ts +2 -2
- package/core/util/computed-style.d.ts +2 -2
- package/core/util/host.d.ts +4 -4
- package/core/util/html.d.ts +4 -4
- package/core/util/index.d.ts +1 -1
- package/core/util/log.d.ts +2 -2
- package/core/util/option.d.ts +10 -10
- package/core/util/public-api.d.ts +7 -7
- package/crumb/crumb.component.d.ts +18 -18
- package/crumb/crumb.module.d.ts +11 -11
- package/crumb/crumb.property.d.ts +73 -73
- package/crumb/index.d.ts +5 -5
- package/crumb/public-api.d.ts +3 -3
- package/date-picker/date-picker-portal.component.d.ts +62 -62
- package/date-picker/date-picker.component.d.ts +71 -71
- package/date-picker/date-picker.module.d.ts +27 -27
- package/date-picker/date-picker.property.d.ts +896 -896
- package/date-picker/date-quarter.pipe.d.ts +9 -9
- package/date-picker/date-range-portal.component.d.ts +83 -83
- package/date-picker/date-range.component.d.ts +90 -90
- package/date-picker/index.d.ts +5 -5
- package/date-picker/picker-date.component.d.ts +55 -55
- package/date-picker/picker-month.component.d.ts +43 -43
- package/date-picker/picker-quarter.component.d.ts +45 -45
- package/date-picker/picker-year.component.d.ts +38 -38
- package/date-picker/public-api.d.ts +11 -11
- package/description/description-item.component.d.ts +9 -9
- package/description/description.component.d.ts +20 -20
- package/description/description.module.d.ts +11 -11
- package/description/description.property.d.ts +88 -88
- package/description/index.d.ts +5 -5
- package/description/public-api.d.ts +4 -4
- package/dialog/dialog-container.component.d.ts +8 -8
- package/dialog/dialog-portal.component.d.ts +46 -46
- package/dialog/dialog-portal.directives.d.ts +41 -41
- package/dialog/dialog-ref.d.ts +19 -19
- package/dialog/dialog.component.d.ts +71 -71
- package/dialog/dialog.module.d.ts +22 -22
- package/dialog/dialog.property.d.ts +391 -391
- package/dialog/dialog.service.d.ts +22 -22
- package/dialog/index.d.ts +5 -5
- package/dialog/public-api.d.ts +8 -8
- package/doc/doc.component.d.ts +9 -9
- package/doc/doc.module.d.ts +8 -8
- package/doc/doc.property.d.ts +6 -6
- package/doc/index.d.ts +5 -5
- package/doc/public-api.d.ts +3 -3
- package/drawer/drawer-container.component.d.ts +8 -8
- package/drawer/drawer-portal.component.d.ts +18 -18
- package/drawer/drawer-portal.directives.d.ts +19 -19
- package/drawer/drawer-ref.d.ts +9 -9
- package/drawer/drawer.component.d.ts +38 -38
- package/drawer/drawer.module.d.ts +15 -15
- package/drawer/drawer.property.d.ts +141 -141
- package/drawer/drawer.service.d.ts +19 -19
- package/drawer/index.d.ts +5 -5
- package/drawer/public-api.d.ts +9 -9
- package/dropdown/dropdown-portal.component.d.ts +64 -64
- package/dropdown/dropdown.component.d.ts +50 -50
- package/dropdown/dropdown.module.d.ts +13 -13
- package/dropdown/dropdown.property.d.ts +99 -99
- package/dropdown/index.d.ts +5 -5
- package/dropdown/public-api.d.ts +4 -4
- package/empty/empty.component.d.ts +16 -16
- package/empty/empty.module.d.ts +12 -12
- package/empty/empty.property.d.ts +25 -25
- package/empty/index.d.ts +5 -5
- package/empty/public-api.d.ts +3 -3
- package/esm2022/affix/affix.component.mjs +18 -0
- package/esm2022/affix/affix.module.mjs +20 -0
- package/esm2022/affix/affix.property.mjs +34 -0
- package/esm2022/affix/ng-nest-ui-affix.mjs +5 -0
- package/esm2022/affix/public-api.mjs +4 -0
- package/esm2022/alert/alert.component.mjs +76 -0
- package/esm2022/alert/alert.module.mjs +25 -0
- package/esm2022/alert/alert.property.mjs +148 -0
- package/esm2022/alert/ng-nest-ui-alert.mjs +5 -0
- package/esm2022/alert/public-api.mjs +4 -0
- package/esm2022/anchor/anchor-inner.component.mjs +18 -0
- package/esm2022/anchor/anchor.component.mjs +168 -0
- package/esm2022/anchor/anchor.module.mjs +23 -0
- package/esm2022/anchor/anchor.property.mjs +59 -0
- package/esm2022/anchor/ng-nest-ui-anchor.mjs +5 -0
- package/esm2022/anchor/public-api.mjs +5 -0
- package/esm2022/api/api.component.mjs +20 -0
- package/esm2022/api/api.module.mjs +19 -0
- package/esm2022/api/api.property.mjs +7 -0
- package/esm2022/api/ng-nest-ui-api.mjs +5 -0
- package/esm2022/api/public-api.mjs +4 -0
- package/esm2022/auto-complete/auto-complete-portal.component.mjs +86 -0
- package/esm2022/auto-complete/auto-complete.component.mjs +306 -0
- package/esm2022/auto-complete/auto-complete.module.mjs +26 -0
- package/esm2022/auto-complete/auto-complete.property.mjs +86 -0
- package/esm2022/auto-complete/ng-nest-ui-auto-complete.mjs +5 -0
- package/esm2022/auto-complete/public-api.mjs +5 -0
- package/esm2022/avatar/avatar-group.component.mjs +20 -0
- package/esm2022/avatar/avatar.component.mjs +116 -0
- package/esm2022/avatar/avatar.module.mjs +23 -0
- package/esm2022/avatar/avatar.property.mjs +74 -0
- package/esm2022/avatar/ng-nest-ui-avatar.mjs +5 -0
- package/esm2022/avatar/public-api.mjs +5 -0
- package/esm2022/back-top/back-top.component.mjs +122 -0
- package/esm2022/back-top/back-top.module.mjs +22 -0
- package/esm2022/back-top/back-top.property.mjs +43 -0
- package/esm2022/back-top/ng-nest-ui-back-top.mjs +5 -0
- package/esm2022/back-top/public-api.mjs +4 -0
- package/esm2022/badge/badge.component.mjs +77 -0
- package/esm2022/badge/badge.module.mjs +20 -0
- package/esm2022/badge/badge.property.mjs +61 -0
- package/esm2022/badge/ng-nest-ui-badge.mjs +5 -0
- package/esm2022/badge/public-api.mjs +4 -0
- package/esm2022/base-form/base-form.component.mjs +87 -0
- package/esm2022/base-form/base-form.module.mjs +18 -0
- package/esm2022/base-form/base-form.property.mjs +133 -0
- package/esm2022/base-form/ng-nest-ui-base-form.mjs +5 -0
- package/esm2022/base-form/public-api.mjs +4 -0
- package/esm2022/border/border.component.mjs +20 -0
- package/esm2022/border/border.module.mjs +17 -0
- package/esm2022/border/border.property.mjs +7 -0
- package/esm2022/border/ng-nest-ui-border.mjs +5 -0
- package/esm2022/border/public-api.mjs +4 -0
- package/esm2022/button/button.component.mjs +80 -0
- package/esm2022/button/button.module.mjs +23 -0
- package/esm2022/button/button.property.mjs +138 -0
- package/esm2022/button/buttons.component.mjs +42 -0
- package/esm2022/button/ng-nest-ui-button.mjs +5 -0
- package/esm2022/button/public-api.mjs +5 -0
- package/esm2022/calendar/calendar.component.mjs +135 -0
- package/esm2022/calendar/calendar.module.mjs +27 -0
- package/esm2022/calendar/calendar.property.mjs +57 -0
- package/esm2022/calendar/ng-nest-ui-calendar.mjs +5 -0
- package/esm2022/calendar/public-api.mjs +4 -0
- package/esm2022/card/card.component.mjs +30 -0
- package/esm2022/card/card.module.mjs +22 -0
- package/esm2022/card/card.property.mjs +43 -0
- package/esm2022/card/ng-nest-ui-card.mjs +5 -0
- package/esm2022/card/public-api.mjs +4 -0
- package/esm2022/carousel/carousel-panel.component.mjs +133 -0
- package/esm2022/carousel/carousel.component.mjs +90 -0
- package/esm2022/carousel/carousel.module.mjs +22 -0
- package/esm2022/carousel/carousel.property.mjs +114 -0
- package/esm2022/carousel/ng-nest-ui-carousel.mjs +5 -0
- package/esm2022/carousel/public-api.mjs +5 -0
- package/esm2022/cascade/cascade-portal.component.mjs +125 -0
- package/esm2022/cascade/cascade.component.mjs +239 -0
- package/esm2022/cascade/cascade.module.mjs +26 -0
- package/esm2022/cascade/cascade.property.mjs +79 -0
- package/esm2022/cascade/ng-nest-ui-cascade.mjs +5 -0
- package/esm2022/cascade/public-api.mjs +5 -0
- package/esm2022/checkbox/checkbox.component.mjs +122 -0
- package/esm2022/checkbox/checkbox.module.mjs +25 -0
- package/esm2022/checkbox/checkbox.property.mjs +88 -0
- package/esm2022/checkbox/ng-nest-ui-checkbox.mjs +5 -0
- package/esm2022/checkbox/public-api.mjs +4 -0
- package/esm2022/collapse/collapse-panel.component.mjs +49 -0
- package/esm2022/collapse/collapse.component.mjs +48 -0
- package/esm2022/collapse/collapse.module.mjs +23 -0
- package/esm2022/collapse/collapse.property.mjs +101 -0
- package/esm2022/collapse/ng-nest-ui-collapse.mjs +5 -0
- package/esm2022/collapse/public-api.mjs +5 -0
- package/esm2022/color/color.component.mjs +42 -0
- package/esm2022/color/color.module.mjs +20 -0
- package/esm2022/color/color.property.mjs +52 -0
- package/esm2022/color/ng-nest-ui-color.mjs +5 -0
- package/esm2022/color/public-api.mjs +4 -0
- package/esm2022/color-picker/color-picker-portal.component.mjs +390 -0
- package/esm2022/color-picker/color-picker.component.mjs +210 -0
- package/esm2022/color-picker/color-picker.module.mjs +54 -0
- package/esm2022/color-picker/color-picker.property.mjs +47 -0
- package/esm2022/color-picker/ng-nest-ui-color-picker.mjs +5 -0
- package/esm2022/color-picker/public-api.mjs +5 -0
- package/esm2022/comment/comment-reply.component.mjs +41 -0
- package/esm2022/comment/comment.component.mjs +80 -0
- package/esm2022/comment/comment.module.mjs +55 -0
- package/esm2022/comment/comment.property.mjs +115 -0
- package/esm2022/comment/ng-nest-ui-comment.mjs +5 -0
- package/esm2022/comment/public-api.mjs +5 -0
- package/esm2022/container/aside.component.mjs +27 -0
- package/esm2022/container/container.component.mjs +35 -0
- package/esm2022/container/container.module.mjs +51 -0
- package/esm2022/container/container.property.mjs +115 -0
- package/esm2022/container/footer.component.mjs +42 -0
- package/esm2022/container/header.component.mjs +42 -0
- package/esm2022/container/main.component.mjs +20 -0
- package/esm2022/container/ng-nest-ui-container.mjs +5 -0
- package/esm2022/container/public-api.mjs +8 -0
- package/esm2022/core/animation/badge.mjs +39 -0
- package/esm2022/core/animation/connect.mjs +113 -0
- package/esm2022/core/animation/consts.mjs +7 -0
- package/esm2022/core/animation/drop.mjs +9 -0
- package/esm2022/core/animation/fade.mjs +14 -0
- package/esm2022/core/animation/move.mjs +175 -0
- package/esm2022/core/animation/opacity.mjs +9 -0
- package/esm2022/core/animation/public-api.mjs +9 -0
- package/esm2022/core/animation/slide.mjs +35 -0
- package/esm2022/core/config/config.mjs +3 -0
- package/esm2022/core/config/config.service.mjs +98 -0
- package/esm2022/core/config/public-api.mjs +3 -0
- package/esm2022/core/functions/chunk.mjs +14 -0
- package/esm2022/core/functions/clone-deep.mjs +12 -0
- package/esm2022/core/functions/convert.mjs +119 -0
- package/esm2022/core/functions/date.mjs +147 -0
- package/esm2022/core/functions/drop.mjs +8 -0
- package/esm2022/core/functions/flex.mjs +21 -0
- package/esm2022/core/functions/group-by.mjs +10 -0
- package/esm2022/core/functions/guid.mjs +10 -0
- package/esm2022/core/functions/has-in.mjs +4 -0
- package/esm2022/core/functions/order-by.mjs +52 -0
- package/esm2022/core/functions/parent-path.mjs +10 -0
- package/esm2022/core/functions/property.mjs +12 -0
- package/esm2022/core/functions/public-api.mjs +15 -0
- package/esm2022/core/functions/remove.mjs +15 -0
- package/esm2022/core/functions/resize.mjs +20 -0
- package/esm2022/core/interfaces/data.type.mjs +75 -0
- package/esm2022/core/interfaces/identify.type.mjs +4 -0
- package/esm2022/core/interfaces/index.mjs +2 -0
- package/esm2022/core/interfaces/layout.type.mjs +2 -0
- package/esm2022/core/interfaces/public-api.mjs +5 -0
- package/esm2022/core/interfaces/result-list.type.mjs +2 -0
- package/esm2022/core/ng-nest-ui-core.mjs +5 -0
- package/esm2022/core/public-api.mjs +8 -0
- package/esm2022/core/services/http.service.mjs +88 -0
- package/esm2022/core/services/preloading-strategy.service.mjs +26 -0
- package/esm2022/core/services/public-api.mjs +6 -0
- package/esm2022/core/services/repository.service.mjs +29 -0
- package/esm2022/core/services/reuse-strategy.service.mjs +73 -0
- package/esm2022/core/services/storage.service.mjs +98 -0
- package/esm2022/core/theme/index.mjs +2 -0
- package/esm2022/core/theme/public-api.mjs +3 -0
- package/esm2022/core/theme/theme.mjs +45 -0
- package/esm2022/core/theme/theme.service.mjs +199 -0
- package/esm2022/core/util/animation.mjs +47 -0
- package/esm2022/core/util/check.mjs +7 -0
- package/esm2022/core/util/computed-style.mjs +12 -0
- package/esm2022/core/util/host.mjs +13 -0
- package/esm2022/core/util/html.mjs +11 -0
- package/esm2022/core/util/index.mjs +2 -0
- package/esm2022/core/util/log.mjs +7 -0
- package/esm2022/core/util/option.mjs +15 -0
- package/esm2022/core/util/public-api.mjs +8 -0
- package/esm2022/crumb/crumb.component.mjs +53 -0
- package/esm2022/crumb/crumb.module.mjs +22 -0
- package/esm2022/crumb/crumb.property.mjs +51 -0
- package/esm2022/crumb/ng-nest-ui-crumb.mjs +5 -0
- package/esm2022/crumb/public-api.mjs +4 -0
- package/esm2022/date-picker/date-picker-portal.component.mjs +193 -0
- package/esm2022/date-picker/date-picker.component.mjs +323 -0
- package/esm2022/date-picker/date-picker.module.mjs +119 -0
- package/esm2022/date-picker/date-picker.property.mjs +813 -0
- package/esm2022/date-picker/date-quarter.pipe.mjs +20 -0
- package/esm2022/date-picker/date-range-portal.component.mjs +341 -0
- package/esm2022/date-picker/date-range.component.mjs +451 -0
- package/esm2022/date-picker/ng-nest-ui-date-picker.mjs +5 -0
- package/esm2022/date-picker/picker-date.component.mjs +333 -0
- package/esm2022/date-picker/picker-month.component.mjs +235 -0
- package/esm2022/date-picker/picker-quarter.component.mjs +238 -0
- package/esm2022/date-picker/picker-year.component.mjs +220 -0
- package/esm2022/date-picker/public-api.mjs +12 -0
- package/esm2022/description/description-item.component.mjs +27 -0
- package/esm2022/description/description.component.mjs +65 -0
- package/esm2022/description/description.module.mjs +22 -0
- package/esm2022/description/description.property.mjs +98 -0
- package/esm2022/description/ng-nest-ui-description.mjs +5 -0
- package/esm2022/description/public-api.mjs +5 -0
- package/esm2022/dialog/dialog-container.component.mjs +30 -0
- package/esm2022/dialog/dialog-portal.component.mjs +95 -0
- package/esm2022/dialog/dialog-portal.directives.mjs +125 -0
- package/esm2022/dialog/dialog-ref.mjs +98 -0
- package/esm2022/dialog/dialog.component.mjs +302 -0
- package/esm2022/dialog/dialog.module.mjs +110 -0
- package/esm2022/dialog/dialog.property.mjs +199 -0
- package/esm2022/dialog/dialog.service.mjs +124 -0
- package/esm2022/dialog/ng-nest-ui-dialog.mjs +5 -0
- package/esm2022/dialog/public-api.mjs +9 -0
- package/esm2022/doc/doc.component.mjs +18 -0
- package/esm2022/doc/doc.module.mjs +19 -0
- package/esm2022/doc/doc.property.mjs +7 -0
- package/esm2022/doc/ng-nest-ui-doc.mjs +5 -0
- package/esm2022/doc/public-api.mjs +4 -0
- package/esm2022/drawer/drawer-container.component.mjs +30 -0
- package/esm2022/drawer/drawer-portal.component.mjs +53 -0
- package/esm2022/drawer/drawer-portal.directives.mjs +60 -0
- package/esm2022/drawer/drawer-ref.mjs +17 -0
- package/esm2022/drawer/drawer.component.mjs +125 -0
- package/esm2022/drawer/drawer.module.mjs +56 -0
- package/esm2022/drawer/drawer.property.mjs +93 -0
- package/esm2022/drawer/drawer.service.mjs +66 -0
- package/esm2022/drawer/ng-nest-ui-drawer.mjs +5 -0
- package/esm2022/drawer/public-api.mjs +10 -0
- package/esm2022/dropdown/dropdown-portal.component.mjs +183 -0
- package/esm2022/dropdown/dropdown.component.mjs +200 -0
- package/esm2022/dropdown/dropdown.module.mjs +24 -0
- package/esm2022/dropdown/dropdown.property.mjs +94 -0
- package/esm2022/dropdown/ng-nest-ui-dropdown.mjs +5 -0
- package/esm2022/dropdown/public-api.mjs +5 -0
- package/esm2022/empty/empty.component.mjs +34 -0
- package/esm2022/empty/empty.module.mjs +23 -0
- package/esm2022/empty/empty.property.mjs +34 -0
- package/esm2022/empty/ng-nest-ui-empty.mjs +5 -0
- package/esm2022/empty/public-api.mjs +4 -0
- package/esm2022/examples/examples.component.mjs +18 -0
- package/esm2022/examples/examples.module.mjs +19 -0
- package/esm2022/examples/examples.property.mjs +7 -0
- package/esm2022/examples/ng-nest-ui-examples.mjs +5 -0
- package/esm2022/examples/public-api.mjs +4 -0
- package/esm2022/find/find.component.mjs +360 -0
- package/esm2022/find/find.module.mjs +65 -0
- package/esm2022/find/find.property.mjs +270 -0
- package/esm2022/find/ng-nest-ui-find.mjs +5 -0
- package/esm2022/find/public-api.mjs +4 -0
- package/esm2022/form/control.component.mjs +198 -0
- package/esm2022/form/form.component.mjs +119 -0
- package/esm2022/form/form.module.mjs +83 -0
- package/esm2022/form/form.property.mjs +202 -0
- package/esm2022/form/ng-nest-ui-form.mjs +5 -0
- package/esm2022/form/public-api.mjs +5 -0
- package/esm2022/highlight/highlight.component.mjs +89 -0
- package/esm2022/highlight/highlight.module.mjs +21 -0
- package/esm2022/highlight/highlight.property.mjs +42 -0
- package/esm2022/highlight/ng-nest-ui-highlight.mjs +5 -0
- package/esm2022/highlight/public-api.mjs +4 -0
- package/esm2022/i18n/i18n.directive.mjs +41 -0
- package/esm2022/i18n/i18n.module.mjs +18 -0
- package/esm2022/i18n/i18n.pipe.mjs +28 -0
- package/esm2022/i18n/i18n.property.mjs +9 -0
- package/esm2022/i18n/i18n.service.mjs +62 -0
- package/esm2022/i18n/languages/ar_EG.mjs +118 -0
- package/esm2022/i18n/languages/bg_BG.mjs +118 -0
- package/esm2022/i18n/languages/ca_ES.mjs +118 -0
- package/esm2022/i18n/languages/cs_CZ.mjs +118 -0
- package/esm2022/i18n/languages/da_DK.mjs +118 -0
- package/esm2022/i18n/languages/de_DE.mjs +118 -0
- package/esm2022/i18n/languages/el_GR.mjs +118 -0
- package/esm2022/i18n/languages/en_GB.mjs +172 -0
- package/esm2022/i18n/languages/en_US.mjs +172 -0
- package/esm2022/i18n/languages/es_ES.mjs +118 -0
- package/esm2022/i18n/languages/et_EE.mjs +118 -0
- package/esm2022/i18n/languages/fa_IR.mjs +118 -0
- package/esm2022/i18n/languages/fi_FI.mjs +118 -0
- package/esm2022/i18n/languages/fr_BE.mjs +118 -0
- package/esm2022/i18n/languages/fr_FR.mjs +118 -0
- package/esm2022/i18n/languages/he_IL.mjs +118 -0
- package/esm2022/i18n/languages/hi_IN.mjs +118 -0
- package/esm2022/i18n/languages/hr_HR.mjs +118 -0
- package/esm2022/i18n/languages/hu_HU.mjs +118 -0
- package/esm2022/i18n/languages/hy_AM.mjs +118 -0
- package/esm2022/i18n/languages/id_ID.mjs +118 -0
- package/esm2022/i18n/languages/is_IS.mjs +118 -0
- package/esm2022/i18n/languages/it_IT.mjs +118 -0
- package/esm2022/i18n/languages/ja_JP.mjs +118 -0
- package/esm2022/i18n/languages/ka_GE.mjs +118 -0
- package/esm2022/i18n/languages/kn_IN.mjs +118 -0
- package/esm2022/i18n/languages/ko_KR.mjs +118 -0
- package/esm2022/i18n/languages/ku_IQ.mjs +118 -0
- package/esm2022/i18n/languages/lv_LV.mjs +118 -0
- package/esm2022/i18n/languages/mn_MN.mjs +118 -0
- package/esm2022/i18n/languages/ms_MY.mjs +118 -0
- package/esm2022/i18n/languages/nb_NO.mjs +118 -0
- package/esm2022/i18n/languages/ne_NP.mjs +118 -0
- package/esm2022/i18n/languages/nl_BE.mjs +118 -0
- package/esm2022/i18n/languages/nl_NL.mjs +118 -0
- package/esm2022/i18n/languages/pl_PL.mjs +118 -0
- package/esm2022/i18n/languages/pt_BR.mjs +118 -0
- package/esm2022/i18n/languages/pt_PT.mjs +118 -0
- package/esm2022/i18n/languages/ro_RO.mjs +118 -0
- package/esm2022/i18n/languages/ru_RU.mjs +118 -0
- package/esm2022/i18n/languages/sk_SK.mjs +118 -0
- package/esm2022/i18n/languages/sl_SI.mjs +118 -0
- package/esm2022/i18n/languages/sr_RS.mjs +118 -0
- package/esm2022/i18n/languages/sv_SE.mjs +118 -0
- package/esm2022/i18n/languages/ta_IN.mjs +118 -0
- package/esm2022/i18n/languages/th_TH.mjs +118 -0
- package/esm2022/i18n/languages/tr_TR.mjs +118 -0
- package/esm2022/i18n/languages/uk_UA.mjs +118 -0
- package/esm2022/i18n/languages/vi_VN.mjs +118 -0
- package/esm2022/i18n/languages/zh_CN.mjs +171 -0
- package/esm2022/i18n/languages/zh_TW.mjs +171 -0
- package/esm2022/i18n/ng-nest-ui-i18n.mjs +5 -0
- package/esm2022/i18n/public-api.mjs +57 -0
- package/esm2022/icon/icon.component.mjs +186 -0
- package/esm2022/icon/icon.module.mjs +22 -0
- package/esm2022/icon/icon.property.mjs +46 -0
- package/esm2022/icon/icon.service.mjs +88 -0
- package/esm2022/icon/ng-nest-ui-icon.mjs +5 -0
- package/esm2022/icon/public-api.mjs +5 -0
- package/esm2022/image/image-group.component.mjs +22 -0
- package/esm2022/image/image-preview.component.mjs +141 -0
- package/esm2022/image/image.component.mjs +95 -0
- package/esm2022/image/image.module.mjs +28 -0
- package/esm2022/image/image.property.mjs +84 -0
- package/esm2022/image/ng-nest-ui-image.mjs +5 -0
- package/esm2022/image/public-api.mjs +6 -0
- package/esm2022/index.mjs +107 -0
- package/esm2022/inner/inner.component.mjs +31 -0
- package/esm2022/inner/inner.module.mjs +20 -0
- package/esm2022/inner/inner.property.mjs +29 -0
- package/esm2022/inner/ng-nest-ui-inner.mjs +5 -0
- package/esm2022/inner/public-api.mjs +4 -0
- package/esm2022/input/input-group.component.mjs +21 -0
- package/esm2022/input/input.component.mjs +195 -0
- package/esm2022/input/input.module.mjs +25 -0
- package/esm2022/input/input.property.mjs +211 -0
- package/esm2022/input/ng-nest-ui-input.mjs +5 -0
- package/esm2022/input/public-api.mjs +5 -0
- package/esm2022/input-number/input-number.component.mjs +124 -0
- package/esm2022/input-number/input-number.module.mjs +24 -0
- package/esm2022/input-number/input-number.property.mjs +91 -0
- package/esm2022/input-number/ng-nest-ui-input-number.mjs +5 -0
- package/esm2022/input-number/public-api.mjs +4 -0
- package/esm2022/keyword/keyword.directive.mjs +67 -0
- package/esm2022/keyword/keyword.module.mjs +20 -0
- package/esm2022/keyword/keyword.property.mjs +42 -0
- package/esm2022/keyword/ng-nest-ui-keyword.mjs +5 -0
- package/esm2022/keyword/public-api.mjs +4 -0
- package/esm2022/layout/col.component.mjs +76 -0
- package/esm2022/layout/layout.module.mjs +21 -0
- package/esm2022/layout/layout.property.mjs +90 -0
- package/esm2022/layout/ng-nest-ui-layout.mjs +5 -0
- package/esm2022/layout/public-api.mjs +5 -0
- package/esm2022/layout/row.component.mjs +46 -0
- package/esm2022/link/link.component.mjs +58 -0
- package/esm2022/link/link.module.mjs +23 -0
- package/esm2022/link/link.property.mjs +55 -0
- package/esm2022/link/ng-nest-ui-link.mjs +5 -0
- package/esm2022/link/public-api.mjs +4 -0
- package/esm2022/list/list-drop-group.directive.mjs +48 -0
- package/esm2022/list/list-option.component.mjs +50 -0
- package/esm2022/list/list.component.mjs +396 -0
- package/esm2022/list/list.module.mjs +67 -0
- package/esm2022/list/list.property.mjs +261 -0
- package/esm2022/list/ng-nest-ui-list.mjs +5 -0
- package/esm2022/list/public-api.mjs +6 -0
- package/esm2022/loading/loading.component.mjs +82 -0
- package/esm2022/loading/loading.module.mjs +23 -0
- package/esm2022/loading/loading.property.mjs +73 -0
- package/esm2022/loading/ng-nest-ui-loading.mjs +5 -0
- package/esm2022/loading/public-api.mjs +4 -0
- package/esm2022/menu/menu-node.component.mjs +35 -0
- package/esm2022/menu/menu.component.mjs +197 -0
- package/esm2022/menu/menu.module.mjs +25 -0
- package/esm2022/menu/menu.property.mjs +126 -0
- package/esm2022/menu/ng-nest-ui-menu.mjs +5 -0
- package/esm2022/menu/public-api.mjs +5 -0
- package/esm2022/message/message-ref.mjs +13 -0
- package/esm2022/message/message.component.mjs +47 -0
- package/esm2022/message/message.module.mjs +23 -0
- package/esm2022/message/message.property.mjs +9 -0
- package/esm2022/message/message.service.mjs +148 -0
- package/esm2022/message/ng-nest-ui-message.mjs +5 -0
- package/esm2022/message/public-api.mjs +6 -0
- package/esm2022/message-box/message-box.component.mjs +89 -0
- package/esm2022/message-box/message-box.module.mjs +58 -0
- package/esm2022/message-box/message-box.property.mjs +8 -0
- package/esm2022/message-box/message-box.service.mjs +90 -0
- package/esm2022/message-box/ng-nest-ui-message-box.mjs +5 -0
- package/esm2022/message-box/public-api.mjs +5 -0
- package/esm2022/ng-nest-ui.mjs +5 -0
- package/esm2022/notification/ng-nest-ui-notification.mjs +5 -0
- package/esm2022/notification/notification.component.mjs +49 -0
- package/esm2022/notification/notification.module.mjs +23 -0
- package/esm2022/notification/notification.property.mjs +8 -0
- package/esm2022/notification/notification.service.mjs +104 -0
- package/esm2022/notification/public-api.mjs +5 -0
- package/esm2022/outlet/ng-nest-ui-outlet.mjs +5 -0
- package/esm2022/outlet/outlet.directive.mjs +75 -0
- package/esm2022/outlet/outlet.module.mjs +19 -0
- package/esm2022/outlet/outlet.property.mjs +7 -0
- package/esm2022/outlet/public-api.mjs +4 -0
- package/esm2022/page-header/ng-nest-ui-page-header.mjs +5 -0
- package/esm2022/page-header/page-header.component.mjs +42 -0
- package/esm2022/page-header/page-header.module.mjs +21 -0
- package/esm2022/page-header/page-header.property.mjs +47 -0
- package/esm2022/page-header/public-api.mjs +4 -0
- package/esm2022/pagination/ng-nest-ui-pagination.mjs +5 -0
- package/esm2022/pagination/pagination.component.mjs +162 -0
- package/esm2022/pagination/pagination.module.mjs +26 -0
- package/esm2022/pagination/pagination.property.mjs +172 -0
- package/esm2022/pagination/public-api.mjs +4 -0
- package/esm2022/pattern/ng-nest-ui-pattern.mjs +5 -0
- package/esm2022/pattern/pattern.component.mjs +18 -0
- package/esm2022/pattern/pattern.module.mjs +19 -0
- package/esm2022/pattern/pattern.property.mjs +7 -0
- package/esm2022/pattern/public-api.mjs +4 -0
- package/esm2022/popconfirm/ng-nest-ui-popconfirm.mjs +5 -0
- package/esm2022/popconfirm/popconfirm.component.mjs +75 -0
- package/esm2022/popconfirm/popconfirm.module.mjs +24 -0
- package/esm2022/popconfirm/popconfirm.property.mjs +87 -0
- package/esm2022/popconfirm/public-api.mjs +4 -0
- package/esm2022/popover/ng-nest-ui-popover.mjs +5 -0
- package/esm2022/popover/popover-portal.component.mjs +104 -0
- package/esm2022/popover/popover.directive.mjs +205 -0
- package/esm2022/popover/popover.module.mjs +23 -0
- package/esm2022/popover/popover.property.mjs +89 -0
- package/esm2022/popover/public-api.mjs +5 -0
- package/esm2022/portal/ng-nest-ui-portal.mjs +5 -0
- package/esm2022/portal/portal.module.mjs +20 -0
- package/esm2022/portal/portal.property.mjs +24 -0
- package/esm2022/portal/portal.service.mjs +190 -0
- package/esm2022/portal/public-api.mjs +4 -0
- package/esm2022/progress/ng-nest-ui-progress.mjs +5 -0
- package/esm2022/progress/progress.component.mjs +222 -0
- package/esm2022/progress/progress.module.mjs +22 -0
- package/esm2022/progress/progress.property.mjs +115 -0
- package/esm2022/progress/public-api.mjs +4 -0
- package/esm2022/radio/ng-nest-ui-radio.mjs +5 -0
- package/esm2022/radio/public-api.mjs +4 -0
- package/esm2022/radio/radio.component.mjs +104 -0
- package/esm2022/radio/radio.module.mjs +25 -0
- package/esm2022/radio/radio.property.mjs +89 -0
- package/esm2022/rate/ng-nest-ui-rate.mjs +5 -0
- package/esm2022/rate/public-api.mjs +4 -0
- package/esm2022/rate/rate.component.mjs +118 -0
- package/esm2022/rate/rate.module.mjs +24 -0
- package/esm2022/rate/rate.property.mjs +50 -0
- package/esm2022/resizable/ng-nest-ui-resizable.mjs +5 -0
- package/esm2022/resizable/public-api.mjs +4 -0
- package/esm2022/resizable/resizable.directive.mjs +268 -0
- package/esm2022/resizable/resizable.module.mjs +19 -0
- package/esm2022/resizable/resizable.property.mjs +95 -0
- package/esm2022/result/ng-nest-ui-result.mjs +5 -0
- package/esm2022/result/public-api.mjs +4 -0
- package/esm2022/result/result.component.mjs +34 -0
- package/esm2022/result/result.module.mjs +22 -0
- package/esm2022/result/result.property.mjs +38 -0
- package/esm2022/ripple/ng-nest-ui-ripple.mjs +5 -0
- package/esm2022/ripple/public-api.mjs +4 -0
- package/esm2022/ripple/ripple.directive.mjs +70 -0
- package/esm2022/ripple/ripple.module.mjs +20 -0
- package/esm2022/ripple/ripple.property.mjs +34 -0
- package/esm2022/select/ng-nest-ui-select.mjs +5 -0
- package/esm2022/select/public-api.mjs +5 -0
- package/esm2022/select/select-portal.component.mjs +110 -0
- package/esm2022/select/select.component.mjs +604 -0
- package/esm2022/select/select.module.mjs +58 -0
- package/esm2022/select/select.property.mjs +129 -0
- package/esm2022/skeleton/ng-nest-ui-skeleton.mjs +5 -0
- package/esm2022/skeleton/public-api.mjs +4 -0
- package/esm2022/skeleton/skeleton.component.mjs +38 -0
- package/esm2022/skeleton/skeleton.module.mjs +21 -0
- package/esm2022/skeleton/skeleton.property.mjs +53 -0
- package/esm2022/slider/ng-nest-ui-slider.mjs +5 -0
- package/esm2022/slider/public-api.mjs +4 -0
- package/esm2022/slider/slider.component.mjs +248 -0
- package/esm2022/slider/slider.module.mjs +24 -0
- package/esm2022/slider/slider.property.mjs +117 -0
- package/esm2022/slider-select/ng-nest-ui-slider-select.mjs +5 -0
- package/esm2022/slider-select/public-api.mjs +4 -0
- package/esm2022/slider-select/slider-select.component.mjs +172 -0
- package/esm2022/slider-select/slider-select.module.mjs +24 -0
- package/esm2022/slider-select/slider-select.property.mjs +98 -0
- package/esm2022/statistic/countdown.component.mjs +69 -0
- package/esm2022/statistic/ng-nest-ui-statistic.mjs +5 -0
- package/esm2022/statistic/public-api.mjs +5 -0
- package/esm2022/statistic/statistic.component.mjs +34 -0
- package/esm2022/statistic/statistic.module.mjs +23 -0
- package/esm2022/statistic/statistic.property.mjs +74 -0
- package/esm2022/steps/ng-nest-ui-steps.mjs +5 -0
- package/esm2022/steps/public-api.mjs +4 -0
- package/esm2022/steps/steps.component.mjs +85 -0
- package/esm2022/steps/steps.module.mjs +22 -0
- package/esm2022/steps/steps.property.mjs +72 -0
- package/esm2022/switch/ng-nest-ui-switch.mjs +5 -0
- package/esm2022/switch/public-api.mjs +4 -0
- package/esm2022/switch/switch.component.mjs +57 -0
- package/esm2022/switch/switch.module.mjs +24 -0
- package/esm2022/switch/switch.property.mjs +57 -0
- package/esm2022/table/drag.directive.mjs +78 -0
- package/esm2022/table/ng-nest-ui-table.mjs +5 -0
- package/esm2022/table/public-api.mjs +8 -0
- package/esm2022/table/table-body.component.mjs +216 -0
- package/esm2022/table/table-foot.component.mjs +37 -0
- package/esm2022/table/table-head.component.mjs +186 -0
- package/esm2022/table/table.component.mjs +364 -0
- package/esm2022/table/table.module.mjs +84 -0
- package/esm2022/table/table.property.mjs +546 -0
- package/esm2022/tabs/ng-nest-ui-tabs.mjs +5 -0
- package/esm2022/tabs/public-api.mjs +7 -0
- package/esm2022/tabs/tab-content.component.mjs +23 -0
- package/esm2022/tabs/tab-link.directive.mjs +46 -0
- package/esm2022/tabs/tab.component.mjs +28 -0
- package/esm2022/tabs/tabs.component.mjs +195 -0
- package/esm2022/tabs/tabs.module.mjs +40 -0
- package/esm2022/tabs/tabs.property.mjs +149 -0
- package/esm2022/tag/ng-nest-ui-tag.mjs +5 -0
- package/esm2022/tag/public-api.mjs +4 -0
- package/esm2022/tag/tag.component.mjs +70 -0
- package/esm2022/tag/tag.module.mjs +22 -0
- package/esm2022/tag/tag.property.mjs +105 -0
- package/esm2022/text-retract/ng-nest-ui-text-retract.mjs +5 -0
- package/esm2022/text-retract/public-api.mjs +4 -0
- package/esm2022/text-retract/text-retract.component.mjs +63 -0
- package/esm2022/text-retract/text-retract.module.mjs +23 -0
- package/esm2022/text-retract/text-retract.property.mjs +32 -0
- package/esm2022/textarea/ng-nest-ui-textarea.mjs +5 -0
- package/esm2022/textarea/public-api.mjs +4 -0
- package/esm2022/textarea/textarea.component.mjs +104 -0
- package/esm2022/textarea/textarea.module.mjs +23 -0
- package/esm2022/textarea/textarea.property.mjs +75 -0
- package/esm2022/theme/ng-nest-ui-theme.mjs +5 -0
- package/esm2022/theme/public-api.mjs +4 -0
- package/esm2022/theme/theme.component.mjs +164 -0
- package/esm2022/theme/theme.module.mjs +53 -0
- package/esm2022/theme/theme.property.mjs +75 -0
- package/esm2022/time-ago/ng-nest-ui-time-ago.mjs +5 -0
- package/esm2022/time-ago/public-api.mjs +4 -0
- package/esm2022/time-ago/time-ago.module.mjs +19 -0
- package/esm2022/time-ago/time-ago.pipe.mjs +70 -0
- package/esm2022/time-ago/time-ago.property.mjs +7 -0
- package/esm2022/time-picker/ng-nest-ui-time-picker.mjs +5 -0
- package/esm2022/time-picker/public-api.mjs +6 -0
- package/esm2022/time-picker/time-picker-frame.component.mjs +325 -0
- package/esm2022/time-picker/time-picker-portal.component.mjs +77 -0
- package/esm2022/time-picker/time-picker.component.mjs +273 -0
- package/esm2022/time-picker/time-picker.module.mjs +59 -0
- package/esm2022/time-picker/time-picker.property.mjs +111 -0
- package/esm2022/time-range/ng-nest-ui-time-range.mjs +5 -0
- package/esm2022/time-range/public-api.mjs +4 -0
- package/esm2022/time-range/time-range.module.mjs +17 -0
- package/esm2022/time-range/time-range.pipe.mjs +45 -0
- package/esm2022/time-range/time-range.property.mjs +7 -0
- package/esm2022/timeline/ng-nest-ui-timeline.mjs +5 -0
- package/esm2022/timeline/public-api.mjs +4 -0
- package/esm2022/timeline/timeline.component.mjs +73 -0
- package/esm2022/timeline/timeline.module.mjs +24 -0
- package/esm2022/timeline/timeline.property.mjs +51 -0
- package/esm2022/tooltip/ng-nest-ui-tooltip.mjs +5 -0
- package/esm2022/tooltip/public-api.mjs +5 -0
- package/esm2022/tooltip/tooltip-portal.component.mjs +106 -0
- package/esm2022/tooltip/tooltip.directive.mjs +142 -0
- package/esm2022/tooltip/tooltip.module.mjs +22 -0
- package/esm2022/tooltip/tooltip.property.mjs +81 -0
- package/esm2022/transfer/ng-nest-ui-transfer.mjs +5 -0
- package/esm2022/transfer/public-api.mjs +4 -0
- package/esm2022/transfer/transfer.component.mjs +604 -0
- package/esm2022/transfer/transfer.module.mjs +70 -0
- package/esm2022/transfer/transfer.property.mjs +105 -0
- package/esm2022/tree/ng-nest-ui-tree.mjs +5 -0
- package/esm2022/tree/public-api.mjs +5 -0
- package/esm2022/tree/tree-node.component.mjs +274 -0
- package/esm2022/tree/tree.component.mjs +555 -0
- package/esm2022/tree/tree.module.mjs +55 -0
- package/esm2022/tree/tree.property.mjs +337 -0
- package/esm2022/tree/tree.service.mjs +78 -0
- package/esm2022/tree-file/ng-nest-ui-tree-file.mjs +5 -0
- package/esm2022/tree-file/public-api.mjs +4 -0
- package/esm2022/tree-file/tree-file.component.mjs +125 -0
- package/esm2022/tree-file/tree-file.module.mjs +26 -0
- package/esm2022/tree-file/tree-file.property.mjs +102 -0
- package/esm2022/tree-select/ng-nest-ui-tree-select.mjs +5 -0
- package/esm2022/tree-select/public-api.mjs +5 -0
- package/esm2022/tree-select/tree-select-portal.component.mjs +111 -0
- package/esm2022/tree-select/tree-select.component.mjs +634 -0
- package/esm2022/tree-select/tree-select.module.mjs +66 -0
- package/esm2022/tree-select/tree-select.property.mjs +160 -0
- package/esm2022/typography/ng-nest-ui-typography.mjs +5 -0
- package/esm2022/typography/public-api.mjs +4 -0
- package/esm2022/typography/typography.component.mjs +25 -0
- package/esm2022/typography/typography.module.mjs +20 -0
- package/esm2022/typography/typography.property.mjs +34 -0
- package/esm2022/upload/ng-nest-ui-upload.mjs +5 -0
- package/esm2022/upload/public-api.mjs +5 -0
- package/esm2022/upload/upload-portal.component.mjs +201 -0
- package/esm2022/upload/upload.component.mjs +254 -0
- package/esm2022/upload/upload.module.mjs +66 -0
- package/esm2022/upload/upload.property.mjs +114 -0
- package/examples/examples.component.d.ts +9 -9
- package/examples/examples.module.d.ts +8 -8
- package/examples/examples.property.d.ts +6 -6
- package/examples/index.d.ts +5 -5
- package/examples/public-api.d.ts +3 -3
- package/fesm2022/ng-nest-ui-affix.mjs +69 -0
- package/fesm2022/ng-nest-ui-affix.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-alert.mjs +245 -0
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-anchor.mjs +257 -0
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-api.mjs +47 -0
- package/fesm2022/ng-nest-ui-api.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-auto-complete.mjs +488 -0
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-avatar.mjs +222 -0
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-back-top.mjs +182 -0
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-badge.mjs +154 -0
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-base-form.mjs +234 -0
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-border.mjs +45 -0
- package/fesm2022/ng-nest-ui-border.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-button.mjs +271 -0
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-calendar.mjs +214 -0
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-card.mjs +91 -0
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-carousel.mjs +344 -0
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-cascade.mjs +453 -0
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-checkbox.mjs +229 -0
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-collapse.mjs +209 -0
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-color-picker.mjs +682 -0
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-color.mjs +109 -0
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-comment.mjs +275 -0
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-container.mjs +300 -0
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-core.mjs +1669 -0
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-crumb.mjs +122 -0
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-date-picker.mjs +3162 -0
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-description.mjs +201 -0
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-dialog.mjs +1039 -0
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-doc.mjs +45 -0
- package/fesm2022/ng-nest-ui-doc.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-drawer.mjs +465 -0
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-dropdown.mjs +484 -0
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-empty.mjs +88 -0
- package/fesm2022/ng-nest-ui-empty.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-examples.mjs +45 -0
- package/fesm2022/ng-nest-ui-examples.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-find.mjs +689 -0
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-form.mjs +583 -0
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-highlight.mjs +147 -0
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-i18n.mjs +6379 -0
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-icon.mjs +330 -0
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-image.mjs +347 -0
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-inner.mjs +77 -0
- package/fesm2022/ng-nest-ui-inner.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-input-number.mjs +233 -0
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-input.mjs +438 -0
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-keyword.mjs +125 -0
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-layout.mjs +223 -0
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-link.mjs +132 -0
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-list.mjs +796 -0
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-loading.mjs +174 -0
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-menu.mjs +369 -0
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-message-box.mjs +237 -0
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-message.mjs +231 -0
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-notification.mjs +176 -0
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-outlet.mjs +103 -0
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-page-header.mjs +107 -0
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-pagination.mjs +356 -0
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-pattern.mjs +45 -0
- package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-popconfirm.mjs +183 -0
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-popover.mjs +407 -0
- package/fesm2022/ng-nest-ui-popover.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-portal.mjs +233 -0
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-progress.mjs +355 -0
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-radio.mjs +212 -0
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-rate.mjs +186 -0
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-resizable.mjs +378 -0
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-result.mjs +90 -0
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-ripple.mjs +120 -0
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-select.mjs +883 -0
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-skeleton.mjs +108 -0
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-slider-select.mjs +287 -0
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-slider.mjs +385 -0
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-statistic.mjs +188 -0
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-steps.mjs +175 -0
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-switch.mjs +132 -0
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-table.mjs +1461 -0
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-tabs.mjs +455 -0
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-tag.mjs +193 -0
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-text-retract.mjs +114 -0
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-textarea.mjs +196 -0
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-theme.mjs +285 -0
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-time-ago.mjs +97 -0
- package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-time-picker.mjs +814 -0
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-time-range.mjs +70 -0
- package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-timeline.mjs +144 -0
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-tooltip.mjs +337 -0
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-transfer.mjs +772 -0
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-tree-file.mjs +248 -0
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-tree-select.mjs +953 -0
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-tree.mjs +1275 -0
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-typography.mjs +76 -0
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-upload.mjs +618 -0
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -0
- package/fesm2022/ng-nest-ui.mjs +94 -0
- package/find/find.component.d.ts +63 -63
- package/find/find.module.d.ts +19 -19
- package/find/find.property.d.ts +432 -432
- package/find/index.d.ts +5 -5
- package/find/public-api.d.ts +3 -3
- package/form/control.component.d.ts +33 -33
- package/form/form.component.d.ts +30 -30
- package/form/form.module.d.ts +31 -31
- package/form/form.property.d.ts +403 -403
- package/form/index.d.ts +5 -5
- package/form/public-api.d.ts +4 -4
- package/highlight/highlight.component.d.ts +24 -24
- package/highlight/highlight.module.d.ts +10 -10
- package/highlight/highlight.property.d.ts +43 -43
- package/highlight/index.d.ts +5 -5
- package/highlight/public-api.d.ts +3 -3
- package/i18n/i18n.directive.d.ts +15 -15
- package/i18n/i18n.module.d.ts +8 -8
- package/i18n/i18n.pipe.d.ts +12 -12
- package/i18n/i18n.property.d.ts +185 -185
- package/i18n/i18n.service.d.ts +16 -16
- package/i18n/index.d.ts +5 -5
- package/i18n/languages/ar_EG.d.ts +118 -118
- package/i18n/languages/bg_BG.d.ts +118 -118
- package/i18n/languages/ca_ES.d.ts +118 -118
- package/i18n/languages/cs_CZ.d.ts +118 -118
- package/i18n/languages/da_DK.d.ts +118 -118
- package/i18n/languages/de_DE.d.ts +118 -118
- package/i18n/languages/el_GR.d.ts +118 -118
- package/i18n/languages/en_GB.d.ts +172 -172
- package/i18n/languages/en_US.d.ts +172 -172
- package/i18n/languages/es_ES.d.ts +118 -118
- package/i18n/languages/et_EE.d.ts +118 -118
- package/i18n/languages/fa_IR.d.ts +118 -118
- package/i18n/languages/fi_FI.d.ts +118 -118
- package/i18n/languages/fr_BE.d.ts +118 -118
- package/i18n/languages/fr_FR.d.ts +118 -118
- package/i18n/languages/he_IL.d.ts +118 -118
- package/i18n/languages/hi_IN.d.ts +118 -118
- package/i18n/languages/hr_HR.d.ts +118 -118
- package/i18n/languages/hu_HU.d.ts +118 -118
- package/i18n/languages/hy_AM.d.ts +118 -118
- package/i18n/languages/id_ID.d.ts +118 -118
- package/i18n/languages/is_IS.d.ts +118 -118
- package/i18n/languages/it_IT.d.ts +118 -118
- package/i18n/languages/ja_JP.d.ts +118 -118
- package/i18n/languages/ka_GE.d.ts +118 -118
- package/i18n/languages/kn_IN.d.ts +118 -118
- package/i18n/languages/ko_KR.d.ts +118 -118
- package/i18n/languages/ku_IQ.d.ts +118 -118
- package/i18n/languages/lv_LV.d.ts +118 -118
- package/i18n/languages/mn_MN.d.ts +118 -118
- package/i18n/languages/ms_MY.d.ts +118 -118
- package/i18n/languages/nb_NO.d.ts +118 -118
- package/i18n/languages/ne_NP.d.ts +118 -118
- package/i18n/languages/nl_BE.d.ts +118 -118
- package/i18n/languages/nl_NL.d.ts +118 -118
- package/i18n/languages/pl_PL.d.ts +118 -118
- package/i18n/languages/pt_BR.d.ts +118 -118
- package/i18n/languages/pt_PT.d.ts +118 -118
- package/i18n/languages/ro_RO.d.ts +118 -118
- package/i18n/languages/ru_RU.d.ts +118 -118
- package/i18n/languages/sk_SK.d.ts +118 -118
- package/i18n/languages/sl_SI.d.ts +118 -118
- package/i18n/languages/sr_RS.d.ts +118 -118
- package/i18n/languages/sv_SE.d.ts +118 -118
- package/i18n/languages/ta_IN.d.ts +118 -118
- package/i18n/languages/th_TH.d.ts +118 -118
- package/i18n/languages/tr_TR.d.ts +118 -118
- package/i18n/languages/uk_UA.d.ts +118 -118
- package/i18n/languages/vi_VN.d.ts +118 -118
- package/i18n/languages/zh_CN.d.ts +171 -171
- package/i18n/languages/zh_TW.d.ts +171 -171
- package/i18n/public-api.d.ts +56 -56
- package/icon/icon.component.d.ts +37 -37
- package/icon/icon.module.d.ts +9 -9
- package/icon/icon.property.d.ts +51 -51
- package/icon/icon.service.d.ts +30 -30
- package/icon/index.d.ts +5 -5
- package/icon/public-api.d.ts +4 -4
- package/image/image-group.component.d.ts +9 -9
- package/image/image-preview.component.d.ts +40 -40
- package/image/image.component.d.ts +30 -30
- package/image/image.module.d.ts +17 -17
- package/image/image.property.d.ts +112 -112
- package/image/index.d.ts +5 -5
- package/image/public-api.d.ts +5 -5
- package/index.d.ts +106 -106
- package/inner/index.d.ts +5 -5
- package/inner/inner.component.d.ts +16 -16
- package/inner/inner.module.d.ts +9 -9
- package/inner/inner.property.d.ts +20 -20
- package/inner/public-api.d.ts +3 -3
- package/input/index.d.ts +5 -5
- package/input/input-group.component.d.ts +13 -13
- package/input/input.component.d.ts +46 -46
- package/input/input.module.d.ts +14 -14
- package/input/input.property.d.ts +263 -263
- package/input/public-api.d.ts +4 -4
- package/input-number/index.d.ts +5 -5
- package/input-number/input-number.component.d.ts +33 -33
- package/input-number/input-number.module.d.ts +13 -13
- package/input-number/input-number.property.d.ts +93 -93
- package/input-number/public-api.d.ts +3 -3
- package/keyword/index.d.ts +5 -5
- package/keyword/keyword.directive.d.ts +19 -19
- package/keyword/keyword.module.d.ts +9 -9
- package/keyword/keyword.property.d.ts +40 -40
- package/keyword/public-api.d.ts +3 -3
- package/layout/col.component.d.ts +19 -19
- package/layout/index.d.ts +5 -5
- package/layout/layout.module.d.ts +10 -10
- package/layout/layout.property.d.ts +78 -78
- package/layout/public-api.d.ts +4 -4
- package/layout/row.component.d.ts +15 -15
- package/link/index.d.ts +5 -5
- package/link/link.component.d.ts +21 -21
- package/link/link.module.d.ts +12 -12
- package/link/link.property.d.ts +60 -60
- package/link/public-api.d.ts +3 -3
- package/list/index.d.ts +5 -5
- package/list/list-drop-group.directive.d.ts +15 -15
- package/list/list-option.component.d.ts +20 -20
- package/list/list.component.d.ts +71 -71
- package/list/list.module.d.ts +21 -21
- package/list/list.property.d.ts +290 -290
- package/list/public-api.d.ts +5 -5
- package/loading/index.d.ts +5 -5
- package/loading/loading.component.d.ts +26 -26
- package/loading/loading.module.d.ts +12 -12
- package/loading/loading.property.d.ts +55 -55
- package/loading/public-api.d.ts +3 -3
- package/menu/index.d.ts +5 -5
- package/menu/menu-node.component.d.ts +14 -14
- package/menu/menu.component.d.ts +40 -40
- package/menu/menu.module.d.ts +14 -14
- package/menu/menu.property.d.ts +155 -155
- package/menu/public-api.d.ts +4 -4
- package/message/index.d.ts +5 -5
- package/message/message-ref.d.ts +9 -8
- package/message/message.component.d.ts +19 -19
- package/message/message.module.d.ts +10 -10
- package/message/message.property.d.ts +138 -138
- package/message/message.service.d.ts +28 -28
- package/message/public-api.d.ts +5 -5
- package/message-box/index.d.ts +5 -5
- package/message-box/message-box.component.d.ts +30 -30
- package/message-box/message-box.module.d.ts +16 -16
- package/message-box/message-box.property.d.ts +154 -154
- package/message-box/message-box.service.d.ts +20 -20
- package/message-box/public-api.d.ts +4 -4
- package/notification/index.d.ts +5 -5
- package/notification/notification.component.d.ts +19 -19
- package/notification/notification.module.d.ts +10 -10
- package/notification/notification.property.d.ts +96 -96
- package/notification/notification.service.d.ts +22 -22
- package/notification/public-api.d.ts +4 -4
- package/outlet/index.d.ts +5 -5
- package/outlet/outlet.directive.d.ts +15 -15
- package/outlet/outlet.module.d.ts +8 -8
- package/outlet/outlet.property.d.ts +6 -6
- package/outlet/public-api.d.ts +3 -3
- package/package.json +287 -464
- package/page-header/index.d.ts +5 -5
- package/page-header/page-header.component.d.ts +18 -18
- package/page-header/page-header.module.d.ts +10 -10
- package/page-header/page-header.property.d.ts +40 -40
- package/page-header/public-api.d.ts +3 -3
- package/pagination/index.d.ts +5 -5
- package/pagination/pagination.component.d.ts +38 -38
- package/pagination/pagination.module.d.ts +15 -15
- package/pagination/pagination.property.d.ts +157 -157
- package/pagination/public-api.d.ts +3 -3
- package/pattern/index.d.ts +5 -5
- package/pattern/pattern.component.d.ts +9 -9
- package/pattern/pattern.module.d.ts +8 -8
- package/pattern/pattern.property.d.ts +6 -6
- package/pattern/public-api.d.ts +3 -3
- package/popconfirm/index.d.ts +5 -5
- package/popconfirm/popconfirm.component.d.ts +27 -27
- package/popconfirm/popconfirm.module.d.ts +13 -13
- package/popconfirm/popconfirm.property.d.ts +83 -83
- package/popconfirm/public-api.d.ts +3 -3
- package/popover/index.d.ts +5 -5
- package/popover/popover-portal.component.d.ts +41 -41
- package/popover/popover.directive.d.ts +41 -40
- package/popover/popover.module.d.ts +12 -12
- package/popover/popover.property.d.ts +94 -84
- package/popover/public-api.d.ts +4 -4
- package/portal/index.d.ts +5 -5
- package/portal/portal.module.d.ts +8 -8
- package/portal/portal.property.d.ts +76 -76
- package/portal/portal.service.d.ts +81 -81
- package/portal/public-api.d.ts +3 -3
- package/progress/index.d.ts +5 -5
- package/progress/progress.component.d.ts +48 -48
- package/progress/progress.module.d.ts +11 -11
- package/progress/progress.property.d.ts +138 -138
- package/progress/public-api.d.ts +3 -3
- package/radio/index.d.ts +5 -5
- package/radio/public-api.d.ts +3 -3
- package/radio/radio.component.d.ts +29 -29
- package/radio/radio.module.d.ts +14 -14
- package/radio/radio.property.d.ts +149 -149
- package/rate/index.d.ts +5 -5
- package/rate/public-api.d.ts +3 -3
- package/rate/rate.component.d.ts +31 -31
- package/rate/rate.module.d.ts +13 -13
- package/rate/rate.property.d.ts +65 -65
- package/resizable/index.d.ts +5 -5
- package/resizable/public-api.d.ts +3 -3
- package/resizable/resizable.directive.d.ts +54 -54
- package/resizable/resizable.module.d.ts +8 -8
- package/resizable/resizable.property.d.ts +97 -97
- package/result/index.d.ts +5 -5
- package/result/public-api.d.ts +3 -3
- package/result/result.component.d.ts +16 -16
- package/result/result.module.d.ts +11 -11
- package/result/result.property.d.ts +40 -40
- package/ripple/index.d.ts +5 -5
- package/ripple/public-api.d.ts +3 -3
- package/ripple/ripple.directive.d.ts +17 -17
- package/ripple/ripple.module.d.ts +9 -9
- package/ripple/ripple.property.d.ts +30 -30
- package/select/index.d.ts +5 -5
- package/select/public-api.d.ts +4 -4
- package/select/select-portal.component.d.ts +61 -61
- package/select/select.component.d.ts +103 -103
- package/select/select.module.d.ts +18 -18
- package/select/select.property.d.ts +181 -181
- package/skeleton/index.d.ts +5 -5
- package/skeleton/public-api.d.ts +3 -3
- package/skeleton/skeleton.component.d.ts +16 -16
- package/skeleton/skeleton.module.d.ts +10 -10
- package/skeleton/skeleton.property.d.ts +107 -107
- package/slider/index.d.ts +5 -5
- package/slider/public-api.d.ts +3 -3
- package/slider/slider.component.d.ts +56 -56
- package/slider/slider.module.d.ts +13 -13
- package/slider/slider.property.d.ts +107 -107
- package/slider-select/index.d.ts +5 -5
- package/slider-select/public-api.d.ts +3 -3
- package/slider-select/slider-select.component.d.ts +44 -44
- package/slider-select/slider-select.module.d.ts +13 -13
- package/slider-select/slider-select.property.d.ts +104 -104
- package/statistic/countdown.component.d.ts +23 -23
- package/statistic/index.d.ts +5 -5
- package/statistic/public-api.d.ts +4 -4
- package/statistic/statistic.component.d.ts +14 -14
- package/statistic/statistic.module.d.ts +12 -12
- package/statistic/statistic.property.d.ts +64 -64
- package/steps/index.d.ts +5 -5
- package/steps/public-api.d.ts +3 -3
- package/steps/steps.component.d.ts +25 -25
- package/steps/steps.module.d.ts +11 -11
- package/steps/steps.property.d.ts +77 -77
- package/switch/index.d.ts +5 -5
- package/switch/public-api.d.ts +3 -3
- package/switch/switch.component.d.ts +19 -19
- package/switch/switch.module.d.ts +13 -13
- package/switch/switch.property.d.ts +67 -67
- package/table/drag.directive.d.ts +27 -27
- package/table/index.d.ts +5 -5
- package/table/public-api.d.ts +7 -7
- package/table/table-body.component.d.ts +40 -40
- package/table/table-foot.component.d.ts +16 -16
- package/table/table-head.component.d.ts +52 -52
- package/table/table.component.d.ts +90 -90
- package/table/table.module.d.ts +23 -23
- package/table/table.property.d.ts +825 -825
- package/tabs/index.d.ts +5 -5
- package/tabs/public-api.d.ts +6 -6
- package/tabs/tab-content.component.d.ts +12 -12
- package/tabs/tab-link.directive.d.ts +17 -17
- package/tabs/tab.component.d.ts +14 -14
- package/tabs/tabs.component.d.ts +44 -44
- package/tabs/tabs.module.d.ts +15 -15
- package/tabs/tabs.property.d.ts +153 -153
- package/tag/index.d.ts +5 -5
- package/tag/public-api.d.ts +3 -3
- package/tag/tag.component.d.ts +22 -22
- package/tag/tag.module.d.ts +11 -11
- package/tag/tag.property.d.ts +78 -78
- package/text-retract/index.d.ts +5 -5
- package/text-retract/public-api.d.ts +3 -3
- package/text-retract/text-retract.component.d.ts +24 -24
- package/text-retract/text-retract.module.d.ts +12 -12
- package/text-retract/text-retract.property.d.ts +25 -25
- package/textarea/index.d.ts +5 -5
- package/textarea/public-api.d.ts +3 -3
- package/textarea/textarea.component.d.ts +33 -33
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.property.d.ts +105 -105
- package/theme/index.d.ts +5 -5
- package/theme/public-api.d.ts +3 -3
- package/theme/theme.component.d.ts +37 -37
- package/theme/theme.module.d.ts +16 -16
- package/theme/theme.property.d.ts +53 -53
- package/time-ago/index.d.ts +5 -5
- package/time-ago/public-api.d.ts +3 -3
- package/time-ago/time-ago.module.d.ts +7 -7
- package/time-ago/time-ago.pipe.d.ts +16 -16
- package/time-ago/time-ago.property.d.ts +6 -6
- package/time-picker/index.d.ts +5 -5
- package/time-picker/public-api.d.ts +5 -5
- package/time-picker/time-picker-frame.component.d.ts +61 -61
- package/time-picker/time-picker-portal.component.d.ts +42 -42
- package/time-picker/time-picker.component.d.ts +66 -66
- package/time-picker/time-picker.module.d.ts +19 -19
- package/time-picker/time-picker.property.d.ts +157 -157
- package/time-range/index.d.ts +5 -5
- package/time-range/public-api.d.ts +3 -3
- package/time-range/time-range.module.d.ts +7 -7
- package/time-range/time-range.pipe.d.ts +10 -10
- package/time-range/time-range.property.d.ts +6 -6
- package/timeline/index.d.ts +5 -5
- package/timeline/public-api.d.ts +3 -3
- package/timeline/timeline.component.d.ts +22 -22
- package/timeline/timeline.module.d.ts +13 -13
- package/timeline/timeline.property.d.ts +96 -96
- package/tooltip/index.d.ts +5 -5
- package/tooltip/public-api.d.ts +4 -4
- package/tooltip/tooltip-portal.component.d.ts +38 -38
- package/tooltip/tooltip.directive.d.ts +34 -33
- package/tooltip/tooltip.module.d.ts +11 -11
- package/tooltip/tooltip.property.d.ts +77 -66
- package/transfer/index.d.ts +5 -5
- package/transfer/public-api.d.ts +3 -3
- package/transfer/transfer.component.d.ts +72 -72
- package/transfer/transfer.module.d.ts +21 -21
- package/transfer/transfer.property.d.ts +211 -211
- package/tree/index.d.ts +5 -5
- package/tree/public-api.d.ts +4 -4
- package/tree/tree-node.component.d.ts +61 -61
- package/tree/tree.component.d.ts +75 -75
- package/tree/tree.module.d.ts +18 -18
- package/tree/tree.property.d.ts +378 -378
- package/tree/tree.service.d.ts +10 -10
- package/tree-file/index.d.ts +5 -5
- package/tree-file/public-api.d.ts +3 -3
- package/tree-file/tree-file.component.d.ts +31 -31
- package/tree-file/tree-file.module.d.ts +15 -15
- package/tree-file/tree-file.property.d.ts +114 -114
- package/tree-select/index.d.ts +5 -5
- package/tree-select/public-api.d.ts +4 -4
- package/tree-select/tree-select-portal.component.d.ts +63 -63
- package/tree-select/tree-select.component.d.ts +101 -101
- package/tree-select/tree-select.module.d.ts +20 -20
- package/tree-select/tree-select.property.d.ts +207 -207
- package/typography/index.d.ts +5 -5
- package/typography/public-api.d.ts +3 -3
- package/typography/typography.component.d.ts +12 -12
- package/typography/typography.module.d.ts +9 -9
- package/typography/typography.property.d.ts +25 -25
- package/upload/index.d.ts +5 -5
- package/upload/public-api.d.ts +4 -4
- package/upload/upload-portal.component.d.ts +50 -50
- package/upload/upload.component.d.ts +48 -48
- package/upload/upload.module.d.ts +20 -20
- package/upload/upload.property.d.ts +159 -159
- package/esm2020/affix/affix.component.mjs +0 -17
- package/esm2020/affix/affix.module.mjs +0 -19
- package/esm2020/affix/affix.property.mjs +0 -33
- package/esm2020/affix/ng-nest-ui-affix.mjs +0 -5
- package/esm2020/affix/public-api.mjs +0 -4
- package/esm2020/alert/alert.component.mjs +0 -75
- package/esm2020/alert/alert.module.mjs +0 -24
- package/esm2020/alert/alert.property.mjs +0 -147
- package/esm2020/alert/ng-nest-ui-alert.mjs +0 -5
- package/esm2020/alert/public-api.mjs +0 -4
- package/esm2020/anchor/anchor-inner.component.mjs +0 -17
- package/esm2020/anchor/anchor.component.mjs +0 -167
- package/esm2020/anchor/anchor.module.mjs +0 -22
- package/esm2020/anchor/anchor.property.mjs +0 -57
- package/esm2020/anchor/ng-nest-ui-anchor.mjs +0 -5
- package/esm2020/anchor/public-api.mjs +0 -5
- package/esm2020/api/api.component.mjs +0 -19
- package/esm2020/api/api.module.mjs +0 -18
- package/esm2020/api/api.property.mjs +0 -7
- package/esm2020/api/ng-nest-ui-api.mjs +0 -5
- package/esm2020/api/public-api.mjs +0 -4
- package/esm2020/auto-complete/auto-complete-portal.component.mjs +0 -85
- package/esm2020/auto-complete/auto-complete.component.mjs +0 -305
- package/esm2020/auto-complete/auto-complete.module.mjs +0 -25
- package/esm2020/auto-complete/auto-complete.property.mjs +0 -85
- package/esm2020/auto-complete/ng-nest-ui-auto-complete.mjs +0 -5
- package/esm2020/auto-complete/public-api.mjs +0 -5
- package/esm2020/avatar/avatar-group.component.mjs +0 -19
- package/esm2020/avatar/avatar.component.mjs +0 -115
- package/esm2020/avatar/avatar.module.mjs +0 -22
- package/esm2020/avatar/avatar.property.mjs +0 -72
- package/esm2020/avatar/ng-nest-ui-avatar.mjs +0 -5
- package/esm2020/avatar/public-api.mjs +0 -5
- package/esm2020/back-top/back-top.component.mjs +0 -121
- package/esm2020/back-top/back-top.module.mjs +0 -21
- package/esm2020/back-top/back-top.property.mjs +0 -42
- package/esm2020/back-top/ng-nest-ui-back-top.mjs +0 -5
- package/esm2020/back-top/public-api.mjs +0 -4
- package/esm2020/badge/badge.component.mjs +0 -73
- package/esm2020/badge/badge.module.mjs +0 -19
- package/esm2020/badge/badge.property.mjs +0 -60
- package/esm2020/badge/ng-nest-ui-badge.mjs +0 -5
- package/esm2020/badge/public-api.mjs +0 -4
- package/esm2020/base-form/base-form.component.mjs +0 -86
- package/esm2020/base-form/base-form.module.mjs +0 -17
- package/esm2020/base-form/base-form.property.mjs +0 -132
- package/esm2020/base-form/ng-nest-ui-base-form.mjs +0 -5
- package/esm2020/base-form/public-api.mjs +0 -4
- package/esm2020/border/border.component.mjs +0 -19
- package/esm2020/border/border.module.mjs +0 -16
- package/esm2020/border/border.property.mjs +0 -7
- package/esm2020/border/ng-nest-ui-border.mjs +0 -5
- package/esm2020/border/public-api.mjs +0 -4
- package/esm2020/button/button.component.mjs +0 -79
- package/esm2020/button/button.module.mjs +0 -22
- package/esm2020/button/button.property.mjs +0 -136
- package/esm2020/button/buttons.component.mjs +0 -41
- package/esm2020/button/ng-nest-ui-button.mjs +0 -5
- package/esm2020/button/public-api.mjs +0 -5
- package/esm2020/calendar/calendar.component.mjs +0 -134
- package/esm2020/calendar/calendar.module.mjs +0 -26
- package/esm2020/calendar/calendar.property.mjs +0 -56
- package/esm2020/calendar/ng-nest-ui-calendar.mjs +0 -5
- package/esm2020/calendar/public-api.mjs +0 -4
- package/esm2020/card/card.component.mjs +0 -29
- package/esm2020/card/card.module.mjs +0 -21
- package/esm2020/card/card.property.mjs +0 -42
- package/esm2020/card/ng-nest-ui-card.mjs +0 -5
- package/esm2020/card/public-api.mjs +0 -4
- package/esm2020/carousel/carousel-panel.component.mjs +0 -132
- package/esm2020/carousel/carousel.component.mjs +0 -89
- package/esm2020/carousel/carousel.module.mjs +0 -21
- package/esm2020/carousel/carousel.property.mjs +0 -112
- package/esm2020/carousel/ng-nest-ui-carousel.mjs +0 -5
- package/esm2020/carousel/public-api.mjs +0 -5
- package/esm2020/cascade/cascade-portal.component.mjs +0 -124
- package/esm2020/cascade/cascade.component.mjs +0 -238
- package/esm2020/cascade/cascade.module.mjs +0 -25
- package/esm2020/cascade/cascade.property.mjs +0 -78
- package/esm2020/cascade/ng-nest-ui-cascade.mjs +0 -5
- package/esm2020/cascade/public-api.mjs +0 -5
- package/esm2020/checkbox/checkbox.component.mjs +0 -121
- package/esm2020/checkbox/checkbox.module.mjs +0 -24
- package/esm2020/checkbox/checkbox.property.mjs +0 -87
- package/esm2020/checkbox/ng-nest-ui-checkbox.mjs +0 -5
- package/esm2020/checkbox/public-api.mjs +0 -4
- package/esm2020/collapse/collapse-panel.component.mjs +0 -48
- package/esm2020/collapse/collapse.component.mjs +0 -47
- package/esm2020/collapse/collapse.module.mjs +0 -22
- package/esm2020/collapse/collapse.property.mjs +0 -99
- package/esm2020/collapse/ng-nest-ui-collapse.mjs +0 -5
- package/esm2020/collapse/public-api.mjs +0 -5
- package/esm2020/color/color.component.mjs +0 -41
- package/esm2020/color/color.module.mjs +0 -19
- package/esm2020/color/color.property.mjs +0 -51
- package/esm2020/color/ng-nest-ui-color.mjs +0 -5
- package/esm2020/color/public-api.mjs +0 -4
- package/esm2020/color-picker/color-picker-portal.component.mjs +0 -389
- package/esm2020/color-picker/color-picker.component.mjs +0 -209
- package/esm2020/color-picker/color-picker.module.mjs +0 -53
- package/esm2020/color-picker/color-picker.property.mjs +0 -46
- package/esm2020/color-picker/ng-nest-ui-color-picker.mjs +0 -5
- package/esm2020/color-picker/public-api.mjs +0 -5
- package/esm2020/comment/comment-reply.component.mjs +0 -40
- package/esm2020/comment/comment.component.mjs +0 -79
- package/esm2020/comment/comment.module.mjs +0 -54
- package/esm2020/comment/comment.property.mjs +0 -113
- package/esm2020/comment/ng-nest-ui-comment.mjs +0 -5
- package/esm2020/comment/public-api.mjs +0 -5
- package/esm2020/container/aside.component.mjs +0 -26
- package/esm2020/container/container.component.mjs +0 -34
- package/esm2020/container/container.module.mjs +0 -50
- package/esm2020/container/container.property.mjs +0 -111
- package/esm2020/container/footer.component.mjs +0 -41
- package/esm2020/container/header.component.mjs +0 -41
- package/esm2020/container/main.component.mjs +0 -19
- package/esm2020/container/ng-nest-ui-container.mjs +0 -5
- package/esm2020/container/public-api.mjs +0 -8
- package/esm2020/core/animation/badge.mjs +0 -39
- package/esm2020/core/animation/connect.mjs +0 -113
- package/esm2020/core/animation/consts.mjs +0 -7
- package/esm2020/core/animation/drop.mjs +0 -9
- package/esm2020/core/animation/fade.mjs +0 -14
- package/esm2020/core/animation/move.mjs +0 -175
- package/esm2020/core/animation/opacity.mjs +0 -9
- package/esm2020/core/animation/public-api.mjs +0 -9
- package/esm2020/core/animation/slide.mjs +0 -35
- package/esm2020/core/config/config.mjs +0 -3
- package/esm2020/core/config/config.service.mjs +0 -97
- package/esm2020/core/config/public-api.mjs +0 -3
- package/esm2020/core/functions/chunk.mjs +0 -14
- package/esm2020/core/functions/clone-deep.mjs +0 -12
- package/esm2020/core/functions/convert.mjs +0 -118
- package/esm2020/core/functions/date.mjs +0 -147
- package/esm2020/core/functions/drop.mjs +0 -8
- package/esm2020/core/functions/flex.mjs +0 -21
- package/esm2020/core/functions/group-by.mjs +0 -10
- package/esm2020/core/functions/guid.mjs +0 -10
- package/esm2020/core/functions/has-in.mjs +0 -4
- package/esm2020/core/functions/order-by.mjs +0 -52
- package/esm2020/core/functions/parent-path.mjs +0 -10
- package/esm2020/core/functions/property.mjs +0 -12
- package/esm2020/core/functions/public-api.mjs +0 -15
- package/esm2020/core/functions/remove.mjs +0 -15
- package/esm2020/core/functions/resize.mjs +0 -20
- package/esm2020/core/interfaces/data.type.mjs +0 -34
- package/esm2020/core/interfaces/identify.type.mjs +0 -4
- package/esm2020/core/interfaces/index.mjs +0 -2
- package/esm2020/core/interfaces/layout.type.mjs +0 -2
- package/esm2020/core/interfaces/public-api.mjs +0 -5
- package/esm2020/core/interfaces/result-list.type.mjs +0 -2
- package/esm2020/core/ng-nest-ui-core.mjs +0 -5
- package/esm2020/core/public-api.mjs +0 -8
- package/esm2020/core/services/http.service.mjs +0 -87
- package/esm2020/core/services/preloading-strategy.service.mjs +0 -25
- package/esm2020/core/services/public-api.mjs +0 -6
- package/esm2020/core/services/repository.service.mjs +0 -29
- package/esm2020/core/services/reuse-strategy.service.mjs +0 -72
- package/esm2020/core/services/storage.service.mjs +0 -97
- package/esm2020/core/theme/index.mjs +0 -2
- package/esm2020/core/theme/public-api.mjs +0 -3
- package/esm2020/core/theme/theme.mjs +0 -45
- package/esm2020/core/theme/theme.service.mjs +0 -198
- package/esm2020/core/util/animation.mjs +0 -47
- package/esm2020/core/util/check.mjs +0 -7
- package/esm2020/core/util/computed-style.mjs +0 -12
- package/esm2020/core/util/host.mjs +0 -13
- package/esm2020/core/util/html.mjs +0 -11
- package/esm2020/core/util/index.mjs +0 -2
- package/esm2020/core/util/log.mjs +0 -7
- package/esm2020/core/util/option.mjs +0 -15
- package/esm2020/core/util/public-api.mjs +0 -8
- package/esm2020/crumb/crumb.component.mjs +0 -52
- package/esm2020/crumb/crumb.module.mjs +0 -21
- package/esm2020/crumb/crumb.property.mjs +0 -50
- package/esm2020/crumb/ng-nest-ui-crumb.mjs +0 -5
- package/esm2020/crumb/public-api.mjs +0 -4
- package/esm2020/date-picker/date-picker-portal.component.mjs +0 -192
- package/esm2020/date-picker/date-picker.component.mjs +0 -322
- package/esm2020/date-picker/date-picker.module.mjs +0 -118
- package/esm2020/date-picker/date-picker.property.mjs +0 -807
- package/esm2020/date-picker/date-quarter.pipe.mjs +0 -19
- package/esm2020/date-picker/date-range-portal.component.mjs +0 -340
- package/esm2020/date-picker/date-range.component.mjs +0 -450
- package/esm2020/date-picker/ng-nest-ui-date-picker.mjs +0 -5
- package/esm2020/date-picker/picker-date.component.mjs +0 -332
- package/esm2020/date-picker/picker-month.component.mjs +0 -234
- package/esm2020/date-picker/picker-quarter.component.mjs +0 -237
- package/esm2020/date-picker/picker-year.component.mjs +0 -219
- package/esm2020/date-picker/public-api.mjs +0 -12
- package/esm2020/description/description-item.component.mjs +0 -26
- package/esm2020/description/description.component.mjs +0 -64
- package/esm2020/description/description.module.mjs +0 -21
- package/esm2020/description/description.property.mjs +0 -96
- package/esm2020/description/ng-nest-ui-description.mjs +0 -5
- package/esm2020/description/public-api.mjs +0 -5
- package/esm2020/dialog/dialog-container.component.mjs +0 -29
- package/esm2020/dialog/dialog-portal.component.mjs +0 -94
- package/esm2020/dialog/dialog-portal.directives.mjs +0 -119
- package/esm2020/dialog/dialog-ref.mjs +0 -98
- package/esm2020/dialog/dialog.component.mjs +0 -301
- package/esm2020/dialog/dialog.module.mjs +0 -109
- package/esm2020/dialog/dialog.property.mjs +0 -197
- package/esm2020/dialog/dialog.service.mjs +0 -123
- package/esm2020/dialog/ng-nest-ui-dialog.mjs +0 -5
- package/esm2020/dialog/public-api.mjs +0 -9
- package/esm2020/doc/doc.component.mjs +0 -17
- package/esm2020/doc/doc.module.mjs +0 -18
- package/esm2020/doc/doc.property.mjs +0 -7
- package/esm2020/doc/ng-nest-ui-doc.mjs +0 -5
- package/esm2020/doc/public-api.mjs +0 -4
- package/esm2020/drawer/drawer-container.component.mjs +0 -29
- package/esm2020/drawer/drawer-portal.component.mjs +0 -52
- package/esm2020/drawer/drawer-portal.directives.mjs +0 -57
- package/esm2020/drawer/drawer-ref.mjs +0 -17
- package/esm2020/drawer/drawer.component.mjs +0 -124
- package/esm2020/drawer/drawer.module.mjs +0 -55
- package/esm2020/drawer/drawer.property.mjs +0 -91
- package/esm2020/drawer/drawer.service.mjs +0 -65
- package/esm2020/drawer/ng-nest-ui-drawer.mjs +0 -5
- package/esm2020/drawer/public-api.mjs +0 -10
- package/esm2020/dropdown/dropdown-portal.component.mjs +0 -182
- package/esm2020/dropdown/dropdown.component.mjs +0 -199
- package/esm2020/dropdown/dropdown.module.mjs +0 -23
- package/esm2020/dropdown/dropdown.property.mjs +0 -93
- package/esm2020/dropdown/ng-nest-ui-dropdown.mjs +0 -5
- package/esm2020/dropdown/public-api.mjs +0 -5
- package/esm2020/empty/empty.component.mjs +0 -33
- package/esm2020/empty/empty.module.mjs +0 -22
- package/esm2020/empty/empty.property.mjs +0 -33
- package/esm2020/empty/ng-nest-ui-empty.mjs +0 -5
- package/esm2020/empty/public-api.mjs +0 -4
- package/esm2020/examples/examples.component.mjs +0 -17
- package/esm2020/examples/examples.module.mjs +0 -18
- package/esm2020/examples/examples.property.mjs +0 -7
- package/esm2020/examples/ng-nest-ui-examples.mjs +0 -5
- package/esm2020/examples/public-api.mjs +0 -4
- package/esm2020/find/find.component.mjs +0 -359
- package/esm2020/find/find.module.mjs +0 -64
- package/esm2020/find/find.property.mjs +0 -269
- package/esm2020/find/ng-nest-ui-find.mjs +0 -5
- package/esm2020/find/public-api.mjs +0 -4
- package/esm2020/form/control.component.mjs +0 -197
- package/esm2020/form/form.component.mjs +0 -118
- package/esm2020/form/form.module.mjs +0 -82
- package/esm2020/form/form.property.mjs +0 -200
- package/esm2020/form/ng-nest-ui-form.mjs +0 -5
- package/esm2020/form/public-api.mjs +0 -5
- package/esm2020/highlight/highlight.component.mjs +0 -88
- package/esm2020/highlight/highlight.module.mjs +0 -20
- package/esm2020/highlight/highlight.property.mjs +0 -41
- package/esm2020/highlight/ng-nest-ui-highlight.mjs +0 -5
- package/esm2020/highlight/public-api.mjs +0 -4
- package/esm2020/i18n/i18n.directive.mjs +0 -40
- package/esm2020/i18n/i18n.module.mjs +0 -17
- package/esm2020/i18n/i18n.pipe.mjs +0 -27
- package/esm2020/i18n/i18n.property.mjs +0 -9
- package/esm2020/i18n/i18n.service.mjs +0 -61
- package/esm2020/i18n/languages/ar_EG.mjs +0 -118
- package/esm2020/i18n/languages/bg_BG.mjs +0 -118
- package/esm2020/i18n/languages/ca_ES.mjs +0 -118
- package/esm2020/i18n/languages/cs_CZ.mjs +0 -118
- package/esm2020/i18n/languages/da_DK.mjs +0 -118
- package/esm2020/i18n/languages/de_DE.mjs +0 -118
- package/esm2020/i18n/languages/el_GR.mjs +0 -118
- package/esm2020/i18n/languages/en_GB.mjs +0 -172
- package/esm2020/i18n/languages/en_US.mjs +0 -172
- package/esm2020/i18n/languages/es_ES.mjs +0 -118
- package/esm2020/i18n/languages/et_EE.mjs +0 -118
- package/esm2020/i18n/languages/fa_IR.mjs +0 -118
- package/esm2020/i18n/languages/fi_FI.mjs +0 -118
- package/esm2020/i18n/languages/fr_BE.mjs +0 -118
- package/esm2020/i18n/languages/fr_FR.mjs +0 -118
- package/esm2020/i18n/languages/he_IL.mjs +0 -118
- package/esm2020/i18n/languages/hi_IN.mjs +0 -118
- package/esm2020/i18n/languages/hr_HR.mjs +0 -118
- package/esm2020/i18n/languages/hu_HU.mjs +0 -118
- package/esm2020/i18n/languages/hy_AM.mjs +0 -118
- package/esm2020/i18n/languages/id_ID.mjs +0 -118
- package/esm2020/i18n/languages/is_IS.mjs +0 -118
- package/esm2020/i18n/languages/it_IT.mjs +0 -118
- package/esm2020/i18n/languages/ja_JP.mjs +0 -118
- package/esm2020/i18n/languages/ka_GE.mjs +0 -118
- package/esm2020/i18n/languages/kn_IN.mjs +0 -118
- package/esm2020/i18n/languages/ko_KR.mjs +0 -118
- package/esm2020/i18n/languages/ku_IQ.mjs +0 -118
- package/esm2020/i18n/languages/lv_LV.mjs +0 -118
- package/esm2020/i18n/languages/mn_MN.mjs +0 -118
- package/esm2020/i18n/languages/ms_MY.mjs +0 -118
- package/esm2020/i18n/languages/nb_NO.mjs +0 -118
- package/esm2020/i18n/languages/ne_NP.mjs +0 -118
- package/esm2020/i18n/languages/nl_BE.mjs +0 -118
- package/esm2020/i18n/languages/nl_NL.mjs +0 -118
- package/esm2020/i18n/languages/pl_PL.mjs +0 -118
- package/esm2020/i18n/languages/pt_BR.mjs +0 -118
- package/esm2020/i18n/languages/pt_PT.mjs +0 -118
- package/esm2020/i18n/languages/ro_RO.mjs +0 -118
- package/esm2020/i18n/languages/ru_RU.mjs +0 -118
- package/esm2020/i18n/languages/sk_SK.mjs +0 -118
- package/esm2020/i18n/languages/sl_SI.mjs +0 -118
- package/esm2020/i18n/languages/sr_RS.mjs +0 -118
- package/esm2020/i18n/languages/sv_SE.mjs +0 -118
- package/esm2020/i18n/languages/ta_IN.mjs +0 -118
- package/esm2020/i18n/languages/th_TH.mjs +0 -118
- package/esm2020/i18n/languages/tr_TR.mjs +0 -118
- package/esm2020/i18n/languages/uk_UA.mjs +0 -118
- package/esm2020/i18n/languages/vi_VN.mjs +0 -118
- package/esm2020/i18n/languages/zh_CN.mjs +0 -171
- package/esm2020/i18n/languages/zh_TW.mjs +0 -171
- package/esm2020/i18n/ng-nest-ui-i18n.mjs +0 -5
- package/esm2020/i18n/public-api.mjs +0 -57
- package/esm2020/icon/icon.component.mjs +0 -185
- package/esm2020/icon/icon.module.mjs +0 -21
- package/esm2020/icon/icon.property.mjs +0 -45
- package/esm2020/icon/icon.service.mjs +0 -87
- package/esm2020/icon/ng-nest-ui-icon.mjs +0 -5
- package/esm2020/icon/public-api.mjs +0 -5
- package/esm2020/image/image-group.component.mjs +0 -21
- package/esm2020/image/image-preview.component.mjs +0 -140
- package/esm2020/image/image.component.mjs +0 -94
- package/esm2020/image/image.module.mjs +0 -27
- package/esm2020/image/image.property.mjs +0 -82
- package/esm2020/image/ng-nest-ui-image.mjs +0 -5
- package/esm2020/image/public-api.mjs +0 -6
- package/esm2020/index.mjs +0 -107
- package/esm2020/inner/inner.component.mjs +0 -30
- package/esm2020/inner/inner.module.mjs +0 -19
- package/esm2020/inner/inner.property.mjs +0 -28
- package/esm2020/inner/ng-nest-ui-inner.mjs +0 -5
- package/esm2020/inner/public-api.mjs +0 -4
- package/esm2020/input/input-group.component.mjs +0 -20
- package/esm2020/input/input.component.mjs +0 -194
- package/esm2020/input/input.module.mjs +0 -24
- package/esm2020/input/input.property.mjs +0 -209
- package/esm2020/input/ng-nest-ui-input.mjs +0 -5
- package/esm2020/input/public-api.mjs +0 -5
- package/esm2020/input-number/input-number.component.mjs +0 -123
- package/esm2020/input-number/input-number.module.mjs +0 -23
- package/esm2020/input-number/input-number.property.mjs +0 -90
- package/esm2020/input-number/ng-nest-ui-input-number.mjs +0 -5
- package/esm2020/input-number/public-api.mjs +0 -4
- package/esm2020/keyword/keyword.directive.mjs +0 -66
- package/esm2020/keyword/keyword.module.mjs +0 -19
- package/esm2020/keyword/keyword.property.mjs +0 -41
- package/esm2020/keyword/ng-nest-ui-keyword.mjs +0 -5
- package/esm2020/keyword/public-api.mjs +0 -4
- package/esm2020/layout/col.component.mjs +0 -75
- package/esm2020/layout/layout.module.mjs +0 -20
- package/esm2020/layout/layout.property.mjs +0 -88
- package/esm2020/layout/ng-nest-ui-layout.mjs +0 -5
- package/esm2020/layout/public-api.mjs +0 -5
- package/esm2020/layout/row.component.mjs +0 -45
- package/esm2020/link/link.component.mjs +0 -57
- package/esm2020/link/link.module.mjs +0 -22
- package/esm2020/link/link.property.mjs +0 -54
- package/esm2020/link/ng-nest-ui-link.mjs +0 -5
- package/esm2020/link/public-api.mjs +0 -4
- package/esm2020/list/list-drop-group.directive.mjs +0 -47
- package/esm2020/list/list-option.component.mjs +0 -49
- package/esm2020/list/list.component.mjs +0 -395
- package/esm2020/list/list.module.mjs +0 -66
- package/esm2020/list/list.property.mjs +0 -259
- package/esm2020/list/ng-nest-ui-list.mjs +0 -5
- package/esm2020/list/public-api.mjs +0 -6
- package/esm2020/loading/loading.component.mjs +0 -81
- package/esm2020/loading/loading.module.mjs +0 -22
- package/esm2020/loading/loading.property.mjs +0 -72
- package/esm2020/loading/ng-nest-ui-loading.mjs +0 -5
- package/esm2020/loading/public-api.mjs +0 -4
- package/esm2020/menu/menu-node.component.mjs +0 -34
- package/esm2020/menu/menu.component.mjs +0 -196
- package/esm2020/menu/menu.module.mjs +0 -24
- package/esm2020/menu/menu.property.mjs +0 -124
- package/esm2020/menu/ng-nest-ui-menu.mjs +0 -5
- package/esm2020/menu/public-api.mjs +0 -5
- package/esm2020/message/message-ref.mjs +0 -12
- package/esm2020/message/message.component.mjs +0 -46
- package/esm2020/message/message.module.mjs +0 -22
- package/esm2020/message/message.property.mjs +0 -9
- package/esm2020/message/message.service.mjs +0 -144
- package/esm2020/message/ng-nest-ui-message.mjs +0 -5
- package/esm2020/message/public-api.mjs +0 -6
- package/esm2020/message-box/message-box.component.mjs +0 -88
- package/esm2020/message-box/message-box.module.mjs +0 -57
- package/esm2020/message-box/message-box.property.mjs +0 -8
- package/esm2020/message-box/message-box.service.mjs +0 -89
- package/esm2020/message-box/ng-nest-ui-message-box.mjs +0 -5
- package/esm2020/message-box/public-api.mjs +0 -5
- package/esm2020/ng-nest-ui.mjs +0 -5
- package/esm2020/notification/ng-nest-ui-notification.mjs +0 -5
- package/esm2020/notification/notification.component.mjs +0 -48
- package/esm2020/notification/notification.module.mjs +0 -22
- package/esm2020/notification/notification.property.mjs +0 -8
- package/esm2020/notification/notification.service.mjs +0 -103
- package/esm2020/notification/public-api.mjs +0 -5
- package/esm2020/outlet/ng-nest-ui-outlet.mjs +0 -5
- package/esm2020/outlet/outlet.directive.mjs +0 -74
- package/esm2020/outlet/outlet.module.mjs +0 -18
- package/esm2020/outlet/outlet.property.mjs +0 -7
- package/esm2020/outlet/public-api.mjs +0 -4
- package/esm2020/page-header/ng-nest-ui-page-header.mjs +0 -5
- package/esm2020/page-header/page-header.component.mjs +0 -41
- package/esm2020/page-header/page-header.module.mjs +0 -20
- package/esm2020/page-header/page-header.property.mjs +0 -46
- package/esm2020/page-header/public-api.mjs +0 -4
- package/esm2020/pagination/ng-nest-ui-pagination.mjs +0 -5
- package/esm2020/pagination/pagination.component.mjs +0 -161
- package/esm2020/pagination/pagination.module.mjs +0 -25
- package/esm2020/pagination/pagination.property.mjs +0 -171
- package/esm2020/pagination/public-api.mjs +0 -4
- package/esm2020/pattern/ng-nest-ui-pattern.mjs +0 -5
- package/esm2020/pattern/pattern.component.mjs +0 -17
- package/esm2020/pattern/pattern.module.mjs +0 -18
- package/esm2020/pattern/pattern.property.mjs +0 -7
- package/esm2020/pattern/public-api.mjs +0 -4
- package/esm2020/popconfirm/ng-nest-ui-popconfirm.mjs +0 -5
- package/esm2020/popconfirm/popconfirm.component.mjs +0 -74
- package/esm2020/popconfirm/popconfirm.module.mjs +0 -23
- package/esm2020/popconfirm/popconfirm.property.mjs +0 -86
- package/esm2020/popconfirm/public-api.mjs +0 -4
- package/esm2020/popover/ng-nest-ui-popover.mjs +0 -5
- package/esm2020/popover/popover-portal.component.mjs +0 -103
- package/esm2020/popover/popover.directive.mjs +0 -193
- package/esm2020/popover/popover.module.mjs +0 -22
- package/esm2020/popover/popover.property.mjs +0 -84
- package/esm2020/popover/public-api.mjs +0 -5
- package/esm2020/portal/ng-nest-ui-portal.mjs +0 -5
- package/esm2020/portal/portal.module.mjs +0 -19
- package/esm2020/portal/portal.property.mjs +0 -24
- package/esm2020/portal/portal.service.mjs +0 -189
- package/esm2020/portal/public-api.mjs +0 -4
- package/esm2020/progress/ng-nest-ui-progress.mjs +0 -5
- package/esm2020/progress/progress.component.mjs +0 -221
- package/esm2020/progress/progress.module.mjs +0 -21
- package/esm2020/progress/progress.property.mjs +0 -114
- package/esm2020/progress/public-api.mjs +0 -4
- package/esm2020/radio/ng-nest-ui-radio.mjs +0 -5
- package/esm2020/radio/public-api.mjs +0 -4
- package/esm2020/radio/radio.component.mjs +0 -103
- package/esm2020/radio/radio.module.mjs +0 -24
- package/esm2020/radio/radio.property.mjs +0 -88
- package/esm2020/rate/ng-nest-ui-rate.mjs +0 -5
- package/esm2020/rate/public-api.mjs +0 -4
- package/esm2020/rate/rate.component.mjs +0 -117
- package/esm2020/rate/rate.module.mjs +0 -23
- package/esm2020/rate/rate.property.mjs +0 -49
- package/esm2020/resizable/ng-nest-ui-resizable.mjs +0 -5
- package/esm2020/resizable/public-api.mjs +0 -4
- package/esm2020/resizable/resizable.directive.mjs +0 -267
- package/esm2020/resizable/resizable.module.mjs +0 -18
- package/esm2020/resizable/resizable.property.mjs +0 -94
- package/esm2020/result/ng-nest-ui-result.mjs +0 -5
- package/esm2020/result/public-api.mjs +0 -4
- package/esm2020/result/result.component.mjs +0 -33
- package/esm2020/result/result.module.mjs +0 -21
- package/esm2020/result/result.property.mjs +0 -37
- package/esm2020/ripple/ng-nest-ui-ripple.mjs +0 -5
- package/esm2020/ripple/public-api.mjs +0 -4
- package/esm2020/ripple/ripple.directive.mjs +0 -69
- package/esm2020/ripple/ripple.module.mjs +0 -19
- package/esm2020/ripple/ripple.property.mjs +0 -33
- package/esm2020/select/ng-nest-ui-select.mjs +0 -5
- package/esm2020/select/public-api.mjs +0 -5
- package/esm2020/select/select-portal.component.mjs +0 -109
- package/esm2020/select/select.component.mjs +0 -603
- package/esm2020/select/select.module.mjs +0 -57
- package/esm2020/select/select.property.mjs +0 -128
- package/esm2020/skeleton/ng-nest-ui-skeleton.mjs +0 -5
- package/esm2020/skeleton/public-api.mjs +0 -4
- package/esm2020/skeleton/skeleton.component.mjs +0 -37
- package/esm2020/skeleton/skeleton.module.mjs +0 -20
- package/esm2020/skeleton/skeleton.property.mjs +0 -52
- package/esm2020/slider/ng-nest-ui-slider.mjs +0 -5
- package/esm2020/slider/public-api.mjs +0 -4
- package/esm2020/slider/slider.component.mjs +0 -247
- package/esm2020/slider/slider.module.mjs +0 -23
- package/esm2020/slider/slider.property.mjs +0 -116
- package/esm2020/slider-select/ng-nest-ui-slider-select.mjs +0 -5
- package/esm2020/slider-select/public-api.mjs +0 -4
- package/esm2020/slider-select/slider-select.component.mjs +0 -171
- package/esm2020/slider-select/slider-select.module.mjs +0 -23
- package/esm2020/slider-select/slider-select.property.mjs +0 -97
- package/esm2020/statistic/countdown.component.mjs +0 -68
- package/esm2020/statistic/ng-nest-ui-statistic.mjs +0 -5
- package/esm2020/statistic/public-api.mjs +0 -5
- package/esm2020/statistic/statistic.component.mjs +0 -33
- package/esm2020/statistic/statistic.module.mjs +0 -22
- package/esm2020/statistic/statistic.property.mjs +0 -72
- package/esm2020/steps/ng-nest-ui-steps.mjs +0 -5
- package/esm2020/steps/public-api.mjs +0 -4
- package/esm2020/steps/steps.component.mjs +0 -84
- package/esm2020/steps/steps.module.mjs +0 -21
- package/esm2020/steps/steps.property.mjs +0 -71
- package/esm2020/switch/ng-nest-ui-switch.mjs +0 -5
- package/esm2020/switch/public-api.mjs +0 -4
- package/esm2020/switch/switch.component.mjs +0 -56
- package/esm2020/switch/switch.module.mjs +0 -23
- package/esm2020/switch/switch.property.mjs +0 -56
- package/esm2020/table/drag.directive.mjs +0 -77
- package/esm2020/table/ng-nest-ui-table.mjs +0 -5
- package/esm2020/table/public-api.mjs +0 -8
- package/esm2020/table/table-body.component.mjs +0 -215
- package/esm2020/table/table-foot.component.mjs +0 -36
- package/esm2020/table/table-head.component.mjs +0 -185
- package/esm2020/table/table.component.mjs +0 -363
- package/esm2020/table/table.module.mjs +0 -83
- package/esm2020/table/table.property.mjs +0 -542
- package/esm2020/tabs/ng-nest-ui-tabs.mjs +0 -5
- package/esm2020/tabs/public-api.mjs +0 -7
- package/esm2020/tabs/tab-content.component.mjs +0 -22
- package/esm2020/tabs/tab-link.directive.mjs +0 -44
- package/esm2020/tabs/tab.component.mjs +0 -27
- package/esm2020/tabs/tabs.component.mjs +0 -194
- package/esm2020/tabs/tabs.module.mjs +0 -39
- package/esm2020/tabs/tabs.property.mjs +0 -147
- package/esm2020/tag/ng-nest-ui-tag.mjs +0 -5
- package/esm2020/tag/public-api.mjs +0 -4
- package/esm2020/tag/tag.component.mjs +0 -69
- package/esm2020/tag/tag.module.mjs +0 -21
- package/esm2020/tag/tag.property.mjs +0 -104
- package/esm2020/text-retract/ng-nest-ui-text-retract.mjs +0 -5
- package/esm2020/text-retract/public-api.mjs +0 -4
- package/esm2020/text-retract/text-retract.component.mjs +0 -62
- package/esm2020/text-retract/text-retract.module.mjs +0 -22
- package/esm2020/text-retract/text-retract.property.mjs +0 -31
- package/esm2020/textarea/ng-nest-ui-textarea.mjs +0 -5
- package/esm2020/textarea/public-api.mjs +0 -4
- package/esm2020/textarea/textarea.component.mjs +0 -103
- package/esm2020/textarea/textarea.module.mjs +0 -22
- package/esm2020/textarea/textarea.property.mjs +0 -74
- package/esm2020/theme/ng-nest-ui-theme.mjs +0 -5
- package/esm2020/theme/public-api.mjs +0 -4
- package/esm2020/theme/theme.component.mjs +0 -163
- package/esm2020/theme/theme.module.mjs +0 -52
- package/esm2020/theme/theme.property.mjs +0 -74
- package/esm2020/time-ago/ng-nest-ui-time-ago.mjs +0 -5
- package/esm2020/time-ago/public-api.mjs +0 -4
- package/esm2020/time-ago/time-ago.module.mjs +0 -18
- package/esm2020/time-ago/time-ago.pipe.mjs +0 -69
- package/esm2020/time-ago/time-ago.property.mjs +0 -7
- package/esm2020/time-picker/ng-nest-ui-time-picker.mjs +0 -5
- package/esm2020/time-picker/public-api.mjs +0 -6
- package/esm2020/time-picker/time-picker-frame.component.mjs +0 -324
- package/esm2020/time-picker/time-picker-portal.component.mjs +0 -76
- package/esm2020/time-picker/time-picker.component.mjs +0 -272
- package/esm2020/time-picker/time-picker.module.mjs +0 -58
- package/esm2020/time-picker/time-picker.property.mjs +0 -110
- package/esm2020/time-range/ng-nest-ui-time-range.mjs +0 -5
- package/esm2020/time-range/public-api.mjs +0 -4
- package/esm2020/time-range/time-range.module.mjs +0 -16
- package/esm2020/time-range/time-range.pipe.mjs +0 -44
- package/esm2020/time-range/time-range.property.mjs +0 -7
- package/esm2020/timeline/ng-nest-ui-timeline.mjs +0 -5
- package/esm2020/timeline/public-api.mjs +0 -4
- package/esm2020/timeline/timeline.component.mjs +0 -72
- package/esm2020/timeline/timeline.module.mjs +0 -23
- package/esm2020/timeline/timeline.property.mjs +0 -50
- package/esm2020/tooltip/ng-nest-ui-tooltip.mjs +0 -5
- package/esm2020/tooltip/public-api.mjs +0 -5
- package/esm2020/tooltip/tooltip-portal.component.mjs +0 -105
- package/esm2020/tooltip/tooltip.directive.mjs +0 -130
- package/esm2020/tooltip/tooltip.module.mjs +0 -21
- package/esm2020/tooltip/tooltip.property.mjs +0 -76
- package/esm2020/transfer/ng-nest-ui-transfer.mjs +0 -5
- package/esm2020/transfer/public-api.mjs +0 -4
- package/esm2020/transfer/transfer.component.mjs +0 -603
- package/esm2020/transfer/transfer.module.mjs +0 -69
- package/esm2020/transfer/transfer.property.mjs +0 -104
- package/esm2020/tree/ng-nest-ui-tree.mjs +0 -5
- package/esm2020/tree/public-api.mjs +0 -5
- package/esm2020/tree/tree-node.component.mjs +0 -273
- package/esm2020/tree/tree.component.mjs +0 -554
- package/esm2020/tree/tree.module.mjs +0 -54
- package/esm2020/tree/tree.property.mjs +0 -335
- package/esm2020/tree/tree.service.mjs +0 -77
- package/esm2020/tree-file/ng-nest-ui-tree-file.mjs +0 -5
- package/esm2020/tree-file/public-api.mjs +0 -4
- package/esm2020/tree-file/tree-file.component.mjs +0 -124
- package/esm2020/tree-file/tree-file.module.mjs +0 -25
- package/esm2020/tree-file/tree-file.property.mjs +0 -101
- package/esm2020/tree-select/ng-nest-ui-tree-select.mjs +0 -5
- package/esm2020/tree-select/public-api.mjs +0 -5
- package/esm2020/tree-select/tree-select-portal.component.mjs +0 -110
- package/esm2020/tree-select/tree-select.component.mjs +0 -633
- package/esm2020/tree-select/tree-select.module.mjs +0 -65
- package/esm2020/tree-select/tree-select.property.mjs +0 -159
- package/esm2020/typography/ng-nest-ui-typography.mjs +0 -5
- package/esm2020/typography/public-api.mjs +0 -4
- package/esm2020/typography/typography.component.mjs +0 -24
- package/esm2020/typography/typography.module.mjs +0 -19
- package/esm2020/typography/typography.property.mjs +0 -33
- package/esm2020/upload/ng-nest-ui-upload.mjs +0 -5
- package/esm2020/upload/public-api.mjs +0 -5
- package/esm2020/upload/upload-portal.component.mjs +0 -200
- package/esm2020/upload/upload.component.mjs +0 -253
- package/esm2020/upload/upload.module.mjs +0 -65
- package/esm2020/upload/upload.property.mjs +0 -113
- package/fesm2015/ng-nest-ui-affix.mjs +0 -69
- package/fesm2015/ng-nest-ui-affix.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-alert.mjs +0 -247
- package/fesm2015/ng-nest-ui-alert.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-anchor.mjs +0 -257
- package/fesm2015/ng-nest-ui-anchor.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-api.mjs +0 -47
- package/fesm2015/ng-nest-ui-api.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-auto-complete.mjs +0 -490
- package/fesm2015/ng-nest-ui-auto-complete.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-avatar.mjs +0 -223
- package/fesm2015/ng-nest-ui-avatar.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-back-top.mjs +0 -183
- package/fesm2015/ng-nest-ui-back-top.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-badge.mjs +0 -151
- package/fesm2015/ng-nest-ui-badge.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-base-form.mjs +0 -234
- package/fesm2015/ng-nest-ui-base-form.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-border.mjs +0 -45
- package/fesm2015/ng-nest-ui-border.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-button.mjs +0 -275
- package/fesm2015/ng-nest-ui-button.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-calendar.mjs +0 -215
- package/fesm2015/ng-nest-ui-calendar.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-card.mjs +0 -91
- package/fesm2015/ng-nest-ui-card.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-carousel.mjs +0 -347
- package/fesm2015/ng-nest-ui-carousel.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-cascade.mjs +0 -455
- package/fesm2015/ng-nest-ui-cascade.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-checkbox.mjs +0 -229
- package/fesm2015/ng-nest-ui-checkbox.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-collapse.mjs +0 -211
- package/fesm2015/ng-nest-ui-collapse.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-color-picker.mjs +0 -687
- package/fesm2015/ng-nest-ui-color-picker.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-color.mjs +0 -109
- package/fesm2015/ng-nest-ui-color.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-comment.mjs +0 -276
- package/fesm2015/ng-nest-ui-comment.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-container.mjs +0 -304
- package/fesm2015/ng-nest-ui-container.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-core.mjs +0 -1631
- package/fesm2015/ng-nest-ui-core.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-crumb.mjs +0 -122
- package/fesm2015/ng-nest-ui-crumb.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-date-picker.mjs +0 -3175
- package/fesm2015/ng-nest-ui-date-picker.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-description.mjs +0 -201
- package/fesm2015/ng-nest-ui-description.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-dialog.mjs +0 -1051
- package/fesm2015/ng-nest-ui-dialog.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-doc.mjs +0 -45
- package/fesm2015/ng-nest-ui-doc.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-drawer.mjs +0 -472
- package/fesm2015/ng-nest-ui-drawer.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-dropdown.mjs +0 -495
- package/fesm2015/ng-nest-ui-dropdown.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-empty.mjs +0 -88
- package/fesm2015/ng-nest-ui-empty.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-examples.mjs +0 -45
- package/fesm2015/ng-nest-ui-examples.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-find.mjs +0 -694
- package/fesm2015/ng-nest-ui-find.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-form.mjs +0 -584
- package/fesm2015/ng-nest-ui-form.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-highlight.mjs +0 -151
- package/fesm2015/ng-nest-ui-highlight.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-i18n.mjs +0 -6381
- package/fesm2015/ng-nest-ui-i18n.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-icon.mjs +0 -332
- package/fesm2015/ng-nest-ui-icon.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-image.mjs +0 -352
- package/fesm2015/ng-nest-ui-image.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-inner.mjs +0 -77
- package/fesm2015/ng-nest-ui-inner.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-input-number.mjs +0 -233
- package/fesm2015/ng-nest-ui-input-number.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-input.mjs +0 -440
- package/fesm2015/ng-nest-ui-input.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-keyword.mjs +0 -125
- package/fesm2015/ng-nest-ui-keyword.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-layout.mjs +0 -226
- package/fesm2015/ng-nest-ui-layout.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-link.mjs +0 -133
- package/fesm2015/ng-nest-ui-link.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-list.mjs +0 -799
- package/fesm2015/ng-nest-ui-list.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-loading.mjs +0 -175
- package/fesm2015/ng-nest-ui-loading.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-menu.mjs +0 -371
- package/fesm2015/ng-nest-ui-menu.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-message-box.mjs +0 -240
- package/fesm2015/ng-nest-ui-message-box.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-message.mjs +0 -234
- package/fesm2015/ng-nest-ui-message.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-notification.mjs +0 -181
- package/fesm2015/ng-nest-ui-notification.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-outlet.mjs +0 -103
- package/fesm2015/ng-nest-ui-outlet.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-page-header.mjs +0 -107
- package/fesm2015/ng-nest-ui-page-header.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-pagination.mjs +0 -356
- package/fesm2015/ng-nest-ui-pagination.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-pattern.mjs +0 -45
- package/fesm2015/ng-nest-ui-pattern.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-popconfirm.mjs +0 -183
- package/fesm2015/ng-nest-ui-popconfirm.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-popover.mjs +0 -396
- package/fesm2015/ng-nest-ui-popover.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-portal.mjs +0 -233
- package/fesm2015/ng-nest-ui-portal.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-progress.mjs +0 -355
- package/fesm2015/ng-nest-ui-progress.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-radio.mjs +0 -212
- package/fesm2015/ng-nest-ui-radio.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-rate.mjs +0 -186
- package/fesm2015/ng-nest-ui-rate.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-resizable.mjs +0 -374
- package/fesm2015/ng-nest-ui-resizable.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-result.mjs +0 -90
- package/fesm2015/ng-nest-ui-result.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-ripple.mjs +0 -120
- package/fesm2015/ng-nest-ui-ripple.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-select.mjs +0 -888
- package/fesm2015/ng-nest-ui-select.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-skeleton.mjs +0 -108
- package/fesm2015/ng-nest-ui-skeleton.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-slider-select.mjs +0 -288
- package/fesm2015/ng-nest-ui-slider-select.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-slider.mjs +0 -387
- package/fesm2015/ng-nest-ui-slider.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-statistic.mjs +0 -188
- package/fesm2015/ng-nest-ui-statistic.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-steps.mjs +0 -175
- package/fesm2015/ng-nest-ui-steps.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-switch.mjs +0 -132
- package/fesm2015/ng-nest-ui-switch.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-table.mjs +0 -1473
- package/fesm2015/ng-nest-ui-table.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-tabs.mjs +0 -464
- package/fesm2015/ng-nest-ui-tabs.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-tag.mjs +0 -193
- package/fesm2015/ng-nest-ui-tag.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-text-retract.mjs +0 -114
- package/fesm2015/ng-nest-ui-text-retract.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-textarea.mjs +0 -196
- package/fesm2015/ng-nest-ui-textarea.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-theme.mjs +0 -285
- package/fesm2015/ng-nest-ui-theme.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-time-ago.mjs +0 -97
- package/fesm2015/ng-nest-ui-time-ago.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-time-picker.mjs +0 -818
- package/fesm2015/ng-nest-ui-time-picker.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-time-range.mjs +0 -70
- package/fesm2015/ng-nest-ui-time-range.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-timeline.mjs +0 -144
- package/fesm2015/ng-nest-ui-timeline.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-tooltip.mjs +0 -327
- package/fesm2015/ng-nest-ui-tooltip.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-transfer.mjs +0 -784
- package/fesm2015/ng-nest-ui-transfer.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-tree-file.mjs +0 -253
- package/fesm2015/ng-nest-ui-tree-file.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-tree-select.mjs +0 -958
- package/fesm2015/ng-nest-ui-tree-select.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-tree.mjs +0 -1286
- package/fesm2015/ng-nest-ui-tree.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-typography.mjs +0 -76
- package/fesm2015/ng-nest-ui-typography.mjs.map +0 -1
- package/fesm2015/ng-nest-ui-upload.mjs +0 -627
- package/fesm2015/ng-nest-ui-upload.mjs.map +0 -1
- package/fesm2015/ng-nest-ui.mjs +0 -94
- package/fesm2020/ng-nest-ui-affix.mjs +0 -69
- package/fesm2020/ng-nest-ui-affix.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-alert.mjs +0 -245
- package/fesm2020/ng-nest-ui-alert.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-anchor.mjs +0 -257
- package/fesm2020/ng-nest-ui-anchor.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-api.mjs +0 -47
- package/fesm2020/ng-nest-ui-api.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-auto-complete.mjs +0 -488
- package/fesm2020/ng-nest-ui-auto-complete.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-avatar.mjs +0 -222
- package/fesm2020/ng-nest-ui-avatar.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-back-top.mjs +0 -182
- package/fesm2020/ng-nest-ui-back-top.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-badge.mjs +0 -151
- package/fesm2020/ng-nest-ui-badge.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-base-form.mjs +0 -234
- package/fesm2020/ng-nest-ui-base-form.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-border.mjs +0 -45
- package/fesm2020/ng-nest-ui-border.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-button.mjs +0 -271
- package/fesm2020/ng-nest-ui-button.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-calendar.mjs +0 -214
- package/fesm2020/ng-nest-ui-calendar.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-card.mjs +0 -91
- package/fesm2020/ng-nest-ui-card.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-carousel.mjs +0 -344
- package/fesm2020/ng-nest-ui-carousel.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-cascade.mjs +0 -453
- package/fesm2020/ng-nest-ui-cascade.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-checkbox.mjs +0 -229
- package/fesm2020/ng-nest-ui-checkbox.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-collapse.mjs +0 -209
- package/fesm2020/ng-nest-ui-collapse.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-color-picker.mjs +0 -682
- package/fesm2020/ng-nest-ui-color-picker.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-color.mjs +0 -109
- package/fesm2020/ng-nest-ui-color.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-comment.mjs +0 -275
- package/fesm2020/ng-nest-ui-comment.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-container.mjs +0 -300
- package/fesm2020/ng-nest-ui-container.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-core.mjs +0 -1627
- package/fesm2020/ng-nest-ui-core.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-crumb.mjs +0 -122
- package/fesm2020/ng-nest-ui-crumb.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-date-picker.mjs +0 -3162
- package/fesm2020/ng-nest-ui-date-picker.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-description.mjs +0 -201
- package/fesm2020/ng-nest-ui-description.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-dialog.mjs +0 -1039
- package/fesm2020/ng-nest-ui-dialog.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-doc.mjs +0 -45
- package/fesm2020/ng-nest-ui-doc.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-drawer.mjs +0 -465
- package/fesm2020/ng-nest-ui-drawer.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-dropdown.mjs +0 -484
- package/fesm2020/ng-nest-ui-dropdown.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-empty.mjs +0 -88
- package/fesm2020/ng-nest-ui-empty.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-examples.mjs +0 -45
- package/fesm2020/ng-nest-ui-examples.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-find.mjs +0 -689
- package/fesm2020/ng-nest-ui-find.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-form.mjs +0 -583
- package/fesm2020/ng-nest-ui-form.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-highlight.mjs +0 -147
- package/fesm2020/ng-nest-ui-highlight.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-i18n.mjs +0 -6379
- package/fesm2020/ng-nest-ui-i18n.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-icon.mjs +0 -330
- package/fesm2020/ng-nest-ui-icon.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-image.mjs +0 -347
- package/fesm2020/ng-nest-ui-image.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-inner.mjs +0 -77
- package/fesm2020/ng-nest-ui-inner.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-input-number.mjs +0 -233
- package/fesm2020/ng-nest-ui-input-number.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-input.mjs +0 -438
- package/fesm2020/ng-nest-ui-input.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-keyword.mjs +0 -125
- package/fesm2020/ng-nest-ui-keyword.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-layout.mjs +0 -223
- package/fesm2020/ng-nest-ui-layout.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-link.mjs +0 -132
- package/fesm2020/ng-nest-ui-link.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-list.mjs +0 -796
- package/fesm2020/ng-nest-ui-list.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-loading.mjs +0 -174
- package/fesm2020/ng-nest-ui-loading.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-menu.mjs +0 -369
- package/fesm2020/ng-nest-ui-menu.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-message-box.mjs +0 -237
- package/fesm2020/ng-nest-ui-message-box.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-message.mjs +0 -227
- package/fesm2020/ng-nest-ui-message.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-notification.mjs +0 -176
- package/fesm2020/ng-nest-ui-notification.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-outlet.mjs +0 -103
- package/fesm2020/ng-nest-ui-outlet.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-page-header.mjs +0 -107
- package/fesm2020/ng-nest-ui-page-header.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-pagination.mjs +0 -356
- package/fesm2020/ng-nest-ui-pagination.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-pattern.mjs +0 -45
- package/fesm2020/ng-nest-ui-pattern.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-popconfirm.mjs +0 -183
- package/fesm2020/ng-nest-ui-popconfirm.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-popover.mjs +0 -392
- package/fesm2020/ng-nest-ui-popover.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-portal.mjs +0 -233
- package/fesm2020/ng-nest-ui-portal.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-progress.mjs +0 -355
- package/fesm2020/ng-nest-ui-progress.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-radio.mjs +0 -212
- package/fesm2020/ng-nest-ui-radio.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-rate.mjs +0 -186
- package/fesm2020/ng-nest-ui-rate.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-resizable.mjs +0 -378
- package/fesm2020/ng-nest-ui-resizable.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-result.mjs +0 -90
- package/fesm2020/ng-nest-ui-result.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-ripple.mjs +0 -120
- package/fesm2020/ng-nest-ui-ripple.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-select.mjs +0 -883
- package/fesm2020/ng-nest-ui-select.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-skeleton.mjs +0 -108
- package/fesm2020/ng-nest-ui-skeleton.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-slider-select.mjs +0 -287
- package/fesm2020/ng-nest-ui-slider-select.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-slider.mjs +0 -385
- package/fesm2020/ng-nest-ui-slider.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-statistic.mjs +0 -188
- package/fesm2020/ng-nest-ui-statistic.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-steps.mjs +0 -175
- package/fesm2020/ng-nest-ui-steps.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-switch.mjs +0 -132
- package/fesm2020/ng-nest-ui-switch.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-table.mjs +0 -1461
- package/fesm2020/ng-nest-ui-table.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-tabs.mjs +0 -455
- package/fesm2020/ng-nest-ui-tabs.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-tag.mjs +0 -193
- package/fesm2020/ng-nest-ui-tag.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-text-retract.mjs +0 -114
- package/fesm2020/ng-nest-ui-text-retract.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-textarea.mjs +0 -196
- package/fesm2020/ng-nest-ui-textarea.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-theme.mjs +0 -285
- package/fesm2020/ng-nest-ui-theme.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-time-ago.mjs +0 -97
- package/fesm2020/ng-nest-ui-time-ago.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-time-picker.mjs +0 -814
- package/fesm2020/ng-nest-ui-time-picker.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-time-range.mjs +0 -70
- package/fesm2020/ng-nest-ui-time-range.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-timeline.mjs +0 -144
- package/fesm2020/ng-nest-ui-timeline.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-tooltip.mjs +0 -322
- package/fesm2020/ng-nest-ui-tooltip.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-transfer.mjs +0 -772
- package/fesm2020/ng-nest-ui-transfer.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-tree-file.mjs +0 -248
- package/fesm2020/ng-nest-ui-tree-file.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-tree-select.mjs +0 -953
- package/fesm2020/ng-nest-ui-tree-select.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-tree.mjs +0 -1275
- package/fesm2020/ng-nest-ui-tree.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-typography.mjs +0 -76
- package/fesm2020/ng-nest-ui-typography.mjs.map +0 -1
- package/fesm2020/ng-nest-ui-upload.mjs +0 -618
- package/fesm2020/ng-nest-ui-upload.mjs.map +0 -1
- package/fesm2020/ng-nest-ui.mjs +0 -94
- package/fesm2020/ng-nest-ui.mjs.map +0 -1
- /package/{fesm2015 → fesm2022}/ng-nest-ui.mjs.map +0 -0
|
@@ -0,0 +1,3162 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, ViewEncapsulation, ChangeDetectionStrategy, Pipe, HostBinding, HostListener, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { __decorate } from 'tslib';
|
|
4
|
+
import * as i2 from '@ng-nest/ui/core';
|
|
5
|
+
import { XWithConfig, XInputBoolean, XDataConvert, XProperty, XIsFunction, XIsChange, XDateYearWeek, XIsNull, XChunk, XDateWeek, XDateQuarter, XDateYearQuarter, XIsUndefined, XIsEmpty, XAddDays, XConnectBaseAnimation, XIsDate, XIsNumber, XIsString, XClearClass, XAddMonths, XAddYears, XIsArray } from '@ng-nest/ui/core';
|
|
6
|
+
import { XControlValueAccessor, XValueAccessor, XBaseFormModule } from '@ng-nest/ui/base-form';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { map, takeUntil } from 'rxjs/operators';
|
|
9
|
+
import * as i1 from '@angular/common';
|
|
10
|
+
import { DatePipe, LowerCasePipe, CommonModule } from '@angular/common';
|
|
11
|
+
import * as i3 from '@ng-nest/ui/i18n';
|
|
12
|
+
import { XI18nModule } from '@ng-nest/ui/i18n';
|
|
13
|
+
import * as i3$1 from '@ng-nest/ui/time-picker';
|
|
14
|
+
import { XTimePickerModule } from '@ng-nest/ui/time-picker';
|
|
15
|
+
import * as i4 from '@ng-nest/ui/link';
|
|
16
|
+
import { XLinkModule } from '@ng-nest/ui/link';
|
|
17
|
+
import * as i5 from '@ng-nest/ui/button';
|
|
18
|
+
import { XButtonModule } from '@ng-nest/ui/button';
|
|
19
|
+
import * as i6 from '@ng-nest/ui/outlet';
|
|
20
|
+
import { XOutletModule } from '@ng-nest/ui/outlet';
|
|
21
|
+
import * as i2$1 from '@ng-nest/ui/portal';
|
|
22
|
+
import { XPortalConnectedPosition, XPortalModule } from '@ng-nest/ui/portal';
|
|
23
|
+
import * as i5$1 from '@angular/cdk/overlay';
|
|
24
|
+
import * as i6$1 from '@angular/forms';
|
|
25
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
26
|
+
import * as i7 from '@ng-nest/ui/input';
|
|
27
|
+
import { XInputModule } from '@ng-nest/ui/input';
|
|
28
|
+
import { XIconModule } from '@ng-nest/ui/icon';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* DatePicker
|
|
32
|
+
* @selector x-date-picker
|
|
33
|
+
* @decorator component
|
|
34
|
+
*/
|
|
35
|
+
const XDatePickerPrefix = 'x-date-picker';
|
|
36
|
+
const X_CONFIG_NAME = 'datePicker';
|
|
37
|
+
/**
|
|
38
|
+
* DatePicker Property
|
|
39
|
+
*/
|
|
40
|
+
class XDatePickerProperty extends XControlValueAccessor {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
/**
|
|
44
|
+
* @zh_CN 选择类型
|
|
45
|
+
* @en_US Select type
|
|
46
|
+
*/
|
|
47
|
+
this.type = 'date';
|
|
48
|
+
/**
|
|
49
|
+
* @zh_CN 快捷选择按钮,自定义或直接设置今天(today),昨天(yesterday),明天(tomorrow)
|
|
50
|
+
* @en_US Quick selection button, support today, yesterday, tomorrow
|
|
51
|
+
*/
|
|
52
|
+
this.preset = [];
|
|
53
|
+
/**
|
|
54
|
+
* @zh_CN 节点点击的事件
|
|
55
|
+
* @en_US Node click event
|
|
56
|
+
*/
|
|
57
|
+
this.nodeEmit = new EventEmitter();
|
|
58
|
+
}
|
|
59
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
60
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XDatePickerProperty, selector: "x-date-picker-property", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset", extraFooter: "extraFooter", disabledDate: "disabledDate", disabledTime: "disabledTime" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
61
|
+
}
|
|
62
|
+
__decorate([
|
|
63
|
+
XWithConfig(X_CONFIG_NAME, 'yyyy-MM-dd')
|
|
64
|
+
], XDatePickerProperty.prototype, "format", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
XWithConfig(X_CONFIG_NAME, true),
|
|
67
|
+
XInputBoolean()
|
|
68
|
+
], XDatePickerProperty.prototype, "clearable", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
XWithConfig(X_CONFIG_NAME, 'bottom-start')
|
|
71
|
+
], XDatePickerProperty.prototype, "placement", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
XWithConfig(X_CONFIG_NAME, 'medium')
|
|
74
|
+
], XDatePickerProperty.prototype, "size", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
XInputBoolean(),
|
|
77
|
+
XWithConfig(X_CONFIG_NAME, true)
|
|
78
|
+
], XDatePickerProperty.prototype, "bordered", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
XDataConvert()
|
|
81
|
+
], XDatePickerProperty.prototype, "preset", void 0);
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerProperty, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{ selector: `${XDatePickerPrefix}-property`, template: '' }]
|
|
85
|
+
}], propDecorators: { type: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], format: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], clearable: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], placement: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], size: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], bordered: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], preset: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], extraFooter: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], disabledDate: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], disabledTime: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], nodeEmit: [{
|
|
106
|
+
type: Output
|
|
107
|
+
}] } });
|
|
108
|
+
/**
|
|
109
|
+
* DateRange
|
|
110
|
+
* @selector x-date-range
|
|
111
|
+
* @decorator component
|
|
112
|
+
*/
|
|
113
|
+
const XDateRangePrefix = 'x-date-range';
|
|
114
|
+
const X_CONFIG_RANGE_NAME = 'dateRange';
|
|
115
|
+
/**
|
|
116
|
+
* DateRange Property
|
|
117
|
+
*/
|
|
118
|
+
class XDateRangeProperty extends XControlValueAccessor {
|
|
119
|
+
constructor() {
|
|
120
|
+
super(...arguments);
|
|
121
|
+
/**
|
|
122
|
+
* @zh_CN 选择类型
|
|
123
|
+
* @en_US Select type
|
|
124
|
+
*/
|
|
125
|
+
this.type = 'date';
|
|
126
|
+
/**
|
|
127
|
+
* @zh_CN 快捷选择按钮,自定义或直接设置本周(thisWeek)、上周(lastWeek)、下周(nextWeek)、本月(thisMonth)、上一月(lastMonth)、下一月(nextMonth)、本年(thisYear)、去年(lastYear)、明年(nextYear)
|
|
128
|
+
* @en_US Quick selection button, support thisWeek, lastWeek, nextWeek, thisMonth, lastMonth, nextMonth, thisYear, lastYear, nextYear
|
|
129
|
+
*/
|
|
130
|
+
this.preset = [];
|
|
131
|
+
/**
|
|
132
|
+
* @zh_CN 节点点击的事件
|
|
133
|
+
* @en_US Node click event
|
|
134
|
+
*/
|
|
135
|
+
this.nodeEmit = new EventEmitter();
|
|
136
|
+
}
|
|
137
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateRangeProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
138
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XDateRangeProperty, selector: "x-date-range-property", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset", placeholder: "placeholder", extraFooter: "extraFooter", disabledDate: "disabledDate", disabledTime: "disabledTime" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
139
|
+
}
|
|
140
|
+
__decorate([
|
|
141
|
+
XWithConfig(X_CONFIG_RANGE_NAME, 'yyyy-MM-dd')
|
|
142
|
+
], XDateRangeProperty.prototype, "format", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
XWithConfig(X_CONFIG_RANGE_NAME, true),
|
|
145
|
+
XInputBoolean()
|
|
146
|
+
], XDateRangeProperty.prototype, "clearable", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
XWithConfig(X_CONFIG_RANGE_NAME, 'bottom-start')
|
|
149
|
+
], XDateRangeProperty.prototype, "placement", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
XWithConfig(X_CONFIG_RANGE_NAME, 'medium')
|
|
152
|
+
], XDateRangeProperty.prototype, "size", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
XInputBoolean(),
|
|
155
|
+
XWithConfig(X_CONFIG_NAME, true)
|
|
156
|
+
], XDateRangeProperty.prototype, "bordered", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
XDataConvert()
|
|
159
|
+
], XDateRangeProperty.prototype, "preset", void 0);
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateRangeProperty, decorators: [{
|
|
161
|
+
type: Component,
|
|
162
|
+
args: [{ selector: `${XDateRangePrefix}-property`, template: '' }]
|
|
163
|
+
}], propDecorators: { type: [{
|
|
164
|
+
type: Input
|
|
165
|
+
}], format: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], clearable: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], placement: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], size: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], bordered: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], preset: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], placeholder: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], extraFooter: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], disabledDate: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], disabledTime: [{
|
|
184
|
+
type: Input
|
|
185
|
+
}], nodeEmit: [{
|
|
186
|
+
type: Output
|
|
187
|
+
}] } });
|
|
188
|
+
/**
|
|
189
|
+
* DatePicker Portal
|
|
190
|
+
* @selector x-date-picker-portal
|
|
191
|
+
* @decorator component
|
|
192
|
+
*/
|
|
193
|
+
const XDatePickerPortalPrefix = 'x-date-picker-portal';
|
|
194
|
+
/**
|
|
195
|
+
* DateRange Portal
|
|
196
|
+
* @selector x-date-range-portal
|
|
197
|
+
* @decorator component
|
|
198
|
+
*/
|
|
199
|
+
const XDateRangePortalPrefix = 'x-date-range-portal';
|
|
200
|
+
/**
|
|
201
|
+
* PickerDate
|
|
202
|
+
* @selector x-picker-date
|
|
203
|
+
* @decorator component
|
|
204
|
+
*/
|
|
205
|
+
const XPickerDatePrefix = 'x-picker-date';
|
|
206
|
+
/**
|
|
207
|
+
* PickerDate Property
|
|
208
|
+
*/
|
|
209
|
+
class XPickerDateProperty extends XProperty {
|
|
210
|
+
constructor() {
|
|
211
|
+
super(...arguments);
|
|
212
|
+
/**
|
|
213
|
+
* @zh_CN 选择类型
|
|
214
|
+
* @en_US Select type
|
|
215
|
+
*/
|
|
216
|
+
this.type = 'date';
|
|
217
|
+
/**
|
|
218
|
+
* @zh_CN 显示的日期
|
|
219
|
+
* @en_US Date displayed
|
|
220
|
+
*/
|
|
221
|
+
this.display = new Date();
|
|
222
|
+
/**
|
|
223
|
+
* @zh_CN 显示切换按钮
|
|
224
|
+
* @en_US Display switch button
|
|
225
|
+
*/
|
|
226
|
+
this.showHeader = true;
|
|
227
|
+
/**
|
|
228
|
+
* @zh_CN 上一年
|
|
229
|
+
* @en_US Last year
|
|
230
|
+
*/
|
|
231
|
+
this.lastYearBtn = true;
|
|
232
|
+
/**
|
|
233
|
+
* @zh_CN 上月
|
|
234
|
+
* @en_US Last month
|
|
235
|
+
*/
|
|
236
|
+
this.lastMonthBtn = true;
|
|
237
|
+
/**
|
|
238
|
+
* @zh_CN 下一年
|
|
239
|
+
* @en_US Next year
|
|
240
|
+
*/
|
|
241
|
+
this.nextYearBtn = true;
|
|
242
|
+
/**
|
|
243
|
+
* @zh_CN 上月
|
|
244
|
+
* @en_US Next month
|
|
245
|
+
*/
|
|
246
|
+
this.nextMonthBtn = true;
|
|
247
|
+
/**
|
|
248
|
+
* @zh_CN 范围 hover 效果
|
|
249
|
+
* @en_US Range hover style
|
|
250
|
+
*/
|
|
251
|
+
this.rangeHover = true;
|
|
252
|
+
/**
|
|
253
|
+
* @zh_CN 范围日期
|
|
254
|
+
* @en_US Range date
|
|
255
|
+
*/
|
|
256
|
+
this.rangeValue = [];
|
|
257
|
+
/**
|
|
258
|
+
* @zh_CN 选择类型
|
|
259
|
+
* @en_US Select type
|
|
260
|
+
*/
|
|
261
|
+
this.typeChange = new EventEmitter();
|
|
262
|
+
/**
|
|
263
|
+
* @zh_CN 选中的事件
|
|
264
|
+
* @en_US Selected event
|
|
265
|
+
*/
|
|
266
|
+
this.modelChange = new EventEmitter();
|
|
267
|
+
/**
|
|
268
|
+
* @zh_CN 范围变化的事件
|
|
269
|
+
* @en_US Scope change event
|
|
270
|
+
*/
|
|
271
|
+
this.rangeChange = new EventEmitter();
|
|
272
|
+
/**
|
|
273
|
+
* @zh_CN 选年的事件
|
|
274
|
+
* @en_US Year change event
|
|
275
|
+
*/
|
|
276
|
+
this.yearChange = new EventEmitter();
|
|
277
|
+
/**
|
|
278
|
+
* @zh_CN 选月的事件
|
|
279
|
+
* @en_US Month change event
|
|
280
|
+
*/
|
|
281
|
+
this.monthChange = new EventEmitter();
|
|
282
|
+
/**
|
|
283
|
+
* @zh_CN 显示日期事件
|
|
284
|
+
* @en_US display date event
|
|
285
|
+
*/
|
|
286
|
+
this.displayChange = new EventEmitter();
|
|
287
|
+
/**
|
|
288
|
+
* @zh_CN 范围日期 mouseenter 事件
|
|
289
|
+
* @en_US Date mouseenter event
|
|
290
|
+
*/
|
|
291
|
+
this.rangeTdMouseenter = new EventEmitter();
|
|
292
|
+
/**
|
|
293
|
+
* @zh_CN 范围日期 mouseleave 事件
|
|
294
|
+
* @en_US Date mouseleave event
|
|
295
|
+
*/
|
|
296
|
+
this.rangeTdMouseleave = new EventEmitter();
|
|
297
|
+
/**
|
|
298
|
+
* @zh_CN 范围中的日期点击事件
|
|
299
|
+
* @en_US Range date click event
|
|
300
|
+
*/
|
|
301
|
+
this.rangeDateClick = new EventEmitter();
|
|
302
|
+
}
|
|
303
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerDateProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
304
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerDateProperty, selector: "x-picker-date-property", inputs: { type: "type", display: "display", model: "model", dateTemp: "dateTemp", showHeader: "showHeader", rangePicker: "rangePicker", lastYearBtn: "lastYearBtn", lastMonthBtn: "lastMonthBtn", nextYearBtn: "nextYearBtn", nextMonthBtn: "nextMonthBtn", rangeHover: "rangeHover", rangeValue: "rangeValue", rangeType: "rangeType", disabledDate: "disabledDate" }, outputs: { typeChange: "typeChange", modelChange: "modelChange", rangeChange: "rangeChange", yearChange: "yearChange", monthChange: "monthChange", displayChange: "displayChange", rangeTdMouseenter: "rangeTdMouseenter", rangeTdMouseleave: "rangeTdMouseleave", rangeDateClick: "rangeDateClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
305
|
+
}
|
|
306
|
+
__decorate([
|
|
307
|
+
XInputBoolean()
|
|
308
|
+
], XPickerDateProperty.prototype, "showHeader", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
XInputBoolean()
|
|
311
|
+
], XPickerDateProperty.prototype, "rangePicker", void 0);
|
|
312
|
+
__decorate([
|
|
313
|
+
XInputBoolean()
|
|
314
|
+
], XPickerDateProperty.prototype, "lastYearBtn", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
XInputBoolean()
|
|
317
|
+
], XPickerDateProperty.prototype, "lastMonthBtn", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
XInputBoolean()
|
|
320
|
+
], XPickerDateProperty.prototype, "nextYearBtn", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
XInputBoolean()
|
|
323
|
+
], XPickerDateProperty.prototype, "nextMonthBtn", void 0);
|
|
324
|
+
__decorate([
|
|
325
|
+
XInputBoolean()
|
|
326
|
+
], XPickerDateProperty.prototype, "rangeHover", void 0);
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerDateProperty, decorators: [{
|
|
328
|
+
type: Component,
|
|
329
|
+
args: [{ selector: `${XPickerDatePrefix}-property`, template: '' }]
|
|
330
|
+
}], propDecorators: { type: [{
|
|
331
|
+
type: Input
|
|
332
|
+
}], display: [{
|
|
333
|
+
type: Input
|
|
334
|
+
}], model: [{
|
|
335
|
+
type: Input
|
|
336
|
+
}], dateTemp: [{
|
|
337
|
+
type: Input
|
|
338
|
+
}], showHeader: [{
|
|
339
|
+
type: Input
|
|
340
|
+
}], rangePicker: [{
|
|
341
|
+
type: Input
|
|
342
|
+
}], lastYearBtn: [{
|
|
343
|
+
type: Input
|
|
344
|
+
}], lastMonthBtn: [{
|
|
345
|
+
type: Input
|
|
346
|
+
}], nextYearBtn: [{
|
|
347
|
+
type: Input
|
|
348
|
+
}], nextMonthBtn: [{
|
|
349
|
+
type: Input
|
|
350
|
+
}], rangeHover: [{
|
|
351
|
+
type: Input
|
|
352
|
+
}], rangeValue: [{
|
|
353
|
+
type: Input
|
|
354
|
+
}], rangeType: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}], disabledDate: [{
|
|
357
|
+
type: Input
|
|
358
|
+
}], typeChange: [{
|
|
359
|
+
type: Output
|
|
360
|
+
}], modelChange: [{
|
|
361
|
+
type: Output
|
|
362
|
+
}], rangeChange: [{
|
|
363
|
+
type: Output
|
|
364
|
+
}], yearChange: [{
|
|
365
|
+
type: Output
|
|
366
|
+
}], monthChange: [{
|
|
367
|
+
type: Output
|
|
368
|
+
}], displayChange: [{
|
|
369
|
+
type: Output
|
|
370
|
+
}], rangeTdMouseenter: [{
|
|
371
|
+
type: Output
|
|
372
|
+
}], rangeTdMouseleave: [{
|
|
373
|
+
type: Output
|
|
374
|
+
}], rangeDateClick: [{
|
|
375
|
+
type: Output
|
|
376
|
+
}] } });
|
|
377
|
+
/**
|
|
378
|
+
* PickerMonth
|
|
379
|
+
* @selector x-picker-month
|
|
380
|
+
* @decorator component
|
|
381
|
+
*/
|
|
382
|
+
const XPickerMonthPrefix = 'x-picker-month';
|
|
383
|
+
/**
|
|
384
|
+
* PickerMonth Property
|
|
385
|
+
*/
|
|
386
|
+
class XPickerMonthProperty extends XProperty {
|
|
387
|
+
constructor() {
|
|
388
|
+
super(...arguments);
|
|
389
|
+
/**
|
|
390
|
+
* @zh_CN 选择类型
|
|
391
|
+
* @en_US Select type
|
|
392
|
+
*/
|
|
393
|
+
this.type = 'date';
|
|
394
|
+
/**
|
|
395
|
+
* @zh_CN 显示的日期
|
|
396
|
+
* @en_US Date displayed
|
|
397
|
+
*/
|
|
398
|
+
this.display = new Date();
|
|
399
|
+
/**
|
|
400
|
+
* @zh_CN 显示切换按钮
|
|
401
|
+
* @en_US Display switch button
|
|
402
|
+
*/
|
|
403
|
+
this.showHeader = true;
|
|
404
|
+
/**
|
|
405
|
+
* @zh_CN 上一年
|
|
406
|
+
* @en_US Last year
|
|
407
|
+
*/
|
|
408
|
+
this.lastYearBtn = true;
|
|
409
|
+
/**
|
|
410
|
+
* @zh_CN 下一年
|
|
411
|
+
* @en_US Next year
|
|
412
|
+
*/
|
|
413
|
+
this.nextYearBtn = true;
|
|
414
|
+
/**
|
|
415
|
+
* @zh_CN 范围月份
|
|
416
|
+
* @en_US Range date
|
|
417
|
+
*/
|
|
418
|
+
this.rangeValue = [];
|
|
419
|
+
/**
|
|
420
|
+
* @zh_CN 选中的事件
|
|
421
|
+
* @en_US Selected event
|
|
422
|
+
*/
|
|
423
|
+
this.modelChange = new EventEmitter();
|
|
424
|
+
/**
|
|
425
|
+
* @zh_CN 选择类型
|
|
426
|
+
* @en_US Select type
|
|
427
|
+
*/
|
|
428
|
+
this.typeChange = new EventEmitter();
|
|
429
|
+
/**
|
|
430
|
+
* @zh_CN 范围变化的事件
|
|
431
|
+
* @en_US Scope change event
|
|
432
|
+
*/
|
|
433
|
+
this.rangeChange = new EventEmitter();
|
|
434
|
+
/**
|
|
435
|
+
* @zh_CN 选年的事件
|
|
436
|
+
* @en_US Year change event
|
|
437
|
+
*/
|
|
438
|
+
this.yearChange = new EventEmitter();
|
|
439
|
+
/**
|
|
440
|
+
* @zh_CN 选月的事件
|
|
441
|
+
* @en_US Month change event
|
|
442
|
+
*/
|
|
443
|
+
this.monthChange = new EventEmitter();
|
|
444
|
+
/**
|
|
445
|
+
* @zh_CN 显示月份事件
|
|
446
|
+
* @en_US display date event
|
|
447
|
+
*/
|
|
448
|
+
this.displayChange = new EventEmitter();
|
|
449
|
+
/**
|
|
450
|
+
* @zh_CN 范围月份 mouseenter 事件
|
|
451
|
+
* @en_US Date mouseenter event
|
|
452
|
+
*/
|
|
453
|
+
this.rangeTdMouseenter = new EventEmitter();
|
|
454
|
+
/**
|
|
455
|
+
* @zh_CN 范围月份 mouseleave 事件
|
|
456
|
+
* @en_US Date mouseleave event
|
|
457
|
+
*/
|
|
458
|
+
this.rangeTdMouseleave = new EventEmitter();
|
|
459
|
+
/**
|
|
460
|
+
* @zh_CN 范围中的月份点击事件
|
|
461
|
+
* @en_US Range date click event
|
|
462
|
+
*/
|
|
463
|
+
this.rangeDateClick = new EventEmitter();
|
|
464
|
+
}
|
|
465
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerMonthProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
466
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerMonthProperty, selector: "x-picker-month-property", inputs: { type: "type", display: "display", model: "model", monthTemp: "monthTemp", showHeader: "showHeader", rangePicker: "rangePicker", lastYearBtn: "lastYearBtn", nextYearBtn: "nextYearBtn", rangeValue: "rangeValue", rangeType: "rangeType", disabledDate: "disabledDate" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", rangeChange: "rangeChange", yearChange: "yearChange", monthChange: "monthChange", displayChange: "displayChange", rangeTdMouseenter: "rangeTdMouseenter", rangeTdMouseleave: "rangeTdMouseleave", rangeDateClick: "rangeDateClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
467
|
+
}
|
|
468
|
+
__decorate([
|
|
469
|
+
XInputBoolean()
|
|
470
|
+
], XPickerMonthProperty.prototype, "showHeader", void 0);
|
|
471
|
+
__decorate([
|
|
472
|
+
XInputBoolean()
|
|
473
|
+
], XPickerMonthProperty.prototype, "rangePicker", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
XInputBoolean()
|
|
476
|
+
], XPickerMonthProperty.prototype, "lastYearBtn", void 0);
|
|
477
|
+
__decorate([
|
|
478
|
+
XInputBoolean()
|
|
479
|
+
], XPickerMonthProperty.prototype, "nextYearBtn", void 0);
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerMonthProperty, decorators: [{
|
|
481
|
+
type: Component,
|
|
482
|
+
args: [{ selector: `${XPickerMonthPrefix}-property`, template: '' }]
|
|
483
|
+
}], propDecorators: { type: [{
|
|
484
|
+
type: Input
|
|
485
|
+
}], display: [{
|
|
486
|
+
type: Input
|
|
487
|
+
}], model: [{
|
|
488
|
+
type: Input
|
|
489
|
+
}], monthTemp: [{
|
|
490
|
+
type: Input
|
|
491
|
+
}], showHeader: [{
|
|
492
|
+
type: Input
|
|
493
|
+
}], rangePicker: [{
|
|
494
|
+
type: Input
|
|
495
|
+
}], lastYearBtn: [{
|
|
496
|
+
type: Input
|
|
497
|
+
}], nextYearBtn: [{
|
|
498
|
+
type: Input
|
|
499
|
+
}], rangeValue: [{
|
|
500
|
+
type: Input
|
|
501
|
+
}], rangeType: [{
|
|
502
|
+
type: Input
|
|
503
|
+
}], disabledDate: [{
|
|
504
|
+
type: Input
|
|
505
|
+
}], modelChange: [{
|
|
506
|
+
type: Output
|
|
507
|
+
}], typeChange: [{
|
|
508
|
+
type: Output
|
|
509
|
+
}], rangeChange: [{
|
|
510
|
+
type: Output
|
|
511
|
+
}], yearChange: [{
|
|
512
|
+
type: Output
|
|
513
|
+
}], monthChange: [{
|
|
514
|
+
type: Output
|
|
515
|
+
}], displayChange: [{
|
|
516
|
+
type: Output
|
|
517
|
+
}], rangeTdMouseenter: [{
|
|
518
|
+
type: Output
|
|
519
|
+
}], rangeTdMouseleave: [{
|
|
520
|
+
type: Output
|
|
521
|
+
}], rangeDateClick: [{
|
|
522
|
+
type: Output
|
|
523
|
+
}] } });
|
|
524
|
+
/**
|
|
525
|
+
* PickerQuarter
|
|
526
|
+
* @selector x-picker-quarter
|
|
527
|
+
* @decorator component
|
|
528
|
+
*/
|
|
529
|
+
const XPickerQuarterPrefix = 'x-picker-quarter';
|
|
530
|
+
/**
|
|
531
|
+
* PickerQuarter Property
|
|
532
|
+
*/
|
|
533
|
+
class XPickerQuarterProperty extends XProperty {
|
|
534
|
+
constructor() {
|
|
535
|
+
super(...arguments);
|
|
536
|
+
/**
|
|
537
|
+
* @zh_CN 选择类型
|
|
538
|
+
* @en_US Select type
|
|
539
|
+
*/
|
|
540
|
+
this.type = 'date';
|
|
541
|
+
/**
|
|
542
|
+
* @zh_CN 显示的日期
|
|
543
|
+
* @en_US Date displayed
|
|
544
|
+
*/
|
|
545
|
+
this.display = new Date();
|
|
546
|
+
/**
|
|
547
|
+
* @zh_CN 显示切换按钮
|
|
548
|
+
* @en_US Display switch button
|
|
549
|
+
*/
|
|
550
|
+
this.showHeader = true;
|
|
551
|
+
/**
|
|
552
|
+
* @zh_CN 上一年
|
|
553
|
+
* @en_US Last year
|
|
554
|
+
*/
|
|
555
|
+
this.lastYearBtn = true;
|
|
556
|
+
/**
|
|
557
|
+
* @zh_CN 下一年
|
|
558
|
+
* @en_US Next year
|
|
559
|
+
*/
|
|
560
|
+
this.nextYearBtn = true;
|
|
561
|
+
/**
|
|
562
|
+
* @zh_CN 范围月份
|
|
563
|
+
* @en_US Range date
|
|
564
|
+
*/
|
|
565
|
+
this.rangeValue = [];
|
|
566
|
+
/**
|
|
567
|
+
* @zh_CN 选中的事件
|
|
568
|
+
* @en_US Selected event
|
|
569
|
+
*/
|
|
570
|
+
this.modelChange = new EventEmitter();
|
|
571
|
+
/**
|
|
572
|
+
* @zh_CN 选择类型
|
|
573
|
+
* @en_US Select type
|
|
574
|
+
*/
|
|
575
|
+
this.typeChange = new EventEmitter();
|
|
576
|
+
/**
|
|
577
|
+
* @zh_CN 范围变化的事件
|
|
578
|
+
* @en_US Scope change event
|
|
579
|
+
*/
|
|
580
|
+
this.rangeChange = new EventEmitter();
|
|
581
|
+
/**
|
|
582
|
+
* @zh_CN 选年的事件
|
|
583
|
+
* @en_US Year change event
|
|
584
|
+
*/
|
|
585
|
+
this.yearChange = new EventEmitter();
|
|
586
|
+
/**
|
|
587
|
+
* @zh_CN 选月的事件
|
|
588
|
+
* @en_US Month change event
|
|
589
|
+
*/
|
|
590
|
+
this.monthChange = new EventEmitter();
|
|
591
|
+
/**
|
|
592
|
+
* @zh_CN 显示季度事件
|
|
593
|
+
* @en_US display date event
|
|
594
|
+
*/
|
|
595
|
+
this.displayChange = new EventEmitter();
|
|
596
|
+
/**
|
|
597
|
+
* @zh_CN 范围季度 mouseenter 事件
|
|
598
|
+
* @en_US Date mouseenter event
|
|
599
|
+
*/
|
|
600
|
+
this.rangeTdMouseenter = new EventEmitter();
|
|
601
|
+
/**
|
|
602
|
+
* @zh_CN 范围季度 mouseleave 事件
|
|
603
|
+
* @en_US Date mouseleave event
|
|
604
|
+
*/
|
|
605
|
+
this.rangeTdMouseleave = new EventEmitter();
|
|
606
|
+
/**
|
|
607
|
+
* @zh_CN 范围中的季度点击事件
|
|
608
|
+
* @en_US Range date click event
|
|
609
|
+
*/
|
|
610
|
+
this.rangeDateClick = new EventEmitter();
|
|
611
|
+
}
|
|
612
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerQuarterProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
613
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerQuarterProperty, selector: "x-picker-quarter-property", inputs: { type: "type", display: "display", model: "model", quarterTemp: "quarterTemp", showHeader: "showHeader", rangePicker: "rangePicker", lastYearBtn: "lastYearBtn", nextYearBtn: "nextYearBtn", rangeValue: "rangeValue", rangeType: "rangeType", disabledDate: "disabledDate" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", rangeChange: "rangeChange", yearChange: "yearChange", monthChange: "monthChange", displayChange: "displayChange", rangeTdMouseenter: "rangeTdMouseenter", rangeTdMouseleave: "rangeTdMouseleave", rangeDateClick: "rangeDateClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
614
|
+
}
|
|
615
|
+
__decorate([
|
|
616
|
+
XInputBoolean()
|
|
617
|
+
], XPickerQuarterProperty.prototype, "showHeader", void 0);
|
|
618
|
+
__decorate([
|
|
619
|
+
XInputBoolean()
|
|
620
|
+
], XPickerQuarterProperty.prototype, "rangePicker", void 0);
|
|
621
|
+
__decorate([
|
|
622
|
+
XInputBoolean()
|
|
623
|
+
], XPickerQuarterProperty.prototype, "lastYearBtn", void 0);
|
|
624
|
+
__decorate([
|
|
625
|
+
XInputBoolean()
|
|
626
|
+
], XPickerQuarterProperty.prototype, "nextYearBtn", void 0);
|
|
627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerQuarterProperty, decorators: [{
|
|
628
|
+
type: Component,
|
|
629
|
+
args: [{ selector: `${XPickerQuarterPrefix}-property`, template: '' }]
|
|
630
|
+
}], propDecorators: { type: [{
|
|
631
|
+
type: Input
|
|
632
|
+
}], display: [{
|
|
633
|
+
type: Input
|
|
634
|
+
}], model: [{
|
|
635
|
+
type: Input
|
|
636
|
+
}], quarterTemp: [{
|
|
637
|
+
type: Input
|
|
638
|
+
}], showHeader: [{
|
|
639
|
+
type: Input
|
|
640
|
+
}], rangePicker: [{
|
|
641
|
+
type: Input
|
|
642
|
+
}], lastYearBtn: [{
|
|
643
|
+
type: Input
|
|
644
|
+
}], nextYearBtn: [{
|
|
645
|
+
type: Input
|
|
646
|
+
}], rangeValue: [{
|
|
647
|
+
type: Input
|
|
648
|
+
}], rangeType: [{
|
|
649
|
+
type: Input
|
|
650
|
+
}], disabledDate: [{
|
|
651
|
+
type: Input
|
|
652
|
+
}], modelChange: [{
|
|
653
|
+
type: Output
|
|
654
|
+
}], typeChange: [{
|
|
655
|
+
type: Output
|
|
656
|
+
}], rangeChange: [{
|
|
657
|
+
type: Output
|
|
658
|
+
}], yearChange: [{
|
|
659
|
+
type: Output
|
|
660
|
+
}], monthChange: [{
|
|
661
|
+
type: Output
|
|
662
|
+
}], displayChange: [{
|
|
663
|
+
type: Output
|
|
664
|
+
}], rangeTdMouseenter: [{
|
|
665
|
+
type: Output
|
|
666
|
+
}], rangeTdMouseleave: [{
|
|
667
|
+
type: Output
|
|
668
|
+
}], rangeDateClick: [{
|
|
669
|
+
type: Output
|
|
670
|
+
}] } });
|
|
671
|
+
/**
|
|
672
|
+
* DateQuarter
|
|
673
|
+
* @selector xDateQuarter
|
|
674
|
+
* @decorator pipe
|
|
675
|
+
*/
|
|
676
|
+
const XDateQuarterPrefix = 'xDateQuarter';
|
|
677
|
+
/**
|
|
678
|
+
* PickerYear
|
|
679
|
+
* @selector x-picker-year
|
|
680
|
+
* @decorator component
|
|
681
|
+
*/
|
|
682
|
+
const XPickerYearPrefix = 'x-picker-year';
|
|
683
|
+
/**
|
|
684
|
+
* PickerYear Property
|
|
685
|
+
*/
|
|
686
|
+
class XPickerYearProperty extends XProperty {
|
|
687
|
+
constructor() {
|
|
688
|
+
super(...arguments);
|
|
689
|
+
/**
|
|
690
|
+
* @zh_CN 选择类型
|
|
691
|
+
* @en_US Select type
|
|
692
|
+
*/
|
|
693
|
+
this.type = 'date';
|
|
694
|
+
/**
|
|
695
|
+
* @zh_CN 显示的日期
|
|
696
|
+
* @en_US Date displayed
|
|
697
|
+
*/
|
|
698
|
+
this.display = new Date();
|
|
699
|
+
/**
|
|
700
|
+
* @zh_CN 显示切换按钮
|
|
701
|
+
* @en_US Display switch button
|
|
702
|
+
*/
|
|
703
|
+
this.showHeader = true;
|
|
704
|
+
/**
|
|
705
|
+
* @zh_CN 上一年
|
|
706
|
+
* @en_US Last year
|
|
707
|
+
*/
|
|
708
|
+
this.lastYearBtn = true;
|
|
709
|
+
/**
|
|
710
|
+
* @zh_CN 下一年
|
|
711
|
+
* @en_US Next year
|
|
712
|
+
*/
|
|
713
|
+
this.nextYearBtn = true;
|
|
714
|
+
/**
|
|
715
|
+
* @zh_CN 范围年份
|
|
716
|
+
* @en_US Range date
|
|
717
|
+
*/
|
|
718
|
+
this.rangeValue = [];
|
|
719
|
+
/**
|
|
720
|
+
* @zh_CN 选中的事件
|
|
721
|
+
* @en_US Selected event
|
|
722
|
+
*/
|
|
723
|
+
this.modelChange = new EventEmitter();
|
|
724
|
+
/**
|
|
725
|
+
* @zh_CN 选择类型
|
|
726
|
+
* @en_US Select type
|
|
727
|
+
*/
|
|
728
|
+
this.typeChange = new EventEmitter();
|
|
729
|
+
/**
|
|
730
|
+
* @zh_CN 开始年份变化的事件
|
|
731
|
+
* @en_US Start year change event
|
|
732
|
+
*/
|
|
733
|
+
this.startChange = new EventEmitter();
|
|
734
|
+
/**
|
|
735
|
+
* @zh_CN 范围变化的事件
|
|
736
|
+
* @en_US Scope change event
|
|
737
|
+
*/
|
|
738
|
+
this.rangeChange = new EventEmitter();
|
|
739
|
+
/**
|
|
740
|
+
* @zh_CN 选年的事件
|
|
741
|
+
* @en_US Year change event
|
|
742
|
+
*/
|
|
743
|
+
this.yearChange = new EventEmitter();
|
|
744
|
+
/**
|
|
745
|
+
* @zh_CN 选月的事件
|
|
746
|
+
* @en_US Month change event
|
|
747
|
+
*/
|
|
748
|
+
this.monthChange = new EventEmitter();
|
|
749
|
+
/**
|
|
750
|
+
* @zh_CN 显示月份事件
|
|
751
|
+
* @en_US display date event
|
|
752
|
+
*/
|
|
753
|
+
this.displayChange = new EventEmitter();
|
|
754
|
+
/**
|
|
755
|
+
* @zh_CN 范围月份 mouseenter 事件
|
|
756
|
+
* @en_US Date mouseenter event
|
|
757
|
+
*/
|
|
758
|
+
this.rangeTdMouseenter = new EventEmitter();
|
|
759
|
+
/**
|
|
760
|
+
* @zh_CN 范围月份 mouseleave 事件
|
|
761
|
+
* @en_US Date mouseleave event
|
|
762
|
+
*/
|
|
763
|
+
this.rangeTdMouseleave = new EventEmitter();
|
|
764
|
+
/**
|
|
765
|
+
* @zh_CN 范围中的月份点击事件
|
|
766
|
+
* @en_US Range date click event
|
|
767
|
+
*/
|
|
768
|
+
this.rangeDateClick = new EventEmitter();
|
|
769
|
+
}
|
|
770
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerYearProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
771
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerYearProperty, selector: "x-picker-year-property", inputs: { type: "type", display: "display", model: "model", yearTemp: "yearTemp", showHeader: "showHeader", rangePicker: "rangePicker", lastYearBtn: "lastYearBtn", nextYearBtn: "nextYearBtn", rangeValue: "rangeValue", rangeType: "rangeType", disabledDate: "disabledDate" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", startChange: "startChange", rangeChange: "rangeChange", yearChange: "yearChange", monthChange: "monthChange", displayChange: "displayChange", rangeTdMouseenter: "rangeTdMouseenter", rangeTdMouseleave: "rangeTdMouseleave", rangeDateClick: "rangeDateClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
772
|
+
}
|
|
773
|
+
__decorate([
|
|
774
|
+
XInputBoolean()
|
|
775
|
+
], XPickerYearProperty.prototype, "showHeader", void 0);
|
|
776
|
+
__decorate([
|
|
777
|
+
XInputBoolean()
|
|
778
|
+
], XPickerYearProperty.prototype, "rangePicker", void 0);
|
|
779
|
+
__decorate([
|
|
780
|
+
XInputBoolean()
|
|
781
|
+
], XPickerYearProperty.prototype, "lastYearBtn", void 0);
|
|
782
|
+
__decorate([
|
|
783
|
+
XInputBoolean()
|
|
784
|
+
], XPickerYearProperty.prototype, "nextYearBtn", void 0);
|
|
785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerYearProperty, decorators: [{
|
|
786
|
+
type: Component,
|
|
787
|
+
args: [{ selector: `${XPickerYearPrefix}-property`, template: '' }]
|
|
788
|
+
}], propDecorators: { type: [{
|
|
789
|
+
type: Input
|
|
790
|
+
}], display: [{
|
|
791
|
+
type: Input
|
|
792
|
+
}], model: [{
|
|
793
|
+
type: Input
|
|
794
|
+
}], yearTemp: [{
|
|
795
|
+
type: Input
|
|
796
|
+
}], showHeader: [{
|
|
797
|
+
type: Input
|
|
798
|
+
}], rangePicker: [{
|
|
799
|
+
type: Input
|
|
800
|
+
}], lastYearBtn: [{
|
|
801
|
+
type: Input
|
|
802
|
+
}], nextYearBtn: [{
|
|
803
|
+
type: Input
|
|
804
|
+
}], rangeValue: [{
|
|
805
|
+
type: Input
|
|
806
|
+
}], rangeType: [{
|
|
807
|
+
type: Input
|
|
808
|
+
}], disabledDate: [{
|
|
809
|
+
type: Input
|
|
810
|
+
}], modelChange: [{
|
|
811
|
+
type: Output
|
|
812
|
+
}], typeChange: [{
|
|
813
|
+
type: Output
|
|
814
|
+
}], startChange: [{
|
|
815
|
+
type: Output
|
|
816
|
+
}], rangeChange: [{
|
|
817
|
+
type: Output
|
|
818
|
+
}], yearChange: [{
|
|
819
|
+
type: Output
|
|
820
|
+
}], monthChange: [{
|
|
821
|
+
type: Output
|
|
822
|
+
}], displayChange: [{
|
|
823
|
+
type: Output
|
|
824
|
+
}], rangeTdMouseenter: [{
|
|
825
|
+
type: Output
|
|
826
|
+
}], rangeTdMouseleave: [{
|
|
827
|
+
type: Output
|
|
828
|
+
}], rangeDateClick: [{
|
|
829
|
+
type: Output
|
|
830
|
+
}] } });
|
|
831
|
+
|
|
832
|
+
class XPickerDateComponent extends XPickerDateProperty {
|
|
833
|
+
get rangeStart() {
|
|
834
|
+
if (this.rangeValue && this.rangeValue.length > 0) {
|
|
835
|
+
return this.rangeValue[0];
|
|
836
|
+
}
|
|
837
|
+
return '';
|
|
838
|
+
}
|
|
839
|
+
get rangeEnd() {
|
|
840
|
+
if (this.rangeValue && this.rangeValue.length > 1) {
|
|
841
|
+
return this.rangeValue[1];
|
|
842
|
+
}
|
|
843
|
+
return '';
|
|
844
|
+
}
|
|
845
|
+
get isWeek() {
|
|
846
|
+
return this.type === 'week';
|
|
847
|
+
}
|
|
848
|
+
get isWeekRange() {
|
|
849
|
+
return this.type === 'week' && this.rangePicker;
|
|
850
|
+
}
|
|
851
|
+
get isNotWeekRange() {
|
|
852
|
+
return this.type !== 'week' && this.rangePicker;
|
|
853
|
+
}
|
|
854
|
+
isDisabled(date) {
|
|
855
|
+
if (this.disabledDate && XIsFunction(this.disabledDate)) {
|
|
856
|
+
return this.disabledDate(date);
|
|
857
|
+
}
|
|
858
|
+
else {
|
|
859
|
+
return false;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
constructor(renderer, datePipe, lowerCasePipe, cdr, configService, i18n) {
|
|
863
|
+
super();
|
|
864
|
+
this.renderer = renderer;
|
|
865
|
+
this.datePipe = datePipe;
|
|
866
|
+
this.lowerCasePipe = lowerCasePipe;
|
|
867
|
+
this.cdr = cdr;
|
|
868
|
+
this.configService = configService;
|
|
869
|
+
this.i18n = i18n;
|
|
870
|
+
this.titles = [
|
|
871
|
+
'datePicker.monday',
|
|
872
|
+
'datePicker.tuesday',
|
|
873
|
+
'datePicker.wednesday',
|
|
874
|
+
'datePicker.thursday',
|
|
875
|
+
'datePicker.friday',
|
|
876
|
+
'datePicker.saturday',
|
|
877
|
+
'datePicker.sunday'
|
|
878
|
+
];
|
|
879
|
+
this.now = new Date();
|
|
880
|
+
this.dates = [];
|
|
881
|
+
this.weekDates = [];
|
|
882
|
+
this.locale = {};
|
|
883
|
+
this._unSubject = new Subject();
|
|
884
|
+
}
|
|
885
|
+
ngOnInit() {
|
|
886
|
+
this.i18n.localeChange
|
|
887
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
888
|
+
.subscribe((x) => {
|
|
889
|
+
this.locale = x;
|
|
890
|
+
this.cdr.markForCheck();
|
|
891
|
+
});
|
|
892
|
+
this.setTitles();
|
|
893
|
+
}
|
|
894
|
+
ngOnChanges(simples) {
|
|
895
|
+
const { display } = simples;
|
|
896
|
+
XIsChange(display) && this.init();
|
|
897
|
+
}
|
|
898
|
+
ngOnDestroy() {
|
|
899
|
+
this._unSubject.next();
|
|
900
|
+
this._unSubject.unsubscribe();
|
|
901
|
+
}
|
|
902
|
+
init() {
|
|
903
|
+
this.setDays(this.display);
|
|
904
|
+
}
|
|
905
|
+
isWeekActive(week) {
|
|
906
|
+
if (week.length > 1) {
|
|
907
|
+
return XDateYearWeek(week[1].date) === XDateYearWeek(this.model);
|
|
908
|
+
}
|
|
909
|
+
return false;
|
|
910
|
+
}
|
|
911
|
+
isStartWeek(week) {
|
|
912
|
+
if (!this.rangeType || !this.rangeValue)
|
|
913
|
+
return;
|
|
914
|
+
if (!XIsNull(this.rangeValue[0]) && week.length > 1) {
|
|
915
|
+
return XDateYearWeek(week[1].date) === XDateYearWeek(this.rangeValue[0]);
|
|
916
|
+
}
|
|
917
|
+
return false;
|
|
918
|
+
}
|
|
919
|
+
isEndWeek(week) {
|
|
920
|
+
if (!this.rangeType || !this.rangeValue)
|
|
921
|
+
return;
|
|
922
|
+
if (!XIsNull(this.rangeValue[1]) && week.length > 1) {
|
|
923
|
+
return XDateYearWeek(week[1].date) === XDateYearWeek(this.rangeValue[1]);
|
|
924
|
+
}
|
|
925
|
+
return false;
|
|
926
|
+
}
|
|
927
|
+
isInRangeWeek(week) {
|
|
928
|
+
if (!this.rangeType || !this.rangeValue)
|
|
929
|
+
return;
|
|
930
|
+
if (!XIsNull(this.rangeValue[0]) && !XIsNull(this.rangeValue[1]) && week.length > 1) {
|
|
931
|
+
let time = week[1].date?.getTime();
|
|
932
|
+
return time > this.rangeValue[0] && time < this.rangeValue[1];
|
|
933
|
+
}
|
|
934
|
+
return false;
|
|
935
|
+
}
|
|
936
|
+
isStartDate(date) {
|
|
937
|
+
if (this.type === 'week' || !this.rangeType || !this.rangeValue)
|
|
938
|
+
return;
|
|
939
|
+
if (!XIsNull(this.rangeValue[0])) {
|
|
940
|
+
return this.datePipe.transform(this.rangeValue[0], 'yyyyMMdd') === this.datePipe.transform(date, 'yyyyMMdd');
|
|
941
|
+
}
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
isEndDate(date) {
|
|
945
|
+
if (this.type === 'week' || !this.rangeType || !this.rangeValue)
|
|
946
|
+
return;
|
|
947
|
+
if (!XIsNull(this.rangeValue[1])) {
|
|
948
|
+
return this.datePipe.transform(this.rangeValue[1], 'yyyyMMdd') === this.datePipe.transform(date, 'yyyyMMdd');
|
|
949
|
+
}
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
setDatesState(cell) {
|
|
953
|
+
this.clearState(...this.dates);
|
|
954
|
+
for (let item of this.dates) {
|
|
955
|
+
this.setDayState(item);
|
|
956
|
+
}
|
|
957
|
+
this.onTdMouseenter(cell, false);
|
|
958
|
+
}
|
|
959
|
+
setTitles() {
|
|
960
|
+
if (this.type === 'week') {
|
|
961
|
+
this.titles = ['datePicker.week', ...this.titles];
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
onTdMouseenter(cell, isEmit = true) {
|
|
965
|
+
const [start, end] = this.rangeValue;
|
|
966
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
967
|
+
const time = cell.date.getTime();
|
|
968
|
+
for (let item of this.dates) {
|
|
969
|
+
const itemTime = item.date.getTime();
|
|
970
|
+
this.clearState(item);
|
|
971
|
+
if (!XIsNull(start) && XIsNull(end)) {
|
|
972
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
973
|
+
item.isRangeHoverStartRight = time > start && itemTime === start;
|
|
974
|
+
item.isRangeHover =
|
|
975
|
+
(time < start && itemTime >= time && itemTime < start) || (time > start && itemTime > start && itemTime <= time);
|
|
976
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
977
|
+
item.isRangeHoverEnd = itemTime === time && time > start;
|
|
978
|
+
}
|
|
979
|
+
else if (XIsNull(start) && !XIsNull(end)) {
|
|
980
|
+
item.isRangeHoverEndLeft = time < end && itemTime === end;
|
|
981
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
982
|
+
item.isRangeHover = (time < end && itemTime >= time && itemTime < end) || (time > end && itemTime > end && itemTime <= time);
|
|
983
|
+
item.isRangeHoverStart = itemTime === time && time < end;
|
|
984
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
985
|
+
}
|
|
986
|
+
else if (!XIsNull(start) && !XIsNull(end)) {
|
|
987
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
988
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
989
|
+
item.isRangeHover =
|
|
990
|
+
(time < start && itemTime >= time && itemTime < start) || (time > end && itemTime > end && itemTime <= time);
|
|
991
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
992
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
993
|
+
if (this.rangeType === 'start') {
|
|
994
|
+
item.isInRangeHover = itemTime >= time && itemTime <= end;
|
|
995
|
+
}
|
|
996
|
+
else if (this.rangeType === 'end') {
|
|
997
|
+
item.isInRangeHover = itemTime >= start && itemTime <= time;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
if (isEmit) {
|
|
1002
|
+
this.rangeTdMouseenter.emit(cell);
|
|
1003
|
+
}
|
|
1004
|
+
else {
|
|
1005
|
+
this.cdr.detectChanges();
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
onTdMouseleave(cell, isEmit = true) {
|
|
1010
|
+
const [start, end] = this.rangeValue;
|
|
1011
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1012
|
+
this.clearState(...this.dates);
|
|
1013
|
+
if (isEmit)
|
|
1014
|
+
this.rangeTdMouseleave.emit(cell);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
clearState(...cells) {
|
|
1018
|
+
for (let cell of cells) {
|
|
1019
|
+
cell.isInRangeHover = false;
|
|
1020
|
+
cell.isRangeHover = false;
|
|
1021
|
+
cell.isRangeHoverStart = false;
|
|
1022
|
+
cell.isRangeHoverEnd = false;
|
|
1023
|
+
cell.isRangeHoverStartLeft = false;
|
|
1024
|
+
cell.isRangeHoverStartRight = false;
|
|
1025
|
+
cell.isRangeHoverEndLeft = false;
|
|
1026
|
+
cell.isRangeHoverEndRight = false;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
setDays(date) {
|
|
1030
|
+
let dates = [];
|
|
1031
|
+
const year = date.getFullYear();
|
|
1032
|
+
const month = date.getMonth();
|
|
1033
|
+
const first = new Date(year, month, 1);
|
|
1034
|
+
const last = new Date(year, month + 1, 0);
|
|
1035
|
+
const lastDate = last.getDate();
|
|
1036
|
+
const firstDay = first.getDay();
|
|
1037
|
+
const lastDay = last.getDay();
|
|
1038
|
+
let day = firstDay;
|
|
1039
|
+
let index = 1;
|
|
1040
|
+
while (day !== 1) {
|
|
1041
|
+
index--;
|
|
1042
|
+
const cell = { date: new Date(year, month, index) };
|
|
1043
|
+
dates = [this.setDayState(cell), ...dates];
|
|
1044
|
+
day = cell.date.getDay();
|
|
1045
|
+
}
|
|
1046
|
+
index = 1;
|
|
1047
|
+
do {
|
|
1048
|
+
const cell = { date: new Date(year, month, index), isFirstDay: index === 1, isLastDay: index === lastDate };
|
|
1049
|
+
dates = [...dates, this.setDayState(cell)];
|
|
1050
|
+
index++;
|
|
1051
|
+
} while (index <= lastDate);
|
|
1052
|
+
index = 0;
|
|
1053
|
+
day = lastDay;
|
|
1054
|
+
while (day !== 0 || dates.length !== 7 * 6) {
|
|
1055
|
+
index++;
|
|
1056
|
+
const cell = { date: new Date(year, month + 1, index) };
|
|
1057
|
+
dates = [...dates, this.setDayState(cell)];
|
|
1058
|
+
day = cell.date.getDay();
|
|
1059
|
+
}
|
|
1060
|
+
this.dates = dates;
|
|
1061
|
+
this.weekDates = XChunk(dates, 7);
|
|
1062
|
+
if (this.type === 'week') {
|
|
1063
|
+
for (let item of this.dates) {
|
|
1064
|
+
item.week = XDateWeek(item.date);
|
|
1065
|
+
}
|
|
1066
|
+
for (let week of this.weekDates) {
|
|
1067
|
+
week.unshift({ type: 'week', week: week[0].week });
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
if (this.dates.length > 0) {
|
|
1071
|
+
this.rangeChange.emit([dates[0].date, dates[dates.length - 1].date]);
|
|
1072
|
+
}
|
|
1073
|
+
this.cdr.detectChanges();
|
|
1074
|
+
}
|
|
1075
|
+
setDayState(cell) {
|
|
1076
|
+
const time = cell.date?.getTime();
|
|
1077
|
+
const fdate = this.datePipe.transform(cell.date, 'yyyyMMdd');
|
|
1078
|
+
const fdatem = this.datePipe.transform(cell.date, 'yyyyMM');
|
|
1079
|
+
const fdisplaym = this.datePipe.transform(this.display, 'yyyyMM');
|
|
1080
|
+
const fnow = this.datePipe.transform(this.now, 'yyyyMMdd');
|
|
1081
|
+
cell.isLastOrNext = fdatem !== fdisplaym;
|
|
1082
|
+
cell.isNow = fdate === fnow;
|
|
1083
|
+
cell.isDisabled = this.isDisabled(cell.date);
|
|
1084
|
+
if (this.rangePicker) {
|
|
1085
|
+
if (!this.rangeValue)
|
|
1086
|
+
return cell;
|
|
1087
|
+
const [start, end] = this.rangeValue;
|
|
1088
|
+
cell.isInRange = !!start && !!end && time >= start && time <= end;
|
|
1089
|
+
cell.isRangeStartRight = !!start && !!end && fdate === this.datePipe.transform(start, 'yyyyMMdd');
|
|
1090
|
+
cell.isRangeEndLeft = !!start && !!end && fdate === this.datePipe.transform(end, 'yyyyMMdd');
|
|
1091
|
+
}
|
|
1092
|
+
return cell;
|
|
1093
|
+
}
|
|
1094
|
+
dateClick(cell) {
|
|
1095
|
+
this.model = cell.date;
|
|
1096
|
+
this.modelChange.emit(cell.date);
|
|
1097
|
+
if (this.rangePicker) {
|
|
1098
|
+
this.clearState(...this.dates);
|
|
1099
|
+
for (let item of this.dates) {
|
|
1100
|
+
this.setDayState(item);
|
|
1101
|
+
}
|
|
1102
|
+
this.rangeDateClick.emit(cell);
|
|
1103
|
+
}
|
|
1104
|
+
this.cdr.detectChanges();
|
|
1105
|
+
}
|
|
1106
|
+
getLocaleMonth(date) {
|
|
1107
|
+
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
1108
|
+
}
|
|
1109
|
+
rangeDisabled(date) {
|
|
1110
|
+
if (this.rangeType === 'end') {
|
|
1111
|
+
return this.rangeStart !== '' && date.getTime() < this.rangeStart;
|
|
1112
|
+
}
|
|
1113
|
+
else if (this.rangeType === 'start') {
|
|
1114
|
+
return this.rangeEnd !== '' && date.getTime() > this.rangeEnd;
|
|
1115
|
+
}
|
|
1116
|
+
return false;
|
|
1117
|
+
}
|
|
1118
|
+
setDisplay(date) {
|
|
1119
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1120
|
+
this.displayChange.emit(this.display);
|
|
1121
|
+
this.setDays(this.display);
|
|
1122
|
+
}
|
|
1123
|
+
nextMonth(num) {
|
|
1124
|
+
let date = new Date(this.display);
|
|
1125
|
+
date.setMonth(date.getMonth() + num);
|
|
1126
|
+
this.setDisplay(date);
|
|
1127
|
+
this.monthChange.emit(num);
|
|
1128
|
+
this.cdr.detectChanges();
|
|
1129
|
+
}
|
|
1130
|
+
nextYear(num) {
|
|
1131
|
+
let date = new Date(this.display);
|
|
1132
|
+
date.setFullYear(date.getFullYear() + num);
|
|
1133
|
+
this.setDisplay(date);
|
|
1134
|
+
this.yearChange.emit(num);
|
|
1135
|
+
this.cdr.detectChanges();
|
|
1136
|
+
}
|
|
1137
|
+
typeOnChange(type) {
|
|
1138
|
+
this.type = type;
|
|
1139
|
+
this.typeChange.emit(type);
|
|
1140
|
+
this.cdr.detectChanges();
|
|
1141
|
+
}
|
|
1142
|
+
trackByNode(_index, item) {
|
|
1143
|
+
return item;
|
|
1144
|
+
}
|
|
1145
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerDateComponent, deps: [{ token: i0.Renderer2 }, { token: i1.DatePipe }, { token: i1.LowerCasePipe }, { token: i0.ChangeDetectorRef }, { token: i2.XConfigService }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1146
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerDateComponent, selector: "x-picker-date", providers: [DatePipe, LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"x-picker-date\" [class.x-date-picker-datetemp]=\"dateTemp\">\r\n <div class=\"x-picker-date-header\" *ngIf=\"showHeader\">\r\n <x-link icon=\"fto-chevrons-left\" (click)=\"nextYear(-1)\" [class.x-visibility]=\"!lastYearBtn\"></x-link>\r\n <x-link icon=\"fto-chevron-left\" (click)=\"nextMonth(-1)\" [class.x-visibility]=\"!lastMonthBtn\"></x-link>\r\n <div class=\"x-picker-date-year-month\">\r\n <x-link (click)=\"typeOnChange('year')\">{{ display | date : 'yyyy' }}{{ locale.year }}</x-link>\r\n <x-link (click)=\"typeOnChange('month')\">{{ getLocaleMonth(display) }}</x-link>\r\n </div>\r\n <x-link icon=\"fto-chevron-right\" (click)=\"nextMonth(1)\" [class.x-visibility]=\"!nextMonthBtn\"></x-link>\r\n <x-link icon=\"fto-chevrons-right\" (click)=\"nextYear(1)\" [class.x-visibility]=\"!nextYearBtn\"></x-link>\r\n </div>\r\n <div class=\"x-picker-date-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let title of titles; trackBy: trackByNode\">{{ title | xI18n }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"let weeks of weekDates\"\r\n [class.x-date-week-active]=\"!rangePicker && isWeek && isWeekActive(weeks)\"\r\n [class.x-date-week-start-active]=\"isWeekRange && isStartWeek(weeks)\"\r\n [class.x-date-week-end-active]=\"isWeekRange && isEndWeek(weeks)\"\r\n [class.x-date-week-in-range]=\"isWeekRange && isInRangeWeek(weeks)\"\r\n >\r\n <ng-container *ngFor=\"let week of weeks; trackBy: trackByNode\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-week]=\"week.type === 'week'\"\r\n [class.x-date-disabled]=\"week.isDisabled\"\r\n [class.x-date-last-or-next]=\"week.isLastOrNext\"\r\n [class.x-date-now]=\"week.isNow\"\r\n [class.x-date-first-day]=\"week.isFirstDay\"\r\n [class.x-date-last-day]=\"week.isLastDay\"\r\n [class.x-date-range-start]=\"isNotWeekRange && isStartDate(week.date!)\"\r\n [class.x-date-range-end]=\"isNotWeekRange && isEndDate(week.date!)\"\r\n [class.x-date-range-start-left]=\"isNotWeekRange && week.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"isNotWeekRange && week.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"isNotWeekRange && week.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"isNotWeekRange && week.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"isNotWeekRange && week.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"isNotWeekRange && week.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"isNotWeekRange && week.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"isNotWeekRange && week.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"isNotWeekRange && week.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"isNotWeekRange && week.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"isNotWeekRange && week.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"isNotWeekRange && week.isInRange\"\r\n [class.x-date-in-range-hover]=\"isNotWeekRange && week.isInRangeHover\"\r\n [class.x-date-active]=\"\r\n !rangePicker && week.type !== 'week' && (week.date | date : 'yyyyMMdd') === (model | date : 'yyyyMMdd')\r\n \"\r\n title=\"{{ week.date | date : 'yyyy-MM-dd' }}\"\r\n (click)=\"week.type !== 'week' && !week.isDisabled && dateClick(week)\"\r\n (mouseenter)=\"week.type !== 'week' && !week.isDisabled && rangePicker && rangeHover && onTdMouseenter(week)\"\r\n (mouseleave)=\"week.type !== 'week' && !week.isDisabled && rangePicker && rangeHover && onTdMouseleave(week)\"\r\n >\r\n <div *ngIf=\"!dateTemp\" class=\"x-date-text\">\r\n <ng-container [ngSwitch]=\"week.type\">\r\n <ng-container *ngSwitchCase=\"'week'\">{{ week.week }}</ng-container>\r\n <ng-container *ngSwitchDefault>{{ week.date | date : 'd' }}</ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"dateTemp\">\r\n <ng-container *ngTemplateOutlet=\"dateTemp; context: { date$: week.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-date{margin:0;padding:0}.x-picker-date-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-date-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-date-header .x-link{padding:0 .25rem}.x-picker-date-year-month{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-date-body{padding:.1375rem .5rem}.x-picker-date-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-date-body>table tr{display:flex;align-items:center;justify-content:center}.x-picker-date-body>table tr.x-date-week-active .x-picker-date-item,.x-picker-date-body>table tr.x-date-week-active .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text,.x-picker-date-body>table tr.x-date-week-start-active .x-picker-date-item,.x-picker-date-body>table tr.x-date-week-start-active .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text,.x-picker-date-body>table tr.x-date-week-end-active .x-picker-date-item,.x-picker-date-body>table tr.x-date-week-end-active .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);color:var(--x-background-100)}.x-picker-date-body>table tbody tr{padding:.125rem 0}.x-picker-date-body>table th{flex:1;font-weight:400;height:2rem;line-height:2rem;color:var(--x-text-400);-webkit-user-select:none;user-select:none}.x-picker-date-body>table td{padding:.125rem 0;flex:1;-webkit-user-select:none;user-select:none}.x-picker-date-body>table td:first-child{border-top-left-radius:var(--x-border-radius);border-bottom-left-radius:var(--x-border-radius)}.x-picker-date-body>table td:last-child{border-top-right-radius:var(--x-border-radius);border-bottom-right-radius:var(--x-border-radius)}.x-picker-date-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative;transition:var(--x-animation-duration-base)}.x-picker-date-body .x-picker-date-item .x-date-text{width:1.75rem;height:1.625rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-date-body .x-picker-date-item:after,.x-picker-date-body .x-picker-date-item:before{height:1.625rem}.x-picker-date-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-date-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-date-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-date-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:1.75rem}.x-picker-date-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:1.75rem}.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:1.75rem}.x-picker-date-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-date .x-visibility{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i4.XLinkComponent, selector: "x-link" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i3.XI18nPipe, name: "xI18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1147
|
+
}
|
|
1148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerDateComponent, decorators: [{
|
|
1149
|
+
type: Component,
|
|
1150
|
+
args: [{ selector: `${XPickerDatePrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DatePipe, LowerCasePipe], template: "<div class=\"x-picker-date\" [class.x-date-picker-datetemp]=\"dateTemp\">\r\n <div class=\"x-picker-date-header\" *ngIf=\"showHeader\">\r\n <x-link icon=\"fto-chevrons-left\" (click)=\"nextYear(-1)\" [class.x-visibility]=\"!lastYearBtn\"></x-link>\r\n <x-link icon=\"fto-chevron-left\" (click)=\"nextMonth(-1)\" [class.x-visibility]=\"!lastMonthBtn\"></x-link>\r\n <div class=\"x-picker-date-year-month\">\r\n <x-link (click)=\"typeOnChange('year')\">{{ display | date : 'yyyy' }}{{ locale.year }}</x-link>\r\n <x-link (click)=\"typeOnChange('month')\">{{ getLocaleMonth(display) }}</x-link>\r\n </div>\r\n <x-link icon=\"fto-chevron-right\" (click)=\"nextMonth(1)\" [class.x-visibility]=\"!nextMonthBtn\"></x-link>\r\n <x-link icon=\"fto-chevrons-right\" (click)=\"nextYear(1)\" [class.x-visibility]=\"!nextYearBtn\"></x-link>\r\n </div>\r\n <div class=\"x-picker-date-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let title of titles; trackBy: trackByNode\">{{ title | xI18n }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"let weeks of weekDates\"\r\n [class.x-date-week-active]=\"!rangePicker && isWeek && isWeekActive(weeks)\"\r\n [class.x-date-week-start-active]=\"isWeekRange && isStartWeek(weeks)\"\r\n [class.x-date-week-end-active]=\"isWeekRange && isEndWeek(weeks)\"\r\n [class.x-date-week-in-range]=\"isWeekRange && isInRangeWeek(weeks)\"\r\n >\r\n <ng-container *ngFor=\"let week of weeks; trackBy: trackByNode\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-week]=\"week.type === 'week'\"\r\n [class.x-date-disabled]=\"week.isDisabled\"\r\n [class.x-date-last-or-next]=\"week.isLastOrNext\"\r\n [class.x-date-now]=\"week.isNow\"\r\n [class.x-date-first-day]=\"week.isFirstDay\"\r\n [class.x-date-last-day]=\"week.isLastDay\"\r\n [class.x-date-range-start]=\"isNotWeekRange && isStartDate(week.date!)\"\r\n [class.x-date-range-end]=\"isNotWeekRange && isEndDate(week.date!)\"\r\n [class.x-date-range-start-left]=\"isNotWeekRange && week.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"isNotWeekRange && week.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"isNotWeekRange && week.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"isNotWeekRange && week.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"isNotWeekRange && week.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"isNotWeekRange && week.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"isNotWeekRange && week.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"isNotWeekRange && week.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"isNotWeekRange && week.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"isNotWeekRange && week.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"isNotWeekRange && week.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"isNotWeekRange && week.isInRange\"\r\n [class.x-date-in-range-hover]=\"isNotWeekRange && week.isInRangeHover\"\r\n [class.x-date-active]=\"\r\n !rangePicker && week.type !== 'week' && (week.date | date : 'yyyyMMdd') === (model | date : 'yyyyMMdd')\r\n \"\r\n title=\"{{ week.date | date : 'yyyy-MM-dd' }}\"\r\n (click)=\"week.type !== 'week' && !week.isDisabled && dateClick(week)\"\r\n (mouseenter)=\"week.type !== 'week' && !week.isDisabled && rangePicker && rangeHover && onTdMouseenter(week)\"\r\n (mouseleave)=\"week.type !== 'week' && !week.isDisabled && rangePicker && rangeHover && onTdMouseleave(week)\"\r\n >\r\n <div *ngIf=\"!dateTemp\" class=\"x-date-text\">\r\n <ng-container [ngSwitch]=\"week.type\">\r\n <ng-container *ngSwitchCase=\"'week'\">{{ week.week }}</ng-container>\r\n <ng-container *ngSwitchDefault>{{ week.date | date : 'd' }}</ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"dateTemp\">\r\n <ng-container *ngTemplateOutlet=\"dateTemp; context: { date$: week.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-date{margin:0;padding:0}.x-picker-date-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-date-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-date-header .x-link{padding:0 .25rem}.x-picker-date-year-month{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-date-body{padding:.1375rem .5rem}.x-picker-date-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-date-body>table tr{display:flex;align-items:center;justify-content:center}.x-picker-date-body>table tr.x-date-week-active .x-picker-date-item,.x-picker-date-body>table tr.x-date-week-active .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text,.x-picker-date-body>table tr.x-date-week-start-active .x-picker-date-item,.x-picker-date-body>table tr.x-date-week-start-active .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text,.x-picker-date-body>table tr.x-date-week-end-active .x-picker-date-item,.x-picker-date-body>table tr.x-date-week-end-active .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);color:var(--x-background-100)}.x-picker-date-body>table tbody tr{padding:.125rem 0}.x-picker-date-body>table th{flex:1;font-weight:400;height:2rem;line-height:2rem;color:var(--x-text-400);-webkit-user-select:none;user-select:none}.x-picker-date-body>table td{padding:.125rem 0;flex:1;-webkit-user-select:none;user-select:none}.x-picker-date-body>table td:first-child{border-top-left-radius:var(--x-border-radius);border-bottom-left-radius:var(--x-border-radius)}.x-picker-date-body>table td:last-child{border-top-right-radius:var(--x-border-radius);border-bottom-right-radius:var(--x-border-radius)}.x-picker-date-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative;transition:var(--x-animation-duration-base)}.x-picker-date-body .x-picker-date-item .x-date-text{width:1.75rem;height:1.625rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-date-body .x-picker-date-item:after,.x-picker-date-body .x-picker-date-item:before{height:1.625rem}.x-picker-date-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-date-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-date-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-date-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-date-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:1.75rem}.x-picker-date-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:1.75rem}.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-date-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:1.75rem}.x-picker-date-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-date .x-visibility{visibility:hidden}\n"] }]
|
|
1151
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1.DatePipe }, { type: i1.LowerCasePipe }, { type: i0.ChangeDetectorRef }, { type: i2.XConfigService }, { type: i3.XI18nService }]; } });
|
|
1152
|
+
|
|
1153
|
+
class XPickerMonthComponent extends XPickerMonthProperty {
|
|
1154
|
+
get rangeStart() {
|
|
1155
|
+
if (this.rangeValue && this.rangeValue.length > 0) {
|
|
1156
|
+
return this.rangeValue[0];
|
|
1157
|
+
}
|
|
1158
|
+
return '';
|
|
1159
|
+
}
|
|
1160
|
+
get rangeEnd() {
|
|
1161
|
+
if (this.rangeValue && this.rangeValue.length > 1) {
|
|
1162
|
+
return this.rangeValue[1];
|
|
1163
|
+
}
|
|
1164
|
+
return '';
|
|
1165
|
+
}
|
|
1166
|
+
isDisabled(date) {
|
|
1167
|
+
if (this.disabledDate && XIsFunction(this.disabledDate)) {
|
|
1168
|
+
return this.disabledDate(date);
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
return false;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
constructor(renderer, datePipe, lowerCasePipe, cdr, configService, i18n) {
|
|
1175
|
+
super();
|
|
1176
|
+
this.renderer = renderer;
|
|
1177
|
+
this.datePipe = datePipe;
|
|
1178
|
+
this.lowerCasePipe = lowerCasePipe;
|
|
1179
|
+
this.cdr = cdr;
|
|
1180
|
+
this.configService = configService;
|
|
1181
|
+
this.i18n = i18n;
|
|
1182
|
+
this.now = new Date();
|
|
1183
|
+
this.dates = [];
|
|
1184
|
+
this.chunkDates = [];
|
|
1185
|
+
this.locale = {};
|
|
1186
|
+
this._unSubject = new Subject();
|
|
1187
|
+
}
|
|
1188
|
+
ngOnInit() {
|
|
1189
|
+
this.i18n.localeChange
|
|
1190
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
1191
|
+
.subscribe((x) => {
|
|
1192
|
+
this.locale = x;
|
|
1193
|
+
this.cdr.markForCheck();
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
ngOnChanges(simples) {
|
|
1197
|
+
const { display } = simples;
|
|
1198
|
+
XIsChange(display) && this.init();
|
|
1199
|
+
}
|
|
1200
|
+
init() {
|
|
1201
|
+
this.setMonths(this.display);
|
|
1202
|
+
}
|
|
1203
|
+
isStartMonth(date) {
|
|
1204
|
+
if (!this.rangeType || !this.rangeValue)
|
|
1205
|
+
return;
|
|
1206
|
+
if (!XIsNull(this.rangeValue[0])) {
|
|
1207
|
+
return this.datePipe.transform(this.rangeValue[0], 'yyyyMM') === this.datePipe.transform(date, 'yyyyMM');
|
|
1208
|
+
}
|
|
1209
|
+
return;
|
|
1210
|
+
}
|
|
1211
|
+
isEndMonth(date) {
|
|
1212
|
+
if (!this.rangeType || !this.rangeValue)
|
|
1213
|
+
return;
|
|
1214
|
+
if (!XIsNull(this.rangeValue[1])) {
|
|
1215
|
+
return this.datePipe.transform(this.rangeValue[1], 'yyyyMM') === this.datePipe.transform(date, 'yyyyMM');
|
|
1216
|
+
}
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
setDatesState(cell) {
|
|
1220
|
+
this.clearState(...this.dates);
|
|
1221
|
+
for (let item of this.dates) {
|
|
1222
|
+
this.setDayState(item);
|
|
1223
|
+
}
|
|
1224
|
+
this.onTdMouseenter(cell, false);
|
|
1225
|
+
}
|
|
1226
|
+
onTdMouseenter(cell, isEmit = true) {
|
|
1227
|
+
const [start, end] = this.rangeValue;
|
|
1228
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1229
|
+
const time = cell.date.getTime();
|
|
1230
|
+
for (let item of this.dates) {
|
|
1231
|
+
const itemTime = item.date.getTime();
|
|
1232
|
+
this.clearState(item);
|
|
1233
|
+
if (!XIsNull(start) && XIsNull(end)) {
|
|
1234
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
1235
|
+
item.isRangeHoverStartRight = time > start && itemTime === start;
|
|
1236
|
+
item.isRangeHover =
|
|
1237
|
+
(time < start && itemTime >= time && itemTime < start) || (time > start && itemTime > start && itemTime <= time);
|
|
1238
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
1239
|
+
item.isRangeHoverEnd = itemTime === time && time > start;
|
|
1240
|
+
}
|
|
1241
|
+
else if (XIsNull(start) && !XIsNull(end)) {
|
|
1242
|
+
item.isRangeHoverEndLeft = time < end && itemTime === end;
|
|
1243
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
1244
|
+
item.isRangeHover = (time < end && itemTime >= time && itemTime < end) || (time > end && itemTime > end && itemTime <= time);
|
|
1245
|
+
item.isRangeHoverStart = itemTime === time && time < end;
|
|
1246
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
1247
|
+
}
|
|
1248
|
+
else if (!XIsNull(start) && !XIsNull(end)) {
|
|
1249
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
1250
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
1251
|
+
item.isRangeHover =
|
|
1252
|
+
(time < start && itemTime >= time && itemTime < start) || (time > end && itemTime > end && itemTime <= time);
|
|
1253
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
1254
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
1255
|
+
if (this.rangeType === 'start') {
|
|
1256
|
+
item.isInRangeHover = itemTime >= time && itemTime <= end;
|
|
1257
|
+
}
|
|
1258
|
+
else if (this.rangeType === 'end') {
|
|
1259
|
+
item.isInRangeHover = itemTime >= start && itemTime <= time;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
if (isEmit) {
|
|
1264
|
+
this.rangeTdMouseenter.emit(cell);
|
|
1265
|
+
}
|
|
1266
|
+
else {
|
|
1267
|
+
this.cdr.detectChanges();
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
onTdMouseleave(cell, isEmit = true) {
|
|
1272
|
+
const [start, end] = this.rangeValue;
|
|
1273
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1274
|
+
this.clearState(...this.dates);
|
|
1275
|
+
if (isEmit)
|
|
1276
|
+
this.rangeTdMouseleave.emit(cell);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
clearState(...cells) {
|
|
1280
|
+
for (let cell of cells) {
|
|
1281
|
+
cell.isInRangeHover = false;
|
|
1282
|
+
cell.isRangeHover = false;
|
|
1283
|
+
cell.isRangeHoverStart = false;
|
|
1284
|
+
cell.isRangeHoverEnd = false;
|
|
1285
|
+
cell.isRangeHoverStartLeft = false;
|
|
1286
|
+
cell.isRangeHoverStartRight = false;
|
|
1287
|
+
cell.isRangeHoverEndLeft = false;
|
|
1288
|
+
cell.isRangeHoverEndRight = false;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
setMonths(date) {
|
|
1292
|
+
let year = date.getFullYear();
|
|
1293
|
+
let dates = [];
|
|
1294
|
+
for (let i = 0; i < 16; i++) {
|
|
1295
|
+
const cell = { date: new Date(year, i, 1), isFirstDay: i === 0, isLastDay: i === 11 };
|
|
1296
|
+
dates = [...dates, this.setDayState(cell)];
|
|
1297
|
+
}
|
|
1298
|
+
this.dates = dates;
|
|
1299
|
+
this.chunkDates = XChunk(dates, 4);
|
|
1300
|
+
if (this.dates.length > 0) {
|
|
1301
|
+
this.rangeChange.emit([dates[0].date, dates[dates.length - 1].date]);
|
|
1302
|
+
}
|
|
1303
|
+
this.cdr.detectChanges();
|
|
1304
|
+
}
|
|
1305
|
+
setDayState(cell) {
|
|
1306
|
+
const time = cell.date?.getTime();
|
|
1307
|
+
const fmonth = this.datePipe.transform(cell.date, 'yyyyMM');
|
|
1308
|
+
const fmonthy = this.datePipe.transform(cell.date, 'yyyy');
|
|
1309
|
+
const fdisplayy = this.datePipe.transform(this.display, 'yyyy');
|
|
1310
|
+
const fnow = this.datePipe.transform(this.now, 'yyyyMM');
|
|
1311
|
+
cell.isLastOrNext = fmonthy !== fdisplayy;
|
|
1312
|
+
cell.isNow = fmonth === fnow;
|
|
1313
|
+
cell.isDisabled = this.isDisabled(cell.date);
|
|
1314
|
+
if (this.rangePicker) {
|
|
1315
|
+
if (!this.rangeValue)
|
|
1316
|
+
return cell;
|
|
1317
|
+
const [start, end] = this.rangeValue;
|
|
1318
|
+
cell.isInRange = !!start && !!end && time >= start && time <= end;
|
|
1319
|
+
cell.isRangeStartRight = !!start && !!end && fmonth === this.datePipe.transform(start, 'yyyyMM');
|
|
1320
|
+
cell.isRangeEndLeft = !!start && !!end && fmonth === this.datePipe.transform(end, 'yyyyMM');
|
|
1321
|
+
}
|
|
1322
|
+
return cell;
|
|
1323
|
+
}
|
|
1324
|
+
monthClick(cell) {
|
|
1325
|
+
this.model = cell.date;
|
|
1326
|
+
this.modelChange.emit(cell.date);
|
|
1327
|
+
if (this.rangePicker) {
|
|
1328
|
+
this.clearState(...this.dates);
|
|
1329
|
+
for (let item of this.dates) {
|
|
1330
|
+
this.setDayState(item);
|
|
1331
|
+
}
|
|
1332
|
+
this.rangeDateClick.emit(cell);
|
|
1333
|
+
}
|
|
1334
|
+
this.cdr.markForCheck();
|
|
1335
|
+
}
|
|
1336
|
+
getLocaleMonth(date) {
|
|
1337
|
+
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
1338
|
+
}
|
|
1339
|
+
rangeDisabled(date) {
|
|
1340
|
+
if (this.rangeType === 'end') {
|
|
1341
|
+
return this.rangeStart !== '' && date.getTime() < this.rangeStart;
|
|
1342
|
+
}
|
|
1343
|
+
else if (this.rangeType === 'start') {
|
|
1344
|
+
return this.rangeEnd !== '' && date.getTime() > this.rangeEnd;
|
|
1345
|
+
}
|
|
1346
|
+
return false;
|
|
1347
|
+
}
|
|
1348
|
+
setDisplay(date) {
|
|
1349
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1350
|
+
this.displayChange.emit(this.display);
|
|
1351
|
+
this.setMonths(this.display);
|
|
1352
|
+
}
|
|
1353
|
+
nextYear(num) {
|
|
1354
|
+
let date = new Date(this.display);
|
|
1355
|
+
date.setFullYear(date.getFullYear() + num);
|
|
1356
|
+
this.setDisplay(date);
|
|
1357
|
+
this.yearChange.emit(num);
|
|
1358
|
+
this.cdr.detectChanges();
|
|
1359
|
+
}
|
|
1360
|
+
typeOnChange(type) {
|
|
1361
|
+
this.type = type;
|
|
1362
|
+
this.typeChange.emit(type);
|
|
1363
|
+
this.cdr.detectChanges();
|
|
1364
|
+
}
|
|
1365
|
+
trackByMonth(_index, item) {
|
|
1366
|
+
return item;
|
|
1367
|
+
}
|
|
1368
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerMonthComponent, deps: [{ token: i0.Renderer2 }, { token: i1.DatePipe }, { token: i1.LowerCasePipe }, { token: i0.ChangeDetectorRef }, { token: i2.XConfigService }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1369
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerMonthComponent, selector: "x-picker-month", providers: [DatePipe, LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"x-picker-month\" [class.x-date-picker-monthtemp]=\"monthTemp\">\r\n <div class=\"x-picker-month-header\" *ngIf=\"showHeader\">\r\n <x-link [class.x-visibility]=\"!lastYearBtn\" icon=\"fto-chevrons-left\" (click)=\"nextYear(-1)\"></x-link>\r\n <div class=\"x-picker-month-year-month\">\r\n <x-link (click)=\"typeOnChange('year')\">{{ display | date : 'yyyy' }}{{ locale.year }}</x-link>\r\n </div>\r\n <x-link [class.x-visibility]=\"!nextYearBtn\" icon=\"fto-chevrons-right\" (click)=\"nextYear(1)\"></x-link>\r\n </div>\r\n <div class=\"x-picker-month-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let months of chunkDates\">\r\n <ng-container *ngFor=\"let month of months; trackBy: trackByMonth\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-disabled]=\"month.isDisabled\"\r\n [class.x-date-last-or-next]=\"month.isLastOrNext\"\r\n [class.x-date-now]=\"month.isNow\"\r\n [class.x-date-first-day]=\"month.isFirstDay\"\r\n [class.x-date-last-day]=\"month.isLastDay\"\r\n [class.x-date-range-start]=\"rangePicker && isStartMonth(month.date!)\"\r\n [class.x-date-range-end]=\"rangePicker && isEndMonth(month.date!)\"\r\n [class.x-date-range-start-left]=\"rangePicker && month.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"rangePicker && month.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"rangePicker && month.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"rangePicker && month.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"rangePicker && month.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"rangePicker && month.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"rangePicker && month.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"rangePicker && month.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"rangePicker && month.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"rangePicker && month.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"rangePicker && month.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"rangePicker && month.isInRange\"\r\n [class.x-date-in-range-hover]=\"rangePicker && month.isInRangeHover\"\r\n [class.x-date-active]=\"!rangePicker && (month.date | date : 'yyyyMM') === (model | date : 'yyyyMM')\"\r\n title=\"{{ month.date | date : 'yyyy-MM' }}\"\r\n (click)=\"!month.isDisabled && monthClick(month)\"\r\n (mouseenter)=\"!month.isDisabled && rangePicker && onTdMouseenter(month)\"\r\n (mouseleave)=\"!month.isDisabled && rangePicker && onTdMouseleave(month)\"\r\n >\r\n <div *ngIf=\"!monthTemp\" class=\"x-date-text\">\r\n {{ getLocaleMonth(month.date!) }}\r\n </div>\r\n <ng-container *ngIf=\"monthTemp\">\r\n <ng-container *ngTemplateOutlet=\"monthTemp; context: { date$: month.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-month{margin:0;padding:0}.x-picker-month-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-month-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-month-header .x-link{padding:0 .25rem}.x-picker-month-year-month{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-month-body{padding:.1375rem .5rem}.x-picker-month-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-month-body>table tr{padding:.125rem 0;display:flex;align-items:center;justify-content:center}.x-picker-month-body>table td{flex:1;padding:.125rem 0;-webkit-user-select:none;user-select:none}.x-picker-month-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative}.x-picker-month-body .x-picker-date-item .x-date-text{width:3.5rem;height:3.25rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-month-body .x-picker-date-item:after,.x-picker-month-body .x-picker-date-item:before{height:3.25rem}.x-picker-month-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-month-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-month-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-month-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:3.5rem}.x-picker-month-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:3.5rem}.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:3.5rem}.x-picker-month-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-month .x-visibility{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.XLinkComponent, selector: "x-link" }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1370
|
+
}
|
|
1371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerMonthComponent, decorators: [{
|
|
1372
|
+
type: Component,
|
|
1373
|
+
args: [{ selector: 'x-picker-month', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DatePipe, LowerCasePipe], template: "<div class=\"x-picker-month\" [class.x-date-picker-monthtemp]=\"monthTemp\">\r\n <div class=\"x-picker-month-header\" *ngIf=\"showHeader\">\r\n <x-link [class.x-visibility]=\"!lastYearBtn\" icon=\"fto-chevrons-left\" (click)=\"nextYear(-1)\"></x-link>\r\n <div class=\"x-picker-month-year-month\">\r\n <x-link (click)=\"typeOnChange('year')\">{{ display | date : 'yyyy' }}{{ locale.year }}</x-link>\r\n </div>\r\n <x-link [class.x-visibility]=\"!nextYearBtn\" icon=\"fto-chevrons-right\" (click)=\"nextYear(1)\"></x-link>\r\n </div>\r\n <div class=\"x-picker-month-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let months of chunkDates\">\r\n <ng-container *ngFor=\"let month of months; trackBy: trackByMonth\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-disabled]=\"month.isDisabled\"\r\n [class.x-date-last-or-next]=\"month.isLastOrNext\"\r\n [class.x-date-now]=\"month.isNow\"\r\n [class.x-date-first-day]=\"month.isFirstDay\"\r\n [class.x-date-last-day]=\"month.isLastDay\"\r\n [class.x-date-range-start]=\"rangePicker && isStartMonth(month.date!)\"\r\n [class.x-date-range-end]=\"rangePicker && isEndMonth(month.date!)\"\r\n [class.x-date-range-start-left]=\"rangePicker && month.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"rangePicker && month.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"rangePicker && month.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"rangePicker && month.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"rangePicker && month.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"rangePicker && month.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"rangePicker && month.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"rangePicker && month.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"rangePicker && month.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"rangePicker && month.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"rangePicker && month.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"rangePicker && month.isInRange\"\r\n [class.x-date-in-range-hover]=\"rangePicker && month.isInRangeHover\"\r\n [class.x-date-active]=\"!rangePicker && (month.date | date : 'yyyyMM') === (model | date : 'yyyyMM')\"\r\n title=\"{{ month.date | date : 'yyyy-MM' }}\"\r\n (click)=\"!month.isDisabled && monthClick(month)\"\r\n (mouseenter)=\"!month.isDisabled && rangePicker && onTdMouseenter(month)\"\r\n (mouseleave)=\"!month.isDisabled && rangePicker && onTdMouseleave(month)\"\r\n >\r\n <div *ngIf=\"!monthTemp\" class=\"x-date-text\">\r\n {{ getLocaleMonth(month.date!) }}\r\n </div>\r\n <ng-container *ngIf=\"monthTemp\">\r\n <ng-container *ngTemplateOutlet=\"monthTemp; context: { date$: month.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-month{margin:0;padding:0}.x-picker-month-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-month-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-month-header .x-link{padding:0 .25rem}.x-picker-month-year-month{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-month-body{padding:.1375rem .5rem}.x-picker-month-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-month-body>table tr{padding:.125rem 0;display:flex;align-items:center;justify-content:center}.x-picker-month-body>table td{flex:1;padding:.125rem 0;-webkit-user-select:none;user-select:none}.x-picker-month-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative}.x-picker-month-body .x-picker-date-item .x-date-text{width:3.5rem;height:3.25rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-month-body .x-picker-date-item:after,.x-picker-month-body .x-picker-date-item:before{height:3.25rem}.x-picker-month-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-month-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-month-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-month-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-month-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:3.5rem}.x-picker-month-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:3.5rem}.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-month-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:3.5rem}.x-picker-month-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-month .x-visibility{visibility:hidden}\n"] }]
|
|
1374
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1.DatePipe }, { type: i1.LowerCasePipe }, { type: i0.ChangeDetectorRef }, { type: i2.XConfigService }, { type: i3.XI18nService }]; } });
|
|
1375
|
+
|
|
1376
|
+
class XDateQuarterPipe {
|
|
1377
|
+
constructor() { }
|
|
1378
|
+
transform(input, includeYear = false) {
|
|
1379
|
+
if (!input)
|
|
1380
|
+
return '';
|
|
1381
|
+
return !includeYear ? XDateQuarter(input) : XDateYearQuarter(input);
|
|
1382
|
+
}
|
|
1383
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateQuarterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1384
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: XDateQuarterPipe, name: "xDateQuarter" }); }
|
|
1385
|
+
}
|
|
1386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateQuarterPipe, decorators: [{
|
|
1387
|
+
type: Pipe,
|
|
1388
|
+
args: [{ name: `${XDateQuarterPrefix}` }]
|
|
1389
|
+
}], ctorParameters: function () { return []; } });
|
|
1390
|
+
|
|
1391
|
+
class XPickerQuarterComponent extends XPickerQuarterProperty {
|
|
1392
|
+
get rangeStart() {
|
|
1393
|
+
if (this.rangeValue && this.rangeValue.length > 0) {
|
|
1394
|
+
return this.rangeValue[0];
|
|
1395
|
+
}
|
|
1396
|
+
return '';
|
|
1397
|
+
}
|
|
1398
|
+
get rangeEnd() {
|
|
1399
|
+
if (this.rangeValue && this.rangeValue.length > 1) {
|
|
1400
|
+
return this.rangeValue[1];
|
|
1401
|
+
}
|
|
1402
|
+
return '';
|
|
1403
|
+
}
|
|
1404
|
+
isDisabled(date) {
|
|
1405
|
+
if (this.disabledDate && XIsFunction(this.disabledDate)) {
|
|
1406
|
+
return this.disabledDate(date);
|
|
1407
|
+
}
|
|
1408
|
+
else {
|
|
1409
|
+
return false;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
constructor(renderer, datePipe, lowerCasePipe, dateQuarterPipe, cdr, configService, i18n) {
|
|
1413
|
+
super();
|
|
1414
|
+
this.renderer = renderer;
|
|
1415
|
+
this.datePipe = datePipe;
|
|
1416
|
+
this.lowerCasePipe = lowerCasePipe;
|
|
1417
|
+
this.dateQuarterPipe = dateQuarterPipe;
|
|
1418
|
+
this.cdr = cdr;
|
|
1419
|
+
this.configService = configService;
|
|
1420
|
+
this.i18n = i18n;
|
|
1421
|
+
this.now = new Date();
|
|
1422
|
+
this.dates = [];
|
|
1423
|
+
this.chunkDates = [];
|
|
1424
|
+
this.locale = {};
|
|
1425
|
+
this._unSubject = new Subject();
|
|
1426
|
+
}
|
|
1427
|
+
ngOnInit() {
|
|
1428
|
+
this.i18n.localeChange
|
|
1429
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
1430
|
+
.subscribe((x) => {
|
|
1431
|
+
this.locale = x;
|
|
1432
|
+
this.cdr.markForCheck();
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
ngOnChanges(simples) {
|
|
1436
|
+
const { display } = simples;
|
|
1437
|
+
XIsChange(display) && this.init();
|
|
1438
|
+
}
|
|
1439
|
+
init() {
|
|
1440
|
+
this.setQuarters(this.display);
|
|
1441
|
+
}
|
|
1442
|
+
isStartQuarter(date) {
|
|
1443
|
+
if (!this.rangeType || !this.rangeValue)
|
|
1444
|
+
return;
|
|
1445
|
+
if (!XIsNull(this.rangeValue[0])) {
|
|
1446
|
+
return this.datePipe.transform(this.rangeValue[0], 'yyyyMM') === this.datePipe.transform(date, 'yyyyMM');
|
|
1447
|
+
}
|
|
1448
|
+
return;
|
|
1449
|
+
}
|
|
1450
|
+
isEndQuarter(date) {
|
|
1451
|
+
if (!this.rangeType || !this.rangeValue)
|
|
1452
|
+
return;
|
|
1453
|
+
if (!XIsNull(this.rangeValue[1])) {
|
|
1454
|
+
return this.datePipe.transform(this.rangeValue[1], 'yyyyMM') === this.datePipe.transform(date, 'yyyyMM');
|
|
1455
|
+
}
|
|
1456
|
+
return;
|
|
1457
|
+
}
|
|
1458
|
+
setDatesState(cell) {
|
|
1459
|
+
this.clearState(...this.dates);
|
|
1460
|
+
for (let item of this.dates) {
|
|
1461
|
+
this.setDayState(item);
|
|
1462
|
+
}
|
|
1463
|
+
this.onTdMouseenter(cell, false);
|
|
1464
|
+
}
|
|
1465
|
+
onTdMouseenter(cell, isEmit = true) {
|
|
1466
|
+
const [start, end] = this.rangeValue;
|
|
1467
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1468
|
+
const time = cell.date.getTime();
|
|
1469
|
+
for (let item of this.dates) {
|
|
1470
|
+
const itemTime = item.date.getTime();
|
|
1471
|
+
this.clearState(item);
|
|
1472
|
+
if (!XIsNull(start) && XIsNull(end)) {
|
|
1473
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
1474
|
+
item.isRangeHoverStartRight = time > start && itemTime === start;
|
|
1475
|
+
item.isRangeHover =
|
|
1476
|
+
(time < start && itemTime >= time && itemTime < start) || (time > start && itemTime > start && itemTime <= time);
|
|
1477
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
1478
|
+
item.isRangeHoverEnd = itemTime === time && time > start;
|
|
1479
|
+
}
|
|
1480
|
+
else if (XIsNull(start) && !XIsNull(end)) {
|
|
1481
|
+
item.isRangeHoverEndLeft = time < end && itemTime === end;
|
|
1482
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
1483
|
+
item.isRangeHover = (time < end && itemTime >= time && itemTime < end) || (time > end && itemTime > end && itemTime <= time);
|
|
1484
|
+
item.isRangeHoverStart = itemTime === time && time < end;
|
|
1485
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
1486
|
+
}
|
|
1487
|
+
else if (!XIsNull(start) && !XIsNull(end)) {
|
|
1488
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
1489
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
1490
|
+
item.isRangeHover =
|
|
1491
|
+
(time < start && itemTime >= time && itemTime < start) || (time > end && itemTime > end && itemTime <= time);
|
|
1492
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
1493
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
1494
|
+
if (this.rangeType === 'start') {
|
|
1495
|
+
item.isInRangeHover = itemTime >= time && itemTime <= end;
|
|
1496
|
+
}
|
|
1497
|
+
else if (this.rangeType === 'end') {
|
|
1498
|
+
item.isInRangeHover = itemTime >= start && itemTime <= time;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
if (isEmit) {
|
|
1503
|
+
this.rangeTdMouseenter.emit(cell);
|
|
1504
|
+
}
|
|
1505
|
+
else {
|
|
1506
|
+
this.cdr.detectChanges();
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
onTdMouseleave(cell, isEmit = true) {
|
|
1511
|
+
const [start, end] = this.rangeValue;
|
|
1512
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1513
|
+
this.clearState(...this.dates);
|
|
1514
|
+
if (isEmit)
|
|
1515
|
+
this.rangeTdMouseleave.emit(cell);
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
clearState(...cells) {
|
|
1519
|
+
for (let cell of cells) {
|
|
1520
|
+
cell.isInRangeHover = false;
|
|
1521
|
+
cell.isRangeHover = false;
|
|
1522
|
+
cell.isRangeHoverStart = false;
|
|
1523
|
+
cell.isRangeHoverEnd = false;
|
|
1524
|
+
cell.isRangeHoverStartLeft = false;
|
|
1525
|
+
cell.isRangeHoverStartRight = false;
|
|
1526
|
+
cell.isRangeHoverEndLeft = false;
|
|
1527
|
+
cell.isRangeHoverEndRight = false;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
setQuarters(date) {
|
|
1531
|
+
let year = date.getFullYear();
|
|
1532
|
+
let dates = [];
|
|
1533
|
+
for (let i = 0; i < 4; i++) {
|
|
1534
|
+
const cell = { date: new Date(year, i * 3, 1), isFirstDay: i === 0, isLastDay: i === 3 };
|
|
1535
|
+
dates = [...dates, this.setDayState(cell)];
|
|
1536
|
+
}
|
|
1537
|
+
this.dates = dates;
|
|
1538
|
+
this.chunkDates = XChunk(dates, 4);
|
|
1539
|
+
if (this.dates.length > 0) {
|
|
1540
|
+
this.rangeChange.emit([dates[0].date, dates[dates.length - 1].date]);
|
|
1541
|
+
}
|
|
1542
|
+
this.cdr.detectChanges();
|
|
1543
|
+
}
|
|
1544
|
+
setDayState(cell) {
|
|
1545
|
+
const time = cell.date?.getTime();
|
|
1546
|
+
const fquarter = this.datePipe.transform(cell.date, 'yyyyMM');
|
|
1547
|
+
const fquartery = this.datePipe.transform(cell.date, 'yyyy');
|
|
1548
|
+
const fdisplayy = this.datePipe.transform(this.display, 'yyyy');
|
|
1549
|
+
const fnow = this.datePipe.transform(this.now, 'yyyyMM');
|
|
1550
|
+
cell.isLastOrNext = fquartery !== fdisplayy;
|
|
1551
|
+
cell.isNow = fquarter === fnow;
|
|
1552
|
+
cell.isDisabled = this.isDisabled(cell.date);
|
|
1553
|
+
if (this.rangePicker) {
|
|
1554
|
+
if (!this.rangeValue)
|
|
1555
|
+
return cell;
|
|
1556
|
+
const [start, end] = this.rangeValue;
|
|
1557
|
+
cell.isInRange = !!start && !!end && time >= start && time <= end;
|
|
1558
|
+
cell.isRangeStartRight = !!start && !!end && fquarter === this.datePipe.transform(start, 'yyyyMM');
|
|
1559
|
+
cell.isRangeEndLeft = !!start && !!end && fquarter === this.datePipe.transform(end, 'yyyyMM');
|
|
1560
|
+
}
|
|
1561
|
+
return cell;
|
|
1562
|
+
}
|
|
1563
|
+
quarterClick(cell) {
|
|
1564
|
+
this.model = cell.date;
|
|
1565
|
+
this.modelChange.emit(cell.date);
|
|
1566
|
+
if (this.rangePicker) {
|
|
1567
|
+
this.clearState(...this.dates);
|
|
1568
|
+
for (let item of this.dates) {
|
|
1569
|
+
this.setDayState(item);
|
|
1570
|
+
}
|
|
1571
|
+
this.rangeDateClick.emit(cell);
|
|
1572
|
+
}
|
|
1573
|
+
this.cdr.markForCheck();
|
|
1574
|
+
}
|
|
1575
|
+
getLocaleQuarter(date) {
|
|
1576
|
+
return this.dateQuarterPipe.transform(date);
|
|
1577
|
+
}
|
|
1578
|
+
rangeDisabled(date) {
|
|
1579
|
+
if (this.rangeType === 'end') {
|
|
1580
|
+
return this.rangeStart !== '' && date.getTime() < this.rangeStart;
|
|
1581
|
+
}
|
|
1582
|
+
else if (this.rangeType === 'start') {
|
|
1583
|
+
return this.rangeEnd !== '' && date.getTime() > this.rangeEnd;
|
|
1584
|
+
}
|
|
1585
|
+
return false;
|
|
1586
|
+
}
|
|
1587
|
+
setDisplay(date) {
|
|
1588
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1589
|
+
this.displayChange.emit(this.display);
|
|
1590
|
+
this.setQuarters(this.display);
|
|
1591
|
+
}
|
|
1592
|
+
nextYear(num) {
|
|
1593
|
+
let date = new Date(this.display);
|
|
1594
|
+
date.setFullYear(date.getFullYear() + num);
|
|
1595
|
+
this.setDisplay(date);
|
|
1596
|
+
this.yearChange.emit(num);
|
|
1597
|
+
this.cdr.detectChanges();
|
|
1598
|
+
}
|
|
1599
|
+
typeOnChange(type) {
|
|
1600
|
+
this.type = type;
|
|
1601
|
+
this.typeChange.emit(type);
|
|
1602
|
+
this.cdr.detectChanges();
|
|
1603
|
+
}
|
|
1604
|
+
trackByQuarter(_index, item) {
|
|
1605
|
+
return item;
|
|
1606
|
+
}
|
|
1607
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerQuarterComponent, deps: [{ token: i0.Renderer2 }, { token: i1.DatePipe }, { token: i1.LowerCasePipe }, { token: XDateQuarterPipe }, { token: i0.ChangeDetectorRef }, { token: i2.XConfigService }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1608
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerQuarterComponent, selector: "x-picker-quarter", providers: [DatePipe, LowerCasePipe, XDateQuarterPipe], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"x-picker-quarter\" [class.x-date-picker-quartertemp]=\"quarterTemp\">\r\n <div class=\"x-picker-quarter-header\" *ngIf=\"showHeader\">\r\n <x-link [class.x-visibility]=\"!lastYearBtn\" icon=\"fto-chevrons-left\" (click)=\"nextYear(-1)\"></x-link>\r\n <div class=\"x-picker-quarter-year-quarter\">\r\n <x-link (click)=\"typeOnChange('year')\">{{ display | date : 'yyyy' }}{{ locale.year }}</x-link>\r\n </div>\r\n <x-link [class.x-visibility]=\"!nextYearBtn\" icon=\"fto-chevrons-right\" (click)=\"nextYear(1)\"></x-link>\r\n </div>\r\n <div class=\"x-picker-quarter-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let quarters of chunkDates\">\r\n <ng-container *ngFor=\"let quarter of quarters; trackBy: trackByQuarter\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-disabled]=\"quarter.isDisabled\"\r\n [class.x-date-last-or-next]=\"quarter.isLastOrNext\"\r\n [class.x-date-now]=\"quarter.isNow\"\r\n [class.x-date-first-day]=\"quarter.isFirstDay\"\r\n [class.x-date-last-day]=\"quarter.isLastDay\"\r\n [class.x-date-range-start]=\"rangePicker && isStartQuarter(quarter.date!)\"\r\n [class.x-date-range-end]=\"rangePicker && isEndQuarter(quarter.date!)\"\r\n [class.x-date-range-start-left]=\"rangePicker && quarter.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"rangePicker && quarter.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"rangePicker && quarter.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"rangePicker && quarter.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"rangePicker && quarter.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"rangePicker && quarter.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"rangePicker && quarter.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"rangePicker && quarter.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"rangePicker && quarter.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"rangePicker && quarter.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"rangePicker && quarter.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"rangePicker && quarter.isInRange\"\r\n [class.x-date-in-range-hover]=\"rangePicker && quarter.isInRangeHover\"\r\n [class.x-date-active]=\"!rangePicker && (quarter.date | date : 'yyyyMM') === (model | date : 'yyyyMM')\"\r\n title=\"{{ quarter.date | xDateQuarter : true }}\"\r\n (click)=\"!quarter.isDisabled && quarterClick(quarter)\"\r\n (mouseenter)=\"!quarter.isDisabled && rangePicker && onTdMouseenter(quarter)\"\r\n (mouseleave)=\"!quarter.isDisabled && rangePicker && onTdMouseleave(quarter)\"\r\n >\r\n <div *ngIf=\"!quarterTemp\" class=\"x-date-text\">\r\n {{ quarter.date | xDateQuarter }}\r\n </div>\r\n <ng-container *ngIf=\"quarterTemp\">\r\n <ng-container *ngTemplateOutlet=\"quarterTemp; context: { date$: quarter.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-quarter{margin:0;padding:0}.x-picker-quarter-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-quarter-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-quarter-header .x-link{padding:0 .25rem}.x-picker-quarter-year-quarter{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-quarter-body{padding:.1375rem .5rem}.x-picker-quarter-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-quarter-body>table tr{padding:.125rem 0;display:flex;align-items:center;justify-content:center}.x-picker-quarter-body>table td{flex:1;padding:.125rem 0;-webkit-user-select:none;user-select:none}.x-picker-quarter-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative}.x-picker-quarter-body .x-picker-date-item .x-date-text{width:3.5rem;height:3.25rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-quarter-body .x-picker-date-item:after,.x-picker-quarter-body .x-picker-date-item:before{height:3.25rem}.x-picker-quarter-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-quarter-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-quarter-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-quarter-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:3.5rem}.x-picker-quarter-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:3.5rem}.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:3.5rem}.x-picker-quarter-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-quarter .x-visibility{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.XLinkComponent, selector: "x-link" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: XDateQuarterPipe, name: "xDateQuarter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1609
|
+
}
|
|
1610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerQuarterComponent, decorators: [{
|
|
1611
|
+
type: Component,
|
|
1612
|
+
args: [{ selector: 'x-picker-quarter', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DatePipe, LowerCasePipe, XDateQuarterPipe], template: "<div class=\"x-picker-quarter\" [class.x-date-picker-quartertemp]=\"quarterTemp\">\r\n <div class=\"x-picker-quarter-header\" *ngIf=\"showHeader\">\r\n <x-link [class.x-visibility]=\"!lastYearBtn\" icon=\"fto-chevrons-left\" (click)=\"nextYear(-1)\"></x-link>\r\n <div class=\"x-picker-quarter-year-quarter\">\r\n <x-link (click)=\"typeOnChange('year')\">{{ display | date : 'yyyy' }}{{ locale.year }}</x-link>\r\n </div>\r\n <x-link [class.x-visibility]=\"!nextYearBtn\" icon=\"fto-chevrons-right\" (click)=\"nextYear(1)\"></x-link>\r\n </div>\r\n <div class=\"x-picker-quarter-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let quarters of chunkDates\">\r\n <ng-container *ngFor=\"let quarter of quarters; trackBy: trackByQuarter\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-disabled]=\"quarter.isDisabled\"\r\n [class.x-date-last-or-next]=\"quarter.isLastOrNext\"\r\n [class.x-date-now]=\"quarter.isNow\"\r\n [class.x-date-first-day]=\"quarter.isFirstDay\"\r\n [class.x-date-last-day]=\"quarter.isLastDay\"\r\n [class.x-date-range-start]=\"rangePicker && isStartQuarter(quarter.date!)\"\r\n [class.x-date-range-end]=\"rangePicker && isEndQuarter(quarter.date!)\"\r\n [class.x-date-range-start-left]=\"rangePicker && quarter.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"rangePicker && quarter.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"rangePicker && quarter.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"rangePicker && quarter.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"rangePicker && quarter.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"rangePicker && quarter.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"rangePicker && quarter.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"rangePicker && quarter.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"rangePicker && quarter.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"rangePicker && quarter.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"rangePicker && quarter.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"rangePicker && quarter.isInRange\"\r\n [class.x-date-in-range-hover]=\"rangePicker && quarter.isInRangeHover\"\r\n [class.x-date-active]=\"!rangePicker && (quarter.date | date : 'yyyyMM') === (model | date : 'yyyyMM')\"\r\n title=\"{{ quarter.date | xDateQuarter : true }}\"\r\n (click)=\"!quarter.isDisabled && quarterClick(quarter)\"\r\n (mouseenter)=\"!quarter.isDisabled && rangePicker && onTdMouseenter(quarter)\"\r\n (mouseleave)=\"!quarter.isDisabled && rangePicker && onTdMouseleave(quarter)\"\r\n >\r\n <div *ngIf=\"!quarterTemp\" class=\"x-date-text\">\r\n {{ quarter.date | xDateQuarter }}\r\n </div>\r\n <ng-container *ngIf=\"quarterTemp\">\r\n <ng-container *ngTemplateOutlet=\"quarterTemp; context: { date$: quarter.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-quarter{margin:0;padding:0}.x-picker-quarter-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-quarter-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-quarter-header .x-link{padding:0 .25rem}.x-picker-quarter-year-quarter{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-quarter-body{padding:.1375rem .5rem}.x-picker-quarter-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-quarter-body>table tr{padding:.125rem 0;display:flex;align-items:center;justify-content:center}.x-picker-quarter-body>table td{flex:1;padding:.125rem 0;-webkit-user-select:none;user-select:none}.x-picker-quarter-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative}.x-picker-quarter-body .x-picker-date-item .x-date-text{width:3.5rem;height:3.25rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-quarter-body .x-picker-date-item:after,.x-picker-quarter-body .x-picker-date-item:before{height:3.25rem}.x-picker-quarter-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-quarter-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-quarter-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-quarter-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-quarter-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:3.5rem}.x-picker-quarter-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:3.5rem}.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-quarter-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:3.5rem}.x-picker-quarter-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-quarter .x-visibility{visibility:hidden}\n"] }]
|
|
1613
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1.DatePipe }, { type: i1.LowerCasePipe }, { type: XDateQuarterPipe }, { type: i0.ChangeDetectorRef }, { type: i2.XConfigService }, { type: i3.XI18nService }]; } });
|
|
1614
|
+
|
|
1615
|
+
class XPickerYearComponent extends XPickerYearProperty {
|
|
1616
|
+
get rangeStart() {
|
|
1617
|
+
if (this.rangeValue && this.rangeValue.length > 0) {
|
|
1618
|
+
return this.rangeValue[0];
|
|
1619
|
+
}
|
|
1620
|
+
return '';
|
|
1621
|
+
}
|
|
1622
|
+
get rangeEnd() {
|
|
1623
|
+
if (this.rangeValue && this.rangeValue.length > 1) {
|
|
1624
|
+
return this.rangeValue[1];
|
|
1625
|
+
}
|
|
1626
|
+
return '';
|
|
1627
|
+
}
|
|
1628
|
+
isDisabled(date) {
|
|
1629
|
+
if (this.disabledDate && XIsFunction(this.disabledDate)) {
|
|
1630
|
+
return this.disabledDate(date);
|
|
1631
|
+
}
|
|
1632
|
+
else {
|
|
1633
|
+
return false;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
constructor(renderer, cdr, datePipe, configService) {
|
|
1637
|
+
super();
|
|
1638
|
+
this.renderer = renderer;
|
|
1639
|
+
this.cdr = cdr;
|
|
1640
|
+
this.datePipe = datePipe;
|
|
1641
|
+
this.configService = configService;
|
|
1642
|
+
this.now = new Date();
|
|
1643
|
+
this.dates = [];
|
|
1644
|
+
this.chunkDates = [];
|
|
1645
|
+
}
|
|
1646
|
+
ngOnChanges(simples) {
|
|
1647
|
+
const { display } = simples;
|
|
1648
|
+
XIsChange(display) && this.init();
|
|
1649
|
+
}
|
|
1650
|
+
init() {
|
|
1651
|
+
this.setYears(this.display);
|
|
1652
|
+
}
|
|
1653
|
+
isStartYear(date) {
|
|
1654
|
+
if (!this.rangeType || !this.rangeValue)
|
|
1655
|
+
return;
|
|
1656
|
+
if (!XIsNull(this.rangeValue[0])) {
|
|
1657
|
+
return this.datePipe.transform(this.rangeValue[0], 'yyyy') === this.datePipe.transform(date, 'yyyy');
|
|
1658
|
+
}
|
|
1659
|
+
return;
|
|
1660
|
+
}
|
|
1661
|
+
isEndYear(date) {
|
|
1662
|
+
if (!this.rangeType || !this.rangeValue)
|
|
1663
|
+
return;
|
|
1664
|
+
if (!XIsNull(this.rangeValue[1])) {
|
|
1665
|
+
return this.datePipe.transform(this.rangeValue[1], 'yyyy') === this.datePipe.transform(date, 'yyyy');
|
|
1666
|
+
}
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
setDatesState(cell) {
|
|
1670
|
+
this.clearState(...this.dates);
|
|
1671
|
+
for (let item of this.dates) {
|
|
1672
|
+
this.setDayState(item);
|
|
1673
|
+
}
|
|
1674
|
+
this.onTdMouseenter(cell, false);
|
|
1675
|
+
}
|
|
1676
|
+
onTdMouseenter(cell, isEmit = true) {
|
|
1677
|
+
const [start, end] = this.rangeValue;
|
|
1678
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1679
|
+
const time = cell.date.getTime();
|
|
1680
|
+
for (let item of this.dates) {
|
|
1681
|
+
const itemTime = item.date.getTime();
|
|
1682
|
+
this.clearState(item);
|
|
1683
|
+
if (!XIsNull(start) && XIsNull(end)) {
|
|
1684
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
1685
|
+
item.isRangeHoverStartRight = time > start && itemTime === start;
|
|
1686
|
+
item.isRangeHover =
|
|
1687
|
+
(time < start && itemTime >= time && itemTime < start) || (time > start && itemTime > start && itemTime <= time);
|
|
1688
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
1689
|
+
item.isRangeHoverEnd = itemTime === time && time > start;
|
|
1690
|
+
}
|
|
1691
|
+
else if (XIsNull(start) && !XIsNull(end)) {
|
|
1692
|
+
item.isRangeHoverEndLeft = time < end && itemTime === end;
|
|
1693
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
1694
|
+
item.isRangeHover = (time < end && itemTime >= time && itemTime < end) || (time > end && itemTime > end && itemTime <= time);
|
|
1695
|
+
item.isRangeHoverStart = itemTime === time && time < end;
|
|
1696
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
1697
|
+
}
|
|
1698
|
+
else if (!XIsNull(start) && !XIsNull(end)) {
|
|
1699
|
+
item.isRangeHoverStartLeft = time < start && itemTime === start;
|
|
1700
|
+
item.isRangeHoverEndRight = time > end && itemTime === end;
|
|
1701
|
+
item.isRangeHover =
|
|
1702
|
+
(time < start && itemTime >= time && itemTime < start) || (time > end && itemTime > end && itemTime <= time);
|
|
1703
|
+
item.isRangeHoverStart = itemTime === time && time < start;
|
|
1704
|
+
item.isRangeHoverEnd = itemTime === time && time > end;
|
|
1705
|
+
if (this.rangeType === 'start') {
|
|
1706
|
+
item.isInRangeHover = itemTime >= time && itemTime <= end;
|
|
1707
|
+
}
|
|
1708
|
+
else if (this.rangeType === 'end') {
|
|
1709
|
+
item.isInRangeHover = itemTime >= start && itemTime <= time;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
if (isEmit) {
|
|
1714
|
+
this.rangeTdMouseenter.emit(cell);
|
|
1715
|
+
}
|
|
1716
|
+
else {
|
|
1717
|
+
this.cdr.detectChanges();
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
onTdMouseleave(cell, isEmit = true) {
|
|
1722
|
+
const [start, end] = this.rangeValue;
|
|
1723
|
+
if (!XIsNull(start) || !XIsNull(end)) {
|
|
1724
|
+
this.clearState(...this.dates);
|
|
1725
|
+
if (isEmit)
|
|
1726
|
+
this.rangeTdMouseleave.emit(cell);
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
clearState(...cells) {
|
|
1730
|
+
for (let cell of cells) {
|
|
1731
|
+
cell.isInRangeHover = false;
|
|
1732
|
+
cell.isRangeHover = false;
|
|
1733
|
+
cell.isRangeHoverStart = false;
|
|
1734
|
+
cell.isRangeHoverEnd = false;
|
|
1735
|
+
cell.isRangeHoverStartLeft = false;
|
|
1736
|
+
cell.isRangeHoverStartRight = false;
|
|
1737
|
+
cell.isRangeHoverEndLeft = false;
|
|
1738
|
+
cell.isRangeHoverEndRight = false;
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
setYears(date) {
|
|
1742
|
+
let year = date.getFullYear();
|
|
1743
|
+
this.start = Math.floor(year / 10) * 10;
|
|
1744
|
+
this.end = this.start + 9;
|
|
1745
|
+
let dates = [];
|
|
1746
|
+
for (let i = -3; i < 13; i++) {
|
|
1747
|
+
const dt = new Date(this.start + i, 1, 1);
|
|
1748
|
+
const cell = {
|
|
1749
|
+
date: dt,
|
|
1750
|
+
isNow: this.datePipe.transform(this.now, 'yyyy') === this.datePipe.transform(dt, 'yyyy'),
|
|
1751
|
+
isLastOrNext: i < 0 || i > 9,
|
|
1752
|
+
isFirstDay: i === 0,
|
|
1753
|
+
isLastDay: i === 9
|
|
1754
|
+
};
|
|
1755
|
+
dates = [...dates, this.setDayState(cell)];
|
|
1756
|
+
}
|
|
1757
|
+
this.dates = dates;
|
|
1758
|
+
this.chunkDates = XChunk(dates, 4);
|
|
1759
|
+
this.startChange.emit(this.start);
|
|
1760
|
+
}
|
|
1761
|
+
setDayState(cell) {
|
|
1762
|
+
const time = cell.date?.getTime();
|
|
1763
|
+
const fyear = this.datePipe.transform(cell.date, 'yyyy');
|
|
1764
|
+
const fnow = this.datePipe.transform(this.now, 'yyyy');
|
|
1765
|
+
cell.isNow = fyear === fnow;
|
|
1766
|
+
cell.isDisabled = this.isDisabled(cell.date);
|
|
1767
|
+
if (this.rangePicker) {
|
|
1768
|
+
if (!this.rangeValue)
|
|
1769
|
+
return cell;
|
|
1770
|
+
const [start, end] = this.rangeValue;
|
|
1771
|
+
cell.isInRange = !!start && !!end && time >= start && time <= end;
|
|
1772
|
+
cell.isRangeStartRight = !!start && !!end && fyear === this.datePipe.transform(start, 'yyyy');
|
|
1773
|
+
cell.isRangeEndLeft = !!start && !!end && fyear === this.datePipe.transform(end, 'yyyy');
|
|
1774
|
+
}
|
|
1775
|
+
return cell;
|
|
1776
|
+
}
|
|
1777
|
+
yearClick(cell) {
|
|
1778
|
+
this.model = cell.date;
|
|
1779
|
+
this.modelChange.emit(cell.date);
|
|
1780
|
+
if (this.rangePicker) {
|
|
1781
|
+
this.clearState(...this.dates);
|
|
1782
|
+
for (let item of this.dates) {
|
|
1783
|
+
this.setDayState(item);
|
|
1784
|
+
}
|
|
1785
|
+
this.rangeDateClick.emit(cell);
|
|
1786
|
+
}
|
|
1787
|
+
this.cdr.markForCheck();
|
|
1788
|
+
}
|
|
1789
|
+
lastOrNext(year) {
|
|
1790
|
+
const yearStr = this.datePipe.transform(year, 'yyyy');
|
|
1791
|
+
return yearStr < `${this.start}` || yearStr > `${this.end}`;
|
|
1792
|
+
}
|
|
1793
|
+
rangeDisabled(date) {
|
|
1794
|
+
if (this.rangeType === 'end') {
|
|
1795
|
+
return this.rangeStart !== '' && date.getTime() < this.rangeStart;
|
|
1796
|
+
}
|
|
1797
|
+
else if (this.rangeType === 'start') {
|
|
1798
|
+
return this.rangeEnd !== '' && date.getTime() > this.rangeEnd;
|
|
1799
|
+
}
|
|
1800
|
+
return false;
|
|
1801
|
+
}
|
|
1802
|
+
setDisplay(date) {
|
|
1803
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1804
|
+
this.displayChange.emit(this.display);
|
|
1805
|
+
this.setYears(this.display);
|
|
1806
|
+
}
|
|
1807
|
+
nextYears(num) {
|
|
1808
|
+
this.start += num;
|
|
1809
|
+
let date = new Date(this.display);
|
|
1810
|
+
date.setFullYear(this.start);
|
|
1811
|
+
this.setDisplay(date);
|
|
1812
|
+
this.yearChange.emit(num);
|
|
1813
|
+
this.cdr.detectChanges();
|
|
1814
|
+
}
|
|
1815
|
+
trackByYear(_index, item) {
|
|
1816
|
+
return item;
|
|
1817
|
+
}
|
|
1818
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerYearComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.DatePipe }, { token: i2.XConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1819
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XPickerYearComponent, selector: "x-picker-year", providers: [DatePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"x-picker-year\">\r\n <div class=\"x-picker-year-header\" *ngIf=\"showHeader\">\r\n <x-link [class.x-visibility]=\"!lastYearBtn\" icon=\"fto-chevrons-left\" (click)=\"nextYears(-10)\"></x-link>\r\n <div class=\"x-picker-year-year-month\">\r\n <x-link>{{ start }}</x-link> -\r\n <x-link>{{ end }}</x-link>\r\n </div>\r\n <x-link [class.x-visibility]=\"!nextYearBtn\" icon=\"fto-chevrons-right\" (click)=\"nextYears(10)\"></x-link>\r\n </div>\r\n <div class=\"x-picker-year-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let years of chunkDates\">\r\n <ng-container *ngFor=\"let year of years; trackBy: trackByYear\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-disabled]=\"year.isDisabled\"\r\n [class.x-date-last-or-next]=\"year.isLastOrNext\"\r\n [class.x-date-now]=\"year.isNow\"\r\n [class.x-date-first-day]=\"year.isFirstDay\"\r\n [class.x-date-last-day]=\"year.isLastDay\"\r\n [class.x-date-range-start]=\"rangePicker && isStartYear(year.date!)\"\r\n [class.x-date-range-end]=\"rangePicker && isEndYear(year.date!)\"\r\n [class.x-date-range-start-left]=\"rangePicker && year.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"rangePicker && year.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"rangePicker && year.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"rangePicker && year.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"rangePicker && year.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"rangePicker && year.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"rangePicker && year.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"rangePicker && year.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"rangePicker && year.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"rangePicker && year.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"rangePicker && year.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"rangePicker && year.isInRange\"\r\n [class.x-date-in-range-hover]=\"rangePicker && year.isInRangeHover\"\r\n [class.x-date-active]=\"!rangePicker && (year.date | date : 'yyyy') === (model | date : 'yyyy')\"\r\n title=\"{{ year.date | date : 'yyyy' }}\"\r\n (click)=\"!year.isDisabled && yearClick(year)\"\r\n (mouseenter)=\"!year.isDisabled && rangePicker && onTdMouseenter(year)\"\r\n (mouseleave)=\"!year.isDisabled && rangePicker && onTdMouseleave(year)\"\r\n >\r\n <div *ngIf=\"!yearTemp\" class=\"x-date-text\">\r\n {{ year.date | date : 'yyyy' }}\r\n </div>\r\n <ng-container *ngIf=\"yearTemp\">\r\n <ng-container *ngTemplateOutlet=\"yearTemp; context: { date$: year.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-year{margin:0;padding:0}.x-picker-year-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-year-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-year-header .x-link{padding:0 .25rem}.x-picker-year-year-month{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-year-body{padding:.1375rem .5rem}.x-picker-year-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-year-body>table tr{padding:.125rem 0;display:flex;align-items:center;justify-content:center}.x-picker-year-body>table td{flex:1;padding:.125rem 0;-webkit-user-select:none;user-select:none}.x-picker-year-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative}.x-picker-year-body .x-picker-date-item .x-date-text{width:3.5rem;height:3.25rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-year-body .x-picker-date-item:after,.x-picker-year-body .x-picker-date-item:before{height:3.25rem}.x-picker-year-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-year-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-year-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-year-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:3.5rem}.x-picker-year-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:3.5rem}.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:3.5rem}.x-picker-year-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-year .x-visibility{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.XLinkComponent, selector: "x-link" }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1820
|
+
}
|
|
1821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XPickerYearComponent, decorators: [{
|
|
1822
|
+
type: Component,
|
|
1823
|
+
args: [{ selector: 'x-picker-year', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DatePipe], template: "<div class=\"x-picker-year\">\r\n <div class=\"x-picker-year-header\" *ngIf=\"showHeader\">\r\n <x-link [class.x-visibility]=\"!lastYearBtn\" icon=\"fto-chevrons-left\" (click)=\"nextYears(-10)\"></x-link>\r\n <div class=\"x-picker-year-year-month\">\r\n <x-link>{{ start }}</x-link> -\r\n <x-link>{{ end }}</x-link>\r\n </div>\r\n <x-link [class.x-visibility]=\"!nextYearBtn\" icon=\"fto-chevrons-right\" (click)=\"nextYears(10)\"></x-link>\r\n </div>\r\n <div class=\"x-picker-year-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let years of chunkDates\">\r\n <ng-container *ngFor=\"let year of years; trackBy: trackByYear\">\r\n <td\r\n class=\"x-picker-date-item\"\r\n [class.x-date-disabled]=\"year.isDisabled\"\r\n [class.x-date-last-or-next]=\"year.isLastOrNext\"\r\n [class.x-date-now]=\"year.isNow\"\r\n [class.x-date-first-day]=\"year.isFirstDay\"\r\n [class.x-date-last-day]=\"year.isLastDay\"\r\n [class.x-date-range-start]=\"rangePicker && isStartYear(year.date!)\"\r\n [class.x-date-range-end]=\"rangePicker && isEndYear(year.date!)\"\r\n [class.x-date-range-start-left]=\"rangePicker && year.isRangeStartLeft\"\r\n [class.x-date-range-start-right]=\"rangePicker && year.isRangeStartRight\"\r\n [class.x-date-range-end-left]=\"rangePicker && year.isRangeEndLeft\"\r\n [class.x-date-range-end-right]=\"rangePicker && year.isRangeEndRight\"\r\n [class.x-date-range-hover]=\"rangePicker && year.isRangeHover\"\r\n [class.x-date-range-hover-start-left]=\"rangePicker && year.isRangeHoverStartLeft\"\r\n [class.x-date-range-hover-start-right]=\"rangePicker && year.isRangeHoverStartRight\"\r\n [class.x-date-range-hover-end-left]=\"rangePicker && year.isRangeHoverEndLeft\"\r\n [class.x-date-range-hover-end-right]=\"rangePicker && year.isRangeHoverEndRight\"\r\n [class.x-date-range-hover-start]=\"rangePicker && year.isRangeHoverStart\"\r\n [class.x-date-range-hover-end]=\"rangePicker && year.isRangeHoverEnd\"\r\n [class.x-date-in-range]=\"rangePicker && year.isInRange\"\r\n [class.x-date-in-range-hover]=\"rangePicker && year.isInRangeHover\"\r\n [class.x-date-active]=\"!rangePicker && (year.date | date : 'yyyy') === (model | date : 'yyyy')\"\r\n title=\"{{ year.date | date : 'yyyy' }}\"\r\n (click)=\"!year.isDisabled && yearClick(year)\"\r\n (mouseenter)=\"!year.isDisabled && rangePicker && onTdMouseenter(year)\"\r\n (mouseleave)=\"!year.isDisabled && rangePicker && onTdMouseleave(year)\"\r\n >\r\n <div *ngIf=\"!yearTemp\" class=\"x-date-text\">\r\n {{ year.date | date : 'yyyy' }}\r\n </div>\r\n <ng-container *ngIf=\"yearTemp\">\r\n <ng-container *ngTemplateOutlet=\"yearTemp; context: { date$: year.date }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-year{margin:0;padding:0}.x-picker-year-header{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) solid var(--x-border);color:var(--x-text-500);font-size:var(--x-font-size-medium)}.x-picker-year-header x-link{height:100%;-webkit-user-select:none;user-select:none}.x-picker-year-header .x-link{padding:0 .25rem}.x-picker-year-year-month{flex:1;text-align:center;color:var(--x-text);font-size:var(--x-font-size)}.x-picker-year-body{padding:.1375rem .5rem}.x-picker-year-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-year-body>table tr{padding:.125rem 0;display:flex;align-items:center;justify-content:center}.x-picker-year-body>table td{flex:1;padding:.125rem 0;-webkit-user-select:none;user-select:none}.x-picker-year-body .x-picker-date-item{text-align:center;cursor:pointer;color:var(--x-text-300);position:relative}.x-picker-year-body .x-picker-date-item .x-date-text{width:3.5rem;height:3.25rem;display:flex;align-items:center;justify-content:center;margin:0 auto;border:var(--x-border-width) var(--x-border-style) transparent;border-radius:var(--x-border-radius);transition:var(--x-animation-duration-base);position:relative}.x-picker-year-body .x-picker-date-item:after,.x-picker-year-body .x-picker-date-item:before{height:3.25rem}.x-picker-year-body .x-picker-date-item:hover:not(.x-date-in-range) .x-date-text{background-color:var(--x-background-a200)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next){color:var(--x-background-100)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-picker-year-body .x-picker-date-item.x-date-active:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-picker-year-body .x-picker-date-item.x-date-last-or-next{color:var(--x-text-700)}.x-picker-year-body .x-picker-date-item.x-date-now:not(.x-date-active):not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{color:var(--x-primary);border-color:var(--x-primary)}.x-picker-year-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{width:3.5rem}.x-picker-year-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{width:3.5rem}.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before,.x-picker-year-body .x-picker-date-item.x-date-range-hover.x-date-last-day:first-child:not(.x-date-last-or-next):before{width:3.5rem}.x-picker-year-body .x-picker-date-item.x-date-disabled{cursor:default;background-color:var(--x-background-a200);color:var(--x-text-700)}.x-picker-year .x-visibility{visibility:hidden}\n"] }]
|
|
1824
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.DatePipe }, { type: i2.XConfigService }]; } });
|
|
1825
|
+
|
|
1826
|
+
class XDatePickerPortalComponent {
|
|
1827
|
+
done(event) {
|
|
1828
|
+
this.animating(false);
|
|
1829
|
+
event.toState === 'void' && this.destroyPortal();
|
|
1830
|
+
}
|
|
1831
|
+
start() {
|
|
1832
|
+
this.animating(true);
|
|
1833
|
+
}
|
|
1834
|
+
get isDatePicker() {
|
|
1835
|
+
return ['date', 'month', 'year'].includes(this.type);
|
|
1836
|
+
}
|
|
1837
|
+
get sureDisabled() {
|
|
1838
|
+
let res = XIsUndefined(this.time);
|
|
1839
|
+
if (this.timePickerFrame && !XIsUndefined(this.time)) {
|
|
1840
|
+
const dt = new Date(this.time);
|
|
1841
|
+
const hours = dt.getHours();
|
|
1842
|
+
const minutes = dt.getMinutes();
|
|
1843
|
+
const seconds = dt.getSeconds();
|
|
1844
|
+
return (this.timePickerFrame.setDisabled('hours', hours) ||
|
|
1845
|
+
this.timePickerFrame.setDisabled('minutes', minutes) ||
|
|
1846
|
+
this.timePickerFrame.setDisabled('seconds', seconds));
|
|
1847
|
+
}
|
|
1848
|
+
return res;
|
|
1849
|
+
}
|
|
1850
|
+
constructor(datePipe, lowerCasePipe, cdr, i18n) {
|
|
1851
|
+
this.datePipe = datePipe;
|
|
1852
|
+
this.lowerCasePipe = lowerCasePipe;
|
|
1853
|
+
this.cdr = cdr;
|
|
1854
|
+
this.i18n = i18n;
|
|
1855
|
+
this.type = 'date';
|
|
1856
|
+
this.display = new Date();
|
|
1857
|
+
this.locale = {};
|
|
1858
|
+
this.preset = [];
|
|
1859
|
+
this._unSubject = new Subject();
|
|
1860
|
+
}
|
|
1861
|
+
ngOnInit() {
|
|
1862
|
+
this.valueChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
1863
|
+
this.value = x;
|
|
1864
|
+
this.init();
|
|
1865
|
+
});
|
|
1866
|
+
this.positionChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
1867
|
+
this.placement = x;
|
|
1868
|
+
this.cdr.detectChanges();
|
|
1869
|
+
});
|
|
1870
|
+
this.i18n.localeChange
|
|
1871
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
1872
|
+
.subscribe((x) => {
|
|
1873
|
+
this.locale = x;
|
|
1874
|
+
this.cdr.markForCheck();
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
ngAfterViewInit() {
|
|
1878
|
+
this.init();
|
|
1879
|
+
}
|
|
1880
|
+
ngOnDestroy() {
|
|
1881
|
+
this._unSubject.next();
|
|
1882
|
+
this._unSubject.unsubscribe();
|
|
1883
|
+
}
|
|
1884
|
+
init() {
|
|
1885
|
+
if (!XIsEmpty(this.value)) {
|
|
1886
|
+
this.setDefault();
|
|
1887
|
+
}
|
|
1888
|
+
this._type = this.type;
|
|
1889
|
+
this.cdr.detectChanges();
|
|
1890
|
+
}
|
|
1891
|
+
stopPropagation(event) {
|
|
1892
|
+
event.stopPropagation();
|
|
1893
|
+
}
|
|
1894
|
+
setDefault() {
|
|
1895
|
+
const date = new Date(this.value);
|
|
1896
|
+
this.model = date;
|
|
1897
|
+
this.time = this.model.getTime();
|
|
1898
|
+
this.setDisplay(this.model);
|
|
1899
|
+
}
|
|
1900
|
+
setDisplay(date) {
|
|
1901
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1902
|
+
}
|
|
1903
|
+
dateChange(date) {
|
|
1904
|
+
this.setDisplay(date);
|
|
1905
|
+
this.model = date;
|
|
1906
|
+
if (['date-time', 'date-hour', 'date-minute'].includes(this._type)) {
|
|
1907
|
+
let time = new Date();
|
|
1908
|
+
if (['date-hour', 'date-minute'].includes(this.type)) {
|
|
1909
|
+
time.setSeconds(0);
|
|
1910
|
+
}
|
|
1911
|
+
if (this.type === 'date-hour') {
|
|
1912
|
+
time.setMinutes(0);
|
|
1913
|
+
}
|
|
1914
|
+
if (!this.time) {
|
|
1915
|
+
this.time = time.getTime();
|
|
1916
|
+
}
|
|
1917
|
+
this.setModelTime(this.model, new Date(this.time));
|
|
1918
|
+
this.nodeEmit(this.model, false);
|
|
1919
|
+
}
|
|
1920
|
+
else {
|
|
1921
|
+
this.nodeEmit(this.model);
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
monthChange(date) {
|
|
1925
|
+
this.setDisplay(date);
|
|
1926
|
+
if (this._type === 'month') {
|
|
1927
|
+
this.model = date;
|
|
1928
|
+
this.nodeEmit(date);
|
|
1929
|
+
}
|
|
1930
|
+
else {
|
|
1931
|
+
this.type = this._type;
|
|
1932
|
+
}
|
|
1933
|
+
this.cdr.detectChanges();
|
|
1934
|
+
}
|
|
1935
|
+
quarterChange(date) {
|
|
1936
|
+
this.setDisplay(date);
|
|
1937
|
+
if (this._type === 'quarter') {
|
|
1938
|
+
this.model = date;
|
|
1939
|
+
this.nodeEmit(date);
|
|
1940
|
+
}
|
|
1941
|
+
else {
|
|
1942
|
+
this.type = this._type;
|
|
1943
|
+
}
|
|
1944
|
+
this.cdr.detectChanges();
|
|
1945
|
+
}
|
|
1946
|
+
yearChange(date) {
|
|
1947
|
+
this.setDisplay(date);
|
|
1948
|
+
if (this._type === 'year') {
|
|
1949
|
+
this.model = date;
|
|
1950
|
+
this.nodeEmit(date);
|
|
1951
|
+
}
|
|
1952
|
+
else {
|
|
1953
|
+
this.type = 'month';
|
|
1954
|
+
}
|
|
1955
|
+
this.cdr.detectChanges();
|
|
1956
|
+
}
|
|
1957
|
+
onToday() {
|
|
1958
|
+
this.dateChange(new Date());
|
|
1959
|
+
}
|
|
1960
|
+
onYesterday() {
|
|
1961
|
+
this.dateChange(XAddDays(new Date(), -1));
|
|
1962
|
+
}
|
|
1963
|
+
onTomorrow() {
|
|
1964
|
+
this.dateChange(XAddDays(new Date(), 1));
|
|
1965
|
+
}
|
|
1966
|
+
onPresetFunc(item) {
|
|
1967
|
+
this.dateChange(item.func());
|
|
1968
|
+
}
|
|
1969
|
+
selectTime(time) {
|
|
1970
|
+
if (!this.model) {
|
|
1971
|
+
this.model = new Date();
|
|
1972
|
+
}
|
|
1973
|
+
this.time = time.getTime();
|
|
1974
|
+
this.nodeEmit(this.setModelTime(this.model, time), false);
|
|
1975
|
+
this.cdr.detectChanges();
|
|
1976
|
+
}
|
|
1977
|
+
setModelTime(date, time) {
|
|
1978
|
+
this.model = new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
|
|
1979
|
+
return this.model;
|
|
1980
|
+
}
|
|
1981
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerPortalComponent, deps: [{ token: i1.DatePipe }, { token: i1.LowerCasePipe }, { token: i0.ChangeDetectorRef }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1982
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XDatePickerPortalComponent, selector: "x-date-picker-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, providers: [DatePipe, LowerCasePipe], viewQueries: [{ propertyName: "timePickerFrame", first: true, predicate: ["timePickerFrame"], descendants: true }], ngImport: i0, template: "<div class=\"x-date-picker-portal {{ type }}\" [ngSwitch]=\"type\" (click)=\"inputCom.inputFocus()\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <x-picker-date\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"dateChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'week'\">\r\n <x-picker-date\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"dateChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <x-picker-month\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"monthChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-month>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'quarter'\">\r\n <x-picker-quarter\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"quarterChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-quarter>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <x-picker-year\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"yearChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-year>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-picker-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-picker-portal-content\">\r\n <div class=\"x-date-picker-portal-date\">\r\n <x-picker-date\r\n [display]=\"display\"\r\n [(type)]=\"type\"\r\n [model]=\"model\"\r\n (modelChange)=\"dateChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-date>\r\n </div>\r\n <div class=\"x-date-picker-portal-time\">\r\n <div class=\"x-date-picker-portal-time-label\">\r\n {{ time | date : timeFormat }}\r\n </div>\r\n <x-time-picker-frame\r\n #timePickerFrame\r\n [type]=\"timeType\"\r\n [value]=\"time\"\r\n (nodeEmit)=\"selectTime($event)\"\r\n [disabledTime]=\"disabledTime\"\r\n [defaultNow]=\"false\"\r\n ></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-picker-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n </ng-container>\r\n <div class=\"x-date-picker-portal-footer\">\r\n <div class=\"x-date-picker-portal-footer-left\">\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <x-button type=\"primary\" (click)=\"!sureDisabled && nodeEmit(model)\" size=\"small\" [disabled]=\"sureDisabled\">{{ locale.sure }}</x-button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #presetTpl>\r\n <div *ngIf=\"preset\" class=\"x-date-picker-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-link *ngIf=\"item.id === 'yesterday'\" (click)=\"onYesterday()\">{{ locale.yesterday }}</x-link>\r\n <x-link *ngIf=\"item.id === 'today'\" (click)=\"onToday()\">{{ locale.today }}</x-link>\r\n <x-link *ngIf=\"item.id === 'tomorrow'\" (click)=\"onTomorrow()\">{{ locale.tomorrow }}</x-link>\r\n <x-link *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-link>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-date-picker-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:16rem;display:flex;flex-direction:column}.x-date-picker-portal.week{width:18.125rem}.x-date-picker-portal.week .x-picker-date-body .x-picker-date-item:not(.x-date-in-range):not(.x-date-active) .x-date-text{background-color:transparent}.x-date-picker-portal.week .x-picker-date-body tbody tr:not(.x-date-week-active):hover .x-picker-date-item:not(.x-date-in-range){background-color:var(--x-background-a200);border-radius:var(--x-border-radius)}.x-date-picker-portal.date-time{width:27rem}.x-date-picker-portal.date-hour{width:19.75rem}.x-date-picker-portal.date-minute{width:23.375rem}.x-date-picker-portal-preset{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;border-top:var(--x-border-width) solid var(--x-border)}.x-date-picker-portal-preset>x-link{padding:.25rem}.x-date-picker-portal-preset>x-link:not(:first-child){margin-left:1rem}.x-date-picker-portal-body{padding:.4rem}.x-date-picker-portal-content{display:flex}.x-date-picker-portal-footer{display:flex;align-items:center;justify-content:space-between;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-picker-portal-footer .x-date-picker-portal-preset{border-top:none}.x-date-picker-portal-footer .x-date-picker-portal-preset>x-link{padding:0 .25rem}.x-date-picker-portal-extra-footer{display:flex;align-items:center;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-picker-portal-date{flex:1}.x-date-picker-portal-time{display:flex;flex-direction:column;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time-label{display:flex;align-items:center;justify-content:center;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time .x-time-picker-frame{border-width:0;box-shadow:none;margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i3$1.XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value", "use12Hours", "hourStep", "minuteStep", "secondStep", "defaultNow", "disabledTime", "disabledTimeParam"], outputs: ["nodeEmit"] }, { kind: "component", type: i4.XLinkComponent, selector: "x-link" }, { kind: "component", type: i5.XButtonComponent, selector: "x-button" }, { kind: "directive", type: i6.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "component", type: XPickerDateComponent, selector: "x-picker-date" }, { kind: "component", type: XPickerMonthComponent, selector: "x-picker-month" }, { kind: "component", type: XPickerQuarterComponent, selector: "x-picker-quarter" }, { kind: "component", type: XPickerYearComponent, selector: "x-picker-year" }, { kind: "pipe", type: i1.DatePipe, name: "date" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1983
|
+
}
|
|
1984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerPortalComponent, decorators: [{
|
|
1985
|
+
type: Component,
|
|
1986
|
+
args: [{ selector: `${XDatePickerPortalPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], providers: [DatePipe, LowerCasePipe], template: "<div class=\"x-date-picker-portal {{ type }}\" [ngSwitch]=\"type\" (click)=\"inputCom.inputFocus()\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <x-picker-date\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"dateChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'week'\">\r\n <x-picker-date\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"dateChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <x-picker-month\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"monthChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-month>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'quarter'\">\r\n <x-picker-quarter\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"quarterChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-quarter>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <x-picker-year\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n [(type)]=\"type\"\r\n (modelChange)=\"yearChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-year>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-picker-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-picker-portal-content\">\r\n <div class=\"x-date-picker-portal-date\">\r\n <x-picker-date\r\n [display]=\"display\"\r\n [(type)]=\"type\"\r\n [model]=\"model\"\r\n (modelChange)=\"dateChange($event)\"\r\n [disabledDate]=\"disabledDate\"\r\n ></x-picker-date>\r\n </div>\r\n <div class=\"x-date-picker-portal-time\">\r\n <div class=\"x-date-picker-portal-time-label\">\r\n {{ time | date : timeFormat }}\r\n </div>\r\n <x-time-picker-frame\r\n #timePickerFrame\r\n [type]=\"timeType\"\r\n [value]=\"time\"\r\n (nodeEmit)=\"selectTime($event)\"\r\n [disabledTime]=\"disabledTime\"\r\n [defaultNow]=\"false\"\r\n ></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-picker-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n </ng-container>\r\n <div class=\"x-date-picker-portal-footer\">\r\n <div class=\"x-date-picker-portal-footer-left\">\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <x-button type=\"primary\" (click)=\"!sureDisabled && nodeEmit(model)\" size=\"small\" [disabled]=\"sureDisabled\">{{ locale.sure }}</x-button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #presetTpl>\r\n <div *ngIf=\"preset\" class=\"x-date-picker-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-link *ngIf=\"item.id === 'yesterday'\" (click)=\"onYesterday()\">{{ locale.yesterday }}</x-link>\r\n <x-link *ngIf=\"item.id === 'today'\" (click)=\"onToday()\">{{ locale.today }}</x-link>\r\n <x-link *ngIf=\"item.id === 'tomorrow'\" (click)=\"onTomorrow()\">{{ locale.tomorrow }}</x-link>\r\n <x-link *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-link>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-date-picker-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:16rem;display:flex;flex-direction:column}.x-date-picker-portal.week{width:18.125rem}.x-date-picker-portal.week .x-picker-date-body .x-picker-date-item:not(.x-date-in-range):not(.x-date-active) .x-date-text{background-color:transparent}.x-date-picker-portal.week .x-picker-date-body tbody tr:not(.x-date-week-active):hover .x-picker-date-item:not(.x-date-in-range){background-color:var(--x-background-a200);border-radius:var(--x-border-radius)}.x-date-picker-portal.date-time{width:27rem}.x-date-picker-portal.date-hour{width:19.75rem}.x-date-picker-portal.date-minute{width:23.375rem}.x-date-picker-portal-preset{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;border-top:var(--x-border-width) solid var(--x-border)}.x-date-picker-portal-preset>x-link{padding:.25rem}.x-date-picker-portal-preset>x-link:not(:first-child){margin-left:1rem}.x-date-picker-portal-body{padding:.4rem}.x-date-picker-portal-content{display:flex}.x-date-picker-portal-footer{display:flex;align-items:center;justify-content:space-between;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-picker-portal-footer .x-date-picker-portal-preset{border-top:none}.x-date-picker-portal-footer .x-date-picker-portal-preset>x-link{padding:0 .25rem}.x-date-picker-portal-extra-footer{display:flex;align-items:center;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-picker-portal-date{flex:1}.x-date-picker-portal-time{display:flex;flex-direction:column;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time-label{display:flex;align-items:center;justify-content:center;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time .x-time-picker-frame{border-width:0;box-shadow:none;margin:0}\n"] }]
|
|
1987
|
+
}], ctorParameters: function () { return [{ type: i1.DatePipe }, { type: i1.LowerCasePipe }, { type: i0.ChangeDetectorRef }, { type: i3.XI18nService }]; }, propDecorators: { placement: [{
|
|
1988
|
+
type: HostBinding,
|
|
1989
|
+
args: ['@x-connect-base-animation']
|
|
1990
|
+
}], done: [{
|
|
1991
|
+
type: HostListener,
|
|
1992
|
+
args: ['@x-connect-base-animation.done', ['$event']]
|
|
1993
|
+
}], start: [{
|
|
1994
|
+
type: HostListener,
|
|
1995
|
+
args: ['@x-connect-base-animation.start', ['$event']]
|
|
1996
|
+
}], timePickerFrame: [{
|
|
1997
|
+
type: ViewChild,
|
|
1998
|
+
args: ['timePickerFrame']
|
|
1999
|
+
}] } });
|
|
2000
|
+
|
|
2001
|
+
class XDatePickerComponent extends XDatePickerProperty {
|
|
2002
|
+
writeValue(value) {
|
|
2003
|
+
if (XIsDate(value)) {
|
|
2004
|
+
this.modelType = 'date';
|
|
2005
|
+
this.numberValue = value.getTime();
|
|
2006
|
+
}
|
|
2007
|
+
else if (XIsNumber(value)) {
|
|
2008
|
+
this.modelType = 'number';
|
|
2009
|
+
this.numberValue = value;
|
|
2010
|
+
}
|
|
2011
|
+
else if (XIsString(value)) {
|
|
2012
|
+
this.modelType = 'string';
|
|
2013
|
+
const valueTime = new Date(value).getTime();
|
|
2014
|
+
this.numberValue = !isNaN(valueTime) ? valueTime : '';
|
|
2015
|
+
}
|
|
2016
|
+
else if (XIsEmpty(value) || XIsNull(value)) {
|
|
2017
|
+
this.numberValue = '';
|
|
2018
|
+
}
|
|
2019
|
+
this.value = value;
|
|
2020
|
+
this.setDisplayValue(this.numberValue);
|
|
2021
|
+
this.valueChange.next(this.numberValue);
|
|
2022
|
+
this.cdr.detectChanges();
|
|
2023
|
+
}
|
|
2024
|
+
get getPlaceholder() {
|
|
2025
|
+
if (this.placeholder)
|
|
2026
|
+
return this.placeholder;
|
|
2027
|
+
if (this.type === 'month') {
|
|
2028
|
+
return this.locale.selectMonth;
|
|
2029
|
+
}
|
|
2030
|
+
else if (this.type === 'quarter') {
|
|
2031
|
+
return this.locale.selectQuarter;
|
|
2032
|
+
}
|
|
2033
|
+
else if (this.type === 'year') {
|
|
2034
|
+
return this.locale.selectYear;
|
|
2035
|
+
}
|
|
2036
|
+
else if (this.type === 'week') {
|
|
2037
|
+
return this.locale.selectWeek;
|
|
2038
|
+
}
|
|
2039
|
+
else {
|
|
2040
|
+
return this.locale.selectDate;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
constructor(renderer, configService, cdr, portalService, viewContainerRef, datePipe, i18n, overlay) {
|
|
2044
|
+
super();
|
|
2045
|
+
this.renderer = renderer;
|
|
2046
|
+
this.configService = configService;
|
|
2047
|
+
this.cdr = cdr;
|
|
2048
|
+
this.portalService = portalService;
|
|
2049
|
+
this.viewContainerRef = viewContainerRef;
|
|
2050
|
+
this.datePipe = datePipe;
|
|
2051
|
+
this.i18n = i18n;
|
|
2052
|
+
this.overlay = overlay;
|
|
2053
|
+
this.modelType = 'date';
|
|
2054
|
+
this.isInput = false;
|
|
2055
|
+
this.enter = false;
|
|
2056
|
+
this.inputClearable = false;
|
|
2057
|
+
this.animating = false;
|
|
2058
|
+
this.displayValue = '';
|
|
2059
|
+
this.icon = 'fto-calendar';
|
|
2060
|
+
this.maxNodes = 6;
|
|
2061
|
+
this.protalTobottom = true;
|
|
2062
|
+
this.valueChange = new Subject();
|
|
2063
|
+
this.dataChange = new Subject();
|
|
2064
|
+
this.positionChange = new Subject();
|
|
2065
|
+
this.closeSubject = new Subject();
|
|
2066
|
+
this.locale = {};
|
|
2067
|
+
this._unSubject = new Subject();
|
|
2068
|
+
}
|
|
2069
|
+
ngOnInit() {
|
|
2070
|
+
this.setFlex(this.datePicker.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
2071
|
+
this.setFormat();
|
|
2072
|
+
this.setClassMap();
|
|
2073
|
+
this.setSubject();
|
|
2074
|
+
}
|
|
2075
|
+
ngAfterViewInit() {
|
|
2076
|
+
this.setPortal();
|
|
2077
|
+
}
|
|
2078
|
+
ngOnChanges(changes) {
|
|
2079
|
+
const { type } = changes;
|
|
2080
|
+
if (XIsChange(type)) {
|
|
2081
|
+
this.setFormat();
|
|
2082
|
+
this.setDisplayValue(this.numberValue);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
ngOnDestroy() {
|
|
2086
|
+
this._unSubject.next();
|
|
2087
|
+
this._unSubject.unsubscribe();
|
|
2088
|
+
}
|
|
2089
|
+
setSubject() {
|
|
2090
|
+
this.closeSubject.pipe(takeUntil(this._unSubject)).subscribe(() => {
|
|
2091
|
+
this.closePortal();
|
|
2092
|
+
});
|
|
2093
|
+
this.i18n.localeChange
|
|
2094
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
2095
|
+
.subscribe((x) => {
|
|
2096
|
+
this.locale = x;
|
|
2097
|
+
this.cdr.markForCheck();
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
setFormat() {
|
|
2101
|
+
if (this.format !== 'yyyy-MM-dd')
|
|
2102
|
+
return;
|
|
2103
|
+
if (this.type === 'date') {
|
|
2104
|
+
this.format = 'yyyy-MM-dd';
|
|
2105
|
+
}
|
|
2106
|
+
else if (this.type === 'year') {
|
|
2107
|
+
this.format = 'yyyy';
|
|
2108
|
+
}
|
|
2109
|
+
else if (this.type === 'quarter') {
|
|
2110
|
+
this.format = 'yyyy-MM-dd';
|
|
2111
|
+
}
|
|
2112
|
+
else if (this.type === 'month') {
|
|
2113
|
+
this.format = 'yyyy-MM';
|
|
2114
|
+
}
|
|
2115
|
+
else if (this.type === 'date-time') {
|
|
2116
|
+
this.format = 'yyyy-MM-dd HH:mm:ss';
|
|
2117
|
+
}
|
|
2118
|
+
else if (this.type === 'date-hour') {
|
|
2119
|
+
this.format = 'yyyy-MM-dd HH';
|
|
2120
|
+
}
|
|
2121
|
+
else if (this.type === 'date-minute') {
|
|
2122
|
+
this.format = 'yyyy-MM-dd HH:mm';
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
menter() {
|
|
2126
|
+
if (this.disabled)
|
|
2127
|
+
return;
|
|
2128
|
+
this.enter = true;
|
|
2129
|
+
if (!this.clearable)
|
|
2130
|
+
return;
|
|
2131
|
+
if (!XIsEmpty(this.numberValue)) {
|
|
2132
|
+
this.icon = '';
|
|
2133
|
+
this.inputClearable = true;
|
|
2134
|
+
this.cdr.detectChanges();
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
mleave() {
|
|
2138
|
+
if (this.disabled)
|
|
2139
|
+
return;
|
|
2140
|
+
this.enter = false;
|
|
2141
|
+
if (!this.clearable)
|
|
2142
|
+
return;
|
|
2143
|
+
if (this.inputClearable) {
|
|
2144
|
+
this.icon = 'fto-calendar';
|
|
2145
|
+
this.inputClearable = false;
|
|
2146
|
+
this.cdr.detectChanges();
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
clearEmit() {
|
|
2150
|
+
this.value = null;
|
|
2151
|
+
this.numberValue = '';
|
|
2152
|
+
this.displayValue = '';
|
|
2153
|
+
this.mleave();
|
|
2154
|
+
this.valueChange.next(this.value);
|
|
2155
|
+
this.modelChange();
|
|
2156
|
+
}
|
|
2157
|
+
modelChange() {
|
|
2158
|
+
if (this.onChange) {
|
|
2159
|
+
this.onChange(this.getValue());
|
|
2160
|
+
}
|
|
2161
|
+
this.formControlValidator();
|
|
2162
|
+
}
|
|
2163
|
+
getValue() {
|
|
2164
|
+
if (this.numberValue === '')
|
|
2165
|
+
return null;
|
|
2166
|
+
return ['date', 'string'].includes(this.modelType) ? new Date(this.numberValue) : this.numberValue;
|
|
2167
|
+
}
|
|
2168
|
+
portalAttached() {
|
|
2169
|
+
return this.portal?.overlayRef?.hasAttached();
|
|
2170
|
+
}
|
|
2171
|
+
closePortal() {
|
|
2172
|
+
if (this.portalAttached()) {
|
|
2173
|
+
this.portal?.overlayRef?.detach();
|
|
2174
|
+
this.active = false;
|
|
2175
|
+
this.cdr.detectChanges();
|
|
2176
|
+
return true;
|
|
2177
|
+
}
|
|
2178
|
+
return false;
|
|
2179
|
+
}
|
|
2180
|
+
destroyPortal() {
|
|
2181
|
+
this.portal?.overlayRef?.dispose();
|
|
2182
|
+
}
|
|
2183
|
+
showPortal() {
|
|
2184
|
+
if (this.disabled || this.animating)
|
|
2185
|
+
return;
|
|
2186
|
+
this.active = true;
|
|
2187
|
+
const config = {
|
|
2188
|
+
backdropClass: '',
|
|
2189
|
+
positionStrategy: this.setPlacement(),
|
|
2190
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
2191
|
+
};
|
|
2192
|
+
this.setPosition(config);
|
|
2193
|
+
this.portal = this.portalService.attach({
|
|
2194
|
+
content: XDatePickerPortalComponent,
|
|
2195
|
+
viewContainerRef: this.viewContainerRef,
|
|
2196
|
+
overlayConfig: config
|
|
2197
|
+
});
|
|
2198
|
+
this.portal.overlayRef
|
|
2199
|
+
?.outsidePointerEvents()
|
|
2200
|
+
.pipe(takeUntil(this._unSubject))
|
|
2201
|
+
.subscribe(() => {
|
|
2202
|
+
this.setDisplayValue(this.numberValue);
|
|
2203
|
+
this.closeSubject.next();
|
|
2204
|
+
});
|
|
2205
|
+
this.setInstance();
|
|
2206
|
+
}
|
|
2207
|
+
setPosition(config) {
|
|
2208
|
+
let position = config.positionStrategy;
|
|
2209
|
+
position.positionChanges.pipe(takeUntil(this._unSubject)).subscribe((pos) => {
|
|
2210
|
+
const place = XPortalConnectedPosition.get(pos.connectionPair);
|
|
2211
|
+
place !== this.placement && this.positionChange.next(place);
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
setInstance() {
|
|
2215
|
+
let componentRef = this.portal?.componentRef;
|
|
2216
|
+
if (!componentRef)
|
|
2217
|
+
return;
|
|
2218
|
+
Object.assign(componentRef.instance, {
|
|
2219
|
+
type: this.type,
|
|
2220
|
+
value: this.numberValue,
|
|
2221
|
+
placement: this.placement,
|
|
2222
|
+
preset: this.preset,
|
|
2223
|
+
extraFooter: this.extraFooter,
|
|
2224
|
+
valueChange: this.valueChange,
|
|
2225
|
+
positionChange: this.positionChange,
|
|
2226
|
+
inputCom: this.inputCom,
|
|
2227
|
+
disabledDate: this.disabledDate,
|
|
2228
|
+
disabledTime: this.disabledTime,
|
|
2229
|
+
closePortal: () => this.closeSubject.next(),
|
|
2230
|
+
destroyPortal: () => this.destroyPortal(),
|
|
2231
|
+
nodeEmit: (node, sure = true) => this.onNodeClick(node, sure),
|
|
2232
|
+
animating: (ing) => (this.animating = ing)
|
|
2233
|
+
});
|
|
2234
|
+
componentRef.changeDetectorRef.detectChanges();
|
|
2235
|
+
}
|
|
2236
|
+
onNodeClick(date, sure = true) {
|
|
2237
|
+
this.isInput = false;
|
|
2238
|
+
if (sure) {
|
|
2239
|
+
this.numberValue = date.getTime();
|
|
2240
|
+
this.value = this.getValue();
|
|
2241
|
+
this.setDisplayValue(this.numberValue);
|
|
2242
|
+
this.closeSubject.next();
|
|
2243
|
+
this.modelChange();
|
|
2244
|
+
this.nodeEmit.emit(this.numberValue);
|
|
2245
|
+
}
|
|
2246
|
+
else {
|
|
2247
|
+
this.setDisplayValue(date.getTime());
|
|
2248
|
+
this.cdr.markForCheck();
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
onInput() {
|
|
2252
|
+
this.isInput = true;
|
|
2253
|
+
}
|
|
2254
|
+
setDisplayValue(dateNumber) {
|
|
2255
|
+
if (this.isInput && isNaN(this.displayValue) && !isNaN(Date.parse(this.displayValue)) && !['week', 'quarter'].includes(this.type)) {
|
|
2256
|
+
this.displayValue = this.datePipe.transform(this.displayValue, this.format);
|
|
2257
|
+
this.numberValue = new Date(this.displayValue).getTime();
|
|
2258
|
+
this.value = this.getValue();
|
|
2259
|
+
this.modelChange();
|
|
2260
|
+
this.isInput = false;
|
|
2261
|
+
}
|
|
2262
|
+
else {
|
|
2263
|
+
if (this.type === 'week') {
|
|
2264
|
+
this.displayValue = XDateYearWeek(dateNumber);
|
|
2265
|
+
}
|
|
2266
|
+
else if (this.type === 'quarter') {
|
|
2267
|
+
this.displayValue = XDateYearQuarter(dateNumber);
|
|
2268
|
+
}
|
|
2269
|
+
else {
|
|
2270
|
+
this.displayValue = this.datePipe.transform(dateNumber, this.format);
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
setPlacement() {
|
|
2275
|
+
return this.portalService.setPlacement({
|
|
2276
|
+
elementRef: this.inputCom.inputRef,
|
|
2277
|
+
placement: [this.placement, 'bottom-start', 'bottom-end', 'top-start', 'top-end'],
|
|
2278
|
+
transformOriginOn: 'x-date-picker-portal'
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2281
|
+
setPortal() {
|
|
2282
|
+
this.portalAttached() && this.portal?.overlayRef?.updatePositionStrategy(this.setPlacement());
|
|
2283
|
+
}
|
|
2284
|
+
setClassMap() {
|
|
2285
|
+
XClearClass(this.labelMap);
|
|
2286
|
+
this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;
|
|
2287
|
+
}
|
|
2288
|
+
formControlChanges() {
|
|
2289
|
+
this.ngOnInit();
|
|
2290
|
+
this.cdr.detectChanges();
|
|
2291
|
+
}
|
|
2292
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerComponent, deps: [{ token: i0.Renderer2 }, { token: i2.XConfigService }, { token: i0.ChangeDetectorRef }, { token: i2$1.XPortalService }, { token: i0.ViewContainerRef }, { token: i1.DatePipe }, { token: i3.XI18nService }, { token: i5$1.Overlay }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2293
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XDatePickerComponent, selector: "x-date-picker", providers: [XValueAccessor(XDatePickerComponent), DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: ["datePicker"], descendants: true, static: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #datePicker class=\"x-date-picker\">\r\n <div class=\"x-date-picker-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [required]=\"required\"\r\n [validator]=\"validator\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"getPlaceholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable && inputClearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"pointer\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xInput)=\"onInput()\"\r\n (xClick)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-picker{display:inline-block;width:12rem}.x-date-picker{margin:0;padding:0;width:100%}.x-date-picker x-input{width:100%}\n"], dependencies: [{ kind: "directive", type: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i6$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7.XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2294
|
+
}
|
|
2295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerComponent, decorators: [{
|
|
2296
|
+
type: Component,
|
|
2297
|
+
args: [{ selector: `${XDatePickerPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XDatePickerComponent), DatePipe], template: "<div #datePicker class=\"x-date-picker\">\r\n <div class=\"x-date-picker-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [required]=\"required\"\r\n [validator]=\"validator\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"getPlaceholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable && inputClearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"pointer\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xInput)=\"onInput()\"\r\n (xClick)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-picker{display:inline-block;width:12rem}.x-date-picker{margin:0;padding:0;width:100%}.x-date-picker x-input{width:100%}\n"] }]
|
|
2298
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i2.XConfigService }, { type: i0.ChangeDetectorRef }, { type: i2$1.XPortalService }, { type: i0.ViewContainerRef }, { type: i1.DatePipe }, { type: i3.XI18nService }, { type: i5$1.Overlay }]; }, propDecorators: { datePicker: [{
|
|
2299
|
+
type: ViewChild,
|
|
2300
|
+
args: ['datePicker', { static: true }]
|
|
2301
|
+
}], inputCom: [{
|
|
2302
|
+
type: ViewChild,
|
|
2303
|
+
args: ['inputCom', { static: true }]
|
|
2304
|
+
}] } });
|
|
2305
|
+
|
|
2306
|
+
class XDateRangePortalComponent {
|
|
2307
|
+
done(event) {
|
|
2308
|
+
this.animating(false);
|
|
2309
|
+
event.toState === 'void' && this.destroyPortal();
|
|
2310
|
+
}
|
|
2311
|
+
start() {
|
|
2312
|
+
this.animating(true);
|
|
2313
|
+
}
|
|
2314
|
+
get isDatePicker() {
|
|
2315
|
+
return ['date', 'quarter', 'week', 'month', 'year'].includes(this.type);
|
|
2316
|
+
}
|
|
2317
|
+
get sureDisabled() {
|
|
2318
|
+
if (this.timePickerFrame && !XIsEmpty(this.time)) {
|
|
2319
|
+
const dt = new Date(this.time);
|
|
2320
|
+
const hours = dt.getHours();
|
|
2321
|
+
const minutes = dt.getMinutes();
|
|
2322
|
+
const seconds = dt.getSeconds();
|
|
2323
|
+
return (this.timePickerFrame.setDisabled('hours', hours) ||
|
|
2324
|
+
this.timePickerFrame.setDisabled('minutes', minutes) ||
|
|
2325
|
+
this.timePickerFrame.setDisabled('seconds', seconds));
|
|
2326
|
+
}
|
|
2327
|
+
else {
|
|
2328
|
+
return true;
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
constructor(datePipe, lowerCasePipe, cdr, i18n) {
|
|
2332
|
+
this.datePipe = datePipe;
|
|
2333
|
+
this.lowerCasePipe = lowerCasePipe;
|
|
2334
|
+
this.cdr = cdr;
|
|
2335
|
+
this.i18n = i18n;
|
|
2336
|
+
this.type = 'date';
|
|
2337
|
+
this.display = new Date();
|
|
2338
|
+
this.startDisplay = new Date();
|
|
2339
|
+
this.endDisplay = XAddMonths(this.startDisplay, 1);
|
|
2340
|
+
this.value = [];
|
|
2341
|
+
this.locale = {};
|
|
2342
|
+
this.timeDisplay = new Date();
|
|
2343
|
+
this.timeHover = false;
|
|
2344
|
+
this.nodeClickCount = 0;
|
|
2345
|
+
this.preset = [];
|
|
2346
|
+
this._unSubject = new Subject();
|
|
2347
|
+
}
|
|
2348
|
+
ngOnInit() {
|
|
2349
|
+
this.valueChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
2350
|
+
this.value = x;
|
|
2351
|
+
this.init();
|
|
2352
|
+
});
|
|
2353
|
+
this.positionChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
2354
|
+
this.placement = x;
|
|
2355
|
+
this.cdr.detectChanges();
|
|
2356
|
+
});
|
|
2357
|
+
this.activeTypeChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
2358
|
+
this.activeType = x;
|
|
2359
|
+
});
|
|
2360
|
+
this.i18n.localeChange
|
|
2361
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
2362
|
+
.subscribe((x) => {
|
|
2363
|
+
this.locale = x;
|
|
2364
|
+
this.cdr.markForCheck();
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2367
|
+
ngAfterViewInit() {
|
|
2368
|
+
this.init();
|
|
2369
|
+
}
|
|
2370
|
+
ngOnDestroy() {
|
|
2371
|
+
this._unSubject.next();
|
|
2372
|
+
this._unSubject.unsubscribe();
|
|
2373
|
+
}
|
|
2374
|
+
init() {
|
|
2375
|
+
if (!XIsEmpty(this.value)) {
|
|
2376
|
+
this.setDefault();
|
|
2377
|
+
}
|
|
2378
|
+
else {
|
|
2379
|
+
this.value = [null, null];
|
|
2380
|
+
this.model = this.display;
|
|
2381
|
+
this.startModel = this.model;
|
|
2382
|
+
this.endModel = this.setModelByType(this.model, this.isDatePicker ? 1 : 0);
|
|
2383
|
+
this.setDisplay(this.model);
|
|
2384
|
+
}
|
|
2385
|
+
this.cdr.detectChanges();
|
|
2386
|
+
}
|
|
2387
|
+
stopPropagation(event) {
|
|
2388
|
+
event.stopPropagation();
|
|
2389
|
+
}
|
|
2390
|
+
setModelByType(byModel, num = 1) {
|
|
2391
|
+
if (['month', 'quarter'].includes(this.type)) {
|
|
2392
|
+
return XAddYears(byModel, num);
|
|
2393
|
+
}
|
|
2394
|
+
else if (this.type === 'year') {
|
|
2395
|
+
return XAddYears(byModel, 10 * num);
|
|
2396
|
+
}
|
|
2397
|
+
else {
|
|
2398
|
+
return XAddMonths(byModel, num);
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
setDatesState(cell) {
|
|
2402
|
+
if (this.type === 'week')
|
|
2403
|
+
return;
|
|
2404
|
+
this.startPicker?.setDatesState(cell);
|
|
2405
|
+
this.endPicker?.setDatesState(cell);
|
|
2406
|
+
}
|
|
2407
|
+
setDefault() {
|
|
2408
|
+
const type = this.activeType || 'start';
|
|
2409
|
+
this.timeHover = !this.value.every((x) => x === null);
|
|
2410
|
+
if (type === 'start') {
|
|
2411
|
+
this.startModel = new Date(this.value[0]);
|
|
2412
|
+
this.startDisplay = this.startModel;
|
|
2413
|
+
this.endModel = this.setModelByType(this.startModel, this.isDatePicker ? 1 : 0);
|
|
2414
|
+
this.endDisplay = this.endModel;
|
|
2415
|
+
this.timeModel = this.startModel;
|
|
2416
|
+
this.timeDisplay = this.startDisplay;
|
|
2417
|
+
this.time = this.startModel.getTime();
|
|
2418
|
+
}
|
|
2419
|
+
else if (type === 'end') {
|
|
2420
|
+
this.endModel = new Date(this.value[1]);
|
|
2421
|
+
this.endDisplay = this.endModel;
|
|
2422
|
+
this.startModel = this.setModelByType(this.endModel, this.isDatePicker ? -1 : 0);
|
|
2423
|
+
this.startDisplay = this.startModel;
|
|
2424
|
+
this.timeModel = this.endModel;
|
|
2425
|
+
this.timeDisplay = this.endDisplay;
|
|
2426
|
+
this.time = this.endModel.getTime();
|
|
2427
|
+
}
|
|
2428
|
+
this.cdr.detectChanges();
|
|
2429
|
+
}
|
|
2430
|
+
setDisplay(date) {
|
|
2431
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
2432
|
+
this.startDisplay = this.display;
|
|
2433
|
+
this.endDisplay = this.setModelByType(this.display, this.isDatePicker ? 1 : 0);
|
|
2434
|
+
}
|
|
2435
|
+
dateChange(date) {
|
|
2436
|
+
this.nodeClickCount++;
|
|
2437
|
+
let close = this.nodeClickCount === 2;
|
|
2438
|
+
let time = this.setDateChangeTime(date);
|
|
2439
|
+
date = new Date(time);
|
|
2440
|
+
if (this.activeType === 'start') {
|
|
2441
|
+
this.value[0] = time;
|
|
2442
|
+
if (!XIsNull(this.value[1]) && time > this.value[1]) {
|
|
2443
|
+
if (this.nodeClickCount === 2) {
|
|
2444
|
+
this.nodeClickCount--;
|
|
2445
|
+
}
|
|
2446
|
+
close = false;
|
|
2447
|
+
this.endModel = null;
|
|
2448
|
+
this.value[1] = null;
|
|
2449
|
+
if (!this.isDatePicker) {
|
|
2450
|
+
this.timeHover = false;
|
|
2451
|
+
}
|
|
2452
|
+
this.endNodeEmit(null, close, this.isDatePicker);
|
|
2453
|
+
}
|
|
2454
|
+
this.startNodeEmit(date, close, this.isDatePicker);
|
|
2455
|
+
}
|
|
2456
|
+
else if (this.activeType === 'end') {
|
|
2457
|
+
this.value[1] = time;
|
|
2458
|
+
if (!XIsNull(this.value[0]) && time < this.value[0]) {
|
|
2459
|
+
if (this.nodeClickCount === 2) {
|
|
2460
|
+
this.nodeClickCount--;
|
|
2461
|
+
}
|
|
2462
|
+
close = false;
|
|
2463
|
+
this.startModel = null;
|
|
2464
|
+
this.value[0] = null;
|
|
2465
|
+
if (!this.isDatePicker) {
|
|
2466
|
+
this.timeHover = false;
|
|
2467
|
+
}
|
|
2468
|
+
this.startNodeEmit(null, close, this.isDatePicker);
|
|
2469
|
+
}
|
|
2470
|
+
this.endNodeEmit(date, close, this.isDatePicker);
|
|
2471
|
+
}
|
|
2472
|
+
if (!this.value.includes(null) && this.isDatePicker) {
|
|
2473
|
+
this.nodeEmit(this.value.map((x) => new Date(x)), close);
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
setDateChangeTime(date) {
|
|
2477
|
+
if (this.isDatePicker) {
|
|
2478
|
+
return date.getTime();
|
|
2479
|
+
}
|
|
2480
|
+
else {
|
|
2481
|
+
let time = new Date();
|
|
2482
|
+
if (this.time) {
|
|
2483
|
+
time = new Date(this.time);
|
|
2484
|
+
}
|
|
2485
|
+
else {
|
|
2486
|
+
this.time = time.getTime();
|
|
2487
|
+
}
|
|
2488
|
+
if (['date-hour', 'date-minute'].includes(this.type)) {
|
|
2489
|
+
time.setSeconds(0);
|
|
2490
|
+
}
|
|
2491
|
+
if (this.type === 'date-hour') {
|
|
2492
|
+
time.setMinutes(0);
|
|
2493
|
+
}
|
|
2494
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds()).getTime();
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
typeChange(type) {
|
|
2498
|
+
this.type = type;
|
|
2499
|
+
this.cdr.detectChanges();
|
|
2500
|
+
}
|
|
2501
|
+
yearStartChange(number) {
|
|
2502
|
+
this.startYear = number;
|
|
2503
|
+
this.cdr.detectChanges();
|
|
2504
|
+
}
|
|
2505
|
+
nextMonth(num) {
|
|
2506
|
+
let date = new Date(this.display);
|
|
2507
|
+
date.setMonth(date.getMonth() + num);
|
|
2508
|
+
this.setDisplay(date);
|
|
2509
|
+
this.cdr.detectChanges();
|
|
2510
|
+
}
|
|
2511
|
+
nextYear(num) {
|
|
2512
|
+
let date = new Date(this.display);
|
|
2513
|
+
date.setFullYear(date.getFullYear() + num);
|
|
2514
|
+
this.setDisplay(date);
|
|
2515
|
+
this.cdr.detectChanges();
|
|
2516
|
+
}
|
|
2517
|
+
nextYears(num) {
|
|
2518
|
+
this.startYear += num;
|
|
2519
|
+
let date = new Date(this.display);
|
|
2520
|
+
date.setFullYear(this.startYear);
|
|
2521
|
+
this.setDisplay(date);
|
|
2522
|
+
this.cdr.detectChanges();
|
|
2523
|
+
}
|
|
2524
|
+
getLocaleMonth(date) {
|
|
2525
|
+
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
2526
|
+
}
|
|
2527
|
+
selectTime(time) {
|
|
2528
|
+
this.time = time.getTime();
|
|
2529
|
+
if (XIsEmpty(this.timeModel)) {
|
|
2530
|
+
this.timeModel = new Date();
|
|
2531
|
+
}
|
|
2532
|
+
this.timeModel?.setHours(time.getHours());
|
|
2533
|
+
this.timeModel?.setMinutes(time.getMinutes());
|
|
2534
|
+
this.timeModel?.setSeconds(time.getSeconds());
|
|
2535
|
+
this.dateChange(this.timeModel);
|
|
2536
|
+
this.cdr.detectChanges();
|
|
2537
|
+
}
|
|
2538
|
+
sureTime() {
|
|
2539
|
+
if (this.sureDisabled)
|
|
2540
|
+
return;
|
|
2541
|
+
const [start, end] = this.value;
|
|
2542
|
+
if (XIsNull(start) && !XIsNull(end)) {
|
|
2543
|
+
this.time = null;
|
|
2544
|
+
this.timeHover = true;
|
|
2545
|
+
this.endNodeEmit(new Date(end), false, true);
|
|
2546
|
+
}
|
|
2547
|
+
else if (!XIsNull(start) && XIsNull(end)) {
|
|
2548
|
+
this.time = null;
|
|
2549
|
+
this.timeHover = true;
|
|
2550
|
+
this.startNodeEmit(new Date(start), false, true);
|
|
2551
|
+
}
|
|
2552
|
+
else {
|
|
2553
|
+
this.nodeEmit(this.value.map((x) => new Date(x)), true);
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
yearChange(num, type) {
|
|
2557
|
+
if (type === 'start') {
|
|
2558
|
+
this.endDisplay = XAddYears(this.endDisplay, num);
|
|
2559
|
+
}
|
|
2560
|
+
else if (type === 'end') {
|
|
2561
|
+
this.startDisplay = XAddYears(this.startDisplay, num);
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
monthChange(num, type) {
|
|
2565
|
+
if (type === 'start') {
|
|
2566
|
+
this.endDisplay = XAddMonths(this.endDisplay, num);
|
|
2567
|
+
}
|
|
2568
|
+
else if (type === 'end') {
|
|
2569
|
+
this.startDisplay = XAddMonths(this.startDisplay, num);
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
onPreset(type, num = 0) {
|
|
2573
|
+
let now = new Date();
|
|
2574
|
+
if (type === 'week') {
|
|
2575
|
+
now = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
2576
|
+
const week = now.getDay();
|
|
2577
|
+
const weekList = [1, 2, 3, 4, 5, 6, 7];
|
|
2578
|
+
const index = weekList.indexOf(week);
|
|
2579
|
+
this.nodeEmit([XAddDays(now, weekList[0] - (index + 1) + num * 7), XAddDays(now, weekList[6] - (index + 1) + num * 7)], true);
|
|
2580
|
+
}
|
|
2581
|
+
else if (type === 'month') {
|
|
2582
|
+
const month = XAddMonths(now, num);
|
|
2583
|
+
const firstDay = new Date(month.getFullYear(), month.getMonth(), 1);
|
|
2584
|
+
const lastDay = XAddDays(XAddMonths(firstDay, 1), -1);
|
|
2585
|
+
this.nodeEmit([firstDay, lastDay], true);
|
|
2586
|
+
}
|
|
2587
|
+
else if (type === 'year') {
|
|
2588
|
+
let year = XAddYears(now, num);
|
|
2589
|
+
let firstDay = new Date(year.getFullYear(), 0, 1);
|
|
2590
|
+
let lastDay = XAddDays(XAddYears(firstDay, 1), -1);
|
|
2591
|
+
this.nodeEmit([firstDay, lastDay], true);
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
onPresetFunc(item) {
|
|
2595
|
+
let value = item.func();
|
|
2596
|
+
if (XIsArray(value) && value.length > 1) {
|
|
2597
|
+
if (XIsNumber(value[0]) || XIsString(value[0])) {
|
|
2598
|
+
value = value.map((x) => new Date(x));
|
|
2599
|
+
}
|
|
2600
|
+
this.nodeEmit(value, true);
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateRangePortalComponent, deps: [{ token: i1.DatePipe }, { token: i1.LowerCasePipe }, { token: i0.ChangeDetectorRef }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2604
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XDateRangePortalComponent, selector: "x-date-range-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, providers: [DatePipe, LowerCasePipe], viewQueries: [{ propertyName: "startPicker", first: true, predicate: ["startPicker"], descendants: true }, { propertyName: "endPicker", first: true, predicate: ["endPicker"], descendants: true }, { propertyName: "timePickerFrame", first: true, predicate: ["timePickerFrame"], descendants: true }], ngImport: i0, template: "<div class=\"x-date-range-portal {{ type }}\">\r\n <div class=\"x-date-range-portal-body\" [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <x-picker-date\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [nextMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n <x-picker-date\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [lastMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'week'\">\r\n <x-picker-date\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n type = 'week'\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [nextMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n <x-picker-date\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n type = 'week'\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [lastMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <x-picker-month\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-month>\r\n <x-picker-month\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-month>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'quarter'\">\r\n <x-picker-quarter\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-quarter>\r\n <x-picker-quarter\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-quarter>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <x-picker-year\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-year>\r\n <x-picker-year\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-year>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-range-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-range-portal-content\">\r\n <div class=\"x-date-range-portal-date\">\r\n <x-picker-date\r\n [class.x-date-range-portal-start]=\"activeType === 'start'\"\r\n [class.x-date-range-portal-end]=\"activeType === 'end'\"\r\n [(display)]=\"timeDisplay\"\r\n [(model)]=\"timeModel\"\r\n [rangeHover]=\"timeHover\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </div>\r\n <div class=\"x-date-range-portal-time\">\r\n <div class=\"x-date-range-portal-time-label\">\r\n {{ time | date : timeFormat }}\r\n </div>\r\n <x-time-picker-frame\r\n #timePickerFrame\r\n [type]=\"timeType\"\r\n [value]=\"time\"\r\n (nodeEmit)=\"selectTime($event)\"\r\n [disabledTimeParam]=\"activeType\"\r\n [disabledTime]=\"disabledTime\"\r\n [defaultNow]=\"false\"\r\n ></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-range-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n </ng-container>\r\n <div class=\"x-date-range-portal-footer\">\r\n <div class=\"x-date-range-portal-footer-left\">\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <x-button type=\"primary\" (click)=\"!sureDisabled && sureTime()\" size=\"small\" [disabled]=\"sureDisabled\">{{ locale.sure }}</x-button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #presetTpl>\r\n <div *ngIf=\"preset\" class=\"x-date-range-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-link *ngIf=\"item.id === 'thisWeek'\" (click)=\"onPreset('week', 0)\">{{ locale.thisWeek }}</x-link>\r\n <x-link *ngIf=\"item.id === 'lastWeek'\" (click)=\"onPreset('week', -1)\">{{ locale.lastWeek }}</x-link>\r\n <x-link *ngIf=\"item.id === 'nextWeek'\" (click)=\"onPreset('week', 1)\">{{ locale.nextWeek }}</x-link>\r\n <x-link *ngIf=\"item.id === 'thisMonth'\" (click)=\"onPreset('month', 0)\">{{ locale.thisMonth }}</x-link>\r\n <x-link *ngIf=\"item.id === 'lastMonth'\" (click)=\"onPreset('month', -1)\">{{ locale.lastMonth }}</x-link>\r\n <x-link *ngIf=\"item.id === 'nextMonth'\" (click)=\"onPreset('month', 1)\">{{ locale.nextMonth }}</x-link>\r\n <x-link *ngIf=\"item.id === 'thisYear'\" (click)=\"onPreset('year', 0)\">{{ locale.thisYear }}</x-link>\r\n <x-link *ngIf=\"item.id === 'lastYear'\" (click)=\"onPreset('year', -1)\">{{ locale.lastYear }}</x-link>\r\n <x-link *ngIf=\"item.id === 'nextYear'\" (click)=\"onPreset('year', 1)\">{{ locale.nextYear }}</x-link>\r\n <x-link *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-link>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-date-range-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:34rem;display:flex;flex-direction:column}.x-date-range-portal.week .x-picker-date-body .x-picker-date-item:not(.x-date-in-range):not(.x-date-active) .x-date-text{background-color:transparent}.x-date-range-portal.week .x-picker-date-body tbody tr.x-date-week-in-range:not(.x-date-week-start-active):not(.x-date-week-end-active) .x-picker-date-item{background-color:var(--x-primary-800)}.x-date-range-portal.week .x-picker-date-body tbody tr:not(.x-date-week-active):not(.x-date-week-start-active):not(.x-date-week-end-active):not(.x-date-week-in-range):hover .x-picker-date-item{background-color:var(--x-background-a200);border-radius:var(--x-border-radius)}.x-date-range-portal.date-time{width:27rem}.x-date-range-portal.date-time .x-date-range-portal-body{flex-direction:column}.x-date-range-portal.date-hour{width:19.75rem}.x-date-range-portal.date-hour .x-date-range-portal-body{flex-direction:column}.x-date-range-portal.date-minute{width:23.375rem}.x-date-range-portal.date-minute .x-date-range-portal-body{flex-direction:column}.x-date-range-portal-content{display:flex}.x-date-range-portal-preset{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;border-top:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset>x-link{padding:.25rem}.x-date-range-portal-preset>x-link:not(:first-child){margin-left:1rem}.x-date-range-portal-extra-footer{display:flex;align-items:center;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-year-month{flex:1;text-align:center}.x-date-range-portal-body{display:flex}.x-date-range-portal-body .x-picker-date-item:before,.x-date-range-portal-body .x-picker-date-item:after{position:absolute;top:50%;right:0;left:0;z-index:1;border:var(--x-border-width) dashed transparent;transform:translateY(-50%);transition:var(--x-animation-duration-base);content:\"\"}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next),.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next){color:var(--x-background-100)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next) .x-date-text,.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next):hover,.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next):hover .x-date-text,.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-date-range-portal-body .x-picker-date-item.x-date-range-end-left:not(.x-date-last-or-next):not(.x-date-first-day):not(:first-child) .x-date-text{z-index:1}.x-date-range-portal-body .x-picker-date-item.x-date-range-end-left:not(.x-date-last-or-next):not(.x-date-first-day):not(:first-child):after{background-color:var(--x-primary-800);transform:translate(-.25rem,-50%);border-radius:var(--x-border-radius);z-index:0}.x-date-range-portal-body .x-picker-date-item.x-date-range-end-left:not(.x-date-last-or-next):not(.x-date-first-day):not(:first-child).x-date-in-range-hover:after{background-color:var(--x-primary-700)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child) .x-date-text{z-index:1}.x-date-range-portal-body .x-picker-date-item.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child):after{background-color:var(--x-primary-800);transform:translate(.25rem,-50%);border-radius:var(--x-border-radius);z-index:0}.x-date-range-portal-body .x-picker-date-item.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child).x-date-in-range-hover:after{background-color:var(--x-primary-700)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start.x-date-range-end.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child):after{display:none}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{position:relative;z-index:1}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next):before{background-color:var(--x-primary-800);z-index:0}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next):first-child:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next):last-child:before{transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next).x-date-in-range-hover-left:before{transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next).x-date-in-range-hover-right:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next).x-date-in-range-hover:before{background-color:var(--x-primary-700)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:not(.x-date-last-or-next):before{border-color:var(--x-primary);border-left-color:transparent;border-right-color:transparent;transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-first-day:before{border-left-color:var(--x-primary);transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-last-day:before{border-right-color:var(--x-primary);transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-start:not(.x-date-last-or-next):before{border-left-color:var(--x-primary);transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-range-hover-start:not(.x-date-last-or-next):before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-end:not(.x-date-last-or-next):before{border-right-color:var(--x-primary);transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-start-left:not(:first-child):not(.x-date-last-or-next):not(.x-date-first-day):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-end-left:not(:first-child):not(.x-date-last-or-next):not(.x-date-first-day):before{border-top-color:var(--x-primary);border-bottom-color:var(--x-primary);transform:translate(-.3125rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-start-right:not(:last-child):not(.x-date-last-or-next):not(.x-date-last-day):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-end-right:not(:last-child):not(.x-date-last-or-next):not(.x-date-last-day):before{border-top-color:var(--x-primary);border-bottom-color:var(--x-primary);transform:translate(.3125rem,-50%)}.x-date-range-portal-start,.x-date-range-portal-end{flex:1}.x-date-range-portal-footer{display:flex;align-items:center;justify-content:space-between;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-footer .x-date-range-portal-preset{border-top:none}.x-date-range-portal-footer .x-date-range-portal-preset>x-link{padding:0 .25rem}.x-date-range-portal-date{flex:1}.x-date-range-portal-time{display:flex;flex-direction:column;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time-label{display:flex;align-items:center;justify-content:center;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time .x-time-picker-frame{border-width:0;box-shadow:none;margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i3$1.XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value", "use12Hours", "hourStep", "minuteStep", "secondStep", "defaultNow", "disabledTime", "disabledTimeParam"], outputs: ["nodeEmit"] }, { kind: "component", type: i4.XLinkComponent, selector: "x-link" }, { kind: "component", type: i5.XButtonComponent, selector: "x-button" }, { kind: "directive", type: i6.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "component", type: XPickerDateComponent, selector: "x-picker-date" }, { kind: "component", type: XPickerMonthComponent, selector: "x-picker-month" }, { kind: "component", type: XPickerQuarterComponent, selector: "x-picker-quarter" }, { kind: "component", type: XPickerYearComponent, selector: "x-picker-year" }, { kind: "pipe", type: i1.DatePipe, name: "date" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2605
|
+
}
|
|
2606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateRangePortalComponent, decorators: [{
|
|
2607
|
+
type: Component,
|
|
2608
|
+
args: [{ selector: `${XDateRangePortalPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], providers: [DatePipe, LowerCasePipe], template: "<div class=\"x-date-range-portal {{ type }}\">\r\n <div class=\"x-date-range-portal-body\" [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <x-picker-date\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [nextMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n <x-picker-date\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [lastMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'week'\">\r\n <x-picker-date\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n type = 'week'\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [nextMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n <x-picker-date\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n type = 'week'\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [lastMonthBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <x-picker-month\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-month>\r\n <x-picker-month\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-month>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'quarter'\">\r\n <x-picker-quarter\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-quarter>\r\n <x-picker-quarter\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-quarter>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <x-picker-year\r\n #startPicker\r\n class=\"x-date-range-portal-start\"\r\n [(display)]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [nextYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'start')\"\r\n (monthChange)=\"monthChange($event, 'start')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-year>\r\n <x-picker-year\r\n #endPicker\r\n class=\"x-date-range-portal-end\"\r\n [(display)]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [lastYearBtn]=\"false\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n (yearChange)=\"yearChange($event, 'end')\"\r\n (monthChange)=\"monthChange($event, 'end')\"\r\n (rangeTdMouseenter)=\"setDatesState($event)\"\r\n (rangeDateClick)=\"setDatesState($event)\"\r\n rangePicker\r\n ></x-picker-year>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-range-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-range-portal-content\">\r\n <div class=\"x-date-range-portal-date\">\r\n <x-picker-date\r\n [class.x-date-range-portal-start]=\"activeType === 'start'\"\r\n [class.x-date-range-portal-end]=\"activeType === 'end'\"\r\n [(display)]=\"timeDisplay\"\r\n [(model)]=\"timeModel\"\r\n [rangeHover]=\"timeHover\"\r\n [rangeValue]=\"value\"\r\n [rangeType]=\"activeType\"\r\n [disabledDate]=\"disabledDate\"\r\n (modelChange)=\"dateChange($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </div>\r\n <div class=\"x-date-range-portal-time\">\r\n <div class=\"x-date-range-portal-time-label\">\r\n {{ time | date : timeFormat }}\r\n </div>\r\n <x-time-picker-frame\r\n #timePickerFrame\r\n [type]=\"timeType\"\r\n [value]=\"time\"\r\n (nodeEmit)=\"selectTime($event)\"\r\n [disabledTimeParam]=\"activeType\"\r\n [disabledTime]=\"disabledTime\"\r\n [defaultNow]=\"false\"\r\n ></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <div *ngIf=\"extraFooter\" class=\"x-date-range-portal-extra-footer\">\r\n <ng-container *xOutlet=\"extraFooter\">{{ extraFooter }}</ng-container>\r\n </div>\r\n </ng-container>\r\n <div class=\"x-date-range-portal-footer\">\r\n <div class=\"x-date-range-portal-footer-left\">\r\n <ng-container *ngIf=\"!isDatePicker\">\r\n <ng-container *ngTemplateOutlet=\"presetTpl\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <x-button type=\"primary\" (click)=\"!sureDisabled && sureTime()\" size=\"small\" [disabled]=\"sureDisabled\">{{ locale.sure }}</x-button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #presetTpl>\r\n <div *ngIf=\"preset\" class=\"x-date-range-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-link *ngIf=\"item.id === 'thisWeek'\" (click)=\"onPreset('week', 0)\">{{ locale.thisWeek }}</x-link>\r\n <x-link *ngIf=\"item.id === 'lastWeek'\" (click)=\"onPreset('week', -1)\">{{ locale.lastWeek }}</x-link>\r\n <x-link *ngIf=\"item.id === 'nextWeek'\" (click)=\"onPreset('week', 1)\">{{ locale.nextWeek }}</x-link>\r\n <x-link *ngIf=\"item.id === 'thisMonth'\" (click)=\"onPreset('month', 0)\">{{ locale.thisMonth }}</x-link>\r\n <x-link *ngIf=\"item.id === 'lastMonth'\" (click)=\"onPreset('month', -1)\">{{ locale.lastMonth }}</x-link>\r\n <x-link *ngIf=\"item.id === 'nextMonth'\" (click)=\"onPreset('month', 1)\">{{ locale.nextMonth }}</x-link>\r\n <x-link *ngIf=\"item.id === 'thisYear'\" (click)=\"onPreset('year', 0)\">{{ locale.thisYear }}</x-link>\r\n <x-link *ngIf=\"item.id === 'lastYear'\" (click)=\"onPreset('year', -1)\">{{ locale.lastYear }}</x-link>\r\n <x-link *ngIf=\"item.id === 'nextYear'\" (click)=\"onPreset('year', 1)\">{{ locale.nextYear }}</x-link>\r\n <x-link *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-link>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-date-range-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:34rem;display:flex;flex-direction:column}.x-date-range-portal.week .x-picker-date-body .x-picker-date-item:not(.x-date-in-range):not(.x-date-active) .x-date-text{background-color:transparent}.x-date-range-portal.week .x-picker-date-body tbody tr.x-date-week-in-range:not(.x-date-week-start-active):not(.x-date-week-end-active) .x-picker-date-item{background-color:var(--x-primary-800)}.x-date-range-portal.week .x-picker-date-body tbody tr:not(.x-date-week-active):not(.x-date-week-start-active):not(.x-date-week-end-active):not(.x-date-week-in-range):hover .x-picker-date-item{background-color:var(--x-background-a200);border-radius:var(--x-border-radius)}.x-date-range-portal.date-time{width:27rem}.x-date-range-portal.date-time .x-date-range-portal-body{flex-direction:column}.x-date-range-portal.date-hour{width:19.75rem}.x-date-range-portal.date-hour .x-date-range-portal-body{flex-direction:column}.x-date-range-portal.date-minute{width:23.375rem}.x-date-range-portal.date-minute .x-date-range-portal-body{flex-direction:column}.x-date-range-portal-content{display:flex}.x-date-range-portal-preset{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;border-top:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset>x-link{padding:.25rem}.x-date-range-portal-preset>x-link:not(:first-child){margin-left:1rem}.x-date-range-portal-extra-footer{display:flex;align-items:center;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-year-month{flex:1;text-align:center}.x-date-range-portal-body{display:flex}.x-date-range-portal-body .x-picker-date-item:before,.x-date-range-portal-body .x-picker-date-item:after{position:absolute;top:50%;right:0;left:0;z-index:1;border:var(--x-border-width) dashed transparent;transform:translateY(-50%);transition:var(--x-animation-duration-base);content:\"\"}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next),.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next){color:var(--x-background-100)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next) .x-date-text,.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next) .x-date-text{background-color:var(--x-primary);border-color:var(--x-primary)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next):hover,.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next):hover{color:var(--x-background-100)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start:not(.x-date-last-or-next):hover .x-date-text,.x-date-range-portal-body .x-picker-date-item.x-date-range-end:not(.x-date-last-or-next):hover .x-date-text{background-color:var(--x-primary)}.x-date-range-portal-body .x-picker-date-item.x-date-range-end-left:not(.x-date-last-or-next):not(.x-date-first-day):not(:first-child) .x-date-text{z-index:1}.x-date-range-portal-body .x-picker-date-item.x-date-range-end-left:not(.x-date-last-or-next):not(.x-date-first-day):not(:first-child):after{background-color:var(--x-primary-800);transform:translate(-.25rem,-50%);border-radius:var(--x-border-radius);z-index:0}.x-date-range-portal-body .x-picker-date-item.x-date-range-end-left:not(.x-date-last-or-next):not(.x-date-first-day):not(:first-child).x-date-in-range-hover:after{background-color:var(--x-primary-700)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child) .x-date-text{z-index:1}.x-date-range-portal-body .x-picker-date-item.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child):after{background-color:var(--x-primary-800);transform:translate(.25rem,-50%);border-radius:var(--x-border-radius);z-index:0}.x-date-range-portal-body .x-picker-date-item.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child).x-date-in-range-hover:after{background-color:var(--x-primary-700)}.x-date-range-portal-body .x-picker-date-item.x-date-range-start.x-date-range-end.x-date-range-start-right:not(.x-date-last-or-next):not(.x-date-last-day):not(:last-child):after{display:none}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next) .x-date-text{position:relative;z-index:1}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next):before{background-color:var(--x-primary-800);z-index:0}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next):first-child:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next):last-child:before{transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next).x-date-in-range-hover-left:before{transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next).x-date-in-range-hover-right:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-in-range:not(.x-date-range-start):not(.x-date-range-end):not(.x-date-last-or-next).x-date-in-range-hover:before{background-color:var(--x-primary-700)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:not(.x-date-last-or-next):before{border-color:var(--x-primary);border-left-color:transparent;border-right-color:transparent;transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-first-day:before{border-left-color:var(--x-primary);transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:first-child:not(.x-date-last-or-next).x-date-range-hover-end:before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-first-day.x-date-range-hover-end:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-first-day:last-child:not(.x-date-last-or-next):before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-last-day:before{border-right-color:var(--x-primary);transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover:last-child:not(.x-date-last-or-next).x-date-range-hover-start:before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-last-day.x-date-range-hover-start:before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-start:not(.x-date-last-or-next):before{border-left-color:var(--x-primary);transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover.x-date-range-hover-start:not(.x-date-last-or-next):before{transform:translate(.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-end:not(.x-date-last-or-next):before{border-right-color:var(--x-primary);transform:translate(-.25rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-start-left:not(:first-child):not(.x-date-last-or-next):not(.x-date-first-day):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-end-left:not(:first-child):not(.x-date-last-or-next):not(.x-date-first-day):before{border-top-color:var(--x-primary);border-bottom-color:var(--x-primary);transform:translate(-.3125rem,-50%)}.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-start-right:not(:last-child):not(.x-date-last-or-next):not(.x-date-last-day):before,.x-date-range-portal-body .x-picker-date-item.x-date-range-hover-end-right:not(:last-child):not(.x-date-last-or-next):not(.x-date-last-day):before{border-top-color:var(--x-primary);border-bottom-color:var(--x-primary);transform:translate(.3125rem,-50%)}.x-date-range-portal-start,.x-date-range-portal-end{flex:1}.x-date-range-portal-footer{display:flex;align-items:center;justify-content:space-between;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-footer .x-date-range-portal-preset{border-top:none}.x-date-range-portal-footer .x-date-range-portal-preset>x-link{padding:0 .25rem}.x-date-range-portal-date{flex:1}.x-date-range-portal-time{display:flex;flex-direction:column;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time-label{display:flex;align-items:center;justify-content:center;padding:0 .5rem;height:2.5rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time .x-time-picker-frame{border-width:0;box-shadow:none;margin:0}\n"] }]
|
|
2609
|
+
}], ctorParameters: function () { return [{ type: i1.DatePipe }, { type: i1.LowerCasePipe }, { type: i0.ChangeDetectorRef }, { type: i3.XI18nService }]; }, propDecorators: { placement: [{
|
|
2610
|
+
type: HostBinding,
|
|
2611
|
+
args: ['@x-connect-base-animation']
|
|
2612
|
+
}], done: [{
|
|
2613
|
+
type: HostListener,
|
|
2614
|
+
args: ['@x-connect-base-animation.done', ['$event']]
|
|
2615
|
+
}], start: [{
|
|
2616
|
+
type: HostListener,
|
|
2617
|
+
args: ['@x-connect-base-animation.start', ['$event']]
|
|
2618
|
+
}], startPicker: [{
|
|
2619
|
+
type: ViewChild,
|
|
2620
|
+
args: ['startPicker']
|
|
2621
|
+
}], endPicker: [{
|
|
2622
|
+
type: ViewChild,
|
|
2623
|
+
args: ['endPicker']
|
|
2624
|
+
}], timePickerFrame: [{
|
|
2625
|
+
type: ViewChild,
|
|
2626
|
+
args: ['timePickerFrame']
|
|
2627
|
+
}] } });
|
|
2628
|
+
|
|
2629
|
+
class XDateRangeComponent extends XDateRangeProperty {
|
|
2630
|
+
get getStartPlaceholder() {
|
|
2631
|
+
if (this.placeholder && this.placeholder.length > 0)
|
|
2632
|
+
return this.placeholder[0];
|
|
2633
|
+
if (this.type === 'month') {
|
|
2634
|
+
return this.locale.startMonth;
|
|
2635
|
+
}
|
|
2636
|
+
else if (this.type === 'quarter') {
|
|
2637
|
+
return this.locale.startQuarter;
|
|
2638
|
+
}
|
|
2639
|
+
else if (this.type === 'year') {
|
|
2640
|
+
return this.locale.startYear;
|
|
2641
|
+
}
|
|
2642
|
+
else if (this.type === 'week') {
|
|
2643
|
+
return this.locale.startWeek;
|
|
2644
|
+
}
|
|
2645
|
+
else {
|
|
2646
|
+
return this.locale.startDate;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
get getEndPlaceholder() {
|
|
2650
|
+
if (this.placeholder && this.placeholder.length > 1)
|
|
2651
|
+
return this.placeholder[1];
|
|
2652
|
+
if (this.type === 'month') {
|
|
2653
|
+
return this.locale.endMonth;
|
|
2654
|
+
}
|
|
2655
|
+
else if (this.type === 'quarter') {
|
|
2656
|
+
return this.locale.endQuarter;
|
|
2657
|
+
}
|
|
2658
|
+
else if (this.type === 'year') {
|
|
2659
|
+
return this.locale.endYear;
|
|
2660
|
+
}
|
|
2661
|
+
else if (this.type === 'week') {
|
|
2662
|
+
return this.locale.endWeek;
|
|
2663
|
+
}
|
|
2664
|
+
else {
|
|
2665
|
+
return this.locale.endDate;
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
get requiredIsEmpty() {
|
|
2669
|
+
return this.validator && this.required && XIsEmpty(this.value);
|
|
2670
|
+
}
|
|
2671
|
+
writeValue(value) {
|
|
2672
|
+
if (XIsEmpty(value)) {
|
|
2673
|
+
value = [];
|
|
2674
|
+
this.numberValue = [];
|
|
2675
|
+
}
|
|
2676
|
+
if (value.length > 0) {
|
|
2677
|
+
if (XIsDate(value[0])) {
|
|
2678
|
+
this.modelType = 'date';
|
|
2679
|
+
this.numberValue = value.map((x) => x.getTime());
|
|
2680
|
+
}
|
|
2681
|
+
else if (XIsNumber(value[0])) {
|
|
2682
|
+
this.modelType = 'number';
|
|
2683
|
+
this.numberValue = value;
|
|
2684
|
+
}
|
|
2685
|
+
else if (XIsString(value[0])) {
|
|
2686
|
+
this.modelType = 'string';
|
|
2687
|
+
const valueTime = value.map((x) => new Date(x).getTime());
|
|
2688
|
+
this.numberValue = !isNaN(valueTime[0]) ? valueTime : [];
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
this.value = value;
|
|
2692
|
+
this.setDisplayValue(this.numberValue);
|
|
2693
|
+
this.valueChange.next(this.numberValue);
|
|
2694
|
+
this.cdr.detectChanges();
|
|
2695
|
+
}
|
|
2696
|
+
constructor(renderer, elementRef, configService, cdr, portalService, viewContainerRef, datePipe, overlay, i18n) {
|
|
2697
|
+
super();
|
|
2698
|
+
this.renderer = renderer;
|
|
2699
|
+
this.elementRef = elementRef;
|
|
2700
|
+
this.configService = configService;
|
|
2701
|
+
this.cdr = cdr;
|
|
2702
|
+
this.portalService = portalService;
|
|
2703
|
+
this.viewContainerRef = viewContainerRef;
|
|
2704
|
+
this.datePipe = datePipe;
|
|
2705
|
+
this.overlay = overlay;
|
|
2706
|
+
this.i18n = i18n;
|
|
2707
|
+
this.modelType = 'date';
|
|
2708
|
+
this.isInput = false;
|
|
2709
|
+
this.showClearable = false;
|
|
2710
|
+
this.enter = false;
|
|
2711
|
+
this.inputClearable = false;
|
|
2712
|
+
this.animating = false;
|
|
2713
|
+
this.displayValue = [];
|
|
2714
|
+
this.icon = 'fto-calendar';
|
|
2715
|
+
this.maxNodes = 6;
|
|
2716
|
+
this.protalTobottom = true;
|
|
2717
|
+
this.valueChange = new Subject();
|
|
2718
|
+
this.dataChange = new Subject();
|
|
2719
|
+
this.positionChange = new Subject();
|
|
2720
|
+
this.closeSubject = new Subject();
|
|
2721
|
+
this.activeTypeChange = new Subject();
|
|
2722
|
+
this.startDisplay = '';
|
|
2723
|
+
this.endDisplay = '';
|
|
2724
|
+
this.flexClass = [];
|
|
2725
|
+
this.locale = {};
|
|
2726
|
+
this._unSubject = new Subject();
|
|
2727
|
+
}
|
|
2728
|
+
ngOnInit() {
|
|
2729
|
+
this.setFlex(this.dateRange.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
2730
|
+
this.setHostTypeClass();
|
|
2731
|
+
this.setFormat();
|
|
2732
|
+
this.setClassMap();
|
|
2733
|
+
this.setSubject();
|
|
2734
|
+
}
|
|
2735
|
+
ngAfterViewInit() {
|
|
2736
|
+
this.setPortal();
|
|
2737
|
+
}
|
|
2738
|
+
ngOnChanges(changes) {
|
|
2739
|
+
const { type, justify, align, direction, size, labelAlign } = changes;
|
|
2740
|
+
XIsChange(size, labelAlign) && this.setClassMap();
|
|
2741
|
+
XIsChange(justify, align, direction) && this.setFlexClass();
|
|
2742
|
+
if (XIsChange(type)) {
|
|
2743
|
+
this.setFormat();
|
|
2744
|
+
this.setDisplayValue(this.numberValue);
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
ngOnDestroy() {
|
|
2748
|
+
this._unSubject.next();
|
|
2749
|
+
this._unSubject.unsubscribe();
|
|
2750
|
+
}
|
|
2751
|
+
setSubject() {
|
|
2752
|
+
this.closeSubject.pipe(takeUntil(this._unSubject)).subscribe(() => {
|
|
2753
|
+
this.closePortal();
|
|
2754
|
+
});
|
|
2755
|
+
this.i18n.localeChange
|
|
2756
|
+
.pipe(map((x) => x.datePicker), takeUntil(this._unSubject))
|
|
2757
|
+
.subscribe((x) => {
|
|
2758
|
+
this.locale = x;
|
|
2759
|
+
this.cdr.markForCheck();
|
|
2760
|
+
});
|
|
2761
|
+
}
|
|
2762
|
+
setFlexClass() {
|
|
2763
|
+
if (this.flexClass.length > 0) {
|
|
2764
|
+
for (let cls of this.flexClass) {
|
|
2765
|
+
this.renderer.removeClass(this.dateRange.nativeElement, cls);
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
this.flexClass = this.setFlex(this.dateRange.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
2769
|
+
}
|
|
2770
|
+
setHostTypeClass() {
|
|
2771
|
+
this.renderer.addClass(this.elementRef.nativeElement, `x-date-range-${this.type}`);
|
|
2772
|
+
}
|
|
2773
|
+
setFormat() {
|
|
2774
|
+
if (this.format !== 'yyyy-MM-dd')
|
|
2775
|
+
return;
|
|
2776
|
+
if (this.type === 'date') {
|
|
2777
|
+
this.format = 'yyyy-MM-dd';
|
|
2778
|
+
}
|
|
2779
|
+
else if (this.type === 'year') {
|
|
2780
|
+
this.format = 'yyyy';
|
|
2781
|
+
}
|
|
2782
|
+
else if (this.type === 'month') {
|
|
2783
|
+
this.format = 'yyyy-MM';
|
|
2784
|
+
}
|
|
2785
|
+
else if (this.type === 'date-time') {
|
|
2786
|
+
this.format = 'yyyy-MM-dd HH:mm:ss';
|
|
2787
|
+
}
|
|
2788
|
+
else if (this.type === 'date-hour') {
|
|
2789
|
+
this.format = 'yyyy-MM-dd HH';
|
|
2790
|
+
}
|
|
2791
|
+
else if (this.type === 'date-minute') {
|
|
2792
|
+
this.format = 'yyyy-MM-dd HH:mm';
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
menter() {
|
|
2796
|
+
if (this.disabled || !this.clearable)
|
|
2797
|
+
return;
|
|
2798
|
+
this.enter = true;
|
|
2799
|
+
if (!XIsEmpty(this.numberValue)) {
|
|
2800
|
+
this.icon = '';
|
|
2801
|
+
this.showClearable = true;
|
|
2802
|
+
this.cdr.detectChanges();
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
mleave() {
|
|
2806
|
+
if (this.disabled || !this.clearable)
|
|
2807
|
+
return;
|
|
2808
|
+
this.enter = false;
|
|
2809
|
+
if (this.clearable) {
|
|
2810
|
+
this.icon = 'fto-calendar';
|
|
2811
|
+
this.showClearable = false;
|
|
2812
|
+
this.cdr.detectChanges();
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
clearEmit() {
|
|
2816
|
+
this.value = [];
|
|
2817
|
+
this.numberValue = [];
|
|
2818
|
+
this.startDisplay = '';
|
|
2819
|
+
this.endDisplay = '';
|
|
2820
|
+
this.mleave();
|
|
2821
|
+
this.valueChange.next(this.numberValue);
|
|
2822
|
+
this.formControlValidator();
|
|
2823
|
+
this.modelChange();
|
|
2824
|
+
this.inputStartCom.inputFocus();
|
|
2825
|
+
this.cdr.detectChanges();
|
|
2826
|
+
}
|
|
2827
|
+
onIconClick(event) {
|
|
2828
|
+
if (this.icon === 'fto-x') {
|
|
2829
|
+
this.clearEmit();
|
|
2830
|
+
}
|
|
2831
|
+
event.stopPropagation();
|
|
2832
|
+
}
|
|
2833
|
+
modelChange() {
|
|
2834
|
+
if (this.onChange) {
|
|
2835
|
+
this.onChange(this.getValue());
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
getValue() {
|
|
2839
|
+
return this.modelType === 'date'
|
|
2840
|
+
? this.numberValue.map((x) => new Date(x))
|
|
2841
|
+
: this.modelType === 'string'
|
|
2842
|
+
? this.numberValue.map((x) => this.datePipe.transform(x, this.format))
|
|
2843
|
+
: this.numberValue;
|
|
2844
|
+
}
|
|
2845
|
+
getNumberValue() {
|
|
2846
|
+
return this.modelType === 'date'
|
|
2847
|
+
? this.value.map((x) => x.getTime())
|
|
2848
|
+
: this.modelType === 'string'
|
|
2849
|
+
? this.value.map((x) => new Date(x).getTime())
|
|
2850
|
+
: this.value;
|
|
2851
|
+
}
|
|
2852
|
+
portalAttached() {
|
|
2853
|
+
return this.portal?.overlayRef?.hasAttached();
|
|
2854
|
+
}
|
|
2855
|
+
closePortal() {
|
|
2856
|
+
if (this.portalAttached()) {
|
|
2857
|
+
this.portal?.overlayRef?.detach();
|
|
2858
|
+
this.active = false;
|
|
2859
|
+
this.closeReduction();
|
|
2860
|
+
this.cdr.detectChanges();
|
|
2861
|
+
return true;
|
|
2862
|
+
}
|
|
2863
|
+
return false;
|
|
2864
|
+
}
|
|
2865
|
+
closeReduction() {
|
|
2866
|
+
if (!this.numberValue || this.numberValue.length === 0 || this.numberValue.includes(null)) {
|
|
2867
|
+
if (!this.value || this.value.length === 0) {
|
|
2868
|
+
this.startDisplay = '';
|
|
2869
|
+
this.endDisplay = '';
|
|
2870
|
+
this.numberValue = [];
|
|
2871
|
+
}
|
|
2872
|
+
else {
|
|
2873
|
+
this.numberValue = this.getNumberValue();
|
|
2874
|
+
this.setDisplayValue(this.numberValue);
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
if (!this.numberValue.includes(null) && this.value && !this.value.includes(null)) {
|
|
2878
|
+
let numberValue = this.getNumberValue();
|
|
2879
|
+
if (this.numberValue[0] !== numberValue[0] || this.numberValue[1] !== numberValue[1]) {
|
|
2880
|
+
this.numberValue = numberValue;
|
|
2881
|
+
this.setDisplayValue(this.numberValue);
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
destroyPortal() {
|
|
2886
|
+
this.portal?.overlayRef?.dispose();
|
|
2887
|
+
}
|
|
2888
|
+
showPortal($event, type) {
|
|
2889
|
+
type && $event.stopPropagation();
|
|
2890
|
+
if (this.disabled || this.animating)
|
|
2891
|
+
return;
|
|
2892
|
+
this.activeType = type || 'start';
|
|
2893
|
+
this.activeTypeChange.next(this.activeType);
|
|
2894
|
+
if (this.active)
|
|
2895
|
+
return;
|
|
2896
|
+
this.active = true;
|
|
2897
|
+
const config = {
|
|
2898
|
+
backdropClass: '',
|
|
2899
|
+
positionStrategy: this.setPlacement(),
|
|
2900
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
2901
|
+
};
|
|
2902
|
+
this.setPosition(config);
|
|
2903
|
+
this.portal = this.portalService.attach({
|
|
2904
|
+
content: XDateRangePortalComponent,
|
|
2905
|
+
viewContainerRef: this.viewContainerRef,
|
|
2906
|
+
overlayConfig: config
|
|
2907
|
+
});
|
|
2908
|
+
this.portal.overlayRef
|
|
2909
|
+
?.outsidePointerEvents()
|
|
2910
|
+
.pipe(takeUntil(this._unSubject))
|
|
2911
|
+
.subscribe((event) => {
|
|
2912
|
+
const clickTarget = event.target;
|
|
2913
|
+
if (clickTarget !== this.inputStartCom.inputRef.nativeElement && clickTarget !== this.inputEndCom.inputRef.nativeElement) {
|
|
2914
|
+
this.closeSubject.next();
|
|
2915
|
+
}
|
|
2916
|
+
});
|
|
2917
|
+
this.setInstance();
|
|
2918
|
+
}
|
|
2919
|
+
setPosition(config) {
|
|
2920
|
+
let position = config.positionStrategy;
|
|
2921
|
+
position.positionChanges.pipe(takeUntil(this._unSubject)).subscribe((pos) => {
|
|
2922
|
+
const place = XPortalConnectedPosition.get(pos.connectionPair);
|
|
2923
|
+
place !== this.placement && this.positionChange.next(place);
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
setInstance() {
|
|
2927
|
+
let componentRef = this.portal?.componentRef;
|
|
2928
|
+
if (!componentRef)
|
|
2929
|
+
return;
|
|
2930
|
+
Object.assign(componentRef.instance, {
|
|
2931
|
+
type: this.type,
|
|
2932
|
+
value: this.numberValue,
|
|
2933
|
+
placement: this.placement,
|
|
2934
|
+
valueChange: this.valueChange,
|
|
2935
|
+
positionChange: this.positionChange,
|
|
2936
|
+
activeType: this.activeType,
|
|
2937
|
+
extraFooter: this.extraFooter,
|
|
2938
|
+
preset: this.preset,
|
|
2939
|
+
activeTypeChange: this.activeTypeChange,
|
|
2940
|
+
disabledDate: this.disabledDate,
|
|
2941
|
+
disabledTime: this.disabledTime,
|
|
2942
|
+
closePortal: () => this.closeSubject.next(),
|
|
2943
|
+
destroyPortal: () => this.destroyPortal(),
|
|
2944
|
+
nodeEmit: (dates, close = true) => this.onNodeClick(dates, close),
|
|
2945
|
+
startNodeEmit: (node, close = false, isDatePicker = true) => this.startNodeClick(node, close, isDatePicker),
|
|
2946
|
+
endNodeEmit: (node, close = false, isDatePicker = true) => this.endNodeClick(node, close, isDatePicker),
|
|
2947
|
+
animating: (ing) => (this.animating = ing)
|
|
2948
|
+
});
|
|
2949
|
+
componentRef.changeDetectorRef.detectChanges();
|
|
2950
|
+
}
|
|
2951
|
+
startNodeClick(node, close = false, isDatePicker = true) {
|
|
2952
|
+
this.startDisplay = !node
|
|
2953
|
+
? ''
|
|
2954
|
+
: this.type === 'week'
|
|
2955
|
+
? XDateYearWeek(node)
|
|
2956
|
+
: this.type === 'quarter'
|
|
2957
|
+
? XDateYearQuarter(node)
|
|
2958
|
+
: this.datePipe.transform(node, this.format);
|
|
2959
|
+
if (!close && isDatePicker) {
|
|
2960
|
+
this.inputEndCom.inputFocus('after');
|
|
2961
|
+
this.activeTypeChange.next('end');
|
|
2962
|
+
}
|
|
2963
|
+
this.cdr.detectChanges();
|
|
2964
|
+
}
|
|
2965
|
+
endNodeClick(node, close = false, isDatePicker = true) {
|
|
2966
|
+
this.endDisplay = !node
|
|
2967
|
+
? ''
|
|
2968
|
+
: this.type === 'week'
|
|
2969
|
+
? XDateYearWeek(node)
|
|
2970
|
+
: this.type === 'quarter'
|
|
2971
|
+
? XDateYearQuarter(node)
|
|
2972
|
+
: this.datePipe.transform(node, this.format);
|
|
2973
|
+
if (!close && isDatePicker) {
|
|
2974
|
+
this.inputStartCom.inputFocus('after');
|
|
2975
|
+
this.activeTypeChange.next('start');
|
|
2976
|
+
}
|
|
2977
|
+
this.cdr.detectChanges();
|
|
2978
|
+
}
|
|
2979
|
+
onNodeClick(dates, close = true) {
|
|
2980
|
+
this.isInput = false;
|
|
2981
|
+
this.numberValue = dates.map((x) => x.getTime());
|
|
2982
|
+
this.value = this.getValue();
|
|
2983
|
+
this.setDisplayValue(this.numberValue);
|
|
2984
|
+
this.formControlValidator();
|
|
2985
|
+
if (close) {
|
|
2986
|
+
this.closeSubject.next();
|
|
2987
|
+
}
|
|
2988
|
+
this.modelChange();
|
|
2989
|
+
}
|
|
2990
|
+
onInput() {
|
|
2991
|
+
this.isInput = true;
|
|
2992
|
+
}
|
|
2993
|
+
onFocus(type) {
|
|
2994
|
+
this.activeType = type;
|
|
2995
|
+
this.activeChange.next(this.activeType);
|
|
2996
|
+
}
|
|
2997
|
+
setDisplayValue(dateNumber) {
|
|
2998
|
+
if (!dateNumber)
|
|
2999
|
+
return;
|
|
3000
|
+
if (!XIsNull(dateNumber[0])) {
|
|
3001
|
+
if (this.type === 'week') {
|
|
3002
|
+
this.startDisplay = XDateYearWeek(dateNumber[0]);
|
|
3003
|
+
}
|
|
3004
|
+
else if (this.type === 'quarter') {
|
|
3005
|
+
this.startDisplay = XDateYearQuarter(dateNumber[0]);
|
|
3006
|
+
}
|
|
3007
|
+
else {
|
|
3008
|
+
this.startDisplay = this.datePipe.transform(dateNumber[0], this.format);
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
if (!XIsNull(dateNumber[1])) {
|
|
3012
|
+
if (this.type === 'week') {
|
|
3013
|
+
this.endDisplay = XDateYearWeek(dateNumber[1]);
|
|
3014
|
+
}
|
|
3015
|
+
else if (this.type === 'quarter') {
|
|
3016
|
+
this.endDisplay = XDateYearQuarter(dateNumber[1]);
|
|
3017
|
+
}
|
|
3018
|
+
else {
|
|
3019
|
+
this.endDisplay = this.datePipe.transform(dateNumber[1], this.format);
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
setPlacement() {
|
|
3024
|
+
return this.portalService.setPlacement({
|
|
3025
|
+
elementRef: this.inputGroup.elementRef,
|
|
3026
|
+
placement: [this.placement, 'bottom-start', 'bottom-end', 'top-start', 'top-end'],
|
|
3027
|
+
transformOriginOn: 'x-date-range-portal'
|
|
3028
|
+
});
|
|
3029
|
+
}
|
|
3030
|
+
setPortal() {
|
|
3031
|
+
this.portalAttached() && this.portal?.overlayRef?.updatePositionStrategy(this.setPlacement());
|
|
3032
|
+
}
|
|
3033
|
+
setClassMap() {
|
|
3034
|
+
XClearClass(this.classMap, this.labelMap);
|
|
3035
|
+
this.classMap[`${XDateRangePrefix}-${this.size}`] = this.size ? true : false;
|
|
3036
|
+
this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;
|
|
3037
|
+
}
|
|
3038
|
+
formControlChanges() {
|
|
3039
|
+
this.ngOnInit();
|
|
3040
|
+
this.cdr.detectChanges();
|
|
3041
|
+
}
|
|
3042
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateRangeComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2.XConfigService }, { token: i0.ChangeDetectorRef }, { token: i2$1.XPortalService }, { token: i0.ViewContainerRef }, { token: i1.DatePipe }, { token: i5$1.Overlay }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3043
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: XDateRangeComponent, selector: "x-date-range", providers: [XValueAccessor(XDateRangeComponent), DatePipe], viewQueries: [{ propertyName: "dateRange", first: true, predicate: ["dateRange"], descendants: true, static: true }, { propertyName: "inputGroup", first: true, predicate: ["inputGroup"], descendants: true, static: true }, { propertyName: "inputStartCom", first: true, predicate: ["inputStartCom"], descendants: true, static: true }, { propertyName: "inputEndCom", first: true, predicate: ["inputEndCom"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #dateRange\r\n class=\"x-date-range\"\r\n [ngClass]=\"classMap\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n [class.x-date-range-bordered]=\"bordered\"\r\n [class.x-date-range-active]=\"active\"\r\n [class.x-date-range-active-start]=\"activeType === 'start'\"\r\n [class.x-date-range-active-end]=\"activeType === 'end'\"\r\n>\r\n <label *ngIf=\"label\" [class.x-date-range-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-date-range-row\">\r\n <x-input-group #inputGroup class=\"x-date-range-group\" (mouseenter)=\"menter()\" (mouseleave)=\"mleave()\" (click)=\"showPortal($event)\">\r\n <x-input\r\n #inputStartCom\r\n class=\"x-data-range-input x-data-range-input-start\"\r\n type=\"text\"\r\n bordered=\"false\"\r\n [size]=\"size\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"getStartPlaceholder\"\r\n (xFocus)=\"onFocus('start')\"\r\n (xClick)=\"showPortal($event, 'start')\"\r\n [(ngModel)]=\"startDisplay\"\r\n icon=\"fto-arrow-right\"\r\n ></x-input>\r\n <x-input\r\n #inputEndCom\r\n class=\"x-data-range-input x-data-range-input-end\"\r\n type=\"text\"\r\n bordered=\"false\"\r\n [size]=\"size\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"getEndPlaceholder\"\r\n (xFocus)=\"onFocus('end')\"\r\n (xClick)=\"showPortal($event, 'end')\"\r\n [(ngModel)]=\"endDisplay\"\r\n [icon]=\"icon\"\r\n (clearEmit)=\"clearEmit()\"\r\n [clearable]=\"showClearable\"\r\n ></x-input>\r\n <div *ngIf=\"active\" class=\"x-date-range-active-bar\"></div>\r\n </x-input-group>\r\n <span class=\"x-date-range-error-message\" *ngIf=\"invalid\">{{ invalidMessage }}</span>\r\n <ng-container *ngIf=\"requiredIsEmpty || invalid\">\r\n <div class=\"x-border-error x-top-left\"></div>\r\n <div class=\"x-border-error x-top-right\"></div>\r\n <div class=\"x-border-error x-bottom-left\"></div>\r\n <div class=\"x-border-error x-bottom-right\"></div>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-range{display:inline-block;width:15.6rem}x-date-range.x-date-range-date-time{width:23rem}x-date-range.x-date-range-date-minute{width:21rem}x-date-range.x-date-range-date-hour{width:19rem}.x-date-range{margin:0;padding:0;width:100%}.x-date-range.x-flex{display:flex}.x-date-range.x-justify-start{justify-content:flex-start}.x-date-range.x-justify-center{justify-content:center}.x-date-range.x-justify-end{justify-content:flex-end}.x-date-range.x-justify-space-between{justify-content:space-between}.x-date-range.x-justify-space-around{justify-content:space-around}.x-date-range.x-align-start{align-items:flex-start}.x-date-range.x-align-center{align-items:center}.x-date-range.x-align-end{align-items:flex-end}.x-date-range.x-direction-column{flex-direction:column}.x-date-range.x-direction-column-reverse{flex-direction:column-reverse}.x-date-range.x-direction-row{flex-direction:row}.x-date-range.x-direction-row-reverse{flex-direction:row-reverse}.x-date-range>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-date-range>label.x-text-align-start{text-align:start}.x-date-range>label.x-text-align-center{text-align:center}.x-date-range>label.x-text-align-end{text-align:end}.x-date-range.x-direction-row>label{padding:0 .5rem 0 0}.x-date-range.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-date-range.x-direction-column,.x-date-range.x-direction-column-reverse{align-items:inherit}.x-date-range-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-date-range-error-message{position:absolute;bottom:0;left:0;font-size:var(--x-font-size)-.125rem;color:var(--x-danger);margin-bottom:calc((var(--x-font-size) + .45rem) * -1);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-date-range.x-invalid>label,.x-date-range.x-required>label{color:var(--x-danger)}.x-date-range.x-invalid .x-date-range-input x-icon,.x-date-range.x-required .x-date-range-input x-icon{color:var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error,.x-date-range.x-required .x-date-range-row .x-border-error{position:absolute;height:.5rem;width:.5rem;z-index:10}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-top-left,.x-date-range.x-required .x-date-range-row .x-border-error.x-top-left{border-top-left-radius:var(--x-border-radius);top:0;left:0;border-top:var(--x-border-width) solid var(--x-danger);border-left:var(--x-border-width) solid var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-top-right,.x-date-range.x-required .x-date-range-row .x-border-error.x-top-right{border-top-right-radius:var(--x-border-radius);top:0;right:0;border-top:var(--x-border-width) solid var(--x-danger);border-right:var(--x-border-width) solid var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-bottom-left,.x-date-range.x-required .x-date-range-row .x-border-error.x-bottom-left{border-bottom-left-radius:var(--x-border-radius);bottom:0;left:0;border-bottom:var(--x-border-width) solid var(--x-danger);border-left:var(--x-border-width) solid var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-bottom-right,.x-date-range.x-required .x-date-range-row .x-border-error.x-bottom-right{border-bottom-right-radius:var(--x-border-radius);bottom:0;right:0;border-bottom:var(--x-border-width) solid var(--x-danger);border-right:var(--x-border-width) solid var(--x-danger)}.x-date-range-row{flex:1;display:flex;align-items:center;position:relative}.x-date-range-group{width:100%;font-size:var(--x-font-size);background-image:none;box-shadow:var(--x-box-shadow) transparent;transition:all var(--x-animation-duration-slow)}.x-date-range-group .x-input-group{display:flex;align-items:center;position:relative}.x-date-range-group .x-input-group>x-input{flex:1;width:50%}.x-date-range-group .x-input-group>x-input input{padding-left:.4rem!important;padding-right:.4rem!important}.x-date-range-bordered .x-date-range-group{border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius)}.x-date-range-bordered .x-date-range-group .x-input-group>x-input input{background-color:transparent;border-radius:0}.x-date-range-bordered:not(.x-disabled) .x-date-range-group:hover{border-color:var(--x-primary-300)}.x-date-range-active-bar{position:absolute;height:.125rem;margin-left:.4rem;bottom:-.0625rem;width:calc(50% - 2.2rem);background-color:var(--x-primary);transition:var(--x-animation-duration-base)}.x-date-range-active .x-date-range-group{border-color:var(--x-primary)}.x-date-range-active-start .x-date-range-active-bar{left:0}.x-date-range-active-end .x-date-range-active-bar{left:50%}.x-date-range-big>.x-date-range-row .x-date-range-input input{height:var(--x-height-big);line-height:var(--x-height-big)}.x-date-range-big>.x-date-range-row{height:var(--x-height-big);line-height:var(--x-height-big)}.x-date-range-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-date-range-large>.x-date-range-row .x-date-range-input input{height:var(--x-height-large);line-height:var(--x-height-large)}.x-date-range-large>.x-date-range-row{height:var(--x-height-large);line-height:var(--x-height-large)}.x-date-range-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-date-range-medium>.x-date-range-row .x-date-range-input input{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-date-range-medium>.x-date-range-row{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-date-range-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-date-range-small>.x-date-range-row .x-date-range-input input{height:var(--x-height-small);line-height:var(--x-height-small)}.x-date-range-small>.x-date-range-row{height:var(--x-height-small);line-height:var(--x-height-small)}.x-date-range-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-date-range-mini>.x-date-range-row .x-date-range-input input{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-date-range-mini>.x-date-range-row{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-date-range-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7.XInputComponent, selector: "x-input" }, { kind: "component", type: i7.XInputGroupComponent, selector: "x-input-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3044
|
+
}
|
|
3045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDateRangeComponent, decorators: [{
|
|
3046
|
+
type: Component,
|
|
3047
|
+
args: [{ selector: `${XDateRangePrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XDateRangeComponent), DatePipe], template: "<div\r\n #dateRange\r\n class=\"x-date-range\"\r\n [ngClass]=\"classMap\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n [class.x-date-range-bordered]=\"bordered\"\r\n [class.x-date-range-active]=\"active\"\r\n [class.x-date-range-active-start]=\"activeType === 'start'\"\r\n [class.x-date-range-active-end]=\"activeType === 'end'\"\r\n>\r\n <label *ngIf=\"label\" [class.x-date-range-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-date-range-row\">\r\n <x-input-group #inputGroup class=\"x-date-range-group\" (mouseenter)=\"menter()\" (mouseleave)=\"mleave()\" (click)=\"showPortal($event)\">\r\n <x-input\r\n #inputStartCom\r\n class=\"x-data-range-input x-data-range-input-start\"\r\n type=\"text\"\r\n bordered=\"false\"\r\n [size]=\"size\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"getStartPlaceholder\"\r\n (xFocus)=\"onFocus('start')\"\r\n (xClick)=\"showPortal($event, 'start')\"\r\n [(ngModel)]=\"startDisplay\"\r\n icon=\"fto-arrow-right\"\r\n ></x-input>\r\n <x-input\r\n #inputEndCom\r\n class=\"x-data-range-input x-data-range-input-end\"\r\n type=\"text\"\r\n bordered=\"false\"\r\n [size]=\"size\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"getEndPlaceholder\"\r\n (xFocus)=\"onFocus('end')\"\r\n (xClick)=\"showPortal($event, 'end')\"\r\n [(ngModel)]=\"endDisplay\"\r\n [icon]=\"icon\"\r\n (clearEmit)=\"clearEmit()\"\r\n [clearable]=\"showClearable\"\r\n ></x-input>\r\n <div *ngIf=\"active\" class=\"x-date-range-active-bar\"></div>\r\n </x-input-group>\r\n <span class=\"x-date-range-error-message\" *ngIf=\"invalid\">{{ invalidMessage }}</span>\r\n <ng-container *ngIf=\"requiredIsEmpty || invalid\">\r\n <div class=\"x-border-error x-top-left\"></div>\r\n <div class=\"x-border-error x-top-right\"></div>\r\n <div class=\"x-border-error x-bottom-left\"></div>\r\n <div class=\"x-border-error x-bottom-right\"></div>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-range{display:inline-block;width:15.6rem}x-date-range.x-date-range-date-time{width:23rem}x-date-range.x-date-range-date-minute{width:21rem}x-date-range.x-date-range-date-hour{width:19rem}.x-date-range{margin:0;padding:0;width:100%}.x-date-range.x-flex{display:flex}.x-date-range.x-justify-start{justify-content:flex-start}.x-date-range.x-justify-center{justify-content:center}.x-date-range.x-justify-end{justify-content:flex-end}.x-date-range.x-justify-space-between{justify-content:space-between}.x-date-range.x-justify-space-around{justify-content:space-around}.x-date-range.x-align-start{align-items:flex-start}.x-date-range.x-align-center{align-items:center}.x-date-range.x-align-end{align-items:flex-end}.x-date-range.x-direction-column{flex-direction:column}.x-date-range.x-direction-column-reverse{flex-direction:column-reverse}.x-date-range.x-direction-row{flex-direction:row}.x-date-range.x-direction-row-reverse{flex-direction:row-reverse}.x-date-range>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-date-range>label.x-text-align-start{text-align:start}.x-date-range>label.x-text-align-center{text-align:center}.x-date-range>label.x-text-align-end{text-align:end}.x-date-range.x-direction-row>label{padding:0 .5rem 0 0}.x-date-range.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-date-range.x-direction-column,.x-date-range.x-direction-column-reverse{align-items:inherit}.x-date-range-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-date-range-error-message{position:absolute;bottom:0;left:0;font-size:var(--x-font-size)-.125rem;color:var(--x-danger);margin-bottom:calc((var(--x-font-size) + .45rem) * -1);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-date-range.x-invalid>label,.x-date-range.x-required>label{color:var(--x-danger)}.x-date-range.x-invalid .x-date-range-input x-icon,.x-date-range.x-required .x-date-range-input x-icon{color:var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error,.x-date-range.x-required .x-date-range-row .x-border-error{position:absolute;height:.5rem;width:.5rem;z-index:10}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-top-left,.x-date-range.x-required .x-date-range-row .x-border-error.x-top-left{border-top-left-radius:var(--x-border-radius);top:0;left:0;border-top:var(--x-border-width) solid var(--x-danger);border-left:var(--x-border-width) solid var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-top-right,.x-date-range.x-required .x-date-range-row .x-border-error.x-top-right{border-top-right-radius:var(--x-border-radius);top:0;right:0;border-top:var(--x-border-width) solid var(--x-danger);border-right:var(--x-border-width) solid var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-bottom-left,.x-date-range.x-required .x-date-range-row .x-border-error.x-bottom-left{border-bottom-left-radius:var(--x-border-radius);bottom:0;left:0;border-bottom:var(--x-border-width) solid var(--x-danger);border-left:var(--x-border-width) solid var(--x-danger)}.x-date-range.x-invalid .x-date-range-row .x-border-error.x-bottom-right,.x-date-range.x-required .x-date-range-row .x-border-error.x-bottom-right{border-bottom-right-radius:var(--x-border-radius);bottom:0;right:0;border-bottom:var(--x-border-width) solid var(--x-danger);border-right:var(--x-border-width) solid var(--x-danger)}.x-date-range-row{flex:1;display:flex;align-items:center;position:relative}.x-date-range-group{width:100%;font-size:var(--x-font-size);background-image:none;box-shadow:var(--x-box-shadow) transparent;transition:all var(--x-animation-duration-slow)}.x-date-range-group .x-input-group{display:flex;align-items:center;position:relative}.x-date-range-group .x-input-group>x-input{flex:1;width:50%}.x-date-range-group .x-input-group>x-input input{padding-left:.4rem!important;padding-right:.4rem!important}.x-date-range-bordered .x-date-range-group{border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius)}.x-date-range-bordered .x-date-range-group .x-input-group>x-input input{background-color:transparent;border-radius:0}.x-date-range-bordered:not(.x-disabled) .x-date-range-group:hover{border-color:var(--x-primary-300)}.x-date-range-active-bar{position:absolute;height:.125rem;margin-left:.4rem;bottom:-.0625rem;width:calc(50% - 2.2rem);background-color:var(--x-primary);transition:var(--x-animation-duration-base)}.x-date-range-active .x-date-range-group{border-color:var(--x-primary)}.x-date-range-active-start .x-date-range-active-bar{left:0}.x-date-range-active-end .x-date-range-active-bar{left:50%}.x-date-range-big>.x-date-range-row .x-date-range-input input{height:var(--x-height-big);line-height:var(--x-height-big)}.x-date-range-big>.x-date-range-row{height:var(--x-height-big);line-height:var(--x-height-big)}.x-date-range-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-date-range-large>.x-date-range-row .x-date-range-input input{height:var(--x-height-large);line-height:var(--x-height-large)}.x-date-range-large>.x-date-range-row{height:var(--x-height-large);line-height:var(--x-height-large)}.x-date-range-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-date-range-medium>.x-date-range-row .x-date-range-input input{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-date-range-medium>.x-date-range-row{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-date-range-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-date-range-small>.x-date-range-row .x-date-range-input input{height:var(--x-height-small);line-height:var(--x-height-small)}.x-date-range-small>.x-date-range-row{height:var(--x-height-small);line-height:var(--x-height-small)}.x-date-range-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-date-range-mini>.x-date-range-row .x-date-range-input input{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-date-range-mini>.x-date-range-row{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-date-range-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}\n"] }]
|
|
3048
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i2.XConfigService }, { type: i0.ChangeDetectorRef }, { type: i2$1.XPortalService }, { type: i0.ViewContainerRef }, { type: i1.DatePipe }, { type: i5$1.Overlay }, { type: i3.XI18nService }]; }, propDecorators: { dateRange: [{
|
|
3049
|
+
type: ViewChild,
|
|
3050
|
+
args: ['dateRange', { static: true }]
|
|
3051
|
+
}], inputGroup: [{
|
|
3052
|
+
type: ViewChild,
|
|
3053
|
+
args: ['inputGroup', { static: true }]
|
|
3054
|
+
}], inputStartCom: [{
|
|
3055
|
+
type: ViewChild,
|
|
3056
|
+
args: ['inputStartCom', { static: true }]
|
|
3057
|
+
}], inputEndCom: [{
|
|
3058
|
+
type: ViewChild,
|
|
3059
|
+
args: ['inputEndCom', { static: true }]
|
|
3060
|
+
}] } });
|
|
3061
|
+
|
|
3062
|
+
class XDatePickerModule {
|
|
3063
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3064
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerModule, declarations: [XDatePickerComponent,
|
|
3065
|
+
XDatePickerPortalComponent,
|
|
3066
|
+
XPickerDateComponent,
|
|
3067
|
+
XPickerMonthComponent,
|
|
3068
|
+
XPickerQuarterComponent,
|
|
3069
|
+
XPickerYearComponent,
|
|
3070
|
+
XDatePickerProperty,
|
|
3071
|
+
XPickerDateProperty,
|
|
3072
|
+
XPickerMonthProperty,
|
|
3073
|
+
XPickerQuarterProperty,
|
|
3074
|
+
XPickerYearProperty,
|
|
3075
|
+
XDateRangeComponent,
|
|
3076
|
+
XDateRangePortalComponent,
|
|
3077
|
+
XDateRangeProperty,
|
|
3078
|
+
XDateQuarterPipe], imports: [CommonModule,
|
|
3079
|
+
FormsModule,
|
|
3080
|
+
ReactiveFormsModule,
|
|
3081
|
+
XPortalModule,
|
|
3082
|
+
XTimePickerModule,
|
|
3083
|
+
XInputModule,
|
|
3084
|
+
XLinkModule,
|
|
3085
|
+
XButtonModule,
|
|
3086
|
+
XIconModule,
|
|
3087
|
+
XI18nModule,
|
|
3088
|
+
XBaseFormModule,
|
|
3089
|
+
XOutletModule], exports: [XDatePickerComponent,
|
|
3090
|
+
XDateRangeComponent,
|
|
3091
|
+
XDatePickerPortalComponent,
|
|
3092
|
+
XPickerDateComponent,
|
|
3093
|
+
XPickerMonthComponent,
|
|
3094
|
+
XPickerQuarterComponent,
|
|
3095
|
+
XPickerYearComponent,
|
|
3096
|
+
XDateQuarterPipe] }); }
|
|
3097
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerModule, imports: [CommonModule,
|
|
3098
|
+
FormsModule,
|
|
3099
|
+
ReactiveFormsModule,
|
|
3100
|
+
XPortalModule,
|
|
3101
|
+
XTimePickerModule,
|
|
3102
|
+
XInputModule,
|
|
3103
|
+
XLinkModule,
|
|
3104
|
+
XButtonModule,
|
|
3105
|
+
XIconModule,
|
|
3106
|
+
XI18nModule,
|
|
3107
|
+
XBaseFormModule,
|
|
3108
|
+
XOutletModule] }); }
|
|
3109
|
+
}
|
|
3110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: XDatePickerModule, decorators: [{
|
|
3111
|
+
type: NgModule,
|
|
3112
|
+
args: [{
|
|
3113
|
+
declarations: [
|
|
3114
|
+
XDatePickerComponent,
|
|
3115
|
+
XDatePickerPortalComponent,
|
|
3116
|
+
XPickerDateComponent,
|
|
3117
|
+
XPickerMonthComponent,
|
|
3118
|
+
XPickerQuarterComponent,
|
|
3119
|
+
XPickerYearComponent,
|
|
3120
|
+
XDatePickerProperty,
|
|
3121
|
+
XPickerDateProperty,
|
|
3122
|
+
XPickerMonthProperty,
|
|
3123
|
+
XPickerQuarterProperty,
|
|
3124
|
+
XPickerYearProperty,
|
|
3125
|
+
XDateRangeComponent,
|
|
3126
|
+
XDateRangePortalComponent,
|
|
3127
|
+
XDateRangeProperty,
|
|
3128
|
+
XDateQuarterPipe
|
|
3129
|
+
],
|
|
3130
|
+
exports: [
|
|
3131
|
+
XDatePickerComponent,
|
|
3132
|
+
XDateRangeComponent,
|
|
3133
|
+
XDatePickerPortalComponent,
|
|
3134
|
+
XPickerDateComponent,
|
|
3135
|
+
XPickerMonthComponent,
|
|
3136
|
+
XPickerQuarterComponent,
|
|
3137
|
+
XPickerYearComponent,
|
|
3138
|
+
XDateQuarterPipe
|
|
3139
|
+
],
|
|
3140
|
+
imports: [
|
|
3141
|
+
CommonModule,
|
|
3142
|
+
FormsModule,
|
|
3143
|
+
ReactiveFormsModule,
|
|
3144
|
+
XPortalModule,
|
|
3145
|
+
XTimePickerModule,
|
|
3146
|
+
XInputModule,
|
|
3147
|
+
XLinkModule,
|
|
3148
|
+
XButtonModule,
|
|
3149
|
+
XIconModule,
|
|
3150
|
+
XI18nModule,
|
|
3151
|
+
XBaseFormModule,
|
|
3152
|
+
XOutletModule
|
|
3153
|
+
]
|
|
3154
|
+
}]
|
|
3155
|
+
}] });
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* Generated bundle index. Do not edit.
|
|
3159
|
+
*/
|
|
3160
|
+
|
|
3161
|
+
export { XDatePickerComponent, XDatePickerModule, XDatePickerPortalComponent, XDatePickerPortalPrefix, XDatePickerPrefix, XDatePickerProperty, XDateQuarterPipe, XDateQuarterPrefix, XDateRangeComponent, XDateRangePortalComponent, XDateRangePortalPrefix, XDateRangePrefix, XDateRangeProperty, XPickerDateComponent, XPickerDatePrefix, XPickerDateProperty, XPickerMonthComponent, XPickerMonthPrefix, XPickerMonthProperty, XPickerQuarterComponent, XPickerQuarterPrefix, XPickerQuarterProperty, XPickerYearComponent, XPickerYearPrefix, XPickerYearProperty };
|
|
3162
|
+
//# sourceMappingURL=ng-nest-ui-date-picker.mjs.map
|