@ng-nest/ui 17.0.12 → 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 +5 -5
- package/esm2022/affix/affix.property.mjs +22 -20
- package/esm2022/alert/alert.component.mjs +39 -44
- package/esm2022/alert/alert.module.mjs +5 -5
- package/esm2022/alert/alert.property.mjs +102 -107
- package/esm2022/anchor/anchor-inner.component.mjs +4 -4
- package/esm2022/anchor/anchor.component.mjs +73 -95
- package/esm2022/anchor/anchor.module.mjs +5 -5
- package/esm2022/anchor/anchor.property.mjs +45 -35
- package/esm2022/api/api.component.mjs +11 -14
- package/esm2022/api/api.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/auto-complete/auto-complete.property.mjs +142 -55
- package/esm2022/avatar/avatar-group.component.mjs +4 -4
- package/esm2022/avatar/avatar.component.mjs +75 -81
- package/esm2022/avatar/avatar.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/back-top/back-top.property.mjs +37 -29
- package/esm2022/badge/badge.component.mjs +51 -59
- package/esm2022/badge/badge.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/calendar/calendar.property.mjs +78 -24
- package/esm2022/card/card.component.mjs +10 -14
- package/esm2022/card/card.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/cascade/cascade.property.mjs +137 -48
- package/esm2022/checkbox/checkbox.component.mjs +68 -83
- package/esm2022/checkbox/checkbox.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/collapse/collapse.property.mjs +156 -66
- package/esm2022/color/color.component.mjs +25 -26
- package/esm2022/color/color.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/date-picker/date-picker.property.mjs +440 -462
- package/esm2022/date-picker/date-quarter.pipe.mjs +4 -4
- 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 +5 -5
- package/esm2022/description/description.property.mjs +175 -52
- package/esm2022/dialog/dialog-container.component.mjs +4 -4
- 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 +5 -5
- 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 +5 -5
- package/esm2022/drag/drag.directive.mjs +8 -21
- package/esm2022/drag/drag.module.mjs +5 -5
- 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 +10 -10
- package/esm2022/drawer/drawer.component.mjs +40 -59
- package/esm2022/drawer/drawer.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/dropdown/dropdown.property.mjs +62 -59
- package/esm2022/empty/empty.component.mjs +6 -26
- package/esm2022/empty/empty.module.mjs +5 -5
- package/esm2022/empty/empty.property.mjs +41 -20
- package/esm2022/examples/examples.component.mjs +11 -12
- package/esm2022/examples/examples.module.mjs +5 -5
- package/esm2022/find/find.component.mjs +188 -232
- package/esm2022/find/find.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/form/form.property.mjs +57 -55
- package/esm2022/highlight/highlight.component.mjs +54 -59
- package/esm2022/highlight/highlight.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/input-number/input-number.property.mjs +130 -60
- package/esm2022/keyword/keyword.directive.mjs +46 -54
- package/esm2022/keyword/keyword.module.mjs +5 -5
- package/esm2022/keyword/keyword.property.mjs +32 -28
- package/esm2022/layout/col.component.mjs +48 -51
- package/esm2022/layout/layout.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/list/list.property.mjs +195 -188
- package/esm2022/loading/loading.component.mjs +44 -45
- package/esm2022/loading/loading.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/menu/menu.property.mjs +56 -73
- package/esm2022/message/message.component.mjs +8 -8
- package/esm2022/message/message.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/message-box/message-box.service.mjs +6 -6
- package/esm2022/notification/notification.component.mjs +8 -8
- package/esm2022/notification/notification.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/page-header/page-header.property.mjs +31 -27
- package/esm2022/pagination/pagination.component.mjs +74 -100
- package/esm2022/pagination/pagination.module.mjs +5 -5
- package/esm2022/pagination/pagination.property.mjs +99 -136
- package/esm2022/pattern/pattern.component.mjs +12 -13
- package/esm2022/pattern/pattern.module.mjs +5 -5
- package/esm2022/pattern/pattern.property.mjs +2 -2
- package/esm2022/popconfirm/popconfirm.component.mjs +35 -47
- package/esm2022/popconfirm/popconfirm.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/popover/popover.property.mjs +71 -58
- package/esm2022/portal/portal.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/progress/progress.property.mjs +67 -71
- package/esm2022/radio/radio.component.mjs +45 -61
- package/esm2022/radio/radio.module.mjs +5 -5
- package/esm2022/radio/radio.property.mjs +139 -66
- package/esm2022/rate/rate.component.mjs +61 -79
- package/esm2022/rate/rate.module.mjs +5 -5
- package/esm2022/rate/rate.property.mjs +121 -29
- package/esm2022/resizable/resizable.directive.mjs +30 -45
- package/esm2022/resizable/resizable.module.mjs +5 -5
- package/esm2022/resizable/resizable.property.mjs +16 -46
- package/esm2022/result/result.component.mjs +13 -17
- package/esm2022/result/result.module.mjs +5 -5
- package/esm2022/result/result.property.mjs +25 -17
- package/esm2022/ripple/ripple.directive.mjs +38 -27
- package/esm2022/ripple/ripple.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/select/select.property.mjs +195 -102
- package/esm2022/skeleton/skeleton.component.mjs +12 -23
- package/esm2022/skeleton/skeleton.module.mjs +5 -5
- package/esm2022/skeleton/skeleton.property.mjs +31 -28
- package/esm2022/slider/slider.component.mjs +103 -149
- package/esm2022/slider/slider.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/statistic/statistic.property.mjs +68 -34
- package/esm2022/steps/steps.component.mjs +33 -63
- package/esm2022/steps/steps.module.mjs +5 -5
- package/esm2022/steps/steps.property.mjs +28 -39
- package/esm2022/switch/switch.component.mjs +22 -37
- package/esm2022/switch/switch.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/table/table.property.mjs +396 -341
- package/esm2022/tabs/tab-content.component.mjs +13 -16
- package/esm2022/tabs/tab-link.directive.mjs +7 -7
- package/esm2022/tabs/tab.component.mjs +9 -17
- package/esm2022/tabs/tabs.component.mjs +83 -135
- package/esm2022/tabs/tabs.module.mjs +5 -5
- package/esm2022/tabs/tabs.property.mjs +80 -91
- package/esm2022/tag/tag.component.mjs +19 -33
- package/esm2022/tag/tag.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/text-retract/text-retract.property.mjs +22 -18
- package/esm2022/textarea/textarea.component.mjs +49 -79
- package/esm2022/textarea/textarea.module.mjs +5 -5
- package/esm2022/textarea/textarea.property.mjs +124 -47
- package/esm2022/theme/theme.component.mjs +86 -81
- package/esm2022/theme/theme.module.mjs +5 -5
- package/esm2022/theme/theme.property.mjs +35 -46
- package/esm2022/time-ago/time-ago.module.mjs +5 -5
- 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 +5 -5
- package/esm2022/time-picker/time-picker.property.mjs +158 -70
- package/esm2022/time-range/time-range.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/tooltip/tooltip.property.mjs +53 -47
- package/esm2022/transfer/transfer.component.mjs +225 -184
- package/esm2022/transfer/transfer.module.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/tree-select/tree-select.property.mjs +203 -125
- package/esm2022/typography/typography.component.mjs +13 -10
- package/esm2022/typography/typography.module.mjs +5 -5
- 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 +5 -5
- 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 +97 -103
- 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,13 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { XControlValueAccessor, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
2
|
+
import { input, model, output, Component, viewChild, computed, signal, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import { XToBoolean, XToCssPixelValue, XToDataConvert, XToNumber, XIsUndefined, XIsChange, XResize, XIsEmpty } from '@ng-nest/ui/core';
|
|
4
|
+
import { XFormControlFunction, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
6
5
|
import { XTableComponent } from '@ng-nest/ui/table';
|
|
7
6
|
import { XDialogComponent } from '@ng-nest/ui/dialog';
|
|
8
7
|
import { XButtonComponent } from '@ng-nest/ui/button';
|
|
9
|
-
import { debounceTime, takeUntil } from 'rxjs/operators';
|
|
10
|
-
import {
|
|
8
|
+
import { tap, debounceTime, takeUntil } from 'rxjs/operators';
|
|
9
|
+
import { Observable, Subject } from 'rxjs';
|
|
11
10
|
import { XTreeComponent } from '@ng-nest/ui/tree';
|
|
12
11
|
import { XTagComponent } from '@ng-nest/ui/tag';
|
|
13
12
|
import { XEmptyComponent } from '@ng-nest/ui/empty';
|
|
@@ -16,6 +15,7 @@ import { XInputComponent } from '@ng-nest/ui/input';
|
|
|
16
15
|
import { NgClass } from '@angular/common';
|
|
17
16
|
import * as i1 from '@angular/forms';
|
|
18
17
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
18
|
+
import { toObservable } from '@angular/core/rxjs-interop';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Find
|
|
@@ -23,582 +23,601 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
23
23
|
* @decorator component
|
|
24
24
|
*/
|
|
25
25
|
const XFindPrefix = 'x-find';
|
|
26
|
-
const
|
|
26
|
+
const X_FIND_CONFIG_NAME = 'find';
|
|
27
27
|
/**
|
|
28
28
|
* Find Property
|
|
29
29
|
*/
|
|
30
|
-
class XFindProperty extends
|
|
30
|
+
class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
33
|
+
/**
|
|
34
|
+
* @zh_CN 显示边框
|
|
35
|
+
* @en_US Display Border
|
|
36
|
+
*/
|
|
37
|
+
this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
|
|
33
38
|
/**
|
|
34
39
|
* @zh_CN 多选
|
|
35
40
|
* @en_US Multiple choice
|
|
36
41
|
*/
|
|
37
|
-
this.multiple = false;
|
|
42
|
+
this.multiple = input(false, { transform: XToBoolean });
|
|
38
43
|
/**
|
|
39
|
-
* @zh_CN
|
|
40
|
-
* @en_US
|
|
44
|
+
* @zh_CN 选中 label 名称字段
|
|
45
|
+
* @en_US Check the label name field
|
|
46
|
+
*/
|
|
47
|
+
this.columnLabel = input(this.config?.columnLabel ?? 'label');
|
|
48
|
+
/**
|
|
49
|
+
* @zh_CN 弹框标题
|
|
50
|
+
* @en_US Bullet title
|
|
51
|
+
*/
|
|
52
|
+
this.dialogTitle = input(this.config?.dialogTitle ?? '查找选择');
|
|
53
|
+
/**
|
|
54
|
+
* @zh_CN 弹框表格选择列头名称
|
|
55
|
+
* @en_US Ball Form Select List Name
|
|
56
|
+
*/
|
|
57
|
+
this.dialogCheckboxLabel = input(this.config?.dialogCheckboxLabel ?? '选择');
|
|
58
|
+
/**
|
|
59
|
+
* @zh_CN 弹框表格选择列宽
|
|
60
|
+
* @en_US Ball Form Select List width
|
|
61
|
+
*/
|
|
62
|
+
this.dialogCheckboxWidth = input(this.config?.dialogCheckboxWidth ?? '60px', {
|
|
63
|
+
transform: XToCssPixelValue
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* @zh_CN 弹框选择数据为空的提示信息
|
|
67
|
+
* @en_US Ball box selection data empty prompt information
|
|
68
|
+
*/
|
|
69
|
+
this.dialogEmptyContent = input(this.config?.dialogEmptyContent ?? '请选择数据');
|
|
70
|
+
/**
|
|
71
|
+
* @zh_CN 弹框宽度
|
|
72
|
+
* @en_US Bullet frame width
|
|
73
|
+
*/
|
|
74
|
+
this.dialogWidth = input('', { transform: XToCssPixelValue });
|
|
75
|
+
/**
|
|
76
|
+
* @zh_CN 弹框高度
|
|
77
|
+
* @en_US Height of bullet frame
|
|
41
78
|
*/
|
|
42
|
-
this.
|
|
79
|
+
this.dialogHeight = input('', { transform: XToCssPixelValue });
|
|
43
80
|
/**
|
|
44
81
|
* @zh_CN 弹框显示,隐藏
|
|
45
82
|
* @en_US Bullet box display, hide
|
|
46
83
|
*/
|
|
47
|
-
this.
|
|
84
|
+
this.dialogVisible = model(false);
|
|
85
|
+
/**
|
|
86
|
+
* @zh_CN 按钮居中
|
|
87
|
+
* @en_US Button centered
|
|
88
|
+
*/
|
|
89
|
+
this.dialogButtonsCenter = input(false, { transform: XToBoolean });
|
|
48
90
|
/**
|
|
49
91
|
* @zh_CN 表格行数据
|
|
50
92
|
* @en_US Table row data
|
|
51
93
|
*/
|
|
52
|
-
this.tableData = [];
|
|
94
|
+
this.tableData = input([], { transform: XToDataConvert });
|
|
53
95
|
/**
|
|
54
|
-
* @zh_CN
|
|
55
|
-
* @en_US
|
|
96
|
+
* @zh_CN 表格页码
|
|
97
|
+
* @en_US Table page number
|
|
56
98
|
*/
|
|
57
|
-
this.
|
|
99
|
+
this.tableIndex = model(this.config?.tableIndex ?? 1);
|
|
58
100
|
/**
|
|
59
|
-
* @zh_CN
|
|
60
|
-
* @en_US
|
|
101
|
+
* @zh_CN 表每页数据条数
|
|
102
|
+
* @en_US Number of data items per page
|
|
61
103
|
*/
|
|
62
|
-
this.
|
|
104
|
+
this.tableSize = model(this.config?.tableSize ?? 10);
|
|
63
105
|
/**
|
|
64
|
-
* @zh_CN
|
|
65
|
-
* @en_US
|
|
106
|
+
* @zh_CN 表格查询条件
|
|
107
|
+
* @en_US Number of data items per page
|
|
66
108
|
*/
|
|
67
|
-
this.
|
|
109
|
+
this.tableQuery = model({});
|
|
68
110
|
/**
|
|
69
|
-
* @zh_CN
|
|
70
|
-
* @en_US
|
|
111
|
+
* @zh_CN 表格数据总条数
|
|
112
|
+
* @en_US Total number of table data
|
|
71
113
|
*/
|
|
72
|
-
this.
|
|
114
|
+
this.tableTotal = model(0);
|
|
73
115
|
/**
|
|
74
116
|
* @zh_CN 排序点击的事件
|
|
75
117
|
* @en_US Sort click events
|
|
76
118
|
*/
|
|
77
|
-
this.tableSortChange =
|
|
119
|
+
this.tableSortChange = output();
|
|
78
120
|
/**
|
|
79
121
|
* @zh_CN 表格列参数
|
|
80
122
|
* @en_US Table column parameters
|
|
81
123
|
*/
|
|
82
|
-
this.tableColumns = [];
|
|
124
|
+
this.tableColumns = input([]);
|
|
125
|
+
/**
|
|
126
|
+
* @zh_CN 当前选中行数据
|
|
127
|
+
* @en_US Currently selected row data
|
|
128
|
+
*/
|
|
129
|
+
this.tableActivatedRow = model();
|
|
83
130
|
/**
|
|
84
131
|
* @zh_CN 表格行点击事件
|
|
85
132
|
* @en_US Table row click event
|
|
86
133
|
*/
|
|
87
|
-
this.tableRowEmit =
|
|
134
|
+
this.tableRowEmit = output();
|
|
88
135
|
/**
|
|
89
136
|
* @zh_CN 表格行点击事件
|
|
90
137
|
* @en_US Table row click event
|
|
91
138
|
*/
|
|
92
|
-
this.tableCheckedRow = {};
|
|
139
|
+
this.tableCheckedRow = model({});
|
|
140
|
+
/**
|
|
141
|
+
* @zh_CN 是否启用加载 loading
|
|
142
|
+
* @en_US Whether to enable loading loading
|
|
143
|
+
*/
|
|
144
|
+
this.tableLoading = input(this.config?.tableLoading ?? false, { transform: XToBoolean });
|
|
145
|
+
/**
|
|
146
|
+
* @zh_CN 表格开启虚拟滚动
|
|
147
|
+
* @en_US Table opens virtual scrolling
|
|
148
|
+
*/
|
|
149
|
+
this.tableVirtualScroll = input(this.config?.tableVirtualScroll ?? false, {
|
|
150
|
+
transform: XToBoolean
|
|
151
|
+
});
|
|
152
|
+
/**
|
|
153
|
+
* @zh_CN 表格 body 数据高度
|
|
154
|
+
* @en_US Table body data height
|
|
155
|
+
*/
|
|
156
|
+
this.tableBodyHeight = input(null, { transform: XToNumber });
|
|
93
157
|
/**
|
|
94
158
|
* @zh_CN 表格超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
95
159
|
* @en_US The table exceeds the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
96
160
|
*/
|
|
97
|
-
this.tableMinBufferPx = 100;
|
|
161
|
+
this.tableMinBufferPx = input(100, { transform: XToNumber });
|
|
98
162
|
/**
|
|
99
163
|
* @zh_CN 表格渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
100
164
|
* @en_US The pixels of the new data buffer for the table rendering, corresponding to the parameters in cdk scroll
|
|
101
165
|
*/
|
|
102
|
-
this.tableMaxBufferPx = 200;
|
|
166
|
+
this.tableMaxBufferPx = input(200, { transform: XToNumber });
|
|
167
|
+
/**
|
|
168
|
+
* @zh_CN 表格自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
169
|
+
* @en_US Table adaptive height, table height is equal to the screen height minus the value set here
|
|
170
|
+
*/
|
|
171
|
+
this.tableAdaptionHeight = input(null, { transform: XToNumber });
|
|
103
172
|
/**
|
|
104
173
|
* @zh_CN 表格文档高度百分比,弹窗百分比高度用到
|
|
105
174
|
* @en_US Table document height percentage, used for pop-up window percentage height
|
|
106
175
|
*/
|
|
107
|
-
this.tableDocPercent = 1;
|
|
176
|
+
this.tableDocPercent = input(1, { transform: XToNumber });
|
|
177
|
+
/**
|
|
178
|
+
* @zh_CN 表格行高度,单位 px
|
|
179
|
+
* @en_US Table row height, unit px
|
|
180
|
+
*/
|
|
181
|
+
this.tableRowHeight = input(this.config?.tableRowHeight ?? 42, { transform: XToNumber });
|
|
108
182
|
/**
|
|
109
183
|
* @zh_CN 树节点数据
|
|
110
184
|
* @en_US Tree node data
|
|
111
185
|
*/
|
|
112
|
-
this.treeData = [];
|
|
186
|
+
this.treeData = input([], { transform: XToDataConvert });
|
|
187
|
+
/**
|
|
188
|
+
* @zh_CN 树当前激活的节点 Id
|
|
189
|
+
* @en_US Id of the currently active node of the tree
|
|
190
|
+
*/
|
|
191
|
+
this.treeActivatedId = model();
|
|
113
192
|
/**
|
|
114
|
-
* @zh_CN
|
|
115
|
-
* @en_US The
|
|
193
|
+
* @zh_CN 树默认展开的层级
|
|
194
|
+
* @en_US The level of the tree expanded by default
|
|
116
195
|
*/
|
|
117
|
-
this.
|
|
196
|
+
this.treeExpandedLevel = input(this.config?.treeExpandedLevel ?? 0, { transform: XToNumber });
|
|
118
197
|
/**
|
|
119
198
|
* @zh_CN 树 checkbox 选中的节点
|
|
120
199
|
* @en_US Tree checkbox selected node
|
|
121
200
|
*/
|
|
122
|
-
this.treeChecked = [];
|
|
201
|
+
this.treeChecked = model([]);
|
|
202
|
+
/**
|
|
203
|
+
* @zh_CN 树显示多选框
|
|
204
|
+
* @en_US Tree display checkbox
|
|
205
|
+
*/
|
|
206
|
+
this.treeCheckbox = input(false, { transform: XToBoolean });
|
|
207
|
+
/**
|
|
208
|
+
* @zh_CN 树和表格同时存在的时候,树节点 id 对应表格的属性,用来做表格数据过滤
|
|
209
|
+
* @en_US When the tree and the table exist at the same time, the tree node id corresponds to the attribute of the table, which is used to filter the table data
|
|
210
|
+
*/
|
|
211
|
+
this.treeTableConnect = input();
|
|
212
|
+
/**
|
|
213
|
+
* @zh_CN 数据查询过滤表单
|
|
214
|
+
* @en_US form for data filter
|
|
215
|
+
*/
|
|
216
|
+
this.search = model(null);
|
|
217
|
+
/**
|
|
218
|
+
* @zh_CN 尺寸
|
|
219
|
+
* @en_US Size
|
|
220
|
+
*/
|
|
221
|
+
this.size = input(this.config?.size ?? 'medium');
|
|
222
|
+
/**
|
|
223
|
+
* @zh_CN 输入框点击样式
|
|
224
|
+
* @en_US Input pointer
|
|
225
|
+
*/
|
|
226
|
+
this.pointer = input(false, { transform: XToBoolean });
|
|
227
|
+
/**
|
|
228
|
+
* @zh_CN 标签
|
|
229
|
+
* @en_US Label
|
|
230
|
+
*/
|
|
231
|
+
this.label = input('');
|
|
232
|
+
/**
|
|
233
|
+
* @zh_CN 标签宽度
|
|
234
|
+
* @en_US Label width
|
|
235
|
+
*/
|
|
236
|
+
this.labelWidth = input('', { transform: XToCssPixelValue });
|
|
237
|
+
/**
|
|
238
|
+
* @zh_CN 标签文字对齐方式
|
|
239
|
+
* @en_US Label text alignment method
|
|
240
|
+
*/
|
|
241
|
+
this.labelAlign = input('start');
|
|
242
|
+
/**
|
|
243
|
+
* @zh_CN flex 布局下的子元素水平排列方式
|
|
244
|
+
* @en_US The level of sub-element level arrangement under flex layout
|
|
245
|
+
*/
|
|
246
|
+
this.justify = input('start');
|
|
247
|
+
/**
|
|
248
|
+
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
249
|
+
* @en_US sub-element vertical arrangement method under flex layout
|
|
250
|
+
*/
|
|
251
|
+
this.align = input('start');
|
|
252
|
+
/**
|
|
253
|
+
* @zh_CN flex 布局下的子元素排列方向
|
|
254
|
+
* @en_US The direction of the sub-element arrangement under flex layout
|
|
255
|
+
*/
|
|
256
|
+
this.direction = input('column');
|
|
257
|
+
/**
|
|
258
|
+
* @zh_CN 输入提示信息
|
|
259
|
+
* @en_US Enter prompt information
|
|
260
|
+
*/
|
|
261
|
+
this.placeholder = input('');
|
|
262
|
+
/**
|
|
263
|
+
* @zh_CN 禁用
|
|
264
|
+
* @en_US Disabled
|
|
265
|
+
*/
|
|
266
|
+
this.disabled = input(false, { transform: XToBoolean });
|
|
267
|
+
/**
|
|
268
|
+
* @zh_CN 必填
|
|
269
|
+
* @en_US Required
|
|
270
|
+
*/
|
|
271
|
+
this.required = input(false, { transform: XToBoolean });
|
|
272
|
+
/**
|
|
273
|
+
* @zh_CN 只读
|
|
274
|
+
* @en_US Readonly
|
|
275
|
+
*/
|
|
276
|
+
this.readonly = input(false, { transform: XToBoolean });
|
|
277
|
+
/**
|
|
278
|
+
* @zh_CN 值模板
|
|
279
|
+
* @en_US Node template
|
|
280
|
+
*/
|
|
281
|
+
this.valueTpl = input();
|
|
282
|
+
/**
|
|
283
|
+
* @zh_CN 值模板参数
|
|
284
|
+
* @en_US Node template
|
|
285
|
+
*/
|
|
286
|
+
this.valueTplContext = input();
|
|
287
|
+
/**
|
|
288
|
+
* @zh_CN 前置标签
|
|
289
|
+
* @en_US Before label
|
|
290
|
+
*/
|
|
291
|
+
this.before = input();
|
|
292
|
+
/**
|
|
293
|
+
* @zh_CN 后置标签
|
|
294
|
+
* @en_US After label
|
|
295
|
+
*/
|
|
296
|
+
this.after = input();
|
|
297
|
+
/**
|
|
298
|
+
* @zh_CN 正则验证规则
|
|
299
|
+
* @en_US Regular verification rules
|
|
300
|
+
*/
|
|
301
|
+
this.pattern = input(null);
|
|
302
|
+
/**
|
|
303
|
+
* @zh_CN 验证不通过提示文字
|
|
304
|
+
* @en_US Verify not pass the prompt text
|
|
305
|
+
*/
|
|
306
|
+
this.message = input([]);
|
|
307
|
+
/**
|
|
308
|
+
* @zh_CN 激活状态
|
|
309
|
+
* @en_US Activation state
|
|
310
|
+
*/
|
|
311
|
+
this.active = model(false);
|
|
312
|
+
/**
|
|
313
|
+
* @zh_CN 输入验证函数
|
|
314
|
+
* @en_US Enter the verification function
|
|
315
|
+
*/
|
|
316
|
+
this.inputValidator = input();
|
|
123
317
|
}
|
|
124
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
125
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
318
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
319
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.1", type: XFindProperty, selector: "x-find-property", inputs: { bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, columnLabel: { classPropertyName: "columnLabel", publicName: "columnLabel", isSignal: true, isRequired: false, transformFunction: null }, dialogTitle: { classPropertyName: "dialogTitle", publicName: "dialogTitle", isSignal: true, isRequired: false, transformFunction: null }, dialogCheckboxLabel: { classPropertyName: "dialogCheckboxLabel", publicName: "dialogCheckboxLabel", isSignal: true, isRequired: false, transformFunction: null }, dialogCheckboxWidth: { classPropertyName: "dialogCheckboxWidth", publicName: "dialogCheckboxWidth", isSignal: true, isRequired: false, transformFunction: null }, dialogEmptyContent: { classPropertyName: "dialogEmptyContent", publicName: "dialogEmptyContent", isSignal: true, isRequired: false, transformFunction: null }, dialogWidth: { classPropertyName: "dialogWidth", publicName: "dialogWidth", isSignal: true, isRequired: false, transformFunction: null }, dialogHeight: { classPropertyName: "dialogHeight", publicName: "dialogHeight", isSignal: true, isRequired: false, transformFunction: null }, dialogVisible: { classPropertyName: "dialogVisible", publicName: "dialogVisible", isSignal: true, isRequired: false, transformFunction: null }, dialogButtonsCenter: { classPropertyName: "dialogButtonsCenter", publicName: "dialogButtonsCenter", isSignal: true, isRequired: false, transformFunction: null }, tableData: { classPropertyName: "tableData", publicName: "tableData", isSignal: true, isRequired: false, transformFunction: null }, tableIndex: { classPropertyName: "tableIndex", publicName: "tableIndex", isSignal: true, isRequired: false, transformFunction: null }, tableSize: { classPropertyName: "tableSize", publicName: "tableSize", isSignal: true, isRequired: false, transformFunction: null }, tableQuery: { classPropertyName: "tableQuery", publicName: "tableQuery", isSignal: true, isRequired: false, transformFunction: null }, tableTotal: { classPropertyName: "tableTotal", publicName: "tableTotal", isSignal: true, isRequired: false, transformFunction: null }, tableColumns: { classPropertyName: "tableColumns", publicName: "tableColumns", isSignal: true, isRequired: false, transformFunction: null }, tableActivatedRow: { classPropertyName: "tableActivatedRow", publicName: "tableActivatedRow", isSignal: true, isRequired: false, transformFunction: null }, tableCheckedRow: { classPropertyName: "tableCheckedRow", publicName: "tableCheckedRow", isSignal: true, isRequired: false, transformFunction: null }, tableLoading: { classPropertyName: "tableLoading", publicName: "tableLoading", isSignal: true, isRequired: false, transformFunction: null }, tableVirtualScroll: { classPropertyName: "tableVirtualScroll", publicName: "tableVirtualScroll", isSignal: true, isRequired: false, transformFunction: null }, tableBodyHeight: { classPropertyName: "tableBodyHeight", publicName: "tableBodyHeight", isSignal: true, isRequired: false, transformFunction: null }, tableMinBufferPx: { classPropertyName: "tableMinBufferPx", publicName: "tableMinBufferPx", isSignal: true, isRequired: false, transformFunction: null }, tableMaxBufferPx: { classPropertyName: "tableMaxBufferPx", publicName: "tableMaxBufferPx", isSignal: true, isRequired: false, transformFunction: null }, tableAdaptionHeight: { classPropertyName: "tableAdaptionHeight", publicName: "tableAdaptionHeight", isSignal: true, isRequired: false, transformFunction: null }, tableDocPercent: { classPropertyName: "tableDocPercent", publicName: "tableDocPercent", isSignal: true, isRequired: false, transformFunction: null }, tableRowHeight: { classPropertyName: "tableRowHeight", publicName: "tableRowHeight", isSignal: true, isRequired: false, transformFunction: null }, treeData: { classPropertyName: "treeData", publicName: "treeData", isSignal: true, isRequired: false, transformFunction: null }, treeActivatedId: { classPropertyName: "treeActivatedId", publicName: "treeActivatedId", isSignal: true, isRequired: false, transformFunction: null }, treeExpandedLevel: { classPropertyName: "treeExpandedLevel", publicName: "treeExpandedLevel", isSignal: true, isRequired: false, transformFunction: null }, treeChecked: { classPropertyName: "treeChecked", publicName: "treeChecked", isSignal: true, isRequired: false, transformFunction: null }, treeCheckbox: { classPropertyName: "treeCheckbox", publicName: "treeCheckbox", isSignal: true, isRequired: false, transformFunction: null }, treeTableConnect: { classPropertyName: "treeTableConnect", publicName: "treeTableConnect", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pointer: { classPropertyName: "pointer", publicName: "pointer", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, valueTpl: { classPropertyName: "valueTpl", publicName: "valueTpl", isSignal: true, isRequired: false, transformFunction: null }, valueTplContext: { classPropertyName: "valueTplContext", publicName: "valueTplContext", isSignal: true, isRequired: false, transformFunction: null }, before: { classPropertyName: "before", publicName: "before", isSignal: true, isRequired: false, transformFunction: null }, after: { classPropertyName: "after", publicName: "after", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, inputValidator: { classPropertyName: "inputValidator", publicName: "inputValidator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dialogVisible: "dialogVisibleChange", tableIndex: "tableIndexChange", tableSize: "tableSizeChange", tableQuery: "tableQueryChange", tableTotal: "tableTotalChange", tableSortChange: "tableSortChange", tableActivatedRow: "tableActivatedRowChange", tableRowEmit: "tableRowEmit", tableCheckedRow: "tableCheckedRowChange", treeActivatedId: "treeActivatedIdChange", treeChecked: "treeCheckedChange", search: "searchChange", active: "activeChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
126
320
|
}
|
|
127
|
-
|
|
128
|
-
XWithConfig(X_CONFIG_NAME, 'medium')
|
|
129
|
-
], XFindProperty.prototype, "size", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
XInputBoolean(),
|
|
132
|
-
XWithConfig(X_CONFIG_NAME, true)
|
|
133
|
-
], XFindProperty.prototype, "bordered", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
XInputBoolean()
|
|
136
|
-
], XFindProperty.prototype, "multiple", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
XWithConfig(X_CONFIG_NAME, 'label')
|
|
139
|
-
], XFindProperty.prototype, "columnLabel", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
XWithConfig(X_CONFIG_NAME, '查找选择')
|
|
142
|
-
], XFindProperty.prototype, "dialogTitle", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
XWithConfig(X_CONFIG_NAME, '选择')
|
|
145
|
-
], XFindProperty.prototype, "dialogCheckboxLabel", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
XWithConfig(X_CONFIG_NAME, 60),
|
|
148
|
-
XInputNumber()
|
|
149
|
-
], XFindProperty.prototype, "dialogCheckboxWidth", void 0);
|
|
150
|
-
__decorate([
|
|
151
|
-
XWithConfig(X_CONFIG_NAME, '请选择数据')
|
|
152
|
-
], XFindProperty.prototype, "dialogEmptyContent", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
XInputBoolean()
|
|
155
|
-
], XFindProperty.prototype, "dialogVisible", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
XWithConfig(X_CONFIG_NAME),
|
|
158
|
-
XInputBoolean()
|
|
159
|
-
], XFindProperty.prototype, "dialogButtonsCenter", void 0);
|
|
160
|
-
__decorate([
|
|
161
|
-
XWithConfig(X_CONFIG_NAME, 1)
|
|
162
|
-
], XFindProperty.prototype, "tableIndex", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
XWithConfig(X_CONFIG_NAME, 10)
|
|
165
|
-
], XFindProperty.prototype, "tableSize", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
XWithConfig(X_CONFIG_NAME, false),
|
|
168
|
-
XInputBoolean()
|
|
169
|
-
], XFindProperty.prototype, "tableLoading", void 0);
|
|
170
|
-
__decorate([
|
|
171
|
-
XWithConfig(X_CONFIG_NAME, false),
|
|
172
|
-
XInputBoolean()
|
|
173
|
-
], XFindProperty.prototype, "tableVirtualScroll", void 0);
|
|
174
|
-
__decorate([
|
|
175
|
-
XInputNumber()
|
|
176
|
-
], XFindProperty.prototype, "tableBodyHeight", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
XInputNumber()
|
|
179
|
-
], XFindProperty.prototype, "tableAdaptionHeight", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
XInputNumber()
|
|
182
|
-
], XFindProperty.prototype, "tableDocPercent", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
XWithConfig(X_CONFIG_NAME, 42),
|
|
185
|
-
XInputNumber()
|
|
186
|
-
], XFindProperty.prototype, "tableRowHeight", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
XDataConvert()
|
|
189
|
-
], XFindProperty.prototype, "treeData", void 0);
|
|
190
|
-
__decorate([
|
|
191
|
-
XWithConfig(X_CONFIG_NAME, 0),
|
|
192
|
-
XInputNumber()
|
|
193
|
-
], XFindProperty.prototype, "treeExpandedLevel", void 0);
|
|
194
|
-
__decorate([
|
|
195
|
-
XInputBoolean()
|
|
196
|
-
], XFindProperty.prototype, "treeCheckbox", void 0);
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: XFindProperty, decorators: [{
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindProperty, decorators: [{
|
|
198
322
|
type: Component,
|
|
199
323
|
args: [{ selector: `${XFindPrefix}-property`, template: '' }]
|
|
200
|
-
}]
|
|
201
|
-
type: Input
|
|
202
|
-
}], bordered: [{
|
|
203
|
-
type: Input
|
|
204
|
-
}], multiple: [{
|
|
205
|
-
type: Input
|
|
206
|
-
}], columnLabel: [{
|
|
207
|
-
type: Input
|
|
208
|
-
}], dialogTitle: [{
|
|
209
|
-
type: Input
|
|
210
|
-
}], dialogCheckboxLabel: [{
|
|
211
|
-
type: Input
|
|
212
|
-
}], dialogCheckboxWidth: [{
|
|
213
|
-
type: Input
|
|
214
|
-
}], dialogEmptyContent: [{
|
|
215
|
-
type: Input
|
|
216
|
-
}], dialogWidth: [{
|
|
217
|
-
type: Input
|
|
218
|
-
}], dialogHeight: [{
|
|
219
|
-
type: Input
|
|
220
|
-
}], dialogVisible: [{
|
|
221
|
-
type: Input
|
|
222
|
-
}], dialogVisibleChange: [{
|
|
223
|
-
type: Output
|
|
224
|
-
}], dialogButtonsCenter: [{
|
|
225
|
-
type: Input
|
|
226
|
-
}], tableData: [{
|
|
227
|
-
type: Input
|
|
228
|
-
}], tableIndex: [{
|
|
229
|
-
type: Input
|
|
230
|
-
}], tableSize: [{
|
|
231
|
-
type: Input
|
|
232
|
-
}], tableQuery: [{
|
|
233
|
-
type: Input
|
|
234
|
-
}], tableTotal: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}], tableIndexChange: [{
|
|
237
|
-
type: Output
|
|
238
|
-
}], tableSizeChange: [{
|
|
239
|
-
type: Output
|
|
240
|
-
}], tableSortChange: [{
|
|
241
|
-
type: Output
|
|
242
|
-
}], tableColumns: [{
|
|
243
|
-
type: Input
|
|
244
|
-
}], tableActivatedRow: [{
|
|
245
|
-
type: Input
|
|
246
|
-
}], tableRowEmit: [{
|
|
247
|
-
type: Output
|
|
248
|
-
}], tableCheckedRow: [{
|
|
249
|
-
type: Input
|
|
250
|
-
}], tableLoading: [{
|
|
251
|
-
type: Input
|
|
252
|
-
}], tableVirtualScroll: [{
|
|
253
|
-
type: Input
|
|
254
|
-
}], tableBodyHeight: [{
|
|
255
|
-
type: Input
|
|
256
|
-
}], tableMinBufferPx: [{
|
|
257
|
-
type: Input
|
|
258
|
-
}], tableMaxBufferPx: [{
|
|
259
|
-
type: Input
|
|
260
|
-
}], tableAdaptionHeight: [{
|
|
261
|
-
type: Input
|
|
262
|
-
}], tableDocPercent: [{
|
|
263
|
-
type: Input
|
|
264
|
-
}], tableRowHeight: [{
|
|
265
|
-
type: Input
|
|
266
|
-
}], treeData: [{
|
|
267
|
-
type: Input
|
|
268
|
-
}], treeActivatedChange: [{
|
|
269
|
-
type: Output
|
|
270
|
-
}], treeActivatedId: [{
|
|
271
|
-
type: Input
|
|
272
|
-
}], treeExpandedLevel: [{
|
|
273
|
-
type: Input
|
|
274
|
-
}], treeChecked: [{
|
|
275
|
-
type: Input
|
|
276
|
-
}], treeCheckbox: [{
|
|
277
|
-
type: Input
|
|
278
|
-
}], treeTableConnect: [{
|
|
279
|
-
type: Input
|
|
280
|
-
}], search: [{
|
|
281
|
-
type: Input
|
|
282
|
-
}] } });
|
|
324
|
+
}] });
|
|
283
325
|
|
|
284
326
|
class XFindComponent extends XFindProperty {
|
|
285
327
|
constructor() {
|
|
286
328
|
super(...arguments);
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
this.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
329
|
+
this.find = viewChild.required('find');
|
|
330
|
+
this.dialogCom = viewChild.required('dialogCom');
|
|
331
|
+
this.tableCom = viewChild('tableCom');
|
|
332
|
+
this.treeCom = viewChild('treeCom');
|
|
333
|
+
this.buttonCom = viewChild.required('buttonCom');
|
|
334
|
+
this.tableRef = viewChild('tableRef');
|
|
335
|
+
this.treeRef = viewChild('treeRef');
|
|
336
|
+
this.tableRefChanged = toObservable(this.tableRef)
|
|
337
|
+
.pipe(tap((x) => x && this.multiple() && this.setSubscribe()))
|
|
338
|
+
.subscribe();
|
|
339
|
+
this.treeRefChanged = toObservable(this.treeRef)
|
|
340
|
+
.pipe(tap((x) => x && this.multiple() && this.setSubscribe()))
|
|
341
|
+
.subscribe();
|
|
342
|
+
this.tableColumnsSignal = computed(() => {
|
|
343
|
+
if (!this.multiple())
|
|
344
|
+
return this.tableColumns();
|
|
345
|
+
if (this.hasTable()) {
|
|
346
|
+
if (!this.tableColumns().find((x) => x.rowChecked)) {
|
|
347
|
+
return [
|
|
348
|
+
{
|
|
349
|
+
id: '$checked',
|
|
350
|
+
label: this.dialogCheckboxLabel(),
|
|
351
|
+
rowChecked: true,
|
|
352
|
+
type: 'checkbox',
|
|
353
|
+
width: this.dialogCheckboxWidth()
|
|
354
|
+
},
|
|
355
|
+
...this.tableColumns()
|
|
356
|
+
];
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return this.tableColumns();
|
|
360
|
+
});
|
|
361
|
+
this.getEmpty = computed(() => !this.temp() || this.temp().length === 0);
|
|
362
|
+
this.hasTable = computed(() => this.tableColumns().length > 0);
|
|
363
|
+
this.hasTree = computed(() => (Array.isArray(this.treeData()) && this.treeData().length > 0) ||
|
|
364
|
+
this.treeData() instanceof Function ||
|
|
365
|
+
this.treeData() instanceof Observable);
|
|
366
|
+
this.hasTreeTable = computed(() => this.hasTable() && this.hasTree());
|
|
367
|
+
this.hasTreeMultiple = computed(() => this.hasTree() && !this.hasTreeTable() && this.multiple());
|
|
368
|
+
this.hasSearch = computed(() => this.search() && this.hasTable());
|
|
369
|
+
this.dialogWidthSignal = computed(() => {
|
|
370
|
+
if (XIsUndefined(this.dialogWidth())) {
|
|
371
|
+
if ((this.hasTable() && this.hasTree()) || this.hasTable()) {
|
|
372
|
+
return '50rem';
|
|
373
|
+
}
|
|
374
|
+
else if (this.hasTree() && this.multiple()) {
|
|
375
|
+
return '30rem';
|
|
376
|
+
}
|
|
377
|
+
else if (this.hasTree()) {
|
|
378
|
+
return '20rem';
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return this.dialogWidth();
|
|
382
|
+
});
|
|
383
|
+
this.temp = signal(undefined);
|
|
384
|
+
this.height = signal(100);
|
|
385
|
+
this.unSubject = new Subject();
|
|
386
|
+
this.classMap = computed(() => ({
|
|
387
|
+
[`${XFindPrefix}-${this.size()}`]: !!this.size(),
|
|
388
|
+
[`x-justify-${this.justify()}`]: !!this.justify(),
|
|
389
|
+
[`x-align-${this.align()}`]: !!this.align(),
|
|
390
|
+
[`x-direction-${this.direction()}`]: !!this.direction()
|
|
391
|
+
}));
|
|
392
|
+
this.labelMapSignal = computed(() => ({
|
|
393
|
+
[`x-text-align-${this.labelAlign()}`]: !!this.labelAlign()
|
|
394
|
+
}));
|
|
330
395
|
}
|
|
331
396
|
writeValue(value) {
|
|
332
|
-
this.value
|
|
333
|
-
this.cdr.detectChanges();
|
|
397
|
+
this.value.set(value);
|
|
334
398
|
}
|
|
335
399
|
ngOnChanges(simples) {
|
|
336
|
-
const { tableData
|
|
400
|
+
const { tableData } = simples;
|
|
337
401
|
XIsChange(tableData) && this.setTableCheckedRow();
|
|
338
|
-
XIsChange(labelAlign, size) && this.setClassMap();
|
|
339
|
-
}
|
|
340
|
-
ngOnInit() {
|
|
341
|
-
this.setFlex(this.find.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
342
|
-
this.setClassMap();
|
|
343
|
-
this.setMultiple();
|
|
344
|
-
this.setWidth();
|
|
345
|
-
}
|
|
346
|
-
ngAfterViewInit() {
|
|
347
|
-
if (this.value)
|
|
348
|
-
this.cdr.detectChanges();
|
|
349
402
|
}
|
|
350
403
|
ngOnDestroy() {
|
|
351
|
-
this.
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
XClearClass(this.labelMap, this.classMap);
|
|
355
|
-
this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;
|
|
356
|
-
this.classMap[`x-find-${this.size}`] = !XIsEmpty(this.size);
|
|
404
|
+
this.unSubject.next();
|
|
405
|
+
this.unSubject.complete();
|
|
406
|
+
this.resizeObserver?.disconnect();
|
|
357
407
|
}
|
|
358
408
|
setSubscribe() {
|
|
359
409
|
let resizeRef = [];
|
|
360
|
-
if (this.hasTable) {
|
|
361
|
-
resizeRef = [this.tableRef
|
|
410
|
+
if (this.hasTable()) {
|
|
411
|
+
resizeRef = [this.tableRef().nativeElement];
|
|
362
412
|
}
|
|
363
|
-
if (this.hasTree && !this.hasTreeTable) {
|
|
364
|
-
resizeRef.push(this.treeRef
|
|
413
|
+
if (this.hasTree() && !this.hasTreeTable()) {
|
|
414
|
+
resizeRef.push(this.treeRef().nativeElement);
|
|
365
415
|
}
|
|
366
|
-
this.
|
|
416
|
+
this.unSubject.next();
|
|
417
|
+
if (resizeRef.length === 0)
|
|
418
|
+
return;
|
|
367
419
|
XResize(...resizeRef)
|
|
368
|
-
.pipe(debounceTime(30), takeUntil(this.
|
|
420
|
+
.pipe(debounceTime(30), takeUntil(this.unSubject))
|
|
369
421
|
.subscribe((x) => {
|
|
370
|
-
this.
|
|
371
|
-
if (this.tableRef) {
|
|
372
|
-
this.height
|
|
422
|
+
this.resizeObserver = x.resizeObserver;
|
|
423
|
+
if (this.tableRef()) {
|
|
424
|
+
this.height.set(this.tableRef().nativeElement.clientHeight);
|
|
373
425
|
}
|
|
374
|
-
else if (this.hasTree) {
|
|
375
|
-
this.height
|
|
426
|
+
else if (this.hasTree()) {
|
|
427
|
+
this.height.set(this.treeRef().nativeElement.clientHeight);
|
|
376
428
|
}
|
|
377
|
-
this.cdr.detectChanges();
|
|
378
429
|
});
|
|
379
430
|
}
|
|
380
|
-
setMultiple() {
|
|
381
|
-
if (!this.multiple)
|
|
382
|
-
return;
|
|
383
|
-
if (this.hasTable) {
|
|
384
|
-
if (!this.tableColumns.find((x) => x.rowChecked)) {
|
|
385
|
-
this.tableColumns = [
|
|
386
|
-
{
|
|
387
|
-
id: '$checked',
|
|
388
|
-
label: this.dialogCheckboxLabel,
|
|
389
|
-
rowChecked: true,
|
|
390
|
-
type: 'checkbox',
|
|
391
|
-
width: this.dialogCheckboxWidth
|
|
392
|
-
},
|
|
393
|
-
...this.tableColumns
|
|
394
|
-
];
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
setWidth() {
|
|
399
|
-
if (XIsUndefined(this.dialogWidth)) {
|
|
400
|
-
if ((this.hasTable && this.hasTree) || this.hasTable) {
|
|
401
|
-
this.dialogWidth = '50rem';
|
|
402
|
-
}
|
|
403
|
-
else if (this.hasTree && this.multiple) {
|
|
404
|
-
this.dialogWidth = '30rem';
|
|
405
|
-
}
|
|
406
|
-
else if (this.hasTree) {
|
|
407
|
-
this.dialogWidth = '20rem';
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
431
|
showModal() {
|
|
412
|
-
if (this.
|
|
432
|
+
if (this.disabledComputed())
|
|
413
433
|
return;
|
|
414
|
-
this.dialogVisible
|
|
415
|
-
this.
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
this.temp = this.value.map((x) => Object.assign({}, x));
|
|
434
|
+
this.dialogVisible.set(true);
|
|
435
|
+
if (this.value()) {
|
|
436
|
+
if (this.multiple()) {
|
|
437
|
+
this.temp.set(this.value().map((x) => Object.assign({}, x)));
|
|
419
438
|
this.setTableCheckedRow();
|
|
420
439
|
this.setTreeChecked();
|
|
421
440
|
}
|
|
422
441
|
else {
|
|
423
|
-
this.tableActivatedRow
|
|
424
|
-
if (!this.hasTreeTable && this.hasTree) {
|
|
425
|
-
this.treeActivatedId
|
|
442
|
+
this.tableActivatedRow.set(this.value());
|
|
443
|
+
if (!this.hasTreeTable() && this.hasTree()) {
|
|
444
|
+
this.treeActivatedId.set(this.value().id);
|
|
426
445
|
}
|
|
427
446
|
}
|
|
428
447
|
}
|
|
429
448
|
else {
|
|
430
|
-
this.temp
|
|
449
|
+
this.temp.set(this.multiple() ? [] : undefined);
|
|
431
450
|
}
|
|
432
|
-
if (this.hasTable) {
|
|
433
|
-
this.tableCom
|
|
434
|
-
this.tableCom
|
|
451
|
+
if (this.hasTable()) {
|
|
452
|
+
this.tableCom()?.virtualBody()?.scrollToIndex(0);
|
|
453
|
+
this.tableCom()?.virtualBody()?.checkViewportSize();
|
|
435
454
|
}
|
|
436
|
-
this.cdr.detectChanges();
|
|
437
455
|
}
|
|
438
456
|
setTableCheckedRow() {
|
|
439
|
-
if (!this.multiple || XIsUndefined(this.temp))
|
|
457
|
+
if (!this.multiple() || XIsUndefined(this.temp()))
|
|
440
458
|
return;
|
|
441
|
-
const ids = this.temp.map((x) => x.id);
|
|
442
|
-
this.tableCheckedRow
|
|
443
|
-
...
|
|
459
|
+
const ids = this.temp().map((x) => x.id);
|
|
460
|
+
this.tableCheckedRow.update((x) => ({
|
|
461
|
+
...x,
|
|
444
462
|
$checked: ids
|
|
445
|
-
};
|
|
463
|
+
}));
|
|
446
464
|
}
|
|
447
465
|
setTreeChecked() {
|
|
448
|
-
if (this.hasTreeMultiple)
|
|
449
|
-
this.treeChecked
|
|
466
|
+
if (this.hasTreeMultiple())
|
|
467
|
+
this.treeChecked.set(this.temp().map((x) => x.id));
|
|
450
468
|
}
|
|
451
469
|
sure() {
|
|
452
|
-
this.value
|
|
453
|
-
this.onChange(this.value);
|
|
470
|
+
this.value.set(this.temp());
|
|
471
|
+
this.onChange && this.onChange(this.value());
|
|
454
472
|
this.formControlValidator();
|
|
455
|
-
this.cdr.detectChanges();
|
|
456
|
-
}
|
|
457
|
-
closeModal() {
|
|
458
|
-
this.cdr.detectChanges();
|
|
459
473
|
}
|
|
460
474
|
dialogCloseDone() {
|
|
461
|
-
if (this.hasTree) {
|
|
462
|
-
this.treeActivatedId
|
|
463
|
-
this.temp
|
|
475
|
+
if (this.hasTree()) {
|
|
476
|
+
this.treeActivatedId.set(null);
|
|
477
|
+
this.temp.set(null);
|
|
464
478
|
}
|
|
465
479
|
}
|
|
466
480
|
tempClose(index, item) {
|
|
467
|
-
this.temp.
|
|
468
|
-
|
|
469
|
-
|
|
481
|
+
this.temp.update((x) => {
|
|
482
|
+
x.splice(index, 1);
|
|
483
|
+
return [...x];
|
|
484
|
+
});
|
|
485
|
+
if (this.hasTable()) {
|
|
486
|
+
let it = this.tableCom()
|
|
487
|
+
.tableData()
|
|
488
|
+
.find((x) => item.id === x.id);
|
|
470
489
|
if (it) {
|
|
471
490
|
it['$checked'] = false;
|
|
472
|
-
this.tableCom?.bodyChange();
|
|
473
491
|
}
|
|
474
492
|
}
|
|
475
|
-
else if (this.hasTree) {
|
|
476
|
-
let it = this.treeCom
|
|
493
|
+
else if (this.hasTree()) {
|
|
494
|
+
let it = this.treeCom()
|
|
495
|
+
.treeData()
|
|
496
|
+
.find((x) => item.id === x.id);
|
|
477
497
|
if (it) {
|
|
478
498
|
it.checked = false;
|
|
479
499
|
it.change && it.change();
|
|
480
|
-
this.treeCom?.cdr.detectChanges();
|
|
481
500
|
}
|
|
482
501
|
}
|
|
483
|
-
this.cdr.detectChanges();
|
|
484
502
|
}
|
|
485
503
|
tagClose(index = -1) {
|
|
486
504
|
if (index >= 0) {
|
|
487
|
-
this.value.
|
|
505
|
+
this.value.update((x) => {
|
|
506
|
+
x.splice(index, 1);
|
|
507
|
+
return [...x];
|
|
508
|
+
});
|
|
488
509
|
}
|
|
489
510
|
else {
|
|
490
|
-
this.value
|
|
491
|
-
this.tableActivatedRow
|
|
492
|
-
if (!this.hasTreeTable && this.hasTree) {
|
|
493
|
-
this.treeActivatedId
|
|
511
|
+
this.value.set(null);
|
|
512
|
+
this.tableActivatedRow.set(null);
|
|
513
|
+
if (!this.hasTreeTable() && this.hasTree()) {
|
|
514
|
+
this.treeActivatedId.set(null);
|
|
494
515
|
}
|
|
495
516
|
}
|
|
496
|
-
this.onChange(this.value);
|
|
517
|
+
this.onChange && this.onChange(this.value());
|
|
497
518
|
this.formControlValidator();
|
|
498
|
-
this.cdr.detectChanges();
|
|
499
519
|
}
|
|
500
520
|
tableActivatedRowChange(data) {
|
|
501
|
-
if (this.multiple) {
|
|
521
|
+
if (this.multiple()) {
|
|
502
522
|
this.rowMultiple(data);
|
|
503
523
|
}
|
|
504
524
|
else {
|
|
505
|
-
this.temp
|
|
506
|
-
this.dialogVisible
|
|
525
|
+
this.temp.set(data);
|
|
526
|
+
this.dialogVisible.set(false);
|
|
507
527
|
this.sure();
|
|
508
528
|
}
|
|
509
529
|
}
|
|
510
530
|
rowMultiple(data) {
|
|
511
|
-
if (typeof this.temp === 'undefined')
|
|
512
|
-
this.temp
|
|
513
|
-
// data['$checked'] = !data['$checked'];
|
|
531
|
+
if (typeof this.temp() === 'undefined')
|
|
532
|
+
this.temp.set([]);
|
|
514
533
|
if (data['$checked']) {
|
|
515
|
-
this.temp
|
|
534
|
+
this.temp.update((x) => {
|
|
535
|
+
if (XIsEmpty(x))
|
|
536
|
+
x = [];
|
|
537
|
+
x.push(data);
|
|
538
|
+
return x;
|
|
539
|
+
});
|
|
516
540
|
}
|
|
517
541
|
else {
|
|
518
|
-
this.temp.
|
|
542
|
+
this.temp.update((x) => {
|
|
543
|
+
x.splice(x.findIndex((x) => x.id === data.id), 1);
|
|
544
|
+
return [...x];
|
|
545
|
+
});
|
|
519
546
|
}
|
|
520
|
-
this.cdr.detectChanges();
|
|
521
547
|
}
|
|
522
548
|
treeMultiple(node) {
|
|
523
|
-
if (typeof this.temp === 'undefined')
|
|
524
|
-
this.temp
|
|
525
|
-
// node.$checked = !node.$checked;
|
|
549
|
+
if (typeof this.temp() === 'undefined')
|
|
550
|
+
this.temp.set([]);
|
|
526
551
|
if (node.checked) {
|
|
527
|
-
this.temp
|
|
552
|
+
this.temp.update((x) => [...x, node]);
|
|
528
553
|
}
|
|
529
554
|
else {
|
|
530
|
-
this.temp.
|
|
555
|
+
this.temp.update((x) => {
|
|
556
|
+
x.splice(x.findIndex((x) => x.id === node.id), 1);
|
|
557
|
+
return [...x];
|
|
558
|
+
});
|
|
531
559
|
}
|
|
532
|
-
this.cdr.detectChanges();
|
|
533
560
|
}
|
|
534
561
|
treeActivatedClick(node) {
|
|
535
|
-
if (!this.hasTreeTable && this.hasTree) {
|
|
536
|
-
if (this.multiple) {
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
else {
|
|
540
|
-
this.temp = node;
|
|
562
|
+
if (!this.hasTreeTable() && this.hasTree()) {
|
|
563
|
+
if (!this.multiple()) {
|
|
564
|
+
this.temp.set(node);
|
|
541
565
|
}
|
|
542
566
|
}
|
|
543
|
-
else if (this.hasTreeTable && this.treeTableConnect) {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
let field = this.tableQuery.filter.find((x) => x.field === this.treeTableConnect);
|
|
567
|
+
else if (this.hasTreeTable() && this.treeTableConnect()) {
|
|
568
|
+
const tableQuery = this.tableQuery();
|
|
569
|
+
if (!tableQuery.filter)
|
|
570
|
+
tableQuery.filter = [];
|
|
571
|
+
let field = tableQuery.filter.find((x) => x.field === this.treeTableConnect());
|
|
549
572
|
if (field) {
|
|
550
573
|
field.value = node.id;
|
|
551
574
|
field.operation = '=';
|
|
552
575
|
}
|
|
553
576
|
else {
|
|
554
|
-
|
|
555
|
-
...this.tableQuery.filter,
|
|
556
|
-
{ field: this.treeTableConnect, value: node.id, operation: '=' }
|
|
557
|
-
];
|
|
577
|
+
tableQuery.filter = [...tableQuery.filter, { field: this.treeTableConnect(), value: node.id, operation: '=' }];
|
|
558
578
|
}
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
579
|
+
this.tableQuery.set(tableQuery);
|
|
580
|
+
this.tableCom().change(1);
|
|
581
|
+
this.treeActivatedId.set(node.id);
|
|
561
582
|
}
|
|
562
|
-
this.treeActivatedChange.emit(node);
|
|
563
|
-
this.cdr.detectChanges();
|
|
564
583
|
}
|
|
565
584
|
treeCheckboxChange(node) {
|
|
566
585
|
this.treeMultiple(node);
|
|
567
586
|
}
|
|
568
587
|
formControlChanges() {
|
|
569
|
-
this.
|
|
570
|
-
this.ngAfterViewInit();
|
|
571
|
-
this.treeCom?.setData();
|
|
572
|
-
this.cdr.detectChanges();
|
|
588
|
+
this.treeCom()?.setData();
|
|
573
589
|
}
|
|
574
590
|
searchKeyDown(event) {
|
|
575
591
|
if (event.key === 'Enter') {
|
|
576
592
|
this.searchClick();
|
|
577
593
|
}
|
|
578
594
|
else if (event.key === 'Delete') {
|
|
579
|
-
this.search.
|
|
595
|
+
this.search.update((x) => {
|
|
596
|
+
x.value = '';
|
|
597
|
+
return { ...x };
|
|
598
|
+
});
|
|
580
599
|
}
|
|
581
600
|
}
|
|
582
601
|
searchClick() {
|
|
583
|
-
if (!this.hasSearch) {
|
|
602
|
+
if (!this.hasSearch()) {
|
|
584
603
|
return;
|
|
585
604
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
const field =
|
|
605
|
+
const tableQuery = this.tableQuery() || {};
|
|
606
|
+
tableQuery.filter = tableQuery.filter || [];
|
|
607
|
+
const field = tableQuery.filter.find((x) => x.field === this.search().field);
|
|
589
608
|
if (field) {
|
|
590
|
-
field.value = this.search.value || '';
|
|
609
|
+
field.value = this.search().value || '';
|
|
591
610
|
}
|
|
592
611
|
else {
|
|
593
|
-
|
|
612
|
+
tableQuery.filter = [...tableQuery.filter, this.search()];
|
|
594
613
|
}
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
614
|
+
this.tableQuery.set(tableQuery);
|
|
615
|
+
this.tableCom().change(1);
|
|
597
616
|
}
|
|
598
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
599
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: XFindComponent, isStandalone: true, selector: "x-find", providers: [XValueAccessor(XFindComponent)], viewQueries: [{ propertyName: "find", first: true, predicate: ["find"], descendants: true, static: true }, { propertyName: "dialogCom", first: true, predicate: ["dialogCom"], descendants: true }, { propertyName: "tableCom", first: true, predicate: ["tableCom"], descendants: true }, { propertyName: "treeCom", first: true, predicate: ["treeCom"], descendants: true }, { propertyName: "buttonCom", first: true, predicate: ["buttonCom"], descendants: true }, { propertyName: "tableRef", first: true, predicate: ["tableRef"], descendants: true }, { propertyName: "treeRef", first: true, predicate: ["treeRef"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #find\r\n class=\"x-find\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n [ngClass]=\"classMap\"\r\n>\r\n @if (label) {\r\n <label [class.x-find-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n }\r\n <div class=\"x-find-row\">\r\n <x-button\r\n #buttonCom\r\n icon=\"fto-search\"\r\n [onlyIcon]=\"!bordered\"\r\n [size]=\"size\"\r\n [disabled]=\"disabled\"\r\n attrType=\"button\"\r\n (click)=\"showModal()\"\r\n ></x-button>\r\n <div class=\"x-find-tags\">\r\n @if (multiple) {\r\n @for (item of value; track item.id; let i = $index) {\r\n <x-tag closable [size]=\"size\" [bordered]=\"bordered\" [disabled]=\"disabled\" (close)=\"tagClose(i)\">{{\r\n item[columnLabel]\r\n }}</x-tag>\r\n }\r\n } @else if (value) {\r\n <x-tag closable [disabled]=\"disabled\" [bordered]=\"bordered\" [size]=\"size\" (close)=\"tagClose()\">{{\r\n value[columnLabel]\r\n }}</x-tag>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<x-dialog\r\n #dialogCom\r\n [title]=\"dialogTitle\"\r\n [width]=\"dialogWidth\"\r\n [height]=\"dialogHeight\"\r\n [buttonsCenter]=\"dialogButtonsCenter\"\r\n [className]=\"'x-find-dialog-container'\"\r\n [(visible)]=\"dialogVisible\"\r\n (visibleChange)=\"dialogVisibleChange.emit($event)\"\r\n (closeDone)=\"dialogCloseDone()\"\r\n (cancel)=\"closeModal()\"\r\n (close)=\"closeModal()\"\r\n (confirm)=\"sure()\"\r\n>\r\n <div class=\"x-find-dialog\" [class.x-find-dialog-tree-table]=\"hasTable && hasTree\">\r\n @if (hasTree) {\r\n <div class=\"x-find-dialog-tree\" #treeRef [style.height.px]=\"hasTreeTable && multiple && height\">\r\n <x-tree\r\n #treeCom\r\n [data]=\"treeData\"\r\n nodeHeight=\"1.8\"\r\n [(manual)]=\"dialogVisible\"\r\n [activatedId]=\"treeActivatedId\"\r\n [expandedLevel]=\"treeExpandedLevel\"\r\n (activatedChange)=\"treeActivatedClick($event)\"\r\n [checkbox]=\"hasTreeMultiple\"\r\n [checked]=\"treeChecked\"\r\n (checkboxChange)=\"treeCheckboxChange($event)\"\r\n [levelCheck]=\"!hasTreeMultiple\"\r\n ></x-tree>\r\n </div>\r\n }\r\n @if (hasTable) {\r\n <div class=\"x-find-dialog-table\" #tableRef>\r\n @if (hasSearch) {\r\n <div class=\"x-find-search\">\r\n <x-input\r\n [label]=\"search.label\"\r\n direction=\"row\"\r\n (xKeydown)=\"searchKeyDown($event)\"\r\n [(ngModel)]=\"search.value\"\r\n ></x-input>\r\n <x-button type=\"primary\" plain (click)=\"searchClick()\">{{ search.button || '\u67E5\u8BE2' }}</x-button>\r\n </div>\r\n }\r\n <x-table\r\n #tableCom\r\n [data]=\"tableData\"\r\n [columns]=\"tableColumns\"\r\n [(manual)]=\"dialogVisible\"\r\n [(index)]=\"tableIndex\"\r\n [(size)]=\"tableSize\"\r\n [query]=\"tableQuery\"\r\n [total]=\"tableTotal\"\r\n [allowSelectRow]=\"!multiple\"\r\n [allowCheckRow]=\"multiple\"\r\n [checkedRow]=\"tableCheckedRow\"\r\n [loading]=\"tableLoading\"\r\n (indexChange)=\"tableIndexChange.emit($event)\"\r\n (sortChange)=\"tableSortChange.emit($event)\"\r\n [(activatedRow)]=\"tableActivatedRow\"\r\n (activatedRowChange)=\"tableActivatedRowChange($event)\"\r\n [rowHeight]=\"tableRowHeight\"\r\n [bodyHeight]=\"tableBodyHeight\"\r\n [virtualScroll]=\"tableVirtualScroll\"\r\n [minBufferPx]=\"tableMinBufferPx\"\r\n [maxBufferPx]=\"tableMaxBufferPx\"\r\n [adaptionHeight]=\"tableAdaptionHeight\"\r\n [docPercent]=\"tableDocPercent\"\r\n ></x-table>\r\n </div>\r\n }\r\n @if (multiple) {\r\n <div class=\"x-find-dialog-checked\" [class.x-find-empty]=\"getEmpty\" [style.height.px]=\"height\">\r\n @if (getEmpty) {\r\n <x-empty [content]=\"dialogEmptyContent\"></x-empty>\r\n }\r\n <div class=\"x-find-dialog-tags\">\r\n @for (item of temp; track item.id; let i = $index) {\r\n <x-tag closable (close)=\"tempClose(i, item)\">\r\n <span>{{ item[columnLabel] }}</span>\r\n </x-tag>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</x-dialog>\r\n\r\n<ng-template #treeLabelTpl let-node=\"$node\">\r\n <div class=\"x-find-dialog-tree-node\">\r\n <span>{{ node.label }} </span>\r\n @if (node.$checked) {\r\n <x-icon type=\"fto-check\"></x-icon>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-find{margin:0;padding:0;width:100%}.x-find.x-flex{display:flex}.x-find.x-justify-start{justify-content:flex-start}.x-find.x-justify-center{justify-content:center}.x-find.x-justify-end{justify-content:flex-end}.x-find.x-justify-space-between{justify-content:space-between}.x-find.x-justify-space-around{justify-content:space-around}.x-find.x-align-start{align-items:flex-start}.x-find.x-align-center{align-items:center}.x-find.x-align-end{align-items:flex-end}.x-find.x-direction-column{flex-direction:column}.x-find.x-direction-column-reverse{flex-direction:column-reverse}.x-find.x-direction-row{flex-direction:row}.x-find.x-direction-row-reverse{flex-direction:row-reverse}.x-find>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-find>label.x-text-align-start{text-align:start}.x-find>label.x-text-align-center{text-align:center}.x-find>label.x-text-align-end{text-align:end}.x-find-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-find-row{flex:1;display:flex;align-items:flex-start;position:relative}.x-find-tags{margin:-.0625rem -.0625rem -.0625rem .4375rem}.x-find-tags>x-tag{margin:.0625rem}.x-find.x-required>label{color:var(--x-danger)}.x-find.x-direction-row>label{padding:0 .5rem 0 0}.x-find.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-find.x-direction-column,.x-find.x-direction-column-reverse{align-items:inherit}.x-find-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-find-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-find-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-find-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-find-small .x-find-tags{margin-top:-.1875rem}.x-find-small .x-find-tags>x-tag{margin-top:.125rem}.x-find-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-find-mini .x-find-tags{margin-top:-.25rem}.x-find-mini .x-find-tags>x-tag{margin-top:.125rem}.x-find-dialog{flex:1;display:flex}.x-find-dialog-table{flex:1;min-height:18.75rem;height:fit-content}.x-find-dialog-tree{flex:1;min-height:18.75rem;max-height:25rem;overflow-y:auto}.x-find-dialog-tree .x-tree-node-content.x-activated{color:var(--x-primary)}.x-find-dialog-tree-node{flex:1;display:flex;align-items:center;justify-content:space-between}.x-find-dialog-tree-node>span{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}.x-find-dialog-tree-table .x-find-dialog-tree{flex:initial;min-height:initial;max-height:initial;width:14rem;margin-right:1rem;padding-right:1rem;border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-find-dialog-checked{margin-left:1rem;border-left:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:1rem;width:10rem;overflow-y:auto;height:100%}.x-find-dialog-checked x-tag{display:block}.x-find-dialog-checked x-tag:not(:first-child){margin-top:.5rem}.x-find-dialog-checked x-tag .x-tag{width:100%;display:flex;justify-content:space-between}.x-find-dialog-checked x-tag .x-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-find-dialog-checked.x-find-empty{display:flex;align-items:center;justify-content:center}.x-find-dialog-container .x-dialog-content{overflow:initial}.x-find-search{display:flex;padding:.3rem}.x-find-search .x-input,.x-find-search x-input{width:15rem}.x-find-search .x-button{margin-left:.5rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XDialogComponent, selector: "x-dialog" }, { kind: "component", type: XTableComponent, selector: "x-table" }, { kind: "component", type: XTreeComponent, selector: "x-tree" }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
617
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
618
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XFindComponent, isStandalone: true, selector: "x-find", providers: [XValueAccessor(XFindComponent)], viewQueries: [{ propertyName: "find", first: true, predicate: ["find"], descendants: true, isSignal: true }, { propertyName: "dialogCom", first: true, predicate: ["dialogCom"], descendants: true, isSignal: true }, { propertyName: "tableCom", first: true, predicate: ["tableCom"], descendants: true, isSignal: true }, { propertyName: "treeCom", first: true, predicate: ["treeCom"], descendants: true, isSignal: true }, { propertyName: "buttonCom", first: true, predicate: ["buttonCom"], descendants: true, isSignal: true }, { propertyName: "tableRef", first: true, predicate: ["tableRef"], descendants: true, isSignal: true }, { propertyName: "treeRef", first: true, predicate: ["treeRef"], descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #find\r\n class=\"x-find\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-checked]=\"value()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [ngClass]=\"classMap()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-find-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n <div class=\"x-find-row\">\r\n <x-button\r\n #buttonCom\r\n icon=\"fto-search\"\r\n [onlyIcon]=\"!bordered()\"\r\n [size]=\"size()\"\r\n [disabled]=\"disabledComputed()\"\r\n attrType=\"button\"\r\n (click)=\"showModal()\"\r\n flat\r\n plain\r\n ></x-button>\r\n <div class=\"x-find-tags\">\r\n @if (multiple()) {\r\n @for (item of value(); track item.id; let i = $index) {\r\n <x-tag\r\n closable\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [disabled]=\"disabledComputed()\"\r\n (close)=\"tagClose(i)\"\r\n >{{ item[columnLabel()] }}</x-tag\r\n >\r\n }\r\n } @else if (value()) {\r\n <x-tag closable [disabled]=\"disabledComputed()\" [bordered]=\"bordered()\" [size]=\"size()\" (close)=\"tagClose()\">{{\r\n value()[columnLabel()]\r\n }}</x-tag>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<x-dialog\r\n #dialogCom\r\n [title]=\"dialogTitle()\"\r\n [width]=\"dialogWidthSignal()\"\r\n [height]=\"dialogHeight()\"\r\n [buttonsCenter]=\"dialogButtonsCenter()\"\r\n [className]=\"'x-find-dialog-container'\"\r\n [(visible)]=\"dialogVisible\"\r\n (closeDone)=\"dialogCloseDone()\"\r\n (confirm)=\"sure()\"\r\n>\r\n <div class=\"x-find-dialog\" [class.x-find-dialog-tree-table]=\"hasTable() && hasTree()\">\r\n @if (hasTree()) {\r\n <div class=\"x-find-dialog-tree\" #treeRef [style.height.px]=\"hasTreeTable() && multiple() && height()\">\r\n <x-tree\r\n #treeCom\r\n [data]=\"treeData()\"\r\n [nodeHeight]=\"'1.8rem'\"\r\n [(manual)]=\"dialogVisible\"\r\n [activatedId]=\"treeActivatedId()\"\r\n [expandedLevel]=\"treeExpandedLevel()\"\r\n (activatedChange)=\"treeActivatedClick($event)\"\r\n [checkbox]=\"hasTreeMultiple()\"\r\n [checked]=\"treeChecked()\"\r\n (checkboxChange)=\"treeCheckboxChange($event)\"\r\n [levelCheck]=\"!hasTreeMultiple()\"\r\n ></x-tree>\r\n </div>\r\n }\r\n @if (hasTable()) {\r\n <div class=\"x-find-dialog-table\" #tableRef>\r\n @if (hasSearch()) {\r\n <div class=\"x-find-search\">\r\n <x-input\r\n [label]=\"search()!.label!\"\r\n direction=\"row\"\r\n (xKeydown)=\"searchKeyDown($event)\"\r\n [(ngModel)]=\"search()!.value\"\r\n ></x-input>\r\n <x-button plain text (click)=\"searchClick()\">{{ search()!.button || '\u67E5\u8BE2' }}</x-button>\r\n </div>\r\n }\r\n <x-table\r\n #tableCom\r\n [data]=\"tableData()\"\r\n [columns]=\"tableColumnsSignal()\"\r\n [(manual)]=\"dialogVisible\"\r\n [(index)]=\"tableIndex\"\r\n [(size)]=\"tableSize\"\r\n [(query)]=\"tableQuery\"\r\n [(total)]=\"tableTotal\"\r\n [allowSelectRow]=\"!multiple()\"\r\n [allowCheckRow]=\"multiple()\"\r\n [checkedRow]=\"tableCheckedRow()\"\r\n [loading]=\"tableLoading()\"\r\n (sortChange)=\"tableSortChange.emit($event)\"\r\n [(activatedRow)]=\"tableActivatedRow\"\r\n (activatedRowChange)=\"tableActivatedRowChange($event!)\"\r\n [rowHeight]=\"tableRowHeight()\"\r\n [bodyHeight]=\"tableBodyHeight()!\"\r\n [virtualScroll]=\"tableVirtualScroll()\"\r\n [minBufferPx]=\"tableMinBufferPx()\"\r\n [maxBufferPx]=\"tableMaxBufferPx()\"\r\n [adaptionHeight]=\"tableAdaptionHeight()!\"\r\n [docPercent]=\"tableDocPercent()\"\r\n ></x-table>\r\n </div>\r\n }\r\n @if (multiple()) {\r\n <div class=\"x-find-dialog-checked\" [class.x-find-empty]=\"getEmpty()\" [style.height.px]=\"height()\">\r\n @if (getEmpty()) {\r\n <x-empty [content]=\"dialogEmptyContent()\"></x-empty>\r\n }\r\n <div class=\"x-find-dialog-tags\">\r\n @for (item of temp(); track item.id; let i = $index) {\r\n <x-tag closable (close)=\"tempClose(i, item)\">\r\n <span>{{ item[columnLabel()] }}</span>\r\n </x-tag>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</x-dialog>\r\n\r\n<ng-template #treeLabelTpl let-node=\"$node\">\r\n <div class=\"x-find-dialog-tree-node\">\r\n <span>{{ node.label }} </span>\r\n @if (node.$checked) {\r\n <x-icon type=\"fto-check\"></x-icon>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-find{margin:0;padding:0;width:100%}.x-find.x-flex{display:flex}.x-find.x-justify-start{justify-content:flex-start}.x-find.x-justify-center{justify-content:center}.x-find.x-justify-end{justify-content:flex-end}.x-find.x-justify-space-between{justify-content:space-between}.x-find.x-justify-space-around{justify-content:space-around}.x-find.x-align-start{align-items:flex-start}.x-find.x-align-center{align-items:center}.x-find.x-align-end{align-items:flex-end}.x-find.x-direction-column{flex-direction:column}.x-find.x-direction-column-reverse{flex-direction:column-reverse}.x-find.x-direction-row{flex-direction:row}.x-find.x-direction-row-reverse{flex-direction:row-reverse}.x-find>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-find>label.x-text-align-start{text-align:start}.x-find>label.x-text-align-center{text-align:center}.x-find>label.x-text-align-end{text-align:end}.x-find-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-find-row{flex:1;display:flex;align-items:flex-start;position:relative}.x-find-tags{margin:-.0625rem -.0625rem -.0625rem .4375rem}.x-find-tags>x-tag{margin:.0625rem}.x-find.x-required>label{color:var(--x-danger)}.x-find.x-direction-row>label{padding:0 .5rem 0 0}.x-find.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-find.x-direction-column,.x-find.x-direction-column-reverse{align-items:inherit}.x-find-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-find-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-find-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-find-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-find-small .x-find-tags{margin-top:-.1875rem}.x-find-small .x-find-tags>x-tag{margin-top:.125rem}.x-find-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-find-mini .x-find-tags{margin-top:-.25rem}.x-find-mini .x-find-tags>x-tag{margin-top:.125rem}.x-find-dialog{flex:1;display:flex}.x-find-dialog-table{flex:1;min-height:18.75rem;height:fit-content}.x-find-dialog-tree{flex:1;min-height:18.75rem;max-height:25rem;overflow-y:auto}.x-find-dialog-tree .x-tree-node-content.x-activated{color:var(--x-primary)}.x-find-dialog-tree-node{flex:1;display:flex;align-items:center;justify-content:space-between}.x-find-dialog-tree-node>span{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}.x-find-dialog-tree-table .x-find-dialog-tree{flex:initial;min-height:initial;max-height:initial;width:14rem;margin-right:1rem;padding-right:1rem;border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-find-dialog-checked{margin-left:1rem;border-left:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:1rem;width:10rem;overflow-y:auto;height:100%}.x-find-dialog-checked x-tag{display:block}.x-find-dialog-checked x-tag:not(:first-child){margin-top:.5rem}.x-find-dialog-checked x-tag .x-tag{width:100%;display:flex;justify-content:space-between}.x-find-dialog-checked x-tag .x-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-find-dialog-checked.x-find-empty{display:flex;align-items:center;justify-content:center}.x-find-dialog-container .x-dialog-content{overflow:initial}.x-find-search{display:flex;padding:.3rem}.x-find-search .x-input,.x-find-search x-input{width:15rem}.x-find-search .x-button{margin-left:.5rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XDialogComponent, selector: "x-dialog" }, { kind: "component", type: XTableComponent, selector: "x-table" }, { kind: "component", type: XTreeComponent, selector: "x-tree" }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
600
619
|
}
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindComponent, decorators: [{
|
|
602
621
|
type: Component,
|
|
603
622
|
args: [{ selector: `${XFindPrefix}`, standalone: true, imports: [
|
|
604
623
|
NgClass,
|
|
@@ -611,38 +630,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
611
630
|
XTreeComponent,
|
|
612
631
|
XIconComponent,
|
|
613
632
|
XEmptyComponent,
|
|
614
|
-
XInputComponent
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
}], propDecorators: { find: [{
|
|
618
|
-
type: ViewChild,
|
|
619
|
-
args: ['find', { static: true }]
|
|
620
|
-
}], dialogCom: [{
|
|
621
|
-
type: ViewChild,
|
|
622
|
-
args: ['dialogCom']
|
|
623
|
-
}], tableCom: [{
|
|
624
|
-
type: ViewChild,
|
|
625
|
-
args: ['tableCom']
|
|
626
|
-
}], treeCom: [{
|
|
627
|
-
type: ViewChild,
|
|
628
|
-
args: ['treeCom']
|
|
629
|
-
}], buttonCom: [{
|
|
630
|
-
type: ViewChild,
|
|
631
|
-
args: ['buttonCom']
|
|
632
|
-
}], tableRef: [{
|
|
633
|
-
type: ViewChild,
|
|
634
|
-
args: ['tableRef']
|
|
635
|
-
}], treeRef: [{
|
|
636
|
-
type: ViewChild,
|
|
637
|
-
args: ['treeRef']
|
|
638
|
-
}] } });
|
|
633
|
+
XInputComponent
|
|
634
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XFindComponent)], template: "<div\r\n #find\r\n class=\"x-find\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-checked]=\"value()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [ngClass]=\"classMap()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-find-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n <div class=\"x-find-row\">\r\n <x-button\r\n #buttonCom\r\n icon=\"fto-search\"\r\n [onlyIcon]=\"!bordered()\"\r\n [size]=\"size()\"\r\n [disabled]=\"disabledComputed()\"\r\n attrType=\"button\"\r\n (click)=\"showModal()\"\r\n flat\r\n plain\r\n ></x-button>\r\n <div class=\"x-find-tags\">\r\n @if (multiple()) {\r\n @for (item of value(); track item.id; let i = $index) {\r\n <x-tag\r\n closable\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [disabled]=\"disabledComputed()\"\r\n (close)=\"tagClose(i)\"\r\n >{{ item[columnLabel()] }}</x-tag\r\n >\r\n }\r\n } @else if (value()) {\r\n <x-tag closable [disabled]=\"disabledComputed()\" [bordered]=\"bordered()\" [size]=\"size()\" (close)=\"tagClose()\">{{\r\n value()[columnLabel()]\r\n }}</x-tag>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<x-dialog\r\n #dialogCom\r\n [title]=\"dialogTitle()\"\r\n [width]=\"dialogWidthSignal()\"\r\n [height]=\"dialogHeight()\"\r\n [buttonsCenter]=\"dialogButtonsCenter()\"\r\n [className]=\"'x-find-dialog-container'\"\r\n [(visible)]=\"dialogVisible\"\r\n (closeDone)=\"dialogCloseDone()\"\r\n (confirm)=\"sure()\"\r\n>\r\n <div class=\"x-find-dialog\" [class.x-find-dialog-tree-table]=\"hasTable() && hasTree()\">\r\n @if (hasTree()) {\r\n <div class=\"x-find-dialog-tree\" #treeRef [style.height.px]=\"hasTreeTable() && multiple() && height()\">\r\n <x-tree\r\n #treeCom\r\n [data]=\"treeData()\"\r\n [nodeHeight]=\"'1.8rem'\"\r\n [(manual)]=\"dialogVisible\"\r\n [activatedId]=\"treeActivatedId()\"\r\n [expandedLevel]=\"treeExpandedLevel()\"\r\n (activatedChange)=\"treeActivatedClick($event)\"\r\n [checkbox]=\"hasTreeMultiple()\"\r\n [checked]=\"treeChecked()\"\r\n (checkboxChange)=\"treeCheckboxChange($event)\"\r\n [levelCheck]=\"!hasTreeMultiple()\"\r\n ></x-tree>\r\n </div>\r\n }\r\n @if (hasTable()) {\r\n <div class=\"x-find-dialog-table\" #tableRef>\r\n @if (hasSearch()) {\r\n <div class=\"x-find-search\">\r\n <x-input\r\n [label]=\"search()!.label!\"\r\n direction=\"row\"\r\n (xKeydown)=\"searchKeyDown($event)\"\r\n [(ngModel)]=\"search()!.value\"\r\n ></x-input>\r\n <x-button plain text (click)=\"searchClick()\">{{ search()!.button || '\u67E5\u8BE2' }}</x-button>\r\n </div>\r\n }\r\n <x-table\r\n #tableCom\r\n [data]=\"tableData()\"\r\n [columns]=\"tableColumnsSignal()\"\r\n [(manual)]=\"dialogVisible\"\r\n [(index)]=\"tableIndex\"\r\n [(size)]=\"tableSize\"\r\n [(query)]=\"tableQuery\"\r\n [(total)]=\"tableTotal\"\r\n [allowSelectRow]=\"!multiple()\"\r\n [allowCheckRow]=\"multiple()\"\r\n [checkedRow]=\"tableCheckedRow()\"\r\n [loading]=\"tableLoading()\"\r\n (sortChange)=\"tableSortChange.emit($event)\"\r\n [(activatedRow)]=\"tableActivatedRow\"\r\n (activatedRowChange)=\"tableActivatedRowChange($event!)\"\r\n [rowHeight]=\"tableRowHeight()\"\r\n [bodyHeight]=\"tableBodyHeight()!\"\r\n [virtualScroll]=\"tableVirtualScroll()\"\r\n [minBufferPx]=\"tableMinBufferPx()\"\r\n [maxBufferPx]=\"tableMaxBufferPx()\"\r\n [adaptionHeight]=\"tableAdaptionHeight()!\"\r\n [docPercent]=\"tableDocPercent()\"\r\n ></x-table>\r\n </div>\r\n }\r\n @if (multiple()) {\r\n <div class=\"x-find-dialog-checked\" [class.x-find-empty]=\"getEmpty()\" [style.height.px]=\"height()\">\r\n @if (getEmpty()) {\r\n <x-empty [content]=\"dialogEmptyContent()\"></x-empty>\r\n }\r\n <div class=\"x-find-dialog-tags\">\r\n @for (item of temp(); track item.id; let i = $index) {\r\n <x-tag closable (close)=\"tempClose(i, item)\">\r\n <span>{{ item[columnLabel()] }}</span>\r\n </x-tag>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</x-dialog>\r\n\r\n<ng-template #treeLabelTpl let-node=\"$node\">\r\n <div class=\"x-find-dialog-tree-node\">\r\n <span>{{ node.label }} </span>\r\n @if (node.$checked) {\r\n <x-icon type=\"fto-check\"></x-icon>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-find{margin:0;padding:0;width:100%}.x-find.x-flex{display:flex}.x-find.x-justify-start{justify-content:flex-start}.x-find.x-justify-center{justify-content:center}.x-find.x-justify-end{justify-content:flex-end}.x-find.x-justify-space-between{justify-content:space-between}.x-find.x-justify-space-around{justify-content:space-around}.x-find.x-align-start{align-items:flex-start}.x-find.x-align-center{align-items:center}.x-find.x-align-end{align-items:flex-end}.x-find.x-direction-column{flex-direction:column}.x-find.x-direction-column-reverse{flex-direction:column-reverse}.x-find.x-direction-row{flex-direction:row}.x-find.x-direction-row-reverse{flex-direction:row-reverse}.x-find>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-find>label.x-text-align-start{text-align:start}.x-find>label.x-text-align-center{text-align:center}.x-find>label.x-text-align-end{text-align:end}.x-find-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-find-row{flex:1;display:flex;align-items:flex-start;position:relative}.x-find-tags{margin:-.0625rem -.0625rem -.0625rem .4375rem}.x-find-tags>x-tag{margin:.0625rem}.x-find.x-required>label{color:var(--x-danger)}.x-find.x-direction-row>label{padding:0 .5rem 0 0}.x-find.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-find.x-direction-column,.x-find.x-direction-column-reverse{align-items:inherit}.x-find-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-find-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-find-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-find-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-find-small .x-find-tags{margin-top:-.1875rem}.x-find-small .x-find-tags>x-tag{margin-top:.125rem}.x-find-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-find-mini .x-find-tags{margin-top:-.25rem}.x-find-mini .x-find-tags>x-tag{margin-top:.125rem}.x-find-dialog{flex:1;display:flex}.x-find-dialog-table{flex:1;min-height:18.75rem;height:fit-content}.x-find-dialog-tree{flex:1;min-height:18.75rem;max-height:25rem;overflow-y:auto}.x-find-dialog-tree .x-tree-node-content.x-activated{color:var(--x-primary)}.x-find-dialog-tree-node{flex:1;display:flex;align-items:center;justify-content:space-between}.x-find-dialog-tree-node>span{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}.x-find-dialog-tree-table .x-find-dialog-tree{flex:initial;min-height:initial;max-height:initial;width:14rem;margin-right:1rem;padding-right:1rem;border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-find-dialog-checked{margin-left:1rem;border-left:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:1rem;width:10rem;overflow-y:auto;height:100%}.x-find-dialog-checked x-tag{display:block}.x-find-dialog-checked x-tag:not(:first-child){margin-top:.5rem}.x-find-dialog-checked x-tag .x-tag{width:100%;display:flex;justify-content:space-between}.x-find-dialog-checked x-tag .x-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-find-dialog-checked.x-find-empty{display:flex;align-items:center;justify-content:center}.x-find-dialog-container .x-dialog-content{overflow:initial}.x-find-search{display:flex;padding:.3rem}.x-find-search .x-input,.x-find-search x-input{width:15rem}.x-find-search .x-button{margin-left:.5rem}\n"] }]
|
|
635
|
+
}] });
|
|
639
636
|
|
|
640
637
|
class XFindModule {
|
|
641
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
642
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
643
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
638
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
639
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: XFindModule, imports: [XFindComponent], exports: [XFindComponent] }); }
|
|
640
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindModule, imports: [XFindComponent] }); }
|
|
644
641
|
}
|
|
645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XFindModule, decorators: [{
|
|
646
643
|
type: NgModule,
|
|
647
644
|
args: [{
|
|
648
645
|
exports: [XFindComponent],
|