@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,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
3
|
-
import {
|
|
4
|
-
import { __decorate } from 'tslib';
|
|
5
|
-
import { XAlertProperty, XAlertComponent } from '@ng-nest/ui/alert';
|
|
2
|
+
import { InjectionToken, input, model, output, Component, inject, Renderer2, ViewContainerRef, viewChild, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, contentChildren, EventEmitter, HostListener, Directive, ElementRef, NgModule, RendererFactory2, TemplateRef, Injectable } from '@angular/core';
|
|
3
|
+
import { XPropertyFunction, XToCssPixelValue, XToBoolean, XToNumber, XProperty, XConfigService, XIsFunction, XMoveBoxAnimation, XOpacityAnimation, XFillDefault } from '@ng-nest/ui/core';
|
|
6
4
|
import { XPortalService, PortalResizablePrefix } from '@ng-nest/ui/portal';
|
|
7
5
|
import { Subject, filter, take } from 'rxjs';
|
|
8
6
|
import { Overlay } from '@angular/cdk/overlay';
|
|
9
|
-
import { XI18nService } from '@ng-nest/ui/i18n';
|
|
7
|
+
import { XI18nService, zh_CN } from '@ng-nest/ui/i18n';
|
|
10
8
|
import { map, takeUntil } from 'rxjs/operators';
|
|
9
|
+
import { XAlertComponent } from '@ng-nest/ui/alert';
|
|
11
10
|
import { XButtonComponent, XButtonsComponent } from '@ng-nest/ui/button';
|
|
12
11
|
import { XOutletDirective } from '@ng-nest/ui/outlet';
|
|
13
12
|
import { NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
13
|
+
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
14
14
|
import * as i2 from '@angular/cdk/portal';
|
|
15
15
|
import { BasePortalOutlet, CdkPortalOutlet, PortalModule, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
|
|
16
16
|
import * as i1 from '@angular/cdk/drag-drop';
|
|
17
|
-
import {
|
|
17
|
+
import { CdkDrag, CdkDragHandle, DragDropModule } from '@angular/cdk/drag-drop';
|
|
18
18
|
import { XResizableDirective } from '@ng-nest/ui/resizable';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -29,167 +29,179 @@ const X_DIALOG_DATA = new InjectionToken('XDialogData');
|
|
|
29
29
|
/**
|
|
30
30
|
* Dialog Property
|
|
31
31
|
*/
|
|
32
|
-
class XDialogProperty extends
|
|
32
|
+
class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @zh_CN 标题
|
|
37
|
+
* @en_US Title
|
|
38
|
+
*/
|
|
39
|
+
this.title = input();
|
|
40
|
+
/**
|
|
41
|
+
* @zh_CN 显示/隐藏
|
|
42
|
+
* @en_US Show/hide
|
|
43
|
+
*/
|
|
44
|
+
this.visible = model(false);
|
|
45
|
+
/**
|
|
46
|
+
* @zh_CN 方位,九宫格
|
|
47
|
+
* @en_US Direction, nine grid
|
|
48
|
+
*/
|
|
49
|
+
this.placement = input(this.config?.placement ?? 'center');
|
|
50
|
+
/**
|
|
51
|
+
* @zh_CN 偏移距离
|
|
52
|
+
* @en_US Offset distance
|
|
53
|
+
*/
|
|
54
|
+
this.offset = input(this.config?.offset ?? '1rem', { transform: XToCssPixelValue });
|
|
36
55
|
/**
|
|
37
56
|
* @zh_CN 类型
|
|
38
57
|
* @en_US Types of
|
|
39
58
|
*/
|
|
40
|
-
this.type = 'info';
|
|
59
|
+
this.type = input('info');
|
|
60
|
+
/**
|
|
61
|
+
* @zh_CN 隐藏关闭按钮
|
|
62
|
+
* @en_US Hide close button
|
|
63
|
+
*/
|
|
64
|
+
this.hideClose = input(false, { transform: XToBoolean });
|
|
65
|
+
/**
|
|
66
|
+
* @zh_CN 使用文本关闭按钮
|
|
67
|
+
* @en_US Use the text to close button
|
|
68
|
+
*/
|
|
69
|
+
this.closeText = input();
|
|
70
|
+
/**
|
|
71
|
+
* @zh_CN 调整弹框的大小
|
|
72
|
+
* @en_US Adjust the size of the box
|
|
73
|
+
*/
|
|
74
|
+
this.resizable = input(this.config?.resizable ?? false, { transform: XToBoolean });
|
|
75
|
+
/**
|
|
76
|
+
* @zh_CN 开启 resizable 调整大小,偏移屏幕左边
|
|
77
|
+
* @en_US Open the resizable resize, offset screen left
|
|
78
|
+
*/
|
|
79
|
+
this.offsetLeft = input(0, { transform: XToNumber });
|
|
80
|
+
/**
|
|
81
|
+
* @zh_CN 开启 resizable 调整大小,偏移屏幕顶部
|
|
82
|
+
* @en_US Open the resizable resize, offset screen top
|
|
83
|
+
*/
|
|
84
|
+
this.offsetTop = input(0, { transform: XToNumber });
|
|
85
|
+
/**
|
|
86
|
+
* @zh_CN 宽度
|
|
87
|
+
* @en_US Width
|
|
88
|
+
*/
|
|
89
|
+
this.width = input(this.config?.width ?? '32rem', { transform: XToCssPixelValue });
|
|
90
|
+
/**
|
|
91
|
+
* @zh_CN 高度
|
|
92
|
+
* @en_US Height
|
|
93
|
+
*/
|
|
94
|
+
this.height = input('', { transform: XToCssPixelValue });
|
|
95
|
+
/**
|
|
96
|
+
* @zh_CN 最小宽度
|
|
97
|
+
* @en_US Min width
|
|
98
|
+
*/
|
|
99
|
+
this.minWidth = input(this.config?.minWidth ?? '18rem', { transform: XToCssPixelValue });
|
|
100
|
+
/**
|
|
101
|
+
* @zh_CN 最小高度
|
|
102
|
+
* @en_US Min height
|
|
103
|
+
*/
|
|
104
|
+
this.minHeight = input(this.config?.minHeight ?? '8rem', { transform: XToCssPixelValue });
|
|
105
|
+
/**
|
|
106
|
+
* @zh_CN 样式主题
|
|
107
|
+
* @en_US Style theme
|
|
108
|
+
*/
|
|
109
|
+
this.effect = input(this.config?.effect ?? 'white');
|
|
110
|
+
/**
|
|
111
|
+
* @zh_CN 底部自定义模板
|
|
112
|
+
* @en_US Custom template at the bottom
|
|
113
|
+
*/
|
|
114
|
+
this.footer = input();
|
|
115
|
+
/**
|
|
116
|
+
* @zh_CN 显示取消按钮
|
|
117
|
+
* @en_US Show cancel button
|
|
118
|
+
*/
|
|
119
|
+
this.showCancel = input(this.config?.showCancel ?? true, { transform: XToBoolean });
|
|
120
|
+
/**
|
|
121
|
+
* @zh_CN 取消按钮文字
|
|
122
|
+
* @en_US Cancel button text
|
|
123
|
+
* @default '取消'
|
|
124
|
+
*/
|
|
125
|
+
this.cancelText = input(this.config?.cancelText ?? '');
|
|
126
|
+
/**
|
|
127
|
+
* @zh_CN 显示确认按钮
|
|
128
|
+
* @en_US Show confirmation button
|
|
129
|
+
*/
|
|
130
|
+
this.showConfirm = input(this.config?.showConfirm ?? true, { transform: XToBoolean });
|
|
131
|
+
/**
|
|
132
|
+
* @zh_CN 确认按钮文字
|
|
133
|
+
* @en_US Confirm button text
|
|
134
|
+
* @default '确认'
|
|
135
|
+
*/
|
|
136
|
+
this.confirmText = input(this.config?.confirmText ?? '');
|
|
137
|
+
/**
|
|
138
|
+
* @zh_CN 点击遮罩关闭
|
|
139
|
+
* @en_US Click the mask to close
|
|
140
|
+
*/
|
|
141
|
+
this.backdropClose = input(this.config?.backdropClose ?? true, { transform: XToBoolean });
|
|
142
|
+
/**
|
|
143
|
+
* @zh_CN 是否显示背景遮罩
|
|
144
|
+
* @en_US Whether to display the background mask
|
|
145
|
+
*/
|
|
146
|
+
this.hasBackdrop = input(this.config?.hasBackdrop ?? true, { transform: XToBoolean });
|
|
147
|
+
/**
|
|
148
|
+
* @zh_CN 自定义样式名
|
|
149
|
+
* @en_US Custom style name
|
|
150
|
+
*/
|
|
151
|
+
this.className = input(this.config?.className ?? '');
|
|
152
|
+
/**
|
|
153
|
+
* @zh_CN 按钮居中
|
|
154
|
+
* @en_US Button center
|
|
155
|
+
*/
|
|
156
|
+
this.buttonsCenter = input(this.config?.buttonsCenter ?? false, { transform: XToBoolean });
|
|
157
|
+
/**
|
|
158
|
+
* @zh_CN 拖动对话框
|
|
159
|
+
* @en_US Drag dialog
|
|
160
|
+
*/
|
|
161
|
+
this.draggable = input(this.config?.draggable ?? false, { transform: XToBoolean });
|
|
162
|
+
/**
|
|
163
|
+
* @zh_CN 最大化弹出框按钮,当启用 resizable 时也会显示
|
|
164
|
+
* @en_US Maximize the bullet box button, Will also display when resizable is enabled
|
|
165
|
+
*/
|
|
166
|
+
this.maximize = input(this.config?.maximize ?? false, { transform: XToBoolean });
|
|
167
|
+
/**
|
|
168
|
+
* @zh_CN 关闭前处理函数
|
|
169
|
+
* @en_US Processing function before closing
|
|
170
|
+
*/
|
|
171
|
+
this.beforeClose = input();
|
|
41
172
|
/**
|
|
42
173
|
* @zh_CN 取消按钮的事件
|
|
43
174
|
* @en_US Cancel button event
|
|
44
175
|
*/
|
|
45
|
-
this.cancel =
|
|
176
|
+
this.cancel = output();
|
|
46
177
|
/**
|
|
47
178
|
* @zh_CN 确认按钮的事件
|
|
48
179
|
* @en_US Confirm button event
|
|
49
180
|
*/
|
|
50
|
-
this.confirm =
|
|
181
|
+
this.confirm = output();
|
|
51
182
|
/**
|
|
52
183
|
* @zh_CN 确认按钮的事件
|
|
53
184
|
* @en_US Confirm button event
|
|
54
185
|
*/
|
|
55
|
-
this.close =
|
|
56
|
-
/**
|
|
57
|
-
* @zh_CN 显示/隐藏改变事件
|
|
58
|
-
* @en_US Show/hide change events
|
|
59
|
-
*/
|
|
60
|
-
this.visibleChange = new EventEmitter();
|
|
186
|
+
this.close = output();
|
|
61
187
|
/**
|
|
62
188
|
* @zh_CN 弹出完成动画加载
|
|
63
189
|
* @en_US Pop up complete animation loading
|
|
64
190
|
*/
|
|
65
|
-
this.showDone =
|
|
191
|
+
this.showDone = output();
|
|
66
192
|
/**
|
|
67
193
|
* @zh_CN 关闭完成动画
|
|
68
194
|
* @en_US Close complete animation
|
|
69
195
|
*/
|
|
70
|
-
this.closeDone =
|
|
196
|
+
this.closeDone = output();
|
|
71
197
|
}
|
|
72
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
73
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
198
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
199
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.1", type: XDialogProperty, selector: "x-dialog-property", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, hideClose: { classPropertyName: "hideClose", publicName: "hideClose", isSignal: true, isRequired: false, transformFunction: null }, closeText: { classPropertyName: "closeText", publicName: "closeText", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, offsetLeft: { classPropertyName: "offsetLeft", publicName: "offsetLeft", isSignal: true, isRequired: false, transformFunction: null }, offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, effect: { classPropertyName: "effect", publicName: "effect", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, showCancel: { classPropertyName: "showCancel", publicName: "showCancel", isSignal: true, isRequired: false, transformFunction: null }, cancelText: { classPropertyName: "cancelText", publicName: "cancelText", isSignal: true, isRequired: false, transformFunction: null }, showConfirm: { classPropertyName: "showConfirm", publicName: "showConfirm", isSignal: true, isRequired: false, transformFunction: null }, confirmText: { classPropertyName: "confirmText", publicName: "confirmText", isSignal: true, isRequired: false, transformFunction: null }, backdropClose: { classPropertyName: "backdropClose", publicName: "backdropClose", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, buttonsCenter: { classPropertyName: "buttonsCenter", publicName: "buttonsCenter", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, maximize: { classPropertyName: "maximize", publicName: "maximize", isSignal: true, isRequired: false, transformFunction: null }, beforeClose: { classPropertyName: "beforeClose", publicName: "beforeClose", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", cancel: "cancel", confirm: "confirm", close: "close", showDone: "showDone", closeDone: "closeDone" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
74
200
|
}
|
|
75
|
-
|
|
76
|
-
XInputBoolean()
|
|
77
|
-
], XDialogProperty.prototype, "visible", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, 'center')
|
|
80
|
-
], XDialogProperty.prototype, "placement", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, '1rem')
|
|
83
|
-
], XDialogProperty.prototype, "offset", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, '32rem')
|
|
86
|
-
], XDialogProperty.prototype, "width", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, '18rem')
|
|
89
|
-
], XDialogProperty.prototype, "minWidth", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, '8rem')
|
|
92
|
-
], XDialogProperty.prototype, "minHeight", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, 'white')
|
|
95
|
-
], XDialogProperty.prototype, "effect", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, true)
|
|
98
|
-
], XDialogProperty.prototype, "showCancel", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
XWithConfig(X_DIALOG_CONFIG_NAME)
|
|
101
|
-
], XDialogProperty.prototype, "cancelText", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, true)
|
|
104
|
-
], XDialogProperty.prototype, "showConfirm", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
XWithConfig(X_DIALOG_CONFIG_NAME)
|
|
107
|
-
], XDialogProperty.prototype, "confirmText", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, true)
|
|
110
|
-
], XDialogProperty.prototype, "backdropClose", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, true)
|
|
113
|
-
], XDialogProperty.prototype, "hasBackdrop", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, '')
|
|
116
|
-
], XDialogProperty.prototype, "className", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
XWithConfig(X_DIALOG_CONFIG_NAME),
|
|
119
|
-
XInputBoolean()
|
|
120
|
-
], XDialogProperty.prototype, "buttonsCenter", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, false),
|
|
123
|
-
XInputBoolean()
|
|
124
|
-
], XDialogProperty.prototype, "draggable", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, false),
|
|
127
|
-
XInputBoolean()
|
|
128
|
-
], XDialogProperty.prototype, "resizable", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
XWithConfig(X_DIALOG_CONFIG_NAME, false),
|
|
131
|
-
XInputBoolean()
|
|
132
|
-
], XDialogProperty.prototype, "maximize", void 0);
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: XDialogProperty, decorators: [{
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogProperty, decorators: [{
|
|
134
202
|
type: Component,
|
|
135
203
|
args: [{ selector: `${XDialogPrefix}-property`, template: '' }]
|
|
136
|
-
}]
|
|
137
|
-
type: Input
|
|
138
|
-
}], placement: [{
|
|
139
|
-
type: Input
|
|
140
|
-
}], offset: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], type: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], width: [{
|
|
145
|
-
type: Input
|
|
146
|
-
}], height: [{
|
|
147
|
-
type: Input
|
|
148
|
-
}], minWidth: [{
|
|
149
|
-
type: Input
|
|
150
|
-
}], minHeight: [{
|
|
151
|
-
type: Input
|
|
152
|
-
}], effect: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], footer: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], showCancel: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], cancelText: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], showConfirm: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], confirmText: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], backdropClose: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], hasBackdrop: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], className: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], buttonsCenter: [{
|
|
171
|
-
type: Input
|
|
172
|
-
}], draggable: [{
|
|
173
|
-
type: Input
|
|
174
|
-
}], resizable: [{
|
|
175
|
-
type: Input
|
|
176
|
-
}], maximize: [{
|
|
177
|
-
type: Input
|
|
178
|
-
}], beforeClose: [{
|
|
179
|
-
type: Input
|
|
180
|
-
}], cancel: [{
|
|
181
|
-
type: Output
|
|
182
|
-
}], confirm: [{
|
|
183
|
-
type: Output
|
|
184
|
-
}], close: [{
|
|
185
|
-
type: Output
|
|
186
|
-
}], visibleChange: [{
|
|
187
|
-
type: Output
|
|
188
|
-
}], showDone: [{
|
|
189
|
-
type: Output
|
|
190
|
-
}], closeDone: [{
|
|
191
|
-
type: Output
|
|
192
|
-
}] } });
|
|
204
|
+
}] });
|
|
193
205
|
/**
|
|
194
206
|
* Dialog Container
|
|
195
207
|
* @selector x-dialog-container
|
|
@@ -201,106 +213,90 @@ const X_DIALOG_CONTAINER = new InjectionToken('X_DIALOG_CONTAINER');
|
|
|
201
213
|
* Dialog Container Property
|
|
202
214
|
*/
|
|
203
215
|
class XDialogContainerProperty extends XProperty {
|
|
204
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
205
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
216
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogContainerProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
217
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: XDialogContainerProperty, selector: "x-dialog-container-property", usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
206
218
|
}
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogContainerProperty, decorators: [{
|
|
208
220
|
type: Component,
|
|
209
221
|
args: [{ selector: `${XDialogContainerPrefix}-property`, template: '' }]
|
|
210
222
|
}] });
|
|
211
223
|
|
|
212
224
|
class XDialogComponent extends XDialogProperty {
|
|
225
|
+
get getVisible() {
|
|
226
|
+
return this.visible();
|
|
227
|
+
}
|
|
213
228
|
constructor() {
|
|
214
|
-
super(
|
|
215
|
-
this.
|
|
229
|
+
super();
|
|
230
|
+
this.renderer = inject(Renderer2);
|
|
231
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
232
|
+
this.protalService = inject(XPortalService);
|
|
233
|
+
this.overlay = inject(Overlay);
|
|
234
|
+
this.i18n = inject(XI18nService);
|
|
235
|
+
this.unSubject = new Subject();
|
|
236
|
+
this.clsName = `${XDialogPrefix}-${this.placement()}`;
|
|
237
|
+
this.dialogTpl = viewChild.required('dialogTpl');
|
|
238
|
+
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.dialog)), { initialValue: zh_CN.dialog });
|
|
239
|
+
this.overlayElement = signal(null);
|
|
216
240
|
this.initHeight = 0;
|
|
217
241
|
this.initContentHeight = 0;
|
|
218
|
-
this.isMaximize = false;
|
|
219
|
-
this.isDefaultMaximize = false;
|
|
242
|
+
this.isMaximize = signal(false);
|
|
243
|
+
this.isDefaultMaximize = signal(false);
|
|
220
244
|
this.dialogBox = {};
|
|
221
245
|
this.contentBox = {};
|
|
222
246
|
this.distance = { x: 0, y: 0 };
|
|
223
|
-
this.viewInit = false;
|
|
247
|
+
this.viewInit = signal(false);
|
|
224
248
|
this.action = null;
|
|
225
249
|
this.containerInit = false;
|
|
226
|
-
this.
|
|
227
|
-
this.
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
this.
|
|
233
|
-
|
|
250
|
+
this.resizableSignal = signal(false);
|
|
251
|
+
this.draggableSignal = signal(false);
|
|
252
|
+
this.maximizeSignal = signal(false);
|
|
253
|
+
this.getCancelText = computed(() => {
|
|
254
|
+
return this.cancelText() || this.locale().cancelText;
|
|
255
|
+
});
|
|
256
|
+
this.getConfirmText = computed(() => {
|
|
257
|
+
return this.confirmText() || this.locale().confirmText;
|
|
258
|
+
});
|
|
259
|
+
this.getStyle = computed(() => {
|
|
260
|
+
return this.container
|
|
261
|
+
? {
|
|
262
|
+
...this.protalService.setContainerStyle(this.placement(), this.offset()),
|
|
263
|
+
width: this.width(),
|
|
264
|
+
height: this.height(),
|
|
265
|
+
minWidth: this.minWidth(),
|
|
266
|
+
minHeight: this.minHeight()
|
|
267
|
+
}
|
|
268
|
+
: {};
|
|
269
|
+
});
|
|
234
270
|
this.container = inject(X_DIALOG_CONTAINER, { optional: true });
|
|
235
271
|
this.configService = inject(XConfigService);
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
get getConfirmText() {
|
|
244
|
-
return this.confirmText || this.locale.confirmText;
|
|
245
|
-
}
|
|
246
|
-
get getStyle() {
|
|
247
|
-
return this.container
|
|
248
|
-
? {
|
|
249
|
-
...this.protalService.setContainerStyle(this.placement, this.offset),
|
|
250
|
-
width: this.width,
|
|
251
|
-
height: this.height,
|
|
252
|
-
minWidth: this.minWidth,
|
|
253
|
-
minHeight: this.minHeight
|
|
254
|
-
}
|
|
255
|
-
: {};
|
|
272
|
+
this.styleOffsetLeft = signal(0);
|
|
273
|
+
this.styleOffsetTop = signal(0);
|
|
274
|
+
this.visibleChanged = toObservable(this.visible);
|
|
275
|
+
this.draggableChanged = toObservable(this.draggable);
|
|
276
|
+
this.visibleChanged.pipe(takeUntil(this.unSubject)).subscribe(() => {
|
|
277
|
+
this.setVisible();
|
|
278
|
+
});
|
|
256
279
|
}
|
|
257
280
|
ngOnInit() {
|
|
258
281
|
this.scrollStrategy = this.protalService.overlay.scrollStrategies.block();
|
|
259
|
-
this.
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
});
|
|
265
|
-
this.dialogBox['draggable'] = this.draggable;
|
|
266
|
-
this.dialogBox['resizable'] = this.resizable;
|
|
267
|
-
this.setClassMap();
|
|
268
|
-
}
|
|
269
|
-
ngOnChanges(changes) {
|
|
270
|
-
const { visible, placement } = changes;
|
|
271
|
-
XIsChange(visible) && this.setVisible();
|
|
272
|
-
if (XIsChange(placement)) {
|
|
273
|
-
this.setClassMap();
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
ngOnDestroy() {
|
|
277
|
-
this.unsubscribe();
|
|
278
|
-
this._unSubject.next();
|
|
279
|
-
this._unSubject.unsubscribe();
|
|
282
|
+
this.draggableSignal.set(this.draggable());
|
|
283
|
+
this.resizableSignal.set(this.resizable());
|
|
284
|
+
this.maximizeSignal.set(this.maximize());
|
|
285
|
+
this.dialogBox['draggable'] = this.draggableSignal();
|
|
286
|
+
this.dialogBox['resizable'] = this.resizableSignal();
|
|
280
287
|
}
|
|
281
288
|
ngAfterViewInit() {
|
|
282
|
-
this.viewInit
|
|
283
|
-
setTimeout(() => this.visible && this.create());
|
|
289
|
+
this.viewInit.set(true);
|
|
284
290
|
}
|
|
285
|
-
|
|
291
|
+
ngOnDestroy() {
|
|
286
292
|
this.backdropClick$?.unsubscribe();
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
for (let key in this.classMap) {
|
|
290
|
-
this.renderer.removeClass(this.elementRef.nativeElement, key);
|
|
291
|
-
}
|
|
292
|
-
XClearClass(this.classMap);
|
|
293
|
-
this.classMap = {
|
|
294
|
-
[`${XDialogPrefix}-${this.placement}`]: !XIsEmpty(this.placement)
|
|
295
|
-
};
|
|
296
|
-
for (let key in this.classMap) {
|
|
297
|
-
this.renderer.addClass(this.elementRef.nativeElement, key);
|
|
298
|
-
}
|
|
293
|
+
this.unSubject.next();
|
|
294
|
+
this.unSubject.complete();
|
|
299
295
|
}
|
|
300
296
|
setVisible() {
|
|
301
|
-
if (!this.viewInit)
|
|
297
|
+
if (!this.viewInit())
|
|
302
298
|
return;
|
|
303
|
-
if (this.visible) {
|
|
299
|
+
if (this.visible()) {
|
|
304
300
|
this.create();
|
|
305
301
|
}
|
|
306
302
|
else {
|
|
@@ -313,52 +309,54 @@ class XDialogComponent extends XDialogProperty {
|
|
|
313
309
|
return;
|
|
314
310
|
}
|
|
315
311
|
this.dialogRef = this.protalService.attach({
|
|
316
|
-
content: this.dialogTpl,
|
|
312
|
+
content: this.dialogTpl(),
|
|
317
313
|
viewContainerRef: this.viewContainerRef,
|
|
318
314
|
overlayConfig: {
|
|
319
|
-
panelClass: [XDialogContainer, this.className],
|
|
320
|
-
hasBackdrop:
|
|
315
|
+
panelClass: [XDialogContainer, this.className()],
|
|
316
|
+
hasBackdrop: this.hasBackdrop(),
|
|
321
317
|
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
322
|
-
width: this.width,
|
|
323
|
-
height: this.height,
|
|
324
|
-
minWidth: this.minWidth,
|
|
325
|
-
minHeight: this.minHeight,
|
|
326
|
-
positionStrategy: this.protalService.setPlace(this.placement, this.offset)
|
|
318
|
+
width: this.width(),
|
|
319
|
+
height: this.height(),
|
|
320
|
+
minWidth: this.minWidth(),
|
|
321
|
+
minHeight: this.minHeight(),
|
|
322
|
+
positionStrategy: this.protalService.setPlace(this.placement(), this.offset())
|
|
327
323
|
}
|
|
328
324
|
});
|
|
329
325
|
const { hostElement, overlayElement } = this.dialogRef.overlayRef;
|
|
330
|
-
this.overlayElement
|
|
326
|
+
this.overlayElement.set(overlayElement);
|
|
331
327
|
this.setWidthHeight();
|
|
332
328
|
Object.assign(this.dialogBox, {
|
|
333
|
-
width: this.width,
|
|
334
|
-
height: this.height,
|
|
335
|
-
minWidth: this.minWidth,
|
|
336
|
-
minHeight: this.minHeight
|
|
329
|
+
width: this.width(),
|
|
330
|
+
height: this.height(),
|
|
331
|
+
minWidth: this.minWidth(),
|
|
332
|
+
minHeight: this.minHeight()
|
|
337
333
|
});
|
|
338
|
-
if (this.
|
|
334
|
+
if (this.resizableSignal() && !this.isDefaultMaximize()) {
|
|
339
335
|
this.renderer.addClass(hostElement, PortalResizablePrefix);
|
|
340
336
|
setTimeout(() => {
|
|
341
|
-
Object.assign(this.dialogBox, this.protalService.setResizable(this.overlayElement, this.placement));
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
|
|
337
|
+
Object.assign(this.dialogBox, this.protalService.setResizable(this.overlayElement(), this.placement()));
|
|
338
|
+
this.styleOffsetLeft.set(this.overlayElement()?.offsetLeft);
|
|
339
|
+
this.styleOffsetTop.set(this.overlayElement()?.offsetTop);
|
|
340
|
+
console.log(this.styleOffsetLeft());
|
|
341
|
+
console.log(this.styleOffsetTop());
|
|
342
|
+
const dialogDraggable = this.overlayElement()?.querySelector('.x-alert-draggable');
|
|
345
343
|
this.initHeight = dialogDraggable.clientHeight;
|
|
346
|
-
this.dialogContent = this.overlayElement?.querySelector('.x-dialog-content');
|
|
344
|
+
this.dialogContent = this.overlayElement()?.querySelector('.x-dialog-content');
|
|
347
345
|
this.initContentHeight = this.dialogContent.clientHeight;
|
|
348
346
|
});
|
|
349
347
|
}
|
|
350
|
-
if (this.hasBackdrop && this.backdropClose && this.dialogRef?.overlayRef) {
|
|
348
|
+
if (this.hasBackdrop() && this.backdropClose() && this.dialogRef?.overlayRef) {
|
|
351
349
|
this.backdropClick$ = this.dialogRef.overlayRef.backdropClick().subscribe(() => this.onClose('close'));
|
|
352
350
|
}
|
|
353
351
|
}
|
|
354
352
|
setWidthHeight() {
|
|
355
353
|
const ws = ['100%', '100vw'];
|
|
356
354
|
const hs = ['100%', '100vh'];
|
|
357
|
-
if (ws.includes(this.width) && hs.includes(this.height)) {
|
|
358
|
-
this.isDefaultMaximize
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
355
|
+
if (ws.includes(this.width()) && hs.includes(this.height())) {
|
|
356
|
+
this.isDefaultMaximize.set(true);
|
|
357
|
+
this.resizableSignal.set(false);
|
|
358
|
+
this.draggableSignal.set(false);
|
|
359
|
+
this.maximizeSignal.set(false);
|
|
362
360
|
}
|
|
363
361
|
}
|
|
364
362
|
portalAttached() {
|
|
@@ -369,16 +367,15 @@ class XDialogComponent extends XDialogProperty {
|
|
|
369
367
|
return;
|
|
370
368
|
if (this.container && !this.containerInit)
|
|
371
369
|
return;
|
|
372
|
-
if (XIsFunction(this.beforeClose) && execFunction) {
|
|
373
|
-
this.beforeClose(action);
|
|
370
|
+
if (XIsFunction(this.beforeClose()) && execFunction) {
|
|
371
|
+
this.beforeClose()?.(action);
|
|
374
372
|
this.action = action;
|
|
375
373
|
}
|
|
376
374
|
else {
|
|
377
|
-
this.visible
|
|
378
|
-
this.visibleChange.emit(this.visible);
|
|
375
|
+
this.visible.set(false);
|
|
379
376
|
if (this.portalAttached()) {
|
|
380
377
|
this.dialogRef?.overlayRef?.detach();
|
|
381
|
-
this.unsubscribe();
|
|
378
|
+
this.backdropClick$?.unsubscribe();
|
|
382
379
|
}
|
|
383
380
|
if ([action, this.action].includes('confirm')) {
|
|
384
381
|
this.confirm.emit();
|
|
@@ -397,8 +394,8 @@ class XDialogComponent extends XDialogProperty {
|
|
|
397
394
|
onSize() {
|
|
398
395
|
if (!this.dialogRef)
|
|
399
396
|
return;
|
|
400
|
-
this.isMaximize
|
|
401
|
-
if (this.isMaximize) {
|
|
397
|
+
this.isMaximize.update((x) => !x);
|
|
398
|
+
if (this.isMaximize()) {
|
|
402
399
|
this.onMaximize();
|
|
403
400
|
}
|
|
404
401
|
else {
|
|
@@ -416,49 +413,49 @@ class XDialogComponent extends XDialogProperty {
|
|
|
416
413
|
this.dialogBox['minHeight'] = '100%';
|
|
417
414
|
this.dialogBox['draggable'] = false;
|
|
418
415
|
this.dialogBox['resizable'] = false;
|
|
419
|
-
if (this.
|
|
420
|
-
this.renderer.setStyle(this.overlayElement, 'margin', '0 0 0 0');
|
|
416
|
+
if (this.resizableSignal()) {
|
|
417
|
+
this.renderer.setStyle(this.overlayElement(), 'margin', '0 0 0 0');
|
|
421
418
|
}
|
|
422
|
-
if (this.
|
|
419
|
+
if (this.draggableSignal()) {
|
|
423
420
|
this.dialogBox['distance'] = { x: 0, y: 0 };
|
|
424
421
|
}
|
|
425
422
|
}
|
|
426
423
|
onMinimize() {
|
|
427
|
-
this.dialogBox['minWidth'] = this.minWidth;
|
|
428
|
-
this.dialogBox['minHeight'] = this.minHeight;
|
|
429
|
-
this.dialogBox['draggable'] = this.
|
|
430
|
-
this.dialogBox['resizable'] = this.
|
|
424
|
+
this.dialogBox['minWidth'] = this.minWidth();
|
|
425
|
+
this.dialogBox['minHeight'] = this.minHeight();
|
|
426
|
+
this.dialogBox['draggable'] = this.draggableSignal();
|
|
427
|
+
this.dialogBox['resizable'] = this.resizableSignal();
|
|
431
428
|
this.dialogRef.overlayRef?.updateSize({
|
|
432
429
|
width: this.dialogBox['width'],
|
|
433
430
|
height: this.dialogBox['height'],
|
|
434
431
|
minWidth: this.dialogBox['minWidth'],
|
|
435
432
|
minHeight: this.dialogBox['minHeight']
|
|
436
433
|
});
|
|
437
|
-
if (this.
|
|
434
|
+
if (this.draggableSignal()) {
|
|
438
435
|
this.dialogBox['distance'] = { ...this.distance };
|
|
439
436
|
}
|
|
440
|
-
if (this.
|
|
437
|
+
if (this.resizableSignal()) {
|
|
441
438
|
if (this.dialogBox['marginTop']) {
|
|
442
|
-
this.renderer.setStyle(this.overlayElement, 'margin-top', `${this.dialogBox['marginTop']}`);
|
|
439
|
+
this.renderer.setStyle(this.overlayElement(), 'margin-top', `${this.dialogBox['marginTop']}`);
|
|
443
440
|
}
|
|
444
441
|
if (this.dialogBox['marginLeft']) {
|
|
445
|
-
this.renderer.setStyle(this.overlayElement, 'margin-left', `${this.dialogBox['marginLeft']}`);
|
|
442
|
+
this.renderer.setStyle(this.overlayElement(), 'margin-left', `${this.dialogBox['marginLeft']}`);
|
|
446
443
|
}
|
|
447
444
|
if (this.dialogBox['marginRight']) {
|
|
448
|
-
this.renderer.setStyle(this.overlayElement, 'margin-right', `${this.dialogBox['marginRight']}`);
|
|
445
|
+
this.renderer.setStyle(this.overlayElement(), 'margin-right', `${this.dialogBox['marginRight']}`);
|
|
449
446
|
}
|
|
450
447
|
if (this.dialogBox['marginBottom']) {
|
|
451
|
-
this.renderer.setStyle(this.overlayElement, 'margin-bottom', `${this.dialogBox['marginBottom']}`);
|
|
448
|
+
this.renderer.setStyle(this.overlayElement(), 'margin-bottom', `${this.dialogBox['marginBottom']}`);
|
|
452
449
|
}
|
|
453
450
|
}
|
|
454
451
|
}
|
|
455
452
|
moveDone($event) {
|
|
456
453
|
if ($event.toState === 'void') {
|
|
457
454
|
this.closeDone.emit($event);
|
|
458
|
-
this.isMaximize
|
|
455
|
+
this.isMaximize.set(false);
|
|
459
456
|
this.dialogBox = {
|
|
460
|
-
draggable: this.
|
|
461
|
-
resizable: this.
|
|
457
|
+
draggable: this.draggableSignal(),
|
|
458
|
+
resizable: this.resizableSignal()
|
|
462
459
|
};
|
|
463
460
|
this.distance = { x: 0, y: 0 };
|
|
464
461
|
this.dialogRef?.overlayRef?.dispose();
|
|
@@ -475,18 +472,18 @@ class XDialogComponent extends XDialogProperty {
|
|
|
475
472
|
this.renderer.setStyle(this.dialogContent, 'height', `${contentHeight}px`);
|
|
476
473
|
}
|
|
477
474
|
}
|
|
478
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
479
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
475
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
476
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: XDialogComponent, isStandalone: true, selector: "x-dialog", host: { properties: { "class.x-dialog-visible": "this.getVisible", "class": "this.clsName" } }, viewQueries: [{ propertyName: "dialogTpl", first: true, predicate: ["dialogTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #dialogTpl>\r\n @if (container && hasBackdrop()) {\r\n <div class=\"x-dialog-backdrop\" [@x-opacity-animation]=\"visible()\" (click)=\"onClose('close')\"></div>\r\n }\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement()\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize()\"\r\n [class.x-dialog-resizable]=\"resizableSignal()\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize()\"\r\n [ngStyle]=\"getStyle()\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggableSignal() && dialogBox['draggable']\"\r\n [resizable]=\"resizableSignal() && dialogBox['resizable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [offsetLeft]=\"styleOffsetLeft()\"\r\n [offsetTop]=\"styleOffsetTop()\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\r\n [title]=\"title()\"\r\n [content]=\"contentTpl\"\r\n [type]=\"type()\"\r\n [effect]=\"effect()\"\r\n [hideClose]=\"hideClose()\"\r\n [closeText]=\"closeText()\"\r\n [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose('close')\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizing)=\"onResizing($event)\"\r\n [showIcon]=\"false\"\r\n [duration]=\"0\"\r\n manual\r\n disabledAnimation\r\n ></x-alert>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #contentTpl>\r\n <div class=\"x-dialog-inner\">\r\n <div class=\"x-dialog-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"x-dialog-buttons\" [class.x-dialog-buttons-center]=\"buttonsCenter()\">\r\n <ng-container *xOutlet=\"footer()\">\r\n @if (showCancel() || showConfirm()) {\r\n <x-buttons space=\"0.5rem\">\r\n @if (showCancel()) {\r\n <x-button (click)=\"onClose('cancel')\" flat plain>{{ getCancelText() }}</x-button>\r\n }\r\n @if (showConfirm()) {\r\n <x-button type=\"primary\" flat (click)=\"onClose('confirm')\">{{ getConfirmText() }}</x-button>\r\n }\r\n </x-buttons>\r\n }\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #operationTpl>\r\n @if (maximizeSignal() || resizableSignal()) {\r\n <x-button\r\n size=\"small\"\r\n flat\r\n [icon]=\"isMaximize() ? 'fto-minimize' : 'fto-maximize'\"\r\n [onlyIcon]=\"true\"\r\n (click)=\"onSize()\"\r\n ></x-button>\r\n }\r\n</ng-template>\r\n\r\n@if (container && visible()) {\r\n <ng-container *ngTemplateOutlet=\"dialogTpl\"></ng-container>\r\n}\r\n", styles: [".x-dialog{margin:0;padding:0;width:100%;height:100%}.x-dialog>x-alert{height:100%}.x-dialog>x-alert .x-alert{min-height:100%;height:fit-content;align-items:inherit;padding:0}.x-dialog>x-alert .x-alert-inner{min-height:100%;display:flex;flex-direction:column}.x-dialog>x-alert .x-alert-title{padding:1rem 1rem 0}.x-dialog>x-alert .x-alert-content{flex:1;display:flex;flex-direction:column;padding:0 1rem .5rem}.x-dialog-inner{display:flex;flex-direction:column;margin:.5rem 0;flex:1}.x-dialog-buttons{display:flex;justify-content:flex-end}.x-dialog-buttons>x-buttons{margin-top:1rem;align-self:flex-end}.x-dialog-buttons-center{justify-content:center}.x-dialog-content{display:inline-flex;flex-direction:column;flex:1;max-height:70vh;overflow:auto;min-height:2rem}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important;flex:initial}.x-dialog-default-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: XAlertComponent, selector: "x-alert" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XButtonsComponent, selector: "x-buttons" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], animations: [XMoveBoxAnimation, XOpacityAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
480
477
|
}
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogComponent, decorators: [{
|
|
482
479
|
type: Component,
|
|
483
|
-
args: [{ selector: `${XDialogPrefix}`, standalone: true, imports: [NgStyle, NgTemplateOutlet, XAlertComponent, XButtonComponent, XButtonsComponent, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation, XOpacityAnimation], template: "<ng-template #dialogTpl>\r\n @if (container && hasBackdrop) {\r\n <div class=\"x-dialog-backdrop\" [@x-opacity-animation]=\"visible\" (click)=\"onClose('close')\"></div>\r\n }\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize\"\r\n [class.x-dialog-resizable]=\"
|
|
484
|
-
}], propDecorators: { getVisible: [{
|
|
480
|
+
args: [{ selector: `${XDialogPrefix}`, standalone: true, imports: [NgStyle, NgTemplateOutlet, XAlertComponent, XButtonComponent, XButtonsComponent, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation, XOpacityAnimation], template: "<ng-template #dialogTpl>\r\n @if (container && hasBackdrop()) {\r\n <div class=\"x-dialog-backdrop\" [@x-opacity-animation]=\"visible()\" (click)=\"onClose('close')\"></div>\r\n }\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement()\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize()\"\r\n [class.x-dialog-resizable]=\"resizableSignal()\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize()\"\r\n [ngStyle]=\"getStyle()\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggableSignal() && dialogBox['draggable']\"\r\n [resizable]=\"resizableSignal() && dialogBox['resizable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [offsetLeft]=\"styleOffsetLeft()\"\r\n [offsetTop]=\"styleOffsetTop()\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\r\n [title]=\"title()\"\r\n [content]=\"contentTpl\"\r\n [type]=\"type()\"\r\n [effect]=\"effect()\"\r\n [hideClose]=\"hideClose()\"\r\n [closeText]=\"closeText()\"\r\n [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose('close')\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizing)=\"onResizing($event)\"\r\n [showIcon]=\"false\"\r\n [duration]=\"0\"\r\n manual\r\n disabledAnimation\r\n ></x-alert>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #contentTpl>\r\n <div class=\"x-dialog-inner\">\r\n <div class=\"x-dialog-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"x-dialog-buttons\" [class.x-dialog-buttons-center]=\"buttonsCenter()\">\r\n <ng-container *xOutlet=\"footer()\">\r\n @if (showCancel() || showConfirm()) {\r\n <x-buttons space=\"0.5rem\">\r\n @if (showCancel()) {\r\n <x-button (click)=\"onClose('cancel')\" flat plain>{{ getCancelText() }}</x-button>\r\n }\r\n @if (showConfirm()) {\r\n <x-button type=\"primary\" flat (click)=\"onClose('confirm')\">{{ getConfirmText() }}</x-button>\r\n }\r\n </x-buttons>\r\n }\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #operationTpl>\r\n @if (maximizeSignal() || resizableSignal()) {\r\n <x-button\r\n size=\"small\"\r\n flat\r\n [icon]=\"isMaximize() ? 'fto-minimize' : 'fto-maximize'\"\r\n [onlyIcon]=\"true\"\r\n (click)=\"onSize()\"\r\n ></x-button>\r\n }\r\n</ng-template>\r\n\r\n@if (container && visible()) {\r\n <ng-container *ngTemplateOutlet=\"dialogTpl\"></ng-container>\r\n}\r\n", styles: [".x-dialog{margin:0;padding:0;width:100%;height:100%}.x-dialog>x-alert{height:100%}.x-dialog>x-alert .x-alert{min-height:100%;height:fit-content;align-items:inherit;padding:0}.x-dialog>x-alert .x-alert-inner{min-height:100%;display:flex;flex-direction:column}.x-dialog>x-alert .x-alert-title{padding:1rem 1rem 0}.x-dialog>x-alert .x-alert-content{flex:1;display:flex;flex-direction:column;padding:0 1rem .5rem}.x-dialog-inner{display:flex;flex-direction:column;margin:.5rem 0;flex:1}.x-dialog-buttons{display:flex;justify-content:flex-end}.x-dialog-buttons>x-buttons{margin-top:1rem;align-self:flex-end}.x-dialog-buttons-center{justify-content:center}.x-dialog-content{display:inline-flex;flex-direction:column;flex:1;max-height:70vh;overflow:auto;min-height:2rem}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important;flex:initial}.x-dialog-default-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}\n"] }]
|
|
481
|
+
}], ctorParameters: () => [], propDecorators: { getVisible: [{
|
|
485
482
|
type: HostBinding,
|
|
486
483
|
args: ['class.x-dialog-visible']
|
|
487
|
-
}],
|
|
488
|
-
type:
|
|
489
|
-
args: ['
|
|
484
|
+
}], clsName: [{
|
|
485
|
+
type: HostBinding,
|
|
486
|
+
args: ['class']
|
|
490
487
|
}] } });
|
|
491
488
|
|
|
492
489
|
class XDialogContainerComponent extends XDialogContainerProperty {
|
|
@@ -494,15 +491,15 @@ class XDialogContainerComponent extends XDialogContainerProperty {
|
|
|
494
491
|
super(...arguments);
|
|
495
492
|
this._has = true;
|
|
496
493
|
}
|
|
497
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
498
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
494
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
495
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: XDialogContainerComponent, isStandalone: true, selector: "x-dialog-container", host: { properties: { "class.x-dialog-container": "this._has" } }, providers: [
|
|
499
496
|
{
|
|
500
497
|
provide: X_DIALOG_CONTAINER,
|
|
501
498
|
useExisting: XDialogContainerComponent
|
|
502
499
|
}
|
|
503
500
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [".x-dialog-container{margin:0;padding:0;position:relative;z-index:1;box-sizing:border-box;display:block;overflow:hidden}.x-dialog-container x-dialog{display:flex;position:absolute;width:100%;height:100%;z-index:-1;transition:z-index .4s;top:0;left:0}.x-dialog-container .x-dialog{position:absolute;display:block;outline:0;z-index:1001;width:initial;height:initial}.x-dialog-container .x-dialog-top,.x-dialog-container .x-dialog-bottom{justify-content:center}.x-dialog-container .x-dialog-center{justify-content:center;align-items:center}.x-dialog-container .x-dialog-left,.x-dialog-container .x-dialog-right{align-items:center}.x-dialog-container .x-dialog-visible{display:flex;z-index:1000}.x-dialog-container .x-dialog-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;background:#00000052}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
504
501
|
}
|
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogContainerComponent, decorators: [{
|
|
506
503
|
type: Component,
|
|
507
504
|
args: [{ selector: 'x-dialog-container', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
508
505
|
{
|
|
@@ -533,6 +530,9 @@ class XDialogPortalComponent extends BasePortalOutlet {
|
|
|
533
530
|
constructor(renderer) {
|
|
534
531
|
super();
|
|
535
532
|
this.renderer = renderer;
|
|
533
|
+
this.portalOutlet = viewChild.required(CdkPortalOutlet);
|
|
534
|
+
this.dragRef = viewChild.required(CdkDrag);
|
|
535
|
+
this.handles = contentChildren(CdkDragHandle, { descendants: true });
|
|
536
536
|
this.animationChanged = new EventEmitter();
|
|
537
537
|
this.offsetLeft = 0;
|
|
538
538
|
this.offsetTop = 0;
|
|
@@ -555,20 +555,20 @@ class XDialogPortalComponent extends BasePortalOutlet {
|
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
557
|
for (let item of this.dialogRef.dragHandleRefs) {
|
|
558
|
-
this.dragRef._addHandle(new CdkDragHandle(item, this.dragRef));
|
|
558
|
+
this.dragRef()._addHandle(new CdkDragHandle(item, this.dragRef()));
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
attachComponentPortal(portal) {
|
|
562
|
-
if (this.portalOutlet.hasAttached()) {
|
|
562
|
+
if (this.portalOutlet().hasAttached()) {
|
|
563
563
|
throw Error('dialog portal has attached');
|
|
564
564
|
}
|
|
565
|
-
return this.portalOutlet.attachComponentPortal(portal);
|
|
565
|
+
return this.portalOutlet().attachComponentPortal(portal);
|
|
566
566
|
}
|
|
567
567
|
attachTemplatePortal(portal) {
|
|
568
|
-
if (this.portalOutlet.hasAttached()) {
|
|
568
|
+
if (this.portalOutlet().hasAttached()) {
|
|
569
569
|
throw Error('dialog portal has attached');
|
|
570
570
|
}
|
|
571
|
-
return this.portalOutlet.attachTemplatePortal(portal);
|
|
571
|
+
return this.portalOutlet().attachTemplatePortal(portal);
|
|
572
572
|
}
|
|
573
573
|
resizing(event) {
|
|
574
574
|
const contentHeight = Number(this.initContentHeight) + Number(event.clientHeight) - Number(this.initHeight);
|
|
@@ -584,12 +584,12 @@ class XDialogPortalComponent extends BasePortalOutlet {
|
|
|
584
584
|
y: this.distance.y + event.distance.y
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
588
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
587
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogPortalComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
588
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.1", type: XDialogPortalComponent, isStandalone: true, selector: "x-dialog-portal", host: { listeners: { "@x-move-box-animation.done": "done($event)", "@x-move-box-animation.start": "start($event)" }, properties: { "@x-move-box-animation": "this.placement" } }, queries: [{ propertyName: "handles", predicate: CdkDragHandle, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, isSignal: true }, { propertyName: "dragRef", first: true, predicate: CdkDrag, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n [xResizable]=\"option.resizable && dialogBox['resizable']!\"\r\n (resizing)=\"resizing($event)\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n [style.maxWidth]=\"dialogBox['maxWidth']\"\r\n [style.maxHeight]=\"dialogBox['maxHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0;width:100%;height:100%;display:block;padding:1rem;box-sizing:border-box;min-height:inherit;max-height:inherit;background-color:var(--x-background-100);box-shadow:var(--x-box-shadow);border-radius:var(--x-border-small-radius)}.x-dialog-portal-title{font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:3rem;line-height:3rem;display:block;align-items:center;margin:-1rem -1rem 0;padding:0 1rem}.x-dialog-portal-content{display:block;margin:0 -1rem;padding:0 1rem;max-height:70vh;overflow:auto;color:var(--x-text-300);line-height:1.325rem}.x-dialog-portal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin:0 -1rem -1rem;padding:0 1rem;height:4rem}.x-dialog-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}.x-dialog-portal-drag-handle{cursor:move}.x-dialog-portal-fullscreen{margin:0!important}.x-dialog-portal-fullscreen .x-dialog-portal{left:0!important;top:0!important;border-radius:0}.x-dialog-portal-fullscreen .x-dialog-portal-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}x-dialog-portal{width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: XResizableDirective, selector: "[xResizable]" }], animations: [XMoveBoxAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
589
589
|
}
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogPortalComponent, decorators: [{
|
|
591
591
|
type: Component,
|
|
592
|
-
args: [{ selector: 'x-dialog-portal', standalone: true, imports: [DragDropModule, PortalModule, XResizableDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation], template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n [xResizable]=\"option.resizable && dialogBox['resizable']!\"\r\n (resizing)=\"resizing($event)\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0;width:100%;height:100%;display:block;padding:1rem;box-sizing:border-box;min-height:inherit;max-height:inherit;background-color:var(--x-background);box-shadow:var(--x-box-shadow)
|
|
592
|
+
args: [{ selector: 'x-dialog-portal', standalone: true, imports: [DragDropModule, PortalModule, XResizableDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation], template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n [xResizable]=\"option.resizable && dialogBox['resizable']!\"\r\n (resizing)=\"resizing($event)\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n [style.maxWidth]=\"dialogBox['maxWidth']\"\r\n [style.maxHeight]=\"dialogBox['maxHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0;width:100%;height:100%;display:block;padding:1rem;box-sizing:border-box;min-height:inherit;max-height:inherit;background-color:var(--x-background-100);box-shadow:var(--x-box-shadow);border-radius:var(--x-border-small-radius)}.x-dialog-portal-title{font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:3rem;line-height:3rem;display:block;align-items:center;margin:-1rem -1rem 0;padding:0 1rem}.x-dialog-portal-content{display:block;margin:0 -1rem;padding:0 1rem;max-height:70vh;overflow:auto;color:var(--x-text-300);line-height:1.325rem}.x-dialog-portal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin:0 -1rem -1rem;padding:0 1rem;height:4rem}.x-dialog-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}.x-dialog-portal-drag-handle{cursor:move}.x-dialog-portal-fullscreen{margin:0!important}.x-dialog-portal-fullscreen .x-dialog-portal{left:0!important;top:0!important;border-radius:0}.x-dialog-portal-fullscreen .x-dialog-portal-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}x-dialog-portal{width:100%;height:100%}\n"] }]
|
|
593
593
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { placement: [{
|
|
594
594
|
type: HostBinding,
|
|
595
595
|
args: ['@x-move-box-animation']
|
|
@@ -599,15 +599,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
599
599
|
}], start: [{
|
|
600
600
|
type: HostListener,
|
|
601
601
|
args: ['@x-move-box-animation.start', ['$event']]
|
|
602
|
-
}], portalOutlet: [{
|
|
603
|
-
type: ViewChild,
|
|
604
|
-
args: [CdkPortalOutlet, { static: true }]
|
|
605
|
-
}], dragRef: [{
|
|
606
|
-
type: ViewChild,
|
|
607
|
-
args: [CdkDrag, { static: true }]
|
|
608
|
-
}], handles: [{
|
|
609
|
-
type: ContentChildren,
|
|
610
|
-
args: [CdkDragHandle, { descendants: true }]
|
|
611
602
|
}] } });
|
|
612
603
|
|
|
613
604
|
// TODO: add more function
|
|
@@ -715,10 +706,10 @@ class XDialogCloseDirective {
|
|
|
715
706
|
onCloseClick() {
|
|
716
707
|
this.dialogRef && this.dialogRef.close();
|
|
717
708
|
}
|
|
718
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
719
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
709
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
710
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: XDialogCloseDirective, isStandalone: true, selector: "[x-dialog-close]", host: { listeners: { "click": "onCloseClick($event)" } }, ngImport: i0 }); }
|
|
720
711
|
}
|
|
721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogCloseDirective, decorators: [{
|
|
722
713
|
type: Directive,
|
|
723
714
|
args: [{
|
|
724
715
|
selector: `[x-dialog-close]`,
|
|
@@ -732,13 +723,13 @@ class XDialogTitleDirective {
|
|
|
732
723
|
constructor() {
|
|
733
724
|
this._has = true;
|
|
734
725
|
}
|
|
735
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
736
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
726
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
727
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: XDialogTitleDirective, isStandalone: true, selector: "[x-dialog-title], x-dialog-title", host: { properties: { "class.x-dialog-portal-title": "this._has" } }, ngImport: i0 }); }
|
|
737
728
|
}
|
|
738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogTitleDirective, decorators: [{
|
|
739
730
|
type: Directive,
|
|
740
731
|
args: [{
|
|
741
|
-
selector: `[x-dialog-title]`,
|
|
732
|
+
selector: `[x-dialog-title], x-dialog-title`,
|
|
742
733
|
standalone: true
|
|
743
734
|
}]
|
|
744
735
|
}], propDecorators: { _has: [{
|
|
@@ -749,10 +740,10 @@ class XDialogContentDirective {
|
|
|
749
740
|
constructor() {
|
|
750
741
|
this._has = true;
|
|
751
742
|
}
|
|
752
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
753
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
743
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
744
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: XDialogContentDirective, isStandalone: true, selector: "[x-dialog-content], x-dialog-content", host: { properties: { "class.x-dialog-portal-content": "this._has" } }, ngImport: i0 }); }
|
|
754
745
|
}
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogContentDirective, decorators: [{
|
|
756
747
|
type: Directive,
|
|
757
748
|
args: [{
|
|
758
749
|
selector: `[x-dialog-content], x-dialog-content`,
|
|
@@ -766,10 +757,10 @@ class XDialogActionsDirective {
|
|
|
766
757
|
constructor() {
|
|
767
758
|
this._has = true;
|
|
768
759
|
}
|
|
769
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
770
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
760
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
761
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: XDialogActionsDirective, isStandalone: true, selector: "[x-dialog-actions], x-dialog-actions", host: { properties: { "class.x-dialog-portal-actions": "this._has" } }, ngImport: i0 }); }
|
|
771
762
|
}
|
|
772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogActionsDirective, decorators: [{
|
|
773
764
|
type: Directive,
|
|
774
765
|
args: [{
|
|
775
766
|
selector: `[x-dialog-actions], x-dialog-actions`,
|
|
@@ -790,10 +781,10 @@ class XDialogDragHandleDirective {
|
|
|
790
781
|
ngOnInit() {
|
|
791
782
|
this.dialogRef?.dragHandleRefs.push(this.elementRef);
|
|
792
783
|
}
|
|
793
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
794
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
784
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogDragHandleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
785
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: XDialogDragHandleDirective, isStandalone: true, selector: "[x-dialog-drag-handle], x-dialog-drag-handle", host: { properties: { "class.x-dialog-portal-drag-handle": "this.getDraggable" } }, ngImport: i0 }); }
|
|
795
786
|
}
|
|
796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogDragHandleDirective, decorators: [{
|
|
797
788
|
type: Directive,
|
|
798
789
|
args: [{
|
|
799
790
|
selector: `[x-dialog-drag-handle], x-dialog-drag-handle`,
|
|
@@ -810,10 +801,10 @@ class XDialogFullscreenDirective {
|
|
|
810
801
|
onFullscreenClick() {
|
|
811
802
|
this.dialogRef && this.dialogRef.onFullscreen();
|
|
812
803
|
}
|
|
813
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
814
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
804
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogFullscreenDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
805
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: XDialogFullscreenDirective, isStandalone: true, selector: "[x-dialog-fullscreen], x-dialog-fullscreen", host: { listeners: { "click": "onFullscreenClick($event)" } }, ngImport: i0 }); }
|
|
815
806
|
}
|
|
816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogFullscreenDirective, decorators: [{
|
|
817
808
|
type: Directive,
|
|
818
809
|
args: [{
|
|
819
810
|
selector: `[x-dialog-fullscreen], x-dialog-fullscreen`,
|
|
@@ -825,8 +816,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
825
816
|
}] } });
|
|
826
817
|
|
|
827
818
|
class XDialogModule {
|
|
828
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
829
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
819
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
820
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: XDialogModule, imports: [XDialogComponent,
|
|
830
821
|
XDialogContainerComponent,
|
|
831
822
|
XDialogCloseDirective,
|
|
832
823
|
XDialogTitleDirective,
|
|
@@ -841,9 +832,9 @@ class XDialogModule {
|
|
|
841
832
|
XDialogActionsDirective,
|
|
842
833
|
XDialogDragHandleDirective,
|
|
843
834
|
XDialogFullscreenDirective] }); }
|
|
844
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
835
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogModule, imports: [XDialogComponent] }); }
|
|
845
836
|
}
|
|
846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogModule, decorators: [{
|
|
847
838
|
type: NgModule,
|
|
848
839
|
args: [{
|
|
849
840
|
exports: [
|
|
@@ -891,7 +882,7 @@ class XDialogService {
|
|
|
891
882
|
Object.assign(this.default, this.configDefault);
|
|
892
883
|
}
|
|
893
884
|
create(content, option = {}) {
|
|
894
|
-
|
|
885
|
+
XFillDefault(option, this.default);
|
|
895
886
|
const portal = this.portalService.attach({
|
|
896
887
|
content: XDialogPortalComponent,
|
|
897
888
|
viewContainerRef: option.viewContainerRef,
|
|
@@ -919,7 +910,7 @@ class XDialogService {
|
|
|
919
910
|
width: defaultMaximize ? this.default.width : option.width,
|
|
920
911
|
height: defaultMaximize ? null : option.height,
|
|
921
912
|
minWidth: option.minWidth,
|
|
922
|
-
minHeight: option.minHeight
|
|
913
|
+
minHeight: option.minHeight,
|
|
923
914
|
});
|
|
924
915
|
instance.placement = option.placement;
|
|
925
916
|
instance.option = option;
|
|
@@ -974,10 +965,10 @@ class XDialogService {
|
|
|
974
965
|
}
|
|
975
966
|
return false;
|
|
976
967
|
}
|
|
977
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
978
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
968
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
969
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogService, providedIn: 'root' }); }
|
|
979
970
|
}
|
|
980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: XDialogService, decorators: [{
|
|
981
972
|
type: Injectable,
|
|
982
973
|
args: [{ providedIn: 'root' }]
|
|
983
974
|
}], ctorParameters: () => [] });
|