ngx-tethys 19.0.16 → 19.1.0-next.1
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 +31 -11
- package/README.md +0 -1
- package/action/action.component.d.ts +14 -23
- package/action/actions.component.d.ts +5 -7
- package/affix/affix.component.d.ts +9 -13
- package/alert/alert.component.d.ts +1 -1
- package/anchor/anchor-link.component.d.ts +8 -8
- package/anchor/anchor.component.d.ts +15 -21
- package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
- package/autocomplete/autocomplete.component.d.ts +10 -17
- package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
- package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
- package/avatar/avatar.component.d.ts +25 -39
- package/back-top/back-top.component.d.ts +9 -12
- package/badge/badge.component.d.ts +19 -59
- package/breadcrumb/breadcrumb.component.d.ts +15 -20
- package/button/button-group.component.d.ts +5 -12
- package/button/button-icon.component.d.ts +14 -27
- package/button/button.component.d.ts +17 -26
- package/calendar/calendar-header.component.d.ts +9 -8
- package/calendar/calendar.component.d.ts +16 -16
- package/card/card.component.d.ts +5 -11
- package/card/content.component.d.ts +3 -8
- package/card/header.component.d.ts +7 -8
- package/carousel/carousel.component.d.ts +22 -27
- package/cascader/cascader-li.component.d.ts +13 -21
- package/cascader/cascader-search-option.component.d.ts +8 -16
- package/cascader/cascader.component.d.ts +58 -80
- package/checkbox/checkbox.component.d.ts +2 -5
- package/collapse/collapse-item.component.d.ts +12 -19
- package/collapse/collapse.component.d.ts +6 -12
- package/collapse/collapse.token.d.ts +3 -3
- package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
- package/color-picker/color-picker-panel.component.d.ts +7 -11
- package/color-picker/color-picker.component.d.ts +19 -35
- package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
- package/color-picker/parts/hue/hue.component.d.ts +6 -6
- package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
- package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
- package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
- package/comment/comment.component.d.ts +4 -5
- package/copy/copy.directive.d.ts +8 -9
- package/date-picker/abstract-picker.component.d.ts +8 -7
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-range/date-range.component.d.ts +2 -2
- package/dialog/body/dialog-body.component.d.ts +2 -6
- package/dialog/confirm/confirm.component.d.ts +2 -2
- package/dialog/footer/dialog-footer.component.d.ts +6 -9
- package/dialog/header/dialog-header.component.d.ts +9 -11
- package/divider/divider.component.d.ts +12 -16
- package/dot/dot.component.d.ts +5 -13
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag.directive.d.ts +2 -1
- package/drag-drop/drop-container.directive.d.ts +2 -1
- package/dropdown/dropdown-active.directive.d.ts +4 -5
- package/dropdown/dropdown-menu-item.directive.d.ts +7 -14
- package/dropdown/dropdown-menu.component.d.ts +6 -12
- package/dropdown/dropdown-submenu.component.d.ts +2 -4
- package/dropdown/dropdown.directive.d.ts +14 -24
- package/empty/empty.component.d.ts +21 -27
- package/fesm2022/ngx-tethys-action.mjs +63 -101
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +40 -41
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +91 -118
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +117 -162
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +33 -46
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +104 -208
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-button.mjs +225 -322
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +85 -87
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +72 -77
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +83 -99
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +313 -468
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +66 -71
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +16 -10
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +25 -28
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +81 -82
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +49 -58
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +45 -68
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +155 -203
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +107 -95
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +67 -86
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +161 -200
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +161 -158
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +25 -25
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-icon.mjs +44 -59
- package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +40 -36
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +101 -114
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +268 -271
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +52 -74
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +106 -179
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +169 -201
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +230 -294
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +67 -70
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +194 -246
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +99 -113
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +60 -76
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-rate.mjs +115 -157
- package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
- package/fesm2022/ngx-tethys-resizable.mjs +111 -157
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +46 -28
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-segment.mjs +84 -103
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slide.mjs +37 -56
- package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +75 -108
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +25 -51
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +114 -151
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +74 -107
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +52 -66
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +80 -140
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +69 -87
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +42 -64
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +104 -129
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +98 -119
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +2 -4
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree.mjs +281 -401
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +36 -33
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +93 -132
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +53 -99
- package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +36 -40
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/flexible-text/flexible-text.component.d.ts +9 -15
- package/form/form-group-error/form-group-error.component.d.ts +2 -3
- package/form/form-group-label.directive.d.ts +2 -1
- package/form/form-group.component.d.ts +17 -24
- package/form/form-submit.directive.d.ts +2 -2
- package/form/form.directive.d.ts +6 -8
- package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
- package/form/validator/confirm-validator.directive.d.ts +2 -2
- package/form/validator/unique-validator.directive.d.ts +2 -2
- package/fullscreen/fullscreen.component.d.ts +7 -7
- package/grid/flex.d.ts +13 -20
- package/grid/thy-col.directive.d.ts +6 -9
- package/grid/thy-grid-item.component.d.ts +3 -4
- package/grid/thy-grid.component.d.ts +11 -12
- package/grid/thy-row.directive.d.ts +11 -14
- package/icon/icon.component.d.ts +10 -17
- package/image/image.directive.d.ts +10 -12
- package/image/image.token.d.ts +5 -5
- package/input/input-count.component.d.ts +4 -5
- package/input/input-group.component.d.ts +20 -20
- package/input/input-search.component.d.ts +15 -20
- package/input/input.component.d.ts +20 -21
- package/input/input.directive.d.ts +4 -6
- package/input-number/input-number.component.d.ts +21 -29
- package/layout/header.component.d.ts +4 -9
- package/layout/sidebar-header.component.d.ts +2 -1
- package/layout/sidebar.component.d.ts +8 -7
- package/list/list.component.d.ts +2 -1
- package/list/selection/selection-list.d.ts +4 -3
- package/loading/loading.component.d.ts +4 -10
- package/mention/mention.directive.d.ts +6 -7
- package/mention/suggestions/suggestions.component.d.ts +8 -9
- package/menu/group/menu-group.component.d.ts +16 -33
- package/menu/item/action/menu-item-action.component.d.ts +7 -8
- package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
- package/menu/item/menu-item.component.d.ts +4 -4
- package/menu/item/name/menu-item-name.component.d.ts +2 -3
- package/menu/menu.component.d.ts +3 -7
- package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
- package/nav/icon-nav/icon-nav.component.d.ts +3 -8
- package/nav/nav-ink-bar.directive.d.ts +4 -6
- package/nav/nav-item.directive.d.ts +7 -10
- package/nav/nav.component.d.ts +20 -48
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +48 -109
- package/popover/header/popover-header.component.d.ts +7 -6
- package/popover/popover.directive.d.ts +11 -18
- package/progress/progress-circle.component.d.ts +35 -26
- package/progress/progress-strip.component.d.ts +10 -14
- package/progress/progress.component.d.ts +16 -26
- package/property/examples/single/single.component.scss +6 -0
- package/property/properties.component.d.ts +6 -15
- package/property/property-item.component.d.ts +22 -34
- package/property/styles/properties.scss +124 -52
- package/property-operation/property-operation.component.d.ts +6 -5
- package/radio/button/radio-button.component.d.ts +2 -2
- package/radio/group/radio-group.component.d.ts +13 -16
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.token.d.ts +2 -2
- package/rate/rate-item.component.d.ts +8 -10
- package/rate/rate.component.d.ts +20 -30
- package/resizable/resizable.directive.d.ts +18 -36
- package/resizable/resize-handle.component.d.ts +6 -6
- package/resizable/resize-handles.component.d.ts +5 -8
- package/result/result.component.d.ts +9 -10
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +9 -14
- package/segment/segment.component.d.ts +11 -14
- package/segment/segment.token.d.ts +4 -3
- package/select/custom-select/custom-select.component.d.ts +11 -10
- package/select/native-select/native-select.component.d.ts +2 -1
- package/shared/base-form-check.component.d.ts +3 -2
- package/shared/directives/thy-autofocus.directive.d.ts +3 -2
- package/shared/directives/thy-scroll.directive.d.ts +2 -1
- package/shared/directives/thy-show.d.ts +2 -1
- package/shared/option/group/option-group.component.d.ts +2 -1
- package/shared/option/list-option/list-option.component.d.ts +2 -7
- package/shared/option/option.component.d.ts +2 -1
- package/shared/select/select-control/select-control.component.d.ts +7 -6
- package/skeleton/skeleton-circle.component.d.ts +16 -19
- package/skeleton/skeleton-rectangle.component.d.ts +20 -23
- package/skeleton/skeleton.component.d.ts +5 -6
- package/skeleton/stylized/bullet-list.component.d.ts +11 -13
- package/skeleton/stylized/list.component.d.ts +10 -12
- package/skeleton/stylized/paragraph.component.d.ts +12 -14
- package/slide/slide-body/slide-body-section.component.d.ts +2 -5
- package/slide/slide-header/slide-header.component.d.ts +6 -9
- package/slider/slider.component.d.ts +17 -24
- package/space/space.component.d.ts +10 -16
- package/statistic/statistic.component.d.ts +35 -40
- package/stepper/step-header.component.d.ts +6 -10
- package/stepper/step.component.d.ts +6 -6
- package/stepper/stepper.component.d.ts +15 -20
- package/strength/strength.component.d.ts +8 -13
- package/switch/switch.component.d.ts +24 -35
- package/table/table-column.component.d.ts +6 -5
- package/table/table-skeleton.component.d.ts +3 -10
- package/table/table.component.d.ts +11 -10
- package/tabs/tab-content.component.d.ts +4 -4
- package/tabs/tab.component.d.ts +4 -5
- package/tabs/tabs.component.d.ts +13 -15
- package/tag/tag.component.d.ts +10 -16
- package/time-picker/time-picker-panel.component.d.ts +3 -2
- package/time-picker/time-picker.component.d.ts +6 -5
- package/timeline/timeline-item.component.d.ts +9 -13
- package/timeline/timeline.component.d.ts +13 -17
- package/tooltip/tooltip.directive.d.ts +3 -2
- package/transfer/transfer-list.component.d.ts +15 -15
- package/transfer/transfer.component.d.ts +20 -23
- package/tree/tree-abstract.d.ts +5 -5
- package/tree/tree-node.component.d.ts +24 -46
- package/tree/tree.class.d.ts +4 -4
- package/tree/tree.component.d.ts +47 -74
- package/tree/tree.service.d.ts +3 -4
- package/tree-select/tree-select.component.d.ts +10 -9
- package/typography/bg-color.directive.d.ts +3 -3
- package/typography/text/text.component.d.ts +2 -2
- package/typography/text-color.directive.d.ts +3 -3
- package/upload/file-drop.directive.d.ts +9 -11
- package/upload/file-select-base.d.ts +6 -10
- package/upload/file-select.component.d.ts +10 -20
- package/util/helpers/helpers.d.ts +2 -1
- package/vote/vote.component.d.ts +13 -32
- package/watermark/watermark.directive.d.ts +7 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-dropdown.mjs","sources":["../../../src/dropdown/dropdown-menu.component.ts","../../../src/dropdown/dropdown.directive.ts","../../../src/dropdown/dropdown-menu-item.directive.ts","../../../src/dropdown/dropdown-submenu.component.ts","../../../src/dropdown/dropdown-active.directive.ts","../../../src/dropdown/module.ts","../../../src/dropdown/ngx-tethys-dropdown.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n HostBinding,\n Input,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { InputCssPixel } from 'ngx-tethys/core';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyDropdownMenuDividerType = 'default' | 'crossing' | '';\n\nexport const THY_DROPDOWN_DEFAULT_WIDTH = '240px';\n\n/**\n * @private\n */\n@Directive()\nexport class ThyDropdownAbstractMenu {\n @HostBinding('class.thy-dropdown-menu') addDropdownMenuClass = true;\n}\n\n/**\n * 下拉菜单组件\n * @name thy-dropdown-menu\n * @order 20\n */\n@Component({\n selector: 'thy-dropdown-menu',\n template: `\n @if (thyImmediateRender) {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n }\n <ng-template #dropdownMenu>\n <div class=\"thy-dropdown-menu\" [style.width]=\"thyWidth\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </ng-template>\n <ng-template #content>\n <ng-content></ng-content>\n </ng-template>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.thy-dropdown-menu]': 'thyImmediateRender',\n '[style.width]': \"thyImmediateRender ? thyWidth : ''\"\n },\n imports: [NgTemplateOutlet]\n})\nexport class ThyDropdownMenuComponent {\n get template() {\n return this.templateRef;\n }\n\n @ViewChild('dropdownMenu', { static: true }) templateRef!: TemplateRef<SafeAny>;\n\n /**\n * 设置菜单宽度\n * @default 240px\n */\n @Input()\n @InputCssPixel()\n thyWidth: number | string = THY_DROPDOWN_DEFAULT_WIDTH;\n\n /**\n * 是否直接渲染 dropdown-menu 中的元素\n * @default false\n */\n @Input({ transform: coerceBooleanProperty }) thyImmediateRender = false;\n\n constructor() {}\n}\n\n/**\n * 下拉菜单分组\n * @name thy-dropdown-menu-group\n * @order 50\n */\n@Component({\n selector: 'thy-dropdown-menu-group',\n template: `\n <div class=\"dropdown-menu-group-title\">{{ title }}</div>\n <ng-content></ng-content>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'dropdown-menu-group'\n }\n})\nexport class ThyDropdownMenuGroup {\n title: string;\n\n /**\n * 分组标题\n */\n @Input()\n set thyTitle(value: string) {\n this.title = value;\n }\n\n constructor() {}\n}\n\n/**\n * 下拉菜单分割线\n * @name thy-dropdown-menu-divider\n */\n@Component({\n selector: 'thy-dropdown-menu-divider',\n template: ` <!-- <div class=\"dropdown-menu-divider-title\">{{ title }}</div> --> `,\n host: {\n class: 'dropdown-menu-divider'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ThyDropdownMenuDivider {\n constructor() {}\n}\n","import { FocusMonitor } from '@angular/cdk/a11y';\nimport { ComponentType, OverlayRef } from '@angular/cdk/overlay';\nimport { Platform } from '@angular/cdk/platform';\nimport {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnInit,\n Output,\n TemplateRef,\n ViewContainerRef,\n numberAttribute,\n inject\n} from '@angular/core';\nimport { ComponentTypeOrTemplateRef, ThyOverlayDirectiveBase, ThyOverlayTrigger, ThyPlacement } from 'ngx-tethys/core';\nimport { ThyPopover, ThyPopoverConfig, ThyPopoverRef } from 'ngx-tethys/popover';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { coerceArray, coerceBooleanProperty, helpers, isFunction, isTemplateRef } from 'ngx-tethys/util';\nimport { ThyDropdownMenuComponent } from './dropdown-menu.component';\n\nexport type ThyDropdownTrigger = 'click' | 'hover';\n\ntype ThyDropdownMenu = ThyDropdownMenuComponent | TemplateRef<SafeAny> | ComponentType<SafeAny>;\n\n/**\n * thyDropdown 触发下拉菜单指令\n * @name thyDropdown\n * @order 10\n */\n@Directive({\n selector: `[thyDropdown]`,\n host: {\n class: 'thy-dropdown'\n }\n})\nexport class ThyDropdownDirective extends ThyOverlayDirectiveBase implements OnInit {\n private viewContainerRef = inject(ViewContainerRef);\n private popover = inject(ThyPopover);\n\n menu!: ThyDropdownMenu;\n\n private popoverRef: ThyPopoverRef<unknown>;\n\n private innerPanelClassList: string[] = ['thy-dropdown-pane'];\n\n popoverOpened = false;\n\n /**\n * Dropdown 下拉菜单,支持 thy-dropdown-menu 组件、TemplateRef 和自定义菜单组件\n */\n @Input() set thyDropdownMenu(menu: ThyDropdownMenu) {\n this.menu = menu;\n }\n\n /**\n * Dropdown 下拉菜单组件,和 thyDropdownMenu 参与相同,快捷传下拉菜单组件参数\n */\n @Input() set thyDropdown(menu: ThyDropdownMenu) {\n this.menu = menu;\n }\n\n /**\n * 下拉菜单触发方式\n * @type 'hover' | 'focus' | 'click' | string\n * @default click\n */\n @Input() set thyTrigger(value: ThyOverlayTrigger | string) {\n this.trigger = value as ThyOverlayTrigger;\n }\n\n /**\n * 打开延迟毫秒\n * @default 100\n */\n @Input({ transform: numberAttribute })\n set thyShowDelay(value: number) {\n this.showDelay = value;\n }\n\n /**\n * 关闭延迟毫秒\n * @default 100\n */\n @Input({ transform: numberAttribute })\n set thyHideDelay(value: number) {\n this.hideDelay = value;\n }\n\n /**\n * 弹出菜单后的当前触发元素的激活样式类\n */\n @Input() thyActiveClass: string = 'thy-dropdown-origin-active';\n\n /**\n * 弹出框的参数,底层使用 Popover 组件, 默认为`{ placement: \"bottomLeft\", insideClosable: true, minWidth: \"240px\", outsideClosable: true }`\n * @default { placement: \"bottomLeft\", insideClosable: true, minWidth: \"240px\", outsideClosable: true }\n */\n @Input() thyPopoverOptions: Pick<ThyPopoverConfig, 'placement' | 'height' | 'insideClosable' | 'minWidth' | 'outsideClosable'>;\n\n /**\n * 弹出框的显示位置,会覆盖 thyPopoverOptions 中的 placement,`top` | `topLeft` | `topRight` | `bottom` | `bottomLeft` | `bottomRight` | `left` | `leftTop` | `leftBottom` | `right` | `rightTop` | `rightBottom`\n * @default bottomLeft\n */\n @Input() thyPlacement: ThyPlacement;\n\n /**\n * 点击 dropdown-menu 内部是否关闭弹出框,会覆盖 thyPopoverOptions 中的 insideClosable\n * @default true\n */\n @Input({ transform: coerceBooleanProperty }) thyMenuInsideClosable: boolean;\n\n /**\n * 弹出框 overlay panel 的类名\n * @type string | string[]\n */\n @Input() set thyPanelClass(value: string | string[]) {\n this.innerPanelClassList = this.innerPanelClassList.concat(coerceArray(value));\n }\n\n get thyPanelClass() {\n return this.innerPanelClassList;\n }\n\n /**\n * 菜单 Active 事件,打开菜单返回 true,关闭返回 false\n */\n @Output() thyActiveChange = new EventEmitter<boolean>();\n\n constructor() {\n const elementRef = inject(ElementRef);\n const platform = inject(Platform);\n const focusMonitor = inject(FocusMonitor);\n const ngZone = inject(NgZone);\n const changeDetectorRef = inject(ChangeDetectorRef);\n\n super(elementRef, platform, focusMonitor, ngZone, true, changeDetectorRef);\n }\n\n ngOnInit() {\n this.initialize();\n }\n\n createOverlay(): OverlayRef {\n let componentTypeOrTemplateRef: ComponentTypeOrTemplateRef<SafeAny>;\n if (this.menu && this.menu instanceof ThyDropdownMenuComponent) {\n componentTypeOrTemplateRef = this.menu.templateRef;\n } else if (isFunction(this.menu) || isTemplateRef(this.menu)) {\n componentTypeOrTemplateRef = this.menu as ComponentTypeOrTemplateRef<SafeAny>;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!componentTypeOrTemplateRef) {\n throw new Error(`thyDropdownMenu is required`);\n }\n }\n\n const { placement, height, insideClosable, outsideClosable, minWidth } = Object.assign(\n { placement: 'bottomLeft', insideClosable: true, outsideClosable: true },\n this.thyPopoverOptions\n );\n const config: ThyPopoverConfig = {\n origin: this.elementRef.nativeElement,\n hasBackdrop: false,\n viewContainerRef: this.viewContainerRef,\n offset: 0,\n panelClass: this.thyPanelClass,\n placement: this.thyPlacement ? this.thyPlacement : placement,\n height,\n outsideClosable,\n insideClosable: helpers.isUndefined(this.thyMenuInsideClosable) ? insideClosable : this.thyMenuInsideClosable,\n minWidth,\n originActiveClass: this.thyActiveClass\n };\n this.popoverRef = this.popover.open(componentTypeOrTemplateRef, config);\n this.popoverRef.afterOpened().subscribe(() => {\n this.thyActiveChange.emit(true);\n });\n this.popoverRef.afterClosed().subscribe(() => {\n this.popoverOpened = false;\n this.thyActiveChange.emit(false);\n });\n\n return this.popoverRef.getOverlayRef();\n }\n\n show(delay: number = this.showDelay) {\n if (this.hideTimeoutId) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = null;\n }\n\n if (this.disabled || (this.overlayRef && this.overlayRef.hasAttached())) {\n return;\n }\n if (this.trigger !== 'hover') {\n delay = 0;\n }\n\n this.showTimeoutId = setTimeout(() => {\n const overlayRef = this.createOverlay();\n this.overlayRef = overlayRef;\n this.popoverOpened = true;\n this.showTimeoutId = null;\n this.markForCheck();\n }, delay);\n }\n\n hide(delay: number = this.hideDelay) {\n if (this.showTimeoutId) {\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = null;\n }\n\n this.hideTimeoutId = setTimeout(() => {\n if (this.popoverRef) {\n this.popoverRef.close();\n }\n this.hideTimeoutId = null;\n this.markForCheck();\n }, delay);\n }\n}\n","import { Directive, HostBinding, Input, HostListener, ElementRef, OnInit, inject } from '@angular/core';\nimport { fromEvent } from 'rxjs';\nimport { debounceTime, shareReplay } from 'rxjs/operators';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyDropdownMenuItemType = 'default' | 'danger' | 'success' | '';\n\n/**\n * 菜单项\n * @name thyDropdownMenuItem\n * @order 30\n */\n@Directive({\n selector: '[thyDropdownMenuItem]'\n})\nexport class ThyDropdownMenuItemDirective implements OnInit {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n @HostBinding('class.dropdown-menu-item') className = true;\n\n @HostBinding('class.dropdown-menu-item--disabled') disabled = false;\n\n @HostBinding('class.dropdown-menu-item--danger') danger = false;\n\n @HostBinding('class.dropdown-menu-item--success') success = false;\n\n /**\n * 菜单项类型\n * @type 'default' | 'danger' | 'success' | ''\n * @default default\n */\n @Input()\n set thyType(value: ThyDropdownMenuItemType) {\n this[value] = true;\n }\n\n /**\n * 菜单项是否处于禁用状态\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyDisabled(value: boolean) {\n this.disabled = value;\n }\n\n @HostListener('click', ['$event'])\n onClick(event: Event): void {\n if (this.disabled) {\n event.stopPropagation();\n event.preventDefault();\n }\n }\n\n private hostRenderer = useHostRenderer();\n\n ngOnInit() {}\n\n updateClass(classes: string[]) {\n this.hostRenderer.updateClass(classes);\n }\n\n getElement() {\n return this.elementRef.nativeElement;\n }\n\n bindMouseenterEvent() {\n return fromEvent(this.elementRef.nativeElement, 'mouseenter').pipe(debounceTime(100), shareReplay());\n }\n}\n\n/**\n * 设置为菜单项图标\n * @name thyDropdownMenuItemIcon\n */\n@Directive({\n selector: '[thyDropdownMenuItemIcon]'\n})\nexport class ThyDropdownMenuItemIconDirective {\n @HostBinding('class.icon') className = true;\n\n constructor() {}\n}\n\n/**\n * 设置为菜单项名称\n * @name thyDropdownMenuItemName\n */\n@Directive({\n selector: '[thyDropdownMenuItemName]'\n})\nexport class ThyDropdownMenuItemNameDirective {\n @HostBinding('class.name') className = true;\n\n constructor() {}\n}\n\n/**\n * 设置为菜单项名称后的补充信息\n * @name thyDropdownMenuItemMeta\n */\n@Directive({\n selector: '[thyDropdownMenuItemMeta]'\n})\nexport class ThyDropdownMenuItemMetaDirective {\n @HostBinding('class.meta') className = true;\n\n constructor() {}\n}\n\n/**\n * 设置为菜单项的描述\n * @name thyDropdownMenuItemDesc\n */\n@Directive({\n selector: '[thyDropdownMenuItemDesc]'\n})\nexport class ThyDropdownMenuItemDescDirective {\n @HostBinding('class.desc') className = true;\n\n constructor() {}\n}\n\n/**\n * 菜单项的后置扩展图标,用于显示是否选中或者子菜单示意\n * @name thyDropdownMenuItemExtendIcon\n */\n@Directive({\n selector: '[thyDropdownMenuItemExtendIcon]'\n})\nexport class ThyDropdownMenuItemExtendIconDirective {\n @HostBinding('class.extend-icon') className = true;\n\n constructor() {}\n}\n\n/**\n * 菜单项是否激活指令\n * @name thyDropdownMenuItemActive\n * @order 70\n */\n@Directive({\n selector: '[thyDropdownMenuItemActive]'\n})\nexport class ThyDropdownMenuItemActiveDirective {\n /**\n * 是否激活\n * @type boolean | string\n * @default false\n */\n @HostBinding('class.active')\n @Input({ transform: coerceBooleanProperty })\n thyDropdownMenuItemActive: boolean;\n\n constructor() {}\n}\n","import { getElementOffset } from 'ngx-tethys/util';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Input, OnInit, inject } from '@angular/core';\n\nimport { ThyDropdownMenuItemDirective } from './dropdown-menu-item.directive';\n\nexport type ThyDropdownSubmenuDirection = 'left' | 'right' | 'auto';\n\ntype InnerDropdownSubmenuDirection = ThyDropdownSubmenuDirection | 'leftBottom' | 'rightBottom';\n\nconst SUBMENU_CLASS_PREFIX = 'dropdown-submenu';\n\n/**\n * 下拉子菜单\n * @name thy-dropdown-submenu,[thyDropdownSubmenu]\n * @order 40\n */\n@Component({\n selector: '[thyDropdownSubmenu],thy-dropdown-submenu',\n template: '<ng-content></ng-content>',\n host: {\n class: 'dropdown-submenu'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ThyDropdownSubmenu implements OnInit {\n private dropdownMenuItem = inject(ThyDropdownMenuItemDirective);\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n private readonly destroyRef = inject(DestroyRef);\n\n private direction: InnerDropdownSubmenuDirection = 'right';\n\n /**\n * 菜单方向\n * @type left | right | auto\n * @default right\n */\n @Input() set thyDirection(value: ThyDropdownSubmenuDirection) {\n this.direction = value;\n }\n\n ngOnInit(): void {\n let direction = this.direction || 'right';\n this.updateClassByDirection(direction);\n this.dropdownMenuItem\n .bindMouseenterEvent()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (this.direction === 'auto') {\n const element = this.dropdownMenuItem.getElement();\n const offset = getElementOffset(element);\n if (document.documentElement.clientWidth < offset.left + offset.width + offset.width) {\n direction = 'left';\n } else {\n direction = 'right';\n }\n this.updateClassByDirection(direction);\n }\n this.updateVerticalDirection(direction);\n });\n }\n\n private updateClassByDirection(direction: InnerDropdownSubmenuDirection) {\n this.dropdownMenuItem.updateClass([`${SUBMENU_CLASS_PREFIX}-${direction}`]);\n }\n\n private updateVerticalDirection(direction: InnerDropdownSubmenuDirection) {\n const submenuItems = this.elementRef.nativeElement.querySelectorAll('.dropdown-menu-item');\n if (submenuItems.length) {\n let submenuItemHeight = 0;\n submenuItems.forEach(item => (submenuItemHeight += item.clientHeight));\n if (\n document.documentElement.clientHeight - this.dropdownMenuItem.getElement().getBoundingClientRect().bottom <\n submenuItemHeight\n ) {\n direction = direction === 'left' ? 'leftBottom' : 'rightBottom';\n this.updateClassByDirection(direction);\n } else {\n this.updateClassByDirection(direction);\n }\n }\n }\n}\n","import { ContentChildren, Directive, ElementRef, Input, QueryList, AfterContentInit, OnInit, inject } from '@angular/core';\nimport { coerceArray } from 'ngx-tethys/util';\nimport { mergeMap, startWith } from 'rxjs/operators';\nimport { ThyDropdownDirective } from './dropdown.directive';\nimport { useHostRenderer } from '@tethys/cdk/dom';\n\n/**\n * 跟踪 Dropdown 菜单是否被打开处于激活状态,允许指定一个或多个CSS类,以便在菜单打开状态时添加到元素中\n * @name thyDropdownActive\n * @order 60\n */\n@Directive({\n selector: '[thyDropdownActive]'\n})\nexport class ThyDropdownActiveDirective implements OnInit, AfterContentInit {\n private elementRef = inject(ElementRef);\n private trigger = inject(ThyDropdownDirective, { optional: true });\n\n classes: string[];\n\n private hostRenderer = useHostRenderer();\n\n /**\n * 设置 Active 样式类,可以是一个或多个CSS类\n * @type string[] | string\n */\n @Input()\n set thyDropdownActive(data: string[] | string) {\n this.classes = coerceArray(data).filter(c => !!c);\n }\n\n /**\n * @private\n */\n @ContentChildren(ThyDropdownDirective, { descendants: true }) triggers!: QueryList<ThyDropdownDirective>;\n\n ngOnInit(): void {}\n\n ngAfterContentInit(): void {\n this.triggers.changes\n .pipe(\n startWith(this.triggers.toArray()),\n mergeMap((triggers: ThyDropdownDirective[]) => {\n const result = triggers.map(item => {\n return item.thyActiveChange;\n });\n this.trigger && result.push(this.trigger.thyActiveChange);\n return result;\n }),\n mergeMap(result => {\n return result;\n })\n )\n .subscribe(active => {\n this.update(active);\n });\n }\n\n update(active: boolean) {\n this.classes.forEach(className => {\n if (active) {\n this.hostRenderer.addClass(className);\n } else {\n this.hostRenderer.removeClass(className);\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyPopoverModule } from 'ngx-tethys/popover';\nimport { ThyDropdownDirective } from './dropdown.directive';\nimport { ThyDropdownMenuComponent, ThyDropdownMenuDivider, ThyDropdownMenuGroup } from './dropdown-menu.component';\nimport {\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuItemIconDirective,\n ThyDropdownMenuItemMetaDirective,\n ThyDropdownMenuItemDescDirective,\n ThyDropdownMenuItemExtendIconDirective,\n ThyDropdownMenuItemActiveDirective\n} from './dropdown-menu-item.directive';\nimport { ThyDropdownSubmenu } from './dropdown-submenu.component';\nimport { ThyDropdownActiveDirective } from './dropdown-active.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n ThyPopoverModule,\n ThyDropdownDirective,\n ThyDropdownActiveDirective,\n ThyDropdownMenuComponent,\n ThyDropdownSubmenu,\n ThyDropdownMenuGroup,\n ThyDropdownMenuDivider,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuItemIconDirective,\n ThyDropdownMenuItemMetaDirective,\n ThyDropdownMenuItemDescDirective,\n ThyDropdownMenuItemExtendIconDirective,\n ThyDropdownMenuItemActiveDirective\n ],\n exports: [\n ThyDropdownDirective,\n ThyDropdownActiveDirective,\n ThyDropdownMenuComponent,\n ThyDropdownSubmenu,\n ThyDropdownMenuGroup,\n ThyDropdownMenuDivider,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuItemIconDirective,\n ThyDropdownMenuItemMetaDirective,\n ThyDropdownMenuItemDescDirective,\n ThyDropdownMenuItemExtendIconDirective,\n ThyDropdownMenuItemActiveDirective\n ]\n})\nexport class ThyDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA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,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAhCtB,YAAY;YACZ,gBAAgB,CAAA,EAAA,CAAA,CAAA;;2FA+BX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlC7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,gBAAgB;wBAChB,oBAAoB;wBACpB,0BAA0B;wBAC1B,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,sBAAsB;wBACtB,4BAA4B;wBAC5B,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,sCAAsC;wBACtC;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,0BAA0B;wBAC1B,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,sBAAsB;wBACtB,4BAA4B;wBAC5B,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,sCAAsC;wBACtC;AACH;AACJ,iBAAA;;;AClDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-tethys-dropdown.mjs","sources":["../../../src/dropdown/dropdown-menu.component.ts","../../../src/dropdown/dropdown.directive.ts","../../../src/dropdown/dropdown-menu-item.directive.ts","../../../src/dropdown/dropdown-submenu.component.ts","../../../src/dropdown/dropdown-active.directive.ts","../../../src/dropdown/module.ts","../../../src/dropdown/ngx-tethys-dropdown.ts"],"sourcesContent":["import { coerceCssPixelValue } from '@angular/cdk/coercion';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n HostBinding,\n TemplateRef,\n ViewEncapsulation,\n input,\n viewChild\n} from '@angular/core';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyDropdownMenuDividerType = 'default' | 'crossing' | '';\n\nexport const THY_DROPDOWN_DEFAULT_WIDTH = '240px';\n\n/**\n * @private\n */\n@Directive()\nexport class ThyDropdownAbstractMenu {\n @HostBinding('class.thy-dropdown-menu') addDropdownMenuClass = true;\n}\n\n/**\n * 下拉菜单组件\n * @name thy-dropdown-menu\n * @order 20\n */\n@Component({\n selector: 'thy-dropdown-menu',\n template: `\n @if (thyImmediateRender()) {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n }\n <ng-template #dropdownMenu>\n <div class=\"thy-dropdown-menu\" [style.width]=\"thyWidth()\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </ng-template>\n <ng-template #content>\n <ng-content></ng-content>\n </ng-template>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.thy-dropdown-menu]': 'thyImmediateRender()',\n '[style.width]': \"thyImmediateRender() ? thyWidth() : ''\"\n },\n imports: [NgTemplateOutlet]\n})\nexport class ThyDropdownMenuComponent {\n readonly templateRef = viewChild.required<TemplateRef<SafeAny>>('dropdownMenu');\n\n /**\n * 设置菜单宽度\n */\n readonly thyWidth = input(THY_DROPDOWN_DEFAULT_WIDTH, { transform: coerceCssPixelValue });\n\n /**\n * 是否直接渲染 dropdown-menu 中的元素\n */\n readonly thyImmediateRender = input(false, { transform: coerceBooleanProperty });\n\n constructor() {}\n}\n\n/**\n * 下拉菜单分组\n * @name thy-dropdown-menu-group\n * @order 50\n */\n@Component({\n selector: 'thy-dropdown-menu-group',\n template: `\n <div class=\"dropdown-menu-group-title\">{{ thyTitle() }}</div>\n <ng-content></ng-content>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'dropdown-menu-group'\n }\n})\nexport class ThyDropdownMenuGroup {\n /**\n * 分组标题\n */\n readonly thyTitle = input<string>();\n\n constructor() {}\n}\n\n/**\n * 下拉菜单分割线\n * @name thy-dropdown-menu-divider\n */\n@Component({\n selector: 'thy-dropdown-menu-divider',\n template: ` <!-- <div class=\"dropdown-menu-divider-title\">{{ title }}</div> --> `,\n host: {\n class: 'dropdown-menu-divider'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ThyDropdownMenuDivider {\n constructor() {}\n}\n","import { FocusMonitor } from '@angular/cdk/a11y';\nimport { ComponentType, OverlayRef } from '@angular/cdk/overlay';\nimport { Platform } from '@angular/cdk/platform';\nimport {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n EventEmitter,\n NgZone,\n OnInit,\n Output,\n Signal,\n TemplateRef,\n ViewContainerRef,\n computed,\n effect,\n inject,\n input,\n numberAttribute\n} from '@angular/core';\nimport { ComponentTypeOrTemplateRef, ThyOverlayDirectiveBase, ThyOverlayTrigger, ThyPlacement } from 'ngx-tethys/core';\nimport { ThyPopover, ThyPopoverConfig, ThyPopoverRef } from 'ngx-tethys/popover';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { coerceArray, coerceBooleanProperty, helpers, isFunction, isTemplateRef, isUndefinedOrNull } from 'ngx-tethys/util';\nimport { ThyDropdownMenuComponent } from './dropdown-menu.component';\n\nexport type ThyDropdownTrigger = 'click' | 'hover';\n\ntype ThyDropdownMenu = ThyDropdownMenuComponent | TemplateRef<SafeAny> | ComponentType<SafeAny>;\n\n/**\n * thyDropdown 触发下拉菜单指令\n * @name thyDropdown\n * @order 10\n */\n@Directive({\n selector: `[thyDropdown]`,\n host: {\n class: 'thy-dropdown'\n }\n})\nexport class ThyDropdownDirective extends ThyOverlayDirectiveBase implements OnInit {\n private viewContainerRef = inject(ViewContainerRef);\n private popover = inject(ThyPopover);\n\n readonly menu: Signal<ThyDropdownMenu> = computed(() => {\n return (this.thyDropdownMenu() || this.thyDropdown())!;\n });\n\n private popoverRef: ThyPopoverRef<unknown>;\n\n popoverOpened = false;\n\n /**\n * Dropdown 下拉菜单,支持 thy-dropdown-menu 组件、TemplateRef 和自定义菜单组件\n */\n readonly thyDropdownMenu = input<ThyDropdownMenu>();\n\n /**\n * Dropdown 下拉菜单组件,和 thyDropdownMenu 参与相同,快捷传下拉菜单组件参数\n */\n readonly thyDropdown = input<ThyDropdownMenu>();\n\n /**\n * 下拉菜单触发方式\n * @type 'hover' | 'focus' | 'click' | string\n * @default click\n */\n readonly thyTrigger = input<ThyOverlayTrigger | string>('click');\n\n /**\n * 打开延迟毫秒\n */\n readonly thyShowDelay = input(100, { transform: numberAttribute });\n\n /**\n * 关闭延迟毫秒\n */\n readonly thyHideDelay = input(100, { transform: numberAttribute });\n\n /**\n * 弹出菜单后的当前触发元素的激活样式类\n */\n readonly thyActiveClass = input<string, string>('thy-dropdown-origin-active', {\n transform: (value: string) => value || 'thy-dropdown-origin-active'\n });\n\n /**\n * 弹出框的参数,底层使用 Popover 组件, 默认为`{ placement: \"bottomLeft\", insideClosable: true, minWidth: \"240px\", outsideClosable: true }`\n */\n readonly thyPopoverOptions =\n input<Pick<ThyPopoverConfig, 'placement' | 'height' | 'insideClosable' | 'minWidth' | 'outsideClosable'>>();\n\n /**\n * 弹出框的显示位置,会覆盖 thyPopoverOptions 中的 placement,`top` | `topLeft` | `topRight` | `bottom` | `bottomLeft` | `bottomRight` | `left` | `leftTop` | `leftBottom` | `right` | `rightTop` | `rightBottom`\n */\n readonly thyPlacement = input<ThyPlacement, ThyPlacement>('bottomLeft', { transform: (value: ThyPlacement) => value || 'bottomLeft' });\n\n /**\n * 点击 dropdown-menu 内部是否关闭弹出框,会覆盖 thyPopoverOptions 中的 insideClosable\n */\n readonly thyMenuInsideClosable = input(true, { transform: coerceBooleanProperty });\n\n /**\n * 弹出框 overlay panel 的类名\n * @type string | string[]\n */\n readonly thyPanelClass = input<string | string[], string | string[]>(['thy-dropdown-pane'], {\n transform: (value: string | string[]) =>\n (!isUndefinedOrNull(value) && ['thy-dropdown-pane'].concat(coerceArray(value))) || ['thy-dropdown-pane']\n });\n\n /**\n * 菜单 Active 事件,打开菜单返回 true,关闭返回 false\n */\n @Output() thyActiveChange = new EventEmitter<boolean>();\n\n constructor() {\n const elementRef = inject(ElementRef);\n const platform = inject(Platform);\n const focusMonitor = inject(FocusMonitor);\n const ngZone = inject(NgZone);\n const changeDetectorRef = inject(ChangeDetectorRef);\n\n super(elementRef, platform, focusMonitor, ngZone, true, changeDetectorRef);\n\n // TODO: 以下为 overlay 基类中参数,之后需统一修改\n effect(() => {\n this.trigger = (this.thyTrigger() || 'click') as ThyOverlayTrigger;\n });\n effect(() => {\n this.hideDelay = this.thyHideDelay() ?? 100;\n });\n effect(() => {\n this.showDelay = this.thyShowDelay() ?? 100;\n });\n }\n\n ngOnInit() {\n this.initialize();\n }\n\n createOverlay(): OverlayRef {\n let componentTypeOrTemplateRef: ComponentTypeOrTemplateRef<SafeAny>;\n const menu = this.menu();\n if (menu && menu instanceof ThyDropdownMenuComponent) {\n componentTypeOrTemplateRef = menu?.templateRef();\n } else if (isFunction(menu) || isTemplateRef(menu)) {\n componentTypeOrTemplateRef = menu as ComponentTypeOrTemplateRef<SafeAny>;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!componentTypeOrTemplateRef) {\n throw new Error(`thyDropdownMenu is required`);\n }\n }\n\n const { placement, height, insideClosable, outsideClosable, minWidth } = Object.assign(\n { placement: 'bottomLeft', insideClosable: true, outsideClosable: true },\n this.thyPopoverOptions()\n );\n const thyPlacement = this.thyPlacement();\n const thyMenuInsideClosable = this.thyMenuInsideClosable();\n const config: ThyPopoverConfig = {\n origin: this.elementRef.nativeElement,\n hasBackdrop: false,\n viewContainerRef: this.viewContainerRef,\n offset: 0,\n panelClass: this.thyPanelClass(),\n placement: thyPlacement ? thyPlacement : placement,\n height,\n outsideClosable,\n insideClosable: helpers.isUndefined(thyMenuInsideClosable) ? insideClosable : thyMenuInsideClosable,\n minWidth,\n originActiveClass: this.thyActiveClass()\n };\n this.popoverRef = this.popover.open(componentTypeOrTemplateRef, config);\n this.popoverRef.afterOpened().subscribe(() => {\n this.thyActiveChange.emit(true);\n });\n this.popoverRef.afterClosed().subscribe(() => {\n this.popoverOpened = false;\n this.thyActiveChange.emit(false);\n });\n\n return this.popoverRef.getOverlayRef();\n }\n\n show(delay: number = this.showDelay) {\n if (this.hideTimeoutId) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = null;\n }\n\n if (this.disabled || (this.overlayRef && this.overlayRef.hasAttached())) {\n return;\n }\n if (this.trigger !== 'hover') {\n delay = 0;\n }\n\n this.showTimeoutId = setTimeout(() => {\n const overlayRef = this.createOverlay();\n this.overlayRef = overlayRef;\n this.popoverOpened = true;\n this.showTimeoutId = null;\n this.markForCheck();\n }, delay);\n }\n\n hide(delay: number = this.hideDelay) {\n if (this.showTimeoutId) {\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = null;\n }\n\n this.hideTimeoutId = setTimeout(() => {\n if (this.popoverRef) {\n this.popoverRef.close();\n }\n this.hideTimeoutId = null;\n this.markForCheck();\n }, delay);\n }\n}\n","import { Directive, ElementRef, HostBinding, HostListener, OnInit, computed, inject, input } from '@angular/core';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\nimport { fromEvent } from 'rxjs';\nimport { debounceTime, shareReplay } from 'rxjs/operators';\n\nexport type ThyDropdownMenuItemType = 'default' | 'danger' | 'success' | '';\n\n/**\n * 菜单项\n * @name thyDropdownMenuItem\n * @order 30\n */\n@Directive({\n selector: '[thyDropdownMenuItem]',\n host: {\n class: 'dropdown-menu-item',\n '[class.dropdown-menu-item--disabled]': `thyDisabled()`,\n '[class.dropdown-menu-item--danger]': 'danger()',\n '[class.dropdown-menu-item--success]': 'success()'\n }\n})\nexport class ThyDropdownMenuItemDirective implements OnInit {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly danger = computed(() => this.thyType() === 'danger' || false);\n\n readonly success = computed(() => this.thyType() === 'success' || false);\n\n /**\n * 菜单项类型\n * @type 'default' | 'danger' | 'success' | ''\n */\n readonly thyType = input<ThyDropdownMenuItemType>('default');\n\n /**\n * 菜单项是否处于禁用状态\n */\n readonly thyDisabled = input(false, { transform: coerceBooleanProperty });\n\n @HostListener('click', ['$event'])\n onClick(event: Event): void {\n if (this.thyDisabled()) {\n event.stopPropagation();\n event.preventDefault();\n }\n }\n\n private hostRenderer = useHostRenderer();\n\n ngOnInit() {}\n\n updateClass(classes: string[]) {\n this.hostRenderer.updateClass(classes);\n }\n\n getElement() {\n return this.elementRef.nativeElement;\n }\n\n bindMouseenterEvent() {\n return fromEvent(this.elementRef.nativeElement, 'mouseenter').pipe(debounceTime(100), shareReplay());\n }\n}\n\n/**\n * 设置为菜单项图标\n * @name thyDropdownMenuItemIcon\n */\n@Directive({\n selector: '[thyDropdownMenuItemIcon]'\n})\nexport class ThyDropdownMenuItemIconDirective {\n @HostBinding('class.icon') className = true;\n\n constructor() {}\n}\n\n/**\n * 设置为菜单项名称\n * @name thyDropdownMenuItemName\n */\n@Directive({\n selector: '[thyDropdownMenuItemName]'\n})\nexport class ThyDropdownMenuItemNameDirective {\n @HostBinding('class.name') className = true;\n\n constructor() {}\n}\n\n/**\n * 设置为菜单项名称后的补充信息\n * @name thyDropdownMenuItemMeta\n */\n@Directive({\n selector: '[thyDropdownMenuItemMeta]'\n})\nexport class ThyDropdownMenuItemMetaDirective {\n @HostBinding('class.meta') className = true;\n\n constructor() {}\n}\n\n/**\n * 设置为菜单项的描述\n * @name thyDropdownMenuItemDesc\n */\n@Directive({\n selector: '[thyDropdownMenuItemDesc]'\n})\nexport class ThyDropdownMenuItemDescDirective {\n @HostBinding('class.desc') className = true;\n\n constructor() {}\n}\n\n/**\n * 菜单项的后置扩展图标,用于显示是否选中或者子菜单示意\n * @name thyDropdownMenuItemExtendIcon\n */\n@Directive({\n selector: '[thyDropdownMenuItemExtendIcon]'\n})\nexport class ThyDropdownMenuItemExtendIconDirective {\n @HostBinding('class.extend-icon') className = true;\n\n constructor() {}\n}\n\n/**\n * 菜单项是否激活指令\n * @name thyDropdownMenuItemActive\n * @order 70\n */\n@Directive({\n selector: '[thyDropdownMenuItemActive]',\n host: {\n '[class.active]': `thyDropdownMenuItemActive()`\n }\n})\nexport class ThyDropdownMenuItemActiveDirective {\n /**\n * 是否激活\n * @type boolean | string\n */\n readonly thyDropdownMenuItemActive = input(false, { transform: coerceBooleanProperty });\n\n constructor() {}\n}\n","import { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { getElementOffset } from 'ngx-tethys/util';\n\nimport { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, OnInit, inject, input } from '@angular/core';\n\nimport { ThyDropdownMenuItemDirective } from './dropdown-menu-item.directive';\n\nexport type ThyDropdownSubmenuDirection = 'left' | 'right' | 'auto';\n\ntype InnerDropdownSubmenuDirection = ThyDropdownSubmenuDirection | 'leftBottom' | 'rightBottom';\n\nconst SUBMENU_CLASS_PREFIX = 'dropdown-submenu';\n\n/**\n * 下拉子菜单\n * @name thy-dropdown-submenu,[thyDropdownSubmenu]\n * @order 40\n */\n@Component({\n selector: '[thyDropdownSubmenu],thy-dropdown-submenu',\n template: '<ng-content></ng-content>',\n host: {\n class: 'dropdown-submenu'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ThyDropdownSubmenu implements OnInit {\n private dropdownMenuItem = inject(ThyDropdownMenuItemDirective);\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n private readonly destroyRef = inject(DestroyRef);\n\n /**\n * 菜单方向\n * @type left | right | auto\n */\n readonly thyDirection = input<ThyDropdownSubmenuDirection, ThyDropdownSubmenuDirection>('right', {\n transform: (value: ThyDropdownSubmenuDirection) => {\n return value || 'right';\n }\n });\n\n ngOnInit(): void {\n let direction = this.thyDirection();\n this.updateClassByDirection(direction);\n this.dropdownMenuItem\n .bindMouseenterEvent()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (this.thyDirection() === 'auto') {\n const element = this.dropdownMenuItem.getElement();\n const offset = getElementOffset(element);\n if (document.documentElement.clientWidth < offset.left + offset.width + offset.width) {\n direction = 'left';\n } else {\n direction = 'right';\n }\n this.updateClassByDirection(direction);\n }\n this.updateVerticalDirection(direction);\n });\n }\n\n private updateClassByDirection(direction: InnerDropdownSubmenuDirection) {\n this.dropdownMenuItem.updateClass([`${SUBMENU_CLASS_PREFIX}-${direction}`]);\n }\n\n private updateVerticalDirection(direction: InnerDropdownSubmenuDirection) {\n const submenuItems = this.elementRef.nativeElement.querySelectorAll('.dropdown-menu-item');\n if (submenuItems.length) {\n let submenuItemHeight = 0;\n submenuItems.forEach(item => (submenuItemHeight += item.clientHeight));\n if (\n document.documentElement.clientHeight - this.dropdownMenuItem.getElement().getBoundingClientRect().bottom <\n submenuItemHeight\n ) {\n direction = direction === 'left' ? 'leftBottom' : 'rightBottom';\n this.updateClassByDirection(direction);\n } else {\n this.updateClassByDirection(direction);\n }\n }\n }\n}\n","import { AfterContentInit, ContentChildren, Directive, OnInit, QueryList, Signal, computed, inject, input } from '@angular/core';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { coerceArray } from 'ngx-tethys/util';\nimport { mergeMap, startWith } from 'rxjs';\nimport { ThyDropdownDirective } from './dropdown.directive';\n\n/**\n * 跟踪 Dropdown 菜单是否被打开处于激活状态,允许指定一个或多个CSS类,以便在菜单打开状态时添加到元素中\n * @name thyDropdownActive\n * @order 60\n */\n@Directive({\n selector: '[thyDropdownActive]'\n})\nexport class ThyDropdownActiveDirective implements OnInit, AfterContentInit {\n private trigger = inject(ThyDropdownDirective, { optional: true });\n\n readonly classes: Signal<string[]> = computed(() => {\n return coerceArray(this.thyDropdownActive()).filter(c => !!c);\n });\n\n private hostRenderer = useHostRenderer();\n\n /**\n * 设置 Active 样式类,可以是一个或多个CSS类\n * @type string[] | string\n */\n readonly thyDropdownActive = input<string[] | string>();\n\n /**\n * @private\n */\n @ContentChildren(ThyDropdownDirective, { descendants: true }) triggers!: QueryList<ThyDropdownDirective>;\n\n ngOnInit(): void {}\n\n ngAfterContentInit(): void {\n this.triggers.changes\n .pipe(\n startWith(this.triggers.toArray()),\n mergeMap((triggers: ThyDropdownDirective[]) => {\n const result = triggers.map(item => {\n return item.thyActiveChange;\n });\n this.trigger && result.push(this.trigger.thyActiveChange);\n return result;\n }),\n mergeMap(result => {\n return result;\n })\n )\n .subscribe(active => {\n this.update(active);\n });\n }\n\n update(active: boolean) {\n this.classes().forEach(className => {\n if (active) {\n this.hostRenderer.addClass(className);\n } else {\n this.hostRenderer.removeClass(className);\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyPopoverModule } from 'ngx-tethys/popover';\nimport { ThyDropdownDirective } from './dropdown.directive';\nimport { ThyDropdownMenuComponent, ThyDropdownMenuDivider, ThyDropdownMenuGroup } from './dropdown-menu.component';\nimport {\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuItemIconDirective,\n ThyDropdownMenuItemMetaDirective,\n ThyDropdownMenuItemDescDirective,\n ThyDropdownMenuItemExtendIconDirective,\n ThyDropdownMenuItemActiveDirective\n} from './dropdown-menu-item.directive';\nimport { ThyDropdownSubmenu } from './dropdown-submenu.component';\nimport { ThyDropdownActiveDirective } from './dropdown-active.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n ThyPopoverModule,\n ThyDropdownDirective,\n ThyDropdownActiveDirective,\n ThyDropdownMenuComponent,\n ThyDropdownSubmenu,\n ThyDropdownMenuGroup,\n ThyDropdownMenuDivider,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuItemIconDirective,\n ThyDropdownMenuItemMetaDirective,\n ThyDropdownMenuItemDescDirective,\n ThyDropdownMenuItemExtendIconDirective,\n ThyDropdownMenuItemActiveDirective\n ],\n exports: [\n ThyDropdownDirective,\n ThyDropdownActiveDirective,\n ThyDropdownMenuComponent,\n ThyDropdownSubmenu,\n ThyDropdownMenuGroup,\n ThyDropdownMenuDivider,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuItemIconDirective,\n ThyDropdownMenuItemMetaDirective,\n ThyDropdownMenuItemDescDirective,\n ThyDropdownMenuItemExtendIconDirective,\n ThyDropdownMenuItemActiveDirective\n ]\n})\nexport class ThyDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAiBO,MAAM,0BAA0B,GAAG;AAE1C;;AAEG;MAEU,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;QAE4C,IAAoB,CAAA,oBAAA,GAAG,IAAI;AACtE;8GAFY,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,yBAAA,EAAA,2BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;8BAE2C,oBAAoB,EAAA,CAAA;sBAA3D,WAAW;uBAAC,yBAAyB;;AAG1C;;;;AAIG;MAwBU,wBAAwB,CAAA;AAajC,IAAA,WAAA,GAAA;AAZS,QAAA,IAAA,CAAA,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAuB,cAAc,CAAC;AAE/E;;AAEG;QACM,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC,0BAA0B,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;AAEzF;;AAEG;QACM,IAAkB,CAAA,kBAAA,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;;8GAXvE,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EA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AAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,gBAAgB;wBAChB,oBAAoB;wBACpB,0BAA0B;wBAC1B,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,sBAAsB;wBACtB,4BAA4B;wBAC5B,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,sCAAsC;wBACtC;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,0BAA0B;wBAC1B,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,sBAAsB;wBACtB,4BAA4B;wBAC5B,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,gCAAgC;wBAChC,sCAAsC;wBACtC;AACH;AACJ,iBAAA;;;AClDD;;AAEG;;;;"}
|
|
@@ -2,12 +2,12 @@ import { ThyIcon, ThyIconModule } from 'ngx-tethys/icon';
|
|
|
2
2
|
import { ThySharedModule } from 'ngx-tethys/shared';
|
|
3
3
|
import { NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, inject, ElementRef, NgZone,
|
|
6
|
-
import { ThyTranslate } from 'ngx-tethys/core';
|
|
5
|
+
import { Injectable, inject, ElementRef, NgZone, input, contentChild, computed, effect, Component, NgModule } from '@angular/core';
|
|
7
6
|
import { useHostRenderer } from '@tethys/cdk/dom';
|
|
7
|
+
import { ThyTranslate } from 'ngx-tethys/core';
|
|
8
8
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
9
|
-
import { coerceBooleanProperty } from 'ngx-tethys/util';
|
|
10
9
|
import { injectLocale } from 'ngx-tethys/i18n';
|
|
10
|
+
import { coerceBooleanProperty } from 'ngx-tethys/util';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated
|
|
@@ -266,51 +266,109 @@ class ThyEmpty {
|
|
|
266
266
|
this.ngZone = inject(NgZone);
|
|
267
267
|
this.sanitizer = inject(DomSanitizer);
|
|
268
268
|
this.locale = injectLocale('empty');
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
/**
|
|
270
|
+
* 显示文本提示信息。同时传入 thyMessage,thyTranslationKey,thyEntityName,thyEntityNameTranslateKey 时优先级最高
|
|
271
|
+
* @default 暂无数据
|
|
272
|
+
*/
|
|
273
|
+
this.thyMessage = input();
|
|
274
|
+
/**
|
|
275
|
+
* 已废弃。显示文本提示信息多语言 Key。同时传入 thyTranslationKey,thyEntityName,thyEntityNameTranslateKey 时优先级最高
|
|
276
|
+
* @deprecated
|
|
277
|
+
*/
|
|
278
|
+
this.thyTranslationKey = input();
|
|
279
|
+
/**
|
|
280
|
+
* 已废弃。显示文本提示信息多语言 Key 的 Values。传入 thyTranslationKey 后,传入这个才会生效
|
|
281
|
+
* @deprecated
|
|
282
|
+
*/
|
|
283
|
+
this.thyTranslationValues = input();
|
|
284
|
+
/**
|
|
285
|
+
* 已废弃。显示默认提示信息,替换默认提示信息的目标对象,比如:没有 {thyEntityName}。同时传入 thyEntityName,thyEntityNameTranslateKey 时优先级较高
|
|
286
|
+
* @deprecated
|
|
287
|
+
*/
|
|
288
|
+
this.thyEntityName = input();
|
|
289
|
+
/**
|
|
290
|
+
* 已废弃。thyEntityName 的多语言 Key。thyMessage,thyTranslationKey,thyEntityName 均未传入时才会生效
|
|
291
|
+
* @deprecated
|
|
292
|
+
*/
|
|
293
|
+
this.thyEntityNameTranslateKey = input();
|
|
294
|
+
/**
|
|
295
|
+
* 提示图标名
|
|
296
|
+
*/
|
|
297
|
+
this.thyIconName = input();
|
|
298
|
+
/**
|
|
299
|
+
* 大小
|
|
300
|
+
* @type sm | md | lg
|
|
301
|
+
* @default md
|
|
302
|
+
*/
|
|
303
|
+
this.thySize = input('md');
|
|
304
|
+
/**
|
|
305
|
+
* 距上距离
|
|
306
|
+
*/
|
|
307
|
+
this.thyMarginTop = input();
|
|
308
|
+
/**
|
|
309
|
+
* 是否自动根据父容器计算高度,垂直居中
|
|
310
|
+
* @default false
|
|
311
|
+
*/
|
|
312
|
+
this.thyTopAuto = input(false, { transform: coerceBooleanProperty });
|
|
313
|
+
/**
|
|
314
|
+
* 自动计算高度垂直居中(即 thyTopAuto 为 true)时,支持传入自定义父容器
|
|
315
|
+
*/
|
|
316
|
+
this.thyContainer = input();
|
|
317
|
+
/**
|
|
318
|
+
* 提示图片链接
|
|
319
|
+
*/
|
|
320
|
+
this.thyImageUrl = input();
|
|
321
|
+
this.thyImageLoading = input();
|
|
322
|
+
this.thyImageFetchPriority = input();
|
|
323
|
+
/**
|
|
324
|
+
* 显示文本描述
|
|
325
|
+
*/
|
|
326
|
+
this.thyDescription = input();
|
|
271
327
|
this.hostRenderer = useHostRenderer();
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
328
|
+
/**
|
|
329
|
+
* 除提示图片,文本外的其他信息传入模板
|
|
330
|
+
* @type TemplateRef
|
|
331
|
+
*/
|
|
332
|
+
this.extraTemplateRef = contentChild('extra');
|
|
333
|
+
this.presetSvg = computed(() => {
|
|
334
|
+
let presetSvg = this.thyIconName() ? PRESET_SVG[this.thyIconName()] : PRESET_SVG.default;
|
|
335
|
+
return presetSvg ? this.sanitizer.bypassSecurityTrustHtml(presetSvg) : '';
|
|
336
|
+
});
|
|
337
|
+
this.displayText = computed(() => {
|
|
338
|
+
if (this.thyMessage()) {
|
|
339
|
+
return this.thyMessage();
|
|
340
|
+
}
|
|
341
|
+
else if (this.thyTranslationKey()) {
|
|
342
|
+
return this.thyTranslate.instant(this.thyTranslationKey(), this.thyTranslationValues());
|
|
343
|
+
}
|
|
344
|
+
else if (this.thyEntityName()) {
|
|
345
|
+
return this.thyTranslate.instant(this.thyEmptyConfig.noResultWithTargetTranslateKey, {
|
|
346
|
+
target: this.thyEntityName()
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
else if (this.thyEntityNameTranslateKey()) {
|
|
350
|
+
return this.thyTranslate.instant(this.thyEmptyConfig.noResultWithTargetTranslateKey, {
|
|
351
|
+
target: this.thyTranslate.instant(this.thyEntityNameTranslateKey())
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
else if (this.thyTranslate.instant(this.thyEmptyConfig.noResultTranslateKey) !== 'common.tips.NO_RESULT') {
|
|
355
|
+
return this.thyTranslate.instant(this.thyEmptyConfig.noResultTranslateKey);
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
return this.locale().noDataText;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
effect(() => {
|
|
281
362
|
this.updateClass();
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
get displayText() {
|
|
285
|
-
if (this.thyMessage) {
|
|
286
|
-
return this.thyMessage;
|
|
287
|
-
}
|
|
288
|
-
else if (this.thyTranslationKey) {
|
|
289
|
-
return this.thyTranslate.instant(this.thyTranslationKey, this.thyTranslationValues);
|
|
290
|
-
}
|
|
291
|
-
else if (this.thyEntityName) {
|
|
292
|
-
return this.thyTranslate.instant(this.thyEmptyConfig.noResultWithTargetTranslateKey, {
|
|
293
|
-
target: this.thyEntityName
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
else if (this.thyEntityNameTranslateKey) {
|
|
297
|
-
return this.thyTranslate.instant(this.thyEmptyConfig.noResultWithTargetTranslateKey, {
|
|
298
|
-
target: this.thyTranslate.instant(this.thyEntityNameTranslateKey)
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
else if (this.thyTranslate.instant(this.thyEmptyConfig.noResultTranslateKey) !== 'common.tips.NO_RESULT') {
|
|
302
|
-
return this.thyTranslate.instant(this.thyEmptyConfig.noResultTranslateKey);
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
return this.locale().noDataText;
|
|
306
|
-
}
|
|
363
|
+
});
|
|
307
364
|
}
|
|
308
365
|
_calculatePosition() {
|
|
309
|
-
const sizeOptions = sizeMap[this.thySize || 'md'];
|
|
366
|
+
const sizeOptions = sizeMap[this.thySize() || 'md'];
|
|
310
367
|
let marginTop = null;
|
|
311
|
-
if (this.thyTopAuto) {
|
|
368
|
+
if (this.thyTopAuto()) {
|
|
312
369
|
// 选择参考父容器居中
|
|
313
|
-
const
|
|
370
|
+
const thyContainer = this.thyContainer();
|
|
371
|
+
const containerElement = thyContainer ? thyContainer.nativeElement : this.elementRef.nativeElement.parentElement;
|
|
314
372
|
// containerElement.height;
|
|
315
373
|
let emptyStateHeight = this.elementRef.nativeElement.offsetHeight;
|
|
316
374
|
// 高度没有自动计算出来使用默认值
|
|
@@ -324,8 +382,9 @@ class ThyEmpty {
|
|
|
324
382
|
}
|
|
325
383
|
}
|
|
326
384
|
else {
|
|
327
|
-
|
|
328
|
-
|
|
385
|
+
const thyMarginTop = this.thyMarginTop();
|
|
386
|
+
if (thyMarginTop) {
|
|
387
|
+
marginTop = thyMarginTop;
|
|
329
388
|
}
|
|
330
389
|
else {
|
|
331
390
|
marginTop = 0; // sizeOptions.defaultMarginTop;
|
|
@@ -335,13 +394,8 @@ class ThyEmpty {
|
|
|
335
394
|
this.hostRenderer.setStyle('marginTop', marginTop + 'px');
|
|
336
395
|
}
|
|
337
396
|
}
|
|
338
|
-
ngOnInit() {
|
|
339
|
-
this.updateClass();
|
|
340
|
-
this._initialized = true;
|
|
341
|
-
this.setPresetSvg(this.thyIconName);
|
|
342
|
-
}
|
|
343
397
|
updateClass() {
|
|
344
|
-
const classList = sizeClassMap[this.
|
|
398
|
+
const classList = sizeClassMap[this.thySize() || 'md'];
|
|
345
399
|
if (classList) {
|
|
346
400
|
this.hostRenderer.updateClass(classList);
|
|
347
401
|
}
|
|
@@ -353,55 +407,13 @@ class ThyEmpty {
|
|
|
353
407
|
}, 50);
|
|
354
408
|
});
|
|
355
409
|
}
|
|
356
|
-
ngOnChanges(changes) {
|
|
357
|
-
if (changes.thyIconName && changes.thyIconName.currentValue && !changes.thyIconName.firstChange) {
|
|
358
|
-
this.setPresetSvg(changes.thyIconName.currentValue);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
setPresetSvg(icon) {
|
|
362
|
-
this.presetSvg = '';
|
|
363
|
-
let presetSvg = icon ? PRESET_SVG[icon] : PRESET_SVG.default;
|
|
364
|
-
this.presetSvg = presetSvg ? this.sanitizer.bypassSecurityTrustHtml(presetSvg) : '';
|
|
365
|
-
}
|
|
366
410
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyEmpty, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
367
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThyEmpty, isStandalone: true, selector: "thy-empty", inputs: { thyMessage: "thyMessage", thyTranslationKey: "thyTranslationKey", thyTranslationValues: "thyTranslationValues", thyEntityName: "thyEntityName", thyEntityNameTranslateKey: "thyEntityNameTranslateKey", thyIconName: "thyIconName", thySize: "thySize", thyMarginTop: "thyMarginTop", thyTopAuto:
|
|
411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThyEmpty, isStandalone: true, selector: "thy-empty", inputs: { thyMessage: { classPropertyName: "thyMessage", publicName: "thyMessage", isSignal: true, isRequired: false, transformFunction: null }, thyTranslationKey: { classPropertyName: "thyTranslationKey", publicName: "thyTranslationKey", isSignal: true, isRequired: false, transformFunction: null }, thyTranslationValues: { classPropertyName: "thyTranslationValues", publicName: "thyTranslationValues", isSignal: true, isRequired: false, transformFunction: null }, thyEntityName: { classPropertyName: "thyEntityName", publicName: "thyEntityName", isSignal: true, isRequired: false, transformFunction: null }, thyEntityNameTranslateKey: { classPropertyName: "thyEntityNameTranslateKey", publicName: "thyEntityNameTranslateKey", isSignal: true, isRequired: false, transformFunction: null }, thyIconName: { classPropertyName: "thyIconName", publicName: "thyIconName", isSignal: true, isRequired: false, transformFunction: null }, thySize: { classPropertyName: "thySize", publicName: "thySize", isSignal: true, isRequired: false, transformFunction: null }, thyMarginTop: { classPropertyName: "thyMarginTop", publicName: "thyMarginTop", isSignal: true, isRequired: false, transformFunction: null }, thyTopAuto: { classPropertyName: "thyTopAuto", publicName: "thyTopAuto", isSignal: true, isRequired: false, transformFunction: null }, thyContainer: { classPropertyName: "thyContainer", publicName: "thyContainer", isSignal: true, isRequired: false, transformFunction: null }, thyImageUrl: { classPropertyName: "thyImageUrl", publicName: "thyImageUrl", isSignal: true, isRequired: false, transformFunction: null }, thyImageLoading: { classPropertyName: "thyImageLoading", publicName: "thyImageLoading", isSignal: true, isRequired: false, transformFunction: null }, thyImageFetchPriority: { classPropertyName: "thyImageFetchPriority", publicName: "thyImageFetchPriority", isSignal: true, isRequired: false, transformFunction: null }, thyDescription: { classPropertyName: "thyDescription", publicName: "thyDescription", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "extraTemplateRef", first: true, predicate: ["extra"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"thy-empty-icon\">\n @if (thyImageUrl()) {\n <img\n [src]=\"thyImageUrl()\"\n [attr.loading]=\"thyImageLoading()\"\n [attr.fetchpriority]=\"thyImageFetchPriority()\"\n class=\"empty-img\"\n />\n } @else {\n @if (presetSvg()) {\n <div [innerHTML]=\"presetSvg()\"></div>\n } @else {\n @if (thyIconName()) {\n <thy-icon class=\"empty-icon\" [thyIconName]=\"thyIconName()\"></thy-icon>\n }\n }\n }\n</div>\n\n<div [ngClass]=\"{ 'thy-empty-text': !thyDescription(), 'thy-empty-text-with-extra': thyDescription() }\">\n {{ displayText() }}\n</div>\n\n@if (thyDescription()) {\n <div class=\"thy-empty-description\">\n {{ thyDescription() }}\n </div>\n}\n\n@if (extraTemplateRef()) {\n <div class=\"thy-empty-extra\">\n <ng-template [ngTemplateOutlet]=\"extraTemplateRef()\"></ng-template>\n </div>\n}\n", dependencies: [{ 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"] }] }); }
|
|
368
412
|
}
|
|
369
413
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyEmpty, decorators: [{
|
|
370
414
|
type: Component,
|
|
371
|
-
args: [{ selector: 'thy-empty', imports: [ThyIcon, NgClass, NgTemplateOutlet], template: "<div class=\"thy-empty-icon\">\n @if (thyImageUrl) {\n <img\n [src]=\"thyImageUrl\"\n [attr.loading]=\"thyImageLoading\"\n [attr.fetchpriority]=\"thyImageFetchPriority\"\n class=\"empty-img\"\n />\n } @else {\n @if (presetSvg) {\n <div [innerHTML]=\"presetSvg\"></div>\n } @else {\n @if (thyIconName) {\n <thy-icon class=\"empty-icon\" [thyIconName]=\"thyIconName\"></thy-icon>\n }\n }\n }\n</div>\n\n<div [ngClass]=\"{ 'thy-empty-text': !thyDescription, 'thy-empty-text-with-extra': thyDescription }\">\n {{ displayText }}\n</div>\n\n@if (thyDescription) {\n <div class=\"thy-empty-description\">\n {{ thyDescription }}\n </div>\n}\n\n@if (extraTemplateRef) {\n <div class=\"thy-empty-extra\">\n <ng-template [ngTemplateOutlet]=\"extraTemplateRef\"></ng-template>\n </div>\n}\n" }]
|
|
372
|
-
}],
|
|
373
|
-
type: Input
|
|
374
|
-
}], thyTranslationKey: [{
|
|
375
|
-
type: Input
|
|
376
|
-
}], thyTranslationValues: [{
|
|
377
|
-
type: Input
|
|
378
|
-
}], thyEntityName: [{
|
|
379
|
-
type: Input
|
|
380
|
-
}], thyEntityNameTranslateKey: [{
|
|
381
|
-
type: Input
|
|
382
|
-
}], thyIconName: [{
|
|
383
|
-
type: Input
|
|
384
|
-
}], thySize: [{
|
|
385
|
-
type: Input
|
|
386
|
-
}], thyMarginTop: [{
|
|
387
|
-
type: Input
|
|
388
|
-
}], thyTopAuto: [{
|
|
389
|
-
type: Input,
|
|
390
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
391
|
-
}], thyContainer: [{
|
|
392
|
-
type: Input
|
|
393
|
-
}], thyImageUrl: [{
|
|
394
|
-
type: Input
|
|
395
|
-
}], thyImageLoading: [{
|
|
396
|
-
type: Input
|
|
397
|
-
}], thyImageFetchPriority: [{
|
|
398
|
-
type: Input
|
|
399
|
-
}], thyDescription: [{
|
|
400
|
-
type: Input
|
|
401
|
-
}], extraTemplateRef: [{
|
|
402
|
-
type: ContentChild,
|
|
403
|
-
args: ['extra']
|
|
404
|
-
}] } });
|
|
415
|
+
args: [{ selector: 'thy-empty', imports: [ThyIcon, NgClass, NgTemplateOutlet], template: "<div class=\"thy-empty-icon\">\n @if (thyImageUrl()) {\n <img\n [src]=\"thyImageUrl()\"\n [attr.loading]=\"thyImageLoading()\"\n [attr.fetchpriority]=\"thyImageFetchPriority()\"\n class=\"empty-img\"\n />\n } @else {\n @if (presetSvg()) {\n <div [innerHTML]=\"presetSvg()\"></div>\n } @else {\n @if (thyIconName()) {\n <thy-icon class=\"empty-icon\" [thyIconName]=\"thyIconName()\"></thy-icon>\n }\n }\n }\n</div>\n\n<div [ngClass]=\"{ 'thy-empty-text': !thyDescription(), 'thy-empty-text-with-extra': thyDescription() }\">\n {{ displayText() }}\n</div>\n\n@if (thyDescription()) {\n <div class=\"thy-empty-description\">\n {{ thyDescription() }}\n </div>\n}\n\n@if (extraTemplateRef()) {\n <div class=\"thy-empty-extra\">\n <ng-template [ngTemplateOutlet]=\"extraTemplateRef()\"></ng-template>\n </div>\n}\n" }]
|
|
416
|
+
}], ctorParameters: () => [] });
|
|
405
417
|
|
|
406
418
|
class ThyEmptyModule {
|
|
407
419
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyEmptyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|