ngx-tethys 18.0.0-next.2 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -5
- package/cascader/cascader.component.d.ts +6 -6
- package/dropdown/dropdown.directive.d.ts +3 -3
- package/esm2022/action/action.component.mjs +3 -3
- package/esm2022/action/action.module.mjs +4 -4
- package/esm2022/action/actions.component.mjs +3 -3
- package/esm2022/affix/affix.component.mjs +3 -3
- package/esm2022/affix/affix.module.mjs +4 -4
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/alert/alert.directive.mjs +3 -3
- package/esm2022/alert/alert.module.mjs +4 -4
- package/esm2022/anchor/anchor-link.component.mjs +3 -3
- package/esm2022/anchor/anchor.component.mjs +3 -3
- package/esm2022/anchor/anchor.module.mjs +4 -4
- package/esm2022/arrow-switcher/arrow-switcher.component.mjs +3 -3
- package/esm2022/arrow-switcher/module.mjs +4 -4
- package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.trigger.directive.mjs +3 -3
- package/esm2022/autocomplete/module.mjs +4 -4
- package/esm2022/autocomplete/overlay/autocomplete-container.component.mjs +3 -3
- package/esm2022/autocomplete/overlay/autocomplete.service.mjs +3 -3
- package/esm2022/avatar/avatar-list/avatar-list.component.mjs +3 -3
- package/esm2022/avatar/avatar.component.mjs +3 -3
- package/esm2022/avatar/avatar.module.mjs +4 -4
- package/esm2022/avatar/avatar.pipe.mjs +9 -9
- package/esm2022/avatar/avatar.service.mjs +3 -3
- package/esm2022/back-top/back-top.component.mjs +3 -3
- package/esm2022/back-top/back-top.module.mjs +4 -4
- package/esm2022/badge/badge.component.mjs +3 -3
- package/esm2022/badge/badge.module.mjs +4 -4
- package/esm2022/breadcrumb/breadcrumb-item.component.mjs +3 -3
- package/esm2022/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2022/breadcrumb/module.mjs +4 -4
- package/esm2022/button/button-group.component.mjs +3 -3
- package/esm2022/button/button-icon.component.mjs +3 -3
- package/esm2022/button/button.component.mjs +3 -3
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/calendar/calendar-cells.mjs +6 -6
- package/esm2022/calendar/calendar-header.component.mjs +3 -3
- package/esm2022/calendar/calendar.component.mjs +3 -3
- package/esm2022/calendar/module.mjs +4 -4
- package/esm2022/card/card.component.mjs +3 -3
- package/esm2022/card/card.module.mjs +4 -4
- package/esm2022/card/content.component.mjs +3 -3
- package/esm2022/card/header.component.mjs +3 -3
- package/esm2022/carousel/carousel-item.directive.mjs +3 -3
- package/esm2022/carousel/carousel.component.mjs +3 -3
- package/esm2022/carousel/carousel.service.mjs +3 -3
- package/esm2022/carousel/module.mjs +4 -4
- package/esm2022/cascader/cascader-li.component.mjs +3 -3
- package/esm2022/cascader/cascader-search-option.component.mjs +3 -3
- package/esm2022/cascader/cascader.component.mjs +13 -13
- package/esm2022/cascader/cascader.service.mjs +3 -3
- package/esm2022/cascader/module.mjs +4 -4
- package/esm2022/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/checkbox/module.mjs +4 -4
- package/esm2022/collapse/collapse-item.component.mjs +3 -3
- package/esm2022/collapse/collapse.component.mjs +3 -3
- package/esm2022/collapse/module.mjs +4 -4
- package/esm2022/color-picker/color-picker-custom-panel.component.mjs +3 -3
- package/esm2022/color-picker/color-picker-panel.component.mjs +3 -3
- package/esm2022/color-picker/color-picker.component.mjs +3 -3
- package/esm2022/color-picker/coordinates.directive.mjs +3 -3
- package/esm2022/color-picker/module.mjs +4 -4
- package/esm2022/color-picker/parts/alpha/alpha.component.mjs +3 -3
- package/esm2022/color-picker/parts/hue/hue.component.mjs +3 -3
- package/esm2022/color-picker/parts/indicator/indicator.component.mjs +3 -3
- package/esm2022/color-picker/parts/inputs/inputs.component.mjs +3 -3
- package/esm2022/color-picker/parts/saturation/saturation.component.mjs +3 -3
- package/esm2022/comment/comment-actions.directive.mjs +3 -3
- package/esm2022/comment/comment-content.directive.mjs +3 -3
- package/esm2022/comment/comment.component.mjs +3 -3
- package/esm2022/comment/comment.module.mjs +4 -4
- package/esm2022/copy/copy.directive.mjs +3 -3
- package/esm2022/copy/module.mjs +4 -4
- package/esm2022/core/click-positioner.mjs +3 -3
- package/esm2022/core/overlay/portal-directives.mjs +3 -3
- package/esm2022/core/scroll.mjs +3 -3
- package/esm2022/core/store/store.mjs +3 -3
- package/esm2022/core/translate.mjs +3 -3
- package/esm2022/core/update-host-class.service.mjs +3 -3
- package/esm2022/date-picker/abstract-picker.component.mjs +3 -3
- package/esm2022/date-picker/abstract-picker.directive.mjs +3 -3
- package/esm2022/date-picker/base-picker.component.mjs +3 -3
- package/esm2022/date-picker/date-helper.service.mjs +3 -3
- package/esm2022/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/date-picker/date-picker.directive.mjs +3 -3
- package/esm2022/date-picker/date-picker.module.mjs +4 -4
- package/esm2022/date-picker/date-picker.service.mjs +3 -3
- package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +3 -3
- package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -3
- package/esm2022/date-picker/lib/date/date-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/date/date-table-cell.component.mjs +3 -3
- package/esm2022/date-picker/lib/date/date-table.component.mjs +3 -3
- package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +3 -3
- package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/decade/decade-table.component.mjs +3 -3
- package/esm2022/date-picker/lib/lib-packer.module.mjs +4 -4
- package/esm2022/date-picker/lib/month/month-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -3
- package/esm2022/date-picker/lib/popups/date-popup.component.mjs +3 -3
- package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +3 -3
- package/esm2022/date-picker/lib/quarter/quarter-table.component.mjs +3 -3
- package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/year/year-table.component.mjs +3 -3
- package/esm2022/date-picker/month-picker.component.mjs +3 -3
- package/esm2022/date-picker/picker.component.mjs +3 -3
- package/esm2022/date-picker/picker.pipes.mjs +12 -12
- package/esm2022/date-picker/picker.validators.mjs +6 -6
- package/esm2022/date-picker/quarter-picker.component.mjs +3 -3
- package/esm2022/date-picker/range-picker.component.mjs +3 -3
- package/esm2022/date-picker/range-picker.directive.mjs +3 -3
- package/esm2022/date-picker/week-picker.component.mjs +3 -3
- package/esm2022/date-picker/year-picker.component.mjs +3 -3
- package/esm2022/date-range/date-range.component.mjs +3 -3
- package/esm2022/date-range/module.mjs +4 -4
- package/esm2022/date-range/optional-dates/optional-dates.component.mjs +3 -3
- package/esm2022/dialog/body/dialog-body.component.mjs +3 -3
- package/esm2022/dialog/confirm/confirm.component.mjs +3 -3
- package/esm2022/dialog/dialog-container.component.mjs +3 -3
- package/esm2022/dialog/dialog.module.mjs +4 -4
- package/esm2022/dialog/dialog.service.mjs +3 -3
- package/esm2022/dialog/footer/dialog-footer.component.mjs +3 -3
- package/esm2022/dialog/header/dialog-header.component.mjs +3 -3
- package/esm2022/divider/divider.component.mjs +3 -3
- package/esm2022/divider/divider.module.mjs +4 -4
- package/esm2022/dot/dot.component.mjs +3 -3
- package/esm2022/dot/dot.module.mjs +4 -4
- package/esm2022/drag-drop/drag-content.directive.mjs +3 -3
- package/esm2022/drag-drop/drag-drop.service.mjs +3 -3
- package/esm2022/drag-drop/drag-handle.directive.mjs +3 -3
- package/esm2022/drag-drop/drag.directive.mjs +3 -3
- package/esm2022/drag-drop/drop-container.directive.mjs +3 -3
- package/esm2022/drag-drop/module.mjs +4 -4
- package/esm2022/dropdown/dropdown-active.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-menu-item.directive.mjs +21 -21
- package/esm2022/dropdown/dropdown-menu.component.mjs +12 -12
- package/esm2022/dropdown/dropdown-submenu.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.directive.mjs +6 -6
- package/esm2022/dropdown/module.mjs +4 -4
- package/esm2022/empty/empty.component.mjs +3 -3
- package/esm2022/empty/empty.config.mjs +3 -3
- package/esm2022/empty/empty.module.mjs +4 -4
- package/esm2022/flexible-text/flexible-text.component.mjs +3 -3
- package/esm2022/flexible-text/flexible-text.module.mjs +4 -4
- package/esm2022/form/form-group-error/form-group-error.component.mjs +3 -3
- package/esm2022/form/form-group-label.directive.mjs +3 -3
- package/esm2022/form/form-group.component.mjs +3 -3
- package/esm2022/form/form-submit.directive.mjs +3 -3
- package/esm2022/form/form-validator-loader.mjs +3 -3
- package/esm2022/form/form-validator.service.mjs +3 -3
- package/esm2022/form/form.directive.mjs +3 -3
- package/esm2022/form/from-group-footer/form-group-footer.component.mjs +3 -3
- package/esm2022/form/module.mjs +4 -4
- package/esm2022/form/validator/confirm-validator.directive.mjs +3 -3
- package/esm2022/form/validator/max-validator.directive.mjs +3 -3
- package/esm2022/form/validator/min-validator.directive.mjs +3 -3
- package/esm2022/form/validator/unique-validator.directive.mjs +3 -3
- package/esm2022/fullscreen/fullscreen-launch.directive.mjs +3 -3
- package/esm2022/fullscreen/fullscreen.component.mjs +3 -3
- package/esm2022/fullscreen/fullscreen.module.mjs +4 -4
- package/esm2022/fullscreen/fullscreen.service.mjs +3 -3
- package/esm2022/grid/flex.mjs +12 -12
- package/esm2022/grid/module.mjs +4 -4
- package/esm2022/grid/thy-col.directive.mjs +3 -3
- package/esm2022/grid/thy-grid-item.component.mjs +3 -3
- package/esm2022/grid/thy-grid.component.mjs +6 -6
- package/esm2022/grid/thy-row.directive.mjs +3 -3
- package/esm2022/guider/guider-hint/guider-hint.component.mjs +3 -3
- package/esm2022/guider/guider-manager.mjs +3 -3
- package/esm2022/guider/guider.directive.mjs +3 -3
- package/esm2022/guider/guider.module.mjs +4 -4
- package/esm2022/guider/guider.service.mjs +3 -3
- package/esm2022/icon/icon-registry.mjs +3 -3
- package/esm2022/icon/icon.component.mjs +3 -3
- package/esm2022/icon/icon.module.mjs +4 -4
- package/esm2022/image/image-group.component.mjs +3 -3
- package/esm2022/image/image.directive.mjs +3 -3
- package/esm2022/image/image.service.mjs +3 -3
- package/esm2022/image/module.mjs +4 -4
- package/esm2022/image/preview/image-preview.component.mjs +3 -3
- package/esm2022/input/input-count.component.mjs +3 -3
- package/esm2022/input/input-group.component.mjs +3 -3
- package/esm2022/input/input-search.component.mjs +3 -3
- package/esm2022/input/input.component.mjs +3 -3
- package/esm2022/input/input.directive.mjs +3 -3
- package/esm2022/input/module.mjs +4 -4
- package/esm2022/input-number/input-number.component.mjs +3 -3
- package/esm2022/input-number/module.mjs +4 -4
- package/esm2022/layout/content-main.component.mjs +6 -6
- package/esm2022/layout/content-section.component.mjs +6 -6
- package/esm2022/layout/content.component.mjs +6 -6
- package/esm2022/layout/header.component.mjs +6 -6
- package/esm2022/layout/layout.component.mjs +6 -6
- package/esm2022/layout/layout.module.mjs +4 -4
- package/esm2022/layout/sidebar-content.component.mjs +6 -6
- package/esm2022/layout/sidebar-footer.component.mjs +6 -6
- package/esm2022/layout/sidebar-header.component.mjs +6 -6
- package/esm2022/layout/sidebar.component.mjs +6 -6
- package/esm2022/list/list-item-meta.component.mjs +3 -3
- package/esm2022/list/list-item.component.mjs +3 -3
- package/esm2022/list/list.component.mjs +3 -3
- package/esm2022/list/list.module.mjs +4 -4
- package/esm2022/list/selection/selection-list.mjs +3 -3
- package/esm2022/loading/loading.component.mjs +3 -3
- package/esm2022/loading/loading.module.mjs +4 -4
- package/esm2022/mention/mention.directive.mjs +3 -3
- package/esm2022/mention/mention.module.mjs +4 -4
- package/esm2022/mention/suggestions/suggestions.component.mjs +3 -3
- package/esm2022/menu/divider/menu-divider.component.mjs +3 -3
- package/esm2022/menu/group/menu-group.component.mjs +3 -3
- package/esm2022/menu/item/action/menu-item-action.component.mjs +3 -3
- package/esm2022/menu/item/icon/menu-item-icon.component.mjs +3 -3
- package/esm2022/menu/item/menu-item.component.mjs +3 -3
- package/esm2022/menu/item/name/menu-item-name.component.mjs +3 -3
- package/esm2022/menu/menu.component.mjs +3 -3
- package/esm2022/menu/menu.module.mjs +4 -4
- package/esm2022/message/abstract/abstract-message-container.component.mjs +3 -3
- package/esm2022/message/abstract/abstract-message.component.mjs +3 -3
- package/esm2022/message/message-container.component.mjs +3 -3
- package/esm2022/message/message-queue.service.mjs +3 -3
- package/esm2022/message/message.component.mjs +3 -3
- package/esm2022/message/message.service.mjs +3 -3
- package/esm2022/message/module.mjs +4 -4
- package/esm2022/nav/icon-nav/icon-nav-link.directive.mjs +3 -3
- package/esm2022/nav/icon-nav/icon-nav.component.mjs +3 -3
- package/esm2022/nav/nav-ink-bar.directive.mjs +3 -3
- package/esm2022/nav/nav-item.directive.mjs +3 -3
- package/esm2022/nav/nav.component.mjs +3 -3
- package/esm2022/nav/nav.module.mjs +4 -4
- package/esm2022/nav/nav.pipe.mjs +3 -3
- package/esm2022/notify/module.mjs +4 -4
- package/esm2022/notify/notify-container.component.mjs +3 -3
- package/esm2022/notify/notify-queue.service.mjs +3 -3
- package/esm2022/notify/notify.component.mjs +3 -3
- package/esm2022/notify/notify.service.mjs +3 -3
- package/esm2022/pagination/pagination.component.mjs +3 -3
- package/esm2022/pagination/pagination.module.mjs +4 -4
- package/esm2022/pagination/pagination.pipe.mjs +3 -3
- package/esm2022/popover/body/popover-body.component.mjs +3 -3
- package/esm2022/popover/header/popover-header.component.mjs +3 -3
- package/esm2022/popover/module.mjs +4 -4
- package/esm2022/popover/popover-container.component.mjs +3 -3
- package/esm2022/popover/popover.directive.mjs +3 -3
- package/esm2022/popover/popover.service.mjs +3 -3
- package/esm2022/progress/progress-circle.component.mjs +3 -3
- package/esm2022/progress/progress-strip.component.mjs +3 -3
- package/esm2022/progress/progress.component.mjs +3 -3
- package/esm2022/progress/progress.module.mjs +4 -4
- package/esm2022/property/module.mjs +4 -4
- package/esm2022/property/properties.component.mjs +3 -3
- package/esm2022/property/property-item.component.mjs +3 -3
- package/esm2022/property-operation/group/property-operation-group.component.mjs +3 -3
- package/esm2022/property-operation/module.mjs +4 -4
- package/esm2022/property-operation/property-operation.component.mjs +3 -3
- package/esm2022/radio/button/radio-button.component.mjs +3 -3
- package/esm2022/radio/group/radio-group.component.mjs +3 -3
- package/esm2022/radio/module.mjs +4 -4
- package/esm2022/radio/radio.component.mjs +3 -3
- package/esm2022/rate/module.mjs +4 -4
- package/esm2022/rate/rate-item.component.mjs +3 -3
- package/esm2022/rate/rate.component.mjs +3 -3
- package/esm2022/resizable/module.mjs +4 -4
- package/esm2022/resizable/resizable.directive.mjs +3 -3
- package/esm2022/resizable/resizable.service.mjs +3 -3
- package/esm2022/resizable/resize-handle.component.mjs +3 -3
- package/esm2022/resizable/resize-handles.component.mjs +3 -3
- package/esm2022/result/result.component.mjs +3 -3
- package/esm2022/result/result.module.mjs +4 -4
- package/esm2022/segment/segment-item.component.mjs +3 -3
- package/esm2022/segment/segment.component.mjs +3 -3
- package/esm2022/segment/segment.module.mjs +4 -4
- package/esm2022/select/custom-select/custom-select.component.mjs +3 -3
- package/esm2022/select/module.mjs +4 -4
- package/esm2022/select/native-select/native-select.component.mjs +3 -3
- package/esm2022/shared/base-form-check.component.mjs +3 -3
- package/esm2022/shared/directives/string-or-template-outlet.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-autofocus.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-contextmenu.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-ctrl-enter.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-drag-drop.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-enter.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-scroll.directive.mjs +3 -3
- package/esm2022/shared/directives/thy-show.mjs +3 -3
- package/esm2022/shared/directives/thy-stop-propagation.directive.mjs +3 -3
- package/esm2022/shared/directives/view-outlet.directive.mjs +3 -3
- package/esm2022/shared/ng-transclude.directive.mjs +3 -3
- package/esm2022/shared/option/group/option-group.component.mjs +3 -3
- package/esm2022/shared/option/list-option/list-option.component.mjs +3 -3
- package/esm2022/shared/option/module.mjs +4 -4
- package/esm2022/shared/option/option-group.component.mjs +3 -3
- package/esm2022/shared/option/option.component.mjs +3 -3
- package/esm2022/shared/option/options-container.component.mjs +3 -3
- package/esm2022/shared/select/module.mjs +4 -4
- package/esm2022/shared/select/select-control/select-control.component.mjs +6 -6
- package/esm2022/shared/shared.module.mjs +4 -4
- package/esm2022/skeleton/module.mjs +4 -4
- package/esm2022/skeleton/skeleton-circle.component.mjs +3 -3
- package/esm2022/skeleton/skeleton-rectangle.component.mjs +3 -3
- package/esm2022/skeleton/skeleton.component.mjs +3 -3
- package/esm2022/skeleton/stylized/bullet-list.component.mjs +3 -3
- package/esm2022/skeleton/stylized/list.component.mjs +3 -3
- package/esm2022/skeleton/stylized/paragraph.component.mjs +3 -3
- package/esm2022/slide/drawer/drawer-container.directive.mjs +3 -3
- package/esm2022/slide/slide-body/slide-body-section.component.mjs +3 -3
- package/esm2022/slide/slide-body/slide-body.component.mjs +3 -3
- package/esm2022/slide/slide-container.component.mjs +3 -3
- package/esm2022/slide/slide-footer/slide-footer.component.mjs +3 -3
- package/esm2022/slide/slide-header/slide-header.component.mjs +3 -3
- package/esm2022/slide/slide-layout/slide-layout.component.mjs +3 -3
- package/esm2022/slide/slide-ref.service.mjs +3 -3
- package/esm2022/slide/slide.module.mjs +4 -4
- package/esm2022/slide/slide.service.mjs +3 -3
- package/esm2022/slider/slider.component.mjs +3 -3
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/space/space.component.mjs +6 -6
- package/esm2022/space/space.module.mjs +4 -4
- package/esm2022/statistic/statistic.component.mjs +3 -3
- package/esm2022/statistic/statistic.module.mjs +4 -4
- package/esm2022/stepper/step-header.component.mjs +9 -6
- package/esm2022/stepper/step.component.mjs +7 -5
- package/esm2022/stepper/stepper-button.directive.mjs +6 -6
- package/esm2022/stepper/stepper.component.mjs +6 -6
- package/esm2022/stepper/stepper.module.mjs +5 -5
- package/esm2022/strength/strength.component.mjs +3 -3
- package/esm2022/strength/strength.module.mjs +4 -4
- package/esm2022/switch/switch.component.mjs +3 -3
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/table/pipes/drag.pipe.mjs +3 -3
- package/esm2022/table/pipes/table.pipe.mjs +3 -3
- package/esm2022/table/table-column.component.mjs +3 -3
- package/esm2022/table/table-skeleton.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +5 -5
- package/esm2022/table/table.module.mjs +4 -4
- package/esm2022/tabs/tab-content.component.mjs +3 -3
- package/esm2022/tabs/tab.component.mjs +3 -3
- package/esm2022/tabs/tabs.component.mjs +3 -3
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tag/tag.component.mjs +3 -3
- package/esm2022/tag/tag.module.mjs +4 -4
- package/esm2022/tag/tags.component.mjs +3 -3
- package/esm2022/time-picker/inner/inner-time-picker.component.mjs +3 -3
- package/esm2022/time-picker/inner/inner-time-picker.config.mjs +3 -3
- package/esm2022/time-picker/inner/inner-time-picker.store.mjs +3 -3
- package/esm2022/time-picker/time-picker-panel.component.mjs +3 -3
- package/esm2022/time-picker/time-picker.component.mjs +3 -3
- package/esm2022/time-picker/time-picker.module.mjs +4 -4
- package/esm2022/timeline/timeline-item.component.mjs +3 -3
- package/esm2022/timeline/timeline.component.mjs +3 -3
- package/esm2022/timeline/timeline.module.mjs +4 -4
- package/esm2022/timeline/timeline.service.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.directive.mjs +3 -3
- package/esm2022/tooltip/tooltip.module.mjs +4 -4
- package/esm2022/tooltip/tooltip.service.mjs +3 -3
- package/esm2022/transfer/transfer-list.component.mjs +4 -4
- package/esm2022/transfer/transfer.component.mjs +3 -3
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/tree/tree-node.component.mjs +3 -3
- package/esm2022/tree/tree.component.mjs +5 -5
- package/esm2022/tree/tree.module.mjs +4 -4
- package/esm2022/tree/tree.pipe.mjs +3 -3
- package/esm2022/tree/tree.service.mjs +3 -3
- package/esm2022/tree-select/module.mjs +4 -4
- package/esm2022/tree-select/tree-select.component.mjs +6 -6
- package/esm2022/typography/bg-color.directive.mjs +3 -3
- package/esm2022/typography/module.mjs +4 -4
- package/esm2022/typography/text/text.component.mjs +3 -3
- package/esm2022/typography/text-color.directive.mjs +3 -3
- package/esm2022/upload/constant.mjs +3 -1
- package/esm2022/upload/file-drop.directive.mjs +18 -6
- package/esm2022/upload/file-select-base.mjs +3 -3
- package/esm2022/upload/file-select.component.mjs +3 -3
- package/esm2022/upload/module.mjs +4 -4
- package/esm2022/upload/upload.service.mjs +3 -3
- package/esm2022/version.mjs +2 -2
- package/esm2022/vote/vote.component.mjs +3 -3
- package/esm2022/vote/vote.module.mjs +4 -4
- package/esm2022/watermark/watermark.directive.mjs +3 -3
- package/esm2022/watermark/watermark.module.mjs +4 -4
- package/fesm2022/ngx-tethys-action.mjs +10 -10
- package/fesm2022/ngx-tethys-affix.mjs +7 -7
- package/fesm2022/ngx-tethys-alert.mjs +10 -10
- package/fesm2022/ngx-tethys-anchor.mjs +10 -10
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +7 -7
- package/fesm2022/ngx-tethys-autocomplete.mjs +16 -16
- package/fesm2022/ngx-tethys-avatar.mjs +22 -22
- package/fesm2022/ngx-tethys-back-top.mjs +7 -7
- package/fesm2022/ngx-tethys-badge.mjs +7 -7
- package/fesm2022/ngx-tethys-breadcrumb.mjs +10 -10
- package/fesm2022/ngx-tethys-button.mjs +13 -13
- package/fesm2022/ngx-tethys-calendar.mjs +16 -16
- package/fesm2022/ngx-tethys-card.mjs +13 -13
- package/fesm2022/ngx-tethys-carousel.mjs +13 -13
- package/fesm2022/ngx-tethys-cascader.mjs +20 -20
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +7 -7
- package/fesm2022/ngx-tethys-collapse.mjs +10 -10
- package/fesm2022/ngx-tethys-color-picker.mjs +31 -31
- package/fesm2022/ngx-tethys-comment.mjs +13 -13
- package/fesm2022/ngx-tethys-copy.mjs +7 -7
- package/fesm2022/ngx-tethys-core.mjs +18 -18
- package/fesm2022/ngx-tethys-date-picker.mjs +116 -116
- package/fesm2022/ngx-tethys-date-range.mjs +10 -10
- package/fesm2022/ngx-tethys-dialog.mjs +22 -22
- package/fesm2022/ngx-tethys-divider.mjs +7 -7
- package/fesm2022/ngx-tethys-dot.mjs +7 -7
- package/fesm2022/ngx-tethys-drag-drop.mjs +19 -19
- package/fesm2022/ngx-tethys-dropdown.mjs +48 -48
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +10 -10
- package/fesm2022/ngx-tethys-flexible-text.mjs +7 -7
- package/fesm2022/ngx-tethys-form.mjs +40 -40
- package/fesm2022/ngx-tethys-fullscreen.mjs +13 -13
- package/fesm2022/ngx-tethys-grid.mjs +31 -31
- package/fesm2022/ngx-tethys-guider.mjs +16 -16
- package/fesm2022/ngx-tethys-icon.mjs +10 -10
- package/fesm2022/ngx-tethys-image.mjs +16 -16
- package/fesm2022/ngx-tethys-input-number.mjs +7 -7
- package/fesm2022/ngx-tethys-input.mjs +19 -19
- package/fesm2022/ngx-tethys-layout.mjs +58 -58
- package/fesm2022/ngx-tethys-list.mjs +16 -16
- package/fesm2022/ngx-tethys-loading.mjs +7 -7
- package/fesm2022/ngx-tethys-mention.mjs +10 -10
- package/fesm2022/ngx-tethys-menu.mjs +25 -25
- package/fesm2022/ngx-tethys-message.mjs +22 -22
- package/fesm2022/ngx-tethys-nav.mjs +22 -22
- package/fesm2022/ngx-tethys-notify.mjs +16 -16
- package/fesm2022/ngx-tethys-pagination.mjs +10 -10
- package/fesm2022/ngx-tethys-popover.mjs +19 -19
- package/fesm2022/ngx-tethys-progress.mjs +13 -13
- package/fesm2022/ngx-tethys-property-operation.mjs +10 -10
- package/fesm2022/ngx-tethys-property.mjs +10 -10
- package/fesm2022/ngx-tethys-radio.mjs +13 -13
- package/fesm2022/ngx-tethys-rate.mjs +10 -10
- package/fesm2022/ngx-tethys-resizable.mjs +16 -16
- package/fesm2022/ngx-tethys-result.mjs +7 -7
- package/fesm2022/ngx-tethys-segment.mjs +10 -10
- package/fesm2022/ngx-tethys-select.mjs +10 -10
- package/fesm2022/ngx-tethys-shared.mjs +67 -67
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +22 -22
- package/fesm2022/ngx-tethys-slide.mjs +31 -31
- package/fesm2022/ngx-tethys-slider.mjs +7 -7
- package/fesm2022/ngx-tethys-space.mjs +10 -10
- package/fesm2022/ngx-tethys-statistic.mjs +7 -7
- package/fesm2022/ngx-tethys-stepper.mjs +27 -22
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +7 -7
- package/fesm2022/ngx-tethys-switch.mjs +7 -7
- package/fesm2022/ngx-tethys-table.mjs +20 -20
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +13 -13
- package/fesm2022/ngx-tethys-tag.mjs +10 -10
- package/fesm2022/ngx-tethys-time-picker.mjs +19 -19
- package/fesm2022/ngx-tethys-timeline.mjs +13 -13
- package/fesm2022/ngx-tethys-tooltip.mjs +13 -13
- package/fesm2022/ngx-tethys-transfer.mjs +10 -10
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +10 -10
- package/fesm2022/ngx-tethys-tree.mjs +17 -17
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +13 -13
- package/fesm2022/ngx-tethys-upload.mjs +32 -18
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +7 -7
- package/fesm2022/ngx-tethys-watermark.mjs +7 -7
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/notify/styles/notify.scss +3 -0
- package/package.json +1 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/shared/select/select-control/select-control.component.d.ts +1 -1
- package/shared/select/select-control/select-control.scss +8 -0
- package/stepper/examples/icon/icon.component.scss +8 -0
- package/stepper/step-header.component.d.ts +2 -1
- package/stepper/step.component.d.ts +7 -2
- package/stepper/styles/stepper.scss +16 -2
- package/styles/variables.scss +2 -0
- package/upload/constant.d.ts +2 -0
- package/upload/file-drop.directive.d.ts +6 -1
|
@@ -124,10 +124,10 @@ class ThyTransferList {
|
|
|
124
124
|
listData: { lock: this.lockItems, unlock: this.unlockItems }
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
128
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransferList, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
128
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: ThyTransferList, isStandalone: true, selector: "thy-transfer-list", inputs: { title: "title", items: "items", draggable: "draggable", canLock: "canLock", maxLock: "maxLock", max: "max", disabled: "disabled", template: "template", contentRef: ["renderContentRef", "contentRef"] }, outputs: { draggableUpdate: "draggableUpdate", selectItem: "selectItem", unselectItem: "unselectItem" }, host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<div class=\"thy-transfer-list-header\">\n <span class=\"thy-transfer-list-header-title\"\n >{{ title }} \u00B7 {{ items?.length }}<span *ngIf=\"max\"> (\u4E0A\u9650{{ max }}\u4E2A)</span></span\n >\n</div>\n<ng-container *ngIf=\"!contentRef; else renderContent\">\n <div class=\"thy-transfer-list-body\" cdkDropListGroup [cdkDropListGroupDisabled]=\"!draggable\">\n <ng-container *ngIf=\"canLock\">\n <div class=\"thy-transfer-list-group-name\">\u9501\u5B9A (\u4E0A\u9650{{ maxLock }}\u4E2A)</div>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n id=\"lock\"\n [cdkDropListData]=\"lockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"lockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"lockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of lockItems\"\n [ngClass]=\"{ active: item.checked }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n\n <div class=\"thy-transfer-list-group-name\">\u672A\u9501\u5B9A</div>\n </ng-container>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n [cdkDropListDisabled]=\"!draggable\"\n id=\"unlock\"\n [cdkDropListData]=\"unlockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"unlockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"unlockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of unlockItems\"\n [ngClass]=\"{ active: item.checked, disabled: disabled && item.direction === 'left' }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n </div>\n</ng-container>\n\n<ng-template #renderContent>\n <div class=\"thy-transfer-list-body\">\n <ng-container\n *ngTemplateOutlet=\"\n contentRef;\n context: {\n $implicit: items,\n onSelectItem: onSelectItem,\n onUnselectItem: onUnselectItem\n }\n \"\n ></ng-container>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: ["cdkDropListGroupDisabled"], exportAs: ["cdkDropListGroup"] }, { kind: "component", type: ThyList, selector: "thy-list", inputs: ["thyDivided"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: ThyDragDropDirective, selector: "[thyDragDrop]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ThyListItem, selector: "thy-list-item,[thy-list-item]" }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
129
129
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransferList, decorators: [{
|
|
131
131
|
type: Component,
|
|
132
132
|
args: [{ selector: 'thy-transfer-list', encapsulation: ViewEncapsulation.None, standalone: true, imports: [NgIf, CdkDropListGroup, ThyList, CdkDropList, ThyDragDropDirective, NgFor, ThyListItem, CdkDrag, NgClass, NgTemplateOutlet], template: "<div class=\"thy-transfer-list-header\">\n <span class=\"thy-transfer-list-header-title\"\n >{{ title }} \u00B7 {{ items?.length }}<span *ngIf=\"max\"> (\u4E0A\u9650{{ max }}\u4E2A)</span></span\n >\n</div>\n<ng-container *ngIf=\"!contentRef; else renderContent\">\n <div class=\"thy-transfer-list-body\" cdkDropListGroup [cdkDropListGroupDisabled]=\"!draggable\">\n <ng-container *ngIf=\"canLock\">\n <div class=\"thy-transfer-list-group-name\">\u9501\u5B9A (\u4E0A\u9650{{ maxLock }}\u4E2A)</div>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n id=\"lock\"\n [cdkDropListData]=\"lockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"lockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"lockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of lockItems\"\n [ngClass]=\"{ active: item.checked }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n\n <div class=\"thy-transfer-list-group-name\">\u672A\u9501\u5B9A</div>\n </ng-container>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n [cdkDropListDisabled]=\"!draggable\"\n id=\"unlock\"\n [cdkDropListData]=\"unlockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"unlockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"unlockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of unlockItems\"\n [ngClass]=\"{ active: item.checked, disabled: disabled && item.direction === 'left' }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n </div>\n</ng-container>\n\n<ng-template #renderContent>\n <div class=\"thy-transfer-list-body\">\n <ng-container\n *ngTemplateOutlet=\"\n contentRef;\n context: {\n $implicit: items,\n onSelectItem: onSelectItem,\n onUnselectItem: onUnselectItem\n }\n \"\n ></ng-container>\n </div>\n</ng-template>\n" }]
|
|
133
133
|
}], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
|
|
@@ -289,10 +289,10 @@ class ThyTransfer {
|
|
|
289
289
|
? [...event.listData.lock, ...event.listData.unlock]
|
|
290
290
|
: [...otherListData.lock, ...otherListData.unlock];
|
|
291
291
|
}
|
|
292
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
293
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
|
292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransfer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
293
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: ThyTransfer, isStandalone: true, selector: "thy-transfer", inputs: { thyData: "thyData", thyrenderLeftTemplateRef: "thyrenderLeftTemplateRef", thyrenderRightTemplateRef: "thyrenderRightTemplateRef", thyTitles: "thyTitles", thyRightCanLock: "thyRightCanLock", thyRightLockMax: "thyRightLockMax", thyRightMax: "thyRightMax", thyAutoMove: "thyAutoMove", thyLeftDraggable: "thyLeftDraggable", thyRightDraggable: "thyRightDraggable" }, outputs: { thyDraggableUpdate: "thyDraggableUpdate", thyChange: "thyChange" }, host: { properties: { "class": "this.hostClass" } }, queries: [{ propertyName: "templateRef", first: true, predicate: ["renderTemplate"], descendants: true }, { propertyName: "leftContentRef", first: true, predicate: ["renderLeftTemplate"], descendants: true }, { propertyName: "rightContentRef", first: true, predicate: ["renderRightTemplate"], descendants: true }], ngImport: i0, template: "<thy-transfer-list\n [items]=\"allDataSource\"\n [title]=\"leftTitle\"\n [draggable]=\"thyLeftDraggable\"\n [disabled]=\"thyRightMax <= rightDataSource.length\"\n [renderContentRef]=\"leftContentRef\"\n (draggableUpdate)=\"onDragUpdate('left', $event)\"\n [template]=\"leftTemplateRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #leftTemplateRef let-item>\n <div (click)=\"onSelect(item.direction === 'left' ? 'left' : 'right', { item: item })\" class=\"list-item-content\">\n <ng-container *ngIf=\"thyLeftDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\" [ngClass]=\"{ 'un-select-item': item.direction !== 'right' }\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <thy-icon *ngIf=\"item.direction === 'right'\" class=\"text-primary item-status\" thyIconName=\"check\"></thy-icon>\n </div>\n </ng-template>\n</thy-transfer-list>\n\n<div class=\"thy-transfer-operation\">\n <div class=\"thy-transfer-operation-body\">\n <thy-icon thyIconName=\"angle-right\" class=\"operation-link\"></thy-icon>\n <br />\n <thy-icon thyIconName=\"angle-left\" class=\"operation-link\"></thy-icon>\n </div>\n</div>\n\n<thy-transfer-list\n [items]=\"rightDataSource\"\n [title]=\"rightTitle\"\n [draggable]=\"thyRightDraggable\"\n (draggableUpdate)=\"onDragUpdate('right', $event)\"\n [canLock]=\"thyRightCanLock\"\n [maxLock]=\"thyRightLockMax\"\n [max]=\"thyRightMax\"\n [template]=\"rightTemplateRef\"\n [renderContentRef]=\"rightContentRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #rightTemplateRef let-item>\n <ng-container *ngIf=\"thyRightDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <a class=\"link-secondary\" *ngIf=\"item.direction === 'right' && !item.isFixed\" (click)=\"onSelect('right', { item: item })\">\n <thy-icon class=\"item-status\" thyIconName=\"close\"></thy-icon>\n </a>\n </ng-template>\n</thy-transfer-list>\n\n<ng-template #thyTransferListItem let-item>\n <ng-template *ngIf=\"templateRef\" [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n <ng-container *ngIf=\"!templateRef\">\n <thy-flexible-text [thyTooltipContent]=\"item.title\">\n {{ item.title }}\n </thy-flexible-text>\n </ng-container>\n</ng-template>\n", dependencies: [{ kind: "component", type: ThyTransferList, selector: "thy-transfer-list", inputs: ["title", "items", "draggable", "canLock", "maxLock", "max", "disabled", "template", "renderContentRef"], outputs: ["draggableUpdate", "selectItem", "unselectItem"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
294
294
|
}
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransfer, decorators: [{
|
|
296
296
|
type: Component,
|
|
297
297
|
args: [{ selector: 'thy-transfer', encapsulation: ViewEncapsulation.None, standalone: true, imports: [ThyTransferList, NgIf, ThyIcon, NgClass, NgTemplateOutlet, ThyFlexibleText], template: "<thy-transfer-list\n [items]=\"allDataSource\"\n [title]=\"leftTitle\"\n [draggable]=\"thyLeftDraggable\"\n [disabled]=\"thyRightMax <= rightDataSource.length\"\n [renderContentRef]=\"leftContentRef\"\n (draggableUpdate)=\"onDragUpdate('left', $event)\"\n [template]=\"leftTemplateRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #leftTemplateRef let-item>\n <div (click)=\"onSelect(item.direction === 'left' ? 'left' : 'right', { item: item })\" class=\"list-item-content\">\n <ng-container *ngIf=\"thyLeftDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\" [ngClass]=\"{ 'un-select-item': item.direction !== 'right' }\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <thy-icon *ngIf=\"item.direction === 'right'\" class=\"text-primary item-status\" thyIconName=\"check\"></thy-icon>\n </div>\n </ng-template>\n</thy-transfer-list>\n\n<div class=\"thy-transfer-operation\">\n <div class=\"thy-transfer-operation-body\">\n <thy-icon thyIconName=\"angle-right\" class=\"operation-link\"></thy-icon>\n <br />\n <thy-icon thyIconName=\"angle-left\" class=\"operation-link\"></thy-icon>\n </div>\n</div>\n\n<thy-transfer-list\n [items]=\"rightDataSource\"\n [title]=\"rightTitle\"\n [draggable]=\"thyRightDraggable\"\n (draggableUpdate)=\"onDragUpdate('right', $event)\"\n [canLock]=\"thyRightCanLock\"\n [maxLock]=\"thyRightLockMax\"\n [max]=\"thyRightMax\"\n [template]=\"rightTemplateRef\"\n [renderContentRef]=\"rightContentRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #rightTemplateRef let-item>\n <ng-container *ngIf=\"thyRightDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <a class=\"link-secondary\" *ngIf=\"item.direction === 'right' && !item.isFixed\" (click)=\"onSelect('right', { item: item })\">\n <thy-icon class=\"item-status\" thyIconName=\"close\"></thy-icon>\n </a>\n </ng-template>\n</thy-transfer-list>\n\n<ng-template #thyTransferListItem let-item>\n <ng-template *ngIf=\"templateRef\" [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n <ng-container *ngIf=\"!templateRef\">\n <thy-flexible-text [thyTooltipContent]=\"item.title\">\n {{ item.title }}\n </thy-flexible-text>\n </ng-container>\n</ng-template>\n" }]
|
|
298
298
|
}], propDecorators: { hostClass: [{
|
|
@@ -334,8 +334,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
|
|
|
334
334
|
}] } });
|
|
335
335
|
|
|
336
336
|
class ThyTransferModule {
|
|
337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
338
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
338
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.4", ngImport: i0, type: ThyTransferModule, imports: [CommonModule,
|
|
339
339
|
ThyButtonModule,
|
|
340
340
|
DragDropModule,
|
|
341
341
|
ThyIconModule,
|
|
@@ -344,7 +344,7 @@ class ThyTransferModule {
|
|
|
344
344
|
ThyFlexibleTextModule,
|
|
345
345
|
ThyTransfer,
|
|
346
346
|
ThyTransferList], exports: [ThyTransfer] }); }
|
|
347
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
347
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransferModule, imports: [CommonModule,
|
|
348
348
|
ThyButtonModule,
|
|
349
349
|
DragDropModule,
|
|
350
350
|
ThyIconModule,
|
|
@@ -354,7 +354,7 @@ class ThyTransferModule {
|
|
|
354
354
|
ThyTransfer,
|
|
355
355
|
ThyTransferList] }); }
|
|
356
356
|
}
|
|
357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTransferModule, decorators: [{
|
|
358
358
|
type: NgModule,
|
|
359
359
|
args: [{
|
|
360
360
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-transfer.mjs","sources":["../../../src/transfer/transfer.interface.ts","../../../src/transfer/transfer-list.component.ts","../../../src/transfer/transfer-list.component.html","../../../src/transfer/transfer.component.ts","../../../src/transfer/transfer.component.html","../../../src/transfer/transfer.module.ts","../../../src/transfer/ngx-tethys-transfer.ts"],"sourcesContent":["export type Direction = 'left' | 'right';\n\nexport enum TransferDirection {\n left = 'left',\n right = 'right'\n}\n\nexport interface ThyTransferData {\n source: ThyTransferModel;\n target: ThyTransferModel;\n}\n\nexport interface ThyTransferModel {\n title?: string;\n data: Array<any>;\n}\n\n/**\n * @public\n * @order 20\n */\nexport interface ThyTransferItem {\n /**\n * 数据标题\n */\n title: string;\n\n /**\n * 设置方向,可选值 [left,right]\n */\n direction?: Direction;\n\n order?: number;\n\n disabled?: boolean;\n\n /**\n * 选中状态\n */\n checked?: boolean;\n\n isLock?: boolean;\n\n groupId?: string;\n\n isFixed?: boolean;\n\n /**\n * 自定义数据\n */\n [key: string]: any;\n}\n\nexport interface ThyTransferSelectEvent {\n item: ThyTransferItem;\n}\n\nexport interface ThyTransferChangeEvent {\n from?: string;\n to?: string;\n items?: ThyTransferItem[];\n left?: InnerTransferList;\n right?: InnerTransferList;\n}\n\nexport interface ThyTransferDragEvent {\n oldIndex?: number;\n newIndex?: number;\n model?: ThyTransferItem;\n models?: ThyTransferItem[];\n left?: InnerTransferList;\n right?: InnerTransferList;\n}\n\nexport interface InnerTransferDragEvent {\n dragEvent?: ThyTransferDragEvent;\n listData?: InnerTransferList;\n}\n\nexport interface InnerTransferList {\n lock?: ThyTransferItem[];\n unlock?: ThyTransferItem[];\n}\n","import { CdkDrag, CdkDragDrop, CdkDropList, CdkDropListGroup, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\nimport {\n Component,\n DoCheck,\n EventEmitter,\n HostBinding,\n Input,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n OnInit,\n Output,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport { ThyList, ThyListItem } from 'ngx-tethys/list';\nimport { ThyDragDropDirective } from 'ngx-tethys/shared';\nimport { InnerTransferDragEvent, ThyTransferDragEvent, ThyTransferItem, ThyTransferSelectEvent } from './transfer.interface';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-transfer-list',\n templateUrl: './transfer-list.component.html',\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [NgIf, CdkDropListGroup, ThyList, CdkDropList, ThyDragDropDirective, NgFor, ThyListItem, CdkDrag, NgClass, NgTemplateOutlet]\n})\nexport class ThyTransferList implements OnInit, DoCheck {\n public lockItems: ThyTransferItem[] = [];\n\n public unlockItems: ThyTransferItem[] = [];\n\n private _diff: IterableDiffer<ThyTransferItem>;\n\n private _lockDiff: IterableDiffer<ThyTransferItem>;\n\n private _unlockDiff: IterableDiffer<ThyTransferItem>;\n\n @Input() title: string;\n\n @Input() items: ThyTransferItem[];\n\n @Input() draggable: boolean;\n\n @Input() canLock: boolean;\n\n @Input() maxLock: number;\n\n @Input() max: number;\n\n @Input() disabled: boolean;\n\n @Input() template: TemplateRef<any>;\n\n @Input('renderContentRef') contentRef: TemplateRef<any>;\n\n @Output() draggableUpdate: EventEmitter<InnerTransferDragEvent> = new EventEmitter<InnerTransferDragEvent>();\n\n @Output() selectItem: EventEmitter<ThyTransferSelectEvent> = new EventEmitter<ThyTransferSelectEvent>();\n\n @Output() unselectItem: EventEmitter<ThyTransferSelectEvent> = new EventEmitter<ThyTransferSelectEvent>();\n\n @HostBinding('class') hostClass = 'thy-transfer-list';\n\n constructor(private differs: IterableDiffers) {}\n\n ngOnInit() {\n this._combineTransferData();\n if (this.canLock) {\n this._lockDiff = this.differs.find(this.lockItems).create();\n this._unlockDiff = this.differs.find(this.unlockItems).create();\n } else {\n this._unlockDiff = this.differs.find(this.unlockItems).create();\n }\n this._diff = this.differs.find(this.items).create();\n }\n\n private _combineTransferData() {\n this.lockItems = [];\n this.unlockItems = [];\n if (this.canLock) {\n (this.items || []).forEach(item => {\n if (item.isLock) {\n this.lockItems.push(item);\n } else {\n this.unlockItems.push(item);\n }\n });\n } else {\n this.unlockItems = this.items;\n }\n }\n\n private _afterChangeItems(changes: IterableChanges<ThyTransferItem>, items: ThyTransferItem[]) {\n // 数据发生变化时,更改order值\n changes.forEachAddedItem(record => {\n record.item.order = record.currentIndex;\n });\n changes.forEachRemovedItem(() => {\n items.forEach((item, index) => {\n item.order = index;\n });\n });\n changes.forEachMovedItem(() => {\n items.forEach((item, index) => {\n item.order = index;\n });\n });\n }\n\n ngDoCheck() {\n const changes = this._diff.diff(this.items);\n if (changes) {\n this._afterChangeItems(changes, this.items);\n this._combineTransferData();\n }\n if (this._lockDiff) {\n const lockChanges = this._lockDiff.diff(this.lockItems);\n if (lockChanges) {\n this._afterChangeItems(lockChanges, this.lockItems);\n }\n }\n const unlockChanges = this._unlockDiff.diff(this.unlockItems);\n if (unlockChanges) {\n this._afterChangeItems(unlockChanges, this.unlockItems);\n }\n }\n\n lockListEnterPredicate = () => {\n return this.lockItems.length < this.maxLock;\n };\n\n unlockListEnterPredicate = (event: CdkDrag<ThyTransferItem>) => {\n return !event.data.isFixed;\n };\n\n onSelectItem = (item: ThyTransferItem) => {\n this.selectItem.emit({ item });\n };\n\n onUnselectItem = (item: ThyTransferItem) => {\n this.unselectItem.emit({ item });\n };\n\n drop(event: CdkDragDrop<ThyTransferItem[]>) {\n if (event.previousContainer === event.container) {\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\n } else {\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\n (event.previousContainer.data || []).forEach(item => {\n item.isLock = event.previousContainer.id === 'lock';\n });\n\n (event.container.data || []).forEach(item => {\n item.isLock = event.container.id === 'lock';\n });\n }\n const dragEvent: ThyTransferDragEvent = {\n model: event.item.data,\n models: event.container.data,\n oldIndex: event.previousIndex,\n newIndex: event.currentIndex\n };\n this.draggableUpdate.emit({\n dragEvent: dragEvent,\n listData: { lock: this.lockItems, unlock: this.unlockItems }\n });\n }\n}\n","<div class=\"thy-transfer-list-header\">\n <span class=\"thy-transfer-list-header-title\"\n >{{ title }} · {{ items?.length }}<span *ngIf=\"max\"> (上限{{ max }}个)</span></span\n >\n</div>\n<ng-container *ngIf=\"!contentRef; else renderContent\">\n <div class=\"thy-transfer-list-body\" cdkDropListGroup [cdkDropListGroupDisabled]=\"!draggable\">\n <ng-container *ngIf=\"canLock\">\n <div class=\"thy-transfer-list-group-name\">锁定 (上限{{ maxLock }}个)</div>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n id=\"lock\"\n [cdkDropListData]=\"lockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"lockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"lockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of lockItems\"\n [ngClass]=\"{ active: item.checked }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n\n <div class=\"thy-transfer-list-group-name\">未锁定</div>\n </ng-container>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n [cdkDropListDisabled]=\"!draggable\"\n id=\"unlock\"\n [cdkDropListData]=\"unlockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"unlockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"unlockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of unlockItems\"\n [ngClass]=\"{ active: item.checked, disabled: disabled && item.direction === 'left' }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n </div>\n</ng-container>\n\n<ng-template #renderContent>\n <div class=\"thy-transfer-list-body\">\n <ng-container\n *ngTemplateOutlet=\"\n contentRef;\n context: {\n $implicit: items,\n onSelectItem: onSelectItem,\n onUnselectItem: onUnselectItem\n }\n \"\n ></ng-container>\n </div>\n</ng-template>\n","import { Component, ContentChild, EventEmitter, HostBinding, Input, OnInit, Output, TemplateRef, ViewEncapsulation } from '@angular/core';\n\nimport {\n Direction,\n InnerTransferDragEvent,\n ThyTransferChangeEvent,\n ThyTransferDragEvent,\n ThyTransferItem,\n ThyTransferSelectEvent,\n TransferDirection\n} from './transfer.interface';\nimport { ThyFlexibleText } from 'ngx-tethys/flexible-text';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgIf, NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ThyTransferList } from './transfer-list.component';\n\n/**\n * 穿梭框组件\n * @name thy-transfer\n * @order 10\n */\n@Component({\n selector: 'thy-transfer',\n templateUrl: './transfer.component.html',\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [ThyTransferList, NgIf, ThyIcon, NgClass, NgTemplateOutlet, ThyFlexibleText]\n})\nexport class ThyTransfer implements OnInit {\n @HostBinding('class') hostClass = 'thy-transfer';\n\n public leftDataSource: ThyTransferItem[] = [];\n\n public rightDataSource: ThyTransferItem[] = [];\n\n public allDataSource: ThyTransferItem[] = [];\n\n public leftTitle: string;\n\n public rightTitle: string;\n\n public rightDraggable = false;\n\n private _autoMove = true;\n\n /**\n * 数据源\n * @type ThyTransferItem[]\n */\n @Input()\n set thyData(value: ThyTransferItem[]) {\n if (value) {\n this.initializeTransferData(value);\n }\n }\n\n @Input() thyrenderLeftTemplateRef: TemplateRef<any>;\n\n @Input() thyrenderRightTemplateRef: TemplateRef<any>;\n\n /**\n * title集合,title[0]为左标题,title[1]为右标题\n * @type string[]\n */\n @Input()\n set thyTitles(value: string[]) {\n this.leftTitle = value[0] || '';\n this.rightTitle = value[1] || '';\n }\n\n /**\n * 右侧列表是否可以锁定\n * @default false\n */\n @Input() thyRightCanLock: boolean;\n\n /**\n * 右侧锁定最大数量\n */\n @Input() thyRightLockMax: number;\n\n /**\n * 右侧选择最大数量\n */\n @Input() thyRightMax: number;\n\n /**\n * 设置是否自动移动\n * @description.en-us Currently not implemented, in order to support the selections move\n * @default true\n */\n @Input()\n set thyAutoMove(value: boolean) {\n this._autoMove = value;\n }\n\n /**\n * 左侧列表是否拖动\n * @default false\n */\n @Input() thyLeftDraggable: boolean;\n\n /**\n * 右侧列表是否拖动\n * @default false\n */\n @Input() thyRightDraggable: boolean;\n\n /**\n * @type EventEmitter<ThyTransferDragEvent>\n */\n @Output() thyDraggableUpdate: EventEmitter<ThyTransferDragEvent> = new EventEmitter<ThyTransferDragEvent>();\n\n /**\n * Transfer变化的回调事件\n * @type EventEmitter<ThyTransferChangeEvent>\n */\n @Output() thyChange: EventEmitter<ThyTransferChangeEvent> = new EventEmitter<ThyTransferChangeEvent>();\n\n /**\n * 设置自定义Item渲染数据模板\n * @type TemplateRef\n */\n @ContentChild('renderTemplate') templateRef: TemplateRef<any>;\n\n /**\n * 设置自定义左侧内容模板\n * @type TemplateRef\n */\n @ContentChild('renderLeftTemplate') leftContentRef: TemplateRef<any>;\n\n /**\n * 设置自定义右侧内容模板\n * @type TemplateRef\n */\n @ContentChild('renderRightTemplate') rightContentRef: TemplateRef<any>;\n\n ngOnInit() {}\n\n initializeTransferData(data: ThyTransferItem[] = []) {\n this.allDataSource = [];\n this.leftDataSource = [];\n this.rightDataSource = [];\n data.forEach(item => {\n this.allDataSource.push(item);\n if (item.direction === TransferDirection.left) {\n this.leftDataSource.push(item);\n }\n if (item.direction === TransferDirection.right) {\n this.rightDataSource.push(item);\n }\n });\n }\n\n onSelect(from: Direction, event: ThyTransferSelectEvent) {\n if (event.item.isFixed) {\n return;\n }\n if (this.thyRightMax <= this.rightDataSource.length && from === TransferDirection.left) {\n return;\n }\n const to = from === TransferDirection.left ? TransferDirection.right : TransferDirection.left;\n event.item.checked = !event.item.checked;\n if (this._autoMove) {\n this.onMove(to);\n }\n }\n\n selectItem(event: ThyTransferSelectEvent) {\n this.onSelect(TransferDirection.left, event);\n }\n\n unselectItem(event: ThyTransferSelectEvent) {\n this.onSelect(TransferDirection.right, event);\n }\n\n private groupListByIsLock(list: ThyTransferItem[] = []) {\n const lock: ThyTransferItem[] = [],\n unlock: ThyTransferItem[] = [];\n list.forEach(item => {\n if (item.isLock) {\n lock.push(item);\n } else {\n unlock.push(item);\n }\n });\n return { lock: lock, unlock: unlock };\n }\n\n onMove(to: Direction) {\n const fromDataSource = to === TransferDirection.right ? this.leftDataSource : this.rightDataSource;\n const toDataSource = to === TransferDirection.right ? this.rightDataSource : this.leftDataSource;\n const selections = fromDataSource.filter(item => item.checked);\n const changeEvent: ThyTransferChangeEvent = {\n from: to === TransferDirection.right ? TransferDirection.left : TransferDirection.right,\n to: to,\n items: [...selections]\n };\n selections.forEach(item => {\n const index = fromDataSource.indexOf(item);\n const removed = fromDataSource.splice(index, 1)[0];\n removed.checked = !removed.checked;\n removed.direction = to;\n toDataSource.push(removed);\n });\n this.thyChange.emit({\n ...changeEvent,\n left: this.groupListByIsLock(this.leftDataSource),\n right: this.groupListByIsLock(this.rightDataSource)\n });\n }\n\n onDragUpdate(direction: Direction, event: InnerTransferDragEvent) {\n const otherDirectionData = direction === TransferDirection.left ? this.rightDataSource : this.leftDataSource;\n const otherListData = this.groupListByIsLock(otherDirectionData);\n this.thyDraggableUpdate.emit({\n ...event.dragEvent,\n left: direction === TransferDirection.left ? event.listData : otherListData,\n right: direction === TransferDirection.right ? event.listData : otherListData\n });\n\n this.rightDataSource =\n direction === TransferDirection.right\n ? [...event.listData.lock, ...event.listData.unlock]\n : [...otherListData.lock, ...otherListData.unlock];\n }\n}\n","<thy-transfer-list\n [items]=\"allDataSource\"\n [title]=\"leftTitle\"\n [draggable]=\"thyLeftDraggable\"\n [disabled]=\"thyRightMax <= rightDataSource.length\"\n [renderContentRef]=\"leftContentRef\"\n (draggableUpdate)=\"onDragUpdate('left', $event)\"\n [template]=\"leftTemplateRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #leftTemplateRef let-item>\n <div (click)=\"onSelect(item.direction === 'left' ? 'left' : 'right', { item: item })\" class=\"list-item-content\">\n <ng-container *ngIf=\"thyLeftDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\" [ngClass]=\"{ 'un-select-item': item.direction !== 'right' }\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <thy-icon *ngIf=\"item.direction === 'right'\" class=\"text-primary item-status\" thyIconName=\"check\"></thy-icon>\n </div>\n </ng-template>\n</thy-transfer-list>\n\n<div class=\"thy-transfer-operation\">\n <div class=\"thy-transfer-operation-body\">\n <thy-icon thyIconName=\"angle-right\" class=\"operation-link\"></thy-icon>\n <br />\n <thy-icon thyIconName=\"angle-left\" class=\"operation-link\"></thy-icon>\n </div>\n</div>\n\n<thy-transfer-list\n [items]=\"rightDataSource\"\n [title]=\"rightTitle\"\n [draggable]=\"thyRightDraggable\"\n (draggableUpdate)=\"onDragUpdate('right', $event)\"\n [canLock]=\"thyRightCanLock\"\n [maxLock]=\"thyRightLockMax\"\n [max]=\"thyRightMax\"\n [template]=\"rightTemplateRef\"\n [renderContentRef]=\"rightContentRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #rightTemplateRef let-item>\n <ng-container *ngIf=\"thyRightDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <a class=\"link-secondary\" *ngIf=\"item.direction === 'right' && !item.isFixed\" (click)=\"onSelect('right', { item: item })\">\n <thy-icon class=\"item-status\" thyIconName=\"close\"></thy-icon>\n </a>\n </ng-template>\n</thy-transfer-list>\n\n<ng-template #thyTransferListItem let-item>\n <ng-template *ngIf=\"templateRef\" [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n <ng-container *ngIf=\"!templateRef\">\n <thy-flexible-text [thyTooltipContent]=\"item.title\">\n {{ item.title }}\n </thy-flexible-text>\n </ng-container>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyTransfer } from './transfer.component';\nimport { ThyTransferList } from './transfer-list.component';\nimport { ThyButtonModule } from 'ngx-tethys/button';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyListModule } from 'ngx-tethys/list';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyFlexibleTextModule } from 'ngx-tethys/flexible-text';\n@NgModule({\n imports: [\n CommonModule,\n ThyButtonModule,\n DragDropModule,\n ThyIconModule,\n ThyListModule,\n ThySharedModule,\n ThyFlexibleTextModule,\n ThyTransfer,\n ThyTransferList\n ],\n exports: [ThyTransfer]\n})\nexport class ThyTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAEY,kBAGX;AAHD,CAAA,UAAY,iBAAiB,EAAA;AACzB,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACnB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,GAG5B,EAAA,CAAA,CAAA;;ACgBD;;AAEG;MAQU,eAAe,CAAA;AAqCxB,IAAA,WAAA,CA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AAqB;YACrB,WAAW;AACX,YAAA,eAAe,aAET,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;AAEZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAZtB,YAAY;YACZ,eAAe;YACf,cAAc;YACd,aAAa;YACb,aAAa;YACb,eAAe;YACf,qBAAqB;YACrB,WAAW;YACX,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIV,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAd7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,cAAc;wBACd,aAAa;wBACb,aAAa;wBACb,eAAe;wBACf,qBAAqB;wBACrB,WAAW;wBACX,eAAe;AAClB,qBAAA;oBACD,OAAO,EAAE,CAAC,WAAW,CAAC;AACzB,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-tethys-transfer.mjs","sources":["../../../src/transfer/transfer.interface.ts","../../../src/transfer/transfer-list.component.ts","../../../src/transfer/transfer-list.component.html","../../../src/transfer/transfer.component.ts","../../../src/transfer/transfer.component.html","../../../src/transfer/transfer.module.ts","../../../src/transfer/ngx-tethys-transfer.ts"],"sourcesContent":["export type Direction = 'left' | 'right';\n\nexport enum TransferDirection {\n left = 'left',\n right = 'right'\n}\n\nexport interface ThyTransferData {\n source: ThyTransferModel;\n target: ThyTransferModel;\n}\n\nexport interface ThyTransferModel {\n title?: string;\n data: Array<any>;\n}\n\n/**\n * @public\n * @order 20\n */\nexport interface ThyTransferItem {\n /**\n * 数据标题\n */\n title: string;\n\n /**\n * 设置方向,可选值 [left,right]\n */\n direction?: Direction;\n\n order?: number;\n\n disabled?: boolean;\n\n /**\n * 选中状态\n */\n checked?: boolean;\n\n isLock?: boolean;\n\n groupId?: string;\n\n isFixed?: boolean;\n\n /**\n * 自定义数据\n */\n [key: string]: any;\n}\n\nexport interface ThyTransferSelectEvent {\n item: ThyTransferItem;\n}\n\nexport interface ThyTransferChangeEvent {\n from?: string;\n to?: string;\n items?: ThyTransferItem[];\n left?: InnerTransferList;\n right?: InnerTransferList;\n}\n\nexport interface ThyTransferDragEvent {\n oldIndex?: number;\n newIndex?: number;\n model?: ThyTransferItem;\n models?: ThyTransferItem[];\n left?: InnerTransferList;\n right?: InnerTransferList;\n}\n\nexport interface InnerTransferDragEvent {\n dragEvent?: ThyTransferDragEvent;\n listData?: InnerTransferList;\n}\n\nexport interface InnerTransferList {\n lock?: ThyTransferItem[];\n unlock?: ThyTransferItem[];\n}\n","import { CdkDrag, CdkDragDrop, CdkDropList, CdkDropListGroup, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\nimport {\n Component,\n DoCheck,\n EventEmitter,\n HostBinding,\n Input,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n OnInit,\n Output,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport { ThyList, ThyListItem } from 'ngx-tethys/list';\nimport { ThyDragDropDirective } from 'ngx-tethys/shared';\nimport { InnerTransferDragEvent, ThyTransferDragEvent, ThyTransferItem, ThyTransferSelectEvent } from './transfer.interface';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-transfer-list',\n templateUrl: './transfer-list.component.html',\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [NgIf, CdkDropListGroup, ThyList, CdkDropList, ThyDragDropDirective, NgFor, ThyListItem, CdkDrag, NgClass, NgTemplateOutlet]\n})\nexport class ThyTransferList implements OnInit, DoCheck {\n public lockItems: ThyTransferItem[] = [];\n\n public unlockItems: ThyTransferItem[] = [];\n\n private _diff: IterableDiffer<ThyTransferItem>;\n\n private _lockDiff: IterableDiffer<ThyTransferItem>;\n\n private _unlockDiff: IterableDiffer<ThyTransferItem>;\n\n @Input() title: string;\n\n @Input() items: ThyTransferItem[];\n\n @Input() draggable: boolean;\n\n @Input() canLock: boolean;\n\n @Input() maxLock: number;\n\n @Input() max: number;\n\n @Input() disabled: boolean;\n\n @Input() template: TemplateRef<any>;\n\n @Input('renderContentRef') contentRef: TemplateRef<any>;\n\n @Output() draggableUpdate: EventEmitter<InnerTransferDragEvent> = new EventEmitter<InnerTransferDragEvent>();\n\n @Output() selectItem: EventEmitter<ThyTransferSelectEvent> = new EventEmitter<ThyTransferSelectEvent>();\n\n @Output() unselectItem: EventEmitter<ThyTransferSelectEvent> = new EventEmitter<ThyTransferSelectEvent>();\n\n @HostBinding('class') hostClass = 'thy-transfer-list';\n\n constructor(private differs: IterableDiffers) {}\n\n ngOnInit() {\n this._combineTransferData();\n if (this.canLock) {\n this._lockDiff = this.differs.find(this.lockItems).create();\n this._unlockDiff = this.differs.find(this.unlockItems).create();\n } else {\n this._unlockDiff = this.differs.find(this.unlockItems).create();\n }\n this._diff = this.differs.find(this.items).create();\n }\n\n private _combineTransferData() {\n this.lockItems = [];\n this.unlockItems = [];\n if (this.canLock) {\n (this.items || []).forEach(item => {\n if (item.isLock) {\n this.lockItems.push(item);\n } else {\n this.unlockItems.push(item);\n }\n });\n } else {\n this.unlockItems = this.items;\n }\n }\n\n private _afterChangeItems(changes: IterableChanges<ThyTransferItem>, items: ThyTransferItem[]) {\n // 数据发生变化时,更改order值\n changes.forEachAddedItem(record => {\n record.item.order = record.currentIndex;\n });\n changes.forEachRemovedItem(() => {\n items.forEach((item, index) => {\n item.order = index;\n });\n });\n changes.forEachMovedItem(() => {\n items.forEach((item, index) => {\n item.order = index;\n });\n });\n }\n\n ngDoCheck() {\n const changes = this._diff.diff(this.items);\n if (changes) {\n this._afterChangeItems(changes, this.items);\n this._combineTransferData();\n }\n if (this._lockDiff) {\n const lockChanges = this._lockDiff.diff(this.lockItems);\n if (lockChanges) {\n this._afterChangeItems(lockChanges, this.lockItems);\n }\n }\n const unlockChanges = this._unlockDiff.diff(this.unlockItems);\n if (unlockChanges) {\n this._afterChangeItems(unlockChanges, this.unlockItems);\n }\n }\n\n lockListEnterPredicate = () => {\n return this.lockItems.length < this.maxLock;\n };\n\n unlockListEnterPredicate = (event: CdkDrag<ThyTransferItem>) => {\n return !event.data.isFixed;\n };\n\n onSelectItem = (item: ThyTransferItem) => {\n this.selectItem.emit({ item });\n };\n\n onUnselectItem = (item: ThyTransferItem) => {\n this.unselectItem.emit({ item });\n };\n\n drop(event: CdkDragDrop<ThyTransferItem[]>) {\n if (event.previousContainer === event.container) {\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\n } else {\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\n (event.previousContainer.data || []).forEach(item => {\n item.isLock = event.previousContainer.id === 'lock';\n });\n\n (event.container.data || []).forEach(item => {\n item.isLock = event.container.id === 'lock';\n });\n }\n const dragEvent: ThyTransferDragEvent = {\n model: event.item.data,\n models: event.container.data,\n oldIndex: event.previousIndex,\n newIndex: event.currentIndex\n };\n this.draggableUpdate.emit({\n dragEvent: dragEvent,\n listData: { lock: this.lockItems, unlock: this.unlockItems }\n });\n }\n}\n","<div class=\"thy-transfer-list-header\">\n <span class=\"thy-transfer-list-header-title\"\n >{{ title }} · {{ items?.length }}<span *ngIf=\"max\"> (上限{{ max }}个)</span></span\n >\n</div>\n<ng-container *ngIf=\"!contentRef; else renderContent\">\n <div class=\"thy-transfer-list-body\" cdkDropListGroup [cdkDropListGroupDisabled]=\"!draggable\">\n <ng-container *ngIf=\"canLock\">\n <div class=\"thy-transfer-list-group-name\">锁定 (上限{{ maxLock }}个)</div>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n id=\"lock\"\n [cdkDropListData]=\"lockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"lockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"lockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of lockItems\"\n [ngClass]=\"{ active: item.checked }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n\n <div class=\"thy-transfer-list-group-name\">未锁定</div>\n </ng-container>\n <thy-list\n class=\"thy-transfer-list-content\"\n cdkDropList\n thyDragDrop\n [cdkDropListDisabled]=\"!draggable\"\n id=\"unlock\"\n [cdkDropListData]=\"unlockItems\"\n (cdkDropListDropped)=\"drop($event)\"\n [cdkDropListEnterPredicate]=\"unlockListEnterPredicate\"\n >\n <div class=\"cdk-drop-list-empty\" *ngIf=\"unlockItems.length === 0\"></div>\n <thy-list-item\n class=\"thy-transfer-list-content-item text-truncate\"\n cdkDrag\n [cdkDragData]=\"item\"\n *ngFor=\"let item of unlockItems\"\n [ngClass]=\"{ active: item.checked, disabled: disabled && item.direction === 'left' }\"\n >\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </thy-list-item>\n </thy-list>\n </div>\n</ng-container>\n\n<ng-template #renderContent>\n <div class=\"thy-transfer-list-body\">\n <ng-container\n *ngTemplateOutlet=\"\n contentRef;\n context: {\n $implicit: items,\n onSelectItem: onSelectItem,\n onUnselectItem: onUnselectItem\n }\n \"\n ></ng-container>\n </div>\n</ng-template>\n","import { Component, ContentChild, EventEmitter, HostBinding, Input, OnInit, Output, TemplateRef, ViewEncapsulation } from '@angular/core';\n\nimport {\n Direction,\n InnerTransferDragEvent,\n ThyTransferChangeEvent,\n ThyTransferDragEvent,\n ThyTransferItem,\n ThyTransferSelectEvent,\n TransferDirection\n} from './transfer.interface';\nimport { ThyFlexibleText } from 'ngx-tethys/flexible-text';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgIf, NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ThyTransferList } from './transfer-list.component';\n\n/**\n * 穿梭框组件\n * @name thy-transfer\n * @order 10\n */\n@Component({\n selector: 'thy-transfer',\n templateUrl: './transfer.component.html',\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [ThyTransferList, NgIf, ThyIcon, NgClass, NgTemplateOutlet, ThyFlexibleText]\n})\nexport class ThyTransfer implements OnInit {\n @HostBinding('class') hostClass = 'thy-transfer';\n\n public leftDataSource: ThyTransferItem[] = [];\n\n public rightDataSource: ThyTransferItem[] = [];\n\n public allDataSource: ThyTransferItem[] = [];\n\n public leftTitle: string;\n\n public rightTitle: string;\n\n public rightDraggable = false;\n\n private _autoMove = true;\n\n /**\n * 数据源\n * @type ThyTransferItem[]\n */\n @Input()\n set thyData(value: ThyTransferItem[]) {\n if (value) {\n this.initializeTransferData(value);\n }\n }\n\n @Input() thyrenderLeftTemplateRef: TemplateRef<any>;\n\n @Input() thyrenderRightTemplateRef: TemplateRef<any>;\n\n /**\n * title集合,title[0]为左标题,title[1]为右标题\n * @type string[]\n */\n @Input()\n set thyTitles(value: string[]) {\n this.leftTitle = value[0] || '';\n this.rightTitle = value[1] || '';\n }\n\n /**\n * 右侧列表是否可以锁定\n * @default false\n */\n @Input() thyRightCanLock: boolean;\n\n /**\n * 右侧锁定最大数量\n */\n @Input() thyRightLockMax: number;\n\n /**\n * 右侧选择最大数量\n */\n @Input() thyRightMax: number;\n\n /**\n * 设置是否自动移动\n * @description.en-us Currently not implemented, in order to support the selections move\n * @default true\n */\n @Input()\n set thyAutoMove(value: boolean) {\n this._autoMove = value;\n }\n\n /**\n * 左侧列表是否拖动\n * @default false\n */\n @Input() thyLeftDraggable: boolean;\n\n /**\n * 右侧列表是否拖动\n * @default false\n */\n @Input() thyRightDraggable: boolean;\n\n /**\n * @type EventEmitter<ThyTransferDragEvent>\n */\n @Output() thyDraggableUpdate: EventEmitter<ThyTransferDragEvent> = new EventEmitter<ThyTransferDragEvent>();\n\n /**\n * Transfer变化的回调事件\n * @type EventEmitter<ThyTransferChangeEvent>\n */\n @Output() thyChange: EventEmitter<ThyTransferChangeEvent> = new EventEmitter<ThyTransferChangeEvent>();\n\n /**\n * 设置自定义Item渲染数据模板\n * @type TemplateRef\n */\n @ContentChild('renderTemplate') templateRef: TemplateRef<any>;\n\n /**\n * 设置自定义左侧内容模板\n * @type TemplateRef\n */\n @ContentChild('renderLeftTemplate') leftContentRef: TemplateRef<any>;\n\n /**\n * 设置自定义右侧内容模板\n * @type TemplateRef\n */\n @ContentChild('renderRightTemplate') rightContentRef: TemplateRef<any>;\n\n ngOnInit() {}\n\n initializeTransferData(data: ThyTransferItem[] = []) {\n this.allDataSource = [];\n this.leftDataSource = [];\n this.rightDataSource = [];\n data.forEach(item => {\n this.allDataSource.push(item);\n if (item.direction === TransferDirection.left) {\n this.leftDataSource.push(item);\n }\n if (item.direction === TransferDirection.right) {\n this.rightDataSource.push(item);\n }\n });\n }\n\n onSelect(from: Direction, event: ThyTransferSelectEvent) {\n if (event.item.isFixed) {\n return;\n }\n if (this.thyRightMax <= this.rightDataSource.length && from === TransferDirection.left) {\n return;\n }\n const to = from === TransferDirection.left ? TransferDirection.right : TransferDirection.left;\n event.item.checked = !event.item.checked;\n if (this._autoMove) {\n this.onMove(to);\n }\n }\n\n selectItem(event: ThyTransferSelectEvent) {\n this.onSelect(TransferDirection.left, event);\n }\n\n unselectItem(event: ThyTransferSelectEvent) {\n this.onSelect(TransferDirection.right, event);\n }\n\n private groupListByIsLock(list: ThyTransferItem[] = []) {\n const lock: ThyTransferItem[] = [],\n unlock: ThyTransferItem[] = [];\n list.forEach(item => {\n if (item.isLock) {\n lock.push(item);\n } else {\n unlock.push(item);\n }\n });\n return { lock: lock, unlock: unlock };\n }\n\n onMove(to: Direction) {\n const fromDataSource = to === TransferDirection.right ? this.leftDataSource : this.rightDataSource;\n const toDataSource = to === TransferDirection.right ? this.rightDataSource : this.leftDataSource;\n const selections = fromDataSource.filter(item => item.checked);\n const changeEvent: ThyTransferChangeEvent = {\n from: to === TransferDirection.right ? TransferDirection.left : TransferDirection.right,\n to: to,\n items: [...selections]\n };\n selections.forEach(item => {\n const index = fromDataSource.indexOf(item);\n const removed = fromDataSource.splice(index, 1)[0];\n removed.checked = !removed.checked;\n removed.direction = to;\n toDataSource.push(removed);\n });\n this.thyChange.emit({\n ...changeEvent,\n left: this.groupListByIsLock(this.leftDataSource),\n right: this.groupListByIsLock(this.rightDataSource)\n });\n }\n\n onDragUpdate(direction: Direction, event: InnerTransferDragEvent) {\n const otherDirectionData = direction === TransferDirection.left ? this.rightDataSource : this.leftDataSource;\n const otherListData = this.groupListByIsLock(otherDirectionData);\n this.thyDraggableUpdate.emit({\n ...event.dragEvent,\n left: direction === TransferDirection.left ? event.listData : otherListData,\n right: direction === TransferDirection.right ? event.listData : otherListData\n });\n\n this.rightDataSource =\n direction === TransferDirection.right\n ? [...event.listData.lock, ...event.listData.unlock]\n : [...otherListData.lock, ...otherListData.unlock];\n }\n}\n","<thy-transfer-list\n [items]=\"allDataSource\"\n [title]=\"leftTitle\"\n [draggable]=\"thyLeftDraggable\"\n [disabled]=\"thyRightMax <= rightDataSource.length\"\n [renderContentRef]=\"leftContentRef\"\n (draggableUpdate)=\"onDragUpdate('left', $event)\"\n [template]=\"leftTemplateRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #leftTemplateRef let-item>\n <div (click)=\"onSelect(item.direction === 'left' ? 'left' : 'right', { item: item })\" class=\"list-item-content\">\n <ng-container *ngIf=\"thyLeftDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\" [ngClass]=\"{ 'un-select-item': item.direction !== 'right' }\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <thy-icon *ngIf=\"item.direction === 'right'\" class=\"text-primary item-status\" thyIconName=\"check\"></thy-icon>\n </div>\n </ng-template>\n</thy-transfer-list>\n\n<div class=\"thy-transfer-operation\">\n <div class=\"thy-transfer-operation-body\">\n <thy-icon thyIconName=\"angle-right\" class=\"operation-link\"></thy-icon>\n <br />\n <thy-icon thyIconName=\"angle-left\" class=\"operation-link\"></thy-icon>\n </div>\n</div>\n\n<thy-transfer-list\n [items]=\"rightDataSource\"\n [title]=\"rightTitle\"\n [draggable]=\"thyRightDraggable\"\n (draggableUpdate)=\"onDragUpdate('right', $event)\"\n [canLock]=\"thyRightCanLock\"\n [maxLock]=\"thyRightLockMax\"\n [max]=\"thyRightMax\"\n [template]=\"rightTemplateRef\"\n [renderContentRef]=\"rightContentRef\"\n (selectItem)=\"selectItem($event)\"\n (unselectItem)=\"unselectItem($event)\"\n>\n <ng-template #rightTemplateRef let-item>\n <ng-container *ngIf=\"thyRightDraggable\">\n <thy-icon thyIconName=\"drag\" class=\"drag-handle\"></thy-icon>\n </ng-container>\n <div class=\"item-name\">\n <ng-template [ngTemplateOutlet]=\"thyTransferListItem\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </div>\n <a class=\"link-secondary\" *ngIf=\"item.direction === 'right' && !item.isFixed\" (click)=\"onSelect('right', { item: item })\">\n <thy-icon class=\"item-status\" thyIconName=\"close\"></thy-icon>\n </a>\n </ng-template>\n</thy-transfer-list>\n\n<ng-template #thyTransferListItem let-item>\n <ng-template *ngIf=\"templateRef\" [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n <ng-container *ngIf=\"!templateRef\">\n <thy-flexible-text [thyTooltipContent]=\"item.title\">\n {{ item.title }}\n </thy-flexible-text>\n </ng-container>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyTransfer } from './transfer.component';\nimport { ThyTransferList } from './transfer-list.component';\nimport { ThyButtonModule } from 'ngx-tethys/button';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyListModule } from 'ngx-tethys/list';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyFlexibleTextModule } from 'ngx-tethys/flexible-text';\n@NgModule({\n imports: [\n CommonModule,\n ThyButtonModule,\n DragDropModule,\n ThyIconModule,\n ThyListModule,\n ThySharedModule,\n ThyFlexibleTextModule,\n ThyTransfer,\n ThyTransferList\n ],\n exports: [ThyTransfer]\n})\nexport class ThyTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAEY,kBAGX;AAHD,CAAA,UAAY,iBAAiB,EAAA;AACzB,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACnB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,GAG5B,EAAA,CAAA,CAAA;;ACgBD;;AAEG;MAQU,eAAe,CAAA;AAqCxB,IAAA,WAAA,CAAoB,OAAwB,EAAA;QAAxB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAiB;QApCrC,IAAS,CAAA,SAAA,GAAsB,EAAE,CAAC;QAElC,IAAW,CAAA,WAAA,GAAsB,EAAE,CAAC;AA0BjC,QAAA,IAAA,CAAA,eAAe,GAAyC,IAAI,YAAY,EAA0B,CAAC;AAEnG,QAAA,IAAA,CAAA,UAAU,GAAyC,IAAI,YAAY,EAA0B,CAAC;AAE9F,QAAA,IAAA,CAAA,YAAY,GAAyC,IAAI,YAAY,EAA0B,CAAC;QAEpF,IAAS,CAAA,SAAA,GAAG,mBAAmB,CAAC;QAkEtD,IAAsB,CAAA,sBAAA,GAAG,MAAK;YAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;AAChD,SAAC,CAAC;AAEF,QA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d,aAAa;wBACb,aAAa;wBACb,eAAe;wBACf,qBAAqB;wBACrB,WAAW;wBACX,eAAe;AAClB,qBAAA;oBACD,OAAO,EAAE,CAAC,WAAW,CAAC;AACzB,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -412,8 +412,8 @@ class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
412
412
|
return result;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
416
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.
|
|
415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelect, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: PLATFORM_ID }, { token: i1.ThyClickDispatcher }, { token: i2.ViewportRuler }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
416
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.1.4", type: ThyTreeSelect, isStandalone: true, selector: "thy-tree-select", inputs: { thyTreeNodes: "thyTreeNodes", thyVirtualScroll: ["thyVirtualScroll", "thyVirtualScroll", coerceBooleanProperty], thyPrimaryKey: "thyPrimaryKey", thyShowKey: "thyShowKey", thyChildCountKey: "thyChildCountKey", thyAllowClear: ["thyAllowClear", "thyAllowClear", coerceBooleanProperty], thyMultiple: ["thyMultiple", "thyMultiple", coerceBooleanProperty], thyDisable: ["thyDisable", "thyDisable", coerceBooleanProperty], thyPlaceholder: "thyPlaceholder", thySize: "thySize", thyEmptyOptionsText: "thyEmptyOptionsText", thyHiddenNodeKey: "thyHiddenNodeKey", thyDisableNodeKey: "thyDisableNodeKey", thyAsyncNode: ["thyAsyncNode", "thyAsyncNode", coerceBooleanProperty], thyShowWholeName: ["thyShowWholeName", "thyShowWholeName", coerceBooleanProperty], thyShowSearch: ["thyShowSearch", "thyShowSearch", coerceBooleanProperty], thyIconType: "thyIconType", thyHiddenNodeFn: "thyHiddenNodeFn", thyDisableNodeFn: "thyDisableNodeFn", thyGetNodeChildren: "thyGetNodeChildren" }, outputs: { thyExpandStatusChange: "thyExpandStatusChange" }, host: { listeners: { "focus": "onFocus($event)", "blur": "onBlur($event)" }, properties: { "attr.tabindex": "tabIndex", "class.thy-select-custom": "this.treeSelectClass", "class.thy-select": "this.isTreeSelect", "class.menu-is-opened": "this.expandTreeSelectOptions", "class.thy-select-custom--multiple": "this.isMulti" } }, providers: [
|
|
417
417
|
{
|
|
418
418
|
provide: NG_VALUE_ACCESSOR,
|
|
419
419
|
useExisting: forwardRef(() => ThyTreeSelect),
|
|
@@ -421,7 +421,7 @@ class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
421
421
|
}
|
|
422
422
|
], queries: [{ propertyName: "thyTreeSelectTriggerDisplayRef", first: true, predicate: ["thyTreeSelectTriggerDisplay"], descendants: true }, { propertyName: "treeNodeTemplateRef", first: true, predicate: ["treeNodeTemplate"], descendants: true }], viewQueries: [{ propertyName: "cdkOverlayOrigin", first: true, predicate: CdkOverlayOrigin, descendants: true, static: true }, { propertyName: "cdkConnectedOverlay", first: true, predicate: CdkConnectedOverlay, descendants: true, static: true }, { propertyName: "customDisplayTemplate", first: true, predicate: ["customDisplayTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\n cdkOverlayOrigin\n thySelectControl\n (click)=\"openSelectPop()\"\n #origin=\"cdkOverlayOrigin\"\n [thyPanelOpened]=\"expandTreeSelectOptions\"\n [thySelectedOptions]=\"selectedValueObject\"\n [thyIsMultiple]=\"thyMultiple\"\n [thyAllowClear]=\"thyAllowClear\"\n [thySize]=\"thySize\"\n [thyPlaceholder]=\"placeholder\"\n [customDisplayTemplate]=\"customDisplayTemplate\"\n [thyShowSearch]=\"thyShowSearch\"\n [thyDisabled]=\"thyDisable\"\n (thyOnBlur)=\"onBlur($event)\"\n (thyOnClear)=\"clearSelectedValue($event)\"\n (thyOnRemove)=\"removeMultipleSelectedNode($event)\"\n (thyOnSearch)=\"searchValue($event)\">\n <ng-template #customDisplayTemplate let-node>\n <ng-container *ngIf=\"thyTreeSelectTriggerDisplayRef; else noneTemplate\">\n <ng-template [ngTemplateOutlet]=\"thyTreeSelectTriggerDisplayRef\" [ngTemplateOutletContext]=\"{ $implicit: node }\"></ng-template>\n </ng-container>\n <ng-template #noneTemplate>\n {{ node[thyShowKey] }}\n </ng-template>\n </ng-template>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayMinWidth]=\"cdkConnectOverlayWidth\"\n [cdkConnectedOverlayOpen]=\"expandTreeSelectOptions\"\n cdkConnectedOverlayTransformOriginOn=\".thy-tree-select-dropdown\"\n [cdkConnectedOverlayPositions]=\"expandedDropdownPositions\"\n (detach)=\"close()\">\n <thy-tree-select-nodes\n thyStopPropagation\n [thyVirtualScroll]=\"thyVirtualScroll\"\n [treeNodes]=\"thyVirtualScroll ? virtualTreeNodes : treeNodes\"\n [@scaleYMotion]=\"'enter'\">\n </thy-tree-select-nodes>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i0.forwardRef(() => CdkOverlayOrigin), selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: i0.forwardRef(() => ThySelectControl), selector: "thy-select-control,[thySelectControl]", inputs: ["thyPanelOpened", "thyIsMultiple", "thyShowSearch", "thySelectedOptions", "thyDisabled", "customDisplayTemplate", "thyAllowClear", "thyPlaceholder", "thySize", "thyMaxTagCount", "thyBorderless", "thyPreset"], outputs: ["thyOnSearch", "thyOnRemove", "thyOnClear", "thyOnBlur"] }, { kind: "directive", type: i0.forwardRef(() => NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => CdkConnectedOverlay), selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "component", type: i0.forwardRef(() => ThyTreeSelectNodes), selector: "thy-tree-select-nodes", inputs: ["treeNodes", "thyVirtualScroll"] }, { kind: "directive", type: i0.forwardRef(() => ThyStopPropagationDirective), selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }], animations: [scaleYMotion] }); }
|
|
423
423
|
}
|
|
424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelect, decorators: [{
|
|
425
425
|
type: Component,
|
|
426
426
|
args: [{ selector: 'thy-tree-select', providers: [
|
|
427
427
|
{
|
|
@@ -628,10 +628,10 @@ class ThyTreeSelectNodes {
|
|
|
628
628
|
tabTrackBy(index, item) {
|
|
629
629
|
return index;
|
|
630
630
|
}
|
|
631
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
632
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
|
631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelectNodes, deps: [{ token: ThyTreeSelect }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
632
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: ThyTreeSelectNodes, isStandalone: true, selector: "thy-tree-select-nodes", inputs: { treeNodes: "treeNodes", thyVirtualScroll: "thyVirtualScroll" }, host: { properties: { "attr.tabindex": "-1", "class": "this.class" } }, ngImport: i0, template: "<div class=\"thy-tree-select-options\" *ngIf=\"nodeList?.length > 0; else emptyPlaceholder\">\n <div class=\"thy-tree-select-node\">\n <ng-container *ngIf=\"!thyVirtualScroll\">\n <ng-container\n *ngFor=\"let node of nodeList\"\n [ngTemplateOutlet]=\"treeSelectNode\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\"></ng-container>\n </ng-container>\n\n <cdk-virtual-scroll-viewport #viewport *ngIf=\"thyVirtualScroll\" [itemSize]=\"defaultItemSize\" [style.height]=\"thyVirtualHeight\">\n <ng-container *cdkVirtualFor=\"let node of nodeList; trackBy: tabTrackBy\">\n <ng-template [ngTemplateOutlet]=\"treeSelectNode\" [ngTemplateOutletContext]=\"{ $implicit: node }\"></ng-template>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n </div>\n</div>\n\n<ng-template #emptyPlaceholder>\n <thy-empty class=\"thy-select-empty-content\" thySize=\"sm\" [thyMessage]=\"parent.thyEmptyOptionsText\"></thy-empty>\n</ng-template>\n\n<ng-template #treeSelectNode let-node>\n <ng-container>\n <a\n class=\"thy-option-item\"\n [ngClass]=\"{ active: treeNodeIsSelected(node) }\"\n [class.disabled]=\"treeNodeIsDisable(node)\"\n [ngStyle]=\"{ 'padding-left.px': 20 * node.level + parent.icons.gap }\"\n (click)=\"selectTreeNode($event, node)\"\n *ngIf=\"!treeNodeIsHidden(node)\">\n <span\n class=\"thy-tree-select-option-icon\"\n [class.invisible]=\"!(node.children?.length > 0 || (node[childCountKey] && node[childCountKey] > 0))\"\n (click)=\"nodeExpandToggle($event, node)\">\n <thy-icon class=\"node-expand-icon\" [thyIconName]=\"treeNodeIsExpand(node) ? parent.icons.expand : parent.icons.collapse\"></thy-icon>\n </span>\n <span class=\"thy-tree-select-option-text\">\n <ng-template\n *ngIf=\"treeNodeTemplateRef; else defaultNodeText\"\n [ngTemplateOutlet]=\"treeNodeTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\"></ng-template>\n <ng-template #defaultNodeText>\n <span thyFlexibleText [thyTooltipContent]=\"node[showKey]\">{{ node[showKey] }}</span>\n </ng-template>\n </span>\n <thy-icon class=\"checked-icon\" *ngIf=\"isMultiple\" thyIconName=\"check\"></thy-icon>\n </a>\n <ng-container *ngIf=\"!thyVirtualScroll && treeNodeIsExpand(node) && node.children?.length > 0\">\n <ng-container [ngTemplateOutlet]=\"treeSelectNode\" *ngFor=\"let node of node.children\" [ngTemplateOutletContext]=\"{ $implicit: node }\">\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: ThyEmpty, selector: "thy-empty", inputs: ["thyMessage", "thyTranslationKey", "thyTranslationValues", "thyEntityName", "thyEntityNameTranslateKey", "thyIconName", "thySize", "thyMarginTop", "thyTopAuto", "thyContainer", "thyImageUrl", "thyImageLoading", "thyImageFetchPriority", "thyDescription"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }] }); }
|
|
633
633
|
}
|
|
634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelectNodes, decorators: [{
|
|
635
635
|
type: Component,
|
|
636
636
|
args: [{ selector: 'thy-tree-select-nodes', standalone: true, imports: [
|
|
637
637
|
NgIf,
|
|
@@ -658,8 +658,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
|
|
|
658
658
|
}] } });
|
|
659
659
|
|
|
660
660
|
class ThyTreeSelectModule {
|
|
661
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
662
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
662
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelectModule, imports: [CommonModule,
|
|
663
663
|
FormsModule,
|
|
664
664
|
OverlayModule,
|
|
665
665
|
ThyListModule,
|
|
@@ -669,7 +669,7 @@ class ThyTreeSelectModule {
|
|
|
669
669
|
ThySharedModule,
|
|
670
670
|
ThyTreeSelect,
|
|
671
671
|
ThyTreeSelectNodes], exports: [ThyTreeSelect, ThyTreeSelectNodes] }); }
|
|
672
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
672
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelectModule, imports: [CommonModule,
|
|
673
673
|
FormsModule,
|
|
674
674
|
OverlayModule,
|
|
675
675
|
ThyListModule,
|
|
@@ -680,7 +680,7 @@ class ThyTreeSelectModule {
|
|
|
680
680
|
ThyTreeSelect,
|
|
681
681
|
ThyTreeSelectNodes] }); }
|
|
682
682
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeSelectModule, decorators: [{
|
|
684
684
|
type: NgModule,
|
|
685
685
|
args: [{
|
|
686
686
|
imports: [
|
|
@@ -300,10 +300,10 @@ class ThyTreeService {
|
|
|
300
300
|
this.statusChange$.complete();
|
|
301
301
|
this.statusChange$ = null;
|
|
302
302
|
}
|
|
303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
304
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
303
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
304
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeService }); }
|
|
305
305
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeService, decorators: [{
|
|
307
307
|
type: Injectable
|
|
308
308
|
}], ctorParameters: () => [] });
|
|
309
309
|
|
|
@@ -450,10 +450,10 @@ class ThyTreeNodeComponent {
|
|
|
450
450
|
this.destroy$.next();
|
|
451
451
|
this.destroy$.complete();
|
|
452
452
|
}
|
|
453
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
454
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.
|
|
453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeNodeComponent, deps: [{ token: THY_TREE_ABSTRACT_TOKEN }, { token: ThyTreeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
454
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.1.4", type: ThyTreeNodeComponent, isStandalone: true, selector: "thy-tree-node", inputs: { node: "node", thyAsync: ["thyAsync", "thyAsync", coerceBooleanProperty], thyMultiple: ["thyMultiple", "thyMultiple", coerceBooleanProperty], thyDraggable: ["thyDraggable", "thyDraggable", coerceBooleanProperty], thyCheckable: ["thyCheckable", "thyCheckable", coerceBooleanProperty], thyClickBehavior: "thyClickBehavior", thyTitleTruncate: ["thyTitleTruncate", "thyTitleTruncate", coerceBooleanProperty], templateRef: "templateRef", emptyChildrenTemplateRef: "emptyChildrenTemplateRef", thyItemSize: ["thyItemSize", "thyItemSize", numberAttribute], thyIndent: ["thyIndent", "thyIndent", numberAttribute] }, outputs: { thyOnClick: "thyOnClick", thyDblClick: "thyDblClick", thyOnExpandChange: "thyOnExpandChange", thyOnCheckboxChange: "thyOnCheckboxChange" }, host: { properties: { "class.thy-tree-node": "this.thyTreeNodeClass", "class": "this.itemClass" } }, queries: [{ propertyName: "childrenTreeTemplateRef", first: true, predicate: ["childrenTree"], descendants: true }], viewQueries: [{ propertyName: "treeNodeWrapper", first: true, predicate: ["treeNodeWrapper"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #treeNodeWrapper\n class=\"thy-tree-node-wrapper\"\n [class.active]=\"root.isSelected(node)\"\n [class.disabled]=\"node.isDisabled\"\n [class.expand]=\"node.children.length\"\n [style.height]=\"thyItemSize + 'px'\"\n (click)=\"clickNode($event)\"\n>\n <span class=\"thy-tree-index\" [style.width.px]=\"node.level * thyIndent\"></span>\n <span class=\"thy-tree-drag-icon\">\n <thy-icon thyIconName=\"drag\"></thy-icon>\n </span>\n <span class=\"thy-tree-expand\" (click)=\"expandNode($event)\">\n <ng-container *ngIf=\"isShowExpand(node)\">\n <ng-container *ngIf=\"(node.children && node.children.length > 0) || thyAsync || emptyChildrenTemplateRef\">\n <thy-icon\n *ngIf=\"root.thyIcons?.expand && root.thyIcons?.collapse; else defaultIcon\"\n class=\"thy-tree-expand-icon\"\n [thyIconName]=\"node.isExpanded ? root.thyIcons.expand : root.thyIcons.collapse\"\n ></thy-icon>\n <ng-template #defaultIcon>\n <thy-icon class=\"thy-tree-expand-icon\" [class.collapse]=\"!node.isExpanded\" thyIconName=\"caret-right-down\"></thy-icon>\n </ng-template>\n </ng-container>\n </ng-container>\n </span>\n\n <span class=\"thy-tree-node-content\" (dblclick)=\"dbClickNode($event)\">\n <input\n *ngIf=\"thyCheckable\"\n type=\"checkbox\"\n class=\"thy-tree-node-check\"\n [class.form-check-indeterminate]=\"node.isChecked === checkState.indeterminate\"\n [class.form-unchecked]=\"node.isChecked === checkState.unchecked\"\n [checked]=\"node.isChecked === checkState.checked\"\n [disabled]=\"node.isDisabled\"\n (click)=\"clickNodeCheck($event)\"\n />\n <ng-container *ngIf=\"!templateRef\">\n <ng-container *ngIf=\"nodeIcon\">\n <span class=\"thy-tree-node-icon\"> <i [ngClass]=\"nodeIcon\" [ngStyle]=\"nodeIconStyle\"></i></span>\n </ng-container>\n <span [title]=\"node.title\" class=\"thy-tree-node-title\" [class.truncate]=\"thyTitleTruncate\"> {{ node.title }}</span>\n </ng-container>\n <ng-container *ngIf=\"templateRef\">\n <ng-template\n [ngTemplateOutlet]=\"templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: node, node: node, origin: node?.origin }\"\n ></ng-template>\n </ng-container>\n </span>\n</div>\n<ng-container *ngIf=\"thyAsync\">\n <thy-loading *ngIf=\"node.isLoading\" [thyDone]=\"!node.isLoading\"></thy-loading>\n</ng-container>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyLoading, selector: "thy-loading", inputs: ["thyDone", "thyTip", "thyIsMask"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
455
455
|
}
|
|
456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeNodeComponent, decorators: [{
|
|
457
457
|
type: Component,
|
|
458
458
|
args: [{ selector: 'thy-tree-node', encapsulation: ViewEncapsulation.None, standalone: true, imports: [NgIf, ThyIcon, NgClass, NgStyle, NgTemplateOutlet, ThyLoading], template: "<div\n #treeNodeWrapper\n class=\"thy-tree-node-wrapper\"\n [class.active]=\"root.isSelected(node)\"\n [class.disabled]=\"node.isDisabled\"\n [class.expand]=\"node.children.length\"\n [style.height]=\"thyItemSize + 'px'\"\n (click)=\"clickNode($event)\"\n>\n <span class=\"thy-tree-index\" [style.width.px]=\"node.level * thyIndent\"></span>\n <span class=\"thy-tree-drag-icon\">\n <thy-icon thyIconName=\"drag\"></thy-icon>\n </span>\n <span class=\"thy-tree-expand\" (click)=\"expandNode($event)\">\n <ng-container *ngIf=\"isShowExpand(node)\">\n <ng-container *ngIf=\"(node.children && node.children.length > 0) || thyAsync || emptyChildrenTemplateRef\">\n <thy-icon\n *ngIf=\"root.thyIcons?.expand && root.thyIcons?.collapse; else defaultIcon\"\n class=\"thy-tree-expand-icon\"\n [thyIconName]=\"node.isExpanded ? root.thyIcons.expand : root.thyIcons.collapse\"\n ></thy-icon>\n <ng-template #defaultIcon>\n <thy-icon class=\"thy-tree-expand-icon\" [class.collapse]=\"!node.isExpanded\" thyIconName=\"caret-right-down\"></thy-icon>\n </ng-template>\n </ng-container>\n </ng-container>\n </span>\n\n <span class=\"thy-tree-node-content\" (dblclick)=\"dbClickNode($event)\">\n <input\n *ngIf=\"thyCheckable\"\n type=\"checkbox\"\n class=\"thy-tree-node-check\"\n [class.form-check-indeterminate]=\"node.isChecked === checkState.indeterminate\"\n [class.form-unchecked]=\"node.isChecked === checkState.unchecked\"\n [checked]=\"node.isChecked === checkState.checked\"\n [disabled]=\"node.isDisabled\"\n (click)=\"clickNodeCheck($event)\"\n />\n <ng-container *ngIf=\"!templateRef\">\n <ng-container *ngIf=\"nodeIcon\">\n <span class=\"thy-tree-node-icon\"> <i [ngClass]=\"nodeIcon\" [ngStyle]=\"nodeIconStyle\"></i></span>\n </ng-container>\n <span [title]=\"node.title\" class=\"thy-tree-node-title\" [class.truncate]=\"thyTitleTruncate\"> {{ node.title }}</span>\n </ng-container>\n <ng-container *ngIf=\"templateRef\">\n <ng-template\n [ngTemplateOutlet]=\"templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: node, node: node, origin: node?.origin }\"\n ></ng-template>\n </ng-container>\n </span>\n</div>\n<ng-container *ngIf=\"thyAsync\">\n <thy-loading *ngIf=\"node.isLoading\" [thyDone]=\"!node.isLoading\"></thy-loading>\n</ng-container>\n" }]
|
|
459
459
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -523,10 +523,10 @@ class ThyTreeNodeDraggablePipe {
|
|
|
523
523
|
return true;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
527
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
526
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeNodeDraggablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
527
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeNodeDraggablePipe, isStandalone: true, name: "treeNodeDraggable" }); }
|
|
528
528
|
}
|
|
529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeNodeDraggablePipe, decorators: [{
|
|
530
530
|
type: Pipe,
|
|
531
531
|
args: [{
|
|
532
532
|
name: 'treeNodeDraggable',
|
|
@@ -1039,8 +1039,8 @@ class ThyTree {
|
|
|
1039
1039
|
this.destroy$.next();
|
|
1040
1040
|
this.destroy$.complete();
|
|
1041
1041
|
}
|
|
1042
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1043
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.
|
|
1042
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTree, deps: [{ token: ThyTreeService }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1043
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.1.4", type: ThyTree, isStandalone: true, selector: "thy-tree", inputs: { thyNodes: "thyNodes", thyShowExpand: "thyShowExpand", thyMultiple: ["thyMultiple", "thyMultiple", coerceBooleanProperty], thyDraggable: ["thyDraggable", "thyDraggable", coerceBooleanProperty], thyCheckable: ["thyCheckable", "thyCheckable", coerceBooleanProperty], thyClickBehavior: "thyClickBehavior", thyCheckStateResolve: "thyCheckStateResolve", thyAsync: ["thyAsync", "thyAsync", coerceBooleanProperty], thyType: "thyType", thyIcons: "thyIcons", thySize: "thySize", thyVirtualScroll: ["thyVirtualScroll", "thyVirtualScroll", coerceBooleanProperty], thyItemSize: ["thyItemSize", "thyItemSize", numberAttribute], thyTitleTruncate: ["thyTitleTruncate", "thyTitleTruncate", coerceBooleanProperty], thySelectedKeys: "thySelectedKeys", thyExpandedKeys: "thyExpandedKeys", thyExpandAll: ["thyExpandAll", "thyExpandAll", coerceBooleanProperty], thyIndent: ["thyIndent", "thyIndent", numberAttribute], thyBeforeDragStart: "thyBeforeDragStart", thyBeforeDragDrop: "thyBeforeDragDrop" }, outputs: { viewport: "viewport", thyOnClick: "thyOnClick", thyOnCheckboxChange: "thyOnCheckboxChange", thyOnExpandChange: "thyOnExpandChange", thyOnDragDrop: "thyOnDragDrop", thyDblClick: "thyDblClick" }, host: { properties: { "class.thy-multiple-selection-list": "this.thyMultiple", "class.thy-tree-draggable": "this.thyDraggable", "class.thy-virtual-scrolling-tree": "this.thyVirtualScroll", "class.thy-tree": "this.thyTreeClass", "class.thy-tree-dragging": "this.dragging" } }, providers: [
|
|
1044
1044
|
{
|
|
1045
1045
|
provide: NG_VALUE_ACCESSOR,
|
|
1046
1046
|
useExisting: forwardRef(() => ThyTree),
|
|
@@ -1051,9 +1051,9 @@ class ThyTree {
|
|
|
1051
1051
|
useExisting: forwardRef(() => ThyTree)
|
|
1052
1052
|
},
|
|
1053
1053
|
ThyTreeService
|
|
1054
|
-
], queries: [{ propertyName: "templateRef", first: true, predicate: ["treeNodeTemplate"], descendants: true, static: true }, { propertyName: "emptyChildrenTemplate", first: true, predicate: ["emptyChildrenTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "viewport", first: true, predicate: ["viewport"], descendants: true }, { propertyName: "cdkDrags", predicate: CdkDrag, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<cdk-virtual-scroll-viewport\n #viewport\n *ngIf=\"thyVirtualScroll\"\n [itemSize]=\"thyItemSize\"\n [style.height]=\"'100%'\"\n cdkDropList\n [cdkDropListAutoScrollStep]=\"6\"\n [cdkDropListData]=\"flattenTreeNodes\"\n [cdkDropListSortingDisabled]=\"true\"\n (cdkDropListDropped)=\"onListDropped($event)\"\n >\n <div class=\"virtual-trees-container\">\n <thy-tree-node\n *cdkVirtualFor=\"let node of flattenTreeNodes; trackBy: trackByFn; let i = index\"\n cdkDrag\n [cdkDragData]=\"node\"\n [cdkDragDisabled]=\"!thyDraggable || !(node | treeNodeDraggable : thyBeforeDragStart)\"\n (cdkDragStarted)=\"onDragStarted($event)\"\n (cdkDragEnded)=\"onDragEnded($event)\"\n (cdkDragMoved)=\"emitDragMoved($event)\"\n [node]=\"node\"\n [templateRef]=\"templateRef\"\n [emptyChildrenTemplateRef]=\"emptyChildrenTemplate\"\n [thyAsync]=\"thyAsync\"\n [thyDraggable]=\"thyDraggable\"\n [thyCheckable]=\"thyCheckable\"\n [thyMultiple]=\"thyMultiple\"\n [thyClickBehavior]=\"thyClickBehavior\"\n [thyTitleTruncate]=\"thyTitleTruncate\"\n [thyItemSize]=\"thyItemSize\"\n [thyIndent]=\"thyIndent\"\n (thyOnClick)=\"thyOnClick.emit($event)\"\n (thyDblClick)=\"thyDblClick.emit($event)\"\n (thyOnExpandChange)=\"eventTriggerChanged($event)\"\n (thyOnCheckboxChange)=\"eventTriggerChanged($event)\">\n </thy-tree-node>\n </div>\n</cdk-virtual-scroll-viewport>\n\n<div\n *ngIf=\"!thyVirtualScroll\"\n cdkDropList\n [cdkDropListAutoScrollStep]=\"6\"\n [cdkDropListData]=\"flattenTreeNodes\"\n [cdkDropListSortingDisabled]=\"true\"\n (cdkDropListDropped)=\"onListDropped($event)\">\n <thy-tree-node\n *ngFor=\"let node of flattenTreeNodes; trackBy: trackByFn; let i = index\"\n cdkDrag\n [cdkDragData]=\"node\"\n [cdkDragDisabled]=\"!thyDraggable || !(node | treeNodeDraggable : thyBeforeDragStart)\"\n (cdkDragStarted)=\"onDragStarted($event)\"\n (cdkDragEnded)=\"onDragEnded($event)\"\n (cdkDragMoved)=\"emitDragMoved($event)\"\n [node]=\"node\"\n [templateRef]=\"templateRef\"\n [emptyChildrenTemplateRef]=\"emptyChildrenTemplate\"\n [thyAsync]=\"thyAsync\"\n [thyDraggable]=\"thyDraggable\"\n [thyCheckable]=\"thyCheckable\"\n [thyMultiple]=\"thyMultiple\"\n [thyTitleTruncate]=\"thyTitleTruncate\"\n [thyItemSize]=\"thyItemSize\"\n [thyClickBehavior]=\"thyClickBehavior\"\n [thyIndent]=\"thyIndent\"\n (thyOnClick)=\"thyOnClick.emit($event)\"\n (thyDblClick)=\"thyDblClick.emit($event)\"\n (thyOnExpandChange)=\"eventTriggerChanged($event)\"\n (thyOnCheckboxChange)=\"thyOnCheckboxChange.emit($event)\">\n </thy-tree-node>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "component", type: CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: ThyTreeNodeComponent, selector: "thy-tree-node", inputs: ["node", "thyAsync", "thyMultiple", "thyDraggable", "thyCheckable", "thyClickBehavior", "thyTitleTruncate", "templateRef", "emptyChildrenTemplateRef", "thyItemSize", "thyIndent"], outputs: ["thyOnClick", "thyDblClick", "thyOnExpandChange", "thyOnCheckboxChange"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: ThyTreeNodeDraggablePipe, name: "treeNodeDraggable" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1054
|
+
], queries: [{ propertyName: "templateRef", first: true, predicate: ["treeNodeTemplate"], descendants: true, static: true }, { propertyName: "emptyChildrenTemplate", first: true, predicate: ["emptyChildrenTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "viewport", first: true, predicate: ["viewport"], descendants: true }, { propertyName: "cdkDrags", predicate: CdkDrag, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<cdk-virtual-scroll-viewport\n #viewport\n *ngIf=\"thyVirtualScroll\"\n [itemSize]=\"thyItemSize\"\n [style.height]=\"'100%'\"\n cdkDropList\n [cdkDropListAutoScrollStep]=\"6\"\n [cdkDropListData]=\"flattenTreeNodes\"\n [cdkDropListSortingDisabled]=\"true\"\n (cdkDropListDropped)=\"onListDropped($event)\"\n >\n <div class=\"virtual-trees-container\">\n <thy-tree-node\n *cdkVirtualFor=\"let node of flattenTreeNodes; trackBy: trackByFn; let i = index\"\n cdkDrag\n [cdkDragData]=\"node\"\n [cdkDragDisabled]=\"!thyDraggable || !(node | treeNodeDraggable : thyBeforeDragStart)\"\n (cdkDragStarted)=\"onDragStarted($event)\"\n (cdkDragEnded)=\"onDragEnded($event)\"\n (cdkDragMoved)=\"emitDragMoved($event)\"\n [node]=\"node\"\n [templateRef]=\"templateRef\"\n [emptyChildrenTemplateRef]=\"emptyChildrenTemplate\"\n [thyAsync]=\"thyAsync\"\n [thyDraggable]=\"thyDraggable\"\n [thyCheckable]=\"thyCheckable\"\n [thyMultiple]=\"thyMultiple\"\n [thyClickBehavior]=\"thyClickBehavior\"\n [thyTitleTruncate]=\"thyTitleTruncate\"\n [thyItemSize]=\"thyItemSize\"\n [thyIndent]=\"thyIndent\"\n (thyOnClick)=\"thyOnClick.emit($event)\"\n (thyDblClick)=\"thyDblClick.emit($event)\"\n (thyOnExpandChange)=\"eventTriggerChanged($event)\"\n (thyOnCheckboxChange)=\"eventTriggerChanged($event)\">\n </thy-tree-node>\n </div>\n</cdk-virtual-scroll-viewport>\n\n<div\n *ngIf=\"!thyVirtualScroll\"\n cdkDropList\n [cdkDropListAutoScrollStep]=\"6\"\n [cdkDropListData]=\"flattenTreeNodes\"\n [cdkDropListSortingDisabled]=\"true\"\n (cdkDropListDropped)=\"onListDropped($event)\">\n <thy-tree-node\n *ngFor=\"let node of flattenTreeNodes; trackBy: trackByFn; let i = index\"\n cdkDrag\n [cdkDragData]=\"node\"\n [cdkDragDisabled]=\"!thyDraggable || !(node | treeNodeDraggable : thyBeforeDragStart)\"\n (cdkDragStarted)=\"onDragStarted($event)\"\n (cdkDragEnded)=\"onDragEnded($event)\"\n (cdkDragMoved)=\"emitDragMoved($event)\"\n [node]=\"node\"\n [templateRef]=\"templateRef\"\n [emptyChildrenTemplateRef]=\"emptyChildrenTemplate\"\n [thyAsync]=\"thyAsync\"\n [thyDraggable]=\"thyDraggable\"\n [thyCheckable]=\"thyCheckable\"\n [thyMultiple]=\"thyMultiple\"\n [thyTitleTruncate]=\"thyTitleTruncate\"\n [thyItemSize]=\"thyItemSize\"\n [thyClickBehavior]=\"thyClickBehavior\"\n [thyIndent]=\"thyIndent\"\n (thyOnClick)=\"thyOnClick.emit($event)\"\n (thyDblClick)=\"thyDblClick.emit($event)\"\n (thyOnExpandChange)=\"eventTriggerChanged($event)\"\n (thyOnCheckboxChange)=\"thyOnCheckboxChange.emit($event)\">\n </thy-tree-node>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "component", type: CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: ThyTreeNodeComponent, selector: "thy-tree-node", inputs: ["node", "thyAsync", "thyMultiple", "thyDraggable", "thyCheckable", "thyClickBehavior", "thyTitleTruncate", "templateRef", "emptyChildrenTemplateRef", "thyItemSize", "thyIndent"], outputs: ["thyOnClick", "thyDblClick", "thyOnExpandChange", "thyOnCheckboxChange"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: ThyTreeNodeDraggablePipe, name: "treeNodeDraggable" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1055
1055
|
}
|
|
1056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTree, decorators: [{
|
|
1057
1057
|
type: Component,
|
|
1058
1058
|
args: [{ selector: 'thy-tree', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1059
1059
|
{
|
|
@@ -1171,8 +1171,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
|
|
|
1171
1171
|
}] } });
|
|
1172
1172
|
|
|
1173
1173
|
class ThyTreeModule {
|
|
1174
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1175
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
1174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1175
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeModule, imports: [DragDropModule,
|
|
1176
1176
|
CommonModule,
|
|
1177
1177
|
ThyInputModule,
|
|
1178
1178
|
ThyButtonModule,
|
|
@@ -1187,7 +1187,7 @@ class ThyTreeModule {
|
|
|
1187
1187
|
ThyTree,
|
|
1188
1188
|
ThyTreeNodeComponent,
|
|
1189
1189
|
ThyTreeNodeDraggablePipe], exports: [ThyTree, ThyTreeNodeComponent] }); }
|
|
1190
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
1190
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeModule, providers: [ThyTreeService], imports: [DragDropModule,
|
|
1191
1191
|
CommonModule,
|
|
1192
1192
|
ThyInputModule,
|
|
1193
1193
|
ThyButtonModule,
|
|
@@ -1202,7 +1202,7 @@ class ThyTreeModule {
|
|
|
1202
1202
|
ThyTree,
|
|
1203
1203
|
ThyTreeNodeComponent] }); }
|
|
1204
1204
|
}
|
|
1205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ThyTreeModule, decorators: [{
|
|
1206
1206
|
type: NgModule,
|
|
1207
1207
|
args: [{
|
|
1208
1208
|
imports: [
|