otimus-library 0.2.48 → 0.2.50

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 (201) hide show
  1. package/esm2022/lib/components/oc-accordion/oc-accordion.component.mjs +48 -0
  2. package/esm2022/lib/components/oc-accordion-item/oc-accordion-item.component.mjs +35 -0
  3. package/esm2022/lib/components/oc-autocomplete/oc-autocomplete.component.mjs +275 -0
  4. package/esm2022/lib/components/oc-badge/oc-badge.component.mjs +30 -0
  5. package/esm2022/lib/components/oc-checkbox/oc-checkbox.component.mjs +133 -0
  6. package/esm2022/lib/components/oc-chip/oc-chip.component.mjs +45 -0
  7. package/esm2022/lib/components/oc-filter/oc-filter.component.mjs +39 -0
  8. package/esm2022/lib/components/oc-input/oc-input.component.mjs +97 -0
  9. package/esm2022/lib/components/oc-key-value/oc-key-value.component.mjs +29 -0
  10. package/esm2022/lib/components/oc-log/oc-log.component.mjs +22 -0
  11. package/esm2022/lib/components/oc-menu/oc-menu.component.mjs +81 -0
  12. package/esm2022/lib/components/oc-modal/oc-modal.component.mjs +85 -0
  13. package/esm2022/lib/components/oc-modal-footer/oc-modal-footer.component.mjs +23 -0
  14. package/esm2022/lib/components/oc-not-found/oc-not-found.component.mjs +11 -0
  15. package/esm2022/lib/components/oc-pagination/oc-pagination.component.mjs +49 -0
  16. package/esm2022/lib/components/oc-profile/oc-profile.component.mjs +38 -0
  17. package/esm2022/lib/components/oc-step/oc-step.component.mjs +49 -0
  18. package/esm2022/lib/components/oc-stepper/oc-stepper.component.mjs +90 -0
  19. package/esm2022/lib/components/oc-tab/oc-tab.component.mjs +20 -0
  20. package/esm2022/lib/components/oc-tabs/oc-tabs.component.mjs +42 -0
  21. package/esm2022/lib/components/oc-toast/oc-toast.component.mjs +17 -0
  22. package/esm2022/lib/components/oc-toggle/oc-toggle.component.mjs +34 -0
  23. package/esm2022/lib/directives/oc-tooltip/oc-tooltip.directive.mjs +117 -0
  24. package/esm2022/lib/interfaces/oc-autocomplete.mjs +2 -0
  25. package/esm2022/lib/interfaces/oc-menu.mjs +2 -0
  26. package/esm2022/lib/interfaces/oc-style-theme.mjs +2 -0
  27. package/esm2022/lib/interfaces/oc-toast.mjs +2 -0
  28. package/esm2022/lib/otimus-library.component.mjs +19 -0
  29. package/esm2022/lib/otimus-library.service.mjs +14 -0
  30. package/esm2022/lib/services/internationalization.service.mjs +68 -0
  31. package/esm2022/lib/services/oc-toast.service.mjs +81 -0
  32. package/esm2022/lib/services/style-theme.service.mjs +21 -0
  33. package/esm2022/otimus-library.mjs +5 -0
  34. package/esm2022/public-api.mjs +30 -0
  35. package/fesm2022/otimus-library.mjs +1513 -0
  36. package/fesm2022/otimus-library.mjs.map +1 -0
  37. package/index.d.ts +5 -0
  38. package/lib/components/oc-accordion/oc-accordion.component.d.ts +18 -0
  39. package/lib/components/oc-accordion-item/oc-accordion-item.component.d.ts +12 -0
  40. package/lib/components/oc-autocomplete/oc-autocomplete.component.d.ts +68 -0
  41. package/lib/components/oc-badge/oc-badge.component.d.ts +11 -0
  42. package/lib/components/oc-checkbox/oc-checkbox.component.d.ts +35 -0
  43. package/lib/components/oc-chip/oc-chip.component.d.ts +14 -0
  44. package/lib/components/oc-filter/oc-filter.component.d.ts +17 -0
  45. package/lib/components/oc-input/oc-input.component.d.ts +31 -0
  46. package/lib/components/oc-key-value/oc-key-value.component.d.ts +14 -0
  47. package/lib/components/oc-log/oc-log.component.d.ts +7 -0
  48. package/lib/components/oc-menu/oc-menu.component.d.ts +20 -0
  49. package/lib/components/oc-modal/oc-modal.component.d.ts +30 -0
  50. package/lib/components/oc-modal-footer/oc-modal-footer.component.d.ts +8 -0
  51. package/lib/components/oc-not-found/oc-not-found.component.d.ts +5 -0
  52. package/lib/components/oc-pagination/oc-pagination.component.d.ts +14 -0
  53. package/lib/components/oc-profile/oc-profile.component.d.ts +12 -0
  54. package/lib/components/oc-step/oc-step.component.d.ts +22 -0
  55. package/lib/components/oc-stepper/oc-stepper.component.d.ts +24 -0
  56. package/lib/components/oc-tab/oc-tab.component.d.ts +8 -0
  57. package/lib/components/oc-tabs/oc-tabs.component.d.ts +18 -0
  58. package/lib/components/oc-toast/oc-toast.component.d.ts +8 -0
  59. package/lib/components/oc-toggle/oc-toggle.component.d.ts +12 -0
  60. package/lib/directives/oc-tooltip/oc-tooltip.directive.d.ts +20 -0
  61. package/lib/interfaces/oc-autocomplete.d.ts +5 -0
  62. package/lib/interfaces/oc-menu.d.ts +9 -0
  63. package/lib/interfaces/oc-style-theme.d.ts +2 -0
  64. package/lib/interfaces/oc-toast.d.ts +8 -0
  65. package/lib/otimus-library.component.d.ts +5 -0
  66. package/lib/otimus-library.service.d.ts +6 -0
  67. package/lib/services/internationalization.service.d.ts +17 -0
  68. package/lib/services/oc-toast.service.d.ts +14 -0
  69. package/lib/services/style-theme.service.d.ts +8 -0
  70. package/package.json +13 -4
  71. package/public-api.d.ts +26 -0
  72. package/ng-package.json +0 -12
  73. package/src/assets/images/loading.svg +0 -0
  74. package/src/assets/images/not-found-bg.jpg +0 -0
  75. package/src/lib/components/oc-accordion/oc-accordion.component.html +0 -3
  76. package/src/lib/components/oc-accordion/oc-accordion.component.scss +0 -4
  77. package/src/lib/components/oc-accordion/oc-accordion.component.ts +0 -44
  78. package/src/lib/components/oc-accordion-item/oc-accordion-item.component.html +0 -19
  79. package/src/lib/components/oc-accordion-item/oc-accordion-item.component.scss +0 -86
  80. package/src/lib/components/oc-accordion-item/oc-accordion-item.component.ts +0 -27
  81. package/src/lib/components/oc-accordion-item/styles/oc-accordion-item.shui-component.scss +0 -41
  82. package/src/lib/components/oc-autocomplete/oc-autocomplete.component.html +0 -66
  83. package/src/lib/components/oc-autocomplete/oc-autocomplete.component.scss +0 -157
  84. package/src/lib/components/oc-autocomplete/oc-autocomplete.component.ts +0 -277
  85. package/src/lib/components/oc-badge/oc-badge.component.html +0 -7
  86. package/src/lib/components/oc-badge/oc-badge.component.scss +0 -125
  87. package/src/lib/components/oc-badge/oc-badge.component.ts +0 -22
  88. package/src/lib/components/oc-checkbox/oc-checkbox.component.html +0 -30
  89. package/src/lib/components/oc-checkbox/oc-checkbox.component.scss +0 -103
  90. package/src/lib/components/oc-checkbox/oc-checkbox.component.ts +0 -132
  91. package/src/lib/components/oc-checkbox/styles/oc-checkbox.shui-component.scss +0 -21
  92. package/src/lib/components/oc-chip/oc-chip.component.html +0 -20
  93. package/src/lib/components/oc-chip/oc-chip.component.scss +0 -102
  94. package/src/lib/components/oc-chip/oc-chip.component.ts +0 -32
  95. package/src/lib/components/oc-filter/oc-filter.component.html +0 -22
  96. package/src/lib/components/oc-filter/oc-filter.component.scss +0 -78
  97. package/src/lib/components/oc-filter/oc-filter.component.spec.ts +0 -23
  98. package/src/lib/components/oc-filter/oc-filter.component.ts +0 -30
  99. package/src/lib/components/oc-input/oc-input.component.html +0 -21
  100. package/src/lib/components/oc-input/oc-input.component.scss +0 -3
  101. package/src/lib/components/oc-input/oc-input.component.ts +0 -100
  102. package/src/lib/components/oc-key-value/oc-key-value.component.html +0 -12
  103. package/src/lib/components/oc-key-value/oc-key-value.component.scss +0 -26
  104. package/src/lib/components/oc-key-value/oc-key-value.component.ts +0 -23
  105. package/src/lib/components/oc-key-value/styles/oc-key-value.shui-component.scss +0 -26
  106. package/src/lib/components/oc-log/oc-log.component.html +0 -18
  107. package/src/lib/components/oc-log/oc-log.component.scss +0 -61
  108. package/src/lib/components/oc-log/oc-log.component.ts +0 -15
  109. package/src/lib/components/oc-menu/oc-menu.component.html +0 -31
  110. package/src/lib/components/oc-menu/oc-menu.component.scss +0 -101
  111. package/src/lib/components/oc-menu/oc-menu.component.ts +0 -84
  112. package/src/lib/components/oc-modal/oc-modal.component.html +0 -54
  113. package/src/lib/components/oc-modal/oc-modal.component.scss +0 -204
  114. package/src/lib/components/oc-modal/oc-modal.component.ts +0 -82
  115. package/src/lib/components/oc-modal/styles/oc-modal.shui-component.scss +0 -3
  116. package/src/lib/components/oc-modal-footer/oc-modal-footer.component.html +0 -11
  117. package/src/lib/components/oc-modal-footer/oc-modal-footer.component.scss +0 -27
  118. package/src/lib/components/oc-modal-footer/oc-modal-footer.component.ts +0 -15
  119. package/src/lib/components/oc-not-found/oc-not-found.component.html +0 -14
  120. package/src/lib/components/oc-not-found/oc-not-found.component.scss +0 -153
  121. package/src/lib/components/oc-not-found/oc-not-found.component.spec.ts +0 -23
  122. package/src/lib/components/oc-not-found/oc-not-found.component.ts +0 -12
  123. package/src/lib/components/oc-pagination/oc-pagination.component.html +0 -32
  124. package/src/lib/components/oc-pagination/oc-pagination.component.scss +0 -80
  125. package/src/lib/components/oc-pagination/oc-pagination.component.ts +0 -46
  126. package/src/lib/components/oc-profile/oc-profile.component.html +0 -17
  127. package/src/lib/components/oc-profile/oc-profile.component.scss +0 -80
  128. package/src/lib/components/oc-profile/oc-profile.component.ts +0 -38
  129. package/src/lib/components/oc-step/oc-step.component.html +0 -32
  130. package/src/lib/components/oc-step/oc-step.component.scss +0 -106
  131. package/src/lib/components/oc-step/oc-step.component.ts +0 -39
  132. package/src/lib/components/oc-step/styles/oc-step.shui-component.scss +0 -52
  133. package/src/lib/components/oc-stepper/oc-stepper.component.html +0 -3
  134. package/src/lib/components/oc-stepper/oc-stepper.component.scss +0 -9
  135. package/src/lib/components/oc-stepper/oc-stepper.component.ts +0 -86
  136. package/src/lib/components/oc-tab/oc-tab.component.html +0 -3
  137. package/src/lib/components/oc-tab/oc-tab.component.scss +0 -0
  138. package/src/lib/components/oc-tab/oc-tab.component.ts +0 -15
  139. package/src/lib/components/oc-table/oc-table.component.html +0 -62
  140. package/src/lib/components/oc-table/oc-table.component.scss +0 -2
  141. package/src/lib/components/oc-table/oc-table.component.ts +0 -51
  142. package/src/lib/components/oc-tabs/oc-tabs.component.html +0 -13
  143. package/src/lib/components/oc-tabs/oc-tabs.component.scss +0 -47
  144. package/src/lib/components/oc-tabs/oc-tabs.component.ts +0 -46
  145. package/src/lib/components/oc-tabs/styles/oc-tabs.shui-component.scss +0 -25
  146. package/src/lib/components/oc-toast/oc-toast.component.html +0 -46
  147. package/src/lib/components/oc-toast/oc-toast.component.scss +0 -133
  148. package/src/lib/components/oc-toast/oc-toast.component.ts +0 -15
  149. package/src/lib/components/oc-toggle/oc-toggle.component.html +0 -4
  150. package/src/lib/components/oc-toggle/oc-toggle.component.scss +0 -73
  151. package/src/lib/components/oc-toggle/oc-toggle.component.spec.ts +0 -23
  152. package/src/lib/components/oc-toggle/oc-toggle.component.ts +0 -32
  153. package/src/lib/directives/oc-tooltip/oc-tooltip.directive.ts +0 -108
  154. package/src/lib/interfaces/internal/languages.ts +0 -16
  155. package/src/lib/interfaces/oc-autocomplete.ts +0 -6
  156. package/src/lib/interfaces/oc-menu.ts +0 -10
  157. package/src/lib/interfaces/oc-style-theme.ts +0 -3
  158. package/src/lib/interfaces/oc-table.ts +0 -12
  159. package/src/lib/interfaces/oc-toast.ts +0 -8
  160. package/src/lib/otimus-library.component.ts +0 -16
  161. package/src/lib/otimus-library.service.ts +0 -9
  162. package/src/lib/services/internationalization.service.ts +0 -73
  163. package/src/lib/services/oc-toast.service.ts +0 -107
  164. package/src/lib/services/style-theme.service.ts +0 -19
  165. package/src/public-api.ts +0 -30
  166. package/tsconfig.lib.json +0 -14
  167. package/tsconfig.lib.prod.json +0 -10
  168. package/tsconfig.spec.json +0 -14
  169. /package/{src/assets → assets}/fonts/siemens/SH-Bree-Headline-Oblique.woff +0 -0
  170. /package/{src/assets → assets}/fonts/siemens/SH-Bree-Headline-Oblique.woff2 +0 -0
  171. /package/{src/assets → assets}/fonts/siemens/SH-Bree-Headline-Regular.woff +0 -0
  172. /package/{src/assets → assets}/fonts/siemens/SH-Bree-Headline-Regular.woff2 +0 -0
  173. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Black.woff +0 -0
  174. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Black.woff2 +0 -0
  175. /package/{src/assets → assets}/fonts/siemens/SiemensSans-BlackItalic.woff +0 -0
  176. /package/{src/assets → assets}/fonts/siemens/SiemensSans-BlackItalic.woff2 +0 -0
  177. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Bold.woff +0 -0
  178. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Bold.woff2 +0 -0
  179. /package/{src/assets → assets}/fonts/siemens/SiemensSans-BoldItalic.woff +0 -0
  180. /package/{src/assets → assets}/fonts/siemens/SiemensSans-BoldItalic.woff2 +0 -0
  181. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Italic.woff +0 -0
  182. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Italic.woff2 +0 -0
  183. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Roman.woff +0 -0
  184. /package/{src/assets → assets}/fonts/siemens/SiemensSans-Roman.woff2 +0 -0
  185. /package/{src/styles → styles}/colors.scss +0 -0
  186. /package/{src/styles → styles}/components/buttons/buttons.scss +0 -0
  187. /package/{src/styles → styles}/components/buttons/buttons.shui.scss +0 -0
  188. /package/{src/styles → styles}/components/index.scss +0 -0
  189. /package/{src/styles → styles}/components/inputs/inputs.scss +0 -0
  190. /package/{src/styles → styles}/components/inputs/inputs.shui.scss +0 -0
  191. /package/{src/styles → styles}/components/table/table.scss +0 -0
  192. /package/{src/styles → styles}/components/table/table.shui.scss +0 -0
  193. /package/{src/styles → styles}/components/tooltip.scss +0 -0
  194. /package/{src/styles → styles}/grid.scss +0 -0
  195. /package/{src/styles → styles}/patterns/shui/colors.shui.scss +0 -0
  196. /package/{src/styles → styles}/patterns/shui/fonts.shui.scss +0 -0
  197. /package/{src/styles → styles}/patterns/shui/index.shui.scss +0 -0
  198. /package/{src/styles → styles}/patterns/shui/variables.shui.scss +0 -0
  199. /package/{src/styles → styles}/states.scss +0 -0
  200. /package/{src/styles → styles}/styles.scss +0 -0
  201. /package/{src/styles → styles}/variables.scss +0 -0
@@ -1,82 +0,0 @@
1
- import { CommonModule } from '@angular/common'
2
- import {
3
- AfterViewInit,
4
- ChangeDetectorRef,
5
- Component,
6
- ElementRef,
7
- EventEmitter,
8
- Input,
9
- Output,
10
- ViewEncapsulation,
11
- } from '@angular/core'
12
- import { OcStyleThemeType } from '../../interfaces/oc-style-theme'
13
- import { StyleThemeService } from '../../services/style-theme.service'
14
-
15
- @Component({
16
- selector: 'oc-modal',
17
- standalone: true,
18
- imports: [CommonModule],
19
- templateUrl: './oc-modal.component.html',
20
- styleUrl: './oc-modal.component.scss',
21
- encapsulation: ViewEncapsulation.None,
22
- })
23
- export class OcModalComponent implements AfterViewInit {
24
- constructor(
25
- private elRef: ElementRef,
26
- private styleThemeService: StyleThemeService,
27
- private cdr: ChangeDetectorRef
28
- ) {}
29
-
30
- @Input() ocClose: boolean = true
31
- @Input() ocTitle: string = ''
32
- @Input() ocSize: 'small' | 'medium' | 'large' | 'screen' = 'medium'
33
- @Input() ocBgColor?: string
34
- @Input() ocWidth: string = ''
35
- @Input() ocMaxWidth: string = ''
36
- @Input() ocStyle: OcStyleThemeType = 'otimus'
37
- @Input() ocLoading: boolean = false
38
- @Output() ocOnClose = new EventEmitter<any>()
39
- @Output() ocOnOpen = new EventEmitter<any>()
40
-
41
- @Input() isOpen: boolean = false
42
- closing: boolean = false
43
-
44
- ngAfterViewInit(): void {
45
- this.ocStyle = this.styleThemeService.getStyleTheme() || this.ocStyle
46
- }
47
-
48
- open(): void {
49
- this.isOpen = true
50
- this.elRef.nativeElement.ownerDocument.body.classList.add('disabled-scroll')
51
- this.ocOnOpen.emit(this.isOpen)
52
- }
53
-
54
- close(): void {
55
- this.closing = true
56
- setTimeout(() => {
57
- this.isOpen = false
58
- this.closing = false
59
-
60
- if (this.ocOnClose) {
61
- this.ocOnClose.emit(this.isOpen)
62
- }
63
-
64
- this.elRef.nativeElement.ownerDocument.body.classList.remove('disabled-scroll')
65
- this.cdr.detectChanges()
66
- }, 100)
67
- }
68
-
69
- protected getModalStyles(): { [key: string]: string } {
70
- const styles: { [key: string]: string } = {}
71
- if (this.ocBgColor) {
72
- styles['background-color'] = this.ocBgColor
73
- }
74
- if (this.ocWidth) {
75
- styles['width'] = this.ocWidth
76
- }
77
- if (this.ocMaxWidth) {
78
- styles['max-width'] = this.ocMaxWidth
79
- }
80
- return styles
81
- }
82
- }
@@ -1,3 +0,0 @@
1
- .shui-modal .oc-modal {
2
- border-radius: 0 ;
3
- }
@@ -1,11 +0,0 @@
1
- <footer class="oc-modal-footer" [ngClass]="{
2
- 'left': ocSide === 'left',
3
- 'right': ocSide === 'right',
4
- 'fixed': ocFixed
5
- }"
6
- [ngStyle]="{
7
- 'background-color': ocBgColor
8
- }"
9
- >
10
- <ng-content></ng-content>
11
- </footer>
@@ -1,27 +0,0 @@
1
- @use '../../../styles/variables.scss';
2
-
3
- .oc-modal-footer{
4
- display: flex;
5
- align-items: center;
6
- gap: 1rem;
7
-
8
- width: 100%;
9
-
10
- margin-top: 1.5rem;
11
-
12
- padding-bottom: 2px;
13
- }
14
-
15
- .left{
16
- justify-content: flex-start;
17
- }
18
-
19
- .right{
20
- justify-content: flex-end;
21
- }
22
-
23
- .fixed {
24
- position: sticky;
25
- bottom: 0;
26
- background-color: variables.$color-gray-6;
27
- }
@@ -1,15 +0,0 @@
1
- import { CommonModule } from '@angular/common'
2
- import { Component, Input } from '@angular/core'
3
-
4
- @Component({
5
- selector: 'oc-modal-footer',
6
- standalone: true,
7
- imports: [CommonModule],
8
- templateUrl: './oc-modal-footer.component.html',
9
- styleUrl: './oc-modal-footer.component.scss',
10
- })
11
- export class OcModalFooterComponent {
12
- @Input() ocSide: 'left' | 'right' = 'right'
13
- @Input() ocBgColor?: string
14
- @Input() ocFixed: boolean = true
15
- }
@@ -1,14 +0,0 @@
1
- <main class="oc-not-found">
2
- <div class="content">
3
- <div class="main-title">
4
- <h1>404</h1>
5
- <span class="s-1">?</span>
6
- <span class="s-2">?</span>
7
- <span class="s-3">?</span>
8
- </div>
9
- <div class="not-found-msg">
10
- <h2>Página não encontrada</h2>
11
- <p>Não conseguimos encontrar a página que você está procurando</p>
12
- </div>
13
- </div>
14
- </main>
@@ -1,153 +0,0 @@
1
- @use '../../../styles/variables.scss';
2
-
3
- .oc-not-found{
4
- width: 100vw;
5
- height: 100vh;
6
-
7
- position: fixed;
8
- top: 0;
9
- left: 0;
10
-
11
- margin: 0;
12
- padding: 0;
13
-
14
- z-index: 50;
15
-
16
- background-repeat: no-repeat;
17
- background-image: url(../../../assets/images/not-found-bg.jpg);
18
- background-size: cover;
19
- }
20
-
21
- .content{
22
- width: 100%;
23
- height: 100%;
24
-
25
- display: flex;
26
- align-items: center;
27
- justify-content: center;
28
- gap: 1.5rem;
29
-
30
- padding: 2rem;
31
-
32
- .not-found-msg{
33
- display: flex;
34
- flex-direction: column;
35
- gap: .5rem;
36
-
37
- h2{
38
- margin: 0;
39
- padding: 0;
40
- font-size: 1.75rem;
41
- color: variables.$color-brand-dp-1;
42
- }
43
-
44
- p{
45
- color: variables.$color-gray-3;
46
- margin: 0;
47
- padding: 0;
48
- max-width: 275px;
49
- font-weight: 150%;
50
-
51
- font-family: 'Ubuntu', sans-serif !important;
52
- }
53
- }
54
-
55
- .main-title {
56
- position: relative;
57
-
58
- h1{
59
- font-family: 'Ubuntu', sans-serif !important;
60
- font-size: 5.5rem;
61
- z-index: 5;
62
-
63
- background: linear-gradient(180deg, #5505A2 0%, #9976BB 100%);
64
- background-clip: text;
65
- -webkit-background-clip: text;
66
- -webkit-text-fill-color: transparent;
67
-
68
- color: variables.$color-brand-p-1;
69
- }
70
-
71
- span{
72
- position: absolute;
73
- color: variables.$color-brand-p-1;
74
- font-weight: 900;
75
- font-size: 3rem;
76
- font-family: 'Ubuntu', sans-serif !important;
77
-
78
- }
79
- .s-1{
80
- top: 3rem;
81
- transform: rotate(-25deg);
82
- z-index: -1;
83
-
84
- animation: bouncing 4s ease infinite;
85
- }
86
-
87
- .s-2{
88
- top: 2rem;
89
- left: 3rem;
90
- font-size: 4rem;
91
- transform: rotate(-25deg);
92
-
93
- animation: bouncing-s-2 6s ease infinite;
94
- }
95
-
96
- .s-3{
97
- top: 4rem;
98
- right: 0;
99
- font-size: 2.8rem;
100
- transform: rotate(-25deg);
101
- animation: bouncing-s-3 9s ease infinite;
102
- }
103
- }
104
- }
105
-
106
- @keyframes bouncing {
107
- 0%{
108
- transform: translateY(0);
109
- }
110
- 50%{
111
- transform: translateY(10px) rotate(10deg);
112
- }
113
- 100%{
114
- transform: translateY(0) rotate(0);
115
- }
116
- }
117
-
118
- @media (max-width: 720px) {
119
- .content{
120
- flex-direction: column;
121
-
122
- .not-found-msg{
123
- justify-content: center;
124
- h4, p {
125
- text-align: center;
126
- }
127
- }
128
- }
129
- }
130
-
131
- @keyframes bouncing-s-2 {
132
- 0%{
133
- transform: translateY(0);
134
- }
135
- 50%{
136
- transform: translateY(15px) rotate(-18deg);
137
- }
138
- 100%{
139
- transform: translateY(0) rotate(0);
140
- }
141
- }
142
-
143
- @keyframes bouncing-s-3 {
144
- 0%{
145
- transform: translateY(0);
146
- }
147
- 50%{
148
- transform: translateY(15px) rotate(7deg);
149
- }
150
- 100%{
151
- transform: translateY(0) rotate(0);
152
- }
153
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { OcNotFoundComponent } from './oc-not-found.component';
4
-
5
- describe('OcNotFoundComponent', () => {
6
- let component: OcNotFoundComponent;
7
- let fixture: ComponentFixture<OcNotFoundComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [OcNotFoundComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(OcNotFoundComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,12 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'oc-not-found',
5
- standalone: true,
6
- imports: [],
7
- templateUrl: './oc-not-found.component.html',
8
- styleUrl: './oc-not-found.component.scss'
9
- })
10
- export class OcNotFoundComponent {
11
-
12
- }
@@ -1,32 +0,0 @@
1
- <div class="oc-pagination">
2
- <p class="oc-pagination-text">
3
- Página
4
- <span>{{ocPage}}</span>
5
- de
6
- <span>{{ocMaxPage}}</span>
7
- </p>
8
- <div class="oc-pagination-buttons">
9
- <button (click)="firstPage()" [ngClass]="{
10
- disabled: ocPage === 1
11
- }">
12
- <span class="material-symbols-outlined">keyboard_double_arrow_left</span>
13
- </button>
14
- <button (click)="decrementPage()" [ngClass]="{
15
- disabled: ocPage === 1
16
- }">
17
- <span class="material-symbols-outlined">navigate_before</span>
18
- </button>
19
- <button (click)="incrementPage()" [ngClass]="{
20
- disabled: ocPage === ocMaxPage
21
- }">
22
- <span class="material-symbols-outlined">navigate_next</span>
23
- </button>
24
- <button (click)="lastPage()" [ngClass]="{
25
- disabled: ocPage === ocMaxPage
26
- }">
27
- <span class="material-symbols-outlined">
28
- keyboard_double_arrow_right
29
- </span>
30
- </button>
31
- </div>
32
- </div>
@@ -1,80 +0,0 @@
1
- @use '../../../styles/variables.scss';
2
-
3
-
4
- .oc-pagination{
5
- display: flex;
6
- align-items: center;
7
- justify-content: flex-end;
8
- gap: 1rem;
9
-
10
- border: none;
11
- overflow: hidden;
12
-
13
- .oc-pagination-buttons{
14
- display: flex;
15
- align-items: center;
16
- gap: 0;
17
-
18
- border: 2px solid variables.$color-gray-5;
19
- border-radius: .5rem;
20
-
21
- transition: .3s ease;
22
-
23
- &:hover{
24
- border-color: variables.$color-gray-4;
25
- }
26
-
27
- button{
28
- margin: 0;
29
-
30
- transition: .15s ease;
31
-
32
- border-radius: .5rem;
33
-
34
- cursor: pointer;
35
- border: none;
36
-
37
- height: 3rem;
38
- padding: 0 1rem;
39
-
40
- display: flex;
41
- align-items: center;
42
- justify-content: center;
43
-
44
- background-color: transparent;
45
- color: variables.$color-gray-2;
46
- font-weight: 700;
47
-
48
- &:hover{
49
- background-color: variables.$color-gray-5;
50
- color: variables.$color-brand-p-3;
51
- }
52
-
53
- &:active{
54
- transform: translateY(2px);
55
- }
56
- }
57
- }
58
-
59
- .oc-pagination-text{
60
- font-weight: 500;
61
- font-size: 1rem;
62
-
63
- margin: 0;
64
-
65
- color: variables.$color-gray-3;
66
-
67
- span{
68
- font-weight: 700;
69
- color: variables.$color-brand-p-1;
70
-
71
- }
72
- }
73
- }
74
-
75
- .disabled{
76
- cursor: not-allowed !important;
77
- opacity: 0.4;
78
-
79
- pointer-events: none;
80
- }
@@ -1,46 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
3
-
4
- @Component({
5
- selector: 'oc-pagination',
6
- standalone: true,
7
- imports: [CommonModule],
8
- templateUrl: './oc-pagination.component.html',
9
- styleUrl: './oc-pagination.component.scss'
10
- })
11
- export class OcPaginationComponent implements OnInit{
12
- @Input() ocPage: number = 1
13
- @Input() ocMaxPage?: number
14
- @Output() ocGetPage = new EventEmitter<number>()
15
-
16
- ngOnInit(): void {
17
- if(!this.ocMaxPage) this.ocMaxPage = this.ocPage
18
- }
19
-
20
- firstPage() {
21
- this.ocPage = 1
22
-
23
- this.ocGetPage.emit(this.ocPage)
24
- }
25
-
26
- decrementPage() {
27
- if(this.ocPage <= 1) return
28
- this.ocPage--
29
-
30
- this.ocGetPage.emit(this.ocPage)
31
- }
32
-
33
- incrementPage() {
34
- if(!this.ocMaxPage || this.ocPage >= this.ocMaxPage) return
35
- this.ocPage++
36
-
37
- this.ocGetPage.emit(this.ocPage)
38
- }
39
-
40
- lastPage() {
41
- if(!this.ocMaxPage) return
42
- this.ocPage = this.ocMaxPage
43
-
44
- this.ocGetPage.emit(this.ocPage)
45
- }
46
- }
@@ -1,17 +0,0 @@
1
- <div class="oc-profile"
2
- [ngClass]="{
3
- small: ocSize === 'small',
4
- tiny: ocSize === 'tiny',
5
- large: ocSize === 'large'
6
- }"
7
- >
8
- <div class="content">
9
- @if(ocProfilePic){
10
- <img [src]="ocProfilePic" [alt]="ocUserName || 'Foto de perfil do usuário'">
11
- }@else {
12
- <span>
13
- {{nameInitials}}
14
- </span>
15
- }
16
- </div>
17
- </div>
@@ -1,80 +0,0 @@
1
- @use '../../../styles/variables.scss';
2
-
3
- .oc-profile{
4
- transform: rotate(45deg);
5
-
6
- width: 50px;
7
- height: 50px;
8
-
9
- padding: 0;
10
- margin: 0;
11
-
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
-
16
- background-color: variables.$color-brand-p-1;
17
- border-radius: .7rem;
18
-
19
- overflow: hidden;
20
-
21
- &.small{
22
- width: 40px;
23
- height: 40px;
24
- border-radius: .55rem;
25
-
26
- .content{
27
- font-size: 1.2rem;
28
- }
29
- }
30
-
31
- &.tiny{
32
- width: 30px;
33
- height: 30px;
34
- border-radius: .4rem;
35
-
36
- .content{
37
- font-size: 0.9rem;
38
- }
39
- }
40
-
41
- &.large{
42
- width: 60px;
43
- height: 60px;
44
-
45
- .content{
46
- font-size: 2rem;
47
- }
48
- }
49
-
50
- .content{
51
- transform: rotate(-45deg);
52
- color: variables.$color-gray-6;
53
- font-weight: 500;
54
- font-size: 1.5rem;
55
- user-select: none;
56
-
57
- display: flex;
58
- align-items: center;
59
- justify-content: center;
60
-
61
- &:hover{
62
- img{
63
- transform: scale(2.1);
64
- }
65
- }
66
- }
67
-
68
- img{
69
- max-width: 100%;
70
- max-height: 100%;
71
-
72
- // max-height: 64px;
73
- // max-width: 64px;
74
-
75
- transform: scale(1.95);
76
-
77
- transition: .3s ease;
78
- object-fit: cover;
79
- }
80
- }
@@ -1,38 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
3
-
4
- @Component({
5
- selector: 'oc-profile',
6
- standalone: true,
7
- imports: [CommonModule],
8
- templateUrl: './oc-profile.component.html',
9
- styleUrl: './oc-profile.component.scss',
10
- encapsulation: ViewEncapsulation.None
11
- })
12
- export class OcProfileComponent implements OnInit {
13
- @Input() ocUserName?: string
14
- @Input() ocProfilePic?: string
15
- @Input() ocSize: 'large' | 'medium' | 'small' | 'tiny' = 'medium'
16
- nameInitials: string = ''
17
-
18
- ngOnInit() {
19
- this.getInitials()
20
- }
21
-
22
- getInitials() {
23
- if(!this.ocUserName) return
24
-
25
- const splittedName = this.ocUserName?.split(' ')
26
-
27
- const firstLetter = splittedName[0][0]
28
- let lastLetter = ''
29
-
30
- const lastName = splittedName[splittedName.length - 1]
31
-
32
- if(splittedName.length > 1 && lastName){
33
- lastLetter = lastName[0]
34
- }
35
-
36
- this.nameInitials = (firstLetter + lastLetter).toUpperCase()
37
- }
38
- }
@@ -1,32 +0,0 @@
1
- <div class="oc-step" (click)="
2
- handleStepClick(stepIndex)
3
- " [ngClass]="{
4
- 'oc-not-selected': stepIndex !== selectedIndex,
5
- 'shui': ocStyle === 'shui',
6
- 'shui-step': ocStyle === 'shui'
7
- }">
8
- <div class="left-side">
9
- <div class="step-number" [ngClass]="{
10
- 'oc-selected-p': selectedIndex === stepIndex && ocColor === 'purple',
11
- 'oc-selected-g': selectedIndex === stepIndex && ocColor === 'green',
12
- 'oc-purple': (stepIndex! <= selectedIndex || ocCompleted) && ocColor === 'purple',
13
- 'oc-green': (stepIndex! <= selectedIndex || ocCompleted) && ocColor === 'green'
14
- }">
15
- <span>{{stepIndex! + 1}}</span>
16
- </div>
17
- <h2 [ngClass]="{
18
- 'oc-selected-p-title': selectedIndex === stepIndex && ocColor === 'purple',
19
- 'oc-selected-g-title': selectedIndex === stepIndex && ocColor === 'green',
20
- }">{{ocTitle}}</h2>
21
- </div>
22
- <div class="oc-content" [ngClass]="{
23
- 'expanded': ocIsActive,
24
- 'oc-prev-selected-p': (stepIndex! < selectedIndex || ocCompleted) && ocColor === 'purple',
25
- 'oc-prev-selected-g': (stepIndex! < selectedIndex || ocCompleted) && ocColor === 'green',
26
- 'oc-left-border': stepIndex !== lastIndex
27
- }">
28
- @if (ocIsActive) {
29
- <ng-content></ng-content>
30
- }
31
- </div>
32
- </div>