@updevs/components 1.0.0-alpha.1 → 1.0.0-alpha.3

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 (310) hide show
  1. package/README.md +5 -22
  2. package/assets/styles/_bootstrap-components.scss +38 -0
  3. package/assets/styles/_bootstrap-config.scss +7 -0
  4. package/assets/styles/_bootstrap-override.scss +78 -0
  5. package/assets/styles/_config.scss +9 -0
  6. package/assets/styles/_core.scss +71 -0
  7. package/assets/styles/_mixins.scss +2 -0
  8. package/assets/styles/_updevs.scss +9 -0
  9. package/assets/styles/_utilities.scss +98 -0
  10. package/assets/styles/_variables-dark.scss +17 -0
  11. package/assets/styles/_variables.scss +934 -0
  12. package/assets/styles/fonts/_webfonts.scss +15 -0
  13. package/assets/styles/layout/_animations.scss +62 -0
  14. package/assets/styles/layout/_core.scss +61 -0
  15. package/assets/styles/layout/_dark.scss +72 -0
  16. package/assets/styles/layout/_footer.scss +12 -0
  17. package/assets/styles/layout/_navbar.scss +380 -0
  18. package/assets/styles/layout/_page.scss +169 -0
  19. package/assets/styles/layout/_root.scss +72 -0
  20. package/assets/styles/mixins/_functions.scss +43 -0
  21. package/assets/styles/mixins/_mixins.scss +68 -0
  22. package/assets/styles/ui/_accordion.scss +24 -0
  23. package/assets/styles/ui/_alerts.scss +59 -0
  24. package/assets/styles/ui/_avatars.scss +118 -0
  25. package/assets/styles/ui/_badges.scss +79 -0
  26. package/assets/styles/ui/_breadcrumbs.scss +50 -0
  27. package/assets/styles/ui/_button-group.scss +16 -0
  28. package/assets/styles/ui/_buttons.scss +265 -0
  29. package/assets/styles/ui/_calendars.scss +104 -0
  30. package/assets/styles/ui/_cards.scss +586 -0
  31. package/assets/styles/ui/_carousel.scss +68 -0
  32. package/assets/styles/ui/_charts.scss +61 -0
  33. package/assets/styles/ui/_chips.scss +0 -0
  34. package/assets/styles/ui/_close.scss +7 -0
  35. package/assets/styles/ui/_datagrid.scss +17 -0
  36. package/assets/styles/ui/_dropdowns.scss +117 -0
  37. package/assets/styles/ui/_empty.scss +65 -0
  38. package/assets/styles/ui/_flags.scss +31 -0
  39. package/assets/styles/ui/_forms.scss +224 -0
  40. package/assets/styles/ui/_grid.scss +115 -0
  41. package/assets/styles/ui/_icons.scss +72 -0
  42. package/assets/styles/ui/_images.scss +15 -0
  43. package/assets/styles/ui/_legend.scss +12 -0
  44. package/assets/styles/ui/_lists.scss +127 -0
  45. package/assets/styles/ui/_loaders.scss +72 -0
  46. package/assets/styles/ui/_login.scss +3 -0
  47. package/assets/styles/ui/_markdown.scss +42 -0
  48. package/assets/styles/ui/_modals.scss +67 -0
  49. package/assets/styles/ui/_nav.scss +92 -0
  50. package/assets/styles/ui/_offcanvas.scss +17 -0
  51. package/assets/styles/ui/_pagination.scss +56 -0
  52. package/assets/styles/ui/_payments.scss +28 -0
  53. package/assets/styles/ui/_placeholder.scss +9 -0
  54. package/assets/styles/ui/_popovers.scss +2 -0
  55. package/assets/styles/ui/_progress.scss +107 -0
  56. package/assets/styles/ui/_ribbons.scss +156 -0
  57. package/assets/styles/ui/_stars.scss +13 -0
  58. package/assets/styles/ui/_status.scss +163 -0
  59. package/assets/styles/ui/_steps.scss +152 -0
  60. package/assets/styles/ui/_switch-icon.scss +211 -0
  61. package/assets/styles/ui/_tables.scss +150 -0
  62. package/assets/styles/ui/_tags.scss +57 -0
  63. package/assets/styles/ui/_timeline.scss +61 -0
  64. package/assets/styles/ui/_toasts.scss +19 -0
  65. package/assets/styles/ui/_toolbar.scss +10 -0
  66. package/assets/styles/ui/_tracking.scss +29 -0
  67. package/assets/styles/ui/_type.scss +169 -0
  68. package/assets/styles/ui/forms/_form-check.scss +91 -0
  69. package/assets/styles/ui/forms/_form-colorinput.scss +54 -0
  70. package/assets/styles/ui/forms/_form-custom.scss +28 -0
  71. package/assets/styles/ui/forms/_form-icon.scss +35 -0
  72. package/assets/styles/ui/forms/_form-imagecheck.scss +104 -0
  73. package/assets/styles/ui/forms/_form-selectgroup.scss +153 -0
  74. package/assets/styles/ui/forms/_validation.scss +13 -0
  75. package/assets/styles/ui/typo/_hr.scss +74 -0
  76. package/assets/styles/utils/_background.scss +15 -0
  77. package/assets/styles/utils/_colors.scss +40 -0
  78. package/assets/styles/utils/_opacity.scss +7 -0
  79. package/assets/styles/utils/_scroll.scss +47 -0
  80. package/assets/styles/utils/_shadow.scss +17 -0
  81. package/assets/styles/utils/_sizing.scss +10 -0
  82. package/assets/styles/utils/_text.scss +15 -0
  83. package/button/ng-package.json +7 -0
  84. package/button/src/button.component.html +8 -0
  85. package/button/src/button.component.scss +5 -0
  86. package/button/src/button.component.spec.ts +23 -0
  87. package/button/src/button.component.ts +154 -0
  88. package/button/src/index.ts +1 -0
  89. package/button/src/public-api.ts +2 -0
  90. package/button/src/upd-button.module.ts +17 -0
  91. package/card/ng-package.json +7 -0
  92. package/card/src/card.component.html +105 -0
  93. package/card/src/card.component.scss +47 -0
  94. package/card/src/card.component.spec.ts +23 -0
  95. package/card/src/card.component.ts +112 -0
  96. package/card/src/directives/card-actions.directive.spec.ts +8 -0
  97. package/card/src/directives/card-actions.directive.ts +11 -0
  98. package/card/src/directives/card-footer.directive.spec.ts +8 -0
  99. package/card/src/directives/card-footer.directive.ts +11 -0
  100. package/card/src/directives/card-header.directive.spec.ts +8 -0
  101. package/card/src/directives/card-header.directive.ts +11 -0
  102. package/card/src/directives/card-image.directive.spec.ts +8 -0
  103. package/card/src/directives/card-image.directive.ts +11 -0
  104. package/card/src/directives/public-api.ts +4 -0
  105. package/card/src/index.ts +1 -0
  106. package/card/src/public-api.ts +3 -0
  107. package/card/src/types/card-state.type.ts +1 -0
  108. package/card/src/types/card-style.type.ts +1 -0
  109. package/card/src/types/hover-effect.type.ts +1 -0
  110. package/card/src/types/public-api.ts +5 -0
  111. package/card/src/types/ribbon-style.type.ts +1 -0
  112. package/card/src/types/status-position.type.ts +1 -0
  113. package/card/src/upd-card.module.ts +32 -0
  114. package/dropdown/ng-package.json +7 -0
  115. package/dropdown/src/dropdown.component.html +32 -0
  116. package/dropdown/src/dropdown.component.scss +19 -0
  117. package/dropdown/src/dropdown.component.spec.ts +23 -0
  118. package/dropdown/src/dropdown.component.ts +182 -0
  119. package/dropdown/src/index.ts +1 -0
  120. package/dropdown/src/models/dropdown-item.ts +22 -0
  121. package/dropdown/src/models/dropdown-item.type.ts +1 -0
  122. package/dropdown/src/models/public-api.ts +2 -0
  123. package/dropdown/src/public-api.ts +3 -0
  124. package/dropdown/src/upd-dropdown.module.ts +25 -0
  125. package/form/ng-package.json +7 -0
  126. package/form/src/form.module.ts +10 -0
  127. package/form/src/index.ts +1 -0
  128. package/form/src/public-api.ts +1 -0
  129. package/form-controls/checkbox/ng-package.json +7 -0
  130. package/form-controls/checkbox/src/checkbox.component.html +7 -0
  131. package/form-controls/checkbox/src/checkbox.component.scss +0 -0
  132. package/form-controls/checkbox/src/checkbox.component.spec.ts +23 -0
  133. package/form-controls/checkbox/src/checkbox.component.ts +48 -0
  134. package/form-controls/checkbox/src/index.ts +1 -0
  135. package/form-controls/checkbox/src/public-api.ts +3 -0
  136. package/form-controls/checkbox/src/upd-checkbox.module.ts +19 -0
  137. package/form-controls/input/ng-package.json +7 -0
  138. package/form-controls/input/src/directives/input-append.directive.spec.ts +8 -0
  139. package/form-controls/input/src/directives/input-append.directive.ts +11 -0
  140. package/form-controls/input/src/directives/input-prepend.directive.spec.ts +8 -0
  141. package/form-controls/input/src/directives/input-prepend.directive.ts +11 -0
  142. package/form-controls/input/src/directives/public-api.ts +2 -0
  143. package/form-controls/input/src/index.ts +1 -0
  144. package/form-controls/input/src/input.component.html +82 -0
  145. package/form-controls/input/src/input.component.scss +13 -0
  146. package/form-controls/input/src/input.component.spec.ts +23 -0
  147. package/form-controls/input/src/input.component.ts +124 -0
  148. package/form-controls/input/src/public-api.ts +4 -0
  149. package/form-controls/input/src/types/input.type.ts +1 -0
  150. package/form-controls/input/src/types/loader-position.type.ts +1 -0
  151. package/form-controls/input/src/types/public-api.ts +2 -0
  152. package/form-controls/input/src/upd-input.module.ts +29 -0
  153. package/form-controls/radio/ng-package.json +7 -0
  154. package/form-controls/radio/src/index.ts +1 -0
  155. package/form-controls/radio/src/public-api.ts +2 -0
  156. package/form-controls/radio/src/radio.component.html +7 -0
  157. package/form-controls/radio/src/radio.component.scss +0 -0
  158. package/form-controls/radio/src/radio.component.spec.ts +23 -0
  159. package/form-controls/radio/src/radio.component.ts +47 -0
  160. package/form-controls/radio/src/upd-radio.module.ts +17 -0
  161. package/form-controls/select/ng-package.json +7 -0
  162. package/form-controls/select/src/components/multiple/select-multiple.component.html +41 -0
  163. package/form-controls/select/src/components/multiple/select-multiple.component.scss +6 -0
  164. package/form-controls/select/src/components/multiple/select-multiple.component.spec.ts +21 -0
  165. package/form-controls/select/src/components/multiple/select-multiple.component.ts +69 -0
  166. package/form-controls/select/src/components/shared.scss +40 -0
  167. package/form-controls/select/src/components/single/select.component.html +53 -0
  168. package/form-controls/select/src/components/single/select.component.scss +3 -0
  169. package/form-controls/select/src/components/single/select.component.spec.ts +23 -0
  170. package/form-controls/select/src/components/single/select.component.ts +58 -0
  171. package/form-controls/select/src/index.ts +1 -0
  172. package/form-controls/select/src/models/abstractions/base-select.component.ts +259 -0
  173. package/form-controls/select/src/models/public-api.ts +1 -0
  174. package/form-controls/select/src/models/select-item.ts +26 -0
  175. package/form-controls/select/src/public-api.ts +4 -0
  176. package/form-controls/select/src/upd-select.module.ts +32 -0
  177. package/form-controls/textarea/ng-package.json +7 -0
  178. package/form-controls/textarea/src/index.ts +1 -0
  179. package/form-controls/textarea/src/public-api.ts +2 -0
  180. package/form-controls/textarea/src/textarea.component.html +8 -0
  181. package/form-controls/textarea/src/textarea.component.scss +0 -0
  182. package/form-controls/textarea/src/textarea.component.spec.ts +23 -0
  183. package/form-controls/textarea/src/textarea.component.ts +47 -0
  184. package/form-controls/textarea/src/upd-textarea.module.ts +17 -0
  185. package/form-controls/time-picker/ng-package.json +7 -0
  186. package/form-controls/time-picker/src/assets/i18n/en.json +5 -0
  187. package/form-controls/time-picker/src/assets/i18n/pt.json +5 -0
  188. package/form-controls/time-picker/src/index.ts +1 -0
  189. package/form-controls/time-picker/src/public-api.ts +3 -0
  190. package/form-controls/time-picker/src/time-picker.component.html +17 -0
  191. package/form-controls/time-picker/src/time-picker.component.scss +10 -0
  192. package/form-controls/time-picker/src/time-picker.component.spec.ts +21 -0
  193. package/form-controls/time-picker/src/time-picker.component.ts +110 -0
  194. package/form-controls/time-picker/src/time-selector/time-selector.component.html +44 -0
  195. package/form-controls/time-picker/src/time-selector/time-selector.component.scss +47 -0
  196. package/form-controls/time-picker/src/time-selector/time-selector.component.spec.ts +21 -0
  197. package/form-controls/time-picker/src/time-selector/time-selector.component.ts +107 -0
  198. package/form-controls/time-picker/src/upd-time-picker.module.ts +39 -0
  199. package/layout/ng-package.json +7 -0
  200. package/layout/src/abstractions/base-page.component.ts +21 -0
  201. package/layout/src/abstractions/public-api.ts +1 -0
  202. package/layout/src/assets/i18n/en.json +5 -0
  203. package/layout/src/assets/i18n/pt.json +5 -0
  204. package/layout/src/index.ts +1 -0
  205. package/layout/src/layouts/blank-layout/blank-layout.component.html +1 -0
  206. package/layout/src/layouts/blank-layout/blank-layout.component.scss +0 -0
  207. package/layout/src/layouts/blank-layout/blank-layout.component.spec.ts +23 -0
  208. package/layout/src/layouts/blank-layout/blank-layout.component.ts +10 -0
  209. package/layout/src/layouts/blank-layout/blank-layout.module.ts +17 -0
  210. package/layout/src/layouts/public-api.ts +4 -0
  211. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.html +14 -0
  212. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.scss +0 -0
  213. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.spec.ts +23 -0
  214. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.ts +31 -0
  215. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.ts +52 -0
  216. package/layout/src/models/public-api.ts +1 -0
  217. package/layout/src/models/upd-layout-config.model.ts +71 -0
  218. package/layout/src/models/upd-layout.config.ts +37 -0
  219. package/layout/src/pages/auth-flow/auth-flow-routing.module.ts +21 -0
  220. package/layout/src/pages/auth-flow/auth-flow.module.ts +29 -0
  221. package/layout/src/pages/auth-flow/logged-out/logged-out.component.html +1 -0
  222. package/layout/src/pages/auth-flow/logged-out/logged-out.component.scss +0 -0
  223. package/layout/src/pages/auth-flow/logged-out/logged-out.component.spec.ts +23 -0
  224. package/layout/src/pages/auth-flow/logged-out/logged-out.component.ts +10 -0
  225. package/layout/src/pages/auth-flow/login/login.component.html +96 -0
  226. package/layout/src/pages/auth-flow/login/login.component.scss +0 -0
  227. package/layout/src/pages/auth-flow/login/login.component.spec.ts +23 -0
  228. package/layout/src/pages/auth-flow/login/login.component.ts +26 -0
  229. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.html +1 -0
  230. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.scss +0 -0
  231. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.spec.ts +23 -0
  232. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.ts +10 -0
  233. package/layout/src/pages/auth-flow/public-api.ts +5 -0
  234. package/layout/src/pages/public-api.ts +1 -0
  235. package/layout/src/partials/footer/footer-copyright.directive.spec.ts +8 -0
  236. package/layout/src/partials/footer/footer-copyright.directive.ts +9 -0
  237. package/layout/src/partials/footer/footer.component.html +30 -0
  238. package/layout/src/partials/footer/footer.component.scss +0 -0
  239. package/{src/lib/components.component.spec.ts → layout/src/partials/footer/footer.component.spec.ts} +6 -6
  240. package/layout/src/partials/footer/footer.component.ts +73 -0
  241. package/layout/src/partials/footer/public-api.ts +2 -0
  242. package/layout/src/partials/header/header-style.type.ts +1 -0
  243. package/layout/src/partials/header/header.component.html +163 -0
  244. package/layout/src/partials/header/header.component.scss +0 -0
  245. package/layout/src/partials/header/header.component.spec.ts +23 -0
  246. package/layout/src/partials/header/header.component.ts +86 -0
  247. package/layout/src/partials/header/public-api.ts +2 -0
  248. package/layout/src/partials/page-header/page-header.component.html +19 -0
  249. package/layout/src/partials/page-header/page-header.component.scss +0 -0
  250. package/layout/src/partials/page-header/page-header.component.spec.ts +23 -0
  251. package/layout/src/partials/page-header/page-header.component.ts +11 -0
  252. package/layout/src/partials/page-header/public-api.ts +1 -0
  253. package/layout/src/partials/public-api.ts +4 -0
  254. package/layout/src/partials/sidebar/public-api.ts +1 -0
  255. package/layout/src/partials/sidebar/sidebar.component.html +62 -0
  256. package/layout/src/partials/sidebar/sidebar.component.scss +0 -0
  257. package/layout/src/partials/sidebar/sidebar.component.spec.ts +23 -0
  258. package/layout/src/partials/sidebar/sidebar.component.ts +161 -0
  259. package/layout/src/public-api.ts +7 -0
  260. package/layout/src/services/public-api.ts +1 -0
  261. package/{src/lib/components.service.spec.ts → layout/src/services/upd-layout-config.service.spec.ts} +4 -4
  262. package/layout/src/services/upd-layout-config.service.ts +20 -0
  263. package/layout/src/tools/layout.constants.ts +18 -0
  264. package/layout/src/upd-layout.module.ts +34 -0
  265. package/link/ng-package.json +7 -0
  266. package/link/src/index.ts +1 -0
  267. package/link/src/link.component.html +3 -0
  268. package/link/src/link.component.scss +3 -0
  269. package/link/src/link.component.spec.ts +23 -0
  270. package/link/src/link.component.ts +48 -0
  271. package/link/src/public-api.ts +3 -0
  272. package/link/src/target.type.ts +1 -0
  273. package/link/src/upd-link.module.ts +17 -0
  274. package/list/ng-package.json +7 -0
  275. package/list/src/assets/i18n/en.json +5 -0
  276. package/list/src/assets/i18n/pt.json +5 -0
  277. package/list/src/index.ts +1 -0
  278. package/list/src/list.component.html +58 -0
  279. package/list/src/list.component.scss +21 -0
  280. package/list/src/list.component.spec.ts +23 -0
  281. package/list/src/list.component.ts +147 -0
  282. package/list/src/models/badge-position.type.ts +1 -0
  283. package/list/src/models/list-item.model.ts +35 -0
  284. package/list/src/models/list-item.ts +21 -0
  285. package/list/src/models/public-api.ts +2 -0
  286. package/list/src/public-api.ts +3 -0
  287. package/list/src/upd-list.module.ts +30 -0
  288. package/ng-package.json +9 -6
  289. package/package.json +8 -5
  290. package/popover/ng-package.json +7 -0
  291. package/popover/src/index.ts +1 -0
  292. package/popover/src/popover.component.html +20 -0
  293. package/popover/src/popover.component.scss +8 -0
  294. package/popover/src/popover.component.spec.ts +23 -0
  295. package/popover/src/popover.component.ts +53 -0
  296. package/popover/src/popover.directive.spec.ts +8 -0
  297. package/popover/src/popover.directive.ts +128 -0
  298. package/popover/src/public-api.ts +3 -0
  299. package/popover/src/upd-popover.module.ts +20 -0
  300. package/src/lib/index.ts +1 -0
  301. package/src/lib/public-api.ts +2 -0
  302. package/src/lib/types/component-size.type.ts +1 -0
  303. package/src/lib/types/public-api.ts +2 -0
  304. package/src/lib/types/validation-status.type.ts +1 -0
  305. package/src/lib/upd-components.module.ts +6 -0
  306. package/src/public-api.ts +1 -7
  307. package/tsconfig.lib.json +11 -11
  308. package/src/lib/components.component.ts +0 -14
  309. package/src/lib/components.module.ts +0 -17
  310. package/src/lib/components.service.ts +0 -9
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { LoggedOutComponent } from './logged-out.component';
4
+
5
+ describe('LoggedOutComponent', () => {
6
+ let component: LoggedOutComponent;
7
+ let fixture: ComponentFixture<LoggedOutComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ LoggedOutComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(LoggedOutComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'upd-logged-out',
5
+ templateUrl: './logged-out.component.html',
6
+ styleUrls: ['./logged-out.component.scss']
7
+ })
8
+ export class LoggedOutComponent {
9
+
10
+ }
@@ -0,0 +1,96 @@
1
+ <div class="page page-center">
2
+ <ng-container [ngSwitch]="layout">
3
+ <div *ngSwitchCase="'centered-box'" class="container container-tight py-4">
4
+ <ng-container [ngTemplateOutlet]="loginCard"></ng-container>
5
+ </div>
6
+ <div *ngSwitchCase="'box-with-picture'" class="container container-normal py-4">
7
+ <div class="row align-items-center g-4">
8
+ <div class="col-lg">
9
+ <div class="container-tight">
10
+ <ng-container [ngTemplateOutlet]="loginCard"></ng-container>
11
+ </div>
12
+ </div>
13
+ <div class="col-lg d-none d-lg-block">
14
+ <img height="300" class="d-block mx-auto upd-right-login-image"/>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </ng-container>
19
+ </div>
20
+
21
+ <ng-template #loginCard>
22
+ <div class="text-center mb-4">
23
+ <a href="." class="navbar-brand navbar-brand-autodark">
24
+ <img height="36" class="navbar-brand-image upd-brand-logo"/>
25
+ </a>
26
+ </div>
27
+ <div class="card card-md">
28
+ <div class="card-body">
29
+ <h2 class="h2 text-center mb-4" i18n>Login to your account</h2>
30
+ <form action="./" method="get" autocomplete="off" novalidate>
31
+ <div class="mb-3">
32
+ <label class="form-label">Email address</label>
33
+ <input type="email" class="form-control" name="username" [(ngModel)]="username">
34
+ </div>
35
+ <div class="mb-2">
36
+ <label class="form-label">
37
+ Password
38
+ <span class="form-label-description">
39
+ <a href="./forgot-password.html" i18n>I forgot my password</a>
40
+ </span>
41
+ </label>
42
+ <div class="input-group input-group-flat">
43
+ <input type="password" class="form-control" name="password" [(ngModel)]="password">
44
+ <span class="input-group-text">
45
+ <a href="#" class="link-secondary" title="Show password" data-bs-toggle="tooltip"><!-- Download SVG icon from http://tabler-icons.io/i/eye -->
46
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
47
+ stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none"
48
+ d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="2"/><path
49
+ d="M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"/></svg>
50
+ </a>
51
+ </span>
52
+ </div>
53
+ </div>
54
+ <div class="mb-2">
55
+ <label class="form-check">
56
+ <input type="checkbox" class="form-check-input"/>
57
+ <span class="form-check-label" i18n>Remember me on this device</span>
58
+ </label>
59
+ </div>
60
+ <div class="form-footer">
61
+ <upd-button (clicked)="login()" customClasses="w-100">
62
+ <span i18n>Sign in</span>
63
+ </upd-button>
64
+ </div>
65
+ </form>
66
+ </div>
67
+ <div class="hr-text" i18n>or</div>
68
+ <div class="card-body">
69
+ <div class="row">
70
+ <div class="col"><a href="#" class="btn w-100">
71
+ <!-- Download SVG icon from http://tabler-icons.io/i/brand-github -->
72
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon text-github" width="24" height="24" viewBox="0 0 24 24"
73
+ stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
74
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
75
+ <path
76
+ d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"/>
77
+ </svg>
78
+ Login with Github
79
+ </a></div>
80
+ <div class="col"><a href="#" class="btn w-100">
81
+ <!-- Download SVG icon from http://tabler-icons.io/i/brand-twitter -->
82
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon text-twitter" width="24" height="24" viewBox="0 0 24 24"
83
+ stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
84
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
85
+ <path
86
+ d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"/>
87
+ </svg>
88
+ Login with Twitter
89
+ </a></div>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ <div class="text-center text-muted mt-3">
94
+ Don't have account yet? <a href="./sign-up.html" tabindex="-1" i18n>Sign up</a>
95
+ </div>
96
+ </ng-template>
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { LoginComponent } from './login.component';
4
+
5
+ describe('LoginComponent', () => {
6
+ let component: LoginComponent;
7
+ let fixture: ComponentFixture<LoginComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ LoginComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(LoginComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,26 @@
1
+ import { Component, ViewEncapsulation, inject } from '@angular/core';
2
+ import { LayoutService } from '@updevs/sdk/layout';
3
+ import { AuthService } from '@updevs/sdk/security';
4
+
5
+ @Component({
6
+ selector: 'upd-login',
7
+ templateUrl: './login.component.html',
8
+ styleUrls: ['./login.component.scss'],
9
+ encapsulation: ViewEncapsulation.None
10
+ })
11
+ export class LoginComponent {
12
+ layout: 'centered-box' | 'box-with-picture' = 'centered-box';
13
+ username = '';
14
+ password = '';
15
+
16
+ private readonly authService = inject(AuthService);
17
+ private readonly layoutService = inject(LayoutService);
18
+
19
+ constructor() {
20
+ this.layoutService.addBodyClasses('border-top-wide', 'border-primary', 'd-flex', 'flex-column');
21
+ }
22
+
23
+ login(): void {
24
+ this.authService.login(this.username, this.password).subscribe();
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ <p>oauth-callback works!</p>
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { OauthCallbackComponent } from './oauth-callback.component';
4
+
5
+ describe('OauthCallbackComponent', () => {
6
+ let component: OauthCallbackComponent;
7
+ let fixture: ComponentFixture<OauthCallbackComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ OauthCallbackComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(OauthCallbackComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'upd-oauth-callback',
5
+ templateUrl: './oauth-callback.component.html',
6
+ styleUrls: ['./oauth-callback.component.scss']
7
+ })
8
+ export class OauthCallbackComponent {
9
+
10
+ }
@@ -0,0 +1,5 @@
1
+ export * from './logged-out/logged-out.component';
2
+ export * from './login/login.component';
3
+ export * from './oauth-callback/oauth-callback.component';
4
+ export * from './auth-flow.module';
5
+ export * from './auth-flow-routing.module';
@@ -0,0 +1 @@
1
+ export * from './auth-flow/public-api';
@@ -0,0 +1,8 @@
1
+ import { FooterCopyrightDirective } from './footer-copyright.directive';
2
+
3
+ describe('FooterCopyrightDirective', () => {
4
+ it('should create an instance', () => {
5
+ const directive = new FooterCopyrightDirective();
6
+ expect(directive).toBeTruthy();
7
+ });
8
+ });
@@ -0,0 +1,9 @@
1
+ import { Directive } from '@angular/core';
2
+
3
+ @Directive({
4
+ selector: '[updFooterCopyright]'
5
+ })
6
+ export class FooterCopyrightDirective {
7
+ constructor() {
8
+ }
9
+ }
@@ -0,0 +1,30 @@
1
+ <div class="container-xl">
2
+ <div class="row text-center align-items-center flex-row-reverse">
3
+ <div class="col-lg-auto ms-lg-auto">
4
+ <ul *ngIf="links.length > 0" class="list-inline list-inline-dots mb-0">
5
+ <li *ngFor="let link of links" class="list-inline-item">
6
+ <a href="{{link.url}}" target="{{link.target}}" class="link-secondary">
7
+ <span [innerHTML]="link.text"></span>
8
+ <ng-container *transloco="let t">
9
+ {{t('Layout.Aloha')}}
10
+ </ng-container>
11
+ </a>
12
+ </li>
13
+ </ul>
14
+ </div>
15
+ <div class="col-12 col-lg-auto mt-3 mt-lg-0">
16
+ <ng-container *ngIf="!!footerCopyrightTemplate; else defaultFooterTpl"
17
+ [ngTemplateOutlet]="footerCopyrightTemplate"></ng-container>
18
+ <ng-template #defaultFooterTpl>
19
+ <ul class="list-inline list-inline-dots mb-0">
20
+ <li class="list-inline-item">
21
+ {{copyrightPrefix}} &copy; {{currentYear}} {{copyrightSuffix}}
22
+ </li>
23
+ <li *ngIf="!!version" class="list-inline-item">
24
+ {{version}}
25
+ </li>
26
+ </ul>
27
+ </ng-template>
28
+ </div>
29
+ </div>
30
+ </div>
@@ -1,18 +1,18 @@
1
1
  import { ComponentFixture, TestBed } from '@angular/core/testing';
2
2
 
3
- import { ComponentsComponent } from './components.component';
3
+ import { FooterComponent } from './footer.component';
4
4
 
5
- describe('ComponentsComponent', () => {
6
- let component: ComponentsComponent;
7
- let fixture: ComponentFixture<ComponentsComponent>;
5
+ describe('FooterComponent', () => {
6
+ let component: FooterComponent;
7
+ let fixture: ComponentFixture<FooterComponent>;
8
8
 
9
9
  beforeEach(async () => {
10
10
  await TestBed.configureTestingModule({
11
- declarations: [ ComponentsComponent ]
11
+ declarations: [ FooterComponent ]
12
12
  })
13
13
  .compileComponents();
14
14
 
15
- fixture = TestBed.createComponent(ComponentsComponent);
15
+ fixture = TestBed.createComponent(FooterComponent);
16
16
  component = fixture.componentInstance;
17
17
  fixture.detectChanges();
18
18
  });
@@ -0,0 +1,73 @@
1
+ import { Component, ContentChild, TemplateRef, HostBinding, OnInit, OnChanges, SimpleChanges, ViewEncapsulation } from '@angular/core';
2
+ import { LinkModel } from '@updevs/sdk/core';
3
+ import { BaseComponent } from '@updevs/sdk/layout';
4
+ import { TranslocoService } from '@ngneat/transloco';
5
+
6
+ import { FooterCopyrightDirective } from './footer-copyright.directive';
7
+
8
+ @Component({
9
+ selector: 'upd-footer',
10
+ templateUrl: './footer.component.html',
11
+ styleUrls: ['./footer.component.scss'],
12
+ encapsulation: ViewEncapsulation.None
13
+ })
14
+ export class FooterComponent extends BaseComponent implements OnInit, OnChanges {
15
+ @HostBinding('class') wrapperClasses = '';
16
+ @ContentChild(FooterCopyrightDirective, { read: TemplateRef, static: true }) footerCopyrightTemplate?: TemplateRef<any>;
17
+
18
+ /**
19
+ * Whether the footer will always be shown.
20
+ */
21
+ isSticky = false;
22
+ /**
23
+ * Whether the footer is transparent or not.
24
+ */
25
+ isTransparent = true;
26
+ /**
27
+ * Links.
28
+ */
29
+ links: LinkModel[] = [];
30
+ /**
31
+ * Current year.
32
+ */
33
+ currentYear = new Date().getFullYear();
34
+ /**
35
+ * Text displayed in the copyright section before the symbol and year.
36
+ */
37
+ copyrightPrefix = 'Copyright';
38
+ /**
39
+ * Text displayed in the copyright section after the symbol and year.
40
+ */
41
+ copyrightSuffix = '';
42
+ /**
43
+ * Version of the application.
44
+ */
45
+ version?: string;
46
+
47
+ private baseWrapperClasses = 'footer d-print-none';
48
+
49
+ constructor(
50
+ private translocoService: TranslocoService
51
+ ) {
52
+ super();
53
+ }
54
+
55
+ ngOnInit(): void {
56
+ const footerCpsSub = this.translocoService.selectTranslate('Footer.AllRightsReserved').subscribe(r => this.copyrightSuffix = r);
57
+
58
+ this.updateWrapperClasses();
59
+ this.addSubscriptions(footerCpsSub);
60
+ }
61
+
62
+ ngOnChanges(changes: SimpleChanges): void {
63
+ if (!!changes['isSticky'].currentValue || !!changes['isTransparent'].currentValue) {
64
+ this.updateWrapperClasses();
65
+ }
66
+ }
67
+
68
+ private updateWrapperClasses(): void {
69
+ const stickyBottomCls = this.isSticky ? ' sticky-bottom' : '';
70
+ const transparentCls = this.isTransparent ? ' footer-transparent' : '';
71
+ this.wrapperClasses = `${this.baseWrapperClasses}${stickyBottomCls}${transparentCls}`;
72
+ }
73
+ }
@@ -0,0 +1,2 @@
1
+ export * from './footer-copyright.directive';
2
+ export * from './footer.component';
@@ -0,0 +1 @@
1
+ export type HeaderStyleType = 'light' | 'dark' | 'transparent';
@@ -0,0 +1,163 @@
1
+ <div class="container-xl">
2
+ <button class="navbar-toggler" type="button">
3
+ <span class="navbar-toggler-icon"></span>
4
+ </button>
5
+ <div class="navbar-nav flex-row order-md-last">
6
+ <div class="d-none d-md-flex me-3">
7
+ <div class="nav-item">
8
+ <upd-link [isNavigation]="true" [customClasses]="['px-0']" (clicked)="switchTheme()">
9
+ <upd-icon [tablerIcon]="nextThemeIcon"></upd-icon>
10
+ </upd-link>
11
+ </div>
12
+ <div *ngIf="showLanguageSwitcher" class="nav-item">
13
+ <upd-link [isNavigation]="true" [customClasses]="['px-0']" (clicked)="switchLanguage()">
14
+ <upd-icon tablerIcon="flag"></upd-icon>
15
+ </upd-link>
16
+ </div>
17
+ <div *ngIf="showNotifications" class="nav-item dropdown d-none d-md-flex">
18
+ <upd-link [isNavigation]="true" [customClasses]="['px-0']" (clicked)="openNotifications()">
19
+ <upd-icon [tablerIcon]="currentNotificationsIcon"></upd-icon>
20
+ <span *ngIf="hasNewNotifications" class="badge bg-red"></span>
21
+ </upd-link>
22
+ <div class="dropdown-menu dropdown-menu-arrow dropdown-menu-end dropdown-menu-card">
23
+ <div class="card">
24
+ <div class="card-header">
25
+ <h3 class="card-title">Last updates</h3>
26
+ </div>
27
+ <div class="list-group list-group-flush list-group-hoverable">
28
+ <div class="list-group-item">
29
+ <div class="row align-items-center">
30
+ <div class="col-auto"><span
31
+ class="status-dot status-dot-animated bg-red d-block"></span></div>
32
+ <div class="col text-truncate">
33
+ <a href="#" class="text-body d-block">Example 1</a>
34
+ <div class="d-block text-muted text-truncate mt-n1">
35
+ Change deprecated html tags to text decoration classes (#29604)
36
+ </div>
37
+ </div>
38
+ <div class="col-auto">
39
+ <a href="#" class="list-group-item-actions">
40
+ <!-- Download SVG icon from http://tabler-icons.io/i/star -->
41
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon text-muted"
42
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
43
+ stroke="currentColor" fill="none" stroke-linecap="round"
44
+ stroke-linejoin="round">
45
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
46
+ <path
47
+ d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"/>
48
+ </svg>
49
+ </a>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="list-group-item">
54
+ <div class="row align-items-center">
55
+ <div class="col-auto"><span class="status-dot d-block"></span></div>
56
+ <div class="col text-truncate">
57
+ <a href="#" class="text-body d-block">Example 2</a>
58
+ <div class="d-block text-muted text-truncate mt-n1">
59
+ justify-content:between ⇒ justify-content:space-between (#29734)
60
+ </div>
61
+ </div>
62
+ <div class="col-auto">
63
+ <a href="#" class="list-group-item-actions show">
64
+ <!-- Download SVG icon from http://tabler-icons.io/i/star -->
65
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon text-yellow"
66
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
67
+ stroke="currentColor" fill="none" stroke-linecap="round"
68
+ stroke-linejoin="round">
69
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
70
+ <path
71
+ d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"/>
72
+ </svg>
73
+ </a>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ <div class="list-group-item">
78
+ <div class="row align-items-center">
79
+ <div class="col-auto"><span class="status-dot d-block"></span></div>
80
+ <div class="col text-truncate">
81
+ <a href="#" class="text-body d-block">Example 3</a>
82
+ <div class="d-block text-muted text-truncate mt-n1">
83
+ Update change-version.js (#29736)
84
+ </div>
85
+ </div>
86
+ <div class="col-auto">
87
+ <a href="#" class="list-group-item-actions">
88
+ <!-- Download SVG icon from http://tabler-icons.io/i/star -->
89
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon text-muted"
90
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
91
+ stroke="currentColor" fill="none" stroke-linecap="round"
92
+ stroke-linejoin="round">
93
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
94
+ <path
95
+ d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"/>
96
+ </svg>
97
+ </a>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ <div class="list-group-item">
102
+ <div class="row align-items-center">
103
+ <div class="col-auto"><span
104
+ class="status-dot status-dot-animated bg-green d-block"></span></div>
105
+ <div class="col text-truncate">
106
+ <a href="#" class="text-body d-block">Example 4</a>
107
+ <div class="d-block text-muted text-truncate mt-n1">
108
+ Regenerate package-lock.json (#29730)
109
+ </div>
110
+ </div>
111
+ <div class="col-auto">
112
+ <a href="#" class="list-group-item-actions">
113
+ <!-- Download SVG icon from http://tabler-icons.io/i/star -->
114
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon text-muted"
115
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
116
+ stroke="currentColor" fill="none" stroke-linecap="round"
117
+ stroke-linejoin="round">
118
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
119
+ <path
120
+ d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"/>
121
+ </svg>
122
+ </a>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ <div *ngIf="showUserMenu" class="nav-item dropdown">
132
+ <a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown"
133
+ aria-label="Open user menu">
134
+ <!--<span class="avatar avatar-sm" style="background-image: url(./static/avatars/000m.jpg)"></span>-->
135
+ <span class="avatar avatar-sm"></span>
136
+ <div class="d-none d-xl-block ps-2">
137
+ <div>Eros Stein</div>
138
+ <div class="mt-1 small text-muted">Administrator</div>
139
+ </div>
140
+ </a>
141
+ <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
142
+ <a href="#" class="dropdown-item">Status</a>
143
+ <a href="./profile.html" class="dropdown-item">Profile</a>
144
+ <a href="#" class="dropdown-item">Feedback</a>
145
+ <div class="dropdown-divider"></div>
146
+ <a href="./settings.html" class="dropdown-item">Settings</a>
147
+ <a href="./sign-in.html" class="dropdown-item">Logout</a>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ <div *ngIf="showSearchBar" class="collapse navbar-collapse">
152
+ <div>
153
+ <form autocomplete="off" novalidate>
154
+ <div class="input-icon">
155
+ <span class="input-icon-addon">
156
+ <upd-icon tablerIcon="search"></upd-icon>
157
+ </span>
158
+ <input type="text" value="" class="form-control" placeholder="Search…">
159
+ </div>
160
+ </form>
161
+ </div>
162
+ </div>
163
+ </div>
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { HeaderComponent } from './header.component';
4
+
5
+ describe('HeaderComponent', () => {
6
+ let component: HeaderComponent;
7
+ let fixture: ComponentFixture<HeaderComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ HeaderComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(HeaderComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });