@ng-nest/ui 12.0.5 → 12.0.10
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 +6 -2
- package/auto-complete/auto-complete.property.d.ts +17 -2
- 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 +48 -3
- 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 +74 -36
- 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 +67 -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 +36 -29
- 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 +35 -30
- package/bundles/ng-nest-ui-carousel.umd.js.map +1 -1
- package/bundles/ng-nest-ui-cascade.umd.js +94 -36
- 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 +79 -44
- 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 +923 -176
- 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 +27 -22
- 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 +27 -22
- 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 +45 -27
- 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 +545 -140
- 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 +44 -24
- package/bundles/ng-nest-ui-input-number.umd.js.map +1 -1
- package/bundles/ng-nest-ui-input.umd.js +208 -50
- 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 +38 -31
- 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 +26 -22
- 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 +22 -18
- package/bundles/ng-nest-ui-portal.umd.js.map +1 -1
- package/bundles/ng-nest-ui-progress.umd.js +28 -23
- 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 +35 -27
- 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 +36 -21
- 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.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 +33 -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 +10 -4
- package/color-picker/color-picker.property.d.ts +12 -2
- package/comment/comment.component.d.ts +1 -1
- package/core/config/config.d.ts +39 -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 +10 -12
- package/date-picker/date-picker.component.d.ts +5 -5
- package/date-picker/date-picker.module.d.ts +12 -10
- package/date-picker/date-picker.property.d.ts +169 -8
- package/date-picker/date-range-portal.component.d.ts +65 -0
- package/date-picker/date-range.component.d.ts +74 -0
- 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/date-picker/public-api.d.ts +2 -0
- package/description/description.component.d.ts +2 -4
- 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 +29 -12
- package/esm2015/auto-complete/auto-complete.module.js +4 -4
- package/esm2015/auto-complete/auto-complete.property.js +22 -5
- 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 +46 -5
- package/esm2015/border/border.component.js +3 -3
- package/esm2015/border/border.module.js +4 -4
- package/esm2015/button/button.component.js +10 -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 +4 -4
- package/esm2015/carousel/carousel.component.js +8 -7
- 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 +25 -9
- package/esm2015/cascade/cascade.module.js +4 -4
- package/esm2015/cascade/cascade.property.js +28 -5
- 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 +33 -14
- package/esm2015/color-picker/color-picker.module.js +4 -4
- package/esm2015/color-picker/color-picker.property.js +16 -5
- 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 +24 -43
- package/esm2015/date-picker/date-picker.component.js +24 -23
- package/esm2015/date-picker/date-picker.module.js +31 -11
- package/esm2015/date-picker/date-picker.property.js +190 -19
- package/esm2015/date-picker/date-range-portal.component.js +208 -0
- package/esm2015/date-picker/date-range.component.js +307 -0
- 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/date-picker/public-api.js +3 -1
- 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.component.js +6 -5
- package/esm2015/dialog/dialog.module.js +4 -4
- package/esm2015/dialog/dialog.property.js +4 -4
- package/esm2015/doc/doc.component.js +3 -3
- package/esm2015/doc/doc.module.js +4 -4
- package/esm2015/drawer/drawer.component.js +6 -5
- package/esm2015/drawer/drawer.module.js +4 -4
- package/esm2015/drawer/drawer.property.js +3 -3
- 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 +13 -10
- package/esm2015/find/find.module.js +4 -4
- package/esm2015/find/find.property.js +16 -5
- 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.property.js +1 -1
- 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 +11 -3
- 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 +10 -3
- 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 +26 -0
- package/esm2015/input/input.component.js +60 -15
- package/esm2015/input/input.module.js +11 -9
- package/esm2015/input/input.property.js +77 -22
- package/esm2015/input/public-api.js +2 -1
- package/esm2015/input-number/input-number.component.js +9 -5
- package/esm2015/input-number/input-number.module.js +7 -6
- package/esm2015/input-number/input-number.property.js +17 -5
- 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 +11 -8
- 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.service.js +3 -3
- 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 +4 -4
- package/esm2015/portal/portal.service.js +3 -3
- package/esm2015/progress/progress.component.js +7 -6
- package/esm2015/progress/progress.module.js +4 -4
- package/esm2015/progress/progress.property.js +3 -3
- 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 +9 -7
- package/esm2015/steps/steps.module.js +7 -6
- package/esm2015/steps/steps.property.js +6 -4
- 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 +10 -5
- package/esm2015/tag/tag.module.js +4 -4
- package/esm2015/tag/tag.property.js +10 -4
- 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 +59 -25
- 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 +53 -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 +22 -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 +20 -19
- package/fesm2015/ng-nest-ui-carousel.js.map +1 -1
- package/fesm2015/ng-nest-ui-cascade.js +80 -28
- 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 +55 -24
- 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 +876 -156
- 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 +12 -11
- 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 +12 -11
- 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 +31 -17
- 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 +540 -133
- 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 +31 -14
- package/fesm2015/ng-nest-ui-input-number.js.map +1 -1
- package/fesm2015/ng-nest-ui-input.js +164 -42
- 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 +23 -20
- 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 +11 -11
- 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 +7 -7
- package/fesm2015/ng-nest-ui-progress.js +13 -12
- 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 +19 -14
- 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 +22 -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/find/find.property.d.ts +22 -2
- 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/i18n.property.d.ts +3 -0
- 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 +8 -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 +7 -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 +13 -0
- package/input/input.component.d.ts +10 -3
- package/input/input.module.d.ts +7 -5
- package/input/input.property.d.ts +79 -14
- package/input/public-api.d.ts +1 -0
- package/input-number/input-number.component.d.ts +3 -0
- package/input-number/input-number.module.d.ts +4 -3
- package/input-number/input-number.property.d.ts +12 -2
- 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-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/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 +7 -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 +10 -0
- package/tag/tag.component.d.ts +2 -1
- package/tag/tag.property.d.ts +6 -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, i2, baseForm, rxjs, operators, i1,
|
|
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,27 +13,26 @@
|
|
|
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
26
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
31
28
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
32
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
33
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
34
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
35
29
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
31
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
32
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
36
33
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
34
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
35
|
+
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
37
36
|
|
|
38
37
|
/*! *****************************************************************************
|
|
39
38
|
Copyright (c) Microsoft Corporation.
|
|
@@ -261,10 +260,16 @@
|
|
|
261
260
|
r[k] = a[j];
|
|
262
261
|
return r;
|
|
263
262
|
}
|
|
264
|
-
function __spreadArray(to, from) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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));
|
|
268
273
|
}
|
|
269
274
|
function __await(v) {
|
|
270
275
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -366,6 +371,11 @@
|
|
|
366
371
|
* @en_US Select type
|
|
367
372
|
*/
|
|
368
373
|
_this.type = 'date';
|
|
374
|
+
/**
|
|
375
|
+
* @zh_CN 快捷选择按钮,支持今天,昨天,明天
|
|
376
|
+
* @en_US Quick selection button, support today, yesterday, tomorrow
|
|
377
|
+
*/
|
|
378
|
+
_this.preset = [];
|
|
369
379
|
/**
|
|
370
380
|
* @zh_CN 节点点击的事件
|
|
371
381
|
* @en_US Node click event
|
|
@@ -375,8 +385,8 @@
|
|
|
375
385
|
}
|
|
376
386
|
return XDatePickerProperty;
|
|
377
387
|
}(baseForm.XControlValueAccessor));
|
|
378
|
-
/** @nocollapse */ XDatePickerProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
379
|
-
/** @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 });
|
|
380
390
|
__decorate([
|
|
381
391
|
i2.XWithConfig(X_CONFIG_NAME, 'yyyy-MM-dd')
|
|
382
392
|
], XDatePickerProperty.prototype, "format", void 0);
|
|
@@ -388,9 +398,91 @@
|
|
|
388
398
|
i2.XWithConfig(X_CONFIG_NAME, 'bottom-start')
|
|
389
399
|
], XDatePickerProperty.prototype, "placement", void 0);
|
|
390
400
|
__decorate([
|
|
401
|
+
i2.XWithConfig(X_CONFIG_NAME, 'medium')
|
|
402
|
+
], XDatePickerProperty.prototype, "size", void 0);
|
|
403
|
+
__decorate([
|
|
404
|
+
i2.XInputBoolean(),
|
|
405
|
+
i2.XWithConfig(X_CONFIG_NAME, true)
|
|
406
|
+
], XDatePickerProperty.prototype, "bordered", void 0);
|
|
407
|
+
__decorate([
|
|
408
|
+
i2.XDataConvert()
|
|
409
|
+
], XDatePickerProperty.prototype, "preset", void 0);
|
|
410
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerProperty, decorators: [{
|
|
411
|
+
type: i0.Component,
|
|
412
|
+
args: [{ template: '' }]
|
|
413
|
+
}], propDecorators: { type: [{
|
|
414
|
+
type: i0.Input
|
|
415
|
+
}], format: [{
|
|
416
|
+
type: i0.Input
|
|
417
|
+
}], clearable: [{
|
|
418
|
+
type: i0.Input
|
|
419
|
+
}], placement: [{
|
|
420
|
+
type: i0.Input
|
|
421
|
+
}], size: [{
|
|
422
|
+
type: i0.Input
|
|
423
|
+
}], bordered: [{
|
|
424
|
+
type: i0.Input
|
|
425
|
+
}], preset: [{
|
|
426
|
+
type: i0.Input
|
|
427
|
+
}], nodeEmit: [{
|
|
428
|
+
type: i0.Output
|
|
429
|
+
}] } });
|
|
430
|
+
/**
|
|
431
|
+
* DateRange
|
|
432
|
+
* @selector x-date-range
|
|
433
|
+
* @decorator component
|
|
434
|
+
*/
|
|
435
|
+
var XDateRangePrefix = 'x-date-range';
|
|
436
|
+
var X_CONFIG_RANGE_NAME = 'dateRange';
|
|
437
|
+
/**
|
|
438
|
+
* DateRange Property
|
|
439
|
+
*/
|
|
440
|
+
var XDateRangeProperty = /** @class */ (function (_super) {
|
|
441
|
+
__extends(XDateRangeProperty, _super);
|
|
442
|
+
function XDateRangeProperty() {
|
|
443
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
444
|
+
/**
|
|
445
|
+
* @zh_CN 选择类型
|
|
446
|
+
* @en_US Select type
|
|
447
|
+
*/
|
|
448
|
+
_this.type = 'date';
|
|
449
|
+
/**
|
|
450
|
+
* @zh_CN 快捷选择按钮,支持今天,昨天,明天
|
|
451
|
+
* @en_US Quick selection button, support today, yesterday, tomorrow
|
|
452
|
+
*/
|
|
453
|
+
_this.preset = [];
|
|
454
|
+
/**
|
|
455
|
+
* @zh_CN 节点点击的事件
|
|
456
|
+
* @en_US Node click event
|
|
457
|
+
*/
|
|
458
|
+
_this.nodeEmit = new i0.EventEmitter();
|
|
459
|
+
return _this;
|
|
460
|
+
}
|
|
461
|
+
return XDateRangeProperty;
|
|
462
|
+
}(baseForm.XControlValueAccessor));
|
|
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 });
|
|
465
|
+
__decorate([
|
|
466
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, 'yyyy-MM-dd')
|
|
467
|
+
], XDateRangeProperty.prototype, "format", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, true),
|
|
391
470
|
i2.XInputBoolean()
|
|
392
|
-
],
|
|
393
|
-
|
|
471
|
+
], XDateRangeProperty.prototype, "clearable", void 0);
|
|
472
|
+
__decorate([
|
|
473
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, 'bottom-start')
|
|
474
|
+
], XDateRangeProperty.prototype, "placement", void 0);
|
|
475
|
+
__decorate([
|
|
476
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, 'medium')
|
|
477
|
+
], XDateRangeProperty.prototype, "size", void 0);
|
|
478
|
+
__decorate([
|
|
479
|
+
i2.XInputBoolean(),
|
|
480
|
+
i2.XWithConfig(X_CONFIG_RANGE_NAME, true)
|
|
481
|
+
], XDateRangeProperty.prototype, "bordered", void 0);
|
|
482
|
+
__decorate([
|
|
483
|
+
i2.XDataConvert()
|
|
484
|
+
], XDateRangeProperty.prototype, "preset", void 0);
|
|
485
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeProperty, decorators: [{
|
|
394
486
|
type: i0.Component,
|
|
395
487
|
args: [{ template: '' }]
|
|
396
488
|
}], propDecorators: { type: [{
|
|
@@ -401,7 +493,11 @@
|
|
|
401
493
|
type: i0.Input
|
|
402
494
|
}], placement: [{
|
|
403
495
|
type: i0.Input
|
|
404
|
-
}],
|
|
496
|
+
}], size: [{
|
|
497
|
+
type: i0.Input
|
|
498
|
+
}], bordered: [{
|
|
499
|
+
type: i0.Input
|
|
500
|
+
}], preset: [{
|
|
405
501
|
type: i0.Input
|
|
406
502
|
}], nodeEmit: [{
|
|
407
503
|
type: i0.Output
|
|
@@ -412,6 +508,12 @@
|
|
|
412
508
|
* @decorator component
|
|
413
509
|
*/
|
|
414
510
|
var XDatePickerPortalPrefix = 'x-date-picker-portal';
|
|
511
|
+
/**
|
|
512
|
+
* DateRange Portal
|
|
513
|
+
* @selector x-date-range-portal
|
|
514
|
+
* @decorator component
|
|
515
|
+
*/
|
|
516
|
+
var XDateRangePortalPrefix = 'x-date-range-portal';
|
|
415
517
|
/**
|
|
416
518
|
* PickerDate
|
|
417
519
|
* @selector x-picker-date
|
|
@@ -425,11 +527,26 @@
|
|
|
425
527
|
__extends(XPickerDateProperty, _super);
|
|
426
528
|
function XPickerDateProperty() {
|
|
427
529
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
530
|
+
/**
|
|
531
|
+
* @zh_CN 选择类型
|
|
532
|
+
* @en_US Select type
|
|
533
|
+
*/
|
|
534
|
+
_this.type = 'date';
|
|
428
535
|
/**
|
|
429
536
|
* @zh_CN 显示的日期
|
|
430
537
|
* @en_US Date displayed
|
|
431
538
|
*/
|
|
432
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();
|
|
433
550
|
/**
|
|
434
551
|
* @zh_CN 选中的事件
|
|
435
552
|
* @en_US Selected event
|
|
@@ -444,17 +561,31 @@
|
|
|
444
561
|
}
|
|
445
562
|
return XPickerDateProperty;
|
|
446
563
|
}(i2.XProperty));
|
|
447
|
-
/** @nocollapse */ XPickerDateProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
448
|
-
/** @nocollapse */ XPickerDateProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
449
|
-
|
|
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: [{
|
|
450
573
|
type: i0.Component,
|
|
451
574
|
args: [{ template: '' }]
|
|
452
|
-
}], propDecorators: {
|
|
575
|
+
}], propDecorators: { type: [{
|
|
576
|
+
type: i0.Input
|
|
577
|
+
}], display: [{
|
|
453
578
|
type: i0.Input
|
|
454
579
|
}], model: [{
|
|
455
580
|
type: i0.Input
|
|
456
581
|
}], dateTemp: [{
|
|
457
582
|
type: i0.Input
|
|
583
|
+
}], showHeader: [{
|
|
584
|
+
type: i0.Input
|
|
585
|
+
}], rangePicker: [{
|
|
586
|
+
type: i0.Input
|
|
587
|
+
}], typeChange: [{
|
|
588
|
+
type: i0.Output
|
|
458
589
|
}], modelChange: [{
|
|
459
590
|
type: i0.Output
|
|
460
591
|
}], rangeChange: [{
|
|
@@ -473,16 +604,31 @@
|
|
|
473
604
|
__extends(XPickerMonthProperty, _super);
|
|
474
605
|
function XPickerMonthProperty() {
|
|
475
606
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
607
|
+
/**
|
|
608
|
+
* @zh_CN 选择类型
|
|
609
|
+
* @en_US Select type
|
|
610
|
+
*/
|
|
611
|
+
_this.type = 'date';
|
|
476
612
|
/**
|
|
477
613
|
* @zh_CN 显示的日期
|
|
478
614
|
* @en_US Date displayed
|
|
479
615
|
*/
|
|
480
616
|
_this.display = new Date();
|
|
617
|
+
/**
|
|
618
|
+
* @zh_CN 显示切换按钮
|
|
619
|
+
* @en_US Display switch button
|
|
620
|
+
*/
|
|
621
|
+
_this.showHeader = true;
|
|
481
622
|
/**
|
|
482
623
|
* @zh_CN 选中的事件
|
|
483
624
|
* @en_US Selected event
|
|
484
625
|
*/
|
|
485
626
|
_this.modelChange = new i0.EventEmitter();
|
|
627
|
+
/**
|
|
628
|
+
* @zh_CN 选择类型
|
|
629
|
+
* @en_US Select type
|
|
630
|
+
*/
|
|
631
|
+
_this.typeChange = new i0.EventEmitter();
|
|
486
632
|
/**
|
|
487
633
|
* @zh_CN 范围变化的事件
|
|
488
634
|
* @en_US Scope change event
|
|
@@ -492,19 +638,28 @@
|
|
|
492
638
|
}
|
|
493
639
|
return XPickerMonthProperty;
|
|
494
640
|
}(i2.XProperty));
|
|
495
|
-
/** @nocollapse */ XPickerMonthProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
496
|
-
/** @nocollapse */ XPickerMonthProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
497
|
-
|
|
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: [{
|
|
498
647
|
type: i0.Component,
|
|
499
648
|
args: [{ template: '' }]
|
|
500
|
-
}], propDecorators: {
|
|
649
|
+
}], propDecorators: { type: [{
|
|
650
|
+
type: i0.Input
|
|
651
|
+
}], display: [{
|
|
501
652
|
type: i0.Input
|
|
502
653
|
}], model: [{
|
|
503
654
|
type: i0.Input
|
|
504
655
|
}], monthTemp: [{
|
|
505
656
|
type: i0.Input
|
|
657
|
+
}], showHeader: [{
|
|
658
|
+
type: i0.Input
|
|
506
659
|
}], modelChange: [{
|
|
507
660
|
type: i0.Output
|
|
661
|
+
}], typeChange: [{
|
|
662
|
+
type: i0.Output
|
|
508
663
|
}], rangeChange: [{
|
|
509
664
|
type: i0.Output
|
|
510
665
|
}] } });
|
|
@@ -521,16 +676,31 @@
|
|
|
521
676
|
__extends(XPickerYearProperty, _super);
|
|
522
677
|
function XPickerYearProperty() {
|
|
523
678
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
679
|
+
/**
|
|
680
|
+
* @zh_CN 选择类型
|
|
681
|
+
* @en_US Select type
|
|
682
|
+
*/
|
|
683
|
+
_this.type = 'date';
|
|
524
684
|
/**
|
|
525
685
|
* @zh_CN 显示的日期
|
|
526
686
|
* @en_US Date displayed
|
|
527
687
|
*/
|
|
528
688
|
_this.display = new Date();
|
|
689
|
+
/**
|
|
690
|
+
* @zh_CN 显示切换按钮
|
|
691
|
+
* @en_US Display switch button
|
|
692
|
+
*/
|
|
693
|
+
_this.showHeader = true;
|
|
529
694
|
/**
|
|
530
695
|
* @zh_CN 选中的事件
|
|
531
696
|
* @en_US Selected event
|
|
532
697
|
*/
|
|
533
698
|
_this.modelChange = new i0.EventEmitter();
|
|
699
|
+
/**
|
|
700
|
+
* @zh_CN 选择类型
|
|
701
|
+
* @en_US Select type
|
|
702
|
+
*/
|
|
703
|
+
_this.typeChange = new i0.EventEmitter();
|
|
534
704
|
/**
|
|
535
705
|
* @zh_CN 开始年份变化的事件
|
|
536
706
|
* @en_US Start year change event
|
|
@@ -540,26 +710,37 @@
|
|
|
540
710
|
}
|
|
541
711
|
return XPickerYearProperty;
|
|
542
712
|
}(i2.XProperty));
|
|
543
|
-
/** @nocollapse */ XPickerYearProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
544
|
-
/** @nocollapse */ XPickerYearProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
545
|
-
|
|
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: [{
|
|
546
719
|
type: i0.Component,
|
|
547
720
|
args: [{ template: '' }]
|
|
548
|
-
}], propDecorators: {
|
|
721
|
+
}], propDecorators: { type: [{
|
|
722
|
+
type: i0.Input
|
|
723
|
+
}], display: [{
|
|
549
724
|
type: i0.Input
|
|
550
725
|
}], model: [{
|
|
551
726
|
type: i0.Input
|
|
727
|
+
}], showHeader: [{
|
|
728
|
+
type: i0.Input
|
|
552
729
|
}], modelChange: [{
|
|
553
730
|
type: i0.Output
|
|
731
|
+
}], typeChange: [{
|
|
732
|
+
type: i0.Output
|
|
554
733
|
}], startChange: [{
|
|
555
734
|
type: i0.Output
|
|
556
735
|
}] } });
|
|
557
736
|
|
|
558
737
|
var XPickerDateComponent = /** @class */ (function (_super) {
|
|
559
738
|
__extends(XPickerDateComponent, _super);
|
|
560
|
-
function XPickerDateComponent(renderer, cdr, configService, i18n) {
|
|
739
|
+
function XPickerDateComponent(renderer, datePipe, lowerCasePipe, cdr, configService, i18n) {
|
|
561
740
|
var _this = _super.call(this) || this;
|
|
562
741
|
_this.renderer = renderer;
|
|
742
|
+
_this.datePipe = datePipe;
|
|
743
|
+
_this.lowerCasePipe = lowerCasePipe;
|
|
563
744
|
_this.cdr = cdr;
|
|
564
745
|
_this.configService = configService;
|
|
565
746
|
_this.i18n = i18n;
|
|
@@ -574,15 +755,22 @@
|
|
|
574
755
|
];
|
|
575
756
|
_this.now = new Date();
|
|
576
757
|
_this.dates = [];
|
|
758
|
+
_this.locale = {};
|
|
577
759
|
_this._unSubject = new rxjs.Subject();
|
|
578
760
|
return _this;
|
|
579
761
|
}
|
|
580
762
|
XPickerDateComponent.prototype.ngOnInit = function () {
|
|
581
763
|
var _this = this;
|
|
582
|
-
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
|
+
});
|
|
583
770
|
};
|
|
584
771
|
XPickerDateComponent.prototype.ngOnChanges = function (simples) {
|
|
585
|
-
|
|
772
|
+
var display = simples.display;
|
|
773
|
+
i2.XIsChange(display) && this.init();
|
|
586
774
|
};
|
|
587
775
|
XPickerDateComponent.prototype.ngOnDestory = function () {
|
|
588
776
|
this._unSubject.next();
|
|
@@ -632,23 +820,48 @@
|
|
|
632
820
|
this.modelChange.emit(date);
|
|
633
821
|
this.cdr.markForCheck();
|
|
634
822
|
};
|
|
635
|
-
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) {
|
|
636
848
|
return item;
|
|
637
849
|
};
|
|
638
850
|
return XPickerDateComponent;
|
|
639
851
|
}(XPickerDateProperty));
|
|
640
|
-
/** @nocollapse */ XPickerDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
641
|
-
/** @nocollapse */ XPickerDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
642
|
-
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: [{
|
|
643
855
|
type: i0.Component,
|
|
644
856
|
args: [{
|
|
645
857
|
selector: "" + XPickerDatePrefix,
|
|
646
858
|
templateUrl: './picker-date.component.html',
|
|
647
859
|
styleUrls: ['./picker-date.component.scss'],
|
|
648
860
|
encapsulation: i0.ViewEncapsulation.None,
|
|
649
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
861
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
862
|
+
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
650
863
|
}]
|
|
651
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XConfigService }, { 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 }]; } });
|
|
652
865
|
|
|
653
866
|
var XPickerMonthComponent = /** @class */ (function (_super) {
|
|
654
867
|
__extends(XPickerMonthComponent, _super);
|
|
@@ -676,13 +889,14 @@
|
|
|
676
889
|
});
|
|
677
890
|
};
|
|
678
891
|
XPickerMonthComponent.prototype.ngOnChanges = function (simples) {
|
|
679
|
-
|
|
892
|
+
var display = simples.display;
|
|
893
|
+
i2.XIsChange(display) && this.init();
|
|
680
894
|
};
|
|
681
895
|
XPickerMonthComponent.prototype.init = function () {
|
|
682
|
-
this.setMonths();
|
|
896
|
+
this.setMonths(this.display);
|
|
683
897
|
};
|
|
684
|
-
XPickerMonthComponent.prototype.setMonths = function () {
|
|
685
|
-
var year =
|
|
898
|
+
XPickerMonthComponent.prototype.setMonths = function (date) {
|
|
899
|
+
var year = date.getFullYear();
|
|
686
900
|
var dates = [];
|
|
687
901
|
for (var i = 0; i < 16; i++) {
|
|
688
902
|
dates = __spreadArray(__spreadArray([], __read(dates)), [new Date(year, i, 1)]);
|
|
@@ -700,14 +914,29 @@
|
|
|
700
914
|
XPickerMonthComponent.prototype.getLocaleMonth = function (date) {
|
|
701
915
|
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
702
916
|
};
|
|
703
|
-
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) {
|
|
704
933
|
return item;
|
|
705
934
|
};
|
|
706
935
|
return XPickerMonthComponent;
|
|
707
936
|
}(XPickerMonthProperty));
|
|
708
|
-
/** @nocollapse */ XPickerMonthComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
709
|
-
/** @nocollapse */ XPickerMonthComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
710
|
-
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: [{
|
|
711
940
|
type: i0.Component,
|
|
712
941
|
args: [{
|
|
713
942
|
selector: 'x-picker-month',
|
|
@@ -717,7 +946,7 @@
|
|
|
717
946
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
718
947
|
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
719
948
|
}]
|
|
720
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XConfigService }, { type:
|
|
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 }]; } });
|
|
721
950
|
|
|
722
951
|
var XPickerYearComponent = /** @class */ (function (_super) {
|
|
723
952
|
__extends(XPickerYearComponent, _super);
|
|
@@ -732,13 +961,14 @@
|
|
|
732
961
|
return _this;
|
|
733
962
|
}
|
|
734
963
|
XPickerYearComponent.prototype.ngOnChanges = function (simples) {
|
|
735
|
-
|
|
964
|
+
var display = simples.display;
|
|
965
|
+
i2.XIsChange(display) && this.init();
|
|
736
966
|
};
|
|
737
967
|
XPickerYearComponent.prototype.init = function () {
|
|
738
|
-
this.setYears();
|
|
968
|
+
this.setYears(this.display);
|
|
739
969
|
};
|
|
740
|
-
XPickerYearComponent.prototype.setYears = function () {
|
|
741
|
-
var year =
|
|
970
|
+
XPickerYearComponent.prototype.setYears = function (date) {
|
|
971
|
+
var year = date.getFullYear();
|
|
742
972
|
this.start = Math.floor(year / 10) * 10;
|
|
743
973
|
this.end = this.start + 9;
|
|
744
974
|
var dates = [];
|
|
@@ -757,17 +987,28 @@
|
|
|
757
987
|
var yearStr = this.datePipe.transform(year, 'yyyy');
|
|
758
988
|
return yearStr < "" + this.start || yearStr > "" + this.end;
|
|
759
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
|
+
};
|
|
760
1001
|
XPickerYearComponent.prototype.equalYear = function (one, two) {
|
|
761
1002
|
return this.datePipe.transform(one, 'yyyy') === this.datePipe.transform(two, 'yyyy');
|
|
762
1003
|
};
|
|
763
|
-
XPickerYearComponent.prototype.trackByYear = function (
|
|
1004
|
+
XPickerYearComponent.prototype.trackByYear = function (_index, item) {
|
|
764
1005
|
return item;
|
|
765
1006
|
};
|
|
766
1007
|
return XPickerYearComponent;
|
|
767
1008
|
}(XPickerYearProperty));
|
|
768
|
-
/** @nocollapse */ XPickerYearComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
769
|
-
/** @nocollapse */ XPickerYearComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
770
|
-
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: [{
|
|
771
1012
|
type: i0.Component,
|
|
772
1013
|
args: [{
|
|
773
1014
|
selector: 'x-picker-year',
|
|
@@ -788,13 +1029,15 @@
|
|
|
788
1029
|
this.type = 'date';
|
|
789
1030
|
this.display = new Date();
|
|
790
1031
|
this.locale = {};
|
|
1032
|
+
this.time = new Date().getTime();
|
|
1033
|
+
this.preset = [];
|
|
791
1034
|
this._unSubject = new rxjs.Subject();
|
|
792
1035
|
}
|
|
793
1036
|
XDatePickerPortalComponent.prototype.done = function (event) {
|
|
794
1037
|
this.animating(false);
|
|
795
1038
|
event.toState === 'void' && this.destroyPortal();
|
|
796
1039
|
};
|
|
797
|
-
XDatePickerPortalComponent.prototype.start = function (
|
|
1040
|
+
XDatePickerPortalComponent.prototype.start = function () {
|
|
798
1041
|
this.animating(true);
|
|
799
1042
|
};
|
|
800
1043
|
XDatePickerPortalComponent.prototype.ngOnInit = function () {
|
|
@@ -825,12 +1068,7 @@
|
|
|
825
1068
|
if (!i2.XIsEmpty(this.value)) {
|
|
826
1069
|
this.setDefault();
|
|
827
1070
|
}
|
|
828
|
-
else {
|
|
829
|
-
this.model = this.display;
|
|
830
|
-
}
|
|
831
|
-
this.time = this.model.getTime();
|
|
832
1071
|
this._type = this.type;
|
|
833
|
-
this.setDisplay(this.model);
|
|
834
1072
|
this.cdr.detectChanges();
|
|
835
1073
|
};
|
|
836
1074
|
XDatePickerPortalComponent.prototype.stopPropagation = function (event) {
|
|
@@ -839,6 +1077,8 @@
|
|
|
839
1077
|
XDatePickerPortalComponent.prototype.setDefault = function () {
|
|
840
1078
|
var date = new Date(this.value);
|
|
841
1079
|
this.model = date;
|
|
1080
|
+
this.time = this.model.getTime();
|
|
1081
|
+
this.setDisplay(this.model);
|
|
842
1082
|
};
|
|
843
1083
|
XDatePickerPortalComponent.prototype.setDisplay = function (date) {
|
|
844
1084
|
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
@@ -846,18 +1086,14 @@
|
|
|
846
1086
|
XDatePickerPortalComponent.prototype.dateChange = function (date) {
|
|
847
1087
|
this.setDisplay(date);
|
|
848
1088
|
this.model = date;
|
|
849
|
-
this.setModel(this.model, new Date(this.time));
|
|
850
1089
|
if (['date-time', 'date-hour', 'date-minute'].includes(this._type)) {
|
|
1090
|
+
this.setModelTime(this.model, new Date(this.time));
|
|
851
1091
|
this.nodeEmit(this.model, false);
|
|
852
1092
|
}
|
|
853
1093
|
else {
|
|
854
1094
|
this.nodeEmit(this.model);
|
|
855
1095
|
}
|
|
856
1096
|
};
|
|
857
|
-
XDatePickerPortalComponent.prototype.typeChange = function (type) {
|
|
858
|
-
this.type = type;
|
|
859
|
-
this.cdr.detectChanges();
|
|
860
|
-
};
|
|
861
1097
|
XDatePickerPortalComponent.prototype.monthChange = function (date) {
|
|
862
1098
|
this.setDisplay(date);
|
|
863
1099
|
if (this._type === 'month') {
|
|
@@ -880,46 +1116,32 @@
|
|
|
880
1116
|
}
|
|
881
1117
|
this.cdr.detectChanges();
|
|
882
1118
|
};
|
|
883
|
-
XDatePickerPortalComponent.prototype.
|
|
884
|
-
this.
|
|
885
|
-
this.cdr.detectChanges();
|
|
886
|
-
};
|
|
887
|
-
XDatePickerPortalComponent.prototype.nextMonth = function (num) {
|
|
888
|
-
var date = new Date(this.display);
|
|
889
|
-
date.setMonth(date.getMonth() + num);
|
|
890
|
-
this.setDisplay(date);
|
|
891
|
-
this.cdr.detectChanges();
|
|
1119
|
+
XDatePickerPortalComponent.prototype.onToday = function () {
|
|
1120
|
+
this.dateChange(new Date());
|
|
892
1121
|
};
|
|
893
|
-
XDatePickerPortalComponent.prototype.
|
|
894
|
-
|
|
895
|
-
date.setFullYear(date.getFullYear() + num);
|
|
896
|
-
this.setDisplay(date);
|
|
897
|
-
this.cdr.detectChanges();
|
|
1122
|
+
XDatePickerPortalComponent.prototype.onYesterday = function () {
|
|
1123
|
+
this.dateChange(i2.XAddDays(new Date(), -1));
|
|
898
1124
|
};
|
|
899
|
-
XDatePickerPortalComponent.prototype.
|
|
900
|
-
this.
|
|
901
|
-
var date = new Date(this.display);
|
|
902
|
-
date.setFullYear(this.startYear);
|
|
903
|
-
this.setDisplay(date);
|
|
904
|
-
this.cdr.detectChanges();
|
|
1125
|
+
XDatePickerPortalComponent.prototype.onTomorrow = function () {
|
|
1126
|
+
this.dateChange(i2.XAddDays(new Date(), 1));
|
|
905
1127
|
};
|
|
906
|
-
XDatePickerPortalComponent.prototype.
|
|
907
|
-
|
|
1128
|
+
XDatePickerPortalComponent.prototype.onPresetFunc = function (item) {
|
|
1129
|
+
this.dateChange(item.func());
|
|
908
1130
|
};
|
|
909
1131
|
XDatePickerPortalComponent.prototype.selectTime = function (time) {
|
|
910
1132
|
this.time = time.getTime();
|
|
911
|
-
this.nodeEmit(this.
|
|
1133
|
+
this.nodeEmit(this.setModelTime(this.model, time), false);
|
|
912
1134
|
this.cdr.detectChanges();
|
|
913
1135
|
};
|
|
914
|
-
XDatePickerPortalComponent.prototype.
|
|
1136
|
+
XDatePickerPortalComponent.prototype.setModelTime = function (date, time) {
|
|
915
1137
|
this.model = new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
|
|
916
1138
|
return this.model;
|
|
917
1139
|
};
|
|
918
1140
|
return XDatePickerPortalComponent;
|
|
919
1141
|
}());
|
|
920
|
-
/** @nocollapse */ XDatePickerPortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
921
|
-
/** @nocollapse */ XDatePickerPortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
922
|
-
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: [{
|
|
923
1145
|
type: i0.Component,
|
|
924
1146
|
args: [{
|
|
925
1147
|
selector: "" + XDatePickerPortalPrefix,
|
|
@@ -930,7 +1152,7 @@
|
|
|
930
1152
|
animations: [i2.XConnectBaseAnimation],
|
|
931
1153
|
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
932
1154
|
}]
|
|
933
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type:
|
|
1155
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.XI18nService }]; }, propDecorators: { placement: [{
|
|
934
1156
|
type: i0.HostBinding,
|
|
935
1157
|
args: ['@x-connect-base-animation']
|
|
936
1158
|
}], done: [{
|
|
@@ -943,10 +1165,10 @@
|
|
|
943
1165
|
|
|
944
1166
|
var XDatePickerComponent = /** @class */ (function (_super) {
|
|
945
1167
|
__extends(XDatePickerComponent, _super);
|
|
946
|
-
function XDatePickerComponent(renderer,
|
|
1168
|
+
function XDatePickerComponent(renderer, configService, cdr, portalService, viewContainerRef, datePipe, overlay) {
|
|
947
1169
|
var _this = _super.call(this) || this;
|
|
948
1170
|
_this.renderer = renderer;
|
|
949
|
-
_this.
|
|
1171
|
+
_this.configService = configService;
|
|
950
1172
|
_this.cdr = cdr;
|
|
951
1173
|
_this.portalService = portalService;
|
|
952
1174
|
_this.viewContainerRef = viewContainerRef;
|
|
@@ -968,13 +1190,6 @@
|
|
|
968
1190
|
_this._unSubject = new rxjs.Subject();
|
|
969
1191
|
return _this;
|
|
970
1192
|
}
|
|
971
|
-
Object.defineProperty(XDatePickerComponent.prototype, "getRequired", {
|
|
972
|
-
get: function () {
|
|
973
|
-
return this.required && i2.XIsEmpty(this.value);
|
|
974
|
-
},
|
|
975
|
-
enumerable: false,
|
|
976
|
-
configurable: true
|
|
977
|
-
});
|
|
978
1193
|
XDatePickerComponent.prototype.writeValue = function (value) {
|
|
979
1194
|
if (i2.XIsDate(value)) {
|
|
980
1195
|
this.modelType = 'date';
|
|
@@ -1007,7 +1222,8 @@
|
|
|
1007
1222
|
this.setPortal();
|
|
1008
1223
|
};
|
|
1009
1224
|
XDatePickerComponent.prototype.ngOnChanges = function (changes) {
|
|
1010
|
-
|
|
1225
|
+
var type = changes.type;
|
|
1226
|
+
if (i2.XIsChange(type)) {
|
|
1011
1227
|
this.setFormat();
|
|
1012
1228
|
this.setDisplayValue(this.numberValue);
|
|
1013
1229
|
}
|
|
@@ -1018,11 +1234,13 @@
|
|
|
1018
1234
|
};
|
|
1019
1235
|
XDatePickerComponent.prototype.setSubject = function () {
|
|
1020
1236
|
var _this = this;
|
|
1021
|
-
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function (
|
|
1237
|
+
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
|
|
1022
1238
|
_this.closePortal();
|
|
1023
1239
|
});
|
|
1024
1240
|
};
|
|
1025
1241
|
XDatePickerComponent.prototype.setFormat = function () {
|
|
1242
|
+
if (this.format !== 'yyyy-MM-dd')
|
|
1243
|
+
return;
|
|
1026
1244
|
if (this.type === 'date') {
|
|
1027
1245
|
this.format = 'yyyy-MM-dd';
|
|
1028
1246
|
}
|
|
@@ -1076,11 +1294,7 @@
|
|
|
1076
1294
|
}
|
|
1077
1295
|
};
|
|
1078
1296
|
XDatePickerComponent.prototype.getValue = function () {
|
|
1079
|
-
return this.modelType
|
|
1080
|
-
? new Date(this.numberValue)
|
|
1081
|
-
: this.modelType === 'string'
|
|
1082
|
-
? this.datePipe.transform(this.numberValue, this.format)
|
|
1083
|
-
: this.numberValue;
|
|
1297
|
+
return ['date', 'string'].includes(this.modelType) ? new Date(this.numberValue) : this.numberValue;
|
|
1084
1298
|
};
|
|
1085
1299
|
XDatePickerComponent.prototype.portalAttached = function () {
|
|
1086
1300
|
var _a, _b;
|
|
@@ -1090,6 +1304,7 @@
|
|
|
1090
1304
|
var _a, _b;
|
|
1091
1305
|
if (this.portalAttached()) {
|
|
1092
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;
|
|
1093
1308
|
this.cdr.detectChanges();
|
|
1094
1309
|
return true;
|
|
1095
1310
|
}
|
|
@@ -1104,6 +1319,7 @@
|
|
|
1104
1319
|
var _a;
|
|
1105
1320
|
if (this.disabled || this.animating)
|
|
1106
1321
|
return;
|
|
1322
|
+
this.active = true;
|
|
1107
1323
|
var config = {
|
|
1108
1324
|
backdropClass: '',
|
|
1109
1325
|
positionStrategy: this.setPlacement(),
|
|
@@ -1125,7 +1341,7 @@
|
|
|
1125
1341
|
var _this = this;
|
|
1126
1342
|
var position = config.positionStrategy;
|
|
1127
1343
|
position.positionChanges.pipe(operators.takeUntil(this._unSubject)).subscribe(function (pos) {
|
|
1128
|
-
var place =
|
|
1344
|
+
var place = i2$1.XPortalConnectedPosition.get(pos.connectionPair);
|
|
1129
1345
|
place !== _this.placement && _this.positionChange.next(place);
|
|
1130
1346
|
});
|
|
1131
1347
|
};
|
|
@@ -1139,8 +1355,10 @@
|
|
|
1139
1355
|
type: this.type,
|
|
1140
1356
|
value: this.numberValue,
|
|
1141
1357
|
placement: this.placement,
|
|
1358
|
+
preset: this.preset,
|
|
1142
1359
|
valueChange: this.valueChange,
|
|
1143
1360
|
positionChange: this.positionChange,
|
|
1361
|
+
inputCom: this.inputCom,
|
|
1144
1362
|
closePortal: function () { return _this.closeSubject.next(); },
|
|
1145
1363
|
destroyPortal: function () { return _this.destroyPortal(); },
|
|
1146
1364
|
nodeEmit: function (node, sure) {
|
|
@@ -1184,7 +1402,7 @@
|
|
|
1184
1402
|
};
|
|
1185
1403
|
XDatePickerComponent.prototype.setPlacement = function () {
|
|
1186
1404
|
return this.portalService.setPlacement({
|
|
1187
|
-
elementRef: this.inputCom.
|
|
1405
|
+
elementRef: this.inputCom.inputRef,
|
|
1188
1406
|
placement: [this.placement, 'bottom-start', 'bottom-end', 'top-start', 'top-end'],
|
|
1189
1407
|
transformOriginOn: 'x-date-picker-portal'
|
|
1190
1408
|
});
|
|
@@ -1203,9 +1421,9 @@
|
|
|
1203
1421
|
};
|
|
1204
1422
|
return XDatePickerComponent;
|
|
1205
1423
|
}(XDatePickerProperty));
|
|
1206
|
-
/** @nocollapse */ XDatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.
|
|
1207
|
-
/** @nocollapse */ XDatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.
|
|
1208
|
-
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: [{
|
|
1209
1427
|
type: i0.Component,
|
|
1210
1428
|
args: [{
|
|
1211
1429
|
selector: "" + XDatePickerPrefix,
|
|
@@ -1215,7 +1433,7 @@
|
|
|
1215
1433
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1216
1434
|
providers: [baseForm.XValueAccessor(XDatePickerComponent), i1.DatePipe]
|
|
1217
1435
|
}]
|
|
1218
|
-
}], 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: [{
|
|
1219
1437
|
type: i0.ViewChild,
|
|
1220
1438
|
args: ['datePicker', { static: true }]
|
|
1221
1439
|
}], inputCom: [{
|
|
@@ -1223,70 +1441,594 @@
|
|
|
1223
1441
|
args: ['inputCom', { static: true }]
|
|
1224
1442
|
}] } });
|
|
1225
1443
|
|
|
1226
|
-
var
|
|
1227
|
-
function
|
|
1444
|
+
var XDateRangePortalComponent = /** @class */ (function () {
|
|
1445
|
+
function XDateRangePortalComponent(datePipe, lowerCasePipe, cdr, i18n) {
|
|
1446
|
+
this.datePipe = datePipe;
|
|
1447
|
+
this.lowerCasePipe = lowerCasePipe;
|
|
1448
|
+
this.cdr = cdr;
|
|
1449
|
+
this.i18n = i18n;
|
|
1450
|
+
this.type = 'date';
|
|
1451
|
+
this.display = new Date();
|
|
1452
|
+
this.startDisplay = new Date();
|
|
1453
|
+
this.endDisplay = i2.XAddMonths(this.startDisplay, 1);
|
|
1454
|
+
this.value = [];
|
|
1455
|
+
this.locale = {};
|
|
1456
|
+
this.preset = [];
|
|
1457
|
+
this._unSubject = new rxjs.Subject();
|
|
1228
1458
|
}
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1459
|
+
XDateRangePortalComponent.prototype.done = function (event) {
|
|
1460
|
+
this.animating(false);
|
|
1461
|
+
event.toState === 'void' && this.destroyPortal();
|
|
1462
|
+
};
|
|
1463
|
+
XDateRangePortalComponent.prototype.start = function () {
|
|
1464
|
+
this.animating(true);
|
|
1465
|
+
};
|
|
1466
|
+
XDateRangePortalComponent.prototype.ngOnInit = function () {
|
|
1467
|
+
var _this = this;
|
|
1468
|
+
this.valueChange.pipe(operators.takeUntil(this._unSubject)).subscribe(function (x) {
|
|
1469
|
+
_this.value = x;
|
|
1470
|
+
_this.init();
|
|
1471
|
+
});
|
|
1472
|
+
this.positionChange.pipe(operators.takeUntil(this._unSubject)).subscribe(function (x) {
|
|
1473
|
+
_this.placement = x;
|
|
1474
|
+
_this.cdr.detectChanges();
|
|
1475
|
+
});
|
|
1476
|
+
this.i18n.localeChange
|
|
1477
|
+
.pipe(operators.map(function (x) { return x.datePicker; }), operators.takeUntil(this._unSubject))
|
|
1478
|
+
.subscribe(function (x) {
|
|
1479
|
+
_this.locale = x;
|
|
1480
|
+
_this.cdr.markForCheck();
|
|
1481
|
+
});
|
|
1482
|
+
};
|
|
1483
|
+
XDateRangePortalComponent.prototype.ngAfterViewInit = function () {
|
|
1484
|
+
this.init();
|
|
1485
|
+
};
|
|
1486
|
+
XDateRangePortalComponent.prototype.ngOnDestroy = function () {
|
|
1487
|
+
this._unSubject.next();
|
|
1488
|
+
this._unSubject.unsubscribe();
|
|
1489
|
+
};
|
|
1490
|
+
XDateRangePortalComponent.prototype.init = function () {
|
|
1491
|
+
if (!i2.XIsEmpty(this.value)) {
|
|
1492
|
+
this.setDefault();
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
this.value = [];
|
|
1496
|
+
this.model = this.display;
|
|
1497
|
+
this.startModel = this.model;
|
|
1498
|
+
this.endModel = i2.XAddMonths(this.model, 1);
|
|
1499
|
+
}
|
|
1500
|
+
this.time = this.model.getTime();
|
|
1501
|
+
this._type = this.type;
|
|
1502
|
+
this.setDisplay(this.model);
|
|
1503
|
+
this.cdr.detectChanges();
|
|
1504
|
+
};
|
|
1505
|
+
XDateRangePortalComponent.prototype.stopPropagation = function (event) {
|
|
1506
|
+
event.stopPropagation();
|
|
1507
|
+
};
|
|
1508
|
+
XDateRangePortalComponent.prototype.setDefault = function () {
|
|
1509
|
+
var date = new Date();
|
|
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
|
+
}
|
|
1519
|
+
};
|
|
1520
|
+
XDateRangePortalComponent.prototype.setDisplay = function (date) {
|
|
1521
|
+
this.display = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
1522
|
+
this.startDisplay = this.display;
|
|
1523
|
+
this.endDisplay = i2.XAddMonths(this.display, 1);
|
|
1524
|
+
};
|
|
1525
|
+
XDateRangePortalComponent.prototype.dateChange = function (date) {
|
|
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); }));
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
XDateRangePortalComponent.prototype.typeChange = function (type) {
|
|
1545
|
+
this.type = type;
|
|
1546
|
+
this.cdr.detectChanges();
|
|
1547
|
+
};
|
|
1548
|
+
XDateRangePortalComponent.prototype.monthChange = function (date) {
|
|
1549
|
+
this.setDisplay(date);
|
|
1550
|
+
if (this._type === 'month') {
|
|
1551
|
+
this.model = date;
|
|
1552
|
+
// this.nodeEmit(date);
|
|
1553
|
+
}
|
|
1554
|
+
else {
|
|
1555
|
+
this.type = this._type;
|
|
1556
|
+
}
|
|
1557
|
+
this.cdr.detectChanges();
|
|
1558
|
+
};
|
|
1559
|
+
XDateRangePortalComponent.prototype.yearChange = function (date) {
|
|
1560
|
+
this.setDisplay(date);
|
|
1561
|
+
if (this._type === 'year') {
|
|
1562
|
+
this.model = date;
|
|
1563
|
+
// this.nodeEmit(date);
|
|
1564
|
+
}
|
|
1565
|
+
else {
|
|
1566
|
+
this.type = 'month';
|
|
1567
|
+
}
|
|
1568
|
+
this.cdr.detectChanges();
|
|
1569
|
+
};
|
|
1570
|
+
XDateRangePortalComponent.prototype.yearStartChange = function (number) {
|
|
1571
|
+
this.startYear = number;
|
|
1572
|
+
this.cdr.detectChanges();
|
|
1573
|
+
};
|
|
1574
|
+
XDateRangePortalComponent.prototype.nextMonth = function (num) {
|
|
1575
|
+
var date = new Date(this.display);
|
|
1576
|
+
date.setMonth(date.getMonth() + num);
|
|
1577
|
+
this.setDisplay(date);
|
|
1578
|
+
this.cdr.detectChanges();
|
|
1579
|
+
};
|
|
1580
|
+
XDateRangePortalComponent.prototype.nextYear = function (num) {
|
|
1581
|
+
var date = new Date(this.display);
|
|
1582
|
+
date.setFullYear(date.getFullYear() + num);
|
|
1583
|
+
this.setDisplay(date);
|
|
1584
|
+
this.cdr.detectChanges();
|
|
1585
|
+
};
|
|
1586
|
+
XDateRangePortalComponent.prototype.nextYears = function (num) {
|
|
1587
|
+
this.startYear += num;
|
|
1588
|
+
var date = new Date(this.display);
|
|
1589
|
+
date.setFullYear(this.startYear);
|
|
1590
|
+
this.setDisplay(date);
|
|
1591
|
+
this.cdr.detectChanges();
|
|
1592
|
+
};
|
|
1593
|
+
XDateRangePortalComponent.prototype.getLocaleMonth = function (date) {
|
|
1594
|
+
return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
|
|
1595
|
+
};
|
|
1596
|
+
XDateRangePortalComponent.prototype.onToday = function () {
|
|
1597
|
+
this.dateChange(new Date());
|
|
1598
|
+
};
|
|
1599
|
+
XDateRangePortalComponent.prototype.onYesterday = function () {
|
|
1600
|
+
this.dateChange(i2.XAddDays(new Date(), -1));
|
|
1601
|
+
};
|
|
1602
|
+
XDateRangePortalComponent.prototype.onTomorrow = function () {
|
|
1603
|
+
this.dateChange(i2.XAddDays(new Date(), 1));
|
|
1604
|
+
};
|
|
1605
|
+
XDateRangePortalComponent.prototype.onPresetFunc = function (item) {
|
|
1606
|
+
this.dateChange(item.func());
|
|
1607
|
+
};
|
|
1608
|
+
XDateRangePortalComponent.prototype.selectTime = function (time) {
|
|
1609
|
+
this.time = time.getTime();
|
|
1610
|
+
// this.nodeEmit(this.setModel(this.model, time), false);
|
|
1611
|
+
this.cdr.detectChanges();
|
|
1612
|
+
};
|
|
1613
|
+
XDateRangePortalComponent.prototype.setModel = function (date, time) {
|
|
1614
|
+
this.model = new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
|
|
1615
|
+
return this.model;
|
|
1616
|
+
};
|
|
1617
|
+
return XDateRangePortalComponent;
|
|
1618
|
+
}());
|
|
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: [{
|
|
1622
|
+
type: i0.Component,
|
|
1623
|
+
args: [{
|
|
1624
|
+
selector: "" + XDateRangePortalPrefix,
|
|
1625
|
+
templateUrl: './date-range-portal.component.html',
|
|
1626
|
+
styleUrls: ['./date-range-portal.component.scss'],
|
|
1627
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1628
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1629
|
+
animations: [i2.XConnectBaseAnimation],
|
|
1630
|
+
providers: [i1.DatePipe, i1.LowerCasePipe]
|
|
1631
|
+
}]
|
|
1632
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.XI18nService }]; }, propDecorators: { placement: [{
|
|
1633
|
+
type: i0.HostBinding,
|
|
1634
|
+
args: ['@x-connect-base-animation']
|
|
1635
|
+
}], done: [{
|
|
1636
|
+
type: i0.HostListener,
|
|
1637
|
+
args: ['@x-connect-base-animation.done', ['$event']]
|
|
1638
|
+
}], start: [{
|
|
1639
|
+
type: i0.HostListener,
|
|
1640
|
+
args: ['@x-connect-base-animation.start', ['$event']]
|
|
1641
|
+
}] } });
|
|
1642
|
+
|
|
1643
|
+
var XDateRangeComponent = /** @class */ (function (_super) {
|
|
1644
|
+
__extends(XDateRangeComponent, _super);
|
|
1645
|
+
function XDateRangeComponent(renderer, configService, cdr, portalService, viewContainerRef, datePipe, overlay) {
|
|
1646
|
+
var _this = _super.call(this) || this;
|
|
1647
|
+
_this.renderer = renderer;
|
|
1648
|
+
_this.configService = configService;
|
|
1649
|
+
_this.cdr = cdr;
|
|
1650
|
+
_this.portalService = portalService;
|
|
1651
|
+
_this.viewContainerRef = viewContainerRef;
|
|
1652
|
+
_this.datePipe = datePipe;
|
|
1653
|
+
_this.overlay = overlay;
|
|
1654
|
+
_this.modelType = 'date';
|
|
1655
|
+
_this.isInput = false;
|
|
1656
|
+
_this.enter = false;
|
|
1657
|
+
_this.inputClearable = false;
|
|
1658
|
+
_this.animating = false;
|
|
1659
|
+
_this.displayValue = [];
|
|
1660
|
+
_this.icon = 'fto-calendar';
|
|
1661
|
+
_this.maxNodes = 6;
|
|
1662
|
+
_this.protalTobottom = true;
|
|
1663
|
+
_this.valueChange = new rxjs.Subject();
|
|
1664
|
+
_this.dataChange = new rxjs.Subject();
|
|
1665
|
+
_this.positionChange = new rxjs.Subject();
|
|
1666
|
+
_this.closeSubject = new rxjs.Subject();
|
|
1667
|
+
_this.startDisplay = '';
|
|
1668
|
+
_this.endDisplay = '';
|
|
1669
|
+
_this.startActive = false;
|
|
1670
|
+
_this.endActive = false;
|
|
1671
|
+
_this._unSubject = new rxjs.Subject();
|
|
1672
|
+
return _this;
|
|
1673
|
+
}
|
|
1674
|
+
Object.defineProperty(XDateRangeComponent.prototype, "getRequired", {
|
|
1675
|
+
get: function () {
|
|
1676
|
+
return this.required && i2.XIsEmpty(this.value);
|
|
1677
|
+
},
|
|
1678
|
+
enumerable: false,
|
|
1679
|
+
configurable: true
|
|
1680
|
+
});
|
|
1681
|
+
XDateRangeComponent.prototype.writeValue = function (value) {
|
|
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
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
this.value = value;
|
|
1700
|
+
this.setDisplayValue(this.numberValue);
|
|
1701
|
+
this.valueChange.next(this.numberValue);
|
|
1702
|
+
this.cdr.detectChanges();
|
|
1703
|
+
};
|
|
1704
|
+
XDateRangeComponent.prototype.ngOnInit = function () {
|
|
1705
|
+
this.setFlex(this.dateRange.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
1706
|
+
this.setFormat();
|
|
1707
|
+
this.setClassMap();
|
|
1708
|
+
this.setSubject();
|
|
1709
|
+
};
|
|
1710
|
+
XDateRangeComponent.prototype.ngAfterViewInit = function () {
|
|
1711
|
+
this.setPortal();
|
|
1712
|
+
};
|
|
1713
|
+
XDateRangeComponent.prototype.ngOnChanges = function (changes) {
|
|
1714
|
+
var type = changes.type;
|
|
1715
|
+
if (i2.XIsChange(type)) {
|
|
1716
|
+
this.setFormat();
|
|
1717
|
+
this.setDisplayValue(this.numberValue);
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
XDateRangeComponent.prototype.ngOnDestroy = function () {
|
|
1721
|
+
this._unSubject.next();
|
|
1722
|
+
this._unSubject.unsubscribe();
|
|
1723
|
+
};
|
|
1724
|
+
XDateRangeComponent.prototype.setSubject = function () {
|
|
1725
|
+
var _this = this;
|
|
1726
|
+
this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
|
|
1727
|
+
_this.closePortal();
|
|
1728
|
+
});
|
|
1729
|
+
};
|
|
1730
|
+
XDateRangeComponent.prototype.setFormat = function () {
|
|
1731
|
+
if (this.format !== 'yyyy-MM-dd')
|
|
1732
|
+
return;
|
|
1733
|
+
if (this.type === 'date') {
|
|
1734
|
+
this.format = 'yyyy-MM-dd';
|
|
1735
|
+
}
|
|
1736
|
+
else if (this.type === 'year') {
|
|
1737
|
+
this.format = 'yyyy';
|
|
1738
|
+
}
|
|
1739
|
+
else if (this.type === 'month') {
|
|
1740
|
+
this.format = 'yyyy-MM';
|
|
1741
|
+
}
|
|
1742
|
+
else if (this.type === 'date-time') {
|
|
1743
|
+
this.format = 'yyyy-MM-dd HH:mm:ss';
|
|
1744
|
+
}
|
|
1745
|
+
else if (this.type === 'date-hour') {
|
|
1746
|
+
this.format = 'yyyy-MM-dd HH';
|
|
1747
|
+
}
|
|
1748
|
+
else if (this.type === 'date-minute') {
|
|
1749
|
+
this.format = 'yyyy-MM-dd HH:mm';
|
|
1750
|
+
}
|
|
1751
|
+
};
|
|
1752
|
+
XDateRangeComponent.prototype.menter = function () {
|
|
1753
|
+
if (this.disabled)
|
|
1754
|
+
return;
|
|
1755
|
+
this.enter = true;
|
|
1756
|
+
if (!i2.XIsEmpty(this.numberValue)) {
|
|
1757
|
+
this.icon = '';
|
|
1758
|
+
this.inputClearable = true;
|
|
1759
|
+
this.cdr.detectChanges();
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1762
|
+
XDateRangeComponent.prototype.mleave = function () {
|
|
1763
|
+
if (this.disabled)
|
|
1764
|
+
return;
|
|
1765
|
+
this.enter = false;
|
|
1766
|
+
if (this.inputClearable) {
|
|
1767
|
+
this.icon = 'fto-calendar';
|
|
1768
|
+
this.inputClearable = false;
|
|
1769
|
+
this.cdr.detectChanges();
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1772
|
+
XDateRangeComponent.prototype.clearEmit = function () {
|
|
1773
|
+
this.value = [];
|
|
1774
|
+
this.numberValue = [];
|
|
1775
|
+
this.displayValue = [];
|
|
1776
|
+
this.mleave();
|
|
1777
|
+
this.valueChange.next(this.numberValue);
|
|
1778
|
+
this.modelChange();
|
|
1779
|
+
};
|
|
1780
|
+
XDateRangeComponent.prototype.modelChange = function () {
|
|
1781
|
+
if (this.onChange) {
|
|
1782
|
+
this.onChange(this.getValue());
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
XDateRangeComponent.prototype.getValue = function () {
|
|
1786
|
+
var _this = this;
|
|
1787
|
+
return this.modelType === 'date'
|
|
1788
|
+
? this.numberValue.map(function (x) { return new Date(x); })
|
|
1789
|
+
: this.modelType === 'string'
|
|
1790
|
+
? this.numberValue.map(function (x) { return _this.datePipe.transform(x, _this.format); })
|
|
1791
|
+
: this.numberValue;
|
|
1792
|
+
};
|
|
1793
|
+
XDateRangeComponent.prototype.portalAttached = function () {
|
|
1794
|
+
var _a, _b;
|
|
1795
|
+
return (_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.hasAttached();
|
|
1796
|
+
};
|
|
1797
|
+
XDateRangeComponent.prototype.closePortal = function () {
|
|
1798
|
+
var _a, _b;
|
|
1799
|
+
if (this.portalAttached()) {
|
|
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;
|
|
1802
|
+
this.cdr.detectChanges();
|
|
1803
|
+
return true;
|
|
1804
|
+
}
|
|
1805
|
+
return false;
|
|
1806
|
+
};
|
|
1807
|
+
XDateRangeComponent.prototype.destroyPortal = function () {
|
|
1808
|
+
var _a, _b;
|
|
1809
|
+
(_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
1810
|
+
};
|
|
1811
|
+
XDateRangeComponent.prototype.showPortal = function ($event, type) {
|
|
1812
|
+
var _this = this;
|
|
1813
|
+
var _a;
|
|
1814
|
+
$event.stopPropagation();
|
|
1815
|
+
if (this.disabled || this.animating)
|
|
1816
|
+
return;
|
|
1817
|
+
this.active = true;
|
|
1818
|
+
this.startActive = type === 'start';
|
|
1819
|
+
this.endActive = type === 'end';
|
|
1820
|
+
var config = {
|
|
1821
|
+
backdropClass: '',
|
|
1822
|
+
positionStrategy: this.setPlacement(),
|
|
1823
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
1824
|
+
};
|
|
1825
|
+
this.setPosition(config);
|
|
1826
|
+
this.portal = this.portalService.attach({
|
|
1827
|
+
content: XDateRangePortalComponent,
|
|
1828
|
+
viewContainerRef: this.viewContainerRef,
|
|
1829
|
+
overlayConfig: config
|
|
1830
|
+
});
|
|
1831
|
+
(_a = this.portal.overlayRef) === null || _a === void 0 ? void 0 : _a.outsidePointerEvents().pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
|
|
1832
|
+
_this.setDisplayValue(_this.numberValue);
|
|
1833
|
+
_this.closeSubject.next();
|
|
1834
|
+
});
|
|
1835
|
+
this.setInstance();
|
|
1836
|
+
};
|
|
1837
|
+
XDateRangeComponent.prototype.setPosition = function (config) {
|
|
1838
|
+
var _this = this;
|
|
1839
|
+
var position = config.positionStrategy;
|
|
1840
|
+
position.positionChanges.pipe(operators.takeUntil(this._unSubject)).subscribe(function (pos) {
|
|
1841
|
+
var place = i2$1.XPortalConnectedPosition.get(pos.connectionPair);
|
|
1842
|
+
place !== _this.placement && _this.positionChange.next(place);
|
|
1843
|
+
});
|
|
1844
|
+
};
|
|
1845
|
+
XDateRangeComponent.prototype.setInstance = function () {
|
|
1846
|
+
var _this = this;
|
|
1847
|
+
var _a;
|
|
1848
|
+
var componentRef = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.componentRef;
|
|
1849
|
+
if (!componentRef)
|
|
1850
|
+
return;
|
|
1851
|
+
Object.assign(componentRef.instance, {
|
|
1852
|
+
type: this.type,
|
|
1853
|
+
value: this.numberValue,
|
|
1854
|
+
placement: this.placement,
|
|
1855
|
+
preset: this.preset,
|
|
1856
|
+
valueChange: this.valueChange,
|
|
1857
|
+
positionChange: this.positionChange,
|
|
1858
|
+
closePortal: function () { return _this.closeSubject.next(); },
|
|
1859
|
+
destroyPortal: function () { return _this.destroyPortal(); },
|
|
1860
|
+
nodeEmit: function (dates, sure) {
|
|
1861
|
+
if (sure === void 0) { sure = true; }
|
|
1862
|
+
return _this.onNodeClick(dates, sure);
|
|
1863
|
+
},
|
|
1864
|
+
startNodeEmit: function (node) { return _this.startNodeClick(node); },
|
|
1865
|
+
endNodeEmit: function (node) { return _this.endNodeClick(node); },
|
|
1866
|
+
animating: function (ing) { return (_this.animating = ing); }
|
|
1867
|
+
});
|
|
1868
|
+
componentRef.changeDetectorRef.detectChanges();
|
|
1869
|
+
};
|
|
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) {
|
|
1879
|
+
if (sure === void 0) { sure = true; }
|
|
1880
|
+
this.isInput = false;
|
|
1881
|
+
if (sure) {
|
|
1882
|
+
this.numberValue = dates.map(function (x) { return x.getTime(); });
|
|
1883
|
+
this.value = this.getValue();
|
|
1884
|
+
this.setDisplayValue(this.numberValue);
|
|
1885
|
+
this.closeSubject.next();
|
|
1886
|
+
this.modelChange();
|
|
1887
|
+
this.nodeEmit.emit(this.numberValue);
|
|
1888
|
+
}
|
|
1889
|
+
else {
|
|
1890
|
+
this.setDisplayValue(dates.map(function (x) { return x.getTime(); }));
|
|
1891
|
+
this.cdr.markForCheck();
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
XDateRangeComponent.prototype.onInput = function () {
|
|
1895
|
+
this.isInput = true;
|
|
1896
|
+
};
|
|
1897
|
+
XDateRangeComponent.prototype.setDisplayValue = function (dateNumber) {
|
|
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
|
+
// }
|
|
1908
|
+
};
|
|
1909
|
+
XDateRangeComponent.prototype.setPlacement = function () {
|
|
1910
|
+
return this.portalService.setPlacement({
|
|
1911
|
+
elementRef: this.inputGroup.elementRef,
|
|
1912
|
+
placement: [this.placement, 'bottom-start', 'bottom-end', 'top-start', 'top-end'],
|
|
1913
|
+
transformOriginOn: 'x-date-range-portal'
|
|
1914
|
+
});
|
|
1915
|
+
};
|
|
1916
|
+
XDateRangeComponent.prototype.setPortal = function () {
|
|
1917
|
+
var _a, _b;
|
|
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()));
|
|
1919
|
+
};
|
|
1920
|
+
XDateRangeComponent.prototype.setClassMap = function () {
|
|
1921
|
+
i2.XClearClass(this.labelMap);
|
|
1922
|
+
this.labelMap["x-text-align-" + this.labelAlign] = this.labelAlign ? true : false;
|
|
1923
|
+
};
|
|
1924
|
+
XDateRangeComponent.prototype.formControlChanges = function () {
|
|
1925
|
+
this.ngOnInit();
|
|
1926
|
+
this.cdr.detectChanges();
|
|
1927
|
+
};
|
|
1928
|
+
return XDateRangeComponent;
|
|
1929
|
+
}(XDateRangeProperty));
|
|
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: [{
|
|
1933
|
+
type: i0.Component,
|
|
1934
|
+
args: [{
|
|
1935
|
+
selector: "" + XDateRangePrefix,
|
|
1936
|
+
templateUrl: './date-range.component.html',
|
|
1937
|
+
styleUrls: ['./date-range.component.scss'],
|
|
1938
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1939
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1940
|
+
providers: [baseForm.XValueAccessor(XDateRangeComponent), i1.DatePipe]
|
|
1941
|
+
}]
|
|
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: [{
|
|
1943
|
+
type: i0.ViewChild,
|
|
1944
|
+
args: ['dateRange', { static: true }]
|
|
1945
|
+
}], inputGroup: [{
|
|
1946
|
+
type: i0.ViewChild,
|
|
1947
|
+
args: ['inputGroup', { static: true }]
|
|
1948
|
+
}] } });
|
|
1949
|
+
|
|
1950
|
+
var XDatePickerModule = /** @class */ (function () {
|
|
1951
|
+
function XDatePickerModule() {
|
|
1952
|
+
}
|
|
1953
|
+
return XDatePickerModule;
|
|
1954
|
+
}());
|
|
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,
|
|
1957
|
+
XDatePickerPortalComponent,
|
|
1958
|
+
XPickerDateComponent,
|
|
1959
|
+
XPickerMonthComponent,
|
|
1960
|
+
XPickerYearComponent,
|
|
1961
|
+
XDatePickerProperty,
|
|
1962
|
+
XPickerDateProperty,
|
|
1963
|
+
XPickerMonthProperty,
|
|
1964
|
+
XPickerYearProperty,
|
|
1965
|
+
XDateRangeComponent,
|
|
1966
|
+
XDateRangePortalComponent,
|
|
1967
|
+
XDateRangeProperty], imports: [i1.CommonModule,
|
|
1968
|
+
i6.FormsModule,
|
|
1969
|
+
i6.ReactiveFormsModule,
|
|
1970
|
+
i2$1.XPortalModule,
|
|
1971
|
+
i7.XTimePickerModule,
|
|
1972
|
+
i5.XInputModule,
|
|
1973
|
+
i4.XButtonModule,
|
|
1974
|
+
i6$1.XIconModule,
|
|
1975
|
+
i3.XI18nModule,
|
|
1976
|
+
baseForm.XBaseFormModule], exports: [XDatePickerComponent,
|
|
1977
|
+
XDateRangeComponent,
|
|
1978
|
+
XDatePickerPortalComponent,
|
|
1979
|
+
XPickerDateComponent,
|
|
1980
|
+
XPickerMonthComponent,
|
|
1981
|
+
XPickerYearComponent] });
|
|
1982
|
+
/** @nocollapse */ XDatePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, imports: [[
|
|
1983
|
+
i1.CommonModule,
|
|
1984
|
+
i6.FormsModule,
|
|
1985
|
+
i6.ReactiveFormsModule,
|
|
1986
|
+
i2$1.XPortalModule,
|
|
1987
|
+
i7.XTimePickerModule,
|
|
1988
|
+
i5.XInputModule,
|
|
1989
|
+
i4.XButtonModule,
|
|
1990
|
+
i6$1.XIconModule,
|
|
1991
|
+
i3.XI18nModule,
|
|
1992
|
+
baseForm.XBaseFormModule
|
|
1993
|
+
]] });
|
|
1994
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, decorators: [{
|
|
1995
|
+
type: i0.NgModule,
|
|
1996
|
+
args: [{
|
|
1997
|
+
declarations: [
|
|
1998
|
+
XDatePickerComponent,
|
|
1999
|
+
XDatePickerPortalComponent,
|
|
2000
|
+
XPickerDateComponent,
|
|
2001
|
+
XPickerMonthComponent,
|
|
2002
|
+
XPickerYearComponent,
|
|
2003
|
+
XDatePickerProperty,
|
|
2004
|
+
XPickerDateProperty,
|
|
2005
|
+
XPickerMonthProperty,
|
|
2006
|
+
XPickerYearProperty,
|
|
2007
|
+
XDateRangeComponent,
|
|
2008
|
+
XDateRangePortalComponent,
|
|
2009
|
+
XDateRangeProperty
|
|
2010
|
+
],
|
|
2011
|
+
exports: [
|
|
2012
|
+
XDatePickerComponent,
|
|
2013
|
+
XDateRangeComponent,
|
|
2014
|
+
XDatePickerPortalComponent,
|
|
2015
|
+
XPickerDateComponent,
|
|
2016
|
+
XPickerMonthComponent,
|
|
2017
|
+
XPickerYearComponent
|
|
1275
2018
|
],
|
|
1276
|
-
exports: [XDatePickerComponent, XDatePickerPortalComponent, XPickerDateComponent, XPickerMonthComponent, XPickerYearComponent],
|
|
1277
2019
|
imports: [
|
|
1278
2020
|
i1.CommonModule,
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
2021
|
+
i6.FormsModule,
|
|
2022
|
+
i6.ReactiveFormsModule,
|
|
2023
|
+
i2$1.XPortalModule,
|
|
1282
2024
|
i7.XTimePickerModule,
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
2025
|
+
i5.XInputModule,
|
|
2026
|
+
i4.XButtonModule,
|
|
2027
|
+
i6$1.XIconModule,
|
|
2028
|
+
i3.XI18nModule,
|
|
1287
2029
|
baseForm.XBaseFormModule
|
|
1288
2030
|
],
|
|
1289
|
-
entryComponents: [XDatePickerPortalComponent]
|
|
2031
|
+
entryComponents: [XDatePickerPortalComponent, XDateRangePortalComponent]
|
|
1290
2032
|
}]
|
|
1291
2033
|
}] });
|
|
1292
2034
|
|
|
@@ -1300,6 +2042,11 @@
|
|
|
1300
2042
|
exports.XDatePickerPortalPrefix = XDatePickerPortalPrefix;
|
|
1301
2043
|
exports.XDatePickerPrefix = XDatePickerPrefix;
|
|
1302
2044
|
exports.XDatePickerProperty = XDatePickerProperty;
|
|
2045
|
+
exports.XDateRangeComponent = XDateRangeComponent;
|
|
2046
|
+
exports.XDateRangePortalComponent = XDateRangePortalComponent;
|
|
2047
|
+
exports.XDateRangePortalPrefix = XDateRangePortalPrefix;
|
|
2048
|
+
exports.XDateRangePrefix = XDateRangePrefix;
|
|
2049
|
+
exports.XDateRangeProperty = XDateRangeProperty;
|
|
1303
2050
|
exports.XPickerDateComponent = XPickerDateComponent;
|
|
1304
2051
|
exports.XPickerDatePrefix = XPickerDatePrefix;
|
|
1305
2052
|
exports.XPickerDateProperty = XPickerDateProperty;
|
|
@@ -1312,5 +2059,5 @@
|
|
|
1312
2059
|
|
|
1313
2060
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1314
2061
|
|
|
1315
|
-
}))
|
|
2062
|
+
}));
|
|
1316
2063
|
//# sourceMappingURL=ng-nest-ui-date-picker.umd.js.map
|