ngx-tethys 19.0.4 → 19.0.5
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 +10 -0
- package/calendar/calendar-header.component.d.ts +3 -2
- package/color-picker/color-picker.component.d.ts +15 -3
- package/date-picker/abstract-picker.component.d.ts +6 -1
- package/date-picker/base-picker.component.d.ts +1 -1
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/calendar/calendar-table.component.d.ts +4 -3
- package/date-picker/lib/popups/date-popup.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-picker/picker.util.d.ts +5 -5
- package/fesm2022/ngx-tethys-action.mjs +11 -12
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +8 -9
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-alert.mjs +11 -12
- package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +10 -10
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +7 -7
- package/fesm2022/ngx-tethys-autocomplete.mjs +17 -18
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +25 -28
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- 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 +14 -15
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +18 -20
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +15 -17
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +14 -15
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +16 -16
- package/fesm2022/ngx-tethys-checkbox.mjs +7 -7
- package/fesm2022/ngx-tethys-collapse.mjs +11 -12
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +34 -36
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +15 -17
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +8 -9
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +21 -22
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +231 -247
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +10 -10
- package/fesm2022/ngx-tethys-dialog.mjs +22 -23
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +7 -7
- package/fesm2022/ngx-tethys-dot.mjs +8 -9
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-drag-drop.mjs +23 -27
- package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +58 -70
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +10 -10
- package/fesm2022/ngx-tethys-flexible-text.mjs +8 -8
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +47 -54
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +15 -16
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +35 -41
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +17 -18
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +3 -3
- package/fesm2022/ngx-tethys-icon.mjs +11 -12
- package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +18 -20
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +7 -7
- package/fesm2022/ngx-tethys-input.mjs +21 -23
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +73 -88
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +19 -22
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +7 -7
- package/fesm2022/ngx-tethys-mention.mjs +11 -12
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +30 -30
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +22 -22
- package/fesm2022/ngx-tethys-nav.mjs +26 -29
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +16 -16
- package/fesm2022/ngx-tethys-pagination.mjs +15 -17
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +21 -23
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +13 -13
- package/fesm2022/ngx-tethys-property-operation.mjs +11 -11
- package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +11 -11
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +15 -15
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-rate.mjs +10 -10
- package/fesm2022/ngx-tethys-resizable.mjs +17 -18
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- 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 +80 -93
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +23 -24
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slide.mjs +36 -41
- package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +7 -7
- package/fesm2022/ngx-tethys-space.mjs +11 -12
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +7 -7
- package/fesm2022/ngx-tethys-stepper.mjs +22 -24
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +8 -8
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +7 -7
- package/fesm2022/ngx-tethys-table.mjs +22 -25
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +14 -15
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +12 -13
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +58 -56
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +13 -13
- package/fesm2022/ngx-tethys-tooltip.mjs +14 -15
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +10 -10
- package/fesm2022/ngx-tethys-tree-select.mjs +10 -10
- package/fesm2022/ngx-tethys-tree.mjs +17 -18
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +15 -17
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +18 -19
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs +415 -389
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +7 -7
- package/fesm2022/ngx-tethys-watermark.mjs +8 -9
- 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/icon/index.d.ts +1 -1
- package/layout/header.component.d.ts +6 -18
- package/package.json +2 -1
- package/popover/popover.directive.d.ts +6 -2
- package/resizable/resizable.directive.d.ts +21 -3
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/table/table-column.component.d.ts +5 -30
- package/tag/tag.component.d.ts +2 -4
- package/time-picker/inner/inner-time-picker.component.d.ts +3 -1
- package/time-picker/inner/inner-time-picker.store.d.ts +5 -5
- package/time-picker/time-picker.utils.d.ts +5 -5
- package/tooltip/tooltip.directive.d.ts +2 -10
- package/util/helpers/helpers.d.ts +1 -0
|
@@ -134,12 +134,12 @@ class ThyFlexibleText {
|
|
|
134
134
|
};
|
|
135
135
|
this.hostRenderer.updateClassByMap(flexibleTextClass);
|
|
136
136
|
}
|
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
138
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.
|
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFlexibleText, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
138
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.6", type: ThyFlexibleText, isStandalone: true, selector: "thy-flexible-text,[thyFlexibleText]", inputs: { trigger: ["thyTooltipTrigger", "trigger"], thyContainerClass: "thyContainerClass", thyContent: ["thyTooltipContent", "thyContent"], thyPlacement: ["thyTooltipPlacement", "thyPlacement"], thyOffset: ["thyTooltipOffset", "thyOffset", numberAttribute] }, exportAs: ["thyFlexibleText"], hostDirectives: [{ directive: i1.ThyTooltipDirective }], ngImport: i0, template: "<ng-content></ng-content>\n" }); }
|
|
139
139
|
}
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFlexibleText, decorators: [{
|
|
141
141
|
type: Component,
|
|
142
|
-
args: [{ selector: 'thy-flexible-text,[thyFlexibleText]', exportAs: 'thyFlexibleText', hostDirectives: [ThyTooltipDirective],
|
|
142
|
+
args: [{ selector: 'thy-flexible-text,[thyFlexibleText]', exportAs: 'thyFlexibleText', hostDirectives: [ThyTooltipDirective], template: "<ng-content></ng-content>\n" }]
|
|
143
143
|
}], propDecorators: { trigger: [{
|
|
144
144
|
type: Input,
|
|
145
145
|
args: ['thyTooltipTrigger']
|
|
@@ -158,11 +158,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
158
158
|
}] } });
|
|
159
159
|
|
|
160
160
|
class ThyFlexibleTextModule {
|
|
161
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
162
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
163
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFlexibleTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
162
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ThyFlexibleTextModule, imports: [CommonModule, ThyTooltipModule, ObserversModule, ThyFlexibleText], exports: [ThyFlexibleText] }); }
|
|
163
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFlexibleTextModule, imports: [CommonModule, ThyTooltipModule, ObserversModule] }); }
|
|
164
164
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFlexibleTextModule, decorators: [{
|
|
166
166
|
type: NgModule,
|
|
167
167
|
args: [{
|
|
168
168
|
imports: [CommonModule, ThyTooltipModule, ObserversModule, ThyFlexibleText],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-flexible-text.mjs","sources":["../../../src/flexible-text/flexible-text.component.ts","../../../src/flexible-text/flexible-text.component.html","../../../src/flexible-text/flexible-text.module.ts","../../../src/flexible-text/ngx-tethys-flexible-text.ts"],"sourcesContent":["import { ContentObserver } from '@angular/cdk/observers';\nimport {\n AfterContentInit,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n TemplateRef,\n numberAttribute,\n inject\n} from '@angular/core';\nimport { ThyPlacement } from 'ngx-tethys/core';\nimport { ThyTooltipDirective } from 'ngx-tethys/tooltip';\nimport { isUndefinedOrNull } from 'ngx-tethys/util';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { from, Observable, Subject, Subscription } from 'rxjs';\nimport { debounceTime, take, takeUntil } from 'rxjs/operators';\n\n/**\n * 文本提示组件,支持组件 thy-flexible-text 和指令 [thyFlexibleText] 两种方式\n * @name thy-flexible-text,[thyFlexibleText]\n */\n@Component({\n selector: 'thy-flexible-text,[thyFlexibleText]',\n exportAs: 'thyFlexibleText',\n templateUrl: './flexible-text.component.html',\n hostDirectives: [ThyTooltipDirective],\n standalone: true\n})\nexport class ThyFlexibleText implements OnInit, AfterContentInit, OnDestroy {\n private elementRef = inject(ElementRef);\n private contentObserver = inject(ContentObserver);\n private ngZone = inject(NgZone);\n tooltipDirective = inject(ThyTooltipDirective);\n\n isOverflow = false;\n\n content: string | TemplateRef<HTMLElement>;\n\n placement: ThyPlacement;\n\n containerClass: string;\n\n subscription: Subscription | null = null;\n\n offset: number;\n\n /**\n * 触发提示方式\n * @type hover | focus | click\n * @default hover\n */\n @Input('thyTooltipTrigger') trigger: 'hover' | 'focus' | 'click';\n\n /**\n * 自定义class类,如果不设置默认会包含 `flexible-text-container`\n */\n @Input('thyContainerClass')\n set thyContainerClass(value: string) {\n this.containerClass = value;\n this.updateContainerClass();\n }\n\n get thyContainerClass(): string {\n return this.containerClass;\n }\n\n /**\n * 需要展示的全部内容\n * @type string | TemplateRef<HTMLElement>\n */\n @Input('thyTooltipContent') set thyContent(value: string | TemplateRef<HTMLElement>) {\n this.content = value;\n if (this.tooltipDirective) {\n this.tooltipDirective.content = this.content;\n }\n }\n\n /**\n * tooltip 的提示位置\n * @type top | bottom | left | right\n * @default top\n */\n @Input('thyTooltipPlacement') set thyPlacement(value: ThyPlacement) {\n this.placement = value;\n if (this.tooltipDirective) {\n this.tooltipDirective.placement = this.placement;\n }\n }\n\n /**\n * tooltip 偏移量\n */\n @Input({ alias: 'thyTooltipOffset', transform: numberAttribute }) set thyOffset(value: number) {\n this.offset = value;\n if (this.tooltipDirective) {\n this.tooltipDirective.tooltipOffset = this.offset;\n }\n }\n\n private destroy$ = new Subject<void>();\n\n private hostRenderer = useHostRenderer();\n\n static createResizeObserver(element: HTMLElement) {\n return new Observable(observer => {\n const resize = new ResizeObserver(entries => {\n observer.next(entries);\n });\n resize.observe(element);\n return () => {\n resize.disconnect();\n };\n });\n }\n\n ngOnInit() {\n this.updateContainerClass();\n if (this.placement) {\n this.tooltipDirective.placement = this.placement;\n }\n if (this.offset) {\n this.tooltipDirective.tooltipOffset = this.offset;\n }\n if (this.trigger) {\n this.tooltipDirective.trigger = this.trigger;\n }\n this.tooltipDirective.content = this.content;\n this.tooltipDirective.thyTooltipDisabled = true;\n }\n\n ngAfterContentInit() {\n // Note: the zone may be nooped through `BootstrapOptions` when bootstrapping the root module. This means\n // the `onStable` will never emit any value.\n const onStable$ = this.ngZone.isStable ? from(Promise.resolve()) : this.ngZone.onStable.pipe(take(1));\n // Normally this isn't in the zone, but it can cause performance regressions for apps\n // using `zone-patch-rxjs` because it'll trigger a change detection when it unsubscribes.\n this.ngZone.runOutsideAngular(() => {\n // Wait for the next time period to avoid blocking the js thread.\n onStable$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.contentObserver\n .observe(this.elementRef)\n .pipe(debounceTime(100), takeUntil(this.destroy$))\n .subscribe(() => {\n this.applyOverflow();\n });\n\n ThyFlexibleText.createResizeObserver(this.elementRef.nativeElement)\n .pipe(debounceTime(100), takeUntil(this.destroy$))\n .subscribe(() => {\n this.applyOverflow();\n });\n });\n });\n }\n\n ngOnDestroy() {\n this.destroy$.next();\n this.tooltipDirective.hide();\n }\n\n applyOverflow() {\n const nativeElement = this.elementRef.nativeElement;\n if (nativeElement.clientWidth < nativeElement.scrollWidth || nativeElement.clientHeight < nativeElement.scrollHeight) {\n this.isOverflow = true;\n } else {\n this.isOverflow = false;\n }\n this.tooltipDirective.thyTooltipDisabled = !this.isOverflow;\n }\n\n updateContainerClass() {\n const containerClass = isUndefinedOrNull(this.containerClass) ? 'flexible-text-container' : this.containerClass;\n const flexibleTextClass = {\n 'text-truncate': true,\n [containerClass]: containerClass !== ''\n };\n this.hostRenderer.updateClassByMap(flexibleTextClass);\n }\n}\n","<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyFlexibleText } from './flexible-text.component';\nimport { ThyTooltipModule } from 'ngx-tethys/tooltip';\nimport { ObserversModule } from '@angular/cdk/observers';\n\n@NgModule({\n imports: [CommonModule, ThyTooltipModule, ObserversModule, ThyFlexibleText],\n exports: [ThyFlexibleText]\n})\nexport class ThyFlexibleTextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoBA;;;AAGG;MAQU,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;AAQY,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,mBAAmB,CAAC;QAE9C,IAAU,CAAA,UAAA,GAAG,KAAK;QAQlB,IAAY,CAAA,YAAA,GAAwB,IAAI;AAyDhC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ;QAE9B,IAAY,CAAA,YAAA,GAAG,eAAe,EAAE;AA6E3C;AA7HG;;AAEG;IACH,IACI,iBAAiB,CAAC,KAAa,EAAA;AAC/B,QAAA,IAAI,CAAC,cAAc,GAAG,KAAK;QAC3B,IAAI,CAAC,oBAAoB,EAAE;;AAG/B,IAAA,IAAI,iBAAiB,GAAA;QACjB,OAAO,IAAI,CAAC,cAAc;;AAG9B;;;AAGG;IACH,IAAgC,UAAU,CAAC,KAAwC,EAAA;AAC/E,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AACpB,QAAA,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACvB,IAAI,CAAC,gBAAgB,CAAC,OAAO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sources":["../../../src/flexible-text/flexible-text.component.ts","../../../src/flexible-text/flexible-text.component.html","../../../src/flexible-text/flexible-text.module.ts","../../../src/flexible-text/ngx-tethys-flexible-text.ts"],"sourcesContent":["import { ContentObserver } from '@angular/cdk/observers';\nimport {\n AfterContentInit,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n TemplateRef,\n numberAttribute,\n inject\n} from '@angular/core';\nimport { ThyPlacement } from 'ngx-tethys/core';\nimport { ThyTooltipDirective } from 'ngx-tethys/tooltip';\nimport { isUndefinedOrNull } from 'ngx-tethys/util';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { from, Observable, Subject, Subscription } from 'rxjs';\nimport { debounceTime, take, takeUntil } from 'rxjs/operators';\n\n/**\n * 文本提示组件,支持组件 thy-flexible-text 和指令 [thyFlexibleText] 两种方式\n * @name thy-flexible-text,[thyFlexibleText]\n */\n@Component({\n selector: 'thy-flexible-text,[thyFlexibleText]',\n exportAs: 'thyFlexibleText',\n templateUrl: './flexible-text.component.html',\n hostDirectives: [ThyTooltipDirective]\n})\nexport class ThyFlexibleText implements OnInit, AfterContentInit, OnDestroy {\n private elementRef = inject(ElementRef);\n private contentObserver = inject(ContentObserver);\n private ngZone = inject(NgZone);\n tooltipDirective = inject(ThyTooltipDirective);\n\n isOverflow = false;\n\n content: string | TemplateRef<HTMLElement>;\n\n placement: ThyPlacement;\n\n containerClass: string;\n\n subscription: Subscription | null = null;\n\n offset: number;\n\n /**\n * 触发提示方式\n * @type hover | focus | click\n * @default hover\n */\n @Input('thyTooltipTrigger') trigger: 'hover' | 'focus' | 'click';\n\n /**\n * 自定义class类,如果不设置默认会包含 `flexible-text-container`\n */\n @Input('thyContainerClass')\n set thyContainerClass(value: string) {\n this.containerClass = value;\n this.updateContainerClass();\n }\n\n get thyContainerClass(): string {\n return this.containerClass;\n }\n\n /**\n * 需要展示的全部内容\n * @type string | TemplateRef<HTMLElement>\n */\n @Input('thyTooltipContent') set thyContent(value: string | TemplateRef<HTMLElement>) {\n this.content = value;\n if (this.tooltipDirective) {\n this.tooltipDirective.content = this.content;\n }\n }\n\n /**\n * tooltip 的提示位置\n * @type top | bottom | left | right\n * @default top\n */\n @Input('thyTooltipPlacement') set thyPlacement(value: ThyPlacement) {\n this.placement = value;\n if (this.tooltipDirective) {\n this.tooltipDirective.placement = this.placement;\n }\n }\n\n /**\n * tooltip 偏移量\n */\n @Input({ alias: 'thyTooltipOffset', transform: numberAttribute }) set thyOffset(value: number) {\n this.offset = value;\n if (this.tooltipDirective) {\n this.tooltipDirective.tooltipOffset = this.offset;\n }\n }\n\n private destroy$ = new Subject<void>();\n\n private hostRenderer = useHostRenderer();\n\n static createResizeObserver(element: HTMLElement) {\n return new Observable(observer => {\n const resize = new ResizeObserver(entries => {\n observer.next(entries);\n });\n resize.observe(element);\n return () => {\n resize.disconnect();\n };\n });\n }\n\n ngOnInit() {\n this.updateContainerClass();\n if (this.placement) {\n this.tooltipDirective.placement = this.placement;\n }\n if (this.offset) {\n this.tooltipDirective.tooltipOffset = this.offset;\n }\n if (this.trigger) {\n this.tooltipDirective.trigger = this.trigger;\n }\n this.tooltipDirective.content = this.content;\n this.tooltipDirective.thyTooltipDisabled = true;\n }\n\n ngAfterContentInit() {\n // Note: the zone may be nooped through `BootstrapOptions` when bootstrapping the root module. This means\n // the `onStable` will never emit any value.\n const onStable$ = this.ngZone.isStable ? from(Promise.resolve()) : this.ngZone.onStable.pipe(take(1));\n // Normally this isn't in the zone, but it can cause performance regressions for apps\n // using `zone-patch-rxjs` because it'll trigger a change detection when it unsubscribes.\n this.ngZone.runOutsideAngular(() => {\n // Wait for the next time period to avoid blocking the js thread.\n onStable$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.contentObserver\n .observe(this.elementRef)\n .pipe(debounceTime(100), takeUntil(this.destroy$))\n .subscribe(() => {\n this.applyOverflow();\n });\n\n ThyFlexibleText.createResizeObserver(this.elementRef.nativeElement)\n .pipe(debounceTime(100), takeUntil(this.destroy$))\n .subscribe(() => {\n this.applyOverflow();\n });\n });\n });\n }\n\n ngOnDestroy() {\n this.destroy$.next();\n this.tooltipDirective.hide();\n }\n\n applyOverflow() {\n const nativeElement = this.elementRef.nativeElement;\n if (nativeElement.clientWidth < nativeElement.scrollWidth || nativeElement.clientHeight < nativeElement.scrollHeight) {\n this.isOverflow = true;\n } else {\n this.isOverflow = false;\n }\n this.tooltipDirective.thyTooltipDisabled = !this.isOverflow;\n }\n\n updateContainerClass() {\n const containerClass = isUndefinedOrNull(this.containerClass) ? 'flexible-text-container' : this.containerClass;\n const flexibleTextClass = {\n 'text-truncate': true,\n [containerClass]: containerClass !== ''\n };\n this.hostRenderer.updateClassByMap(flexibleTextClass);\n }\n}\n","<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyFlexibleText } from './flexible-text.component';\nimport { ThyTooltipModule } from 'ngx-tethys/tooltip';\nimport { ObserversModule } from '@angular/cdk/observers';\n\n@NgModule({\n imports: [CommonModule, ThyTooltipModule, ObserversModule, ThyFlexibleText],\n exports: [ThyFlexibleText]\n})\nexport class ThyFlexibleTextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoBA;;;AAGG;MAOU,eAAe,CAAA;AAN5B,IAAA,WAAA,GAAA;AAOY,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,mBAAmB,CAAC;QAE9C,IAAU,CAAA,UAAA,GAAG,KAAK;QAQlB,IAAY,CAAA,YAAA,GAAwB,IAAI;AAyDhC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAA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OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAHpB,OAAA,EAAA,CAAA,YAAY,EAAE,gBAAgB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;;2FAGhD,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,CAAC;oBAC3E,OAAO,EAAE,CAAC,eAAe;AAC5B,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -138,10 +138,10 @@ class ThyFormValidatorLoader {
|
|
|
138
138
|
setGlobalValidationMessages(validationMessages) {
|
|
139
139
|
this.config.globalValidationMessages = validationMessages;
|
|
140
140
|
}
|
|
141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
142
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormValidatorLoader, deps: [{ token: THY_VALIDATOR_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
142
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormValidatorLoader }); }
|
|
143
143
|
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormValidatorLoader, decorators: [{
|
|
145
145
|
type: Injectable
|
|
146
146
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
147
147
|
type: Optional
|
|
@@ -388,10 +388,10 @@ class ThyFormValidatorService {
|
|
|
388
388
|
ngOnDestroy() {
|
|
389
389
|
this._destroy$.next();
|
|
390
390
|
}
|
|
391
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
392
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
391
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormValidatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
392
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormValidatorService }); }
|
|
393
393
|
}
|
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormValidatorService, decorators: [{
|
|
395
395
|
type: Injectable
|
|
396
396
|
}] });
|
|
397
397
|
|
|
@@ -515,10 +515,10 @@ class ThyFormDirective {
|
|
|
515
515
|
this._unsubscribe = null;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
519
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
519
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyFormDirective, isStandalone: true, selector: "[thyForm],[thy-form]", inputs: { thyLayout: "thyLayout", thyEnterKeyMode: "thyEnterKeyMode", thyFormValidatorConfig: "thyFormValidatorConfig" }, host: { properties: { "class.was-validated": "this.wasValidated" }, classAttribute: "thy-form" }, providers: [ThyFormValidatorService], queries: [{ propertyName: "controls", predicate: NgControl, descendants: true }], exportAs: ["thyForm"], ngImport: i0 }); }
|
|
520
520
|
}
|
|
521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormDirective, decorators: [{
|
|
522
522
|
type: Directive,
|
|
523
523
|
args: [{
|
|
524
524
|
selector: '[thyForm],[thy-form]',
|
|
@@ -526,8 +526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
526
526
|
exportAs: 'thyForm',
|
|
527
527
|
host: {
|
|
528
528
|
class: 'thy-form'
|
|
529
|
-
}
|
|
530
|
-
standalone: true
|
|
529
|
+
}
|
|
531
530
|
}]
|
|
532
531
|
}], ctorParameters: () => [], propDecorators: { thyLayout: [{
|
|
533
532
|
type: Input
|
|
@@ -573,10 +572,10 @@ class ThyFormGroupError {
|
|
|
573
572
|
this.isHorizontal = this.thyParentForm.isHorizontal;
|
|
574
573
|
}
|
|
575
574
|
}
|
|
576
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
577
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroupError, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
576
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyFormGroupError, isStandalone: true, selector: "thy-form-group-error", inputs: { thyShowFirst: ["thyShowFirst", "thyShowFirst", coerceBooleanProperty$1], thyErrors: "thyErrors" }, host: { properties: { "class.form-group": "this._isFormGroup", "class.row": "this.isHorizontal" } }, ngImport: i0, template: "<div [ngClass]=\"{ 'col-sm-10 offset-sm-2 col-form-control': isHorizontal }\">\n @for (error of thyErrors; track $index) {\n <thy-alert thyType=\"danger\" [thyMessage]=\"error\"></thy-alert>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyAlert, selector: "thy-alert", inputs: ["thyType", "thyTheme", "thyMessage", "thyIcon", "thyCloseable"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
578
577
|
}
|
|
579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroupError, decorators: [{
|
|
580
579
|
type: Component,
|
|
581
580
|
args: [{ selector: 'thy-form-group-error', encapsulation: ViewEncapsulation.None, imports: [NgClass, ThyAlert], template: "<div [ngClass]=\"{ 'col-sm-10 offset-sm-2 col-form-control': isHorizontal }\">\n @for (error of thyErrors; track $index) {\n <thy-alert thyType=\"danger\" [thyMessage]=\"error\"></thy-alert>\n }\n</div>\n" }]
|
|
582
581
|
}], propDecorators: { thyShowFirst: [{
|
|
@@ -613,14 +612,13 @@ class ThyFormGroupLabelDirective {
|
|
|
613
612
|
set thyLabelRequired(value) {
|
|
614
613
|
this.labelRequired = value;
|
|
615
614
|
}
|
|
616
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
617
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.
|
|
615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroupLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
616
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.6", type: ThyFormGroupLabelDirective, isStandalone: true, selector: "[thyFormGroupLabel]", inputs: { thyLabelText: "thyLabelText", thyLabelTranslateKey: "thyLabelTranslateKey", thyLabelRequired: ["thyLabelRequired", "thyLabelRequired", coerceBooleanProperty$1] }, host: { properties: { "class.label-required": "this.labelRequired", "class.col-form-label": "this._isFormGroupLabel" } }, ngImport: i0 }); }
|
|
618
617
|
}
|
|
619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroupLabelDirective, decorators: [{
|
|
620
619
|
type: Directive,
|
|
621
620
|
args: [{
|
|
622
|
-
selector: '[thyFormGroupLabel]'
|
|
623
|
-
standalone: true
|
|
621
|
+
selector: '[thyFormGroupLabel]'
|
|
624
622
|
}]
|
|
625
623
|
}], propDecorators: { labelRequired: [{
|
|
626
624
|
type: HostBinding,
|
|
@@ -727,10 +725,10 @@ class ThyFormGroup {
|
|
|
727
725
|
ngOnInit() {
|
|
728
726
|
this.isHorizontal = this.thyParentForm ? this.thyParentForm.isHorizontal : true;
|
|
729
727
|
}
|
|
730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
731
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
729
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyFormGroup, isStandalone: true, selector: "thy-form-group", inputs: { thyLabelText: "thyLabelText", thyLabelTextTranslateKey: "thyLabelTextTranslateKey", thyLabelRequired: ["thyLabelRequired", "thyLabelRequired", coerceBooleanProperty$1], thyLabelPaddingTopClear: ["thyLabelPaddingTopClear", "thyLabelPaddingTopClear", coerceBooleanProperty$1], thyFeedbackIcon: "thyFeedbackIcon", thyTipsMode: "thyTipsMode", thyTips: "thyTips", thyTipsTranslateKey: "thyTipsTranslateKey", thyRowFill: ["thyRowFill", "thyRowFill", coerceBooleanProperty$1] }, host: { properties: { "class.row-fill": "this._rowFill", "class.form-group": "this._isFormGroup", "class.row": "this.isHorizontal", "class.has-feedback": "this.hasFeedback" } }, queries: [{ propertyName: "contentTemplateRef", first: true, predicate: ["formGroup"], descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: "@if (contentTemplate || contentTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate || contentTemplateRef\"></ng-container>\n @if (feedbackSvgIconName) {\n <thy-icon class=\"form-control-feedback\" [thyIconName]=\"feedbackSvgIconName\"></thy-icon>\n } @else {\n @if (feedbackIcon) {\n <span class=\"form-control-feedback {{ feedbackIcon }}\"></span>\n }\n }\n} @else {\n @if (!(!isHorizontal && !labelText)) {\n <label\n class=\"form-label \"\n [ngClass]=\"{\n 'col-sm-2 col-form-label': isHorizontal,\n 'pt-0': labelPaddingTopClear\n }\"\n >\n <span\n [ngClass]=\"{\n 'label-required': labelRequired\n }\"\n >{{ labelText }}</span\n >\n @if (tipMode === 'label' && tips) {\n <thy-icon class=\"label-tips-icon\" thyIconName=\"question-circle\" [thyTooltip]=\"tips\"></thy-icon>\n }\n </label>\n }\n <div [ngClass]=\"{ 'col-sm-10 col-form-control': isHorizontal, 'position-relative': !isHorizontal }\">\n <ng-content></ng-content>\n @if (feedbackSvgIconName) {\n <thy-icon class=\"form-control-feedback\" [thyIconName]=\"feedbackSvgIconName\"></thy-icon>\n } @else {\n @if (feedbackIcon) {\n <span class=\"form-control-feedback {{ feedbackIcon }}\"></span>\n }\n }\n @if (tipMode === 'default' && tips) {\n <span class=\"form-text text-desc\">{{ tips }}</span>\n }\n </div>\n }\n\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
732
730
|
}
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroup, decorators: [{
|
|
734
732
|
type: Component,
|
|
735
733
|
args: [{ selector: 'thy-form-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, ThyIcon, NgClass, ThyTooltipDirective], template: "@if (contentTemplate || contentTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate || contentTemplateRef\"></ng-container>\n @if (feedbackSvgIconName) {\n <thy-icon class=\"form-control-feedback\" [thyIconName]=\"feedbackSvgIconName\"></thy-icon>\n } @else {\n @if (feedbackIcon) {\n <span class=\"form-control-feedback {{ feedbackIcon }}\"></span>\n }\n }\n} @else {\n @if (!(!isHorizontal && !labelText)) {\n <label\n class=\"form-label \"\n [ngClass]=\"{\n 'col-sm-2 col-form-label': isHorizontal,\n 'pt-0': labelPaddingTopClear\n }\"\n >\n <span\n [ngClass]=\"{\n 'label-required': labelRequired\n }\"\n >{{ labelText }}</span\n >\n @if (tipMode === 'label' && tips) {\n <thy-icon class=\"label-tips-icon\" thyIconName=\"question-circle\" [thyTooltip]=\"tips\"></thy-icon>\n }\n </label>\n }\n <div [ngClass]=\"{ 'col-sm-10 col-form-control': isHorizontal, 'position-relative': !isHorizontal }\">\n <ng-content></ng-content>\n @if (feedbackSvgIconName) {\n <thy-icon class=\"form-control-feedback\" [thyIconName]=\"feedbackSvgIconName\"></thy-icon>\n } @else {\n @if (feedbackIcon) {\n <span class=\"form-control-feedback {{ feedbackIcon }}\"></span>\n }\n }\n @if (tipMode === 'default' && tips) {\n <span class=\"form-text text-desc\">{{ tips }}</span>\n }\n </div>\n }\n\n" }]
|
|
736
734
|
}], propDecorators: { _rowFill: [{
|
|
@@ -795,14 +793,13 @@ class ThyFormSubmitDirective {
|
|
|
795
793
|
onSubmit($event) {
|
|
796
794
|
this.thyFormDirective.submit($event);
|
|
797
795
|
}
|
|
798
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
799
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
796
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormSubmitDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
797
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyFormSubmitDirective, isStandalone: true, selector: "[thyFormSubmit],[thy-form-submit]", outputs: { thyFormSubmit: "thyFormSubmit" }, host: { listeners: { "click": "onSubmit($event)" } }, ngImport: i0 }); }
|
|
800
798
|
}
|
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormSubmitDirective, decorators: [{
|
|
802
800
|
type: Directive,
|
|
803
801
|
args: [{
|
|
804
|
-
selector: '[thyFormSubmit],[thy-form-submit]'
|
|
805
|
-
standalone: true
|
|
802
|
+
selector: '[thyFormSubmit],[thy-form-submit]'
|
|
806
803
|
}]
|
|
807
804
|
}], propDecorators: { thyFormSubmit: [{
|
|
808
805
|
type: Output
|
|
@@ -840,10 +837,10 @@ class ThyFormGroupFooter {
|
|
|
840
837
|
[`form-group-footer-align-${this.align}`]: true
|
|
841
838
|
};
|
|
842
839
|
}
|
|
843
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
844
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
840
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroupFooter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
841
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyFormGroupFooter, isStandalone: true, selector: "thy-form-group-footer", inputs: { thyAlign: "thyAlign" }, host: { properties: { "class.form-group": "this._isFormGroup", "class.row": "this.isHorizontal" } }, queries: [{ propertyName: "description", first: true, predicate: ["description"], descendants: true }], ngImport: i0, template: "<div [ngClass]=\"footerClassMap\">\n <div class=\"btn-pair form-footer-actions\">\n <ng-content></ng-content>\n </div>\n\n @if (description) {\n <div class=\"form-footer-description\">\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
845
842
|
}
|
|
846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormGroupFooter, decorators: [{
|
|
847
844
|
type: Component,
|
|
848
845
|
args: [{ selector: 'thy-form-group-footer', encapsulation: ViewEncapsulation.None, imports: [NgClass, NgTemplateOutlet], template: "<div [ngClass]=\"footerClassMap\">\n <div class=\"btn-pair form-footer-actions\">\n <ng-content></ng-content>\n </div>\n\n @if (description) {\n <div class=\"form-footer-description\">\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\n </div>\n }\n</div>\n" }]
|
|
849
846
|
}], propDecorators: { _isFormGroup: [{
|
|
@@ -879,8 +876,8 @@ class ThyUniqueCheckValidator {
|
|
|
879
876
|
return failed ? { thyUniqueCheck: failed } : null;
|
|
880
877
|
}), catchError(() => of(null)));
|
|
881
878
|
}
|
|
882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
883
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
879
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyUniqueCheckValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
880
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyUniqueCheckValidator, isStandalone: true, selector: "[thyUniqueCheck]", inputs: { thyUniqueCheck: "thyUniqueCheck" }, providers: [
|
|
884
881
|
{
|
|
885
882
|
provide: NG_ASYNC_VALIDATORS,
|
|
886
883
|
useExisting: ThyUniqueCheckValidator,
|
|
@@ -888,7 +885,7 @@ class ThyUniqueCheckValidator {
|
|
|
888
885
|
}
|
|
889
886
|
], ngImport: i0 }); }
|
|
890
887
|
}
|
|
891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyUniqueCheckValidator, decorators: [{
|
|
892
889
|
type: Directive,
|
|
893
890
|
args: [{
|
|
894
891
|
selector: '[thyUniqueCheck]',
|
|
@@ -898,8 +895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
898
895
|
useExisting: ThyUniqueCheckValidator,
|
|
899
896
|
multi: true
|
|
900
897
|
}
|
|
901
|
-
]
|
|
902
|
-
standalone: true
|
|
898
|
+
]
|
|
903
899
|
}]
|
|
904
900
|
}], propDecorators: { thyUniqueCheck: [{
|
|
905
901
|
type: Input
|
|
@@ -916,8 +912,8 @@ class ThyMinDirective {
|
|
|
916
912
|
validate(control) {
|
|
917
913
|
return this._validator(control);
|
|
918
914
|
}
|
|
919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
920
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
915
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyMinDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
916
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyMinDirective, isStandalone: true, selector: "[min][formControlName],[min][formControl],[min][ngModel]", inputs: { min: "min" }, providers: [
|
|
921
917
|
{
|
|
922
918
|
provide: NG_VALIDATORS,
|
|
923
919
|
useExisting: forwardRef(() => ThyMinDirective),
|
|
@@ -925,7 +921,7 @@ class ThyMinDirective {
|
|
|
925
921
|
}
|
|
926
922
|
], ngImport: i0 }); }
|
|
927
923
|
}
|
|
928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyMinDirective, decorators: [{
|
|
929
925
|
type: Directive,
|
|
930
926
|
args: [{
|
|
931
927
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -936,8 +932,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
936
932
|
useExisting: forwardRef(() => ThyMinDirective),
|
|
937
933
|
multi: true
|
|
938
934
|
}
|
|
939
|
-
]
|
|
940
|
-
standalone: true
|
|
935
|
+
]
|
|
941
936
|
}]
|
|
942
937
|
}], propDecorators: { min: [{
|
|
943
938
|
type: Input
|
|
@@ -954,8 +949,8 @@ class ThyMaxDirective {
|
|
|
954
949
|
validate(control) {
|
|
955
950
|
return this._validator(control);
|
|
956
951
|
}
|
|
957
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
958
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyMaxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
953
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyMaxDirective, isStandalone: true, selector: "[max][formControlName],[max][formControl],[max][ngModel]", inputs: { max: "max" }, providers: [
|
|
959
954
|
{
|
|
960
955
|
provide: NG_VALIDATORS,
|
|
961
956
|
useExisting: forwardRef(() => ThyMaxDirective),
|
|
@@ -963,7 +958,7 @@ class ThyMaxDirective {
|
|
|
963
958
|
}
|
|
964
959
|
], ngImport: i0 }); }
|
|
965
960
|
}
|
|
966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyMaxDirective, decorators: [{
|
|
967
962
|
type: Directive,
|
|
968
963
|
args: [{
|
|
969
964
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -974,8 +969,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
974
969
|
useExisting: forwardRef(() => ThyMaxDirective),
|
|
975
970
|
multi: true
|
|
976
971
|
}
|
|
977
|
-
]
|
|
978
|
-
standalone: true
|
|
972
|
+
]
|
|
979
973
|
}]
|
|
980
974
|
}], propDecorators: { max: [{
|
|
981
975
|
type: Input
|
|
@@ -996,16 +990,15 @@ class ThyConfirmValidatorDirective {
|
|
|
996
990
|
validate(control) {
|
|
997
991
|
return confirmValidator(this.confirm)(control);
|
|
998
992
|
}
|
|
999
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1000
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
993
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyConfirmValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
994
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyConfirmValidatorDirective, isStandalone: true, selector: "[confirm]", inputs: { confirm: "confirm" }, providers: [{ provide: NG_VALIDATORS, useExisting: ThyConfirmValidatorDirective, multi: true }], ngImport: i0 }); }
|
|
1001
995
|
}
|
|
1002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyConfirmValidatorDirective, decorators: [{
|
|
1003
997
|
type: Directive,
|
|
1004
998
|
args: [{
|
|
1005
999
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1006
1000
|
selector: '[confirm]',
|
|
1007
|
-
providers: [{ provide: NG_VALIDATORS, useExisting: ThyConfirmValidatorDirective, multi: true }]
|
|
1008
|
-
standalone: true
|
|
1001
|
+
providers: [{ provide: NG_VALIDATORS, useExisting: ThyConfirmValidatorDirective, multi: true }]
|
|
1009
1002
|
}]
|
|
1010
1003
|
}], propDecorators: { confirm: [{
|
|
1011
1004
|
type: Input
|
|
@@ -1023,8 +1016,8 @@ class ThyFormModule {
|
|
|
1023
1016
|
]
|
|
1024
1017
|
};
|
|
1025
1018
|
}
|
|
1026
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1027
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
1019
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1020
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ThyFormModule, imports: [CommonModule,
|
|
1028
1021
|
FormsModule,
|
|
1029
1022
|
ReactiveFormsModule,
|
|
1030
1023
|
ThyInputModule,
|
|
@@ -1050,7 +1043,7 @@ class ThyFormModule {
|
|
|
1050
1043
|
ThyMinDirective,
|
|
1051
1044
|
ThyMaxDirective,
|
|
1052
1045
|
ThyConfirmValidatorDirective] }); }
|
|
1053
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
1046
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormModule, providers: [ThyFormValidatorLoader, THY_FORM_CONFIG_PROVIDER], imports: [CommonModule,
|
|
1054
1047
|
FormsModule,
|
|
1055
1048
|
ReactiveFormsModule,
|
|
1056
1049
|
ThyInputModule,
|
|
@@ -1060,7 +1053,7 @@ class ThyFormModule {
|
|
|
1060
1053
|
ThyFormGroup,
|
|
1061
1054
|
ThyFormGroupError] }); }
|
|
1062
1055
|
}
|
|
1063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyFormModule, decorators: [{
|
|
1064
1057
|
type: NgModule,
|
|
1065
1058
|
args: [{
|
|
1066
1059
|
imports: [
|