ngx-tethys 18.0.7 → 18.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 (273) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/alert/alert.component.d.ts +11 -19
  3. package/anchor/anchor.component.d.ts +1 -3
  4. package/badge/badge.component.d.ts +12 -3
  5. package/date-picker/lib/date/date-table-cell.component.d.ts +1 -1
  6. package/date-picker/lib/popups/date-popup.component.d.ts +0 -1
  7. package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
  8. package/date-range/date-range.component.d.ts +2 -8
  9. package/divider/divider.component.d.ts +8 -2
  10. package/esm2022/action/action.component.mjs +3 -4
  11. package/esm2022/alert/alert.component.mjs +55 -81
  12. package/esm2022/anchor/anchor-link.component.mjs +15 -7
  13. package/esm2022/anchor/anchor.component.mjs +17 -9
  14. package/esm2022/arrow-switcher/arrow-switcher.component.mjs +4 -5
  15. package/esm2022/autocomplete/autocomplete.component.mjs +5 -5
  16. package/esm2022/avatar/avatar-list/avatar-list.component.mjs +4 -4
  17. package/esm2022/avatar/avatar.component.mjs +4 -4
  18. package/esm2022/back-top/back-top.component.mjs +4 -4
  19. package/esm2022/badge/badge.component.mjs +3 -4
  20. package/esm2022/breadcrumb/breadcrumb.component.mjs +4 -6
  21. package/esm2022/button/button-icon.component.mjs +4 -4
  22. package/esm2022/button/button.component.mjs +4 -4
  23. package/esm2022/calendar/calendar-header.component.mjs +4 -4
  24. package/esm2022/calendar/calendar.component.mjs +3 -4
  25. package/esm2022/card/header.component.mjs +4 -4
  26. package/esm2022/carousel/carousel.component.mjs +4 -4
  27. package/esm2022/cascader/cascader-li.component.mjs +4 -4
  28. package/esm2022/cascader/cascader-search-option.component.mjs +4 -4
  29. package/esm2022/cascader/cascader.component.mjs +5 -7
  30. package/esm2022/checkbox/checkbox.component.mjs +5 -5
  31. package/esm2022/collapse/collapse-item.component.mjs +4 -4
  32. package/esm2022/color-picker/color-picker-panel.component.mjs +4 -4
  33. package/esm2022/comment/comment.component.mjs +4 -4
  34. package/esm2022/date-picker/date-picker.component.mjs +5 -6
  35. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +3 -4
  36. package/esm2022/date-picker/lib/date/date-header.component.mjs +4 -4
  37. package/esm2022/date-picker/lib/date/date-table-cell.component.mjs +4 -4
  38. package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
  39. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +5 -5
  40. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +4 -4
  41. package/esm2022/date-picker/lib/decade/decade-table.component.mjs +4 -4
  42. package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
  43. package/esm2022/date-picker/lib/month/month-table.component.mjs +4 -4
  44. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +4 -18
  45. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +3 -8
  46. package/esm2022/date-picker/lib/quarter/quarter-table.component.mjs +4 -4
  47. package/esm2022/date-picker/lib/year/year-header.component.mjs +4 -4
  48. package/esm2022/date-picker/lib/year/year-table.component.mjs +4 -4
  49. package/esm2022/date-picker/month-picker.component.mjs +4 -5
  50. package/esm2022/date-picker/picker.component.mjs +4 -14
  51. package/esm2022/date-picker/quarter-picker.component.mjs +4 -5
  52. package/esm2022/date-picker/range-picker.component.mjs +4 -5
  53. package/esm2022/date-picker/week-picker.component.mjs +4 -5
  54. package/esm2022/date-picker/year-picker.component.mjs +4 -5
  55. package/esm2022/date-range/date-range.component.mjs +4 -4
  56. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +3 -6
  57. package/esm2022/dialog/footer/dialog-footer.component.mjs +4 -4
  58. package/esm2022/dialog/header/dialog-header.component.mjs +4 -4
  59. package/esm2022/divider/divider.component.mjs +21 -13
  60. package/esm2022/dropdown/dropdown-menu.component.mjs +11 -7
  61. package/esm2022/empty/empty.component.mjs +4 -4
  62. package/esm2022/form/form-group-error/form-group-error.component.mjs +4 -4
  63. package/esm2022/form/form-group.component.mjs +4 -4
  64. package/esm2022/form/from-group-footer/form-group-footer.component.mjs +4 -4
  65. package/esm2022/guider/guider-hint/guider-hint.component.mjs +4 -4
  66. package/esm2022/image/preview/image-preview.component.mjs +3 -4
  67. package/esm2022/input/input-group.component.mjs +4 -4
  68. package/esm2022/input/input-search.component.mjs +3 -4
  69. package/esm2022/input/input.component.mjs +4 -4
  70. package/esm2022/layout/header.component.mjs +4 -4
  71. package/esm2022/layout/sidebar-header.component.mjs +4 -4
  72. package/esm2022/layout/sidebar.component.mjs +81 -71
  73. package/esm2022/list/list-item-meta.component.mjs +4 -4
  74. package/esm2022/loading/loading.component.mjs +3 -4
  75. package/esm2022/mention/suggestions/suggestions.component.mjs +4 -4
  76. package/esm2022/menu/group/menu-group.component.mjs +4 -4
  77. package/esm2022/menu/item/menu-item.component.mjs +3 -4
  78. package/esm2022/message/message-container.component.mjs +13 -5
  79. package/esm2022/message/message.component.mjs +3 -4
  80. package/esm2022/nav/icon-nav/icon-nav-link.directive.mjs +4 -5
  81. package/esm2022/nav/nav.component.mjs +4 -6
  82. package/esm2022/notify/notify-container.component.mjs +4 -4
  83. package/esm2022/notify/notify.component.mjs +4 -4
  84. package/esm2022/pagination/pagination.component.mjs +4 -4
  85. package/esm2022/popover/header/popover-header.component.mjs +4 -4
  86. package/esm2022/progress/progress-circle.component.mjs +4 -7
  87. package/esm2022/progress/progress.component.mjs +5 -8
  88. package/esm2022/property/property-item.component.mjs +4 -4
  89. package/esm2022/property-operation/property-operation.component.mjs +4 -4
  90. package/esm2022/radio/radio.component.mjs +5 -5
  91. package/esm2022/rate/rate.component.mjs +5 -5
  92. package/esm2022/resizable/resize-handle.component.mjs +10 -7
  93. package/esm2022/resizable/resize-handles.component.mjs +12 -5
  94. package/esm2022/result/result.component.mjs +4 -4
  95. package/esm2022/segment/segment-item.component.mjs +4 -4
  96. package/esm2022/segment/segment.component.mjs +4 -5
  97. package/esm2022/select/custom-select/custom-select.component.mjs +6 -8
  98. package/esm2022/select/native-select/native-select.component.mjs +5 -6
  99. package/esm2022/shared/option/list-option/list-option.component.mjs +3 -4
  100. package/esm2022/shared/option/option.component.mjs +3 -4
  101. package/esm2022/shared/select/select-control/select-control.component.mjs +5 -5
  102. package/esm2022/skeleton/stylized/bullet-list.component.mjs +8 -9
  103. package/esm2022/skeleton/stylized/list.component.mjs +8 -9
  104. package/esm2022/skeleton/stylized/paragraph.component.mjs +8 -9
  105. package/esm2022/slide/slide-header/slide-header.component.mjs +4 -4
  106. package/esm2022/space/space.component.mjs +4 -4
  107. package/esm2022/statistic/statistic.component.mjs +4 -4
  108. package/esm2022/stepper/stepper.component.mjs +5 -5
  109. package/esm2022/switch/switch.component.mjs +6 -6
  110. package/esm2022/table/table-skeleton.component.mjs +4 -7
  111. package/esm2022/table/table.component.mjs +5 -7
  112. package/esm2022/tabs/tab-content.component.mjs +9 -9
  113. package/esm2022/tabs/tabs.component.mjs +4 -7
  114. package/esm2022/time-picker/inner/inner-time-picker.component.mjs +3 -4
  115. package/esm2022/time-picker/time-picker-panel.component.mjs +5 -8
  116. package/esm2022/time-picker/time-picker.component.mjs +5 -15
  117. package/esm2022/timeline/timeline-item.component.mjs +4 -4
  118. package/esm2022/timeline/timeline.component.mjs +9 -9
  119. package/esm2022/tooltip/tooltip.component.mjs +4 -4
  120. package/esm2022/transfer/transfer-list.component.mjs +4 -4
  121. package/esm2022/transfer/transfer.component.mjs +4 -4
  122. package/esm2022/tree/tree-node.component.mjs +4 -4
  123. package/esm2022/tree/tree.component.mjs +5 -7
  124. package/esm2022/tree-select/tree-select.component.mjs +7 -10
  125. package/esm2022/typography/text/text.component.mjs +3 -4
  126. package/esm2022/version.mjs +2 -2
  127. package/esm2022/vote/vote.component.mjs +4 -4
  128. package/fesm2022/ngx-tethys-action.mjs +3 -3
  129. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  130. package/fesm2022/ngx-tethys-alert.mjs +54 -80
  131. package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
  132. package/fesm2022/ngx-tethys-anchor.mjs +29 -13
  133. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  134. package/fesm2022/ngx-tethys-arrow-switcher.mjs +4 -4
  135. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  136. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
  137. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  138. package/fesm2022/ngx-tethys-avatar.mjs +5 -5
  139. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  140. package/fesm2022/ngx-tethys-back-top.mjs +3 -3
  141. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  142. package/fesm2022/ngx-tethys-badge.mjs +3 -3
  143. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  144. package/fesm2022/ngx-tethys-breadcrumb.mjs +3 -5
  145. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  146. package/fesm2022/ngx-tethys-button.mjs +5 -5
  147. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  148. package/fesm2022/ngx-tethys-calendar.mjs +5 -5
  149. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  150. package/fesm2022/ngx-tethys-card.mjs +3 -3
  151. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  152. package/fesm2022/ngx-tethys-carousel.mjs +3 -3
  153. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  154. package/fesm2022/ngx-tethys-cascader.mjs +8 -10
  155. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  156. package/fesm2022/ngx-tethys-checkbox.mjs +4 -4
  157. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  158. package/fesm2022/ngx-tethys-collapse.mjs +3 -3
  159. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  160. package/fesm2022/ngx-tethys-color-picker.mjs +3 -3
  161. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  162. package/fesm2022/ngx-tethys-comment.mjs +3 -3
  163. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  164. package/fesm2022/ngx-tethys-date-picker.mjs +51 -79
  165. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  166. package/fesm2022/ngx-tethys-date-range.mjs +5 -7
  167. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  168. package/fesm2022/ngx-tethys-dialog.mjs +5 -5
  169. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  170. package/fesm2022/ngx-tethys-divider.mjs +20 -12
  171. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  172. package/fesm2022/ngx-tethys-dropdown.mjs +10 -6
  173. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  174. package/fesm2022/ngx-tethys-empty.mjs +3 -3
  175. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  176. package/fesm2022/ngx-tethys-form.mjs +7 -7
  177. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  178. package/fesm2022/ngx-tethys-guider.mjs +3 -3
  179. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  180. package/fesm2022/ngx-tethys-image.mjs +3 -3
  181. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  182. package/fesm2022/ngx-tethys-input.mjs +7 -7
  183. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  184. package/fesm2022/ngx-tethys-layout.mjs +84 -74
  185. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  186. package/fesm2022/ngx-tethys-list.mjs +3 -3
  187. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  188. package/fesm2022/ngx-tethys-loading.mjs +3 -3
  189. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  190. package/fesm2022/ngx-tethys-mention.mjs +3 -3
  191. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  192. package/fesm2022/ngx-tethys-menu.mjs +5 -5
  193. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  194. package/fesm2022/ngx-tethys-message.mjs +14 -6
  195. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  196. package/fesm2022/ngx-tethys-nav.mjs +6 -8
  197. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  198. package/fesm2022/ngx-tethys-notify.mjs +5 -5
  199. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  200. package/fesm2022/ngx-tethys-pagination.mjs +3 -3
  201. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  202. package/fesm2022/ngx-tethys-popover.mjs +3 -3
  203. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  204. package/fesm2022/ngx-tethys-progress.mjs +6 -12
  205. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  206. package/fesm2022/ngx-tethys-property-operation.mjs +3 -3
  207. package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
  208. package/fesm2022/ngx-tethys-property.mjs +3 -3
  209. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  210. package/fesm2022/ngx-tethys-radio.mjs +4 -4
  211. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  212. package/fesm2022/ngx-tethys-rate.mjs +4 -4
  213. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  214. package/fesm2022/ngx-tethys-resizable.mjs +21 -9
  215. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  216. package/fesm2022/ngx-tethys-result.mjs +3 -3
  217. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  218. package/fesm2022/ngx-tethys-segment.mjs +6 -6
  219. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  220. package/fesm2022/ngx-tethys-select.mjs +9 -11
  221. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  222. package/fesm2022/ngx-tethys-shared.mjs +8 -8
  223. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  224. package/fesm2022/ngx-tethys-skeleton.mjs +22 -22
  225. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  226. package/fesm2022/ngx-tethys-slide.mjs +3 -3
  227. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  228. package/fesm2022/ngx-tethys-space.mjs +3 -3
  229. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  230. package/fesm2022/ngx-tethys-statistic.mjs +3 -3
  231. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  232. package/fesm2022/ngx-tethys-stepper.mjs +4 -4
  233. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  234. package/fesm2022/ngx-tethys-switch.mjs +5 -5
  235. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  236. package/fesm2022/ngx-tethys-table.mjs +6 -11
  237. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  238. package/fesm2022/ngx-tethys-tabs.mjs +10 -13
  239. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  240. package/fesm2022/ngx-tethys-time-picker.mjs +9 -22
  241. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  242. package/fesm2022/ngx-tethys-timeline.mjs +10 -10
  243. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  244. package/fesm2022/ngx-tethys-tooltip.mjs +3 -3
  245. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  246. package/fesm2022/ngx-tethys-transfer.mjs +5 -5
  247. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  248. package/fesm2022/ngx-tethys-tree-select.mjs +6 -9
  249. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  250. package/fesm2022/ngx-tethys-tree.mjs +6 -8
  251. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  252. package/fesm2022/ngx-tethys-typography.mjs +3 -3
  253. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  254. package/fesm2022/ngx-tethys-vote.mjs +3 -3
  255. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  256. package/fesm2022/ngx-tethys.mjs +1 -1
  257. package/fesm2022/ngx-tethys.mjs.map +1 -1
  258. package/menu/group/menu-group.component.d.ts +42 -6
  259. package/package.json +1 -1
  260. package/pagination/pagination.component.d.ts +15 -5
  261. package/progress/progress-circle.component.d.ts +0 -1
  262. package/progress/progress.component.d.ts +0 -1
  263. package/property/property-item.component.d.ts +1 -4
  264. package/resizable/resize-handle.component.d.ts +1 -4
  265. package/schematics/version.d.ts +1 -1
  266. package/schematics/version.js +1 -1
  267. package/segment/segment.component.d.ts +1 -5
  268. package/shared/option/list-option/list-option.component.d.ts +5 -1
  269. package/skeleton/stylized/bullet-list.component.d.ts +9 -1
  270. package/table/table-skeleton.component.d.ts +10 -3
  271. package/tabs/tabs.component.d.ts +0 -1
  272. package/time-picker/time-picker-panel.component.d.ts +0 -1
  273. package/tree/tree-node.component.d.ts +10 -10
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Inject, EventEmitter, inject, DestroyRef, numberAttribute, Directive, Input, Output, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import { DOCUMENT, NgIf, NgFor, CommonModule } from '@angular/common';
3
+ import { DOCUMENT, CommonModule } from '@angular/common';
4
4
  import { isTouchEvent, coerceBooleanProperty } from 'ngx-tethys/util';
5
5
  import { Subject, fromEvent, merge } from 'rxjs';
6
6
  import * as i1 from '@angular/cdk/platform';
@@ -495,10 +495,12 @@ class ThyResizeHandle {
495
495
  });
496
496
  }
497
497
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyResizeHandle, deps: [{ token: i0.NgZone }, { token: ThyResizableService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
498
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.0", type: ThyResizeHandle, isStandalone: true, selector: "thy-resize-handle, [thy-resize-handle]", inputs: { thyDirection: "thyDirection", thyLine: ["thyLine", "thyLine", coerceBooleanProperty] }, outputs: { thyMouseDown: "thyMouseDown" }, host: { properties: { "class.thy-resizable-handle-top": "thyDirection === 'top'", "class.thy-resizable-handle-right": "thyDirection === 'right'", "class.thy-resizable-handle-bottom": "thyDirection === 'bottom'", "class.thy-resizable-handle-left": "thyDirection === 'left'", "class.thy-resizable-handle-topRight": "thyDirection === 'topRight'", "class.thy-resizable-handle-bottomRight": "thyDirection === 'bottomRight'", "class.thy-resizable-handle-bottomLeft": "thyDirection === 'bottomLeft'", "class.thy-resizable-handle-topLeft": "thyDirection === 'topLeft'", "class.thy-resizable-handle-box-hover": "entered" }, classAttribute: "thy-resizable-handle" }, exportAs: ["thyResizeHandle"], ngImport: i0, template: `
498
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyResizeHandle, isStandalone: true, selector: "thy-resize-handle, [thy-resize-handle]", inputs: { thyDirection: "thyDirection", thyLine: ["thyLine", "thyLine", coerceBooleanProperty] }, outputs: { thyMouseDown: "thyMouseDown" }, host: { properties: { "class.thy-resizable-handle-top": "thyDirection === 'top'", "class.thy-resizable-handle-right": "thyDirection === 'right'", "class.thy-resizable-handle-bottom": "thyDirection === 'bottom'", "class.thy-resizable-handle-left": "thyDirection === 'left'", "class.thy-resizable-handle-topRight": "thyDirection === 'topRight'", "class.thy-resizable-handle-bottomRight": "thyDirection === 'bottomRight'", "class.thy-resizable-handle-bottomLeft": "thyDirection === 'bottomLeft'", "class.thy-resizable-handle-topLeft": "thyDirection === 'topLeft'", "class.thy-resizable-handle-box-hover": "entered" }, classAttribute: "thy-resizable-handle" }, exportAs: ["thyResizeHandle"], ngImport: i0, template: `
499
499
  <ng-content></ng-content>
500
- <div *ngIf="thyLine" class="thy-resizable-handle-line"></div>
501
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
500
+ @if (thyLine) {
501
+ <div class="thy-resizable-handle-line"></div>
502
+ }
503
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
502
504
  }
503
505
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyResizeHandle, decorators: [{
504
506
  type: Component,
@@ -507,7 +509,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
507
509
  exportAs: 'thyResizeHandle',
508
510
  template: `
509
511
  <ng-content></ng-content>
510
- <div *ngIf="thyLine" class="thy-resizable-handle-line"></div>
512
+ @if (thyLine) {
513
+ <div class="thy-resizable-handle-line"></div>
514
+ }
511
515
  `,
512
516
  changeDetection: ChangeDetectionStrategy.OnPush,
513
517
  host: {
@@ -523,7 +527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
523
527
  '[class.thy-resizable-handle-box-hover]': 'entered'
524
528
  },
525
529
  standalone: true,
526
- imports: [NgIf]
530
+ imports: []
527
531
  }]
528
532
  }], ctorParameters: () => [{ type: i0.NgZone }, { type: ThyResizableService }, { type: i0.ElementRef }], propDecorators: { thyDirection: [{
529
533
  type: Input
@@ -567,17 +571,25 @@ class ThyResizeHandles {
567
571
  }
568
572
  }
569
573
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyResizeHandles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
570
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.0", type: ThyResizeHandles, isStandalone: true, selector: "thy-resize-handles", inputs: { thyDirections: "thyDirections", thyLine: ["thyLine", "thyLine", coerceBooleanProperty] }, exportAs: ["thyResizeHandles"], usesOnChanges: true, ngImport: i0, template: ` <thy-resize-handle *ngFor="let dir of directions" [thyLine]="thyLine" [thyDirection]="dir"></thy-resize-handle> `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ThyResizeHandle, selector: "thy-resize-handle, [thy-resize-handle]", inputs: ["thyDirection", "thyLine"], outputs: ["thyMouseDown"], exportAs: ["thyResizeHandle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
574
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyResizeHandles, isStandalone: true, selector: "thy-resize-handles", inputs: { thyDirections: "thyDirections", thyLine: ["thyLine", "thyLine", coerceBooleanProperty] }, exportAs: ["thyResizeHandles"], usesOnChanges: true, ngImport: i0, template: `
575
+ @for (dir of directions; track $index) {
576
+ <thy-resize-handle [thyLine]="thyLine" [thyDirection]="dir"></thy-resize-handle>
577
+ }
578
+ `, isInline: true, dependencies: [{ kind: "component", type: ThyResizeHandle, selector: "thy-resize-handle, [thy-resize-handle]", inputs: ["thyDirection", "thyLine"], outputs: ["thyMouseDown"], exportAs: ["thyResizeHandle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
571
579
  }
572
580
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyResizeHandles, decorators: [{
573
581
  type: Component,
574
582
  args: [{
575
583
  selector: 'thy-resize-handles',
576
584
  exportAs: 'thyResizeHandles',
577
- template: ` <thy-resize-handle *ngFor="let dir of directions" [thyLine]="thyLine" [thyDirection]="dir"></thy-resize-handle> `,
585
+ template: `
586
+ @for (dir of directions; track $index) {
587
+ <thy-resize-handle [thyLine]="thyLine" [thyDirection]="dir"></thy-resize-handle>
588
+ }
589
+ `,
578
590
  changeDetection: ChangeDetectionStrategy.OnPush,
579
591
  standalone: true,
580
- imports: [NgFor, ThyResizeHandle]
592
+ imports: [ThyResizeHandle]
581
593
  }]
582
594
  }], propDecorators: { thyDirections: [{
583
595
  type: Input
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-resizable.mjs","sources":["../../../src/resizable/resizable.service.ts","../../../src/resizable/utils.ts","../../../src/resizable/resizable.directive.ts","../../../src/resizable/resize-handle.component.ts","../../../src/resizable/resize-handles.component.ts","../../../src/resizable/module.ts","../../../src/resizable/ngx-tethys-resizable.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone, OnDestroy } from '@angular/core';\nimport { isTouchEvent } from 'ngx-tethys/util';\nimport { Subject } from 'rxjs';\nimport { ThyResizeHandleMouseDownEvent } from './resize-handle.component';\n\n/**\n * @internal\n */\n@Injectable()\nexport class ThyResizableService implements OnDestroy {\n private document: Document;\n private listeners = new Map<string, (event: MouseEvent | TouchEvent) => void>();\n\n /**\n * The `OutsideAngular` prefix means that the subject will emit events outside of the Angular zone,\n * so that becomes a bit more descriptive for those who'll maintain the code in the future:\n * ```ts\n * thyResizableService.handleMouseDownOutsideAngular$.subscribe(event => {\n * console.log(Zone.current); // <root>\n * console.log(NgZone.isInAngularZone()); // false\n * });\n * ```\n */\n\n handleMouseDownOutsideAngular$ = new Subject<ThyResizeHandleMouseDownEvent>();\n documentMouseUpOutsideAngular$ = new Subject<MouseEvent | TouchEvent>();\n documentMouseMoveOutsideAngular$ = new Subject<MouseEvent | TouchEvent>();\n mouseEnteredOutsideAngular$ = new Subject<boolean>();\n\n constructor(\n private ngZone: NgZone,\n @Inject(DOCUMENT) document: any\n ) {\n this.document = document;\n }\n\n startResizing(event: MouseEvent | TouchEvent): void {\n const _isTouchEvent = isTouchEvent(event);\n this.clearListeners();\n const moveEvent = _isTouchEvent ? 'touchmove' : 'mousemove';\n const upEvent = _isTouchEvent ? 'touchend' : 'mouseup';\n const moveEventHandler = (e: MouseEvent | TouchEvent) => {\n this.documentMouseMoveOutsideAngular$.next(e);\n };\n const upEventHandler = (e: MouseEvent | TouchEvent) => {\n this.documentMouseUpOutsideAngular$.next(e);\n this.clearListeners();\n };\n\n this.listeners.set(moveEvent, moveEventHandler);\n this.listeners.set(upEvent, upEventHandler);\n this.ngZone.runOutsideAngular(() => {\n this.listeners.forEach((handler, name) => {\n this.document.addEventListener(name, handler as EventListener);\n });\n });\n }\n\n private clearListeners(): void {\n this.listeners.forEach((handler, name) => {\n this.document.removeEventListener(name, handler as EventListener);\n });\n this.listeners.clear();\n }\n\n ngOnDestroy(): void {\n this.handleMouseDownOutsideAngular$.complete();\n this.documentMouseUpOutsideAngular$.complete();\n this.documentMouseMoveOutsideAngular$.complete();\n this.mouseEnteredOutsideAngular$.complete();\n this.clearListeners();\n }\n}\n","import { isTouchEvent } from 'ngx-tethys/util';\n\nexport function getEventWithPoint(event: MouseEvent | TouchEvent): MouseEvent | Touch {\n return isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] : (event as MouseEvent);\n}\n\nexport function ensureInBounds(value: number, boundValue: number): number {\n return value ? (value < boundValue ? value : boundValue) : boundValue;\n}\n\nexport function setCompatibleStyle(element: HTMLElement, key: string, value: string) {\n element.style[key] = value;\n element.style[`-webkit-${key}`] = value;\n element.style[`-moz-${key}`] = value;\n element.style[`-ms-${key}`] = value;\n}\n","import {\n Directive,\n AfterViewInit,\n OnDestroy,\n ElementRef,\n Renderer2,\n NgZone,\n Input,\n Output,\n EventEmitter,\n ChangeDetectorRef,\n inject,\n DestroyRef,\n numberAttribute\n} from '@angular/core';\nimport { ThyResizableService } from './resizable.service';\nimport { Platform } from '@angular/cdk/platform';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ThyResizeHandleMouseDownEvent } from './resize-handle.component';\nimport { ThyResizeEvent } from './interface';\nimport { getEventWithPoint, ensureInBounds, setCompatibleStyle } from './utils';\nimport { fromEvent } from 'rxjs';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\n/**\n * 调整尺寸\n * @name thyResizable\n */\n@Directive({\n selector: '[thyResizable]',\n providers: [ThyResizableService],\n host: {\n class: 'thy-resizable',\n '[class.thy-resizable-resizing]': 'resizing',\n '[class.thy-resizable-disabled]': 'thyDisabled'\n },\n standalone: true\n})\nexport class ThyResizableDirective implements AfterViewInit, OnDestroy {\n /**\n * 调整尺寸的边界\n * @default parent\n * @type 'window' | 'parent' | ElementRef<HTMLElement>\n */\n @Input() thyBounds: 'window' | 'parent' | ElementRef<HTMLElement> = 'parent';\n\n /**\n * 最大高度(超过边界部分忽略)\n */\n @Input({ transform: numberAttribute }) thyMaxHeight?: number;\n\n /**\n * 最大宽度(超过边界部分忽略)\n */\n @Input({ transform: numberAttribute }) thyMaxWidth?: number;\n\n /**\n * 最小高度\n */\n @Input({ transform: numberAttribute }) thyMinHeight: number = 40;\n\n /**\n * 最小宽度\n */\n @Input({ transform: numberAttribute }) thyMinWidth: number = 40;\n\n /**\n * 栅格列数(-1 为不栅格)\n */\n @Input({ transform: numberAttribute }) thyGridColumnCount: number = -1;\n\n /**\n * 栅格最大列数\n */\n @Input({ transform: numberAttribute }) thyMaxColumn: number = -1;\n\n /**\n * 栅格最小列数\n */\n @Input({ transform: numberAttribute }) thyMinColumn: number = -1;\n\n /**\n * 锁定宽高比\n */\n @Input({ transform: coerceBooleanProperty }) thyLockAspectRatio: boolean = false;\n\n /**\n * 是否预览模式\n */\n @Input({ transform: coerceBooleanProperty }) thyPreview: boolean = false;\n\n /**\n * 是否禁用调整大小\n */\n @Input({ transform: coerceBooleanProperty }) thyDisabled: boolean = false;\n\n /**\n * 调整尺寸时的事件\n */\n @Output() readonly thyResize = new EventEmitter<ThyResizeEvent>();\n\n /**\n * 开始调整尺寸时的事件\n */\n @Output() readonly thyResizeStart = new EventEmitter<ThyResizeEvent>();\n\n /**\n * 结束调整尺寸时的事件\n */\n @Output() readonly thyResizeEnd = new EventEmitter<ThyResizeEvent>();\n\n resizing = false;\n private nativeElement!: HTMLElement;\n private nativeElementRect!: ClientRect | DOMRect;\n private sizeCache: ThyResizeEvent | null = null;\n private ghostElement: HTMLDivElement | null = null;\n private currentHandleEvent: ThyResizeHandleMouseDownEvent | null = null;\n private readonly destroyRef = inject(DestroyRef);\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private renderer: Renderer2,\n private platform: Platform,\n private ngZone: NgZone,\n private thyResizableService: ThyResizableService,\n private changeDetectorRef: ChangeDetectorRef\n ) {\n this.thyResizableService.handleMouseDownOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(event => {\n if (this.thyDisabled) {\n return;\n }\n this.resizing = true;\n const { mouseEvent } = event;\n this.thyResizableService.startResizing(mouseEvent);\n this.currentHandleEvent = event;\n this.setCursor();\n // Re-enter the Angular zone and run the change detection only if there're any `thyResizeStart` listeners,\n // e.g.: `<div thyResizable (thyResizeStart)=\"...\"></div>`.\n if (this.thyResizeStart.observers.length) {\n this.ngZone.run(() => this.thyResizeStart.emit({ mouseEvent }));\n }\n this.nativeElementRect = this.nativeElement.getBoundingClientRect();\n });\n\n this.thyResizableService.documentMouseUpOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(event => {\n if (this.resizing) {\n this.ngZone.run(() => {\n this.resizing = false;\n this.changeDetectorRef.markForCheck();\n });\n this.thyResizableService.documentMouseUpOutsideAngular$.next(event);\n this.endResize(event);\n }\n });\n\n this.thyResizableService.documentMouseMoveOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(event => {\n if (this.resizing) {\n this.resize(event);\n }\n });\n }\n\n ngAfterViewInit(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.nativeElement = this.elementRef.nativeElement;\n this.ngZone.runOutsideAngular(() => {\n fromEvent(this.nativeElement, 'mouseenter')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.thyResizableService.mouseEnteredOutsideAngular$.next(true);\n });\n\n fromEvent(this.nativeElement, 'mouseleave')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.thyResizableService.mouseEnteredOutsideAngular$.next(false);\n });\n });\n }\n\n setCursor(): void {\n switch (this.currentHandleEvent!.direction) {\n case 'left':\n case 'right':\n this.renderer.setStyle(document.body, 'cursor', 'ew-resize');\n break;\n case 'top':\n case 'bottom':\n this.renderer.setStyle(document.body, 'cursor', 'ns-resize');\n break;\n case 'topLeft':\n case 'bottomRight':\n this.renderer.setStyle(document.body, 'cursor', 'nwse-resize');\n break;\n case 'topRight':\n case 'bottomLeft':\n this.renderer.setStyle(document.body, 'cursor', 'nesw-resize');\n break;\n }\n setCompatibleStyle(document.body, 'user-select', 'none');\n }\n\n endResize(event: MouseEvent | TouchEvent): void {\n this.renderer.setStyle(document.body, 'cursor', '');\n setCompatibleStyle(document.body, 'user-select', '');\n this.removeGhostElement();\n const size = this.sizeCache\n ? { ...this.sizeCache }\n : {\n width: this.nativeElementRect.width,\n height: this.nativeElementRect.height\n };\n // Re-enter the Angular zone and run the change detection only if there're any `thyResizeEnd` listeners,\n // e.g.: `<div thyResizable (thyResizeEnd)=\"...\"></div>`.\n if (this.thyResizeEnd.observers.length) {\n this.ngZone.run(() => {\n this.thyResizeEnd.emit({\n ...size,\n mouseEvent: event\n });\n });\n }\n this.sizeCache = null;\n this.currentHandleEvent = null;\n }\n\n resize(event: MouseEvent | TouchEvent): void {\n const nativeElementRect = this.nativeElementRect;\n const resizeEvent = getEventWithPoint(event);\n const handleEvent = getEventWithPoint(this.currentHandleEvent!.mouseEvent);\n let width = nativeElementRect.width;\n let height = nativeElementRect.height;\n const ratio = this.thyLockAspectRatio ? width / height : -1;\n switch (this.currentHandleEvent!.direction) {\n case 'bottomRight':\n width = resizeEvent.clientX - nativeElementRect.left;\n height = resizeEvent.clientY - nativeElementRect.top;\n break;\n case 'bottomLeft':\n width = nativeElementRect.width + (handleEvent.clientX - resizeEvent.clientX);\n height = resizeEvent.clientY - nativeElementRect.top;\n break;\n case 'topRight':\n width = resizeEvent.clientX - nativeElementRect.left;\n height = nativeElementRect.height + (handleEvent.clientY - resizeEvent.clientY);\n break;\n case 'topLeft':\n width = nativeElementRect.width + (handleEvent.clientX - resizeEvent.clientX);\n height = nativeElementRect.height + (handleEvent.clientY - resizeEvent.clientY);\n break;\n case 'top':\n height = nativeElementRect.height + (handleEvent.clientY - resizeEvent.clientY);\n break;\n case 'right':\n width = resizeEvent.clientX - nativeElementRect.left;\n break;\n case 'bottom':\n height = resizeEvent.clientY - nativeElementRect.top;\n break;\n case 'left':\n width = nativeElementRect.width + (handleEvent.clientX - resizeEvent.clientX);\n }\n const size = this.calcSize(width, height, ratio);\n this.sizeCache = { ...size };\n // Re-enter the Angular zone and run the change detection only if there're any `thyResize` listeners,\n // e.g.: `<div thyResizable (thyResize)=\"...\"></div>`.\n if (this.thyResize.observers.length) {\n this.ngZone.run(() => {\n this.thyResize.emit({\n ...size,\n mouseEvent: event\n });\n });\n }\n\n if (this.thyPreview) {\n this.previewResize(size);\n }\n }\n\n calcSize(width: number, height: number, ratio: number): ThyResizeEvent {\n let newWidth: number;\n let newHeight: number;\n let maxWidth: number;\n let maxHeight: number;\n let col = 0;\n let spanWidth = 0;\n let minWidth = this.thyMinWidth;\n let boundWidth = Infinity;\n let boundHeight = Infinity;\n if (this.thyBounds === 'parent') {\n const parent = this.renderer.parentNode(this.nativeElement);\n if (parent instanceof HTMLElement) {\n const parentRect = parent.getBoundingClientRect();\n boundWidth = parentRect.width;\n boundHeight = parentRect.height;\n }\n } else if (this.thyBounds === 'window') {\n if (typeof window !== 'undefined') {\n boundWidth = window.innerWidth;\n boundHeight = window.innerHeight;\n }\n } else if (this.thyBounds && this.thyBounds.nativeElement && this.thyBounds.nativeElement instanceof HTMLElement) {\n const boundsRect = this.thyBounds.nativeElement.getBoundingClientRect();\n boundWidth = boundsRect.width;\n boundHeight = boundsRect.height;\n }\n\n maxWidth = ensureInBounds(this.thyMaxWidth!, boundWidth);\n maxHeight = ensureInBounds(this.thyMaxHeight!, boundHeight);\n\n if (this.thyGridColumnCount !== -1) {\n spanWidth = maxWidth / this.thyGridColumnCount;\n minWidth = this.thyMinColumn !== -1 ? spanWidth * this.thyMinColumn : minWidth;\n maxWidth = this.thyMaxColumn !== -1 ? spanWidth * this.thyMaxColumn : maxWidth;\n }\n\n if (ratio !== -1) {\n if (/(left|right)/i.test(this.currentHandleEvent!.direction)) {\n newWidth = Math.min(Math.max(width, minWidth), maxWidth);\n newHeight = Math.min(Math.max(newWidth / ratio, this.thyMinHeight), maxHeight);\n if (newHeight >= maxHeight || newHeight <= this.thyMinHeight) {\n newWidth = Math.min(Math.max(newHeight * ratio, minWidth), maxWidth);\n }\n } else {\n newHeight = Math.min(Math.max(height, this.thyMinHeight), maxHeight);\n newWidth = Math.min(Math.max(newHeight * ratio, minWidth), maxWidth);\n if (newWidth >= maxWidth || newWidth <= minWidth) {\n newHeight = Math.min(Math.max(newWidth / ratio, this.thyMinHeight), maxHeight);\n }\n }\n } else {\n newWidth = Math.min(Math.max(width, minWidth), maxWidth);\n newHeight = Math.min(Math.max(height, this.thyMinHeight), maxHeight);\n }\n\n if (this.thyGridColumnCount !== -1) {\n col = Math.round(newWidth / spanWidth);\n newWidth = col * spanWidth;\n }\n\n return {\n col,\n width: newWidth,\n height: newHeight\n };\n }\n\n previewResize({ width, height }: ThyResizeEvent): void {\n this.createGhostElement();\n this.renderer.setStyle(this.ghostElement, 'width', `${width}px`);\n this.renderer.setStyle(this.ghostElement, 'height', `${height}px`);\n }\n\n createGhostElement(): void {\n if (!this.ghostElement) {\n this.ghostElement = this.renderer.createElement('div');\n this.renderer.setAttribute(this.ghostElement, 'class', 'thy-resizable-preview');\n }\n this.renderer.appendChild(this.nativeElement, this.ghostElement);\n }\n\n removeGhostElement(): void {\n if (this.ghostElement) {\n this.renderer.removeChild(this.nativeElement, this.ghostElement);\n }\n }\n\n ngOnDestroy(): void {\n this.ghostElement = null;\n this.sizeCache = null;\n }\n}\n","import {\n OnInit,\n Component,\n ChangeDetectionStrategy,\n Input,\n Output,\n NgZone,\n EventEmitter,\n ElementRef,\n inject,\n DestroyRef\n} from '@angular/core';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { ThyResizeDirection } from './interface';\nimport { ThyResizableService } from './resizable.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { fromEvent, merge } from 'rxjs';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { NgIf } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport class ThyResizeHandleMouseDownEvent {\n constructor(\n public direction: ThyResizeDirection,\n public mouseEvent: MouseEvent | TouchEvent\n ) {}\n}\n\nconst passiveEventListenerOptions = <AddEventListenerOptions>normalizePassiveListenerOptions({ passive: true });\n\n/**\n * 定义调整手柄及方向\n * @name thy-resize-handle\n */\n@Component({\n selector: 'thy-resize-handle, [thy-resize-handle]',\n exportAs: 'thyResizeHandle',\n template: `\n <ng-content></ng-content>\n <div *ngIf=\"thyLine\" class=\"thy-resizable-handle-line\"></div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-resizable-handle',\n '[class.thy-resizable-handle-top]': `thyDirection === 'top'`,\n '[class.thy-resizable-handle-right]': `thyDirection === 'right'`,\n '[class.thy-resizable-handle-bottom]': `thyDirection === 'bottom'`,\n '[class.thy-resizable-handle-left]': `thyDirection === 'left'`,\n '[class.thy-resizable-handle-topRight]': `thyDirection === 'topRight'`,\n '[class.thy-resizable-handle-bottomRight]': `thyDirection === 'bottomRight'`,\n '[class.thy-resizable-handle-bottomLeft]': `thyDirection === 'bottomLeft'`,\n '[class.thy-resizable-handle-topLeft]': `thyDirection === 'topLeft'`,\n '[class.thy-resizable-handle-box-hover]': 'entered'\n },\n standalone: true,\n imports: [NgIf]\n})\nexport class ThyResizeHandle implements OnInit {\n /**\n * 调整方向\n * @type top | right | bottom | left | topRight | bottomRight | bottomLeft | topLeft\n */\n @Input() thyDirection: ThyResizeDirection = 'bottomRight';\n\n /**\n * 是否展示拖拽线\n */\n @Input({ transform: coerceBooleanProperty }) thyLine = false;\n\n /**\n * MouseDown 回调事件\n */\n @Output() readonly thyMouseDown = new EventEmitter<ThyResizeHandleMouseDownEvent>();\n\n private hostRenderer = useHostRenderer();\n\n private readonly destroyRef = inject(DestroyRef);\n\n constructor(\n private ngZone: NgZone,\n private thyResizableService: ThyResizableService,\n private host: ElementRef<HTMLElement>\n ) {}\n\n ngOnInit(): void {\n this.thyResizableService.mouseEnteredOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(entered => {\n if (entered) {\n this.hostRenderer.addClass('thy-resizable-handle-box-hover');\n } else {\n this.hostRenderer.removeClass('thy-resizable-handle-box-hover');\n }\n });\n this.ngZone.runOutsideAngular(() => {\n // Note: since Chrome 56 defaults document level `touchstart` listener to passive.\n // The element `touchstart` listener is not passive by default\n // We never call `preventDefault()` on it, so we're safe making it passive too.\n merge(\n fromEvent<MouseEvent>(this.host.nativeElement, 'mousedown', passiveEventListenerOptions),\n fromEvent<TouchEvent>(this.host.nativeElement, 'touchstart', passiveEventListenerOptions)\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event: MouseEvent | TouchEvent) => {\n this.thyResizableService.handleMouseDownOutsideAngular$.next(\n new ThyResizeHandleMouseDownEvent(this.thyDirection, event)\n );\n });\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core';\nimport { ThyResizeDirection } from './interface';\nimport { ThyResizeHandle } from './resize-handle.component';\nimport { NgFor } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport const DEFAULT_RESIZE_DIRECTION: ThyResizeDirection[] = [\n 'bottomRight',\n 'topRight',\n 'bottomLeft',\n 'topLeft',\n 'bottom',\n 'right',\n 'top',\n 'left'\n];\n\n/**\n * 定义调整手柄的快捷组件\n * @name thy-resize-handles\n */\n@Component({\n selector: 'thy-resize-handles',\n exportAs: 'thyResizeHandles',\n template: ` <thy-resize-handle *ngFor=\"let dir of directions\" [thyLine]=\"thyLine\" [thyDirection]=\"dir\"></thy-resize-handle> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [NgFor, ThyResizeHandle]\n})\nexport class ThyResizeHandles implements OnChanges {\n /**\n * 定义调整手柄的方向\n * @type ThyResizeDirection[]\n */\n @Input() thyDirections: ThyResizeDirection[] = DEFAULT_RESIZE_DIRECTION;\n\n /**\n * 是否展示拖拽线\n */\n @Input({ transform: coerceBooleanProperty }) thyLine = false;\n\n directions = new Set<ThyResizeDirection>(this.thyDirections);\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.thyDirections) {\n this.directions = new Set(changes.thyDirections.currentValue);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ThyResizableDirective } from './resizable.directive';\nimport { ThyResizeHandle } from './resize-handle.component';\nimport { ThyResizeHandles } from './resize-handles.component';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule, ThyResizableDirective, ThyResizeHandle, ThyResizeHandles],\n exports: [ThyResizableDirective, ThyResizeHandle, ThyResizeHandles]\n})\nexport class ThyResizableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.ThyResizableService","i1.ThyResizableService"],"mappings":";;;;;;;;;;AAMA;;AAEG;MAEU,mBAAmB,CAAA;IAoB5B,WACY,CAAA,MAAc,EACJ,QAAa,EAAA;QADvB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAnBlB,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,GAAG,EAAoD,CAAC;AAEhF;;;;;;;;;AASG;AAEH,QAAA,IAAA,CAAA,8BAA8B,GAAG,IAAI,OAAO,EAAiC,CAAC;AAC9E,QAAA,IAAA,CAAA,8BAA8B,GAAG,IAAI,OAAO,EAA2B,CAAC;AACxE,QAAA,IAAA,CAAA,gCAAgC,GAAG,IAAI,OAAO,EAA2B,CAAC;AAC1E,QAAA,IAAA,CAAA,2BAA2B,GAAG,IAAI,OAAO,EAAW,CAAC;AAMjD,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;AAED,IAAA,aAAa,CAAC,KAA8B,EAAA;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EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAHjB,OAAA,EAAA,CAAA,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,gBAAgB,CACtE,EAAA,OAAA,EAAA,CAAA,qBAAqB,EAAE,eAAe,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEzD,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHjB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGb,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,gBAAgB,CAAC;AACjF,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,eAAe,EAAE,gBAAgB,CAAC;AACtE,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-resizable.mjs","sources":["../../../src/resizable/resizable.service.ts","../../../src/resizable/utils.ts","../../../src/resizable/resizable.directive.ts","../../../src/resizable/resize-handle.component.ts","../../../src/resizable/resize-handles.component.ts","../../../src/resizable/module.ts","../../../src/resizable/ngx-tethys-resizable.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone, OnDestroy } from '@angular/core';\nimport { isTouchEvent } from 'ngx-tethys/util';\nimport { Subject } from 'rxjs';\nimport { ThyResizeHandleMouseDownEvent } from './resize-handle.component';\n\n/**\n * @internal\n */\n@Injectable()\nexport class ThyResizableService implements OnDestroy {\n private document: Document;\n private listeners = new Map<string, (event: MouseEvent | TouchEvent) => void>();\n\n /**\n * The `OutsideAngular` prefix means that the subject will emit events outside of the Angular zone,\n * so that becomes a bit more descriptive for those who'll maintain the code in the future:\n * ```ts\n * thyResizableService.handleMouseDownOutsideAngular$.subscribe(event => {\n * console.log(Zone.current); // <root>\n * console.log(NgZone.isInAngularZone()); // false\n * });\n * ```\n */\n\n handleMouseDownOutsideAngular$ = new Subject<ThyResizeHandleMouseDownEvent>();\n documentMouseUpOutsideAngular$ = new Subject<MouseEvent | TouchEvent>();\n documentMouseMoveOutsideAngular$ = new Subject<MouseEvent | TouchEvent>();\n mouseEnteredOutsideAngular$ = new Subject<boolean>();\n\n constructor(\n private ngZone: NgZone,\n @Inject(DOCUMENT) document: any\n ) {\n this.document = document;\n }\n\n startResizing(event: MouseEvent | TouchEvent): void {\n const _isTouchEvent = isTouchEvent(event);\n this.clearListeners();\n const moveEvent = _isTouchEvent ? 'touchmove' : 'mousemove';\n const upEvent = _isTouchEvent ? 'touchend' : 'mouseup';\n const moveEventHandler = (e: MouseEvent | TouchEvent) => {\n this.documentMouseMoveOutsideAngular$.next(e);\n };\n const upEventHandler = (e: MouseEvent | TouchEvent) => {\n this.documentMouseUpOutsideAngular$.next(e);\n this.clearListeners();\n };\n\n this.listeners.set(moveEvent, moveEventHandler);\n this.listeners.set(upEvent, upEventHandler);\n this.ngZone.runOutsideAngular(() => {\n this.listeners.forEach((handler, name) => {\n this.document.addEventListener(name, handler as EventListener);\n });\n });\n }\n\n private clearListeners(): void {\n this.listeners.forEach((handler, name) => {\n this.document.removeEventListener(name, handler as EventListener);\n });\n this.listeners.clear();\n }\n\n ngOnDestroy(): void {\n this.handleMouseDownOutsideAngular$.complete();\n this.documentMouseUpOutsideAngular$.complete();\n this.documentMouseMoveOutsideAngular$.complete();\n this.mouseEnteredOutsideAngular$.complete();\n this.clearListeners();\n }\n}\n","import { isTouchEvent } from 'ngx-tethys/util';\n\nexport function getEventWithPoint(event: MouseEvent | TouchEvent): MouseEvent | Touch {\n return isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] : (event as MouseEvent);\n}\n\nexport function ensureInBounds(value: number, boundValue: number): number {\n return value ? (value < boundValue ? value : boundValue) : boundValue;\n}\n\nexport function setCompatibleStyle(element: HTMLElement, key: string, value: string) {\n element.style[key] = value;\n element.style[`-webkit-${key}`] = value;\n element.style[`-moz-${key}`] = value;\n element.style[`-ms-${key}`] = value;\n}\n","import {\n Directive,\n AfterViewInit,\n OnDestroy,\n ElementRef,\n Renderer2,\n NgZone,\n Input,\n Output,\n EventEmitter,\n ChangeDetectorRef,\n inject,\n DestroyRef,\n numberAttribute\n} from '@angular/core';\nimport { ThyResizableService } from './resizable.service';\nimport { Platform } from '@angular/cdk/platform';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ThyResizeHandleMouseDownEvent } from './resize-handle.component';\nimport { ThyResizeEvent } from './interface';\nimport { getEventWithPoint, ensureInBounds, setCompatibleStyle } from './utils';\nimport { fromEvent } from 'rxjs';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\n/**\n * 调整尺寸\n * @name thyResizable\n */\n@Directive({\n selector: '[thyResizable]',\n providers: [ThyResizableService],\n host: {\n class: 'thy-resizable',\n '[class.thy-resizable-resizing]': 'resizing',\n '[class.thy-resizable-disabled]': 'thyDisabled'\n },\n standalone: true\n})\nexport class ThyResizableDirective implements AfterViewInit, OnDestroy {\n /**\n * 调整尺寸的边界\n * @default parent\n * @type 'window' | 'parent' | ElementRef<HTMLElement>\n */\n @Input() thyBounds: 'window' | 'parent' | ElementRef<HTMLElement> = 'parent';\n\n /**\n * 最大高度(超过边界部分忽略)\n */\n @Input({ transform: numberAttribute }) thyMaxHeight?: number;\n\n /**\n * 最大宽度(超过边界部分忽略)\n */\n @Input({ transform: numberAttribute }) thyMaxWidth?: number;\n\n /**\n * 最小高度\n */\n @Input({ transform: numberAttribute }) thyMinHeight: number = 40;\n\n /**\n * 最小宽度\n */\n @Input({ transform: numberAttribute }) thyMinWidth: number = 40;\n\n /**\n * 栅格列数(-1 为不栅格)\n */\n @Input({ transform: numberAttribute }) thyGridColumnCount: number = -1;\n\n /**\n * 栅格最大列数\n */\n @Input({ transform: numberAttribute }) thyMaxColumn: number = -1;\n\n /**\n * 栅格最小列数\n */\n @Input({ transform: numberAttribute }) thyMinColumn: number = -1;\n\n /**\n * 锁定宽高比\n */\n @Input({ transform: coerceBooleanProperty }) thyLockAspectRatio: boolean = false;\n\n /**\n * 是否预览模式\n */\n @Input({ transform: coerceBooleanProperty }) thyPreview: boolean = false;\n\n /**\n * 是否禁用调整大小\n */\n @Input({ transform: coerceBooleanProperty }) thyDisabled: boolean = false;\n\n /**\n * 调整尺寸时的事件\n */\n @Output() readonly thyResize = new EventEmitter<ThyResizeEvent>();\n\n /**\n * 开始调整尺寸时的事件\n */\n @Output() readonly thyResizeStart = new EventEmitter<ThyResizeEvent>();\n\n /**\n * 结束调整尺寸时的事件\n */\n @Output() readonly thyResizeEnd = new EventEmitter<ThyResizeEvent>();\n\n resizing = false;\n private nativeElement!: HTMLElement;\n private nativeElementRect!: ClientRect | DOMRect;\n private sizeCache: ThyResizeEvent | null = null;\n private ghostElement: HTMLDivElement | null = null;\n private currentHandleEvent: ThyResizeHandleMouseDownEvent | null = null;\n private readonly destroyRef = inject(DestroyRef);\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private renderer: Renderer2,\n private platform: Platform,\n private ngZone: NgZone,\n private thyResizableService: ThyResizableService,\n private changeDetectorRef: ChangeDetectorRef\n ) {\n this.thyResizableService.handleMouseDownOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(event => {\n if (this.thyDisabled) {\n return;\n }\n this.resizing = true;\n const { mouseEvent } = event;\n this.thyResizableService.startResizing(mouseEvent);\n this.currentHandleEvent = event;\n this.setCursor();\n // Re-enter the Angular zone and run the change detection only if there're any `thyResizeStart` listeners,\n // e.g.: `<div thyResizable (thyResizeStart)=\"...\"></div>`.\n if (this.thyResizeStart.observers.length) {\n this.ngZone.run(() => this.thyResizeStart.emit({ mouseEvent }));\n }\n this.nativeElementRect = this.nativeElement.getBoundingClientRect();\n });\n\n this.thyResizableService.documentMouseUpOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(event => {\n if (this.resizing) {\n this.ngZone.run(() => {\n this.resizing = false;\n this.changeDetectorRef.markForCheck();\n });\n this.thyResizableService.documentMouseUpOutsideAngular$.next(event);\n this.endResize(event);\n }\n });\n\n this.thyResizableService.documentMouseMoveOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(event => {\n if (this.resizing) {\n this.resize(event);\n }\n });\n }\n\n ngAfterViewInit(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.nativeElement = this.elementRef.nativeElement;\n this.ngZone.runOutsideAngular(() => {\n fromEvent(this.nativeElement, 'mouseenter')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.thyResizableService.mouseEnteredOutsideAngular$.next(true);\n });\n\n fromEvent(this.nativeElement, 'mouseleave')\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.thyResizableService.mouseEnteredOutsideAngular$.next(false);\n });\n });\n }\n\n setCursor(): void {\n switch (this.currentHandleEvent!.direction) {\n case 'left':\n case 'right':\n this.renderer.setStyle(document.body, 'cursor', 'ew-resize');\n break;\n case 'top':\n case 'bottom':\n this.renderer.setStyle(document.body, 'cursor', 'ns-resize');\n break;\n case 'topLeft':\n case 'bottomRight':\n this.renderer.setStyle(document.body, 'cursor', 'nwse-resize');\n break;\n case 'topRight':\n case 'bottomLeft':\n this.renderer.setStyle(document.body, 'cursor', 'nesw-resize');\n break;\n }\n setCompatibleStyle(document.body, 'user-select', 'none');\n }\n\n endResize(event: MouseEvent | TouchEvent): void {\n this.renderer.setStyle(document.body, 'cursor', '');\n setCompatibleStyle(document.body, 'user-select', '');\n this.removeGhostElement();\n const size = this.sizeCache\n ? { ...this.sizeCache }\n : {\n width: this.nativeElementRect.width,\n height: this.nativeElementRect.height\n };\n // Re-enter the Angular zone and run the change detection only if there're any `thyResizeEnd` listeners,\n // e.g.: `<div thyResizable (thyResizeEnd)=\"...\"></div>`.\n if (this.thyResizeEnd.observers.length) {\n this.ngZone.run(() => {\n this.thyResizeEnd.emit({\n ...size,\n mouseEvent: event\n });\n });\n }\n this.sizeCache = null;\n this.currentHandleEvent = null;\n }\n\n resize(event: MouseEvent | TouchEvent): void {\n const nativeElementRect = this.nativeElementRect;\n const resizeEvent = getEventWithPoint(event);\n const handleEvent = getEventWithPoint(this.currentHandleEvent!.mouseEvent);\n let width = nativeElementRect.width;\n let height = nativeElementRect.height;\n const ratio = this.thyLockAspectRatio ? width / height : -1;\n switch (this.currentHandleEvent!.direction) {\n case 'bottomRight':\n width = resizeEvent.clientX - nativeElementRect.left;\n height = resizeEvent.clientY - nativeElementRect.top;\n break;\n case 'bottomLeft':\n width = nativeElementRect.width + (handleEvent.clientX - resizeEvent.clientX);\n height = resizeEvent.clientY - nativeElementRect.top;\n break;\n case 'topRight':\n width = resizeEvent.clientX - nativeElementRect.left;\n height = nativeElementRect.height + (handleEvent.clientY - resizeEvent.clientY);\n break;\n case 'topLeft':\n width = nativeElementRect.width + (handleEvent.clientX - resizeEvent.clientX);\n height = nativeElementRect.height + (handleEvent.clientY - resizeEvent.clientY);\n break;\n case 'top':\n height = nativeElementRect.height + (handleEvent.clientY - resizeEvent.clientY);\n break;\n case 'right':\n width = resizeEvent.clientX - nativeElementRect.left;\n break;\n case 'bottom':\n height = resizeEvent.clientY - nativeElementRect.top;\n break;\n case 'left':\n width = nativeElementRect.width + (handleEvent.clientX - resizeEvent.clientX);\n }\n const size = this.calcSize(width, height, ratio);\n this.sizeCache = { ...size };\n // Re-enter the Angular zone and run the change detection only if there're any `thyResize` listeners,\n // e.g.: `<div thyResizable (thyResize)=\"...\"></div>`.\n if (this.thyResize.observers.length) {\n this.ngZone.run(() => {\n this.thyResize.emit({\n ...size,\n mouseEvent: event\n });\n });\n }\n\n if (this.thyPreview) {\n this.previewResize(size);\n }\n }\n\n calcSize(width: number, height: number, ratio: number): ThyResizeEvent {\n let newWidth: number;\n let newHeight: number;\n let maxWidth: number;\n let maxHeight: number;\n let col = 0;\n let spanWidth = 0;\n let minWidth = this.thyMinWidth;\n let boundWidth = Infinity;\n let boundHeight = Infinity;\n if (this.thyBounds === 'parent') {\n const parent = this.renderer.parentNode(this.nativeElement);\n if (parent instanceof HTMLElement) {\n const parentRect = parent.getBoundingClientRect();\n boundWidth = parentRect.width;\n boundHeight = parentRect.height;\n }\n } else if (this.thyBounds === 'window') {\n if (typeof window !== 'undefined') {\n boundWidth = window.innerWidth;\n boundHeight = window.innerHeight;\n }\n } else if (this.thyBounds && this.thyBounds.nativeElement && this.thyBounds.nativeElement instanceof HTMLElement) {\n const boundsRect = this.thyBounds.nativeElement.getBoundingClientRect();\n boundWidth = boundsRect.width;\n boundHeight = boundsRect.height;\n }\n\n maxWidth = ensureInBounds(this.thyMaxWidth!, boundWidth);\n maxHeight = ensureInBounds(this.thyMaxHeight!, boundHeight);\n\n if (this.thyGridColumnCount !== -1) {\n spanWidth = maxWidth / this.thyGridColumnCount;\n minWidth = this.thyMinColumn !== -1 ? spanWidth * this.thyMinColumn : minWidth;\n maxWidth = this.thyMaxColumn !== -1 ? spanWidth * this.thyMaxColumn : maxWidth;\n }\n\n if (ratio !== -1) {\n if (/(left|right)/i.test(this.currentHandleEvent!.direction)) {\n newWidth = Math.min(Math.max(width, minWidth), maxWidth);\n newHeight = Math.min(Math.max(newWidth / ratio, this.thyMinHeight), maxHeight);\n if (newHeight >= maxHeight || newHeight <= this.thyMinHeight) {\n newWidth = Math.min(Math.max(newHeight * ratio, minWidth), maxWidth);\n }\n } else {\n newHeight = Math.min(Math.max(height, this.thyMinHeight), maxHeight);\n newWidth = Math.min(Math.max(newHeight * ratio, minWidth), maxWidth);\n if (newWidth >= maxWidth || newWidth <= minWidth) {\n newHeight = Math.min(Math.max(newWidth / ratio, this.thyMinHeight), maxHeight);\n }\n }\n } else {\n newWidth = Math.min(Math.max(width, minWidth), maxWidth);\n newHeight = Math.min(Math.max(height, this.thyMinHeight), maxHeight);\n }\n\n if (this.thyGridColumnCount !== -1) {\n col = Math.round(newWidth / spanWidth);\n newWidth = col * spanWidth;\n }\n\n return {\n col,\n width: newWidth,\n height: newHeight\n };\n }\n\n previewResize({ width, height }: ThyResizeEvent): void {\n this.createGhostElement();\n this.renderer.setStyle(this.ghostElement, 'width', `${width}px`);\n this.renderer.setStyle(this.ghostElement, 'height', `${height}px`);\n }\n\n createGhostElement(): void {\n if (!this.ghostElement) {\n this.ghostElement = this.renderer.createElement('div');\n this.renderer.setAttribute(this.ghostElement, 'class', 'thy-resizable-preview');\n }\n this.renderer.appendChild(this.nativeElement, this.ghostElement);\n }\n\n removeGhostElement(): void {\n if (this.ghostElement) {\n this.renderer.removeChild(this.nativeElement, this.ghostElement);\n }\n }\n\n ngOnDestroy(): void {\n this.ghostElement = null;\n this.sizeCache = null;\n }\n}\n","import {\n OnInit,\n Component,\n ChangeDetectionStrategy,\n Input,\n Output,\n NgZone,\n EventEmitter,\n ElementRef,\n inject,\n DestroyRef\n} from '@angular/core';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { ThyResizeDirection } from './interface';\nimport { ThyResizableService } from './resizable.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { fromEvent, merge } from 'rxjs';\nimport { useHostRenderer } from '@tethys/cdk/dom';\n\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport class ThyResizeHandleMouseDownEvent {\n constructor(\n public direction: ThyResizeDirection,\n public mouseEvent: MouseEvent | TouchEvent\n ) {}\n}\n\nconst passiveEventListenerOptions = <AddEventListenerOptions>normalizePassiveListenerOptions({ passive: true });\n\n/**\n * 定义调整手柄及方向\n * @name thy-resize-handle\n */\n@Component({\n selector: 'thy-resize-handle, [thy-resize-handle]',\n exportAs: 'thyResizeHandle',\n template: `\n <ng-content></ng-content>\n @if (thyLine) {\n <div class=\"thy-resizable-handle-line\"></div>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-resizable-handle',\n '[class.thy-resizable-handle-top]': `thyDirection === 'top'`,\n '[class.thy-resizable-handle-right]': `thyDirection === 'right'`,\n '[class.thy-resizable-handle-bottom]': `thyDirection === 'bottom'`,\n '[class.thy-resizable-handle-left]': `thyDirection === 'left'`,\n '[class.thy-resizable-handle-topRight]': `thyDirection === 'topRight'`,\n '[class.thy-resizable-handle-bottomRight]': `thyDirection === 'bottomRight'`,\n '[class.thy-resizable-handle-bottomLeft]': `thyDirection === 'bottomLeft'`,\n '[class.thy-resizable-handle-topLeft]': `thyDirection === 'topLeft'`,\n '[class.thy-resizable-handle-box-hover]': 'entered'\n },\n standalone: true,\n imports: []\n})\nexport class ThyResizeHandle implements OnInit {\n /**\n * 调整方向\n * @type top | right | bottom | left | topRight | bottomRight | bottomLeft | topLeft\n */\n @Input() thyDirection: ThyResizeDirection = 'bottomRight';\n\n /**\n * 是否展示拖拽线\n */\n @Input({ transform: coerceBooleanProperty }) thyLine = false;\n\n /**\n * MouseDown 回调事件\n */\n @Output() readonly thyMouseDown = new EventEmitter<ThyResizeHandleMouseDownEvent>();\n\n private hostRenderer = useHostRenderer();\n\n private readonly destroyRef = inject(DestroyRef);\n\n constructor(\n private ngZone: NgZone,\n private thyResizableService: ThyResizableService,\n private host: ElementRef<HTMLElement>\n ) {}\n\n ngOnInit(): void {\n this.thyResizableService.mouseEnteredOutsideAngular$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(entered => {\n if (entered) {\n this.hostRenderer.addClass('thy-resizable-handle-box-hover');\n } else {\n this.hostRenderer.removeClass('thy-resizable-handle-box-hover');\n }\n });\n this.ngZone.runOutsideAngular(() => {\n // Note: since Chrome 56 defaults document level `touchstart` listener to passive.\n // The element `touchstart` listener is not passive by default\n // We never call `preventDefault()` on it, so we're safe making it passive too.\n merge(\n fromEvent<MouseEvent>(this.host.nativeElement, 'mousedown', passiveEventListenerOptions),\n fromEvent<TouchEvent>(this.host.nativeElement, 'touchstart', passiveEventListenerOptions)\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event: MouseEvent | TouchEvent) => {\n this.thyResizableService.handleMouseDownOutsideAngular$.next(\n new ThyResizeHandleMouseDownEvent(this.thyDirection, event)\n );\n });\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core';\nimport { ThyResizeDirection } from './interface';\nimport { ThyResizeHandle } from './resize-handle.component';\n\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport const DEFAULT_RESIZE_DIRECTION: ThyResizeDirection[] = [\n 'bottomRight',\n 'topRight',\n 'bottomLeft',\n 'topLeft',\n 'bottom',\n 'right',\n 'top',\n 'left'\n];\n\n/**\n * 定义调整手柄的快捷组件\n * @name thy-resize-handles\n */\n@Component({\n selector: 'thy-resize-handles',\n exportAs: 'thyResizeHandles',\n template: `\n @for (dir of directions; track $index) {\n <thy-resize-handle [thyLine]=\"thyLine\" [thyDirection]=\"dir\"></thy-resize-handle>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [ThyResizeHandle]\n})\nexport class ThyResizeHandles implements OnChanges {\n /**\n * 定义调整手柄的方向\n * @type ThyResizeDirection[]\n */\n @Input() thyDirections: ThyResizeDirection[] = DEFAULT_RESIZE_DIRECTION;\n\n /**\n * 是否展示拖拽线\n */\n @Input({ transform: coerceBooleanProperty }) thyLine = false;\n\n directions = new Set<ThyResizeDirection>(this.thyDirections);\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.thyDirections) {\n this.directions = new Set(changes.thyDirections.currentValue);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ThyResizableDirective } from './resizable.directive';\nimport { ThyResizeHandle } from './resize-handle.component';\nimport { ThyResizeHandles } from './resize-handles.component';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule, ThyResizableDirective, ThyResizeHandle, ThyResizeHandles],\n exports: [ThyResizableDirective, ThyResizeHandle, ThyResizeHandles]\n})\nexport class ThyResizableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.ThyResizableService","i1.ThyResizableService"],"mappings":";;;;;;;;;;AAMA;;AAEG;MAEU,mBAAmB,CAAA;IAoB5B,WACY,CAAA,MAAc,EACJ,QAAa,EAAA;QADvB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAnBlB,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,GAAG,EAAoD,CAAC;AAEhF;;;;;;;;;AASG;AAEH,QAAA,IAAA,CAAA,8BAA8B,GAAG,IAAI,OAAO,EAAiC,CAAC;AAC9E,QAAA,IAAA,CAAA,8BAA8B,GAAG,IAAI,OAAO,EAA2B,CAAC;AACxE,QAAA,IAAA,CAAA,gCAAgC,GAAG,IAAI,OAAO,EAA2B,CAAC;AAC1E,QAAA,IAAA,CAAA,2BAA2B,GAAG,IAAI,OAAO,EAAW,CAAC;AAMjD,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;AAED,IAAA,aAAa,CAAC,KAA8B,EAAA;AACxC,QAAA,MAAM,aAAa,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,CAAC;QAC5D,MAAM,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,CAAC;AACvD,QAAA,MAAM,gBAAgB,GAAG,CAAC,CAA0B,KAAI;AACpD,YAAA,IAAI,CAAC,gCAAgC,CAAC,IAAI,CAAC,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