@ng-nest/ui 19.0.9 → 20.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/index.d.ts +58 -3
- package/alert/index.d.ts +424 -3
- package/anchor/index.d.ts +186 -3
- package/api/index.d.ts +20 -3
- package/auto-complete/index.d.ts +454 -3
- package/avatar/index.d.ts +198 -3
- package/back-top/index.d.ts +75 -3
- package/badge/index.d.ts +153 -3
- package/base-form/index.d.ts +248 -3
- package/button/index.d.ts +380 -3
- package/calendar/index.d.ts +194 -3
- package/card/index.d.ts +99 -3
- package/carousel/index.d.ts +328 -3
- package/cascade/index.d.ts +459 -3
- package/checkbox/index.d.ts +351 -3
- package/collapse/index.d.ts +198 -3
- package/color/index.d.ts +80 -3
- package/color-picker/index.d.ts +484 -3
- package/comment/index.d.ts +158 -3
- package/container/index.d.ts +143 -3
- package/core/index.d.ts +1900 -3
- package/crumb/index.d.ts +91 -3
- package/date-picker/index.d.ts +2081 -3
- package/description/index.d.ts +234 -3
- package/dialog/index.d.ts +525 -3
- package/doc/index.d.ts +20 -3
- package/drag/index.d.ts +45 -3
- package/drawer/index.d.ts +244 -3
- package/dropdown/index.d.ts +201 -3
- package/empty/index.d.ts +60 -3
- package/examples/index.d.ts +20 -3
- package/fesm2022/ng-nest-ui-affix.mjs +11 -11
- package/fesm2022/ng-nest-ui-alert.mjs +11 -11
- package/fesm2022/ng-nest-ui-anchor.mjs +17 -17
- package/fesm2022/ng-nest-ui-api.mjs +8 -8
- package/fesm2022/ng-nest-ui-auto-complete.mjs +14 -14
- package/fesm2022/ng-nest-ui-avatar.mjs +17 -17
- package/fesm2022/ng-nest-ui-back-top.mjs +11 -11
- package/fesm2022/ng-nest-ui-badge.mjs +11 -11
- package/fesm2022/ng-nest-ui-base-form.mjs +7 -7
- package/fesm2022/ng-nest-ui-button.mjs +18 -18
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +11 -11
- package/fesm2022/ng-nest-ui-card.mjs +11 -11
- package/fesm2022/ng-nest-ui-carousel.mjs +17 -17
- package/fesm2022/ng-nest-ui-cascade.mjs +14 -14
- package/fesm2022/ng-nest-ui-checkbox.mjs +11 -11
- package/fesm2022/ng-nest-ui-collapse.mjs +17 -17
- package/fesm2022/ng-nest-ui-color-picker.mjs +17 -17
- package/fesm2022/ng-nest-ui-color.mjs +11 -11
- package/fesm2022/ng-nest-ui-comment.mjs +17 -17
- package/fesm2022/ng-nest-ui-container.mjs +32 -32
- package/fesm2022/ng-nest-ui-core.mjs +19 -19
- package/fesm2022/ng-nest-ui-crumb.mjs +11 -11
- package/fesm2022/ng-nest-ui-date-picker.mjs +50 -50
- package/fesm2022/ng-nest-ui-description.mjs +17 -17
- package/fesm2022/ng-nest-ui-dialog.mjs +41 -41
- package/fesm2022/ng-nest-ui-doc.mjs +8 -8
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drawer.mjs +32 -32
- package/fesm2022/ng-nest-ui-dropdown.mjs +14 -14
- package/fesm2022/ng-nest-ui-empty.mjs +11 -11
- package/fesm2022/ng-nest-ui-examples.mjs +8 -8
- package/fesm2022/ng-nest-ui-find.mjs +11 -11
- package/fesm2022/ng-nest-ui-form.mjs +17 -17
- package/fesm2022/ng-nest-ui-highlight.mjs +14 -14
- package/fesm2022/ng-nest-ui-i18n.mjs +13 -13
- package/fesm2022/ng-nest-ui-icon.mjs +18 -15
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +20 -20
- package/fesm2022/ng-nest-ui-inner.mjs +11 -11
- package/fesm2022/ng-nest-ui-input-number.mjs +11 -11
- package/fesm2022/ng-nest-ui-input.mjs +17 -17
- package/fesm2022/ng-nest-ui-keyword.mjs +10 -10
- package/fesm2022/ng-nest-ui-layout.mjs +17 -17
- package/fesm2022/ng-nest-ui-link.mjs +11 -11
- package/fesm2022/ng-nest-ui-list.mjs +24 -24
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +11 -11
- package/fesm2022/ng-nest-ui-menu.mjs +17 -17
- package/fesm2022/ng-nest-ui-message-box.mjs +11 -11
- package/fesm2022/ng-nest-ui-message.mjs +11 -11
- package/fesm2022/ng-nest-ui-notification.mjs +11 -11
- package/fesm2022/ng-nest-ui-outlet.mjs +7 -7
- package/fesm2022/ng-nest-ui-page-header.mjs +11 -11
- package/fesm2022/ng-nest-ui-pagination.mjs +11 -11
- package/fesm2022/ng-nest-ui-pattern.mjs +8 -8
- package/fesm2022/ng-nest-ui-popconfirm.mjs +11 -11
- package/fesm2022/ng-nest-ui-popover.mjs +14 -14
- package/fesm2022/ng-nest-ui-portal.mjs +8 -8
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-progress.mjs +11 -11
- package/fesm2022/ng-nest-ui-radio.mjs +11 -11
- package/fesm2022/ng-nest-ui-rate.mjs +11 -11
- package/fesm2022/ng-nest-ui-resizable.mjs +11 -11
- package/fesm2022/ng-nest-ui-result.mjs +11 -11
- package/fesm2022/ng-nest-ui-ripple.mjs +10 -10
- package/fesm2022/ng-nest-ui-select.mjs +14 -14
- package/fesm2022/ng-nest-ui-skeleton.mjs +11 -11
- package/fesm2022/ng-nest-ui-slider-select.mjs +11 -11
- package/fesm2022/ng-nest-ui-slider.mjs +11 -11
- package/fesm2022/ng-nest-ui-statistic.mjs +17 -17
- package/fesm2022/ng-nest-ui-steps.mjs +11 -11
- package/fesm2022/ng-nest-ui-switch.mjs +11 -11
- package/fesm2022/ng-nest-ui-table.mjs +28 -28
- package/fesm2022/ng-nest-ui-tabs.mjs +26 -26
- package/fesm2022/ng-nest-ui-tag.mjs +11 -11
- package/fesm2022/ng-nest-ui-text-retract.mjs +11 -11
- package/fesm2022/ng-nest-ui-textarea.mjs +11 -11
- package/fesm2022/ng-nest-ui-theme.mjs +11 -11
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-picker.mjs +17 -17
- package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
- package/fesm2022/ng-nest-ui-timeline.mjs +11 -11
- package/fesm2022/ng-nest-ui-tooltip.mjs +14 -14
- package/fesm2022/ng-nest-ui-transfer.mjs +11 -11
- package/fesm2022/ng-nest-ui-tree-file.mjs +11 -11
- package/fesm2022/ng-nest-ui-tree-select.mjs +14 -14
- package/fesm2022/ng-nest-ui-tree.mjs +20 -20
- package/fesm2022/ng-nest-ui-typography.mjs +11 -11
- package/fesm2022/ng-nest-ui-upload.mjs +14 -14
- package/find/index.d.ts +625 -3
- package/form/index.d.ts +556 -3
- package/highlight/index.d.ts +107 -3
- package/i18n/index.d.ts +9399 -3
- package/icon/index.d.ts +134 -3
- package/image/index.d.ts +282 -3
- package/index.d.ts +0 -21
- package/inner/index.d.ts +38 -3
- package/input/index.d.ts +615 -3
- package/input-number/index.d.ts +352 -3
- package/keyword/index.d.ts +61 -3
- package/layout/index.d.ts +171 -3
- package/link/index.d.ts +128 -3
- package/list/index.d.ts +482 -3
- package/loading/index.d.ts +92 -3
- package/menu/index.d.ts +206 -3
- package/message/index.d.ts +192 -3
- package/message-box/index.d.ts +234 -3
- package/notification/index.d.ts +136 -3
- package/outlet/index.d.ts +28 -3
- package/package.json +33 -33
- package/page-header/index.d.ts +61 -3
- package/pagination/index.d.ts +212 -3
- package/pattern/index.d.ts +20 -3
- package/popconfirm/index.d.ts +124 -3
- package/popover/index.d.ts +163 -3
- package/portal/index.d.ts +157 -3
- package/progress/index.d.ts +191 -3
- package/radio/index.d.ts +313 -3
- package/rate/index.d.ts +231 -3
- package/resizable/index.d.ts +155 -3
- package/result/index.d.ts +61 -3
- package/ripple/index.d.ts +67 -3
- package/select/index.d.ts +633 -3
- package/skeleton/index.d.ts +132 -3
- package/slider/index.d.ts +188 -3
- package/slider-select/index.d.ts +386 -3
- package/statistic/index.d.ts +129 -3
- package/steps/index.d.ts +101 -3
- package/switch/index.d.ts +223 -3
- package/table/index.d.ts +1076 -3
- package/tabs/index.d.ts +238 -3
- package/tag/index.d.ts +99 -3
- package/text-retract/index.d.ts +45 -3
- package/textarea/index.d.ts +340 -3
- package/theme/index.d.ts +152 -3
- package/time-ago/index.d.ts +32 -3
- package/time-picker/index.d.ts +615 -3
- package/time-range/index.d.ts +24 -3
- package/timeline/index.d.ts +108 -3
- package/tooltip/index.d.ts +154 -3
- package/transfer/index.d.ts +340 -3
- package/tree/index.d.ts +601 -3
- package/tree-file/index.d.ts +167 -3
- package/tree-select/index.d.ts +642 -3
- package/typography/index.d.ts +42 -3
- package/upload/index.d.ts +304 -3
- package/affix/affix.component.d.ts +0 -6
- package/affix/affix.module.d.ts +0 -7
- package/affix/affix.property.d.ts +0 -46
- package/affix/public-api.d.ts +0 -3
- package/alert/alert.component.d.ts +0 -21
- package/alert/alert.module.d.ts +0 -7
- package/alert/alert.property.d.ts +0 -396
- package/alert/public-api.d.ts +0 -3
- package/anchor/anchor-inner.component.d.ts +0 -6
- package/anchor/anchor.component.d.ts +0 -38
- package/anchor/anchor.module.d.ts +0 -8
- package/anchor/anchor.property.d.ts +0 -136
- package/anchor/public-api.d.ts +0 -4
- package/api/api.component.d.ts +0 -6
- package/api/api.module.d.ts +0 -7
- package/api/api.property.d.ts +0 -6
- package/api/public-api.d.ts +0 -3
- package/auto-complete/auto-complete-portal.component.d.ts +0 -35
- package/auto-complete/auto-complete.component.d.ts +0 -54
- package/auto-complete/auto-complete.module.d.ts +0 -7
- package/auto-complete/auto-complete.property.d.ts +0 -364
- package/auto-complete/public-api.d.ts +0 -4
- package/avatar/avatar-group.component.d.ts +0 -7
- package/avatar/avatar.component.d.ts +0 -37
- package/avatar/avatar.module.d.ts +0 -8
- package/avatar/avatar.property.d.ts +0 -149
- package/avatar/public-api.d.ts +0 -4
- package/back-top/back-top.component.d.ts +0 -25
- package/back-top/back-top.module.d.ts +0 -7
- package/back-top/back-top.property.d.ts +0 -45
- package/back-top/public-api.d.ts +0 -3
- package/badge/badge.component.d.ts +0 -14
- package/badge/badge.module.d.ts +0 -7
- package/badge/badge.property.d.ts +0 -132
- package/badge/public-api.d.ts +0 -3
- package/base-form/base-form.component.d.ts +0 -60
- package/base-form/base-form.module.d.ts +0 -6
- package/base-form/base-form.property.d.ts +0 -180
- package/base-form/public-api.d.ts +0 -3
- package/button/button.component.d.ts +0 -25
- package/button/button.module.d.ts +0 -8
- package/button/button.property.d.ts +0 -336
- package/button/buttons.component.d.ts +0 -13
- package/button/public-api.d.ts +0 -4
- package/calendar/calendar.component.d.ts +0 -55
- package/calendar/calendar.module.d.ts +0 -7
- package/calendar/calendar.property.d.ts +0 -132
- package/calendar/public-api.d.ts +0 -3
- package/card/card.component.d.ts +0 -9
- package/card/card.module.d.ts +0 -7
- package/card/card.property.d.ts +0 -83
- package/card/public-api.d.ts +0 -3
- package/carousel/carousel-panel.component.d.ts +0 -34
- package/carousel/carousel.component.d.ts +0 -33
- package/carousel/carousel.module.d.ts +0 -8
- package/carousel/carousel.property.d.ts +0 -259
- package/carousel/public-api.d.ts +0 -4
- package/cascade/cascade-portal.component.d.ts +0 -41
- package/cascade/cascade.component.d.ts +0 -56
- package/cascade/cascade.module.d.ts +0 -7
- package/cascade/cascade.property.d.ts +0 -359
- package/cascade/public-api.d.ts +0 -4
- package/checkbox/checkbox.component.d.ts +0 -26
- package/checkbox/checkbox.module.d.ts +0 -7
- package/checkbox/checkbox.property.d.ts +0 -319
- package/checkbox/public-api.d.ts +0 -3
- package/collapse/collapse-panel.component.d.ts +0 -16
- package/collapse/collapse.component.d.ts +0 -10
- package/collapse/collapse.module.d.ts +0 -8
- package/collapse/collapse.property.d.ts +0 -168
- package/collapse/public-api.d.ts +0 -4
- package/color/color.component.d.ts +0 -10
- package/color/color.module.d.ts +0 -7
- package/color/color.property.d.ts +0 -64
- package/color/public-api.d.ts +0 -3
- package/color-picker/color-map.data.d.ts +0 -3
- package/color-picker/color-picker-portal.component.d.ts +0 -118
- package/color-picker/color-picker.component.d.ts +0 -53
- package/color-picker/color-picker.directive.d.ts +0 -9
- package/color-picker/color-picker.module.d.ts +0 -8
- package/color-picker/color-picker.property.d.ts +0 -303
- package/color-picker/public-api.d.ts +0 -5
- package/comment/comment-reply.component.d.ts +0 -8
- package/comment/comment.component.d.ts +0 -14
- package/comment/comment.module.d.ts +0 -8
- package/comment/comment.property.d.ts +0 -131
- package/comment/public-api.d.ts +0 -4
- package/container/aside.component.d.ts +0 -8
- package/container/container.component.d.ts +0 -10
- package/container/container.module.d.ts +0 -11
- package/container/container.property.d.ts +0 -94
- package/container/footer.component.d.ts +0 -12
- package/container/header.component.d.ts +0 -12
- package/container/main.component.d.ts +0 -6
- package/container/public-api.d.ts +0 -7
- package/core/README.md +0 -25
- package/core/animation/badge.d.ts +0 -11
- package/core/animation/connect.d.ts +0 -11
- package/core/animation/consts.d.ts +0 -9
- package/core/animation/drop.d.ts +0 -6
- package/core/animation/fade.d.ts +0 -6
- package/core/animation/move.d.ts +0 -7
- package/core/animation/opacity.d.ts +0 -6
- package/core/animation/public-api.d.ts +0 -8
- package/core/animation/slide.d.ts +0 -6
- package/core/components/inner-html.component.d.ts +0 -9
- package/core/components/public-api.d.ts +0 -1
- package/core/config/config.d.ts +0 -620
- package/core/config/config.service.d.ts +0 -22
- package/core/config/index.d.ts +0 -1
- package/core/config/public-api.d.ts +0 -2
- package/core/functions/chunk.d.ts +0 -12
- package/core/functions/clone-deep.d.ts +0 -17
- package/core/functions/convert.d.ts +0 -90
- package/core/functions/csspx.d.ts +0 -5
- package/core/functions/date.d.ts +0 -70
- package/core/functions/drop.d.ts +0 -13
- package/core/functions/flex.d.ts +0 -7
- package/core/functions/group-by.d.ts +0 -5
- package/core/functions/guid.d.ts +0 -5
- package/core/functions/has-in.d.ts +0 -5
- package/core/functions/order-by.d.ts +0 -5
- package/core/functions/parent-path.d.ts +0 -10
- package/core/functions/property.d.ts +0 -16
- package/core/functions/public-api.d.ts +0 -15
- package/core/functions/remove.d.ts +0 -5
- package/core/functions/resize.d.ts +0 -19
- package/core/interfaces/data.type.d.ts +0 -194
- package/core/interfaces/identify.type.d.ts +0 -83
- package/core/interfaces/index.d.ts +0 -1
- package/core/interfaces/layout.type.d.ts +0 -169
- package/core/interfaces/public-api.d.ts +0 -4
- package/core/interfaces/result-list.type.d.ts +0 -116
- package/core/public-api.d.ts +0 -8
- package/core/services/http.service.d.ts +0 -28
- package/core/services/preloading-strategy.service.d.ts +0 -9
- package/core/services/public-api.d.ts +0 -5
- package/core/services/repository.service.d.ts +0 -28
- package/core/services/reuse-strategy.service.d.ts +0 -17
- package/core/services/storage.service.d.ts +0 -15
- package/core/theme/index.d.ts +0 -1
- package/core/theme/public-api.d.ts +0 -2
- package/core/theme/theme.d.ts +0 -73
- package/core/theme/theme.service.d.ts +0 -76
- package/core/util/animation.d.ts +0 -1
- package/core/util/camel-to-kebab.d.ts +0 -13
- package/core/util/check.d.ts +0 -10
- package/core/util/computed-style.d.ts +0 -10
- package/core/util/host.d.ts +0 -5
- package/core/util/html.d.ts +0 -5
- package/core/util/index.d.ts +0 -1
- package/core/util/kebab-to-camel.d.ts +0 -13
- package/core/util/log.d.ts +0 -10
- package/core/util/option.d.ts +0 -9
- package/core/util/public-api.d.ts +0 -10
- package/core/util/sleep.d.ts +0 -5
- package/crumb/crumb.component.d.ts +0 -7
- package/crumb/crumb.module.d.ts +0 -7
- package/crumb/crumb.property.d.ts +0 -77
- package/crumb/public-api.d.ts +0 -3
- package/date-picker/date-picker-portal.component.d.ts +0 -104
- package/date-picker/date-picker.component.d.ts +0 -113
- package/date-picker/date-picker.module.d.ts +0 -8
- package/date-picker/date-picker.property.d.ts +0 -1314
- package/date-picker/date-quarter.pipe.d.ts +0 -9
- package/date-picker/date-range-portal.component.d.ts +0 -135
- package/date-picker/date-range.component.d.ts +0 -134
- package/date-picker/picker-date.component.d.ts +0 -97
- package/date-picker/picker-month.component.d.ts +0 -86
- package/date-picker/picker-quarter.component.d.ts +0 -86
- package/date-picker/picker-year.component.d.ts +0 -32
- package/date-picker/public-api.d.ts +0 -11
- package/description/description-item.component.d.ts +0 -8
- package/description/description.component.d.ts +0 -15
- package/description/description.module.d.ts +0 -8
- package/description/description.property.d.ts +0 -207
- package/description/public-api.d.ts +0 -4
- package/dialog/dialog-container.component.d.ts +0 -7
- package/dialog/dialog-portal.component.d.ts +0 -45
- package/dialog/dialog-portal.directives.d.ts +0 -36
- package/dialog/dialog-ref.d.ts +0 -23
- package/dialog/dialog.component.d.ts +0 -72
- package/dialog/dialog.module.d.ts +0 -9
- package/dialog/dialog.property.d.ts +0 -338
- package/dialog/dialog.service.d.ts +0 -20
- package/dialog/public-api.d.ts +0 -8
- package/doc/doc.component.d.ts +0 -6
- package/doc/doc.module.d.ts +0 -7
- package/doc/doc.property.d.ts +0 -6
- package/doc/public-api.d.ts +0 -3
- package/drag/drag.directive.d.ts +0 -13
- package/drag/drag.module.d.ts +0 -7
- package/drag/drag.property.d.ts +0 -25
- package/drag/public-api.d.ts +0 -3
- package/drawer/drawer-container.component.d.ts +0 -7
- package/drawer/drawer-portal.component.d.ts +0 -17
- package/drawer/drawer-portal.directives.d.ts +0 -18
- package/drawer/drawer-ref.d.ts +0 -9
- package/drawer/drawer.component.d.ts +0 -34
- package/drawer/drawer.module.d.ts +0 -9
- package/drawer/drawer.property.d.ts +0 -149
- package/drawer/drawer.service.d.ts +0 -17
- package/drawer/public-api.d.ts +0 -9
- package/dropdown/dropdown-portal.component.d.ts +0 -55
- package/dropdown/dropdown.component.d.ts +0 -42
- package/dropdown/dropdown.module.d.ts +0 -7
- package/dropdown/dropdown.property.d.ts +0 -102
- package/dropdown/public-api.d.ts +0 -4
- package/empty/empty.component.d.ts +0 -6
- package/empty/empty.module.d.ts +0 -7
- package/empty/empty.property.d.ts +0 -48
- package/empty/public-api.d.ts +0 -3
- package/examples/examples.component.d.ts +0 -6
- package/examples/examples.module.d.ts +0 -7
- package/examples/examples.property.d.ts +0 -6
- package/examples/public-api.d.ts +0 -3
- package/find/find.component.d.ts +0 -57
- package/find/find.module.d.ts +0 -7
- package/find/find.property.d.ts +0 -562
- package/find/public-api.d.ts +0 -3
- package/form/control.component.d.ts +0 -51
- package/form/form.component.d.ts +0 -25
- package/form/form.module.d.ts +0 -8
- package/form/form.property.d.ts +0 -493
- package/form/public-api.d.ts +0 -4
- package/highlight/highlight.component.d.ts +0 -19
- package/highlight/highlight.module.d.ts +0 -7
- package/highlight/highlight.property.d.ts +0 -72
- package/highlight/highlight.service.d.ts +0 -8
- package/highlight/public-api.d.ts +0 -4
- package/i18n/i18n.directive.d.ts +0 -11
- package/i18n/i18n.module.d.ts +0 -8
- package/i18n/i18n.pipe.d.ts +0 -12
- package/i18n/i18n.property.d.ts +0 -195
- package/i18n/i18n.service.d.ts +0 -17
- package/i18n/languages/ar_EG.d.ts +0 -180
- package/i18n/languages/bg_BG.d.ts +0 -180
- package/i18n/languages/ca_ES.d.ts +0 -180
- package/i18n/languages/cs_CZ.d.ts +0 -180
- package/i18n/languages/da_DK.d.ts +0 -180
- package/i18n/languages/de_DE.d.ts +0 -180
- package/i18n/languages/el_GR.d.ts +0 -180
- package/i18n/languages/en_GB.d.ts +0 -181
- package/i18n/languages/en_US.d.ts +0 -181
- package/i18n/languages/es_ES.d.ts +0 -180
- package/i18n/languages/et_EE.d.ts +0 -180
- package/i18n/languages/fa_IR.d.ts +0 -180
- package/i18n/languages/fi_FI.d.ts +0 -180
- package/i18n/languages/fr_BE.d.ts +0 -180
- package/i18n/languages/fr_FR.d.ts +0 -180
- package/i18n/languages/he_IL.d.ts +0 -180
- package/i18n/languages/hi_IN.d.ts +0 -180
- package/i18n/languages/hr_HR.d.ts +0 -180
- package/i18n/languages/hu_HU.d.ts +0 -180
- package/i18n/languages/hy_AM.d.ts +0 -180
- package/i18n/languages/id_ID.d.ts +0 -180
- package/i18n/languages/is_IS.d.ts +0 -180
- package/i18n/languages/it_IT.d.ts +0 -180
- package/i18n/languages/ja_JP.d.ts +0 -180
- package/i18n/languages/ka_GE.d.ts +0 -180
- package/i18n/languages/kn_IN.d.ts +0 -180
- package/i18n/languages/ko_KR.d.ts +0 -180
- package/i18n/languages/ku_IQ.d.ts +0 -156
- package/i18n/languages/lv_LV.d.ts +0 -180
- package/i18n/languages/mn_MN.d.ts +0 -180
- package/i18n/languages/ms_MY.d.ts +0 -180
- package/i18n/languages/nb_NO.d.ts +0 -180
- package/i18n/languages/ne_NP.d.ts +0 -180
- package/i18n/languages/nl_BE.d.ts +0 -180
- package/i18n/languages/nl_NL.d.ts +0 -180
- package/i18n/languages/pl_PL.d.ts +0 -180
- package/i18n/languages/pt_BR.d.ts +0 -180
- package/i18n/languages/pt_PT.d.ts +0 -180
- package/i18n/languages/ro_RO.d.ts +0 -180
- package/i18n/languages/ru_RU.d.ts +0 -180
- package/i18n/languages/sk_SK.d.ts +0 -179
- package/i18n/languages/sl_SI.d.ts +0 -180
- package/i18n/languages/sr_RS.d.ts +0 -180
- package/i18n/languages/sv_SE.d.ts +0 -180
- package/i18n/languages/ta_IN.d.ts +0 -180
- package/i18n/languages/th_TH.d.ts +0 -180
- package/i18n/languages/tr_TR.d.ts +0 -180
- package/i18n/languages/uk_UA.d.ts +0 -180
- package/i18n/languages/vi_VN.d.ts +0 -180
- package/i18n/languages/zh_CN.d.ts +0 -180
- package/i18n/languages/zh_TW.d.ts +0 -180
- package/i18n/public-api.d.ts +0 -56
- package/icon/icon.component.d.ts +0 -31
- package/icon/icon.module.d.ts +0 -7
- package/icon/icon.property.d.ts +0 -64
- package/icon/icon.service.d.ts +0 -33
- package/icon/public-api.d.ts +0 -4
- package/image/image-group.component.d.ts +0 -9
- package/image/image-preview.component.d.ts +0 -33
- package/image/image.component.d.ts +0 -24
- package/image/image.module.d.ts +0 -9
- package/image/image.property.d.ts +0 -213
- package/image/public-api.d.ts +0 -5
- package/inner/inner.component.d.ts +0 -8
- package/inner/inner.module.d.ts +0 -7
- package/inner/inner.property.d.ts +0 -24
- package/inner/public-api.d.ts +0 -3
- package/input/input-group.component.d.ts +0 -8
- package/input/input.component.d.ts +0 -52
- package/input/input.module.d.ts +0 -8
- package/input/input.property.d.ts +0 -552
- package/input/public-api.d.ts +0 -4
- package/input-number/input-number.component.d.ts +0 -35
- package/input-number/input-number.module.d.ts +0 -7
- package/input-number/input-number.property.d.ts +0 -312
- package/input-number/public-api.d.ts +0 -3
- package/keyword/keyword.directive.d.ts +0 -10
- package/keyword/keyword.module.d.ts +0 -7
- package/keyword/keyword.property.d.ts +0 -44
- package/keyword/public-api.d.ts +0 -3
- package/layout/col.component.d.ts +0 -14
- package/layout/layout.module.d.ts +0 -8
- package/layout/layout.property.d.ts +0 -139
- package/layout/public-api.d.ts +0 -4
- package/layout/row.component.d.ts +0 -13
- package/link/link.component.d.ts +0 -13
- package/link/link.module.d.ts +0 -7
- package/link/link.property.d.ts +0 -108
- package/link/public-api.d.ts +0 -3
- package/list/list-drop-group.directive.d.ts +0 -13
- package/list/list-option.component.d.ts +0 -18
- package/list/list.component.d.ts +0 -76
- package/list/list.module.d.ts +0 -9
- package/list/list.property.d.ts +0 -377
- package/list/public-api.d.ts +0 -5
- package/loading/loading.component.d.ts +0 -23
- package/loading/loading.module.d.ts +0 -7
- package/loading/loading.property.d.ts +0 -64
- package/loading/public-api.d.ts +0 -3
- package/menu/menu-node.component.d.ts +0 -19
- package/menu/menu.component.d.ts +0 -35
- package/menu/menu.module.d.ts +0 -8
- package/menu/menu.property.d.ts +0 -150
- package/menu/public-api.d.ts +0 -4
- package/message/README.md +0 -20
- package/message/message-ref.d.ts +0 -9
- package/message/message.component.d.ts +0 -15
- package/message/message.module.d.ts +0 -6
- package/message/message.property.d.ts +0 -137
- package/message/message.service.d.ts +0 -27
- package/message/public-api.d.ts +0 -5
- package/message-box/message-box.component.d.ts +0 -31
- package/message-box/message-box.module.d.ts +0 -6
- package/message-box/message-box.property.d.ts +0 -180
- package/message-box/message-box.service.d.ts +0 -17
- package/message-box/public-api.d.ts +0 -4
- package/notification/notification.component.d.ts +0 -15
- package/notification/notification.module.d.ts +0 -6
- package/notification/notification.property.d.ts +0 -96
- package/notification/notification.service.d.ts +0 -20
- package/notification/public-api.d.ts +0 -4
- package/outlet/outlet.directive.d.ts +0 -14
- package/outlet/outlet.module.d.ts +0 -7
- package/outlet/outlet.property.d.ts +0 -6
- package/outlet/public-api.d.ts +0 -3
- package/page-header/page-header.component.d.ts +0 -12
- package/page-header/page-header.module.d.ts +0 -7
- package/page-header/page-header.property.d.ts +0 -43
- package/page-header/public-api.d.ts +0 -3
- package/pagination/pagination.component.d.ts +0 -53
- package/pagination/pagination.module.d.ts +0 -7
- package/pagination/pagination.property.d.ts +0 -151
- package/pagination/public-api.d.ts +0 -3
- package/pattern/pattern.component.d.ts +0 -6
- package/pattern/pattern.module.d.ts +0 -7
- package/pattern/pattern.property.d.ts +0 -6
- package/pattern/public-api.d.ts +0 -3
- package/popconfirm/popconfirm.component.d.ts +0 -22
- package/popconfirm/popconfirm.module.d.ts +0 -7
- package/popconfirm/popconfirm.property.d.ts +0 -96
- package/popconfirm/public-api.d.ts +0 -3
- package/popover/popover-portal.component.d.ts +0 -23
- package/popover/popover.directive.d.ts +0 -34
- package/popover/popover.module.d.ts +0 -7
- package/popover/popover.property.d.ts +0 -103
- package/popover/public-api.d.ts +0 -4
- package/portal/portal.module.d.ts +0 -6
- package/portal/portal.property.d.ts +0 -76
- package/portal/portal.service.d.ts +0 -80
- package/portal/public-api.d.ts +0 -3
- package/progress/progress.component.d.ts +0 -39
- package/progress/progress.module.d.ts +0 -7
- package/progress/progress.property.d.ts +0 -147
- package/progress/public-api.d.ts +0 -3
- package/radio/public-api.d.ts +0 -3
- package/radio/radio.component.d.ts +0 -23
- package/radio/radio.module.d.ts +0 -7
- package/radio/radio.property.d.ts +0 -283
- package/rate/public-api.d.ts +0 -3
- package/rate/rate.component.d.ts +0 -26
- package/rate/rate.module.d.ts +0 -7
- package/rate/rate.property.d.ts +0 -199
- package/resizable/public-api.d.ts +0 -3
- package/resizable/resizable.directive.d.ts +0 -52
- package/resizable/resizable.module.d.ts +0 -7
- package/resizable/resizable.property.d.ts +0 -97
- package/result/public-api.d.ts +0 -3
- package/result/result.component.d.ts +0 -10
- package/result/result.module.d.ts +0 -7
- package/result/result.property.d.ts +0 -44
- package/ripple/public-api.d.ts +0 -3
- package/ripple/ripple.directive.d.ts +0 -21
- package/ripple/ripple.module.d.ts +0 -7
- package/ripple/ripple.property.d.ts +0 -39
- package/select/public-api.d.ts +0 -4
- package/select/select-portal.component.d.ts +0 -55
- package/select/select.component.d.ts +0 -106
- package/select/select.module.d.ts +0 -7
- package/select/select.property.d.ts +0 -473
- package/skeleton/public-api.d.ts +0 -3
- package/skeleton/skeleton.component.d.ts +0 -9
- package/skeleton/skeleton.module.d.ts +0 -7
- package/skeleton/skeleton.property.d.ts +0 -116
- package/slider/public-api.d.ts +0 -3
- package/slider/slider.component.d.ts +0 -62
- package/slider/slider.module.d.ts +0 -7
- package/slider/slider.property.d.ts +0 -121
- package/slider-select/public-api.d.ts +0 -3
- package/slider-select/slider-select.component.d.ts +0 -60
- package/slider-select/slider-select.module.d.ts +0 -7
- package/slider-select/slider-select.property.d.ts +0 -320
- package/statistic/countdown.component.d.ts +0 -21
- package/statistic/public-api.d.ts +0 -4
- package/statistic/statistic.component.d.ts +0 -8
- package/statistic/statistic.module.d.ts +0 -8
- package/statistic/statistic.property.d.ts +0 -95
- package/steps/public-api.d.ts +0 -3
- package/steps/steps.component.d.ts +0 -11
- package/steps/steps.module.d.ts +0 -7
- package/steps/steps.property.d.ts +0 -82
- package/switch/public-api.d.ts +0 -3
- package/switch/switch.component.d.ts +0 -15
- package/switch/switch.module.d.ts +0 -7
- package/switch/switch.property.d.ts +0 -201
- package/table/public-api.d.ts +0 -6
- package/table/table-body.component.d.ts +0 -48
- package/table/table-foot.component.d.ts +0 -15
- package/table/table-head.component.d.ts +0 -48
- package/table/table.component.d.ts +0 -106
- package/table/table.module.d.ts +0 -10
- package/table/table.property.d.ts +0 -869
- package/tabs/public-api.d.ts +0 -6
- package/tabs/tab-content.component.d.ts +0 -10
- package/tabs/tab-link.directive.d.ts +0 -17
- package/tabs/tab.component.d.ts +0 -11
- package/tabs/tabs.component.d.ts +0 -36
- package/tabs/tabs.module.d.ts +0 -9
- package/tabs/tabs.property.d.ts +0 -167
- package/tag/public-api.d.ts +0 -3
- package/tag/tag.component.d.ts +0 -17
- package/tag/tag.module.d.ts +0 -7
- package/tag/tag.property.d.ts +0 -76
- package/text-retract/public-api.d.ts +0 -3
- package/text-retract/text-retract.component.d.ts +0 -10
- package/text-retract/text-retract.module.d.ts +0 -7
- package/text-retract/text-retract.property.d.ts +0 -29
- package/textarea/public-api.d.ts +0 -3
- package/textarea/textarea.component.d.ts +0 -26
- package/textarea/textarea.module.d.ts +0 -7
- package/textarea/textarea.property.d.ts +0 -309
- package/theme/public-api.d.ts +0 -3
- package/theme/theme.component.d.ts +0 -47
- package/theme/theme.module.d.ts +0 -7
- package/theme/theme.property.d.ts +0 -100
- package/time-ago/public-api.d.ts +0 -3
- package/time-ago/time-ago.module.d.ts +0 -7
- package/time-ago/time-ago.pipe.d.ts +0 -17
- package/time-ago/time-ago.property.d.ts +0 -6
- package/time-picker/public-api.d.ts +0 -5
- package/time-picker/time-picker-frame.component.d.ts +0 -73
- package/time-picker/time-picker-portal.component.d.ts +0 -39
- package/time-picker/time-picker.component.d.ts +0 -64
- package/time-picker/time-picker.module.d.ts +0 -8
- package/time-picker/time-picker.property.d.ts +0 -441
- package/time-range/public-api.d.ts +0 -3
- package/time-range/time-range.module.d.ts +0 -7
- package/time-range/time-range.pipe.d.ts +0 -10
- package/time-range/time-range.property.d.ts +0 -6
- package/timeline/public-api.d.ts +0 -3
- package/timeline/timeline.component.d.ts +0 -11
- package/timeline/timeline.module.d.ts +0 -7
- package/timeline/timeline.property.d.ts +0 -90
- package/tooltip/public-api.d.ts +0 -4
- package/tooltip/tooltip-portal.component.d.ts +0 -34
- package/tooltip/tooltip.directive.d.ts +0 -36
- package/tooltip/tooltip.module.d.ts +0 -7
- package/tooltip/tooltip.property.d.ts +0 -81
- package/transfer/public-api.d.ts +0 -3
- package/transfer/transfer.component.d.ts +0 -72
- package/transfer/transfer.module.d.ts +0 -7
- package/transfer/transfer.property.d.ts +0 -263
- package/tree/public-api.d.ts +0 -4
- package/tree/tree-node.component.d.ts +0 -57
- package/tree/tree.component.d.ts +0 -77
- package/tree/tree.module.d.ts +0 -8
- package/tree/tree.property.d.ts +0 -460
- package/tree/tree.service.d.ts +0 -10
- package/tree-file/public-api.d.ts +0 -3
- package/tree-file/tree-file.component.d.ts +0 -24
- package/tree-file/tree-file.module.d.ts +0 -7
- package/tree-file/tree-file.property.d.ts +0 -138
- package/tree-select/public-api.d.ts +0 -4
- package/tree-select/tree-select-portal.component.d.ts +0 -46
- package/tree-select/tree-select.component.d.ts +0 -109
- package/tree-select/tree-select.module.d.ts +0 -7
- package/tree-select/tree-select.property.d.ts +0 -486
- package/typography/public-api.d.ts +0 -3
- package/typography/typography.component.d.ts +0 -11
- package/typography/typography.module.d.ts +0 -7
- package/typography/typography.property.d.ts +0 -25
- package/upload/public-api.d.ts +0 -4
- package/upload/upload-portal.component.d.ts +0 -48
- package/upload/upload.component.d.ts +0 -44
- package/upload/upload.module.d.ts +0 -7
- package/upload/upload.property.d.ts +0 -208
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, model, Directive, output, computed,
|
|
2
|
+
import { input, model, Directive, output, computed, HostBinding, HostListener, ChangeDetectionStrategy, ViewEncapsulation, Component, signal, inject, ElementRef, ViewContainerRef, effect, NgModule } from '@angular/core';
|
|
3
3
|
import { XPortalService, XPortalConnectedPosition } from '@ng-nest/ui/portal';
|
|
4
4
|
import { XPropertyFunction, XToCssPixelValue, XToBoolean, XToNumber, XIsEmpty, XFadeAnimation, XIsChange } from '@ng-nest/ui/core';
|
|
5
5
|
import { XOutletDirective } from '@ng-nest/ui/outlet';
|
|
@@ -92,10 +92,10 @@ class XPopoverProperty extends XPropertyFunction(X_POPOVER_CONFIG_NAME) {
|
|
|
92
92
|
*/
|
|
93
93
|
this.mouseLeaveDelay = input(100, { transform: XToNumber });
|
|
94
94
|
}
|
|
95
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
96
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
95
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverProperty, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
96
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: XPopoverProperty, isStandalone: true, selector: "[x-popover], x-popover", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, connectTo: { classPropertyName: "connectTo", publicName: "connectTo", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "trigger", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, condition: { classPropertyName: "condition", publicName: "condition", isSignal: true, isRequired: false, transformFunction: null }, mouseEnterDelay: { classPropertyName: "mouseEnterDelay", publicName: "mouseEnterDelay", isSignal: true, isRequired: false, transformFunction: null }, mouseLeaveDelay: { classPropertyName: "mouseLeaveDelay", publicName: "mouseLeaveDelay", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, usesInheritance: true, ngImport: i0 }); }
|
|
97
97
|
}
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverProperty, decorators: [{
|
|
99
99
|
type: Directive,
|
|
100
100
|
args: [{ selector: `[${XPopoverPrefix}], ${XPopoverPrefix}` }]
|
|
101
101
|
}] });
|
|
@@ -135,10 +135,10 @@ class XPopoverPortalComponent {
|
|
|
135
135
|
stopPropagation(event) {
|
|
136
136
|
event.stopPropagation();
|
|
137
137
|
}
|
|
138
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
139
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
138
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
139
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: XPopoverPortalComponent, isStandalone: true, selector: "x-popover-portal", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "trigger", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { portalHover: "portalHover" }, host: { listeners: { "mouseenter": "mouseenter()", "mouseleave": "mouseleave()" }, properties: { "@x-fade-animation": "this.animation" } }, ngImport: i0, template: "<div #popoverPortal class=\"x-popover-portal\" [ngClass]=\"classMap()\" (click)=\"stopPropagation($event)\">\r\n <div\r\n class=\"x-popover-portal-inner\"\r\n [style.width]=\"width()\"\r\n [style.minWidth]=\"minWidth()\"\r\n [style.maxWidth]=\"maxWidth()\"\r\n >\r\n @if (title()) {\r\n <div class=\"x-popover-portal-title\">\r\n <ng-container *xOutlet=\"title()\">\r\n {{ title() }}\r\n </ng-container>\r\n </div>\r\n }\r\n @if (content()) {\r\n <div class=\"x-popover-portal-content\">\r\n <ng-container *xOutlet=\"content()\">\r\n {{ content() }}\r\n </ng-container>\r\n </div>\r\n }\r\n @if (footer()) {\r\n <div class=\"x-popover-portal-footer\">\r\n <ng-container *xOutlet=\"footer()\">\r\n {{ footer() }}\r\n </ng-container>\r\n </div>\r\n }\r\n </div>\r\n <div #popoverArrow class=\"x-popover-portal-arrow\"></div>\r\n</div>\r\n", styles: ["x-popover{display:inline-block}.x-popover-portal{margin:0;padding:0}.x-popover-portal{display:inline-flex;position:relative;justify-content:center;align-items:center}.x-popover-portal>.x-popover-portal-inner{font-size:var(--x-font-size);background-color:var(--x-background-100);color:var(--x-text);padding:var(--x-font-size);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow)}.x-popover-portal .x-popover-portal-title{margin-bottom:calc(var(--x-font-size) - .5rem);font-weight:600;display:flex;align-items:center}.x-popover-portal .x-popover-portal-footer{margin-top:calc(var(--x-font-size) - .5rem)}.x-popover-portal .x-popover-portal-arrow,.x-popover-portal .x-popover-portal-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.x-popover-portal-top,.x-popover-portal-top-start,.x-popover-portal-top-end{padding-bottom:.525rem}.x-popover-portal-top>.x-popover-portal-arrow,.x-popover-portal-top-start>.x-popover-portal-arrow,.x-popover-portal-top-end>.x-popover-portal-arrow{bottom:.1rem}.x-popover-portal-top .x-popover-portal-arrow:after,.x-popover-portal-top-start .x-popover-portal-arrow:after,.x-popover-portal-top-end .x-popover-portal-arrow:after{bottom:.1rem;margin-left:-.375rem}.x-popover-portal-left,.x-popover-portal-left-start,.x-popover-portal-left-end{padding-right:.525rem}.x-popover-portal-left>.x-popover-portal-arrow,.x-popover-portal-left-start>.x-popover-portal-arrow,.x-popover-portal-left-end>.x-popover-portal-arrow{right:.1rem}.x-popover-portal-left .x-popover-portal-arrow:after,.x-popover-portal-left-start .x-popover-portal-arrow:after,.x-popover-portal-left-end .x-popover-portal-arrow:after{right:.1rem;margin-top:-.375rem}.x-popover-portal-right,.x-popover-portal-right-start,.x-popover-portal-right-end{padding-left:.525rem}.x-popover-portal-right>.x-popover-portal-arrow,.x-popover-portal-right-start>.x-popover-portal-arrow,.x-popover-portal-right-end>.x-popover-portal-arrow{left:.1rem}.x-popover-portal-right .x-popover-portal-arrow:after,.x-popover-portal-right-start .x-popover-portal-arrow:after,.x-popover-portal-right-end .x-popover-portal-arrow:after{left:.1rem;margin-top:-.375rem}.x-popover-portal-bottom,.x-popover-portal-bottom-start,.x-popover-portal-bottom-end{padding-top:.525rem}.x-popover-portal-bottom .x-popover-portal-arrow,.x-popover-portal-bottom-start .x-popover-portal-arrow,.x-popover-portal-bottom-end .x-popover-portal-arrow{top:.1rem}.x-popover-portal-bottom .x-popover-portal-arrow:after,.x-popover-portal-bottom-start .x-popover-portal-arrow:after,.x-popover-portal-bottom-end .x-popover-portal-arrow:after{top:.1rem;margin-left:-.375rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], animations: [XFadeAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
140
140
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverPortalComponent, decorators: [{
|
|
142
142
|
type: Component,
|
|
143
143
|
args: [{ selector: `${XPopoverPortalPrefix}`, imports: [NgClass, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XFadeAnimation], template: "<div #popoverPortal class=\"x-popover-portal\" [ngClass]=\"classMap()\" (click)=\"stopPropagation($event)\">\r\n <div\r\n class=\"x-popover-portal-inner\"\r\n [style.width]=\"width()\"\r\n [style.minWidth]=\"minWidth()\"\r\n [style.maxWidth]=\"maxWidth()\"\r\n >\r\n @if (title()) {\r\n <div class=\"x-popover-portal-title\">\r\n <ng-container *xOutlet=\"title()\">\r\n {{ title() }}\r\n </ng-container>\r\n </div>\r\n }\r\n @if (content()) {\r\n <div class=\"x-popover-portal-content\">\r\n <ng-container *xOutlet=\"content()\">\r\n {{ content() }}\r\n </ng-container>\r\n </div>\r\n }\r\n @if (footer()) {\r\n <div class=\"x-popover-portal-footer\">\r\n <ng-container *xOutlet=\"footer()\">\r\n {{ footer() }}\r\n </ng-container>\r\n </div>\r\n }\r\n </div>\r\n <div #popoverArrow class=\"x-popover-portal-arrow\"></div>\r\n</div>\r\n", styles: ["x-popover{display:inline-block}.x-popover-portal{margin:0;padding:0}.x-popover-portal{display:inline-flex;position:relative;justify-content:center;align-items:center}.x-popover-portal>.x-popover-portal-inner{font-size:var(--x-font-size);background-color:var(--x-background-100);color:var(--x-text);padding:var(--x-font-size);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow)}.x-popover-portal .x-popover-portal-title{margin-bottom:calc(var(--x-font-size) - .5rem);font-weight:600;display:flex;align-items:center}.x-popover-portal .x-popover-portal-footer{margin-top:calc(var(--x-font-size) - .5rem)}.x-popover-portal .x-popover-portal-arrow,.x-popover-portal .x-popover-portal-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.x-popover-portal-top,.x-popover-portal-top-start,.x-popover-portal-top-end{padding-bottom:.525rem}.x-popover-portal-top>.x-popover-portal-arrow,.x-popover-portal-top-start>.x-popover-portal-arrow,.x-popover-portal-top-end>.x-popover-portal-arrow{bottom:.1rem}.x-popover-portal-top .x-popover-portal-arrow:after,.x-popover-portal-top-start .x-popover-portal-arrow:after,.x-popover-portal-top-end .x-popover-portal-arrow:after{bottom:.1rem;margin-left:-.375rem}.x-popover-portal-left,.x-popover-portal-left-start,.x-popover-portal-left-end{padding-right:.525rem}.x-popover-portal-left>.x-popover-portal-arrow,.x-popover-portal-left-start>.x-popover-portal-arrow,.x-popover-portal-left-end>.x-popover-portal-arrow{right:.1rem}.x-popover-portal-left .x-popover-portal-arrow:after,.x-popover-portal-left-start .x-popover-portal-arrow:after,.x-popover-portal-left-end .x-popover-portal-arrow:after{right:.1rem;margin-top:-.375rem}.x-popover-portal-right,.x-popover-portal-right-start,.x-popover-portal-right-end{padding-left:.525rem}.x-popover-portal-right>.x-popover-portal-arrow,.x-popover-portal-right-start>.x-popover-portal-arrow,.x-popover-portal-right-end>.x-popover-portal-arrow{left:.1rem}.x-popover-portal-right .x-popover-portal-arrow:after,.x-popover-portal-right-start .x-popover-portal-arrow:after,.x-popover-portal-right-end .x-popover-portal-arrow:after{left:.1rem;margin-top:-.375rem}.x-popover-portal-bottom,.x-popover-portal-bottom-start,.x-popover-portal-bottom-end{padding-top:.525rem}.x-popover-portal-bottom .x-popover-portal-arrow,.x-popover-portal-bottom-start .x-popover-portal-arrow,.x-popover-portal-bottom-end .x-popover-portal-arrow{top:.1rem}.x-popover-portal-bottom .x-popover-portal-arrow:after,.x-popover-portal-bottom-start .x-popover-portal-arrow:after,.x-popover-portal-bottom-end .x-popover-portal-arrow:after{top:.1rem;margin-left:-.375rem}\n"] }]
|
|
144
144
|
}], propDecorators: { mouseenter: [{
|
|
@@ -303,10 +303,10 @@ class XPopoverDirective extends XPopoverProperty {
|
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
307
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
306
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
307
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0", type: XPopoverDirective, isStandalone: true, selector: "[x-popover], x-popover", host: { listeners: { "click": "click()", "mouseenter": "mouseenter()", "mouseleave": "mouseleave()", "focus": "focus()", "blur": "blur()" }, properties: { "class.x-popover-show": "this._show" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
|
308
308
|
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverDirective, decorators: [{
|
|
310
310
|
type: Directive,
|
|
311
311
|
args: [{ selector: `[${XPopoverPrefix}], ${XPopoverPrefix}` }]
|
|
312
312
|
}], ctorParameters: () => [], propDecorators: { _show: [{
|
|
@@ -330,11 +330,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImpor
|
|
|
330
330
|
}] } });
|
|
331
331
|
|
|
332
332
|
class XPopoverModule {
|
|
333
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
334
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
335
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
333
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
334
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XPopoverModule, imports: [XPopoverDirective], exports: [XPopoverDirective] }); }
|
|
335
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverModule }); }
|
|
336
336
|
}
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPopoverModule, decorators: [{
|
|
338
338
|
type: NgModule,
|
|
339
339
|
args: [{
|
|
340
340
|
exports: [XPopoverDirective],
|
|
@@ -5,11 +5,11 @@ import { Overlay } from '@angular/cdk/overlay';
|
|
|
5
5
|
import { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
|
|
6
6
|
|
|
7
7
|
class XPortalModule {
|
|
8
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
8
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPortalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XPortalModule }); }
|
|
10
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPortalModule }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPortalModule, decorators: [{
|
|
13
13
|
type: NgModule,
|
|
14
14
|
args: [{
|
|
15
15
|
imports: [],
|
|
@@ -61,7 +61,7 @@ class XPortalService {
|
|
|
61
61
|
portal.embeddedViewRef = portal.overlayRef.attach(portal.templatePortal);
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
|
-
portal.componentPortal = new ComponentPortal(option.content, option.viewContainerRef, option.injector
|
|
64
|
+
portal.componentPortal = new ComponentPortal(option.content, option.viewContainerRef, option.injector);
|
|
65
65
|
portal.componentRef = portal.overlayRef.attach(portal.componentPortal);
|
|
66
66
|
}
|
|
67
67
|
return portal;
|
|
@@ -217,10 +217,10 @@ class XPortalService {
|
|
|
217
217
|
placement.forEach((place) => result.push(XPortalPlacement[place]));
|
|
218
218
|
return result;
|
|
219
219
|
}
|
|
220
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
221
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
220
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
221
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPortalService, providedIn: 'root' }); }
|
|
222
222
|
}
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XPortalService, decorators: [{
|
|
224
224
|
type: Injectable,
|
|
225
225
|
args: [{ providedIn: 'root' }]
|
|
226
226
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-nest-ui-portal.mjs","sources":["../../../../lib/ng-nest/ui/portal/portal.module.ts","../../../../lib/ng-nest/ui/portal/portal.property.ts","../../../../lib/ng-nest/ui/portal/portal.service.ts","../../../../lib/ng-nest/ui/portal/ng-nest-ui-portal.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\n\r\n@NgModule({\r\n imports: [],\r\n exports: [],\r\n providers: []\r\n})\r\nexport class XPortalModule {}\r\n","import { TemplateRef, ViewContainerRef, ComponentFactoryResolver, ComponentRef, EmbeddedViewRef } from '@angular/core';\r\nimport { ComponentType, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\r\nimport { OverlayRef, OverlayConfig, ConnectedPosition } from '@angular/cdk/overlay';\r\nimport { XInvertKeyValues } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Portal\r\n * @selector x-portal\r\n * @decorator component\r\n */\r\nexport const XPortalPrefix = 'x-portal';\r\nexport const XPortalResizablePrefix = 'x-portal-resizable';\r\n\r\nexport const XPortalPlacement: { [proptery: string]: ConnectedPosition } = {\r\n bottom: { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' },\r\n left: { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' },\r\n right: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' },\r\n top: { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' },\r\n 'bottom-end': { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top' },\r\n 'bottom-start': { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\r\n 'left-end': { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom' },\r\n 'left-start': { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top' },\r\n 'right-end': { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom' },\r\n 'right-start': { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top' },\r\n 'top-end': { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom' },\r\n 'top-start': { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' }\r\n};\r\n\r\nexport const XPortalConnectedPosition: Map<ConnectedPosition, string> = XInvertKeyValues(XPortalPlacement);\r\n\r\n/**\r\n * Portal Property\r\n */\r\nexport interface XPortalProperty<T> {\r\n /**\r\n * @zh_CN 内容,模板/组件\r\n * @en_US Content, template/component\r\n */\r\n content?: TemplateRef<any> | ComponentType<T>;\r\n /**\r\n * @zh_CN 视图容器\r\n * @en_US View container\r\n */\r\n viewContainerRef?: ViewContainerRef;\r\n /**\r\n * @zh_CN 上下文\r\n * @en_US Context\r\n */\r\n context?: any;\r\n /**\r\n * @zh_CN 注入器\r\n * @en_US Injector\r\n */\r\n injector?: any;\r\n /**\r\n * @zh_CN 组件解析器\r\n * @en_US Component parser\r\n */\r\n componentFactoryResolver?: ComponentFactoryResolver;\r\n /**\r\n * @zh_CN 覆盖视图层配置\r\n * @en_US Overlay view layer configuration\r\n */\r\n overlayConfig?: OverlayConfig;\r\n}\r\n\r\nexport interface XPortalOverlayRef<T> {\r\n /**\r\n * @zh_CN cdk 创建的覆盖视图层\r\n * @en_US Overlay view layer created by cdk\r\n */\r\n overlayRef?: OverlayRef;\r\n /**\r\n * @zh_CN cdk 模板视图\r\n * @en_US Cdk template view\r\n */\r\n templatePortal?: TemplatePortal<any>;\r\n /**\r\n * @zh_CN cdk 组件视图\r\n * @en_US Cdk component view\r\n */\r\n componentPortal?: ComponentPortal<T>;\r\n /**\r\n * @zh_CN 组件视图\r\n * @en_US Component view\r\n */\r\n componentRef?: ComponentRef<T>;\r\n /**\r\n * @zh_CN 模板视图\r\n * @en_US Template view\r\n */\r\n embeddedViewRef?: EmbeddedViewRef<any>;\r\n}\r\n","import {\r\n Injectable,\r\n TemplateRef,\r\n Injector,\r\n ElementRef,\r\n ViewContainerRef,\r\n StaticProvider,\r\n RendererFactory2,\r\n inject\r\n} from '@angular/core';\r\nimport { Overlay, OverlayRef, PositionStrategy, ConnectedPosition, ComponentType } from '@angular/cdk/overlay';\r\nimport { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\r\nimport { XPortalProperty, XPortalOverlayRef, XPortalPlacement } from './portal.property';\r\nimport { XPlacement, XPosition, XPlace, XComputed } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * 动态创建视图服务\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class XPortalService {\r\n overlay = inject(Overlay);\r\n injector = inject(Injector);\r\n private rendererFactory = inject(RendererFactory2);\r\n renderer = this.rendererFactory.createRenderer(null, null);\r\n\r\n attach<T>(option: XPortalProperty<T>): XPortalOverlayRef<T> {\r\n let portal: XPortalOverlayRef<T> = {};\r\n if (typeof option.content === 'undefined') return portal;\r\n portal.overlayRef = this.createOverlayRef(option);\r\n if (option.content instanceof TemplateRef && option.viewContainerRef) {\r\n portal.templatePortal = new TemplatePortal(option.content, option.viewContainerRef, option.context);\r\n portal.embeddedViewRef = portal.overlayRef.attach(portal.templatePortal);\r\n } else {\r\n portal.componentPortal = new ComponentPortal(\r\n option.content as ComponentType<T>,\r\n option.viewContainerRef,\r\n option.injector,\r\n option.componentFactoryResolver\r\n );\r\n portal.componentRef = portal.overlayRef.attach(portal.componentPortal);\r\n }\r\n\r\n return portal;\r\n }\r\n\r\n createInjector(providers: StaticProvider[], viewContainerRef?: ViewContainerRef) {\r\n const injector = viewContainerRef && viewContainerRef.injector;\r\n return Injector.create({ parent: injector || this.injector, providers });\r\n }\r\n\r\n setPlacement(param?: {\r\n elementRef?: ElementRef;\r\n placement?: XPlace[] | XPlacement[];\r\n transformOriginOn?: string;\r\n }): PositionStrategy {\r\n if (!param) {\r\n return this.overlay.position().global().centerHorizontally().centerVertically();\r\n } else {\r\n return (\r\n this.overlay\r\n .position()\r\n .flexibleConnectedTo(param.elementRef!)\r\n // .withLockedPosition(true)\r\n .withFlexibleDimensions(false)\r\n .withPush(false)\r\n .withPositions(this.setConnectedPosition(...param.placement!))\r\n .withTransformOriginOn(param.transformOriginOn!)\r\n );\r\n }\r\n }\r\n\r\n setPosition(position?: XPosition, width?: string, height?: string): PositionStrategy {\r\n let result = this.overlay.position().global().width(width).height(height);\r\n switch (position) {\r\n case 'left':\r\n return result.left();\r\n case 'right':\r\n return result.right();\r\n case 'top':\r\n return result.top();\r\n case 'bottom':\r\n default:\r\n return result.bottom();\r\n }\r\n }\r\n\r\n setPlace(place?: XPlace, ...offset: string[]): PositionStrategy {\r\n let result = this.overlay.position().global();\r\n let [top, right, bottom, left] = this.getOffset(offset);\r\n switch (place) {\r\n case 'top-start':\r\n return result.top(top).left(left);\r\n case 'top':\r\n return result.centerHorizontally().top(top);\r\n case 'top-end':\r\n return result.top(top).right(right);\r\n case 'left':\r\n return result.centerVertically().left(left);\r\n case 'center':\r\n return result.centerVertically().centerHorizontally();\r\n case 'right':\r\n return result.centerVertically().right(right);\r\n case 'bottom-start':\r\n return result.bottom(bottom).left(left);\r\n case 'bottom':\r\n return result.centerHorizontally().bottom(bottom);\r\n case 'bottom-end':\r\n return result.bottom(bottom).right(right);\r\n default:\r\n return result.centerVertically().centerHorizontally();\r\n }\r\n }\r\n\r\n setResizable(ele: HTMLElement, place?: XPlace) {\r\n const { clientWidth, clientHeight } = ele;\r\n const computedStyle = XComputed(ele);\r\n const marginRight = parseFloat(computedStyle.marginRight);\r\n const marginBottom = parseFloat(computedStyle.marginBottom);\r\n let marginLeft = null;\r\n let marginTop = null;\r\n switch (place) {\r\n case 'top-start':\r\n break;\r\n case 'top':\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n break;\r\n case 'top-end':\r\n marginLeft = `calc(100vw - ${clientWidth + marginRight}px)`;\r\n break;\r\n case 'left':\r\n marginTop = `calc(50vh - ${clientHeight / 2}px)`;\r\n break;\r\n case 'center':\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n marginTop = `calc(50vh - ${clientHeight / 2}px)`;\r\n break;\r\n case 'right':\r\n marginLeft = `calc(100vw - ${clientWidth + marginRight}px)`;\r\n marginTop = `calc(50vh - ${clientHeight / 2}px)`;\r\n break;\r\n case 'bottom-start':\r\n marginTop = `calc(100vh - ${clientHeight + marginBottom}px)`;\r\n break;\r\n case 'bottom':\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n marginTop = `calc(100vh - ${clientHeight + marginBottom}px)`;\r\n break;\r\n case 'bottom-end':\r\n marginLeft = `calc(100vw - ${clientWidth + marginRight}px)`;\r\n marginTop = `calc(100vh - ${clientHeight + marginBottom}px)`;\r\n break;\r\n default:\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n marginTop = `calc(100vh - ${clientHeight / 2}px)`;\r\n break;\r\n }\r\n marginLeft && this.renderer.setStyle(ele, 'margin-left', marginLeft);\r\n marginTop && this.renderer.setStyle(ele, 'margin-top', marginTop);\r\n\r\n return {\r\n marginLeft: marginLeft || computedStyle.marginLeft,\r\n marginTop: marginTop || computedStyle.marginTop,\r\n marginBottom: computedStyle.marginBottom,\r\n marginRight: computedStyle.marginRight\r\n };\r\n }\r\n\r\n setContainerStyle(place?: XPlace, ...offset: string[]) {\r\n let [top, right, bottom, left] = this.getOffset(offset);\r\n switch (place) {\r\n case 'top-start':\r\n return { top, left };\r\n case 'top':\r\n return { top };\r\n case 'top-end':\r\n return { top, right };\r\n case 'left':\r\n return { left };\r\n case 'center':\r\n return {};\r\n case 'right':\r\n return { right };\r\n case 'bottom-start':\r\n return { bottom, left };\r\n case 'bottom':\r\n return { bottom };\r\n case 'bottom-end':\r\n return { bottom, right };\r\n }\r\n return {};\r\n }\r\n\r\n getOffset(offset: string[]) {\r\n if (offset.length === 0) offset = Array.from({ length: 4 }).map(() => `0`);\r\n else if (offset.length < 4) {\r\n Array.from({ length: 4 - offset.length }).map(() => (offset = [...offset, offset[offset.length - 1]]));\r\n }\r\n return offset;\r\n }\r\n\r\n createOverlayRef<T>(option: XPortalProperty<T>): OverlayRef {\r\n return this.overlay.create(option.overlayConfig);\r\n }\r\n\r\n setConnectedPosition(...placement: XPlace[] | XPlacement[]): ConnectedPosition[] {\r\n let result: ConnectedPosition[] = [];\r\n placement.forEach((place: XPlace | XPlacement) => result.push(XPortalPlacement[place]));\r\n return result;\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,aAAa,CAAA;iIAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAb,aAAa,EAAA,CAAA,CAAA;kIAAb,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACZ,iBAAA;;;ACDD;;;;AAIG;AACI,MAAM,aAAa,GAAG;AACtB,MAAM,sBAAsB,GAAG;AAEzB,MAAA,gBAAgB,GAA8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EAAA;QACxD,IAAI,MAAM,GAAwB,EAAE;AACpC,QAAA,SAAS,CAAC,OAAO,CAAC,CAAC,KAA0B,KAAK,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;AACvF,QAAA,OAAO,MAAM;;iIA5LJ,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAd,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADD,MAAM,EAAA,CAAA,CAAA;;2FACnB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;AClBlC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-nest-ui-portal.mjs","sources":["../../../../lib/ng-nest/ui/portal/portal.module.ts","../../../../lib/ng-nest/ui/portal/portal.property.ts","../../../../lib/ng-nest/ui/portal/portal.service.ts","../../../../lib/ng-nest/ui/portal/ng-nest-ui-portal.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\n\r\n@NgModule({\r\n imports: [],\r\n exports: [],\r\n providers: []\r\n})\r\nexport class XPortalModule {}\r\n","import { TemplateRef, ViewContainerRef, ComponentRef, EmbeddedViewRef } from '@angular/core';\r\nimport { ComponentType, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\r\nimport { OverlayRef, OverlayConfig, ConnectedPosition } from '@angular/cdk/overlay';\r\nimport { XInvertKeyValues } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Portal\r\n * @selector x-portal\r\n * @decorator component\r\n */\r\nexport const XPortalPrefix = 'x-portal';\r\nexport const XPortalResizablePrefix = 'x-portal-resizable';\r\n\r\nexport const XPortalPlacement: { [proptery: string]: ConnectedPosition } = {\r\n bottom: { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' },\r\n left: { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' },\r\n right: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' },\r\n top: { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' },\r\n 'bottom-end': { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top' },\r\n 'bottom-start': { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\r\n 'left-end': { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom' },\r\n 'left-start': { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top' },\r\n 'right-end': { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom' },\r\n 'right-start': { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top' },\r\n 'top-end': { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom' },\r\n 'top-start': { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' }\r\n};\r\n\r\nexport const XPortalConnectedPosition: Map<ConnectedPosition, string> = XInvertKeyValues(XPortalPlacement);\r\n\r\n/**\r\n * Portal Property\r\n */\r\nexport interface XPortalProperty<T> {\r\n /**\r\n * @zh_CN 内容,模板/组件\r\n * @en_US Content, template/component\r\n */\r\n content?: TemplateRef<any> | ComponentType<T>;\r\n /**\r\n * @zh_CN 视图容器\r\n * @en_US View container\r\n */\r\n viewContainerRef?: ViewContainerRef;\r\n /**\r\n * @zh_CN 上下文\r\n * @en_US Context\r\n */\r\n context?: any;\r\n /**\r\n * @zh_CN 注入器\r\n * @en_US Injector\r\n */\r\n injector?: any;\r\n /**\r\n * @zh_CN 覆盖视图层配置\r\n * @en_US Overlay view layer configuration\r\n */\r\n overlayConfig?: OverlayConfig;\r\n}\r\n\r\nexport interface XPortalOverlayRef<T> {\r\n /**\r\n * @zh_CN cdk 创建的覆盖视图层\r\n * @en_US Overlay view layer created by cdk\r\n */\r\n overlayRef?: OverlayRef;\r\n /**\r\n * @zh_CN cdk 模板视图\r\n * @en_US Cdk template view\r\n */\r\n templatePortal?: TemplatePortal<any>;\r\n /**\r\n * @zh_CN cdk 组件视图\r\n * @en_US Cdk component view\r\n */\r\n componentPortal?: ComponentPortal<T>;\r\n /**\r\n * @zh_CN 组件视图\r\n * @en_US Component view\r\n */\r\n componentRef?: ComponentRef<T>;\r\n /**\r\n * @zh_CN 模板视图\r\n * @en_US Template view\r\n */\r\n embeddedViewRef?: EmbeddedViewRef<any>;\r\n}\r\n","import {\r\n Injectable,\r\n TemplateRef,\r\n Injector,\r\n ElementRef,\r\n ViewContainerRef,\r\n StaticProvider,\r\n RendererFactory2,\r\n inject\r\n} from '@angular/core';\r\nimport { Overlay, OverlayRef, PositionStrategy, ConnectedPosition, ComponentType } from '@angular/cdk/overlay';\r\nimport { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\r\nimport { XPortalProperty, XPortalOverlayRef, XPortalPlacement } from './portal.property';\r\nimport { XPlacement, XPosition, XPlace, XComputed } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * 动态创建视图服务\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class XPortalService {\r\n overlay = inject(Overlay);\r\n injector = inject(Injector);\r\n private rendererFactory = inject(RendererFactory2);\r\n renderer = this.rendererFactory.createRenderer(null, null);\r\n\r\n attach<T>(option: XPortalProperty<T>): XPortalOverlayRef<T> {\r\n let portal: XPortalOverlayRef<T> = {};\r\n if (typeof option.content === 'undefined') return portal;\r\n portal.overlayRef = this.createOverlayRef(option);\r\n if (option.content instanceof TemplateRef && option.viewContainerRef) {\r\n portal.templatePortal = new TemplatePortal(option.content, option.viewContainerRef, option.context);\r\n portal.embeddedViewRef = portal.overlayRef.attach(portal.templatePortal);\r\n } else {\r\n portal.componentPortal = new ComponentPortal(\r\n option.content as ComponentType<T>,\r\n option.viewContainerRef,\r\n option.injector\r\n );\r\n portal.componentRef = portal.overlayRef.attach(portal.componentPortal);\r\n }\r\n\r\n return portal;\r\n }\r\n\r\n createInjector(providers: StaticProvider[], viewContainerRef?: ViewContainerRef) {\r\n const injector = viewContainerRef && viewContainerRef.injector;\r\n return Injector.create({ parent: injector || this.injector, providers });\r\n }\r\n\r\n setPlacement(param?: {\r\n elementRef?: ElementRef;\r\n placement?: XPlace[] | XPlacement[];\r\n transformOriginOn?: string;\r\n }): PositionStrategy {\r\n if (!param) {\r\n return this.overlay.position().global().centerHorizontally().centerVertically();\r\n } else {\r\n return (\r\n this.overlay\r\n .position()\r\n .flexibleConnectedTo(param.elementRef!)\r\n // .withLockedPosition(true)\r\n .withFlexibleDimensions(false)\r\n .withPush(false)\r\n .withPositions(this.setConnectedPosition(...param.placement!))\r\n .withTransformOriginOn(param.transformOriginOn!)\r\n );\r\n }\r\n }\r\n\r\n setPosition(position?: XPosition, width?: string, height?: string): PositionStrategy {\r\n let result = this.overlay.position().global().width(width).height(height);\r\n switch (position) {\r\n case 'left':\r\n return result.left();\r\n case 'right':\r\n return result.right();\r\n case 'top':\r\n return result.top();\r\n case 'bottom':\r\n default:\r\n return result.bottom();\r\n }\r\n }\r\n\r\n setPlace(place?: XPlace, ...offset: string[]): PositionStrategy {\r\n let result = this.overlay.position().global();\r\n let [top, right, bottom, left] = this.getOffset(offset);\r\n switch (place) {\r\n case 'top-start':\r\n return result.top(top).left(left);\r\n case 'top':\r\n return result.centerHorizontally().top(top);\r\n case 'top-end':\r\n return result.top(top).right(right);\r\n case 'left':\r\n return result.centerVertically().left(left);\r\n case 'center':\r\n return result.centerVertically().centerHorizontally();\r\n case 'right':\r\n return result.centerVertically().right(right);\r\n case 'bottom-start':\r\n return result.bottom(bottom).left(left);\r\n case 'bottom':\r\n return result.centerHorizontally().bottom(bottom);\r\n case 'bottom-end':\r\n return result.bottom(bottom).right(right);\r\n default:\r\n return result.centerVertically().centerHorizontally();\r\n }\r\n }\r\n\r\n setResizable(ele: HTMLElement, place?: XPlace) {\r\n const { clientWidth, clientHeight } = ele;\r\n const computedStyle = XComputed(ele);\r\n const marginRight = parseFloat(computedStyle.marginRight);\r\n const marginBottom = parseFloat(computedStyle.marginBottom);\r\n let marginLeft = null;\r\n let marginTop = null;\r\n switch (place) {\r\n case 'top-start':\r\n break;\r\n case 'top':\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n break;\r\n case 'top-end':\r\n marginLeft = `calc(100vw - ${clientWidth + marginRight}px)`;\r\n break;\r\n case 'left':\r\n marginTop = `calc(50vh - ${clientHeight / 2}px)`;\r\n break;\r\n case 'center':\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n marginTop = `calc(50vh - ${clientHeight / 2}px)`;\r\n break;\r\n case 'right':\r\n marginLeft = `calc(100vw - ${clientWidth + marginRight}px)`;\r\n marginTop = `calc(50vh - ${clientHeight / 2}px)`;\r\n break;\r\n case 'bottom-start':\r\n marginTop = `calc(100vh - ${clientHeight + marginBottom}px)`;\r\n break;\r\n case 'bottom':\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n marginTop = `calc(100vh - ${clientHeight + marginBottom}px)`;\r\n break;\r\n case 'bottom-end':\r\n marginLeft = `calc(100vw - ${clientWidth + marginRight}px)`;\r\n marginTop = `calc(100vh - ${clientHeight + marginBottom}px)`;\r\n break;\r\n default:\r\n marginLeft = `calc(50vw - ${clientWidth / 2}px)`;\r\n marginTop = `calc(100vh - ${clientHeight / 2}px)`;\r\n break;\r\n }\r\n marginLeft && this.renderer.setStyle(ele, 'margin-left', marginLeft);\r\n marginTop && this.renderer.setStyle(ele, 'margin-top', marginTop);\r\n\r\n return {\r\n marginLeft: marginLeft || computedStyle.marginLeft,\r\n marginTop: marginTop || computedStyle.marginTop,\r\n marginBottom: computedStyle.marginBottom,\r\n marginRight: computedStyle.marginRight\r\n };\r\n }\r\n\r\n setContainerStyle(place?: XPlace, ...offset: string[]) {\r\n let [top, right, bottom, left] = this.getOffset(offset);\r\n switch (place) {\r\n case 'top-start':\r\n return { top, left };\r\n case 'top':\r\n return { top };\r\n case 'top-end':\r\n return { top, right };\r\n case 'left':\r\n return { left };\r\n case 'center':\r\n return {};\r\n case 'right':\r\n return { right };\r\n case 'bottom-start':\r\n return { bottom, left };\r\n case 'bottom':\r\n return { bottom };\r\n case 'bottom-end':\r\n return { bottom, right };\r\n }\r\n return {};\r\n }\r\n\r\n getOffset(offset: string[]) {\r\n if (offset.length === 0) offset = Array.from({ length: 4 }).map(() => `0`);\r\n else if (offset.length < 4) {\r\n Array.from({ length: 4 - offset.length }).map(() => (offset = [...offset, offset[offset.length - 1]]));\r\n }\r\n return offset;\r\n }\r\n\r\n createOverlayRef<T>(option: XPortalProperty<T>): OverlayRef {\r\n return this.overlay.create(option.overlayConfig);\r\n }\r\n\r\n setConnectedPosition(...placement: XPlace[] | XPlacement[]): ConnectedPosition[] {\r\n let result: ConnectedPosition[] = [];\r\n placement.forEach((place: XPlace | XPlacement) => result.push(XPortalPlacement[place]));\r\n return result;\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,aAAa,CAAA;iIAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAb,aAAa,EAAA,CAAA,CAAA;kIAAb,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACZ,iBAAA;;;ACDD;;;;AAIG;AACI,MAAM,aAAa,GAAG;AACtB,MAAM,sBAAsB,GAAG;AAEzB,MAAA,gBAAgB,GAA8C;AACzE,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAA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AA0B,KAAK,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;AACvF,QAAA,OAAO,MAAM;;iIA3LJ,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAd,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADD,MAAM,EAAA,CAAA,CAAA;;2FACnB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;AClBlC;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Component, computed,
|
|
2
|
+
import { input, Component, computed, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
3
|
import { XPropertyFunction, XToNumber, XToCssPixelValue, XToBoolean, XIsNumber, XIsEmpty, XIsString, XIsObjectArray, XIsFunction } from '@ng-nest/ui/core';
|
|
4
4
|
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
@@ -104,10 +104,10 @@ class XProgressProperty extends XPropertyFunction(X_PROGRESS_CONFIG_NAME) {
|
|
|
104
104
|
*/
|
|
105
105
|
this.subsection = input(false, { transform: XToBoolean });
|
|
106
106
|
}
|
|
107
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
107
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
108
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: XProgressProperty, isStandalone: true, selector: "x-progress-property", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, percent: { classPropertyName: "percent", publicName: "percent", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, info: { classPropertyName: "info", publicName: "info", isSignal: true, isRequired: false, transformFunction: null }, infoWidth: { classPropertyName: "infoWidth", publicName: "infoWidth", isSignal: true, isRequired: false, transformFunction: null }, inside: { classPropertyName: "inside", publicName: "inside", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, gradient: { classPropertyName: "gradient", publicName: "gradient", isSignal: true, isRequired: false, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, stepWidth: { classPropertyName: "stepWidth", publicName: "stepWidth", isSignal: true, isRequired: false, transformFunction: null }, stepFlex: { classPropertyName: "stepFlex", publicName: "stepFlex", isSignal: true, isRequired: false, transformFunction: null }, thickness: { classPropertyName: "thickness", publicName: "thickness", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, notchAngle: { classPropertyName: "notchAngle", publicName: "notchAngle", isSignal: true, isRequired: false, transformFunction: null }, subsection: { classPropertyName: "subsection", publicName: "subsection", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
109
109
|
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressProperty, decorators: [{
|
|
111
111
|
type: Component,
|
|
112
112
|
args: [{ selector: `${XProgressPrefix}-property`, template: '' }]
|
|
113
113
|
}] });
|
|
@@ -321,20 +321,20 @@ class XProgressComponent extends XProgressProperty {
|
|
|
321
321
|
}
|
|
322
322
|
return '';
|
|
323
323
|
}
|
|
324
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
325
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
324
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
325
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: XProgressComponent, isStandalone: true, selector: "x-progress", usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"x-progress\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-progress-steps]=\"stepsArray().length > 0\"\r\n [class.x-progress-steps-flex]=\"stepFlex()\"\r\n>\r\n @switch (type()) {\r\n @case ('circle') {\r\n <ng-container *ngTemplateOutlet=\"circleTpl\"> </ng-container>\r\n }\r\n @case ('dashboard') {\r\n <ng-container *ngTemplateOutlet=\"dashboardTpl\"> </ng-container>\r\n }\r\n @default {\r\n <ng-container *ngTemplateOutlet=\"lineTpl\"> </ng-container>\r\n }\r\n }\r\n</div>\r\n\r\n<ng-template #lineTpl>\r\n @if (stepsArray().length === 0) {\r\n <ng-container *ngTemplateOutlet=\"trackTpl\"></ng-container>\r\n }\r\n @if (stepsArray().length > 0) {\r\n <ng-container *ngTemplateOutlet=\"stepsTpl\"></ng-container>\r\n }\r\n @if (info() && !inside()) {\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #circleTpl>\r\n <div class=\"x-progress-ring\" [style.width]=\"size()\" [style.height]=\"size()\">\r\n <div class=\"x-progress-ring-rail\" [style.border-width]=\"thickness()\"></div>\r\n <div\r\n class=\"x-progress-ring-bg\"\r\n [style.clip-path]=\"circleClipPath()\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.border-width]=\"thickness()\"\r\n ></div>\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #dashboardTpl>\r\n <div class=\"x-progress-ring\" [style.width]=\"size()\" [style.height]=\"size()\">\r\n <div\r\n class=\"x-progress-ring-rail\"\r\n [style.clip-path]=\"dashboardRailClipPath()\"\r\n [style.border-width]=\"thickness()\"\r\n ></div>\r\n <div\r\n class=\"x-progress-ring-bg\"\r\n [style.clip-path]=\"dashboardClipPath()\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.border-width]=\"thickness()\"\r\n ></div>\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #trackTpl>\r\n <div class=\"x-progress-track\">\r\n <div\r\n class=\"x-progress-rail\"\r\n [class.x-progress-mask]=\"subsection()\"\r\n [style.background-image]=\"subsection() ? subLinearGradient() : 'none'\"\r\n >\r\n <div\r\n class=\"x-progress-bg\"\r\n [style.width.%]=\"percent()\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.background-image]=\"linearGradient()\"\r\n [style.height]=\"height()\"\r\n [style.line-height]=\"height()\"\r\n >\r\n @if (info() && inside()) {\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n }\r\n </div>\r\n @if (subsection()) {\r\n <div\r\n class=\"x-progress-bg-mask\"\r\n [style.width.%]=\"maskWidth()\"\r\n [style.height]=\"height()\"\r\n [style.line-height]=\"height()\"\r\n ></div>\r\n }\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #stepsTpl>\r\n @for (step of stepsArray(); track i; let i = $index) {\r\n <div\r\n class=\"x-progress-step\"\r\n [class.x-progress-step-active]=\"step\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.width]=\"stepWidth()\"\r\n [style.flex]=\"stepFlex() ? 1 : 'none'\"\r\n [style.height]=\"height()\"\r\n [style.line-height]=\"height()\"\r\n ></div>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #textTpl>\r\n <span class=\"x-progress-text\" [style.width]=\"infoWidth()\">\r\n @switch (status()) {\r\n @case ('success') {\r\n <x-icon type=\"fto-check-circle\"></x-icon>\r\n }\r\n @case ('exception') {\r\n <x-icon type=\"fto-x-circle\"></x-icon>\r\n }\r\n @case ('warning') {\r\n <x-icon type=\"fto-help-circle\"></x-icon>\r\n }\r\n @default {\r\n @if (format()) {\r\n {{ format()!(percent()) }}\r\n } @else {\r\n {{ percent() }}%\r\n }\r\n }\r\n }\r\n </span>\r\n</ng-template>\r\n", styles: ["@keyframes x-progress-active{0%{width:0;opacity:.1}20%{width:0;opacity:.5}to{width:100%;opacity:0}}x-progress{display:initial}.x-progress{margin:0;padding:0}.x-progress{display:inline-flex;align-items:center;width:100%}.x-progress-track{flex:1;display:inline-flex;align-items:center}.x-progress-rail{position:relative;display:inline-flex;width:100%;overflow:hidden;vertical-align:middle;background-color:var(--x-border-100);border-radius:var(--x-border-radius)}.x-progress-bg{position:relative;background-color:var(--x-primary);transition:width .3s cubic-bezier(.08,.82,.17,1) 0s;border-radius:var(--x-border-radius);text-align:right;color:#fff}.x-progress-bg>span{margin:0 .325rem}.x-progress-circle,.x-progress-dashboard,.x-progress-steps:not(.x-progress-steps-flex){width:initial}.x-progress-ring{position:relative;display:inline-flex;align-items:center;justify-content:center}.x-progress-ring-rail{position:absolute;width:100%;height:100%;border-style:solid;border-color:var(--x-border-100);border-radius:100%}.x-progress-ring-bg{position:absolute;width:100%;height:100%;border-style:solid;border-color:var(--x-primary);border-radius:100%;transition:clip-path .3s cubic-bezier(.08,.82,.17,1) 0s}.x-progress-ring .x-progress-text{margin-left:0;justify-content:center;font-size:var(--x-font-size-large)}.x-progress-mask .x-progress-bg{background:transparent}.x-progress-bg-mask{transition:width .3s cubic-bezier(.08,.82,.17,1) 0s;background-color:var(--x-border-100);border-top-right-radius:var(--x-border-radius);border-bottom-right-radius:var(--x-border-radius)}.x-progress-step{background-color:var(--x-border-100);border-radius:var(--x-border-radius)}.x-progress-step:not(:first-child){margin-left:.125rem}.x-progress-step-active{background-color:var(--x-primary)}.x-progress-text{margin-left:.5rem;display:inline-flex;align-items:center;white-space:nowrap}.x-progress-text x-icon{font-size:1.25rem}.x-progress-active .x-progress-bg:before{position:absolute;inset:0;background:var(--x-background-100);border-radius:var(--x-border-radius);opacity:0;animation:x-progress-active 2s cubic-bezier(.23,1,.32,1) infinite;content:\"\"}.x-progress-exception .x-progress-text{color:var(--x-danger)}.x-progress-exception .x-progress-bg,.x-progress-exception .x-progress-step-active{background-color:var(--x-danger)}.x-progress-exception .x-progress-ring-bg{border-color:var(--x-danger)}.x-progress-success .x-progress-text{color:var(--x-success)}.x-progress-success .x-progress-bg,.x-progress-success .x-progress-step-active{background-color:var(--x-success)}.x-progress-success .x-progress-ring-bg{border-color:var(--x-success)}.x-progress-warning .x-progress-text{color:var(--x-warning)}.x-progress-warning .x-progress-bg,.x-progress-warning .x-progress-step-active{background-color:var(--x-warning)}.x-progress-warning .x-progress-ring-bg{border-color:var(--x-warning)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: XIconComponent, selector: "x-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
326
326
|
}
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressComponent, decorators: [{
|
|
328
328
|
type: Component,
|
|
329
329
|
args: [{ selector: `${XProgressPrefix}`, imports: [NgClass, NgTemplateOutlet, FormsModule, XIconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"x-progress\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-progress-steps]=\"stepsArray().length > 0\"\r\n [class.x-progress-steps-flex]=\"stepFlex()\"\r\n>\r\n @switch (type()) {\r\n @case ('circle') {\r\n <ng-container *ngTemplateOutlet=\"circleTpl\"> </ng-container>\r\n }\r\n @case ('dashboard') {\r\n <ng-container *ngTemplateOutlet=\"dashboardTpl\"> </ng-container>\r\n }\r\n @default {\r\n <ng-container *ngTemplateOutlet=\"lineTpl\"> </ng-container>\r\n }\r\n }\r\n</div>\r\n\r\n<ng-template #lineTpl>\r\n @if (stepsArray().length === 0) {\r\n <ng-container *ngTemplateOutlet=\"trackTpl\"></ng-container>\r\n }\r\n @if (stepsArray().length > 0) {\r\n <ng-container *ngTemplateOutlet=\"stepsTpl\"></ng-container>\r\n }\r\n @if (info() && !inside()) {\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #circleTpl>\r\n <div class=\"x-progress-ring\" [style.width]=\"size()\" [style.height]=\"size()\">\r\n <div class=\"x-progress-ring-rail\" [style.border-width]=\"thickness()\"></div>\r\n <div\r\n class=\"x-progress-ring-bg\"\r\n [style.clip-path]=\"circleClipPath()\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.border-width]=\"thickness()\"\r\n ></div>\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #dashboardTpl>\r\n <div class=\"x-progress-ring\" [style.width]=\"size()\" [style.height]=\"size()\">\r\n <div\r\n class=\"x-progress-ring-rail\"\r\n [style.clip-path]=\"dashboardRailClipPath()\"\r\n [style.border-width]=\"thickness()\"\r\n ></div>\r\n <div\r\n class=\"x-progress-ring-bg\"\r\n [style.clip-path]=\"dashboardClipPath()\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.border-width]=\"thickness()\"\r\n ></div>\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #trackTpl>\r\n <div class=\"x-progress-track\">\r\n <div\r\n class=\"x-progress-rail\"\r\n [class.x-progress-mask]=\"subsection()\"\r\n [style.background-image]=\"subsection() ? subLinearGradient() : 'none'\"\r\n >\r\n <div\r\n class=\"x-progress-bg\"\r\n [style.width.%]=\"percent()\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.background-image]=\"linearGradient()\"\r\n [style.height]=\"height()\"\r\n [style.line-height]=\"height()\"\r\n >\r\n @if (info() && inside()) {\r\n <ng-container *ngTemplateOutlet=\"textTpl\"></ng-container>\r\n }\r\n </div>\r\n @if (subsection()) {\r\n <div\r\n class=\"x-progress-bg-mask\"\r\n [style.width.%]=\"maskWidth()\"\r\n [style.height]=\"height()\"\r\n [style.line-height]=\"height()\"\r\n ></div>\r\n }\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #stepsTpl>\r\n @for (step of stepsArray(); track i; let i = $index) {\r\n <div\r\n class=\"x-progress-step\"\r\n [class.x-progress-step-active]=\"step\"\r\n [style.background-color]=\"currentColor()\"\r\n [style.width]=\"stepWidth()\"\r\n [style.flex]=\"stepFlex() ? 1 : 'none'\"\r\n [style.height]=\"height()\"\r\n [style.line-height]=\"height()\"\r\n ></div>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #textTpl>\r\n <span class=\"x-progress-text\" [style.width]=\"infoWidth()\">\r\n @switch (status()) {\r\n @case ('success') {\r\n <x-icon type=\"fto-check-circle\"></x-icon>\r\n }\r\n @case ('exception') {\r\n <x-icon type=\"fto-x-circle\"></x-icon>\r\n }\r\n @case ('warning') {\r\n <x-icon type=\"fto-help-circle\"></x-icon>\r\n }\r\n @default {\r\n @if (format()) {\r\n {{ format()!(percent()) }}\r\n } @else {\r\n {{ percent() }}%\r\n }\r\n }\r\n }\r\n </span>\r\n</ng-template>\r\n", styles: ["@keyframes x-progress-active{0%{width:0;opacity:.1}20%{width:0;opacity:.5}to{width:100%;opacity:0}}x-progress{display:initial}.x-progress{margin:0;padding:0}.x-progress{display:inline-flex;align-items:center;width:100%}.x-progress-track{flex:1;display:inline-flex;align-items:center}.x-progress-rail{position:relative;display:inline-flex;width:100%;overflow:hidden;vertical-align:middle;background-color:var(--x-border-100);border-radius:var(--x-border-radius)}.x-progress-bg{position:relative;background-color:var(--x-primary);transition:width .3s cubic-bezier(.08,.82,.17,1) 0s;border-radius:var(--x-border-radius);text-align:right;color:#fff}.x-progress-bg>span{margin:0 .325rem}.x-progress-circle,.x-progress-dashboard,.x-progress-steps:not(.x-progress-steps-flex){width:initial}.x-progress-ring{position:relative;display:inline-flex;align-items:center;justify-content:center}.x-progress-ring-rail{position:absolute;width:100%;height:100%;border-style:solid;border-color:var(--x-border-100);border-radius:100%}.x-progress-ring-bg{position:absolute;width:100%;height:100%;border-style:solid;border-color:var(--x-primary);border-radius:100%;transition:clip-path .3s cubic-bezier(.08,.82,.17,1) 0s}.x-progress-ring .x-progress-text{margin-left:0;justify-content:center;font-size:var(--x-font-size-large)}.x-progress-mask .x-progress-bg{background:transparent}.x-progress-bg-mask{transition:width .3s cubic-bezier(.08,.82,.17,1) 0s;background-color:var(--x-border-100);border-top-right-radius:var(--x-border-radius);border-bottom-right-radius:var(--x-border-radius)}.x-progress-step{background-color:var(--x-border-100);border-radius:var(--x-border-radius)}.x-progress-step:not(:first-child){margin-left:.125rem}.x-progress-step-active{background-color:var(--x-primary)}.x-progress-text{margin-left:.5rem;display:inline-flex;align-items:center;white-space:nowrap}.x-progress-text x-icon{font-size:1.25rem}.x-progress-active .x-progress-bg:before{position:absolute;inset:0;background:var(--x-background-100);border-radius:var(--x-border-radius);opacity:0;animation:x-progress-active 2s cubic-bezier(.23,1,.32,1) infinite;content:\"\"}.x-progress-exception .x-progress-text{color:var(--x-danger)}.x-progress-exception .x-progress-bg,.x-progress-exception .x-progress-step-active{background-color:var(--x-danger)}.x-progress-exception .x-progress-ring-bg{border-color:var(--x-danger)}.x-progress-success .x-progress-text{color:var(--x-success)}.x-progress-success .x-progress-bg,.x-progress-success .x-progress-step-active{background-color:var(--x-success)}.x-progress-success .x-progress-ring-bg{border-color:var(--x-success)}.x-progress-warning .x-progress-text{color:var(--x-warning)}.x-progress-warning .x-progress-bg,.x-progress-warning .x-progress-step-active{background-color:var(--x-warning)}.x-progress-warning .x-progress-ring-bg{border-color:var(--x-warning)}\n"] }]
|
|
330
330
|
}] });
|
|
331
331
|
|
|
332
332
|
class XProgressModule {
|
|
333
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
334
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
335
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
333
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
334
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XProgressModule, imports: [XProgressComponent], exports: [XProgressComponent] }); }
|
|
335
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressModule, imports: [XProgressComponent] }); }
|
|
336
336
|
}
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XProgressModule, decorators: [{
|
|
338
338
|
type: NgModule,
|
|
339
339
|
args: [{
|
|
340
340
|
exports: [XProgressComponent],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Component, viewChild, ElementRef, signal, computed, TemplateRef,
|
|
2
|
+
import { input, Component, viewChild, ElementRef, signal, computed, TemplateRef, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
3
|
import { XToBoolean, XToCssPixelValue, XIsChange, XSetData } from '@ng-nest/ui/core';
|
|
4
4
|
import { XFormControlFunction, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
@@ -118,10 +118,10 @@ class XRadioProperty extends XFormControlFunction(X_RADIO_CONFIG_NAME) {
|
|
|
118
118
|
*/
|
|
119
119
|
this.after = input();
|
|
120
120
|
}
|
|
121
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
122
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
121
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
122
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: XRadioProperty, isStandalone: true, selector: "x-radio-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, button: { classPropertyName: "button", publicName: "button", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, tag: { classPropertyName: "tag", publicName: "tag", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, tagBordered: { classPropertyName: "tagBordered", publicName: "tagBordered", isSignal: true, isRequired: false, transformFunction: null }, tagDark: { classPropertyName: "tagDark", publicName: "tagDark", isSignal: true, isRequired: false, transformFunction: null }, allowCancel: { classPropertyName: "allowCancel", publicName: "allowCancel", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, before: { classPropertyName: "before", publicName: "before", isSignal: true, isRequired: false, transformFunction: null }, after: { classPropertyName: "after", publicName: "after", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
123
123
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioProperty, decorators: [{
|
|
125
125
|
type: Component,
|
|
126
126
|
args: [{ selector: `${XRadioPrefix}-property`, template: '' }]
|
|
127
127
|
}] });
|
|
@@ -184,20 +184,20 @@ class XRadioComponent extends XRadioProperty {
|
|
|
184
184
|
this.nodes.set(x);
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
188
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: XRadioComponent, isStandalone: true, selector: "x-radio", providers: [XValueAccessor(XRadioComponent)], viewQueries: [{ propertyName: "radio", first: true, predicate: ["radio"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [class.x-radio-button]=\"button()\"\r\n [class.x-radio-icon]=\"icon()\"\r\n [class.x-radio-vertical]=\"vertical()\"\r\n [class.x-radio-after]=\"after()\"\r\n [class.x-radio-before]=\"before()\"\r\n [class.x-radio-after-template]=\"afterIsTemplate()\"\r\n [class.x-radio-before-template]=\"beforeIsTemplate()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-radio-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n <div class=\"x-radio-row\">\r\n @if (before()) {\r\n <div class=\"x-radio-row-before\">\r\n <ng-container *xOutlet=\"before()\">{{ before() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-radio-row-list\">\r\n @switch (radioType()) {\r\n @case ('initial') {\r\n @for (item of nodes(); track item.id) {\r\n <div\r\n class=\"x-radio-row-item\"\r\n [class.x-checked]=\"item.id === value()\"\r\n [class.x-disabled]=\"disabledComputed() || item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n }\r\n }\r\n @case ('button') {\r\n <x-buttons boxShadow=\"false\">\r\n @for (item of nodes(); track item.id) {\r\n <x-button\r\n [icon]=\"item.icon!\"\r\n [size]=\"size()\"\r\n [type]=\"type()\"\r\n [activated]=\"item.id === value()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n plain\r\n >{{ item.label }}</x-button\r\n >\r\n }\r\n </x-buttons>\r\n }\r\n @case ('icon') {\r\n <x-buttons boxShadow=\"false\">\r\n @for (item of nodes(); track item.id) {\r\n <x-button\r\n [icon]=\"item.icon!\"\r\n [size]=\"size()\"\r\n [type]=\"type()\"\r\n [activated]=\"item.id === value()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n plain\r\n >{{ item.label }}</x-button\r\n >\r\n }\r\n </x-buttons>\r\n }\r\n @case ('tag') {\r\n @for (item of nodes(); track item.id) {\r\n <x-tag\r\n checked\r\n manual\r\n [type]=\"type()\"\r\n [size]=\"size()\"\r\n [bordered]=\"tagBordered()\"\r\n [dark]=\"tagDark()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n [selected]=\"value() === item.id\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-tag\r\n >\r\n }\r\n }\r\n }\r\n </div>\r\n @if (after()) {\r\n <div class=\"x-radio-row-after\">\r\n <ng-container *xOutlet=\"after()\">{{ after() }}</ng-container>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", styles: [".x-radio{margin:0;padding:0}.x-radio{width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:var(--x-height-medium);line-height:var(--x-height-medium);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;display:flex;align-items:center;flex-wrap:wrap;height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row .x-radio-row-before,.x-radio-row .x-radio-row-after{border-radius:var(--x-border-radius);background-color:var(--x-background-a200);padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row-list{position:relative;display:inline-flex;align-items:center}.x-radio-row-list x-tag:not(:first-child){margin-left:var(--x-font-size)}.x-radio-row-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:var(--x-font-size);font-size:var(--x-font-size);cursor:pointer;transition:all .3s}.x-radio-row-item:hover{color:var(--x-primary)}.x-radio-row-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item:last-child{margin-right:0}.x-radio-row-item.x-checked .x-radio-box{border-color:var(--x-primary);border-width:.375rem}.x-radio-row-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-row-item.x-disabled .x-radio-box{border-color:var(--x-border-a900);background-color:var(--x-border-300)}.x-radio-row-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-button .x-radio-row-before,.x-radio-icon .x-radio-row-before{margin-right:0}.x-radio-button .x-radio-row-after,.x-radio-icon .x-radio-row-after{margin-left:0}.x-radio-vertical .x-radio-row-list{flex-direction:column;align-items:flex-start}.x-radio-vertical .x-radio-row-list x-tag{margin-left:0}.x-radio-vertical .x-radio-row-list x-tag:not(:first-child){margin-top:.25rem}.x-radio-vertical .x-radio-row-item{margin-right:0}.x-radio-vertical .x-radio-row-item:not(:first-child){margin-top:.25rem}.x-radio-box{border:var(--x-border-width) solid var(--x-border);border-radius:100%;width:calc(var(--x-height-medium) - .875rem);height:calc(var(--x-height-medium) - .875rem);background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio-before:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-before{margin-right:var(--x-padding-medium)}.x-radio-before.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button,.x-radio-before.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-before.x-radio-button .x-radio-row-before,.x-radio-before.x-radio-icon .x-radio-row-before{margin-right:0;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-before-template .x-radio-row-before{display:contents}.x-radio-before-template .x-radio-row-list{margin-left:var(--x-padding-medium)}.x-radio-before-template.x-radio-button .x-radio-row-list,.x-radio-before-template.x-radio-icon .x-radio-row-list,.x-radio-before-template.x-radio-button .x-radio-row-list .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button{margin-left:0}.x-radio-before-template.x-radio-button .x-radio-row-before input,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-before input,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-after{margin-left:var(--x-padding-medium)}.x-radio-after.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button,.x-radio-after.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after.x-radio-button .x-radio-row-after,.x-radio-after.x-radio-icon .x-radio-row-after{margin-left:0;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-after-template .x-radio-row-after{display:contents}.x-radio-after-template .x-radio-row-list{margin-right:var(--x-padding-medium)}.x-radio-after-template.x-radio-button .x-radio-row-list,.x-radio-after-template.x-radio-icon .x-radio-row-list,.x-radio-after-template.x-radio-button .x-radio-row-list .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button{margin-right:0}.x-radio-after-template.x-radio-button .x-radio-row-after input,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-after input,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-a900);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XButtonsComponent, selector: "x-buttons" }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
187
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
188
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: XRadioComponent, isStandalone: true, selector: "x-radio", providers: [XValueAccessor(XRadioComponent)], viewQueries: [{ propertyName: "radio", first: true, predicate: ["radio"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [class.x-radio-button]=\"button()\"\r\n [class.x-radio-icon]=\"icon()\"\r\n [class.x-radio-vertical]=\"vertical()\"\r\n [class.x-radio-after]=\"after()\"\r\n [class.x-radio-before]=\"before()\"\r\n [class.x-radio-after-template]=\"afterIsTemplate()\"\r\n [class.x-radio-before-template]=\"beforeIsTemplate()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-radio-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n <div class=\"x-radio-row\">\r\n @if (before()) {\r\n <div class=\"x-radio-row-before\">\r\n <ng-container *xOutlet=\"before()\">{{ before() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-radio-row-list\">\r\n @switch (radioType()) {\r\n @case ('initial') {\r\n @for (item of nodes(); track item.id) {\r\n <div\r\n class=\"x-radio-row-item\"\r\n [class.x-checked]=\"item.id === value()\"\r\n [class.x-disabled]=\"disabledComputed() || item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n }\r\n }\r\n @case ('button') {\r\n <x-buttons boxShadow=\"false\">\r\n @for (item of nodes(); track item.id) {\r\n <x-button\r\n [icon]=\"item.icon!\"\r\n [size]=\"size()\"\r\n [type]=\"type()\"\r\n [activated]=\"item.id === value()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n plain\r\n >{{ item.label }}</x-button\r\n >\r\n }\r\n </x-buttons>\r\n }\r\n @case ('icon') {\r\n <x-buttons boxShadow=\"false\">\r\n @for (item of nodes(); track item.id) {\r\n <x-button\r\n [icon]=\"item.icon!\"\r\n [size]=\"size()\"\r\n [type]=\"type()\"\r\n [activated]=\"item.id === value()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n plain\r\n >{{ item.label }}</x-button\r\n >\r\n }\r\n </x-buttons>\r\n }\r\n @case ('tag') {\r\n @for (item of nodes(); track item.id) {\r\n <x-tag\r\n checked\r\n manual\r\n [type]=\"type()\"\r\n [size]=\"size()\"\r\n [bordered]=\"tagBordered()\"\r\n [dark]=\"tagDark()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n [selected]=\"value() === item.id\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-tag\r\n >\r\n }\r\n }\r\n }\r\n </div>\r\n @if (after()) {\r\n <div class=\"x-radio-row-after\">\r\n <ng-container *xOutlet=\"after()\">{{ after() }}</ng-container>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", styles: [".x-radio{margin:0;padding:0}.x-radio{width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:var(--x-height-medium);line-height:var(--x-height-medium);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;display:flex;align-items:center;flex-wrap:wrap;height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row .x-radio-row-before,.x-radio-row .x-radio-row-after{border-radius:var(--x-border-radius);background-color:var(--x-background-a200);padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row-list{position:relative;display:inline-flex;align-items:center}.x-radio-row-list x-tag:not(:first-child){margin-left:var(--x-font-size)}.x-radio-row-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:var(--x-font-size);font-size:var(--x-font-size);cursor:pointer;transition:all .3s}.x-radio-row-item:hover{color:var(--x-primary)}.x-radio-row-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item:last-child{margin-right:0}.x-radio-row-item.x-checked .x-radio-box{border-color:var(--x-primary);border-width:.375rem}.x-radio-row-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-row-item.x-disabled .x-radio-box{border-color:var(--x-border-a900);background-color:var(--x-border-300)}.x-radio-row-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-button .x-radio-row-before,.x-radio-icon .x-radio-row-before{margin-right:0}.x-radio-button .x-radio-row-after,.x-radio-icon .x-radio-row-after{margin-left:0}.x-radio-vertical .x-radio-row-list{flex-direction:column;align-items:flex-start}.x-radio-vertical .x-radio-row-list x-tag{margin-left:0}.x-radio-vertical .x-radio-row-list x-tag:not(:first-child){margin-top:.25rem}.x-radio-vertical .x-radio-row-item{margin-right:0}.x-radio-vertical .x-radio-row-item:not(:first-child){margin-top:.25rem}.x-radio-box{border:var(--x-border-width) solid var(--x-border);border-radius:100%;width:calc(var(--x-height-medium) - .875rem);height:calc(var(--x-height-medium) - .875rem);background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio-before:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-before{margin-right:var(--x-padding-medium)}.x-radio-before.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button,.x-radio-before.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-before.x-radio-button .x-radio-row-before,.x-radio-before.x-radio-icon .x-radio-row-before{margin-right:0;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-before-template .x-radio-row-before{display:contents}.x-radio-before-template .x-radio-row-list{margin-left:var(--x-padding-medium)}.x-radio-before-template.x-radio-button .x-radio-row-list,.x-radio-before-template.x-radio-icon .x-radio-row-list,.x-radio-before-template.x-radio-button .x-radio-row-list .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button{margin-left:0}.x-radio-before-template.x-radio-button .x-radio-row-before input,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-before input,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-after{margin-left:var(--x-padding-medium)}.x-radio-after.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button,.x-radio-after.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after.x-radio-button .x-radio-row-after,.x-radio-after.x-radio-icon .x-radio-row-after{margin-left:0;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-after-template .x-radio-row-after{display:contents}.x-radio-after-template .x-radio-row-list{margin-right:var(--x-padding-medium)}.x-radio-after-template.x-radio-button .x-radio-row-list,.x-radio-after-template.x-radio-icon .x-radio-row-list,.x-radio-after-template.x-radio-button .x-radio-row-list .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button{margin-right:0}.x-radio-after-template.x-radio-button .x-radio-row-after input,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-after input,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-a900);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XButtonsComponent, selector: "x-buttons" }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
189
189
|
}
|
|
190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioComponent, decorators: [{
|
|
191
191
|
type: Component,
|
|
192
192
|
args: [{ selector: `${XRadioPrefix}`, imports: [NgClass, FormsModule, XButtonComponent, XButtonsComponent, XTagComponent, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XRadioComponent)], template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [ngClass]=\"classMap()\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [class.x-radio-button]=\"button()\"\r\n [class.x-radio-icon]=\"icon()\"\r\n [class.x-radio-vertical]=\"vertical()\"\r\n [class.x-radio-after]=\"after()\"\r\n [class.x-radio-before]=\"before()\"\r\n [class.x-radio-after-template]=\"afterIsTemplate()\"\r\n [class.x-radio-before-template]=\"beforeIsTemplate()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-radio-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n <div class=\"x-radio-row\">\r\n @if (before()) {\r\n <div class=\"x-radio-row-before\">\r\n <ng-container *xOutlet=\"before()\">{{ before() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-radio-row-list\">\r\n @switch (radioType()) {\r\n @case ('initial') {\r\n @for (item of nodes(); track item.id) {\r\n <div\r\n class=\"x-radio-row-item\"\r\n [class.x-checked]=\"item.id === value()\"\r\n [class.x-disabled]=\"disabledComputed() || item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n }\r\n }\r\n @case ('button') {\r\n <x-buttons boxShadow=\"false\">\r\n @for (item of nodes(); track item.id) {\r\n <x-button\r\n [icon]=\"item.icon!\"\r\n [size]=\"size()\"\r\n [type]=\"type()\"\r\n [activated]=\"item.id === value()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n plain\r\n >{{ item.label }}</x-button\r\n >\r\n }\r\n </x-buttons>\r\n }\r\n @case ('icon') {\r\n <x-buttons boxShadow=\"false\">\r\n @for (item of nodes(); track item.id) {\r\n <x-button\r\n [icon]=\"item.icon!\"\r\n [size]=\"size()\"\r\n [type]=\"type()\"\r\n [activated]=\"item.id === value()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n plain\r\n >{{ item.label }}</x-button\r\n >\r\n }\r\n </x-buttons>\r\n }\r\n @case ('tag') {\r\n @for (item of nodes(); track item.id) {\r\n <x-tag\r\n checked\r\n manual\r\n [type]=\"type()\"\r\n [size]=\"size()\"\r\n [bordered]=\"tagBordered()\"\r\n [dark]=\"tagDark()\"\r\n [disabled]=\"disabledComputed() || item.disabled!\"\r\n [selected]=\"value() === item.id\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-tag\r\n >\r\n }\r\n }\r\n }\r\n </div>\r\n @if (after()) {\r\n <div class=\"x-radio-row-after\">\r\n <ng-container *xOutlet=\"after()\">{{ after() }}</ng-container>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", styles: [".x-radio{margin:0;padding:0}.x-radio{width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:var(--x-height-medium);line-height:var(--x-height-medium);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;display:flex;align-items:center;flex-wrap:wrap;height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row .x-radio-row-before,.x-radio-row .x-radio-row-after{border-radius:var(--x-border-radius);background-color:var(--x-background-a200);padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row-list{position:relative;display:inline-flex;align-items:center}.x-radio-row-list x-tag:not(:first-child){margin-left:var(--x-font-size)}.x-radio-row-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:var(--x-font-size);font-size:var(--x-font-size);cursor:pointer;transition:all .3s}.x-radio-row-item:hover{color:var(--x-primary)}.x-radio-row-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item:last-child{margin-right:0}.x-radio-row-item.x-checked .x-radio-box{border-color:var(--x-primary);border-width:.375rem}.x-radio-row-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-row-item.x-disabled .x-radio-box{border-color:var(--x-border-a900);background-color:var(--x-border-300)}.x-radio-row-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-button .x-radio-row-before,.x-radio-icon .x-radio-row-before{margin-right:0}.x-radio-button .x-radio-row-after,.x-radio-icon .x-radio-row-after{margin-left:0}.x-radio-vertical .x-radio-row-list{flex-direction:column;align-items:flex-start}.x-radio-vertical .x-radio-row-list x-tag{margin-left:0}.x-radio-vertical .x-radio-row-list x-tag:not(:first-child){margin-top:.25rem}.x-radio-vertical .x-radio-row-item{margin-right:0}.x-radio-vertical .x-radio-row-item:not(:first-child){margin-top:.25rem}.x-radio-box{border:var(--x-border-width) solid var(--x-border);border-radius:100%;width:calc(var(--x-height-medium) - .875rem);height:calc(var(--x-height-medium) - .875rem);background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio-before:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-before{margin-right:var(--x-padding-medium)}.x-radio-before.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button,.x-radio-before.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-before.x-radio-button .x-radio-row-before,.x-radio-before.x-radio-icon .x-radio-row-before{margin-right:0;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-before-template .x-radio-row-before{display:contents}.x-radio-before-template .x-radio-row-list{margin-left:var(--x-padding-medium)}.x-radio-before-template.x-radio-button .x-radio-row-list,.x-radio-before-template.x-radio-icon .x-radio-row-list,.x-radio-before-template.x-radio-button .x-radio-row-list .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button{margin-left:0}.x-radio-before-template.x-radio-button .x-radio-row-before input,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-before input,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-after{margin-left:var(--x-padding-medium)}.x-radio-after.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button,.x-radio-after.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after.x-radio-button .x-radio-row-after,.x-radio-after.x-radio-icon .x-radio-row-after{margin-left:0;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-after-template .x-radio-row-after{display:contents}.x-radio-after-template .x-radio-row-list{margin-right:var(--x-padding-medium)}.x-radio-after-template.x-radio-button .x-radio-row-list,.x-radio-after-template.x-radio-icon .x-radio-row-list,.x-radio-after-template.x-radio-button .x-radio-row-list .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button{margin-right:0}.x-radio-after-template.x-radio-button .x-radio-row-after input,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-after input,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-a900);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"] }]
|
|
193
193
|
}] });
|
|
194
194
|
|
|
195
195
|
class XRadioModule {
|
|
196
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
197
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
198
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
196
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
197
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XRadioModule, imports: [XRadioComponent], exports: [XRadioComponent] }); }
|
|
198
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioModule, imports: [XRadioComponent] }); }
|
|
199
199
|
}
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XRadioModule, decorators: [{
|
|
201
201
|
type: NgModule,
|
|
202
202
|
args: [{
|
|
203
203
|
exports: [XRadioComponent],
|