dasar-ui 1.9.2 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +64 -65
  2. package/fesm2022/dasar-ui.mjs +37004 -0
  3. package/fesm2022/dasar-ui.mjs.map +1 -0
  4. package/package.json +39 -57
  5. package/{projects/dasar-ui/src/lib/styles → styles}/theme.scss +238 -238
  6. package/types/dasar-ui.d.ts +4075 -0
  7. package/.dockerignore +0 -31
  8. package/.editorconfig +0 -17
  9. package/.github/workflows/npm-publish-github-packages.yml +0 -36
  10. package/.prettierrc +0 -12
  11. package/.versionrc.json +0 -4
  12. package/.vscode/extensions.json +0 -4
  13. package/.vscode/launch.json +0 -20
  14. package/.vscode/settings.json +0 -4
  15. package/.vscode/tasks.json +0 -42
  16. package/CHANGELOG.md +0 -101
  17. package/Dockerfile +0 -26
  18. package/angular.json +0 -114
  19. package/docs/_config.yml +0 -3
  20. package/docs/getting-started.md +0 -89
  21. package/docs/index.md +0 -9
  22. package/docs/installation.md +0 -46
  23. package/projects/dasar-ui/README.md +0 -64
  24. package/projects/dasar-ui/ng-package.json +0 -10
  25. package/projects/dasar-ui/package.json +0 -27
  26. package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.html +0 -9
  27. package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.scss +0 -352
  28. package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.spec.ts +0 -21
  29. package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.ts +0 -154
  30. package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.html +0 -1
  31. package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.scss +0 -69
  32. package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.spec.ts +0 -21
  33. package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.ts +0 -26
  34. package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.html +0 -158
  35. package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.scss +0 -371
  36. package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.spec.ts +0 -21
  37. package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.ts +0 -458
  38. package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.html +0 -80
  39. package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.scss +0 -184
  40. package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.spec.ts +0 -21
  41. package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.ts +0 -294
  42. package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.html +0 -42
  43. package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.scss +0 -38
  44. package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.ts +0 -205
  45. package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.html +0 -111
  46. package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.scss +0 -331
  47. package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.spec.ts +0 -93
  48. package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.ts +0 -527
  49. package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.html +0 -1
  50. package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.registry.ts +0 -5087
  51. package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.scss +0 -24
  52. package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.spec.ts +0 -21
  53. package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.ts +0 -97
  54. package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.html +0 -54
  55. package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.scss +0 -251
  56. package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.spec.ts +0 -21
  57. package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.ts +0 -319
  58. package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list-item.html +0 -17
  59. package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.html +0 -25
  60. package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.scss +0 -122
  61. package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.spec.ts +0 -21
  62. package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.ts +0 -166
  63. package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.html +0 -64
  64. package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.scss +0 -229
  65. package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.spec.ts +0 -93
  66. package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.ts +0 -278
  67. package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.html +0 -72
  68. package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.scss +0 -170
  69. package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.spec.ts +0 -267
  70. package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.ts +0 -305
  71. package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.html +0 -90
  72. package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.scss +0 -353
  73. package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.spec.ts +0 -21
  74. package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.ts +0 -337
  75. package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.html +0 -11
  76. package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.scss +0 -18
  77. package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.spec.ts +0 -112
  78. package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.ts +0 -87
  79. package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.html +0 -98
  80. package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.scss +0 -51
  81. package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.spec.ts +0 -21
  82. package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.ts +0 -99
  83. package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.css +0 -0
  84. package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.html +0 -1
  85. package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.spec.ts +0 -21
  86. package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.ts +0 -9
  87. package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.html +0 -150
  88. package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.scss +0 -272
  89. package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.ts +0 -228
  90. package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.css +0 -0
  91. package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.html +0 -1
  92. package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.spec.ts +0 -21
  93. package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.ts +0 -9
  94. package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.html +0 -189
  95. package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.scss +0 -387
  96. package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.spec.ts +0 -97
  97. package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.ts +0 -540
  98. package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.css +0 -0
  99. package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.html +0 -1
  100. package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.spec.ts +0 -21
  101. package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.ts +0 -9
  102. package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.html +0 -162
  103. package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.scss +0 -283
  104. package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.spec.ts +0 -21
  105. package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.ts +0 -380
  106. package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.html +0 -103
  107. package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.scss +0 -238
  108. package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.spec.ts +0 -570
  109. package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.ts +0 -349
  110. package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.html +0 -43
  111. package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.scss +0 -189
  112. package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.spec.ts +0 -21
  113. package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.ts +0 -139
  114. package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.spec.ts +0 -89
  115. package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +0 -294
  116. package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.css +0 -0
  117. package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.html +0 -1
  118. package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.spec.ts +0 -21
  119. package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.ts +0 -9
  120. package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.css +0 -0
  121. package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.html +0 -1
  122. package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.spec.ts +0 -21
  123. package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.ts +0 -9
  124. package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.css +0 -0
  125. package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.html +0 -1
  126. package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.spec.ts +0 -21
  127. package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.ts +0 -9
  128. package/projects/dasar-ui/src/lib/models/theme.model.ts +0 -730
  129. package/projects/dasar-ui/src/lib/models/type.model.ts +0 -11
  130. package/projects/dasar-ui/src/lib/services/theme.service.spec.ts +0 -130
  131. package/projects/dasar-ui/src/lib/services/theme.service.ts +0 -777
  132. package/projects/dasar-ui/src/lib/styles/theme.ts +0 -70
  133. package/projects/dasar-ui/src/lib/utils/common.ts +0 -156
  134. package/projects/dasar-ui/src/lib/utils/icon-size.spec.ts +0 -23
  135. package/projects/dasar-ui/src/lib/utils/icon-size.ts +0 -16
  136. package/projects/dasar-ui/src/lib/utils/panel-placement.spec.ts +0 -90
  137. package/projects/dasar-ui/src/lib/utils/panel-placement.ts +0 -53
  138. package/projects/dasar-ui/src/public-api.ts +0 -24
  139. package/projects/dasar-ui/tsconfig.lib.json +0 -21
  140. package/projects/dasar-ui/tsconfig.lib.prod.json +0 -11
  141. package/projects/dasar-ui/tsconfig.spec.json +0 -18
  142. package/projects/documentation/public/favicon.ico +0 -0
  143. package/projects/documentation/src/app/app.html +0 -78
  144. package/projects/documentation/src/app/app.spec.ts +0 -23
  145. package/projects/documentation/src/app/app.ts +0 -57
  146. package/projects/documentation/src/app/components/doc-customize-modal.component.ts +0 -368
  147. package/projects/documentation/src/app/components/doc-example.component.ts +0 -195
  148. package/projects/documentation/src/app/components/doc-markdown.component.ts +0 -154
  149. package/projects/documentation/src/app/config/app.config.server.ts +0 -10
  150. package/projects/documentation/src/app/config/app.config.ts +0 -17
  151. package/projects/documentation/src/app/layouts/doc.layout.ts +0 -249
  152. package/projects/documentation/src/app/pages/button/button.page.html +0 -65
  153. package/projects/documentation/src/app/pages/button/button.page.ts +0 -139
  154. package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.html +0 -7
  155. package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.ts +0 -10
  156. package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.html +0 -19
  157. package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.ts +0 -10
  158. package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.html +0 -9
  159. package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.ts +0 -10
  160. package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.html +0 -7
  161. package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.ts +0 -10
  162. package/projects/documentation/src/app/pages/button/examples/state/button-state.example.html +0 -10
  163. package/projects/documentation/src/app/pages/button/examples/state/button-state.example.ts +0 -10
  164. package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.html +0 -9
  165. package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.ts +0 -10
  166. package/projects/documentation/src/app/pages/calendar/calendar.page.html +0 -75
  167. package/projects/documentation/src/app/pages/calendar/calendar.page.ts +0 -165
  168. package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.html +0 -21
  169. package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.ts +0 -10
  170. package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.html +0 -11
  171. package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.ts +0 -13
  172. package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.html +0 -36
  173. package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.ts +0 -11
  174. package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.html +0 -10
  175. package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.ts +0 -12
  176. package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.html +0 -15
  177. package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.ts +0 -12
  178. package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.html +0 -34
  179. package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.ts +0 -14
  180. package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.html +0 -20
  181. package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.ts +0 -37
  182. package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.html +0 -16
  183. package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.ts +0 -10
  184. package/projects/documentation/src/app/pages/card/card.page.html +0 -75
  185. package/projects/documentation/src/app/pages/card/card.page.ts +0 -182
  186. package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.html +0 -13
  187. package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.ts +0 -10
  188. package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.html +0 -30
  189. package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.ts +0 -19
  190. package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.html +0 -173
  191. package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.ts +0 -10
  192. package/projects/documentation/src/app/pages/card/examples/media/card-media.example.html +0 -27
  193. package/projects/documentation/src/app/pages/card/examples/media/card-media.example.ts +0 -10
  194. package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.html +0 -13
  195. package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.ts +0 -10
  196. package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.html +0 -20
  197. package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.ts +0 -10
  198. package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.html +0 -11
  199. package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.ts +0 -10
  200. package/projects/documentation/src/app/pages/chip/chip.page.html +0 -55
  201. package/projects/documentation/src/app/pages/chip/chip.page.ts +0 -158
  202. package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.html +0 -7
  203. package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.ts +0 -10
  204. package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.html +0 -13
  205. package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.ts +0 -17
  206. package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.html +0 -9
  207. package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.ts +0 -10
  208. package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.html +0 -6
  209. package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.ts +0 -10
  210. package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.html +0 -8
  211. package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.ts +0 -10
  212. package/projects/documentation/src/app/pages/datepicker/datepicker.page.html +0 -75
  213. package/projects/documentation/src/app/pages/datepicker/datepicker.page.ts +0 -181
  214. package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.html +0 -29
  215. package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.ts +0 -10
  216. package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.html +0 -12
  217. package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.ts +0 -12
  218. package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.html +0 -23
  219. package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.ts +0 -17
  220. package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.html +0 -30
  221. package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.ts +0 -13
  222. package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.html +0 -24
  223. package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.ts +0 -10
  224. package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.html +0 -19
  225. package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.ts +0 -10
  226. package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.html +0 -28
  227. package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.ts +0 -12
  228. package/projects/documentation/src/app/pages/getting-started/getting-started.page.ts +0 -21
  229. package/projects/documentation/src/app/pages/icon/icon.page.html +0 -15
  230. package/projects/documentation/src/app/pages/icon/icon.page.ts +0 -60
  231. package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.html +0 -27
  232. package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.ts +0 -10
  233. package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.html +0 -13
  234. package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.ts +0 -13
  235. package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.html +0 -31
  236. package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.ts +0 -19
  237. package/projects/documentation/src/app/pages/input/examples/more/input-more.example.html +0 -68
  238. package/projects/documentation/src/app/pages/input/examples/more/input-more.example.ts +0 -18
  239. package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.html +0 -52
  240. package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.ts +0 -10
  241. package/projects/documentation/src/app/pages/input/examples/states/input-states.example.html +0 -29
  242. package/projects/documentation/src/app/pages/input/examples/states/input-states.example.ts +0 -10
  243. package/projects/documentation/src/app/pages/input/input.page.html +0 -65
  244. package/projects/documentation/src/app/pages/input/input.page.ts +0 -170
  245. package/projects/documentation/src/app/pages/installation/installation.page.ts +0 -18
  246. package/projects/documentation/src/app/pages/introduction/introduction.page.ts +0 -18
  247. package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.html +0 -29
  248. package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.ts +0 -33
  249. package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.html +0 -13
  250. package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.ts +0 -30
  251. package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.html +0 -5
  252. package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.ts +0 -12
  253. package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.html +0 -20
  254. package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.ts +0 -12
  255. package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.html +0 -11
  256. package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.ts +0 -19
  257. package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.html +0 -7
  258. package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.ts +0 -12
  259. package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.html +0 -20
  260. package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.ts +0 -22
  261. package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.html +0 -9
  262. package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.ts +0 -16
  263. package/projects/documentation/src/app/pages/list/examples/size/list-size.example.html +0 -20
  264. package/projects/documentation/src/app/pages/list/examples/size/list-size.example.ts +0 -12
  265. package/projects/documentation/src/app/pages/list/list.page.html +0 -95
  266. package/projects/documentation/src/app/pages/list/list.page.ts +0 -238
  267. package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.html +0 -5
  268. package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.ts +0 -17
  269. package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.html +0 -35
  270. package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.ts +0 -57
  271. package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.html +0 -12
  272. package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.ts +0 -16
  273. package/projects/documentation/src/app/pages/menu/menu.page.html +0 -35
  274. package/projects/documentation/src/app/pages/menu/menu.page.ts +0 -149
  275. package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.html +0 -18
  276. package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.ts +0 -21
  277. package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.html +0 -8
  278. package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.ts +0 -12
  279. package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.html +0 -44
  280. package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.ts +0 -14
  281. package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.html +0 -36
  282. package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.ts +0 -12
  283. package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.html +0 -29
  284. package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.ts +0 -14
  285. package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.html +0 -27
  286. package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.ts +0 -27
  287. package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.html +0 -14
  288. package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.ts +0 -13
  289. package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.html +0 -17
  290. package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.ts +0 -21
  291. package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.html +0 -30
  292. package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.ts +0 -12
  293. package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.html +0 -23
  294. package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.ts +0 -13
  295. package/projects/documentation/src/app/pages/modal/modal.page.html +0 -105
  296. package/projects/documentation/src/app/pages/modal/modal.page.ts +0 -266
  297. package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.html +0 -30
  298. package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.ts +0 -10
  299. package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.html +0 -12
  300. package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.ts +0 -13
  301. package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.html +0 -30
  302. package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.ts +0 -14
  303. package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.html +0 -49
  304. package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.ts +0 -10
  305. package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.html +0 -21
  306. package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.ts +0 -10
  307. package/projects/documentation/src/app/pages/number-input/number-input.page.html +0 -55
  308. package/projects/documentation/src/app/pages/number-input/number-input.page.ts +0 -142
  309. package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.html +0 -32
  310. package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.ts +0 -15
  311. package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.html +0 -13
  312. package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.ts +0 -20
  313. package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.html +0 -24
  314. package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.ts +0 -59
  315. package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.html +0 -20
  316. package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.ts +0 -20
  317. package/projects/documentation/src/app/pages/select/examples/search/select-search.example.html +0 -13
  318. package/projects/documentation/src/app/pages/select/examples/search/select-search.example.ts +0 -22
  319. package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.html +0 -44
  320. package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.ts +0 -15
  321. package/projects/documentation/src/app/pages/select/examples/states/select-states.example.html +0 -31
  322. package/projects/documentation/src/app/pages/select/examples/states/select-states.example.ts +0 -12
  323. package/projects/documentation/src/app/pages/select/select.page.html +0 -75
  324. package/projects/documentation/src/app/pages/select/select.page.ts +0 -195
  325. package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.html +0 -14
  326. package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.ts +0 -25
  327. package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.html +0 -12
  328. package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.ts +0 -21
  329. package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.html +0 -29
  330. package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.ts +0 -20
  331. package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.html +0 -39
  332. package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.ts +0 -21
  333. package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.html +0 -7
  334. package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.ts +0 -21
  335. package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.html +0 -3
  336. package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.ts +0 -41
  337. package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.html +0 -43
  338. package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.ts +0 -21
  339. package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.html +0 -36
  340. package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.ts +0 -34
  341. package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.html +0 -8
  342. package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.ts +0 -52
  343. package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.html +0 -53
  344. package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.ts +0 -50
  345. package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.html +0 -23
  346. package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.ts +0 -42
  347. package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.html +0 -20
  348. package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.ts +0 -21
  349. package/projects/documentation/src/app/pages/table/table.page.html +0 -125
  350. package/projects/documentation/src/app/pages/table/table.page.ts +0 -261
  351. package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.html +0 -13
  352. package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.ts +0 -27
  353. package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.html +0 -27
  354. package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.ts +0 -36
  355. package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.html +0 -5
  356. package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.ts +0 -20
  357. package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.html +0 -6
  358. package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.ts +0 -13
  359. package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.html +0 -13
  360. package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.ts +0 -13
  361. package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.html +0 -19
  362. package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.ts +0 -12
  363. package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.html +0 -16
  364. package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.ts +0 -23
  365. package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.html +0 -5
  366. package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.ts +0 -12
  367. package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.html +0 -6
  368. package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.ts +0 -12
  369. package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.html +0 -6
  370. package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.ts +0 -13
  371. package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.html +0 -20
  372. package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.ts +0 -30
  373. package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.html +0 -16
  374. package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.ts +0 -26
  375. package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.html +0 -22
  376. package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.ts +0 -26
  377. package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.html +0 -6
  378. package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.ts +0 -13
  379. package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.html +0 -25
  380. package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.ts +0 -10
  381. package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.html +0 -6
  382. package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.ts +0 -13
  383. package/projects/documentation/src/app/pages/tabs/tabs.page.html +0 -165
  384. package/projects/documentation/src/app/pages/tabs/tabs.page.ts +0 -347
  385. package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.html +0 -13
  386. package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.ts +0 -20
  387. package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.html +0 -8
  388. package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.scss +0 -4
  389. package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.ts +0 -11
  390. package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.html +0 -13
  391. package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.ts +0 -33
  392. package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.html +0 -6
  393. package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.ts +0 -20
  394. package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.html +0 -15
  395. package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.ts +0 -31
  396. package/projects/documentation/src/app/pages/theming/theming-component-config.page.ts +0 -52
  397. package/projects/documentation/src/app/pages/theming/theming-css-variables.page.ts +0 -71
  398. package/projects/documentation/src/app/pages/theming/theming-tokens.page.ts +0 -56
  399. package/projects/documentation/src/app/pages/theming/theming.data.ts +0 -947
  400. package/projects/documentation/src/app/pages/theming/theming.page.html +0 -56
  401. package/projects/documentation/src/app/pages/theming/theming.page.ts +0 -144
  402. package/projects/documentation/src/app/routes/app.routes.server.ts +0 -8
  403. package/projects/documentation/src/app/routes/app.routes.ts +0 -135
  404. package/projects/documentation/src/app/services/doc-customize.service.ts +0 -119
  405. package/projects/documentation/src/app/utils/highlight.pipe.ts +0 -43
  406. package/projects/documentation/src/index.html +0 -13
  407. package/projects/documentation/src/main.server.ts +0 -7
  408. package/projects/documentation/src/main.ts +0 -5
  409. package/projects/documentation/src/server.ts +0 -47
  410. package/projects/documentation/src/styles.scss +0 -19
  411. package/projects/documentation/tsconfig.app.json +0 -11
  412. package/projects/documentation/tsconfig.spec.json +0 -10
  413. package/tsconfig.json +0 -40
@@ -1,21 +0,0 @@
1
- import { DasarTableComponent, DasarTableColumn, DasarButtonComponent } from 'dasar-ui';
2
- import { Component } from '@angular/core';
3
-
4
- @Component({
5
- imports: [DasarTableComponent, DasarButtonComponent],
6
- templateUrl: './table-pagination.example.html',
7
- selector: 'app-table-pagination',
8
- standalone: true,
9
- })
10
- export class TablePaginationExample {
11
- protected columns: DasarTableColumn[] = [
12
- { key: 'id', label: 'ID' },
13
- { key: 'event', label: 'Event Name' },
14
- ];
15
-
16
- protected data = [
17
- { id: '1', event: 'System Boot' },
18
- { id: '2', event: 'User Login' },
19
- { id: '3', event: 'Data Sync' },
20
- ];
21
- }
@@ -1,125 +0,0 @@
1
- <docs-layout
2
- title="Table"
3
- description="A data table driven by column definitions, with sorting, pagination, expandable rows, loading and empty states, and cell, header and body slots for custom content."
4
- [apiData]="apiProps"
5
- >
6
- <doc-example-component
7
- [codes]="[
8
- { label: 'HTML', lang: 'html', value: badgeHtml },
9
- { label: 'TypeScript', lang: 'typescript', value: badgeTs },
10
- ]"
11
- title="Cell Slot: Status Badges"
12
- >
13
- <app-table-cell-badge></app-table-cell-badge>
14
- </doc-example-component>
15
-
16
- <doc-example-component
17
- [codes]="[
18
- { label: 'HTML', lang: 'html', value: profileHtml },
19
- { label: 'TypeScript', lang: 'typescript', value: profileTs },
20
- ]"
21
- title="Cell Slot: User Profiles"
22
- >
23
- <app-table-cell-profile></app-table-cell-profile>
24
- </doc-example-component>
25
-
26
- <doc-example-component
27
- [codes]="[
28
- { label: 'HTML', lang: 'html', value: actionsHtml },
29
- { label: 'TypeScript', lang: 'typescript', value: actionsTs },
30
- ]"
31
- title="Cell Slot: Action Buttons"
32
- >
33
- <app-table-cell-actions></app-table-cell-actions>
34
- </doc-example-component>
35
-
36
- <doc-example-component
37
- [codes]="[
38
- { label: 'HTML', lang: 'html', value: expandedHtml },
39
- { label: 'TypeScript', lang: 'typescript', value: expandedTs },
40
- ]"
41
- title="Expandable Rows"
42
- >
43
- <app-table-expanded></app-table-expanded>
44
- </doc-example-component>
45
-
46
- <doc-example-component
47
- [codes]="[
48
- { label: 'HTML', lang: 'html', value: emptyHtml },
49
- { label: 'TypeScript', lang: 'typescript', value: emptyTs },
50
- ]"
51
- title="Custom Empty State"
52
- >
53
- <app-table-empty></app-table-empty>
54
- </doc-example-component>
55
-
56
- <doc-example-component
57
- [codes]="[
58
- { label: 'HTML', lang: 'html', value: paginationHtml },
59
- { label: 'TypeScript', lang: 'typescript', value: paginationTs },
60
- ]"
61
- title="Custom Pagination Footer"
62
- >
63
- <app-table-pagination></app-table-pagination>
64
- </doc-example-component>
65
-
66
- <doc-example-component
67
- [codes]="[
68
- { label: 'HTML', lang: 'html', value: customSizesHtml },
69
- { label: 'TypeScript', lang: 'typescript', value: customSizesTs },
70
- ]"
71
- title="Custom Sizes"
72
- >
73
- <app-table-custom-sizes></app-table-custom-sizes>
74
- </doc-example-component>
75
-
76
- <doc-example-component
77
- [codes]="[
78
- { label: 'HTML', lang: 'html', value: customBodyHtml },
79
- { label: 'TypeScript', lang: 'typescript', value: customBodyTs },
80
- ]"
81
- title="Custom Body Layout"
82
- >
83
- <app-table-custom-body></app-table-custom-body>
84
- </doc-example-component>
85
-
86
- <doc-example-component
87
- [codes]="[
88
- { label: 'HTML', lang: 'html', value: heatmapHtml },
89
- { label: 'TypeScript', lang: 'typescript', value: heatmapTs },
90
- ]"
91
- title="Data Heatmap using Dynamic cellStyle"
92
- >
93
- <app-table-heatmap></app-table-heatmap>
94
- </doc-example-component>
95
-
96
- <doc-example-component
97
- [codes]="[
98
- { label: 'HTML', lang: 'html', value: dynamicStyleHtml },
99
- { label: 'TypeScript', lang: 'typescript', value: dynamicStyleTs },
100
- ]"
101
- title="Conditional Text & Status Styling"
102
- >
103
- <app-table-dynamic-style></app-table-dynamic-style>
104
- </doc-example-component>
105
-
106
- <doc-example-component
107
- [codes]="[
108
- { label: 'HTML', lang: 'html', value: inlineEditHtml },
109
- { label: 'TypeScript', lang: 'typescript', value: inlineEditTs },
110
- ]"
111
- title="Inline Editing with Cell Slots"
112
- >
113
- <app-table-inline-edit></app-table-inline-edit>
114
- </doc-example-component>
115
-
116
- <doc-example-component
117
- [codes]="[
118
- { label: 'HTML', lang: 'html', value: nestedHtml },
119
- { label: 'TypeScript', lang: 'typescript', value: nestedTs },
120
- ]"
121
- title="Nested Tables in Expanded Rows"
122
- >
123
- <app-table-nested></app-table-nested>
124
- </doc-example-component>
125
- </docs-layout>
@@ -1,261 +0,0 @@
1
- import { DocsLayoutComponent, DocApiProperty } from '../../layouts/doc.layout';
2
- import { DocExampleComponent } from '../../components/doc-example.component';
3
- import { CommonModule } from '@angular/common';
4
- import { Component } from '@angular/core';
5
-
6
- import { TableCustomSizesExample } from './examples/custom-sizes/table-custom-sizes.example';
7
- import { TableDynamicStyleExample } from './examples/dynamic-style/table-dynamic-style.example';
8
- import { TableCellProfileExample } from './examples/cell-profile/table-cell-profile.example';
9
- import { TableCellActionsExample } from './examples/cell-actions/table-cell-actions.example';
10
- import { TableCustomBodyExample } from './examples/custom-body/table-custom-body.example';
11
- import { TableInlineEditExample } from './examples/inline-edit/table-inline-edit.example';
12
- import { TablePaginationExample } from './examples/pagination/table-pagination.example';
13
- import { TableCellBadgeExample } from './examples/cell-badge/table-cell-badge.example';
14
- import { TableExpandedExample } from './examples/expanded/table-expanded.example';
15
- import { TableHeatmapExample } from './examples/heatmap/table-heatmap.example';
16
- import { TableNestedExample } from './examples/nested/table-nested.example';
17
- import { TableEmptyExample } from './examples/empty/table-empty.example';
18
-
19
- // @ts-ignore
20
- import profileHtml from './examples/cell-profile/table-cell-profile.example.html' with {
21
- loader: 'text',
22
- };
23
- // @ts-ignore
24
- import profileTs from './examples/cell-profile/table-cell-profile.example.ts' with {
25
- loader: 'text',
26
- };
27
- // @ts-ignore
28
- import actionsHtml from './examples/cell-actions/table-cell-actions.example.html' with {
29
- loader: 'text',
30
- };
31
- // @ts-ignore
32
- import paginationHtml from './examples/pagination/table-pagination.example.html' with {
33
- loader: 'text',
34
- };
35
- // @ts-ignore
36
- import paginationTs from './examples/pagination/table-pagination.example.ts' with {
37
- loader: 'text',
38
- };
39
- // @ts-ignore
40
- import customSizesHtml from './examples/custom-sizes/table-custom-sizes.example.html' with {
41
- loader: 'text',
42
- };
43
- // @ts-ignore
44
- import customSizesTs from './examples/custom-sizes/table-custom-sizes.example' with {
45
- loader: 'text',
46
- };
47
- // @ts-ignore
48
- import customBodyHtml from './examples/custom-body/table-custom-body.example.html' with {
49
- loader: 'text',
50
- };
51
- // @ts-ignore
52
- import customBodyTs from './examples/custom-body/table-custom-body.example.ts' with {
53
- loader: 'text',
54
- };
55
- // @ts-ignore
56
- import badgeHtml from './examples/cell-badge/table-cell-badge.example.html' with { loader: 'text' };
57
- // @ts-ignore
58
- import badgeTs from './examples/cell-badge/table-cell-badge.example.ts' with { loader: 'text' };
59
- // @ts-ignore
60
- import actionsTs from './examples/cell-actions/table-cell-actions.example.ts' with {
61
- loader: 'text',
62
- };
63
- // @ts-ignore
64
- import expandedHtml from './examples/expanded/table-expanded.example.html' with { loader: 'text' };
65
- // @ts-ignore
66
- import expandedTs from './examples/expanded/table-expanded.example.ts' with { loader: 'text' };
67
- // @ts-ignore
68
- import emptyHtml from './examples/empty/table-empty.example.html' with { loader: 'text' };
69
- // @ts-ignore
70
- import emptyTs from './examples/empty/table-empty.example.ts' with { loader: 'text' };
71
- // @ts-ignore
72
- import heatmapHtml from './examples/heatmap/table-heatmap.example.html' with { loader: 'text' };
73
- // @ts-ignore
74
- import heatmapTs from './examples/heatmap/table-heatmap.example.ts' with { loader: 'text' };
75
- // @ts-ignore
76
- import dynamicStyleHtml from './examples/dynamic-style/table-dynamic-style.example.html' with {
77
- loader: 'text',
78
- };
79
- // @ts-ignore
80
- import dynamicStyleTs from './examples/dynamic-style/table-dynamic-style.example.ts' with {
81
- loader: 'text',
82
- };
83
- // @ts-ignore
84
- import inlineEditHtml from './examples/inline-edit/table-inline-edit.example.html' with {
85
- loader: 'text',
86
- };
87
- // @ts-ignore
88
- import inlineEditTs from './examples/inline-edit/table-inline-edit.example.ts' with {
89
- loader: 'text',
90
- };
91
- // @ts-ignore
92
- import nestedHtml from './examples/nested/table-nested.example.html' with { loader: 'text' };
93
- // @ts-ignore
94
- import nestedTs from './examples/nested/table-nested.example.ts' with { loader: 'text' };
95
-
96
- @Component({
97
- imports: [
98
- CommonModule,
99
- DocsLayoutComponent,
100
- DocExampleComponent,
101
- TableHeatmapExample,
102
- TableDynamicStyleExample,
103
- TableInlineEditExample,
104
- TableNestedExample,
105
- TableCellBadgeExample,
106
- TableCellProfileExample,
107
- TableCellActionsExample,
108
- TableExpandedExample,
109
- TableEmptyExample,
110
- TablePaginationExample,
111
- TableCustomSizesExample,
112
- TableCustomBodyExample,
113
- ],
114
- templateUrl: './table.page.html',
115
- selector: 'app-table-page',
116
- standalone: true,
117
- })
118
- export class TableDocPage {
119
- protected badgeHtml = badgeHtml;
120
- protected badgeTs = badgeTs;
121
- protected profileHtml = profileHtml;
122
- protected profileTs = profileTs;
123
- protected actionsHtml = actionsHtml;
124
- protected actionsTs = actionsTs;
125
- protected expandedHtml = expandedHtml;
126
- protected expandedTs = expandedTs;
127
- protected emptyHtml = emptyHtml;
128
- protected emptyTs = emptyTs;
129
- protected paginationHtml = paginationHtml;
130
- protected paginationTs = paginationTs;
131
- protected customSizesHtml = customSizesHtml;
132
- protected customSizesTs = customSizesTs;
133
- protected customBodyHtml = customBodyHtml;
134
- protected customBodyTs = customBodyTs;
135
- protected heatmapHtml = heatmapHtml;
136
- protected heatmapTs = heatmapTs;
137
- protected dynamicStyleHtml = dynamicStyleHtml;
138
- protected dynamicStyleTs = dynamicStyleTs;
139
- protected inlineEditHtml = inlineEditHtml;
140
- protected inlineEditTs = inlineEditTs;
141
- protected nestedHtml = nestedHtml;
142
- protected nestedTs = nestedTs;
143
-
144
- protected readonly apiProps: DocApiProperty[] = [
145
- {
146
- name: 'data',
147
- type: 'any[]',
148
- defaultValue: '[]',
149
- description: 'Array of data objects to render.',
150
- },
151
- {
152
- name: 'columns',
153
- type: 'DasarTableColumn[]',
154
- defaultValue: '[]',
155
- description: 'Configuration array for table columns.',
156
- },
157
- {
158
- name: 'appearance',
159
- type: "'outline' | 'filled' | 'elevated' | 'borderless'",
160
- defaultValue: "'outline'",
161
- description: 'Visual style of the table container.',
162
- },
163
- {
164
- name: 'size',
165
- type: "'sm' | 'md' | 'lg'",
166
- defaultValue: "'md'",
167
- description: 'Typographic scale of the table contents.',
168
- },
169
- {
170
- name: 'spacing',
171
- type: "'compact' | 'normal' | 'relaxed'",
172
- defaultValue: "'normal'",
173
- description: 'Controls the cell padding.',
174
- },
175
- {
176
- name: 'expandable',
177
- type: 'boolean',
178
- defaultValue: 'false',
179
- description: 'Enables row expansion and renders the expand chevron column.',
180
- },
181
- {
182
- name: 'striped',
183
- type: 'boolean',
184
- defaultValue: 'false',
185
- description: 'Applies alternating background colors to rows.',
186
- },
187
- {
188
- name: 'hoverable',
189
- type: 'boolean',
190
- defaultValue: 'true',
191
- description: 'Applies hover effects to rows.',
192
- },
193
- {
194
- name: 'loading',
195
- type: 'boolean',
196
- defaultValue: 'false',
197
- description: 'Displays the loading state overlay.',
198
- },
199
- {
200
- name: 'fluid',
201
- type: 'boolean',
202
- defaultValue: 'true',
203
- description: 'Forces the table to 100% width.',
204
- },
205
- {
206
- name: 'sortKey',
207
- type: 'string | null',
208
- defaultValue: 'null',
209
- description: 'The currently active sorting column key.',
210
- },
211
- {
212
- name: 'sortDirection',
213
- type: "'asc' | 'desc' | null",
214
- defaultValue: 'null',
215
- description: 'The current sorting direction.',
216
- },
217
- {
218
- name: '(onSortChange)',
219
- type: 'EventEmitter<DasarTableSortEvent>',
220
- defaultValue: '-',
221
- description: 'Emitted when a sortable column header is clicked.',
222
- },
223
- {
224
- name: '(onRowClick) / (onRowDblClick)',
225
- type: 'EventEmitter<any>',
226
- defaultValue: '-',
227
- description: 'Mouse events on table rows.',
228
- },
229
- {
230
- name: '[cell-slot]="key"',
231
- type: 'TemplateRef',
232
- defaultValue: '-',
233
- description:
234
- 'Overrides rendering for a specific column. Provides let-val, let-row, and let-index.',
235
- },
236
- {
237
- name: '[expanded-slot]',
238
- type: 'TemplateRef',
239
- defaultValue: '-',
240
- description: 'Template rendered inside an expanded row. Provides let-row and let-index.',
241
- },
242
- {
243
- name: '[empty-slot]',
244
- type: 'Content Slot',
245
- defaultValue: '-',
246
- description: 'Completely replaces the default empty state UI.',
247
- },
248
- {
249
- name: '[pagination-slot]',
250
- type: 'Content Slot',
251
- defaultValue: '-',
252
- description: 'Injects pagination controls at the bottom of the table.',
253
- },
254
- {
255
- name: '[header-slot] / [body-slot]',
256
- type: 'Content Slot',
257
- defaultValue: '-',
258
- description: 'Completely replaces the thead or tbody elements for ultimate control.',
259
- },
260
- ];
261
- }
@@ -1,13 +0,0 @@
1
- <dasar-tabs appearance="outline" [active-index]="active()" (onTabsChange)="active.set($event)">
2
- @for (tab of tabs(); track tab) {
3
- <ng-template tab-item-slot>
4
- <span style="display: inline-flex; align-items: center; gap: 4px">
5
- {{ tab }}
6
- <dasar-icon name="x" [size]="12" (click)="closeTab(tab, $event)" />
7
- </span>
8
- </ng-template>
9
- }
10
- <p>Settings for {{ tabs()[active()] ?? 'nothing' }}.</p>
11
- </dasar-tabs>
12
-
13
- <dasar-button size="sm" variant="ghost" (click)="addTab()">Add tab</dasar-button>
@@ -1,27 +0,0 @@
1
- import { Component, signal } from '@angular/core';
2
- import { DasarTabsComponent, DasarIconComponent, DasarButtonComponent } from 'dasar-ui';
3
-
4
- @Component({
5
- templateUrl: './tabs-advanced-dynamic.example.html',
6
- selector: 'app-tabs-advanced-dynamic-example',
7
- imports: [DasarTabsComponent, DasarIconComponent, DasarButtonComponent],
8
- standalone: true,
9
- })
10
- export class TabsAdvancedDynamicExample {
11
- protected tabs = signal(['General', 'Profile', 'Billing', 'Team']);
12
- protected active = signal(0);
13
-
14
- protected addTab() {
15
- this.tabs.update((list) => [...list, `Tab ${list.length + 1}`]);
16
- this.active.set(this.tabs().length - 1);
17
- }
18
-
19
- protected closeTab(name: string, event: Event) {
20
- event.stopPropagation();
21
- const removedIndex = this.tabs().indexOf(name);
22
- this.tabs.update((list) => list.filter((tab) => tab !== name));
23
- if (removedIndex <= this.active()) {
24
- this.active.set(Math.max(0, this.active() - 1));
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- <dasar-card label="Workspace settings" size="sm" spacing="compact">
2
- <dasar-tabs
3
- size="sm"
4
- spacing="compact"
5
- [active-index]="active"
6
- (onTabsChange)="active = $event"
7
- [items]="['Profile', 'Access', 'Billing']"
8
- >
9
- @switch (active) {
10
- @case (0) {
11
- <div style="display: flex; gap: 12px; flex-wrap: wrap">
12
- <dasar-input label="Full name" [(ngModel)]="name" />
13
- </div>
14
- }
15
- @case (1) {
16
- <div style="display: flex; gap: 12px; flex-wrap: wrap">
17
- <dasar-select label="Role" [options]="roles" [(ngModel)]="role" />
18
- </div>
19
- }
20
- @case (2) {
21
- <div style="display: flex; gap: 12px; flex-wrap: wrap">
22
- <dasar-datepicker label="Renewal date" [(ngModel)]="renewal" clearable />
23
- </div>
24
- }
25
- }
26
- </dasar-tabs>
27
- </dasar-card>
@@ -1,36 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { FormsModule } from '@angular/forms';
3
- import {
4
- DasarCardComponent,
5
- DasarTabsComponent,
6
- DasarInputComponent,
7
- DasarSelectComponent,
8
- DasarDatepickerComponent,
9
- DasarSelectOption,
10
- } from 'dasar-ui';
11
-
12
- @Component({
13
- templateUrl: './tabs-advanced-form.example.html',
14
- selector: 'app-tabs-advanced-form-example',
15
- imports: [
16
- FormsModule,
17
- DasarCardComponent,
18
- DasarTabsComponent,
19
- DasarInputComponent,
20
- DasarSelectComponent,
21
- DasarDatepickerComponent,
22
- ],
23
- standalone: true,
24
- })
25
- export class TabsAdvancedFormExample {
26
- protected active = 0;
27
- protected name = 'Ada Lovelace';
28
- protected role = 'admin';
29
- protected renewal = '2026-12-31';
30
-
31
- protected roles: DasarSelectOption[] = [
32
- { label: 'Admin', value: 'admin' },
33
- { label: 'Editor', value: 'editor' },
34
- { label: 'Viewer', value: 'viewer' },
35
- ];
36
- }
@@ -1,5 +0,0 @@
1
- <dasar-theme-provider [componentConfig]="componentConfig">
2
- <dasar-tabs [items]="items">
3
- <p>These tabs inherit outline, sm and compact from the theme provider.</p>
4
- </dasar-tabs>
5
- </dasar-theme-provider>
@@ -1,20 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { DasarThemeProviderComponent, DasarTabsComponent, DasarComponentConfig } from 'dasar-ui';
3
-
4
- @Component({
5
- templateUrl: './tabs-advanced-theme.example.html',
6
- selector: 'app-tabs-advanced-theme-example',
7
- imports: [DasarThemeProviderComponent, DasarTabsComponent],
8
- standalone: true,
9
- })
10
- export class TabsAdvancedThemeExample {
11
- protected items = ['Design', 'Engineering', 'Product'];
12
-
13
- protected componentConfig: DasarComponentConfig = {
14
- tabs: {
15
- appearance: 'outline',
16
- size: 'sm',
17
- spacing: 'compact',
18
- },
19
- };
20
- }
@@ -1,6 +0,0 @@
1
- @for (appearance of appearances; track appearance) {
2
- <p style="font-size: 12px; margin: 8px 0 4px; color: gray">{{ appearance }}</p>
3
- <dasar-tabs [appearance]="appearance" [items]="items">
4
- <p>{{ appearance }} body content.</p>
5
- </dasar-tabs>
6
- }
@@ -1,13 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { DasarTabsComponent, DasarTabsAppearanceType } from 'dasar-ui';
3
-
4
- @Component({
5
- templateUrl: './tabs-appearance.example.html',
6
- selector: 'app-tabs-appearance-example',
7
- imports: [DasarTabsComponent],
8
- standalone: true,
9
- })
10
- export class TabsAppearanceExample {
11
- protected appearances: DasarTabsAppearanceType[] = ['solid', 'subtle', 'outline'];
12
- protected items = ['Home', 'Search', 'Profile'];
13
- }
@@ -1,13 +0,0 @@
1
- <dasar-tabs [items]="items" [active-index]="active()" (onTabsChange)="active.set($event)">
2
- @switch (active()) {
3
- @case (0) {
4
- <p>Overview body content.</p>
5
- }
6
- @case (1) {
7
- <p>Details body content.</p>
8
- }
9
- @case (2) {
10
- <p>Reviews body content.</p>
11
- }
12
- }
13
- </dasar-tabs>
@@ -1,13 +0,0 @@
1
- import { Component, signal } from '@angular/core';
2
- import { DasarTabsComponent } from 'dasar-ui';
3
-
4
- @Component({
5
- templateUrl: './tabs-basic.example.html',
6
- selector: 'app-tabs-basic-example',
7
- imports: [DasarTabsComponent],
8
- standalone: true,
9
- })
10
- export class TabsBasicExample {
11
- protected items = ['Overview', 'Details', 'Reviews'];
12
- protected active = signal(0);
13
- }
@@ -1,19 +0,0 @@
1
- <dasar-tabs
2
- [items]="items"
3
- container-class="demo-tabs-container"
4
- list-class="demo-tabs-list"
5
- content-class="demo-tabs-content"
6
- [container-style]="{
7
- border: '1px dashed var(--theme-border-strong-color)',
8
- padding: '4px',
9
- 'border-radius': 'var(--radius-lg)',
10
- }"
11
- [list-style]="{ 'justify-content': 'center' }"
12
- [content-style]="{ 'font-style': 'italic', 'text-align': 'center' }"
13
- >
14
- <p>The container is dashed, the list is centered and the body is italic.</p>
15
- </dasar-tabs>
16
-
17
- <dasar-tabs [items]="items" [container-style]="{ '--tabs-gap-normal': '20px' }">
18
- <p>The tab gap is widened to 20px through the --tabs-gap-normal variable.</p>
19
- </dasar-tabs>
@@ -1,12 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { DasarTabsComponent } from 'dasar-ui';
3
-
4
- @Component({
5
- templateUrl: './tabs-custom-style.example.html',
6
- selector: 'app-tabs-custom-style-example',
7
- imports: [DasarTabsComponent],
8
- standalone: true,
9
- })
10
- export class TabsCustomStyleExample {
11
- protected items = ['General', 'Advanced', 'Danger Zone'];
12
- }
@@ -1,16 +0,0 @@
1
- <dasar-tabs
2
- [items]="items"
3
- [active-index]="active()"
4
- (onTabsClick)="onClick($event)"
5
- (onTabsChange)="onChange($event)"
6
- >
7
- <p>Body of tab {{ active() + 1 }}.</p>
8
- </dasar-tabs>
9
-
10
- <ul style="margin: 12px 0 0; padding-left: 18px; font-family: monospace; font-size: 12px">
11
- @for (event of events(); track $index) {
12
- <li>{{ event }}</li>
13
- } @empty {
14
- <li>Click a tab to log its events.</li>
15
- }
16
- </ul>
@@ -1,23 +0,0 @@
1
- import { Component, signal } from '@angular/core';
2
- import { DasarTabsComponent } from 'dasar-ui';
3
-
4
- @Component({
5
- templateUrl: './tabs-events.example.html',
6
- selector: 'app-tabs-events-example',
7
- imports: [DasarTabsComponent],
8
- standalone: true,
9
- })
10
- export class TabsEventsExample {
11
- protected items = ['First', 'Second', 'Third'];
12
- protected active = signal(0);
13
- protected events = signal<string[]>([]);
14
-
15
- protected onClick(index: number) {
16
- this.events.update((list) => [...list, `onTabsClick(${index})`]);
17
- }
18
-
19
- protected onChange(index: number) {
20
- this.active.set(index);
21
- this.events.update((list) => [...list, `onTabsChange(${index})`]);
22
- }
23
- }