@ng-nest/ui 17.0.11 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/affix/affix.component.d.ts +0 -2
- package/affix/affix.property.d.ts +12 -7
- package/alert/alert.component.d.ts +12 -11
- package/alert/alert.property.d.ts +36 -35
- package/anchor/anchor.component.d.ts +15 -18
- package/anchor/anchor.property.d.ts +17 -8
- package/api/api.component.d.ts +2 -7
- package/auto-complete/auto-complete-portal.component.d.ts +20 -25
- package/auto-complete/auto-complete.component.d.ts +17 -34
- package/auto-complete/auto-complete.property.d.ts +282 -20
- package/avatar/avatar.component.d.ts +29 -19
- package/avatar/avatar.property.d.ts +78 -12
- package/back-top/back-top.component.d.ts +12 -17
- package/back-top/back-top.property.d.ts +12 -8
- package/badge/badge.component.d.ts +9 -16
- package/badge/badge.property.d.ts +95 -13
- package/base-form/base-form.component.d.ts +53 -26
- package/base-form/base-form.module.d.ts +1 -2
- package/base-form/base-form.property.d.ts +173 -45
- package/button/button.component.d.ts +16 -14
- package/button/button.property.d.ts +242 -100
- package/button/buttons.component.d.ts +8 -10
- package/calendar/calendar.component.d.ts +41 -27
- package/calendar/calendar.property.d.ts +69 -10
- package/card/card.component.d.ts +4 -6
- package/card/card.property.d.ts +50 -9
- package/carousel/carousel-panel.component.d.ts +15 -14
- package/carousel/carousel.component.d.ts +18 -19
- package/carousel/carousel.property.d.ts +168 -28
- package/cascade/cascade-portal.component.d.ts +28 -28
- package/cascade/cascade.component.d.ts +24 -30
- package/cascade/cascade.property.d.ts +292 -20
- package/checkbox/checkbox.component.d.ts +17 -17
- package/checkbox/checkbox.property.d.ts +274 -35
- package/collapse/collapse-panel.component.d.ts +5 -2
- package/collapse/collapse.component.d.ts +3 -7
- package/collapse/collapse.property.d.ts +113 -20
- package/color/color.component.d.ts +4 -9
- package/color/color.property.d.ts +36 -8
- package/color-picker/color-picker-portal.component.d.ts +40 -52
- package/color-picker/color-picker.component.d.ts +19 -28
- package/color-picker/color-picker.property.d.ts +260 -10
- package/comment/comment-reply.component.d.ts +1 -8
- package/comment/comment.component.d.ts +4 -14
- package/comment/comment.property.d.ts +21 -15
- package/container/aside.component.d.ts +3 -8
- package/container/container.component.d.ts +5 -9
- package/container/container.property.d.ts +33 -19
- package/container/footer.component.d.ts +2 -5
- package/container/header.component.d.ts +2 -5
- package/container/main.component.d.ts +2 -7
- package/core/animation/badge.d.ts +8 -0
- package/core/animation/connect.d.ts +8 -1
- package/core/animation/consts.d.ts +4 -0
- package/core/animation/drop.d.ts +4 -0
- package/core/animation/fade.d.ts +4 -0
- package/core/animation/move.d.ts +4 -0
- package/core/animation/opacity.d.ts +4 -0
- package/core/animation/slide.d.ts +4 -1
- package/core/config/config.d.ts +174 -108
- package/core/config/config.service.d.ts +5 -5
- package/core/config/index.d.ts +1 -0
- package/core/functions/chunk.d.ts +12 -1
- package/core/functions/clone-deep.d.ts +16 -0
- package/core/functions/convert.d.ts +77 -4
- package/core/functions/csspx.d.ts +5 -0
- package/core/functions/date.d.ts +59 -3
- package/core/functions/drop.d.ts +13 -1
- package/core/functions/flex.d.ts +4 -0
- package/core/functions/group-by.d.ts +5 -1
- package/core/functions/guid.d.ts +2 -1
- package/core/functions/has-in.d.ts +4 -0
- package/core/functions/order-by.d.ts +5 -1
- package/core/functions/parent-path.d.ts +8 -0
- package/core/functions/property.d.ts +12 -6
- package/core/functions/public-api.d.ts +1 -0
- package/core/functions/remove.d.ts +5 -1
- package/core/functions/resize.d.ts +13 -1
- package/core/interfaces/data.type.d.ts +172 -3
- package/core/interfaces/identify.type.d.ts +60 -0
- package/core/interfaces/layout.type.d.ts +88 -37
- package/core/interfaces/result-list.type.d.ts +91 -3
- package/core/services/http.service.d.ts +0 -22
- package/core/services/repository.service.d.ts +1 -1
- package/core/services/reuse-strategy.service.d.ts +0 -22
- package/core/services/storage.service.d.ts +0 -21
- package/core/theme/theme.d.ts +45 -1
- package/core/theme/theme.service.d.ts +46 -11
- package/core/util/animation.d.ts +1 -1
- package/core/util/camel-to-kebab.d.ts +13 -0
- package/core/util/check.d.ts +10 -2
- package/core/util/computed-style.d.ts +8 -0
- package/core/util/host.d.ts +3 -2
- package/core/util/html.d.ts +3 -2
- package/core/util/kebab-to-camel.d.ts +13 -0
- package/core/util/log.d.ts +10 -2
- package/core/util/option.d.ts +3 -4
- package/core/util/public-api.d.ts +2 -0
- package/crumb/crumb.component.d.ts +1 -10
- package/crumb/crumb.property.d.ts +12 -8
- package/date-picker/date-picker-portal.component.d.ts +80 -33
- package/date-picker/date-picker.component.d.ts +74 -32
- package/date-picker/date-picker.property.d.ts +662 -214
- package/date-picker/date-range-portal.component.d.ts +102 -49
- package/date-picker/date-range.component.d.ts +87 -43
- package/date-picker/picker-date.component.d.ts +63 -17
- package/date-picker/picker-month.component.d.ts +59 -13
- package/date-picker/picker-quarter.component.d.ts +61 -15
- package/date-picker/picker-year.component.d.ts +8 -11
- package/description/description-item.component.d.ts +1 -1
- package/description/description.component.d.ts +6 -10
- package/description/description.property.d.ts +135 -16
- package/dialog/dialog-portal.component.d.ts +4 -4
- package/dialog/dialog-portal.directives.d.ts +1 -1
- package/dialog/dialog.component.d.ts +30 -23
- package/dialog/dialog.property.d.ts +77 -134
- package/doc/doc.component.d.ts +2 -5
- package/drag/drag.directive.d.ts +1 -1
- package/drag/drag.property.d.ts +4 -5
- package/drawer/drawer-container.component.d.ts +1 -1
- package/drawer/drawer-portal.component.d.ts +1 -1
- package/drawer/drawer.component.d.ts +15 -14
- package/drawer/drawer.property.d.ts +26 -18
- package/dropdown/dropdown-portal.component.d.ts +36 -45
- package/dropdown/dropdown.component.d.ts +17 -21
- package/dropdown/dropdown.property.d.ts +24 -21
- package/empty/empty.component.d.ts +0 -7
- package/empty/empty.property.d.ts +27 -4
- package/esm2022/affix/affix.component.mjs +6 -11
- package/esm2022/affix/affix.module.mjs +4 -4
- package/esm2022/affix/affix.property.mjs +22 -20
- package/esm2022/alert/alert.component.mjs +39 -44
- package/esm2022/alert/alert.module.mjs +4 -4
- package/esm2022/alert/alert.property.mjs +102 -107
- package/esm2022/anchor/anchor-inner.component.mjs +3 -3
- package/esm2022/anchor/anchor.component.mjs +73 -95
- package/esm2022/anchor/anchor.module.mjs +4 -4
- package/esm2022/anchor/anchor.property.mjs +45 -35
- package/esm2022/api/api.component.mjs +11 -14
- package/esm2022/api/api.module.mjs +4 -4
- package/esm2022/auto-complete/auto-complete-portal.component.mjs +36 -47
- package/esm2022/auto-complete/auto-complete.component.mjs +122 -162
- package/esm2022/auto-complete/auto-complete.module.mjs +4 -4
- package/esm2022/auto-complete/auto-complete.property.mjs +142 -55
- package/esm2022/avatar/avatar-group.component.mjs +3 -3
- package/esm2022/avatar/avatar.component.mjs +75 -81
- package/esm2022/avatar/avatar.module.mjs +4 -4
- package/esm2022/avatar/avatar.property.mjs +116 -45
- package/esm2022/back-top/back-top.component.mjs +57 -73
- package/esm2022/back-top/back-top.module.mjs +4 -4
- package/esm2022/back-top/back-top.property.mjs +37 -29
- package/esm2022/badge/badge.component.mjs +51 -59
- package/esm2022/badge/badge.module.mjs +4 -4
- package/esm2022/badge/badge.property.mjs +111 -38
- package/esm2022/base-form/base-form.component.mjs +89 -81
- package/esm2022/base-form/base-form.module.mjs +7 -8
- package/esm2022/base-form/base-form.property.mjs +200 -89
- package/esm2022/button/button.component.mjs +50 -59
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button/button.property.mjs +293 -98
- package/esm2022/button/buttons.component.mjs +35 -21
- package/esm2022/calendar/calendar.component.mjs +56 -84
- package/esm2022/calendar/calendar.module.mjs +4 -4
- package/esm2022/calendar/calendar.property.mjs +78 -24
- package/esm2022/card/card.component.mjs +10 -14
- package/esm2022/card/card.module.mjs +4 -4
- package/esm2022/card/card.property.mjs +57 -22
- package/esm2022/carousel/carousel-panel.component.mjs +98 -76
- package/esm2022/carousel/carousel.component.mjs +55 -65
- package/esm2022/carousel/carousel.module.mjs +4 -4
- package/esm2022/carousel/carousel.property.mjs +215 -85
- package/esm2022/cascade/cascade-portal.component.mjs +77 -69
- package/esm2022/cascade/cascade.component.mjs +107 -135
- package/esm2022/cascade/cascade.module.mjs +4 -4
- package/esm2022/cascade/cascade.property.mjs +137 -48
- package/esm2022/checkbox/checkbox.component.mjs +68 -83
- package/esm2022/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/checkbox/checkbox.property.mjs +136 -73
- package/esm2022/collapse/collapse-panel.component.mjs +31 -21
- package/esm2022/collapse/collapse.component.mjs +16 -21
- package/esm2022/collapse/collapse.module.mjs +4 -4
- package/esm2022/collapse/collapse.property.mjs +156 -66
- package/esm2022/color/color.component.mjs +25 -26
- package/esm2022/color/color.module.mjs +4 -4
- package/esm2022/color/color.property.mjs +47 -27
- package/esm2022/color-picker/color-picker-portal.component.mjs +120 -130
- package/esm2022/color-picker/color-picker.component.mjs +76 -117
- package/esm2022/color-picker/color-picker.module.mjs +4 -4
- package/esm2022/color-picker/color-picker.property.mjs +123 -27
- package/esm2022/comment/comment-reply.component.mjs +9 -24
- package/esm2022/comment/comment.component.mjs +11 -40
- package/esm2022/comment/comment.module.mjs +4 -4
- package/esm2022/comment/comment.property.mjs +27 -50
- package/esm2022/container/aside.component.mjs +12 -15
- package/esm2022/container/container.component.mjs +21 -24
- package/esm2022/container/container.module.mjs +4 -4
- package/esm2022/container/container.property.mjs +55 -51
- package/esm2022/container/footer.component.mjs +14 -16
- package/esm2022/container/header.component.mjs +14 -16
- package/esm2022/container/main.component.mjs +10 -13
- package/esm2022/core/animation/badge.mjs +17 -3
- package/esm2022/core/animation/connect.mjs +17 -99
- package/esm2022/core/animation/consts.mjs +5 -1
- package/esm2022/core/animation/drop.mjs +5 -1
- package/esm2022/core/animation/fade.mjs +13 -3
- package/esm2022/core/animation/move.mjs +5 -1
- package/esm2022/core/animation/opacity.mjs +5 -1
- package/esm2022/core/animation/slide.mjs +5 -23
- package/esm2022/core/config/config.mjs +1 -1
- package/esm2022/core/config/config.service.mjs +11 -59
- package/esm2022/core/config/index.mjs +2 -0
- package/esm2022/core/functions/chunk.mjs +12 -1
- package/esm2022/core/functions/clone-deep.mjs +17 -1
- package/esm2022/core/functions/convert.mjs +110 -13
- package/esm2022/core/functions/csspx.mjs +17 -0
- package/esm2022/core/functions/date.mjs +80 -4
- package/esm2022/core/functions/drop.mjs +13 -1
- package/esm2022/core/functions/flex.mjs +5 -1
- package/esm2022/core/functions/group-by.mjs +5 -1
- package/esm2022/core/functions/guid.mjs +3 -2
- package/esm2022/core/functions/has-in.mjs +5 -1
- package/esm2022/core/functions/order-by.mjs +5 -1
- package/esm2022/core/functions/parent-path.mjs +9 -1
- package/esm2022/core/functions/property.mjs +16 -8
- package/esm2022/core/functions/public-api.mjs +2 -1
- package/esm2022/core/functions/remove.mjs +5 -1
- package/esm2022/core/functions/resize.mjs +7 -5
- package/esm2022/core/interfaces/data.type.mjs +97 -8
- package/esm2022/core/interfaces/identify.type.mjs +5 -2
- package/esm2022/core/interfaces/layout.type.mjs +1 -1
- package/esm2022/core/interfaces/result-list.type.mjs +1 -1
- package/esm2022/core/services/http.service.mjs +4 -33
- package/esm2022/core/services/preloading-strategy.service.mjs +4 -6
- package/esm2022/core/services/repository.service.mjs +1 -1
- package/esm2022/core/services/reuse-strategy.service.mjs +1 -26
- package/esm2022/core/services/storage.service.mjs +4 -26
- package/esm2022/core/theme/theme.mjs +55 -11
- package/esm2022/core/theme/theme.service.mjs +92 -20
- package/esm2022/core/util/animation.mjs +2 -23
- package/esm2022/core/util/camel-to-kebab.mjs +16 -0
- package/esm2022/core/util/check.mjs +11 -3
- package/esm2022/core/util/computed-style.mjs +9 -1
- package/esm2022/core/util/host.mjs +4 -3
- package/esm2022/core/util/html.mjs +5 -4
- package/esm2022/core/util/kebab-to-camel.mjs +16 -0
- package/esm2022/core/util/log.mjs +11 -3
- package/esm2022/core/util/option.mjs +4 -5
- package/esm2022/core/util/public-api.mjs +3 -1
- package/esm2022/crumb/crumb.component.mjs +6 -29
- package/esm2022/crumb/crumb.module.mjs +4 -4
- package/esm2022/crumb/crumb.property.mjs +21 -26
- package/esm2022/date-picker/date-picker-portal.component.mjs +86 -102
- package/esm2022/date-picker/date-picker.component.mjs +157 -191
- package/esm2022/date-picker/date-picker.module.mjs +4 -4
- package/esm2022/date-picker/date-picker.property.mjs +440 -462
- package/esm2022/date-picker/date-quarter.pipe.mjs +3 -3
- package/esm2022/date-picker/date-range-portal.component.mjs +172 -186
- package/esm2022/date-picker/date-range.component.mjs +224 -266
- package/esm2022/date-picker/picker-date.component.mjs +150 -150
- package/esm2022/date-picker/picker-month.component.mjs +115 -118
- package/esm2022/date-picker/picker-quarter.component.mjs +120 -119
- package/esm2022/date-picker/picker-year.component.mjs +121 -108
- package/esm2022/description/description-item.component.mjs +12 -11
- package/esm2022/description/description.component.mjs +33 -48
- package/esm2022/description/description.module.mjs +4 -4
- package/esm2022/description/description.property.mjs +175 -52
- package/esm2022/dialog/dialog-container.component.mjs +3 -3
- package/esm2022/dialog/dialog-portal.component.mjs +14 -20
- package/esm2022/dialog/dialog-portal.directives.mjs +20 -20
- package/esm2022/dialog/dialog-ref.mjs +1 -1
- package/esm2022/dialog/dialog.component.mjs +117 -131
- package/esm2022/dialog/dialog.module.mjs +4 -4
- package/esm2022/dialog/dialog.property.mjs +149 -139
- package/esm2022/dialog/dialog.service.mjs +7 -7
- package/esm2022/doc/doc.component.mjs +11 -12
- package/esm2022/doc/doc.module.mjs +4 -4
- package/esm2022/drag/drag.directive.mjs +8 -21
- package/esm2022/drag/drag.module.mjs +4 -4
- package/esm2022/drag/drag.property.mjs +10 -16
- package/esm2022/drawer/drawer-container.component.mjs +9 -9
- package/esm2022/drawer/drawer-portal.component.mjs +11 -13
- package/esm2022/drawer/drawer-portal.directives.mjs +9 -9
- package/esm2022/drawer/drawer.component.mjs +40 -59
- package/esm2022/drawer/drawer.module.mjs +4 -4
- package/esm2022/drawer/drawer.property.mjs +47 -54
- package/esm2022/drawer/drawer.service.mjs +6 -6
- package/esm2022/dropdown/dropdown-portal.component.mjs +90 -91
- package/esm2022/dropdown/dropdown.component.mjs +75 -91
- package/esm2022/dropdown/dropdown.module.mjs +4 -4
- package/esm2022/dropdown/dropdown.property.mjs +62 -59
- package/esm2022/empty/empty.component.mjs +6 -26
- package/esm2022/empty/empty.module.mjs +4 -4
- package/esm2022/empty/empty.property.mjs +41 -20
- package/esm2022/examples/examples.component.mjs +11 -12
- package/esm2022/examples/examples.module.mjs +4 -4
- package/esm2022/find/find.component.mjs +188 -232
- package/esm2022/find/find.module.mjs +4 -4
- package/esm2022/find/find.property.mjs +234 -193
- package/esm2022/form/control.component.mjs +138 -116
- package/esm2022/form/form.component.mjs +28 -36
- package/esm2022/form/form.module.mjs +4 -4
- package/esm2022/form/form.property.mjs +57 -55
- package/esm2022/highlight/highlight.component.mjs +54 -59
- package/esm2022/highlight/highlight.module.mjs +4 -4
- package/esm2022/highlight/highlight.property.mjs +25 -21
- package/esm2022/highlight/highlight.service.mjs +17 -0
- package/esm2022/highlight/public-api.mjs +2 -1
- package/esm2022/i18n/i18n.directive.mjs +17 -31
- package/esm2022/i18n/i18n.module.mjs +4 -4
- package/esm2022/i18n/i18n.pipe.mjs +4 -4
- package/esm2022/i18n/i18n.property.mjs +2 -2
- package/esm2022/i18n/i18n.service.mjs +4 -4
- package/esm2022/i18n/languages/ar_EG.mjs +122 -77
- package/esm2022/i18n/languages/bg_BG.mjs +135 -87
- package/esm2022/i18n/languages/ca_ES.mjs +130 -82
- package/esm2022/i18n/languages/cs_CZ.mjs +127 -79
- package/esm2022/i18n/languages/da_DK.mjs +129 -81
- package/esm2022/i18n/languages/de_DE.mjs +125 -77
- package/esm2022/i18n/languages/el_GR.mjs +132 -84
- package/esm2022/i18n/languages/en_GB.mjs +5 -2
- package/esm2022/i18n/languages/en_US.mjs +5 -2
- package/esm2022/i18n/languages/es_ES.mjs +131 -83
- package/esm2022/i18n/languages/et_EE.mjs +130 -82
- package/esm2022/i18n/languages/fa_IR.mjs +109 -61
- package/esm2022/i18n/languages/fi_FI.mjs +134 -86
- package/esm2022/i18n/languages/fr_BE.mjs +128 -80
- package/esm2022/i18n/languages/fr_FR.mjs +127 -79
- package/esm2022/i18n/languages/he_IL.mjs +119 -74
- package/esm2022/i18n/languages/hi_IN.mjs +104 -56
- package/esm2022/i18n/languages/hr_HR.mjs +133 -85
- package/esm2022/i18n/languages/hu_HU.mjs +132 -84
- package/esm2022/i18n/languages/hy_AM.mjs +133 -85
- package/esm2022/i18n/languages/id_ID.mjs +119 -71
- package/esm2022/i18n/languages/is_IS.mjs +125 -77
- package/esm2022/i18n/languages/it_IT.mjs +127 -79
- package/esm2022/i18n/languages/ja_JP.mjs +95 -47
- package/esm2022/i18n/languages/ka_GE.mjs +106 -58
- package/esm2022/i18n/languages/kn_IN.mjs +110 -62
- package/esm2022/i18n/languages/ko_KR.mjs +126 -70
- package/esm2022/i18n/languages/ku_IQ.mjs +117 -85
- package/esm2022/i18n/languages/lv_LV.mjs +128 -72
- package/esm2022/i18n/languages/mn_MN.mjs +138 -82
- package/esm2022/i18n/languages/ms_MY.mjs +124 -68
- package/esm2022/i18n/languages/nb_NO.mjs +133 -77
- package/esm2022/i18n/languages/ne_NP.mjs +117 -61
- package/esm2022/i18n/languages/nl_BE.mjs +134 -78
- package/esm2022/i18n/languages/nl_NL.mjs +134 -78
- package/esm2022/i18n/languages/pl_PL.mjs +132 -76
- package/esm2022/i18n/languages/pt_BR.mjs +133 -77
- package/esm2022/i18n/languages/pt_PT.mjs +133 -77
- package/esm2022/i18n/languages/ro_RO.mjs +130 -74
- package/esm2022/i18n/languages/ru_RU.mjs +131 -75
- package/esm2022/i18n/languages/sk_SK.mjs +130 -83
- package/esm2022/i18n/languages/sl_SI.mjs +121 -73
- package/esm2022/i18n/languages/sr_RS.mjs +138 -90
- package/esm2022/i18n/languages/sv_SE.mjs +132 -84
- package/esm2022/i18n/languages/ta_IN.mjs +117 -61
- package/esm2022/i18n/languages/th_TH.mjs +99 -43
- package/esm2022/i18n/languages/tr_TR.mjs +126 -70
- package/esm2022/i18n/languages/uk_UA.mjs +124 -68
- package/esm2022/i18n/languages/vi_VN.mjs +133 -77
- package/esm2022/i18n/languages/zh_CN.mjs +5 -2
- package/esm2022/i18n/languages/zh_TW.mjs +5 -2
- package/esm2022/icon/icon.component.mjs +46 -77
- package/esm2022/icon/icon.module.mjs +4 -4
- package/esm2022/icon/icon.property.mjs +52 -30
- package/esm2022/icon/icon.service.mjs +15 -14
- package/esm2022/image/image-group.component.mjs +15 -15
- package/esm2022/image/image-preview.component.mjs +47 -46
- package/esm2022/image/image.component.mjs +34 -53
- package/esm2022/image/image.module.mjs +4 -4
- package/esm2022/image/image.property.mjs +152 -38
- package/esm2022/index.mjs +1 -3
- package/esm2022/inner/inner.component.mjs +15 -20
- package/esm2022/inner/inner.module.mjs +4 -4
- package/esm2022/inner/inner.property.mjs +17 -15
- package/esm2022/input/input-group.component.mjs +5 -7
- package/esm2022/input/input.component.mjs +130 -143
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/input/input.property.mjs +205 -143
- package/esm2022/input-number/input-number.component.mjs +68 -86
- package/esm2022/input-number/input-number.module.mjs +4 -4
- package/esm2022/input-number/input-number.property.mjs +130 -60
- package/esm2022/keyword/keyword.directive.mjs +46 -54
- package/esm2022/keyword/keyword.module.mjs +4 -4
- package/esm2022/keyword/keyword.property.mjs +32 -28
- package/esm2022/layout/col.component.mjs +48 -51
- package/esm2022/layout/layout.module.mjs +4 -4
- package/esm2022/layout/layout.property.mjs +71 -63
- package/esm2022/layout/row.component.mjs +36 -27
- package/esm2022/link/link.component.mjs +18 -45
- package/esm2022/link/link.module.mjs +4 -4
- package/esm2022/link/link.property.mjs +101 -41
- package/esm2022/list/list-drop-group.directive.mjs +9 -18
- package/esm2022/list/list-option.component.mjs +16 -33
- package/esm2022/list/list.component.mjs +160 -164
- package/esm2022/list/list.module.mjs +4 -4
- package/esm2022/list/list.property.mjs +195 -188
- package/esm2022/loading/loading.component.mjs +44 -45
- package/esm2022/loading/loading.module.mjs +4 -4
- package/esm2022/loading/loading.property.mjs +50 -52
- package/esm2022/menu/menu-node.component.mjs +21 -21
- package/esm2022/menu/menu.component.mjs +57 -76
- package/esm2022/menu/menu.module.mjs +4 -4
- package/esm2022/menu/menu.property.mjs +56 -73
- package/esm2022/message/message.component.mjs +8 -8
- package/esm2022/message/message.module.mjs +4 -4
- package/esm2022/message/message.property.mjs +1 -1
- package/esm2022/message/message.service.mjs +7 -7
- package/esm2022/message-box/message-box.component.mjs +5 -5
- package/esm2022/message-box/message-box.module.mjs +4 -4
- package/esm2022/message-box/message-box.service.mjs +6 -6
- package/esm2022/notification/notification.component.mjs +8 -8
- package/esm2022/notification/notification.module.mjs +4 -4
- package/esm2022/notification/notification.property.mjs +1 -1
- package/esm2022/notification/notification.service.mjs +8 -8
- package/esm2022/outlet/outlet.directive.mjs +12 -14
- package/esm2022/outlet/outlet.module.mjs +4 -4
- package/esm2022/outlet/outlet.property.mjs +2 -2
- package/esm2022/page-header/page-header.component.mjs +12 -28
- package/esm2022/page-header/page-header.module.mjs +4 -4
- package/esm2022/page-header/page-header.property.mjs +31 -27
- package/esm2022/pagination/pagination.component.mjs +74 -100
- package/esm2022/pagination/pagination.module.mjs +4 -4
- package/esm2022/pagination/pagination.property.mjs +99 -136
- package/esm2022/pattern/pattern.component.mjs +12 -13
- package/esm2022/pattern/pattern.module.mjs +4 -4
- package/esm2022/pattern/pattern.property.mjs +2 -2
- package/esm2022/popconfirm/popconfirm.component.mjs +35 -47
- package/esm2022/popconfirm/popconfirm.module.mjs +4 -4
- package/esm2022/popconfirm/popconfirm.property.mjs +76 -62
- package/esm2022/popover/popover-portal.component.mjs +24 -75
- package/esm2022/popover/popover.directive.mjs +70 -86
- package/esm2022/popover/popover.module.mjs +4 -4
- package/esm2022/popover/popover.property.mjs +71 -58
- package/esm2022/portal/portal.module.mjs +4 -4
- package/esm2022/portal/portal.property.mjs +1 -1
- package/esm2022/portal/portal.service.mjs +4 -4
- package/esm2022/progress/progress.component.mjs +173 -167
- package/esm2022/progress/progress.module.mjs +4 -4
- package/esm2022/progress/progress.property.mjs +67 -71
- package/esm2022/radio/radio.component.mjs +45 -61
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/radio/radio.property.mjs +139 -66
- package/esm2022/rate/rate.component.mjs +61 -79
- package/esm2022/rate/rate.module.mjs +4 -4
- package/esm2022/rate/rate.property.mjs +121 -29
- package/esm2022/resizable/resizable.directive.mjs +30 -45
- package/esm2022/resizable/resizable.module.mjs +4 -4
- package/esm2022/resizable/resizable.property.mjs +16 -46
- package/esm2022/result/result.component.mjs +13 -17
- package/esm2022/result/result.module.mjs +4 -4
- package/esm2022/result/result.property.mjs +25 -17
- package/esm2022/ripple/ripple.directive.mjs +38 -27
- package/esm2022/ripple/ripple.module.mjs +4 -4
- package/esm2022/ripple/ripple.property.mjs +27 -20
- package/esm2022/select/select-portal.component.mjs +52 -67
- package/esm2022/select/select.component.mjs +301 -289
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/select/select.property.mjs +195 -102
- package/esm2022/skeleton/skeleton.component.mjs +12 -23
- package/esm2022/skeleton/skeleton.module.mjs +4 -4
- package/esm2022/skeleton/skeleton.property.mjs +31 -28
- package/esm2022/slider/slider.component.mjs +103 -149
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/slider/slider.property.mjs +60 -79
- package/esm2022/slider-select/slider-select.component.mjs +201 -220
- package/esm2022/slider-select/slider-select.module.mjs +4 -4
- package/esm2022/slider-select/slider-select.property.mjs +143 -70
- package/esm2022/statistic/countdown.component.mjs +13 -16
- package/esm2022/statistic/statistic.component.mjs +23 -21
- package/esm2022/statistic/statistic.module.mjs +4 -4
- package/esm2022/statistic/statistic.property.mjs +68 -34
- package/esm2022/steps/steps.component.mjs +33 -63
- package/esm2022/steps/steps.module.mjs +4 -4
- package/esm2022/steps/steps.property.mjs +28 -39
- package/esm2022/switch/switch.component.mjs +22 -37
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/switch/switch.property.mjs +122 -32
- package/esm2022/table/table-body.component.mjs +134 -139
- package/esm2022/table/table-foot.component.mjs +15 -18
- package/esm2022/table/table-head.component.mjs +60 -91
- package/esm2022/table/table.component.mjs +192 -222
- package/esm2022/table/table.module.mjs +4 -4
- package/esm2022/table/table.property.mjs +396 -341
- package/esm2022/tabs/tab-content.component.mjs +13 -16
- package/esm2022/tabs/tab-link.directive.mjs +6 -6
- package/esm2022/tabs/tab.component.mjs +9 -17
- package/esm2022/tabs/tabs.component.mjs +83 -135
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tabs/tabs.property.mjs +80 -91
- package/esm2022/tag/tag.component.mjs +19 -33
- package/esm2022/tag/tag.module.mjs +4 -4
- package/esm2022/tag/tag.property.mjs +44 -68
- package/esm2022/text-retract/text-retract.component.mjs +29 -46
- package/esm2022/text-retract/text-retract.module.mjs +4 -4
- package/esm2022/text-retract/text-retract.property.mjs +22 -18
- package/esm2022/textarea/textarea.component.mjs +49 -79
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/textarea/textarea.property.mjs +124 -47
- package/esm2022/theme/theme.component.mjs +86 -81
- package/esm2022/theme/theme.module.mjs +4 -4
- package/esm2022/theme/theme.property.mjs +35 -46
- package/esm2022/time-ago/time-ago.module.mjs +4 -4
- package/esm2022/time-ago/time-ago.pipe.mjs +12 -11
- package/esm2022/time-ago/time-ago.property.mjs +2 -2
- package/esm2022/time-picker/time-picker-frame.component.mjs +173 -188
- package/esm2022/time-picker/time-picker-portal.component.mjs +35 -42
- package/esm2022/time-picker/time-picker.component.mjs +139 -170
- package/esm2022/time-picker/time-picker.module.mjs +4 -4
- package/esm2022/time-picker/time-picker.property.mjs +158 -70
- package/esm2022/time-range/time-range.module.mjs +4 -4
- package/esm2022/time-range/time-range.pipe.mjs +10 -10
- package/esm2022/time-range/time-range.property.mjs +2 -2
- package/esm2022/timeline/timeline.component.mjs +14 -38
- package/esm2022/timeline/timeline.module.mjs +4 -4
- package/esm2022/timeline/timeline.property.mjs +30 -30
- package/esm2022/tooltip/tooltip-portal.component.mjs +51 -65
- package/esm2022/tooltip/tooltip.directive.mjs +65 -62
- package/esm2022/tooltip/tooltip.module.mjs +4 -4
- package/esm2022/tooltip/tooltip.property.mjs +53 -47
- package/esm2022/transfer/transfer.component.mjs +225 -184
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/transfer/transfer.property.mjs +84 -76
- package/esm2022/tree/tree-node.component.mjs +142 -132
- package/esm2022/tree/tree.component.mjs +236 -232
- package/esm2022/tree/tree.module.mjs +4 -4
- package/esm2022/tree/tree.property.mjs +228 -226
- package/esm2022/tree/tree.service.mjs +4 -4
- package/esm2022/tree-file/tree-file.component.mjs +34 -43
- package/esm2022/tree-file/tree-file.module.mjs +4 -4
- package/esm2022/tree-file/tree-file.property.mjs +45 -56
- package/esm2022/tree-select/tree-select-portal.component.mjs +45 -78
- package/esm2022/tree-select/tree-select.component.mjs +283 -296
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.property.mjs +203 -125
- package/esm2022/typography/typography.component.mjs +13 -10
- package/esm2022/typography/typography.module.mjs +4 -4
- package/esm2022/typography/typography.property.mjs +12 -11
- package/esm2022/upload/upload-portal.component.mjs +54 -57
- package/esm2022/upload/upload.component.mjs +79 -98
- package/esm2022/upload/upload.module.mjs +4 -4
- package/esm2022/upload/upload.property.mjs +73 -68
- package/examples/examples.component.d.ts +2 -5
- package/fesm2022/ng-nest-ui-affix.mjs +30 -32
- package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-alert.mjs +142 -152
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +121 -133
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-api.mjs +14 -17
- package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +296 -260
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +195 -130
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +95 -103
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +161 -96
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +286 -166
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +376 -175
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +134 -108
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +67 -36
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +365 -223
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +318 -249
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +203 -155
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +202 -106
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +316 -270
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +73 -54
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +44 -108
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +119 -123
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +985 -664
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +28 -55
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +1552 -1671
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +218 -109
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +307 -316
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +14 -15
- package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drag.mjs +20 -39
- package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drawer.mjs +116 -145
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +223 -238
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +49 -46
- package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-examples.mjs +14 -15
- package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs +422 -425
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +218 -203
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +93 -81
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +5892 -3516
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +112 -120
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +244 -147
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-inner.mjs +33 -35
- package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +198 -146
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +340 -292
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +78 -82
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +151 -140
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +119 -86
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +376 -400
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +94 -97
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +131 -167
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs +13 -13
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs +17 -17
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs +18 -18
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-outlet.mjs +16 -18
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-page-header.mjs +44 -55
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pagination.mjs +173 -236
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +16 -17
- package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popconfirm.mjs +110 -107
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +163 -215
- package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-portal.mjs +7 -7
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-progress.mjs +240 -238
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +184 -127
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +182 -108
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +46 -91
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +38 -34
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-ripple.mjs +66 -48
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +547 -459
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +44 -52
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +344 -290
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +163 -228
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +102 -68
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-steps.mjs +61 -102
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +145 -69
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +784 -800
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +185 -259
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +63 -101
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +52 -64
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +173 -126
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +123 -129
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +16 -15
- package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-picker.mjs +498 -463
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-range.mjs +14 -14
- package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-timeline.mjs +44 -68
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +168 -170
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +311 -262
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +80 -99
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +527 -495
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +601 -587
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +26 -22
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +204 -220
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui.mjs +0 -2
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/find/find.component.d.ts +30 -34
- package/find/find.property.d.ts +321 -108
- package/form/control.component.d.ts +37 -18
- package/form/form.component.d.ts +8 -10
- package/form/form.property.d.ts +111 -27
- package/highlight/highlight.component.d.ts +10 -17
- package/highlight/highlight.property.d.ts +40 -11
- package/highlight/highlight.service.d.ts +8 -0
- package/highlight/public-api.d.ts +1 -0
- package/i18n/i18n.directive.d.ts +6 -9
- package/i18n/i18n.property.d.ts +6 -2
- package/i18n/i18n.service.d.ts +2 -2
- package/i18n/languages/ar_EG.d.ts +56 -0
- package/i18n/languages/bg_BG.d.ts +56 -0
- package/i18n/languages/ca_ES.d.ts +56 -0
- package/i18n/languages/cs_CZ.d.ts +56 -0
- package/i18n/languages/da_DK.d.ts +56 -0
- package/i18n/languages/de_DE.d.ts +56 -0
- package/i18n/languages/el_GR.d.ts +56 -0
- package/i18n/languages/en_GB.d.ts +3 -0
- package/i18n/languages/en_US.d.ts +3 -0
- package/i18n/languages/es_ES.d.ts +56 -0
- package/i18n/languages/et_EE.d.ts +56 -0
- package/i18n/languages/fa_IR.d.ts +56 -0
- package/i18n/languages/fi_FI.d.ts +56 -0
- package/i18n/languages/fr_BE.d.ts +60 -4
- package/i18n/languages/fr_FR.d.ts +56 -0
- package/i18n/languages/he_IL.d.ts +56 -0
- package/i18n/languages/hi_IN.d.ts +56 -0
- package/i18n/languages/hr_HR.d.ts +56 -0
- package/i18n/languages/hu_HU.d.ts +56 -0
- package/i18n/languages/hy_AM.d.ts +56 -0
- package/i18n/languages/id_ID.d.ts +56 -0
- package/i18n/languages/is_IS.d.ts +56 -0
- package/i18n/languages/it_IT.d.ts +56 -0
- package/i18n/languages/ja_JP.d.ts +56 -0
- package/i18n/languages/ka_GE.d.ts +56 -0
- package/i18n/languages/kn_IN.d.ts +56 -0
- package/i18n/languages/ko_KR.d.ts +56 -0
- package/i18n/languages/ku_IQ.d.ts +32 -0
- package/i18n/languages/lv_LV.d.ts +56 -0
- package/i18n/languages/mn_MN.d.ts +56 -0
- package/i18n/languages/ms_MY.d.ts +56 -0
- package/i18n/languages/nb_NO.d.ts +56 -0
- package/i18n/languages/ne_NP.d.ts +56 -0
- package/i18n/languages/nl_BE.d.ts +56 -0
- package/i18n/languages/nl_NL.d.ts +56 -0
- package/i18n/languages/pl_PL.d.ts +56 -0
- package/i18n/languages/pt_BR.d.ts +56 -0
- package/i18n/languages/pt_PT.d.ts +56 -0
- package/i18n/languages/ro_RO.d.ts +56 -0
- package/i18n/languages/ru_RU.d.ts +56 -0
- package/i18n/languages/sk_SK.d.ts +56 -1
- package/i18n/languages/sl_SI.d.ts +56 -0
- package/i18n/languages/sr_RS.d.ts +56 -0
- package/i18n/languages/sv_SE.d.ts +56 -0
- package/i18n/languages/ta_IN.d.ts +56 -0
- package/i18n/languages/th_TH.d.ts +56 -0
- package/i18n/languages/tr_TR.d.ts +56 -0
- package/i18n/languages/uk_UA.d.ts +56 -0
- package/i18n/languages/vi_VN.d.ts +56 -0
- package/i18n/languages/zh_CN.d.ts +3 -0
- package/i18n/languages/zh_TW.d.ts +3 -0
- package/icon/icon.component.d.ts +8 -14
- package/icon/icon.property.d.ts +31 -13
- package/icon/icon.service.d.ts +1 -1
- package/image/image-group.component.d.ts +1 -3
- package/image/image-preview.component.d.ts +11 -13
- package/image/image.component.d.ts +10 -11
- package/image/image.property.d.ts +117 -16
- package/index.d.ts +0 -2
- package/inner/inner.component.d.ts +3 -10
- package/inner/inner.property.d.ts +8 -4
- package/input/input-group.component.d.ts +0 -2
- package/input/input.component.d.ts +32 -30
- package/input/input.property.d.ts +347 -65
- package/input-number/input-number.component.d.ts +14 -19
- package/input-number/input-number.property.d.ts +292 -26
- package/keyword/keyword.directive.d.ts +4 -12
- package/keyword/keyword.property.d.ts +11 -7
- package/layout/col.component.d.ts +8 -11
- package/layout/layout.property.d.ts +25 -18
- package/layout/row.component.d.ts +7 -8
- package/link/link.component.d.ts +7 -13
- package/link/link.property.d.ts +64 -11
- package/list/list-drop-group.directive.d.ts +3 -5
- package/list/list-option.component.d.ts +7 -9
- package/list/list.component.d.ts +35 -30
- package/list/list.property.d.ts +126 -61
- package/loading/loading.component.d.ts +12 -12
- package/loading/loading.property.d.ts +20 -11
- package/menu/menu-node.component.d.ts +11 -8
- package/menu/menu.component.d.ts +18 -19
- package/menu/menu.property.d.ts +23 -28
- package/message/message.property.d.ts +1 -1
- package/notification/notification.property.d.ts +1 -1
- package/outlet/outlet.directive.d.ts +4 -4
- package/outlet/outlet.property.d.ts +1 -1
- package/package.json +78 -84
- package/page-header/page-header.component.d.ts +4 -8
- package/page-header/page-header.property.d.ts +11 -8
- package/pagination/pagination.component.d.ts +15 -22
- package/pagination/pagination.property.d.ts +34 -66
- package/pattern/pattern.component.d.ts +2 -5
- package/pattern/pattern.property.d.ts +1 -1
- package/popconfirm/popconfirm.component.d.ts +12 -14
- package/popconfirm/popconfirm.property.d.ts +32 -19
- package/popover/popover-portal.component.d.ts +16 -33
- package/popover/popover.directive.d.ts +6 -12
- package/popover/popover.property.d.ts +31 -22
- package/portal/portal.property.d.ts +2 -2
- package/portal/portal.service.d.ts +2 -2
- package/progress/progress.component.d.ts +25 -30
- package/progress/progress.property.d.ts +29 -20
- package/radio/radio.component.d.ts +14 -15
- package/radio/radio.property.d.ts +271 -31
- package/rate/rate.component.d.ts +14 -17
- package/rate/rate.property.d.ts +259 -12
- package/resizable/resizable.directive.d.ts +5 -5
- package/resizable/resizable.property.d.ts +14 -14
- package/result/result.component.d.ts +5 -7
- package/result/result.property.d.ts +11 -7
- package/ripple/ripple.directive.d.ts +5 -4
- package/ripple/ripple.property.d.ts +14 -5
- package/select/select-portal.component.d.ts +39 -43
- package/select/select.component.d.ts +53 -56
- package/select/select.property.d.ts +317 -37
- package/skeleton/skeleton.component.d.ts +4 -8
- package/skeleton/skeleton.property.d.ts +17 -8
- package/slider/slider.component.d.ts +34 -31
- package/slider/slider.property.d.ts +26 -22
- package/slider-select/slider-select.component.d.ts +38 -38
- package/slider-select/slider-select.property.d.ts +302 -28
- package/statistic/countdown.component.d.ts +2 -5
- package/statistic/statistic.component.d.ts +3 -8
- package/statistic/statistic.property.d.ts +44 -13
- package/steps/steps.component.d.ts +6 -16
- package/steps/steps.property.d.ts +15 -10
- package/style/core/index.css +0 -38
- package/style/core/index.css.map +1 -1
- package/style/core/var.scss +0 -4
- package/style/mixins/compatibility.scss +0 -1
- package/style/mixins/form.scss +8 -2
- package/style/params/index.scss +0 -1
- package/style/params/primary.scss +7 -28
- package/switch/switch.component.d.ts +9 -10
- package/switch/switch.property.d.ts +265 -16
- package/table/table-body.component.d.ts +21 -20
- package/table/table-foot.component.d.ts +7 -5
- package/table/table-head.component.d.ts +17 -19
- package/table/table.component.d.ts +62 -50
- package/table/table.property.d.ts +180 -178
- package/tabs/tab-content.component.d.ts +6 -8
- package/tabs/tab.component.d.ts +3 -5
- package/tabs/tabs.component.d.ts +17 -24
- package/tabs/tabs.property.d.ts +28 -24
- package/tag/tag.component.d.ts +7 -8
- package/tag/tag.property.d.ts +19 -21
- package/text-retract/text-retract.component.d.ts +4 -14
- package/text-retract/text-retract.property.d.ts +9 -5
- package/textarea/textarea.component.d.ts +17 -20
- package/textarea/textarea.property.d.ts +266 -30
- package/theme/theme.component.d.ts +24 -13
- package/theme/theme.property.d.ts +67 -16
- package/time-ago/time-ago.pipe.d.ts +7 -3
- package/time-ago/time-ago.property.d.ts +1 -1
- package/time-picker/time-picker-frame.component.d.ts +52 -39
- package/time-picker/time-picker-portal.component.d.ts +29 -29
- package/time-picker/time-picker.component.d.ts +29 -30
- package/time-picker/time-picker.property.d.ts +314 -23
- package/time-range/time-range.property.d.ts +1 -1
- package/timeline/timeline.component.d.ts +5 -13
- package/timeline/timeline.property.d.ts +12 -8
- package/tooltip/tooltip-portal.component.d.ts +23 -29
- package/tooltip/tooltip.directive.d.ts +10 -9
- package/tooltip/tooltip.property.d.ts +18 -14
- package/transfer/transfer.component.d.ts +23 -20
- package/transfer/transfer.property.d.ts +81 -25
- package/tree/tree-node.component.d.ts +21 -21
- package/tree/tree.component.d.ts +29 -28
- package/tree/tree.property.d.ts +129 -79
- package/tree-file/tree-file.component.d.ts +7 -9
- package/tree-file/tree-file.property.d.ts +40 -16
- package/tree-select/tree-select-portal.component.d.ts +38 -49
- package/tree-select/tree-select.component.d.ts +50 -53
- package/tree-select/tree-select.property.d.ts +328 -39
- package/typography/typography.component.d.ts +1 -1
- package/typography/typography.property.d.ts +3 -3
- package/upload/upload-portal.component.d.ts +14 -14
- package/upload/upload.component.d.ts +18 -17
- package/upload/upload.property.d.ts +73 -24
- package/border/border.component.d.ts +0 -11
- package/border/border.module.d.ts +0 -7
- package/border/border.property.d.ts +0 -6
- package/border/index.d.ts +0 -5
- package/border/public-api.d.ts +0 -3
- package/esm2022/border/border.component.mjs +0 -21
- package/esm2022/border/border.module.mjs +0 -16
- package/esm2022/border/border.property.mjs +0 -7
- package/esm2022/border/ng-nest-ui-border.mjs +0 -5
- package/esm2022/border/public-api.mjs +0 -4
- package/fesm2022/ng-nest-ui-border.mjs +0 -47
- package/fesm2022/ng-nest-ui-border.mjs.map +0 -1
- package/style/params/colors.scss +0 -38
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { map, takeUntil, filter } from 'rxjs/operators';
|
|
8
|
-
import { XI18nService } from '@ng-nest/ui/i18n';
|
|
2
|
+
import { input, model, output, Component, inject, viewChild, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, HostListener, ElementRef, ViewContainerRef, effect, NgModule } from '@angular/core';
|
|
3
|
+
import { XToBoolean, XToNumber, XToCssPixelValue, XIsChange, XIsFunction, XIsEmpty, XIsNull, XRequestAnimationFrame, XIsNumber, XConnectBaseAnimation, XIsString, XIsDate, XParents } from '@ng-nest/ui/core';
|
|
4
|
+
import { XFormControlFunction, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
5
|
+
import { map, filter, takeUntil } from 'rxjs/operators';
|
|
6
|
+
import { XI18nService, zh_CN } from '@ng-nest/ui/i18n';
|
|
9
7
|
import { XListComponent } from '@ng-nest/ui/list';
|
|
10
8
|
import * as i1 from '@angular/forms';
|
|
11
9
|
import { FormsModule } from '@angular/forms';
|
|
10
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
12
11
|
import { XButtonComponent } from '@ng-nest/ui/button';
|
|
13
12
|
import { XPortalService, XPortalConnectedPosition } from '@ng-nest/ui/portal';
|
|
13
|
+
import { Subject, fromEvent } from 'rxjs';
|
|
14
14
|
import { XInputComponent } from '@ng-nest/ui/input';
|
|
15
|
-
import {
|
|
15
|
+
import { DatePipe, DOCUMENT } from '@angular/common';
|
|
16
16
|
import { Overlay } from '@angular/cdk/overlay';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -21,92 +21,181 @@ import { Overlay } from '@angular/cdk/overlay';
|
|
|
21
21
|
* @decorator component
|
|
22
22
|
*/
|
|
23
23
|
const XTimePickerPrefix = 'x-time-picker';
|
|
24
|
-
const
|
|
24
|
+
const X_TIME_PICKER_CONFIG_NAME = 'timePicker';
|
|
25
25
|
/**
|
|
26
26
|
* TimePicker Property
|
|
27
27
|
*/
|
|
28
|
-
class XTimePickerProperty extends
|
|
28
|
+
class XTimePickerProperty extends XFormControlFunction(X_TIME_PICKER_CONFIG_NAME) {
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
31
31
|
/**
|
|
32
32
|
* @zh_CN 时间类型
|
|
33
33
|
* @en_US Time type
|
|
34
34
|
*/
|
|
35
|
-
this.type = 'time';
|
|
35
|
+
this.type = input('time');
|
|
36
|
+
/**
|
|
37
|
+
* @zh_CN 格式化
|
|
38
|
+
* @en_US Format
|
|
39
|
+
*/
|
|
40
|
+
this.format = input(this.config?.format ?? 'HH:mm:ss');
|
|
41
|
+
/**
|
|
42
|
+
* @zh_CN 展示方位
|
|
43
|
+
* @en_US Display position
|
|
44
|
+
*/
|
|
45
|
+
this.placement = input(this.config?.placement ?? 'bottom-start');
|
|
46
|
+
/**
|
|
47
|
+
* @zh_CN 使用12小时制
|
|
48
|
+
* @en_US Use 12 hour clock
|
|
49
|
+
*/
|
|
50
|
+
this.use12Hours = input(this.config?.use12Hours ?? false, { transform: XToBoolean });
|
|
51
|
+
/**
|
|
52
|
+
* @zh_CN 显示边框
|
|
53
|
+
* @en_US Display Border
|
|
54
|
+
*/
|
|
55
|
+
this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
|
|
56
|
+
/**
|
|
57
|
+
* @zh_CN 小时选项间隔
|
|
58
|
+
* @en_US Hour option interval
|
|
59
|
+
*/
|
|
60
|
+
this.hourStep = input(this.config?.hourStep ?? 1, { transform: XToNumber });
|
|
61
|
+
/**
|
|
62
|
+
* @zh_CN 分钟选项间隔
|
|
63
|
+
* @en_US Minute option interval
|
|
64
|
+
*/
|
|
65
|
+
this.minuteStep = input(this.config?.minuteStep ?? 1, { transform: XToNumber });
|
|
66
|
+
/**
|
|
67
|
+
* @zh_CN 秒选项间隔
|
|
68
|
+
* @en_US Second option interval
|
|
69
|
+
*/
|
|
70
|
+
this.secondStep = input(this.config?.secondStep ?? 1, { transform: XToNumber });
|
|
36
71
|
/**
|
|
37
72
|
* @zh_CN 快捷选择按钮,支持此刻以及自定义
|
|
38
73
|
* @en_US Quick selection button, support now and custom
|
|
39
74
|
*/
|
|
40
|
-
this.preset = [];
|
|
75
|
+
this.preset = input([]);
|
|
76
|
+
/**
|
|
77
|
+
* @zh_CN 禁用的时间
|
|
78
|
+
* @en_US Disabled time
|
|
79
|
+
*/
|
|
80
|
+
this.disabledTime = input();
|
|
81
|
+
/**
|
|
82
|
+
* @zh_CN 尺寸
|
|
83
|
+
* @en_US Size
|
|
84
|
+
*/
|
|
85
|
+
this.size = input(this.config?.size ?? 'medium');
|
|
86
|
+
/**
|
|
87
|
+
* @zh_CN 输入框点击样式
|
|
88
|
+
* @en_US Input pointer
|
|
89
|
+
*/
|
|
90
|
+
this.pointer = input(false, { transform: XToBoolean });
|
|
91
|
+
/**
|
|
92
|
+
* @zh_CN 初始启用验证,在输入值都自动开启
|
|
93
|
+
* @en_US Initial enable validation, which is automatically enabled when the input value is
|
|
94
|
+
*/
|
|
95
|
+
this.validator = input(false, { transform: XToBoolean });
|
|
96
|
+
/**
|
|
97
|
+
* @zh_CN 标签
|
|
98
|
+
* @en_US Label
|
|
99
|
+
*/
|
|
100
|
+
this.label = input('');
|
|
101
|
+
/**
|
|
102
|
+
* @zh_CN 标签宽度
|
|
103
|
+
* @en_US Label width
|
|
104
|
+
*/
|
|
105
|
+
this.labelWidth = input('', { transform: XToCssPixelValue });
|
|
106
|
+
/**
|
|
107
|
+
* @zh_CN 标签文字对齐方式
|
|
108
|
+
* @en_US Label text alignment method
|
|
109
|
+
*/
|
|
110
|
+
this.labelAlign = input('start');
|
|
111
|
+
/**
|
|
112
|
+
* @zh_CN flex 布局下的子元素水平排列方式
|
|
113
|
+
* @en_US The level of sub-element level arrangement under flex layout
|
|
114
|
+
*/
|
|
115
|
+
this.justify = input('start');
|
|
116
|
+
/**
|
|
117
|
+
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
118
|
+
* @en_US sub-element vertical arrangement method under flex layout
|
|
119
|
+
*/
|
|
120
|
+
this.align = input('start');
|
|
121
|
+
/**
|
|
122
|
+
* @zh_CN flex 布局下的子元素排列方向
|
|
123
|
+
* @en_US The direction of the sub-element arrangement under flex layout
|
|
124
|
+
*/
|
|
125
|
+
this.direction = input('column');
|
|
126
|
+
/**
|
|
127
|
+
* @zh_CN 输入提示信息
|
|
128
|
+
* @en_US Enter prompt information
|
|
129
|
+
*/
|
|
130
|
+
this.placeholder = input('');
|
|
131
|
+
/**
|
|
132
|
+
* @zh_CN 禁用
|
|
133
|
+
* @en_US Disabled
|
|
134
|
+
*/
|
|
135
|
+
this.disabled = input(false, { transform: XToBoolean });
|
|
136
|
+
/**
|
|
137
|
+
* @zh_CN 必填
|
|
138
|
+
* @en_US Required
|
|
139
|
+
*/
|
|
140
|
+
this.required = input(false, { transform: XToBoolean });
|
|
141
|
+
/**
|
|
142
|
+
* @zh_CN 只读
|
|
143
|
+
* @en_US Readonly
|
|
144
|
+
*/
|
|
145
|
+
this.readonly = input(false, { transform: XToBoolean });
|
|
146
|
+
/**
|
|
147
|
+
* @zh_CN 值模板
|
|
148
|
+
* @en_US Node template
|
|
149
|
+
*/
|
|
150
|
+
this.valueTpl = input();
|
|
151
|
+
/**
|
|
152
|
+
* @zh_CN 值模板参数
|
|
153
|
+
* @en_US Node template
|
|
154
|
+
*/
|
|
155
|
+
this.valueTplContext = input();
|
|
156
|
+
/**
|
|
157
|
+
* @zh_CN 前置标签
|
|
158
|
+
* @en_US Before label
|
|
159
|
+
*/
|
|
160
|
+
this.before = input();
|
|
161
|
+
/**
|
|
162
|
+
* @zh_CN 后置标签
|
|
163
|
+
* @en_US After label
|
|
164
|
+
*/
|
|
165
|
+
this.after = input();
|
|
166
|
+
/**
|
|
167
|
+
* @zh_CN 正则验证规则
|
|
168
|
+
* @en_US Regular verification rules
|
|
169
|
+
*/
|
|
170
|
+
this.pattern = input(null);
|
|
171
|
+
/**
|
|
172
|
+
* @zh_CN 验证不通过提示文字
|
|
173
|
+
* @en_US Verify not pass the prompt text
|
|
174
|
+
*/
|
|
175
|
+
this.message = input([]);
|
|
176
|
+
/**
|
|
177
|
+
* @zh_CN 激活状态
|
|
178
|
+
* @en_US Activation state
|
|
179
|
+
*/
|
|
180
|
+
this.active = model(false);
|
|
181
|
+
/**
|
|
182
|
+
* @zh_CN 输入验证函数
|
|
183
|
+
* @en_US Enter the verification function
|
|
184
|
+
*/
|
|
185
|
+
this.inputValidator = input();
|
|
41
186
|
/**
|
|
42
187
|
* @zh_CN 节点点击的事件
|
|
43
188
|
* @en_US Node click event
|
|
44
189
|
*/
|
|
45
|
-
this.nodeEmit =
|
|
190
|
+
this.nodeEmit = output();
|
|
46
191
|
}
|
|
47
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
48
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
192
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
193
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.1", type: XTimePickerProperty, selector: "x-time-picker-property", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, use12Hours: { classPropertyName: "use12Hours", publicName: "use12Hours", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, hourStep: { classPropertyName: "hourStep", publicName: "hourStep", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, preset: { classPropertyName: "preset", publicName: "preset", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pointer: { classPropertyName: "pointer", publicName: "pointer", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, valueTpl: { classPropertyName: "valueTpl", publicName: "valueTpl", isSignal: true, isRequired: false, transformFunction: null }, valueTplContext: { classPropertyName: "valueTplContext", publicName: "valueTplContext", isSignal: true, isRequired: false, transformFunction: null }, before: { classPropertyName: "before", publicName: "before", isSignal: true, isRequired: false, transformFunction: null }, after: { classPropertyName: "after", publicName: "after", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, inputValidator: { classPropertyName: "inputValidator", publicName: "inputValidator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
49
194
|
}
|
|
50
|
-
|
|
51
|
-
XWithConfig(X_CONFIG_NAME, 'HH:mm:ss')
|
|
52
|
-
], XTimePickerProperty.prototype, "format", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
XWithConfig(X_CONFIG_NAME, 'bottom-start')
|
|
55
|
-
], XTimePickerProperty.prototype, "placement", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
XWithConfig(X_CONFIG_NAME, 'medium')
|
|
58
|
-
], XTimePickerProperty.prototype, "size", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
XInputBoolean(),
|
|
61
|
-
XWithConfig(X_CONFIG_NAME, false)
|
|
62
|
-
], XTimePickerProperty.prototype, "use12Hours", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
XInputBoolean(),
|
|
65
|
-
XWithConfig(X_CONFIG_NAME, true)
|
|
66
|
-
], XTimePickerProperty.prototype, "bordered", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
XInputNumber(),
|
|
69
|
-
XWithConfig(X_CONFIG_NAME, 1)
|
|
70
|
-
], XTimePickerProperty.prototype, "hourStep", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
XInputNumber(),
|
|
73
|
-
XWithConfig(X_CONFIG_NAME, 1)
|
|
74
|
-
], XTimePickerProperty.prototype, "minuteStep", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
XInputNumber(),
|
|
77
|
-
XWithConfig(X_CONFIG_NAME, 1)
|
|
78
|
-
], XTimePickerProperty.prototype, "secondStep", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
XDataConvert()
|
|
81
|
-
], XTimePickerProperty.prototype, "preset", void 0);
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: XTimePickerProperty, decorators: [{
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerProperty, decorators: [{
|
|
83
196
|
type: Component,
|
|
84
197
|
args: [{ selector: `${XTimePickerPrefix}-property`, template: '' }]
|
|
85
|
-
}]
|
|
86
|
-
type: Input
|
|
87
|
-
}], format: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], placement: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], size: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], use12Hours: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], bordered: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], hourStep: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], minuteStep: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], secondStep: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], preset: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], disabledTime: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], nodeEmit: [{
|
|
108
|
-
type: Output
|
|
109
|
-
}] } });
|
|
198
|
+
}] });
|
|
110
199
|
/**
|
|
111
200
|
* TimePickerPortal
|
|
112
201
|
* @selector x-time-picker-portal
|
|
@@ -122,58 +211,100 @@ const XTimePickerFramePrefix = 'x-time-picker-frame';
|
|
|
122
211
|
|
|
123
212
|
class XTimePickerFrameComponent {
|
|
124
213
|
constructor() {
|
|
125
|
-
this.type = 'time';
|
|
126
|
-
this.hourStep = 1;
|
|
127
|
-
this.minuteStep = 1;
|
|
128
|
-
this.secondStep = 1;
|
|
129
|
-
this.defaultNow = true;
|
|
130
|
-
this.nodeEmit = new EventEmitter();
|
|
131
|
-
this.use12Hour = 'am';
|
|
132
|
-
this.scrollAnimating = {};
|
|
133
|
-
this.hourData = [];
|
|
134
|
-
this.minuteData = [];
|
|
135
|
-
this.secondData = [];
|
|
136
|
-
this.use12HoursData = [];
|
|
137
|
-
this.locale = {};
|
|
138
|
-
this.isInit = false;
|
|
139
|
-
this._unSubject = new Subject();
|
|
140
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
141
214
|
this.i18n = inject(XI18nService);
|
|
215
|
+
this.type = input('time');
|
|
216
|
+
this.value = input();
|
|
217
|
+
this.use12Hours = input(false);
|
|
218
|
+
this.hourStep = input(1);
|
|
219
|
+
this.minuteStep = input(1);
|
|
220
|
+
this.secondStep = input(1);
|
|
221
|
+
this.defaultNow = input(true);
|
|
222
|
+
this.disabledTime = input();
|
|
223
|
+
this.disabledTimeParam = input();
|
|
224
|
+
this.nodeEmit = output();
|
|
225
|
+
this.hourRef = viewChild.required('hourRef');
|
|
226
|
+
this.minuteRef = viewChild('minuteRef');
|
|
227
|
+
this.secondRef = viewChild('secondRef');
|
|
228
|
+
this.use12HoursRef = viewChild('use12HoursRef');
|
|
229
|
+
this.model = signal(null);
|
|
230
|
+
this.hour = signal(null);
|
|
231
|
+
this.minute = signal(null);
|
|
232
|
+
this.second = signal(null);
|
|
233
|
+
this.use12Hour = signal('am');
|
|
234
|
+
this.scrollAnimating = signal({});
|
|
235
|
+
this.hourData = computed(() => {
|
|
236
|
+
let length = this.use12Hours() ? 12 : 24;
|
|
237
|
+
return Array.from({ length: Math.ceil(length / this.hourStep()) }).map((_, i) => {
|
|
238
|
+
if (this.use12Hours() && i === 0) {
|
|
239
|
+
i = 12;
|
|
240
|
+
return {
|
|
241
|
+
disabled: this.setDisabled('hours', i),
|
|
242
|
+
label: this.prefixZero(i, 2),
|
|
243
|
+
id: i
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
const num = i * this.hourStep();
|
|
248
|
+
return {
|
|
249
|
+
disabled: this.setDisabled('hours', num),
|
|
250
|
+
label: this.prefixZero(num, 2),
|
|
251
|
+
id: num
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
this.minuteData = computed(() => {
|
|
257
|
+
return Array.from({ length: Math.ceil(60 / this.minuteStep()) }).map((_, i) => {
|
|
258
|
+
const num = i * this.minuteStep();
|
|
259
|
+
return {
|
|
260
|
+
disabled: this.setDisabled('minutes', num),
|
|
261
|
+
label: this.prefixZero(num, 2),
|
|
262
|
+
id: num
|
|
263
|
+
};
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
this.secondData = computed(() => {
|
|
267
|
+
return Array.from({ length: Math.ceil(60 / this.secondStep()) }).map((_, i) => {
|
|
268
|
+
const num = i * this.secondStep();
|
|
269
|
+
return {
|
|
270
|
+
disabled: this.setDisabled('seconds', num),
|
|
271
|
+
label: this.prefixZero(num, 2),
|
|
272
|
+
id: num
|
|
273
|
+
};
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
this.use12HoursData = computed(() => {
|
|
277
|
+
return [
|
|
278
|
+
{
|
|
279
|
+
id: 'am',
|
|
280
|
+
label: this.locale().am
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
id: 'pm',
|
|
284
|
+
label: this.locale().pm
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
});
|
|
288
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.timePicker)), {
|
|
289
|
+
initialValue: zh_CN.timePicker
|
|
290
|
+
});
|
|
142
291
|
}
|
|
143
292
|
ngOnChanges(changes) {
|
|
144
|
-
const { value
|
|
293
|
+
const { value } = changes;
|
|
145
294
|
if (XIsChange(value)) {
|
|
146
|
-
// this.setDataInit();
|
|
147
295
|
this.init();
|
|
148
296
|
this.setScrollTop(true);
|
|
149
297
|
}
|
|
150
|
-
XIsChange(disabledTimeParam) && this.setDataInit();
|
|
151
298
|
}
|
|
152
299
|
ngOnInit() {
|
|
153
|
-
this.setDataInit();
|
|
154
300
|
this.init();
|
|
155
|
-
this.i18n.localeChange
|
|
156
|
-
.pipe(map((x) => x.timePicker), takeUntil(this._unSubject))
|
|
157
|
-
.subscribe((x) => {
|
|
158
|
-
this.locale = x;
|
|
159
|
-
if (this.use12Hours) {
|
|
160
|
-
this.setUse12HoursData();
|
|
161
|
-
}
|
|
162
|
-
this.cdr.markForCheck();
|
|
163
|
-
});
|
|
164
301
|
}
|
|
165
302
|
ngAfterViewInit() {
|
|
166
303
|
this.setScrollTop();
|
|
167
304
|
}
|
|
168
|
-
setDataInit() {
|
|
169
|
-
this.setHourData();
|
|
170
|
-
this.setMinuteData();
|
|
171
|
-
this.setSecondData();
|
|
172
|
-
this.setUse12HoursData();
|
|
173
|
-
}
|
|
174
305
|
setDisabled(type, num) {
|
|
175
|
-
if (this.disabledTime && XIsFunction(this.disabledTime)) {
|
|
176
|
-
const disabledMap = this.disabledTime(this.disabledTimeParam);
|
|
306
|
+
if (this.disabledTime() && XIsFunction(this.disabledTime())) {
|
|
307
|
+
const disabledMap = this.disabledTime()(this.disabledTimeParam());
|
|
177
308
|
const { disabledHours, disabledMinutes, disabledSeconds } = disabledMap;
|
|
178
309
|
let disabledNums = [];
|
|
179
310
|
if (type === 'hours') {
|
|
@@ -189,78 +320,21 @@ class XTimePickerFrameComponent {
|
|
|
189
320
|
}
|
|
190
321
|
return false;
|
|
191
322
|
}
|
|
192
|
-
setHourData() {
|
|
193
|
-
let length = this.use12Hours ? 12 : 24;
|
|
194
|
-
this.hourData = Array.from({ length: Math.ceil(length / this.hourStep) }).map((_, i) => {
|
|
195
|
-
if (this.use12Hours && i === 0) {
|
|
196
|
-
i = 12;
|
|
197
|
-
return {
|
|
198
|
-
disabled: this.setDisabled('hours', i),
|
|
199
|
-
label: this.prefixZero(i, 2),
|
|
200
|
-
id: i
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
const num = i * this.hourStep;
|
|
205
|
-
return {
|
|
206
|
-
disabled: this.setDisabled('hours', num),
|
|
207
|
-
label: this.prefixZero(num, 2),
|
|
208
|
-
id: num
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
setMinuteData() {
|
|
214
|
-
this.minuteData = Array.from({ length: Math.ceil(60 / this.minuteStep) }).map((_, i) => {
|
|
215
|
-
const num = i * this.minuteStep;
|
|
216
|
-
return {
|
|
217
|
-
disabled: this.setDisabled('minutes', num),
|
|
218
|
-
label: this.prefixZero(num, 2),
|
|
219
|
-
id: num
|
|
220
|
-
};
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
setSecondData() {
|
|
224
|
-
this.secondData = Array.from({ length: Math.ceil(60 / this.secondStep) }).map((_, i) => {
|
|
225
|
-
const num = i * this.secondStep;
|
|
226
|
-
return {
|
|
227
|
-
disabled: this.setDisabled('seconds', num),
|
|
228
|
-
label: this.prefixZero(num, 2),
|
|
229
|
-
id: num
|
|
230
|
-
};
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
setUse12HoursData() {
|
|
234
|
-
this.use12HoursData = [
|
|
235
|
-
{
|
|
236
|
-
id: 'am',
|
|
237
|
-
label: this.locale.am
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
id: 'pm',
|
|
241
|
-
label: this.locale.pm
|
|
242
|
-
}
|
|
243
|
-
];
|
|
244
|
-
}
|
|
245
323
|
init() {
|
|
246
|
-
if (!XIsEmpty(this.value)) {
|
|
247
|
-
this.
|
|
248
|
-
this.setTime(this.model);
|
|
324
|
+
if (!XIsEmpty(this.value())) {
|
|
325
|
+
this.model.set(new Date(this.value()));
|
|
326
|
+
this.setTime(this.model());
|
|
249
327
|
}
|
|
250
328
|
else {
|
|
251
|
-
if (this.defaultNow) {
|
|
252
|
-
this.model
|
|
329
|
+
if (this.defaultNow()) {
|
|
330
|
+
this.model.set(this.setNow());
|
|
253
331
|
}
|
|
254
332
|
else {
|
|
255
|
-
this.hour
|
|
256
|
-
this.minute
|
|
257
|
-
this.second
|
|
333
|
+
this.hour.set(null);
|
|
334
|
+
this.minute.set(null);
|
|
335
|
+
this.second.set(null);
|
|
258
336
|
}
|
|
259
337
|
}
|
|
260
|
-
this.cdr.detectChanges();
|
|
261
|
-
}
|
|
262
|
-
setDefault() {
|
|
263
|
-
this.model = new Date(this.value);
|
|
264
338
|
}
|
|
265
339
|
setNow() {
|
|
266
340
|
const def = new Date('1970-01-01');
|
|
@@ -272,63 +346,63 @@ class XTimePickerFrameComponent {
|
|
|
272
346
|
return new Date(def.getFullYear(), def.getMonth(), def.getDate(), 0, 0, 0);
|
|
273
347
|
}
|
|
274
348
|
setTime(date) {
|
|
275
|
-
if (this.use12Hours) {
|
|
349
|
+
if (this.use12Hours()) {
|
|
276
350
|
let hour = date.getHours();
|
|
277
351
|
if (hour > 12) {
|
|
278
|
-
this.hour
|
|
279
|
-
this.use12Hour
|
|
352
|
+
this.hour.set(hour - 12);
|
|
353
|
+
this.use12Hour.set('pm');
|
|
280
354
|
}
|
|
281
355
|
else if (hour === 12) {
|
|
282
|
-
this.hour
|
|
283
|
-
this.use12Hour
|
|
356
|
+
this.hour.set(12);
|
|
357
|
+
this.use12Hour.set('pm');
|
|
284
358
|
}
|
|
285
359
|
else {
|
|
286
|
-
this.hour
|
|
287
|
-
this.use12Hour
|
|
360
|
+
this.hour.set(hour === 0 ? 12 : hour);
|
|
361
|
+
this.use12Hour.set('am');
|
|
288
362
|
}
|
|
289
363
|
}
|
|
290
364
|
else {
|
|
291
|
-
this.hour
|
|
365
|
+
this.hour.set(date.getHours());
|
|
292
366
|
}
|
|
293
|
-
this.minute
|
|
294
|
-
this.second
|
|
367
|
+
this.minute.set(date.getMinutes());
|
|
368
|
+
this.second.set(date.getSeconds());
|
|
295
369
|
}
|
|
296
370
|
prefixZero(num, n) {
|
|
297
371
|
return (Array(n).join('0') + num).slice(-n);
|
|
298
372
|
}
|
|
299
373
|
setScrollTop(animating = false) {
|
|
300
|
-
this.selected('hour', this.hourRef
|
|
301
|
-
this.selected('minute', this.minuteRef?.nativeElement, this.minute, animating);
|
|
302
|
-
this.selected('second', this.secondRef?.nativeElement, this.second, animating);
|
|
303
|
-
this.selected('use12Hour', this.use12HoursRef?.nativeElement, this.use12Hour, animating);
|
|
374
|
+
this.selected('hour', this.hourRef().nativeElement, this.hour(), animating);
|
|
375
|
+
this.selected('minute', this.minuteRef()?.nativeElement, this.minute(), animating);
|
|
376
|
+
this.selected('second', this.secondRef()?.nativeElement, this.second(), animating);
|
|
377
|
+
this.selected('use12Hour', this.use12HoursRef()?.nativeElement, this.use12Hour(), animating);
|
|
304
378
|
}
|
|
305
379
|
selected(type, ele, num, animating = false) {
|
|
306
380
|
if (!ele || XIsNull(num))
|
|
307
381
|
return;
|
|
308
|
-
if (this.scrollAnimating[ele.className])
|
|
382
|
+
if (this.scrollAnimating()[ele.className])
|
|
309
383
|
return;
|
|
310
384
|
let len = Number(num);
|
|
311
385
|
switch (type) {
|
|
312
386
|
case 'hour':
|
|
313
|
-
len = this.hourData.findIndex((x) => x.id === num);
|
|
387
|
+
len = this.hourData().findIndex((x) => x.id === num);
|
|
314
388
|
break;
|
|
315
389
|
case 'minute':
|
|
316
|
-
len = this.minuteData.findIndex((x) => x.id === num);
|
|
390
|
+
len = this.minuteData().findIndex((x) => x.id === num);
|
|
317
391
|
break;
|
|
318
392
|
case 'second':
|
|
319
|
-
len = this.secondData.findIndex((x) => x.id === num);
|
|
393
|
+
len = this.secondData().findIndex((x) => x.id === num);
|
|
320
394
|
break;
|
|
321
395
|
case 'use12Hour':
|
|
322
|
-
len = this.use12HoursData.findIndex((x) => x.id === num);
|
|
396
|
+
len = this.use12HoursData().findIndex((x) => x.id === num);
|
|
323
397
|
break;
|
|
324
398
|
}
|
|
325
|
-
|
|
399
|
+
const current = ele.querySelector(`.x-list x-list-option:nth-child(${len + 1})`);
|
|
326
400
|
if (current) {
|
|
327
401
|
if (animating) {
|
|
328
|
-
this.scrollTo(ele, current.offsetTop, 120);
|
|
402
|
+
this.scrollTo(ele, current.offsetTop - 4, 120);
|
|
329
403
|
}
|
|
330
404
|
else {
|
|
331
|
-
ele.scrollTop = current.offsetTop;
|
|
405
|
+
ele.scrollTop = current.offsetTop - 4;
|
|
332
406
|
}
|
|
333
407
|
}
|
|
334
408
|
}
|
|
@@ -336,60 +410,92 @@ class XTimePickerFrameComponent {
|
|
|
336
410
|
return data.indexOf(item) === data.length - 1;
|
|
337
411
|
}
|
|
338
412
|
itemClick(type) {
|
|
339
|
-
if (XIsEmpty(this.model)) {
|
|
340
|
-
this.model
|
|
413
|
+
if (XIsEmpty(this.model())) {
|
|
414
|
+
this.model.set(this.setZero());
|
|
341
415
|
}
|
|
342
416
|
switch (type) {
|
|
343
417
|
case 'minute':
|
|
344
|
-
this.model.
|
|
418
|
+
this.model.update((x) => {
|
|
419
|
+
x.setMinutes(this.minute());
|
|
420
|
+
return x;
|
|
421
|
+
});
|
|
345
422
|
break;
|
|
346
423
|
case 'second':
|
|
347
|
-
this.model.
|
|
424
|
+
this.model.update((x) => {
|
|
425
|
+
x.setSeconds(this.second());
|
|
426
|
+
return x;
|
|
427
|
+
});
|
|
348
428
|
break;
|
|
349
429
|
case 'hour':
|
|
350
|
-
if (this.use12Hours) {
|
|
351
|
-
if (this.use12Hour === 'pm' && this.hour !== 12) {
|
|
352
|
-
this.model.
|
|
430
|
+
if (this.use12Hours()) {
|
|
431
|
+
if (this.use12Hour() === 'pm' && this.hour() !== 12) {
|
|
432
|
+
this.model.update((x) => {
|
|
433
|
+
x.setHours(this.hour() + 12);
|
|
434
|
+
return x;
|
|
435
|
+
});
|
|
353
436
|
}
|
|
354
|
-
else if (this.use12Hour === 'am' && this.hour === 12) {
|
|
355
|
-
this.model.
|
|
437
|
+
else if (this.use12Hour() === 'am' && this.hour() === 12) {
|
|
438
|
+
this.model.update((x) => {
|
|
439
|
+
x.setHours(0);
|
|
440
|
+
return x;
|
|
441
|
+
});
|
|
356
442
|
}
|
|
357
443
|
else {
|
|
358
|
-
this.model.
|
|
444
|
+
this.model.update((x) => {
|
|
445
|
+
x.setHours(this.hour());
|
|
446
|
+
return x;
|
|
447
|
+
});
|
|
359
448
|
}
|
|
360
449
|
}
|
|
361
450
|
else {
|
|
362
|
-
this.model.
|
|
451
|
+
this.model.update((x) => {
|
|
452
|
+
x.setHours(this.hour());
|
|
453
|
+
return x;
|
|
454
|
+
});
|
|
363
455
|
}
|
|
364
456
|
break;
|
|
365
457
|
case 'use12Hours':
|
|
366
|
-
if (this.use12Hour === 'pm' && this.hour !== 12) {
|
|
367
|
-
this.model.
|
|
458
|
+
if (this.use12Hour() === 'pm' && this.hour() !== 12) {
|
|
459
|
+
this.model.update((x) => {
|
|
460
|
+
x.setHours(this.hour() + 12);
|
|
461
|
+
return x;
|
|
462
|
+
});
|
|
368
463
|
}
|
|
369
|
-
else if (this.use12Hour === 'am' && this.hour === 12) {
|
|
370
|
-
this.model.
|
|
464
|
+
else if (this.use12Hour() === 'am' && this.hour() === 12) {
|
|
465
|
+
this.model.update((x) => {
|
|
466
|
+
x.setHours(0);
|
|
467
|
+
return x;
|
|
468
|
+
});
|
|
371
469
|
}
|
|
372
470
|
else {
|
|
373
|
-
this.model.
|
|
471
|
+
this.model.update((x) => {
|
|
472
|
+
x.setHours(this.hour());
|
|
473
|
+
return x;
|
|
474
|
+
});
|
|
374
475
|
}
|
|
375
476
|
break;
|
|
376
477
|
}
|
|
377
478
|
this.setScrollTop(true);
|
|
378
|
-
this.nodeEmit.emit(this.model);
|
|
379
|
-
this.cdr.detectChanges();
|
|
479
|
+
this.nodeEmit.emit(this.model());
|
|
380
480
|
}
|
|
381
481
|
scrollTo(element, to, duration) {
|
|
382
482
|
const clsName = element.className;
|
|
383
483
|
const difference = to - element.scrollTop;
|
|
384
484
|
const perTick = (difference / duration) * 10;
|
|
385
|
-
this.scrollAnimating
|
|
386
|
-
|
|
485
|
+
this.scrollAnimating.update((x) => {
|
|
486
|
+
x[clsName] = true;
|
|
487
|
+
return { ...x };
|
|
488
|
+
});
|
|
489
|
+
XRequestAnimationFrame(() => {
|
|
387
490
|
const num = element.scrollTop + perTick;
|
|
388
491
|
if (XIsNumber(num) && num !== Infinity) {
|
|
389
492
|
element.scrollTop = num;
|
|
390
493
|
}
|
|
391
494
|
if (element.scrollTop === to || duration <= 0) {
|
|
392
|
-
this.scrollAnimating
|
|
495
|
+
this.scrollAnimating.update((x) => {
|
|
496
|
+
x[clsName] = false;
|
|
497
|
+
return { ...x };
|
|
498
|
+
});
|
|
393
499
|
return;
|
|
394
500
|
}
|
|
395
501
|
else {
|
|
@@ -397,101 +503,62 @@ class XTimePickerFrameComponent {
|
|
|
397
503
|
}
|
|
398
504
|
});
|
|
399
505
|
}
|
|
400
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
401
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
506
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerFrameComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
507
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XTimePickerFrameComponent, isStandalone: true, selector: "x-time-picker-frame", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, use12Hours: { classPropertyName: "use12Hours", publicName: "use12Hours", isSignal: true, isRequired: false, transformFunction: null }, hourStep: { classPropertyName: "hourStep", publicName: "hourStep", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, defaultNow: { classPropertyName: "defaultNow", publicName: "defaultNow", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, disabledTimeParam: { classPropertyName: "disabledTimeParam", publicName: "disabledTimeParam", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodeEmit: "nodeEmit" }, viewQueries: [{ propertyName: "hourRef", first: true, predicate: ["hourRef"], descendants: true, isSignal: true }, { propertyName: "minuteRef", first: true, predicate: ["minuteRef"], descendants: true, isSignal: true }, { propertyName: "secondRef", first: true, predicate: ["secondRef"], descendants: true, isSignal: true }, { propertyName: "use12HoursRef", first: true, predicate: ["use12HoursRef"], descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"x-time-picker-frame\">\r\n <div class=\"x-time-picker-frame-hour\" #hourRef>\r\n <x-list [data]=\"hourData()\" [(ngModel)]=\"hour\" (nodeClick)=\"itemClick('hour')\"></x-list>\r\n </div>\r\n @if (type() !== 'hour') {\r\n <div class=\"x-time-picker-frame-minute\" #minuteRef>\r\n <x-list [data]=\"minuteData()\" [(ngModel)]=\"minute\" (nodeClick)=\"itemClick('minute')\"></x-list>\r\n </div>\r\n }\r\n @if (type() === 'time') {\r\n <div class=\"x-time-picker-frame-second\" #secondRef>\r\n <x-list [data]=\"secondData()\" [(ngModel)]=\"second\" (nodeClick)=\"itemClick('second')\"></x-list>\r\n </div>\r\n }\r\n @if (use12Hours()) {\r\n <div class=\"x-time-picker-frame-use12Hours\" #use12HoursRef>\r\n <x-list [data]=\"use12HoursData()\" [(ngModel)]=\"use12Hour\" (nodeClick)=\"itemClick('use12Hours')\"></x-list>\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-frame{margin:0;padding:0;display:block;height:100%}.x-time-picker-frame>div{width:4.25rem;max-height:16rem;padding-bottom:13.5rem;padding:.25rem .25rem 13.75rem}.x-time-picker-frame>div:first-child{width:4.125rem}.x-time-picker-frame>div:not(:first-child){border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-time-picker-frame-hour,.x-time-picker-frame-minute,.x-time-picker-frame-second,.x-time-picker-frame-use12Hours{position:relative;float:left;overflow:hidden}.x-time-picker-frame-hour:hover,.x-time-picker-frame-minute:hover,.x-time-picker-frame-second:hover,.x-time-picker-frame-use12Hours:hover{overflow-y:auto}.x-time-picker-frame-hour>x-list>.x-list,.x-time-picker-frame-minute>x-list>.x-list,.x-time-picker-frame-second>x-list>.x-list,.x-time-picker-frame-use12Hours>x-list>.x-list{width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option{padding-left:.6rem;border-radius:0}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option:not(:first-child){margin-top:0}.x-time-picker-frame-use12Hours{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:4.5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XListComponent, selector: "x-list" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
402
508
|
}
|
|
403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerFrameComponent, decorators: [{
|
|
404
510
|
type: Component,
|
|
405
|
-
args: [{ selector: `${XTimePickerFramePrefix}`, standalone: true, imports: [FormsModule, XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"x-time-picker-frame\">\r\n <div class=\"x-time-picker-frame-hour\" #hourRef>\r\n <x-list [data]=\"hourData\" [(ngModel)]=\"hour\" (nodeClick)=\"itemClick('hour')\"></x-list>\r\n </div>\r\n @if (type !== 'hour') {\r\n <div class=\"x-time-picker-frame-minute\" #minuteRef>\r\n <x-list [data]=\"minuteData\" [(ngModel)]=\"minute\" (nodeClick)=\"itemClick('minute')\"></x-list>\r\n </div>\r\n }\r\n @if (type === 'time') {\r\n <div class=\"x-time-picker-frame-second\" #secondRef>\r\n <x-list [data]=\"secondData\" [(ngModel)]=\"second\" (nodeClick)=\"itemClick('second')\"></x-list>\r\n </div>\r\n }\r\n @if (use12Hours) {\r\n <div class=\"x-time-picker-frame-use12Hours\" #use12HoursRef>\r\n <x-list [data]=\"use12HoursData\" [(ngModel)]=\"use12Hour\" (nodeClick)=\"itemClick('use12Hours')\"></x-list>\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-frame{margin:0;padding:0;
|
|
406
|
-
}]
|
|
407
|
-
type: Input
|
|
408
|
-
}], value: [{
|
|
409
|
-
type: Input
|
|
410
|
-
}], use12Hours: [{
|
|
411
|
-
type: Input
|
|
412
|
-
}], hourStep: [{
|
|
413
|
-
type: Input
|
|
414
|
-
}], minuteStep: [{
|
|
415
|
-
type: Input
|
|
416
|
-
}], secondStep: [{
|
|
417
|
-
type: Input
|
|
418
|
-
}], defaultNow: [{
|
|
419
|
-
type: Input
|
|
420
|
-
}], disabledTime: [{
|
|
421
|
-
type: Input
|
|
422
|
-
}], disabledTimeParam: [{
|
|
423
|
-
type: Input
|
|
424
|
-
}], nodeEmit: [{
|
|
425
|
-
type: Output
|
|
426
|
-
}], hourRef: [{
|
|
427
|
-
type: ViewChild,
|
|
428
|
-
args: ['hourRef']
|
|
429
|
-
}], minuteRef: [{
|
|
430
|
-
type: ViewChild,
|
|
431
|
-
args: ['minuteRef']
|
|
432
|
-
}], secondRef: [{
|
|
433
|
-
type: ViewChild,
|
|
434
|
-
args: ['secondRef']
|
|
435
|
-
}], use12HoursRef: [{
|
|
436
|
-
type: ViewChild,
|
|
437
|
-
args: ['use12HoursRef']
|
|
438
|
-
}] } });
|
|
511
|
+
args: [{ selector: `${XTimePickerFramePrefix}`, standalone: true, imports: [FormsModule, XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"x-time-picker-frame\">\r\n <div class=\"x-time-picker-frame-hour\" #hourRef>\r\n <x-list [data]=\"hourData()\" [(ngModel)]=\"hour\" (nodeClick)=\"itemClick('hour')\"></x-list>\r\n </div>\r\n @if (type() !== 'hour') {\r\n <div class=\"x-time-picker-frame-minute\" #minuteRef>\r\n <x-list [data]=\"minuteData()\" [(ngModel)]=\"minute\" (nodeClick)=\"itemClick('minute')\"></x-list>\r\n </div>\r\n }\r\n @if (type() === 'time') {\r\n <div class=\"x-time-picker-frame-second\" #secondRef>\r\n <x-list [data]=\"secondData()\" [(ngModel)]=\"second\" (nodeClick)=\"itemClick('second')\"></x-list>\r\n </div>\r\n }\r\n @if (use12Hours()) {\r\n <div class=\"x-time-picker-frame-use12Hours\" #use12HoursRef>\r\n <x-list [data]=\"use12HoursData()\" [(ngModel)]=\"use12Hour\" (nodeClick)=\"itemClick('use12Hours')\"></x-list>\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-frame{margin:0;padding:0;display:block;height:100%}.x-time-picker-frame>div{width:4.25rem;max-height:16rem;padding-bottom:13.5rem;padding:.25rem .25rem 13.75rem}.x-time-picker-frame>div:first-child{width:4.125rem}.x-time-picker-frame>div:not(:first-child){border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-time-picker-frame-hour,.x-time-picker-frame-minute,.x-time-picker-frame-second,.x-time-picker-frame-use12Hours{position:relative;float:left;overflow:hidden}.x-time-picker-frame-hour:hover,.x-time-picker-frame-minute:hover,.x-time-picker-frame-second:hover,.x-time-picker-frame-use12Hours:hover{overflow-y:auto}.x-time-picker-frame-hour>x-list>.x-list,.x-time-picker-frame-minute>x-list>.x-list,.x-time-picker-frame-second>x-list>.x-list,.x-time-picker-frame-use12Hours>x-list>.x-list{width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option{padding-left:.6rem;border-radius:0}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option:not(:first-child){margin-top:0}.x-time-picker-frame-use12Hours{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:4.5rem}\n"] }]
|
|
512
|
+
}] });
|
|
439
513
|
|
|
440
514
|
class XTimePickerPortalComponent {
|
|
441
515
|
constructor() {
|
|
442
|
-
this.type = 'time';
|
|
443
|
-
this.preset = [];
|
|
444
|
-
this.locale = {};
|
|
445
|
-
this._unSubject = new Subject();
|
|
446
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
447
516
|
this.i18n = inject(XI18nService);
|
|
517
|
+
this.value = model();
|
|
518
|
+
this.type = input('time');
|
|
519
|
+
this.placement = input();
|
|
520
|
+
this.inputCom = input();
|
|
521
|
+
this.use12Hours = input();
|
|
522
|
+
this.hourStep = input();
|
|
523
|
+
this.minuteStep = input();
|
|
524
|
+
this.secondStep = input();
|
|
525
|
+
this.preset = input([]);
|
|
526
|
+
this.disabledTime = input();
|
|
527
|
+
this.animating = output();
|
|
528
|
+
this.nodeClick = output();
|
|
529
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.timePicker)), {
|
|
530
|
+
initialValue: zh_CN.timePicker
|
|
531
|
+
});
|
|
448
532
|
}
|
|
449
|
-
|
|
450
|
-
this.
|
|
451
|
-
event.toState === 'void' && this.destroyPortal();
|
|
452
|
-
}
|
|
453
|
-
start() {
|
|
454
|
-
this.animating(true);
|
|
533
|
+
get getPlacement() {
|
|
534
|
+
return this.placement();
|
|
455
535
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
this.value = x;
|
|
459
|
-
});
|
|
460
|
-
this.positionChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
461
|
-
this.placement = x;
|
|
462
|
-
this.cdr.detectChanges();
|
|
463
|
-
});
|
|
464
|
-
this.i18n.localeChange
|
|
465
|
-
.pipe(map((x) => x.timePicker), takeUntil(this._unSubject))
|
|
466
|
-
.subscribe((x) => {
|
|
467
|
-
this.locale = x;
|
|
468
|
-
this.cdr.markForCheck();
|
|
469
|
-
});
|
|
536
|
+
done(event) {
|
|
537
|
+
event.toState !== 'void' && this.animating.emit(false);
|
|
470
538
|
}
|
|
471
|
-
|
|
472
|
-
this.
|
|
473
|
-
this._unSubject.unsubscribe();
|
|
539
|
+
start(event) {
|
|
540
|
+
event.toState !== 'void' && this.animating.emit(true);
|
|
474
541
|
}
|
|
475
542
|
stopPropagation(event) {
|
|
476
543
|
event.stopPropagation();
|
|
477
544
|
}
|
|
478
545
|
onPresetFunc(item) {
|
|
479
546
|
let date = item.func();
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
547
|
+
this.value.set(date);
|
|
548
|
+
this.nodeClick.emit(date);
|
|
482
549
|
}
|
|
483
550
|
onNow() {
|
|
484
551
|
let date = new Date();
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
552
|
+
this.value.set(date);
|
|
553
|
+
this.nodeClick.emit(date);
|
|
487
554
|
}
|
|
488
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
489
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
555
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
556
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XTimePickerPortalComponent, isStandalone: true, selector: "x-time-picker-portal", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, inputCom: { classPropertyName: "inputCom", publicName: "inputCom", isSignal: true, isRequired: false, transformFunction: null }, use12Hours: { classPropertyName: "use12Hours", publicName: "use12Hours", isSignal: true, isRequired: false, transformFunction: null }, hourStep: { classPropertyName: "hourStep", publicName: "hourStep", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, preset: { classPropertyName: "preset", publicName: "preset", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", animating: "animating", nodeClick: "nodeClick" }, host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.getPlacement" } }, ngImport: i0, template: "<div class=\"x-time-picker-portal\" (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\">\r\n <x-time-picker-frame\r\n [type]=\"type()\"\r\n [value]=\"value()\"\r\n [use12Hours]=\"use12Hours()!\"\r\n [hourStep]=\"hourStep()!\"\r\n [minuteStep]=\"minuteStep()!\"\r\n [secondStep]=\"secondStep()!\"\r\n [disabledTime]=\"disabledTime()\"\r\n (nodeEmit)=\"nodeClick.emit($event)\"\r\n ></x-time-picker-frame>\r\n @if (preset()) {\r\n <div class=\"x-time-picker-portal-preset\">\r\n @for (item of preset(); track item) {\r\n @if (!!item.func) {\r\n <x-button type=\"text\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n } @else if (!item.func && item.id === 'now') {\r\n <x-button type=\"text\" (click)=\"onNow()\">{{ locale().now }}</x-button>\r\n }\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-portal{display:flex;flex-direction:column;height:100%;font-size:var(--x-font-size);color:var(--x-text);border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);background-color:var(--x-background-100)}.x-time-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-time-picker-portal-preset>x-button{flex:1}\n"], dependencies: [{ kind: "component", type: XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value", "use12Hours", "hourStep", "minuteStep", "secondStep", "defaultNow", "disabledTime", "disabledTimeParam"], outputs: ["nodeEmit"] }, { kind: "component", type: XButtonComponent, selector: "x-button" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
490
557
|
}
|
|
491
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerPortalComponent, decorators: [{
|
|
492
559
|
type: Component,
|
|
493
|
-
args: [{ selector: `${XTimePickerPortalPrefix}`, standalone: true, imports: [XTimePickerFrameComponent, XButtonComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div class=\"x-time-picker-portal\" (click)=\"inputCom
|
|
494
|
-
}], propDecorators: {
|
|
560
|
+
args: [{ selector: `${XTimePickerPortalPrefix}`, standalone: true, imports: [XTimePickerFrameComponent, XButtonComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div class=\"x-time-picker-portal\" (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\">\r\n <x-time-picker-frame\r\n [type]=\"type()\"\r\n [value]=\"value()\"\r\n [use12Hours]=\"use12Hours()!\"\r\n [hourStep]=\"hourStep()!\"\r\n [minuteStep]=\"minuteStep()!\"\r\n [secondStep]=\"secondStep()!\"\r\n [disabledTime]=\"disabledTime()\"\r\n (nodeEmit)=\"nodeClick.emit($event)\"\r\n ></x-time-picker-frame>\r\n @if (preset()) {\r\n <div class=\"x-time-picker-portal-preset\">\r\n @for (item of preset(); track item) {\r\n @if (!!item.func) {\r\n <x-button type=\"text\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n } @else if (!item.func && item.id === 'now') {\r\n <x-button type=\"text\" (click)=\"onNow()\">{{ locale().now }}</x-button>\r\n }\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-portal{display:flex;flex-direction:column;height:100%;font-size:var(--x-font-size);color:var(--x-text);border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);background-color:var(--x-background-100)}.x-time-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-time-picker-portal-preset>x-button{flex:1}\n"] }]
|
|
561
|
+
}], propDecorators: { getPlacement: [{
|
|
495
562
|
type: HostBinding,
|
|
496
563
|
args: ['@x-connect-base-animation']
|
|
497
564
|
}], done: [{
|
|
@@ -503,73 +570,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
503
570
|
}] } });
|
|
504
571
|
|
|
505
572
|
class XTimePickerComponent extends XTimePickerProperty {
|
|
506
|
-
constructor() {
|
|
507
|
-
super(...arguments);
|
|
508
|
-
this.readonly = true;
|
|
509
|
-
this.clearable = false;
|
|
510
|
-
this.enter = false;
|
|
511
|
-
this.animating = false;
|
|
512
|
-
this.displayValue = '';
|
|
513
|
-
this.icon = 'fto-clock';
|
|
514
|
-
this.maxNodes = 8;
|
|
515
|
-
this.protalTobottom = true;
|
|
516
|
-
this.valueChange = new Subject();
|
|
517
|
-
this.dataChange = new Subject();
|
|
518
|
-
this.positionChange = new Subject();
|
|
519
|
-
this.closeSubject = new Subject();
|
|
520
|
-
this.valueType = 'date';
|
|
521
|
-
this.locale = {};
|
|
522
|
-
this._unSubject = new Subject();
|
|
523
|
-
this.document = inject(DOCUMENT);
|
|
524
|
-
this.renderer = inject(Renderer2);
|
|
525
|
-
this.elementRef = inject(ElementRef);
|
|
526
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
527
|
-
this.portalService = inject(XPortalService);
|
|
528
|
-
this.viewContainerRef = inject(ViewContainerRef);
|
|
529
|
-
this.datePipe = inject(DatePipe);
|
|
530
|
-
this.overlay = inject(Overlay);
|
|
531
|
-
this.i18n = inject(XI18nService);
|
|
532
|
-
}
|
|
533
573
|
writeValue(value) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
574
|
+
let valueType = 'date';
|
|
575
|
+
if (XIsEmpty(value)) {
|
|
576
|
+
value = '';
|
|
537
577
|
}
|
|
538
578
|
else if (XIsNumber(value)) {
|
|
539
|
-
|
|
540
|
-
this.valueType = 'number';
|
|
579
|
+
valueType = 'number';
|
|
541
580
|
}
|
|
542
581
|
else if (XIsString(value)) {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
else if (XIsEmpty(value)) {
|
|
547
|
-
this.value = '';
|
|
548
|
-
}
|
|
549
|
-
this.setDisplayValue(this.value);
|
|
550
|
-
this.valueChange.next(this.value);
|
|
551
|
-
this.cdr.detectChanges();
|
|
552
|
-
}
|
|
553
|
-
get getPlaceholder() {
|
|
554
|
-
if (this.placeholder)
|
|
555
|
-
return this.placeholder;
|
|
556
|
-
if (this.type === 'time') {
|
|
557
|
-
return this.locale.selectTime;
|
|
558
|
-
}
|
|
559
|
-
else if (this.type === 'hour') {
|
|
560
|
-
return this.locale.selectHour;
|
|
582
|
+
value = new Date(value).getTime();
|
|
583
|
+
valueType = 'string';
|
|
561
584
|
}
|
|
562
|
-
else if (
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
566
|
-
return this.locale.selectTime;
|
|
585
|
+
else if (XIsDate(value)) {
|
|
586
|
+
value = value.getTime();
|
|
567
587
|
}
|
|
588
|
+
this.value.set(value);
|
|
589
|
+
this.valueType.set(valueType);
|
|
590
|
+
}
|
|
591
|
+
constructor() {
|
|
592
|
+
super();
|
|
593
|
+
this.elementRef = inject(ElementRef);
|
|
594
|
+
this.portalService = inject(XPortalService);
|
|
595
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
596
|
+
this.datePipe = inject(DatePipe);
|
|
597
|
+
this.overlay = inject(Overlay);
|
|
598
|
+
this.i18n = inject(XI18nService);
|
|
599
|
+
this.datePicker = viewChild.required('datePicker');
|
|
600
|
+
this.inputCom = viewChild.required('inputCom');
|
|
601
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.timePicker)), {
|
|
602
|
+
initialValue: zh_CN.timePicker
|
|
603
|
+
});
|
|
604
|
+
this.displayValue = computed(() => {
|
|
605
|
+
const value = this.value();
|
|
606
|
+
if (!value)
|
|
607
|
+
return;
|
|
608
|
+
if (this.use12Hours()) {
|
|
609
|
+
let dt = new Date(value);
|
|
610
|
+
let hour = dt.getHours();
|
|
611
|
+
let suffix = hour >= 12 ? this.locale().pm : this.locale().am;
|
|
612
|
+
return `${this.datePipe.transform(dt.setHours(hour === 0 ? 12 : hour > 12 ? hour - 12 : hour), this.formatSignal())} ${suffix}`;
|
|
613
|
+
}
|
|
614
|
+
else {
|
|
615
|
+
return this.datePipe.transform(value, this.formatSignal());
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
this.formatSignal = computed(() => {
|
|
619
|
+
if (this.format() === 'HH:mm:ss') {
|
|
620
|
+
if (this.type() === 'hour') {
|
|
621
|
+
return 'HH';
|
|
622
|
+
}
|
|
623
|
+
else if (this.type() === 'minute') {
|
|
624
|
+
return 'HH:mm';
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return this.format();
|
|
628
|
+
});
|
|
629
|
+
this.clearable = signal(false);
|
|
630
|
+
this.enter = signal(false);
|
|
631
|
+
this.animating = signal(false);
|
|
632
|
+
this.icon = signal('fto-clock');
|
|
633
|
+
this.closeSubject = new Subject();
|
|
634
|
+
this.valueType = signal('date');
|
|
635
|
+
this.unSubject = new Subject();
|
|
636
|
+
this.document = inject(DOCUMENT);
|
|
637
|
+
this.getPlaceholder = computed(() => {
|
|
638
|
+
if (this.placeholder())
|
|
639
|
+
return this.placeholder();
|
|
640
|
+
if (this.type() === 'time') {
|
|
641
|
+
return this.locale().selectTime;
|
|
642
|
+
}
|
|
643
|
+
else if (this.type() === 'hour') {
|
|
644
|
+
return this.locale().selectHour;
|
|
645
|
+
}
|
|
646
|
+
else if (this.type() === 'minute') {
|
|
647
|
+
return this.locale().selectMinute;
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
return this.locale().selectTime;
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
this.realPlacement = signal(null);
|
|
654
|
+
this.portalComponent = signal(null);
|
|
655
|
+
this.portalOverlayRef = signal(null);
|
|
656
|
+
effect(() => this.portalComponent()?.setInput('value', this.value()));
|
|
657
|
+
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
658
|
+
effect(() => this.portalComponent()?.setInput('use12Hours', this.use12Hours()));
|
|
659
|
+
effect(() => this.portalComponent()?.setInput('type', this.type()));
|
|
660
|
+
effect(() => this.portalComponent()?.setInput('hourStep', this.hourStep()));
|
|
661
|
+
effect(() => this.portalComponent()?.setInput('minuteStep', this.minuteStep()));
|
|
662
|
+
effect(() => this.portalComponent()?.setInput('secondStep', this.secondStep()));
|
|
663
|
+
effect(() => this.portalComponent()?.setInput('preset', this.preset()));
|
|
664
|
+
effect(() => this.portalComponent()?.setInput('inputCom', this.inputCom()));
|
|
665
|
+
effect(() => this.portalComponent()?.setInput('disabledTime', this.disabledTime()));
|
|
568
666
|
}
|
|
569
667
|
ngOnInit() {
|
|
570
|
-
this.setFlex(this.datePicker.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
571
|
-
this.setFormat();
|
|
572
|
-
this.setClassMap();
|
|
573
668
|
this.setSubject();
|
|
574
669
|
this.setParantScroll();
|
|
575
670
|
}
|
|
@@ -577,22 +672,8 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
577
672
|
this.setPortal();
|
|
578
673
|
}
|
|
579
674
|
ngOnDestroy() {
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
}
|
|
583
|
-
setClassMap() {
|
|
584
|
-
XClearClass(this.labelMap);
|
|
585
|
-
this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;
|
|
586
|
-
}
|
|
587
|
-
setFormat() {
|
|
588
|
-
if (this.format === 'HH:mm:ss') {
|
|
589
|
-
if (this.type === 'hour') {
|
|
590
|
-
this.format = 'HH';
|
|
591
|
-
}
|
|
592
|
-
else if (this.type === 'minute') {
|
|
593
|
-
this.format = 'HH:mm';
|
|
594
|
-
}
|
|
595
|
-
}
|
|
675
|
+
this.unSubject.next();
|
|
676
|
+
this.unSubject.complete();
|
|
596
677
|
}
|
|
597
678
|
setParantScroll() {
|
|
598
679
|
if (!this.document)
|
|
@@ -607,9 +688,9 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
607
688
|
}
|
|
608
689
|
if (firstScroll && firstScroll.tagName !== 'BODY') {
|
|
609
690
|
fromEvent(firstScroll, 'scroll')
|
|
610
|
-
.pipe(filter(() => this.portalAttached()), takeUntil(this.
|
|
691
|
+
.pipe(filter(() => this.portalAttached()), takeUntil(this.unSubject))
|
|
611
692
|
.subscribe(() => {
|
|
612
|
-
this.
|
|
693
|
+
this.portalOverlayRef()?.updatePosition();
|
|
613
694
|
const eract = this.elementRef.nativeElement.getBoundingClientRect();
|
|
614
695
|
const frect = firstScroll.getBoundingClientRect();
|
|
615
696
|
if (eract.top + eract.height - frect.top < 0 || eract.bottom > frect.bottom) {
|
|
@@ -619,66 +700,52 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
619
700
|
}
|
|
620
701
|
}
|
|
621
702
|
setSubject() {
|
|
622
|
-
this.closeSubject.pipe(takeUntil(this.
|
|
703
|
+
this.closeSubject.pipe(takeUntil(this.unSubject)).subscribe(() => {
|
|
623
704
|
this.closePortal();
|
|
624
705
|
});
|
|
625
|
-
this.i18n.localeChange
|
|
626
|
-
.pipe(map((x) => x.timePicker), takeUntil(this._unSubject))
|
|
627
|
-
.subscribe((x) => {
|
|
628
|
-
this.locale = x;
|
|
629
|
-
if (this.use12Hours) {
|
|
630
|
-
this.setDisplayValue(this.value);
|
|
631
|
-
}
|
|
632
|
-
this.cdr.markForCheck();
|
|
633
|
-
});
|
|
634
706
|
}
|
|
635
707
|
menter() {
|
|
636
|
-
if (this.
|
|
708
|
+
if (this.disabledComputed())
|
|
637
709
|
return;
|
|
638
|
-
this.enter
|
|
639
|
-
if (!XIsEmpty(this.value)) {
|
|
640
|
-
this.icon
|
|
641
|
-
this.clearable
|
|
642
|
-
this.cdr.detectChanges();
|
|
710
|
+
this.enter.set(true);
|
|
711
|
+
if (!XIsEmpty(this.value())) {
|
|
712
|
+
this.icon.set('');
|
|
713
|
+
this.clearable.set(true);
|
|
643
714
|
}
|
|
644
715
|
}
|
|
645
716
|
mleave() {
|
|
646
|
-
if (this.
|
|
717
|
+
if (this.disabledComputed())
|
|
647
718
|
return;
|
|
648
|
-
this.enter
|
|
649
|
-
if (this.clearable) {
|
|
650
|
-
this.icon
|
|
651
|
-
this.clearable
|
|
652
|
-
this.cdr.detectChanges();
|
|
719
|
+
this.enter.set(false);
|
|
720
|
+
if (this.clearable()) {
|
|
721
|
+
this.icon.set('fto-clock');
|
|
722
|
+
this.clearable.set(false);
|
|
653
723
|
}
|
|
654
724
|
}
|
|
655
725
|
clearEmit() {
|
|
656
|
-
this.value
|
|
657
|
-
this.displayValue = '';
|
|
726
|
+
this.value.set('');
|
|
658
727
|
this.mleave();
|
|
659
|
-
this.valueChange.next(this.value);
|
|
660
728
|
if (this.onChange)
|
|
661
|
-
this.onChange(this.value);
|
|
729
|
+
this.onChange(this.value());
|
|
662
730
|
}
|
|
663
731
|
portalAttached() {
|
|
664
|
-
return this.
|
|
732
|
+
return this.portalOverlayRef()?.hasAttached();
|
|
665
733
|
}
|
|
666
734
|
closePortal() {
|
|
667
735
|
if (this.portalAttached()) {
|
|
668
|
-
this.
|
|
669
|
-
this.active
|
|
670
|
-
this.cdr.detectChanges();
|
|
736
|
+
this.portalOverlayRef()?.detach();
|
|
737
|
+
this.active.set(false);
|
|
671
738
|
return true;
|
|
672
739
|
}
|
|
673
740
|
return false;
|
|
674
741
|
}
|
|
675
742
|
destroyPortal() {
|
|
676
|
-
this.
|
|
743
|
+
this.portalOverlayRef()?.dispose();
|
|
677
744
|
}
|
|
678
745
|
showPortal() {
|
|
679
|
-
if (this.
|
|
746
|
+
if (this.disabledComputed() || this.animating())
|
|
680
747
|
return;
|
|
681
|
-
this.active
|
|
748
|
+
this.active.set(true);
|
|
682
749
|
const config = {
|
|
683
750
|
backdropClass: '',
|
|
684
751
|
positionStrategy: this.setPlacement(),
|
|
@@ -692,7 +759,7 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
692
759
|
});
|
|
693
760
|
this.portal.overlayRef
|
|
694
761
|
?.outsidePointerEvents()
|
|
695
|
-
.pipe(takeUntil(this.
|
|
762
|
+
.pipe(takeUntil(this.unSubject))
|
|
696
763
|
.subscribe(() => {
|
|
697
764
|
this.closeSubject.next();
|
|
698
765
|
});
|
|
@@ -700,96 +767,64 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
700
767
|
}
|
|
701
768
|
setPosition(config) {
|
|
702
769
|
let position = config.positionStrategy;
|
|
703
|
-
position.positionChanges.pipe(takeUntil(this.
|
|
770
|
+
position.positionChanges.pipe(takeUntil(this.unSubject)).subscribe((pos) => {
|
|
704
771
|
const place = XPortalConnectedPosition.get(pos.connectionPair);
|
|
705
|
-
place !== this.
|
|
772
|
+
if (place !== this.realPlacement()) {
|
|
773
|
+
this.realPlacement.set(place);
|
|
774
|
+
this.portalOverlayRef()?.updatePosition();
|
|
775
|
+
}
|
|
706
776
|
});
|
|
707
777
|
}
|
|
708
778
|
setInstance() {
|
|
709
|
-
let componentRef = this.portal
|
|
710
|
-
if (!componentRef)
|
|
779
|
+
let { componentRef, overlayRef } = this.portal;
|
|
780
|
+
if (!componentRef || !overlayRef)
|
|
711
781
|
return;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
inputCom: this.inputCom,
|
|
719
|
-
use12Hours: this.use12Hours,
|
|
720
|
-
hourStep: this.hourStep,
|
|
721
|
-
minuteStep: this.minuteStep,
|
|
722
|
-
secondStep: this.secondStep,
|
|
723
|
-
preset: this.preset,
|
|
724
|
-
disabledTime: this.disabledTime,
|
|
725
|
-
closePortal: () => this.closeSubject.next(),
|
|
726
|
-
destroyPortal: () => this.destroyPortal(),
|
|
727
|
-
nodeEmit: (node) => this.onNodeClick(node),
|
|
728
|
-
animating: (ing) => (this.animating = ing)
|
|
729
|
-
});
|
|
730
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
782
|
+
this.portalComponent.set(componentRef);
|
|
783
|
+
this.portalOverlayRef.set(overlayRef);
|
|
784
|
+
this.realPlacement.set(this.placement());
|
|
785
|
+
const { nodeClick, animating } = componentRef.instance;
|
|
786
|
+
nodeClick.subscribe((node) => this.onNodeClick(node));
|
|
787
|
+
animating.subscribe((ing) => this.animating.set(ing));
|
|
731
788
|
}
|
|
732
789
|
onNodeClick(date) {
|
|
733
|
-
this.value
|
|
734
|
-
this.setDisplayValue(date);
|
|
735
|
-
this.cdr.detectChanges();
|
|
790
|
+
this.value.set(this.setValue(date));
|
|
736
791
|
if (this.onChange)
|
|
737
|
-
this.onChange(this.value);
|
|
792
|
+
this.onChange(this.value());
|
|
738
793
|
this.formControlValidator();
|
|
739
|
-
this.nodeEmit.emit(this.value);
|
|
794
|
+
this.nodeEmit.emit(this.value());
|
|
740
795
|
}
|
|
741
796
|
setValue(value) {
|
|
742
|
-
return ['date', 'string'].includes(this.valueType) ? new Date(value) : value.getTime();
|
|
743
|
-
}
|
|
744
|
-
setDisplayValue(date) {
|
|
745
|
-
if (!date)
|
|
746
|
-
return;
|
|
747
|
-
if (this.use12Hours) {
|
|
748
|
-
let dt = new Date(date);
|
|
749
|
-
let hour = dt.getHours();
|
|
750
|
-
let suffix = hour >= 12 ? this.locale.pm : this.locale.am;
|
|
751
|
-
this.displayValue = `${this.datePipe.transform(dt.setHours(hour === 0 ? 12 : hour > 12 ? hour - 12 : hour), this.format)} ${suffix}`;
|
|
752
|
-
}
|
|
753
|
-
else {
|
|
754
|
-
this.displayValue = this.datePipe.transform(date, this.format);
|
|
755
|
-
}
|
|
797
|
+
return ['date', 'string'].includes(this.valueType()) ? new Date(value) : value.getTime();
|
|
756
798
|
}
|
|
757
799
|
setPlacement() {
|
|
758
800
|
return this.portalService.setPlacement({
|
|
759
|
-
elementRef: this.inputCom.inputRef,
|
|
760
|
-
placement: [this.placement, 'bottom-start', 'bottom-end', 'top-start', 'top-end'],
|
|
801
|
+
elementRef: this.inputCom().inputRef(),
|
|
802
|
+
placement: [this.placement(), 'bottom-start', 'bottom-end', 'top-start', 'top-end'],
|
|
761
803
|
transformOriginOn: 'x-time-picker-portal'
|
|
762
804
|
});
|
|
763
805
|
}
|
|
764
806
|
setPortal() {
|
|
765
807
|
if (this.portalAttached()) {
|
|
766
|
-
this.
|
|
808
|
+
this.portalOverlayRef()?.updatePositionStrategy(this.setPlacement());
|
|
767
809
|
}
|
|
768
810
|
}
|
|
769
811
|
formControlChanges() {
|
|
770
812
|
this.ngOnInit();
|
|
771
|
-
this.cdr.detectChanges();
|
|
772
813
|
}
|
|
773
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
774
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
814
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
815
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.1", type: XTimePickerComponent, isStandalone: true, selector: "x-time-picker", providers: [XValueAccessor(XTimePickerComponent), DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: ["datePicker"], descendants: true, isSignal: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #datePicker class=\"x-time-picker\">\r\n <div class=\"x-time-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]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [icon]=\"icon()\"\r\n [placeholder]=\"getPlaceholder()!\"\r\n [readonly]=\"true\"\r\n [clearable]=\"clearable()\"\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]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"true\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\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-time-picker{display:inline-block;width:12rem}.x-time-picker{margin:0;padding:0;width:100%}.x-time-picker x-input{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
775
816
|
}
|
|
776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerComponent, decorators: [{
|
|
777
818
|
type: Component,
|
|
778
|
-
args: [{ selector: `${XTimePickerPrefix}`, standalone: true, imports: [FormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XTimePickerComponent), DatePipe], template: "<div #datePicker class=\"x-time-picker\">\r\n <div class=\"x-time-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]=\"
|
|
779
|
-
}],
|
|
780
|
-
type: ViewChild,
|
|
781
|
-
args: ['datePicker', { static: true }]
|
|
782
|
-
}], inputCom: [{
|
|
783
|
-
type: ViewChild,
|
|
784
|
-
args: ['inputCom', { static: true }]
|
|
785
|
-
}] } });
|
|
819
|
+
args: [{ selector: `${XTimePickerPrefix}`, standalone: true, imports: [FormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XTimePickerComponent), DatePipe], template: "<div #datePicker class=\"x-time-picker\">\r\n <div class=\"x-time-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]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [icon]=\"icon()\"\r\n [placeholder]=\"getPlaceholder()!\"\r\n [readonly]=\"true\"\r\n [clearable]=\"clearable()\"\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]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"true\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\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-time-picker{display:inline-block;width:12rem}.x-time-picker{margin:0;padding:0;width:100%}.x-time-picker x-input{width:100%}\n"] }]
|
|
820
|
+
}], ctorParameters: () => [] });
|
|
786
821
|
|
|
787
822
|
class XTimePickerModule {
|
|
788
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
789
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
790
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
823
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
824
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerModule, imports: [XTimePickerComponent, XTimePickerFrameComponent], exports: [XTimePickerComponent, XTimePickerFrameComponent] }); }
|
|
825
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerModule, imports: [XTimePickerComponent, XTimePickerFrameComponent] }); }
|
|
791
826
|
}
|
|
792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTimePickerModule, decorators: [{
|
|
793
828
|
type: NgModule,
|
|
794
829
|
args: [{
|
|
795
830
|
exports: [XTimePickerComponent, XTimePickerFrameComponent],
|