@ng-nest/ui 20.0.7 → 20.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/auto-complete/index.d.ts +30 -5
  2. package/avatar/index.d.ts +64 -2
  3. package/base-form/index.d.ts +3 -3
  4. package/bubble/index.d.ts +170 -0
  5. package/cascade/index.d.ts +30 -5
  6. package/checkbox/index.d.ts +4 -4
  7. package/color-picker/index.d.ts +31 -5
  8. package/core/index.d.ts +48 -4
  9. package/date-picker/index.d.ts +53 -8
  10. package/fesm2022/ng-nest-ui-affix.mjs +12 -12
  11. package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
  12. package/fesm2022/ng-nest-ui-alert.mjs +35 -35
  13. package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
  14. package/fesm2022/ng-nest-ui-anchor.mjs +31 -31
  15. package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
  16. package/fesm2022/ng-nest-ui-api.mjs +7 -7
  17. package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
  18. package/fesm2022/ng-nest-ui-auto-complete.mjs +82 -72
  19. package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
  20. package/fesm2022/ng-nest-ui-avatar.mjs +43 -31
  21. package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
  22. package/fesm2022/ng-nest-ui-back-top.mjs +18 -18
  23. package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
  24. package/fesm2022/ng-nest-ui-badge.mjs +23 -23
  25. package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
  26. package/fesm2022/ng-nest-ui-base-form.mjs +45 -45
  27. package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
  28. package/fesm2022/ng-nest-ui-bubble.mjs +350 -0
  29. package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -0
  30. package/fesm2022/ng-nest-ui-button.mjs +42 -42
  31. package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
  32. package/fesm2022/ng-nest-ui-calendar.mjs +20 -20
  33. package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
  34. package/fesm2022/ng-nest-ui-card.mjs +15 -15
  35. package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
  36. package/fesm2022/ng-nest-ui-carousel.mjs +46 -46
  37. package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
  38. package/fesm2022/ng-nest-ui-cascade.mjs +86 -76
  39. package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
  40. package/fesm2022/ng-nest-ui-checkbox.mjs +39 -39
  41. package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
  42. package/fesm2022/ng-nest-ui-collapse.mjs +31 -31
  43. package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
  44. package/fesm2022/ng-nest-ui-color-picker.mjs +91 -72
  45. package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
  46. package/fesm2022/ng-nest-ui-color.mjs +16 -16
  47. package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
  48. package/fesm2022/ng-nest-ui-comment.mjs +21 -21
  49. package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
  50. package/fesm2022/ng-nest-ui-container.mjs +37 -37
  51. package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
  52. package/fesm2022/ng-nest-ui-core.mjs +41 -22
  53. package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
  54. package/fesm2022/ng-nest-ui-crumb.mjs +13 -13
  55. package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
  56. package/fesm2022/ng-nest-ui-date-picker.mjs +273 -253
  57. package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
  58. package/fesm2022/ng-nest-ui-description.mjs +31 -31
  59. package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
  60. package/fesm2022/ng-nest-ui-dialog.mjs +81 -81
  61. package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
  62. package/fesm2022/ng-nest-ui-doc.mjs +7 -7
  63. package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
  64. package/fesm2022/ng-nest-ui-drag.mjs +10 -10
  65. package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
  66. package/fesm2022/ng-nest-ui-drawer.mjs +42 -42
  67. package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
  68. package/fesm2022/ng-nest-ui-dropdown.mjs +49 -49
  69. package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
  70. package/fesm2022/ng-nest-ui-empty.mjs +12 -12
  71. package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
  72. package/fesm2022/ng-nest-ui-examples.mjs +7 -7
  73. package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
  74. package/fesm2022/ng-nest-ui-find.mjs +79 -77
  75. package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
  76. package/fesm2022/ng-nest-ui-form.mjs +33 -33
  77. package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
  78. package/fesm2022/ng-nest-ui-highlight.mjs +20 -20
  79. package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
  80. package/fesm2022/ng-nest-ui-i18n.mjs +15 -15
  81. package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
  82. package/fesm2022/ng-nest-ui-icon.mjs +21 -21
  83. package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
  84. package/fesm2022/ng-nest-ui-image.mjs +39 -39
  85. package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
  86. package/fesm2022/ng-nest-ui-inner.mjs +11 -11
  87. package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
  88. package/fesm2022/ng-nest-ui-input-number.mjs +42 -42
  89. package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
  90. package/fesm2022/ng-nest-ui-input.mjs +103 -82
  91. package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
  92. package/fesm2022/ng-nest-ui-keyword.mjs +15 -15
  93. package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
  94. package/fesm2022/ng-nest-ui-layout.mjs +31 -31
  95. package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
  96. package/fesm2022/ng-nest-ui-link.mjs +18 -18
  97. package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
  98. package/fesm2022/ng-nest-ui-list.mjs +80 -80
  99. package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
  100. package/fesm2022/ng-nest-ui-loading.mjs +28 -23
  101. package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
  102. package/fesm2022/ng-nest-ui-menu.mjs +45 -45
  103. package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
  104. package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
  105. package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
  106. package/fesm2022/ng-nest-ui-message.mjs +10 -10
  107. package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
  108. package/fesm2022/ng-nest-ui-notification.mjs +10 -10
  109. package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
  110. package/fesm2022/ng-nest-ui-outlet.mjs +9 -9
  111. package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
  112. package/fesm2022/ng-nest-ui-page-header.mjs +15 -15
  113. package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
  114. package/fesm2022/ng-nest-ui-pagination.mjs +53 -53
  115. package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
  116. package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
  117. package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
  118. package/fesm2022/ng-nest-ui-popconfirm.mjs +27 -27
  119. package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
  120. package/fesm2022/ng-nest-ui-popover.mjs +38 -38
  121. package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
  122. package/fesm2022/ng-nest-ui-portal.mjs +7 -7
  123. package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
  124. package/fesm2022/ng-nest-ui-progress.mjs +38 -38
  125. package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
  126. package/fesm2022/ng-nest-ui-radio.mjs +36 -36
  127. package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
  128. package/fesm2022/ng-nest-ui-rate.mjs +30 -30
  129. package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
  130. package/fesm2022/ng-nest-ui-resizable.mjs +16 -16
  131. package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
  132. package/fesm2022/ng-nest-ui-result.mjs +16 -16
  133. package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
  134. package/fesm2022/ng-nest-ui-ripple.mjs +13 -13
  135. package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
  136. package/fesm2022/ng-nest-ui-scrollable.mjs +102 -19
  137. package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
  138. package/fesm2022/ng-nest-ui-select.mjs +121 -111
  139. package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
  140. package/fesm2022/ng-nest-ui-skeleton.mjs +15 -15
  141. package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
  142. package/fesm2022/ng-nest-ui-slider-select.mjs +54 -54
  143. package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
  144. package/fesm2022/ng-nest-ui-slider.mjs +39 -39
  145. package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
  146. package/fesm2022/ng-nest-ui-statistic.mjs +30 -30
  147. package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
  148. package/fesm2022/ng-nest-ui-steps.mjs +19 -19
  149. package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
  150. package/fesm2022/ng-nest-ui-switch.mjs +26 -26
  151. package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
  152. package/fesm2022/ng-nest-ui-table-view.mjs +490 -242
  153. package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
  154. package/fesm2022/ng-nest-ui-table.mjs +221 -221
  155. package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
  156. package/fesm2022/ng-nest-ui-tabs.mjs +58 -58
  157. package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
  158. package/fesm2022/ng-nest-ui-tag.mjs +22 -22
  159. package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
  160. package/fesm2022/ng-nest-ui-text-retract.mjs +15 -15
  161. package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
  162. package/fesm2022/ng-nest-ui-textarea.mjs +41 -41
  163. package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
  164. package/fesm2022/ng-nest-ui-theme.mjs +23 -23
  165. package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
  166. package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
  167. package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
  168. package/fesm2022/ng-nest-ui-time-picker.mjs +104 -94
  169. package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
  170. package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
  171. package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
  172. package/fesm2022/ng-nest-ui-timeline.mjs +15 -15
  173. package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
  174. package/fesm2022/ng-nest-ui-tooltip.mjs +38 -38
  175. package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
  176. package/fesm2022/ng-nest-ui-transfer.mjs +40 -40
  177. package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
  178. package/fesm2022/ng-nest-ui-tree-file.mjs +28 -28
  179. package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
  180. package/fesm2022/ng-nest-ui-tree-select.mjs +126 -116
  181. package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
  182. package/fesm2022/ng-nest-ui-tree.mjs +107 -107
  183. package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
  184. package/fesm2022/ng-nest-ui-typography.mjs +13 -13
  185. package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
  186. package/fesm2022/ng-nest-ui-upload.mjs +37 -37
  187. package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
  188. package/fesm2022/ng-nest-ui.mjs +1 -0
  189. package/fesm2022/ng-nest-ui.mjs.map +1 -1
  190. package/find/index.d.ts +5 -5
  191. package/form/index.d.ts +1 -1
  192. package/index.d.ts +1 -0
  193. package/input/index.d.ts +32 -5
  194. package/input-number/index.d.ts +5 -5
  195. package/list/index.d.ts +2 -2
  196. package/loading/index.d.ts +6 -1
  197. package/package.json +60 -56
  198. package/radio/index.d.ts +4 -4
  199. package/rate/index.d.ts +5 -5
  200. package/scrollable/index.d.ts +15 -7
  201. package/select/index.d.ts +35 -5
  202. package/slider-select/index.d.ts +3 -3
  203. package/switch/index.d.ts +3 -3
  204. package/table-view/index.d.ts +121 -79
  205. package/textarea/index.d.ts +3 -3
  206. package/theme/index.d.ts +1 -1
  207. package/time-picker/index.d.ts +30 -5
  208. package/transfer/index.d.ts +1 -1
  209. package/tree-select/index.d.ts +30 -5
  210. package/upload/index.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-anchor.mjs","sources":["../../../../lib/ng-nest/ui/anchor/anchor.property.ts","../../../../lib/ng-nest/ui/anchor/anchor.component.ts","../../../../lib/ng-nest/ui/anchor/anchor.component.html","../../../../lib/ng-nest/ui/anchor/anchor-inner.component.ts","../../../../lib/ng-nest/ui/anchor/anchor.module.ts","../../../../lib/ng-nest/ui/anchor/ng-nest-ui-anchor.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { XPropertyFunction, XToCssPixelValue } from '@ng-nest/ui/core';\r\nimport type { XIdentityProperty, XJustify, XPositionLeftRight, XNumber } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Anchor\r\n * @selector x-anchor\r\n * @decorator component\r\n */\r\nexport const XAnchorPrefix = 'x-anchor';\r\nconst X_ANCHOR_CONFIG_NAME = 'anchor';\r\n\r\n/**\r\n * Anchor Property\r\n */\r\n@Component({\r\n selector: `${XAnchorPrefix}-property`, template: ''\r\n})\r\nexport class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {\r\n /**\r\n * @zh_CN 滚动区域对象\r\n * @en_US Scroll area object\r\n * @example\r\n *\r\n * ```html\r\n * <div #scroll style=\"height: 60rem; width: 100%; overflow: auto;\">\r\n * <x-anchor [scroll]=\"scroll\">\r\n * ...\r\n * </x-anchor>\r\n * </div>\r\n * ```\r\n */\r\n readonly scroll = input<HTMLElement>();\r\n /**\r\n * @zh_CN 顶部距离\r\n * @en_US Top distance\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor affixTop=\"100\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly affixTop = input<string, XNumber>(this.config?.affixTop ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 底部距离\r\n * @en_US Bottom distance\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor affixBottom=\"100\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly affixBottom = input<string, XNumber>(this.config?.affixBottom ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 导航宽度\r\n * @en_US Navigation Width\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor affixWidth=\"150\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly affixWidth = input<string, XNumber>(this.config?.affixWidth!, { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 导航相对内容位置\r\n * @en_US Navigation relative content position\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor layout=\"left\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly layout = input<XAnchorLayout>(this.config?.layout ?? 'right');\r\n /**\r\n * @zh_CN 对齐方式\r\n * @en_US Alignment\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor justify=\"end\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly justify = input<XJustify>(this.config?.justify ?? 'start');\r\n}\r\n\r\n/**\r\n * Anchor inner\r\n * @selector x-anchor-inner\r\n * @decorator component\r\n */\r\nexport const XAnchorInnerPrefix = 'x-anchor-inner';\r\n\r\n/**\r\n * Anchor inner Property\r\n */\r\n@Component({\r\n selector: `${XAnchorInnerPrefix}-property`, template: ''\r\n})\r\nexport class XAnchorInnerProperty {}\r\n\r\n/**\r\n * Anchor Node\r\n */\r\nexport interface XAnchorNode extends XIdentityProperty {\r\n /**\r\n * @zh_CN 左内边距,用来显示层级\r\n * @en_US Left inner margin, used to display hierarchy\r\n */\r\n left?: number;\r\n /**\r\n * @zh_CN 图标\r\n * @en_US Icon\r\n */\r\n icon?: string;\r\n /**\r\n * @zh_CN 锚点的链接\r\n * @en_US Anchor link\r\n */\r\n link?: string;\r\n}\r\n\r\n/**\r\n * @zh_CN 布局方式,相对内容的位置\r\n * @en_US Layout method, relative content position\r\n */\r\nexport type XAnchorLayout = XPositionLeftRight;\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectionStrategy,\r\n AfterViewInit,\r\n OnDestroy,\r\n AfterContentChecked,\r\n inject,\r\n computed,\r\n signal,\r\n viewChild,\r\n SimpleChanges\r\n} from '@angular/core';\r\nimport { XAnchorPrefix, XAnchorProperty } from './anchor.property';\r\nimport { XComputedStyle, XIsEmpty, XRequestAnimationFrame, XIsNumber, XToCssPx, XIsChange } from '@ng-nest/ui/core';\r\nimport { XSliderComponent } from '@ng-nest/ui/slider';\r\nimport { XAffixComponent } from '@ng-nest/ui/affix';\r\nimport { DOCUMENT, NgClass } from '@angular/common';\r\nimport { fromEvent, Subject, Subscription } from 'rxjs';\r\nimport { throttleTime, takeUntil, distinctUntilChanged } from 'rxjs/operators';\r\nimport type { XSliderNode } from '@ng-nest/ui/slider';\r\nimport type { XAnchorNode } from './anchor.property';\r\n\r\n@Component({\r\n selector: `${XAnchorPrefix}`,\r\n imports: [NgClass, XAffixComponent, XSliderComponent],\r\n templateUrl: './anchor.component.html',\r\n styleUrls: ['./anchor.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XAnchorComponent extends XAnchorProperty implements OnInit, AfterViewInit, OnDestroy, AfterContentChecked {\r\n anchor = viewChild.required('anchor', { read: ElementRef<HTMLElement> });\r\n content = viewChild.required('content', { read: ElementRef<HTMLElement> });\r\n hElements = signal<NodeListOf<HTMLElement> | null>(null);\r\n sliderData = signal<XSliderNode[]>([]);\r\n activatedIndex = signal(0);\r\n\r\n document: Document = inject(DOCUMENT);\r\n contentChange = new Subject<string>();\r\n scrollElement = computed(() => {\r\n let scroll = this.scroll();\r\n if (!scroll) {\r\n scroll = this.document.documentElement;\r\n }\r\n return scroll;\r\n });\r\n sliderHeight = computed(() => {\r\n if (XIsEmpty(this.sliderData())) {\r\n return 0;\r\n } else {\r\n const height = this.scrollElement().offsetHeight;\r\n const top = parseFloat(XComputedStyle(this.scrollElement(), 'padding-top'));\r\n const borderTop = parseFloat(XComputedStyle(this.scrollElement(), 'border-top'));\r\n const bottom = parseFloat(XComputedStyle(this.scrollElement(), 'padding-bottom'));\r\n const borderBottom = parseFloat(XComputedStyle(this.scrollElement(), 'border-bottom'));\r\n return (\r\n height -\r\n top -\r\n bottom -\r\n borderTop -\r\n borderBottom -\r\n XToCssPx(this.affixTop(), this.fontSize()) -\r\n XToCssPx(this.affixBottom(), this.fontSize())\r\n );\r\n }\r\n });\r\n classMap = computed(() => ({\r\n [`${XAnchorPrefix}-${this.layout()}`]: !XIsEmpty(this.layout())\r\n }));\r\n private scrolling = signal(false);\r\n private fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')));\r\n private unSubject = new Subject<void>();\r\n private renderer = inject(Renderer2);\r\n private elementRef = inject(ElementRef);\r\n private scrollChanged = signal<Subscription | null>(null);\r\n\r\n ngAfterContentChecked(): void {\r\n this.contentChange.next(this.elementRef.nativeElement.innerText);\r\n }\r\n\r\n ngOnInit() {\r\n this.setSliderData();\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.contentChange.pipe(distinctUntilChanged(), takeUntil(this.unSubject)).subscribe(() => {\r\n this.setSliderData();\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.unSubject.next();\r\n this.unSubject.complete();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n const { scroll } = changes;\r\n XIsChange(scroll) && this.setScroll();\r\n }\r\n\r\n activatedChange(index: number) {\r\n const hElements = this.hElements();\r\n\r\n this.scrolling.set(true);\r\n const hElement = hElements![index];\r\n let scrollTop =\r\n hElement.offsetTop - this.anchor().nativeElement.offsetTop - parseFloat(XComputedStyle(hElement, 'margin-top'));\r\n let maxScrollTop = this.scrollElement().scrollHeight - this.scrollElement().clientHeight;\r\n if (scrollTop > maxScrollTop) scrollTop = maxScrollTop;\r\n this.scrollTo(this.scrollElement(), parseInt(`${scrollTop}`), 150);\r\n }\r\n\r\n private setScroll() {\r\n const elementScroll = this.scrollElement();\r\n const listenScroll = elementScroll.tagName === 'HTML' ? this.document.defaultView : elementScroll;\r\n if (this.scrollChanged()) this.scrollChanged()!.unsubscribe();\r\n this.scrollChanged.set(\r\n fromEvent(listenScroll!, 'scroll')\r\n .pipe(throttleTime(10), takeUntil(this.unSubject))\r\n .subscribe(() => {\r\n if (this.scrolling()) return;\r\n this.setActivatedByScroll();\r\n })\r\n );\r\n }\r\n\r\n private setActivatedByScroll() {\r\n let now = 0;\r\n const hElements = this.hElements();\r\n hElements!.forEach((h, index) => {\r\n let distance = this.scrollElement().scrollTop + this.anchor().nativeElement.offsetTop;\r\n if (distance >= h.offsetTop) {\r\n now = index;\r\n return;\r\n }\r\n });\r\n this.activatedIndex.set(now);\r\n }\r\n\r\n private setSliderData() {\r\n this.hElements.set(\r\n this.content().nativeElement.querySelectorAll(\r\n ':scope> h1,:scope> h2,:scope> h3,:scope> h4,:scope> h5,:scope> x-anchor-inner> h1,:scope> x-anchor-inner>h2,:scope> x-anchor-inner>h3,:scope> x-anchor-inner>h4,:scope> x-anchor-inner>h5'\r\n )\r\n );\r\n const hElements = this.hElements();\r\n if (hElements!.length > 0) {\r\n let list: XAnchorNode[] = [];\r\n hElements!.forEach((x: HTMLElement, i: number) => {\r\n const link = `x-anchor-${i}`;\r\n const left = this.setLeft(x);\r\n this.renderer.setAttribute(x, 'id', link);\r\n list = [\r\n ...list,\r\n {\r\n id: i,\r\n label: x.innerText,\r\n left: left,\r\n link: link\r\n }\r\n ];\r\n });\r\n this.sliderData.set(list);\r\n } else {\r\n this.sliderData.set([]);\r\n }\r\n }\r\n\r\n private setLeft(element: HTMLElement): number {\r\n const eles = ['H1', 'H2', 'H3', 'H4', 'H5'];\r\n const index = eles.indexOf(element.tagName);\r\n return index + 1;\r\n }\r\n\r\n private scrollTo(element: HTMLElement, to: number, duration: number) {\r\n const difference = to - element.scrollTop;\r\n const perTick = (difference / duration) * 10;\r\n XRequestAnimationFrame(() => {\r\n const num = element.scrollTop + perTick;\r\n if (XIsNumber(num) && num !== Infinity) {\r\n element.scrollTop = num;\r\n }\r\n if (element.scrollTop === to || duration <= 0) {\r\n setTimeout(() => this.scrolling.set(false), 20);\r\n return;\r\n } else {\r\n this.scrollTo(element, to, duration - 10);\r\n }\r\n });\r\n }\r\n}\r\n","<div #anchor class=\"x-anchor\" [ngClass]=\"classMap()\">\r\n <div #content class=\"x-anchor-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <x-affix class=\"x-anchor-affix\" [top]=\"affixTop()\">\r\n <div class=\"x-anchor-slider\" [style.height.px]=\"sliderHeight()\" [style.width]=\"affixWidth()\">\r\n <x-slider\r\n [data]=\"sliderData()\"\r\n layout=\"column\"\r\n [(activatedIndex)]=\"activatedIndex\"\r\n [nodeJustify]=\"justify()\"\r\n [nodeTpl]=\"sliderNodeTpl\"\r\n [showAnchor]=\"true\"\r\n (indexChange)=\"activatedChange($event)\"\r\n ></x-slider>\r\n </div>\r\n </x-affix>\r\n</div>\r\n\r\n<ng-template #sliderNodeTpl let-node=\"$node\">\r\n <span [style.padding-left.rem]=\"node.left - 1\">{{ node.label }}</span>\r\n</ng-template>\r\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\r\nimport { XAnchorInnerPrefix, XAnchorInnerProperty } from './anchor.property';\r\n\r\n@Component({\r\n selector: `${XAnchorInnerPrefix}`,\r\n template: '<ng-content></ng-content>',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XAnchorInnerComponent extends XAnchorInnerProperty {}\r\n","import { NgModule } from '@angular/core';\r\nimport { XAnchorComponent } from './anchor.component';\r\nimport { XAnchorInnerComponent } from './anchor-inner.component';\r\n\r\n@NgModule({\r\n exports: [XAnchorComponent, XAnchorInnerComponent],\r\n imports: [XAnchorComponent, XAnchorInnerComponent]\r\n})\r\nexport class XAnchorModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAIA;;;;AAIG;AACI,MAAM,aAAa,GAAG;AAC7B,MAAM,oBAAoB,GAAG,QAAQ;AAErC;;AAEG;MAIU,eAAgB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC,CAAA;AAH5E,IAAA,WAAA,GAAA;;AAIE;;;;;;;;;;;;AAYG;QACM,IAAM,CAAA,MAAA,GAAG,KAAK,EAAe;AACtC;;;;;;;;;;;AAWG;AACM,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AACzG;;;;;;;;;;;AAWG;AACM,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAkB,IAAI,CAAC,M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or.component.ts","../../../../lib/ng-nest/ui/anchor/anchor.component.html","../../../../lib/ng-nest/ui/anchor/anchor-inner.component.ts","../../../../lib/ng-nest/ui/anchor/anchor.module.ts","../../../../lib/ng-nest/ui/anchor/ng-nest-ui-anchor.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { XPropertyFunction, XToCssPixelValue } from '@ng-nest/ui/core';\r\nimport type { XIdentityProperty, XJustify, XPositionLeftRight, XNumber } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Anchor\r\n * @selector x-anchor\r\n * @decorator component\r\n */\r\nexport const XAnchorPrefix = 'x-anchor';\r\nconst X_ANCHOR_CONFIG_NAME = 'anchor';\r\n\r\n/**\r\n * Anchor Property\r\n */\r\n@Component({\r\n selector: `${XAnchorPrefix}-property`, template: ''\r\n})\r\nexport class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {\r\n /**\r\n * @zh_CN 滚动区域对象\r\n * @en_US Scroll area object\r\n * @example\r\n *\r\n * ```html\r\n * <div #scroll style=\"height: 60rem; width: 100%; overflow: auto;\">\r\n * <x-anchor [scroll]=\"scroll\">\r\n * ...\r\n * </x-anchor>\r\n * </div>\r\n * ```\r\n */\r\n readonly scroll = input<HTMLElement>();\r\n /**\r\n * @zh_CN 顶部距离\r\n * @en_US Top distance\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor affixTop=\"100\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly affixTop = input<string, XNumber>(this.config?.affixTop ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 底部距离\r\n * @en_US Bottom distance\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor affixBottom=\"100\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly affixBottom = input<string, XNumber>(this.config?.affixBottom ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 导航宽度\r\n * @en_US Navigation Width\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor affixWidth=\"150\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly affixWidth = input<string, XNumber>(this.config?.affixWidth!, { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 导航相对内容位置\r\n * @en_US Navigation relative content position\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor layout=\"left\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly layout = input<XAnchorLayout>(this.config?.layout ?? 'right');\r\n /**\r\n * @zh_CN 对齐方式\r\n * @en_US Alignment\r\n * @example\r\n *\r\n * ```html\r\n * <x-anchor justify=\"end\">\r\n * ...\r\n * </x-anchor>\r\n * ```\r\n *\r\n */\r\n readonly justify = input<XJustify>(this.config?.justify ?? 'start');\r\n}\r\n\r\n/**\r\n * Anchor inner\r\n * @selector x-anchor-inner\r\n * @decorator component\r\n */\r\nexport const XAnchorInnerPrefix = 'x-anchor-inner';\r\n\r\n/**\r\n * Anchor inner Property\r\n */\r\n@Component({\r\n selector: `${XAnchorInnerPrefix}-property`, template: ''\r\n})\r\nexport class XAnchorInnerProperty {}\r\n\r\n/**\r\n * Anchor Node\r\n */\r\nexport interface XAnchorNode extends XIdentityProperty {\r\n /**\r\n * @zh_CN 左内边距,用来显示层级\r\n * @en_US Left inner margin, used to display hierarchy\r\n */\r\n left?: number;\r\n /**\r\n * @zh_CN 图标\r\n * @en_US Icon\r\n */\r\n icon?: string;\r\n /**\r\n * @zh_CN 锚点的链接\r\n * @en_US Anchor link\r\n */\r\n link?: string;\r\n}\r\n\r\n/**\r\n * @zh_CN 布局方式,相对内容的位置\r\n * @en_US Layout method, relative content position\r\n */\r\nexport type XAnchorLayout = XPositionLeftRight;\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectionStrategy,\r\n AfterViewInit,\r\n OnDestroy,\r\n AfterContentChecked,\r\n inject,\r\n computed,\r\n signal,\r\n viewChild,\r\n SimpleChanges\r\n} from '@angular/core';\r\nimport { XAnchorPrefix, XAnchorProperty } from './anchor.property';\r\nimport { XComputedStyle, XIsEmpty, XRequestAnimationFrame, XIsNumber, XToCssPx, XIsChange } from '@ng-nest/ui/core';\r\nimport { XSliderComponent } from '@ng-nest/ui/slider';\r\nimport { XAffixComponent } from '@ng-nest/ui/affix';\r\nimport { DOCUMENT, NgClass } from '@angular/common';\r\nimport { fromEvent, Subject, Subscription } from 'rxjs';\r\nimport { throttleTime, takeUntil, distinctUntilChanged } from 'rxjs/operators';\r\nimport type { XSliderNode } from '@ng-nest/ui/slider';\r\nimport type { XAnchorNode } from './anchor.property';\r\n\r\n@Component({\r\n selector: `${XAnchorPrefix}`,\r\n imports: [NgClass, XAffixComponent, XSliderComponent],\r\n templateUrl: './anchor.component.html',\r\n styleUrls: ['./anchor.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XAnchorComponent extends XAnchorProperty implements OnInit, AfterViewInit, OnDestroy, AfterContentChecked {\r\n anchor = viewChild.required('anchor', { read: ElementRef<HTMLElement> });\r\n content = viewChild.required('content', { read: ElementRef<HTMLElement> });\r\n hElements = signal<NodeListOf<HTMLElement> | null>(null);\r\n sliderData = signal<XSliderNode[]>([]);\r\n activatedIndex = signal(0);\r\n\r\n document: Document = inject(DOCUMENT);\r\n contentChange = new Subject<string>();\r\n scrollElement = computed(() => {\r\n let scroll = this.scroll();\r\n if (!scroll) {\r\n scroll = this.document.documentElement;\r\n }\r\n return scroll;\r\n });\r\n sliderHeight = computed(() => {\r\n if (XIsEmpty(this.sliderData())) {\r\n return 0;\r\n } else {\r\n const height = this.scrollElement().offsetHeight;\r\n const top = parseFloat(XComputedStyle(this.scrollElement(), 'padding-top'));\r\n const borderTop = parseFloat(XComputedStyle(this.scrollElement(), 'border-top'));\r\n const bottom = parseFloat(XComputedStyle(this.scrollElement(), 'padding-bottom'));\r\n const borderBottom = parseFloat(XComputedStyle(this.scrollElement(), 'border-bottom'));\r\n return (\r\n height -\r\n top -\r\n bottom -\r\n borderTop -\r\n borderBottom -\r\n XToCssPx(this.affixTop(), this.fontSize()) -\r\n XToCssPx(this.affixBottom(), this.fontSize())\r\n );\r\n }\r\n });\r\n classMap = computed(() => ({\r\n [`${XAnchorPrefix}-${this.layout()}`]: !XIsEmpty(this.layout())\r\n }));\r\n private scrolling = signal(false);\r\n private fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')));\r\n private unSubject = new Subject<void>();\r\n private renderer = inject(Renderer2);\r\n private elementRef = inject(ElementRef);\r\n private scrollChanged = signal<Subscription | null>(null);\r\n\r\n ngAfterContentChecked(): void {\r\n this.contentChange.next(this.elementRef.nativeElement.innerText);\r\n }\r\n\r\n ngOnInit() {\r\n this.setSliderData();\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.contentChange.pipe(distinctUntilChanged(), takeUntil(this.unSubject)).subscribe(() => {\r\n this.setSliderData();\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.unSubject.next();\r\n this.unSubject.complete();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n const { scroll } = changes;\r\n XIsChange(scroll) && this.setScroll();\r\n }\r\n\r\n activatedChange(index: number) {\r\n const hElements = this.hElements();\r\n\r\n this.scrolling.set(true);\r\n const hElement = hElements![index];\r\n let scrollTop =\r\n hElement.offsetTop - this.anchor().nativeElement.offsetTop - parseFloat(XComputedStyle(hElement, 'margin-top'));\r\n let maxScrollTop = this.scrollElement().scrollHeight - this.scrollElement().clientHeight;\r\n if (scrollTop > maxScrollTop) scrollTop = maxScrollTop;\r\n this.scrollTo(this.scrollElement(), parseInt(`${scrollTop}`), 150);\r\n }\r\n\r\n private setScroll() {\r\n const elementScroll = this.scrollElement();\r\n const listenScroll = elementScroll.tagName === 'HTML' ? this.document.defaultView : elementScroll;\r\n if (this.scrollChanged()) this.scrollChanged()!.unsubscribe();\r\n this.scrollChanged.set(\r\n fromEvent(listenScroll!, 'scroll')\r\n .pipe(throttleTime(10), takeUntil(this.unSubject))\r\n .subscribe(() => {\r\n if (this.scrolling()) return;\r\n this.setActivatedByScroll();\r\n })\r\n );\r\n }\r\n\r\n private setActivatedByScroll() {\r\n let now = 0;\r\n const hElements = this.hElements();\r\n hElements!.forEach((h, index) => {\r\n let distance = this.scrollElement().scrollTop + this.anchor().nativeElement.offsetTop;\r\n if (distance >= h.offsetTop) {\r\n now = index;\r\n return;\r\n }\r\n });\r\n this.activatedIndex.set(now);\r\n }\r\n\r\n private setSliderData() {\r\n this.hElements.set(\r\n this.content().nativeElement.querySelectorAll(\r\n ':scope> h1,:scope> h2,:scope> h3,:scope> h4,:scope> h5,:scope> x-anchor-inner> h1,:scope> x-anchor-inner>h2,:scope> x-anchor-inner>h3,:scope> x-anchor-inner>h4,:scope> x-anchor-inner>h5'\r\n )\r\n );\r\n const hElements = this.hElements();\r\n if (hElements!.length > 0) {\r\n let list: XAnchorNode[] = [];\r\n hElements!.forEach((x: HTMLElement, i: number) => {\r\n const link = `x-anchor-${i}`;\r\n const left = this.setLeft(x);\r\n this.renderer.setAttribute(x, 'id', link);\r\n list = [\r\n ...list,\r\n {\r\n id: i,\r\n label: x.innerText,\r\n left: left,\r\n link: link\r\n }\r\n ];\r\n });\r\n this.sliderData.set(list);\r\n } else {\r\n this.sliderData.set([]);\r\n }\r\n }\r\n\r\n private setLeft(element: HTMLElement): number {\r\n const eles = ['H1', 'H2', 'H3', 'H4', 'H5'];\r\n const index = eles.indexOf(element.tagName);\r\n return index + 1;\r\n }\r\n\r\n private scrollTo(element: HTMLElement, to: number, duration: number) {\r\n const difference = to - element.scrollTop;\r\n const perTick = (difference / duration) * 10;\r\n XRequestAnimationFrame(() => {\r\n const num = element.scrollTop + perTick;\r\n if (XIsNumber(num) && num !== Infinity) {\r\n element.scrollTop = num;\r\n }\r\n if (element.scrollTop === to || duration <= 0) {\r\n setTimeout(() => this.scrolling.set(false), 20);\r\n return;\r\n } else {\r\n this.scrollTo(element, to, duration - 10);\r\n }\r\n });\r\n }\r\n}\r\n","<div #anchor class=\"x-anchor\" [ngClass]=\"classMap()\">\r\n <div #content class=\"x-anchor-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <x-affix class=\"x-anchor-affix\" [top]=\"affixTop()\">\r\n <div class=\"x-anchor-slider\" [style.height.px]=\"sliderHeight()\" [style.width]=\"affixWidth()\">\r\n <x-slider\r\n [data]=\"sliderData()\"\r\n layout=\"column\"\r\n [(activatedIndex)]=\"activatedIndex\"\r\n [nodeJustify]=\"justify()\"\r\n [nodeTpl]=\"sliderNodeTpl\"\r\n [showAnchor]=\"true\"\r\n (indexChange)=\"activatedChange($event)\"\r\n ></x-slider>\r\n </div>\r\n </x-affix>\r\n</div>\r\n\r\n<ng-template #sliderNodeTpl let-node=\"$node\">\r\n <span [style.padding-left.rem]=\"node.left - 1\">{{ node.label }}</span>\r\n</ng-template>\r\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\r\nimport { XAnchorInnerPrefix, XAnchorInnerProperty } from './anchor.property';\r\n\r\n@Component({\r\n selector: `${XAnchorInnerPrefix}`,\r\n template: '<ng-content></ng-content>',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XAnchorInnerComponent extends XAnchorInnerProperty {}\r\n","import { NgModule } from '@angular/core';\r\nimport { XAnchorComponent } from './anchor.component';\r\nimport { XAnchorInnerComponent } from './anchor-inner.component';\r\n\r\n@NgModule({\r\n exports: [XAnchorComponent, XAnchorInnerComponent],\r\n imports: [XAnchorComponent, XAnchorInnerComponent]\r\n})\r\nexport class XAnchorModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAIA;;;;AAIG;AACI,MAAM,aAAa,GAAG;AAC7B,MAAM,oBAAoB,GAAG,QAAQ;AAErC;;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BAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC;AAC1C,iBAAA;;;MCAY,aAAa,CAAA;iIAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAb,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAFd,gBAAgB,EAAE,qBAAqB,CAAA,EAAA,OAAA,EAAA,CADvC,gBAAgB,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAGtC,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAFd,gBAAgB,CAAA,EAAA,CAAA,CAAA;;2FAEf,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;AAClD,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,qBAAqB;AAClD,iBAAA;;;ACPD;;AAEG;;;;"}
@@ -12,10 +12,10 @@ class XApiComponent {
12
12
  constructor() {
13
13
  this._has = true;
14
14
  }
15
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XApiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: XApiComponent, isStandalone: true, selector: "x-api", host: { properties: { "class.x-api": "this._has" } }, ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [".x-api{margin:0;padding:0}.x-api{display:block}.x-api>.x-api-selector:not(:first-child){margin-top:1rem}.x-api>.x-api-selector>span:first-child{font-size:1.25rem}.x-api>.x-api-selector>span:last-child{margin-left:1rem;padding:.25rem .5rem;color:var(--x-danger);background:var(--x-danger-900);border-radius:var(--x-border-small-radius)}.x-api>.x-api-interface>tr>td:nth-child(1){width:20%;position:relative;white-space:nowrap}.x-api>.x-api-interface>tr>td:nth-child(3){width:22%;color:#f637e3}.x-api>.x-api-interface>tr>td:nth-child(4){color:#fa2c05;width:16%}.x-api>.x-api-type>tr>td:nth-child(1){color:#3b82f6;width:20%}.x-api>.x-api-type>tr>td:nth-child(3){color:#dd4a68;width:35%}.x-api .x-api-name{color:#3b82f6;cursor:pointer;background-color:#3b82f61a;border-radius:var(--x-border-small-radius);padding:.25rem .325rem .25rem 1.5rem;transition:var(--x-animation-duration-base) background-color;will-change:background-color}.x-api .x-api-name:hover{background-color:#3b82f633}.x-api .x-api-signal{background:#3b82f61a;border-radius:var(--x-border-small-radius);color:var(--x-success);margin-right:-1.325rem;height:1.625rem;width:1.375rem;display:inline-flex;align-items:center;justify-content:center}.x-api .x-api-popover{color:#f637e3;cursor:pointer;background-color:#f637e31a;border-radius:var(--x-border-small-radius);padding:.25rem .325rem;transition:var(--x-animation-duration-base) background-color;will-change:background-color}.x-api .x-api-popover:hover{background-color:#f637e333}.x-api table{width:100%;background:var(--x-background);border-collapse:collapse;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-api table tr>th,.x-api table tr>td{border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border);text-align:left;padding:.5rem 0}.x-api table tr:last-child>th,.x-api table tr:last-child>td{border-width:0px}.x-api table tr th{white-space:nowrap;color:var(--x-text)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XApiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: XApiComponent, isStandalone: true, selector: "x-api", host: { properties: { "class.x-api": "this._has" } }, ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [".x-api{margin:0;padding:0}.x-api{display:block}.x-api>.x-api-selector:not(:first-child){margin-top:1rem}.x-api>.x-api-selector>span:first-child{font-size:1.25rem}.x-api>.x-api-selector>span:last-child{margin-left:1rem;padding:.25rem .5rem;color:var(--x-danger);background:var(--x-danger-900);border-radius:var(--x-border-small-radius)}.x-api>.x-api-interface>tr>td:nth-child(1){width:20%;position:relative;white-space:nowrap}.x-api>.x-api-interface>tr>td:nth-child(3){width:22%;color:#f637e3}.x-api>.x-api-interface>tr>td:nth-child(4){color:#fa2c05;width:16%}.x-api>.x-api-type>tr>td:nth-child(1){color:#3b82f6;width:20%}.x-api>.x-api-type>tr>td:nth-child(3){color:#dd4a68;width:35%}.x-api .x-api-name{color:#3b82f6;cursor:pointer;background-color:#3b82f61a;border-radius:var(--x-border-small-radius);padding:.25rem .325rem .25rem 1.5rem;transition:var(--x-animation-duration-base) background-color;will-change:background-color}.x-api .x-api-name:hover{background-color:#3b82f633}.x-api .x-api-signal{background:#3b82f61a;border-radius:var(--x-border-small-radius);color:var(--x-success);margin-right:-1.325rem;height:1.625rem;width:1.375rem;display:inline-flex;align-items:center;justify-content:center}.x-api .x-api-popover{color:#f637e3;cursor:pointer;background-color:#f637e31a;border-radius:var(--x-border-small-radius);padding:.25rem .325rem;transition:var(--x-animation-duration-base) background-color;will-change:background-color}.x-api .x-api-popover:hover{background-color:#f637e333}.x-api table{width:100%;background:var(--x-background);border-collapse:collapse;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-api table tr>th,.x-api table tr>td{border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border);text-align:left;padding:.5rem 0}.x-api table tr:last-child>th,.x-api table tr:last-child>td{border-width:0px}.x-api table tr th{white-space:nowrap;color:var(--x-text)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XApiComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XApiComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{ selector: `${XApiPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\r\n", styles: [".x-api{margin:0;padding:0}.x-api{display:block}.x-api>.x-api-selector:not(:first-child){margin-top:1rem}.x-api>.x-api-selector>span:first-child{font-size:1.25rem}.x-api>.x-api-selector>span:last-child{margin-left:1rem;padding:.25rem .5rem;color:var(--x-danger);background:var(--x-danger-900);border-radius:var(--x-border-small-radius)}.x-api>.x-api-interface>tr>td:nth-child(1){width:20%;position:relative;white-space:nowrap}.x-api>.x-api-interface>tr>td:nth-child(3){width:22%;color:#f637e3}.x-api>.x-api-interface>tr>td:nth-child(4){color:#fa2c05;width:16%}.x-api>.x-api-type>tr>td:nth-child(1){color:#3b82f6;width:20%}.x-api>.x-api-type>tr>td:nth-child(3){color:#dd4a68;width:35%}.x-api .x-api-name{color:#3b82f6;cursor:pointer;background-color:#3b82f61a;border-radius:var(--x-border-small-radius);padding:.25rem .325rem .25rem 1.5rem;transition:var(--x-animation-duration-base) background-color;will-change:background-color}.x-api .x-api-name:hover{background-color:#3b82f633}.x-api .x-api-signal{background:#3b82f61a;border-radius:var(--x-border-small-radius);color:var(--x-success);margin-right:-1.325rem;height:1.625rem;width:1.375rem;display:inline-flex;align-items:center;justify-content:center}.x-api .x-api-popover{color:#f637e3;cursor:pointer;background-color:#f637e31a;border-radius:var(--x-border-small-radius);padding:.25rem .325rem;transition:var(--x-animation-duration-base) background-color;will-change:background-color}.x-api .x-api-popover:hover{background-color:#f637e333}.x-api table{width:100%;background:var(--x-background);border-collapse:collapse;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-api table tr>th,.x-api table tr>td{border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border);text-align:left;padding:.5rem 0}.x-api table tr:last-child>th,.x-api table tr:last-child>td{border-width:0px}.x-api table tr th{white-space:nowrap;color:var(--x-text)}\n"] }]
21
21
  }], propDecorators: { _has: [{
@@ -24,11 +24,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
24
24
  }] } });
25
25
 
26
26
  class XApiModule {
27
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
28
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XApiModule, imports: [XApiComponent], exports: [XApiComponent] }); }
29
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XApiModule }); }
27
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
28
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: XApiModule, imports: [XApiComponent], exports: [XApiComponent] }); }
29
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XApiModule }); }
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XApiModule, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XApiModule, decorators: [{
32
32
  type: NgModule,
33
33
  args: [{
34
34
  exports: [XApiComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-api.mjs","sources":["../../../../lib/ng-nest/ui/api/api.property.ts","../../../../lib/ng-nest/ui/api/api.component.ts","../../../../lib/ng-nest/ui/api/api.component.html","../../../../lib/ng-nest/ui/api/api.module.ts","../../../../lib/ng-nest/ui/api/ng-nest-ui-api.ts"],"sourcesContent":["/**\r\n * Api\r\n * @selector x-api\r\n * @decorator component\r\n */\r\nexport const XApiPrefix = 'x-api';\r\n","import { Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding } from '@angular/core';\r\nimport { XApiPrefix } from './api.property';\r\n\r\n@Component({\r\n selector: `${XApiPrefix}`,\r\n templateUrl: './api.component.html',\r\n styleUrls: ['./style/index.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XApiComponent {\r\n @HostBinding(`class.x-api`) _has = true;\r\n}\r\n","<ng-content></ng-content>\r\n","import { NgModule } from '@angular/core';\r\nimport { XApiComponent } from './api.component';\r\n\r\n@NgModule({\r\n exports: [XApiComponent],\r\n imports: [XApiComponent]\r\n})\r\nexport class XApiModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;;;;AAIG;AACI,MAAM,UAAU,GAAG;;MCKb,aAAa,CAAA;AAP1B,IAAA,WAAA,GAAA;QAQ8B,IAAI,CAAA,IAAA,GAAG,IAAI;AACxC;iIAFY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,uHCV1B,+BACA,EAAA,MAAA,EAAA,CAAA,04DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDSa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACE,CAAG,EAAA,UAAU,EAAE,EAGV,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,CAAA,04DAAA,CAAA,EAAA;8BAGnB,IAAI,EAAA,CAAA;sBAA/B,WAAW;uBAAC,CAAa,WAAA,CAAA;;;MEJf,UAAU,CAAA;iIAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAV,UAAU,EAAA,OAAA,EAAA,CAFX,aAAa,CAAA,EAAA,OAAA,EAAA,CADb,aAAa,CAAA,EAAA,CAAA,CAAA;kIAGZ,UAAU,EAAA,CAAA,CAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,OAAO,EAAE,CAAC,aAAa;AACxB,iBAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-nest-ui-api.mjs","sources":["../../../../lib/ng-nest/ui/api/api.property.ts","../../../../lib/ng-nest/ui/api/api.component.ts","../../../../lib/ng-nest/ui/api/api.component.html","../../../../lib/ng-nest/ui/api/api.module.ts","../../../../lib/ng-nest/ui/api/ng-nest-ui-api.ts"],"sourcesContent":["/**\r\n * Api\r\n * @selector x-api\r\n * @decorator component\r\n */\r\nexport const XApiPrefix = 'x-api';\r\n","import { Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding } from '@angular/core';\r\nimport { XApiPrefix } from './api.property';\r\n\r\n@Component({\r\n selector: `${XApiPrefix}`,\r\n templateUrl: './api.component.html',\r\n styleUrls: ['./style/index.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XApiComponent {\r\n @HostBinding(`class.x-api`) _has = true;\r\n}\r\n","<ng-content></ng-content>\r\n","import { NgModule } from '@angular/core';\r\nimport { XApiComponent } from './api.component';\r\n\r\n@NgModule({\r\n exports: [XApiComponent],\r\n imports: [XApiComponent]\r\n})\r\nexport class XApiModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;;;;AAIG;AACI,MAAM,UAAU,GAAG;;MCKb,aAAa,CAAA;AAP1B,IAAA,WAAA,GAAA;QAQ8B,IAAA,CAAA,IAAI,GAAG,IAAI;AACxC,IAAA;iIAFY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,uHCV1B,+BACA,EAAA,MAAA,EAAA,CAAA,04DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDSa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACE,CAAA,EAAG,UAAU,EAAE,EAAA,aAAA,EAGV,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,CAAA,04DAAA,CAAA,EAAA;8BAGnB,IAAI,EAAA,CAAA;sBAA/B,WAAW;uBAAC,CAAA,WAAA,CAAa;;;MEJf,UAAU,CAAA;iIAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAV,UAAU,EAAA,OAAA,EAAA,CAFX,aAAa,CAAA,EAAA,OAAA,EAAA,CADb,aAAa,CAAA,EAAA,CAAA,CAAA;kIAGZ,UAAU,EAAA,CAAA,CAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,OAAO,EAAE,CAAC,aAAa;AACxB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -30,176 +30,186 @@ class XAutoCompleteProperty extends XFormControlFunction(X_AUTOCOMPLETE_CONFIG_N
30
30
  * @zh_CN 节点数据
31
31
  * @en_US Node data
32
32
  */
33
- this.data = input([]);
33
+ this.data = input([], ...(ngDevMode ? [{ debugName: "data" }] : []));
34
34
  /**
35
35
  * @zh_CN 形态变体
36
36
  * @en_US Input variant
37
37
  */
38
- this.variant = input(this.config?.variant ?? 'outlined');
38
+ this.variant = input(this.config?.variant ?? 'outlined', ...(ngDevMode ? [{ debugName: "variant" }] : []));
39
39
  /**
40
40
  * @zh_CN 输入延迟执行时间,ms
41
41
  * @en_US Enter a delay execution time, ms
42
42
  */
43
- this.debounceTime = input(this.config?.debounceTime ?? 200, { transform: XToNumber });
43
+ this.debounceTime = input(this.config?.debounceTime ?? 200, ...(ngDevMode ? [{ debugName: "debounceTime", transform: XToNumber }] : [{ transform: XToNumber }]));
44
44
  /**
45
45
  * @zh_CN 展示方位
46
46
  * @en_US Display position
47
47
  */
48
- this.placement = input(this.config?.placement ?? 'bottom');
48
+ this.placement = input(this.config?.placement ?? 'bottom', ...(ngDevMode ? [{ debugName: "placement" }] : []));
49
49
  /**
50
50
  * @zh_CN 节点模板
51
51
  * @en_US Node template
52
52
  */
53
- this.nodeTpl = input();
53
+ this.nodeTpl = input(...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : []));
54
54
  /**
55
55
  * @zh_CN 显示边框
56
56
  * @en_US Display Border
57
57
  */
58
- this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
58
+ this.bordered = input(this.config?.bordered ?? true, ...(ngDevMode ? [{ debugName: "bordered", transform: XToBoolean }] : [{ transform: XToBoolean }]));
59
59
  /**
60
60
  * @zh_CN 下拉框的最大高度
61
61
  * @en_US The biggest height of the drop-down box
62
62
  */
63
- this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', {
64
- transform: XToCssPixelValue
65
- });
63
+ this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', ...(ngDevMode ? [{ debugName: "portalMaxHeight", transform: XToCssPixelValue }] : [{
64
+ transform: XToCssPixelValue
65
+ }]));
66
66
  /**
67
67
  * @zh_CN 下拉框的高度,启用虚拟滚动的时候必须设置一个高度
68
68
  * @en_US The biggest height of the drop-down box
69
69
  */
70
- this.portalHeight = input('', {
71
- transform: XToCssPixelValue
72
- });
70
+ this.portalHeight = input('', ...(ngDevMode ? [{ debugName: "portalHeight", transform: XToCssPixelValue }] : [{
71
+ transform: XToCssPixelValue
72
+ }]));
73
73
  /**
74
74
  * @zh_CN 下拉框的宽度
75
75
  * @en_US The width of the drop-down box
76
76
  */
77
- this.portalWidth = input('', { transform: XToCssPixelValue });
77
+ this.portalWidth = input('', ...(ngDevMode ? [{ debugName: "portalWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
78
78
  /**
79
79
  * @zh_CN 下拉框设置样式名
80
80
  * @en_US The style class name of the drop-down box
81
81
  */
82
- this.portalClass = input('');
82
+ this.portalClass = input('', ...(ngDevMode ? [{ debugName: "portalClass" }] : []));
83
83
  /**
84
84
  * @zh_CN 匹配区分大小写
85
85
  * @en_US Case-sensitive
86
86
  */
87
- this.caseSensitive = input(this.config?.caseSensitive ?? true, { transform: XToBoolean });
87
+ this.caseSensitive = input(this.config?.caseSensitive ?? true, ...(ngDevMode ? [{ debugName: "caseSensitive", transform: XToBoolean }] : [{ transform: XToBoolean }]));
88
88
  /**
89
89
  * @zh_CN 只能是选择的值
90
90
  * @en_US Can only be the value of choice
91
91
  */
92
- this.onlySelect = input(this.config?.onlySelect ?? false, { transform: XToBoolean });
92
+ this.onlySelect = input(this.config?.onlySelect ?? false, ...(ngDevMode ? [{ debugName: "onlySelect", transform: XToBoolean }] : [{ transform: XToBoolean }]));
93
+ /**
94
+ * @zh_CN 浮动标签
95
+ * @en_US Float label
96
+ */
97
+ this.floatLabel = input(this.config?.floatLabel ?? null, ...(ngDevMode ? [{ debugName: "floatLabel" }] : []));
98
+ /**
99
+ * @zh_CN 固定浮动标签
100
+ * @en_US Fixed float label
101
+ */
102
+ this.floatFixed = input(this.config?.floatFixed ?? false, ...(ngDevMode ? [{ debugName: "floatFixed", transform: XToBoolean }] : [{ transform: XToBoolean }]));
93
103
  /**
94
104
  * @zh_CN 尺寸
95
105
  * @en_US Size
96
106
  */
97
- this.size = input(this.config?.size ?? 'medium');
107
+ this.size = input(this.config?.size ?? 'medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
98
108
  /**
99
109
  * @zh_CN 输入框点击样式
100
110
  * @en_US Input pointer
101
111
  */
102
- this.pointer = input(false, { transform: XToBoolean });
112
+ this.pointer = input(false, ...(ngDevMode ? [{ debugName: "pointer", transform: XToBoolean }] : [{ transform: XToBoolean }]));
103
113
  /**
104
114
  * @zh_CN 标签
105
115
  * @en_US Label
106
116
  */
107
- this.label = input('');
117
+ this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
108
118
  /**
109
119
  * @zh_CN 标签宽度
110
120
  * @en_US Label width
111
121
  */
112
- this.labelWidth = input('', { transform: XToCssPixelValue });
122
+ this.labelWidth = input('', ...(ngDevMode ? [{ debugName: "labelWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
113
123
  /**
114
124
  * @zh_CN 标签文字对齐方式
115
125
  * @en_US Label text alignment method
116
126
  */
117
- this.labelAlign = input('start');
127
+ this.labelAlign = input('start', ...(ngDevMode ? [{ debugName: "labelAlign" }] : []));
118
128
  /**
119
129
  * @zh_CN flex 布局下的子元素水平排列方式
120
130
  * @en_US The level of sub-element level arrangement under flex layout
121
131
  */
122
- this.justify = input('start');
132
+ this.justify = input('start', ...(ngDevMode ? [{ debugName: "justify" }] : []));
123
133
  /**
124
134
  * @zh_CN flex 布局下的子元素垂直排列方式
125
135
  * @en_US sub-element vertical arrangement method under flex layout
126
136
  */
127
- this.align = input('start');
137
+ this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : []));
128
138
  /**
129
139
  * @zh_CN flex 布局下的子元素排列方向
130
140
  * @en_US The direction of the sub-element arrangement under flex layout
131
141
  */
132
- this.direction = input('column');
142
+ this.direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : []));
133
143
  /**
134
144
  * @zh_CN 输入提示信息
135
145
  * @en_US Enter prompt information
136
146
  */
137
- this.placeholder = input('');
147
+ this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
138
148
  /**
139
149
  * @zh_CN 禁用
140
150
  * @en_US Disabled
141
151
  */
142
- this.disabled = input(false, { transform: XToBoolean });
152
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: XToBoolean }] : [{ transform: XToBoolean }]));
143
153
  /**
144
154
  * @zh_CN 必填
145
155
  * @en_US Required
146
156
  */
147
- this.required = input(false, { transform: XToBoolean });
157
+ this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: XToBoolean }] : [{ transform: XToBoolean }]));
148
158
  /**
149
159
  * @zh_CN 只读
150
160
  * @en_US Readonly
151
161
  */
152
- this.readonly = input(false, { transform: XToBoolean });
162
+ this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly", transform: XToBoolean }] : [{ transform: XToBoolean }]));
153
163
  /**
154
164
  * @zh_CN 值模板
155
165
  * @en_US Node template
156
166
  */
157
- this.valueTpl = input();
167
+ this.valueTpl = input(...(ngDevMode ? [undefined, { debugName: "valueTpl" }] : []));
158
168
  /**
159
169
  * @zh_CN 值模板参数
160
170
  * @en_US Node template
161
171
  */
162
- this.valueTplContext = input();
172
+ this.valueTplContext = input(...(ngDevMode ? [undefined, { debugName: "valueTplContext" }] : []));
163
173
  /**
164
174
  * @zh_CN 前置标签
165
175
  * @en_US Before label
166
176
  */
167
- this.before = input();
177
+ this.before = input(...(ngDevMode ? [undefined, { debugName: "before" }] : []));
168
178
  /**
169
179
  * @zh_CN 后置标签
170
180
  * @en_US After label
171
181
  */
172
- this.after = input();
182
+ this.after = input(...(ngDevMode ? [undefined, { debugName: "after" }] : []));
173
183
  /**
174
184
  * @zh_CN 正则验证规则
175
185
  * @en_US Regular verification rules
176
186
  */
177
- this.pattern = input(null);
187
+ this.pattern = input(null, ...(ngDevMode ? [{ debugName: "pattern" }] : []));
178
188
  /**
179
189
  * @zh_CN 验证不通过提示文字
180
190
  * @en_US Verify not pass the prompt text
181
191
  */
182
- this.message = input([]);
192
+ this.message = input([], ...(ngDevMode ? [{ debugName: "message" }] : []));
183
193
  /**
184
194
  * @zh_CN 激活状态
185
195
  * @en_US Activation state
186
196
  */
187
- this.active = model(false);
197
+ this.active = model(false, ...(ngDevMode ? [{ debugName: "active" }] : []));
188
198
  /**
189
199
  * @zh_CN 输入验证函数
190
200
  * @en_US Enter the verification function
191
201
  */
192
- this.inputValidator = input();
202
+ this.inputValidator = input(...(ngDevMode ? [undefined, { debugName: "inputValidator" }] : []));
193
203
  /**
194
204
  * @zh_CN 选择节点事件
195
205
  * @en_US Node click event
196
206
  */
197
207
  this.nodeEmit = output();
198
208
  }
199
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
200
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: XAutoCompleteProperty, isStandalone: true, selector: "x-auto-complete-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, portalHeight: { classPropertyName: "portalHeight", publicName: "portalHeight", isSignal: true, isRequired: false, transformFunction: null }, portalWidth: { classPropertyName: "portalWidth", publicName: "portalWidth", isSignal: true, isRequired: false, transformFunction: null }, portalClass: { classPropertyName: "portalClass", publicName: "portalClass", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, onlySelect: { classPropertyName: "onlySelect", publicName: "onlySelect", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pointer: { classPropertyName: "pointer", publicName: "pointer", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, valueTpl: { classPropertyName: "valueTpl", publicName: "valueTpl", isSignal: true, isRequired: false, transformFunction: null }, valueTplContext: { classPropertyName: "valueTplContext", publicName: "valueTplContext", isSignal: true, isRequired: false, transformFunction: null }, before: { classPropertyName: "before", publicName: "before", isSignal: true, isRequired: false, transformFunction: null }, after: { classPropertyName: "after", publicName: "after", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, inputValidator: { classPropertyName: "inputValidator", publicName: "inputValidator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
209
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
210
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.0", type: XAutoCompleteProperty, isStandalone: true, selector: "x-auto-complete-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, portalHeight: { classPropertyName: "portalHeight", publicName: "portalHeight", isSignal: true, isRequired: false, transformFunction: null }, portalWidth: { classPropertyName: "portalWidth", publicName: "portalWidth", isSignal: true, isRequired: false, transformFunction: null }, portalClass: { classPropertyName: "portalClass", publicName: "portalClass", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, onlySelect: { classPropertyName: "onlySelect", publicName: "onlySelect", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, floatFixed: { classPropertyName: "floatFixed", publicName: "floatFixed", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pointer: { classPropertyName: "pointer", publicName: "pointer", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, valueTpl: { classPropertyName: "valueTpl", publicName: "valueTpl", isSignal: true, isRequired: false, transformFunction: null }, valueTplContext: { classPropertyName: "valueTplContext", publicName: "valueTplContext", isSignal: true, isRequired: false, transformFunction: null }, before: { classPropertyName: "before", publicName: "before", isSignal: true, isRequired: false, transformFunction: null }, after: { classPropertyName: "after", publicName: "after", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, inputValidator: { classPropertyName: "inputValidator", publicName: "inputValidator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
201
211
  }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteProperty, decorators: [{
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteProperty, decorators: [{
203
213
  type: Component,
204
214
  args: [{ selector: `${XAutoCompletePrefix}-property`, template: '' }]
205
215
  }] });
@@ -213,20 +223,20 @@ const XAutoCompletePortalPrefix = 'x-auto-complete-portal';
213
223
  class XAutoCompletePortalComponent {
214
224
  constructor() {
215
225
  this.list = viewChild.required('list', { read: XListComponent });
216
- this.data = input();
217
- this.value = input();
218
- this.placement = input();
219
- this.nodeTpl = input();
220
- this.inputCom = input();
221
- this.keywordText = model('');
222
- this.caseSensitive = input(false);
223
- this.portalMaxHeight = input('');
224
- this.portalHeight = input('');
225
- this.portalWidth = input('');
226
+ this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
227
+ this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
228
+ this.placement = input(...(ngDevMode ? [undefined, { debugName: "placement" }] : []));
229
+ this.nodeTpl = input(...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : []));
230
+ this.inputCom = input(...(ngDevMode ? [undefined, { debugName: "inputCom" }] : []));
231
+ this.keywordText = model('', ...(ngDevMode ? [{ debugName: "keywordText" }] : []));
232
+ this.caseSensitive = input(false, ...(ngDevMode ? [{ debugName: "caseSensitive" }] : []));
233
+ this.portalMaxHeight = input('', ...(ngDevMode ? [{ debugName: "portalMaxHeight" }] : []));
234
+ this.portalHeight = input('', ...(ngDevMode ? [{ debugName: "portalHeight" }] : []));
235
+ this.portalWidth = input('', ...(ngDevMode ? [{ debugName: "portalWidth" }] : []));
226
236
  this.animating = output();
227
237
  this.nodeClick = output();
228
- this.active = signal(-1);
229
- this.destroy = signal(false);
238
+ this.active = signal(-1, ...(ngDevMode ? [{ debugName: "active" }] : []));
239
+ this.destroy = signal(false, ...(ngDevMode ? [{ debugName: "destroy" }] : []));
230
240
  this.unSubject = new Subject();
231
241
  this.destroyRef = inject(DestroyRef);
232
242
  }
@@ -269,10 +279,10 @@ class XAutoCompletePortalComponent {
269
279
  onTabOut() {
270
280
  this.closeSubject.next();
271
281
  }
272
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompletePortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
273
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.0", type: XAutoCompletePortalComponent, isStandalone: true, selector: "x-auto-complete-portal", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, inputCom: { classPropertyName: "inputCom", publicName: "inputCom", isSignal: true, isRequired: false, transformFunction: null }, keywordText: { classPropertyName: "keywordText", publicName: "keywordText", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, portalHeight: { classPropertyName: "portalHeight", publicName: "portalHeight", isSignal: true, isRequired: false, transformFunction: null }, portalWidth: { classPropertyName: "portalWidth", publicName: "portalWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { keywordText: "keywordTextChange", animating: "animating", nodeClick: "nodeClick" }, host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.getPlacement" } }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, read: XListComponent, isSignal: true }], ngImport: i0, template: "<div\r\n #autoCompletePortal\r\n class=\"x-auto-complete-portal\"\r\n tabindex=\"-1\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalHeight() ? portalHeight() : portalMaxHeight()\"\r\n [style.height]=\"portalHeight()\"\r\n>\r\n <x-list\r\n #list\r\n [data]=\"data()!\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (keyManagerChange)=\"onActive($event)\"\r\n (keyManagerTabOut)=\"onTabOut()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [scrollElement]=\"autoCompletePortal\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete-portal{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"], dependencies: [{ kind: "component", type: XListComponent, selector: "x-list" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
282
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompletePortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
283
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.0", type: XAutoCompletePortalComponent, isStandalone: true, selector: "x-auto-complete-portal", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, inputCom: { classPropertyName: "inputCom", publicName: "inputCom", isSignal: true, isRequired: false, transformFunction: null }, keywordText: { classPropertyName: "keywordText", publicName: "keywordText", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, portalHeight: { classPropertyName: "portalHeight", publicName: "portalHeight", isSignal: true, isRequired: false, transformFunction: null }, portalWidth: { classPropertyName: "portalWidth", publicName: "portalWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { keywordText: "keywordTextChange", animating: "animating", nodeClick: "nodeClick" }, host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.getPlacement" } }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, read: XListComponent, isSignal: true }], ngImport: i0, template: "<div\r\n #autoCompletePortal\r\n class=\"x-auto-complete-portal\"\r\n tabindex=\"-1\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalHeight() ? portalHeight() : portalMaxHeight()\"\r\n [style.height]=\"portalHeight()\"\r\n>\r\n <x-list\r\n #list\r\n [data]=\"data()!\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (keyManagerChange)=\"onActive($event)\"\r\n (keyManagerTabOut)=\"onTabOut()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [scrollElement]=\"autoCompletePortal\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete-portal{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"], dependencies: [{ kind: "component", type: XListComponent, selector: "x-list" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
274
284
  }
275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompletePortalComponent, decorators: [{
285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompletePortalComponent, decorators: [{
276
286
  type: Component,
277
287
  args: [{ selector: `${XAutoCompletePortalPrefix}`, imports: [XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div\r\n #autoCompletePortal\r\n class=\"x-auto-complete-portal\"\r\n tabindex=\"-1\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalHeight() ? portalHeight() : portalMaxHeight()\"\r\n [style.height]=\"portalHeight()\"\r\n>\r\n <x-list\r\n #list\r\n [data]=\"data()!\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (keyManagerChange)=\"onActive($event)\"\r\n (keyManagerTabOut)=\"onTabOut()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [scrollElement]=\"autoCompletePortal\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete-portal{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"] }]
278
288
  }], propDecorators: { getPlacement: [{
@@ -290,15 +300,15 @@ class XAutoCompleteComponent extends XAutoCompleteProperty {
290
300
  constructor() {
291
301
  super();
292
302
  this.inputCom = viewChild.required('inputCom', { read: XInputComponent });
293
- this.nodes = signal([]);
294
- this.searchNodes = signal([]);
295
- this.icon = signal('');
296
- this.iconSpin = signal(false);
297
- this.animating = signal(false);
298
- this.valueTplContextSignal = signal({ $node: null, $isValue: true });
303
+ this.nodes = signal([], ...(ngDevMode ? [{ debugName: "nodes" }] : []));
304
+ this.searchNodes = signal([], ...(ngDevMode ? [{ debugName: "searchNodes" }] : []));
305
+ this.icon = signal('', ...(ngDevMode ? [{ debugName: "icon" }] : []));
306
+ this.iconSpin = signal(false, ...(ngDevMode ? [{ debugName: "iconSpin" }] : []));
307
+ this.animating = signal(false, ...(ngDevMode ? [{ debugName: "animating" }] : []));
308
+ this.valueTplContextSignal = signal({ $node: null, $isValue: true }, ...(ngDevMode ? [{ debugName: "valueTplContextSignal" }] : []));
299
309
  this.valueTplContextComputed = computed(() => {
300
310
  return this.valueTplContext() ? this.valueTplContext() : this.valueTplContextSignal();
301
- });
311
+ }, ...(ngDevMode ? [{ debugName: "valueTplContextComputed" }] : []));
302
312
  this.inputChange = new BehaviorSubject(null);
303
313
  this.closeSubject = new Subject();
304
314
  this.keydownSubject = new Subject();
@@ -307,9 +317,9 @@ class XAutoCompleteComponent extends XAutoCompleteProperty {
307
317
  this.viewContainerRef = inject(ViewContainerRef);
308
318
  this.overlay = inject(Overlay);
309
319
  this.elementRef = inject(ElementRef);
310
- this.realPlacement = signal(null);
311
- this.portalComponent = signal(null);
312
- this.portalOverlayRef = signal(null);
320
+ this.realPlacement = signal(null, ...(ngDevMode ? [{ debugName: "realPlacement" }] : []));
321
+ this.portalComponent = signal(null, ...(ngDevMode ? [{ debugName: "portalComponent" }] : []));
322
+ this.portalOverlayRef = signal(null, ...(ngDevMode ? [{ debugName: "portalOverlayRef" }] : []));
313
323
  this.inputChanged = toSignal(this.inputChange.pipe(filter((x) => x !== null)));
314
324
  effect(() => this.portalComponent()?.setInput('value', this.value()));
315
325
  effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
@@ -564,20 +574,20 @@ class XAutoCompleteComponent extends XAutoCompleteProperty {
564
574
  this.inputChange.next(this.value());
565
575
  });
566
576
  }
567
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
568
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.0", type: XAutoCompleteComponent, isStandalone: true, selector: "x-auto-complete", providers: [XValueAccessor(XAutoCompleteComponent)], viewQueries: [{ propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, read: XInputComponent, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #autoComplete class=\"x-auto-complete\">\r\n <div class=\"x-auto-complete-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"false\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl()\"\r\n [valueTplContext]=\"valueTplContextComputed()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [(active)]=\"active\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xClick)=\"showPortal()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete{display:inline-block;width:12rem}.x-auto-complete{margin:0;padding:0}.x-auto-complete{width:100%}.x-auto-complete x-input{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
577
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
578
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.0", type: XAutoCompleteComponent, isStandalone: true, selector: "x-auto-complete", providers: [XValueAccessor(XAutoCompleteComponent)], viewQueries: [{ propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, read: XInputComponent, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #autoComplete class=\"x-auto-complete\">\r\n <div class=\"x-auto-complete-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"false\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl()\"\r\n [valueTplContext]=\"valueTplContextComputed()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xClick)=\"showPortal()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete{display:inline-block;width:12rem}.x-auto-complete{margin:0;padding:0}.x-auto-complete{width:100%}.x-auto-complete x-input{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
569
579
  }
570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteComponent, decorators: [{
580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteComponent, decorators: [{
571
581
  type: Component,
572
- args: [{ selector: `${XAutoCompletePrefix}`, imports: [FormsModule, ReactiveFormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XAutoCompleteComponent)], template: "<div #autoComplete class=\"x-auto-complete\">\r\n <div class=\"x-auto-complete-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"false\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl()\"\r\n [valueTplContext]=\"valueTplContextComputed()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [(active)]=\"active\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xClick)=\"showPortal()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete{display:inline-block;width:12rem}.x-auto-complete{margin:0;padding:0}.x-auto-complete{width:100%}.x-auto-complete x-input{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"] }]
582
+ args: [{ selector: `${XAutoCompletePrefix}`, imports: [FormsModule, ReactiveFormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XAutoCompleteComponent)], template: "<div #autoComplete class=\"x-auto-complete\">\r\n <div class=\"x-auto-complete-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"false\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl()\"\r\n [valueTplContext]=\"valueTplContextComputed()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xClick)=\"showPortal()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete{display:inline-block;width:12rem}.x-auto-complete{margin:0;padding:0}.x-auto-complete{width:100%}.x-auto-complete x-input{width:100%}.x-auto-complete-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-auto-complete-portal:focus{outline:none}\n"] }]
573
583
  }], ctorParameters: () => [] });
574
584
 
575
585
  class XAutoCompleteModule {
576
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
577
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteModule, imports: [XAutoCompleteComponent], exports: [XAutoCompleteComponent] }); }
578
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteModule, imports: [XAutoCompleteComponent] }); }
586
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
587
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteModule, imports: [XAutoCompleteComponent], exports: [XAutoCompleteComponent] }); }
588
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteModule, imports: [XAutoCompleteComponent] }); }
579
589
  }
580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAutoCompleteModule, decorators: [{
590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: XAutoCompleteModule, decorators: [{
581
591
  type: NgModule,
582
592
  args: [{
583
593
  exports: [XAutoCompleteComponent],