@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,15 +1,15 @@
|
|
|
1
|
-
import { Subject,
|
|
1
|
+
import { Subject, fromEvent } from 'rxjs';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { XControlValueAccessor, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
3
|
+
import { input, model, Component, viewChild, inject, output, computed, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, HostListener, Renderer2, ChangeDetectorRef, ViewContainerRef, ElementRef, signal, effect, NgModule } from '@angular/core';
|
|
4
|
+
import { XToDataConvert, XToBoolean, XToNumber, XToCssPixelValue, XIsEmpty, XConnectBaseAnimation, XIsArray, XIsObjectArray, XIsFunction, XIsChange, XResize, XSetData, XParents, XComputed, XRemove, XIsString, XIsObservable } from '@ng-nest/ui/core';
|
|
5
|
+
import { XFormControlFunction, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
7
6
|
import { XPortalService, XPortalConnectedPosition } from '@ng-nest/ui/portal';
|
|
8
7
|
import { XInputComponent } from '@ng-nest/ui/input';
|
|
9
|
-
import {
|
|
10
|
-
import { XI18nService } from '@ng-nest/ui/i18n';
|
|
8
|
+
import { map, debounceTime, takeUntil, distinctUntilChanged, throttleTime, filter } from 'rxjs/operators';
|
|
9
|
+
import { XI18nService, zh_CN } from '@ng-nest/ui/i18n';
|
|
11
10
|
import { XTreeComponent } from '@ng-nest/ui/tree';
|
|
12
11
|
import { XEmptyComponent } from '@ng-nest/ui/empty';
|
|
12
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
13
13
|
import { Overlay } from '@angular/cdk/overlay';
|
|
14
14
|
import { DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, MAC_ENTER, BACKSPACE, TAB } from '@angular/cdk/keycodes';
|
|
15
15
|
import { DOCUMENT } from '@angular/common';
|
|
@@ -24,147 +24,226 @@ import { XOutletDirective } from '@ng-nest/ui/outlet';
|
|
|
24
24
|
* @decorator component
|
|
25
25
|
*/
|
|
26
26
|
const XTreeSelectPrefix = 'x-tree-select';
|
|
27
|
-
const
|
|
27
|
+
const X_TREE_SELECT_CONFIG_NAME = 'treeSelect';
|
|
28
28
|
/**
|
|
29
29
|
* Tree Select Property
|
|
30
30
|
*/
|
|
31
|
-
class XTreeSelectProperty extends
|
|
31
|
+
class XTreeSelectProperty extends XFormControlFunction(X_TREE_SELECT_CONFIG_NAME) {
|
|
32
32
|
constructor() {
|
|
33
33
|
super(...arguments);
|
|
34
34
|
/**
|
|
35
35
|
* @zh_CN 节点数据
|
|
36
36
|
* @en_US Node data
|
|
37
37
|
*/
|
|
38
|
-
this.data = [];
|
|
38
|
+
this.data = input([], { transform: XToDataConvert });
|
|
39
|
+
/**
|
|
40
|
+
* @zh_CN 清除按钮
|
|
41
|
+
* @en_US Clear button
|
|
42
|
+
*/
|
|
43
|
+
this.clearable = input(this.config?.clearable ?? true, { transform: XToBoolean });
|
|
44
|
+
/**
|
|
45
|
+
* @zh_CN 异步加载
|
|
46
|
+
* @en_US Asynchronous loading
|
|
47
|
+
*/
|
|
48
|
+
this.async = input(false, { transform: XToBoolean });
|
|
49
|
+
/**
|
|
50
|
+
* @zh_CN 展示方位
|
|
51
|
+
* @en_US Display position
|
|
52
|
+
*/
|
|
53
|
+
this.placement = input(this.config?.placement ?? 'bottom');
|
|
54
|
+
/**
|
|
55
|
+
* @zh_CN 多选功能
|
|
56
|
+
* @en_US Multiple choice
|
|
57
|
+
*/
|
|
58
|
+
this.multiple = input(false, { transform: XToBoolean });
|
|
59
|
+
/**
|
|
60
|
+
* @zh_CN 多选添加全选功能
|
|
61
|
+
* @en_US Multi choice to add full selection function
|
|
62
|
+
*/
|
|
63
|
+
this.selectAll = input(false, { transform: XToBoolean });
|
|
64
|
+
/**
|
|
65
|
+
* @zh_CN 全选的文字
|
|
66
|
+
* @en_US Selected all text
|
|
67
|
+
*/
|
|
68
|
+
this.selectAllText = input(this.config?.selectAllText ?? '');
|
|
69
|
+
/**
|
|
70
|
+
* @zh_CN 节点模板
|
|
71
|
+
* @en_US Node template
|
|
72
|
+
*/
|
|
73
|
+
this.nodeTpl = input();
|
|
39
74
|
/**
|
|
40
75
|
* @zh_CN 默认展开的层级
|
|
41
76
|
* @en_US Default expanded level
|
|
42
77
|
*/
|
|
43
|
-
this.expandedLevel = -1;
|
|
78
|
+
this.expandedLevel = input(-1, { transform: XToNumber });
|
|
79
|
+
/**
|
|
80
|
+
* @zh_CN 显示边框
|
|
81
|
+
* @en_US Display Border
|
|
82
|
+
*/
|
|
83
|
+
this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
|
|
84
|
+
/**
|
|
85
|
+
* @zh_CN 下拉框的最大高度
|
|
86
|
+
* @en_US The biggest height of the drop-down box
|
|
87
|
+
*/
|
|
88
|
+
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', {
|
|
89
|
+
transform: XToCssPixelValue
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* @zh_CN 输入搜索
|
|
93
|
+
* @en_US Input search
|
|
94
|
+
*/
|
|
95
|
+
this.search = input(this.config?.search ?? false, { transform: XToBoolean });
|
|
96
|
+
/**
|
|
97
|
+
* @zh_CN 匹配区分大小写
|
|
98
|
+
* @en_US Case-sensitive
|
|
99
|
+
*/
|
|
100
|
+
this.caseSensitive = input(this.config?.caseSensitive ?? true, { transform: XToBoolean });
|
|
101
|
+
/**
|
|
102
|
+
* @zh_CN 输入延迟执行时间,ms
|
|
103
|
+
* @en_US Enter a delay execution time, ms
|
|
104
|
+
*/
|
|
105
|
+
this.debounceTime = input(this.config?.debounceTime ?? 200, { transform: XToNumber });
|
|
106
|
+
/**
|
|
107
|
+
* @zh_CN 多选时显示的选中数据个数,其它的在更多中显示,默认全部显示
|
|
108
|
+
* @en_US Display the number of data in the maximum election, and the others are displayed in more of them
|
|
109
|
+
*/
|
|
110
|
+
this.maxTagCount = input(this.config?.maxTagCount ?? -1, {
|
|
111
|
+
transform: XToNumber
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* @zh_CN 多选时显示的个数超过指定个数,显示的文字模版
|
|
115
|
+
* @en_US The number displayed when multiple choices exceeds the specified number, the displayed text template displayed
|
|
116
|
+
* @default '更多{{surplus}}个选中'
|
|
117
|
+
*/
|
|
118
|
+
this.maxTagContent = input(this.config?.maxTagContent ?? undefined);
|
|
119
|
+
/**
|
|
120
|
+
* @zh_CN 开启虚拟滚动
|
|
121
|
+
* @en_US Turn on virtual scrolling
|
|
122
|
+
*/
|
|
123
|
+
this.virtualScroll = input(this.config?.virtualScroll ?? false, { transform: XToBoolean });
|
|
124
|
+
/**
|
|
125
|
+
* @zh_CN 显示的值展示路径 AA > BB > CC
|
|
126
|
+
* @en_US Display value display path. AA > BB > CC
|
|
127
|
+
*/
|
|
128
|
+
this.showPath = input(this.config?.showPath ?? false, { transform: XToBoolean });
|
|
44
129
|
/**
|
|
45
130
|
* @zh_CN 路径分隔符
|
|
46
131
|
* @en_US Path separator
|
|
47
|
-
* @default ' / '
|
|
48
132
|
*/
|
|
49
|
-
this.separator = ' / ';
|
|
133
|
+
this.separator = input(this.config?.separator ?? ' / ');
|
|
134
|
+
/**
|
|
135
|
+
* @zh_CN 只能选择叶子节点
|
|
136
|
+
* @en_US Only leaf nodes can be selected
|
|
137
|
+
*/
|
|
138
|
+
this.onlyLeaf = input(this.config?.onlyLeaf ?? false, { transform: XToBoolean });
|
|
139
|
+
/**
|
|
140
|
+
* @zh_CN 尺寸
|
|
141
|
+
* @en_US Size
|
|
142
|
+
*/
|
|
143
|
+
this.size = input(this.config?.size ?? 'medium');
|
|
144
|
+
/**
|
|
145
|
+
* @zh_CN 输入框点击样式
|
|
146
|
+
* @en_US Input pointer
|
|
147
|
+
*/
|
|
148
|
+
this.pointer = input(false, { transform: XToBoolean });
|
|
149
|
+
/**
|
|
150
|
+
* @zh_CN 标签
|
|
151
|
+
* @en_US Label
|
|
152
|
+
*/
|
|
153
|
+
this.label = input('');
|
|
154
|
+
/**
|
|
155
|
+
* @zh_CN 标签宽度
|
|
156
|
+
* @en_US Label width
|
|
157
|
+
*/
|
|
158
|
+
this.labelWidth = input('', { transform: XToCssPixelValue });
|
|
159
|
+
/**
|
|
160
|
+
* @zh_CN 标签文字对齐方式
|
|
161
|
+
* @en_US Label text alignment method
|
|
162
|
+
*/
|
|
163
|
+
this.labelAlign = input('start');
|
|
164
|
+
/**
|
|
165
|
+
* @zh_CN flex 布局下的子元素水平排列方式
|
|
166
|
+
* @en_US The level of sub-element level arrangement under flex layout
|
|
167
|
+
*/
|
|
168
|
+
this.justify = input('start');
|
|
169
|
+
/**
|
|
170
|
+
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
171
|
+
* @en_US sub-element vertical arrangement method under flex layout
|
|
172
|
+
*/
|
|
173
|
+
this.align = input('start');
|
|
174
|
+
/**
|
|
175
|
+
* @zh_CN flex 布局下的子元素排列方向
|
|
176
|
+
* @en_US The direction of the sub-element arrangement under flex layout
|
|
177
|
+
*/
|
|
178
|
+
this.direction = input('column');
|
|
179
|
+
/**
|
|
180
|
+
* @zh_CN 输入提示信息
|
|
181
|
+
* @en_US Enter prompt information
|
|
182
|
+
*/
|
|
183
|
+
this.placeholder = input('');
|
|
184
|
+
/**
|
|
185
|
+
* @zh_CN 禁用
|
|
186
|
+
* @en_US Disabled
|
|
187
|
+
*/
|
|
188
|
+
this.disabled = input(false, { transform: XToBoolean });
|
|
189
|
+
/**
|
|
190
|
+
* @zh_CN 必填
|
|
191
|
+
* @en_US Required
|
|
192
|
+
*/
|
|
193
|
+
this.required = input(false, { transform: XToBoolean });
|
|
194
|
+
/**
|
|
195
|
+
* @zh_CN 只读
|
|
196
|
+
* @en_US Readonly
|
|
197
|
+
*/
|
|
198
|
+
this.readonly = input(true, { transform: XToBoolean });
|
|
199
|
+
/**
|
|
200
|
+
* @zh_CN 值模板
|
|
201
|
+
* @en_US Node template
|
|
202
|
+
*/
|
|
203
|
+
this.valueTpl = input();
|
|
204
|
+
/**
|
|
205
|
+
* @zh_CN 值模板参数
|
|
206
|
+
* @en_US Node template
|
|
207
|
+
*/
|
|
208
|
+
this.valueTplContext = input();
|
|
209
|
+
/**
|
|
210
|
+
* @zh_CN 前置标签
|
|
211
|
+
* @en_US Before label
|
|
212
|
+
*/
|
|
213
|
+
this.before = input();
|
|
214
|
+
/**
|
|
215
|
+
* @zh_CN 后置标签
|
|
216
|
+
* @en_US After label
|
|
217
|
+
*/
|
|
218
|
+
this.after = input();
|
|
219
|
+
/**
|
|
220
|
+
* @zh_CN 正则验证规则
|
|
221
|
+
* @en_US Regular verification rules
|
|
222
|
+
*/
|
|
223
|
+
this.pattern = input(null);
|
|
224
|
+
/**
|
|
225
|
+
* @zh_CN 验证不通过提示文字
|
|
226
|
+
* @en_US Verify not pass the prompt text
|
|
227
|
+
*/
|
|
228
|
+
this.message = input([]);
|
|
229
|
+
/**
|
|
230
|
+
* @zh_CN 激活状态
|
|
231
|
+
* @en_US Activation state
|
|
232
|
+
*/
|
|
233
|
+
this.active = model(false);
|
|
234
|
+
/**
|
|
235
|
+
* @zh_CN 输入验证函数
|
|
236
|
+
* @en_US Enter the verification function
|
|
237
|
+
*/
|
|
238
|
+
this.inputValidator = input();
|
|
50
239
|
}
|
|
51
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
240
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
241
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.1", type: XTreeSelectProperty, selector: "x-tree-select-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, async: { classPropertyName: "async", publicName: "async", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, selectAllText: { classPropertyName: "selectAllText", publicName: "selectAllText", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, expandedLevel: { classPropertyName: "expandedLevel", publicName: "expandedLevel", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null }, maxTagCount: { classPropertyName: "maxTagCount", publicName: "maxTagCount", isSignal: true, isRequired: false, transformFunction: null }, maxTagContent: { classPropertyName: "maxTagContent", publicName: "maxTagContent", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, showPath: { classPropertyName: "showPath", publicName: "showPath", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, onlyLeaf: { classPropertyName: "onlyLeaf", publicName: "onlyLeaf", 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 }, 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" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
53
242
|
}
|
|
54
|
-
|
|
55
|
-
XDataConvert()
|
|
56
|
-
], XTreeSelectProperty.prototype, "data", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
XWithConfig(X_CONFIG_NAME, true),
|
|
59
|
-
XInputBoolean()
|
|
60
|
-
], XTreeSelectProperty.prototype, "clearable", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
XInputBoolean()
|
|
63
|
-
], XTreeSelectProperty.prototype, "async", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
XWithConfig(X_CONFIG_NAME, 'bottom')
|
|
66
|
-
], XTreeSelectProperty.prototype, "placement", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
XInputBoolean()
|
|
69
|
-
], XTreeSelectProperty.prototype, "multiple", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
XInputBoolean()
|
|
72
|
-
], XTreeSelectProperty.prototype, "selectAll", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
XWithConfig(X_CONFIG_NAME)
|
|
75
|
-
], XTreeSelectProperty.prototype, "selectAllText", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
XWithConfig(X_CONFIG_NAME, 'medium')
|
|
78
|
-
], XTreeSelectProperty.prototype, "size", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
XInputNumber()
|
|
81
|
-
], XTreeSelectProperty.prototype, "expandedLevel", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
XInputBoolean(),
|
|
84
|
-
XWithConfig(X_CONFIG_NAME, true)
|
|
85
|
-
], XTreeSelectProperty.prototype, "bordered", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
XWithConfig(X_CONFIG_NAME, '12rem')
|
|
88
|
-
], XTreeSelectProperty.prototype, "portalMaxHeight", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
XInputBoolean(),
|
|
91
|
-
XWithConfig(X_CONFIG_NAME, false)
|
|
92
|
-
], XTreeSelectProperty.prototype, "search", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
XInputBoolean(),
|
|
95
|
-
XWithConfig(X_CONFIG_NAME, true)
|
|
96
|
-
], XTreeSelectProperty.prototype, "caseSensitive", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
XWithConfig(X_CONFIG_NAME, 200)
|
|
99
|
-
], XTreeSelectProperty.prototype, "debounceTime", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
XInputNumber(),
|
|
102
|
-
XWithConfig(X_CONFIG_NAME)
|
|
103
|
-
], XTreeSelectProperty.prototype, "maxTagCount", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
XWithConfig(X_CONFIG_NAME)
|
|
106
|
-
], XTreeSelectProperty.prototype, "maxTagContent", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
XWithConfig(X_CONFIG_NAME),
|
|
109
|
-
XInputBoolean()
|
|
110
|
-
], XTreeSelectProperty.prototype, "virtualScroll", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
XWithConfig(X_CONFIG_NAME, false),
|
|
113
|
-
XInputBoolean()
|
|
114
|
-
], XTreeSelectProperty.prototype, "showPath", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
XWithConfig(X_CONFIG_NAME)
|
|
117
|
-
], XTreeSelectProperty.prototype, "separator", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
XInputBoolean(),
|
|
120
|
-
XWithConfig(X_CONFIG_NAME, false)
|
|
121
|
-
], XTreeSelectProperty.prototype, "onlyLeaf", void 0);
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: XTreeSelectProperty, decorators: [{
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectProperty, decorators: [{
|
|
123
244
|
type: Component,
|
|
124
245
|
args: [{ selector: `${XTreeSelectPrefix}-property`, template: '' }]
|
|
125
|
-
}]
|
|
126
|
-
type: Input
|
|
127
|
-
}], clearable: [{
|
|
128
|
-
type: Input
|
|
129
|
-
}], async: [{
|
|
130
|
-
type: Input
|
|
131
|
-
}], placement: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}], multiple: [{
|
|
134
|
-
type: Input
|
|
135
|
-
}], selectAll: [{
|
|
136
|
-
type: Input
|
|
137
|
-
}], selectAllText: [{
|
|
138
|
-
type: Input
|
|
139
|
-
}], nodeTpl: [{
|
|
140
|
-
type: Input
|
|
141
|
-
}], size: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}], expandedLevel: [{
|
|
144
|
-
type: Input
|
|
145
|
-
}], bordered: [{
|
|
146
|
-
type: Input
|
|
147
|
-
}], portalMaxHeight: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}], search: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], caseSensitive: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], debounceTime: [{
|
|
154
|
-
type: Input
|
|
155
|
-
}], maxTagCount: [{
|
|
156
|
-
type: Input
|
|
157
|
-
}], maxTagContent: [{
|
|
158
|
-
type: Input
|
|
159
|
-
}], virtualScroll: [{
|
|
160
|
-
type: Input
|
|
161
|
-
}], showPath: [{
|
|
162
|
-
type: Input
|
|
163
|
-
}], separator: [{
|
|
164
|
-
type: Input
|
|
165
|
-
}], onlyLeaf: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}] } });
|
|
246
|
+
}] });
|
|
168
247
|
/**
|
|
169
248
|
* Tree Select Portal
|
|
170
249
|
* @selector x-tree-select-portal
|
|
@@ -174,90 +253,60 @@ const XTreeSelectPortalPrefix = 'x-tree-select-portal';
|
|
|
174
253
|
|
|
175
254
|
class XTreeSelectPortalComponent {
|
|
176
255
|
constructor() {
|
|
177
|
-
this.
|
|
178
|
-
this.show = false;
|
|
179
|
-
this.objectArray = false;
|
|
180
|
-
this.caseSensitive = true;
|
|
181
|
-
this.active = -1;
|
|
182
|
-
this.portalMaxHeight = '';
|
|
183
|
-
this.locale = {};
|
|
184
|
-
this.search = false;
|
|
185
|
-
this.scrollNull = undefined;
|
|
186
|
-
this._unSubject = new Subject();
|
|
187
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
256
|
+
this.tree = viewChild.required('tree');
|
|
188
257
|
this.i18n = inject(XI18nService);
|
|
258
|
+
this.value = model();
|
|
259
|
+
this.data = input([]);
|
|
260
|
+
this.placement = input('bottom');
|
|
261
|
+
this.multiple = input(false);
|
|
262
|
+
this.nodeTpl = input();
|
|
263
|
+
this.inputCom = input();
|
|
264
|
+
this.portalMaxHeight = input('');
|
|
265
|
+
this.objectArray = input(false);
|
|
266
|
+
this.selectAll = input(false);
|
|
267
|
+
this.selectAllText = input('');
|
|
268
|
+
this.caseSensitive = input(true);
|
|
269
|
+
this.search = input(false);
|
|
270
|
+
this.virtualScroll = input(false);
|
|
271
|
+
this.keywordText = input('');
|
|
272
|
+
this.size = input();
|
|
273
|
+
this.onlyLeaf = input(false);
|
|
274
|
+
this.expandedLevel = input();
|
|
275
|
+
this.animating = output();
|
|
276
|
+
this.nodeClick = output();
|
|
277
|
+
this.isEmpty = computed(() => XIsEmpty(this.data()));
|
|
278
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.treeSelect)), {
|
|
279
|
+
initialValue: zh_CN.treeSelect
|
|
280
|
+
});
|
|
281
|
+
this.getSelectAllText = computed(() => this.selectAllText() || this.locale().selectAllText);
|
|
189
282
|
}
|
|
190
|
-
|
|
191
|
-
this.
|
|
192
|
-
event.toState === 'void' && this.destroyPortal();
|
|
193
|
-
}
|
|
194
|
-
start() {
|
|
195
|
-
this.animating(true);
|
|
196
|
-
}
|
|
197
|
-
// @ViewChild('list') list!: XListComponent;
|
|
198
|
-
get isEmpty() {
|
|
199
|
-
return XIsEmpty(this.data);
|
|
200
|
-
}
|
|
201
|
-
get getSelectAllText() {
|
|
202
|
-
return this.selectAllText || this.locale.selectAllText;
|
|
283
|
+
get getPlacement() {
|
|
284
|
+
return this.placement();
|
|
203
285
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
this.value = x;
|
|
207
|
-
this.cdr.detectChanges();
|
|
208
|
-
});
|
|
209
|
-
this.positionChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
210
|
-
this.placement = x;
|
|
211
|
-
this.cdr.detectChanges();
|
|
212
|
-
});
|
|
213
|
-
this.dataChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
214
|
-
this.data = x;
|
|
215
|
-
this.cdr.detectChanges();
|
|
216
|
-
});
|
|
217
|
-
this.closeSubject.pipe(takeUntil(this._unSubject)).subscribe(() => {
|
|
218
|
-
// this.tree.setUnActive(this.active);
|
|
219
|
-
});
|
|
220
|
-
this.keydownSubject.pipe(takeUntil(this._unSubject)).subscribe((_x) => {
|
|
221
|
-
// this.tree.keydown(x);
|
|
222
|
-
});
|
|
223
|
-
this.inputChange.pipe(takeUntil(this._unSubject)).subscribe((x) => {
|
|
224
|
-
this.keywordText = x;
|
|
225
|
-
});
|
|
226
|
-
this.i18n.localeChange
|
|
227
|
-
.pipe(map((x) => x.treeSelect), takeUntil(this._unSubject))
|
|
228
|
-
.subscribe((x) => {
|
|
229
|
-
this.locale = x;
|
|
230
|
-
this.cdr.markForCheck();
|
|
231
|
-
});
|
|
286
|
+
done(event) {
|
|
287
|
+
event.toState !== 'void' && this.animating.emit(false);
|
|
232
288
|
}
|
|
233
|
-
|
|
234
|
-
this.
|
|
235
|
-
this._unSubject.unsubscribe();
|
|
289
|
+
start(event) {
|
|
290
|
+
event.toState !== 'void' && this.animating.emit(true);
|
|
236
291
|
}
|
|
237
292
|
stopPropagation(event) {
|
|
238
293
|
event.stopPropagation();
|
|
239
294
|
}
|
|
240
|
-
|
|
241
|
-
if (this.multiple) {
|
|
242
|
-
this.
|
|
295
|
+
onNodeClick(node) {
|
|
296
|
+
if (this.multiple()) {
|
|
297
|
+
this.nodeClick.emit({ node, value: this.value() });
|
|
243
298
|
}
|
|
244
299
|
else {
|
|
245
|
-
this.
|
|
300
|
+
this.nodeClick.emit({ node });
|
|
246
301
|
}
|
|
247
302
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
onActive(num) {
|
|
252
|
-
this.active = num;
|
|
253
|
-
}
|
|
254
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: XTreeSelectPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
255
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.0", type: XTreeSelectPortalComponent, isStandalone: true, selector: "x-tree-select-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, viewQueries: [{ propertyName: "tree", first: true, predicate: ["tree"], descendants: true }], ngImport: i0, template: "<div\r\n #treeSelectPortal\r\n class=\"x-tree-select-portal\"\r\n (click)=\"inputCom.inputFocus(); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalMaxHeight\"\r\n>\r\n <x-tree\r\n #tree\r\n [data]=\"data\"\r\n [labelTpl]=\"nodeTpl\"\r\n [virtualScroll]=\"virtualScroll\"\r\n [scrollElement]=\"search ? scrollNull : treeSelectPortal\"\r\n [heightAdaption]=\"treeSelectPortal\"\r\n [expandedLevel]=\"expandedLevel\"\r\n [(activatedId)]=\"value\"\r\n (nodeClick)=\"nodeClick($event)\"\r\n [multiple]=\"multiple\"\r\n [allowManyActivated]=\"multiple\"\r\n [objectArray]=\"objectArray\"\r\n [keywordText]=\"keywordText\"\r\n [caseSensitive]=\"caseSensitive\"\r\n [onlyLeaf]=\"onlyLeaf\"\r\n [nodeOpen]=\"onlyLeaf\"\r\n ></x-tree>\r\n @if (isEmpty) {\r\n <x-empty></x-empty>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-tree-select-portal{width:100%}.x-tree-select-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);width:100%;border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);position:relative;display:flex;flex-direction:column;background-color:var(--x-background);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}\n"], dependencies: [{ kind: "component", type: XTreeComponent, selector: "x-tree" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
303
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
304
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XTreeSelectPortalComponent, isStandalone: true, selector: "x-tree-select-portal", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, inputCom: { classPropertyName: "inputCom", publicName: "inputCom", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, objectArray: { classPropertyName: "objectArray", publicName: "objectArray", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, selectAllText: { classPropertyName: "selectAllText", publicName: "selectAllText", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, keywordText: { classPropertyName: "keywordText", publicName: "keywordText", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, onlyLeaf: { classPropertyName: "onlyLeaf", publicName: "onlyLeaf", isSignal: true, isRequired: false, transformFunction: null }, expandedLevel: { classPropertyName: "expandedLevel", publicName: "expandedLevel", 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" } }, viewQueries: [{ propertyName: "tree", first: true, predicate: ["tree"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\r\n #treeSelectPortal\r\n class=\"x-tree-select-portal\"\r\n [class.x-tree-select-portal-virtual-scroll]=\"virtualScroll()\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalMaxHeight()\"\r\n [style.height]=\"virtualScroll() ? portalMaxHeight() : ''\"\r\n>\r\n <x-tree\r\n #tree\r\n [data]=\"data()\"\r\n [labelTpl]=\"nodeTpl()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [scrollElement]=\"search() ? undefined : treeSelectPortal\"\r\n [heightAdaption]=\"treeSelectPortal\"\r\n [expandedLevel]=\"expandedLevel()!\"\r\n [(activatedId)]=\"value\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n [multiple]=\"multiple()\"\r\n [allowManyActivated]=\"multiple()\"\r\n [objectArray]=\"objectArray()\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [onlyLeaf]=\"onlyLeaf()\"\r\n [nodeOpen]=\"onlyLeaf()\"\r\n ></x-tree>\r\n @if (isEmpty()) {\r\n <x-empty></x-empty>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-tree-select-portal{width:100%}.x-tree-select-portal{padding:.25rem;color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;flex-direction:column;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}.x-tree-select-portal-virtual-scroll{padding:0;overflow:hidden}.x-tree-select-portal-virtual-scroll .x-tree-content{padding:.25rem}\n"], dependencies: [{ kind: "component", type: XTreeComponent, selector: "x-tree" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
256
305
|
}
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectPortalComponent, decorators: [{
|
|
258
307
|
type: Component,
|
|
259
|
-
args: [{ selector: `${XTreeSelectPortalPrefix}`, standalone: true, imports: [XTreeComponent, XEmptyComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div\r\n #treeSelectPortal\r\n class=\"x-tree-select-portal\"\r\n (click)=\"inputCom
|
|
260
|
-
}], propDecorators: {
|
|
308
|
+
args: [{ selector: `${XTreeSelectPortalPrefix}`, standalone: true, imports: [XTreeComponent, XEmptyComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div\r\n #treeSelectPortal\r\n class=\"x-tree-select-portal\"\r\n [class.x-tree-select-portal-virtual-scroll]=\"virtualScroll()\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalMaxHeight()\"\r\n [style.height]=\"virtualScroll() ? portalMaxHeight() : ''\"\r\n>\r\n <x-tree\r\n #tree\r\n [data]=\"data()\"\r\n [labelTpl]=\"nodeTpl()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [scrollElement]=\"search() ? undefined : treeSelectPortal\"\r\n [heightAdaption]=\"treeSelectPortal\"\r\n [expandedLevel]=\"expandedLevel()!\"\r\n [(activatedId)]=\"value\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n [multiple]=\"multiple()\"\r\n [allowManyActivated]=\"multiple()\"\r\n [objectArray]=\"objectArray()\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [onlyLeaf]=\"onlyLeaf()\"\r\n [nodeOpen]=\"onlyLeaf()\"\r\n ></x-tree>\r\n @if (isEmpty()) {\r\n <x-empty></x-empty>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-tree-select-portal{width:100%}.x-tree-select-portal{padding:.25rem;color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;flex-direction:column;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}.x-tree-select-portal-virtual-scroll{padding:0;overflow:hidden}.x-tree-select-portal-virtual-scroll .x-tree-content{padding:.25rem}\n"] }]
|
|
309
|
+
}], propDecorators: { getPlacement: [{
|
|
261
310
|
type: HostBinding,
|
|
262
311
|
args: ['@x-connect-base-animation']
|
|
263
312
|
}], done: [{
|
|
@@ -266,46 +315,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
266
315
|
}], start: [{
|
|
267
316
|
type: HostListener,
|
|
268
317
|
args: ['@x-connect-base-animation.start', ['$event']]
|
|
269
|
-
}], tree: [{
|
|
270
|
-
type: ViewChild,
|
|
271
|
-
args: ['tree']
|
|
272
318
|
}] } });
|
|
273
319
|
|
|
274
320
|
class XTreeSelectComponent extends XTreeSelectProperty {
|
|
321
|
+
writeValue(value) {
|
|
322
|
+
if (this.multiple()) {
|
|
323
|
+
if (XIsEmpty(value)) {
|
|
324
|
+
value = [];
|
|
325
|
+
}
|
|
326
|
+
if (!XIsArray(value)) {
|
|
327
|
+
value = [value];
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
this.value.set(value);
|
|
331
|
+
this.setDisplayValue();
|
|
332
|
+
}
|
|
275
333
|
constructor() {
|
|
276
|
-
super(
|
|
277
|
-
this.
|
|
278
|
-
this.enter = false;
|
|
279
|
-
this.showClearable = false;
|
|
280
|
-
this.displayValue = '';
|
|
281
|
-
this.multipleSearchValue = '';
|
|
282
|
-
this.nodes = [];
|
|
283
|
-
this.selectedNodes = [];
|
|
284
|
-
this.displayNodes = [];
|
|
285
|
-
this.displayMore = '';
|
|
286
|
-
this.showDisplayMore = false;
|
|
287
|
-
this.searchNodes = [];
|
|
288
|
-
this.icon = 'fto-chevron-down';
|
|
289
|
-
this.iconSpin = false;
|
|
290
|
-
this.maxNodes = 6;
|
|
291
|
-
this.inputPadding = 0.4;
|
|
292
|
-
this.protalTobottom = true;
|
|
293
|
-
this.asyncLoading = false;
|
|
294
|
-
this.animating = false;
|
|
295
|
-
this.objectArray = false;
|
|
296
|
-
this.selectedSurplus = 0;
|
|
297
|
-
this.selectedTotal = 0;
|
|
298
|
-
this.locale = {};
|
|
299
|
-
this.valueTplContext = { $node: null, $isValue: true };
|
|
300
|
-
this.valueChange = new Subject();
|
|
301
|
-
this.positionChange = new Subject();
|
|
302
|
-
this.closeSubject = new Subject();
|
|
303
|
-
this.dataChange = new BehaviorSubject([]);
|
|
304
|
-
this.keydownSubject = new Subject();
|
|
305
|
-
this.inputChange = new Subject();
|
|
306
|
-
this.composition = false;
|
|
307
|
-
this.multipleInputSizeChange = new Subject();
|
|
308
|
-
this._unSubject = new Subject();
|
|
334
|
+
super();
|
|
335
|
+
this.unSubject = new Subject();
|
|
309
336
|
this.document = inject(DOCUMENT);
|
|
310
337
|
this.renderer = inject(Renderer2);
|
|
311
338
|
this.cdr = inject(ChangeDetectorRef);
|
|
@@ -314,43 +341,76 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
314
341
|
this.overlay = inject(Overlay);
|
|
315
342
|
this.i18n = inject(XI18nService);
|
|
316
343
|
this.elementRef = inject(ElementRef);
|
|
317
|
-
this.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
344
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.treeSelect)), {
|
|
345
|
+
initialValue: zh_CN.treeSelect
|
|
346
|
+
});
|
|
347
|
+
this.inputCom = viewChild.required('inputCom');
|
|
348
|
+
this.treeSelect = viewChild.required('treeSelect');
|
|
349
|
+
this.multipleValueTpl = viewChild.required('multipleValueTpl');
|
|
350
|
+
this.multipleInput = viewChild('multipleInput');
|
|
351
|
+
this.getReadonly = computed(() => (this.readonly() && !this.search()) || (this.search() && Boolean(this.multiple())));
|
|
352
|
+
this.getMaxTagContent = computed(() => this.maxTagContent() || this.locale().maxTagContent);
|
|
353
|
+
this.objectArray = computed(() => XIsObjectArray(this.value()));
|
|
354
|
+
this.enter = signal(false);
|
|
355
|
+
this.showClearable = signal(false);
|
|
356
|
+
this.displayValue = signal('');
|
|
357
|
+
this.multipleSearchValue = signal('');
|
|
358
|
+
this.nodes = signal([]);
|
|
359
|
+
this.selectedNodes = signal([]);
|
|
360
|
+
this.displayNodes = signal([]);
|
|
361
|
+
this.displayMore = signal('');
|
|
362
|
+
this.showDisplayMore = signal(false);
|
|
363
|
+
this.searchNodes = signal([]);
|
|
364
|
+
this.cloneNodes = signal([]);
|
|
365
|
+
this.icon = signal('fto-chevron-down');
|
|
366
|
+
this.iconSpin = signal(false);
|
|
367
|
+
this.animating = signal(false);
|
|
368
|
+
this.selectedSurplus = signal(0);
|
|
369
|
+
this.selectedTotal = signal(0);
|
|
370
|
+
this.valueTplContextSignal = signal({ $node: null, $isValue: true });
|
|
371
|
+
this.closeSubject = new Subject();
|
|
372
|
+
this.keydownSubject = new Subject();
|
|
373
|
+
this.inputChange = new Subject();
|
|
374
|
+
this.composition = signal(false);
|
|
375
|
+
this.multipleInputSizeChange = new Subject();
|
|
376
|
+
this.valueTplSignal = computed(() => {
|
|
377
|
+
if (this.multiple()) {
|
|
378
|
+
return this.multipleValueTpl();
|
|
332
379
|
}
|
|
333
|
-
this.
|
|
334
|
-
}
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
380
|
+
return this.valueTpl();
|
|
381
|
+
});
|
|
382
|
+
this.realPlacement = signal(null);
|
|
383
|
+
this.portalComponent = signal(null);
|
|
384
|
+
this.portalOverlayRef = signal(null);
|
|
385
|
+
this.inputChanged = toSignal(this.inputChange);
|
|
386
|
+
this.portalData = computed(() => {
|
|
387
|
+
const nodes = this.nodes();
|
|
388
|
+
if (XIsFunction(this.data()))
|
|
389
|
+
return nodes;
|
|
390
|
+
if (XIsEmpty(this.inputChanged()))
|
|
391
|
+
return nodes;
|
|
392
|
+
return this.searchNodes();
|
|
393
|
+
});
|
|
394
|
+
effect(() => this.portalComponent()?.setInput('data', this.portalData()));
|
|
395
|
+
effect(() => this.portalComponent()?.setInput('value', this.value()));
|
|
396
|
+
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
397
|
+
effect(() => this.portalComponent()?.setInput('multiple', this.multiple()));
|
|
398
|
+
effect(() => this.portalComponent()?.setInput('nodeTpl', this.nodeTpl()));
|
|
399
|
+
effect(() => this.portalComponent()?.setInput('inputCom', this.inputCom()));
|
|
400
|
+
effect(() => this.portalComponent()?.setInput('portalMaxHeight', this.portalMaxHeight()));
|
|
401
|
+
effect(() => this.portalComponent()?.setInput('objectArray', this.objectArray()));
|
|
402
|
+
effect(() => this.portalComponent()?.setInput('selectAll', this.selectAll()));
|
|
403
|
+
effect(() => this.portalComponent()?.setInput('selectAllText', this.selectAllText()));
|
|
404
|
+
effect(() => this.portalComponent()?.setInput('caseSensitive', this.caseSensitive()));
|
|
405
|
+
effect(() => this.portalComponent()?.setInput('search', this.search()));
|
|
406
|
+
effect(() => this.portalComponent()?.setInput('virtualScroll', this.virtualScroll()));
|
|
407
|
+
effect(() => this.portalComponent()?.setInput('size', this.size()));
|
|
408
|
+
effect(() => this.portalComponent()?.setInput('keywordText', this.inputChanged()));
|
|
409
|
+
effect(() => this.portalComponent()?.setInput('onlyLeaf', this.onlyLeaf()));
|
|
410
|
+
effect(() => this.portalComponent()?.setInput('expandedLevel', this.expandedLevel()));
|
|
339
411
|
}
|
|
340
412
|
ngOnInit() {
|
|
341
|
-
this.setFlex(this.treeSelect.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
342
|
-
this.setClassMap();
|
|
343
413
|
this.setSubject();
|
|
344
|
-
if (this.multiple) {
|
|
345
|
-
this.valueTpl = this.multipleValueTpl;
|
|
346
|
-
this.inputPadding = 0.125;
|
|
347
|
-
}
|
|
348
|
-
this.i18n.localeChange
|
|
349
|
-
.pipe(map((x) => x.treeSelect), takeUntil(this._unSubject))
|
|
350
|
-
.subscribe((x) => {
|
|
351
|
-
this.locale = x;
|
|
352
|
-
this.cdr.markForCheck();
|
|
353
|
-
});
|
|
354
414
|
this.setParantScroll();
|
|
355
415
|
}
|
|
356
416
|
ngOnChanges(changes) {
|
|
@@ -359,57 +419,48 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
359
419
|
}
|
|
360
420
|
ngAfterViewInit() {
|
|
361
421
|
this.setPortal();
|
|
362
|
-
if (this.multiple && this.inputCom.inputValueRef) {
|
|
363
|
-
XResize(this.inputCom.inputValueRef
|
|
364
|
-
.pipe(debounceTime(30), takeUntil(this.
|
|
422
|
+
if (this.multiple() && this.inputCom().inputValueRef()) {
|
|
423
|
+
XResize(this.inputCom().inputValueRef()?.nativeElement)
|
|
424
|
+
.pipe(debounceTime(30), takeUntil(this.unSubject))
|
|
365
425
|
.subscribe((x) => {
|
|
366
|
-
this.
|
|
426
|
+
this.resizeObserver = x.resizeObserver;
|
|
367
427
|
this.setMutipleInputSize();
|
|
368
428
|
});
|
|
369
429
|
}
|
|
370
430
|
}
|
|
371
431
|
ngOnDestroy() {
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
374
|
-
this.
|
|
375
|
-
}
|
|
376
|
-
setClassMap() {
|
|
377
|
-
XClearClass(this.labelMap);
|
|
378
|
-
this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;
|
|
432
|
+
this.unSubject.next();
|
|
433
|
+
this.unSubject.complete();
|
|
434
|
+
this.resizeObserver?.disconnect();
|
|
379
435
|
}
|
|
380
436
|
setData() {
|
|
381
|
-
if (this.async)
|
|
437
|
+
if (this.async())
|
|
382
438
|
return;
|
|
383
|
-
XSetData(this.data, this.
|
|
384
|
-
this.nodes
|
|
385
|
-
this.dataChange.next(this.nodes);
|
|
439
|
+
XSetData(this.data(), this.unSubject).subscribe((x) => {
|
|
440
|
+
this.nodes.set(x);
|
|
386
441
|
this.setDisplayValue();
|
|
387
442
|
this.setPortal();
|
|
388
|
-
this.cdr.detectChanges();
|
|
389
443
|
});
|
|
390
444
|
}
|
|
391
445
|
setSubject() {
|
|
392
|
-
this.closeSubject.pipe(takeUntil(this.
|
|
446
|
+
this.closeSubject.pipe(takeUntil(this.unSubject)).subscribe(() => {
|
|
393
447
|
this.closePortal();
|
|
394
448
|
});
|
|
395
449
|
this.inputChange
|
|
396
|
-
.pipe(debounceTime(this.debounceTime), distinctUntilChanged(), takeUntil(this.
|
|
450
|
+
.pipe(debounceTime(this.debounceTime()), distinctUntilChanged(), takeUntil(this.unSubject))
|
|
397
451
|
.subscribe((x) => {
|
|
398
452
|
this.modelChange(x);
|
|
399
453
|
});
|
|
400
|
-
this.keydownSubject.pipe(throttleTime(10), takeUntil(this.
|
|
454
|
+
this.keydownSubject.pipe(throttleTime(10), takeUntil(this.unSubject)).subscribe((x) => {
|
|
401
455
|
const keyCode = x.keyCode;
|
|
402
456
|
if (!this.portalAttached() &&
|
|
403
457
|
[DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, MAC_ENTER, BACKSPACE].includes(keyCode)) {
|
|
404
|
-
this.inputChange.next(this.displayValue);
|
|
458
|
+
this.inputChange.next(this.displayValue());
|
|
405
459
|
}
|
|
406
|
-
// if (this.portalAttached() && [ESCAPE].includes(keyCode)) {
|
|
407
|
-
// this.closeSubject.next();
|
|
408
|
-
// }
|
|
409
460
|
});
|
|
410
|
-
this.multipleInputSizeChange.pipe(distinctUntilChanged(), takeUntil(this.
|
|
411
|
-
if (this.multipleInput) {
|
|
412
|
-
const input = this.multipleInput
|
|
461
|
+
this.multipleInputSizeChange.pipe(distinctUntilChanged(), takeUntil(this.unSubject)).subscribe((x) => {
|
|
462
|
+
if (this.multipleInput()) {
|
|
463
|
+
const input = this.multipleInput().elementRef.nativeElement;
|
|
413
464
|
this.renderer.setStyle(input, 'width', `${x}px`);
|
|
414
465
|
}
|
|
415
466
|
});
|
|
@@ -427,7 +478,7 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
427
478
|
}
|
|
428
479
|
if (firstScroll && firstScroll.tagName !== 'BODY') {
|
|
429
480
|
fromEvent(firstScroll, 'scroll')
|
|
430
|
-
.pipe(filter(() => this.portalAttached()), takeUntil(this.
|
|
481
|
+
.pipe(filter(() => this.portalAttached()), takeUntil(this.unSubject))
|
|
431
482
|
.subscribe(() => {
|
|
432
483
|
this.portal?.overlayRef?.updatePosition();
|
|
433
484
|
const eract = this.elementRef.nativeElement.getBoundingClientRect();
|
|
@@ -439,7 +490,7 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
439
490
|
}
|
|
440
491
|
}
|
|
441
492
|
setMutipleInputSize() {
|
|
442
|
-
const ivf = this.inputCom.inputValueRef
|
|
493
|
+
const ivf = this.inputCom().inputValueRef()?.nativeElement;
|
|
443
494
|
let { clientWidth, scrollHeight } = ivf;
|
|
444
495
|
const len = ivf.children.length;
|
|
445
496
|
let lastRowTagTop = -1;
|
|
@@ -471,71 +522,65 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
471
522
|
}
|
|
472
523
|
}
|
|
473
524
|
const height = scrollHeight + (lines > 1 ? marginTop : 0);
|
|
474
|
-
this.renderer.setStyle(this.inputCom.inputRef.nativeElement, 'height', `${height}px`);
|
|
475
|
-
if (this.multipleInput) {
|
|
525
|
+
this.renderer.setStyle(this.inputCom().inputRef().nativeElement, 'height', `${height}px`);
|
|
526
|
+
if (this.multipleInput()) {
|
|
476
527
|
this.multipleInputSizeChange.next(clientWidth - lastRowTagsWidth - marginLeft);
|
|
477
528
|
}
|
|
478
529
|
this.portal?.overlayRef?.updatePosition();
|
|
479
530
|
}
|
|
480
531
|
menter() {
|
|
481
|
-
this.enter
|
|
482
|
-
if (this.
|
|
532
|
+
this.enter.set(true);
|
|
533
|
+
if (this.disabledComputed() || !this.clearable() || this.iconSpin())
|
|
483
534
|
return;
|
|
484
|
-
if (!XIsEmpty(this.displayValue)) {
|
|
485
|
-
this.icon
|
|
486
|
-
this.showClearable
|
|
487
|
-
this.cdr.detectChanges();
|
|
535
|
+
if (!XIsEmpty(this.displayValue())) {
|
|
536
|
+
this.icon.set('');
|
|
537
|
+
this.showClearable.set(true);
|
|
488
538
|
}
|
|
489
539
|
}
|
|
490
540
|
mleave() {
|
|
491
|
-
this.enter
|
|
492
|
-
if (this.
|
|
541
|
+
this.enter.set(false);
|
|
542
|
+
if (this.disabledComputed() || !this.clearable() || this.iconSpin())
|
|
493
543
|
return;
|
|
494
|
-
if (this.clearable) {
|
|
495
|
-
this.icon
|
|
496
|
-
this.showClearable
|
|
497
|
-
this.cdr.detectChanges();
|
|
544
|
+
if (this.clearable()) {
|
|
545
|
+
this.icon.set('fto-chevron-down');
|
|
546
|
+
this.showClearable.set(false);
|
|
498
547
|
}
|
|
499
548
|
}
|
|
500
549
|
modelChange(value) {
|
|
501
|
-
if (XIsFunction(this.data)) {
|
|
550
|
+
if (XIsFunction(this.data())) {
|
|
502
551
|
if (!this.portalAttached()) {
|
|
503
552
|
this.showPortal();
|
|
504
553
|
}
|
|
505
|
-
this.icon
|
|
506
|
-
this.iconSpin
|
|
507
|
-
this.
|
|
508
|
-
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
|
|
512
|
-
this.showClearable = false;
|
|
554
|
+
this.icon.set('fto-loader');
|
|
555
|
+
this.iconSpin.set(true);
|
|
556
|
+
XSetData(this.data(), this.unSubject, true, value).subscribe((x) => {
|
|
557
|
+
this.icon.set('');
|
|
558
|
+
this.iconSpin.set(false);
|
|
559
|
+
if (!this.enter() && this.clearable()) {
|
|
560
|
+
this.showClearable.set(false);
|
|
513
561
|
}
|
|
514
|
-
this.nodes
|
|
515
|
-
this.dataChange.next(this.nodes);
|
|
516
|
-
this.cdr.detectChanges();
|
|
562
|
+
this.nodes.set(x);
|
|
517
563
|
});
|
|
518
564
|
return;
|
|
519
565
|
}
|
|
520
|
-
if (this.nodes) {
|
|
566
|
+
if (this.nodes()) {
|
|
521
567
|
if (!this.portalAttached()) {
|
|
522
568
|
this.showPortal();
|
|
523
569
|
}
|
|
524
570
|
if (XIsEmpty(value)) {
|
|
525
|
-
this.searchNodes
|
|
526
|
-
...this.nodes.map((x) => {
|
|
571
|
+
this.searchNodes.set([
|
|
572
|
+
...this.nodes().map((x) => {
|
|
527
573
|
let res = { ...x };
|
|
528
574
|
delete res.children;
|
|
529
575
|
delete res.childrenLoaded;
|
|
530
576
|
delete res.leaf;
|
|
531
577
|
return res;
|
|
532
578
|
})
|
|
533
|
-
];
|
|
579
|
+
]);
|
|
534
580
|
}
|
|
535
581
|
else {
|
|
536
582
|
this.setSearchNodes(value);
|
|
537
583
|
}
|
|
538
|
-
this.dataChange.next(this.searchNodes);
|
|
539
584
|
}
|
|
540
585
|
}
|
|
541
586
|
setSearchNodes(value) {
|
|
@@ -543,7 +588,7 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
543
588
|
const getParent = (node) => {
|
|
544
589
|
if (XIsEmpty(node.pid))
|
|
545
590
|
return;
|
|
546
|
-
const parent = this.nodes.find((x) => x.id === node.pid);
|
|
591
|
+
const parent = this.nodes().find((x) => x.id === node.pid);
|
|
547
592
|
parent.open = true;
|
|
548
593
|
if (!XIsEmpty(parent)) {
|
|
549
594
|
if (nodes.every((x) => x.id !== parent.id)) {
|
|
@@ -551,109 +596,130 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
551
596
|
}
|
|
552
597
|
}
|
|
553
598
|
};
|
|
554
|
-
if (this.caseSensitive) {
|
|
555
|
-
nodes = this.nodes.filter((x) => x.label.indexOf(value) >= 0);
|
|
599
|
+
if (this.caseSensitive()) {
|
|
600
|
+
nodes = this.nodes().filter((x) => x.label.indexOf(value) >= 0);
|
|
556
601
|
}
|
|
557
602
|
else {
|
|
558
|
-
nodes = this.nodes.filter((x) => x.label.toLowerCase().indexOf(value.toLowerCase()) >= 0);
|
|
603
|
+
nodes = this.nodes().filter((x) => x.label.toLowerCase().indexOf(value.toLowerCase()) >= 0);
|
|
559
604
|
}
|
|
560
605
|
for (let node of nodes) {
|
|
561
606
|
getParent(node);
|
|
562
607
|
}
|
|
563
|
-
this.searchNodes
|
|
608
|
+
this.searchNodes.set(nodes.map((x) => {
|
|
564
609
|
let res = { ...x };
|
|
565
610
|
delete res.children;
|
|
566
611
|
delete res.childrenLoaded;
|
|
567
612
|
delete res.leaf;
|
|
568
613
|
return res;
|
|
569
|
-
});
|
|
614
|
+
}));
|
|
570
615
|
}
|
|
571
616
|
clearEmit() {
|
|
572
|
-
this.value
|
|
573
|
-
this.displayValue
|
|
574
|
-
this.multipleSearchValue
|
|
575
|
-
this.selectedNodes
|
|
617
|
+
this.value.set(this.multiple() ? [] : '');
|
|
618
|
+
this.displayValue.set('');
|
|
619
|
+
this.multipleSearchValue.set('');
|
|
620
|
+
this.selectedNodes.set([]);
|
|
576
621
|
this.setDisplayNodes();
|
|
577
|
-
this.
|
|
622
|
+
this.valueTplContextSignal.update((x) => {
|
|
623
|
+
x.$node = null;
|
|
624
|
+
return { ...x };
|
|
625
|
+
});
|
|
578
626
|
this.mleave();
|
|
579
|
-
this.valueChange.next(this.value);
|
|
580
627
|
this.inputChange.next('');
|
|
581
628
|
if (this.onChange)
|
|
582
|
-
this.onChange(this.value);
|
|
629
|
+
this.onChange(this.value());
|
|
583
630
|
}
|
|
584
631
|
setDisplayValue(clickNode) {
|
|
585
|
-
if (this.nodes.length > 0) {
|
|
586
|
-
if (this.multiple) {
|
|
587
|
-
if (XIsEmpty(this.value)) {
|
|
588
|
-
this.value
|
|
589
|
-
this.displayValue
|
|
590
|
-
this.selectedNodes
|
|
591
|
-
this.displayNodes
|
|
592
|
-
this.displayMore
|
|
593
|
-
this.
|
|
632
|
+
if (this.nodes().length > 0) {
|
|
633
|
+
if (this.multiple()) {
|
|
634
|
+
if (XIsEmpty(this.value())) {
|
|
635
|
+
this.value.set([]);
|
|
636
|
+
this.displayValue.set('');
|
|
637
|
+
this.selectedNodes.set([]);
|
|
638
|
+
this.displayNodes.set([]);
|
|
639
|
+
this.displayMore.set('');
|
|
640
|
+
this.valueTplContextSignal.update((x) => {
|
|
641
|
+
x.$node = null;
|
|
642
|
+
return { ...x };
|
|
643
|
+
});
|
|
594
644
|
this.setDisplayNodes();
|
|
595
645
|
}
|
|
596
646
|
else {
|
|
597
647
|
let ids = [];
|
|
598
648
|
let selected = [];
|
|
599
|
-
if (this.objectArray) {
|
|
600
|
-
ids = this.value.map((x) => x.id);
|
|
649
|
+
if (this.objectArray()) {
|
|
650
|
+
ids = this.value().map((x) => x.id);
|
|
601
651
|
}
|
|
602
652
|
else {
|
|
603
|
-
ids = this.value;
|
|
653
|
+
ids = this.value();
|
|
604
654
|
}
|
|
605
655
|
if (clickNode) {
|
|
606
|
-
let inx = this.selectedNodes.findIndex((x) => x.id === clickNode.id);
|
|
656
|
+
let inx = this.selectedNodes().findIndex((x) => x.id === clickNode.id);
|
|
607
657
|
if (inx >= 0) {
|
|
608
|
-
|
|
658
|
+
this.selectedNodes.update((x) => {
|
|
659
|
+
XRemove(x, (y) => y.id === clickNode.id);
|
|
660
|
+
return [...x];
|
|
661
|
+
});
|
|
609
662
|
}
|
|
610
663
|
else {
|
|
611
|
-
this.selectedNodes.
|
|
664
|
+
this.selectedNodes.update((x) => {
|
|
665
|
+
x.push(clickNode);
|
|
666
|
+
return [...x];
|
|
667
|
+
});
|
|
612
668
|
}
|
|
613
669
|
}
|
|
614
670
|
else {
|
|
615
671
|
for (let id of ids) {
|
|
616
|
-
let node = this.nodes.find((x) => x.id === id);
|
|
672
|
+
let node = this.nodes().find((x) => x.id === id);
|
|
617
673
|
if (node)
|
|
618
674
|
selected.push(node);
|
|
619
675
|
}
|
|
620
|
-
this.selectedNodes
|
|
676
|
+
this.selectedNodes.set(selected);
|
|
621
677
|
}
|
|
622
|
-
if (this.showPath) {
|
|
623
|
-
for (let node of this.selectedNodes) {
|
|
678
|
+
if (this.showPath()) {
|
|
679
|
+
for (let node of this.selectedNodes()) {
|
|
624
680
|
const parents = this.getParentPath(node);
|
|
625
|
-
node.path = parents.map((x) => x.label).join(this.separator);
|
|
681
|
+
node.path = parents.map((x) => x.label).join(this.separator());
|
|
626
682
|
}
|
|
627
683
|
}
|
|
628
684
|
this.setDisplayNodes();
|
|
629
|
-
this.displayValue
|
|
630
|
-
|
|
685
|
+
this.displayValue.set(this.selectedNodes()
|
|
686
|
+
.map((x) => x.label)
|
|
687
|
+
.join(this.separator()));
|
|
688
|
+
this.valueTplContextSignal.update((x) => {
|
|
689
|
+
x.$node = [...this.selectedNodes()];
|
|
690
|
+
return { ...x };
|
|
691
|
+
});
|
|
631
692
|
}
|
|
632
693
|
}
|
|
633
694
|
else {
|
|
634
|
-
let node = this.nodes.find((x) => x.id === this.value);
|
|
695
|
+
let node = this.nodes().find((x) => x.id === this.value());
|
|
635
696
|
if (node) {
|
|
636
|
-
if (this.showPath) {
|
|
697
|
+
if (this.showPath()) {
|
|
637
698
|
const parents = this.getParentPath(node);
|
|
638
|
-
this.displayValue
|
|
699
|
+
this.displayValue.set(parents.map((x) => x.label).join(this.separator()));
|
|
639
700
|
}
|
|
640
701
|
else {
|
|
641
|
-
this.displayValue
|
|
702
|
+
this.displayValue.set(node.label);
|
|
642
703
|
}
|
|
643
|
-
this.
|
|
704
|
+
this.valueTplContextSignal.update((x) => {
|
|
705
|
+
x.$node = node;
|
|
706
|
+
return { ...x };
|
|
707
|
+
});
|
|
644
708
|
}
|
|
645
709
|
else {
|
|
646
|
-
this.displayValue
|
|
647
|
-
this.
|
|
710
|
+
this.displayValue.set('');
|
|
711
|
+
this.valueTplContextSignal.update((x) => {
|
|
712
|
+
x.$node = null;
|
|
713
|
+
return { ...x };
|
|
714
|
+
});
|
|
648
715
|
}
|
|
649
716
|
}
|
|
650
|
-
this.cdr.detectChanges();
|
|
651
717
|
}
|
|
652
718
|
}
|
|
653
719
|
getParentPath(node) {
|
|
654
720
|
let res = [node];
|
|
655
721
|
const getParent = (nd) => {
|
|
656
|
-
let parent = this.nodes.find((x) => nd.pid && x.id === nd.pid);
|
|
722
|
+
let parent = this.nodes().find((x) => nd.pid && x.id === nd.pid);
|
|
657
723
|
if (parent) {
|
|
658
724
|
res = [parent, ...res];
|
|
659
725
|
getParent(parent);
|
|
@@ -664,43 +730,48 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
664
730
|
}
|
|
665
731
|
closeNode(event, node, index) {
|
|
666
732
|
let inx = -1;
|
|
667
|
-
if (this.objectArray) {
|
|
668
|
-
inx = this.value.findIndex((y) => y.id === node.id);
|
|
733
|
+
if (this.objectArray()) {
|
|
734
|
+
inx = this.value().findIndex((y) => y.id === node.id);
|
|
669
735
|
}
|
|
670
736
|
else {
|
|
671
|
-
inx = this.value.findIndex((y) => y === node.id);
|
|
737
|
+
inx = this.value().findIndex((y) => y === node.id);
|
|
672
738
|
}
|
|
673
739
|
if (inx >= 0) {
|
|
674
|
-
this.value.
|
|
675
|
-
|
|
740
|
+
this.value.update((x) => {
|
|
741
|
+
x.splice(inx, 1);
|
|
742
|
+
return [...x];
|
|
743
|
+
});
|
|
676
744
|
if (this.onChange)
|
|
677
|
-
this.onChange(this.value);
|
|
678
|
-
this.selectedNodes.
|
|
745
|
+
this.onChange(this.value());
|
|
746
|
+
this.selectedNodes.update((x) => {
|
|
747
|
+
x.splice(index, 1);
|
|
748
|
+
return [...x];
|
|
749
|
+
});
|
|
679
750
|
this.setDisplayNodes();
|
|
680
751
|
}
|
|
681
752
|
event.stopPropagation();
|
|
682
753
|
}
|
|
683
754
|
setDisplayNodes() {
|
|
684
|
-
if (!this.multiple)
|
|
755
|
+
if (!this.multiple())
|
|
685
756
|
return;
|
|
686
|
-
const maxlen = this.selectedNodes.length;
|
|
757
|
+
const maxlen = this.selectedNodes().length;
|
|
687
758
|
let len = 0;
|
|
688
|
-
if (
|
|
689
|
-
len = maxlen;
|
|
759
|
+
if (this.maxTagCount() >= 0) {
|
|
760
|
+
len = maxlen > this.maxTagCount() ? this.maxTagCount() : maxlen;
|
|
690
761
|
}
|
|
691
762
|
else {
|
|
692
|
-
len = maxlen
|
|
763
|
+
len = maxlen;
|
|
693
764
|
}
|
|
694
765
|
let more = maxlen - len;
|
|
695
766
|
more = more < 0 ? 0 : more;
|
|
696
|
-
this.displayNodes
|
|
697
|
-
this.showDisplayMore
|
|
698
|
-
if (XIsString(this.getMaxTagContent)) {
|
|
699
|
-
this.displayMore
|
|
767
|
+
this.displayNodes.set(this.selectedNodes().slice(0, len));
|
|
768
|
+
this.showDisplayMore.set(more > 0);
|
|
769
|
+
if (XIsString(this.getMaxTagContent())) {
|
|
770
|
+
this.displayMore.set(more > 0 ? this.getMaxTagContent().replace(/\{\{surplus\}\}/g, `${more}`) : '');
|
|
700
771
|
}
|
|
701
772
|
else {
|
|
702
|
-
this.selectedSurplus
|
|
703
|
-
this.selectedTotal
|
|
773
|
+
this.selectedSurplus.set(more);
|
|
774
|
+
this.selectedTotal.set(maxlen);
|
|
704
775
|
}
|
|
705
776
|
setTimeout(() => this.setMutipleInputSize());
|
|
706
777
|
}
|
|
@@ -710,9 +781,8 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
710
781
|
closePortal() {
|
|
711
782
|
if (this.portalAttached()) {
|
|
712
783
|
this.portal?.overlayRef?.detach();
|
|
713
|
-
this.active
|
|
714
|
-
this.multipleSearchValue
|
|
715
|
-
this.cdr.detectChanges();
|
|
784
|
+
this.active.set(false);
|
|
785
|
+
this.multipleSearchValue.set('');
|
|
716
786
|
return true;
|
|
717
787
|
}
|
|
718
788
|
return false;
|
|
@@ -721,44 +791,39 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
721
791
|
this.portal?.overlayRef?.dispose();
|
|
722
792
|
}
|
|
723
793
|
showPortal(click = false) {
|
|
724
|
-
if (this.
|
|
794
|
+
if (this.disabledComputed() || this.iconSpin() || this.animating())
|
|
725
795
|
return;
|
|
726
|
-
this.active
|
|
727
|
-
if ((this.async && XIsObservable(this.data) && this.nodes.length === 0) || XIsFunction(this.data)) {
|
|
728
|
-
this.icon
|
|
729
|
-
this.iconSpin
|
|
730
|
-
this.
|
|
731
|
-
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
734
|
-
|
|
735
|
-
this.showClearable = false;
|
|
796
|
+
this.active.set(true);
|
|
797
|
+
if ((this.async() && XIsObservable(this.data()) && this.nodes().length === 0) || XIsFunction(this.data())) {
|
|
798
|
+
this.icon.set('fto-loader');
|
|
799
|
+
this.iconSpin.set(true);
|
|
800
|
+
XSetData(this.data(), this.unSubject, true, click ? '' : this.displayValue()).subscribe((x) => {
|
|
801
|
+
this.icon.set('fto-chevron-down');
|
|
802
|
+
this.iconSpin.set(false);
|
|
803
|
+
if (!this.enter() && this.clearable()) {
|
|
804
|
+
this.showClearable.set(false);
|
|
736
805
|
}
|
|
737
|
-
this.
|
|
738
|
-
this.
|
|
739
|
-
this.dataChange.next(this.nodes);
|
|
740
|
-
if (!this.search)
|
|
806
|
+
this.nodes.set(x);
|
|
807
|
+
if (!this.search())
|
|
741
808
|
this.setDisplayValue();
|
|
742
809
|
this.createPortal();
|
|
743
|
-
this.cdr.detectChanges();
|
|
744
810
|
});
|
|
745
811
|
}
|
|
746
812
|
else {
|
|
747
|
-
this.dataChange.next(this.nodes);
|
|
748
813
|
this.createPortal();
|
|
749
814
|
}
|
|
750
|
-
if (this.search && this.multiple) {
|
|
751
|
-
this.multipleInput.inputFocus();
|
|
815
|
+
if (this.search() && this.multiple() && this.multipleInput()) {
|
|
816
|
+
this.multipleInput().inputFocus('focus');
|
|
752
817
|
}
|
|
753
818
|
else {
|
|
754
|
-
this.inputCom.inputFocus();
|
|
819
|
+
this.inputCom().inputFocus('focus');
|
|
755
820
|
}
|
|
756
821
|
}
|
|
757
822
|
createPortal() {
|
|
758
|
-
|
|
823
|
+
const box = this.inputCom().inputRef().nativeElement.getBoundingClientRect();
|
|
759
824
|
const config = {
|
|
760
825
|
backdropClass: '',
|
|
761
|
-
width:
|
|
826
|
+
width: box.width,
|
|
762
827
|
positionStrategy: this.setPlacement(),
|
|
763
828
|
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
764
829
|
};
|
|
@@ -770,7 +835,7 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
770
835
|
});
|
|
771
836
|
this.portal.overlayRef
|
|
772
837
|
?.outsidePointerEvents()
|
|
773
|
-
.pipe(takeUntil(this.
|
|
838
|
+
.pipe(takeUntil(this.unSubject))
|
|
774
839
|
.subscribe(() => {
|
|
775
840
|
this.setDisplayValue();
|
|
776
841
|
this.closeSubject.next();
|
|
@@ -779,91 +844,71 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
779
844
|
}
|
|
780
845
|
setPosition(config) {
|
|
781
846
|
let position = config.positionStrategy;
|
|
782
|
-
position.positionChanges.pipe(takeUntil(this.
|
|
847
|
+
position.positionChanges.pipe(takeUntil(this.unSubject)).subscribe((pos) => {
|
|
783
848
|
const place = XPortalConnectedPosition.get(pos.connectionPair);
|
|
784
|
-
place !== this.
|
|
849
|
+
if (place !== this.realPlacement()) {
|
|
850
|
+
this.realPlacement.set(place);
|
|
851
|
+
this.portalOverlayRef()?.updatePosition();
|
|
852
|
+
}
|
|
785
853
|
});
|
|
786
854
|
}
|
|
787
855
|
setInstance() {
|
|
788
|
-
let componentRef = this.portal
|
|
789
|
-
if (!componentRef)
|
|
856
|
+
let { componentRef, overlayRef } = this.portal;
|
|
857
|
+
if (!componentRef || !overlayRef)
|
|
790
858
|
return;
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
nodeTpl: this.nodeTpl,
|
|
798
|
-
valueChange: this.valueChange,
|
|
799
|
-
positionChange: this.positionChange,
|
|
800
|
-
closeSubject: this.closeSubject,
|
|
801
|
-
keydownSubject: this.keydownSubject,
|
|
802
|
-
dataChange: this.dataChange,
|
|
803
|
-
inputCom: this.inputCom,
|
|
804
|
-
portalMaxHeight: this.portalMaxHeight,
|
|
805
|
-
objectArray: this.objectArray,
|
|
806
|
-
selectAllText: this.selectAllText,
|
|
807
|
-
caseSensitive: this.caseSensitive,
|
|
808
|
-
search: this.search,
|
|
809
|
-
virtualScroll: this.virtualScroll,
|
|
810
|
-
size: this.size,
|
|
811
|
-
onlyLeaf: this.onlyLeaf,
|
|
812
|
-
expandedLevel: this.expandedLevel,
|
|
813
|
-
inputChange: this.inputChange,
|
|
814
|
-
destroyPortal: () => this.destroyPortal(),
|
|
815
|
-
nodeEmit: (node, value) => this.nodeClick(node, value),
|
|
816
|
-
animating: (ing) => (this.animating = ing)
|
|
817
|
-
});
|
|
818
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
859
|
+
this.portalComponent.set(componentRef);
|
|
860
|
+
this.portalOverlayRef.set(overlayRef);
|
|
861
|
+
this.realPlacement.set(this.placement());
|
|
862
|
+
const { nodeClick, animating } = componentRef.instance;
|
|
863
|
+
nodeClick.subscribe((x) => this.nodeClick(x.node, x.value));
|
|
864
|
+
animating.subscribe((ing) => this.animating.set(ing));
|
|
819
865
|
}
|
|
820
866
|
nodeClick(node, value) {
|
|
821
|
-
if (this.multiple) {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
if (this.multipleInput) {
|
|
826
|
-
const input = this.multipleInput.elementRef.nativeElement;
|
|
867
|
+
if (this.multiple()) {
|
|
868
|
+
this.value.set(value);
|
|
869
|
+
if (this.multipleInput()) {
|
|
870
|
+
const input = this.multipleInput().elementRef.nativeElement;
|
|
827
871
|
this.renderer.setStyle(input, 'width', '2rem');
|
|
828
872
|
}
|
|
829
|
-
if (this.search && this.multipleSearchValue !== '') {
|
|
830
|
-
this.multipleSearchValue
|
|
873
|
+
if (this.search() && this.multipleSearchValue() !== '') {
|
|
874
|
+
this.multipleSearchValue.set('');
|
|
831
875
|
this.inputChange.next('');
|
|
832
|
-
this.valueChange.next([...this.value]);
|
|
833
876
|
}
|
|
834
877
|
this.setDisplayValue(node);
|
|
835
878
|
}
|
|
836
879
|
else {
|
|
837
880
|
node = node;
|
|
838
|
-
if (this.showPath) {
|
|
881
|
+
if (this.showPath()) {
|
|
839
882
|
const parents = this.getParentPath(node);
|
|
840
|
-
this.displayValue
|
|
883
|
+
this.displayValue.set(parents.map((x) => x.label).join(this.separator()));
|
|
841
884
|
}
|
|
842
885
|
else {
|
|
843
|
-
this.displayValue
|
|
886
|
+
this.displayValue.set(node.label);
|
|
844
887
|
}
|
|
845
|
-
this.
|
|
846
|
-
|
|
888
|
+
this.valueTplContextSignal.update((x) => {
|
|
889
|
+
x.$node = node;
|
|
890
|
+
return { ...x };
|
|
891
|
+
});
|
|
892
|
+
this.value.set(node.id);
|
|
847
893
|
this.closeSubject.next();
|
|
848
894
|
}
|
|
849
|
-
if (this.search && this.multiple) {
|
|
850
|
-
this.multipleInput.inputFocus();
|
|
895
|
+
if (this.search() && this.multiple() && this.multipleInput()) {
|
|
896
|
+
this.multipleInput().inputFocus('focus');
|
|
851
897
|
}
|
|
852
898
|
else {
|
|
853
|
-
this.inputCom.inputFocus();
|
|
899
|
+
this.inputCom().inputFocus('focus');
|
|
854
900
|
}
|
|
855
901
|
if (this.onChange)
|
|
856
|
-
this.onChange(this.value);
|
|
902
|
+
this.onChange(this.value());
|
|
857
903
|
this.formControlValidator();
|
|
858
|
-
this.cdr.detectChanges();
|
|
859
904
|
}
|
|
860
905
|
selectAllNodes(value) {
|
|
861
|
-
this.value
|
|
906
|
+
this.value.set(value);
|
|
862
907
|
}
|
|
863
908
|
setPlacement() {
|
|
864
909
|
return this.portalService.setPlacement({
|
|
865
|
-
elementRef: this.inputCom.inputRef,
|
|
866
|
-
placement: [this.placement, 'bottom', 'top'],
|
|
910
|
+
elementRef: this.inputCom().inputRef(),
|
|
911
|
+
placement: [this.placement(), 'bottom', 'top'],
|
|
867
912
|
transformOriginOn: 'x-tree-select-portal'
|
|
868
913
|
});
|
|
869
914
|
}
|
|
@@ -873,54 +918,41 @@ class XTreeSelectComponent extends XTreeSelectProperty {
|
|
|
873
918
|
formControlChanges() {
|
|
874
919
|
this.setData();
|
|
875
920
|
this.ngOnInit();
|
|
876
|
-
this.writeValue(this.value);
|
|
921
|
+
this.writeValue(this.value());
|
|
877
922
|
this.ngAfterViewInit();
|
|
878
|
-
this.cdr.detectChanges();
|
|
879
923
|
}
|
|
880
924
|
onKeydown($event) {
|
|
881
925
|
this.keydownSubject.next($event);
|
|
882
|
-
if ($event.keyCode !== TAB && !this.search) {
|
|
926
|
+
if ($event.keyCode !== TAB && !this.search()) {
|
|
883
927
|
$event.preventDefault();
|
|
884
928
|
}
|
|
885
929
|
}
|
|
886
930
|
onFocus(_event) {
|
|
887
|
-
if (this.search && this.multiple) {
|
|
888
|
-
this.multipleInput.inputFocus();
|
|
931
|
+
if (this.search() && this.multiple() && this.multipleInput()) {
|
|
932
|
+
this.multipleInput().inputFocus();
|
|
889
933
|
}
|
|
890
934
|
else {
|
|
891
|
-
this.inputCom.inputFocus();
|
|
935
|
+
this.inputCom().inputFocus('focus');
|
|
892
936
|
}
|
|
893
937
|
}
|
|
894
938
|
onInput(_event) {
|
|
895
939
|
this.formControlValidator();
|
|
896
|
-
setTimeout(() => this.inputChange.next(this.multiple ? this.multipleSearchValue : this.displayValue));
|
|
940
|
+
setTimeout(() => this.inputChange.next(this.multiple() ? this.multipleSearchValue() : this.displayValue()));
|
|
897
941
|
}
|
|
898
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
899
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.0", type: XTreeSelectComponent, isStandalone: true, selector: "x-tree-select", providers: [XValueAccessor(XTreeSelectComponent)], viewQueries: [{ propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, static: true }, { propertyName: "treeSelect", first: true, predicate: ["treeSelect"], descendants: true, static: true }, { propertyName: "multipleValueTpl", first: true, predicate: ["multipleValueTpl"], descendants: true, static: true }, { propertyName: "multipleInput", first: true, predicate: ["multipleInput"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #treeSelect class=\"x-tree-select\" [class.x-tree-select-multiple]=\"multiple\">\r\n <div class=\"x-tree-select-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 [required]=\"required\"\r\n [disabled]=\"disabled\"\r\n [validator]=\"validator\"\r\n [icon]=\"icon\"\r\n [iconSpin]=\"iconSpin\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"getReadonly\"\r\n [clearable]=\"showClearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"true\"\r\n [inputPadding]=\"inputPadding\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xInput)=\"onInput($event)\"\r\n (xFocus)=\"onFocus($event)\"\r\n (xClick)=\"showPortal(true)\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n (xComposition)=\"composition = $event\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #multipleValueTpl>\r\n @for (node of displayNodes; track node.id; let i = $index) {\r\n <x-tag [@.disabled]=\"true\" [closable]=\"!disabled\" (close)=\"closeNode($event, node, i)\" [size]=\"size\">{{\r\n showPath ? node.path : node.label\r\n }}</x-tag>\r\n }\r\n @if (showDisplayMore) {\r\n <x-tag [@.disabled]=\"true\" [size]=\"size\">\r\n <ng-container *xOutlet=\"getMaxTagContent; context: { $surplus: selectedSurplus, $total: selectedTotal }\">{{\r\n displayMore\r\n }}</ng-container>\r\n </x-tag>\r\n }\r\n @if (search) {\r\n <x-input\r\n #multipleInput\r\n bordered=\"false\"\r\n [size]=\"size\"\r\n inputPadding=\"0.275\"\r\n [(ngModel)]=\"multipleSearchValue\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n ></x-input>\r\n }\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-tree-select{display:inline-block;width:12rem}.x-tree-select{margin:0;padding:0;width:100%}.x-tree-select x-input{width:100%}.x-tree-select-multiple .x-input-value-template-value{display:flex;align-items:center;margin-bottom:.125rem;flex-wrap:wrap;width:initial;height:initial!important}.x-tree-select-multiple .x-input-value-template-value>x-tag{display:inline-flex;margin-left:.0625rem;margin-top:.125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big>.x-icon{right:calc(-var(--x-padding-large)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large>.x-icon{right:calc(-var(--x-padding-medium)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium>.x-icon{right:calc(-var(--x-padding-small)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small>.x-icon{right:calc(-var(--x-padding-mini)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini>.x-icon{right:-.0625rem}.x-tree-select-multiple .x-input-value-template-value>x-input{margin-top:.125rem;width:5rem;min-width:3rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-value-template-value{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-max-length{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>label{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-row>.x-input-input>input{background-color:transparent}.x-tree-select-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);width:100%;border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);position:relative;display:flex;flex-direction:column;background-color:var(--x-background);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}\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: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XInputComponent, selector: "x-input" }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
942
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
943
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XTreeSelectComponent, isStandalone: true, selector: "x-tree-select", providers: [XValueAccessor(XTreeSelectComponent)], viewQueries: [{ propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, isSignal: true }, { propertyName: "treeSelect", first: true, predicate: ["treeSelect"], descendants: true, isSignal: true }, { propertyName: "multipleValueTpl", first: true, predicate: ["multipleValueTpl"], descendants: true, isSignal: true }, { propertyName: "multipleInput", first: true, predicate: ["multipleInput"], descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #treeSelect class=\"x-tree-select\" [class.x-tree-select-multiple]=\"multiple()\">\r\n <div class=\"x-tree-select-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 [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"getReadonly()\"\r\n [clearable]=\"showClearable()\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTplSignal() ? valueTplSignal() : nodeTpl()\"\r\n [valueTplContext]=\"valueTplContextSignal()\"\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 (xKeydown)=\"onKeydown($event)\"\r\n (xInput)=\"onInput($event)\"\r\n (xFocus)=\"onFocus($event)\"\r\n (xClick)=\"showPortal(true)\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n (xComposition)=\"composition.set($event)\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #multipleValueTpl>\r\n @for (node of displayNodes(); track node.id; let i = $index) {\r\n <x-tag\r\n [@.disabled]=\"true\"\r\n [bordered]=\"false\"\r\n [closable]=\"!disabled()\"\r\n [type]=\"'info'\"\r\n (close)=\"closeNode($event, node, i)\"\r\n [size]=\"size()\"\r\n >{{ showPath() ? node.path : node.label }}</x-tag\r\n >\r\n }\r\n @if (showDisplayMore()) {\r\n <x-tag [@.disabled]=\"true\" [bordered]=\"false\" [type]=\"'info'\" [size]=\"size()\">\r\n <ng-container *xOutlet=\"getMaxTagContent(); context: { $surplus: selectedSurplus(), $total: selectedTotal() }\">{{\r\n displayMore()\r\n }}</ng-container>\r\n </x-tag>\r\n }\r\n @if (search()) {\r\n <x-input\r\n #multipleInput\r\n [bordered]=\"false\"\r\n [size]=\"size()\"\r\n [(ngModel)]=\"multipleSearchValue\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n ></x-input>\r\n }\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-tree-select{display:inline-block;width:12rem}.x-tree-select{margin:0;padding:0;width:100%}.x-tree-select x-input{width:100%;color:#252022}.x-tree-select-multiple .x-input-value-template-value{display:flex;align-items:center;margin-bottom:.125rem;flex-wrap:wrap;width:initial;height:initial!important;left:.125rem!important}.x-tree-select-multiple .x-input-value-template-value>x-tag{display:inline-flex;margin-left:.0625rem;margin-top:.125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big>.x-icon{right:calc(-var(--x-padding-large)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large>.x-icon{right:calc(-var(--x-padding-medium)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium>.x-icon{right:calc(-var(--x-padding-small)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small>.x-icon{right:calc(-var(--x-padding-mini)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini>.x-icon{right:-.0625rem}.x-tree-select-multiple .x-input-value-template-value>x-input{margin-top:.125rem;width:5rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-value-template-value{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-max-length{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>label{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-row>.x-input-input>input{background-color:transparent}.x-tree-select-portal{padding:.25rem;color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;flex-direction:column;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}.x-tree-select-portal-virtual-scroll{padding:0;overflow:hidden}.x-tree-select-portal-virtual-scroll .x-tree-content{padding:.25rem}\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: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XInputComponent, selector: "x-input" }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
900
944
|
}
|
|
901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectComponent, decorators: [{
|
|
902
946
|
type: Component,
|
|
903
|
-
args: [{ selector: `${XTreeSelectPrefix}`, standalone: true, imports: [FormsModule, ReactiveFormsModule, XInputComponent, XTagComponent, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XTreeSelectComponent)], template: "<div #treeSelect class=\"x-tree-select\" [class.x-tree-select-multiple]=\"multiple\">\r\n <div class=\"x-tree-select-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 [required]=\"required\"\r\n [disabled]=\"disabled\"\r\n [validator]=\"validator\"\r\n [icon]=\"icon\"\r\n [iconSpin]=\"iconSpin\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"getReadonly\"\r\n [clearable]=\"showClearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"true\"\r\n [inputPadding]=\"inputPadding\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xInput)=\"onInput($event)\"\r\n (xFocus)=\"onFocus($event)\"\r\n (xClick)=\"showPortal(true)\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n (xComposition)=\"composition = $event\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #multipleValueTpl>\r\n @for (node of displayNodes; track node.id; let i = $index) {\r\n <x-tag [@.disabled]=\"true\" [closable]=\"!disabled\" (close)=\"closeNode($event, node, i)\" [size]=\"size\">{{\r\n showPath ? node.path : node.label\r\n }}</x-tag>\r\n }\r\n @if (showDisplayMore) {\r\n <x-tag [@.disabled]=\"true\" [size]=\"size\">\r\n <ng-container *xOutlet=\"getMaxTagContent; context: { $surplus: selectedSurplus, $total: selectedTotal }\">{{\r\n displayMore\r\n }}</ng-container>\r\n </x-tag>\r\n }\r\n @if (search) {\r\n <x-input\r\n #multipleInput\r\n bordered=\"false\"\r\n [size]=\"size\"\r\n inputPadding=\"0.275\"\r\n [(ngModel)]=\"multipleSearchValue\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n ></x-input>\r\n }\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-tree-select{display:inline-block;width:12rem}.x-tree-select{margin:0;padding:0;width:100%}.x-tree-select x-input{width:100%}.x-tree-select-multiple .x-input-value-template-value{display:flex;align-items:center;margin-bottom:.125rem;flex-wrap:wrap;width:initial;height:initial!important}.x-tree-select-multiple .x-input-value-template-value>x-tag{display:inline-flex;margin-left:.0625rem;margin-top:.125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big>.x-icon{right:calc(-var(--x-padding-large)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large>.x-icon{right:calc(-var(--x-padding-medium)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium>.x-icon{right:calc(-var(--x-padding-small)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small>.x-icon{right:calc(-var(--x-padding-mini)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini>.x-icon{right:-.0625rem}.x-tree-select-multiple .x-input-value-template-value>x-input{margin-top:.125rem;width:5rem;min-width:3rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-value-template-value{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-max-length{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>label{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-row>.x-input-input>input{background-color:transparent}.x-tree-select-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);width:100%;border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);position:relative;display:flex;flex-direction:column;background-color:var(--x-background);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}\n"] }]
|
|
904
|
-
}],
|
|
905
|
-
type: ViewChild,
|
|
906
|
-
args: ['inputCom', { static: true }]
|
|
907
|
-
}], treeSelect: [{
|
|
908
|
-
type: ViewChild,
|
|
909
|
-
args: ['treeSelect', { static: true }]
|
|
910
|
-
}], multipleValueTpl: [{
|
|
911
|
-
type: ViewChild,
|
|
912
|
-
args: ['multipleValueTpl', { static: true }]
|
|
913
|
-
}], multipleInput: [{
|
|
914
|
-
type: ViewChild,
|
|
915
|
-
args: ['multipleInput']
|
|
916
|
-
}] } });
|
|
947
|
+
args: [{ selector: `${XTreeSelectPrefix}`, standalone: true, imports: [FormsModule, ReactiveFormsModule, XInputComponent, XTagComponent, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XTreeSelectComponent)], template: "<div #treeSelect class=\"x-tree-select\" [class.x-tree-select-multiple]=\"multiple()\">\r\n <div class=\"x-tree-select-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 [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"getReadonly()\"\r\n [clearable]=\"showClearable()\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTplSignal() ? valueTplSignal() : nodeTpl()\"\r\n [valueTplContext]=\"valueTplContextSignal()\"\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 (xKeydown)=\"onKeydown($event)\"\r\n (xInput)=\"onInput($event)\"\r\n (xFocus)=\"onFocus($event)\"\r\n (xClick)=\"showPortal(true)\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n (xComposition)=\"composition.set($event)\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #multipleValueTpl>\r\n @for (node of displayNodes(); track node.id; let i = $index) {\r\n <x-tag\r\n [@.disabled]=\"true\"\r\n [bordered]=\"false\"\r\n [closable]=\"!disabled()\"\r\n [type]=\"'info'\"\r\n (close)=\"closeNode($event, node, i)\"\r\n [size]=\"size()\"\r\n >{{ showPath() ? node.path : node.label }}</x-tag\r\n >\r\n }\r\n @if (showDisplayMore()) {\r\n <x-tag [@.disabled]=\"true\" [bordered]=\"false\" [type]=\"'info'\" [size]=\"size()\">\r\n <ng-container *xOutlet=\"getMaxTagContent(); context: { $surplus: selectedSurplus(), $total: selectedTotal() }\">{{\r\n displayMore()\r\n }}</ng-container>\r\n </x-tag>\r\n }\r\n @if (search()) {\r\n <x-input\r\n #multipleInput\r\n [bordered]=\"false\"\r\n [size]=\"size()\"\r\n [(ngModel)]=\"multipleSearchValue\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n ></x-input>\r\n }\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-tree-select{display:inline-block;width:12rem}.x-tree-select{margin:0;padding:0;width:100%}.x-tree-select x-input{width:100%;color:#252022}.x-tree-select-multiple .x-input-value-template-value{display:flex;align-items:center;margin-bottom:.125rem;flex-wrap:wrap;width:initial;height:initial!important;left:.125rem!important}.x-tree-select-multiple .x-input-value-template-value>x-tag{display:inline-flex;margin-left:.0625rem;margin-top:.125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-big>.x-icon{right:calc(-var(--x-padding-large)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-large>.x-icon{right:calc(-var(--x-padding-medium)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-medium>.x-icon{right:calc(-var(--x-padding-small)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-small>.x-icon{right:calc(-var(--x-padding-mini)/2)}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-tag .x-tag-mini>.x-icon{right:-.0625rem}.x-tree-select-multiple .x-input-value-template-value>x-input{margin-top:.125rem;width:5rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-large);line-height:var(--x-height-large);padding:0 var(--x-padding-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-big>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-medium);line-height:var(--x-height-medium);padding:0 var(--x-padding-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-large>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-small);line-height:var(--x-height-small);padding:0 var(--x-padding-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-medium>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-value-template-value{height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-input>.x-input-max-length{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:var(--x-height-mini);line-height:var(--x-height-mini);padding:0 var(--x-padding-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-small>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>input,.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-row-after:not(.x-input-row-after-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-value-template-value{height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-input>.x-input-max-length{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-before:not(.x-input-row-before-template),.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>.x-input-row>.x-input-row-after:not(.x-input-row-after-template){height:1.125rem;line-height:1.125rem;padding:0 .125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-mini>label{height:1.125rem;line-height:1.125rem}.x-tree-select-multiple .x-input-value-template-value>x-input .x-input-row>.x-input-input>input{background-color:transparent}.x-tree-select-portal{padding:.25rem;color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;flex-direction:column;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-tree-select-portal x-tree{width:100%}.x-tree-select-portal x-empty{margin:1rem;display:block}.x-tree-select-portal-virtual-scroll{padding:0;overflow:hidden}.x-tree-select-portal-virtual-scroll .x-tree-content{padding:.25rem}\n"] }]
|
|
948
|
+
}], ctorParameters: () => [] });
|
|
917
949
|
|
|
918
950
|
class XTreeSelectModule {
|
|
919
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
920
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
921
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
951
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
952
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectModule, imports: [XTreeSelectComponent], exports: [XTreeSelectComponent] }); }
|
|
953
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectModule, imports: [XTreeSelectComponent] }); }
|
|
922
954
|
}
|
|
923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XTreeSelectModule, decorators: [{
|
|
924
956
|
type: NgModule,
|
|
925
957
|
args: [{
|
|
926
958
|
declarations: [],
|