ngx-tethys 19.0.12 → 19.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/action/action.component.d.ts +2 -2
  3. package/alert/alert.component.d.ts +1 -1
  4. package/anchor/anchor-link.component.d.ts +8 -8
  5. package/anchor/anchor.component.d.ts +15 -21
  6. package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
  7. package/autocomplete/autocomplete.component.d.ts +10 -17
  8. package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
  9. package/avatar/avatar-list/avatar-list.component.d.ts +1 -1
  10. package/avatar/avatar.component.d.ts +5 -5
  11. package/back-top/back-top.component.d.ts +9 -12
  12. package/badge/badge.component.d.ts +19 -59
  13. package/breadcrumb/breadcrumb.component.d.ts +15 -20
  14. package/button/button-icon.component.d.ts +3 -2
  15. package/button/button.component.d.ts +3 -2
  16. package/calendar/calendar-header.component.d.ts +9 -8
  17. package/calendar/calendar.component.d.ts +16 -16
  18. package/card/card.component.d.ts +5 -11
  19. package/card/content.component.d.ts +3 -8
  20. package/card/header.component.d.ts +7 -8
  21. package/carousel/carousel.component.d.ts +22 -27
  22. package/cascader/cascader-li.component.d.ts +13 -21
  23. package/cascader/cascader-search-option.component.d.ts +8 -16
  24. package/cascader/cascader.component.d.ts +58 -80
  25. package/checkbox/checkbox.component.d.ts +2 -5
  26. package/collapse/collapse-item.component.d.ts +12 -19
  27. package/collapse/collapse.component.d.ts +6 -12
  28. package/collapse/collapse.token.d.ts +3 -3
  29. package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
  30. package/color-picker/color-picker-panel.component.d.ts +7 -11
  31. package/color-picker/color-picker.component.d.ts +19 -35
  32. package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
  33. package/color-picker/parts/hue/hue.component.d.ts +6 -6
  34. package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
  35. package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
  36. package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
  37. package/comment/comment.component.d.ts +4 -5
  38. package/copy/copy.directive.d.ts +8 -9
  39. package/date-picker/abstract-picker.component.d.ts +8 -7
  40. package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
  41. package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
  42. package/date-picker/picker.component.d.ts +2 -1
  43. package/date-range/date-range.component.d.ts +2 -2
  44. package/dialog/body/dialog-body.component.d.ts +2 -6
  45. package/dialog/confirm/confirm.component.d.ts +2 -2
  46. package/dialog/footer/dialog-footer.component.d.ts +6 -9
  47. package/dialog/header/dialog-header.component.d.ts +9 -11
  48. package/divider/divider.component.d.ts +12 -16
  49. package/dot/dot.component.d.ts +5 -13
  50. package/drag-drop/drag-handle.directive.d.ts +2 -1
  51. package/drag-drop/drag.directive.d.ts +2 -1
  52. package/drag-drop/drop-container.directive.d.ts +2 -1
  53. package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
  54. package/dropdown/dropdown-menu.component.d.ts +2 -1
  55. package/dropdown/dropdown.directive.d.ts +2 -1
  56. package/empty/empty.component.d.ts +21 -27
  57. package/fesm2022/ngx-tethys-anchor.mjs +91 -118
  58. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  59. package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
  60. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
  62. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  64. package/fesm2022/ngx-tethys-back-top.mjs +33 -46
  65. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  66. package/fesm2022/ngx-tethys-badge.mjs +104 -208
  67. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  68. package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
  69. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  70. package/fesm2022/ngx-tethys-calendar.mjs +85 -87
  71. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  72. package/fesm2022/ngx-tethys-card.mjs +72 -77
  73. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  74. package/fesm2022/ngx-tethys-carousel.mjs +82 -99
  75. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  76. package/fesm2022/ngx-tethys-cascader.mjs +313 -468
  77. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  78. package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
  79. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  80. package/fesm2022/ngx-tethys-collapse.mjs +66 -71
  81. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  82. package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
  83. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  84. package/fesm2022/ngx-tethys-comment.mjs +16 -10
  85. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  86. package/fesm2022/ngx-tethys-copy.mjs +25 -28
  87. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  88. package/fesm2022/ngx-tethys-dialog.mjs +81 -82
  89. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  90. package/fesm2022/ngx-tethys-divider.mjs +49 -58
  91. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  92. package/fesm2022/ngx-tethys-dot.mjs +45 -68
  93. package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
  94. package/fesm2022/ngx-tethys-empty.mjs +107 -95
  95. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  96. package/fesm2022/ngx-tethys-form.mjs +161 -200
  97. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  98. package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
  99. package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
  100. package/fesm2022/ngx-tethys-grid.mjs +160 -152
  101. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  102. package/fesm2022/ngx-tethys-i18n.mjs +25 -25
  103. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  104. package/fesm2022/ngx-tethys-input-number.mjs +101 -114
  105. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  106. package/fesm2022/ngx-tethys-input.mjs +268 -271
  107. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  108. package/fesm2022/ngx-tethys-loading.mjs +17 -35
  109. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  110. package/fesm2022/ngx-tethys-mention.mjs +3 -3
  111. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  112. package/fesm2022/ngx-tethys-menu.mjs +106 -179
  113. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  114. package/fesm2022/ngx-tethys-nav.mjs +169 -201
  115. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  116. package/fesm2022/ngx-tethys-pagination.mjs +230 -294
  117. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  118. package/fesm2022/ngx-tethys-popover.mjs +67 -70
  119. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  120. package/fesm2022/ngx-tethys-progress.mjs +196 -244
  121. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  122. package/fesm2022/ngx-tethys-property.mjs +102 -105
  123. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  124. package/fesm2022/ngx-tethys-radio.mjs +34 -38
  125. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  126. package/fesm2022/ngx-tethys-result.mjs +46 -28
  127. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  128. package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
  129. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  130. package/fesm2022/ngx-tethys-slider.mjs +75 -108
  131. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  132. package/fesm2022/ngx-tethys-space.mjs +26 -46
  133. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  134. package/fesm2022/ngx-tethys-statistic.mjs +114 -151
  135. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  136. package/fesm2022/ngx-tethys-stepper.mjs +74 -107
  137. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  138. package/fesm2022/ngx-tethys-switch.mjs +80 -140
  139. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  140. package/fesm2022/ngx-tethys-table.mjs +1 -1
  141. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  142. package/fesm2022/ngx-tethys-tabs.mjs +69 -87
  143. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  144. package/fesm2022/ngx-tethys-tag.mjs +42 -64
  145. package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
  146. package/fesm2022/ngx-tethys-timeline.mjs +104 -129
  147. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  148. package/fesm2022/ngx-tethys-typography.mjs +36 -33
  149. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  150. package/fesm2022/ngx-tethys-upload.mjs +91 -130
  151. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  152. package/fesm2022/ngx-tethys-util.mjs.map +1 -1
  153. package/fesm2022/ngx-tethys-watermark.mjs +36 -40
  154. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  155. package/fesm2022/ngx-tethys.mjs +1 -1
  156. package/fesm2022/ngx-tethys.mjs.map +1 -1
  157. package/form/form-group-error/form-group-error.component.d.ts +2 -3
  158. package/form/form-group-label.directive.d.ts +2 -1
  159. package/form/form-group.component.d.ts +17 -24
  160. package/form/form-submit.directive.d.ts +2 -2
  161. package/form/form.directive.d.ts +6 -8
  162. package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
  163. package/form/validator/confirm-validator.directive.d.ts +2 -2
  164. package/form/validator/unique-validator.directive.d.ts +2 -2
  165. package/fullscreen/fullscreen.component.d.ts +7 -7
  166. package/grid/flex.d.ts +14 -19
  167. package/grid/thy-col.directive.d.ts +6 -9
  168. package/grid/thy-grid-item.component.d.ts +3 -4
  169. package/grid/thy-grid.component.d.ts +11 -12
  170. package/grid/thy-row.directive.d.ts +12 -12
  171. package/icon/icon.component.d.ts +3 -2
  172. package/image/image.directive.d.ts +3 -2
  173. package/input/input-count.component.d.ts +4 -5
  174. package/input/input-group.component.d.ts +20 -20
  175. package/input/input-search.component.d.ts +15 -20
  176. package/input/input.component.d.ts +20 -21
  177. package/input/input.directive.d.ts +4 -6
  178. package/input-number/input-number.component.d.ts +21 -29
  179. package/layout/header.component.d.ts +4 -9
  180. package/layout/sidebar-header.component.d.ts +2 -1
  181. package/layout/sidebar.component.d.ts +8 -7
  182. package/list/list.component.d.ts +2 -1
  183. package/list/selection/selection-list.d.ts +4 -3
  184. package/loading/loading.component.d.ts +4 -10
  185. package/mention/mention.directive.d.ts +2 -2
  186. package/menu/group/menu-group.component.d.ts +16 -33
  187. package/menu/item/action/menu-item-action.component.d.ts +7 -8
  188. package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
  189. package/menu/item/menu-item.component.d.ts +4 -4
  190. package/menu/item/name/menu-item-name.component.d.ts +2 -3
  191. package/menu/menu.component.d.ts +3 -7
  192. package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
  193. package/nav/icon-nav/icon-nav.component.d.ts +3 -8
  194. package/nav/nav-ink-bar.directive.d.ts +4 -6
  195. package/nav/nav-item.directive.d.ts +7 -10
  196. package/nav/nav.component.d.ts +20 -48
  197. package/package.json +1 -1
  198. package/pagination/pagination.component.d.ts +48 -109
  199. package/popover/header/popover-header.component.d.ts +7 -6
  200. package/popover/popover.directive.d.ts +11 -18
  201. package/progress/progress-circle.component.d.ts +32 -21
  202. package/progress/progress-strip.component.d.ts +10 -14
  203. package/progress/progress.component.d.ts +15 -23
  204. package/property/examples/single/single.component.scss +6 -0
  205. package/property/properties.component.d.ts +6 -13
  206. package/property/property-item.component.d.ts +21 -26
  207. package/property/styles/properties.scss +124 -52
  208. package/property-operation/property-operation.component.d.ts +6 -5
  209. package/radio/button/radio-button.component.d.ts +2 -2
  210. package/radio/group/radio-group.component.d.ts +8 -7
  211. package/radio/radio.component.d.ts +2 -2
  212. package/radio/radio.token.d.ts +2 -2
  213. package/rate/rate-item.component.d.ts +2 -1
  214. package/rate/rate.component.d.ts +4 -3
  215. package/resizable/resizable.directive.d.ts +4 -9
  216. package/resizable/resize-handle.component.d.ts +2 -1
  217. package/resizable/resize-handles.component.d.ts +2 -1
  218. package/result/result.component.d.ts +9 -10
  219. package/schematics/version.d.ts +1 -1
  220. package/schematics/version.js +1 -1
  221. package/segment/segment-item.component.d.ts +2 -1
  222. package/segment/segment.component.d.ts +2 -1
  223. package/select/custom-select/custom-select.component.d.ts +11 -10
  224. package/select/native-select/native-select.component.d.ts +2 -1
  225. package/shared/base-form-check.component.d.ts +3 -2
  226. package/shared/directives/thy-autofocus.directive.d.ts +3 -2
  227. package/shared/directives/thy-scroll.directive.d.ts +2 -1
  228. package/shared/directives/thy-show.d.ts +2 -1
  229. package/shared/option/group/option-group.component.d.ts +2 -1
  230. package/shared/option/list-option/list-option.component.d.ts +2 -7
  231. package/shared/option/option.component.d.ts +2 -1
  232. package/shared/select/select-control/select-control.component.d.ts +7 -6
  233. package/skeleton/skeleton-circle.component.d.ts +16 -19
  234. package/skeleton/skeleton-rectangle.component.d.ts +20 -23
  235. package/skeleton/skeleton.component.d.ts +5 -6
  236. package/skeleton/stylized/bullet-list.component.d.ts +11 -13
  237. package/skeleton/stylized/list.component.d.ts +10 -12
  238. package/skeleton/stylized/paragraph.component.d.ts +12 -14
  239. package/slide/slide-body/slide-body-section.component.d.ts +2 -1
  240. package/slider/slider.component.d.ts +17 -24
  241. package/space/space.component.d.ts +8 -8
  242. package/statistic/statistic.component.d.ts +35 -40
  243. package/stepper/step-header.component.d.ts +6 -10
  244. package/stepper/step.component.d.ts +6 -6
  245. package/stepper/stepper.component.d.ts +15 -20
  246. package/switch/switch.component.d.ts +24 -35
  247. package/table/table-column.component.d.ts +6 -5
  248. package/table/table-skeleton.component.d.ts +3 -10
  249. package/table/table.component.d.ts +11 -10
  250. package/tabs/tab-content.component.d.ts +4 -4
  251. package/tabs/tab.component.d.ts +4 -5
  252. package/tabs/tabs.component.d.ts +13 -15
  253. package/tag/tag.component.d.ts +10 -16
  254. package/time-picker/time-picker-panel.component.d.ts +3 -2
  255. package/time-picker/time-picker.component.d.ts +6 -5
  256. package/timeline/timeline-item.component.d.ts +9 -13
  257. package/timeline/timeline.component.d.ts +13 -17
  258. package/tooltip/tooltip.directive.d.ts +3 -2
  259. package/tree/tree-node.component.d.ts +6 -15
  260. package/tree/tree.component.d.ts +8 -7
  261. package/tree-select/tree-select.component.d.ts +8 -7
  262. package/typography/bg-color.directive.d.ts +3 -3
  263. package/typography/text/text.component.d.ts +2 -2
  264. package/typography/text-color.directive.d.ts +3 -3
  265. package/upload/file-drop.directive.d.ts +9 -11
  266. package/upload/file-select-base.d.ts +6 -10
  267. package/upload/file-select.component.d.ts +10 -20
  268. package/util/helpers/helpers.d.ts +2 -1
  269. package/vote/vote.component.d.ts +4 -3
  270. package/watermark/watermark.directive.d.ts +7 -9
@@ -1,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ import * as i1 from "ngx-tethys/util";
2
3
  /**
3
4
  * 列表组件
4
5
  * @name thy-list
@@ -15,5 +16,5 @@ export declare class ThyList {
15
16
  constructor();
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyList, never>;
17
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyList, "thy-list", never, { "thyDivided": { "alias": "thyDivided"; "required": false; }; }, {}, never, ["*"], true, never>;
18
- static ngAcceptInputType_thyDivided: boolean | string | number;
19
+ static ngAcceptInputType_thyDivided: i1.ThyBooleanInput;
19
20
  }
@@ -5,6 +5,7 @@ import { ControlValueAccessor } from '@angular/forms';
5
5
  import { ThyListLayout } from 'ngx-tethys/shared';
6
6
  import { ThySelectionListChange } from './selection.interface';
7
7
  import * as i0 from "@angular/core";
8
+ import * as i1 from "ngx-tethys/util";
8
9
  export type ThyListSize = 'sm' | 'md' | 'lg';
9
10
  /**
10
11
  * @name thy-selection-list,[thy-selection-list]
@@ -122,7 +123,7 @@ export declare class ThySelectionList implements OnInit, OnDestroy, AfterContent
122
123
  ngOnDestroy(): void;
123
124
  static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectionList, never>;
124
125
  static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectionList, "thy-selection-list,[thy-selection-list]", never, { "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyBindKeyEventContainer": { "alias": "thyBindKeyEventContainer"; "required": false; }; "thyScrollContainer": { "alias": "thyScrollContainer"; "required": false; }; "thyBeforeKeydown": { "alias": "thyBeforeKeydown"; "required": false; }; "thyUniqueKey": { "alias": "thyUniqueKey"; "required": false; }; "thyCompareWith": { "alias": "thyCompareWith"; "required": false; }; "thyLayout": { "alias": "thyLayout"; "required": false; }; "thyAutoActiveFirstItem": { "alias": "thyAutoActiveFirstItem"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thySpaceKeyEnabled": { "alias": "thySpaceKeyEnabled"; "required": false; }; }, { "thySelectionChange": "thySelectionChange"; }, ["options"], ["*"], true, never>;
125
- static ngAcceptInputType_thyMultiple: boolean | string | number;
126
- static ngAcceptInputType_thyAutoActiveFirstItem: boolean | string | number;
127
- static ngAcceptInputType_thySpaceKeyEnabled: boolean | string | number;
126
+ static ngAcceptInputType_thyMultiple: i1.ThyBooleanInput;
127
+ static ngAcceptInputType_thyAutoActiveFirstItem: i1.ThyBooleanInput;
128
+ static ngAcceptInputType_thySpaceKeyEnabled: i1.ThyBooleanInput;
128
129
  }
@@ -5,26 +5,20 @@ import * as i0 from "@angular/core";
5
5
  * @order 10
6
6
  */
7
7
  export declare class ThyLoading {
8
- private changeDetectorRef;
9
- isDone: boolean;
10
- tip: string;
11
- isMask: boolean;
12
8
  /**
13
9
  * 数据是否加载完成
14
10
  * @default false
15
11
  */
16
- set thyDone(value: boolean);
12
+ readonly thyDone: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
17
13
  /**
18
14
  * 自定义加载提示文案
19
15
  */
20
- set thyTip(value: string);
16
+ readonly thyTip: import("@angular/core").InputSignal<string>;
21
17
  /**
22
18
  * 加载时是否启用嵌套遮罩模式,不传或传 false,没有遮罩层,加载完成出现内容
23
19
  */
24
- set thyIsMask(value: boolean);
20
+ readonly thyIsMask: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
21
  loadingClassName: boolean;
26
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyLoading, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyLoading, "thy-loading", never, { "thyDone": { "alias": "thyDone"; "required": false; }; "thyTip": { "alias": "thyTip"; "required": false; }; "thyIsMask": { "alias": "thyIsMask"; "required": false; }; }, {}, never, ["*"], true, never>;
28
- static ngAcceptInputType_thyDone: boolean | string | number;
29
- static ngAcceptInputType_thyIsMask: boolean | string | number;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyLoading, "thy-loading", never, { "thyDone": { "alias": "thyDone"; "required": false; "isSignal": true; }; "thyTip": { "alias": "thyTip"; "required": false; "isSignal": true; }; "thyIsMask": { "alias": "thyIsMask"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
30
24
  }
@@ -25,7 +25,7 @@ export declare class ThyMentionDirective implements OnInit, OnDestroy {
25
25
  /**
26
26
  * 选择后的回调函数
27
27
  */
28
- readonly select: import("@angular/core").OutputEmitterRef<MentionSuggestionSelectEvent<any>>;
28
+ readonly thySelectSuggestion: import("@angular/core").OutputEmitterRef<MentionSuggestionSelectEvent<any>>;
29
29
  get isOpened(): boolean;
30
30
  mentions: import("@angular/core").Signal<(Partial<Mention<unknown>> & Mention<any>)[]>;
31
31
  private destroy$;
@@ -39,5 +39,5 @@ export declare class ThyMentionDirective implements OnInit, OnDestroy {
39
39
  private openSuggestions;
40
40
  private closeSuggestions;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMentionDirective, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyMentionDirective, "[thyMention]", never, { "thyMention": { "alias": "thyMention"; "required": false; "isSignal": true; }; "thyPopoverConfig": { "alias": "thyPopoverConfig"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, never, true, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyMentionDirective, "[thyMention]", never, { "thyMention": { "alias": "thyMention"; "required": false; "isSignal": true; }; "thyPopoverConfig": { "alias": "thyPopoverConfig"; "required": false; "isSignal": true; }; }, { "thySelectSuggestion": "thySelectSuggestion"; }, never, never, true, never>;
43
43
  }
@@ -1,5 +1,5 @@
1
1
  import { ComponentType } from '@angular/cdk/portal';
2
- import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { ElementRef, ModelSignal, OnInit, TemplateRef } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * 菜单分组组件
@@ -8,71 +8,54 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class ThyMenuGroup implements OnInit {
10
10
  private popover;
11
- _actionMenu: ComponentType<any> | TemplateRef<any>;
12
- rightIconClass: string;
13
- iconClass: string;
14
11
  groupHeaderPaddingLeft: number;
15
- _thyMenuGroup: ElementRef;
16
- headerContentTemplateRef: TemplateRef<any>;
17
- isThyMenuGroup: boolean;
18
- showIcon: boolean;
19
- isCollapsed: boolean;
12
+ readonly _thyMenuGroup: import("@angular/core").Signal<ElementRef<any>>;
13
+ readonly headerContentTemplateRef: import("@angular/core").Signal<TemplateRef<any>>;
20
14
  /**
21
15
  * 分组标题
22
16
  */
23
- thyTitle: string;
24
- /**
25
- * 已废弃,请使用 thyCollapsed
26
- * @deprecated
27
- */
28
- set thyExpand(value: boolean);
17
+ readonly thyTitle: import("@angular/core").InputSignal<string>;
29
18
  /**
30
19
  * 是否处于收起状态
31
- * @default false
32
20
  */
33
- set thyCollapsed(value: boolean);
21
+ readonly thyCollapsed: ModelSignal<boolean>;
34
22
  /**
35
23
  * 是否支持展开收起
36
24
  */
37
- thyCollapsible: boolean;
25
+ readonly thyCollapsible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
38
26
  /**
39
27
  * 是否显示 Icon
40
28
  */
41
- set thyShowIcon(value: boolean);
29
+ readonly thyShowIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
42
30
  /**
43
31
  * 图标
44
32
  */
45
- set thyIcon(value: string);
33
+ readonly thyIcon: import("@angular/core").InputSignalWithTransform<string, string>;
46
34
  /**
47
35
  * 操作图标
48
36
  */
49
- set thyActionIcon(value: string);
37
+ readonly thyActionIcon: import("@angular/core").InputSignalWithTransform<string, string>;
50
38
  /**
51
39
  *是否显示操作
52
40
  */
53
- thyShowAction: boolean;
41
+ readonly thyShowAction: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
54
42
  /**
55
43
  * 操作阻止冒泡事件
56
44
  */
57
- thyActionStopPropagation: boolean;
45
+ readonly thyActionStopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
58
46
  /**
59
47
  * Action 点击事件
60
48
  */
61
- thyOnActionClick: EventEmitter<Event>;
62
- thyCollapsedChange: EventEmitter<boolean>;
49
+ readonly thyOnActionClick: import("@angular/core").OutputEmitterRef<Event>;
50
+ readonly thyCollapsedChange: import("@angular/core").OutputEmitterRef<boolean>;
63
51
  /**
64
52
  * 设置 Action 菜单
65
53
  */
66
- set thyActionMenu(value: ComponentType<any> | TemplateRef<any>);
54
+ readonly thyActionMenu: import("@angular/core").InputSignal<TemplateRef<any> | ComponentType<any>>;
55
+ constructor();
67
56
  ngOnInit(): void;
68
57
  collapseGroup(): void;
69
58
  onActionClick(event: Event): void;
70
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuGroup, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuGroup, "thy-menu-group,[thy-menu-group],[thyMenuGroup]", never, { "thyTitle": { "alias": "thyTitle"; "required": false; }; "thyExpand": { "alias": "thyExpand"; "required": false; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; }; "thyCollapsible": { "alias": "thyCollapsible"; "required": false; }; "thyShowIcon": { "alias": "thyShowIcon"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyActionIcon": { "alias": "thyActionIcon"; "required": false; }; "thyShowAction": { "alias": "thyShowAction"; "required": false; }; "thyActionStopPropagation": { "alias": "thyActionStopPropagation"; "required": false; }; "thyActionMenu": { "alias": "thyActionMenu"; "required": false; }; }, { "thyOnActionClick": "thyOnActionClick"; "thyCollapsedChange": "thyCollapsedChange"; }, ["headerContentTemplateRef"], ["*"], true, never>;
72
- static ngAcceptInputType_thyExpand: boolean | string | number;
73
- static ngAcceptInputType_thyCollapsed: boolean | string | number;
74
- static ngAcceptInputType_thyCollapsible: boolean | string | number;
75
- static ngAcceptInputType_thyShowIcon: boolean | string | number;
76
- static ngAcceptInputType_thyShowAction: boolean | string | number;
77
- static ngAcceptInputType_thyActionStopPropagation: boolean | string | number;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuGroup, "thy-menu-group,[thy-menu-group],[thyMenuGroup]", never, { "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; "isSignal": true; }; "thyCollapsible": { "alias": "thyCollapsible"; "required": false; "isSignal": true; }; "thyShowIcon": { "alias": "thyShowIcon"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyActionIcon": { "alias": "thyActionIcon"; "required": false; "isSignal": true; }; "thyShowAction": { "alias": "thyShowAction"; "required": false; "isSignal": true; }; "thyActionStopPropagation": { "alias": "thyActionStopPropagation"; "required": false; "isSignal": true; }; "thyActionMenu": { "alias": "thyActionMenu"; "required": false; "isSignal": true; }; }, { "thyCollapsed": "thyCollapsedChange"; "thyOnActionClick": "thyOnActionClick"; "thyCollapsedChange": "thyCollapsedChange"; }, ["headerContentTemplateRef"], ["*"], true, never>;
78
61
  }
@@ -1,35 +1,34 @@
1
1
  import { ThyPopoverConfig } from 'ngx-tethys/popover';
2
2
  import { ComponentType } from '@angular/cdk/portal';
3
- import { OnDestroy, TemplateRef } from '@angular/core';
3
+ import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * 菜单项操作组件
7
7
  * @name thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction]
8
8
  * @order 25
9
9
  */
10
- export declare class ThyMenuItemAction implements OnDestroy {
10
+ export declare class ThyMenuItemAction implements OnInit, OnDestroy {
11
11
  private popover;
12
12
  private renderer;
13
13
  private elementRef;
14
14
  _boundEvent: boolean;
15
- _actionMenu: ComponentType<any> | TemplateRef<any>;
16
15
  /**
17
16
  * 设置 Action 菜单
18
17
  */
19
- set thyActionMenu(value: ComponentType<any> | TemplateRef<any>);
18
+ readonly thyActionMenu: import("@angular/core").InputSignal<TemplateRef<any> | ComponentType<any>>;
20
19
  /**
21
20
  * 是否阻止事件冒泡
22
21
  */
23
- thyStopPropagation: boolean;
22
+ readonly thyStopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24
23
  /**
25
24
  * 弹出框的参数
26
25
  * @default { placement: "bottomLeft", insideClosable: true }
27
26
  */
28
- thyPopoverOptions: ThyPopoverConfig;
27
+ readonly thyPopoverOptions: import("@angular/core").InputSignal<ThyPopoverConfig<unknown>>;
29
28
  private bindClickEvent;
30
29
  private removeClickListenerFn;
30
+ ngOnInit(): void;
31
31
  ngOnDestroy(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItemAction, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemAction, "thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction]", never, { "thyActionMenu": { "alias": "thyActionMenu"; "required": false; }; "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; }; }, {}, never, ["*"], true, never>;
34
- static ngAcceptInputType_thyStopPropagation: boolean | string | number;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemAction, "thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction]", never, { "thyActionMenu": { "alias": "thyActionMenu"; "required": false; "isSignal": true; }; "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; "isSignal": true; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
35
34
  }
@@ -9,10 +9,10 @@ export declare class ThyMenuItemIcon implements OnInit {
9
9
  /**
10
10
  * 设置图标颜色
11
11
  */
12
- set thyColor(value: string);
12
+ readonly thyColor: import("@angular/core").InputSignal<string>;
13
13
  private hostRenderer;
14
14
  constructor();
15
15
  ngOnInit(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItemIcon, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemIcon, "thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon]", never, { "thyColor": { "alias": "thyColor"; "required": false; }; }, {}, never, ["*"], true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemIcon, "thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon]", never, { "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
18
18
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, AfterViewInit, ElementRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * 菜单项组件
@@ -7,14 +7,14 @@ import * as i0 from "@angular/core";
7
7
  */
8
8
  export declare class ThyMenuItem implements OnInit, AfterViewInit {
9
9
  private renderer;
10
- content: ElementRef<HTMLElement>;
10
+ readonly content: import("@angular/core").Signal<ElementRef<any>>;
11
11
  /**
12
12
  * 菜单项的图标
13
13
  */
14
- thyIcon: string;
14
+ readonly thyIcon: import("@angular/core").InputSignal<string>;
15
15
  ngOnInit(): void;
16
16
  ngAfterViewInit(): void;
17
17
  private wrapSpanForText;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItem, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItem, "thy-menu-item,[thy-menu-item],[thyMenuItem]", never, { "thyIcon": { "alias": "thyIcon"; "required": false; }; }, {}, never, ["*"], true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItem, "thy-menu-item,[thy-menu-item],[thyMenuItem]", never, { "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
20
20
  }
@@ -9,10 +9,9 @@ export declare class ThyMenuItemName implements OnInit {
9
9
  /**
10
10
  * 是否 ellipsis
11
11
  */
12
- thyOverflowEllipsis: boolean;
12
+ readonly thyOverflowEllipsis: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
13
13
  constructor();
14
14
  ngOnInit(): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItemName, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemName, "thy-menu-item-name,[thy-menu-item-name],[thyMenuItemName]", never, { "thyOverflowEllipsis": { "alias": "thyOverflowEllipsis"; "required": false; }; }, {}, never, ["*"], true, never>;
17
- static ngAcceptInputType_thyOverflowEllipsis: boolean | string | number;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemName, "thy-menu-item-name,[thy-menu-item-name],[thyMenuItemName]", never, { "thyOverflowEllipsis": { "alias": "thyOverflowEllipsis"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
18
17
  }
@@ -7,21 +7,17 @@ export type ThyMenuTheme = 'compact' | 'loose' | 'dark';
7
7
  * @order 5
8
8
  */
9
9
  export declare class ThyMenu implements OnInit {
10
- theme: ThyMenuTheme;
11
10
  /**
12
11
  * 主题
13
12
  * @type compact | loose
14
- * @default compact
15
13
  */
16
- set thyTheme(value: ThyMenuTheme);
14
+ readonly thyTheme: import("@angular/core").InputSignalWithTransform<ThyMenuTheme, ThyMenuTheme>;
17
15
  /**
18
16
  * 是否收起
19
- * @default false
20
17
  */
21
- thyCollapsed: boolean;
18
+ readonly thyCollapsed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
22
19
  constructor();
23
20
  ngOnInit(): void;
24
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenu, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenu, "thy-menu,[thy-menu],[thyMenu]", never, { "thyTheme": { "alias": "thyTheme"; "required": false; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
26
- static ngAcceptInputType_thyCollapsed: boolean | string | number;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenu, "thy-menu,[thy-menu],[thyMenu]", never, { "thyTheme": { "alias": "thyTheme"; "required": false; "isSignal": true; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
27
23
  }
@@ -3,12 +3,8 @@ import * as i0 from "@angular/core";
3
3
  * @private
4
4
  */
5
5
  export declare class ThyIconNavLink {
6
- navLinkActive: boolean;
7
- navLinkClass: boolean;
8
- icon: string;
9
- set thyIconNavLinkIcon(icon: string);
10
- set thyIconNavLinkActive(active: boolean);
6
+ readonly thyIconNavLinkIcon: import("@angular/core").InputSignal<string>;
7
+ readonly thyIconNavLinkActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
11
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyIconNavLink, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNavLink, "[thyIconNavLink]", never, { "thyIconNavLinkIcon": { "alias": "thyIconNavLinkIcon"; "required": false; }; "thyIconNavLinkActive": { "alias": "thyIconNavLinkActive"; "required": false; }; }, {}, never, ["*"], true, never>;
13
- static ngAcceptInputType_thyIconNavLinkActive: boolean | string | number;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNavLink, "[thyIconNavLink]", never, { "thyIconNavLinkIcon": { "alias": "thyIconNavLinkIcon"; "required": false; "isSignal": true; }; "thyIconNavLinkActive": { "alias": "thyIconNavLinkActive"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
14
10
  }
@@ -1,20 +1,15 @@
1
- import { OnInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  type IconNavTypes = 'primary' | 'secondary' | 'individual' | '';
4
3
  /**
5
4
  * @private
6
5
  */
7
- export declare class ThyIconNav implements OnInit {
8
- private changeDetectorRef;
9
- private initialized;
6
+ export declare class ThyIconNav {
10
7
  private hostRenderer;
11
- type: IconNavTypes;
12
8
  isIconNav: boolean;
13
- set thyType(type: IconNavTypes);
9
+ readonly thyType: import("@angular/core").InputSignal<IconNavTypes>;
14
10
  private updateClasses;
15
11
  constructor();
16
- ngOnInit(): void;
17
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyIconNav, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNav, "thy-icon-nav", never, { "thyType": { "alias": "thyType"; "required": false; }; }, {}, never, ["*"], true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNav, "thy-icon-nav", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
19
14
  }
20
15
  export {};
@@ -6,9 +6,9 @@ export declare class ThyNavInkBarDirective {
6
6
  private elementRef;
7
7
  private ngZone;
8
8
  animationMode?: "NoopAnimations" | "BrowserAnimations";
9
- isVertical: boolean;
10
- showInkBar: boolean;
11
- get animated(): boolean;
9
+ readonly isVertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
10
+ readonly showInkBar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
11
+ readonly animated: import("@angular/core").Signal<boolean>;
12
12
  alignToElement(element: HTMLElement): void;
13
13
  private setStyles;
14
14
  private getLeftPosition;
@@ -18,7 +18,5 @@ export declare class ThyNavInkBarDirective {
18
18
  private show;
19
19
  hide(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyNavInkBarDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavInkBarDirective, "thy-nav-ink-bar, [thyNavInkBar]", never, { "isVertical": { "alias": "isVertical"; "required": false; }; "showInkBar": { "alias": "showInkBar"; "required": false; }; }, {}, never, never, true, never>;
22
- static ngAcceptInputType_isVertical: boolean | string | number;
23
- static ngAcceptInputType_showInkBar: boolean | string | number;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavInkBarDirective, "thy-nav-ink-bar, [thyNavInkBar]", never, { "isVertical": { "alias": "isVertical"; "required": false; "isSignal": true; }; "showInkBar": { "alias": "showInkBar"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
22
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
2
  import { RouterLinkActive } from '@angular/router';
3
3
  import * as i0 from "@angular/core";
4
4
  export type ThyNavLink = '' | 'active';
@@ -19,26 +19,26 @@ export declare class ThyNavItemDirective implements AfterViewInit {
19
19
  * 是否激活状态
20
20
  * @default false
21
21
  */
22
- thyNavItemActive: boolean;
22
+ readonly thyNavItemActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
23
23
  /**
24
24
  * 已经废弃,请使用 thyNavItemActive
25
25
  * @deprecated please use thyNavItemActive
26
26
  * @default false
27
27
  */
28
- thyNavLinkActive: boolean;
28
+ readonly thyNavLinkActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
29
29
  /**
30
30
  * 是否禁用
31
31
  * @default false
32
32
  */
33
- thyNavItemDisabled: boolean;
33
+ readonly thyNavItemDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
34
34
  /**
35
35
  * @private
36
36
  */
37
- links: QueryList<ThyNavItemDirective>;
37
+ readonly links: import("@angular/core").Signal<readonly any[]>;
38
38
  /**
39
39
  * @private
40
40
  */
41
- routers: QueryList<RouterLinkActive>;
41
+ readonly routers: import("@angular/core").Signal<readonly RouterLinkActive[]>;
42
42
  offset: {
43
43
  width: number;
44
44
  height: number;
@@ -56,8 +56,5 @@ export declare class ThyNavItemDirective implements AfterViewInit {
56
56
  addClass(className: string): void;
57
57
  removeClass(className: string): void;
58
58
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyNavItemDirective, never>;
59
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavItemDirective, "[thyNavLink],[thyNavItem]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "thyNavItemActive": { "alias": "thyNavItemActive"; "required": false; }; "thyNavLinkActive": { "alias": "thyNavLinkActive"; "required": false; }; "thyNavItemDisabled": { "alias": "thyNavItemDisabled"; "required": false; }; }, {}, ["links", "routers"], never, true, never>;
60
- static ngAcceptInputType_thyNavItemActive: boolean | string | number;
61
- static ngAcceptInputType_thyNavLinkActive: boolean | string | number;
62
- static ngAcceptInputType_thyNavItemDisabled: boolean | string | number;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavItemDirective, "[thyNavLink],[thyNavItem]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "thyNavItemActive": { "alias": "thyNavItemActive"; "required": false; "isSignal": true; }; "thyNavLinkActive": { "alias": "thyNavLinkActive"; "required": false; "isSignal": true; }; "thyNavItemDisabled": { "alias": "thyNavItemDisabled"; "required": false; "isSignal": true; }; }, {}, ["links", "routers"], never, true, never>;
63
60
  }
@@ -1,10 +1,10 @@
1
+ import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
1
2
  import { ThyPopoverConfig } from 'ngx-tethys/popover';
2
3
  import { Observable } from 'rxjs';
3
- import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
4
4
  import { RouterLinkActive } from '@angular/router';
5
+ import { ThyNavLocale } from 'ngx-tethys/i18n';
5
6
  import { ThyNavInkBarDirective } from './nav-ink-bar.directive';
6
7
  import { ThyNavItemDirective } from './nav-item.directive';
7
- import { ThyNavLocale } from 'ngx-tethys/i18n';
8
8
  import * as i0 from "@angular/core";
9
9
  export type ThyNavType = 'pulled' | 'tabs' | 'pills' | 'lite' | 'card' | 'primary' | 'secondary' | 'thirdly' | 'secondary-divider';
10
10
  export type ThyNavSize = 'lg' | 'md' | 'sm';
@@ -20,10 +20,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
20
20
  private changeDetectorRef;
21
21
  private popover;
22
22
  private readonly destroyRef;
23
- type: ThyNavType;
24
- private size;
25
23
  initialized: boolean;
26
- horizontal: ThyNavHorizontal;
27
24
  wrapperOffset: {
28
25
  height: number;
29
26
  width: number;
@@ -42,33 +39,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
42
39
  * @type pulled | tabs | pills | lite | primary | secondary | thirdly | secondary-divider
43
40
  * @default pulled
44
41
  */
45
- set thyType(type: ThyNavType);
42
+ readonly thyType: import("@angular/core").InputSignal<ThyNavType>;
46
43
  /**
47
44
  * 导航大小
48
45
  * @type lg | md | sm
49
46
  * @default md
50
47
  */
51
- set thySize(size: ThyNavSize);
48
+ readonly thySize: import("@angular/core").InputSignal<ThyNavSize>;
52
49
  /**
53
50
  * 水平排列
54
51
  * @type '' | 'start' | 'center' | 'end'
55
52
  * @default false
56
53
  */
57
- set thyHorizontal(horizontal: ThyNavHorizontal);
54
+ readonly thyHorizontal: import("@angular/core").InputSignal<ThyNavHorizontal>;
58
55
  /**
59
56
  * 是否垂直排列
60
57
  * @default false
61
58
  */
62
- thyVertical: boolean;
59
+ readonly thyVertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
63
60
  /**
64
61
  * 是否是填充模式
65
62
  */
66
- thyFill: boolean;
63
+ readonly thyFill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
67
64
  /**
68
65
  * 是否响应式,自动计算宽度存放 thyNavItem,并添加更多弹框
69
66
  * @default false
70
67
  */
71
- thyResponsive: boolean;
68
+ readonly thyResponsive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
72
69
  /**
73
70
  * 支持暂停自适应计算
74
71
  */
@@ -77,7 +74,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
77
74
  * 更多操作的菜单点击内部是否可关闭
78
75
  * @deprecated please use thyPopoverOptions
79
76
  */
80
- thyInsideClosable: boolean;
77
+ readonly thyInsideClosable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
81
78
  /**
82
79
  * 更多菜单弹出框的参数,底层使用 Popover 组件
83
80
  * @type ThyPopoverConfig
@@ -87,7 +84,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
87
84
  * 右侧额外区域模板
88
85
  * @type TemplateRef
89
86
  */
90
- thyExtra: TemplateRef<unknown>;
87
+ readonly thyExtra: import("@angular/core").InputSignal<TemplateRef<unknown>>;
91
88
  /**
92
89
  * @private
93
90
  */
@@ -96,30 +93,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
96
93
  /**
97
94
  * @private
98
95
  */
99
- routers: QueryList<RouterLinkActive>;
96
+ readonly routers: Signal<readonly RouterLinkActive[]>;
100
97
  /**
101
98
  * 响应式模式下更多操作模板
102
99
  * @type TemplateRef
103
100
  */
104
- moreOperation: TemplateRef<unknown>;
101
+ readonly moreOperation: Signal<TemplateRef<unknown>>;
105
102
  /**
106
103
  * 响应式模式下更多弹框模板
107
104
  * @type TemplateRef
108
105
  */
109
- morePopover: TemplateRef<unknown>;
106
+ readonly morePopover: Signal<TemplateRef<unknown>>;
110
107
  /**
111
108
  * 右侧额外区域模板,支持 thyExtra 传参和 <ng-template #extra></ng-template> 模板
112
109
  * @name extra
113
110
  * @type TemplateRef
114
111
  */
115
- extra: TemplateRef<unknown>;
116
- defaultMoreOperation: ElementRef<HTMLAnchorElement>;
117
- inkBar: ThyNavInkBarDirective;
112
+ readonly extra: Signal<TemplateRef<unknown>>;
113
+ readonly defaultMoreOperation: Signal<ElementRef<HTMLAnchorElement>>;
114
+ readonly inkBar: Signal<ThyNavInkBarDirective>;
115
+ readonly horizontal: Signal<string>;
118
116
  get showInkBar(): boolean;
119
117
  private updateClasses;
120
118
  private curActiveIndex;
121
119
  private prevActiveIndex;
122
120
  private navSubscription;
121
+ readonly type: Signal<ThyNavType>;
122
+ constructor();
123
123
  ngOnInit(): void;
124
124
  ngAfterViewInit(): void;
125
125
  ngAfterContentInit(): void;
@@ -138,33 +138,5 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
138
138
  ngOnChanges(changes: SimpleChanges): void;
139
139
  ngOnDestroy(): void;
140
140
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyNav, never>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; }; "thyVertical": { "alias": "thyVertical"; "required": false; }; "thyFill": { "alias": "thyFill"; "required": false; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; }; }, {}, ["moreOperation", "morePopover", "extra", "links", "routers"], ["*"], true, never>;
142
- static ngAcceptInputType_thyVertical: boolean | string |
143
- /**
144
- * 导航组件
145
- * @name thy-nav
146
- * @order 10
147
- */
148
- number;
149
- static ngAcceptInputType_thyFill: boolean | string |
150
- /**
151
- * 导航组件
152
- * @name thy-nav
153
- * @order 10
154
- */
155
- number;
156
- static ngAcceptInputType_thyResponsive: boolean | string |
157
- /**
158
- * 导航组件
159
- * @name thy-nav
160
- * @order 10
161
- */
162
- number;
163
- static ngAcceptInputType_thyInsideClosable: boolean | string |
164
- /**
165
- * 导航组件
166
- * @name thy-nav
167
- * @order 10
168
- */
169
- number;
141
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; "isSignal": true; }; "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyFill": { "alias": "thyFill"; "required": false; "isSignal": true; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; "isSignal": true; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; "isSignal": true; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; "isSignal": true; }; }, {}, ["routers", "moreOperation", "morePopover", "extra", "links"], ["*"], true, never>;
170
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "19.0.12",
3
+ "version": "19.1.0-next.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"