carriera-intern-components 1.1.199 → 1.1.721

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 (111) hide show
  1. package/fesm2022/carriera-intern-components.mjs +9119 -5402
  2. package/fesm2022/carriera-intern-components.mjs.map +1 -1
  3. package/index.d.ts +2550 -3
  4. package/package.json +1 -1
  5. package/public/assets/animations/animation-document-update.json +1 -0
  6. package/public/assets/animations/animation-image.json +1 -0
  7. package/public/assets/animations/animation-logo.json +1 -0
  8. package/public/assets/animations/animation-media.json +1 -0
  9. package/public/assets/cdl.png +0 -0
  10. package/public/assets/icons/Thumb-active.svg +3 -0
  11. package/public/assets/icons/cai-drop-zone-focus.svg +48 -0
  12. package/public/assets/icons/fuel-contact/cai-contact.svg +3 -0
  13. package/public/assets/icons/general/cai-date.svg +1 -1
  14. package/public/assets/icons/general/cai-sort-descending.svg +4 -0
  15. package/public/assets/icons/interaction/cai-dislike.svg +2 -2
  16. package/public/assets/icons/interaction/cai-drag.svg +3 -0
  17. package/public/assets/icons/interaction/cai-like.svg +2 -2
  18. package/public/assets/icons/interaction/cai_time.svg +1 -1
  19. package/public/assets/icons/load/cai-parking.svg +3 -0
  20. package/public/assets/invexample.png +0 -0
  21. package/public/assets/invoice.png +0 -0
  22. package/public/assets/json/icons.json +20 -0
  23. package/src/styles/README.md +7 -5
  24. package/src/styles/_variables.scss +27 -14
  25. package/src/styles/cropper.scss +14 -8
  26. package/src/styles/custompickers.scss +704 -693
  27. package/src/styles/popover.scss +210 -4
  28. package/src/styles/review_variables.scss +5 -0
  29. package/src/styles/tooltip.scss +37 -3
  30. package/src/styles.scss +18 -6
  31. package/app/components/avatar/avatar.component.d.ts +0 -30
  32. package/app/components/avatar/models/avatar.model.d.ts +0 -28
  33. package/app/components/avatar/models/index.d.ts +0 -1
  34. package/app/components/avatar/pipes/initials.pipe.d.ts +0 -11
  35. package/app/components/copy/copy.component.d.ts +0 -23
  36. package/app/components/document-preview/document-preview.component.d.ts +0 -107
  37. package/app/components/document-preview/interfaces/document-tag.interface.d.ts +0 -4
  38. package/app/components/document-preview/interfaces/index.d.ts +0 -1
  39. package/app/components/drop-zone/drop-zone.component.d.ts +0 -192
  40. package/app/components/drop-zone/models/file.response.d.ts +0 -10
  41. package/app/components/input/directives/helpers/index.d.ts +0 -1
  42. package/app/components/input/directives/helpers/mask.helper.d.ts +0 -15
  43. package/app/components/input/directives/mask.directive.d.ts +0 -67
  44. package/app/components/input/directives/number-format.directive.d.ts +0 -120
  45. package/app/components/input/directives/password.directive.d.ts +0 -100
  46. package/app/components/input/input.component.d.ts +0 -394
  47. package/app/components/input/models/dropdown.model.d.ts +0 -272
  48. package/app/components/input/models/index.d.ts +0 -2
  49. package/app/components/input/models/input.model.d.ts +0 -62
  50. package/app/components/input/pipes/error-message.pipe.d.ts +0 -11
  51. package/app/components/input/pipes/filter-by-search.pipe.d.ts +0 -9
  52. package/app/components/input/pipes/highlight-search.d.ts +0 -13
  53. package/app/components/input/pipes/remap-pm-icons.pipe.d.ts +0 -7
  54. package/app/components/input-address/enums/input-address-layers-string.enum.d.ts +0 -4
  55. package/app/components/input-address/enums/input-address-type-string.enum.d.ts +0 -5
  56. package/app/components/input-address/input-address.component.d.ts +0 -67
  57. package/app/components/input-address/models/address-data.model.d.ts +0 -19
  58. package/app/components/input-address/models/address-list.model.d.ts +0 -6
  59. package/app/components/input-address/models/long-lat.model.d.ts +0 -4
  60. package/app/components/input-address/models/sent-address-data.model.d.ts +0 -22
  61. package/app/components/input-datetime-picker/cai-input-datetime-picker.component.d.ts +0 -103
  62. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.d.ts +0 -58
  63. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.d.ts +0 -41
  64. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.d.ts +0 -26
  65. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.d.ts +0 -30
  66. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.d.ts +0 -38
  67. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/cai-input.config.d.ts +0 -169
  68. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/index.d.ts +0 -1
  69. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-left-string.enum.d.ts +0 -5
  70. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-list-preview-string.enum.d.ts +0 -4
  71. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-main-string.enum.d.ts +0 -5
  72. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-scroll-type-string.enum.d.ts +0 -4
  73. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-string.enum.d.ts +0 -6
  74. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-type-string.enum.d.ts +0 -3
  75. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/config.enum.d.ts +0 -7
  76. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-change.model.d.ts +0 -6
  77. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-type.model.d.ts +0 -8
  78. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/pipes/calendar-months.pipe.d.ts +0 -9
  79. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/services/calendar-datetime-picker.service.d.ts +0 -19
  80. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/strategy/calendar-strategy.d.ts +0 -30
  81. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.d.ts +0 -19
  82. package/app/components/input-datetime-picker/enums/input-config-name-string.enum.d.ts +0 -7
  83. package/app/components/input-datetime-picker/pipes/input-clear-class.pipe.d.ts +0 -14
  84. package/app/components/input-datetime-picker/pipes/input-date-time-container-class.pipe.d.ts +0 -11
  85. package/app/components/input-datetime-picker/pipes/input-dropdown-arrow-class.pipe.d.ts +0 -11
  86. package/app/components/input-datetime-picker/pipes/input-placeholder-icon.class.pipe.d.ts +0 -11
  87. package/app/components/input-datetime-picker/pipes/show-clear.pipe.d.ts +0 -8
  88. package/app/components/pm/pm.component.d.ts +0 -76
  89. package/app/components/selected-location-field/interfaces/index.d.ts +0 -1
  90. package/app/components/selected-location-field/interfaces/selected-business-field.interface.d.ts +0 -11
  91. package/app/components/selected-location-field/selected-business-field.component.d.ts +0 -12
  92. package/app/directives/hover-svg-directives.d.ts +0 -15
  93. package/app/directives/index.d.ts +0 -3
  94. package/app/directives/infinite-scroll.directive.d.ts +0 -16
  95. package/app/directives/intersection-observer.directive.d.ts +0 -15
  96. package/app/enums/alignment.enum.d.ts +0 -4
  97. package/app/enums/general-actions.enum.d.ts +0 -58
  98. package/app/enums/index.d.ts +0 -3
  99. package/app/enums/string-placeholder.enum.d.ts +0 -3
  100. package/app/models/appFile.model.d.ts +0 -14
  101. package/app/models/pm.model.d.ts +0 -10
  102. package/app/pipes/bytes-to-human-readable.pipe.d.ts +0 -7
  103. package/app/pipes/currency.pipe.d.ts +0 -28
  104. package/app/pipes/number-format.pipe.d.ts +0 -7
  105. package/app/services/document.service.d.ts +0 -22
  106. package/app/utils/autofill-validators.d.ts +0 -10
  107. package/app/utils/constants/index.d.ts +0 -1
  108. package/app/utils/constants/input-character-sets.constants.d.ts +0 -18
  109. package/app/utils/index.d.ts +0 -2
  110. package/public/pdfjs/pdf.worker.min.mjs +0 -30
  111. package/public-api.d.ts +0 -11
@@ -1,9 +1,19 @@
1
- @import "variables";
1
+ @use "variables" as *;
2
2
 
3
3
  .tagPopover {
4
- font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system,
5
- BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
6
- "Apple Color Emoji", "Segoe UI Emoji" !important;
4
+ font-family:
5
+ "Montserrat",
6
+ ui-sans-serif,
7
+ system-ui,
8
+ -apple-system,
9
+ BlinkMacSystemFont,
10
+ "Segoe UI",
11
+ Roboto,
12
+ Helvetica,
13
+ Arial,
14
+ sans-serif,
15
+ "Apple Color Emoji",
16
+ "Segoe UI Emoji" !important;
7
17
  --bs-body-bg: #2f2f2f !important;
8
18
  border: none !important;
9
19
 
@@ -14,5 +24,201 @@
14
24
  .popover-body {
15
25
  border-radius: 3px;
16
26
  padding: 0px !important;
27
+ margin-top: -4px;
28
+ margin-left: -5px;
29
+ }
30
+ }
31
+
32
+ .cai-dropdown-popover {
33
+ border-radius: 0 !important;
34
+ border: none !important;
35
+ margin: 0 !important;
36
+ padding: 0 !important;
37
+ box-shadow: none !important;
38
+ background-color: transparent !important;
39
+
40
+ .popover-arrow {
41
+ display: none !important;
42
+ }
43
+
44
+ .popover-body {
45
+ padding: 0px !important;
46
+ height: auto !important;
47
+ width: auto !important;
48
+ border-radius: 0 !important;
49
+ border: none !important;
50
+ }
51
+ }
52
+
53
+ .pm-popover.popover {
54
+ --bs-body-bg: #2f2f2f !important;
55
+ font-family:
56
+ "Montserrat",
57
+ ui-sans-serif,
58
+ system-ui,
59
+ -apple-system,
60
+ BlinkMacSystemFont,
61
+ "Segoe UI",
62
+ Roboto,
63
+ Helvetica,
64
+ Arial,
65
+ sans-serif,
66
+ "Apple Color Emoji",
67
+ "Segoe UI Emoji" !important;
68
+ border: none !important;
69
+ width: 200px !important;
70
+ border-radius: 3px !important;
71
+ margin-top: -4px !important;
72
+ }
73
+
74
+ .pm-popover.popover .popover-body {
75
+ padding: 0px !important;
76
+ }
77
+
78
+ .pm-popover .popover-arrow {
79
+ display: none !important;
80
+ }
81
+
82
+ .popover-review {
83
+ border-radius: 3px !important;
84
+ border: none !important;
85
+ margin: 0 !important;
86
+ padding: 0 !important;
87
+ box-shadow: none !important;
88
+ pointer-events: auto !important;
89
+ .popover-arrow {
90
+ display: none !important;
91
+ }
92
+
93
+ .popover-body {
94
+ padding: 0px !important;
95
+ height: auto !important;
96
+ width: auto !important;
97
+ border-radius: 0 !important;
98
+ border: none !important;
99
+ white-space: normal !important;
100
+ }
101
+ }
102
+
103
+ [data-popper-placement^="top"] .dropdown-menu.input-dropdown-menu {
104
+ .dropdown-menu-content {
105
+ bottom: 0;
106
+ }
107
+ }
108
+
109
+ body:has(
110
+ [data-popper-placement^="top"]
111
+ .dropdown-menu.input-dropdown-menu:not(.closing)
112
+ ) {
113
+ .app-input-container.show:has(.app-input:focus-visible):not(.in-table):not(
114
+ .static-placeholder
115
+ ) {
116
+ .app-input-label {
117
+ transform: translateY(20px);
118
+ }
119
+ }
120
+ }
121
+
122
+ [data-popper-placement^="bottom"] .dropdown-menu.input-dropdown-menu {
123
+ .dropdown-menu-content {
124
+ top: 2px;
125
+ }
126
+ }
127
+
128
+ [data-popper-placement^="top-start"] .dropdown-menu.dispatch-dropdown-menu {
129
+ .dropdown-menu-content {
130
+ bottom: -2px;
131
+
132
+ border-radius: 3px 3px 0 0;
133
+ &::-webkit-scrollbar {
134
+ border-radius: 0 3px 0 0;
135
+ }
136
+
137
+ .dropdown-menu-separator {
138
+ bottom: -2px;
139
+ }
140
+ }
141
+
142
+ // Left inverted corner
143
+ &::before {
144
+ content: "";
145
+ position: absolute;
146
+ bottom: -5px;
147
+ left: 0px;
148
+ width: 3px;
149
+ height: 3px;
150
+ background: radial-gradient(
151
+ circle at 100% 100%,
152
+ transparent 3px,
153
+ $color-black-500 3px
154
+ );
155
+ pointer-events: none;
156
+ user-select: none;
157
+ }
158
+
159
+ // Right inverted corner
160
+ &::after {
161
+ content: "";
162
+ position: absolute;
163
+ bottom: -5px;
164
+ right: 0px;
165
+ width: 3px;
166
+ height: 3px;
167
+ background: radial-gradient(
168
+ circle at 0 100%,
169
+ transparent 3px,
170
+ $color-black-500 3px
171
+ );
172
+ pointer-events: none;
173
+ user-select: none;
174
+ }
175
+ }
176
+
177
+ [data-popper-placement^="bottom-start"] .dropdown-menu.dispatch-dropdown-menu {
178
+ .dropdown-menu-content {
179
+ top: -2px;
180
+
181
+ border-radius: 0 0 3px 3px;
182
+ &::-webkit-scrollbar {
183
+ border-radius: 0 0 3px 0;
184
+ }
185
+
186
+ .dropdown-menu-separator {
187
+ top: -1px;
188
+ }
189
+ }
190
+
191
+ // Left inverted corner
192
+ &::before {
193
+ content: "";
194
+ position: absolute;
195
+ top: -5px;
196
+ left: 0px;
197
+ width: 3px;
198
+ height: 3px;
199
+ background: radial-gradient(
200
+ circle at 100% 0,
201
+ transparent 3px,
202
+ $color-black-500 3px
203
+ );
204
+ pointer-events: none;
205
+ user-select: none;
206
+ }
207
+
208
+ // Right inverted corner
209
+ &::after {
210
+ content: "";
211
+ position: absolute;
212
+ top: -5px;
213
+ right: 0px;
214
+ width: 3px;
215
+ height: 3px;
216
+ background: radial-gradient(
217
+ circle at 0 0,
218
+ transparent 3px,
219
+ $color-black-500 3px
220
+ );
221
+ pointer-events: none;
222
+ user-select: none;
17
223
  }
18
224
  }
@@ -7,6 +7,10 @@ $color-trash-background: #F4BEBE;
7
7
  $color-tooltip: rgba(66, 66, 66, 1);
8
8
  $color-divider: #DADADA;
9
9
 
10
+ $color-like-active-hover: #b6dfdb;
11
+ $color-dislike-active-hover: #e87c7c;
12
+ $color-like-active-hover-dark: #007A6E;
13
+
10
14
  $color-light-blue: #92B1F5;
11
15
  $color-blue: #3B73ED;
12
16
  $color-blue-transparent: #3b73ed3f;
@@ -23,6 +27,7 @@ $color-light-disabled: #F7F7F7;
23
27
  $color-light-gray: #EEEEEE;
24
28
  $color-review-hover: #CCCCCC;
25
29
  $color-dark: #1D1D1D;
30
+ $color-white: #FFFFFF;
26
31
 
27
32
  $color-text-gray: #AAAAAA;
28
33
 
@@ -1,16 +1,33 @@
1
1
  @use "variables" as *;
2
+ @use "sass:color";
2
3
 
3
4
  .tooltip:not(.app-ca-main-tooltip):not(.app-main-tooltip) {
4
- font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system,
5
- BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
6
- "Apple Color Emoji", "Segoe UI Emoji" !important;
5
+ font-family:
6
+ "Montserrat",
7
+ ui-sans-serif,
8
+ system-ui,
9
+ -apple-system,
10
+ BlinkMacSystemFont,
11
+ "Segoe UI",
12
+ Roboto,
13
+ Helvetica,
14
+ Arial,
15
+ sans-serif,
16
+ "Apple Color Emoji",
17
+ "Segoe UI Emoji" !important;
7
18
  margin-bottom: 8px !important;
8
19
  &.input-tooltip {
9
20
  margin-bottom: 0 !important;
21
+ word-break: keep-all !important;
22
+ z-index: 2000 !important;
10
23
  }
11
24
  &.tooltip-m-t-4 {
12
25
  margin-top: 4px !important;
13
26
  }
27
+ &.tooltip-m-b-2 {
28
+ margin-bottom: 2px !important;
29
+ }
30
+
14
31
  .tooltip-arrow {
15
32
  display: none !important;
16
33
  }
@@ -22,6 +39,8 @@
22
39
  font-size: 11px !important;
23
40
  font-weight: 600 !important;
24
41
  color: #ffffff !important;
42
+ white-space: nowrap;
43
+ max-width: none;
25
44
 
26
45
  transition: background-color 0.1s ease-in-out;
27
46
 
@@ -29,6 +48,12 @@
29
48
  display: none !important;
30
49
  }
31
50
  }
51
+ &.tooltip-inverse {
52
+ .tooltip-inner {
53
+ background-color: #cccccc !important;
54
+ color: #2f2f2f !important;
55
+ }
56
+ }
32
57
  }
33
58
 
34
59
  .tooltip.show {
@@ -53,6 +78,15 @@
53
78
 
54
79
  @each $color-name, $shades in $color-palettes {
55
80
  .tooltip:not(.app-ca-main-tooltip):not(.app-main-tooltip) {
81
+ &.tooltip-text-#{$color-name} {
82
+ @each $shade, $color-value in $shades {
83
+ &-#{$shade} {
84
+ .tooltip-inner {
85
+ color: $color-value !important;
86
+ }
87
+ }
88
+ }
89
+ }
56
90
  &.tooltip-bg-#{$color-name} {
57
91
  @each $shade, $color-value in $shades {
58
92
  &-#{$shade} {
package/src/styles.scss CHANGED
@@ -6,9 +6,6 @@
6
6
  @use "styles/utility/utilities";
7
7
  @use "styles/tooltip";
8
8
 
9
- /* Importing Bootstrap SCSS file. */
10
- @use "bootstrap/scss/bootstrap";
11
-
12
9
  @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
13
10
 
14
11
  html {
@@ -22,7 +19,22 @@ body {
22
19
  margin: 0;
23
20
  line-height: inherit;
24
21
  background-color: white;
25
- font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system,
26
- BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
27
- "Apple Color Emoji", "Segoe UI Emoji";
22
+ font-family:
23
+ "Montserrat",
24
+ ui-sans-serif,
25
+ system-ui,
26
+ -apple-system,
27
+ BlinkMacSystemFont,
28
+ "Segoe UI",
29
+ Roboto,
30
+ Helvetica,
31
+ Arial,
32
+ sans-serif,
33
+ "Apple Color Emoji",
34
+ "Segoe UI Emoji";
35
+ }
36
+
37
+ .cai-highlight {
38
+ background-color: #3b73ed33 !important;
39
+ color: #92b1f5 !important;
28
40
  }
@@ -1,30 +0,0 @@
1
- import { Driver } from './models';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Represents a user avatar component.
5
- */
6
- export declare class AvatarComponent {
7
- /**
8
- * The driver object containing information to display in the avatar.
9
- * This input is required.
10
- * @type {Driver}
11
- */
12
- driver: import("@angular/core").InputSignal<Driver>;
13
- /**
14
- * The size of the avatar in pixels.
15
- * @type {Size}
16
- */
17
- size: import("@angular/core").InputSignal<18 | 160 | 22 | 32 | 74>;
18
- /**
19
- * Whether the avatar should be rounded or not.
20
- * @type {boolean}
21
- */
22
- rounded: import("@angular/core").InputSignal<boolean>;
23
- /**
24
- * Whether the owner element should be dark or light
25
- * @type {boolean}
26
- */
27
- inverse: import("@angular/core").InputSignal<boolean>;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "cai-avatar", never, { "driver": { "alias": "driver"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "inverse": { "alias": "inverse"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
30
- }
@@ -1,28 +0,0 @@
1
- export interface Driver {
2
- id: number;
3
- firstName?: string | null;
4
- lastName?: string | null;
5
- fullName?: string | null;
6
- owner?: boolean | null;
7
- avatarFile?: AvatarFile | null;
8
- colorFlag?: ColorFlag | null;
9
- avatarUrl?: string | null;
10
- avatarColor?: AvatarColor | null;
11
- [key: string]: any;
12
- }
13
- export type AvatarFile = {
14
- fileId: number;
15
- fileName: string;
16
- url: string;
17
- fileSize: number;
18
- [key: string]: any;
19
- };
20
- export type ColorFlag = {
21
- id: number;
22
- name: AvatarColor;
23
- };
24
- declare const colors: readonly ["Blue", "Green", "Red", "Yellow", "Purple", "Gold", "Light Green", "Orange", "Light Blue", "Pink", "Brown", "Gray", "Lime", "Navy", "Azure", "Magenta"];
25
- export type AvatarColor = (typeof colors)[number];
26
- declare const sizes: readonly [18, 22, 32, 74, 160];
27
- export type Size = (typeof sizes)[number];
28
- export {};
@@ -1 +0,0 @@
1
- export * from './avatar.model';
@@ -1,11 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class InitialsPipe implements PipeTransform {
4
- transform({ firstName, lastName, fullName, }: {
5
- firstName?: string | null;
6
- lastName?: string | null;
7
- fullName?: string | null;
8
- }): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<InitialsPipe, never>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<InitialsPipe, "initials", true>;
11
- }
@@ -1,23 +0,0 @@
1
- import { eAlignment } from '../../enums';
2
- import { eGeneralActions } from '../../enums/general-actions.enum';
3
- import { Clipboard } from '@angular/cdk/clipboard';
4
- import * as i0 from "@angular/core";
5
- export declare class CopyComponent {
6
- private clipboard;
7
- value: import("@angular/core").InputSignal<string | undefined>;
8
- alignment: import("@angular/core").InputSignal<eAlignment>;
9
- copyTooltip: import("@angular/core").InputSignal<string | undefined>;
10
- copyArea: import("@angular/core").InputSignal<"icon" | "full">;
11
- icon: import("@angular/core").InputSignal<string | null>;
12
- iconSize: import("@angular/core").InputSignal<number>;
13
- iconColor: import("@angular/core").InputSignal<string | null>;
14
- tooltipClass: import("@angular/core").InputSignal<string | null>;
15
- copied: import("@angular/core").WritableSignal<boolean>;
16
- eGeneralActions: typeof eGeneralActions;
17
- eAlignment: typeof eAlignment;
18
- constructor(clipboard: Clipboard);
19
- onCopy(event: MouseEvent): void;
20
- resetCopied(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<CopyComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<CopyComponent, "cai-copy", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "copyTooltip": { "alias": "copyTooltip"; "required": false; "isSignal": true; }; "copyArea": { "alias": "copyArea"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
23
- }
@@ -1,107 +0,0 @@
1
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { AppFile } from '../../models/appFile.model';
3
- import { FormControl } from '@angular/forms';
4
- import { DocumentTag } from './interfaces';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * This component displays a preview of a document, including its name, size,
8
- * and provides actions to delete, download, and tag the document.
9
- */
10
- export declare class DocumentPreviewComponent implements OnChanges, OnInit {
11
- coverMinimalMode: boolean;
12
- isCrop: import("@angular/core").WritableSignal<boolean>;
13
- constructor();
14
- ngOnInit(): void;
15
- ngOnChanges(changes: SimpleChanges): void;
16
- noTagOption: boolean;
17
- showInput: import("@angular/core").WritableSignal<boolean>;
18
- inputFormControl: FormControl<any>;
19
- showFileNameInput(): void;
20
- hideFileNameInput(): void;
21
- handleEdit(event: any): void;
22
- /**
23
- * Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
24
- */
25
- showDeleteModal: import("@angular/core").WritableSignal<boolean>;
26
- /**
27
- * Boolean flag indicating whether the tag popover is visible.Used to apply conditional styling or behavior.
28
- */
29
- showTag: boolean;
30
- /**
31
- * Currently selected tag for the document.
32
- */
33
- selectedTag: string;
34
- /**
35
- * The application file to be displayed in the preview. This is a required input.
36
- * @type {InputSignal<AppFile>}
37
- */
38
- file: import("@angular/core").InputSignal<AppFile>;
39
- /**
40
- * /**
41
- * The view mode in whic the file is displayed. This is a required input.
42
- * @type {InputSignal<string>}
43
- */
44
- viewMode: import("@angular/core").InputSignal<string>;
45
- /**
46
- * An output event that emits the file name when the delete action is triggered.
47
- * @type {OutputEmitterRef<string>}
48
- */
49
- onDelete: import("@angular/core").OutputEmitterRef<string>;
50
- /**
51
- * An output event that emits the file name when the download action is triggered.
52
- * @type {OutputEmitterRef<string>}
53
- */
54
- onDownload: import("@angular/core").OutputEmitterRef<string>;
55
- /**
56
- * Handles the delete action. Emits the `fileName` of the current `file` via the `onDelete` output.
57
- */
58
- handleDelete(): void;
59
- /**
60
- * Cancels the delete operation and hides the confirmation modal.
61
- */
62
- cancelDelete(): void;
63
- /**
64
- * Confirms the deletion and emits the `onDelete` event.
65
- */
66
- confirmDelete(): void;
67
- /**
68
- * Handles the download action. Emits the `fileName` of the current `file` via the `onDownload` output.
69
- */
70
- handleDownload(): void;
71
- /**
72
- * Callback triggered when the tag popover is shown. Used to update internal state.
73
- */
74
- onTagShown(): void;
75
- /**
76
- * Callback triggered when the tag popover is hidden. Used to update internal state.
77
- */
78
- onTagHidden(): void;
79
- /**
80
- * List of available tags for labeling the document. These are selectable within the tag popover.
81
- */
82
- tags: import("@angular/core").InputSignal<DocumentTag[]>;
83
- /**
84
- * Emits when a tag is selected or removed for the file.
85
- * Contains the file name and the selected tag.
86
- * @type {OutputEmitterRef<{ fileName: string; tag: string }>}
87
- */
88
- onTagChange: import("@angular/core").OutputEmitterRef<{
89
- fileName: string;
90
- tag: string;
91
- }>;
92
- /**
93
- * Selects a tag and emits the `onTagChange` output.
94
- * @param newTag The newly selected tag string.
95
- */
96
- getTag(newTag: string): void;
97
- /**
98
- * Removes the currently selected tag. Does not emit an event — must be called manually.
99
- */
100
- removeTag(): void;
101
- /**
102
- * Placeholder for handling document sharing. Currently logs the file name to the console.
103
- */
104
- handleShare(): void;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMode": { "alias": "coverMinimalMode"; "required": false; }; "noTagOption": { "alias": "noTagOption"; "required": false; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
107
- }
@@ -1,4 +0,0 @@
1
- export interface DocumentTag {
2
- tagId: number;
3
- tagName: string;
4
- }
@@ -1 +0,0 @@
1
- export * from './document-tag.interface';