@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,23 +1,23 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { moveItemInArray, CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
|
|
3
|
+
import { input, output, Component, model, inject, ElementRef, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, InjectionToken, Directive, signal, viewChild, afterRender, AfterRenderPhase, ViewChildren, HostListener, NgModule } from '@angular/core';
|
|
4
|
+
import { XToNumber, XToBoolean, XIsUndefined, XIsEmpty, XIsChange, XResize, XSetData, XIsNull } from '@ng-nest/ui/core';
|
|
5
|
+
import { XFormControlFunction, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
6
|
+
import { CdkDropList, moveItemInArray, CdkDrag } from '@angular/cdk/drag-drop';
|
|
8
7
|
import { XIconComponent } from '@ng-nest/ui/icon';
|
|
9
8
|
import { XKeywordDirective } from '@ng-nest/ui/keyword';
|
|
10
9
|
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
11
10
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
12
11
|
import { ENTER } from '@angular/cdk/keycodes';
|
|
13
|
-
import { map,
|
|
14
|
-
import { XI18nService } from '@ng-nest/ui/i18n';
|
|
12
|
+
import { map, debounceTime, takeUntil } from 'rxjs/operators';
|
|
13
|
+
import { XI18nService, zh_CN } from '@ng-nest/ui/i18n';
|
|
15
14
|
import * as i1 from '@angular/cdk/scrolling';
|
|
16
15
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
17
|
-
import {
|
|
16
|
+
import { coerceArray } from '@angular/cdk/coercion';
|
|
18
17
|
import { XOutletDirective } from '@ng-nest/ui/outlet';
|
|
19
18
|
import { XEmptyComponent } from '@ng-nest/ui/empty';
|
|
20
19
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
20
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* List
|
|
@@ -25,179 +25,174 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
25
25
|
* @decorator component
|
|
26
26
|
*/
|
|
27
27
|
const XListPrefix = 'x-list';
|
|
28
|
-
const
|
|
28
|
+
const X_LIST_CONFIG_NAME = 'list';
|
|
29
29
|
/**
|
|
30
30
|
* List Property
|
|
31
31
|
*/
|
|
32
|
-
class XListProperty extends
|
|
32
|
+
class XListProperty extends XFormControlFunction(X_LIST_CONFIG_NAME) {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
/**
|
|
36
36
|
* @zh_CN 列表数据
|
|
37
37
|
* @en_US List data
|
|
38
38
|
*/
|
|
39
|
-
this.data = [];
|
|
39
|
+
this.data = input([]);
|
|
40
40
|
/**
|
|
41
41
|
* @zh_CN 多选个数,设置为0,不限制选择个数
|
|
42
42
|
* @en_US Multiple choice
|
|
43
43
|
*/
|
|
44
|
-
this.multiple = 1;
|
|
44
|
+
this.multiple = input(1, { transform: XToNumber });
|
|
45
|
+
/**
|
|
46
|
+
* @zh_CN 多选添加全选功能,适用于 multiple=0
|
|
47
|
+
* @en_US Multi choice to add full selection function
|
|
48
|
+
*/
|
|
49
|
+
this.selectAll = input(false, { transform: XToBoolean });
|
|
50
|
+
/**
|
|
51
|
+
* @zh_CN 全选的文字
|
|
52
|
+
* @en_US Selected all text
|
|
53
|
+
* @default '全选'
|
|
54
|
+
*/
|
|
55
|
+
this.selectAllText = input(this.config?.selectAllText ?? '');
|
|
56
|
+
/**
|
|
57
|
+
* @zh_CN 选中
|
|
58
|
+
* @en_US Selected
|
|
59
|
+
*/
|
|
60
|
+
this.checked = input(false, { transform: XToBoolean });
|
|
61
|
+
/**
|
|
62
|
+
* @zh_CN 拖动
|
|
63
|
+
* @en_US Drag
|
|
64
|
+
*/
|
|
65
|
+
this.drag = input(false, { transform: XToBoolean });
|
|
66
|
+
/**
|
|
67
|
+
* @zh_CN 当开启多选的时候,ngModel 的值为对象数组
|
|
68
|
+
* @en_US When multiple selection is enabled, the value of ngmodel is an array of objects
|
|
69
|
+
*/
|
|
70
|
+
this.objectArray = input(false, { transform: XToBoolean });
|
|
71
|
+
/**
|
|
72
|
+
* @zh_CN 节点模板
|
|
73
|
+
* @en_US Node template
|
|
74
|
+
*/
|
|
75
|
+
this.nodeTpl = input();
|
|
76
|
+
/**
|
|
77
|
+
* @zh_CN 列表头部
|
|
78
|
+
* @en_US List header
|
|
79
|
+
*/
|
|
80
|
+
this.header = input();
|
|
81
|
+
/**
|
|
82
|
+
* @zh_CN 列表底部
|
|
83
|
+
* @en_US List footer
|
|
84
|
+
*/
|
|
85
|
+
this.footer = input();
|
|
86
|
+
/**
|
|
87
|
+
* @zh_CN 滚动区域元素
|
|
88
|
+
* @en_US Rolling area element
|
|
89
|
+
*/
|
|
90
|
+
this.scrollElement = input();
|
|
91
|
+
/**
|
|
92
|
+
* @zh_CN 加载更多
|
|
93
|
+
* @en_US load more
|
|
94
|
+
*/
|
|
95
|
+
this.loadMore = input(false, { transform: XToBoolean });
|
|
96
|
+
/**
|
|
97
|
+
* @zh_CN 加载更多的文字
|
|
98
|
+
* @en_US Load more text
|
|
99
|
+
* @default '加载更多'
|
|
100
|
+
*/
|
|
101
|
+
this.loadMoreText = input(this.config?.loadMoreText ?? '');
|
|
102
|
+
/**
|
|
103
|
+
* @zh_CN 正在加载中的文字
|
|
104
|
+
* @en_US Loading
|
|
105
|
+
* @default '正在加载中'
|
|
106
|
+
*/
|
|
107
|
+
this.loadingMoreText = input(this.config?.loadingMoreText ?? '');
|
|
108
|
+
/**
|
|
109
|
+
* @zh_CN 开启虚拟滚动,不支持节点拖动功能
|
|
110
|
+
* @en_US Turn on virtual scrolling
|
|
111
|
+
*/
|
|
112
|
+
this.virtualScroll = input(this.config?.virtualScroll ?? false, { transform: XToBoolean });
|
|
113
|
+
/**
|
|
114
|
+
* @zh_CN 虚拟滚动高度, 实际会去掉头尾、全选、更多的高度
|
|
115
|
+
* @en_US The virtual rolling height will actually remove the head and end, the full selection, more height
|
|
116
|
+
*/
|
|
117
|
+
this.scrollHeight = input(this.config?.scrollHeight ?? 400, { transform: XToNumber });
|
|
118
|
+
/**
|
|
119
|
+
* @zh_CN 虚拟滚动高度自适应指定元素
|
|
120
|
+
* @en_US virtual rolling height follows the specified object
|
|
121
|
+
*/
|
|
122
|
+
this.heightAdaption = input();
|
|
45
123
|
/**
|
|
46
124
|
* @zh_CN 超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
47
125
|
* @en_US Exceed the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
48
126
|
*/
|
|
49
|
-
this.minBufferPx = 100;
|
|
127
|
+
this.minBufferPx = input(100, { transform: XToNumber });
|
|
50
128
|
/**
|
|
51
129
|
* @zh_CN 渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
52
130
|
* @en_US Render the pixels of the new data buffer, corresponding to the parameters in cdk scroll
|
|
53
131
|
*/
|
|
54
|
-
this.maxBufferPx = 200;
|
|
132
|
+
this.maxBufferPx = input(200, { transform: XToNumber });
|
|
133
|
+
/**
|
|
134
|
+
* @zh_CN 关键字高亮
|
|
135
|
+
* @en_US Keyword highlighting
|
|
136
|
+
*/
|
|
137
|
+
this.keywordText = input();
|
|
138
|
+
/**
|
|
139
|
+
* @zh_CN 匹配关键字区分大小写
|
|
140
|
+
* @en_US Case-sensitive
|
|
141
|
+
*/
|
|
142
|
+
this.caseSensitive = input(this.config?.caseSensitive ?? true, { transform: XToBoolean });
|
|
143
|
+
/**
|
|
144
|
+
* @zh_CN 在弹框中选择时的样式,根据尺寸来决定
|
|
145
|
+
* @en_US The style selected in the pop-up box is determined by size
|
|
146
|
+
*/
|
|
147
|
+
this.inPortal = input(false, { transform: XToBoolean });
|
|
55
148
|
/**
|
|
56
149
|
* @zh_CN Full event
|
|
57
150
|
* @en_US 全选事件
|
|
58
151
|
*/
|
|
59
|
-
this.onSelectAll =
|
|
152
|
+
this.onSelectAll = output();
|
|
60
153
|
/**
|
|
61
154
|
* @zh_CN 节点 mouseenter 事件
|
|
62
155
|
* @en_US Node mouseenter event
|
|
63
156
|
*/
|
|
64
|
-
this.nodeMouseenter =
|
|
157
|
+
this.nodeMouseenter = output();
|
|
65
158
|
/**
|
|
66
159
|
* @zh_CN 节点 mouseleave 事件
|
|
67
160
|
* @en_US Node mouseleave event
|
|
68
161
|
*/
|
|
69
|
-
this.nodeMouseleave =
|
|
162
|
+
this.nodeMouseleave = output();
|
|
70
163
|
/**
|
|
71
164
|
* @zh_CN 节点点击事件
|
|
72
165
|
* @en_US Node click event
|
|
73
166
|
*/
|
|
74
|
-
this.nodeClick =
|
|
167
|
+
this.nodeClick = output();
|
|
75
168
|
/**
|
|
76
169
|
* @zh_CN 拖动结束事件
|
|
77
170
|
* @en_US Drag the end
|
|
78
171
|
*/
|
|
79
|
-
this.dropListDropped =
|
|
172
|
+
this.dropListDropped = output();
|
|
80
173
|
/**
|
|
81
174
|
* @zh_CN Tab out 事件
|
|
82
175
|
* @en_US Tab Out event
|
|
83
176
|
*/
|
|
84
|
-
this.keyManagerTabOut =
|
|
177
|
+
this.keyManagerTabOut = output();
|
|
85
178
|
/**
|
|
86
179
|
* @zh_CN Tab out 事件
|
|
87
180
|
* @en_US Tab Out event
|
|
88
181
|
*/
|
|
89
|
-
this.keyManagerChange =
|
|
182
|
+
this.keyManagerChange = output();
|
|
183
|
+
/**
|
|
184
|
+
* @zh_CN 尺寸
|
|
185
|
+
* @en_US Size
|
|
186
|
+
*/
|
|
187
|
+
this.size = input(this.config?.size ?? 'medium');
|
|
90
188
|
}
|
|
91
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
92
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
189
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
190
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.1", type: XListProperty, selector: "x-list-property", inputs: { data: { classPropertyName: "data", publicName: "data", 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 }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, drag: { classPropertyName: "drag", publicName: "drag", isSignal: true, isRequired: false, transformFunction: null }, objectArray: { classPropertyName: "objectArray", publicName: "objectArray", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, scrollElement: { classPropertyName: "scrollElement", publicName: "scrollElement", isSignal: true, isRequired: false, transformFunction: null }, loadMore: { classPropertyName: "loadMore", publicName: "loadMore", isSignal: true, isRequired: false, transformFunction: null }, loadMoreText: { classPropertyName: "loadMoreText", publicName: "loadMoreText", isSignal: true, isRequired: false, transformFunction: null }, loadingMoreText: { classPropertyName: "loadingMoreText", publicName: "loadingMoreText", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, heightAdaption: { classPropertyName: "heightAdaption", publicName: "heightAdaption", isSignal: true, isRequired: false, transformFunction: null }, minBufferPx: { classPropertyName: "minBufferPx", publicName: "minBufferPx", isSignal: true, isRequired: false, transformFunction: null }, maxBufferPx: { classPropertyName: "maxBufferPx", publicName: "maxBufferPx", isSignal: true, isRequired: false, transformFunction: null }, keywordText: { classPropertyName: "keywordText", publicName: "keywordText", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, inPortal: { classPropertyName: "inPortal", publicName: "inPortal", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectAll: "onSelectAll", nodeMouseenter: "nodeMouseenter", nodeMouseleave: "nodeMouseleave", nodeClick: "nodeClick", dropListDropped: "dropListDropped", keyManagerTabOut: "keyManagerTabOut", keyManagerChange: "keyManagerChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
93
191
|
}
|
|
94
|
-
|
|
95
|
-
XDataConvert()
|
|
96
|
-
], XListProperty.prototype, "data", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
XInputNumber()
|
|
99
|
-
], XListProperty.prototype, "multiple", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
XInputBoolean()
|
|
102
|
-
], XListProperty.prototype, "selectAll", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
XWithConfig(X_CONFIG_NAME)
|
|
105
|
-
], XListProperty.prototype, "selectAllText", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
XInputBoolean()
|
|
108
|
-
], XListProperty.prototype, "checked", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
XInputBoolean()
|
|
111
|
-
], XListProperty.prototype, "drag", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
XInputBoolean()
|
|
114
|
-
], XListProperty.prototype, "objectArray", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
XWithConfig(X_CONFIG_NAME, 'medium')
|
|
117
|
-
], XListProperty.prototype, "size", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
XInputBoolean()
|
|
120
|
-
], XListProperty.prototype, "loadMore", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
XWithConfig(X_CONFIG_NAME)
|
|
123
|
-
], XListProperty.prototype, "loadMoreText", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
XWithConfig(X_CONFIG_NAME)
|
|
126
|
-
], XListProperty.prototype, "loadingMoreText", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
XWithConfig(X_CONFIG_NAME),
|
|
129
|
-
XInputBoolean()
|
|
130
|
-
], XListProperty.prototype, "virtualScroll", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
XWithConfig(X_CONFIG_NAME, 400),
|
|
133
|
-
XInputNumber()
|
|
134
|
-
], XListProperty.prototype, "scrollHeight", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
XInputBoolean(),
|
|
137
|
-
XWithConfig(X_CONFIG_NAME, true)
|
|
138
|
-
], XListProperty.prototype, "caseSensitive", void 0);
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: XListProperty, decorators: [{
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListProperty, decorators: [{
|
|
140
193
|
type: Component,
|
|
141
194
|
args: [{ selector: `${XListPrefix}-property`, template: '' }]
|
|
142
|
-
}]
|
|
143
|
-
type: Input
|
|
144
|
-
}], multiple: [{
|
|
145
|
-
type: Input
|
|
146
|
-
}], selectAll: [{
|
|
147
|
-
type: Input
|
|
148
|
-
}], selectAllText: [{
|
|
149
|
-
type: Input
|
|
150
|
-
}], checked: [{
|
|
151
|
-
type: Input
|
|
152
|
-
}], drag: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], objectArray: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], nodeTpl: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], header: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], footer: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], scrollElement: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], size: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], loadMore: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], loadMoreText: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], loadingMoreText: [{
|
|
171
|
-
type: Input
|
|
172
|
-
}], virtualScroll: [{
|
|
173
|
-
type: Input
|
|
174
|
-
}], scrollHeight: [{
|
|
175
|
-
type: Input
|
|
176
|
-
}], heightAdaption: [{
|
|
177
|
-
type: Input
|
|
178
|
-
}], minBufferPx: [{
|
|
179
|
-
type: Input
|
|
180
|
-
}], maxBufferPx: [{
|
|
181
|
-
type: Input
|
|
182
|
-
}], keywordText: [{
|
|
183
|
-
type: Input
|
|
184
|
-
}], caseSensitive: [{
|
|
185
|
-
type: Input
|
|
186
|
-
}], onSelectAll: [{
|
|
187
|
-
type: Output
|
|
188
|
-
}], nodeMouseenter: [{
|
|
189
|
-
type: Output
|
|
190
|
-
}], nodeMouseleave: [{
|
|
191
|
-
type: Output
|
|
192
|
-
}], nodeClick: [{
|
|
193
|
-
type: Output
|
|
194
|
-
}], dropListDropped: [{
|
|
195
|
-
type: Output
|
|
196
|
-
}], keyManagerTabOut: [{
|
|
197
|
-
type: Output
|
|
198
|
-
}], keyManagerChange: [{
|
|
199
|
-
type: Output
|
|
200
|
-
}] } });
|
|
195
|
+
}] });
|
|
201
196
|
/**
|
|
202
197
|
* List Option
|
|
203
198
|
* @selector x-list-option
|
|
@@ -210,119 +205,116 @@ const XListOptionPrefix = 'x-list-option';
|
|
|
210
205
|
class XListOptionProperty {
|
|
211
206
|
constructor() {
|
|
212
207
|
/**
|
|
213
|
-
* @zh_CN
|
|
208
|
+
* @zh_CN 节点参数
|
|
209
|
+
* @en_US Node param
|
|
210
|
+
*/
|
|
211
|
+
this.node = input();
|
|
212
|
+
/**
|
|
213
|
+
* @zh_CN 选中
|
|
214
|
+
* @en_US Selected
|
|
215
|
+
*/
|
|
216
|
+
this.checked = input(false, { transform: XToBoolean });
|
|
217
|
+
/**
|
|
218
|
+
* @zh_CN 节点模板
|
|
219
|
+
* @en_US Node template
|
|
220
|
+
*/
|
|
221
|
+
this.nodeTpl = input();
|
|
222
|
+
/**
|
|
223
|
+
* @zh_CN 选中
|
|
224
|
+
* @en_US selected
|
|
225
|
+
*/
|
|
226
|
+
this.selected = input(false, { transform: XToBoolean });
|
|
227
|
+
/**
|
|
228
|
+
* @zh_CN 禁用
|
|
229
|
+
* @en_US forbidden
|
|
230
|
+
*/
|
|
231
|
+
this.forbidden = input(false, { transform: XToBoolean });
|
|
232
|
+
/**
|
|
233
|
+
* @zh_CN 激活
|
|
234
|
+
* @en_US active
|
|
235
|
+
*/
|
|
236
|
+
this.active = model(false);
|
|
237
|
+
/**
|
|
238
|
+
* @zh_CN 打开弹框
|
|
239
|
+
* @en_US open portal
|
|
240
|
+
*/
|
|
241
|
+
this.openPortal = input(false, { transform: XToBoolean });
|
|
242
|
+
/**
|
|
243
|
+
* @zh_CN 自定义数据对象样式
|
|
244
|
+
* @en_US Customize data object styles
|
|
245
|
+
*/
|
|
246
|
+
this.optionClass = input();
|
|
247
|
+
/**
|
|
248
|
+
* @zh_CN 图标
|
|
249
|
+
* @en_US icon
|
|
250
|
+
*/
|
|
251
|
+
this.icon = input();
|
|
252
|
+
/**
|
|
253
|
+
* @zh_CN 分割线
|
|
254
|
+
* @en_US Split line
|
|
255
|
+
*/
|
|
256
|
+
this.divided = input(false, { transform: XToBoolean });
|
|
257
|
+
/**
|
|
258
|
+
* @zh_CN 标签
|
|
259
|
+
* @en_US label
|
|
260
|
+
*/
|
|
261
|
+
this.label = input();
|
|
262
|
+
/**
|
|
263
|
+
* @zh_CN 叶子节点
|
|
214
264
|
* @en_US leaf
|
|
215
265
|
*/
|
|
216
|
-
this.
|
|
266
|
+
this.leaf = input(false, { transform: XToBoolean });
|
|
267
|
+
/**
|
|
268
|
+
* @zh_CN 尺寸
|
|
269
|
+
* @en_US Size
|
|
270
|
+
*/
|
|
271
|
+
this.size = input('medium');
|
|
272
|
+
/**
|
|
273
|
+
* @zh_CN 关键字高亮
|
|
274
|
+
* @en_US Keyword highlighting
|
|
275
|
+
*/
|
|
276
|
+
this.keywordText = input();
|
|
277
|
+
/**
|
|
278
|
+
* @zh_CN 匹配关键字区分大小写
|
|
279
|
+
* @en_US Case-sensitive
|
|
280
|
+
*/
|
|
281
|
+
this.caseSensitive = input(true, { transform: XToBoolean });
|
|
217
282
|
}
|
|
218
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
219
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
283
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListOptionProperty, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
284
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.1", type: XListOptionProperty, selector: "x-list-option-property", inputs: { node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, forbidden: { classPropertyName: "forbidden", publicName: "forbidden", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, openPortal: { classPropertyName: "openPortal", publicName: "openPortal", isSignal: true, isRequired: false, transformFunction: null }, optionClass: { classPropertyName: "optionClass", publicName: "optionClass", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, divided: { classPropertyName: "divided", publicName: "divided", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, leaf: { classPropertyName: "leaf", publicName: "leaf", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, keywordText: { classPropertyName: "keywordText", publicName: "keywordText", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange" }, ngImport: i0, template: '', isInline: true }); }
|
|
220
285
|
}
|
|
221
|
-
|
|
222
|
-
XInputBoolean()
|
|
223
|
-
], XListOptionProperty.prototype, "checked", void 0);
|
|
224
|
-
__decorate([
|
|
225
|
-
XInputBoolean()
|
|
226
|
-
], XListOptionProperty.prototype, "selected", void 0);
|
|
227
|
-
__decorate([
|
|
228
|
-
XInputBoolean()
|
|
229
|
-
], XListOptionProperty.prototype, "disabled", void 0);
|
|
230
|
-
__decorate([
|
|
231
|
-
XInputBoolean()
|
|
232
|
-
], XListOptionProperty.prototype, "active", void 0);
|
|
233
|
-
__decorate([
|
|
234
|
-
XInputBoolean()
|
|
235
|
-
], XListOptionProperty.prototype, "openPortal", void 0);
|
|
236
|
-
__decorate([
|
|
237
|
-
XInputBoolean()
|
|
238
|
-
], XListOptionProperty.prototype, "leaf", void 0);
|
|
239
|
-
__decorate([
|
|
240
|
-
XWithConfig(X_CONFIG_NAME, 'medium')
|
|
241
|
-
], XListOptionProperty.prototype, "size", void 0);
|
|
242
|
-
__decorate([
|
|
243
|
-
XInputBoolean(),
|
|
244
|
-
XWithConfig(X_CONFIG_NAME, true)
|
|
245
|
-
], XListOptionProperty.prototype, "caseSensitive", void 0);
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: XListOptionProperty, decorators: [{
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListOptionProperty, decorators: [{
|
|
247
287
|
type: Component,
|
|
248
288
|
args: [{ selector: `${XListOptionPrefix}-property`, template: '' }]
|
|
249
|
-
}]
|
|
250
|
-
type: Input
|
|
251
|
-
}], checked: [{
|
|
252
|
-
type: Input
|
|
253
|
-
}], nodeTpl: [{
|
|
254
|
-
type: Input
|
|
255
|
-
}], selected: [{
|
|
256
|
-
type: Input
|
|
257
|
-
}], disabled: [{
|
|
258
|
-
type: Input
|
|
259
|
-
}], active: [{
|
|
260
|
-
type: Input
|
|
261
|
-
}], openPortal: [{
|
|
262
|
-
type: Input
|
|
263
|
-
}], optionClass: [{
|
|
264
|
-
type: Input
|
|
265
|
-
}], icon: [{
|
|
266
|
-
type: Input
|
|
267
|
-
}], divided: [{
|
|
268
|
-
type: Input
|
|
269
|
-
}], label: [{
|
|
270
|
-
type: Input
|
|
271
|
-
}], leaf: [{
|
|
272
|
-
type: Input
|
|
273
|
-
}], size: [{
|
|
274
|
-
type: Input
|
|
275
|
-
}], keywordText: [{
|
|
276
|
-
type: Input
|
|
277
|
-
}], caseSensitive: [{
|
|
278
|
-
type: Input
|
|
279
|
-
}], activeChange: [{
|
|
280
|
-
type: Output
|
|
281
|
-
}] } });
|
|
289
|
+
}] });
|
|
282
290
|
|
|
283
291
|
class XListOptionComponent extends XListOptionProperty {
|
|
284
292
|
constructor() {
|
|
285
|
-
super(
|
|
293
|
+
super();
|
|
286
294
|
this.role = 'option';
|
|
287
|
-
this.classMap = {};
|
|
288
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
289
295
|
this.elementRef = inject(ElementRef);
|
|
290
|
-
this.
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
this.cdr.detectChanges();
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
ngOnChanges(changes) {
|
|
299
|
-
const { size } = changes;
|
|
300
|
-
XIsChange(size) && this.setClassMap();
|
|
301
|
-
}
|
|
302
|
-
setClassMap() {
|
|
303
|
-
XClearClass(this.classMap);
|
|
304
|
-
this.classMap[`${XListOptionPrefix}-${this.size}`] = this.size ? true : false;
|
|
296
|
+
this.classMap = computed(() => ({
|
|
297
|
+
[`${XListOptionPrefix}-${this.size()}`]: this.size() ? true : false
|
|
298
|
+
}));
|
|
299
|
+
this.disabled = false;
|
|
300
|
+
effect(() => (this.disabled = this.forbidden()));
|
|
305
301
|
}
|
|
306
302
|
setActiveStyles() {
|
|
307
|
-
this.active
|
|
308
|
-
this.activeChange.emit(this.active);
|
|
309
|
-
this.cdr.detectChanges();
|
|
303
|
+
this.active.set(true);
|
|
310
304
|
}
|
|
311
305
|
setInactiveStyles() {
|
|
312
|
-
this.active
|
|
313
|
-
this.activeChange.emit(this.active);
|
|
314
|
-
this.cdr.detectChanges();
|
|
306
|
+
this.active.set(false);
|
|
315
307
|
}
|
|
316
308
|
getLabel() {
|
|
317
|
-
return this.label;
|
|
309
|
+
return this.label();
|
|
318
310
|
}
|
|
319
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
320
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
311
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
312
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XListOptionComponent, isStandalone: true, selector: "x-list-option", host: { properties: { "attr.role": "this.role" } }, usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"x-list-option\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-selected]=\"selected()\"\r\n [class.x-disabled]=\"forbidden()\"\r\n [class.x-open-portal]=\"openPortal()\"\r\n [class.x-active]=\"active()\"\r\n [class.x-list-icon]=\"icon()\"\r\n [class.x-list-divided]=\"divided()\"\r\n>\r\n <div class=\"x-list-option-content\">\r\n @if (nodeTpl()) {\r\n <ng-template *ngTemplateOutlet=\"nodeTpl()!; context: { $node: node() }\"></ng-template>\r\n } @else {\r\n @if (icon()) {\r\n <x-icon [type]=\"icon()\"></x-icon>\r\n }\r\n <span x-keyword [text]=\"keywordText()\" [caseSensitive]=\"caseSensitive()\">{{ label() }}</span>\r\n }\r\n </div>\r\n @if (leaf()) {\r\n <x-icon class=\"x-list-leaf\" type=\"fto-chevron-right\"></x-icon>\r\n }\r\n @if (checked() && !leaf() && selected()) {\r\n <x-icon class=\"x-list-checked\" type=\"fto-check\"></x-icon>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-list-option{display:block}.x-list-option{border-radius:var(--x-border-radius);display:flex;align-items:center;justify-content:space-between;border:.0625rem dashed transparent;transition:border-color var(--x-animation-duration-base),background-color var(--x-animation-duration-base),color var(--x-animation-duration-base)}.x-list-option-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;-webkit-user-select:none;user-select:none;display:inline-block}.x-list-option:not(:first-child){margin-top:var(--x-border-width)}.x-list-option:hover:not(.x-disabled),.x-list-option.x-active:not(.x-disabled){background-color:var(--x-background-a200)}.x-list-option.x-list-divided{margin-top:.8125rem}.x-list-option.x-list-divided:before{content:\" \";position:absolute;top:0;left:0;width:100%;margin-top:-.5rem;border-top:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-list-option.x-selected:not(.x-disabled){background-color:var(--x-primary-900);color:var(--x-primary)}.x-list-option.x-selected:not(.x-disabled)>x-icon{color:var(--x-primary)}.x-list-option.x-disabled{color:var(--x-text-500);cursor:not-allowed}.x-list-option.x-disabled:hover{background-color:inherit}.x-list-option.x-disabled>span x-icon{color:var(--x-text-500)}.x-list-option-big{padding:0 var(--x-padding-big);height:var(--x-height-big);line-height:var(--x-height-big)}.x-list-option-large{padding:0 var(--x-padding-large);height:var(--x-height-large);line-height:var(--x-height-large)}.x-list-option-medium{padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-list-option-small{padding:0 var(--x-padding-small);height:var(--x-height-small);line-height:var(--x-height-small)}.x-list-option-mini{padding:0 var(--x-padding-mini);height:var(--x-height-mini);line-height:var(--x-height-mini)}body>x-list-option{display:block}body>x-list-option.cdk-drag-preview .x-list-option{border-radius:var(--x-border-radius);display:flex;align-items:center;justify-content:space-between;border:.0625rem dashed transparent;border-color:var(--x-border);color:var(--x-text-400);background-color:var(--x-background-a100);opacity:.9}body>x-list-option.cdk-drag-animating{transition:transform var(--x-animation-duration-base) cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "directive", type: XKeywordDirective, selector: "[x-keyword]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
321
313
|
}
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListOptionComponent, decorators: [{
|
|
323
315
|
type: Component,
|
|
324
|
-
args: [{ selector: `${XListOptionPrefix}`, standalone: true, imports: [NgClass, NgTemplateOutlet, XIconComponent, XKeywordDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"x-list-option\"\r\n [ngClass]=\"classMap\"\r\n [class.x-selected]=\"selected\"\r\n [class.x-disabled]=\"
|
|
325
|
-
}], propDecorators: { role: [{
|
|
316
|
+
args: [{ selector: `${XListOptionPrefix}`, standalone: true, imports: [NgClass, NgTemplateOutlet, XIconComponent, XKeywordDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"x-list-option\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-selected]=\"selected()\"\r\n [class.x-disabled]=\"forbidden()\"\r\n [class.x-open-portal]=\"openPortal()\"\r\n [class.x-active]=\"active()\"\r\n [class.x-list-icon]=\"icon()\"\r\n [class.x-list-divided]=\"divided()\"\r\n>\r\n <div class=\"x-list-option-content\">\r\n @if (nodeTpl()) {\r\n <ng-template *ngTemplateOutlet=\"nodeTpl()!; context: { $node: node() }\"></ng-template>\r\n } @else {\r\n @if (icon()) {\r\n <x-icon [type]=\"icon()\"></x-icon>\r\n }\r\n <span x-keyword [text]=\"keywordText()\" [caseSensitive]=\"caseSensitive()\">{{ label() }}</span>\r\n }\r\n </div>\r\n @if (leaf()) {\r\n <x-icon class=\"x-list-leaf\" type=\"fto-chevron-right\"></x-icon>\r\n }\r\n @if (checked() && !leaf() && selected()) {\r\n <x-icon class=\"x-list-checked\" type=\"fto-check\"></x-icon>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-list-option{display:block}.x-list-option{border-radius:var(--x-border-radius);display:flex;align-items:center;justify-content:space-between;border:.0625rem dashed transparent;transition:border-color var(--x-animation-duration-base),background-color var(--x-animation-duration-base),color var(--x-animation-duration-base)}.x-list-option-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;-webkit-user-select:none;user-select:none;display:inline-block}.x-list-option:not(:first-child){margin-top:var(--x-border-width)}.x-list-option:hover:not(.x-disabled),.x-list-option.x-active:not(.x-disabled){background-color:var(--x-background-a200)}.x-list-option.x-list-divided{margin-top:.8125rem}.x-list-option.x-list-divided:before{content:\" \";position:absolute;top:0;left:0;width:100%;margin-top:-.5rem;border-top:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-list-option.x-selected:not(.x-disabled){background-color:var(--x-primary-900);color:var(--x-primary)}.x-list-option.x-selected:not(.x-disabled)>x-icon{color:var(--x-primary)}.x-list-option.x-disabled{color:var(--x-text-500);cursor:not-allowed}.x-list-option.x-disabled:hover{background-color:inherit}.x-list-option.x-disabled>span x-icon{color:var(--x-text-500)}.x-list-option-big{padding:0 var(--x-padding-big);height:var(--x-height-big);line-height:var(--x-height-big)}.x-list-option-large{padding:0 var(--x-padding-large);height:var(--x-height-large);line-height:var(--x-height-large)}.x-list-option-medium{padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-list-option-small{padding:0 var(--x-padding-small);height:var(--x-height-small);line-height:var(--x-height-small)}.x-list-option-mini{padding:0 var(--x-padding-mini);height:var(--x-height-mini);line-height:var(--x-height-mini)}body>x-list-option{display:block}body>x-list-option.cdk-drag-preview .x-list-option{border-radius:var(--x-border-radius);display:flex;align-items:center;justify-content:space-between;border:.0625rem dashed transparent;border-color:var(--x-border);color:var(--x-text-400);background-color:var(--x-background-a100);opacity:.9}body>x-list-option.cdk-drag-animating{transition:transform var(--x-animation-duration-base) cubic-bezier(0,0,.2,1)}\n"] }]
|
|
317
|
+
}], ctorParameters: () => [], propDecorators: { role: [{
|
|
326
318
|
type: HostBinding,
|
|
327
319
|
args: ['attr.role']
|
|
328
320
|
}] } });
|
|
@@ -331,13 +323,7 @@ const X_LIST_DROP_GROUP = new InjectionToken('XListDropGroup');
|
|
|
331
323
|
class XListDropGroup {
|
|
332
324
|
constructor() {
|
|
333
325
|
this.dropLists = new Set();
|
|
334
|
-
this.
|
|
335
|
-
}
|
|
336
|
-
get disabled() {
|
|
337
|
-
return this._disabled;
|
|
338
|
-
}
|
|
339
|
-
set disabled(value) {
|
|
340
|
-
this._disabled = coerceBooleanProperty(value);
|
|
326
|
+
this.disabled = input(false, { transform: XToBoolean, alias: 'xListDropGroupDisabled' });
|
|
341
327
|
}
|
|
342
328
|
setConnectedTo() {
|
|
343
329
|
this.dropLists.forEach((x) => {
|
|
@@ -352,25 +338,21 @@ class XListDropGroup {
|
|
|
352
338
|
}
|
|
353
339
|
});
|
|
354
340
|
});
|
|
355
|
-
console.log(this.dropLists);
|
|
356
341
|
}
|
|
357
342
|
ngOnDestroy() {
|
|
358
343
|
this.dropLists.clear();
|
|
359
344
|
}
|
|
360
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
361
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
345
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListDropGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
346
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.1", type: XListDropGroup, isStandalone: true, selector: "[xListDropGroup]", inputs: { disabled: { classPropertyName: "disabled", publicName: "xListDropGroupDisabled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: X_LIST_DROP_GROUP, useExisting: XListDropGroup }], ngImport: i0 }); }
|
|
362
347
|
}
|
|
363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListDropGroup, decorators: [{
|
|
364
349
|
type: Directive,
|
|
365
350
|
args: [{
|
|
366
351
|
selector: '[xListDropGroup]',
|
|
367
352
|
standalone: true,
|
|
368
353
|
providers: [{ provide: X_LIST_DROP_GROUP, useExisting: XListDropGroup }]
|
|
369
354
|
}]
|
|
370
|
-
}]
|
|
371
|
-
type: Input,
|
|
372
|
-
args: ['xListDropGroupDisabled']
|
|
373
|
-
}] } });
|
|
355
|
+
}] });
|
|
374
356
|
|
|
375
357
|
class XListComponent extends XListProperty {
|
|
376
358
|
keydown($event) {
|
|
@@ -378,51 +360,48 @@ class XListComponent extends XListProperty {
|
|
|
378
360
|
const activeIndex = this.keyManager.activeItemIndex;
|
|
379
361
|
if ($event.keyCode === ENTER && !XIsUndefined(activeIndex)) {
|
|
380
362
|
this.setUnActive(activeIndex);
|
|
381
|
-
this.onNodeClick($event, this.nodes[activeIndex]);
|
|
363
|
+
this.onNodeClick($event, this.nodes()[activeIndex]);
|
|
382
364
|
}
|
|
383
365
|
}
|
|
384
|
-
|
|
385
|
-
return this.itemSizeMap[this.size];
|
|
386
|
-
}
|
|
387
|
-
get isEmpty() {
|
|
388
|
-
return XIsEmpty(this.nodes);
|
|
389
|
-
}
|
|
390
|
-
get getSelectAllText() {
|
|
391
|
-
return this.selectAllText || this.locale.selectAllText;
|
|
392
|
-
}
|
|
393
|
-
get getLoadMoreText() {
|
|
394
|
-
return this.loadMoreText || this.locale.loadMoreText;
|
|
395
|
-
}
|
|
396
|
-
get getLoadingMoreText() {
|
|
397
|
-
return this.loadingMoreText || this.locale.loadingMoreText;
|
|
398
|
-
}
|
|
399
|
-
get getVirtualScrollHeight() {
|
|
366
|
+
getVirtualScrollHeight() {
|
|
400
367
|
let headerH = 0, footerH = 0, selectAllH = 0, loadMoreH = 0;
|
|
401
|
-
if (this.headerRef)
|
|
402
|
-
headerH = this.headerRef.nativeElement.clientHeight;
|
|
403
|
-
if (this.footerRef)
|
|
404
|
-
footerH = this.footerRef.nativeElement.clientHeight;
|
|
405
|
-
if (this.selectAllRef)
|
|
406
|
-
selectAllH = this.selectAllRef.nativeElement.clientHeight;
|
|
407
|
-
if (this.loadMoreRef)
|
|
408
|
-
loadMoreH = this.loadMoreRef.nativeElement.clientHeight;
|
|
409
|
-
return
|
|
368
|
+
if (this.headerRef())
|
|
369
|
+
headerH = this.headerRef().nativeElement.clientHeight;
|
|
370
|
+
if (this.footerRef())
|
|
371
|
+
footerH = this.footerRef().nativeElement.clientHeight;
|
|
372
|
+
if (this.selectAllRef())
|
|
373
|
+
selectAllH = this.selectAllRef().nativeElement.clientHeight;
|
|
374
|
+
if (this.loadMoreRef())
|
|
375
|
+
loadMoreH = this.loadMoreRef().nativeElement.clientHeight;
|
|
376
|
+
return this.scrollHeightSignal() - headerH - footerH - selectAllH - loadMoreH;
|
|
410
377
|
}
|
|
411
378
|
writeValue(value) {
|
|
412
|
-
this.value
|
|
379
|
+
this.value.set(value);
|
|
413
380
|
this.setSelected();
|
|
414
381
|
this.setKeyManager();
|
|
415
|
-
this.cdr.detectChanges();
|
|
416
382
|
}
|
|
417
383
|
constructor() {
|
|
418
384
|
super();
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
422
|
-
this.
|
|
423
|
-
this.
|
|
424
|
-
this.
|
|
425
|
-
this.
|
|
385
|
+
this.unSubject = new Subject();
|
|
386
|
+
this.i18n = inject(XI18nService);
|
|
387
|
+
this.group = inject(X_LIST_DROP_GROUP, { optional: true, skipSelf: true });
|
|
388
|
+
this.nodes = signal([]);
|
|
389
|
+
this.selectedNodes = signal([]);
|
|
390
|
+
this.headerRef = viewChild('headerRef');
|
|
391
|
+
this.footerRef = viewChild('footerRef');
|
|
392
|
+
this.selectAllRef = viewChild('selectAllRef');
|
|
393
|
+
this.loadMoreRef = viewChild('loadMoreRef');
|
|
394
|
+
this.virtualBody = viewChild('virtualBody');
|
|
395
|
+
this.dropList = viewChild(CdkDropList);
|
|
396
|
+
this.isSelectAll = signal(false);
|
|
397
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.list)), { initialValue: zh_CN.list });
|
|
398
|
+
this.loadMoreIndex = signal(0);
|
|
399
|
+
this.icon = signal('');
|
|
400
|
+
this.iconSpin = signal(false);
|
|
401
|
+
this.scrollHeightSignal = signal(0);
|
|
402
|
+
this.classMap = computed(() => ({
|
|
403
|
+
[`${XListPrefix}-${this.size()}`]: this.size() ? true : false
|
|
404
|
+
}));
|
|
426
405
|
this.role = 'listbox';
|
|
427
406
|
this.tabindex = -1;
|
|
428
407
|
this.itemSizeMap = {
|
|
@@ -432,94 +411,101 @@ class XListComponent extends XListProperty {
|
|
|
432
411
|
large: 32,
|
|
433
412
|
big: 36
|
|
434
413
|
};
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
414
|
+
this.itemSize = computed(() => this.itemSizeMap[this.size()]);
|
|
415
|
+
this.isEmpty = computed(() => XIsEmpty(this.nodes()));
|
|
416
|
+
this.getSelectAllText = computed(() => this.selectAllText() || this.locale().selectAllText);
|
|
417
|
+
this.getLoadMoreText = computed(() => this.loadMoreText() || this.locale().loadMoreText);
|
|
418
|
+
this.getLoadingMoreText = computed(() => this.loadingMoreText() || this.locale().loadingMoreText);
|
|
419
|
+
this.minBufferPxSignal = computed(() => {
|
|
420
|
+
if (this.virtualScroll() && this.heightAdaption()) {
|
|
421
|
+
return this.getVirtualScrollHeight();
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
return this.minBufferPx();
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
this.maxBufferPxSignal = computed(() => {
|
|
428
|
+
if (this.virtualScroll() && this.heightAdaption()) {
|
|
429
|
+
return this.getVirtualScrollHeight() * 1.2;
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
return this.maxBufferPx();
|
|
433
|
+
}
|
|
434
|
+
});
|
|
440
435
|
afterRender(() => {
|
|
441
|
-
if (this.virtualScroll && this.scrollHeight) {
|
|
442
|
-
this.virtualBody?.checkViewportSize();
|
|
436
|
+
if (this.virtualScroll() && this.scrollHeight()) {
|
|
437
|
+
this.virtualBody()?.checkViewportSize();
|
|
443
438
|
}
|
|
444
439
|
}, { phase: AfterRenderPhase.MixedReadWrite });
|
|
445
440
|
}
|
|
446
|
-
ngOnInit() {
|
|
447
|
-
this.i18n.localeChange
|
|
448
|
-
.pipe(map((x) => x.list), takeUntil(this._unSubject))
|
|
449
|
-
.subscribe((x) => {
|
|
450
|
-
this.locale = x;
|
|
451
|
-
this.cdr.markForCheck();
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
441
|
ngOnChanges(changes) {
|
|
455
442
|
const { data } = changes;
|
|
456
443
|
XIsChange(data) && this.setData();
|
|
457
444
|
}
|
|
458
445
|
ngAfterViewInit() {
|
|
459
446
|
this.initKeyManager();
|
|
460
|
-
if (this.virtualScroll && this.heightAdaption) {
|
|
447
|
+
if (this.virtualScroll() && this.heightAdaption()) {
|
|
461
448
|
this.setVirtualScrollHeight();
|
|
462
|
-
XResize(this.heightAdaption)
|
|
463
|
-
.pipe(debounceTime(30), takeUntil(this.
|
|
449
|
+
XResize(this.heightAdaption())
|
|
450
|
+
.pipe(debounceTime(30), takeUntil(this.unSubject))
|
|
464
451
|
.subscribe((x) => {
|
|
465
|
-
this.
|
|
452
|
+
this.resizeObserver = x.resizeObserver;
|
|
466
453
|
this.setVirtualScrollHeight();
|
|
467
454
|
});
|
|
468
455
|
}
|
|
469
|
-
|
|
470
|
-
this.
|
|
456
|
+
else {
|
|
457
|
+
this.scrollHeightSignal.set(this.scrollHeight());
|
|
458
|
+
}
|
|
459
|
+
if (this.group && this.dropList()) {
|
|
460
|
+
this.group.dropLists.add(this.dropList());
|
|
471
461
|
this.group.setConnectedTo();
|
|
472
462
|
}
|
|
473
463
|
}
|
|
474
464
|
ngOnDestroy() {
|
|
475
|
-
this.
|
|
476
|
-
this.
|
|
477
|
-
this.
|
|
478
|
-
this.group?.dropLists.delete(this.dropList);
|
|
465
|
+
this.unSubject.next();
|
|
466
|
+
this.unSubject.complete();
|
|
467
|
+
this.resizeObserver?.disconnect();
|
|
468
|
+
this.group?.dropLists.delete(this.dropList());
|
|
479
469
|
}
|
|
480
470
|
setVirtualScrollHeight() {
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.virtualBody['_scrollStrategy']['_minBufferPx'] = this.minBufferPx;
|
|
485
|
-
this.virtualBody['_scrollStrategy']['_maxBufferPx'] = this.maxBufferPx;
|
|
486
|
-
this.cdr.detectChanges();
|
|
471
|
+
this.scrollHeightSignal.set(this.heightAdaption().clientHeight);
|
|
472
|
+
this.virtualBody()['_scrollStrategy']['_minBufferPx'] = this.minBufferPxSignal();
|
|
473
|
+
this.virtualBody()['_scrollStrategy']['_maxBufferPx'] = this.maxBufferPxSignal();
|
|
487
474
|
}
|
|
488
475
|
setData() {
|
|
489
|
-
if (this.loadMore) {
|
|
490
|
-
this.icon
|
|
491
|
-
this.iconSpin
|
|
476
|
+
if (this.loadMore()) {
|
|
477
|
+
this.icon.set('fto-loader');
|
|
478
|
+
this.iconSpin.set(true);
|
|
492
479
|
}
|
|
493
|
-
XSetData(this.data, this.
|
|
494
|
-
if (this.loadMore) {
|
|
495
|
-
this.nodes
|
|
496
|
-
this.icon
|
|
497
|
-
this.iconSpin
|
|
480
|
+
XSetData(this.data(), this.unSubject, true, this.loadMoreIndex()).subscribe((x) => {
|
|
481
|
+
if (this.loadMore()) {
|
|
482
|
+
this.nodes.update((y) => [...y, ...x]);
|
|
483
|
+
this.icon.set('');
|
|
484
|
+
this.iconSpin.set(false);
|
|
498
485
|
}
|
|
499
486
|
else {
|
|
500
|
-
this.nodes
|
|
487
|
+
this.nodes.set(x);
|
|
501
488
|
}
|
|
502
489
|
this.setSelected();
|
|
503
490
|
this.setKeyManager();
|
|
504
|
-
this.cdr.detectChanges();
|
|
505
491
|
});
|
|
506
492
|
}
|
|
507
493
|
initKeyManager() {
|
|
508
494
|
this.keyManager = new ActiveDescendantKeyManager(this.options).withWrap();
|
|
509
|
-
this.keyManager.tabOut.pipe(takeUntil(this.
|
|
495
|
+
this.keyManager.tabOut.pipe(takeUntil(this.unSubject)).subscribe(() => {
|
|
510
496
|
this.setUnActive(this.keyManager.activeItemIndex);
|
|
511
497
|
this.keyManagerTabOut.emit();
|
|
512
498
|
});
|
|
513
|
-
this.keyManager.change.pipe(takeUntil(this.
|
|
499
|
+
this.keyManager.change.pipe(takeUntil(this.unSubject)).subscribe((num) => {
|
|
514
500
|
this.setScorllTop(num);
|
|
515
501
|
this.keyManagerChange.emit(num);
|
|
516
502
|
});
|
|
517
503
|
}
|
|
518
504
|
setScorllTop(_num) {
|
|
519
|
-
|
|
505
|
+
let list = this.scrollElement();
|
|
506
|
+
if (!list || !this.keyManager.activeItem)
|
|
520
507
|
return;
|
|
521
508
|
let ele = this.keyManager.activeItem.elementRef.nativeElement;
|
|
522
|
-
let list = this.scrollElement;
|
|
523
509
|
let min = list.scrollTop;
|
|
524
510
|
let max = list.scrollTop + list.clientHeight;
|
|
525
511
|
if (ele.offsetTop + ele.clientHeight > max) {
|
|
@@ -531,61 +517,66 @@ class XListComponent extends XListProperty {
|
|
|
531
517
|
}
|
|
532
518
|
}
|
|
533
519
|
setSelected() {
|
|
534
|
-
|
|
535
|
-
|
|
520
|
+
const nodes = this.nodes();
|
|
521
|
+
const value = this.value();
|
|
522
|
+
const objectArray = this.objectArray();
|
|
523
|
+
if (nodes.length > 0) {
|
|
524
|
+
nodes
|
|
536
525
|
.filter((x) => x.selected)
|
|
537
526
|
.map((x) => {
|
|
538
527
|
x.selected = false;
|
|
539
528
|
});
|
|
540
529
|
let valArry = [];
|
|
541
|
-
if (
|
|
542
|
-
valArry =
|
|
543
|
-
if (valArry.length ===
|
|
544
|
-
this.isSelectAll
|
|
530
|
+
if (value instanceof Array) {
|
|
531
|
+
valArry = value;
|
|
532
|
+
if (valArry.length === nodes.length) {
|
|
533
|
+
this.isSelectAll.set(true);
|
|
545
534
|
}
|
|
546
535
|
}
|
|
547
536
|
else {
|
|
548
|
-
valArry = [
|
|
537
|
+
valArry = [value];
|
|
549
538
|
}
|
|
550
539
|
let ids = [];
|
|
551
540
|
let selectedNodes = [];
|
|
552
|
-
if (
|
|
541
|
+
if (objectArray) {
|
|
553
542
|
ids = valArry.filter((x) => !XIsUndefined(x) && !XIsNull(x)).map((x) => x.id);
|
|
554
543
|
}
|
|
555
544
|
else {
|
|
556
545
|
ids = valArry;
|
|
557
546
|
}
|
|
558
547
|
for (let id of ids) {
|
|
559
|
-
let node =
|
|
548
|
+
let node = nodes.find((x) => x.id === id);
|
|
560
549
|
if (node) {
|
|
561
550
|
node.selected = true;
|
|
562
551
|
selectedNodes.push(node);
|
|
563
552
|
}
|
|
564
553
|
}
|
|
565
|
-
this.selectedNodes
|
|
554
|
+
this.selectedNodes.set(selectedNodes);
|
|
566
555
|
}
|
|
567
556
|
}
|
|
568
557
|
setKeyManager() {
|
|
569
|
-
if (XIsUndefined(this.keyManager) ||
|
|
558
|
+
if (XIsUndefined(this.keyManager) || XIsEmpty(this.nodes()))
|
|
570
559
|
return;
|
|
571
560
|
let activeIndex = 0;
|
|
572
|
-
|
|
561
|
+
let value = this.value();
|
|
562
|
+
let objectArray = this.objectArray();
|
|
563
|
+
if (XIsEmpty(value)) {
|
|
573
564
|
this.keyManager.updateActiveItem(activeIndex);
|
|
574
565
|
return;
|
|
575
566
|
}
|
|
576
567
|
let valArry = [];
|
|
577
|
-
if (
|
|
578
|
-
valArry =
|
|
568
|
+
if (value instanceof Array) {
|
|
569
|
+
valArry = value;
|
|
579
570
|
}
|
|
580
571
|
else {
|
|
581
|
-
valArry = [
|
|
572
|
+
valArry = [value];
|
|
582
573
|
}
|
|
583
574
|
const first = valArry[0];
|
|
584
|
-
if (
|
|
585
|
-
activeIndex = this.nodes.findIndex((x) => x.id === first.id);
|
|
575
|
+
if (objectArray) {
|
|
576
|
+
activeIndex = this.nodes().findIndex((x) => x.id === first.id);
|
|
586
577
|
}
|
|
587
578
|
else {
|
|
588
|
-
activeIndex = this.nodes.findIndex((x) => x.id === first);
|
|
579
|
+
activeIndex = this.nodes().findIndex((x) => x.id === first);
|
|
589
580
|
}
|
|
590
581
|
this.keyManager.updateActiveItem(activeIndex);
|
|
591
582
|
this.setScorllTop(activeIndex);
|
|
@@ -597,26 +588,27 @@ class XListComponent extends XListProperty {
|
|
|
597
588
|
}
|
|
598
589
|
if (node.disabled)
|
|
599
590
|
return;
|
|
600
|
-
if (node.selected && this.multiple === 1) {
|
|
591
|
+
if (node.selected && this.multiple() === 1) {
|
|
601
592
|
node.event = event;
|
|
602
593
|
this.nodeClick.emit(node);
|
|
603
594
|
return;
|
|
604
595
|
}
|
|
605
596
|
const selected = !node.selected;
|
|
606
597
|
if (selected) {
|
|
607
|
-
if (this.selectedNodes.length <
|
|
598
|
+
if (this.selectedNodes().length < this.multiple() || this.multiple() === 0 || isNaN(this.multiple())) {
|
|
608
599
|
node.selected = selected;
|
|
609
|
-
this.selectedNodes
|
|
610
|
-
if (this.selectedNodes.length === this.nodes.length) {
|
|
611
|
-
this.isSelectAll
|
|
600
|
+
this.selectedNodes.update((x) => [...x, node]);
|
|
601
|
+
if (this.selectedNodes().length === this.nodes().length) {
|
|
602
|
+
this.isSelectAll.set(true);
|
|
612
603
|
}
|
|
613
|
-
this.cdr.detectChanges();
|
|
614
604
|
}
|
|
615
|
-
else if (this.multiple === 1 && this.selectedNodes.length === 1) {
|
|
605
|
+
else if (this.multiple() === 1 && this.selectedNodes().length === 1) {
|
|
616
606
|
node.selected = selected;
|
|
617
|
-
this.selectedNodes
|
|
618
|
-
|
|
619
|
-
|
|
607
|
+
this.selectedNodes.update((x) => {
|
|
608
|
+
x[0].selected = false;
|
|
609
|
+
x[0] = node;
|
|
610
|
+
return [...x];
|
|
611
|
+
});
|
|
620
612
|
}
|
|
621
613
|
else {
|
|
622
614
|
return;
|
|
@@ -624,18 +616,20 @@ class XListComponent extends XListProperty {
|
|
|
624
616
|
}
|
|
625
617
|
else {
|
|
626
618
|
node.selected = selected;
|
|
627
|
-
this.selectedNodes.
|
|
628
|
-
|
|
619
|
+
this.selectedNodes.update((x) => {
|
|
620
|
+
x.splice(x.findIndex((x) => x.id == node.id), 1);
|
|
621
|
+
return [...x];
|
|
622
|
+
});
|
|
623
|
+
this.isSelectAll.set(false);
|
|
629
624
|
}
|
|
630
|
-
if (this.multiple === 1 && this.selectedNodes.length === 1) {
|
|
631
|
-
this.value
|
|
625
|
+
if (this.multiple() === 1 && this.selectedNodes().length === 1) {
|
|
626
|
+
this.value.set(this.objectArray() ? this.selectedNodes()[0] : this.selectedNodes()[0].id);
|
|
632
627
|
}
|
|
633
628
|
else {
|
|
634
|
-
this.value
|
|
629
|
+
this.value.set(this.objectArray() ? this.selectedNodes() : this.selectedNodes().map((x) => x.id));
|
|
635
630
|
}
|
|
636
631
|
if (this.onChange)
|
|
637
|
-
this.onChange(this.value);
|
|
638
|
-
this.cdr.detectChanges();
|
|
632
|
+
this.onChange(this.value());
|
|
639
633
|
node.event = event;
|
|
640
634
|
this.nodeClick.emit(node);
|
|
641
635
|
}
|
|
@@ -656,41 +650,43 @@ class XListComponent extends XListProperty {
|
|
|
656
650
|
this.nodeMouseleave.emit(node);
|
|
657
651
|
}
|
|
658
652
|
dropCdk(event) {
|
|
659
|
-
|
|
653
|
+
this.nodes.update((x) => {
|
|
654
|
+
moveItemInArray(x, event.previousIndex, event.currentIndex);
|
|
655
|
+
return [...x];
|
|
656
|
+
});
|
|
660
657
|
this.dropListDropped.emit({
|
|
661
|
-
data: this.nodes,
|
|
662
|
-
current: this.nodes[event.currentIndex],
|
|
658
|
+
data: this.nodes(),
|
|
659
|
+
current: this.nodes()[event.currentIndex],
|
|
663
660
|
currentIndex: event.currentIndex,
|
|
664
661
|
event: event
|
|
665
662
|
});
|
|
666
|
-
this.cdr.detectChanges();
|
|
667
663
|
}
|
|
668
664
|
predicate(_drag, _drop) {
|
|
669
665
|
return true;
|
|
670
666
|
}
|
|
671
667
|
onSelectAllNodes() {
|
|
672
|
-
this.isSelectAll
|
|
673
|
-
if (this.isSelectAll) {
|
|
674
|
-
this.nodes.
|
|
675
|
-
x.selected = true;
|
|
676
|
-
return x;
|
|
668
|
+
this.isSelectAll.update((x) => !x);
|
|
669
|
+
if (this.isSelectAll()) {
|
|
670
|
+
this.nodes.update((x) => {
|
|
671
|
+
x.forEach((y) => (y.selected = true));
|
|
672
|
+
return [...x];
|
|
677
673
|
});
|
|
678
|
-
this.selectedNodes
|
|
674
|
+
this.selectedNodes.set(this.nodes());
|
|
679
675
|
}
|
|
680
676
|
else {
|
|
681
|
-
this.nodes.
|
|
682
|
-
x.selected = false;
|
|
683
|
-
return x;
|
|
677
|
+
this.nodes.update((x) => {
|
|
678
|
+
x.forEach((y) => (y.selected = false));
|
|
679
|
+
return [...x];
|
|
684
680
|
});
|
|
685
|
-
this.selectedNodes
|
|
681
|
+
this.selectedNodes.set([]);
|
|
686
682
|
}
|
|
687
|
-
this.value
|
|
683
|
+
this.value.set(this.objectArray() ? this.selectedNodes() : this.selectedNodes().map((x) => x.id));
|
|
688
684
|
if (this.onChange)
|
|
689
|
-
this.onChange(this.value);
|
|
690
|
-
this.onSelectAll.emit(this.isSelectAll);
|
|
685
|
+
this.onChange(this.value());
|
|
686
|
+
this.onSelectAll.emit(this.isSelectAll());
|
|
691
687
|
}
|
|
692
688
|
onLoadMore() {
|
|
693
|
-
this.loadMoreIndex
|
|
689
|
+
this.loadMoreIndex.update((x) => x + 1);
|
|
694
690
|
this.setData();
|
|
695
691
|
}
|
|
696
692
|
trackByNode(_index, item) {
|
|
@@ -698,14 +694,15 @@ class XListComponent extends XListProperty {
|
|
|
698
694
|
}
|
|
699
695
|
setUnActive(num) {
|
|
700
696
|
if (num > -1)
|
|
701
|
-
this.nodes[num].active = false;
|
|
697
|
+
this.nodes()[num].active = false;
|
|
702
698
|
}
|
|
703
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
704
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
699
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
700
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XListComponent, isStandalone: true, selector: "x-list", host: { listeners: { "keydown": "keydown($event)" }, properties: { "attr.role": "this.role", "attr.tabindex": "this.tabindex" } }, providers: [XValueAccessor(XListComponent)], viewQueries: [{ propertyName: "headerRef", first: true, predicate: ["headerRef"], descendants: true, isSignal: true }, { propertyName: "footerRef", first: true, predicate: ["footerRef"], descendants: true, isSignal: true }, { propertyName: "selectAllRef", first: true, predicate: ["selectAllRef"], descendants: true, isSignal: true }, { propertyName: "loadMoreRef", first: true, predicate: ["loadMoreRef"], descendants: true, isSignal: true }, { propertyName: "virtualBody", first: true, predicate: ["virtualBody"], descendants: true, isSignal: true }, { propertyName: "dropList", first: true, predicate: CdkDropList, descendants: true, isSignal: true }, { propertyName: "options", predicate: XListOptionComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"x-list\" [class.x-list-portal]=\"inPortal()\" [ngClass]=\"classMap()\">\r\n @if (header()) {\r\n <div #headerRef class=\"x-list-header\" *xOutlet=\"header()\">{{ header() }}</div>\r\n }\r\n @if (selectAll() && multiple() === 0) {\r\n <div #selectAllRef class=\"x-list-select-all\">\r\n <x-list-option\r\n [size]=\"size()\"\r\n [label]=\"getSelectAllText()\"\r\n [checked]=\"true\"\r\n [selected]=\"isSelectAll()\"\r\n (click)=\"onSelectAllNodes()\"\r\n ></x-list-option>\r\n </div>\r\n }\r\n @if (virtualScroll()) {\r\n <cdk-virtual-scroll-viewport\r\n #virtualBody\r\n [itemSize]=\"itemSize()\"\r\n [minBufferPx]=\"minBufferPxSignal()\"\r\n [maxBufferPx]=\"maxBufferPxSignal()\"\r\n class=\"x-list-content\"\r\n [style.height.px]=\"getVirtualScrollHeight()\"\r\n [hidden]=\"isEmpty()\"\r\n >\r\n <x-list-option\r\n *cdkVirtualFor=\"let node of nodes(); trackBy: trackByNode\"\r\n [node]=\"node\"\r\n [checked]=\"checked()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [selected]=\"node.selected!\"\r\n [forbidden]=\"node.disabled!\"\r\n [active]=\"node.active!\"\r\n (activeChange)=\"node.active = $event\"\r\n [openPortal]=\"node.openPortal!\"\r\n [icon]=\"node.icon\"\r\n [label]=\"node.label\"\r\n [leaf]=\"node.leaf!\"\r\n [size]=\"size()\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n (click)=\"onNodeClick($event, node)\"\r\n (mouseenter)=\"onMouseenter($event, node)\"\r\n (mouseleave)=\"onMouseleave($event, node)\"\r\n ></x-list-option>\r\n </cdk-virtual-scroll-viewport>\r\n } @else {\r\n <div\r\n class=\"x-list-content\"\r\n cdkDropList\r\n (cdkDropListDropped)=\"dropCdk($event)\"\r\n [cdkDropListDisabled]=\"!drag()\"\r\n [hidden]=\"isEmpty()\"\r\n [cdkDropListData]=\"nodes()\"\r\n [cdkDropListEnterPredicate]=\"predicate\"\r\n >\r\n @for (node of nodes(); track node.id) {\r\n <x-list-option\r\n cdkDrag\r\n [cdkDragDisabled]=\"node.disabled\"\r\n [node]=\"node\"\r\n [checked]=\"checked()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [selected]=\"node.selected!\"\r\n [forbidden]=\"node.disabled!\"\r\n [active]=\"node.active!\"\r\n (activeChange)=\"node.active = $event\"\r\n [openPortal]=\"node.openPortal!\"\r\n [icon]=\"node.icon\"\r\n [label]=\"node.label\"\r\n [leaf]=\"node.leaf!\"\r\n [size]=\"size()\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n (click)=\"onNodeClick($event, node)\"\r\n (mouseenter)=\"onMouseenter($event, node)\"\r\n (mouseleave)=\"onMouseleave($event, node)\"\r\n ></x-list-option>\r\n }\r\n </div>\r\n }\r\n @if (loadMore() && !isEmpty()) {\r\n <div #loadMoreRef class=\"x-list-load-more\">\r\n <x-list-option [size]=\"size()\" [nodeTpl]=\"loadMoreTpl\" (click)=\"onLoadMore()\"></x-list-option>\r\n </div>\r\n <ng-template #loadMoreTpl>\r\n @if (icon() && iconSpin()) {\r\n <x-icon [type]=\"icon()\" [spin]=\"iconSpin()\"></x-icon>\r\n }\r\n {{ icon() && iconSpin() ? getLoadingMoreText() : getLoadMoreText() }}\r\n </ng-template>\r\n }\r\n @if (isEmpty()) {\r\n <x-empty></x-empty>\r\n }\r\n @if (footer()) {\r\n <div #footerRef class=\"x-list-footer\" *xOutlet=\"footer()\">{{ footer() }}</div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-list{width:100%}x-list:focus{outline:none}.x-list{margin:0;padding:0;width:100%}.x-list:focus{outline:none}.x-list-select-all{cursor:pointer;font-weight:700}.x-list-load-more,.x-list-content{cursor:pointer}.x-list-content.cdk-drop-list-dragging x-list-option.cdk-drag-placeholder .x-list-option{border-color:var(--x-primary);color:var(--x-primary);background-color:var(--x-background);opacity:.8}.x-list-content.cdk-drop-list-dragging x-list-option:not(.cdk-drag-placeholder){transition:transform var(--x-animation-duration-base) cubic-bezier(0,0,.2,1)}.x-list-header,.x-list-footer{font-weight:700}.x-list-portal{padding:.125rem .25rem}.x-list-portal x-list-option .x-list-option{padding:0 calc(var(--x-padding-medium) - .5rem);margin:.125rem 0;border-radius:var(--x-border-small-radius)}.x-list-leaf,.x-list-checked{right:0;margin-left:.4rem;color:var(--x-text-400)}.x-list-icon>span x-icon{color:var(--x-text-300);margin-right:.25rem}.x-list>x-empty{margin:1rem;display:block}.x-list-big .x-list-header,.x-list-big .x-list-footer{padding:0 var(--x-padding-big);height:var(--x-height-big);line-height:var(--x-height-big)}.x-list-large .x-list-header,.x-list-large .x-list-footer{padding:0 var(--x-padding-large);height:var(--x-height-large);line-height:var(--x-height-large)}.x-list-medium .x-list-header,.x-list-medium .x-list-footer{padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-list-small .x-list-header,.x-list-small .x-list-footer{padding:0 var(--x-padding-small);height:var(--x-height-small);line-height:var(--x-height-small)}.x-list-mini .x-list-header,.x-list-mini .x-list-footer{padding:0 var(--x-padding-mini);height:var(--x-height-mini);line-height:var(--x-height-mini)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }, { kind: "component", type: XListOptionComponent, selector: "x-list-option" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
705
701
|
}
|
|
706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListComponent, decorators: [{
|
|
707
703
|
type: Component,
|
|
708
704
|
args: [{ selector: `${XListPrefix}`, standalone: true, imports: [
|
|
705
|
+
NgClass,
|
|
709
706
|
FormsModule,
|
|
710
707
|
ReactiveFormsModule,
|
|
711
708
|
CdkDropList,
|
|
@@ -715,29 +712,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
715
712
|
XEmptyComponent,
|
|
716
713
|
XListOptionComponent,
|
|
717
714
|
XOutletDirective
|
|
718
|
-
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XListComponent)], template: "<div class=\"x-list\">\r\n @if (header) {\r\n <div #headerRef class=\"x-list-header\" *xOutlet=\"header\">{{ header }}</div>\r\n }\r\n @if (selectAll && multiple === 0) {\r\n <div #selectAllRef class=\"x-list-select-all\">\r\n <x-list-option\r\n [size]=\"size\"\r\n [label]=\"getSelectAllText\"\r\n [checked]=\"true\"\r\n [selected]=\"isSelectAll\"\r\n (click)=\"onSelectAllNodes()\"\r\n ></x-list-option>\r\n </div>\r\n }\r\n @if (virtualScroll) {\r\n <cdk-virtual-scroll-viewport\r\n #virtualBody\r\n [itemSize]=\"
|
|
719
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
720
|
-
type: ViewChild,
|
|
721
|
-
args: ['headerRef']
|
|
722
|
-
}], footerRef: [{
|
|
723
|
-
type: ViewChild,
|
|
724
|
-
args: ['footerRef']
|
|
725
|
-
}], selectAllRef: [{
|
|
726
|
-
type: ViewChild,
|
|
727
|
-
args: ['selectAllRef']
|
|
728
|
-
}], loadMoreRef: [{
|
|
729
|
-
type: ViewChild,
|
|
730
|
-
args: ['loadMoreRef']
|
|
731
|
-
}], virtualBody: [{
|
|
732
|
-
type: ViewChild,
|
|
733
|
-
args: ['virtualBody']
|
|
734
|
-
}], dropList: [{
|
|
735
|
-
type: ViewChild,
|
|
736
|
-
args: [CdkDropList]
|
|
737
|
-
}], listItems: [{
|
|
738
|
-
type: ViewChild,
|
|
739
|
-
args: ['listItems']
|
|
740
|
-
}], options: [{
|
|
715
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XListComponent)], template: "<div class=\"x-list\" [class.x-list-portal]=\"inPortal()\" [ngClass]=\"classMap()\">\r\n @if (header()) {\r\n <div #headerRef class=\"x-list-header\" *xOutlet=\"header()\">{{ header() }}</div>\r\n }\r\n @if (selectAll() && multiple() === 0) {\r\n <div #selectAllRef class=\"x-list-select-all\">\r\n <x-list-option\r\n [size]=\"size()\"\r\n [label]=\"getSelectAllText()\"\r\n [checked]=\"true\"\r\n [selected]=\"isSelectAll()\"\r\n (click)=\"onSelectAllNodes()\"\r\n ></x-list-option>\r\n </div>\r\n }\r\n @if (virtualScroll()) {\r\n <cdk-virtual-scroll-viewport\r\n #virtualBody\r\n [itemSize]=\"itemSize()\"\r\n [minBufferPx]=\"minBufferPxSignal()\"\r\n [maxBufferPx]=\"maxBufferPxSignal()\"\r\n class=\"x-list-content\"\r\n [style.height.px]=\"getVirtualScrollHeight()\"\r\n [hidden]=\"isEmpty()\"\r\n >\r\n <x-list-option\r\n *cdkVirtualFor=\"let node of nodes(); trackBy: trackByNode\"\r\n [node]=\"node\"\r\n [checked]=\"checked()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [selected]=\"node.selected!\"\r\n [forbidden]=\"node.disabled!\"\r\n [active]=\"node.active!\"\r\n (activeChange)=\"node.active = $event\"\r\n [openPortal]=\"node.openPortal!\"\r\n [icon]=\"node.icon\"\r\n [label]=\"node.label\"\r\n [leaf]=\"node.leaf!\"\r\n [size]=\"size()\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n (click)=\"onNodeClick($event, node)\"\r\n (mouseenter)=\"onMouseenter($event, node)\"\r\n (mouseleave)=\"onMouseleave($event, node)\"\r\n ></x-list-option>\r\n </cdk-virtual-scroll-viewport>\r\n } @else {\r\n <div\r\n class=\"x-list-content\"\r\n cdkDropList\r\n (cdkDropListDropped)=\"dropCdk($event)\"\r\n [cdkDropListDisabled]=\"!drag()\"\r\n [hidden]=\"isEmpty()\"\r\n [cdkDropListData]=\"nodes()\"\r\n [cdkDropListEnterPredicate]=\"predicate\"\r\n >\r\n @for (node of nodes(); track node.id) {\r\n <x-list-option\r\n cdkDrag\r\n [cdkDragDisabled]=\"node.disabled\"\r\n [node]=\"node\"\r\n [checked]=\"checked()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [selected]=\"node.selected!\"\r\n [forbidden]=\"node.disabled!\"\r\n [active]=\"node.active!\"\r\n (activeChange)=\"node.active = $event\"\r\n [openPortal]=\"node.openPortal!\"\r\n [icon]=\"node.icon\"\r\n [label]=\"node.label\"\r\n [leaf]=\"node.leaf!\"\r\n [size]=\"size()\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n (click)=\"onNodeClick($event, node)\"\r\n (mouseenter)=\"onMouseenter($event, node)\"\r\n (mouseleave)=\"onMouseleave($event, node)\"\r\n ></x-list-option>\r\n }\r\n </div>\r\n }\r\n @if (loadMore() && !isEmpty()) {\r\n <div #loadMoreRef class=\"x-list-load-more\">\r\n <x-list-option [size]=\"size()\" [nodeTpl]=\"loadMoreTpl\" (click)=\"onLoadMore()\"></x-list-option>\r\n </div>\r\n <ng-template #loadMoreTpl>\r\n @if (icon() && iconSpin()) {\r\n <x-icon [type]=\"icon()\" [spin]=\"iconSpin()\"></x-icon>\r\n }\r\n {{ icon() && iconSpin() ? getLoadingMoreText() : getLoadMoreText() }}\r\n </ng-template>\r\n }\r\n @if (isEmpty()) {\r\n <x-empty></x-empty>\r\n }\r\n @if (footer()) {\r\n <div #footerRef class=\"x-list-footer\" *xOutlet=\"footer()\">{{ footer() }}</div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-list{width:100%}x-list:focus{outline:none}.x-list{margin:0;padding:0;width:100%}.x-list:focus{outline:none}.x-list-select-all{cursor:pointer;font-weight:700}.x-list-load-more,.x-list-content{cursor:pointer}.x-list-content.cdk-drop-list-dragging x-list-option.cdk-drag-placeholder .x-list-option{border-color:var(--x-primary);color:var(--x-primary);background-color:var(--x-background);opacity:.8}.x-list-content.cdk-drop-list-dragging x-list-option:not(.cdk-drag-placeholder){transition:transform var(--x-animation-duration-base) cubic-bezier(0,0,.2,1)}.x-list-header,.x-list-footer{font-weight:700}.x-list-portal{padding:.125rem .25rem}.x-list-portal x-list-option .x-list-option{padding:0 calc(var(--x-padding-medium) - .5rem);margin:.125rem 0;border-radius:var(--x-border-small-radius)}.x-list-leaf,.x-list-checked{right:0;margin-left:.4rem;color:var(--x-text-400)}.x-list-icon>span x-icon{color:var(--x-text-300);margin-right:.25rem}.x-list>x-empty{margin:1rem;display:block}.x-list-big .x-list-header,.x-list-big .x-list-footer{padding:0 var(--x-padding-big);height:var(--x-height-big);line-height:var(--x-height-big)}.x-list-large .x-list-header,.x-list-large .x-list-footer{padding:0 var(--x-padding-large);height:var(--x-height-large);line-height:var(--x-height-large)}.x-list-medium .x-list-header,.x-list-medium .x-list-footer{padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-list-small .x-list-header,.x-list-small .x-list-footer{padding:0 var(--x-padding-small);height:var(--x-height-small);line-height:var(--x-height-small)}.x-list-mini .x-list-header,.x-list-mini .x-list-footer{padding:0 var(--x-padding-mini);height:var(--x-height-mini);line-height:var(--x-height-mini)}\n"] }]
|
|
716
|
+
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
741
717
|
type: ViewChildren,
|
|
742
718
|
args: [XListOptionComponent]
|
|
743
719
|
}], role: [{
|
|
@@ -752,11 +728,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
752
728
|
}] } });
|
|
753
729
|
|
|
754
730
|
class XListModule {
|
|
755
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
756
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
757
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
731
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
732
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: XListModule, imports: [XListComponent, XListDropGroup, XListOptionComponent], exports: [XListComponent, XListDropGroup, XListOptionComponent] }); }
|
|
733
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListModule, imports: [XListComponent, XListOptionComponent] }); }
|
|
758
734
|
}
|
|
759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XListModule, decorators: [{
|
|
760
736
|
type: NgModule,
|
|
761
737
|
args: [{
|
|
762
738
|
exports: [XListComponent, XListDropGroup, XListOptionComponent],
|