@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,324 +0,0 @@
1
- /** code from https://github.com/angular/material2 */
2
- import { Direction, Directionality } from '@angular/cdk/bidi';
3
- import {
4
- AfterContentChecked,
5
- AfterContentInit,
6
- Component,
7
- ContentChild,
8
- ContentChildren,
9
- ElementRef,
10
- HostBinding,
11
- Input,
12
- NgZone,
13
- Optional,
14
- QueryList,
15
- Renderer2,
16
- TemplateRef,
17
- ViewChild,
18
- ViewEncapsulation
19
- } from '@angular/core';
20
- import { Subscription, fromEvent, merge, of as observableOf } from 'rxjs';
21
- import { auditTime, startWith } from 'rxjs/operators';
22
- import { toBoolean } from '../util/convert';
23
- import { MefDevTabLabelDirective } from './tab-label.directive';
24
- import { MefDevTabsInkBarDirective } from './tabs-ink-bar.directive';
25
-
26
- const EXAGGERATED_OVERSCROLL = 64;
27
- export type ScrollDirection = 'after' | 'before';
28
-
29
- /** duplicated defined https://github.com/angular/angular-cli/issues/2034 **/
30
- export type TabPositionMode = 'horizontal' | 'vertical';
31
-
32
- @Component({
33
- selector: 'mefdev-tabs-nav',
34
- encapsulation: ViewEncapsulation.None,
35
- templateUrl: "./tabs-nav.component.html",
36
- standalone: false
37
- })
38
- export class MefDevTabsNavComponent implements AfterContentChecked, AfterContentInit {
39
- private _animated = true;
40
- private _hideBar = false;
41
- private _showPagination = true;
42
-
43
- _showPaginationControls = false;
44
- _disableScrollAfter = true;
45
- _disableScrollBefore = true;
46
- _scrollDistance = 0;
47
- _selectedIndexChanged = false;
48
- _realignInkBar: Subscription | null = null;
49
- _tabLabelCount: number;
50
- _scrollDistanceChanged: boolean;
51
- _selectedIndex = 0;
52
- _tabPositionMode: TabPositionMode = 'horizontal';
53
- _tabPosition = 'top';
54
- @Input() Size = 'default';
55
- _type = 'line';
56
-
57
- @Input()
58
- set Animated(value: boolean) {
59
- this._animated = toBoolean(value);
60
- }
61
-
62
- get Animated(): boolean {
63
- return this._animated;
64
- }
65
-
66
- @Input()
67
- set Position(value: string) {
68
- this._tabPosition = value;
69
- }
70
-
71
- get Position(): string {
72
- return this._tabPosition;
73
- }
74
-
75
- @Input()
76
- set HideBar(value: boolean) {
77
- this._hideBar = toBoolean(value);
78
- }
79
-
80
- get HideBar(): boolean {
81
- return this._hideBar;
82
- }
83
-
84
- @Input()
85
- set Type(value: string) {
86
- this._type = value;
87
- }
88
-
89
- get Type(): string {
90
- return this._type;
91
- }
92
-
93
- @ContentChild('tabBarExtraContent', { static: true }) _tabBarExtraContent: TemplateRef<void>;
94
- @ContentChildren(MefDevTabLabelDirective) _labelWrappers: QueryList<MefDevTabLabelDirective>;
95
- @ViewChild(MefDevTabsInkBarDirective, { static: true }) _inkBar: MefDevTabsInkBarDirective;
96
- @ViewChild('tabListContainer', { static: true }) _tabListContainer: ElementRef;
97
- @ViewChild('tabList', { static: true }) _tabList: ElementRef;
98
-
99
- @Input()
100
- set ShowPagination(value: boolean) {
101
- this._showPagination = toBoolean(value);
102
- }
103
-
104
- get ShowPagination(): boolean {
105
- return this._showPagination;
106
- }
107
-
108
- @Input()
109
- set PositionMode(value: TabPositionMode) {
110
- this._tabPositionMode = value;
111
- this._alignInkBarToSelectedTab();
112
- if (this.ShowPagination) {
113
- this._updatePagination();
114
- }
115
- }
116
-
117
- get PositionMode(): TabPositionMode {
118
- return this._tabPositionMode;
119
- }
120
-
121
- @Input()
122
- set selectedIndex(value: number) {
123
- this._selectedIndexChanged = this._selectedIndex !== value;
124
-
125
- this._selectedIndex = value;
126
- }
127
-
128
- get selectedIndex(): number {
129
- return this._selectedIndex;
130
- }
131
-
132
- constructor(
133
- public _elementRef: ElementRef,
134
- private _ngZone: NgZone,
135
- private _renderer: Renderer2,
136
- @Optional() private _dir: Directionality
137
- ) {}
138
-
139
- _onContentChanges(): void {
140
- if (this.ShowPagination) {
141
- this._updatePagination();
142
- }
143
- this._alignInkBarToSelectedTab();
144
- }
145
-
146
- _scrollHeader(scrollDir: ScrollDirection): void {
147
- // Move the scroll distance one-third the length of the tab list's viewport.
148
- this.scrollDistance += ((scrollDir === 'before' ? -1 : 1) * this.viewWidthHeightPix) / 3;
149
- }
150
-
151
- ngAfterContentChecked(): void {
152
- if (this._tabLabelCount !== this._labelWrappers.length) {
153
- if (this.ShowPagination) {
154
- this._updatePagination();
155
- }
156
- this._tabLabelCount = this._labelWrappers.length;
157
- }
158
- if (this._selectedIndexChanged) {
159
- this._scrollToLabel(this._selectedIndex);
160
- if (this.ShowPagination) {
161
- this._checkScrollingControls();
162
- }
163
- this._alignInkBarToSelectedTab();
164
- this._selectedIndexChanged = false;
165
- }
166
- if (this._scrollDistanceChanged) {
167
- if (this.ShowPagination) {
168
- this._updateTabScrollPosition();
169
- }
170
- this._scrollDistanceChanged = false;
171
- }
172
- }
173
-
174
- ngAfterContentInit(): void {
175
- this._realignInkBar = this._ngZone.runOutsideAngular(() => {
176
- const dirChange = this._dir ? this._dir.change : observableOf(null);
177
- const resize = typeof window !== 'undefined' ? fromEvent(window, 'resize').pipe(auditTime(10)) : observableOf(null);
178
- //@ts-ignore
179
- return merge(dirChange, resize)
180
- .pipe(startWith(null))
181
- .subscribe(() => {
182
- if (this.ShowPagination) {
183
- this._updatePagination();
184
- }
185
- this._alignInkBarToSelectedTab();
186
- });
187
- });
188
- }
189
-
190
- _updateTabScrollPosition(): void {
191
- const scrollDistance = this.scrollDistance;
192
- if (this.PositionMode === 'horizontal') {
193
- const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
194
- this._renderer.setStyle(this._tabList.nativeElement, 'transform', `translate3d(${translateX}px, 0, 0)`);
195
- } else {
196
- this._renderer.setStyle(this._tabList.nativeElement, 'transform', `translate3d(0,${-scrollDistance}px, 0)`);
197
- }
198
- }
199
-
200
- _updatePagination(): void {
201
- this._checkPaginationEnabled();
202
- this._checkScrollingControls();
203
- this._updateTabScrollPosition();
204
- }
205
-
206
- _checkPaginationEnabled(): void {
207
- this._showPaginationControls = this.tabListScrollWidthHeightPix > this.elementRefOffSetWidthHeight;
208
-
209
- if (!this._showPaginationControls) {
210
- this.scrollDistance = 0;
211
- }
212
- }
213
-
214
- _scrollToLabel(labelIndex: number): void {
215
- const selectedLabel = this._labelWrappers ? this._labelWrappers.toArray()[labelIndex] : null;
216
-
217
- if (!selectedLabel) {
218
- return;
219
- }
220
-
221
- // The view length is the visible width of the tab labels.
222
-
223
- let labelBeforePos: number;
224
- let labelAfterPos: number;
225
- if (this.PositionMode === 'horizontal') {
226
- if (this._getLayoutDirection() === 'ltr') {
227
- labelBeforePos = selectedLabel.getOffsetLeft();
228
- labelAfterPos = labelBeforePos + selectedLabel.getOffsetWidth();
229
- } else {
230
- labelAfterPos = this._tabList.nativeElement.offsetWidth - selectedLabel.getOffsetLeft();
231
- labelBeforePos = labelAfterPos - selectedLabel.getOffsetWidth();
232
- }
233
- } else {
234
- labelBeforePos = selectedLabel.getOffsetTop();
235
- labelAfterPos = labelBeforePos + selectedLabel.getOffsetHeight();
236
- }
237
- const beforeVisiblePos = this.scrollDistance;
238
- const afterVisiblePos = this.scrollDistance + this.viewWidthHeightPix;
239
-
240
- if (labelBeforePos < beforeVisiblePos) {
241
- // Scroll header to move label to the before direction
242
- this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
243
- } else if (labelAfterPos > afterVisiblePos) {
244
- // Scroll header to move label to the after direction
245
- this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
246
- }
247
- }
248
-
249
- _checkScrollingControls(): void {
250
- // Check if the pagination arrows should be activated.
251
- this._disableScrollBefore = this.scrollDistance === 0;
252
- this._disableScrollAfter = this.scrollDistance === this._getMaxScrollDistance();
253
- }
254
-
255
- /**
256
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
257
- * is equal to the difference in width between the tab list container and tab header container.
258
- *
259
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
260
- * should be called sparingly.
261
- */
262
- _getMaxScrollDistance(): number {
263
- return this.tabListScrollWidthHeightPix - this.viewWidthHeightPix || 0;
264
- }
265
-
266
- /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
267
- set scrollDistance(v: number) {
268
- this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), v));
269
-
270
- // Mark that the scroll distance has changed so that after the view is checked, the CSS
271
- // transformation can move the header.
272
- this._scrollDistanceChanged = true;
273
-
274
- this._checkScrollingControls();
275
- }
276
-
277
- get scrollDistance(): number {
278
- return this._scrollDistance;
279
- }
280
-
281
- get viewWidthHeightPix(): number {
282
- let PAGINATION_PIX = 0;
283
- if (this._showPaginationControls) {
284
- PAGINATION_PIX = 64;
285
- }
286
- if (this.PositionMode === 'horizontal') {
287
- return this._tabListContainer.nativeElement.offsetWidth - PAGINATION_PIX;
288
- } else {
289
- return this._tabListContainer.nativeElement.offsetHeight - PAGINATION_PIX;
290
- }
291
- }
292
-
293
- get tabListScrollWidthHeightPix(): number {
294
- if (this.PositionMode === 'horizontal') {
295
- return this._tabList.nativeElement.scrollWidth;
296
- } else {
297
- return this._tabList.nativeElement.scrollHeight;
298
- }
299
- }
300
-
301
- get elementRefOffSetWidthHeight(): number {
302
- if (this.PositionMode === 'horizontal') {
303
- return this._elementRef.nativeElement.offsetWidth;
304
- } else {
305
- return this._elementRef.nativeElement.offsetHeight;
306
- }
307
- }
308
-
309
- _getLayoutDirection(): Direction {
310
- return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
311
- }
312
-
313
- _alignInkBarToSelectedTab(): void {
314
- if (this.Type !== 'fillup') {
315
- const selectedLabelWrapper =
316
- this._labelWrappers && this._labelWrappers.length
317
- ? this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement
318
- : null;
319
- if (this._inkBar) {
320
- this._inkBar.alignToElement(selectedLabelWrapper);
321
- }
322
- }
323
- }
324
- }
@@ -1,15 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { MefDevTabBodyComponent } from './tab-body.component';
4
- import { MefDevTabLabelDirective } from './tab-label.directive';
5
- import { MefDevTabComponent } from './tab.component';
6
- import { MefDevTabsInkBarDirective } from './tabs-ink-bar.directive';
7
- import { MefDevTabsNavComponent } from './tabs-nav.component';
8
- import { MefDevTabSetComponent } from './tabset.component';
9
-
10
- @NgModule({
11
- declarations: [MefDevTabComponent, MefDevTabSetComponent, MefDevTabsNavComponent, MefDevTabLabelDirective, MefDevTabsInkBarDirective, MefDevTabBodyComponent],
12
- exports: [MefDevTabComponent, MefDevTabSetComponent, MefDevTabsNavComponent, MefDevTabLabelDirective, MefDevTabsInkBarDirective, MefDevTabBodyComponent],
13
- imports: [CommonModule]
14
- })
15
- export class MefDevTabsModule {}
@@ -1,39 +0,0 @@
1
- <div class="tab-wrapper tab-{{ _tabPositionMode }} {{ _tabPosition }} {{ _type }} {{ _extra_tab_class }}" #hostContent>
2
- <mefdev-tabs-nav
3
- #tabNav
4
- [Size]="Size"
5
- [Type]="Type"
6
- [ShowPagination]="ShowPagination"
7
- [PositionMode]="_tabPositionMode"
8
- [Position]="_tabPosition"
9
- [Animated]="inkBarAnimated"
10
- [HideBar]="Hide"
11
- [selectedIndex]="SelectedIndex"
12
- >
13
- <ng-template #tabBarExtraContent>
14
- <ng-template [ngTemplateOutlet]="TabBarExtraTemplate || TabBarExtraContent"></ng-template>
15
- </ng-template>
16
- <li mefdev-tab-label [disabled]="tab.disabled" (click)="clickLabel(i)" *ngFor="let tab of _tabs; let i = index">
17
- <a href="javascript:void(0);" class="" [class.active]="SelectedIndex == i && !Hide">
18
- <ng-template [ngTemplateOutlet]="tab._tabHeading"></ng-template>
19
- </a>
20
- </mefdev-tabs-nav>
21
- <div class="tab-content-wrapper {{ _extra_tabcontent_class }}">
22
- <div
23
- class="tab-content {{ _tabAnimation }}"
24
- #tabContent
25
- [class.animated]="tabPaneAnimated"
26
- [class.not-animated]="!tabPaneAnimated"
27
- [style.margin-left.%]="tabPaneAnimated && -(SelectedIndex ?? -1) * 100"
28
- >
29
- <mefdev-tab-body
30
- class="tab-pane"
31
- [class.active]="SelectedIndex == i && !Hide"
32
- [class.inactive]="SelectedIndex != i || Hide"
33
- [content]="tab.content"
34
- *ngFor="let tab of _tabs; let i = index"
35
- >
36
- </mefdev-tab-body>
37
- </div>
38
- </div>
39
- </div>
@@ -1,270 +0,0 @@
1
- /** code from https://github.com/angular/material2 */
2
-
3
- import {
4
- AfterContentChecked,
5
- AfterViewInit,
6
- Component,
7
- ContentChild,
8
- ElementRef,
9
- EventEmitter,
10
- Input,
11
- OnInit,
12
- Output,
13
- Renderer2,
14
- TemplateRef,
15
- ViewChild,
16
- ViewEncapsulation
17
- } from '@angular/core';
18
- import { Observable } from 'rxjs';
19
- import { map } from 'rxjs/operators';
20
- import { MefDevTabComponent } from './tab.component';
21
- import { MefDevTabsNavComponent } from './tabs-nav.component';
22
-
23
- export interface AnimatedInterface {
24
- inkBar: boolean;
25
- tabPane: boolean;
26
- }
27
-
28
- export class TabChangeEvent {
29
- index: number;
30
- tab: MefDevTabComponent;
31
- }
32
-
33
- export type TabPosition = 'top' | 'bottom' | 'left' | 'right';
34
- export type TabPositionMode = 'horizontal' | 'vertical';
35
- export type TabType = 'line' | 'fillup' | 'linetriangle';
36
-
37
-
38
- /**
39
- * Represents a tab set or tab group component.
40
- * @example
41
- * <mefdev-tabset TabPosition="top" Animated="true" ShowPagination="true">
42
- * <mefdev-tab label="Tab 1">Tab 1 content</mefdev-tab>
43
- * <mefdev-tab label="Tab 2">Tab 2 content</mefdev-tab>
44
- * </mefdev-tabset>
45
- *
46
- * Example of usage:
47
- * <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/tabset</example-url>
48
- */
49
- @Component({
50
- selector: 'mefdev-tabset',
51
- encapsulation: ViewEncapsulation.None,
52
- templateUrl: "./tabset.component.html",
53
- standalone: false
54
- })
55
- export class MefDevTabSetComponent implements AfterContentChecked, OnInit, AfterViewInit {
56
- _el:any;
57
- _classMap:any;
58
- _prefixCls = 'nav-tabs';
59
- _width:any;
60
- _tabPosition: TabPosition = 'top';
61
- _tabPositionMode: TabPositionMode = 'horizontal';
62
- _indexToSelect: number | null = 0;
63
- _selectedIndex: number | null = null;
64
- _isViewInit = false;
65
- _tabs: MefDevTabComponent[] = [];
66
- _tabAnimation = '';
67
- _extra_tab_class = '';
68
- _extra_tabcontent_class = '';
69
-
70
- /**
71
- * Template reference for additional content to be displayed in the tab bar.
72
- */
73
- @Input() TabBarExtraTemplate: TemplateRef<void>;
74
- @ContentChild('TabBarExtraContent', { static: true }) TabBarExtraContent: TemplateRef<void>;
75
- @ViewChild('tabNav', { static: true }) _tabNav: MefDevTabsNavComponent;
76
- @ViewChild('tabContent', { static: true }) _tabContent: ElementRef;
77
- @ViewChild('hostContent', { static: true }) _hostContent: ElementRef;
78
-
79
- /**
80
- * Whether the tab set is animated. Can be a boolean or an object of type AnimatedInterface.
81
- * @example
82
- * - true (enables animation for both ink bar and tab pane)
83
- * - { inkBar: true, tabPane: false } (enables animation for ink bar only)
84
- * Default: true
85
- */
86
-
87
- @Input() Animated: AnimatedInterface | boolean = true;
88
-
89
- /**
90
- * Whether to show pagination controls for scrolling tabs.
91
- * @example true
92
- * Default: true
93
- */
94
- @Input() ShowPagination = true;
95
-
96
- /**
97
- * Whether the tab set is hidden.
98
- * @example true
99
- * Default: false
100
- */
101
- @Input() Hide = false;
102
-
103
- /**
104
- * The index of the selected tab.
105
- */
106
- @Input()
107
- set SelectedIndex(value: number | null) {
108
- this._indexToSelect = value;
109
- }
110
-
111
- get SelectedIndex(): number | null {
112
- return this._selectedIndex;
113
- }
114
-
115
- /**
116
- * Event emitted when the selected tab index changes.
117
- * @returns An Observable emitting the index of the selected tab.
118
- */
119
- @Output()
120
- get SelectedIndexChange(): Observable<number> {
121
- //@ts-ignore
122
- return this.SelectChange.pipe(map((event:any) => event.index));
123
- }
124
-
125
- /**
126
- * Event emitted when a tab is selected.
127
- * @example
128
- * <mefdev-tabset (SelectChange)="onTabSelect($event)"></mefdev-tabset>
129
- */
130
- @Output() SelectChange: EventEmitter<TabChangeEvent> = new EventEmitter<TabChangeEvent>(true);
131
-
132
- /**
133
- * Size of the tab set. Can be 'default', 'small', or 'large'.
134
- * @example 'large'
135
- * Default: 'default'
136
- */
137
- @Input() Size = 'default';
138
- _type: TabType = 'line';
139
- tabs: MefDevTabComponent[] = [];
140
-
141
- /**
142
- * Position of the tab set. Can be 'top', 'bottom', 'left', or 'right'.
143
- */
144
- @Input()
145
- set TabPosition(value: TabPosition) {
146
- this._tabPosition = value;
147
- this._tabPositionMode = (value === 'top' || value === 'bottom') ? 'horizontal' : 'vertical';
148
- }
149
- get TabPosition(): TabPosition {
150
- return this._tabPosition;
151
- }
152
-
153
- /**
154
- * Additional CSS class for the tabs.
155
- */
156
- @Input()
157
- set extraTabClass(value: string) {
158
- this._extra_tab_class = value;
159
- }
160
-
161
- /**
162
- * Additional CSS class for the tab content.
163
- */
164
- @Input()
165
- set extraTabContentClass(value: string) {
166
- this._extra_tabcontent_class = value;
167
- }
168
-
169
- /**
170
- * Type of the tab set. Can be 'line', 'fillup', or 'linetriangle'.
171
- */
172
- @Input()
173
- set Type(value: TabType) {
174
- if (this._type === value) {
175
- return;
176
- }
177
- this._type = value;
178
- this._setClassMap();
179
- }
180
-
181
- /**
182
- * Animation to apply to the tabs. Accepts CSS animation name.
183
- */
184
- @Input()
185
- set tabAnimation(value: string) {
186
- this._tabAnimation = value;
187
- }
188
-
189
- get Type(): TabType {
190
- return this._type;
191
- }
192
-
193
- _setPosition(value: TabPosition): void {}
194
-
195
- _setClassMap(): void {}
196
-
197
- // Other properties, methods, and lifecycle hooks...
198
-
199
- /**
200
- * Selects the tab at the specified index.
201
- * @param index The index of the tab to select.
202
- * ```
203
- * <button (click)="clickLabel(0)">Select Tab 1</button>
204
- *```
205
- */
206
- clickLabel(index: number): void {
207
- if (this._tabs[index].Disabled) {
208
- } else {
209
- this.SelectedIndex = index;
210
- this._tabs[index].pgClick.emit();
211
- }
212
- }
213
-
214
- ngOnInit(): void {
215
- this._setClassMap();
216
- }
217
-
218
- ngAfterContentChecked(): void {
219
- // Clamp the next selected index to the bounds of 0 and the tabs length. Note the `|| 0`, which
220
- // ensures that values like NaN can't get through and which would otherwise throw the
221
- // component into an infinite loop (since Math.max(NaN, 0) === NaN).
222
- const indexToSelect = (this._indexToSelect = Math.min(this._tabs.length - 1, Math.max(this._indexToSelect || 0, 0)));
223
-
224
- // If there is a change in selected index, emit a change event. Should not trigger if
225
- // the selected index has not yet been initialized.
226
- if (this._selectedIndex !== indexToSelect && this._selectedIndex != null) {
227
- this.SelectChange.emit(this._createChangeEvent(indexToSelect));
228
- }
229
-
230
- // Setup the position for each tab and optionally setup an origin on the next selected tab.
231
- this._tabs.forEach((tab: MefDevTabComponent, index: number) => {
232
- tab.position = index - indexToSelect;
233
- // If there is already a selected tab, then set up an origin for the next selected tab
234
- // if it doesn't have one already.
235
- if (this._selectedIndex != null && tab.position === 0 && !tab.origin) {
236
- tab.origin = indexToSelect - this._selectedIndex;
237
- }
238
- });
239
- this._selectedIndex = indexToSelect;
240
- }
241
-
242
- ngAfterViewInit(): void {
243
- this._isViewInit = true;
244
- }
245
-
246
- private _createChangeEvent(index: number): TabChangeEvent {
247
- const event = new TabChangeEvent();
248
- event.index = index;
249
- if (this._tabs && this._tabs.length) {
250
- event.tab = this._tabs[index];
251
- this._tabs.forEach((item, i) => {
252
- if (i !== index) {
253
- item.pgDeselect.emit();
254
- }
255
- });
256
- event.tab.pgSelect.emit();
257
- }
258
- return event;
259
- }
260
-
261
- get inkBarAnimated(): boolean {
262
- return this.Animated === true || (this.Animated as AnimatedInterface).inkBar === true;
263
- }
264
-
265
- get tabPaneAnimated(): boolean {
266
- return this.Animated === true || (this.Animated as AnimatedInterface).tabPane === true;
267
- }
268
-
269
- constructor(private _renderer: Renderer2) {}
270
- }
@@ -1,3 +0,0 @@
1
- export function toBoolean(value: any): boolean {
2
- return value === '' || (value && value !== 'false');
3
- }
@@ -1,31 +0,0 @@
1
-
2
- const availablePrefixs = ['moz', 'ms', 'webkit'];
3
-
4
- function requestAnimationFramePolyfill(): typeof requestAnimationFrame {
5
- let lastTime = 0;
6
- return function (callback: FrameRequestCallback): number {
7
- const currTime = new Date().getTime();
8
- const timeToCall = Math.max(0, 16 - (currTime - lastTime));
9
- const id = window.setTimeout(() => { callback(currTime + timeToCall); }, timeToCall);
10
- lastTime = currTime + timeToCall;
11
- return id;
12
- };
13
- }
14
-
15
- function getRequestAnimationFrame(): typeof requestAnimationFrame {
16
- if (typeof window === 'undefined') {
17
- //@ts-ignore
18
- return () => null;
19
- }
20
- if (window.requestAnimationFrame) {
21
- return window.requestAnimationFrame.bind(window);
22
- }
23
-
24
- const prefix = availablePrefixs.filter(key => `${key}RequestAnimationFrame` in window)[0];
25
-
26
- return prefix
27
- ? (window as any)[`${prefix}RequestAnimationFrame`]
28
- : requestAnimationFramePolyfill();
29
- }
30
-
31
- export const reqAnimFrame = getRequestAnimationFrame();
@@ -1,12 +0,0 @@
1
- import {Directive, ElementRef, inject} from '@angular/core';
2
-
3
-
4
- @Directive({
5
- selector: '[mdAutocompleteOrigin]',
6
- exportAs: 'mdAutocompleteOrigin',
7
- })
8
- export class MDAutocompleteOrigin {
9
- elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
10
-
11
- constructor() {}
12
- }