@ng-nest/ui 12.0.7 → 12.1.0
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/auto-complete/auto-complete-portal.component.d.ts +3 -3
- package/auto-complete/auto-complete.component.d.ts +5 -1
- package/auto-complete/auto-complete.property.d.ts +6 -1
- package/back-top/back-top.component.d.ts +1 -2
- package/base-form/base-form.component.d.ts +1 -1
- package/base-form/base-form.property.d.ts +22 -2
- package/bundles/ng-nest-ui-affix.umd.js +25 -21
- package/bundles/ng-nest-ui-affix.umd.js.map +1 -1
- package/bundles/ng-nest-ui-alert.umd.js +25 -21
- package/bundles/ng-nest-ui-alert.umd.js.map +1 -1
- package/bundles/ng-nest-ui-anchor.umd.js +26 -22
- package/bundles/ng-nest-ui-anchor.umd.js.map +1 -1
- package/bundles/ng-nest-ui-api.umd.js +12 -14
- package/bundles/ng-nest-ui-api.umd.js.map +1 -1
- package/bundles/ng-nest-ui-auto-complete.umd.js +52 -29
- package/bundles/ng-nest-ui-auto-complete.umd.js.map +1 -1
- package/bundles/ng-nest-ui-avatar.umd.js +25 -21
- package/bundles/ng-nest-ui-avatar.umd.js.map +1 -1
- package/bundles/ng-nest-ui-back-top.umd.js +27 -23
- package/bundles/ng-nest-ui-back-top.umd.js.map +1 -1
- package/bundles/ng-nest-ui-badge.umd.js +27 -22
- package/bundles/ng-nest-ui-badge.umd.js.map +1 -1
- package/bundles/ng-nest-ui-base-form.umd.js +50 -22
- package/bundles/ng-nest-ui-base-form.umd.js.map +1 -1
- package/bundles/ng-nest-ui-border.umd.js +12 -14
- package/bundles/ng-nest-ui-border.umd.js.map +1 -1
- package/bundles/ng-nest-ui-button.umd.js +35 -30
- package/bundles/ng-nest-ui-button.umd.js.map +1 -1
- package/bundles/ng-nest-ui-calendar.umd.js +29 -24
- package/bundles/ng-nest-ui-calendar.umd.js.map +1 -1
- package/bundles/ng-nest-ui-card.umd.js +25 -21
- package/bundles/ng-nest-ui-card.umd.js.map +1 -1
- package/bundles/ng-nest-ui-carousel.umd.js +44 -39
- package/bundles/ng-nest-ui-carousel.umd.js.map +1 -1
- package/bundles/ng-nest-ui-cascade.umd.js +78 -31
- package/bundles/ng-nest-ui-cascade.umd.js.map +1 -1
- package/bundles/ng-nest-ui-checkbox.umd.js +28 -23
- package/bundles/ng-nest-ui-checkbox.umd.js.map +1 -1
- package/bundles/ng-nest-ui-collapse.umd.js +31 -27
- package/bundles/ng-nest-ui-collapse.umd.js.map +1 -1
- package/bundles/ng-nest-ui-color-picker.umd.js +39 -32
- package/bundles/ng-nest-ui-color-picker.umd.js.map +1 -1
- package/bundles/ng-nest-ui-color.umd.js +26 -22
- package/bundles/ng-nest-ui-color.umd.js.map +1 -1
- package/bundles/ng-nest-ui-comment.umd.js +34 -29
- package/bundles/ng-nest-ui-comment.umd.js.map +1 -1
- package/bundles/ng-nest-ui-container.umd.js +46 -42
- package/bundles/ng-nest-ui-container.umd.js.map +1 -1
- package/bundles/ng-nest-ui-core.umd.js +136 -35
- package/bundles/ng-nest-ui-core.umd.js.map +1 -1
- package/bundles/ng-nest-ui-crumb.umd.js +28 -23
- package/bundles/ng-nest-ui-crumb.umd.js.map +1 -1
- package/bundles/ng-nest-ui-date-picker.umd.js +387 -242
- package/bundles/ng-nest-ui-date-picker.umd.js.map +1 -1
- package/bundles/ng-nest-ui-description.umd.js +35 -32
- package/bundles/ng-nest-ui-description.umd.js.map +1 -1
- package/bundles/ng-nest-ui-dialog.umd.js +305 -48
- package/bundles/ng-nest-ui-dialog.umd.js.map +1 -1
- package/bundles/ng-nest-ui-doc.umd.js +12 -14
- package/bundles/ng-nest-ui-doc.umd.js.map +1 -1
- package/bundles/ng-nest-ui-drawer.umd.js +266 -30
- package/bundles/ng-nest-ui-drawer.umd.js.map +1 -1
- package/bundles/ng-nest-ui-dropdown.umd.js +32 -27
- package/bundles/ng-nest-ui-dropdown.umd.js.map +1 -1
- package/bundles/ng-nest-ui-empty.umd.js +25 -21
- package/bundles/ng-nest-ui-empty.umd.js.map +1 -1
- package/bundles/ng-nest-ui-examples.umd.js +12 -14
- package/bundles/ng-nest-ui-examples.umd.js.map +1 -1
- package/bundles/ng-nest-ui-find.umd.js +31 -26
- package/bundles/ng-nest-ui-find.umd.js.map +1 -1
- package/bundles/ng-nest-ui-form.umd.js +36 -36
- package/bundles/ng-nest-ui-form.umd.js.map +1 -1
- package/bundles/ng-nest-ui-highlight.umd.js +27 -22
- package/bundles/ng-nest-ui-highlight.umd.js.map +1 -1
- package/bundles/ng-nest-ui-i18n.umd.js +537 -138
- package/bundles/ng-nest-ui-i18n.umd.js.map +1 -1
- package/bundles/ng-nest-ui-icon.umd.js +34 -29
- package/bundles/ng-nest-ui-icon.umd.js.map +1 -1
- package/bundles/ng-nest-ui-inner.umd.js +26 -22
- package/bundles/ng-nest-ui-inner.umd.js.map +1 -1
- package/bundles/ng-nest-ui-input-number.umd.js +25 -21
- package/bundles/ng-nest-ui-input-number.umd.js.map +1 -1
- package/bundles/ng-nest-ui-input.umd.js +64 -32
- package/bundles/ng-nest-ui-input.umd.js.map +1 -1
- package/bundles/ng-nest-ui-layout.umd.js +31 -27
- package/bundles/ng-nest-ui-layout.umd.js.map +1 -1
- package/bundles/ng-nest-ui-link.umd.js +25 -21
- package/bundles/ng-nest-ui-link.umd.js.map +1 -1
- package/bundles/ng-nest-ui-list.umd.js +35 -30
- package/bundles/ng-nest-ui-list.umd.js.map +1 -1
- package/bundles/ng-nest-ui-loading.umd.js +27 -22
- package/bundles/ng-nest-ui-loading.umd.js.map +1 -1
- package/bundles/ng-nest-ui-menu.umd.js +37 -33
- package/bundles/ng-nest-ui-menu.umd.js.map +1 -1
- package/bundles/ng-nest-ui-message-box.umd.js +53 -47
- package/bundles/ng-nest-ui-message-box.umd.js.map +1 -1
- package/bundles/ng-nest-ui-message.umd.js +29 -25
- package/bundles/ng-nest-ui-message.umd.js.map +1 -1
- package/bundles/ng-nest-ui-notification.umd.js +26 -22
- package/bundles/ng-nest-ui-notification.umd.js.map +1 -1
- package/bundles/ng-nest-ui-outlet.umd.js +22 -18
- package/bundles/ng-nest-ui-outlet.umd.js.map +1 -1
- package/bundles/ng-nest-ui-page-header.umd.js +25 -21
- package/bundles/ng-nest-ui-page-header.umd.js.map +1 -1
- package/bundles/ng-nest-ui-pagination.umd.js +115 -26
- package/bundles/ng-nest-ui-pagination.umd.js.map +1 -1
- package/bundles/ng-nest-ui-pattern.umd.js +12 -14
- package/bundles/ng-nest-ui-pattern.umd.js.map +1 -1
- package/bundles/ng-nest-ui-popconfirm.umd.js +25 -21
- package/bundles/ng-nest-ui-popconfirm.umd.js.map +1 -1
- package/bundles/ng-nest-ui-popover.umd.js +31 -26
- package/bundles/ng-nest-ui-popover.umd.js.map +1 -1
- package/bundles/ng-nest-ui-portal.umd.js +28 -24
- package/bundles/ng-nest-ui-portal.umd.js.map +1 -1
- package/bundles/ng-nest-ui-progress.umd.js +259 -39
- package/bundles/ng-nest-ui-progress.umd.js.map +1 -1
- package/bundles/ng-nest-ui-radio.umd.js +28 -23
- package/bundles/ng-nest-ui-radio.umd.js.map +1 -1
- package/bundles/ng-nest-ui-rate.umd.js +30 -26
- package/bundles/ng-nest-ui-rate.umd.js.map +1 -1
- package/bundles/ng-nest-ui-result.umd.js +25 -21
- package/bundles/ng-nest-ui-result.umd.js.map +1 -1
- package/bundles/ng-nest-ui-ripple.umd.js +25 -21
- package/bundles/ng-nest-ui-ripple.umd.js.map +1 -1
- package/bundles/ng-nest-ui-select.umd.js +53 -34
- package/bundles/ng-nest-ui-select.umd.js.map +1 -1
- package/bundles/ng-nest-ui-skeleton.umd.js +27 -22
- package/bundles/ng-nest-ui-skeleton.umd.js.map +1 -1
- package/bundles/ng-nest-ui-slider-select.umd.js +25 -21
- package/bundles/ng-nest-ui-slider-select.umd.js.map +1 -1
- package/bundles/ng-nest-ui-slider.umd.js +32 -29
- package/bundles/ng-nest-ui-slider.umd.js.map +1 -1
- package/bundles/ng-nest-ui-statistic.umd.js +37 -31
- package/bundles/ng-nest-ui-statistic.umd.js.map +1 -1
- package/bundles/ng-nest-ui-steps.umd.js +53 -33
- package/bundles/ng-nest-ui-steps.umd.js.map +1 -1
- package/bundles/ng-nest-ui-switch.umd.js +25 -21
- package/bundles/ng-nest-ui-switch.umd.js.map +1 -1
- package/bundles/ng-nest-ui-table.umd.js +58 -51
- package/bundles/ng-nest-ui-table.umd.js.map +1 -1
- package/bundles/ng-nest-ui-tabs.umd.js +39 -34
- package/bundles/ng-nest-ui-tabs.umd.js.map +1 -1
- package/bundles/ng-nest-ui-tag.umd.js +27 -22
- package/bundles/ng-nest-ui-tag.umd.js.map +1 -1
- package/bundles/ng-nest-ui-text-retract.umd.js +27 -22
- package/bundles/ng-nest-ui-text-retract.umd.js.map +1 -1
- package/bundles/ng-nest-ui-textarea.umd.js +27 -32
- package/bundles/ng-nest-ui-textarea.umd.js.map +1 -1
- package/bundles/ng-nest-ui-theme.umd.js +26 -22
- package/bundles/ng-nest-ui-theme.umd.js.map +1 -1
- package/bundles/ng-nest-ui-time-ago.umd.js +12 -14
- package/bundles/ng-nest-ui-time-ago.umd.js.map +1 -1
- package/bundles/ng-nest-ui-time-picker.umd.js +87 -46
- package/bundles/ng-nest-ui-time-picker.umd.js.map +1 -1
- package/bundles/ng-nest-ui-time-range.umd.js +22 -18
- package/bundles/ng-nest-ui-time-range.umd.js.map +1 -1
- package/bundles/ng-nest-ui-timeline.umd.js +28 -23
- package/bundles/ng-nest-ui-timeline.umd.js.map +1 -1
- package/bundles/ng-nest-ui-tooltip.umd.js +31 -26
- package/bundles/ng-nest-ui-tooltip.umd.js.map +1 -1
- package/bundles/ng-nest-ui-transfer.umd.js +28 -23
- package/bundles/ng-nest-ui-transfer.umd.js.map +1 -1
- package/bundles/ng-nest-ui-tree-file.umd.js +25 -21
- package/bundles/ng-nest-ui-tree-file.umd.js.map +1 -1
- package/bundles/ng-nest-ui-tree.umd.js +39 -34
- package/bundles/ng-nest-ui-tree.umd.js.map +1 -1
- package/bundles/ng-nest-ui-typography.umd.js +25 -21
- package/bundles/ng-nest-ui-typography.umd.js.map +1 -1
- package/bundles/ng-nest-ui-upload.umd.js +32 -27
- package/bundles/ng-nest-ui-upload.umd.js.map +1 -1
- package/bundles/ng-nest-ui.umd.js +83 -243
- package/bundles/ng-nest-ui.umd.js.map +1 -1
- package/button/buttons.component.d.ts +1 -1
- package/calendar/calendar.component.d.ts +2 -2
- package/carousel/carousel-panel.component.d.ts +2 -3
- package/carousel/carousel.component.d.ts +1 -1
- package/cascade/cascade-portal.component.d.ts +13 -7
- package/cascade/cascade.component.d.ts +7 -1
- package/cascade/cascade.property.d.ts +23 -3
- package/checkbox/checkbox.component.d.ts +1 -1
- package/color/color.component.d.ts +2 -2
- package/color-picker/color-picker-portal.component.d.ts +3 -3
- package/color-picker/color-picker.component.d.ts +2 -3
- package/comment/comment.component.d.ts +1 -1
- package/core/config/config.d.ts +18 -0
- package/core/functions/clone-deep.d.ts +1 -0
- package/core/functions/drop.d.ts +1 -0
- package/core/functions/flex.d.ts +1 -1
- package/core/functions/has-in.d.ts +1 -0
- package/core/functions/order-by.d.ts +1 -0
- package/core/functions/public-api.d.ts +5 -0
- package/core/functions/remove.d.ts +1 -0
- package/core/services/reuse-strategy.service.d.ts +1 -1
- package/crumb/crumb.component.d.ts +1 -1
- package/date-picker/date-picker-portal.component.d.ts +4 -11
- package/date-picker/date-picker.component.d.ts +3 -4
- package/date-picker/date-picker.property.d.ts +55 -20
- package/date-picker/date-range-portal.component.d.ts +10 -6
- package/date-picker/date-range.component.d.ts +15 -11
- package/date-picker/picker-date.component.d.ts +13 -4
- package/date-picker/picker-month.component.d.ts +6 -3
- package/date-picker/picker-year.component.d.ts +4 -2
- package/description/description.component.d.ts +2 -4
- package/dialog/dialog-container.component.d.ts +18 -0
- package/dialog/dialog-container.directives.d.ts +24 -0
- package/dialog/dialog-ref.d.ts +9 -0
- package/dialog/dialog.module.d.ts +13 -11
- package/dialog/dialog.property.d.ts +84 -6
- package/dialog/dialog.service.d.ts +19 -0
- package/dialog/public-api.d.ts +4 -0
- package/drawer/drawer-container.component.d.ts +18 -0
- package/drawer/drawer-container.directives.d.ts +19 -0
- package/drawer/drawer-ref.d.ts +9 -0
- package/drawer/drawer.module.d.ts +8 -6
- package/drawer/drawer.property.d.ts +83 -2
- package/drawer/drawer.service.d.ts +19 -0
- package/drawer/public-api.d.ts +5 -0
- package/dropdown/dropdown-portal.component.d.ts +1 -3
- package/dropdown/dropdown.component.d.ts +2 -2
- package/esm2015/affix/affix.component.js +3 -3
- package/esm2015/affix/affix.module.js +4 -4
- package/esm2015/affix/affix.property.js +3 -3
- package/esm2015/alert/alert.component.js +4 -4
- package/esm2015/alert/alert.module.js +4 -4
- package/esm2015/alert/alert.property.js +3 -3
- package/esm2015/anchor/anchor.component.js +5 -5
- package/esm2015/anchor/anchor.module.js +4 -4
- package/esm2015/anchor/anchor.property.js +4 -4
- package/esm2015/api/api.component.js +3 -3
- package/esm2015/api/api.module.js +4 -4
- package/esm2015/auto-complete/auto-complete-portal.component.js +6 -6
- package/esm2015/auto-complete/auto-complete.component.js +20 -7
- package/esm2015/auto-complete/auto-complete.module.js +4 -4
- package/esm2015/auto-complete/auto-complete.property.js +10 -4
- package/esm2015/avatar/avatar.component.js +3 -3
- package/esm2015/avatar/avatar.module.js +4 -4
- package/esm2015/avatar/avatar.property.js +3 -3
- package/esm2015/back-top/back-top.component.js +6 -6
- package/esm2015/back-top/back-top.module.js +4 -4
- package/esm2015/back-top/back-top.property.js +3 -3
- package/esm2015/badge/badge.component.js +6 -5
- package/esm2015/badge/badge.module.js +4 -4
- package/esm2015/badge/badge.property.js +3 -3
- package/esm2015/base-form/base-form.component.js +5 -5
- package/esm2015/base-form/base-form.module.js +4 -4
- package/esm2015/base-form/base-form.property.js +29 -5
- package/esm2015/border/border.component.js +3 -3
- package/esm2015/border/border.module.js +4 -4
- package/esm2015/button/button.component.js +8 -7
- package/esm2015/button/button.module.js +4 -4
- package/esm2015/button/button.property.js +6 -6
- package/esm2015/button/buttons.component.js +4 -4
- package/esm2015/calendar/calendar.component.js +8 -7
- package/esm2015/calendar/calendar.module.js +4 -4
- package/esm2015/calendar/calendar.property.js +3 -3
- package/esm2015/card/card.component.js +3 -3
- package/esm2015/card/card.module.js +4 -4
- package/esm2015/card/card.property.js +3 -3
- package/esm2015/carousel/carousel-panel.component.js +15 -14
- package/esm2015/carousel/carousel.component.js +7 -6
- package/esm2015/carousel/carousel.module.js +4 -4
- package/esm2015/carousel/carousel.property.js +6 -6
- package/esm2015/cascade/cascade-portal.component.js +23 -11
- package/esm2015/cascade/cascade.component.js +23 -6
- package/esm2015/cascade/cascade.module.js +4 -4
- package/esm2015/cascade/cascade.property.js +16 -4
- package/esm2015/checkbox/checkbox.component.js +7 -6
- package/esm2015/checkbox/checkbox.module.js +4 -4
- package/esm2015/checkbox/checkbox.property.js +4 -4
- package/esm2015/collapse/collapse-panel.component.js +4 -4
- package/esm2015/collapse/collapse.component.js +3 -3
- package/esm2015/collapse/collapse.module.js +4 -4
- package/esm2015/collapse/collapse.property.js +6 -6
- package/esm2015/color/color.component.js +5 -5
- package/esm2015/color/color.module.js +4 -4
- package/esm2015/color/color.property.js +3 -3
- package/esm2015/color-picker/color-picker-portal.component.js +5 -5
- package/esm2015/color-picker/color-picker.component.js +14 -11
- package/esm2015/color-picker/color-picker.module.js +4 -4
- package/esm2015/color-picker/color-picker.property.js +3 -3
- package/esm2015/comment/comment-reply.component.js +3 -3
- package/esm2015/comment/comment.component.js +7 -6
- package/esm2015/comment/comment.module.js +4 -4
- package/esm2015/comment/comment.property.js +6 -6
- package/esm2015/container/aside.component.js +3 -3
- package/esm2015/container/container.component.js +5 -5
- package/esm2015/container/container.module.js +4 -4
- package/esm2015/container/container.property.js +12 -12
- package/esm2015/container/footer.component.js +3 -3
- package/esm2015/container/header.component.js +3 -3
- package/esm2015/container/main.component.js +3 -3
- package/esm2015/core/animation/fade.js +1 -1
- package/esm2015/core/config/config.js +1 -1
- package/esm2015/core/config/config.service.js +3 -3
- package/esm2015/core/functions/clone-deep.js +12 -0
- package/esm2015/core/functions/drop.js +8 -0
- package/esm2015/core/functions/flex.js +18 -7
- package/esm2015/core/functions/has-in.js +4 -0
- package/esm2015/core/functions/order-by.js +31 -0
- package/esm2015/core/functions/public-api.js +6 -1
- package/esm2015/core/functions/remove.js +15 -0
- package/esm2015/core/services/http.service.js +5 -5
- package/esm2015/core/services/preloading-strategy.service.js +5 -5
- package/esm2015/core/services/reuse-strategy.service.js +2 -2
- package/esm2015/core/services/storage.service.js +3 -3
- package/esm2015/core/theme/theme.service.js +3 -3
- package/esm2015/crumb/crumb.component.js +7 -6
- package/esm2015/crumb/crumb.module.js +4 -4
- package/esm2015/crumb/crumb.property.js +3 -3
- package/esm2015/date-picker/date-picker-portal.component.js +11 -43
- package/esm2015/date-picker/date-picker.component.js +13 -14
- package/esm2015/date-picker/date-picker.module.js +4 -4
- package/esm2015/date-picker/date-picker.property.js +102 -34
- package/esm2015/date-picker/date-range-portal.component.js +41 -20
- package/esm2015/date-picker/date-range.component.js +66 -47
- package/esm2015/date-picker/picker-date.component.js +50 -15
- package/esm2015/date-picker/picker-month.component.js +25 -9
- package/esm2015/date-picker/picker-year.component.js +21 -9
- package/esm2015/description/description-item.component.js +4 -4
- package/esm2015/description/description.component.js +8 -9
- package/esm2015/description/description.module.js +4 -4
- package/esm2015/description/description.property.js +6 -6
- package/esm2015/dialog/dialog-container.component.js +59 -0
- package/esm2015/dialog/dialog-container.directives.js +73 -0
- package/esm2015/dialog/dialog-ref.js +17 -0
- package/esm2015/dialog/dialog.component.js +6 -5
- package/esm2015/dialog/dialog.module.js +39 -9
- package/esm2015/dialog/dialog.property.js +20 -19
- package/esm2015/dialog/dialog.service.js +67 -0
- package/esm2015/dialog/public-api.js +5 -1
- package/esm2015/doc/doc.component.js +3 -3
- package/esm2015/doc/doc.module.js +4 -4
- package/esm2015/drawer/drawer-container.component.js +59 -0
- package/esm2015/drawer/drawer-container.directives.js +57 -0
- package/esm2015/drawer/drawer-ref.js +17 -0
- package/esm2015/drawer/drawer.component.js +6 -5
- package/esm2015/drawer/drawer.module.js +24 -8
- package/esm2015/drawer/drawer.property.js +24 -8
- package/esm2015/drawer/drawer.service.js +65 -0
- package/esm2015/drawer/public-api.js +6 -1
- package/esm2015/dropdown/dropdown-portal.component.js +5 -5
- package/esm2015/dropdown/dropdown.component.js +7 -6
- package/esm2015/dropdown/dropdown.module.js +4 -4
- package/esm2015/dropdown/dropdown.property.js +3 -3
- package/esm2015/empty/empty.component.js +3 -3
- package/esm2015/empty/empty.module.js +4 -4
- package/esm2015/empty/empty.property.js +3 -3
- package/esm2015/examples/examples.component.js +3 -3
- package/esm2015/examples/examples.module.js +4 -4
- package/esm2015/find/find.component.js +10 -9
- package/esm2015/find/find.module.js +4 -4
- package/esm2015/find/find.property.js +3 -3
- package/esm2015/form/control.component.js +4 -4
- package/esm2015/form/form.component.js +9 -8
- package/esm2015/form/form.module.js +4 -4
- package/esm2015/form/form.property.js +8 -13
- package/esm2015/highlight/highlight.component.js +6 -5
- package/esm2015/highlight/highlight.module.js +4 -4
- package/esm2015/highlight/highlight.property.js +4 -4
- package/esm2015/i18n/i18n.directive.js +6 -5
- package/esm2015/i18n/i18n.module.js +4 -4
- package/esm2015/i18n/i18n.pipe.js +3 -3
- package/esm2015/i18n/i18n.service.js +3 -3
- package/esm2015/i18n/languages/ar_EG.js +11 -3
- package/esm2015/i18n/languages/bg_BG.js +11 -3
- package/esm2015/i18n/languages/ca_ES.js +11 -3
- package/esm2015/i18n/languages/cs_CZ.js +11 -3
- package/esm2015/i18n/languages/da_DK.js +11 -3
- package/esm2015/i18n/languages/de_DE.js +11 -3
- package/esm2015/i18n/languages/el_GR.js +11 -3
- package/esm2015/i18n/languages/en_GB.js +11 -3
- package/esm2015/i18n/languages/en_US.js +7 -2
- package/esm2015/i18n/languages/es_ES.js +11 -3
- package/esm2015/i18n/languages/et_EE.js +11 -3
- package/esm2015/i18n/languages/fa_IR.js +11 -3
- package/esm2015/i18n/languages/fi_FI.js +11 -3
- package/esm2015/i18n/languages/fr_BE.js +10 -2
- package/esm2015/i18n/languages/fr_FR.js +11 -3
- package/esm2015/i18n/languages/he_IL.js +11 -3
- package/esm2015/i18n/languages/hi_IN.js +11 -3
- package/esm2015/i18n/languages/hr_HR.js +11 -3
- package/esm2015/i18n/languages/hu_HU.js +11 -3
- package/esm2015/i18n/languages/hy_AM.js +11 -3
- package/esm2015/i18n/languages/id_ID.js +11 -3
- package/esm2015/i18n/languages/is_IS.js +11 -3
- package/esm2015/i18n/languages/it_IT.js +11 -3
- package/esm2015/i18n/languages/ja_JP.js +11 -3
- package/esm2015/i18n/languages/ka_GE.js +11 -3
- package/esm2015/i18n/languages/kn_IN.js +11 -3
- package/esm2015/i18n/languages/ko_KR.js +11 -3
- package/esm2015/i18n/languages/ku_IQ.js +11 -3
- package/esm2015/i18n/languages/lv_LV.js +11 -3
- package/esm2015/i18n/languages/mn_MN.js +11 -3
- package/esm2015/i18n/languages/ms_MY.js +11 -3
- package/esm2015/i18n/languages/nb_NO.js +11 -3
- package/esm2015/i18n/languages/ne_NP.js +11 -3
- package/esm2015/i18n/languages/nl_BE.js +11 -3
- package/esm2015/i18n/languages/nl_NL.js +11 -3
- package/esm2015/i18n/languages/pl_PL.js +11 -3
- package/esm2015/i18n/languages/pt_BR.js +11 -3
- package/esm2015/i18n/languages/pt_PT.js +11 -3
- package/esm2015/i18n/languages/ro_RO.js +11 -3
- package/esm2015/i18n/languages/ru_RU.js +11 -3
- package/esm2015/i18n/languages/sk_SK.js +11 -3
- package/esm2015/i18n/languages/sl_SI.js +11 -3
- package/esm2015/i18n/languages/sr_RS.js +11 -3
- package/esm2015/i18n/languages/sv_SE.js +11 -3
- package/esm2015/i18n/languages/ta_IN.js +11 -3
- package/esm2015/i18n/languages/th_TH.js +29 -21
- package/esm2015/i18n/languages/tr_TR.js +11 -3
- package/esm2015/i18n/languages/uk_UA.js +11 -3
- package/esm2015/i18n/languages/vi_VN.js +11 -3
- package/esm2015/i18n/languages/zh_CN.js +6 -2
- package/esm2015/i18n/languages/zh_TW.js +10 -3
- package/esm2015/icon/icon.component.js +7 -6
- package/esm2015/icon/icon.module.js +4 -4
- package/esm2015/icon/icon.property.js +3 -3
- package/esm2015/icon/icon.service.js +6 -6
- package/esm2015/inner/inner.component.js +5 -5
- package/esm2015/inner/inner.module.js +4 -4
- package/esm2015/inner/inner.property.js +3 -3
- package/esm2015/input/input-group.component.js +4 -6
- package/esm2015/input/input.component.js +21 -7
- package/esm2015/input/input.module.js +4 -4
- package/esm2015/input/input.property.js +12 -7
- package/esm2015/input-number/input-number.component.js +3 -3
- package/esm2015/input-number/input-number.module.js +4 -4
- package/esm2015/input-number/input-number.property.js +3 -3
- package/esm2015/layout/col.component.js +3 -3
- package/esm2015/layout/layout.module.js +4 -4
- package/esm2015/layout/layout.property.js +6 -6
- package/esm2015/layout/row.component.js +3 -3
- package/esm2015/link/link.component.js +3 -3
- package/esm2015/link/link.module.js +4 -4
- package/esm2015/link/link.property.js +3 -3
- package/esm2015/list/list-option.component.js +3 -3
- package/esm2015/list/list.component.js +8 -7
- package/esm2015/list/list.module.js +4 -4
- package/esm2015/list/list.property.js +7 -7
- package/esm2015/loading/loading.component.js +6 -5
- package/esm2015/loading/loading.module.js +4 -4
- package/esm2015/loading/loading.property.js +3 -3
- package/esm2015/menu/menu-node.component.js +4 -4
- package/esm2015/menu/menu.component.js +10 -10
- package/esm2015/menu/menu.module.js +4 -4
- package/esm2015/menu/menu.property.js +6 -6
- package/esm2015/message/message.component.js +5 -5
- package/esm2015/message/message.module.js +4 -4
- package/esm2015/message/message.property.js +2 -2
- package/esm2015/message/message.service.js +6 -6
- package/esm2015/message-box/message-box.component.js +20 -24
- package/esm2015/message-box/message-box.module.js +4 -4
- package/esm2015/message-box/message-box.service.js +10 -8
- package/esm2015/notification/notification.component.js +5 -5
- package/esm2015/notification/notification.module.js +4 -4
- package/esm2015/notification/notification.property.js +1 -1
- package/esm2015/notification/notification.service.js +3 -3
- package/esm2015/outlet/outlet.directive.js +3 -3
- package/esm2015/outlet/outlet.module.js +4 -4
- package/esm2015/page-header/page-header.component.js +3 -3
- package/esm2015/page-header/page-header.module.js +4 -4
- package/esm2015/page-header/page-header.property.js +3 -3
- package/esm2015/pagination/pagination.component.js +45 -7
- package/esm2015/pagination/pagination.module.js +10 -6
- package/esm2015/pagination/pagination.property.js +52 -4
- package/esm2015/pattern/pattern.component.js +3 -3
- package/esm2015/pattern/pattern.module.js +4 -4
- package/esm2015/popconfirm/popconfirm.component.js +3 -3
- package/esm2015/popconfirm/popconfirm.module.js +4 -4
- package/esm2015/popconfirm/popconfirm.property.js +3 -3
- package/esm2015/popover/popover-portal.component.js +4 -4
- package/esm2015/popover/popover.directive.js +7 -6
- package/esm2015/popover/popover.module.js +4 -4
- package/esm2015/popover/popover.property.js +3 -3
- package/esm2015/portal/portal.module.js +6 -5
- package/esm2015/portal/portal.service.js +11 -12
- package/esm2015/progress/progress.component.js +180 -17
- package/esm2015/progress/progress.module.js +4 -4
- package/esm2015/progress/progress.property.js +52 -5
- package/esm2015/radio/radio.component.js +7 -6
- package/esm2015/radio/radio.module.js +4 -4
- package/esm2015/radio/radio.property.js +4 -4
- package/esm2015/rate/rate.component.js +9 -9
- package/esm2015/rate/rate.module.js +4 -4
- package/esm2015/rate/rate.property.js +3 -3
- package/esm2015/result/result.component.js +3 -3
- package/esm2015/result/result.module.js +4 -4
- package/esm2015/result/result.property.js +3 -3
- package/esm2015/ripple/ripple.directive.js +4 -4
- package/esm2015/ripple/ripple.module.js +4 -4
- package/esm2015/ripple/ripple.property.js +4 -4
- package/esm2015/select/select-portal.component.js +6 -6
- package/esm2015/select/select.component.js +15 -11
- package/esm2015/select/select.module.js +4 -4
- package/esm2015/select/select.property.js +15 -4
- package/esm2015/skeleton/skeleton.component.js +6 -5
- package/esm2015/skeleton/skeleton.module.js +4 -4
- package/esm2015/skeleton/skeleton.property.js +3 -3
- package/esm2015/slider/slider.component.js +11 -12
- package/esm2015/slider/slider.module.js +4 -4
- package/esm2015/slider/slider.property.js +3 -3
- package/esm2015/slider-select/slider-select.component.js +3 -3
- package/esm2015/slider-select/slider-select.module.js +4 -4
- package/esm2015/slider-select/slider-select.property.js +3 -3
- package/esm2015/statistic/countdown.component.js +8 -7
- package/esm2015/statistic/statistic.component.js +6 -5
- package/esm2015/statistic/statistic.module.js +4 -4
- package/esm2015/statistic/statistic.property.js +6 -6
- package/esm2015/steps/steps.component.js +22 -13
- package/esm2015/steps/steps.module.js +7 -6
- package/esm2015/steps/steps.property.js +12 -5
- package/esm2015/switch/switch.component.js +3 -3
- package/esm2015/switch/switch.module.js +4 -4
- package/esm2015/switch/switch.property.js +3 -3
- package/esm2015/table/drag.directive.js +5 -5
- package/esm2015/table/table-body.component.js +7 -6
- package/esm2015/table/table-foot.component.js +4 -4
- package/esm2015/table/table-head.component.js +7 -6
- package/esm2015/table/table.component.js +9 -8
- package/esm2015/table/table.module.js +4 -4
- package/esm2015/table/table.property.js +13 -13
- package/esm2015/tabs/tab-content.component.js +3 -3
- package/esm2015/tabs/tab.component.js +4 -4
- package/esm2015/tabs/tabs.component.js +9 -8
- package/esm2015/tabs/tabs.module.js +4 -4
- package/esm2015/tabs/tabs.property.js +6 -6
- package/esm2015/tag/tag.component.js +6 -5
- package/esm2015/tag/tag.module.js +4 -4
- package/esm2015/tag/tag.property.js +3 -3
- package/esm2015/text-retract/text-retract.component.js +6 -5
- package/esm2015/text-retract/text-retract.module.js +4 -4
- package/esm2015/text-retract/text-retract.property.js +3 -3
- package/esm2015/textarea/textarea.component.js +6 -5
- package/esm2015/textarea/textarea.module.js +4 -4
- package/esm2015/textarea/textarea.property.js +4 -14
- package/esm2015/theme/theme.component.js +5 -5
- package/esm2015/theme/theme.module.js +4 -4
- package/esm2015/theme/theme.property.js +4 -4
- package/esm2015/time-ago/time-ago.module.js +4 -4
- package/esm2015/time-ago/time-ago.pipe.js +3 -3
- package/esm2015/time-picker/time-picker-frame.component.js +22 -12
- package/esm2015/time-picker/time-picker-portal.component.js +5 -5
- package/esm2015/time-picker/time-picker.component.js +31 -15
- package/esm2015/time-picker/time-picker.module.js +4 -4
- package/esm2015/time-picker/time-picker.property.js +16 -5
- package/esm2015/time-range/time-range.module.js +4 -4
- package/esm2015/time-range/time-range.pipe.js +3 -3
- package/esm2015/timeline/timeline.component.js +7 -6
- package/esm2015/timeline/timeline.module.js +4 -4
- package/esm2015/timeline/timeline.property.js +3 -3
- package/esm2015/tooltip/tooltip-portal.component.js +4 -4
- package/esm2015/tooltip/tooltip.directive.js +7 -6
- package/esm2015/tooltip/tooltip.module.js +4 -4
- package/esm2015/tooltip/tooltip.property.js +4 -4
- package/esm2015/transfer/transfer.component.js +7 -6
- package/esm2015/transfer/transfer.module.js +4 -4
- package/esm2015/transfer/transfer.property.js +3 -3
- package/esm2015/tree/tree-node.component.js +5 -5
- package/esm2015/tree/tree.component.js +11 -10
- package/esm2015/tree/tree.module.js +4 -4
- package/esm2015/tree/tree.property.js +7 -7
- package/esm2015/tree-file/tree-file.component.js +3 -3
- package/esm2015/tree-file/tree-file.module.js +4 -4
- package/esm2015/tree-file/tree-file.property.js +3 -3
- package/esm2015/typography/typography.component.js +3 -3
- package/esm2015/typography/typography.module.js +4 -4
- package/esm2015/typography/typography.property.js +3 -3
- package/esm2015/upload/upload-portal.component.js +5 -5
- package/esm2015/upload/upload.component.js +7 -6
- package/esm2015/upload/upload.module.js +4 -4
- package/esm2015/upload/upload.property.js +3 -3
- package/fesm2015/ng-nest-ui-affix.js +10 -10
- package/fesm2015/ng-nest-ui-alert.js +10 -10
- package/fesm2015/ng-nest-ui-alert.js.map +1 -1
- package/fesm2015/ng-nest-ui-anchor.js +11 -11
- package/fesm2015/ng-nest-ui-anchor.js.map +1 -1
- package/fesm2015/ng-nest-ui-api.js +7 -7
- package/fesm2015/ng-nest-ui-auto-complete.js +37 -18
- package/fesm2015/ng-nest-ui-auto-complete.js.map +1 -1
- package/fesm2015/ng-nest-ui-avatar.js +10 -10
- package/fesm2015/ng-nest-ui-back-top.js +12 -12
- package/fesm2015/ng-nest-ui-back-top.js.map +1 -1
- package/fesm2015/ng-nest-ui-badge.js +12 -11
- package/fesm2015/ng-nest-ui-badge.js.map +1 -1
- package/fesm2015/ng-nest-ui-base-form.js +36 -12
- package/fesm2015/ng-nest-ui-base-form.js.map +1 -1
- package/fesm2015/ng-nest-ui-border.js +7 -7
- package/fesm2015/ng-nest-ui-button.js +20 -19
- package/fesm2015/ng-nest-ui-button.js.map +1 -1
- package/fesm2015/ng-nest-ui-calendar.js +14 -13
- package/fesm2015/ng-nest-ui-calendar.js.map +1 -1
- package/fesm2015/ng-nest-ui-card.js +10 -10
- package/fesm2015/ng-nest-ui-carousel.js +28 -27
- package/fesm2015/ng-nest-ui-carousel.js.map +1 -1
- package/fesm2015/ng-nest-ui-cascade.js +63 -22
- package/fesm2015/ng-nest-ui-cascade.js.map +1 -1
- package/fesm2015/ng-nest-ui-checkbox.js +13 -12
- package/fesm2015/ng-nest-ui-checkbox.js.map +1 -1
- package/fesm2015/ng-nest-ui-collapse.js +16 -16
- package/fesm2015/ng-nest-ui-collapse.js.map +1 -1
- package/fesm2015/ng-nest-ui-color-picker.js +24 -21
- package/fesm2015/ng-nest-ui-color-picker.js.map +1 -1
- package/fesm2015/ng-nest-ui-color.js +11 -11
- package/fesm2015/ng-nest-ui-color.js.map +1 -1
- package/fesm2015/ng-nest-ui-comment.js +19 -18
- package/fesm2015/ng-nest-ui-comment.js.map +1 -1
- package/fesm2015/ng-nest-ui-container.js +32 -32
- package/fesm2015/ng-nest-ui-container.js.map +1 -1
- package/fesm2015/ng-nest-ui-core.js +106 -25
- package/fesm2015/ng-nest-ui-core.js.map +1 -1
- package/fesm2015/ng-nest-ui-crumb.js +13 -12
- package/fesm2015/ng-nest-ui-crumb.js.map +1 -1
- package/fesm2015/ng-nest-ui-date-picker.js +325 -186
- package/fesm2015/ng-nest-ui-date-picker.js.map +1 -1
- package/fesm2015/ng-nest-ui-description.js +21 -22
- package/fesm2015/ng-nest-ui-description.js.map +1 -1
- package/fesm2015/ng-nest-ui-dialog.js +263 -33
- package/fesm2015/ng-nest-ui-dialog.js.map +1 -1
- package/fesm2015/ng-nest-ui-doc.js +7 -7
- package/fesm2015/ng-nest-ui-drawer.js +232 -20
- package/fesm2015/ng-nest-ui-drawer.js.map +1 -1
- package/fesm2015/ng-nest-ui-dropdown.js +17 -16
- package/fesm2015/ng-nest-ui-dropdown.js.map +1 -1
- package/fesm2015/ng-nest-ui-empty.js +10 -10
- package/fesm2015/ng-nest-ui-examples.js +7 -7
- package/fesm2015/ng-nest-ui-find.js +16 -15
- package/fesm2015/ng-nest-ui-find.js.map +1 -1
- package/fesm2015/ng-nest-ui-form.js +22 -26
- package/fesm2015/ng-nest-ui-form.js.map +1 -1
- package/fesm2015/ng-nest-ui-highlight.js +12 -11
- package/fesm2015/ng-nest-ui-highlight.js.map +1 -1
- package/fesm2015/ng-nest-ui-i18n.js +532 -131
- package/fesm2015/ng-nest-ui-i18n.js.map +1 -1
- package/fesm2015/ng-nest-ui-icon.js +18 -18
- package/fesm2015/ng-nest-ui-icon.js.map +1 -1
- package/fesm2015/ng-nest-ui-inner.js +11 -11
- package/fesm2015/ng-nest-ui-inner.js.map +1 -1
- package/fesm2015/ng-nest-ui-input-number.js +10 -10
- package/fesm2015/ng-nest-ui-input.js +38 -21
- package/fesm2015/ng-nest-ui-input.js.map +1 -1
- package/fesm2015/ng-nest-ui-layout.js +16 -16
- package/fesm2015/ng-nest-ui-link.js +10 -10
- package/fesm2015/ng-nest-ui-list.js +20 -19
- package/fesm2015/ng-nest-ui-list.js.map +1 -1
- package/fesm2015/ng-nest-ui-loading.js +12 -11
- package/fesm2015/ng-nest-ui-loading.js.map +1 -1
- package/fesm2015/ng-nest-ui-menu.js +22 -22
- package/fesm2015/ng-nest-ui-menu.js.map +1 -1
- package/fesm2015/ng-nest-ui-message-box.js +32 -34
- package/fesm2015/ng-nest-ui-message-box.js.map +1 -1
- package/fesm2015/ng-nest-ui-message.js +14 -14
- package/fesm2015/ng-nest-ui-message.js.map +1 -1
- package/fesm2015/ng-nest-ui-notification.js +11 -11
- package/fesm2015/ng-nest-ui-notification.js.map +1 -1
- package/fesm2015/ng-nest-ui-outlet.js +7 -7
- package/fesm2015/ng-nest-ui-page-header.js +10 -10
- package/fesm2015/ng-nest-ui-pagination.js +104 -14
- package/fesm2015/ng-nest-ui-pagination.js.map +1 -1
- package/fesm2015/ng-nest-ui-pattern.js +7 -7
- package/fesm2015/ng-nest-ui-popconfirm.js +10 -10
- package/fesm2015/ng-nest-ui-popover.js +16 -15
- package/fesm2015/ng-nest-ui-popover.js.map +1 -1
- package/fesm2015/ng-nest-ui-portal.js +15 -15
- package/fesm2015/ng-nest-ui-portal.js.map +1 -1
- package/fesm2015/ng-nest-ui-progress.js +234 -25
- package/fesm2015/ng-nest-ui-progress.js.map +1 -1
- package/fesm2015/ng-nest-ui-radio.js +13 -12
- package/fesm2015/ng-nest-ui-radio.js.map +1 -1
- package/fesm2015/ng-nest-ui-rate.js +15 -15
- package/fesm2015/ng-nest-ui-rate.js.map +1 -1
- package/fesm2015/ng-nest-ui-result.js +10 -10
- package/fesm2015/ng-nest-ui-ripple.js +10 -10
- package/fesm2015/ng-nest-ui-ripple.js.map +1 -1
- package/fesm2015/ng-nest-ui-select.js +37 -22
- package/fesm2015/ng-nest-ui-select.js.map +1 -1
- package/fesm2015/ng-nest-ui-skeleton.js +12 -11
- package/fesm2015/ng-nest-ui-skeleton.js.map +1 -1
- package/fesm2015/ng-nest-ui-slider-select.js +10 -10
- package/fesm2015/ng-nest-ui-slider.js +17 -18
- package/fesm2015/ng-nest-ui-slider.js.map +1 -1
- package/fesm2015/ng-nest-ui-statistic.js +22 -20
- package/fesm2015/ng-nest-ui-statistic.js.map +1 -1
- package/fesm2015/ng-nest-ui-steps.js +38 -21
- package/fesm2015/ng-nest-ui-steps.js.map +1 -1
- package/fesm2015/ng-nest-ui-switch.js +10 -10
- package/fesm2015/ng-nest-ui-table.js +43 -40
- package/fesm2015/ng-nest-ui-table.js.map +1 -1
- package/fesm2015/ng-nest-ui-tabs.js +24 -23
- package/fesm2015/ng-nest-ui-tabs.js.map +1 -1
- package/fesm2015/ng-nest-ui-tag.js +12 -11
- package/fesm2015/ng-nest-ui-tag.js.map +1 -1
- package/fesm2015/ng-nest-ui-text-retract.js +12 -11
- package/fesm2015/ng-nest-ui-text-retract.js.map +1 -1
- package/fesm2015/ng-nest-ui-textarea.js +12 -21
- package/fesm2015/ng-nest-ui-textarea.js.map +1 -1
- package/fesm2015/ng-nest-ui-theme.js +11 -11
- package/fesm2015/ng-nest-ui-theme.js.map +1 -1
- package/fesm2015/ng-nest-ui-time-ago.js +7 -7
- package/fesm2015/ng-nest-ui-time-picker.js +73 -36
- package/fesm2015/ng-nest-ui-time-picker.js.map +1 -1
- package/fesm2015/ng-nest-ui-time-range.js +7 -7
- package/fesm2015/ng-nest-ui-timeline.js +13 -12
- package/fesm2015/ng-nest-ui-timeline.js.map +1 -1
- package/fesm2015/ng-nest-ui-tooltip.js +16 -15
- package/fesm2015/ng-nest-ui-tooltip.js.map +1 -1
- package/fesm2015/ng-nest-ui-transfer.js +13 -12
- package/fesm2015/ng-nest-ui-transfer.js.map +1 -1
- package/fesm2015/ng-nest-ui-tree-file.js +10 -10
- package/fesm2015/ng-nest-ui-tree.js +24 -23
- package/fesm2015/ng-nest-ui-tree.js.map +1 -1
- package/fesm2015/ng-nest-ui-typography.js +10 -10
- package/fesm2015/ng-nest-ui-upload.js +17 -16
- package/fesm2015/ng-nest-ui-upload.js.map +1 -1
- package/find/find.component.d.ts +1 -1
- package/form/control.component.d.ts +1 -1
- package/form/form.component.d.ts +1 -1
- package/form/form.property.d.ts +6 -6
- package/i18n/languages/ar_EG.d.ts +8 -0
- package/i18n/languages/bg_BG.d.ts +8 -0
- package/i18n/languages/ca_ES.d.ts +8 -0
- package/i18n/languages/cs_CZ.d.ts +8 -0
- package/i18n/languages/da_DK.d.ts +8 -0
- package/i18n/languages/de_DE.d.ts +8 -0
- package/i18n/languages/el_GR.d.ts +8 -0
- package/i18n/languages/en_GB.d.ts +8 -0
- package/i18n/languages/en_US.d.ts +5 -0
- package/i18n/languages/es_ES.d.ts +8 -0
- package/i18n/languages/et_EE.d.ts +8 -0
- package/i18n/languages/fa_IR.d.ts +8 -0
- package/i18n/languages/fi_FI.d.ts +8 -0
- package/i18n/languages/fr_BE.d.ts +8 -0
- package/i18n/languages/fr_FR.d.ts +8 -0
- package/i18n/languages/he_IL.d.ts +8 -0
- package/i18n/languages/hi_IN.d.ts +8 -0
- package/i18n/languages/hr_HR.d.ts +8 -0
- package/i18n/languages/hu_HU.d.ts +8 -0
- package/i18n/languages/hy_AM.d.ts +8 -0
- package/i18n/languages/id_ID.d.ts +8 -0
- package/i18n/languages/is_IS.d.ts +8 -0
- package/i18n/languages/it_IT.d.ts +8 -0
- package/i18n/languages/ja_JP.d.ts +8 -0
- package/i18n/languages/ka_GE.d.ts +8 -0
- package/i18n/languages/kn_IN.d.ts +8 -0
- package/i18n/languages/ko_KR.d.ts +8 -0
- package/i18n/languages/ku_IQ.d.ts +8 -0
- package/i18n/languages/lv_LV.d.ts +8 -0
- package/i18n/languages/mn_MN.d.ts +8 -0
- package/i18n/languages/ms_MY.d.ts +8 -0
- package/i18n/languages/nb_NO.d.ts +8 -0
- package/i18n/languages/ne_NP.d.ts +8 -0
- package/i18n/languages/nl_BE.d.ts +8 -0
- package/i18n/languages/nl_NL.d.ts +8 -0
- package/i18n/languages/pl_PL.d.ts +8 -0
- package/i18n/languages/pt_BR.d.ts +8 -0
- package/i18n/languages/pt_PT.d.ts +8 -0
- package/i18n/languages/ro_RO.d.ts +8 -0
- package/i18n/languages/ru_RU.d.ts +8 -0
- package/i18n/languages/sk_SK.d.ts +8 -0
- package/i18n/languages/sl_SI.d.ts +8 -0
- package/i18n/languages/sr_RS.d.ts +8 -0
- package/i18n/languages/sv_SE.d.ts +8 -0
- package/i18n/languages/ta_IN.d.ts +8 -0
- package/i18n/languages/th_TH.d.ts +8 -0
- package/i18n/languages/tr_TR.d.ts +8 -0
- package/i18n/languages/uk_UA.d.ts +8 -0
- package/i18n/languages/vi_VN.d.ts +8 -0
- package/i18n/languages/zh_CN.d.ts +4 -0
- package/i18n/languages/zh_TW.d.ts +7 -0
- package/inner/inner.component.d.ts +1 -1
- package/input/input-group.component.d.ts +2 -4
- package/input/input.component.d.ts +3 -1
- package/input/input.property.d.ts +6 -1
- package/list/list.component.d.ts +2 -2
- package/menu/menu.component.d.ts +1 -1
- package/message/message.component.d.ts +1 -1
- package/message/message.property.d.ts +1 -1
- package/message-box/message-box.component.d.ts +2 -1
- package/notification/notification.component.d.ts +1 -1
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +5 -1
- package/pagination/pagination.module.d.ts +7 -3
- package/pagination/pagination.property.d.ts +49 -3
- package/portal/portal.module.d.ts +1 -1
- package/portal/portal.service.d.ts +2 -3
- package/progress/progress.component.d.ts +31 -3
- package/progress/progress.property.d.ts +80 -5
- package/radio/radio.component.d.ts +1 -1
- package/rate/rate.component.d.ts +5 -5
- package/select/select-portal.component.d.ts +3 -3
- package/select/select.component.d.ts +1 -1
- package/select/select.property.d.ts +12 -2
- package/slider/slider.component.d.ts +1 -1
- package/steps/steps.component.d.ts +1 -1
- package/steps/steps.module.d.ts +2 -1
- package/steps/steps.property.d.ts +12 -2
- package/table/table-body.component.d.ts +1 -1
- package/table/table-head.component.d.ts +1 -1
- package/table/table.component.d.ts +1 -1
- package/table/table.property.d.ts +11 -1
- package/textarea/textarea.property.d.ts +1 -6
- package/theme/theme.component.d.ts +1 -1
- package/time-picker/time-picker-frame.component.d.ts +4 -0
- package/time-picker/time-picker-portal.component.d.ts +3 -3
- package/time-picker/time-picker.component.d.ts +5 -3
- package/time-picker/time-picker.property.d.ts +12 -2
- package/timeline/timeline.component.d.ts +1 -1
- package/transfer/transfer.component.d.ts +1 -1
- package/tree/tree-node.component.d.ts +1 -1
- package/tree/tree.component.d.ts +1 -1
- package/upload/upload.component.d.ts +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-nest/ui/core'), require('@ng-nest/ui/base-form'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@ng-nest/ui/i18n'), require('@ng-nest/ui/button'), require('@ng-nest/ui/time-picker'), require('@ng-nest/ui/portal'), require('@angular/cdk/overlay'), require('@ng-nest/ui/input'), require('@angular/forms'), require('@ng-nest/ui/icon')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@ng-nest/ui/date-picker', ['exports', '@angular/core', '@ng-nest/ui/core', '@ng-nest/ui/base-form', 'rxjs', 'rxjs/operators', '@angular/common', '@ng-nest/ui/i18n', '@ng-nest/ui/button', '@ng-nest/ui/time-picker', '@ng-nest/ui/portal', '@angular/cdk/overlay', '@ng-nest/ui/input', '@angular/forms', '@ng-nest/ui/icon'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, i0,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-nest"] = global["ng-nest"] || {}, global["ng-nest"].ui = global["ng-nest"].ui || {}, global["ng-nest"].ui["date-picker"] = {}), global.ng.core, global["ng-nest"].ui.core, global["ng-nest"].ui["base-form"], global.rxjs, global.rxjs.operators, global.ng.common, global["ng-nest"].ui.i18n, global["ng-nest"].ui.button, global["ng-nest"].ui["time-picker"], global["ng-nest"].ui.portal, global.ng.cdk.overlay, global["ng-nest"].ui.input, global.ng.forms, global["ng-nest"].ui.icon));
|
|
5
|
+
})(this, (function (exports, i0, i2, baseForm, rxjs, operators, i1, i3, i4, i7, i2$1, i4$1, i5, i6, i6$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,21 +13,19 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
30
26
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
31
29
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
32
30
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
33
31
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
@@ -262,10 +260,16 @@
|
|
|
262
260
|
r[k] = a[j];
|
|
263
261
|
return r;
|
|
264
262
|
}
|
|
265
|
-
function __spreadArray(to, from) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
function __spreadArray(to, from, pack) {
|
|
264
|
+
if (pack || arguments.length === 2)
|
|
265
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
266
|
+
if (ar || !(i in from)) {
|
|
267
|
+
if (!ar)
|
|
268
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
269
|
+
ar[i] = from[i];
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
269
273
|
}
|
|
270
274
|
function __await(v) {
|
|
271
275
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -381,32 +385,29 @@
|
|
|
381
385
|
}
|
|
382
386
|
return XDatePickerProperty;
|
|
383
387
|
}(baseForm.XControlValueAccessor));
|
|
384
|
-
/** @nocollapse */ XDatePickerProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
385
|
-
/** @nocollapse */ XDatePickerProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
388
|
+
/** @nocollapse */ XDatePickerProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
389
|
+
/** @nocollapse */ XDatePickerProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDatePickerProperty, selector: "ng-component", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
386
390
|
__decorate([
|
|
387
|
-
|
|
391
|
+
i2.XWithConfig(X_CONFIG_NAME, 'yyyy-MM-dd')
|
|
388
392
|
], XDatePickerProperty.prototype, "format", void 0);
|
|
389
393
|
__decorate([
|
|
390
|
-
|
|
391
|
-
|
|
394
|
+
i2.XWithConfig(X_CONFIG_NAME, true),
|
|
395
|
+
i2.XInputBoolean()
|
|
392
396
|
], XDatePickerProperty.prototype, "clearable", void 0);
|
|
393
397
|
__decorate([
|
|
394
|
-
|
|
398
|
+
i2.XWithConfig(X_CONFIG_NAME, 'bottom-start')
|
|
395
399
|
], XDatePickerProperty.prototype, "placement", void 0);
|
|
396
400
|
__decorate([
|
|
397
|
-
|
|
398
|
-
], XDatePickerProperty.prototype, "readonly", void 0);
|
|
399
|
-
__decorate([
|
|
400
|
-
i1.XWithConfig(X_CONFIG_NAME, 'medium')
|
|
401
|
+
i2.XWithConfig(X_CONFIG_NAME, 'medium')
|
|
401
402
|
], XDatePickerProperty.prototype, "size", void 0);
|
|
402
403
|
__decorate([
|
|
403
|
-
|
|
404
|
-
|
|
404
|
+
i2.XInputBoolean(),
|
|
405
|
+
i2.XWithConfig(X_CONFIG_NAME, true)
|
|
405
406
|
], XDatePickerProperty.prototype, "bordered", void 0);
|
|
406
407
|
__decorate([
|
|
407
|
-
|
|
408
|
+
i2.XDataConvert()
|
|
408
409
|
], XDatePickerProperty.prototype, "preset", void 0);
|
|
409
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
410
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerProperty, decorators: [{
|
|
410
411
|
type: i0.Component,
|
|
411
412
|
args: [{ template: '' }]
|
|
412
413
|
}], propDecorators: { type: [{
|
|
@@ -417,12 +418,6 @@
|
|
|
417
418
|
type: i0.Input
|
|
418
419
|
}], placement: [{
|
|
419
420
|
type: i0.Input
|
|
420
|
-
}], readonly: [{
|
|
421
|
-
type: i0.Input
|
|
422
|
-
}], valueTpl: [{
|
|
423
|
-
type: i0.Input
|
|
424
|
-
}], valueTplContext: [{
|
|
425
|
-
type: i0.Input
|
|
426
421
|
}], size: [{
|
|
427
422
|
type: i0.Input
|
|
428
423
|
}], bordered: [{
|
|
@@ -438,7 +433,7 @@
|
|
|
438
433
|
* @decorator component
|
|
439
434
|
*/
|
|
440
435
|
var XDateRangePrefix = 'x-date-range';
|
|
441
|
-
var
|
|
436
|
+
var X_CONFIG_RANGE_NAME = 'dateRange';
|
|
442
437
|
/**
|
|
443
438
|
* DateRange Property
|
|
444
439
|
*/
|
|
@@ -465,29 +460,29 @@
|
|
|
465
460
|
}
|
|
466
461
|
return XDateRangeProperty;
|
|
467
462
|
}(baseForm.XControlValueAccessor));
|
|
468
|
-
/** @nocollapse */ XDateRangeProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
469
|
-
/** @nocollapse */ XDateRangeProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
463
|
+
/** @nocollapse */ XDateRangeProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
464
|
+
/** @nocollapse */ XDateRangeProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDateRangeProperty, selector: "ng-component", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
470
465
|
__decorate([
|
|
471
|
-
|
|
466
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, 'yyyy-MM-dd')
|
|
472
467
|
], XDateRangeProperty.prototype, "format", void 0);
|
|
473
468
|
__decorate([
|
|
474
|
-
|
|
475
|
-
|
|
469
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, true),
|
|
470
|
+
i2.XInputBoolean()
|
|
476
471
|
], XDateRangeProperty.prototype, "clearable", void 0);
|
|
477
472
|
__decorate([
|
|
478
|
-
|
|
473
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, 'bottom-start')
|
|
479
474
|
], XDateRangeProperty.prototype, "placement", void 0);
|
|
480
475
|
__decorate([
|
|
481
|
-
|
|
476
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, 'medium')
|
|
482
477
|
], XDateRangeProperty.prototype, "size", void 0);
|
|
483
478
|
__decorate([
|
|
484
|
-
|
|
485
|
-
|
|
479
|
+
i2.XInputBoolean(),
|
|
480
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, true)
|
|
486
481
|
], XDateRangeProperty.prototype, "bordered", void 0);
|
|
487
482
|
__decorate([
|
|
488
|
-
|
|
483
|
+
i2.XDataConvert()
|
|
489
484
|
], XDateRangeProperty.prototype, "preset", void 0);
|
|
490
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
485
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeProperty, decorators: [{
|
|
491
486
|
type: i0.Component,
|
|
492
487
|
args: [{ template: '' }]
|
|
493
488
|
}], propDecorators: { type: [{
|
|
@@ -532,11 +527,26 @@
|
|
|
532
527
|
__extends(XPickerDateProperty, _super);
|
|
533
528
|
function XPickerDateProperty() {
|
|
534
529
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
530
|
+
/**
|
|
531
|
+
* @zh_CN 选择类型
|
|
532
|
+
* @en_US Select type
|
|
533
|
+
*/
|
|
534
|
+
_this.type = 'date';
|
|
535
535
|
/**
|
|
536
536
|
* @zh_CN 显示的日期
|
|
537
537
|
* @en_US Date displayed
|
|
538
538
|
*/
|
|
539
539
|
_this.display = new Date();
|
|
540
|
+
/**
|
|
541
|
+
* @zh_CN 显示切换按钮
|
|
542
|
+
* @en_US Display switch button
|
|
543
|
+
*/
|
|
544
|
+
_this.showHeader = true;
|
|
545
|
+
/**
|
|
546
|
+
* @zh_CN 选择类型
|
|
547
|
+
* @en_US Select type
|
|
548
|
+
*/
|
|
549
|
+
_this.typeChange = new i0.EventEmitter();
|
|
540
550
|
/**
|
|
541
551
|
* @zh_CN 选中的事件
|
|
542
552
|
* @en_US Selected event
|
|
@@ -550,18 +560,32 @@
|
|
|
550
560
|
return _this;
|
|
551
561
|
}
|
|
552
562
|
return XPickerDateProperty;
|
|
553
|
-
}(
|
|
554
|
-
/** @nocollapse */ XPickerDateProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
555
|
-
/** @nocollapse */ XPickerDateProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
556
|
-
|
|
563
|
+
}(i2.XProperty));
|
|
564
|
+
/** @nocollapse */ XPickerDateProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
565
|
+
/** @nocollapse */ XPickerDateProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerDateProperty, selector: "ng-component", inputs: { type: "type", display: "display", model: "model", dateTemp: "dateTemp", showHeader: "showHeader", rangePicker: "rangePicker" }, outputs: { typeChange: "typeChange", modelChange: "modelChange", rangeChange: "rangeChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
566
|
+
__decorate([
|
|
567
|
+
i2.XInputBoolean()
|
|
568
|
+
], XPickerDateProperty.prototype, "showHeader", void 0);
|
|
569
|
+
__decorate([
|
|
570
|
+
i2.XInputBoolean()
|
|
571
|
+
], XPickerDateProperty.prototype, "rangePicker", void 0);
|
|
572
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateProperty, decorators: [{
|
|
557
573
|
type: i0.Component,
|
|
558
574
|
args: [{ template: '' }]
|
|
559
|
-
}], propDecorators: {
|
|
575
|
+
}], propDecorators: { type: [{
|
|
576
|
+
type: i0.Input
|
|
577
|
+
}], display: [{
|
|
560
578
|
type: i0.Input
|
|
561
579
|
}], model: [{
|
|
562
580
|
type: i0.Input
|
|
563
581
|
}], dateTemp: [{
|
|
564
582
|
type: i0.Input
|
|
583
|
+
}], showHeader: [{
|
|
584
|
+
type: i0.Input
|
|
585
|
+
}], rangePicker: [{
|
|
586
|
+
type: i0.Input
|
|
587
|
+
}], typeChange: [{
|
|
588
|
+
type: i0.Output
|
|
565
589
|
}], modelChange: [{
|
|
566
590
|
type: i0.Output
|
|
567
591
|
}], rangeChange: [{
|
|
@@ -580,16 +604,31 @@
|
|
|
580
604
|
__extends(XPickerMonthProperty, _super);
|
|
581
605
|
function XPickerMonthProperty() {
|
|
582
606
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
607
|
+
/**
|
|
608
|
+
* @zh_CN 选择类型
|
|
609
|
+
* @en_US Select type
|
|
610
|
+
*/
|
|
611
|
+
_this.type = 'date';
|
|
583
612
|
/**
|
|
584
613
|
* @zh_CN 显示的日期
|
|
585
614
|
* @en_US Date displayed
|
|
586
615
|
*/
|
|
587
616
|
_this.display = new Date();
|
|
617
|
+
/**
|
|
618
|
+
* @zh_CN 显示切换按钮
|
|
619
|
+
* @en_US Display switch button
|
|
620
|
+
*/
|
|
621
|
+
_this.showHeader = true;
|
|
588
622
|
/**
|
|
589
623
|
* @zh_CN 选中的事件
|
|
590
624
|
* @en_US Selected event
|
|
591
625
|
*/
|
|
592
626
|
_this.modelChange = new i0.EventEmitter();
|
|
627
|
+
/**
|
|
628
|
+
* @zh_CN 选择类型
|
|
629
|
+
* @en_US Select type
|
|
630
|
+
*/
|
|
631
|
+
_this.typeChange = new i0.EventEmitter();
|
|
593
632
|
/**
|
|
594
633
|
* @zh_CN 范围变化的事件
|
|
595
634
|
* @en_US Scope change event
|
|
@@ -598,20 +637,29 @@
|
|
|
598
637
|
return _this;
|
|
599
638
|
}
|
|
600
639
|
return XPickerMonthProperty;
|
|
601
|
-
}(
|
|
602
|
-
/** @nocollapse */ XPickerMonthProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
603
|
-
/** @nocollapse */ XPickerMonthProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
604
|
-
|
|
640
|
+
}(i2.XProperty));
|
|
641
|
+
/** @nocollapse */ XPickerMonthProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
642
|
+
/** @nocollapse */ XPickerMonthProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerMonthProperty, selector: "ng-component", inputs: { type: "type", display: "display", model: "model", monthTemp: "monthTemp", showHeader: "showHeader" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", rangeChange: "rangeChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
643
|
+
__decorate([
|
|
644
|
+
i2.XInputBoolean()
|
|
645
|
+
], XPickerMonthProperty.prototype, "showHeader", void 0);
|
|
646
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthProperty, decorators: [{
|
|
605
647
|
type: i0.Component,
|
|
606
648
|
args: [{ template: '' }]
|
|
607
|
-
}], propDecorators: {
|
|
649
|
+
}], propDecorators: { type: [{
|
|
650
|
+
type: i0.Input
|
|
651
|
+
}], display: [{
|
|
608
652
|
type: i0.Input
|
|
609
653
|
}], model: [{
|
|
610
654
|
type: i0.Input
|
|
611
655
|
}], monthTemp: [{
|
|
612
656
|
type: i0.Input
|
|
657
|
+
}], showHeader: [{
|
|
658
|
+
type: i0.Input
|
|
613
659
|
}], modelChange: [{
|
|
614
660
|
type: i0.Output
|
|
661
|
+
}], typeChange: [{
|
|
662
|
+
type: i0.Output
|
|
615
663
|
}], rangeChange: [{
|
|
616
664
|
type: i0.Output
|
|
617
665
|
}] } });
|
|
@@ -628,16 +676,31 @@
|
|
|
628
676
|
__extends(XPickerYearProperty, _super);
|
|
629
677
|
function XPickerYearProperty() {
|
|
630
678
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
679
|
+
/**
|
|
680
|
+
* @zh_CN 选择类型
|
|
681
|
+
* @en_US Select type
|
|
682
|
+
*/
|
|
683
|
+
_this.type = 'date';
|
|
631
684
|
/**
|
|
632
685
|
* @zh_CN 显示的日期
|
|
633
686
|
* @en_US Date displayed
|
|
634
687
|
*/
|
|
635
688
|
_this.display = new Date();
|
|
689
|
+
/**
|
|
690
|
+
* @zh_CN 显示切换按钮
|
|
691
|
+
* @en_US Display switch button
|
|
692
|
+
*/
|
|
693
|
+
_this.showHeader = true;
|
|
636
694
|
/**
|
|
637
695
|
* @zh_CN 选中的事件
|
|
638
696
|
* @en_US Selected event
|
|
639
697
|
*/
|
|
640
698
|
_this.modelChange = new i0.EventEmitter();
|
|
699
|
+
/**
|
|
700
|
+
* @zh_CN 选择类型
|
|
701
|
+
* @en_US Select type
|
|
702
|
+
*/
|
|
703
|
+
_this.typeChange = new i0.EventEmitter();
|
|
641
704
|
/**
|
|
642
705
|
* @zh_CN 开始年份变化的事件
|
|
643
706
|
* @en_US Start year change event
|
|
@@ -646,27 +709,38 @@
|
|
|
646
709
|
return _this;
|
|
647
710
|
}
|
|
648
711
|
return XPickerYearProperty;
|
|
649
|
-
}(
|
|
650
|
-
/** @nocollapse */ XPickerYearProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
651
|
-
/** @nocollapse */ XPickerYearProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
652
|
-
|
|
712
|
+
}(i2.XProperty));
|
|
713
|
+
/** @nocollapse */ XPickerYearProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
714
|
+
/** @nocollapse */ XPickerYearProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerYearProperty, selector: "ng-component", inputs: { type: "type", display: "display", model: "model", showHeader: "showHeader" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", startChange: "startChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
715
|
+
__decorate([
|
|
716
|
+
i2.XInputBoolean()
|
|
717
|
+
], XPickerYearProperty.prototype, "showHeader", void 0);
|
|
718
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearProperty, decorators: [{
|
|
653
719
|
type: i0.Component,
|
|
654
720
|
args: [{ template: '' }]
|
|
655
|
-
}], propDecorators: {
|
|
721
|
+
}], propDecorators: { type: [{
|
|
722
|
+
type: i0.Input
|
|
723
|
+
}], display: [{
|
|
656
724
|
type: i0.Input
|
|
657
725
|
}], model: [{
|
|
658
726
|
type: i0.Input
|
|
727
|
+
}], showHeader: [{
|
|
728
|
+
type: i0.Input
|
|
659
729
|
}], modelChange: [{
|
|
660
730
|
type: i0.Output
|
|
731
|
+
}], typeChange: [{
|
|
732
|
+
type: i0.Output
|
|
661
733
|
}], startChange: [{
|
|
662
734
|
type: i0.Output
|
|
663
735
|
}] } });
|
|
664
736
|
|
|
665
737
|
var XPickerDateComponent = /** @class */ (function (_super) {
|
|
666
738
|
__extends(XPickerDateComponent, _super);
|
|
667
|
-
function XPickerDateComponent(renderer, cdr, configService, i18n) {
|
|
739
|
+
function XPickerDateComponent(renderer, datePipe, lowerCasePipe, cdr, configService, i18n) {
|
|
668
740
|
var _this = _super.call(this) || this;
|
|
669
741
|
_this.renderer = renderer;
|
|
742
|
+
_this.datePipe = datePipe;
|
|
743
|
+
_this.lowerCasePipe = lowerCasePipe;
|
|
670
744
|
_this.cdr = cdr;
|
|
671
745
|
_this.configService = configService;
|
|
672
746
|
_this.i18n = i18n;
|
|
@@ -681,15 +755,22 @@
|
|
|
681
755
|
];
|
|
682
756
|
_this.now = new Date();
|
|
683
757
|
_this.dates = [];
|
|
758
|
+
_this.locale = {};
|
|
684
759
|
_this._unSubject = new rxjs.Subject();
|
|
685
760
|
return _this;
|
|
686
761
|
}
|
|
687
762
|
XPickerDateComponent.prototype.ngOnInit = function () {
|
|
688
763
|
var _this = this;
|
|
689
|
-
this.i18n.localeChange
|
|
764
|
+
this.i18n.localeChange
|
|
765
|
+
.pipe(operators.map(function (x) { return x.datePicker; }), operators.takeUntil(this._unSubject))
|
|
766
|
+
.subscribe(function (x) {
|
|
767
|
+
_this.locale = x;
|
|
768
|
+
_this.cdr.markForCheck();
|
|
769
|
+
});
|
|
690
770
|
};
|
|
691
771
|
XPickerDateComponent.prototype.ngOnChanges = function (simples) {
|
|
692
|
-
|
|
772
|
+
var display = simples.display;
|
|
773
|
+
i2.XIsChange(display) && this.init();
|
|
693
774
|
};
|
|
694
775
|
XPickerDateComponent.prototype.ngOnDestory = function () {
|
|
695
776
|
this._unSubject.next();
|
|
@@ -728,7 +809,7 @@
|
|
|
728
809
|
dates = __spreadArray(__spreadArray([], __read(dates)), [date_2]);
|
|
729
810
|
day = date_2.getDay();
|
|
730
811
|
}
|
|
731
|
-
this.dates =
|
|
812
|
+
this.dates = i2.chunk(dates, 7);
|
|
732
813
|
if (this.dates.length > 0) {
|
|
733
814
|
this.rangeChange.emit([dates[0], dates[dates.length - 1]]);
|
|
734
815
|
}
|
|
@@ -739,23 +820,48 @@
|
|
|
739
820
|
this.modelChange.emit(date);
|
|
740
821
|
this.cdr.markForCheck();
|
|
741
822
|
};
|
|
742
|
-
XPickerDateComponent.prototype.
|
|
823
|
+
XPickerDateComponent.prototype.getLocaleMonth = function (date) {
|
|
824
|
+
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
825
|
+
};
|
|
826
|
+
XPickerDateComponent.prototype.setDisplay = function (date) {
|
|
827
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
828
|
+
this.setDays(this.display);
|
|
829
|
+
};
|
|
830
|
+
XPickerDateComponent.prototype.nextMonth = function (num) {
|
|
831
|
+
var date = new Date(this.display);
|
|
832
|
+
date.setMonth(date.getMonth() + num);
|
|
833
|
+
this.setDisplay(date);
|
|
834
|
+
this.cdr.detectChanges();
|
|
835
|
+
};
|
|
836
|
+
XPickerDateComponent.prototype.nextYear = function (num) {
|
|
837
|
+
var date = new Date(this.display);
|
|
838
|
+
date.setFullYear(date.getFullYear() + num);
|
|
839
|
+
this.setDisplay(date);
|
|
840
|
+
this.cdr.detectChanges();
|
|
841
|
+
};
|
|
842
|
+
XPickerDateComponent.prototype.typeOnChange = function (type) {
|
|
843
|
+
this.type = type;
|
|
844
|
+
this.typeChange.emit(type);
|
|
845
|
+
this.cdr.detectChanges();
|
|
846
|
+
};
|
|
847
|
+
XPickerDateComponent.prototype.trackByNode = function (_index, item) {
|
|
743
848
|
return item;
|
|
744
849
|
};
|
|
745
850
|
return XPickerDateComponent;
|
|
746
851
|
}(XPickerDateProperty));
|
|
747
|
-
/** @nocollapse */ XPickerDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
748
|
-
/** @nocollapse */ XPickerDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
749
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
852
|
+
/** @nocollapse */ XPickerDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.XConfigService }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
853
|
+
/** @nocollapse */ XPickerDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerDateComponent, selector: "x-picker-date", providers: [i1.DatePipe, i1.LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, 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-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\"></x-button>\r\n <div class=\"x-picker-date-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeOnChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeOnChange('month')\">{{ getLocaleMonth(display) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextMonth(1)\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\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 *ngFor=\"let weeks of dates\">\r\n <ng-container *ngFor=\"let week of weeks; trackBy: trackByNode\">\r\n <td\r\n [class.x-date-last-or-next]=\"(week | date: 'yyyyMM') !== (display | date: 'yyyyMM')\"\r\n [class.x-date-now]=\"(week | date: 'yyyyMMdd') === (now | date: 'yyyyMMdd')\"\r\n (click)=\"dateTemp && dateClick(week)\"\r\n >\r\n <x-button\r\n *ngIf=\"!dateTemp\"\r\n type=\"text\"\r\n size=\"mini\"\r\n title=\"{{ week | date: 'yyyy-MM-dd' }}\"\r\n [activated]=\"!rangePicker && (week | date: 'yyyyMMdd') === (model | date: 'yyyyMMdd')\"\r\n (click)=\"dateClick(week)\"\r\n >{{ week | date: 'd' }}</x-button\r\n >\r\n <ng-container *ngIf=\"dateTemp\">\r\n <ng-container *ngTemplateOutlet=\"dateTemp; context: { date$: week }\"></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:.5rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-picker-date-year-month{flex:1;text-align:center}.x-picker-date-body{padding:.5rem}.x-picker-date-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-date-body>table th{font-weight:400;height:2rem;color:var(--x-text-400)}.x-picker-date-body>table td{padding:.25rem 0;text-align:center}.x-picker-date-body>table td x-button .x-button{width:1.625rem;height:1.5rem;margin:0 auto;border:.0625rem solid transparent}.x-picker-date-body>table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-date-body>table td x-button .x-button-activated{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-date-body>table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-date-body>table td.x-date-last-or-next x-button .x-button{color:var(--x-text-700)}.x-picker-date-body>table td.x-date-now x-button .x-button:not(.x-button-activated){color:var(--x-primary);background-color:transparent;border-color:var(--x-primary)}\n"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe, "xI18n": i3__namespace.XI18nPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
854
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateComponent, decorators: [{
|
|
750
855
|
type: i0.Component,
|
|
751
856
|
args: [{
|
|
752
857
|
selector: "" + XPickerDatePrefix,
|
|
753
858
|
templateUrl: './picker-date.component.html',
|
|
754
859
|
styleUrls: ['./picker-date.component.scss'],
|
|
755
860
|
encapsulation: i0.ViewEncapsulation.None,
|
|
756
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
861
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
862
|
+
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
757
863
|
}]
|
|
758
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type:
|
|
864
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XConfigService }, { type: i3__namespace.XI18nService }]; } });
|
|
759
865
|
|
|
760
866
|
var XPickerMonthComponent = /** @class */ (function (_super) {
|
|
761
867
|
__extends(XPickerMonthComponent, _super);
|
|
@@ -783,18 +889,19 @@
|
|
|
783
889
|
});
|
|
784
890
|
};
|
|
785
891
|
XPickerMonthComponent.prototype.ngOnChanges = function (simples) {
|
|
786
|
-
|
|
892
|
+
var display = simples.display;
|
|
893
|
+
i2.XIsChange(display) && this.init();
|
|
787
894
|
};
|
|
788
895
|
XPickerMonthComponent.prototype.init = function () {
|
|
789
|
-
this.setMonths();
|
|
896
|
+
this.setMonths(this.display);
|
|
790
897
|
};
|
|
791
|
-
XPickerMonthComponent.prototype.setMonths = function () {
|
|
792
|
-
var year =
|
|
898
|
+
XPickerMonthComponent.prototype.setMonths = function (date) {
|
|
899
|
+
var year = date.getFullYear();
|
|
793
900
|
var dates = [];
|
|
794
901
|
for (var i = 0; i < 16; i++) {
|
|
795
902
|
dates = __spreadArray(__spreadArray([], __read(dates)), [new Date(year, i, 1)]);
|
|
796
903
|
}
|
|
797
|
-
this.dates =
|
|
904
|
+
this.dates = i2.chunk(dates, 4);
|
|
798
905
|
if (this.dates.length > 0) {
|
|
799
906
|
this.rangeChange.emit([dates[0], dates[dates.length - 1]]);
|
|
800
907
|
}
|
|
@@ -807,14 +914,29 @@
|
|
|
807
914
|
XPickerMonthComponent.prototype.getLocaleMonth = function (date) {
|
|
808
915
|
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
809
916
|
};
|
|
810
|
-
XPickerMonthComponent.prototype.
|
|
917
|
+
XPickerMonthComponent.prototype.setDisplay = function (date) {
|
|
918
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
919
|
+
this.setMonths(this.display);
|
|
920
|
+
};
|
|
921
|
+
XPickerMonthComponent.prototype.nextYear = function (num) {
|
|
922
|
+
var date = new Date(this.display);
|
|
923
|
+
date.setFullYear(date.getFullYear() + num);
|
|
924
|
+
this.setDisplay(date);
|
|
925
|
+
this.cdr.detectChanges();
|
|
926
|
+
};
|
|
927
|
+
XPickerMonthComponent.prototype.typeOnChange = function (type) {
|
|
928
|
+
this.type = type;
|
|
929
|
+
this.typeChange.emit(type);
|
|
930
|
+
this.cdr.detectChanges();
|
|
931
|
+
};
|
|
932
|
+
XPickerMonthComponent.prototype.trackByMonth = function (_index, item) {
|
|
811
933
|
return item;
|
|
812
934
|
};
|
|
813
935
|
return XPickerMonthComponent;
|
|
814
936
|
}(XPickerMonthProperty));
|
|
815
|
-
/** @nocollapse */ XPickerMonthComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
816
|
-
/** @nocollapse */ XPickerMonthComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
817
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
937
|
+
/** @nocollapse */ XPickerMonthComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.XConfigService }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
938
|
+
/** @nocollapse */ XPickerMonthComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerMonthComponent, selector: "x-picker-month", providers: [i1.DatePipe, i1.LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, 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-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <div class=\"x-picker-month-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeOnChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\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 dates\">\r\n <ng-container *ngFor=\"let month of months; trackBy: trackByMonth\">\r\n <td\r\n [class.x-date-last-or-next]=\"(month | date: 'yyyy') !== (display | date: 'yyyy')\"\r\n [class.x-date-now]=\"(month | date: 'yyyyMM') === (now | date: 'yyyyMM')\"\r\n (click)=\"monthTemp && monthClick(month)\"\r\n >\r\n <x-button\r\n *ngIf=\"!monthTemp\"\r\n type=\"text\"\r\n title=\"{{ month | date: 'yyyy-MM' }}\"\r\n [activated]=\"(month | date: 'yyyyMM') === (model | date: 'yyyyMM')\"\r\n (click)=\"monthClick(month)\"\r\n >{{ getLocaleMonth(month) }}</x-button\r\n >\r\n <ng-container *ngIf=\"monthTemp\">\r\n <ng-container *ngTemplateOutlet=\"monthTemp; context: { date$: month }\"></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:.5rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-picker-month-year-month{flex:1;text-align:center}.x-picker-month-body{padding:.5rem}.x-picker-month-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-month-body>table td{padding:.125rem 0;text-align:center}.x-picker-month-body>table td x-button .x-button{width:3.5rem;height:3.25rem;margin:0 auto;border:.0625rem solid transparent}.x-picker-month-body>table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-month-body>table td x-button .x-button-activated{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-month-body>table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-month-body>table td.x-date-last-or-next x-button .x-button{color:var(--x-text-700)}.x-picker-month-body>table td.x-date-now x-button .x-button:not(.x-button-activated){color:var(--x-primary);background-color:transparent;border-color:var(--x-primary)}\n"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
939
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthComponent, decorators: [{
|
|
818
940
|
type: i0.Component,
|
|
819
941
|
args: [{
|
|
820
942
|
selector: 'x-picker-month',
|
|
@@ -822,9 +944,9 @@
|
|
|
822
944
|
styleUrls: ['./picker-month.component.scss'],
|
|
823
945
|
encapsulation: i0.ViewEncapsulation.None,
|
|
824
946
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
825
|
-
providers: [i1
|
|
947
|
+
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
826
948
|
}]
|
|
827
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace
|
|
949
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XConfigService }, { type: i3__namespace.XI18nService }]; } });
|
|
828
950
|
|
|
829
951
|
var XPickerYearComponent = /** @class */ (function (_super) {
|
|
830
952
|
__extends(XPickerYearComponent, _super);
|
|
@@ -839,20 +961,21 @@
|
|
|
839
961
|
return _this;
|
|
840
962
|
}
|
|
841
963
|
XPickerYearComponent.prototype.ngOnChanges = function (simples) {
|
|
842
|
-
|
|
964
|
+
var display = simples.display;
|
|
965
|
+
i2.XIsChange(display) && this.init();
|
|
843
966
|
};
|
|
844
967
|
XPickerYearComponent.prototype.init = function () {
|
|
845
|
-
this.setYears();
|
|
968
|
+
this.setYears(this.display);
|
|
846
969
|
};
|
|
847
|
-
XPickerYearComponent.prototype.setYears = function () {
|
|
848
|
-
var year =
|
|
970
|
+
XPickerYearComponent.prototype.setYears = function (date) {
|
|
971
|
+
var year = date.getFullYear();
|
|
849
972
|
this.start = Math.floor(year / 10) * 10;
|
|
850
973
|
this.end = this.start + 9;
|
|
851
974
|
var dates = [];
|
|
852
975
|
for (var i = -3; i < 13; i++) {
|
|
853
976
|
dates = __spreadArray(__spreadArray([], __read(dates)), [new Date(this.start + i, 1, 1)]);
|
|
854
977
|
}
|
|
855
|
-
this.dates =
|
|
978
|
+
this.dates = i2.chunk(dates, 4);
|
|
856
979
|
this.startChange.emit(this.start);
|
|
857
980
|
};
|
|
858
981
|
XPickerYearComponent.prototype.yearClick = function (date) {
|
|
@@ -864,17 +987,28 @@
|
|
|
864
987
|
var yearStr = this.datePipe.transform(year, 'yyyy');
|
|
865
988
|
return yearStr < "" + this.start || yearStr > "" + this.end;
|
|
866
989
|
};
|
|
990
|
+
XPickerYearComponent.prototype.setDisplay = function (date) {
|
|
991
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
992
|
+
this.setYears(this.display);
|
|
993
|
+
};
|
|
994
|
+
XPickerYearComponent.prototype.nextYears = function (num) {
|
|
995
|
+
this.start += num;
|
|
996
|
+
var date = new Date(this.display);
|
|
997
|
+
date.setFullYear(this.start);
|
|
998
|
+
this.setDisplay(date);
|
|
999
|
+
this.cdr.detectChanges();
|
|
1000
|
+
};
|
|
867
1001
|
XPickerYearComponent.prototype.equalYear = function (one, two) {
|
|
868
1002
|
return this.datePipe.transform(one, 'yyyy') === this.datePipe.transform(two, 'yyyy');
|
|
869
1003
|
};
|
|
870
|
-
XPickerYearComponent.prototype.trackByYear = function (
|
|
1004
|
+
XPickerYearComponent.prototype.trackByYear = function (_index, item) {
|
|
871
1005
|
return item;
|
|
872
1006
|
};
|
|
873
1007
|
return XPickerYearComponent;
|
|
874
1008
|
}(XPickerYearProperty));
|
|
875
|
-
/** @nocollapse */ XPickerYearComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
876
|
-
/** @nocollapse */ XPickerYearComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
877
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
1009
|
+
/** @nocollapse */ XPickerYearComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.DatePipe }, { token: i2__namespace.XConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1010
|
+
/** @nocollapse */ XPickerYearComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerYearComponent, selector: "x-picker-year", providers: [i1.DatePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-year\">\r\n <div class=\"x-picker-year-header\" *ngIf=\"showHeader\">\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYears(-10)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\">{{ start }}</x-button> -\r\n <x-button type=\"text\" size=\"small\">{{ end }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYears(10)\"></x-button>\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 dates\">\r\n <ng-container *ngFor=\"let year of years; trackBy: trackByYear\">\r\n <td [class.x-date-last-or-next]=\"lastOrNext(year)\" [class.x-date-now]=\"equalYear(year, now)\">\r\n <x-button type=\"text\" [activated]=\"equalYear(year, now)\" (click)=\"yearClick(year)\">{{ year | date: 'yyyy' }}</x-button>\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:.5rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-picker-year-year-month{flex:1;text-align:center}.x-picker-year-body{padding:.5rem}.x-picker-year-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-year-body>table td{padding:.125rem 0;text-align:center}.x-picker-year-body>table td x-button .x-button{width:3.5rem;height:3.25rem;margin:0 auto;border:.0625rem solid transparent}.x-picker-year-body>table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-year-body>table td x-button .x-button-activated{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-year-body>table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-year-body>table td.x-date-last-or-next x-button .x-button{color:var(--x-text-700)}.x-picker-year-body>table td.x-date-now x-button .x-button:not(.x-button-activated){color:var(--x-primary);background-color:transparent;border-color:var(--x-primary)}\n"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1011
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearComponent, decorators: [{
|
|
878
1012
|
type: i0.Component,
|
|
879
1013
|
args: [{
|
|
880
1014
|
selector: 'x-picker-year',
|
|
@@ -882,9 +1016,9 @@
|
|
|
882
1016
|
styleUrls: ['./picker-year.component.scss'],
|
|
883
1017
|
encapsulation: i0.ViewEncapsulation.None,
|
|
884
1018
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
885
|
-
providers: [i1
|
|
1019
|
+
providers: [i1.DatePipe]
|
|
886
1020
|
}]
|
|
887
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace
|
|
1021
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.DatePipe }, { type: i2__namespace.XConfigService }]; } });
|
|
888
1022
|
|
|
889
1023
|
var XDatePickerPortalComponent = /** @class */ (function () {
|
|
890
1024
|
function XDatePickerPortalComponent(datePipe, lowerCasePipe, cdr, i18n) {
|
|
@@ -895,6 +1029,7 @@
|
|
|
895
1029
|
this.type = 'date';
|
|
896
1030
|
this.display = new Date();
|
|
897
1031
|
this.locale = {};
|
|
1032
|
+
this.time = new Date().getTime();
|
|
898
1033
|
this.preset = [];
|
|
899
1034
|
this._unSubject = new rxjs.Subject();
|
|
900
1035
|
}
|
|
@@ -902,7 +1037,7 @@
|
|
|
902
1037
|
this.animating(false);
|
|
903
1038
|
event.toState === 'void' && this.destroyPortal();
|
|
904
1039
|
};
|
|
905
|
-
XDatePickerPortalComponent.prototype.start = function (
|
|
1040
|
+
XDatePickerPortalComponent.prototype.start = function () {
|
|
906
1041
|
this.animating(true);
|
|
907
1042
|
};
|
|
908
1043
|
XDatePickerPortalComponent.prototype.ngOnInit = function () {
|
|
@@ -930,15 +1065,10 @@
|
|
|
930
1065
|
this._unSubject.unsubscribe();
|
|
931
1066
|
};
|
|
932
1067
|
XDatePickerPortalComponent.prototype.init = function () {
|
|
933
|
-
if (!
|
|
1068
|
+
if (!i2.XIsEmpty(this.value)) {
|
|
934
1069
|
this.setDefault();
|
|
935
1070
|
}
|
|
936
|
-
else {
|
|
937
|
-
this.model = this.display;
|
|
938
|
-
}
|
|
939
|
-
this.time = this.model.getTime();
|
|
940
1071
|
this._type = this.type;
|
|
941
|
-
this.setDisplay(this.model);
|
|
942
1072
|
this.cdr.detectChanges();
|
|
943
1073
|
};
|
|
944
1074
|
XDatePickerPortalComponent.prototype.stopPropagation = function (event) {
|
|
@@ -947,6 +1077,8 @@
|
|
|
947
1077
|
XDatePickerPortalComponent.prototype.setDefault = function () {
|
|
948
1078
|
var date = new Date(this.value);
|
|
949
1079
|
this.model = date;
|
|
1080
|
+
this.time = this.model.getTime();
|
|
1081
|
+
this.setDisplay(this.model);
|
|
950
1082
|
};
|
|
951
1083
|
XDatePickerPortalComponent.prototype.setDisplay = function (date) {
|
|
952
1084
|
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
@@ -954,18 +1086,14 @@
|
|
|
954
1086
|
XDatePickerPortalComponent.prototype.dateChange = function (date) {
|
|
955
1087
|
this.setDisplay(date);
|
|
956
1088
|
this.model = date;
|
|
957
|
-
this.setModel(this.model, new Date(this.time));
|
|
958
1089
|
if (['date-time', 'date-hour', 'date-minute'].includes(this._type)) {
|
|
1090
|
+
this.setModelTime(this.model, new Date(this.time));
|
|
959
1091
|
this.nodeEmit(this.model, false);
|
|
960
1092
|
}
|
|
961
1093
|
else {
|
|
962
1094
|
this.nodeEmit(this.model);
|
|
963
1095
|
}
|
|
964
1096
|
};
|
|
965
|
-
XDatePickerPortalComponent.prototype.typeChange = function (type) {
|
|
966
|
-
this.type = type;
|
|
967
|
-
this.cdr.detectChanges();
|
|
968
|
-
};
|
|
969
1097
|
XDatePickerPortalComponent.prototype.monthChange = function (date) {
|
|
970
1098
|
this.setDisplay(date);
|
|
971
1099
|
if (this._type === 'month') {
|
|
@@ -988,58 +1116,32 @@
|
|
|
988
1116
|
}
|
|
989
1117
|
this.cdr.detectChanges();
|
|
990
1118
|
};
|
|
991
|
-
XDatePickerPortalComponent.prototype.yearStartChange = function (number) {
|
|
992
|
-
this.startYear = number;
|
|
993
|
-
this.cdr.detectChanges();
|
|
994
|
-
};
|
|
995
|
-
XDatePickerPortalComponent.prototype.nextMonth = function (num) {
|
|
996
|
-
var date = new Date(this.display);
|
|
997
|
-
date.setMonth(date.getMonth() + num);
|
|
998
|
-
this.setDisplay(date);
|
|
999
|
-
this.cdr.detectChanges();
|
|
1000
|
-
};
|
|
1001
|
-
XDatePickerPortalComponent.prototype.nextYear = function (num) {
|
|
1002
|
-
var date = new Date(this.display);
|
|
1003
|
-
date.setFullYear(date.getFullYear() + num);
|
|
1004
|
-
this.setDisplay(date);
|
|
1005
|
-
this.cdr.detectChanges();
|
|
1006
|
-
};
|
|
1007
|
-
XDatePickerPortalComponent.prototype.nextYears = function (num) {
|
|
1008
|
-
this.startYear += num;
|
|
1009
|
-
var date = new Date(this.display);
|
|
1010
|
-
date.setFullYear(this.startYear);
|
|
1011
|
-
this.setDisplay(date);
|
|
1012
|
-
this.cdr.detectChanges();
|
|
1013
|
-
};
|
|
1014
|
-
XDatePickerPortalComponent.prototype.getLocaleMonth = function (date) {
|
|
1015
|
-
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
1016
|
-
};
|
|
1017
1119
|
XDatePickerPortalComponent.prototype.onToday = function () {
|
|
1018
1120
|
this.dateChange(new Date());
|
|
1019
1121
|
};
|
|
1020
1122
|
XDatePickerPortalComponent.prototype.onYesterday = function () {
|
|
1021
|
-
this.dateChange(
|
|
1123
|
+
this.dateChange(i2.XAddDays(new Date(), -1));
|
|
1022
1124
|
};
|
|
1023
1125
|
XDatePickerPortalComponent.prototype.onTomorrow = function () {
|
|
1024
|
-
this.dateChange(
|
|
1126
|
+
this.dateChange(i2.XAddDays(new Date(), 1));
|
|
1025
1127
|
};
|
|
1026
1128
|
XDatePickerPortalComponent.prototype.onPresetFunc = function (item) {
|
|
1027
1129
|
this.dateChange(item.func());
|
|
1028
1130
|
};
|
|
1029
1131
|
XDatePickerPortalComponent.prototype.selectTime = function (time) {
|
|
1030
1132
|
this.time = time.getTime();
|
|
1031
|
-
this.nodeEmit(this.
|
|
1133
|
+
this.nodeEmit(this.setModelTime(this.model, time), false);
|
|
1032
1134
|
this.cdr.detectChanges();
|
|
1033
1135
|
};
|
|
1034
|
-
XDatePickerPortalComponent.prototype.
|
|
1136
|
+
XDatePickerPortalComponent.prototype.setModelTime = function (date, time) {
|
|
1035
1137
|
this.model = new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
|
|
1036
1138
|
return this.model;
|
|
1037
1139
|
};
|
|
1038
1140
|
return XDatePickerPortalComponent;
|
|
1039
1141
|
}());
|
|
1040
|
-
/** @nocollapse */ XDatePickerPortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
1041
|
-
/** @nocollapse */ XDatePickerPortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
1042
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
1142
|
+
/** @nocollapse */ XDatePickerPortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerPortalComponent, deps: [{ token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1143
|
+
/** @nocollapse */ XDatePickerPortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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: [i1.DatePipe, i1.LowerCasePipe], ngImport: i0__namespace, template: "<div class=\"x-date-picker-portal {{ type }}\" [ngSwitch]=\"type\" (click)=\"inputCom.inputFocus()\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <x-picker-date [display]=\"display\" [model]=\"model\" [(type)]=\"type\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n <div *ngIf=\"preset\" class=\"x-date-picker-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-button type=\"text\" *ngIf=\"item.id === 'yesterday'\" (click)=\"onYesterday()\">{{ locale.yesterday }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'today'\" (click)=\"onToday()\">{{ locale.today }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'tomorrow'\" (click)=\"onTomorrow()\">{{ locale.tomorrow }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <x-picker-month [display]=\"display\" [model]=\"model\" [(type)]=\"type\" (modelChange)=\"monthChange($event)\"></x-picker-month>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <x-picker-year [display]=\"display\" [model]=\"model\" [(type)]=\"type\" (modelChange)=\"yearChange($event)\"></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\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 [display]=\"display\" [(type)]=\"type\" [model]=\"model\" (modelChange)=\"dateChange($event)\"></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 <x-button type=\"text\" size=\"small\">{{ time | date: timeFormat }}</x-button>\r\n </div>\r\n <x-time-picker-frame [type]=\"timeType\" [value]=\"time\" (nodeEmit)=\"selectTime($event)\"></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <div class=\"x-date-picker-portal-footer\">\r\n <x-button type=\"primary\" size=\"small\" (click)=\"nodeEmit(model)\">{{ locale.sure }}</x-button>\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;font-size:var(--x-font-size-small)}.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-content{display:flex}.x-date-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-date-picker-portal-preset>x-button{flex:1}.x-date-picker-portal-body{padding:.4rem}.x-date-picker-portal-footer{display:flex;justify-content:flex-end;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{padding:.5rem;text-align:center;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"], components: [{ type: XPickerDateComponent, selector: "x-picker-date" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }, { type: XPickerMonthComponent, selector: "x-picker-month" }, { type: XPickerYearComponent, selector: "x-picker-year" }, { type: i7__namespace.XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value"], outputs: ["nodeEmit"] }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe }, animations: [i2.XConnectBaseAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1144
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerPortalComponent, decorators: [{
|
|
1043
1145
|
type: i0.Component,
|
|
1044
1146
|
args: [{
|
|
1045
1147
|
selector: "" + XDatePickerPortalPrefix,
|
|
@@ -1047,10 +1149,10 @@
|
|
|
1047
1149
|
styleUrls: ['./date-picker-portal.component.scss'],
|
|
1048
1150
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1049
1151
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1050
|
-
animations: [
|
|
1051
|
-
providers: [i1
|
|
1152
|
+
animations: [i2.XConnectBaseAnimation],
|
|
1153
|
+
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
1052
1154
|
}]
|
|
1053
|
-
}], ctorParameters: function () { return [{ type: i1__namespace
|
|
1155
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.XI18nService }]; }, propDecorators: { placement: [{
|
|
1054
1156
|
type: i0.HostBinding,
|
|
1055
1157
|
args: ['@x-connect-base-animation']
|
|
1056
1158
|
}], done: [{
|
|
@@ -1063,11 +1165,10 @@
|
|
|
1063
1165
|
|
|
1064
1166
|
var XDatePickerComponent = /** @class */ (function (_super) {
|
|
1065
1167
|
__extends(XDatePickerComponent, _super);
|
|
1066
|
-
function XDatePickerComponent(renderer, configService,
|
|
1168
|
+
function XDatePickerComponent(renderer, configService, cdr, portalService, viewContainerRef, datePipe, overlay) {
|
|
1067
1169
|
var _this = _super.call(this) || this;
|
|
1068
1170
|
_this.renderer = renderer;
|
|
1069
1171
|
_this.configService = configService;
|
|
1070
|
-
_this.elementRef = elementRef;
|
|
1071
1172
|
_this.cdr = cdr;
|
|
1072
1173
|
_this.portalService = portalService;
|
|
1073
1174
|
_this.viewContainerRef = viewContainerRef;
|
|
@@ -1090,20 +1191,20 @@
|
|
|
1090
1191
|
return _this;
|
|
1091
1192
|
}
|
|
1092
1193
|
XDatePickerComponent.prototype.writeValue = function (value) {
|
|
1093
|
-
if (
|
|
1194
|
+
if (i2.XIsDate(value)) {
|
|
1094
1195
|
this.modelType = 'date';
|
|
1095
1196
|
this.numberValue = value.getTime();
|
|
1096
1197
|
}
|
|
1097
|
-
else if (
|
|
1198
|
+
else if (i2.XIsNumber(value)) {
|
|
1098
1199
|
this.modelType = 'number';
|
|
1099
1200
|
this.numberValue = value;
|
|
1100
1201
|
}
|
|
1101
|
-
else if (
|
|
1202
|
+
else if (i2.XIsString(value)) {
|
|
1102
1203
|
this.modelType = 'string';
|
|
1103
1204
|
var valueTime = new Date(value).getTime();
|
|
1104
1205
|
this.numberValue = !isNaN(valueTime) ? valueTime : '';
|
|
1105
1206
|
}
|
|
1106
|
-
else if (
|
|
1207
|
+
else if (i2.XIsEmpty(value)) {
|
|
1107
1208
|
this.numberValue = '';
|
|
1108
1209
|
}
|
|
1109
1210
|
this.value = value;
|
|
@@ -1121,7 +1222,8 @@
|
|
|
1121
1222
|
this.setPortal();
|
|
1122
1223
|
};
|
|
1123
1224
|
XDatePickerComponent.prototype.ngOnChanges = function (changes) {
|
|
1124
|
-
|
|
1225
|
+
var type = changes.type;
|
|
1226
|
+
if (i2.XIsChange(type)) {
|
|
1125
1227
|
this.setFormat();
|
|
1126
1228
|
this.setDisplayValue(this.numberValue);
|
|
1127
1229
|
}
|
|
@@ -1132,7 +1234,7 @@
|
|
|
1132
1234
|
};
|
|
1133
1235
|
XDatePickerComponent.prototype.setSubject = function () {
|
|
1134
1236
|
var _this = this;
|
|
1135
|
-
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function (
|
|
1237
|
+
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
|
|
1136
1238
|
_this.closePortal();
|
|
1137
1239
|
});
|
|
1138
1240
|
};
|
|
@@ -1162,7 +1264,7 @@
|
|
|
1162
1264
|
if (this.disabled)
|
|
1163
1265
|
return;
|
|
1164
1266
|
this.enter = true;
|
|
1165
|
-
if (!
|
|
1267
|
+
if (!i2.XIsEmpty(this.numberValue)) {
|
|
1166
1268
|
this.icon = '';
|
|
1167
1269
|
this.inputClearable = true;
|
|
1168
1270
|
this.cdr.detectChanges();
|
|
@@ -1192,11 +1294,7 @@
|
|
|
1192
1294
|
}
|
|
1193
1295
|
};
|
|
1194
1296
|
XDatePickerComponent.prototype.getValue = function () {
|
|
1195
|
-
return this.modelType
|
|
1196
|
-
? new Date(this.numberValue)
|
|
1197
|
-
: this.modelType === 'string'
|
|
1198
|
-
? this.datePipe.transform(this.numberValue, this.format)
|
|
1199
|
-
: this.numberValue;
|
|
1297
|
+
return ['date', 'string'].includes(this.modelType) ? new Date(this.numberValue) : this.numberValue;
|
|
1200
1298
|
};
|
|
1201
1299
|
XDatePickerComponent.prototype.portalAttached = function () {
|
|
1202
1300
|
var _a, _b;
|
|
@@ -1206,6 +1304,7 @@
|
|
|
1206
1304
|
var _a, _b;
|
|
1207
1305
|
if (this.portalAttached()) {
|
|
1208
1306
|
(_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.detach();
|
|
1307
|
+
this.active = false;
|
|
1209
1308
|
this.cdr.detectChanges();
|
|
1210
1309
|
return true;
|
|
1211
1310
|
}
|
|
@@ -1220,6 +1319,7 @@
|
|
|
1220
1319
|
var _a;
|
|
1221
1320
|
if (this.disabled || this.animating)
|
|
1222
1321
|
return;
|
|
1322
|
+
this.active = true;
|
|
1223
1323
|
var config = {
|
|
1224
1324
|
backdropClass: '',
|
|
1225
1325
|
positionStrategy: this.setPlacement(),
|
|
@@ -1258,6 +1358,7 @@
|
|
|
1258
1358
|
preset: this.preset,
|
|
1259
1359
|
valueChange: this.valueChange,
|
|
1260
1360
|
positionChange: this.positionChange,
|
|
1361
|
+
inputCom: this.inputCom,
|
|
1261
1362
|
closePortal: function () { return _this.closeSubject.next(); },
|
|
1262
1363
|
destroyPortal: function () { return _this.destroyPortal(); },
|
|
1263
1364
|
nodeEmit: function (node, sure) {
|
|
@@ -1311,7 +1412,7 @@
|
|
|
1311
1412
|
this.portalAttached() && ((_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.updatePositionStrategy(this.setPlacement()));
|
|
1312
1413
|
};
|
|
1313
1414
|
XDatePickerComponent.prototype.setClassMap = function () {
|
|
1314
|
-
|
|
1415
|
+
i2.XClearClass(this.labelMap);
|
|
1315
1416
|
this.labelMap["x-text-align-" + this.labelAlign] = this.labelAlign ? true : false;
|
|
1316
1417
|
};
|
|
1317
1418
|
XDatePickerComponent.prototype.formControlChanges = function () {
|
|
@@ -1320,9 +1421,9 @@
|
|
|
1320
1421
|
};
|
|
1321
1422
|
return XDatePickerComponent;
|
|
1322
1423
|
}(XDatePickerProperty));
|
|
1323
|
-
/** @nocollapse */ XDatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
1324
|
-
/** @nocollapse */ XDatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
1325
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
1424
|
+
/** @nocollapse */ XDatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i2__namespace.XConfigService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.XPortalService }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace.DatePipe }, { token: i4__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1425
|
+
/** @nocollapse */ XDatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDatePickerComponent, selector: "x-date-picker", providers: [baseForm.XValueAccessor(XDatePickerComponent), i1.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__namespace, 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 [icon]=\"icon\"\r\n [placeholder]=\"placeholder\"\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}.x-date-picker{margin:0;padding:0;width:100%}.x-date-picker x-input{width:100%}\n"], components: [{ type: i5__namespace.XInputComponent, selector: "x-input" }], directives: [{ type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6__namespace.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1426
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerComponent, decorators: [{
|
|
1326
1427
|
type: i0.Component,
|
|
1327
1428
|
args: [{
|
|
1328
1429
|
selector: "" + XDatePickerPrefix,
|
|
@@ -1330,9 +1431,9 @@
|
|
|
1330
1431
|
styleUrls: ['./date-picker.component.scss'],
|
|
1331
1432
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1332
1433
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1333
|
-
providers: [baseForm.XValueAccessor(XDatePickerComponent), i1
|
|
1434
|
+
providers: [baseForm.XValueAccessor(XDatePickerComponent), i1.DatePipe]
|
|
1334
1435
|
}]
|
|
1335
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type:
|
|
1436
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i2__namespace.XConfigService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.XPortalService }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace.DatePipe }, { type: i4__namespace$1.Overlay }]; }, propDecorators: { datePicker: [{
|
|
1336
1437
|
type: i0.ViewChild,
|
|
1337
1438
|
args: ['datePicker', { static: true }]
|
|
1338
1439
|
}], inputCom: [{
|
|
@@ -1348,6 +1449,9 @@
|
|
|
1348
1449
|
this.i18n = i18n;
|
|
1349
1450
|
this.type = 'date';
|
|
1350
1451
|
this.display = new Date();
|
|
1452
|
+
this.startDisplay = new Date();
|
|
1453
|
+
this.endDisplay = i2.XAddMonths(this.startDisplay, 1);
|
|
1454
|
+
this.value = [];
|
|
1351
1455
|
this.locale = {};
|
|
1352
1456
|
this.preset = [];
|
|
1353
1457
|
this._unSubject = new rxjs.Subject();
|
|
@@ -1356,7 +1460,7 @@
|
|
|
1356
1460
|
this.animating(false);
|
|
1357
1461
|
event.toState === 'void' && this.destroyPortal();
|
|
1358
1462
|
};
|
|
1359
|
-
XDateRangePortalComponent.prototype.start = function (
|
|
1463
|
+
XDateRangePortalComponent.prototype.start = function () {
|
|
1360
1464
|
this.animating(true);
|
|
1361
1465
|
};
|
|
1362
1466
|
XDateRangePortalComponent.prototype.ngOnInit = function () {
|
|
@@ -1384,11 +1488,14 @@
|
|
|
1384
1488
|
this._unSubject.unsubscribe();
|
|
1385
1489
|
};
|
|
1386
1490
|
XDateRangePortalComponent.prototype.init = function () {
|
|
1387
|
-
if (!
|
|
1491
|
+
if (!i2.XIsEmpty(this.value)) {
|
|
1388
1492
|
this.setDefault();
|
|
1389
1493
|
}
|
|
1390
1494
|
else {
|
|
1495
|
+
this.value = [];
|
|
1391
1496
|
this.model = this.display;
|
|
1497
|
+
this.startModel = this.model;
|
|
1498
|
+
this.endModel = i2.XAddMonths(this.model, 1);
|
|
1392
1499
|
}
|
|
1393
1500
|
this.time = this.model.getTime();
|
|
1394
1501
|
this._type = this.type;
|
|
@@ -1399,21 +1506,39 @@
|
|
|
1399
1506
|
event.stopPropagation();
|
|
1400
1507
|
};
|
|
1401
1508
|
XDateRangePortalComponent.prototype.setDefault = function () {
|
|
1402
|
-
var date = new Date(
|
|
1509
|
+
var date = new Date();
|
|
1403
1510
|
this.model = date;
|
|
1511
|
+
if (this.value.length > 0) {
|
|
1512
|
+
this.startModel = new Date(this.value[0]);
|
|
1513
|
+
this.startDisplay = this.startModel;
|
|
1514
|
+
}
|
|
1515
|
+
if (this.value.length > 1) {
|
|
1516
|
+
this.endModel = new Date(this.value[1]);
|
|
1517
|
+
this.endDisplay = this.endModel;
|
|
1518
|
+
}
|
|
1404
1519
|
};
|
|
1405
1520
|
XDateRangePortalComponent.prototype.setDisplay = function (date) {
|
|
1406
1521
|
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1522
|
+
this.startDisplay = this.display;
|
|
1523
|
+
this.endDisplay = i2.XAddMonths(this.display, 1);
|
|
1407
1524
|
};
|
|
1408
1525
|
XDateRangePortalComponent.prototype.dateChange = function (date) {
|
|
1409
|
-
|
|
1410
|
-
this.
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1526
|
+
var time = date.getTime();
|
|
1527
|
+
if (this.value.length === 0) {
|
|
1528
|
+
this.value.push(time);
|
|
1529
|
+
this.startNodeEmit(date);
|
|
1530
|
+
}
|
|
1531
|
+
else if (this.value.length === 1) {
|
|
1532
|
+
if (time > this.value[0]) {
|
|
1533
|
+
this.value.push(time);
|
|
1534
|
+
this.endNodeEmit(date);
|
|
1535
|
+
}
|
|
1536
|
+
else {
|
|
1537
|
+
this.value.unshift(time);
|
|
1538
|
+
this.startNodeEmit(date);
|
|
1539
|
+
this.endNodeEmit(new Date(this.value[1]));
|
|
1540
|
+
}
|
|
1541
|
+
this.nodeEmit(this.value.map(function (x) { return new Date(x); }));
|
|
1417
1542
|
}
|
|
1418
1543
|
};
|
|
1419
1544
|
XDateRangePortalComponent.prototype.typeChange = function (type) {
|
|
@@ -1424,7 +1549,7 @@
|
|
|
1424
1549
|
this.setDisplay(date);
|
|
1425
1550
|
if (this._type === 'month') {
|
|
1426
1551
|
this.model = date;
|
|
1427
|
-
this.nodeEmit(date);
|
|
1552
|
+
// this.nodeEmit(date);
|
|
1428
1553
|
}
|
|
1429
1554
|
else {
|
|
1430
1555
|
this.type = this._type;
|
|
@@ -1435,7 +1560,7 @@
|
|
|
1435
1560
|
this.setDisplay(date);
|
|
1436
1561
|
if (this._type === 'year') {
|
|
1437
1562
|
this.model = date;
|
|
1438
|
-
this.nodeEmit(date);
|
|
1563
|
+
// this.nodeEmit(date);
|
|
1439
1564
|
}
|
|
1440
1565
|
else {
|
|
1441
1566
|
this.type = 'month';
|
|
@@ -1472,17 +1597,17 @@
|
|
|
1472
1597
|
this.dateChange(new Date());
|
|
1473
1598
|
};
|
|
1474
1599
|
XDateRangePortalComponent.prototype.onYesterday = function () {
|
|
1475
|
-
this.dateChange(
|
|
1600
|
+
this.dateChange(i2.XAddDays(new Date(), -1));
|
|
1476
1601
|
};
|
|
1477
1602
|
XDateRangePortalComponent.prototype.onTomorrow = function () {
|
|
1478
|
-
this.dateChange(
|
|
1603
|
+
this.dateChange(i2.XAddDays(new Date(), 1));
|
|
1479
1604
|
};
|
|
1480
1605
|
XDateRangePortalComponent.prototype.onPresetFunc = function (item) {
|
|
1481
1606
|
this.dateChange(item.func());
|
|
1482
1607
|
};
|
|
1483
1608
|
XDateRangePortalComponent.prototype.selectTime = function (time) {
|
|
1484
1609
|
this.time = time.getTime();
|
|
1485
|
-
this.nodeEmit(this.setModel(this.model, time), false);
|
|
1610
|
+
// this.nodeEmit(this.setModel(this.model, time), false);
|
|
1486
1611
|
this.cdr.detectChanges();
|
|
1487
1612
|
};
|
|
1488
1613
|
XDateRangePortalComponent.prototype.setModel = function (date, time) {
|
|
@@ -1491,9 +1616,9 @@
|
|
|
1491
1616
|
};
|
|
1492
1617
|
return XDateRangePortalComponent;
|
|
1493
1618
|
}());
|
|
1494
|
-
/** @nocollapse */ XDateRangePortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
1495
|
-
/** @nocollapse */ XDateRangePortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
1496
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
1619
|
+
/** @nocollapse */ XDateRangePortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangePortalComponent, deps: [{ token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1620
|
+
/** @nocollapse */ XDateRangePortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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: [i1.DatePipe, i1.LowerCasePipe], ngImport: i0__namespace, template: "<div class=\"x-date-range-portal {{ type }}\" [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div class=\"x-date-range-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"startDateHeaderTpl\"></ng-container>\r\n <ng-container *ngTemplateOutlet=\"endDateHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-range-portal-body\">\r\n <x-picker-date\r\n class=\"x-date-range-portal-start\"\r\n [display]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n (modelChange)=\"dateChange($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n <x-picker-date\r\n class=\"x-date-range-portal-end\"\r\n [display]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n (modelChange)=\"dateChange($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </div>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #startDateHeaderTpl>\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\"></x-button>\r\n <div class=\"x-date-range-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ startDisplay | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('month')\">{{ getLocaleMonth(startDisplay) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon style=\"visibility: hidden\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon style=\"visibility: hidden\"></x-button>\r\n</ng-template>\r\n\r\n<ng-template #endDateHeaderTpl>\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\" style=\"visibility: hidden\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\" style=\"visibility: hidden\"></x-button>\r\n <div class=\"x-date-range-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ endDisplay | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('month')\">{{ getLocaleMonth(endDisplay) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextMonth(1)\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\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;font-size:var(--x-font-size-small)}.x-date-range-portal.date-time{width:27rem}.x-date-range-portal.date-hour{width:19.75rem}.x-date-range-portal.date-minute{width:23.375rem}.x-date-range-portal-content{display:flex}.x-date-range-portal-header{display:flex;align-items:center;justify-content:space-between;padding:.4rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset>x-button{flex:1}.x-date-range-portal-year-month{flex:1;text-align:center}.x-date-range-portal-body{padding:.4rem;display:flex}.x-date-range-portal-start{flex:1;margin-right:.4rem}.x-date-range-portal-end{flex:1;margin-left:.4rem}.x-date-range-portal-footer{display:flex;justify-content:flex-end;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-date{flex:1}.x-date-range-portal-time{display:flex;flex-direction:column}.x-date-range-portal-time-label{padding:.4rem;text-align:center;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time .x-time-picker-frame{border-width:var(--x-border-width) 0 0 var(--x-border-width);box-shadow:none}\n"], components: [{ type: XPickerDateComponent, selector: "x-picker-date" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe }, animations: [i2.XConnectBaseAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1621
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangePortalComponent, decorators: [{
|
|
1497
1622
|
type: i0.Component,
|
|
1498
1623
|
args: [{
|
|
1499
1624
|
selector: "" + XDateRangePortalPrefix,
|
|
@@ -1501,10 +1626,10 @@
|
|
|
1501
1626
|
styleUrls: ['./date-range-portal.component.scss'],
|
|
1502
1627
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1503
1628
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1504
|
-
animations: [
|
|
1505
|
-
providers: [i1
|
|
1629
|
+
animations: [i2.XConnectBaseAnimation],
|
|
1630
|
+
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
1506
1631
|
}]
|
|
1507
|
-
}], ctorParameters: function () { return [{ type: i1__namespace
|
|
1632
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.XI18nService }]; }, propDecorators: { placement: [{
|
|
1508
1633
|
type: i0.HostBinding,
|
|
1509
1634
|
args: ['@x-connect-base-animation']
|
|
1510
1635
|
}], done: [{
|
|
@@ -1517,11 +1642,10 @@
|
|
|
1517
1642
|
|
|
1518
1643
|
var XDateRangeComponent = /** @class */ (function (_super) {
|
|
1519
1644
|
__extends(XDateRangeComponent, _super);
|
|
1520
|
-
function XDateRangeComponent(renderer, configService,
|
|
1645
|
+
function XDateRangeComponent(renderer, configService, cdr, portalService, viewContainerRef, datePipe, overlay) {
|
|
1521
1646
|
var _this = _super.call(this) || this;
|
|
1522
1647
|
_this.renderer = renderer;
|
|
1523
1648
|
_this.configService = configService;
|
|
1524
|
-
_this.elementRef = elementRef;
|
|
1525
1649
|
_this.cdr = cdr;
|
|
1526
1650
|
_this.portalService = portalService;
|
|
1527
1651
|
_this.viewContainerRef = viewContainerRef;
|
|
@@ -1529,11 +1653,10 @@
|
|
|
1529
1653
|
_this.overlay = overlay;
|
|
1530
1654
|
_this.modelType = 'date';
|
|
1531
1655
|
_this.isInput = false;
|
|
1532
|
-
_this.isFocus = false;
|
|
1533
1656
|
_this.enter = false;
|
|
1534
1657
|
_this.inputClearable = false;
|
|
1535
1658
|
_this.animating = false;
|
|
1536
|
-
_this.displayValue =
|
|
1659
|
+
_this.displayValue = [];
|
|
1537
1660
|
_this.icon = 'fto-calendar';
|
|
1538
1661
|
_this.maxNodes = 6;
|
|
1539
1662
|
_this.protalTobottom = true;
|
|
@@ -1541,32 +1664,37 @@
|
|
|
1541
1664
|
_this.dataChange = new rxjs.Subject();
|
|
1542
1665
|
_this.positionChange = new rxjs.Subject();
|
|
1543
1666
|
_this.closeSubject = new rxjs.Subject();
|
|
1667
|
+
_this.startDisplay = '';
|
|
1668
|
+
_this.endDisplay = '';
|
|
1669
|
+
_this.startActive = false;
|
|
1670
|
+
_this.endActive = false;
|
|
1544
1671
|
_this._unSubject = new rxjs.Subject();
|
|
1545
1672
|
return _this;
|
|
1546
1673
|
}
|
|
1547
1674
|
Object.defineProperty(XDateRangeComponent.prototype, "getRequired", {
|
|
1548
1675
|
get: function () {
|
|
1549
|
-
return this.required &&
|
|
1676
|
+
return this.required && i2.XIsEmpty(this.value);
|
|
1550
1677
|
},
|
|
1551
1678
|
enumerable: false,
|
|
1552
1679
|
configurable: true
|
|
1553
1680
|
});
|
|
1554
1681
|
XDateRangeComponent.prototype.writeValue = function (value) {
|
|
1555
|
-
if (
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1682
|
+
if (i2.XIsUndefined(value))
|
|
1683
|
+
value = [];
|
|
1684
|
+
if (value.length > 0) {
|
|
1685
|
+
if (i2.XIsDate(value[0])) {
|
|
1686
|
+
this.modelType = 'date';
|
|
1687
|
+
this.numberValue = value.getTime();
|
|
1688
|
+
}
|
|
1689
|
+
else if (i2.XIsNumber(value[0])) {
|
|
1690
|
+
this.modelType = 'number';
|
|
1691
|
+
this.numberValue = value;
|
|
1692
|
+
}
|
|
1693
|
+
else if (i2.XIsString(value[0])) {
|
|
1694
|
+
this.modelType = 'string';
|
|
1695
|
+
var valueTime = value.map(function (x) { return new Date(x).getTime(); });
|
|
1696
|
+
this.numberValue = !isNaN(valueTime[0]) ? valueTime : [];
|
|
1697
|
+
}
|
|
1570
1698
|
}
|
|
1571
1699
|
this.value = value;
|
|
1572
1700
|
this.setDisplayValue(this.numberValue);
|
|
@@ -1583,7 +1711,8 @@
|
|
|
1583
1711
|
this.setPortal();
|
|
1584
1712
|
};
|
|
1585
1713
|
XDateRangeComponent.prototype.ngOnChanges = function (changes) {
|
|
1586
|
-
|
|
1714
|
+
var type = changes.type;
|
|
1715
|
+
if (i2.XIsChange(type)) {
|
|
1587
1716
|
this.setFormat();
|
|
1588
1717
|
this.setDisplayValue(this.numberValue);
|
|
1589
1718
|
}
|
|
@@ -1594,7 +1723,7 @@
|
|
|
1594
1723
|
};
|
|
1595
1724
|
XDateRangeComponent.prototype.setSubject = function () {
|
|
1596
1725
|
var _this = this;
|
|
1597
|
-
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function (
|
|
1726
|
+
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
|
|
1598
1727
|
_this.closePortal();
|
|
1599
1728
|
});
|
|
1600
1729
|
};
|
|
@@ -1624,7 +1753,7 @@
|
|
|
1624
1753
|
if (this.disabled)
|
|
1625
1754
|
return;
|
|
1626
1755
|
this.enter = true;
|
|
1627
|
-
if (!
|
|
1756
|
+
if (!i2.XIsEmpty(this.numberValue)) {
|
|
1628
1757
|
this.icon = '';
|
|
1629
1758
|
this.inputClearable = true;
|
|
1630
1759
|
this.cdr.detectChanges();
|
|
@@ -1641,9 +1770,9 @@
|
|
|
1641
1770
|
}
|
|
1642
1771
|
};
|
|
1643
1772
|
XDateRangeComponent.prototype.clearEmit = function () {
|
|
1644
|
-
this.value =
|
|
1645
|
-
this.numberValue =
|
|
1646
|
-
this.displayValue =
|
|
1773
|
+
this.value = [];
|
|
1774
|
+
this.numberValue = [];
|
|
1775
|
+
this.displayValue = [];
|
|
1647
1776
|
this.mleave();
|
|
1648
1777
|
this.valueChange.next(this.numberValue);
|
|
1649
1778
|
this.modelChange();
|
|
@@ -1654,10 +1783,11 @@
|
|
|
1654
1783
|
}
|
|
1655
1784
|
};
|
|
1656
1785
|
XDateRangeComponent.prototype.getValue = function () {
|
|
1786
|
+
var _this = this;
|
|
1657
1787
|
return this.modelType === 'date'
|
|
1658
|
-
? new Date(
|
|
1788
|
+
? this.numberValue.map(function (x) { return new Date(x); })
|
|
1659
1789
|
: this.modelType === 'string'
|
|
1660
|
-
? this.datePipe.transform(
|
|
1790
|
+
? this.numberValue.map(function (x) { return _this.datePipe.transform(x, _this.format); })
|
|
1661
1791
|
: this.numberValue;
|
|
1662
1792
|
};
|
|
1663
1793
|
XDateRangeComponent.prototype.portalAttached = function () {
|
|
@@ -1668,6 +1798,7 @@
|
|
|
1668
1798
|
var _a, _b;
|
|
1669
1799
|
if (this.portalAttached()) {
|
|
1670
1800
|
(_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.detach();
|
|
1801
|
+
this.active = false;
|
|
1671
1802
|
this.cdr.detectChanges();
|
|
1672
1803
|
return true;
|
|
1673
1804
|
}
|
|
@@ -1677,11 +1808,15 @@
|
|
|
1677
1808
|
var _a, _b;
|
|
1678
1809
|
(_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
1679
1810
|
};
|
|
1680
|
-
XDateRangeComponent.prototype.showPortal = function () {
|
|
1811
|
+
XDateRangeComponent.prototype.showPortal = function ($event, type) {
|
|
1681
1812
|
var _this = this;
|
|
1682
1813
|
var _a;
|
|
1814
|
+
$event.stopPropagation();
|
|
1683
1815
|
if (this.disabled || this.animating)
|
|
1684
1816
|
return;
|
|
1817
|
+
this.active = true;
|
|
1818
|
+
this.startActive = type === 'start';
|
|
1819
|
+
this.endActive = type === 'end';
|
|
1685
1820
|
var config = {
|
|
1686
1821
|
backdropClass: '',
|
|
1687
1822
|
positionStrategy: this.setPlacement(),
|
|
@@ -1722,19 +1857,29 @@
|
|
|
1722
1857
|
positionChange: this.positionChange,
|
|
1723
1858
|
closePortal: function () { return _this.closeSubject.next(); },
|
|
1724
1859
|
destroyPortal: function () { return _this.destroyPortal(); },
|
|
1725
|
-
nodeEmit: function (
|
|
1860
|
+
nodeEmit: function (dates, sure) {
|
|
1726
1861
|
if (sure === void 0) { sure = true; }
|
|
1727
|
-
return _this.onNodeClick(
|
|
1862
|
+
return _this.onNodeClick(dates, sure);
|
|
1728
1863
|
},
|
|
1864
|
+
startNodeEmit: function (node) { return _this.startNodeClick(node); },
|
|
1865
|
+
endNodeEmit: function (node) { return _this.endNodeClick(node); },
|
|
1729
1866
|
animating: function (ing) { return (_this.animating = ing); }
|
|
1730
1867
|
});
|
|
1731
1868
|
componentRef.changeDetectorRef.detectChanges();
|
|
1732
1869
|
};
|
|
1733
|
-
XDateRangeComponent.prototype.
|
|
1870
|
+
XDateRangeComponent.prototype.startNodeClick = function (node) {
|
|
1871
|
+
this.startDisplay = this.datePipe.transform(node, this.format);
|
|
1872
|
+
this.cdr.detectChanges();
|
|
1873
|
+
};
|
|
1874
|
+
XDateRangeComponent.prototype.endNodeClick = function (node) {
|
|
1875
|
+
this.endDisplay = this.datePipe.transform(node, this.format);
|
|
1876
|
+
this.cdr.detectChanges();
|
|
1877
|
+
};
|
|
1878
|
+
XDateRangeComponent.prototype.onNodeClick = function (dates, sure) {
|
|
1734
1879
|
if (sure === void 0) { sure = true; }
|
|
1735
1880
|
this.isInput = false;
|
|
1736
1881
|
if (sure) {
|
|
1737
|
-
this.numberValue =
|
|
1882
|
+
this.numberValue = dates.map(function (x) { return x.getTime(); });
|
|
1738
1883
|
this.value = this.getValue();
|
|
1739
1884
|
this.setDisplayValue(this.numberValue);
|
|
1740
1885
|
this.closeSubject.next();
|
|
@@ -1742,7 +1887,7 @@
|
|
|
1742
1887
|
this.nodeEmit.emit(this.numberValue);
|
|
1743
1888
|
}
|
|
1744
1889
|
else {
|
|
1745
|
-
this.setDisplayValue(
|
|
1890
|
+
this.setDisplayValue(dates.map(function (x) { return x.getTime(); }));
|
|
1746
1891
|
this.cdr.markForCheck();
|
|
1747
1892
|
}
|
|
1748
1893
|
};
|
|
@@ -1750,16 +1895,16 @@
|
|
|
1750
1895
|
this.isInput = true;
|
|
1751
1896
|
};
|
|
1752
1897
|
XDateRangeComponent.prototype.setDisplayValue = function (dateNumber) {
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
else {
|
|
1761
|
-
|
|
1762
|
-
}
|
|
1898
|
+
var _this = this;
|
|
1899
|
+
// if (this.isInput && isNaN(this.startDisplay) && !isNaN(Date.parse(this.displayValue))) {
|
|
1900
|
+
// this.displayValue = this.datePipe.transform(this.displayValue, this.format);
|
|
1901
|
+
// this.numberValue = new Date(this.displayValue).getTime();
|
|
1902
|
+
// this.value = this.getValue();
|
|
1903
|
+
// this.modelChange();
|
|
1904
|
+
// this.isInput = false;
|
|
1905
|
+
// } else {
|
|
1906
|
+
this.displayValue = dateNumber.map(function (x) { return _this.datePipe.transform(x, _this.format); });
|
|
1907
|
+
// }
|
|
1763
1908
|
};
|
|
1764
1909
|
XDateRangeComponent.prototype.setPlacement = function () {
|
|
1765
1910
|
return this.portalService.setPlacement({
|
|
@@ -1773,7 +1918,7 @@
|
|
|
1773
1918
|
this.portalAttached() && ((_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.updatePositionStrategy(this.setPlacement()));
|
|
1774
1919
|
};
|
|
1775
1920
|
XDateRangeComponent.prototype.setClassMap = function () {
|
|
1776
|
-
|
|
1921
|
+
i2.XClearClass(this.labelMap);
|
|
1777
1922
|
this.labelMap["x-text-align-" + this.labelAlign] = this.labelAlign ? true : false;
|
|
1778
1923
|
};
|
|
1779
1924
|
XDateRangeComponent.prototype.formControlChanges = function () {
|
|
@@ -1782,9 +1927,9 @@
|
|
|
1782
1927
|
};
|
|
1783
1928
|
return XDateRangeComponent;
|
|
1784
1929
|
}(XDateRangeProperty));
|
|
1785
|
-
/** @nocollapse */ XDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
1786
|
-
/** @nocollapse */ XDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
1787
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
1930
|
+
/** @nocollapse */ XDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i2__namespace.XConfigService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.XPortalService }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace.DatePipe }, { token: i4__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1931
|
+
/** @nocollapse */ XDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDateRangeComponent, selector: "x-date-range", providers: [baseForm.XValueAccessor(XDateRangeComponent), i1.DatePipe], viewQueries: [{ propertyName: "dateRange", first: true, predicate: ["dateRange"], descendants: true, static: true }, { propertyName: "inputGroup", first: true, predicate: ["inputGroup"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div #dateRange class=\"x-date-range\" [class.x-date-range-active]=\"active\">\r\n <div class=\"x-date-range-row\">\r\n <x-input-group #inputGroup class=\"x-date-range-group\" bordered=\"false\" (click)=\"showPortal($event)\">\r\n <x-input\r\n #inputStartCom\r\n type=\"text\"\r\n placeholder=\"\u5F00\u59CB\u65E5\u671F\"\r\n [(active)]=\"startActive\"\r\n (click)=\"showPortal($event, 'start')\"\r\n [(ngModel)]=\"startDisplay\"\r\n ></x-input>\r\n <x-icon type=\"fto-arrow-right\"></x-icon>\r\n <x-input\r\n #inputEndCom\r\n type=\"text\"\r\n placeholder=\"\u7ED3\u675F\u65E5\u671F\"\r\n [(active)]=\"endActive\"\r\n (click)=\"showPortal($event, 'end')\"\r\n [(ngModel)]=\"endDisplay\"\r\n ></x-input>\r\n <x-icon [type]=\"icon\"></x-icon>\r\n </x-input-group>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-range{display:inline-block}.x-date-range{margin:0;padding:0;width:100%}.x-date-range-row{flex:1;display:flex;align-items:center}.x-date-range-group{display:inline-flex;flex:1;width:100%;font-size:var(--x-font-size);background-color:var(--x-background);background-image:none;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);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}.x-date-range-group .x-input-group>x-icon{color:var(--x-text-400);transition:all var(--x-animation-duration-base);z-index:2;padding:.4rem}.x-date-range-group .x-input-group>x-input{width:6rem}.x-date-range-group .x-input-group>x-input input{padding-left:0!important;padding-right:0!important;margin-left:.4rem;margin-right:.4rem}.x-date-range-group .x-input-group>x-input.x-input-active input{background-color:gray}.x-date-range-group:hover{border-color:var(--x-primary-300)}.x-date-range-active .x-date-range-group{border-color:var(--x-primary)}\n"], components: [{ type: i5__namespace.XInputGroupComponent, selector: "x-input-group" }, { type: i5__namespace.XInputComponent, selector: "x-input" }, { type: i6__namespace$1.XIconComponent, selector: "x-icon" }], directives: [{ type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1932
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeComponent, decorators: [{
|
|
1788
1933
|
type: i0.Component,
|
|
1789
1934
|
args: [{
|
|
1790
1935
|
selector: "" + XDateRangePrefix,
|
|
@@ -1792,9 +1937,9 @@
|
|
|
1792
1937
|
styleUrls: ['./date-range.component.scss'],
|
|
1793
1938
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1794
1939
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1795
|
-
providers: [baseForm.XValueAccessor(XDateRangeComponent), i1
|
|
1940
|
+
providers: [baseForm.XValueAccessor(XDateRangeComponent), i1.DatePipe]
|
|
1796
1941
|
}]
|
|
1797
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type:
|
|
1942
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i2__namespace.XConfigService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.XPortalService }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace.DatePipe }, { type: i4__namespace$1.Overlay }]; }, propDecorators: { dateRange: [{
|
|
1798
1943
|
type: i0.ViewChild,
|
|
1799
1944
|
args: ['dateRange', { static: true }]
|
|
1800
1945
|
}], inputGroup: [{
|
|
@@ -1807,8 +1952,8 @@
|
|
|
1807
1952
|
}
|
|
1808
1953
|
return XDatePickerModule;
|
|
1809
1954
|
}());
|
|
1810
|
-
/** @nocollapse */ XDatePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
1811
|
-
/** @nocollapse */ XDatePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.
|
|
1955
|
+
/** @nocollapse */ XDatePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1956
|
+
/** @nocollapse */ XDatePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, declarations: [XDatePickerComponent,
|
|
1812
1957
|
XDatePickerPortalComponent,
|
|
1813
1958
|
XPickerDateComponent,
|
|
1814
1959
|
XPickerMonthComponent,
|
|
@@ -1819,7 +1964,7 @@
|
|
|
1819
1964
|
XPickerYearProperty,
|
|
1820
1965
|
XDateRangeComponent,
|
|
1821
1966
|
XDateRangePortalComponent,
|
|
1822
|
-
XDateRangeProperty], imports: [i1
|
|
1967
|
+
XDateRangeProperty], imports: [i1.CommonModule,
|
|
1823
1968
|
i6.FormsModule,
|
|
1824
1969
|
i6.ReactiveFormsModule,
|
|
1825
1970
|
i2$1.XPortalModule,
|
|
@@ -1827,15 +1972,15 @@
|
|
|
1827
1972
|
i5.XInputModule,
|
|
1828
1973
|
i4.XButtonModule,
|
|
1829
1974
|
i6$1.XIconModule,
|
|
1830
|
-
|
|
1975
|
+
i3.XI18nModule,
|
|
1831
1976
|
baseForm.XBaseFormModule], exports: [XDatePickerComponent,
|
|
1832
1977
|
XDateRangeComponent,
|
|
1833
1978
|
XDatePickerPortalComponent,
|
|
1834
1979
|
XPickerDateComponent,
|
|
1835
1980
|
XPickerMonthComponent,
|
|
1836
1981
|
XPickerYearComponent] });
|
|
1837
|
-
/** @nocollapse */ XDatePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.
|
|
1838
|
-
i1
|
|
1982
|
+
/** @nocollapse */ XDatePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, imports: [[
|
|
1983
|
+
i1.CommonModule,
|
|
1839
1984
|
i6.FormsModule,
|
|
1840
1985
|
i6.ReactiveFormsModule,
|
|
1841
1986
|
i2$1.XPortalModule,
|
|
@@ -1843,10 +1988,10 @@
|
|
|
1843
1988
|
i5.XInputModule,
|
|
1844
1989
|
i4.XButtonModule,
|
|
1845
1990
|
i6$1.XIconModule,
|
|
1846
|
-
|
|
1991
|
+
i3.XI18nModule,
|
|
1847
1992
|
baseForm.XBaseFormModule
|
|
1848
1993
|
]] });
|
|
1849
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.
|
|
1994
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, decorators: [{
|
|
1850
1995
|
type: i0.NgModule,
|
|
1851
1996
|
args: [{
|
|
1852
1997
|
declarations: [
|
|
@@ -1872,7 +2017,7 @@
|
|
|
1872
2017
|
XPickerYearComponent
|
|
1873
2018
|
],
|
|
1874
2019
|
imports: [
|
|
1875
|
-
i1
|
|
2020
|
+
i1.CommonModule,
|
|
1876
2021
|
i6.FormsModule,
|
|
1877
2022
|
i6.ReactiveFormsModule,
|
|
1878
2023
|
i2$1.XPortalModule,
|
|
@@ -1880,7 +2025,7 @@
|
|
|
1880
2025
|
i5.XInputModule,
|
|
1881
2026
|
i4.XButtonModule,
|
|
1882
2027
|
i6$1.XIconModule,
|
|
1883
|
-
|
|
2028
|
+
i3.XI18nModule,
|
|
1884
2029
|
baseForm.XBaseFormModule
|
|
1885
2030
|
],
|
|
1886
2031
|
entryComponents: [XDatePickerPortalComponent, XDateRangePortalComponent]
|
|
@@ -1914,5 +2059,5 @@
|
|
|
1914
2059
|
|
|
1915
2060
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1916
2061
|
|
|
1917
|
-
}))
|
|
2062
|
+
}));
|
|
1918
2063
|
//# sourceMappingURL=ng-nest-ui-date-picker.umd.js.map
|