@dataengineeringformachinelearning/viking-ui 1.0.2 → 3.0.0-alpha.4

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 (366) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +217 -38
  3. package/dist/core/brand-icons.d.ts +29 -0
  4. package/dist/core/icons.d.ts +132 -0
  5. package/dist/core/integration-brand-icons.d.ts +18 -0
  6. package/dist/core/lucide-paths.generated.d.ts +90 -0
  7. package/dist/core/types.d.ts +56 -0
  8. package/dist/core/uid.d.ts +2 -0
  9. package/dist/deml-components.css +1122 -0
  10. package/dist/design-tokens.css +688 -0
  11. package/dist/elements/button/viking-button.d.ts +14 -0
  12. package/dist/elements/card/viking-card.d.ts +8 -0
  13. package/dist/elements/core/dom.d.ts +4 -0
  14. package/dist/elements/core/styles.d.ts +2 -0
  15. package/dist/elements/modal/viking-modal.d.ts +15 -0
  16. package/dist/fonts/inter/InterVariable-Italic.woff2 +0 -0
  17. package/dist/fonts/inter/InterVariable.woff2 +0 -0
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +4051 -0
  20. package/dist/lib/accordion/accordion.d.ts +19 -0
  21. package/dist/lib/app-header/app-header.d.ts +8 -0
  22. package/dist/lib/app-sidebar/app-sidebar.d.ts +10 -0
  23. package/dist/lib/auth-panel/auth-panel.d.ts +13 -0
  24. package/dist/lib/autocomplete/autocomplete.d.ts +25 -0
  25. package/dist/lib/avatar/avatar.d.ts +14 -0
  26. package/dist/lib/badge/badge.d.ts +16 -0
  27. package/dist/lib/bar/bar.d.ts +4 -0
  28. package/dist/lib/brand/brand.d.ts +8 -0
  29. package/dist/lib/breadcrumbs/breadcrumbs.d.ts +10 -0
  30. package/dist/lib/button/button-group.d.ts +6 -0
  31. package/dist/lib/button/button.d.ts +25 -0
  32. package/dist/lib/calendar/calendar.d.ts +22 -0
  33. package/dist/lib/callout/callout.d.ts +14 -0
  34. package/dist/lib/card/card-title.d.ts +12 -0
  35. package/dist/lib/card/card.d.ts +19 -0
  36. package/dist/lib/carousel/carousel.d.ts +13 -0
  37. package/dist/lib/chart/chart-zoom.d.ts +14 -0
  38. package/dist/lib/chart/chart.d.ts +119 -0
  39. package/dist/lib/chart-card-header/chart-card-header.d.ts +10 -0
  40. package/dist/lib/chart-empty-state/chart-empty-state.d.ts +13 -0
  41. package/dist/lib/chart-panel/chart-panel.d.ts +10 -0
  42. package/dist/lib/checkbox/checkbox.d.ts +13 -0
  43. package/dist/lib/color-picker/color-picker.d.ts +16 -0
  44. package/dist/lib/command/command.d.ts +23 -0
  45. package/dist/lib/composer/composer.d.ts +15 -0
  46. package/dist/lib/confirm-dialog/confirm-dialog.d.ts +18 -0
  47. package/dist/lib/confirm-dialog/dialog.service.d.ts +28 -0
  48. package/dist/lib/context/context.d.ts +17 -0
  49. package/dist/lib/core/brand-icons.d.ts +29 -0
  50. package/dist/lib/core/cva.d.ts +15 -0
  51. package/dist/lib/core/icons.d.ts +132 -0
  52. package/dist/lib/core/integration-brand-icons.d.ts +18 -0
  53. package/dist/lib/core/lucide-paths.generated.d.ts +90 -0
  54. package/dist/lib/date-picker/date-picker.d.ts +18 -0
  55. package/dist/lib/dropdown/dropdown.d.ts +29 -0
  56. package/dist/lib/editor/editor.d.ts +26 -0
  57. package/dist/lib/empty-state/empty-state.d.ts +9 -0
  58. package/dist/lib/fab/fab.d.ts +9 -0
  59. package/dist/lib/field/field.d.ts +14 -0
  60. package/dist/lib/file-upload/file-upload.d.ts +19 -0
  61. package/dist/lib/footer/footer.d.ts +6 -0
  62. package/dist/lib/form-section/form-section.d.ts +15 -0
  63. package/dist/lib/gauge-arc/gauge-arc.d.ts +8 -0
  64. package/dist/lib/hud-panel/hud-panel.d.ts +5 -0
  65. package/dist/lib/icon/icon.d.ts +44 -0
  66. package/dist/lib/icon-badge/icon-badge.d.ts +14 -0
  67. package/dist/lib/icon-heading/icon-heading.d.ts +9 -0
  68. package/dist/lib/icon-text/icon-text.d.ts +12 -0
  69. package/dist/lib/input/input.d.ts +23 -0
  70. package/dist/lib/kanban/kanban.d.ts +16 -0
  71. package/dist/lib/kbd/kbd.d.ts +5 -0
  72. package/dist/lib/label/label.d.ts +7 -0
  73. package/dist/lib/loading-overlay/loading-overlay.d.ts +10 -0
  74. package/dist/lib/menubar/menubar.d.ts +10 -0
  75. package/dist/lib/metric-card/metric-card.d.ts +9 -0
  76. package/dist/lib/modal/modal.d.ts +13 -0
  77. package/dist/lib/native-select/native-select.d.ts +17 -0
  78. package/dist/lib/navbar/navbar.d.ts +13 -0
  79. package/dist/lib/navigation-menu/navigation-menu.d.ts +13 -0
  80. package/dist/lib/otp-input/otp-input.d.ts +23 -0
  81. package/dist/lib/page-back-link/page-back-link.d.ts +11 -0
  82. package/dist/lib/page-header/page-header.d.ts +15 -0
  83. package/dist/lib/pagination/pagination.d.ts +10 -0
  84. package/dist/lib/pillbox/pillbox.d.ts +15 -0
  85. package/dist/lib/popover/popover.d.ts +15 -0
  86. package/dist/lib/profile/profile.d.ts +11 -0
  87. package/dist/lib/progress/progress.d.ts +12 -0
  88. package/dist/lib/radio/radio.d.ts +16 -0
  89. package/dist/lib/ring-gauge/ring-gauge.d.ts +8 -0
  90. package/dist/lib/scroll-area/scroll-area.d.ts +7 -0
  91. package/dist/lib/search-palette/search-palette.d.ts +16 -0
  92. package/dist/lib/select/select.d.ts +26 -0
  93. package/dist/lib/separator/separator.d.ts +8 -0
  94. package/dist/lib/sheet/sheet.d.ts +13 -0
  95. package/dist/lib/sidebar-nav/sidebar-nav.d.ts +46 -0
  96. package/dist/lib/site-drakkar/site-drakkar.config.d.ts +50 -0
  97. package/dist/lib/site-drakkar/site-footer.d.ts +18 -0
  98. package/dist/lib/site-drakkar/site-navbar.d.ts +25 -0
  99. package/dist/lib/site-drakkar/suite-search-items.d.ts +17 -0
  100. package/dist/lib/skeleton/skeleton.d.ts +8 -0
  101. package/dist/lib/slider/slider.d.ts +17 -0
  102. package/dist/lib/spinner/spinner.d.ts +7 -0
  103. package/dist/lib/status-metric-row/status-metric-row.d.ts +9 -0
  104. package/dist/lib/suite-search-palette/suite-search-palette.d.ts +25 -0
  105. package/dist/lib/switch/switch.d.ts +12 -0
  106. package/dist/lib/table/table.d.ts +10 -0
  107. package/dist/lib/tabs/tab-panel.d.ts +12 -0
  108. package/dist/lib/tabs/tab.d.ts +14 -0
  109. package/dist/lib/tabs/tabs.d.ts +10 -0
  110. package/dist/lib/textarea/textarea.d.ts +16 -0
  111. package/dist/lib/theme-toggle/theme-toggle.d.ts +9 -0
  112. package/dist/lib/time-picker/time-picker.d.ts +21 -0
  113. package/dist/lib/timeline/timeline.d.ts +14 -0
  114. package/dist/lib/toast/toast.d.ts +21 -0
  115. package/dist/lib/toggle/toggle-group.d.ts +9 -0
  116. package/dist/lib/toggle/toggle.d.ts +15 -0
  117. package/dist/lib/tooltip/tooltip.d.ts +20 -0
  118. package/dist/lib/typography/heading.d.ts +9 -0
  119. package/dist/lib/typography/text.d.ts +11 -0
  120. package/dist/lib/uptime-bar/uptime-bar.d.ts +6 -0
  121. package/dist/lib/verification-code-field/verification-code-field.d.ts +19 -0
  122. package/dist/lib/whitepaper-cta/whitepaper-cta.d.ts +15 -0
  123. package/dist/lib/wizard/wizard.d.ts +13 -0
  124. package/dist/public-api.d.ts +109 -0
  125. package/dist/tokens/series-presets.d.ts +4 -0
  126. package/dist/viking-components.css +1837 -0
  127. package/dist/viking-tokens.json +318 -0
  128. package/dist/viking-ui-elements.js +1750 -0
  129. package/dist/viking-ui.css +1 -0
  130. package/dist/web/badge/viking-badge-wc.d.ts +28 -0
  131. package/dist/web/button/viking-button-wc.d.ts +28 -0
  132. package/dist/web/callout/viking-callout-wc.d.ts +27 -0
  133. package/dist/web/card/viking-card-wc.d.ts +29 -0
  134. package/dist/web/core/base.d.ts +12 -0
  135. package/dist/web/core/dom.d.ts +11 -0
  136. package/dist/web/core/icons-inline.d.ts +7 -0
  137. package/dist/web/core/styles.d.ts +12 -0
  138. package/dist/web/core/types.d.ts +10 -0
  139. package/dist/web/field/viking-field-wc.d.ts +32 -0
  140. package/dist/web/index.d.ts +15 -0
  141. package/dist/web/input/viking-input-wc.d.ts +32 -0
  142. package/dist/web/modal/viking-modal-wc.d.ts +50 -0
  143. package/dist/web/search-palette/viking-search-palette-wc.d.ts +64 -0
  144. package/dist/web/select/viking-select-wc.d.ts +48 -0
  145. package/dist/web/suite-header/viking-suite-header-wc.d.ts +36 -0
  146. package/dist/web/suite-search-palette/viking-suite-search-palette-wc.d.ts +39 -0
  147. package/dist/web/theme-toggle/viking-theme-toggle-wc.d.ts +19 -0
  148. package/dist/web/types.d.ts +40 -0
  149. package/dist/web-components/index.d.ts +1 -0
  150. package/dist/web-components.js +1750 -0
  151. package/dist/widget.js +1182 -0
  152. package/package.json +89 -30
  153. package/src/assets/drakkar-favicon.svg +17 -0
  154. package/src/assets/fonts/inter/InterVariable-Italic.woff2 +0 -0
  155. package/src/assets/fonts/inter/InterVariable.woff2 +0 -0
  156. package/src/core/brand/deml-lockup.svg +5 -0
  157. package/src/core/brand/deml-mark-compact.svg +4 -0
  158. package/src/core/brand/deml-mark-filled.svg +3 -0
  159. package/src/core/brand/deml-mark-outline.svg +4 -0
  160. package/src/core/brand-icons.ts +62 -0
  161. package/src/core/icons.spec.ts +52 -0
  162. package/src/core/icons.ts +206 -0
  163. package/src/core/integration-brand-icons.ts +77 -0
  164. package/src/core/lucide-paths.generated.ts +130 -0
  165. package/src/core/types.ts +85 -0
  166. package/src/core/uid.ts +7 -0
  167. package/src/elements/button/viking-button.ts +201 -0
  168. package/src/elements/card/viking-card.ts +60 -0
  169. package/src/elements/core/dom.ts +33 -0
  170. package/src/elements/core/styles.ts +28 -0
  171. package/src/elements/modal/viking-modal.ts +154 -0
  172. package/src/index.ts +1 -0
  173. package/src/lib/accordion/accordion.ts +126 -0
  174. package/src/lib/app-header/app-header.scss +274 -0
  175. package/src/lib/app-header/app-header.ts +43 -0
  176. package/src/lib/app-sidebar/app-sidebar.scss +415 -0
  177. package/src/lib/app-sidebar/app-sidebar.ts +29 -0
  178. package/src/lib/auth-panel/auth-panel.spec.ts +132 -0
  179. package/src/lib/auth-panel/auth-panel.ts +228 -0
  180. package/src/lib/autocomplete/autocomplete.ts +223 -0
  181. package/src/lib/avatar/avatar.ts +126 -0
  182. package/src/lib/badge/badge.ts +182 -0
  183. package/src/lib/bar/bar.ts +31 -0
  184. package/src/lib/brand/brand.ts +60 -0
  185. package/src/lib/breadcrumbs/breadcrumbs.ts +81 -0
  186. package/src/lib/button/button-group.ts +40 -0
  187. package/src/lib/button/button.scss +96 -0
  188. package/src/lib/button/button.ts +98 -0
  189. package/src/lib/calendar/calendar.ts +253 -0
  190. package/src/lib/callout/callout.ts +211 -0
  191. package/src/lib/card/card-title.spec.ts +27 -0
  192. package/src/lib/card/card-title.ts +50 -0
  193. package/src/lib/card/card.ts +170 -0
  194. package/src/lib/carousel/carousel.ts +206 -0
  195. package/src/lib/chart/chart-zoom.spec.ts +65 -0
  196. package/src/lib/chart/chart-zoom.ts +71 -0
  197. package/src/lib/chart/chart.ts +1257 -0
  198. package/src/lib/chart-card-header/chart-card-header.ts +80 -0
  199. package/src/lib/chart-empty-state/chart-empty-state.ts +146 -0
  200. package/src/lib/chart-panel/chart-panel.ts +133 -0
  201. package/src/lib/checkbox/checkbox.ts +139 -0
  202. package/src/lib/color-picker/color-picker.ts +148 -0
  203. package/src/lib/command/command.ts +260 -0
  204. package/src/lib/composer/composer.ts +180 -0
  205. package/src/lib/confirm-dialog/confirm-dialog.ts +163 -0
  206. package/src/lib/confirm-dialog/dialog.service.ts +79 -0
  207. package/src/lib/context/context.ts +75 -0
  208. package/src/lib/core/brand-icons.ts +62 -0
  209. package/src/lib/core/cva.ts +33 -0
  210. package/src/lib/core/icons.ts +206 -0
  211. package/src/lib/core/integration-brand-icons.ts +77 -0
  212. package/src/lib/core/lucide-paths.generated.ts +130 -0
  213. package/src/lib/date-picker/date-picker.ts +139 -0
  214. package/src/lib/dropdown/dropdown.ts +188 -0
  215. package/src/lib/editor/editor.ts +170 -0
  216. package/src/lib/empty-state/empty-state.ts +100 -0
  217. package/src/lib/fab/fab.ts +76 -0
  218. package/src/lib/field/field.ts +111 -0
  219. package/src/lib/file-upload/file-upload.ts +208 -0
  220. package/src/lib/footer/footer.scss +155 -0
  221. package/src/lib/footer/footer.ts +28 -0
  222. package/src/lib/form-section/form-section.ts +200 -0
  223. package/src/lib/forms.spec.ts +92 -0
  224. package/src/lib/gauge-arc/gauge-arc.ts +85 -0
  225. package/src/lib/hud-panel/hud-panel.ts +27 -0
  226. package/src/lib/icon/icon.ts +284 -0
  227. package/src/lib/icon-badge/icon-badge.ts +87 -0
  228. package/src/lib/icon-heading/icon-heading.spec.ts +32 -0
  229. package/src/lib/icon-heading/icon-heading.ts +38 -0
  230. package/src/lib/icon-text/icon-text.ts +120 -0
  231. package/src/lib/input/input.ts +119 -0
  232. package/src/lib/kanban/kanban.ts +211 -0
  233. package/src/lib/kbd/kbd.ts +32 -0
  234. package/src/lib/label/label.ts +39 -0
  235. package/src/lib/loading-overlay/loading-overlay.ts +80 -0
  236. package/src/lib/menubar/menubar.ts +77 -0
  237. package/src/lib/metric-card/metric-card.ts +33 -0
  238. package/src/lib/modal/modal.ts +207 -0
  239. package/src/lib/native-select/native-select.ts +124 -0
  240. package/src/lib/navbar/navbar.ts +124 -0
  241. package/src/lib/navigation-menu/navigation-menu.ts +116 -0
  242. package/src/lib/otp-input/otp-input.ts +164 -0
  243. package/src/lib/page-back-link/page-back-link.ts +74 -0
  244. package/src/lib/page-header/page-header.ts +70 -0
  245. package/src/lib/pagination/pagination.ts +157 -0
  246. package/src/lib/pillbox/pillbox.ts +157 -0
  247. package/src/lib/popover/popover.ts +92 -0
  248. package/src/lib/profile/profile.ts +73 -0
  249. package/src/lib/progress/progress.ts +123 -0
  250. package/src/lib/radio/radio.ts +132 -0
  251. package/src/lib/ring-gauge/ring-gauge.ts +75 -0
  252. package/src/lib/scroll-area/scroll-area.ts +57 -0
  253. package/src/lib/search-palette/search-palette.scss +288 -0
  254. package/src/lib/search-palette/search-palette.ts +114 -0
  255. package/src/lib/select/select.ts +292 -0
  256. package/src/lib/separator/separator.ts +59 -0
  257. package/src/lib/sheet/sheet.ts +192 -0
  258. package/src/lib/sidebar-nav/sidebar-nav.scss +218 -0
  259. package/src/lib/sidebar-nav/sidebar-nav.ts +158 -0
  260. package/src/lib/site-drakkar/site-drakkar.config.ts +295 -0
  261. package/src/lib/site-drakkar/site-footer.ts +129 -0
  262. package/src/lib/site-drakkar/site-navbar.scss +2 -0
  263. package/src/lib/site-drakkar/site-navbar.ts +267 -0
  264. package/src/lib/site-drakkar/suite-search-items.spec.ts +61 -0
  265. package/src/lib/site-drakkar/suite-search-items.ts +246 -0
  266. package/src/lib/skeleton/skeleton.ts +51 -0
  267. package/src/lib/slider/slider.ts +133 -0
  268. package/src/lib/spinner/spinner.ts +75 -0
  269. package/src/lib/status-metric-row/status-metric-row.ts +74 -0
  270. package/src/lib/suite-search-palette/suite-search-palette.ts +95 -0
  271. package/src/lib/switch/switch.ts +131 -0
  272. package/src/lib/table/table.ts +137 -0
  273. package/src/lib/tabs/tab-panel.ts +61 -0
  274. package/src/lib/tabs/tab.ts +107 -0
  275. package/src/lib/tabs/tabs.ts +109 -0
  276. package/src/lib/textarea/textarea.ts +103 -0
  277. package/src/lib/theme-toggle/theme-toggle.spec.ts +40 -0
  278. package/src/lib/theme-toggle/theme-toggle.ts +39 -0
  279. package/src/lib/time-picker/time-picker.ts +197 -0
  280. package/src/lib/timeline/timeline.ts +152 -0
  281. package/src/lib/toast/toast.ts +196 -0
  282. package/src/lib/toggle/toggle-group.ts +60 -0
  283. package/src/lib/toggle/toggle.ts +101 -0
  284. package/src/lib/tooltip/tooltip.ts +119 -0
  285. package/src/lib/typography/heading.ts +52 -0
  286. package/src/lib/typography/text.ts +51 -0
  287. package/src/lib/uptime-bar/uptime-bar.ts +55 -0
  288. package/src/lib/verification-code-field/verification-code-field.ts +149 -0
  289. package/src/lib/whitepaper-cta/whitepaper-cta.scss +130 -0
  290. package/src/lib/whitepaper-cta/whitepaper-cta.ts +78 -0
  291. package/src/lib/wizard/wizard.ts +80 -0
  292. package/src/public-api.ts +172 -0
  293. package/src/styles/_buttons.scss +301 -0
  294. package/src/styles/_component-primitives.scss +183 -0
  295. package/src/styles/_drakkar-buttons.scss +85 -0
  296. package/src/styles/_fonts.scss +22 -0
  297. package/src/styles/_forms.scss +66 -0
  298. package/src/styles/_input.scss +106 -0
  299. package/src/styles/_layout-enforcement.scss +166 -0
  300. package/src/styles/_layout-rhythm.scss +158 -0
  301. package/src/styles/_legacy-aliases.scss +212 -0
  302. package/src/styles/_series-colors.scss +24 -0
  303. package/src/styles/_static-primitives.scss +857 -0
  304. package/src/styles/_typography.scss +87 -0
  305. package/src/styles/_variables.scss +527 -0
  306. package/src/styles/components/a11y.scss +90 -0
  307. package/src/styles/components/badges.scss +102 -0
  308. package/src/styles/components/extracted-utilities.scss +459 -0
  309. package/src/styles/components/footer.scss +155 -0
  310. package/src/styles/components/icon-heading.scss +47 -0
  311. package/src/styles/components/icon-inline.scss +78 -0
  312. package/src/styles/components/layout.scss +59 -0
  313. package/src/styles/components/utilities.scss +131 -0
  314. package/src/styles/components/viking-inspired.scss +204 -0
  315. package/src/styles/components/whitepaper-cta.scss +130 -0
  316. package/src/styles/components-bundle.scss +9 -0
  317. package/src/styles/components.scss +175 -0
  318. package/src/styles/deml-components.scss +10 -0
  319. package/src/styles/index.scss +8 -0
  320. package/src/styles/layout-shell.scss +39 -11
  321. package/src/styles/page-shell.scss +663 -33
  322. package/src/styles/static-navbar.scss +862 -146
  323. package/src/styles/surfaces/backend.scss +142 -0
  324. package/src/styles/surfaces/docs-global.scss +73 -0
  325. package/src/styles/surfaces/docs-shell.scss +412 -0
  326. package/src/styles/surfaces/docs-showcase.scss +1051 -0
  327. package/src/styles/surfaces/marketing-cta.scss +62 -0
  328. package/src/styles/surfaces/marketing-docs-bento.scss +67 -0
  329. package/src/styles/surfaces/marketing-global.scss +748 -0
  330. package/src/styles/surfaces/marketing-landing.scss +1260 -0
  331. package/src/styles/surfaces/marketing-publication.scss +535 -0
  332. package/src/styles/surfaces/marketing-theme.scss +14 -0
  333. package/src/styles/surfaces/swagger-ui.scss +921 -0
  334. package/src/styles/tokens-export.scss +18 -0
  335. package/src/styles/tokens.scss +5 -0
  336. package/src/styles/viking-ui-bundle.scss +20 -2
  337. package/src/styles/viking-ui.scss +213 -51
  338. package/src/tokens/series-presets.ts +15 -0
  339. package/src/tokens/tailwind.preset.js +209 -0
  340. package/src/tokens/viking-tokens.json +318 -0
  341. package/src/viking-ui.spec.ts +416 -0
  342. package/src/web/badge/viking-badge-wc.ts +116 -0
  343. package/src/web/button/viking-button-wc.ts +165 -0
  344. package/src/web/callout/viking-callout-wc.ts +105 -0
  345. package/src/web/card/viking-card-wc.ts +66 -0
  346. package/src/web/core/base.ts +56 -0
  347. package/src/web/core/dom.ts +53 -0
  348. package/src/web/core/icons-inline.ts +44 -0
  349. package/src/web/core/styles.ts +1138 -0
  350. package/src/web/core/types.ts +19 -0
  351. package/src/web/field/viking-field-wc.ts +154 -0
  352. package/src/web/index.ts +73 -0
  353. package/src/web/input/viking-input-wc.ts +211 -0
  354. package/src/web/modal/viking-modal-wc.ts +187 -0
  355. package/src/web/search-palette/viking-search-palette-wc.ts +494 -0
  356. package/src/web/select/viking-select-wc.ts +218 -0
  357. package/src/web/suite-header/viking-suite-header-wc.ts +714 -0
  358. package/src/web/suite-search-palette/viking-suite-search-palette-wc.ts +234 -0
  359. package/src/web/theme-toggle/viking-theme-toggle-wc.ts +139 -0
  360. package/src/web/types.ts +37 -0
  361. package/src/web/web-components.spec.ts +297 -0
  362. package/src/web-components/index.ts +1 -0
  363. package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +0 -6114
  364. package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +0 -1
  365. package/types/dataengineeringformachinelearning-viking-ui.d.ts +0 -1397
  366. package/viking.manifest.json +0 -238
@@ -0,0 +1,295 @@
1
+ import { VikingIconName } from "../core/icons";
2
+
3
+ /**
4
+ * Drakkar — the Viking longship that carries the site shell (navbar, footer, nav links)
5
+ * across marketing, app, and backend surfaces.
6
+ */
7
+
8
+ /** Which DEML surface the Drakkar shell is rendering on (navbar + footer). */
9
+ export type SiteDrakkarContext = "app" | "marketing" | "backend" | "docs";
10
+
11
+ export interface SiteUrls {
12
+ app: string;
13
+ marketing: string;
14
+ backend: string;
15
+ }
16
+
17
+ export interface SiteNavLink {
18
+ id: string;
19
+ label: string;
20
+ icon: VikingIconName;
21
+ appHref: string;
22
+ marketingHref: string;
23
+ external?: boolean;
24
+ requireAuth?: boolean;
25
+ /** Routes served by deml.app — resolved to absolute app URLs off-app. */
26
+ platform?: boolean;
27
+ }
28
+
29
+ export interface SiteFooterLink {
30
+ label: string;
31
+ appHref: string;
32
+ marketingHref: string;
33
+ external?: boolean;
34
+ action?: "cookie-settings" | "bug-report";
35
+ /** Routes served by deml.app — resolved to absolute app URLs off-app. */
36
+ platform?: boolean;
37
+ }
38
+
39
+ export interface SiteFooterColumn {
40
+ title: string;
41
+ links: SiteFooterLink[];
42
+ }
43
+
44
+ /** Primary navbar links (desktop + mobile). Shown on every surface. */
45
+ export const SITE_NAV_LINKS: readonly SiteNavLink[] = [
46
+ {
47
+ id: "explore",
48
+ label: "Explore",
49
+ icon: "globe",
50
+ appHref: "/explore",
51
+ marketingHref: "/explore",
52
+ platform: true,
53
+ },
54
+ {
55
+ id: "documentation",
56
+ label: "Documentation",
57
+ icon: "file",
58
+ appHref: "https://dataengineeringformachinelearning.com/documentation/",
59
+ marketingHref: "/documentation",
60
+ },
61
+ {
62
+ id: "dashboard",
63
+ label: "Dashboard",
64
+ icon: "home",
65
+ appHref: "/dashboard",
66
+ marketingHref: "/dashboard",
67
+ requireAuth: true,
68
+ platform: true,
69
+ },
70
+ {
71
+ id: "sites",
72
+ label: "Sites",
73
+ icon: "building",
74
+ appHref: "/settings",
75
+ marketingHref: "/settings",
76
+ requireAuth: true,
77
+ platform: true,
78
+ },
79
+ {
80
+ id: "account",
81
+ label: "Account",
82
+ icon: "user",
83
+ appHref: "/account",
84
+ marketingHref: "/account",
85
+ requireAuth: true,
86
+ platform: true,
87
+ },
88
+ ] as const;
89
+
90
+ export const SITE_FOOTER_COLUMNS: readonly SiteFooterColumn[] = [
91
+ {
92
+ title: "Platform",
93
+ links: [
94
+ {
95
+ label: "Explore",
96
+ appHref: "/explore",
97
+ marketingHref: "/explore",
98
+ platform: true,
99
+ },
100
+ {
101
+ label: "Dashboard",
102
+ appHref: "/dashboard",
103
+ marketingHref: "/dashboard",
104
+ platform: true,
105
+ },
106
+ {
107
+ label: "Sites",
108
+ appHref: "/settings",
109
+ marketingHref: "/settings",
110
+ platform: true,
111
+ },
112
+ {
113
+ label: "Account",
114
+ appHref: "/account",
115
+ marketingHref: "/account",
116
+ platform: true,
117
+ },
118
+ {
119
+ label: "Platform Status",
120
+ appHref: "/status/platform-status",
121
+ marketingHref: "/status/platform-status",
122
+ platform: true,
123
+ },
124
+ ],
125
+ },
126
+ {
127
+ title: "Resources",
128
+ links: [
129
+ {
130
+ label: "Documentation",
131
+ appHref: "https://dataengineeringformachinelearning.com/documentation/",
132
+ marketingHref: "/documentation",
133
+ },
134
+ {
135
+ label: "Whitepaper",
136
+ appHref: "https://dataengineeringformachinelearning.com/whitepaper/",
137
+ marketingHref: "/whitepaper",
138
+ },
139
+ {
140
+ label: "Book",
141
+ appHref: "https://dataengineeringformachinelearning.com/book/",
142
+ marketingHref: "/book",
143
+ },
144
+ ],
145
+ },
146
+ {
147
+ title: "Support",
148
+ links: [
149
+ {
150
+ label: "Platform Status",
151
+ appHref: "/status/platform-status",
152
+ marketingHref: "/status/platform-status",
153
+ platform: true,
154
+ },
155
+ {
156
+ label: "Report a Bug",
157
+ appHref: "#",
158
+ marketingHref: "#",
159
+ action: "bug-report",
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ title: "Legal & Compliance",
165
+ links: [
166
+ {
167
+ label: "Privacy Policy",
168
+ appHref: "https://dataengineeringformachinelearning.com/privacy/",
169
+ marketingHref: "/privacy",
170
+ },
171
+ {
172
+ label: "Terms of Service",
173
+ appHref: "https://dataengineeringformachinelearning.com/terms/",
174
+ marketingHref: "/terms",
175
+ },
176
+ {
177
+ label: "SOC2 Compliance",
178
+ appHref: "https://dataengineeringformachinelearning.com/compliance/",
179
+ marketingHref: "/compliance",
180
+ },
181
+ {
182
+ label: "GDPR Compliance",
183
+ appHref: "https://dataengineeringformachinelearning.com/privacy/#gdpr",
184
+ marketingHref: "/privacy#gdpr",
185
+ },
186
+ {
187
+ label: "Cookie Settings",
188
+ appHref: "#",
189
+ marketingHref: "#",
190
+ action: "cookie-settings",
191
+ },
192
+ ],
193
+ },
194
+ ] as const;
195
+
196
+ export const BUG_REPORT_QUERY = "reportBug=1";
197
+ export const COOKIE_SETTINGS_QUERY = "cookieSettings=1";
198
+
199
+ const isAbsoluteUrl = (href: string): boolean => /^https?:\/\//i.test(href);
200
+
201
+ const joinBase = (base: string, path: string): string => {
202
+ if (isAbsoluteUrl(path)) {
203
+ return path;
204
+ }
205
+ const normalizedBase = base.replace(/\/$/, "");
206
+ const normalizedPath = path.startsWith("/") ? path : `/${path}`;
207
+ return `${normalizedBase}${normalizedPath}`;
208
+ };
209
+
210
+ export const bugReportHref = (urls: SiteUrls): string =>
211
+ `${joinBase(urls.app, "/")}?${BUG_REPORT_QUERY}`;
212
+
213
+ export const cookieSettingsHref = (urls: SiteUrls): string =>
214
+ `${joinBase(urls.marketing, "/")}?${COOKIE_SETTINGS_QUERY}`;
215
+
216
+ const resolveMarketingContentHref = (href: string, urls: SiteUrls): string => {
217
+ if (isAbsoluteUrl(href)) {
218
+ return href;
219
+ }
220
+ if (href.startsWith("mailto:")) {
221
+ return href;
222
+ }
223
+ return href.startsWith("/") ? href : joinBase(urls.marketing, href);
224
+ };
225
+
226
+ const resolvePlatformHref = (
227
+ href: string,
228
+ context: SiteDrakkarContext,
229
+ urls: SiteUrls,
230
+ ): string => {
231
+ if (context === "app") {
232
+ return href;
233
+ }
234
+ return joinBase(urls.app, href);
235
+ };
236
+
237
+ export const resolveNavHref = (
238
+ link: SiteNavLink,
239
+ context: SiteDrakkarContext,
240
+ urls: SiteUrls,
241
+ ): string => {
242
+ if (link.platform) {
243
+ return resolvePlatformHref(link.appHref, context, urls);
244
+ }
245
+ if (context === "app") {
246
+ return link.appHref;
247
+ }
248
+ return resolveMarketingContentHref(link.marketingHref, urls);
249
+ };
250
+
251
+ export const resolveFooterHref = (
252
+ link: SiteFooterLink,
253
+ context: SiteDrakkarContext,
254
+ urls: SiteUrls,
255
+ ): string => {
256
+ if (link.action === "bug-report") {
257
+ return context === "app" ? "#" : bugReportHref(urls);
258
+ }
259
+ if (link.action === "cookie-settings") {
260
+ return cookieSettingsHref(urls);
261
+ }
262
+ if (link.platform) {
263
+ return resolvePlatformHref(link.appHref, context, urls);
264
+ }
265
+ if (context === "app") {
266
+ return link.appHref;
267
+ }
268
+ return resolveMarketingContentHref(link.marketingHref, urls);
269
+ };
270
+
271
+ export const resolveBrandHref = (
272
+ context: SiteDrakkarContext,
273
+ urls: SiteUrls,
274
+ ): string => {
275
+ if (context === "marketing") {
276
+ return "/";
277
+ }
278
+ return urls.marketing;
279
+ };
280
+
281
+ /** Navbar links; auth-gated entries appear only when the session is active. */
282
+ export const visibleNavLinks = (
283
+ links: readonly SiteNavLink[],
284
+ isAuthenticated = false,
285
+ ): SiteNavLink[] =>
286
+ links.filter((link) => !link.requireAuth || isAuthenticated);
287
+
288
+ export const isAppRouterPath = (href: string): boolean =>
289
+ !isAbsoluteUrl(href) && href.startsWith("/");
290
+
291
+ export const DEFAULT_SITE_URLS: SiteUrls = {
292
+ app: "https://deml.app",
293
+ marketing: "https://dataengineeringformachinelearning.com",
294
+ backend: "https://backend.deml.app",
295
+ };
@@ -0,0 +1,129 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ input,
5
+ output,
6
+ } from "@angular/core";
7
+ import { RouterLink } from "@angular/router";
8
+ import { VikingFooter } from "../footer/footer";
9
+ import {
10
+ cookieSettingsHref,
11
+ DEFAULT_SITE_URLS,
12
+ isAppRouterPath,
13
+ resolveFooterHref,
14
+ SITE_FOOTER_COLUMNS,
15
+ SiteDrakkarContext,
16
+ SiteFooterLink,
17
+ SiteUrls,
18
+ } from "./site-drakkar.config";
19
+
20
+ /**
21
+ * viking-site-footer — canonical site footer shared across DEML surfaces.
22
+ */
23
+ @Component({
24
+ selector: "viking-site-footer",
25
+ changeDetection: ChangeDetectionStrategy.OnPush,
26
+ imports: [RouterLink, VikingFooter],
27
+ template: `
28
+ <viking-footer>
29
+ <nav
30
+ vikingFooterDirectory
31
+ class="viking-footer-directory footer-directory"
32
+ aria-label="Footer Directory"
33
+ >
34
+ @for (column of columns; track column.title) {
35
+ <div class="footer-column">
36
+ <h3 class="footer-column-title">{{ column.title }}</h3>
37
+ <ul class="footer-list">
38
+ @for (link of column.links; track link.label) {
39
+ <li>
40
+ @if (link.action === "cookie-settings") {
41
+ @if (context() === "marketing") {
42
+ <a href="#" (click)="onCookieSettings($event)">{{
43
+ link.label
44
+ }}</a>
45
+ } @else {
46
+ <a [href]="cookieSettingsUrl()">{{ link.label }}</a>
47
+ }
48
+ } @else if (link.action === "bug-report") {
49
+ @if (context() === "app") {
50
+ <a href="#" (click)="onBugReport($event)">{{
51
+ link.label
52
+ }}</a>
53
+ } @else {
54
+ <a [href]="resolveHref(link)">{{ link.label }}</a>
55
+ }
56
+ } @else if (context() === "app" && isAppRoute(link)) {
57
+ <a [routerLink]="link.appHref">{{ link.label }}</a>
58
+ } @else {
59
+ <a [href]="resolveHref(link)">{{ link.label }}</a>
60
+ }
61
+ </li>
62
+ }
63
+ </ul>
64
+ </div>
65
+ }
66
+ </nav>
67
+
68
+ <ng-container vikingFooterBottom>
69
+ <div class="footer-badges-top">
70
+ <span
71
+ class="usa-badge viking-usa-badge"
72
+ id="usa-badge"
73
+ (mouseenter)="usaBadgeHover.emit($event)"
74
+ >
75
+ <span
76
+ class="usa-badge-icon viking-usa-badge-icon"
77
+ aria-hidden="true"
78
+ >🇺🇸</span
79
+ >
80
+ <span>Made in the U.S.A</span>
81
+ </span>
82
+ </div>
83
+
84
+ <div class="footer-compliance-row">
85
+ <div class="copyright-info">
86
+ <span class="copyright-text">
87
+ Copyright © {{ year() }} Data Engineering for Machine Learning by
88
+ <a
89
+ href="https://joealongi.dev/"
90
+ target="_blank"
91
+ rel="noopener noreferrer"
92
+ >Joe Alongi</a
93
+ >. All rights reserved.
94
+ </span>
95
+ </div>
96
+ </div>
97
+ </ng-container>
98
+ </viking-footer>
99
+ `,
100
+ })
101
+ export class VikingSiteFooter {
102
+ readonly context = input<SiteDrakkarContext>("app");
103
+ readonly urls = input<SiteUrls>(DEFAULT_SITE_URLS);
104
+ readonly year = input<number>(new Date().getFullYear());
105
+
106
+ readonly cookieSettings = output<Event>();
107
+ readonly bugReport = output<Event>();
108
+ readonly usaBadgeHover = output<MouseEvent>();
109
+
110
+ protected readonly columns = SITE_FOOTER_COLUMNS;
111
+
112
+ protected readonly cookieSettingsUrl = () => cookieSettingsHref(this.urls());
113
+
114
+ protected resolveHref = (link: SiteFooterLink): string =>
115
+ resolveFooterHref(link, this.context(), this.urls());
116
+
117
+ protected isAppRoute = (link: SiteFooterLink): boolean =>
118
+ !link.action && isAppRouterPath(link.appHref);
119
+
120
+ protected onCookieSettings(event: Event): void {
121
+ event.preventDefault();
122
+ this.cookieSettings.emit(event);
123
+ }
124
+
125
+ protected onBugReport(event: Event): void {
126
+ event.preventDefault();
127
+ this.bugReport.emit(event);
128
+ }
129
+ }
@@ -0,0 +1,2 @@
1
+ // Navbar styles live in static-navbar.scss (global viking-ui.css + app styles.scss).
2
+ // ViewEncapsulation.None — do not @use static-navbar here (duplicates ~46kB into component budget).
@@ -0,0 +1,267 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ ViewEncapsulation,
5
+ computed,
6
+ input,
7
+ output,
8
+ signal,
9
+ } from "@angular/core";
10
+ import { RouterLink, RouterLinkActive } from "@angular/router";
11
+ import { VikingButton } from "../button/button";
12
+ import { VikingIcon } from "../icon/icon";
13
+ import { VikingThemeToggle } from "../theme-toggle/theme-toggle";
14
+ import {
15
+ DEFAULT_SITE_URLS,
16
+ isAppRouterPath,
17
+ resolveBrandHref,
18
+ resolveNavHref,
19
+ SITE_NAV_LINKS,
20
+ SiteDrakkarContext,
21
+ SiteUrls,
22
+ visibleNavLinks,
23
+ } from "./site-drakkar.config";
24
+
25
+ /**
26
+ * viking-site-navbar — canonical site header shared across DEML surfaces.
27
+ * Uses `.navbar` markup + viking-ui.css (same structure as marketing/backend static HTML).
28
+ */
29
+ @Component({
30
+ selector: "viking-site-navbar",
31
+ changeDetection: ChangeDetectionStrategy.OnPush,
32
+ encapsulation: ViewEncapsulation.None,
33
+ imports: [
34
+ RouterLink,
35
+ RouterLinkActive,
36
+ VikingButton,
37
+ VikingIcon,
38
+ VikingThemeToggle,
39
+ ],
40
+ styleUrl: "./site-navbar.scss",
41
+ template: `
42
+ <header class="navbar">
43
+ <div class="navbar-content">
44
+ <div class="navbar-left">
45
+ @if (context() === "app") {
46
+ <a
47
+ [href]="brandHref()"
48
+ class="navbar-brand"
49
+ aria-label="Go to marketing homepage"
50
+ (click)="onBrandClick($event)"
51
+ >
52
+ <viking-icon
53
+ name="drakkar"
54
+ [size]="28"
55
+ color="accent"
56
+ class="brand-icon navbar-logo"
57
+ />
58
+ </a>
59
+ } @else {
60
+ <a
61
+ [href]="brandHref()"
62
+ class="navbar-brand"
63
+ aria-label="Go to homepage"
64
+ >
65
+ <viking-icon
66
+ name="drakkar"
67
+ [size]="28"
68
+ color="accent"
69
+ class="brand-icon navbar-logo"
70
+ />
71
+ </a>
72
+ }
73
+ </div>
74
+
75
+ <nav class="navbar-center desktop-nav" aria-label="Main navigation">
76
+ @for (link of navLinks(); track link.id) {
77
+ @if (context() === "app" && isAppRouterPath(link.appHref)) {
78
+ <a
79
+ [routerLink]="link.appHref"
80
+ routerLinkActive="active"
81
+ [routerLinkActiveOptions]="{
82
+ exact: link.appHref === '/explore',
83
+ }"
84
+ class="nav-btn"
85
+ >
86
+ <viking-icon [name]="link.icon" [size]="16" />
87
+ <span>{{ link.label }}</span>
88
+ </a>
89
+ } @else {
90
+ <a [href]="resolveHref(link)" class="nav-btn">
91
+ <viking-icon [name]="link.icon" [size]="16" />
92
+ <span>{{ link.label }}</span>
93
+ </a>
94
+ }
95
+ }
96
+ </nav>
97
+
98
+ <div class="navbar-right">
99
+ @if (showSearch()) {
100
+ <div class="navbar-search" role="search">
101
+ <viking-button
102
+ variant="outline"
103
+ [square]="true"
104
+ [compact]="true"
105
+ icon="search"
106
+ label="Open search (⌘K)"
107
+ (pressed)="openSearch()"
108
+ />
109
+ </div>
110
+ }
111
+
112
+ <div class="desktop-auth">
113
+ @if (!isAuthenticated()) {
114
+ <viking-button
115
+ variant="primary"
116
+ icon="arrow-right"
117
+ (pressed)="login.emit()"
118
+ >
119
+ Sign In
120
+ </viking-button>
121
+ } @else {
122
+ <viking-button
123
+ variant="primary"
124
+ icon="home"
125
+ [href]="urls().app + '/dashboard'"
126
+ >
127
+ Dashboard
128
+ </viking-button>
129
+ <viking-button variant="ghost" (pressed)="logout.emit()"
130
+ >Sign Out</viking-button
131
+ >
132
+ }
133
+ </div>
134
+
135
+ <viking-theme-toggle
136
+ [theme]="theme()"
137
+ (toggle)="themeToggle.emit()"
138
+ />
139
+
140
+ <viking-button
141
+ variant="outline"
142
+ [square]="true"
143
+ class="menu-toggle-btn"
144
+ [icon]="mobileMenuOpen() ? 'x' : 'menu'"
145
+ [label]="
146
+ mobileMenuOpen()
147
+ ? 'Close navigation menu'
148
+ : 'Toggle navigation menu'
149
+ "
150
+ (pressed)="toggleMobileMenu()"
151
+ />
152
+ </div>
153
+ </div>
154
+
155
+ <nav
156
+ class="mobile-menu"
157
+ [class.open]="mobileMenuOpen()"
158
+ aria-label="Mobile navigation"
159
+ >
160
+ @for (link of navLinks(); track link.id + "-mobile") {
161
+ @if (context() === "app" && isAppRouterPath(link.appHref)) {
162
+ <a
163
+ [routerLink]="link.appHref"
164
+ routerLinkActive="active"
165
+ [routerLinkActiveOptions]="{ exact: link.appHref === '/explore' }"
166
+ class="mobile-nav-btn"
167
+ (click)="closeMobileMenu()"
168
+ >
169
+ <viking-icon [name]="link.icon" [size]="16" />
170
+ <span>{{ link.label }}</span>
171
+ </a>
172
+ } @else {
173
+ <a
174
+ [href]="resolveHref(link)"
175
+ class="mobile-nav-btn"
176
+ (click)="closeMobileMenu()"
177
+ >
178
+ <viking-icon [name]="link.icon" [size]="16" />
179
+ <span>{{ link.label }}</span>
180
+ </a>
181
+ }
182
+ }
183
+
184
+ <div class="mobile-divider"></div>
185
+
186
+ @if (!isAuthenticated()) {
187
+ <viking-button
188
+ variant="primary"
189
+ icon="arrow-right"
190
+ class="mobile-auth-btn"
191
+ [fullWidth]="true"
192
+ (pressed)="login.emit(); closeMobileMenu()"
193
+ >
194
+ Sign In
195
+ </viking-button>
196
+ } @else {
197
+ <viking-button
198
+ variant="primary"
199
+ icon="home"
200
+ class="mobile-auth-btn"
201
+ [fullWidth]="true"
202
+ [href]="urls().app + '/dashboard'"
203
+ (pressed)="closeMobileMenu()"
204
+ >
205
+ Dashboard
206
+ </viking-button>
207
+ <viking-button
208
+ variant="ghost"
209
+ class="mobile-auth-btn"
210
+ [fullWidth]="true"
211
+ (pressed)="logout.emit(); closeMobileMenu()"
212
+ >
213
+ Sign Out
214
+ </viking-button>
215
+ }
216
+ </nav>
217
+ </header>
218
+ `,
219
+ })
220
+ export class VikingSiteNavbar {
221
+ readonly context = input<SiteDrakkarContext>("app");
222
+ readonly urls = input<SiteUrls>(DEFAULT_SITE_URLS);
223
+ readonly isAuthenticated = input<boolean>(false);
224
+ readonly theme = input<"light" | "dark">("dark");
225
+ readonly showSearch = input<boolean>(false);
226
+
227
+ readonly login = output<void>();
228
+ readonly logout = output<void>();
229
+ readonly themeToggle = output<void>();
230
+ readonly searchOpen = output<void>();
231
+
232
+ protected readonly mobileMenuOpen = signal(false);
233
+
234
+ protected readonly navLinks = computed(() =>
235
+ visibleNavLinks(SITE_NAV_LINKS, this.isAuthenticated()),
236
+ );
237
+
238
+ protected readonly brandHref = computed(() =>
239
+ resolveBrandHref(this.context(), this.urls()),
240
+ );
241
+
242
+ protected resolveHref = (link: (typeof SITE_NAV_LINKS)[number]): string =>
243
+ resolveNavHref(link, this.context(), this.urls());
244
+
245
+ protected isAppRouterPath = isAppRouterPath;
246
+
247
+ protected onBrandClick(event: MouseEvent): void {
248
+ event.preventDefault();
249
+ window.location.href = this.brandHref();
250
+ }
251
+
252
+ protected toggleMobileMenu(): void {
253
+ this.mobileMenuOpen.update((open) => !open);
254
+ }
255
+
256
+ protected closeMobileMenu(): void {
257
+ this.mobileMenuOpen.set(false);
258
+ }
259
+
260
+ protected openSearch(): void {
261
+ this.searchOpen.emit();
262
+ const widgets = (
263
+ globalThis as { DemlWidgets?: { openSearch?: () => void } }
264
+ ).DemlWidgets;
265
+ widgets?.openSearch?.();
266
+ }
267
+ }