@natec/mef-dev-ui-kit 20.0.0-beta.1 → 20.0.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 (414) hide show
  1. package/fesm2022/natec-mef-dev-ui-kit.mjs +9541 -0
  2. package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -0
  3. package/index.d.ts +4418 -0
  4. package/index.d.ts.map +1 -0
  5. package/package.json +44 -48
  6. package/src/lib/styles/core.scss +51 -195
  7. package/src/lib/styles/pg/modules/_typography.scss +1 -8
  8. package/src/lib/styles/pg/vendor/ng-datatable.scss +7 -0
  9. package/src/lib/styles/vars.scss +8 -8
  10. package/documentation/classes/FiltredItemModel.html +0 -358
  11. package/documentation/classes/TabChangeEvent.html +0 -231
  12. package/documentation/components/CardComponent.html +0 -576
  13. package/documentation/components/CardLongComponent.html +0 -712
  14. package/documentation/components/CardSimpleComponent.html +0 -372
  15. package/documentation/components/CentralPageComponent.html +0 -312
  16. package/documentation/components/CentralPageRowComponent.html +0 -244
  17. package/documentation/components/CollapseComponent.html +0 -755
  18. package/documentation/components/CollapseSetComponent.html +0 -767
  19. package/documentation/components/DatepickerComponent.html +0 -1397
  20. package/documentation/components/FillComponent.html +0 -736
  21. package/documentation/components/FilteredFieldContainerComponent.html +0 -513
  22. package/documentation/components/FilteredFieldItemComponent.html +0 -451
  23. package/documentation/components/HelpBlockComponent.html +0 -398
  24. package/documentation/components/ManagePageComponent.html +0 -423
  25. package/documentation/components/MefDevOptionComponent.html +0 -689
  26. package/documentation/components/MefDevProgressComponent.html +0 -562
  27. package/documentation/components/MefDevSelectComponent.html +0 -4797
  28. package/documentation/components/MefDevSliderComponent.html +0 -686
  29. package/documentation/components/MefDevSpecFlowTestComponent.html +0 -474
  30. package/documentation/components/MefDevSwitchComponent.html +0 -1480
  31. package/documentation/components/MefDevTabBodyComponent.html +0 -271
  32. package/documentation/components/MefDevTabComponent.html +0 -681
  33. package/documentation/components/MefDevTabSetComponent.html +0 -1889
  34. package/documentation/components/MefDevTabsNavComponent.html +0 -2013
  35. package/documentation/components/MefdevExecutorPageComponent.html +0 -497
  36. package/documentation/components/ProfileComponent.html +0 -608
  37. package/documentation/components/RightFilterComponent.html +0 -423
  38. package/documentation/components/SlideRightComponent.html +0 -762
  39. package/documentation/components/SlideUpComponent.html +0 -692
  40. package/documentation/components/StepExecutorComponent.html +0 -1437
  41. package/documentation/components/TablePageComponent.html +0 -327
  42. package/documentation/dependencies.html +0 -135
  43. package/documentation/directives/MefDevTabLabelDirective.html +0 -532
  44. package/documentation/directives/MefDevTabsInkBarDirective.html +0 -865
  45. package/documentation/fonts/ionicons.eot +0 -0
  46. package/documentation/fonts/ionicons.svg +0 -2090
  47. package/documentation/fonts/ionicons.ttf +0 -0
  48. package/documentation/fonts/ionicons.woff +0 -0
  49. package/documentation/fonts/ionicons.woff2 +0 -0
  50. package/documentation/fonts/roboto-v15-latin-300.eot +0 -0
  51. package/documentation/fonts/roboto-v15-latin-300.svg +0 -314
  52. package/documentation/fonts/roboto-v15-latin-300.ttf +0 -0
  53. package/documentation/fonts/roboto-v15-latin-300.woff +0 -0
  54. package/documentation/fonts/roboto-v15-latin-300.woff2 +0 -0
  55. package/documentation/fonts/roboto-v15-latin-700.eot +0 -0
  56. package/documentation/fonts/roboto-v15-latin-700.svg +0 -310
  57. package/documentation/fonts/roboto-v15-latin-700.ttf +0 -0
  58. package/documentation/fonts/roboto-v15-latin-700.woff +0 -0
  59. package/documentation/fonts/roboto-v15-latin-700.woff2 +0 -0
  60. package/documentation/fonts/roboto-v15-latin-italic.eot +0 -0
  61. package/documentation/fonts/roboto-v15-latin-italic.svg +0 -323
  62. package/documentation/fonts/roboto-v15-latin-italic.ttf +0 -0
  63. package/documentation/fonts/roboto-v15-latin-italic.woff +0 -0
  64. package/documentation/fonts/roboto-v15-latin-italic.woff2 +0 -0
  65. package/documentation/fonts/roboto-v15-latin-regular.eot +0 -0
  66. package/documentation/fonts/roboto-v15-latin-regular.svg +0 -308
  67. package/documentation/fonts/roboto-v15-latin-regular.ttf +0 -0
  68. package/documentation/fonts/roboto-v15-latin-regular.woff +0 -0
  69. package/documentation/fonts/roboto-v15-latin-regular.woff2 +0 -0
  70. package/documentation/graph/dependencies.svg +0 -1160
  71. package/documentation/images/compodoc-vectorise-inverted.png +0 -0
  72. package/documentation/images/compodoc-vectorise-inverted.svg +0 -201
  73. package/documentation/images/compodoc-vectorise.png +0 -0
  74. package/documentation/images/compodoc-vectorise.svg +0 -201
  75. package/documentation/images/favicon.ico +0 -0
  76. package/documentation/index.html +0 -246
  77. package/documentation/injectables/FilteredFieldService.html +0 -420
  78. package/documentation/injectables/ProgressConfig.html +0 -236
  79. package/documentation/interfaces/AnimatedInterface.html +0 -246
  80. package/documentation/js/compodoc.js +0 -14
  81. package/documentation/js/lazy-load-graphs.js +0 -44
  82. package/documentation/js/libs/EventDispatcher.js +0 -5
  83. package/documentation/js/libs/bootstrap-native.js +0 -1
  84. package/documentation/js/libs/clipboard.min.js +0 -7
  85. package/documentation/js/libs/custom-elements-es5-adapter.js +0 -15
  86. package/documentation/js/libs/custom-elements.min.js +0 -38
  87. package/documentation/js/libs/d3.v3.min.js +0 -2
  88. package/documentation/js/libs/deep-iterator.js +0 -2
  89. package/documentation/js/libs/es6-shim.min.js +0 -11
  90. package/documentation/js/libs/htmlparser.js +0 -23
  91. package/documentation/js/libs/innersvg.js +0 -9
  92. package/documentation/js/libs/lit-html.js +0 -1
  93. package/documentation/js/libs/prism.js +0 -46
  94. package/documentation/js/libs/promise.min.js +0 -6
  95. package/documentation/js/libs/svg-pan-zoom.min.js +0 -3
  96. package/documentation/js/libs/tablesort.min.js +0 -6
  97. package/documentation/js/libs/tablesort.number.min.js +0 -6
  98. package/documentation/js/libs/vis.min.js +0 -47
  99. package/documentation/js/libs/zepto.min.js +0 -2
  100. package/documentation/js/menu-wc.js +0 -455
  101. package/documentation/js/menu-wc_es5.js +0 -42
  102. package/documentation/js/menu.js +0 -325
  103. package/documentation/js/routes.js +0 -301
  104. package/documentation/js/search/lunr.min.js +0 -6
  105. package/documentation/js/search/search-lunr.js +0 -67
  106. package/documentation/js/search/search.js +0 -268
  107. package/documentation/js/search/search_index.js +0 -4
  108. package/documentation/js/sourceCode.js +0 -58
  109. package/documentation/js/svg-pan-zoom.controls.js +0 -53
  110. package/documentation/js/tabs.js +0 -21
  111. package/documentation/js/tree.js +0 -147
  112. package/documentation/miscellaneous/enumerations.html +0 -223
  113. package/documentation/miscellaneous/functions.html +0 -251
  114. package/documentation/miscellaneous/typealiases.html +0 -257
  115. package/documentation/miscellaneous/variables.html +0 -357
  116. package/documentation/modules/MefDevCardModule/dependencies.svg +0 -142
  117. package/documentation/modules/MefDevCardModule.html +0 -349
  118. package/documentation/modules/MefDevCollapseModule/dependencies.svg +0 -90
  119. package/documentation/modules/MefDevCollapseModule.html +0 -316
  120. package/documentation/modules/MefDevDatepickerModule/dependencies.svg +0 -82
  121. package/documentation/modules/MefDevDatepickerModule.html +0 -274
  122. package/documentation/modules/MefDevFilteredFieldModule/dependencies.svg +0 -90
  123. package/documentation/modules/MefDevFilteredFieldModule.html +0 -278
  124. package/documentation/modules/MefDevHelpBlockModule/dependencies.svg +0 -82
  125. package/documentation/modules/MefDevHelpBlockModule.html +0 -274
  126. package/documentation/modules/MefDevModalModule/dependencies.svg +0 -154
  127. package/documentation/modules/MefDevModalModule.html +0 -364
  128. package/documentation/modules/MefDevPageLayoutsModule/dependencies.svg +0 -162
  129. package/documentation/modules/MefDevPageLayoutsModule.html +0 -368
  130. package/documentation/modules/MefDevProgressModule/dependencies.svg +0 -66
  131. package/documentation/modules/MefDevProgressModule.html +0 -286
  132. package/documentation/modules/MefDevSelectModule/dependencies.svg +0 -140
  133. package/documentation/modules/MefDevSelectModule.html +0 -334
  134. package/documentation/modules/MefDevSliderModule/dependencies.svg +0 -66
  135. package/documentation/modules/MefDevSliderModule.html +0 -248
  136. package/documentation/modules/MefDevSpecFlowTestModule/dependencies.svg +0 -66
  137. package/documentation/modules/MefDevSpecFlowTestModule.html +0 -286
  138. package/documentation/modules/MefDevStepExecutorModule/dependencies.svg +0 -106
  139. package/documentation/modules/MefDevStepExecutorModule.html +0 -304
  140. package/documentation/modules/MefDevSwitchModule/dependencies.svg +0 -88
  141. package/documentation/modules/MefDevSwitchModule.html +0 -270
  142. package/documentation/modules/MefDevTabsModule/dependencies.svg +0 -186
  143. package/documentation/modules/MefDevTabsModule.html +0 -398
  144. package/documentation/modules.html +0 -357
  145. package/documentation/overview.html +0 -1351
  146. package/documentation/pipes/OptionPipe.html +0 -238
  147. package/documentation/properties.html +0 -125
  148. package/documentation/styles/bootstrap-card.css +0 -219
  149. package/documentation/styles/bootstrap.min.css +0 -6
  150. package/documentation/styles/compodoc.css +0 -1121
  151. package/documentation/styles/dark.css +0 -121
  152. package/documentation/styles/ionicons.min.css +0 -11
  153. package/documentation/styles/laravel.css +0 -113
  154. package/documentation/styles/material.css +0 -131
  155. package/documentation/styles/original.css +0 -51
  156. package/documentation/styles/postmark.css +0 -238
  157. package/documentation/styles/prism.css +0 -301
  158. package/documentation/styles/readthedocs.css +0 -117
  159. package/documentation/styles/reset.css +0 -129
  160. package/documentation/styles/stripe.css +0 -106
  161. package/documentation/styles/style.css +0 -7
  162. package/documentation/styles/tablesort.css +0 -33
  163. package/documentation/styles/vagrant.css +0 -130
  164. package/karma.conf.js +0 -44
  165. package/ng-package.json +0 -18
  166. package/src/lib/markup-kit/card/card/card.component.html +0 -44
  167. package/src/lib/markup-kit/card/card/card.component.scss +0 -65
  168. package/src/lib/markup-kit/card/card/card.component.ts +0 -109
  169. package/src/lib/markup-kit/card/card-long/card-long.component.html +0 -53
  170. package/src/lib/markup-kit/card/card-long/card-long.component.scss +0 -72
  171. package/src/lib/markup-kit/card/card-long/card-long.component.ts +0 -158
  172. package/src/lib/markup-kit/card/card-long/cart-type-colors.enum.ts +0 -5
  173. package/src/lib/markup-kit/card/card-simple/card-simple.component.html +0 -12
  174. package/src/lib/markup-kit/card/card-simple/card-simple.component.scss +0 -12
  175. package/src/lib/markup-kit/card/card-simple/card-simple.component.ts +0 -48
  176. package/src/lib/markup-kit/card/card.module.ts +0 -21
  177. package/src/lib/markup-kit/card/index.ts +0 -6
  178. package/src/lib/markup-kit/collapse/collapse/collapse.component.html +0 -17
  179. package/src/lib/markup-kit/collapse/collapse/collapse.component.scss +0 -17
  180. package/src/lib/markup-kit/collapse/collapse/collapse.component.ts +0 -131
  181. package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.html +0 -3
  182. package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.scss +0 -0
  183. package/src/lib/markup-kit/collapse/collapse-set/collapse-set.component.ts +0 -110
  184. package/src/lib/markup-kit/collapse/collapse.module.ts +0 -20
  185. package/src/lib/markup-kit/collapse/index.ts +0 -3
  186. package/src/lib/markup-kit/executors/index.ts +0 -4
  187. package/src/lib/markup-kit/executors/mefdev-executor-page/mefdev-executor-page.component.ts +0 -111
  188. package/src/lib/markup-kit/executors/stage/stage.component.html +0 -23
  189. package/src/lib/markup-kit/executors/stage/stage.component.scss +0 -9
  190. package/src/lib/markup-kit/executors/stage/stage.component.ts +0 -21
  191. package/src/lib/markup-kit/executors/step-executor/step-executor.component.html +0 -127
  192. package/src/lib/markup-kit/executors/step-executor/step-executor.component.scss +0 -225
  193. package/src/lib/markup-kit/executors/step-executor/step-executor.component.ts +0 -295
  194. package/src/lib/markup-kit/executors/step-executor.module.ts +0 -27
  195. package/src/lib/markup-kit/modals/fill/fill.component.html +0 -15
  196. package/src/lib/markup-kit/modals/fill/fill.component.scss +0 -42
  197. package/src/lib/markup-kit/modals/fill/fill.component.ts +0 -126
  198. package/src/lib/markup-kit/modals/index.ts +0 -6
  199. package/src/lib/markup-kit/modals/markup-kit.module.ts +0 -25
  200. package/src/lib/markup-kit/modals/modal-size.enum.ts +0 -5
  201. package/src/lib/markup-kit/modals/right-filter/right-filter.component.html +0 -11
  202. package/src/lib/markup-kit/modals/right-filter/right-filter.component.scss +0 -15
  203. package/src/lib/markup-kit/modals/right-filter/right-filter.component.ts +0 -49
  204. package/src/lib/markup-kit/modals/slide-right/slide-right.component.html +0 -14
  205. package/src/lib/markup-kit/modals/slide-right/slide-right.component.scss +0 -42
  206. package/src/lib/markup-kit/modals/slide-right/slide-right.component.ts +0 -121
  207. package/src/lib/markup-kit/modals/slide-up/slide-up.component.html +0 -15
  208. package/src/lib/markup-kit/modals/slide-up/slide-up.component.scss +0 -47
  209. package/src/lib/markup-kit/modals/slide-up/slide-up.component.ts +0 -105
  210. package/src/lib/markup-kit/page-layouts/central-page/central-page.component.html +0 -6
  211. package/src/lib/markup-kit/page-layouts/central-page/central-page.component.scss +0 -10
  212. package/src/lib/markup-kit/page-layouts/central-page/central-page.component.ts +0 -58
  213. package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.html +0 -3
  214. package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.scss +0 -5
  215. package/src/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.ts +0 -30
  216. package/src/lib/markup-kit/page-layouts/index.ts +0 -6
  217. package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.html +0 -10
  218. package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.scss +0 -33
  219. package/src/lib/markup-kit/page-layouts/manage-page/manage-page.component.ts +0 -70
  220. package/src/lib/markup-kit/page-layouts/page-layouts.module.ts +0 -26
  221. package/src/lib/markup-kit/page-layouts/profile/profile.component.html +0 -31
  222. package/src/lib/markup-kit/page-layouts/profile/profile.component.scss +0 -99
  223. package/src/lib/markup-kit/page-layouts/profile/profile.component.ts +0 -129
  224. package/src/lib/markup-kit/page-layouts/table-page/table-page.component.html +0 -9
  225. package/src/lib/markup-kit/page-layouts/table-page/table-page.component.scss +0 -0
  226. package/src/lib/markup-kit/page-layouts/table-page/table-page.component.ts +0 -42
  227. package/src/lib/markup-kit/slider/index.ts +0 -2
  228. package/src/lib/markup-kit/slider/slider/slider.component.html +0 -11
  229. package/src/lib/markup-kit/slider/slider/slider.component.scss +0 -106
  230. package/src/lib/markup-kit/slider/slider/slider.component.ts +0 -124
  231. package/src/lib/markup-kit/slider/slider.module.ts +0 -20
  232. package/src/lib/markup-kit/utils/datepicker/datepicker/datepicker.component.html +0 -87
  233. package/src/lib/markup-kit/utils/datepicker/datepicker/datepicker.component.scss +0 -132
  234. package/src/lib/markup-kit/utils/datepicker/datepicker/datepicker.component.ts +0 -643
  235. package/src/lib/markup-kit/utils/datepicker/datepicker.module.ts +0 -15
  236. package/src/lib/markup-kit/utils/datepicker/index.ts +0 -2
  237. package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.html +0 -3
  238. package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.scss +0 -4
  239. package/src/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.ts +0 -79
  240. package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.html +0 -4
  241. package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.scss +0 -12
  242. package/src/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.ts +0 -75
  243. package/src/lib/markup-kit/utils/filtered-field/filtered-field.module.ts +0 -19
  244. package/src/lib/markup-kit/utils/filtered-field/filtered-field.service.ts +0 -44
  245. package/src/lib/markup-kit/utils/filtered-field/filtred-item.model.ts +0 -15
  246. package/src/lib/markup-kit/utils/filtered-field/index.ts +0 -5
  247. package/src/lib/markup-kit/utils/help-block/help-block.component.html +0 -19
  248. package/src/lib/markup-kit/utils/help-block/help-block.component.scss +0 -22
  249. package/src/lib/markup-kit/utils/help-block/help-block.component.ts +0 -70
  250. package/src/lib/markup-kit/utils/help-block/hepl-block.module.ts +0 -14
  251. package/src/lib/markup-kit/utils/help-block/index.ts +0 -2
  252. package/src/lib/pg-components/card/card.components.html +0 -66
  253. package/src/lib/pg-components/card/card.components.ts +0 -451
  254. package/src/lib/pg-components/card/card.module.ts +0 -17
  255. package/src/lib/pg-components/card/index.ts +0 -2
  256. package/src/lib/pg-components/progress/index.ts +0 -3
  257. package/src/lib/pg-components/progress/progress.component.html +0 -28
  258. package/src/lib/pg-components/progress/progress.component.ts +0 -73
  259. package/src/lib/pg-components/progress/progress.config.ts +0 -7
  260. package/src/lib/pg-components/progress/progress.module.ts +0 -16
  261. package/src/lib/pg-components/select/index.ts +0 -4
  262. package/src/lib/pg-components/select/option.component.html +0 -1
  263. package/src/lib/pg-components/select/option.component.ts +0 -105
  264. package/src/lib/pg-components/select/option.pipe.ts +0 -44
  265. package/src/lib/pg-components/select/select.component.html +0 -83
  266. package/src/lib/pg-components/select/select.component.ts +0 -814
  267. package/src/lib/pg-components/select/select.module.ts +0 -14
  268. package/src/lib/pg-components/spec-flow-test/index.ts +0 -2
  269. package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.html +0 -6
  270. package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.scss +0 -0
  271. package/src/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.ts +0 -37
  272. package/src/lib/pg-components/spec-flow-test/spec-flow-test.module.ts +0 -18
  273. package/src/lib/pg-components/switch/index.ts +0 -2
  274. package/src/lib/pg-components/switch/switch.component.html +0 -10
  275. package/src/lib/pg-components/switch/switch.component.ts +0 -286
  276. package/src/lib/pg-components/switch/switch.module.ts +0 -11
  277. package/src/lib/pg-components/tabs/index.ts +0 -7
  278. package/src/lib/pg-components/tabs/tab-body.component.html +0 -1
  279. package/src/lib/pg-components/tabs/tab-body.component.ts +0 -17
  280. package/src/lib/pg-components/tabs/tab-label.directive.ts +0 -41
  281. package/src/lib/pg-components/tabs/tab.component.html +0 -3
  282. package/src/lib/pg-components/tabs/tab.component.ts +0 -109
  283. package/src/lib/pg-components/tabs/tabs-ink-bar.directive.ts +0 -78
  284. package/src/lib/pg-components/tabs/tabs-nav.component.html +0 -20
  285. package/src/lib/pg-components/tabs/tabs-nav.component.ts +0 -324
  286. package/src/lib/pg-components/tabs/tabs.module.ts +0 -15
  287. package/src/lib/pg-components/tabs/tabset.component.html +0 -39
  288. package/src/lib/pg-components/tabs/tabset.component.ts +0 -270
  289. package/src/lib/pg-components/util/convert.ts +0 -3
  290. package/src/lib/pg-components/util/request-animation.ts +0 -31
  291. package/src/lib/v2/autocomplete/autocomplete-origin.ts +0 -12
  292. package/src/lib/v2/autocomplete/autocomplete.html +0 -17
  293. package/src/lib/v2/autocomplete/autocomplete.module.ts +0 -28
  294. package/src/lib/v2/autocomplete/autocomplete.scss +0 -62
  295. package/src/lib/v2/autocomplete/autocomplete.trigger.ts +0 -759
  296. package/src/lib/v2/autocomplete/autocomplete.ts +0 -201
  297. package/src/lib/v2/autocomplete/index.ts +0 -1
  298. package/src/lib/v2/card/card-header.html +0 -9
  299. package/src/lib/v2/card/card-title-group.html +0 -15
  300. package/src/lib/v2/card/card.html +0 -1
  301. package/src/lib/v2/card/card.module.ts +0 -40
  302. package/src/lib/v2/card/card.scss +0 -185
  303. package/src/lib/v2/card/card.ts +0 -274
  304. package/src/lib/v2/card/index.ts +0 -2
  305. package/src/lib/v2/checkbox/checkbox.html +0 -38
  306. package/src/lib/v2/checkbox/checkbox.module.ts +0 -8
  307. package/src/lib/v2/checkbox/checkbox.scss +0 -318
  308. package/src/lib/v2/checkbox/checkbox.ts +0 -507
  309. package/src/lib/v2/checkbox/index.ts +0 -1
  310. package/src/lib/v2/chips/chip-action.ts +0 -102
  311. package/src/lib/v2/chips/chip-edit-input.ts +0 -44
  312. package/src/lib/v2/chips/chip-grid.ts +0 -412
  313. package/src/lib/v2/chips/chip-icons.ts +0 -91
  314. package/src/lib/v2/chips/chip-input.ts +0 -208
  315. package/src/lib/v2/chips/chip-listbox.ts +0 -291
  316. package/src/lib/v2/chips/chip-option.html +0 -37
  317. package/src/lib/v2/chips/chip-option.ts +0 -163
  318. package/src/lib/v2/chips/chip-row.html +0 -42
  319. package/src/lib/v2/chips/chip-row.ts +0 -191
  320. package/src/lib/v2/chips/chip-set.scss +0 -86
  321. package/src/lib/v2/chips/chip-set.ts +0 -261
  322. package/src/lib/v2/chips/chip-text-control.ts +0 -15
  323. package/src/lib/v2/chips/chip.html +0 -21
  324. package/src/lib/v2/chips/chip.scss +0 -646
  325. package/src/lib/v2/chips/chip.ts +0 -281
  326. package/src/lib/v2/chips/chips-module.ts +0 -44
  327. package/src/lib/v2/chips/index.ts +0 -12
  328. package/src/lib/v2/chips/tokens.ts +0 -29
  329. package/src/lib/v2/collapse/accordion-base.ts +0 -20
  330. package/src/lib/v2/collapse/accordion.ts +0 -92
  331. package/src/lib/v2/collapse/collapse.module.ts +0 -22
  332. package/src/lib/v2/collapse/expansion-panel-base.ts +0 -10
  333. package/src/lib/v2/collapse/expansion-panel-content.ts +0 -12
  334. package/src/lib/v2/collapse/expansion-panel-header.html +0 -17
  335. package/src/lib/v2/collapse/expansion-panel-header.scss +0 -165
  336. package/src/lib/v2/collapse/expansion-panel-header.ts +0 -237
  337. package/src/lib/v2/collapse/expansion-panel.html +0 -14
  338. package/src/lib/v2/collapse/expansion-panel.scss +0 -113
  339. package/src/lib/v2/collapse/expansion-panel.ts +0 -279
  340. package/src/lib/v2/collapse/index.ts +0 -7
  341. package/src/lib/v2/executors/index.ts +0 -10
  342. package/src/lib/v2/executors/step-content.ts +0 -19
  343. package/src/lib/v2/executors/step-footer.ts +0 -7
  344. package/src/lib/v2/executors/step-header.html +0 -59
  345. package/src/lib/v2/executors/step-header.scss +0 -205
  346. package/src/lib/v2/executors/step-header.ts +0 -151
  347. package/src/lib/v2/executors/step-label.ts +0 -16
  348. package/src/lib/v2/executors/step.html +0 -4
  349. package/src/lib/v2/executors/stepper-button.ts +0 -40
  350. package/src/lib/v2/executors/stepper-icon.ts +0 -42
  351. package/src/lib/v2/executors/stepper-intl.ts +0 -46
  352. package/src/lib/v2/executors/stepper-module.ts +0 -42
  353. package/src/lib/v2/executors/stepper.html +0 -90
  354. package/src/lib/v2/executors/stepper.scss +0 -299
  355. package/src/lib/v2/executors/stepper.ts +0 -360
  356. package/src/lib/v2/modals/dialog-config.ts +0 -56
  357. package/src/lib/v2/modals/dialog-container.html +0 -5
  358. package/src/lib/v2/modals/dialog-container.ts +0 -243
  359. package/src/lib/v2/modals/dialog-content-directives.ts +0 -217
  360. package/src/lib/v2/modals/dialog-ref.ts +0 -242
  361. package/src/lib/v2/modals/dialog.scss +0 -307
  362. package/src/lib/v2/modals/dialog.ts +0 -239
  363. package/src/lib/v2/modals/index.ts +0 -11
  364. package/src/lib/v2/modals/modal-module.ts +0 -23
  365. package/src/lib/v2/radio-button/public-api.ts +0 -2
  366. package/src/lib/v2/radio-button/radio.html +0 -25
  367. package/src/lib/v2/radio-button/radio.module.ts +0 -8
  368. package/src/lib/v2/radio-button/radio.scss +0 -298
  369. package/src/lib/v2/radio-button/radio.ts +0 -640
  370. package/src/lib/v2/select/index.ts +0 -5
  371. package/src/lib/v2/select/option-group.html +0 -9
  372. package/src/lib/v2/select/option-group.scss +0 -33
  373. package/src/lib/v2/select/option-group.ts +0 -66
  374. package/src/lib/v2/select/option-module.ts +0 -11
  375. package/src/lib/v2/select/option.html +0 -22
  376. package/src/lib/v2/select/option.scss +0 -59
  377. package/src/lib/v2/select/option.ts +0 -288
  378. package/src/lib/v2/select/pseudo-checkbox-module.ts +0 -9
  379. package/src/lib/v2/select/pseudo-checkbox.scss +0 -121
  380. package/src/lib/v2/select/pseudo-checkbox.ts +0 -60
  381. package/src/lib/v2/select/select.html +0 -56
  382. package/src/lib/v2/select/select.module.ts +0 -14
  383. package/src/lib/v2/select/select.scss +0 -118
  384. package/src/lib/v2/select/select.ts +0 -824
  385. package/src/lib/v2/switch/base-editor-helper.ts +0 -148
  386. package/src/lib/v2/switch/index.ts +0 -2
  387. package/src/lib/v2/switch/switch.component.html +0 -15
  388. package/src/lib/v2/switch/switch.component.scss +0 -93
  389. package/src/lib/v2/switch/switch.component.ts +0 -203
  390. package/src/lib/v2/switch/switch.module.ts +0 -10
  391. package/src/lib/v2/tabs/config.ts +0 -94
  392. package/src/lib/v2/tabs/index.ts +0 -28
  393. package/src/lib/v2/tabs/ink-bar.ts +0 -226
  394. package/src/lib/v2/tabs/paginated-tab-header.ts +0 -536
  395. package/src/lib/v2/tabs/tab-body.html +0 -9
  396. package/src/lib/v2/tabs/tab-body.scss +0 -60
  397. package/src/lib/v2/tabs/tab-body.ts +0 -310
  398. package/src/lib/v2/tabs/tab-content.ts +0 -12
  399. package/src/lib/v2/tabs/tab-group.html +0 -74
  400. package/src/lib/v2/tabs/tab-group.scss +0 -362
  401. package/src/lib/v2/tabs/tab-group.ts +0 -491
  402. package/src/lib/v2/tabs/tab-header.html +0 -35
  403. package/src/lib/v2/tabs/tab-header.scss +0 -127
  404. package/src/lib/v2/tabs/tab-header.ts +0 -91
  405. package/src/lib/v2/tabs/tab-label-wrapper.ts +0 -49
  406. package/src/lib/v2/tabs/tab-label.ts +0 -34
  407. package/src/lib/v2/tabs/tab.html +0 -1
  408. package/src/lib/v2/tabs/tab.ts +0 -155
  409. package/src/lib/v2/tabs/tabs.module.ts +0 -12
  410. package/src/public-api.ts +0 -33
  411. package/tsconfig.doc.json +0 -4
  412. package/tsconfig.lib.json +0 -19
  413. package/tsconfig.lib.prod.json +0 -10
  414. package/tsconfig.spec.json +0 -17
@@ -1,507 +0,0 @@
1
- import { _IdGenerator, FocusableOption } from '@angular/cdk/a11y';
2
- import {
3
- ChangeDetectionStrategy,
4
- ChangeDetectorRef,
5
- Component,
6
- ElementRef,
7
- EventEmitter,
8
- Input,
9
- NgZone,
10
- OnChanges,
11
- Output,
12
- SimpleChanges,
13
- ViewChild,
14
- ViewEncapsulation,
15
- booleanAttribute,
16
- forwardRef,
17
- numberAttribute,
18
- inject,
19
- HostAttributeToken,
20
- } from '@angular/core';
21
- import {
22
- AbstractControl,
23
- ControlValueAccessor,
24
- NG_VALIDATORS,
25
- NG_VALUE_ACCESSOR,
26
- ValidationErrors,
27
- Validator,
28
- } from '@angular/forms';
29
- import { _CdkPrivateStyleLoader } from '@angular/cdk/private';
30
-
31
- /**
32
- * Finite states for the checkbox visual state machine.
33
- *
34
- * - `Init`: initial (pre-render) state
35
- * - `Checked`: box is checked
36
- * - `Unchecked`: box is unchecked
37
- *
38
- * Used to pick the proper animation class during transitions.
39
- */
40
- export enum TransitionCheckState {
41
- Init,
42
- Checked,
43
- Unchecked,
44
- }
45
-
46
- /**
47
- * Payload for `(change)` output.
48
- *
49
- * - `source`: reference to emitting checkbox instance
50
- * - `checked`: current boolean state after the change
51
- */
52
- export class MDCheckboxChange {
53
- /** Source checkbox that emitted the change. */
54
- source: MDCheckBox;
55
- /** Current checked state after the update. */
56
- checked: boolean;
57
- }
58
-
59
- /**
60
- * Controls how a host click affects the checked state.
61
- *
62
- * - `'noop'` — ignore host clicks (useful for fully-controlled mode)
63
- * - `'check'` — toggle on click (default)
64
- * - `undefined` — treated as default
65
- */
66
- export type CheckboxClickAction = 'noop' | 'check' | undefined;
67
-
68
- @Component({
69
- selector: 'md-checkbox',
70
- templateUrl: 'checkbox.html',
71
- styleUrl: 'checkbox.scss',
72
- host: {
73
- class: 'md-mdc-checkbox',
74
- '[attr.tabindex]': 'null',
75
- '[attr.aria-label]': 'null',
76
- '[attr.aria-labelledby]': 'null',
77
- '[class.animation-noopable]': '_animationsDisabled',
78
- '[class.mdc-checkbox--disabled]': 'disabled',
79
- '[id]': 'id',
80
- '[class.mdc-checkbox-disabled]': 'disabled',
81
- '[class.mdc-checkbox-checked]': 'checked',
82
- '[class.mdc-checkbox-disabled-interactive]': 'disabledInteractive',
83
- '[class]': 'color ? color : "accent"',
84
- },
85
- providers: [
86
- {
87
- provide: NG_VALUE_ACCESSOR,
88
- useExisting: forwardRef(() => MDCheckBox),
89
- multi: true,
90
- },
91
- {
92
- provide: NG_VALIDATORS,
93
- useExisting: MDCheckBox,
94
- multi: true,
95
- },
96
- ],
97
- exportAs: 'mdCheckbox',
98
- encapsulation: ViewEncapsulation.None,
99
- changeDetection: ChangeDetectionStrategy.OnPush,
100
- })
101
- /**
102
- * Material-like Checkbox with CVA + validation support.
103
- *
104
- * @remarks
105
- * - Implements Angular Forms interfaces (`ControlValueAccessor`, `Validator`).
106
- * - Emits {@link MDCheckBox.change | change} on user-driven updates.
107
- * - Applies CSS animation classes for state transitions (configurable).
108
- *
109
- * @example Template usage
110
- * ```html
111
- * <md-checkbox [(ngModel)]="checked" (change)="onChanged($event)">Remember me</md-checkbox>
112
- * ```
113
- */
114
- export class MDCheckBox implements OnChanges, ControlValueAccessor, Validator, FocusableOption {
115
- /** Host `ElementRef` for low-level DOM ops (focus mgmt, class toggles via templates). */
116
- _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
117
-
118
- /** Change detector to mark view dirty on imperative state changes. */
119
- private _changeDetectorRef = inject(ChangeDetectorRef);
120
-
121
- /** Zone used to schedule work outside Angular for animation class cleanup. */
122
- private _ngZone = inject(NgZone);
123
-
124
- /** When true, skips adding animation classes to avoid motion. */
125
- protected _animationsDisabled = false;
126
-
127
- /**
128
- * Local options bag (can be extended to accept DI-config in the future).
129
- *
130
- * - `color`: theme class on host (`'accent'` by default)
131
- * - `clickAction`: how clicks affect toggle (default `'check'`)
132
- * - `disabledInteractive`: allow certain focus/aria semantics even if disabled
133
- */
134
- private _options = {
135
- color: 'accent',
136
- clickAction: 'check',
137
- disabledInteractive: false,
138
- };
139
-
140
- // ───────────────────────────── FocusableOption ─────────────────────────────
141
-
142
- /**
143
- * FocusableOption API (CDK lists, key manager, etc.).
144
- * Delegates focus to the internal native `<input>`.
145
- */
146
- focus() {
147
- this._inputElement.nativeElement.focus();
148
- }
149
-
150
- // ───────────────────────────── Events & helpers ─────────────────────────────
151
-
152
- /**
153
- * Factory for `(change)` event payloads.
154
- * @param isChecked Final boolean state after user interaction/programmatic toggle.
155
- */
156
- protected _createChangeEvent(isChecked: boolean) {
157
- const event = new MDCheckboxChange();
158
- event.source = this;
159
- event.checked = isChecked;
160
- return event;
161
- }
162
-
163
- /**
164
- * Returns the element on which animation classes are applied.
165
- * Typically the native input or visual container around it.
166
- */
167
- protected _getAnimationTargetElement() {
168
- return this._inputElement?.nativeElement;
169
- }
170
-
171
- /** Mapping of transition names to MDC animation classes. */
172
- protected _animationClasses = {
173
- uncheckedToChecked: 'mdc-checkbox--anim-unchecked-checked',
174
- checkedToUnchecked: 'mdc-checkbox--anim-checked-unchecked',
175
- };
176
-
177
- // ───────────────────────────── A11y Inputs ─────────────────────────────
178
-
179
- /** Accessible label text (if no external label is used). */
180
- @Input('aria-label') ariaLabel: string = '';
181
-
182
- /** Element id that labels this checkbox (preferred over `aria-label`). */
183
- @Input('aria-labelledby') ariaLabelledby: string | null = null;
184
-
185
- /** Element id that provides a description for this control. */
186
- @Input('aria-describedby') ariaDescribedby: string;
187
-
188
- /** Expanded state for composite widgets; rarely needed on a checkbox. */
189
- @Input({ alias: 'aria-expanded', transform: booleanAttribute }) ariaExpanded: boolean;
190
-
191
- /** Id of element(s) whose contents are controlled by this checkbox. */
192
- @Input('aria-controls') ariaControls: string;
193
-
194
- /** Id of element(s) owned by this checkbox. */
195
- @Input('aria-owns') ariaOwns: string;
196
-
197
- // ───────────────────────────── Identity / naming ─────────────────────────────
198
-
199
- /** Unique id seed used for host and internal input id wiring. */
200
- private _uniqueId: string;
201
-
202
- /** Host element id; also used to derive input id if provided. */
203
- @Input() id: string;
204
-
205
- /** Computed id for the internal `<input>`. */
206
- get inputId(): string {
207
- return `${this.id || this._uniqueId}-input`;
208
- }
209
-
210
- // ───────────────────────────── Form-related inputs ─────────────────────────────
211
-
212
- /** Whether the control is required; used by `Validator` implementation. */
213
- @Input({ transform: booleanAttribute }) required: boolean;
214
-
215
- /** Label placement relative to the box. @default 'after' */
216
- @Input() labelPosition: 'before' | 'after' = 'after';
217
-
218
- /** HTML `name` attribute of the internal input. */
219
- @Input() name: string | null = null;
220
-
221
- /**
222
- * Fired when the user toggles the checkbox (after internal state is updated).
223
- * Emits {@link MDCheckboxChange}.
224
- */
225
- @Output() readonly change = new EventEmitter<MDCheckboxChange>();
226
-
227
- /** Optional value associated with this checkbox (for forms/radio-like patterns). */
228
- @Input() value: string;
229
-
230
- /** Reference to the native input (used for focus, syncing native state). */
231
- @ViewChild('input') _inputElement: ElementRef<HTMLInputElement>;
232
-
233
- /** Reference to the label element (used to stop click bubbling). */
234
- @ViewChild('label') _labelElement: ElementRef<HTMLInputElement>;
235
-
236
- /**
237
- * Tab order for the internal input. If `null/undefined` — defaults to `0`.
238
- * Accepts string/number; normalized via `numberAttribute`.
239
- */
240
- @Input({ transform: (value: unknown) => (value == null ? undefined : numberAttribute(value)) })
241
- tabIndex: number;
242
-
243
- /** Theme color token applied as a host class (e.g., `'accent'`, `'primary'`). */
244
- @Input() color: string | undefined;
245
-
246
- /**
247
- * When true, allows certain interactions even in disabled state.
248
- * Useful when a disabled checkbox still needs focus/aria semantics.
249
- */
250
- @Input({ transform: booleanAttribute }) disabledInteractive: boolean;
251
-
252
- /** onTouched callback provided by Angular Forms. */
253
- _onTouched: () => any = () => {};
254
-
255
- /** Currently applied animation class; cleared after timeout. */
256
- private _currentAnimationClass: string = '';
257
-
258
- /** Last known check state to compute transition direction. */
259
- private _currentCheckState: TransitionCheckState = TransitionCheckState.Init;
260
-
261
- /** onChange callback provided by Angular Forms (propagates model updates). */
262
- private _controlValueAccessorChangeFn: (value: any) => void = () => {};
263
-
264
- /** Hook to notify Angular Forms that validator inputs changed. */
265
- private _validatorChangeFn = () => {};
266
-
267
- constructor() {
268
- const tabIndex = inject(new HostAttributeToken('tabindex'), { optional: true });
269
- this._options = this._options;
270
- this.color = this._options.color;
271
- this.tabIndex = tabIndex == null ? 0 : parseInt(tabIndex) || 0;
272
- this.id = this._uniqueId = inject(_IdGenerator).getId('mdc-checkbox-');
273
- this.disabledInteractive = this._options?.disabledInteractive ?? false;
274
- }
275
-
276
- // ───────────────────────────── Angular lifecycle ─────────────────────────────
277
-
278
- /** On input changes (e.g., `required` toggled), re-run validator if needed. */
279
- ngOnChanges(changes: SimpleChanges) {
280
- if (changes['required']) {
281
- this._validatorChangeFn();
282
- }
283
- }
284
-
285
- // ───────────────────────────── State: checked/disabled ─────────────────────────────
286
-
287
- /** Current boolean state (getter). */
288
- @Input({ transform: booleanAttribute })
289
- get checked(): boolean {
290
- return this._checked;
291
- }
292
- /**
293
- * Setter that marks view for check under OnPush strategy.
294
- * Avoids unnecessary marks if value didn't change.
295
- */
296
- set checked(value: boolean) {
297
- if (value != this.checked) {
298
- this._checked = value;
299
- this._changeDetectorRef.markForCheck();
300
- }
301
- }
302
- private _checked: boolean = false;
303
-
304
- /** Disabled state (getter). */
305
- @Input({ transform: booleanAttribute })
306
- get disabled(): boolean {
307
- return this._disabled;
308
- }
309
- /**
310
- * Setter that marks view for check under OnPush strategy.
311
- * Avoids unnecessary marks if value didn't change.
312
- */
313
- set disabled(value: boolean) {
314
- if (value !== this.disabled) {
315
- this._disabled = value;
316
- this._changeDetectorRef.markForCheck();
317
- }
318
- }
319
- private _disabled: boolean = false;
320
-
321
- // ───────────────────────────── Misc handlers ─────────────────────────────
322
-
323
- /**
324
- * Force change detection when projected label text mutates (e.g., via i18n async).
325
- * Called from template via `(cdkObserveContent)` or similar.
326
- */
327
- _onLabelTextChange() {
328
- this._changeDetectorRef.detectChanges();
329
- }
330
-
331
- // ───────────────────────────── ControlValueAccessor ─────────────────────────────
332
-
333
- /** Writes a new value from the model into the view. */
334
- writeValue(value: any) {
335
- this.checked = !!value;
336
- }
337
-
338
- /** Registers a callback to be triggered when the value changes in the UI. */
339
- registerOnChange(fn: (value: any) => void) {
340
- this._controlValueAccessorChangeFn = fn;
341
- }
342
-
343
- /** Registers a callback for the control being touched (blurred). */
344
- registerOnTouched(fn: any) {
345
- this._onTouched = fn;
346
- }
347
-
348
- /** Enables or disables the control from the Angular Forms API. */
349
- setDisabledState(isDisabled: boolean) {
350
- this.disabled = isDisabled;
351
- }
352
-
353
- // ───────────────────────────── Validator ─────────────────────────────
354
-
355
- /**
356
- * Synchronous validation: if `required`, only `true` is valid.
357
- */
358
- validate(control: AbstractControl<boolean>): ValidationErrors | null {
359
- return this.required && control.value !== true ? { required: true } : null;
360
- }
361
-
362
- /** Informs Angular Forms that validators should be re-run. */
363
- registerOnValidatorChange(fn: () => void): void {
364
- this._validatorChangeFn = fn;
365
- }
366
-
367
- // ───────────────────────────── Animations ─────────────────────────────
368
-
369
- /**
370
- * Applies/removes the appropriate animation CSS class for the transition.
371
- * Cleans up the class after a timeout (~duration of the CSS animation).
372
- */
373
- private _transitionCheckState(newState: TransitionCheckState) {
374
- let oldState = this._currentCheckState;
375
- let element = this._getAnimationTargetElement();
376
-
377
- if (oldState === newState || !element) {
378
- return;
379
- }
380
- if (this._currentAnimationClass) {
381
- element.classList.remove(this._currentAnimationClass);
382
- }
383
-
384
- this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);
385
- this._currentCheckState = newState;
386
-
387
- if (this._currentAnimationClass.length > 0) {
388
- element.classList.add(this._currentAnimationClass);
389
- const animationClass = this._currentAnimationClass;
390
-
391
- this._ngZone.runOutsideAngular(() => {
392
- setTimeout(() => {
393
- element!.classList.remove(animationClass);
394
- }, 1000);
395
- });
396
- }
397
- }
398
-
399
- /**
400
- * Picks the correct CSS animation class for a given `old → new` transition.
401
- * Returns empty string when animations are disabled.
402
- */
403
- private _getAnimationClassForCheckStateTransition(
404
- oldState: TransitionCheckState,
405
- newState: TransitionCheckState
406
- ): string {
407
- if (this._animationsDisabled) {
408
- return '';
409
- }
410
-
411
- switch (oldState) {
412
- case TransitionCheckState.Init:
413
- if (newState === TransitionCheckState.Checked) {
414
- return this._animationClasses.uncheckedToChecked;
415
- }
416
- break;
417
- case TransitionCheckState.Unchecked:
418
- return this._animationClasses.uncheckedToChecked;
419
- case TransitionCheckState.Checked:
420
- return this._animationClasses.checkedToUnchecked;
421
- }
422
-
423
- return '';
424
- }
425
-
426
- // ───────────────────────────── UI events ─────────────────────────────
427
-
428
- /** Host handler for click on the native `<input>`. */
429
- _onInputClick() {
430
- this._handleInputClick();
431
- }
432
-
433
- /**
434
- * Click on the larger touch target (ripple/visual area) should toggle as well.
435
- * Also refocuses the real input if not disabled to preserve keyboard flow.
436
- */
437
- _onTouchTargetClick() {
438
- this._handleInputClick();
439
-
440
- if (!this.disabled) {
441
- this._inputElement.nativeElement.focus();
442
- }
443
- }
444
-
445
- /**
446
- * Prevent outer components from reacting to internal mouse/keyboard events.
447
- */
448
- _onInteractionEvent(event: Event) {
449
- event.stopPropagation();
450
- }
451
-
452
- /**
453
- * Mark as touched after blur has fully propagated to avoid change collisions.
454
- */
455
- _onBlur() {
456
- Promise.resolve().then(() => {
457
- this._onTouched();
458
- this._changeDetectorRef.markForCheck();
459
- });
460
- }
461
-
462
- /**
463
- * Centralized click handler used by input/touch-target.
464
- * Respects disabled state and `clickAction` behavior.
465
- */
466
- protected _handleInputClick() {
467
- const clickAction = this._options?.clickAction;
468
-
469
- if (!this.disabled && clickAction !== 'noop') {
470
- this._checked = !this._checked;
471
- this._transitionCheckState(this._checked ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
472
- this._emitChangeEvent();
473
- } else if ((this.disabled && this.disabledInteractive) || (!this.disabled && clickAction === 'noop')) {
474
- this._inputElement.nativeElement.checked = this.checked;
475
- }
476
- }
477
-
478
- /**
479
- * Emits Angular Forms change, fires `(change)` output, and syncs native input state.
480
- */
481
- private _emitChangeEvent() {
482
- this._controlValueAccessorChangeFn(this.checked);
483
- this.change.emit(this._createChangeEvent(this.checked));
484
- if (this._inputElement) {
485
- this._inputElement.nativeElement.checked = this.checked;
486
- }
487
- }
488
-
489
- /**
490
- * Programmatic toggle (e.g., from parent component).
491
- * Also notifies Angular Forms via registered `onChange` callback.
492
- */
493
- toggle(): void {
494
- this.checked = !this.checked;
495
- this._controlValueAccessorChangeFn(this.checked);
496
- }
497
-
498
- /**
499
- * If a click originates from inside the label element, stop it from bubbling
500
- * to avoid double-handling (host click + input click).
501
- */
502
- _preventBubblingFromLabel(event: MouseEvent) {
503
- if (!!event.target && this._labelElement.nativeElement.contains(event.target as HTMLElement)) {
504
- event.stopPropagation();
505
- }
506
- }
507
- }
@@ -1 +0,0 @@
1
- export * from './checkbox.module';
@@ -1,102 +0,0 @@
1
- import {
2
- Directive,
3
- ElementRef,
4
- Input,
5
- booleanAttribute,
6
- numberAttribute,
7
- inject,
8
- } from '@angular/core';
9
- import {ENTER, SPACE} from '@angular/cdk/keycodes';
10
- import {MD_CHIP} from './tokens';
11
-
12
- @Directive({
13
- selector: '[mdChipContent]',
14
- host: {
15
- 'class':
16
- 'md-mdc-chip-action mdc-evolution-chip__action mdc-evolution-chip__action--presentational',
17
- '[class.mdc-evolution-chip__action--primary]': '_isPrimary',
18
- '[class.mdc-evolution-chip__action--secondary]': '!_isPrimary',
19
- '[class.mdc-evolution-chip__action--trailing]': '!_isPrimary && !_isLeading',
20
- '[attr.disabled]': '_getDisabledAttribute()',
21
- '[attr.aria-disabled]': 'disabled',
22
- },
23
- })
24
- export class MDChipContent {
25
- _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
26
- protected _parentChip = inject<{
27
- _handlePrimaryActionInteraction(): void;
28
- remove(): void;
29
- disabled: boolean;
30
- _edit(): void;
31
- _isEditing?: boolean;
32
- }>(MD_CHIP);
33
-
34
- _isPrimary = true;
35
-
36
- _isLeading = false;
37
-
38
- @Input({transform: booleanAttribute})
39
- get disabled(): boolean {
40
- return this._disabled || this._parentChip?.disabled || false;
41
- }
42
- set disabled(value: boolean) {
43
- this._disabled = value;
44
- }
45
- private _disabled = false;
46
-
47
- @Input({
48
- transform: (value: unknown) => (value == null ? -1 : numberAttribute(value)),
49
- })
50
- tabIndex: number = -1;
51
-
52
- @Input()
53
- _allowFocusWhenDisabled = false;
54
-
55
- protected _getDisabledAttribute(): string | null {
56
- return this.disabled && !this._allowFocusWhenDisabled ? '' : null;
57
- }
58
-
59
- constructor() {
60
- if (this._elementRef.nativeElement.nodeName === 'BUTTON') {
61
- this._elementRef.nativeElement.setAttribute('type', 'button');
62
- }
63
- }
64
-
65
- focus() {
66
- this._elementRef.nativeElement.focus();
67
- }
68
- }
69
-
70
- @Directive({
71
- selector: '[mdChipAction]',
72
- host: {
73
- '[attr.tabindex]': '_getTabindex()',
74
- '[class.mdc-evolution-chip__action--presentational]': 'false',
75
- '(click)': '_handleClick($event)',
76
- '(keydown)': '_handleKeydown($event)',
77
- },
78
- })
79
- export class MDChipAction extends MDChipContent {
80
- protected _getTabindex(): string | null {
81
- return this.disabled && !this._allowFocusWhenDisabled ? null : this.tabIndex.toString();
82
- }
83
-
84
- _handleClick(event: MouseEvent) {
85
- if (!this.disabled && this._isPrimary) {
86
- event.preventDefault();
87
- this._parentChip._handlePrimaryActionInteraction();
88
- }
89
- }
90
-
91
- _handleKeydown(event: KeyboardEvent) {
92
- if (
93
- (event.keyCode === ENTER || event.keyCode === SPACE) &&
94
- !this.disabled &&
95
- this._isPrimary &&
96
- !this._parentChip._isEditing
97
- ) {
98
- event.preventDefault();
99
- this._parentChip._handlePrimaryActionInteraction();
100
- }
101
- }
102
- }
@@ -1,44 +0,0 @@
1
- import {Directive, ElementRef, inject, DOCUMENT} from '@angular/core';
2
-
3
- @Directive({
4
- selector: 'span[mdChipEditInput]',
5
- host: {
6
- 'class': 'md-chip-edit-input',
7
- 'role': 'textbox',
8
- 'tabindex': '-1',
9
- 'contenteditable': 'true',
10
- },
11
- })
12
- export class MDChipEditInput {
13
- private readonly _elementRef = inject(ElementRef);
14
- private readonly _document = inject(DOCUMENT);
15
-
16
- constructor() {}
17
-
18
- initialize(initialValue: string) {
19
- this.getNativeElement().focus();
20
- this.setValue(initialValue);
21
- }
22
-
23
- getNativeElement(): HTMLElement {
24
- return this._elementRef.nativeElement;
25
- }
26
-
27
- setValue(value: string) {
28
- this.getNativeElement().textContent = value;
29
- this._moveCursorToEndOfInput();
30
- }
31
-
32
- getValue(): string {
33
- return this.getNativeElement().textContent || '';
34
- }
35
-
36
- private _moveCursorToEndOfInput() {
37
- const range = this._document.createRange();
38
- range.selectNodeContents(this.getNativeElement());
39
- range.collapse(false);
40
- const sel = window.getSelection()!;
41
- sel.removeAllRanges();
42
- sel.addRange(range);
43
- }
44
- }