@appscode/design-system 1.1.0-alpha.8 → 1.1.0-beta.10

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 (200) hide show
  1. package/base/_video-player.scss +65 -0
  2. package/base/utilities/_all.scss +6 -5
  3. package/base/utilities/_colors.scss +408 -0
  4. package/base/utilities/_customize-bulma.scss +23 -27
  5. package/base/utilities/_extended.scss +9 -4
  6. package/base/utilities/{_default.scss → _global.scss} +185 -331
  7. package/base/utilities/_layouts.scss +157 -0
  8. package/base/utilities/_mixin.scss +11 -11
  9. package/base/utilities/_spacing.scss +96 -0
  10. package/base/utilities/_typography.scss +56 -24
  11. package/base/utilities/dark-theme.scss +1 -1
  12. package/components/_ac-accordion.scss +117 -117
  13. package/components/_ac-alert-box.scss +205 -263
  14. package/components/_ac-calendar.scss +4 -4
  15. package/components/_ac-card.scss +0 -597
  16. package/components/_ac-code-highlight.scss +6 -6
  17. package/components/_ac-content-layout.scss +165 -165
  18. package/components/_ac-drag.scss +11 -11
  19. package/components/_ac-input.scss +477 -452
  20. package/components/_ac-modal.scss +212 -212
  21. package/components/_ac-multi-select.scss +780 -751
  22. package/components/_ac-options.scss +122 -123
  23. package/components/_ac-select-box.scss +5 -5
  24. package/components/_ac-table.scss +503 -502
  25. package/components/_ac-tabs.scss +39 -38
  26. package/components/_ac-tags.scss +116 -116
  27. package/components/_ac-terminal.scss +95 -51
  28. package/components/_add-card.scss +3 -3
  29. package/components/_all.scss +29 -26
  30. package/components/_app-drawer.scss +0 -134
  31. package/components/_breadcumb.scss +0 -71
  32. package/components/_buttons.scss +779 -779
  33. package/components/_card-body-wrapper.scss +5 -5
  34. package/components/_dashboard-header.scss +0 -115
  35. package/components/_direct-deploy.scss +8 -8
  36. package/components/_go-to-top.scss +1 -1
  37. package/components/_image-upload.scss +5 -5
  38. package/components/_left-sidebar-menu.scss +448 -579
  39. package/components/_monaco-editor.scss +1 -1
  40. package/components/_navbar.scss +786 -752
  41. package/components/_nested-list.scss +1 -1
  42. package/components/_overview-info.scss +7 -7
  43. package/components/_overview-page.scss +4 -4
  44. package/components/_pagination.scss +106 -124
  45. package/components/_payment-card.scss +21 -21
  46. package/components/_preloader.scss +1 -1
  47. package/components/_preview-modal.scss +18 -18
  48. package/components/_pricing-table.scss +10 -10
  49. package/components/_progress-bar.scss +12 -12
  50. package/components/_subscription-card.scss +14 -14
  51. package/components/_table-of-content.scss +4 -4
  52. package/components/_tfa.scss +9 -9
  53. package/components/_widget-menu.scss +247 -247
  54. package/components/_wizard.scss +557 -559
  55. package/components/ac-toaster/_ac-toasted.scss +7 -12
  56. package/components/bbum/_activities-header.scss +1 -1
  57. package/components/bbum/_card-team.scss +12 -12
  58. package/components/bbum/_information-center.scss +13 -13
  59. package/components/bbum/_left-sidebar.scss +8 -8
  60. package/components/bbum/_mobile-desktop.scss +7 -7
  61. package/components/bbum/_post.scss +5 -5
  62. package/components/bbum/_sign-up-notification.scss +10 -10
  63. package/components/bbum/_single-post-preview.scss +21 -21
  64. package/components/bbum/_user-profile.scss +10 -10
  65. package/components/ui-builder/_ui-builder.scss +15 -15
  66. package/components/ui-builder/_vue-open-api.scss +515 -2
  67. package/layouts/_code-preview.scss +11 -11
  68. package/main.scss +26 -10
  69. package/package.json +1 -1
  70. package/plugins/theme.js +11 -9
  71. package/plugins/vue-toaster.js +1 -1
  72. package/vue-components/plugins/time-convert.js +49 -0
  73. package/vue-components/text.vue +1 -0
  74. package/vue-components/types/cluster.ts +6 -0
  75. package/vue-components/types/importFlow.ts +16 -0
  76. package/vue-components/types/longRunningTasks.ts +20 -0
  77. package/vue-components/types/notification.ts +6 -0
  78. package/vue-components/types/previewYaml.ts +8 -0
  79. package/vue-components/types/table.ts +54 -0
  80. package/vue-components/types/theme.ts +10 -0
  81. package/vue-components/types/user.ts +22 -0
  82. package/vue-components/v2/card/Card.vue +1 -1
  83. package/vue-components/v2/card/OverviewCards.vue +17 -2
  84. package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
  85. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
  86. package/vue-components/v2/icons/Ellipsis.vue +2 -1
  87. package/vue-components/v2/modal/Modal.vue +0 -5
  88. package/vue-components/v2/navbar/Appdrawer.vue +37 -12
  89. package/vue-components/v2/navbar/Navbar.vue +3 -3
  90. package/vue-components/v2/navbar/NavbarItem.vue +3 -1
  91. package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
  92. package/vue-components/v2/navbar/User.vue +5 -22
  93. package/vue-components/v2/pagination/Pagination.vue +66 -0
  94. package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
  95. package/vue-components/v3/accordion/Accordion.vue +151 -0
  96. package/vue-components/v3/alert/Alert.vue +238 -0
  97. package/vue-components/v3/alert/Toast.vue +79 -0
  98. package/vue-components/v3/banner/Banner.vue +10 -0
  99. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +104 -0
  100. package/vue-components/v3/button/Button.vue +839 -58
  101. package/vue-components/v3/button/Buttons.vue +6 -0
  102. package/vue-components/v3/button/DownloadBtn.vue +31 -0
  103. package/vue-components/v3/cards/Card.vue +32 -0
  104. package/vue-components/v3/cards/CardContent.vue +7 -0
  105. package/vue-components/v3/cards/CardHeader.vue +14 -0
  106. package/vue-components/v3/cards/Cards.vue +7 -0
  107. package/vue-components/v3/cards/Cluster.vue +149 -0
  108. package/vue-components/v3/cards/Counter.vue +39 -0
  109. package/vue-components/v3/cards/FeatureCard.vue +71 -0
  110. package/vue-components/v3/cards/FeatureCards.vue +6 -0
  111. package/vue-components/v3/cards/InfoCard.vue +243 -0
  112. package/vue-components/v3/cards/Monitoring.vue +94 -0
  113. package/vue-components/v3/cards/OverviewCard.vue +24 -0
  114. package/vue-components/v3/cards/OverviewCards.vue +31 -0
  115. package/vue-components/v3/cards/Payment.vue +62 -0
  116. package/vue-components/v3/cards/Vendor.vue +85 -0
  117. package/vue-components/v3/content/ContentHeader.vue +39 -30
  118. package/vue-components/v3/content/ContentLayout.vue +20 -0
  119. package/vue-components/v3/content/ContentTable.vue +43 -62
  120. package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
  121. package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
  122. package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
  123. package/vue-components/v3/editor/Editor.vue +100 -113
  124. package/vue-components/v3/editor/FilteredFileEditor.vue +317 -127
  125. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +70 -94
  126. package/vue-components/v3/footer/FooterArea.vue +34 -0
  127. package/vue-components/v3/footer/FooterItem.vue +32 -0
  128. package/vue-components/v3/footer/FooterItems.vue +15 -0
  129. package/vue-components/v3/footer/Info.vue +23 -0
  130. package/vue-components/v3/footer/Status.vue +42 -0
  131. package/vue-components/v3/footer/Usage.vue +44 -0
  132. package/vue-components/v3/form/Form.vue +24 -33
  133. package/vue-components/v3/form/FormFooterControl.vue +7 -0
  134. package/vue-components/v3/form/FormFooterControls.vue +7 -0
  135. package/vue-components/v3/form-fields/AcSingleInput.vue +528 -0
  136. package/vue-components/v3/form-fields/Input.vue +19 -14
  137. package/vue-components/v3/header/Header.vue +119 -25
  138. package/vue-components/v3/header/HeaderItem.vue +18 -0
  139. package/vue-components/v3/header/HeaderItems.vue +4 -0
  140. package/vue-components/v3/icons/Ellipsis.vue +2 -0
  141. package/vue-components/v3/loaders/InfoCardLoader.vue +65 -0
  142. package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
  143. package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
  144. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +17 -15
  145. package/vue-components/v3/modal/Modal.vue +292 -96
  146. package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
  147. package/vue-components/v3/modals/JsonShowModal.vue +62 -68
  148. package/vue-components/v3/modals/LongRunningTasksModal.vue +145 -143
  149. package/vue-components/v3/navbar/Appdrawer.vue +196 -51
  150. package/vue-components/v3/navbar/Navbar.vue +298 -0
  151. package/vue-components/v3/navbar/NavbarItem.vue +81 -0
  152. package/vue-components/v3/navbar/NavbarItemContent.vue +284 -0
  153. package/vue-components/v3/navbar/Notification.vue +179 -0
  154. package/vue-components/v3/navbar/ThemeMode.vue +128 -112
  155. package/vue-components/v3/navbar/User.vue +383 -268
  156. package/vue-components/v3/notification/AlertBox.vue +41 -44
  157. package/vue-components/v3/notification/Notification.vue +49 -43
  158. package/vue-components/v3/notification/NotificationItem.vue +51 -19
  159. package/vue-components/v3/option-dots/Options.vue +188 -0
  160. package/vue-components/v3/pagination/Pagination.vue +203 -99
  161. package/vue-components/v3/preloader/Preloader.vue +23 -0
  162. package/vue-components/v3/searchbars/SearchBar.vue +59 -34
  163. package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
  164. package/vue-components/v3/sidebar/ClusterSwitcher.vue +835 -81
  165. package/vue-components/v3/sidebar/Sidebar.vue +267 -0
  166. package/vue-components/v3/sidebar/SidebarBody.vue +7 -0
  167. package/vue-components/v3/sidebar/SidebarFooter.vue +80 -0
  168. package/vue-components/v3/sidebar/SidebarHeader.vue +124 -0
  169. package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
  170. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
  171. package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
  172. package/vue-components/v3/sidebar/Steps.vue +152 -0
  173. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +128 -0
  174. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +29 -0
  175. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
  176. package/vue-components/v3/tab/TabItem.vue +10 -12
  177. package/vue-components/v3/tab/Tabs.vue +9 -0
  178. package/vue-components/v3/tab/TabsBody.vue +7 -0
  179. package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
  180. package/vue-components/v3/table/FakeTableCell.vue +22 -31
  181. package/vue-components/v3/table/InfoTable.vue +89 -61
  182. package/vue-components/v3/table/MultiInfoTable.vue +72 -95
  183. package/vue-components/v3/table/Table.vue +589 -151
  184. package/vue-components/v3/table/TableCell.vue +20 -23
  185. package/vue-components/v3/table/TableContainer.vue +50 -28
  186. package/vue-components/v3/table/TableRow.vue +63 -85
  187. package/vue-components/v3/table/table-cell/ArrayCell.vue +67 -79
  188. package/vue-components/v3/table/table-cell/CellValue.vue +97 -103
  189. package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
  190. package/vue-components/v3/table/table-cell/ObjectCell.vue +67 -79
  191. package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
  192. package/vue-components/v3/tabs/EditorTabs.vue +18 -24
  193. package/vue-components/v3/tag/Tag.vue +15 -12
  194. package/vue-components/v3/tag/Tags.vue +7 -0
  195. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +26 -23
  196. package/base/utilities/_derived-variables.scss +0 -25
  197. package/base/utilities/_initial-variables.scss +0 -215
  198. package/components/_basic-card.scss +0 -124
  199. package/mixins/stickyContent.js +0 -141
  200. package/plugins/caching.ts +0 -243
@@ -0,0 +1,528 @@
1
+ <script setup lang="ts">
2
+ interface Props {
3
+ modifierClasses?: string;
4
+ }
5
+
6
+ withDefaults(defineProps<Props>(), {
7
+ modifierClasses: "",
8
+ });
9
+ </script>
10
+
11
+ <template>
12
+ <div class="ac-single-input is-small" :class="modifierClasses">
13
+ <slot name="label" />
14
+ <slot name="button" />
15
+ <slot />
16
+ <slot name="eye-switcher" />
17
+ <slot name="error" />
18
+ </div>
19
+ </template>
20
+
21
+ <style lang="scss">
22
+ .ac-single-input {
23
+ position: relative;
24
+ z-index: 1;
25
+ margin-bottom: 15px;
26
+
27
+ &.is-disable {
28
+ opacity: 0.5;
29
+
30
+ input,
31
+ .button.is-information,
32
+ .eye i.fa {
33
+ cursor: not-allowed;
34
+ }
35
+ }
36
+
37
+ &.is-information {
38
+ input {
39
+ padding-right: 45px;
40
+
41
+ &[type="password"] {
42
+ padding-right: 80px;
43
+ }
44
+ }
45
+
46
+ span.eye i.fa {
47
+ right: 35px;
48
+ }
49
+ }
50
+
51
+ &.is-success {
52
+ input,
53
+ .ac-card,
54
+ textarea {
55
+ border: 1px solid $primary !important;
56
+ }
57
+
58
+ p {
59
+ color: $primary;
60
+ }
61
+ }
62
+
63
+ &.is-danger {
64
+ input,
65
+ .ac-card,
66
+ textarea {
67
+ border: 1px solid $danger;
68
+ }
69
+
70
+ p {
71
+ color: $danger;
72
+ }
73
+ }
74
+
75
+ &.is-loading {
76
+ input,
77
+ .ac-card,
78
+ textarea {
79
+ border: 1px solid $info;
80
+ opacity: 0.5;
81
+ }
82
+
83
+ p {
84
+ color: $info;
85
+ opacity: 0.5;
86
+ }
87
+ }
88
+
89
+ &.borderless-input {
90
+ input {
91
+ border: none;
92
+ font-size: 13px;
93
+ padding: 4px 7px;
94
+ height: 30px;
95
+ background-color: $white-100;
96
+ padding-right: 30px;
97
+
98
+ &[type="password"] {
99
+ padding-right: 30px;
100
+ }
101
+
102
+ &:focus {
103
+ outline: none;
104
+ border: none;
105
+ }
106
+ }
107
+
108
+ span.eye {
109
+ i.fa {
110
+ padding: 9px;
111
+ font-size: 12px;
112
+ }
113
+ }
114
+ }
115
+
116
+ &.is-normal {
117
+ input {
118
+ height: 45px;
119
+ font-size: 15px;
120
+ font-weight: 400;
121
+ }
122
+
123
+ .button {
124
+ &.is-information {
125
+ height: 45px;
126
+ width: 45px;
127
+ margin-top: 0;
128
+ }
129
+ }
130
+
131
+ span.eye i.fa {
132
+ padding: 14px 10px;
133
+ }
134
+
135
+ .ac-search-button {
136
+ margin-top: -22.5px;
137
+ }
138
+
139
+ label {
140
+ top: 13px;
141
+ font-size: 13px;
142
+
143
+ &.show-label {
144
+ font-size: 12px;
145
+ color: $black-40;
146
+ top: -9px;
147
+ font-weight: 500;
148
+ background-color: $white-100;
149
+ }
150
+ }
151
+
152
+ .control {
153
+ &.has-icons-right {
154
+ .icon {
155
+ height: 45px;
156
+ width: 30px;
157
+ font-size: 13px;
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ &.is-small {
164
+ input {
165
+ height: 36px;
166
+ font-size: 13px;
167
+ font-weight: 400;
168
+ }
169
+
170
+ .button {
171
+ &.is-information {
172
+ height: 36px;
173
+ width: 36px;
174
+ margin-top: 0;
175
+ padding: 10px;
176
+ }
177
+ }
178
+
179
+ span.eye i.fa {
180
+ padding: 10px;
181
+ }
182
+
183
+ .ac-search-button {
184
+ margin-top: -18px;
185
+ }
186
+
187
+ label {
188
+ top: 8px;
189
+ font-size: 13px;
190
+
191
+ &.switch-label {
192
+ top: 0;
193
+ }
194
+
195
+ &.show-label {
196
+ font-size: 12px;
197
+ top: -9px;
198
+ font-weight: 500;
199
+ color: $black-40;
200
+
201
+ &.is-required {
202
+ &:after {
203
+ width: calc(100% + 10px);
204
+ }
205
+ }
206
+ }
207
+ }
208
+
209
+ .control {
210
+ &.has-icons-right {
211
+ .icon {
212
+ height: 36px;
213
+ width: 25px;
214
+ font-size: 13px;
215
+ }
216
+ }
217
+ }
218
+ }
219
+
220
+ &.is-extra-small {
221
+ input {
222
+ height: 32px;
223
+ font-size: 13px;
224
+ font-weight: 400;
225
+ }
226
+
227
+ .button {
228
+ &.is-information {
229
+ height: 32px;
230
+ width: 32px;
231
+ margin-top: 0;
232
+ }
233
+ }
234
+
235
+ span.eye i.fa {
236
+ padding: 10px;
237
+ }
238
+
239
+ .ac-search-button {
240
+ margin-top: 0px;
241
+ top: 0;
242
+ display: flex;
243
+ align-items: center;
244
+ width: 40px;
245
+ justify-content: center;
246
+
247
+ svg {
248
+ width: 18px;
249
+ }
250
+ }
251
+
252
+ label {
253
+ top: 8px;
254
+ font-size: 13px;
255
+
256
+ &.switch-label {
257
+ top: 0;
258
+ }
259
+
260
+ &.show-label {
261
+ font-size: 12px;
262
+ top: -9px;
263
+ }
264
+ }
265
+
266
+ .control {
267
+ &.has-icons-right {
268
+ .icon {
269
+ height: 32px;
270
+ width: 25px;
271
+ font-size: 13px;
272
+ }
273
+ }
274
+ }
275
+ }
276
+
277
+ &:last-child {
278
+ margin-bottom: 0;
279
+ }
280
+
281
+ &.is-dark {
282
+ input {
283
+ background-color: $primary-10;
284
+ border-color: transparent;
285
+ color: $white-100;
286
+
287
+ &::placeholder {
288
+ color: $primary-10;
289
+ }
290
+
291
+ button {
292
+ i.fa {
293
+ color: $white-100;
294
+ }
295
+ }
296
+ }
297
+ }
298
+
299
+ label {
300
+ font-size: 13px;
301
+ left: 15px;
302
+ top: 11px;
303
+ cursor: text;
304
+ color: $primary-10;
305
+ position: absolute;
306
+ z-index: 2;
307
+ transition: 0.3s ease-in-out;
308
+
309
+ .is-required {
310
+ color: $danger;
311
+
312
+ img {
313
+ position: absolute;
314
+ top: 7px;
315
+ padding-left: 3px;
316
+ }
317
+ }
318
+
319
+ &.show-label {
320
+ top: -9px;
321
+ left: 10px;
322
+ padding: 0 5px;
323
+ font-size: 13px;
324
+ color: $black-40;
325
+
326
+ &:after {
327
+ position: absolute;
328
+ content: "";
329
+ left: 0;
330
+ top: 50%;
331
+ background-color: $white-100;
332
+ width: 100%;
333
+ height: 2px;
334
+ margin-top: -1px;
335
+ z-index: -1;
336
+ }
337
+
338
+ // &.is-required {
339
+ // &:after {
340
+ // width: calc(100% + 10px);
341
+ // }
342
+ // }
343
+ }
344
+ }
345
+
346
+ .button {
347
+ &.is-information {
348
+ background-color: transparent;
349
+ border: none;
350
+ position: absolute;
351
+ right: 0;
352
+ height: 32px;
353
+ width: 32px;
354
+ margin-top: 0;
355
+
356
+ &:focus {
357
+ outline: none;
358
+ box-shadow: none;
359
+ background-color: #e4e8ef;
360
+ transform: scale(0.8);
361
+ }
362
+ }
363
+ }
364
+
365
+ .ac-search-button {
366
+ background-color: transparent;
367
+ border: none;
368
+ position: absolute;
369
+ left: 0;
370
+ top: 50%;
371
+ width: 32px;
372
+ height: 100%;
373
+ margin-top: -15px;
374
+ color: $primary-20;
375
+ cursor: pointer;
376
+ }
377
+
378
+ .ac-dropdown-content {
379
+ position: absolute;
380
+ background-color: $primary-90;
381
+ width: 100%;
382
+ height: auto;
383
+ box-shadow: 0px 4px 16px rgba(132, 147, 168, 0.6);
384
+ border-radius: 4px;
385
+ overflow: hidden;
386
+
387
+ ul {
388
+ li {
389
+ a {
390
+ color: $primary-10;
391
+ display: block;
392
+ font-size: 13px;
393
+ padding: 8px 20px;
394
+ transition: 0.3s;
395
+
396
+ &:hover {
397
+ background-color: hsla(
398
+ var(--hsl-hue),
399
+ var(--hsl-saturation),
400
+ var(--hsl-lightness),
401
+ 0.2
402
+ );
403
+ color: $primary;
404
+ }
405
+ }
406
+ }
407
+ }
408
+ }
409
+
410
+ .ac-textarea {
411
+ .ac-label {
412
+ &.is-required {
413
+ &:after {
414
+ width: calc(100% + 10px);
415
+ }
416
+ }
417
+ }
418
+
419
+ textarea {
420
+ border: 1px solid $primary-80;
421
+ background-color: transparent;
422
+ padding: 10px 15px;
423
+ min-height: 50px;
424
+
425
+ &.bg-white {
426
+ background-color: transparent;
427
+ }
428
+
429
+ &:focus {
430
+ outline: none;
431
+ border: 1px solid $primary;
432
+ }
433
+ }
434
+ }
435
+
436
+ input,
437
+ .ac-card,
438
+ textarea {
439
+ background-color: $white-100;
440
+ color: $primary-10;
441
+ height: 45px;
442
+ font-weight: 400;
443
+ width: 100%;
444
+ border-radius: 4px;
445
+ border: 1px solid $primary-80;
446
+ padding: 8px 15px;
447
+ font-size: 13px;
448
+
449
+ &:hover {
450
+ border-color: $black-70;
451
+ }
452
+
453
+ &.bg-white {
454
+ background-color: $white-100;
455
+ }
456
+
457
+ &.StripeElement--focus {
458
+ border: 1px solid $primary;
459
+ }
460
+
461
+ &:focus {
462
+ border: 1px solid $primary;
463
+ outline: none;
464
+ background-color: $white-100;
465
+ }
466
+
467
+ &[type="password"] {
468
+ padding-right: 40px;
469
+ }
470
+
471
+ &[type="search"] {
472
+ padding-left: 30px;
473
+ }
474
+
475
+ transition: background-color 0.3s ease-in-out;
476
+ }
477
+
478
+ .ac-card {
479
+ height: 36px;
480
+ padding: 10px 20px;
481
+ }
482
+
483
+ textarea {
484
+ height: 55px;
485
+ }
486
+
487
+ b.isRequired {
488
+ color: $danger;
489
+ font-size: 13px;
490
+ position: absolute;
491
+ right: 5px;
492
+ z-index: 9;
493
+ }
494
+
495
+ span.eye {
496
+ i.fa {
497
+ color: $primary-80;
498
+ position: absolute;
499
+ cursor: pointer;
500
+ padding: 15px;
501
+ right: 0;
502
+ top: 0;
503
+ }
504
+ }
505
+
506
+ .is-danger {
507
+ font-size: 12px;
508
+ line-height: 22px;
509
+ color: $danger;
510
+ text-align: left;
511
+
512
+ i.fa {
513
+ padding-right: 10px;
514
+ }
515
+ }
516
+ }
517
+
518
+ .ac-input.ac-search {
519
+ width: 42px;
520
+ transition: 0.3s ease-in-out;
521
+ padding: 0;
522
+ }
523
+
524
+ .ac-search:focus {
525
+ width: 200px !important;
526
+ padding-right: 10px;
527
+ }
528
+ </style>
@@ -1,22 +1,27 @@
1
+ <script setup lang="ts">
2
+ interface Props {
3
+ modelValue?: string | number;
4
+ }
5
+
6
+ withDefaults(defineProps<Props>(), {
7
+ modelValue: "",
8
+ });
9
+
10
+ const emit = defineEmits(["update:modelValue"]);
11
+
12
+ const handleInput = (e: Event) => {
13
+ const target = e.target as HTMLInputElement;
14
+ emit("update:modelValue", target.value);
15
+ };
16
+ </script>
17
+
1
18
  <template>
2
19
  <input
3
20
  class="ac-input"
4
21
  data-testid="ac-input"
5
22
  :value="modelValue"
6
- @input="$emit('update:modelValue', $event.target.value)"
23
+ @input="handleInput"
7
24
  />
8
25
  </template>
9
26
 
10
- <script>
11
- import { defineComponent } from "vue";
12
-
13
- export default defineComponent({
14
- props: {
15
- modelValue: {
16
- type: null,
17
- default: "",
18
- },
19
- },
20
- emits: ["update:modelValue"],
21
- });
22
- </script>
27
+ <style lang="scss" scoped></style>
@@ -1,5 +1,24 @@
1
+ <script setup lang="ts">
2
+ import { defineAsyncComponent } from "vue";
3
+
4
+ const HeaderItem = defineAsyncComponent(() => import("./HeaderItem.vue"));
5
+ const HeaderItems = defineAsyncComponent(() => import("./HeaderItems.vue"));
6
+
7
+ interface Props {
8
+ title?: string;
9
+ isContainer?: boolean;
10
+ topValue?: string;
11
+ }
12
+
13
+ withDefaults(defineProps<Props>(), {
14
+ title: "No Title",
15
+ isContainer: false,
16
+ topValue: "86px",
17
+ });
18
+ </script>
19
+
1
20
  <template>
2
- <div class="inner-header">
21
+ <div class="inner-header" :style="{ top: topValue }">
3
22
  <div
4
23
  class="is-flex is-justify-content-space-between"
5
24
  :class="{ container: isContainer }"
@@ -19,27 +38,102 @@
19
38
  </div>
20
39
  </template>
21
40
 
22
- <script>
23
- import { defineComponent, defineAsyncComponent } from "vue";
24
-
25
- export default defineComponent({
26
- props: {
27
- title: {
28
- type: String,
29
- default: "No Title",
30
- },
31
- isContainer: {
32
- type: Boolean,
33
- default: false,
34
- },
35
- },
36
- components: {
37
- HeaderItems: defineAsyncComponent(() =>
38
- import("../../v2/header/HeaderItems.vue").then((module) => module.default)
39
- ),
40
- HeaderItem: defineAsyncComponent(() =>
41
- import("../../v2/header/HeaderItem.vue").then((module) => module.default)
42
- ),
43
- },
44
- });
45
- </script>
41
+ <style lang="scss" scoped>
42
+ .inner-header {
43
+ padding: 6px 20px;
44
+ border-bottom: 1px solid $primary-93;
45
+ position: sticky;
46
+ background: $white-100;
47
+ z-index: 99;
48
+ }
49
+
50
+ // footer control start
51
+ // .form-footer-controls {
52
+ // .form-footer-control {
53
+ // display: inline-block;
54
+ // margin-left: 8px;
55
+ // vertical-align: middle;
56
+
57
+ // &:first-child {
58
+ // margin-left: 0;
59
+ // }
60
+ // }
61
+ // }
62
+
63
+ // .dashboard-header {
64
+ // padding: 10px 20px;
65
+ // border-radius: 4px;
66
+ // background-color: $white-100;
67
+ // min-height: 75px;
68
+ // display: table;
69
+ // width: 100%;
70
+ // border-left: 5px solid $primary;
71
+ // border-bottom: 1px solid $primary-90;
72
+ // border-top: 1px solid $primary-90;
73
+ // border-right: 1px solid $primary-90;
74
+
75
+ // .dashboard-header-wrapper {
76
+ // height: 100%;
77
+ // display: table;
78
+ // width: 100%;
79
+
80
+ // .dashboard-header-inner {
81
+ // display: table-cell;
82
+ // vertical-align: middle;
83
+ // }
84
+ // }
85
+ // }
86
+
87
+ // .dashboard-header-inner-top {
88
+ // height: 100%;
89
+ // vertical-align: middle;
90
+ // display: table-cell;
91
+ // }
92
+
93
+ // .dashboard-header.is-chart-available {
94
+ // padding: 10px 30px;
95
+
96
+ // .dashboard-header-wrapper {
97
+ // height: 100%;
98
+ // display: table;
99
+ // width: 100%;
100
+
101
+ // .dashboard-header-inner {
102
+ // display: table-cell;
103
+ // vertical-align: middle;
104
+ // }
105
+ // }
106
+ // }
107
+
108
+ // .resource {
109
+ // display: flex;
110
+ // align-items: center;
111
+ // border-left: 1px solid $primary-90;
112
+ // padding: 0 1.5rem;
113
+ // margin-top: -10px;
114
+ // margin-bottom: -10px;
115
+ // .r-icon {
116
+ // display: flex;
117
+ // align-items: center;
118
+ // max-width: 40px;
119
+ // }
120
+
121
+ // .r-data {
122
+ // margin-left: 0.8rem;
123
+ // .request,
124
+ // .limit {
125
+ // font-weight: 500;
126
+ // min-width: 50px;
127
+ // text-align: center;
128
+ // }
129
+ // .request {
130
+ // font-weight: 300;
131
+ // }
132
+ // hr {
133
+ // margin: 0;
134
+ // padding: 0;
135
+ // background-color: $primary-90;
136
+ // }
137
+ // }
138
+ // }
139
+ </style>