@mptw/skylens-ui 1.5.0 → 1.5.2
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.
- package/AGENTS.md +59 -0
- package/CLAUDE.md +36 -0
- package/README.md +7 -7
- package/app/app.config.ts +11 -2
- package/app/app.vue +5 -0
- package/app/assets/css/layout.css +134 -0
- package/app/assets/css/main.css +189 -0
- package/app/components/SLAlertModal.vue +24 -16
- package/app/components/SLBreadcrumbs.vue +12 -8
- package/app/components/SLButton.vue +196 -163
- package/app/components/SLCalendarButton.vue +40 -34
- package/app/components/SLCalendarPopup.vue +79 -53
- package/app/components/SLCard.vue +57 -41
- package/app/components/SLChart.vue +6 -3
- package/app/components/SLCheckbox.vue +92 -49
- package/app/components/SLCircleButton.vue +25 -16
- package/app/components/SLCollapsableBlock.vue +44 -33
- package/app/components/SLCollapsableMulitPillSelect.vue +20 -15
- package/app/components/SLConfirmModal.vue +9 -6
- package/app/components/SLContextMenu.vue +88 -48
- package/app/components/SLDateInput.vue +109 -92
- package/app/components/SLDatePicker.vue +9 -7
- package/app/components/SLDistributor.vue +1 -1
- package/app/components/SLDownloadButton.vue +39 -29
- package/app/components/SLDraggable.vue +2 -2
- package/app/components/SLDropdown.vue +33 -25
- package/app/components/SLDropdownItem.vue +9 -5
- package/app/components/SLElementWithTitle.vue +12 -7
- package/app/components/SLEyeCheckbox.vue +44 -31
- package/app/components/SLFileInput.vue +23 -16
- package/app/components/SLGenderAgeSelect.vue +52 -36
- package/app/components/SLHourRangeInput.vue +45 -32
- package/app/components/SLIOSSwitch.vue +81 -60
- package/app/components/SLIcon.vue +4 -3
- package/app/components/SLIconButton.vue +31 -29
- package/app/components/SLInfoTip.vue +51 -40
- package/app/components/SLInsightSitePage.vue +12 -7
- package/app/components/SLLegend.vue +19 -12
- package/app/components/SLLinearProgressBar.vue +7 -20
- package/app/components/SLLink.vue +12 -8
- package/app/components/SLLoading.vue +34 -31
- package/app/components/SLMapChart.vue +5 -4
- package/app/components/SLModal.vue +90 -66
- package/app/components/SLMonthCalendarButton.vue +91 -45
- package/app/components/SLMonthPicker.vue +42 -37
- package/app/components/SLMultiEmailInput.vue +163 -113
- package/app/components/SLMultiSelect.vue +37 -26
- package/app/components/SLNoData.vue +16 -11
- package/app/components/SLNotification.vue +133 -129
- package/app/components/SLPageModal.vue +14 -9
- package/app/components/SLPagination.vue +45 -33
- package/app/components/SLPillCheckbox.vue +50 -42
- package/app/components/SLPillLabel.vue +43 -28
- package/app/components/SLPopupMenuButton.vue +26 -17
- package/app/components/SLProfileButton.vue +28 -20
- package/app/components/SLProjectShareItem.vue +30 -17
- package/app/components/SLRadioButton.vue +41 -33
- package/app/components/SLRadioButtonGroup.vue +28 -23
- package/app/components/SLRadioGroup.vue +90 -78
- package/app/components/SLRangeInput.vue +53 -38
- package/app/components/SLRegionsMapChart.vue +5 -4
- package/app/components/SLRightSider.vue +50 -40
- package/app/components/SLSearchInput.vue +24 -19
- package/app/components/SLSelect.vue +114 -87
- package/app/components/SLSelectAllToggle.vue +52 -37
- package/app/components/SLSidebarNav.vue +253 -193
- package/app/components/SLSidebarNavGroupItem.vue +13 -10
- package/app/components/SLSidebarNavGroupItemSection.vue +240 -179
- package/app/components/SLSidebarNavLinkItem.vue +131 -109
- package/app/components/SLSidebarNavSectionItem.vue +21 -18
- package/app/components/SLSitePage.vue +35 -24
- package/app/components/SLSkyInsightSitePage.vue +13 -8
- package/app/components/SLSortByDropdown.vue +35 -22
- package/app/components/SLSpinIcon.vue +6 -3
- package/app/components/SLStayRangeInput.vue +47 -36
- package/app/components/SLTab.vue +7 -2
- package/app/components/SLTable.vue +330 -313
- package/app/components/SLTableTooltip.vue +44 -30
- package/app/components/SLTabs.vue +333 -280
- package/app/components/SLTextInput.vue +162 -134
- package/app/components/SLTextarea.vue +40 -29
- package/app/components/SLToast.vue +19 -11
- package/app/components/SLToggleButton.vue +18 -11
- package/app/components/SLTwoLayerMultiSelect.vue +180 -85
- package/app/components/SLTwoLayerSelect.vue +47 -37
- package/app/components/SLTwoLayerSingleSelect.vue +52 -33
- package/app/components/SLWarnModal.vue +9 -7
- package/app/interface/commons.ts +7 -0
- package/app/utils/index.ts +213 -146
- package/eslint.config.js +3 -0
- package/nuxt.config.ts +17 -14
- package/package.json +9 -8
- package/skills-lock.json +59 -0
- package/tsconfig.json +1 -6
- package/.eslintrc.cjs +0 -4
- package/app/assets/css/layout.styl +0 -98
- package/app/assets/css/tailwind.css +0 -3
- package/app/pages/index.vue +0 -15
- package/interface/commons.ts +0 -7
- package/tailwind.config.js +0 -271
- /package/{interface → app/interface}/IDateRange.ts +0 -0
- /package/{interface → app/interface}/IHourRange.ts +0 -0
- /package/{interface → app/interface}/IInputOption.ts +0 -0
- /package/{interface → app/interface}/ILegendItem.ts +0 -0
- /package/{interface → app/interface}/IOrganization.ts +0 -0
- /package/{interface → app/interface}/IPopupMenuButton.ts +0 -0
- /package/{interface → app/interface}/IStayRange.ts +0 -0
- /package/{interface → app/interface}/ITableField.ts +0 -0
- /package/{interface → app/interface}/IWeb.ts +0 -0
- /package/{interface → app/interface}/NavConfigType.ts +0 -0
- /package/{models → app/models}/DateRange.ts +0 -0
|
@@ -182,7 +182,7 @@ export default defineComponent({
|
|
|
182
182
|
alpha: 1,
|
|
183
183
|
duration: 0.5,
|
|
184
184
|
},
|
|
185
|
-
0
|
|
185
|
+
0,
|
|
186
186
|
);
|
|
187
187
|
tl.to(
|
|
188
188
|
modalContent,
|
|
@@ -191,7 +191,7 @@ export default defineComponent({
|
|
|
191
191
|
alpha: 1,
|
|
192
192
|
duration: 0.5,
|
|
193
193
|
},
|
|
194
|
-
0.3
|
|
194
|
+
0.3,
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -231,7 +231,7 @@ export default defineComponent({
|
|
|
231
231
|
alpha: 0,
|
|
232
232
|
duration: 0.5,
|
|
233
233
|
},
|
|
234
|
-
0
|
|
234
|
+
0,
|
|
235
235
|
);
|
|
236
236
|
tl.to(
|
|
237
237
|
modalContent,
|
|
@@ -239,7 +239,7 @@ export default defineComponent({
|
|
|
239
239
|
alpha: 0,
|
|
240
240
|
duration: 0.5,
|
|
241
241
|
},
|
|
242
|
-
0
|
|
242
|
+
0,
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -288,91 +288,115 @@ export default defineComponent({
|
|
|
288
288
|
});
|
|
289
289
|
</script>
|
|
290
290
|
|
|
291
|
-
<style
|
|
292
|
-
.
|
|
293
|
-
@apply z-50 fixed top-0 left-0 w-full h-full overflow-hidden
|
|
291
|
+
<style scoped>
|
|
292
|
+
@reference '~ui/app/assets/css/main.css';
|
|
294
293
|
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
.modal {
|
|
295
|
+
@apply z-50 fixed top-0 left-0 w-full h-full overflow-hidden;
|
|
296
|
+
}
|
|
297
297
|
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
.modal.modal-centered {
|
|
299
|
+
@apply flex items-center;
|
|
300
|
+
}
|
|
300
301
|
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
.modal .modal-backdrop {
|
|
303
|
+
@apply absolute top-0 left-0 w-full h-full;
|
|
304
|
+
}
|
|
303
305
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
+
.modal .modal-backdrop.show {
|
|
307
|
+
@apply bg-mask/80;
|
|
308
|
+
}
|
|
306
309
|
|
|
307
|
-
|
|
308
|
-
|
|
310
|
+
.modal .modal-dialog {
|
|
311
|
+
@apply relative w-full my-7 mx-auto;
|
|
312
|
+
}
|
|
309
313
|
|
|
310
|
-
|
|
311
|
-
|
|
314
|
+
.modal .modal-dialog-xs {
|
|
315
|
+
@apply max-w-[30rem];
|
|
316
|
+
}
|
|
312
317
|
|
|
313
|
-
|
|
314
|
-
|
|
318
|
+
.modal .modal-dialog-sm {
|
|
319
|
+
@apply max-w-149.5;
|
|
320
|
+
}
|
|
315
321
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
322
|
+
.modal .modal-dialog-lg {
|
|
323
|
+
@apply max-w-[39.75rem];
|
|
324
|
+
}
|
|
319
325
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
326
|
+
.modal .modal-dialog-xl {
|
|
327
|
+
@apply max-w-[39rem] lg:max-w-208;
|
|
328
|
+
}
|
|
323
329
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
330
|
+
.modal .modal-dialog-2xl {
|
|
331
|
+
@apply max-w-[41rem] lg:max-w-[55.125rem];
|
|
332
|
+
}
|
|
327
333
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
334
|
+
.modal .modal-dialog-3xl {
|
|
335
|
+
@apply max-w-[748px] lg:max-w-[900px];
|
|
336
|
+
}
|
|
331
337
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
338
|
+
.modal .modal-dialog-4xl {
|
|
339
|
+
@apply max-w-[697px] lg:max-w-[924px];
|
|
340
|
+
}
|
|
335
341
|
|
|
336
|
-
|
|
337
|
-
|
|
342
|
+
.modal .modal-dialog-5xl {
|
|
343
|
+
@apply max-w-[748px] lg:max-w-[980px];
|
|
344
|
+
}
|
|
338
345
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
346
|
+
.modal .modal-dialog-free {
|
|
347
|
+
@apply w-auto;
|
|
348
|
+
}
|
|
342
349
|
|
|
343
|
-
|
|
344
|
-
|
|
350
|
+
.modal .modal-dialog-centered {
|
|
351
|
+
@apply flex;
|
|
352
|
+
max-height: calc(100% - (var(--spacing) * 7 * 2));
|
|
353
|
+
}
|
|
345
354
|
|
|
346
|
-
|
|
347
|
-
|
|
355
|
+
.modal .modal-content {
|
|
356
|
+
@apply flex flex-col w-full max-h-full rounded-lg bg-white shadow-popup-lg;
|
|
357
|
+
}
|
|
348
358
|
|
|
349
|
-
|
|
350
|
-
|
|
359
|
+
.modal .modal-content .modal-header + .modal-body {
|
|
360
|
+
@apply rounded-t-none;
|
|
361
|
+
}
|
|
351
362
|
|
|
352
|
-
|
|
353
|
-
|
|
363
|
+
.modal .modal-content .modal-header {
|
|
364
|
+
@apply grow-0 shrink-0 flex items-center justify-between py-2 px-4 bg-primary rounded-t-lg text-xl leading-6.75 text-white;
|
|
365
|
+
}
|
|
354
366
|
|
|
355
|
-
|
|
356
|
-
|
|
367
|
+
.modal .modal-content .modal-header-left {
|
|
368
|
+
@apply flex items-center;
|
|
369
|
+
}
|
|
357
370
|
|
|
358
|
-
|
|
359
|
-
|
|
371
|
+
.modal .modal-content .modal-header-right {
|
|
372
|
+
@apply flex items-baseline ml-6;
|
|
373
|
+
}
|
|
360
374
|
|
|
361
|
-
|
|
362
|
-
|
|
375
|
+
.modal .modal-content .modal-title {
|
|
376
|
+
@apply inline-flex items-baseline space-x-2 font-normal;
|
|
377
|
+
}
|
|
363
378
|
|
|
364
|
-
|
|
365
|
-
|
|
379
|
+
.modal .modal-content .modal-title-notice {
|
|
380
|
+
@apply text-xs font-normal;
|
|
381
|
+
}
|
|
366
382
|
|
|
367
|
-
|
|
368
|
-
|
|
383
|
+
.modal .modal-content .close-button {
|
|
384
|
+
@apply inline-flex text-base text-white;
|
|
385
|
+
}
|
|
369
386
|
|
|
370
|
-
|
|
371
|
-
|
|
387
|
+
.modal .modal-content .close-button .icon {
|
|
388
|
+
@apply inline-flex;
|
|
389
|
+
}
|
|
372
390
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
391
|
+
.modal .modal-body {
|
|
392
|
+
@apply grow relative w-full pt-4 pr-4 pl-4 bg-white rounded-lg;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.modal .modal-body:last-child {
|
|
396
|
+
@apply pb-4;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.modal .modal-footer {
|
|
400
|
+
@apply grow-0 shrink-0 p-6 rounded-b-lg;
|
|
401
|
+
}
|
|
378
402
|
</style>
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
} from "date-fns";
|
|
62
62
|
import { createPopper } from "@popperjs/core";
|
|
63
63
|
import type { Instance as PopperInstance } from "@popperjs/core";
|
|
64
|
-
import { gaev, ga4ev } from "~ui/utils";
|
|
64
|
+
import { gaev, ga4ev } from "~ui/app/utils";
|
|
65
65
|
|
|
66
66
|
export default defineComponent({
|
|
67
67
|
name: "SLMonthCalendarButton",
|
|
@@ -93,7 +93,7 @@ export default defineComponent({
|
|
|
93
93
|
const isShowPopup = ref(false);
|
|
94
94
|
const modelValueProxy = ref<(Date | null)[]>([...modelValue.value]);
|
|
95
95
|
const isCompare = ref(
|
|
96
|
-
modelValue.value[1] && enableCompare.value ? true : false
|
|
96
|
+
modelValue.value[1] && enableCompare.value ? true : false,
|
|
97
97
|
);
|
|
98
98
|
|
|
99
99
|
let popperInstance: PopperInstance | null = null;
|
|
@@ -129,10 +129,10 @@ export default defineComponent({
|
|
|
129
129
|
return maxCompareDate;
|
|
130
130
|
});
|
|
131
131
|
const currentMonthString = computed(() =>
|
|
132
|
-
modelValue.value[0] ? formatDate(modelValue.value[0], "yyyy/ MM") : ""
|
|
132
|
+
modelValue.value[0] ? formatDate(modelValue.value[0], "yyyy/ MM") : "",
|
|
133
133
|
);
|
|
134
134
|
const compareMonthString = computed(() =>
|
|
135
|
-
modelValue.value[1] ? formatDate(modelValue.value[1], "yyyy/ MM") : ""
|
|
135
|
+
modelValue.value[1] ? formatDate(modelValue.value[1], "yyyy/ MM") : "",
|
|
136
136
|
);
|
|
137
137
|
|
|
138
138
|
function onClickedCompare() {
|
|
@@ -330,49 +330,95 @@ export default defineComponent({
|
|
|
330
330
|
});
|
|
331
331
|
</script>
|
|
332
332
|
|
|
333
|
-
<style lang="
|
|
334
|
-
.
|
|
335
|
-
|
|
333
|
+
<style lang="css" scoped>
|
|
334
|
+
@reference '~ui/app/assets/css/main.css';
|
|
335
|
+
|
|
336
|
+
.month-calendar-button {
|
|
337
|
+
@apply inline-flex;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.month-calendar-button-toggle {
|
|
341
|
+
@apply inline-flex items-center justify-center min-w-[163px] min-h-[58px] py-1 px-4 bg-white border border-primary-500 rounded shadow-default;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.month-calendar-button-toggle .toggle-wrapper {
|
|
345
|
+
@apply inline-flex items-center;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.month-calendar-button-toggle .toggle-wrapper .icon {
|
|
349
|
+
@apply text-base leading-none text-primary;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.month-calendar-button-toggle .toggle-wrapper .toggle-divide {
|
|
353
|
+
@apply self-stretch w-px ml-4 mr-3.75 bg-primary rounded-full;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.month-calendar-button-toggle .toggle-wrapper .button-title {
|
|
357
|
+
@apply space-y-1 text-end;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.month-calendar-button-toggle .toggle-wrapper .button-title .current-month {
|
|
361
|
+
@apply text-lg text-pgray-2;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.month-calendar-button-toggle .toggle-wrapper .button-title .compare-month {
|
|
365
|
+
@apply text-xs text-pgray-3;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.month-calendar-popup {
|
|
369
|
+
@apply z-50 p-3.75 space-y-4 bg-white border border-primary-100 rounded-lg shadow-md hidden;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.month-calendar-popup[data-show] {
|
|
373
|
+
@apply block;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.month-calendar-popup .popup-header {
|
|
377
|
+
@apply text-center;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.month-calendar-popup .popup-header .compare-switch {
|
|
381
|
+
@apply inline-flex items-center space-x-px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.month-calendar-popup .popup-header .compare-switch .compare-switch-button {
|
|
385
|
+
@apply block py-0.75 px-3.75 bg-white border border-primary-300 text-sm text-insight-title;
|
|
386
|
+
}
|
|
336
387
|
|
|
337
|
-
&-toggle
|
|
338
|
-
@apply inline-flex items-center justify-center s('min-w-[163px]') s('min-h-[58px]') py-1 px-4 bg-white border border-primary-500 rounded shadow
|
|
339
|
-
.toggle-wrapper
|
|
340
|
-
@apply inline-flex items-center
|
|
341
|
-
.icon
|
|
342
|
-
@apply text-base leading-none text-primary
|
|
343
|
-
.toggle-divide
|
|
344
|
-
@apply self-stretch w-px ml-4 s('mr-3.75') bg-primary rounded-full
|
|
345
|
-
.button-title
|
|
346
|
-
@apply space-y-1 text-end
|
|
347
|
-
.current-month
|
|
348
|
-
@apply text-lg text-pgray-2
|
|
349
|
-
.compare-month
|
|
350
|
-
@apply text-xs text-pgray-3
|
|
351
388
|
.month-calendar-popup
|
|
352
|
-
|
|
389
|
+
.popup-header
|
|
390
|
+
.compare-switch
|
|
391
|
+
.compare-switch-button:first-child {
|
|
392
|
+
@apply rounded-l rounded-r-[1px];
|
|
393
|
+
}
|
|
353
394
|
|
|
354
|
-
|
|
355
|
-
|
|
395
|
+
.month-calendar-popup
|
|
396
|
+
.popup-header
|
|
397
|
+
.compare-switch
|
|
398
|
+
.compare-switch-button:last-child {
|
|
399
|
+
@apply rounded-l-[1px] rounded-r;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.month-calendar-popup
|
|
356
403
|
.popup-header
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
@apply text-base text-pgray-3
|
|
404
|
+
.compare-switch
|
|
405
|
+
.compare-switch-button.selected {
|
|
406
|
+
@apply bg-insight-title border-insight-title text-white;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.month-calendar-popup .popup-body {
|
|
410
|
+
@apply flex;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.month-calendar-popup .popup-body .calendar-divide {
|
|
414
|
+
@apply w-px ml-4 mr-3.75 bg-pgray-4;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.month-calendar-popup .popup-footer {
|
|
418
|
+
@apply pt-4 space-x-6 border-t border-pgray-4 text-center;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.month-calendar-popup .popup-footer .cancel-button {
|
|
422
|
+
@apply text-base text-pgray-3;
|
|
423
|
+
}
|
|
378
424
|
</style>
|
|
@@ -54,20 +54,20 @@ export default defineComponent({
|
|
|
54
54
|
const { minDate, maxDate, modelValue } = toRefs(props);
|
|
55
55
|
|
|
56
56
|
const yearProxy = ref(
|
|
57
|
-
modelValue.value?.getFullYear() || new Date().getFullYear()
|
|
57
|
+
modelValue.value?.getFullYear() || new Date().getFullYear(),
|
|
58
58
|
);
|
|
59
59
|
|
|
60
60
|
const minYear = computed(() => minDate.value?.getFullYear() || null);
|
|
61
61
|
const minMonth = computed(() =>
|
|
62
|
-
minDate.value ? minDate.value.getMonth() + 1 : null
|
|
62
|
+
minDate.value ? minDate.value.getMonth() + 1 : null,
|
|
63
63
|
);
|
|
64
64
|
const maxYear = computed(() => maxDate.value?.getFullYear() || null);
|
|
65
65
|
const maxMonth = computed(() =>
|
|
66
|
-
maxDate.value ? maxDate.value.getMonth() + 1 : null
|
|
66
|
+
maxDate.value ? maxDate.value.getMonth() + 1 : null,
|
|
67
67
|
);
|
|
68
68
|
const year = computed(() => modelValue.value?.getFullYear() || null);
|
|
69
69
|
const month = computed(() =>
|
|
70
|
-
modelValue.value ? modelValue.value.getMonth() + 1 : null
|
|
70
|
+
modelValue.value ? modelValue.value.getMonth() + 1 : null,
|
|
71
71
|
);
|
|
72
72
|
|
|
73
73
|
function onClickedPrevYear() {
|
|
@@ -105,47 +105,52 @@ export default defineComponent({
|
|
|
105
105
|
});
|
|
106
106
|
</script>
|
|
107
107
|
|
|
108
|
-
<style
|
|
109
|
-
.
|
|
110
|
-
@apply s('w-[190px]') space-y-4
|
|
108
|
+
<style scoped>
|
|
109
|
+
@reference '~ui/app/assets/css/main.css';
|
|
111
110
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
.month-button
|
|
116
|
-
&.selected
|
|
117
|
-
@apply bg-insight-title
|
|
111
|
+
.month-picker {
|
|
112
|
+
@apply w-47.5 space-y-4;
|
|
113
|
+
}
|
|
118
114
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
.month-button
|
|
123
|
-
&.selected
|
|
124
|
-
@apply bg-primary-600
|
|
115
|
+
.month-picker--insight-title .month-select-wrapper .month-button.selected {
|
|
116
|
+
@apply bg-insight-title;
|
|
117
|
+
}
|
|
125
118
|
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
.month-picker--primary-600 .month-select-wrapper .month-button.selected {
|
|
120
|
+
@apply bg-primary-600;
|
|
121
|
+
}
|
|
128
122
|
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
.month-picker .year-select {
|
|
124
|
+
@apply flex items-center justify-center space-x-10;
|
|
125
|
+
}
|
|
131
126
|
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
.month-picker .year-select .prev-button,
|
|
128
|
+
.month-picker .year-select .next-button {
|
|
129
|
+
@apply inline-flex items-center text-xs text-pgray-3;
|
|
130
|
+
}
|
|
134
131
|
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
.month-picker .year-select .prev-button.disabled,
|
|
133
|
+
.month-picker .year-select .next-button.disabled {
|
|
134
|
+
@apply text-pgray-5 cursor-default;
|
|
135
|
+
}
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
.month-picker .year-select .year {
|
|
138
|
+
@apply text-sm text-pgray-2;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.month-picker .month-select-wrapper {
|
|
142
|
+
@apply flex flex-wrap -my-2 -mx-4;
|
|
143
|
+
}
|
|
141
144
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
.month-picker .month-select-wrapper .month-button {
|
|
146
|
+
@apply flex items-center justify-center w-10.5 h-6.75 my-2 mx-4 bg-white rounded text-sm text-pgray-3 hover:bg-primary-300 hover:text-white;
|
|
147
|
+
}
|
|
145
148
|
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
.month-picker .month-select-wrapper .month-button.selected {
|
|
150
|
+
@apply text-white;
|
|
151
|
+
}
|
|
148
152
|
|
|
149
|
-
|
|
150
|
-
|
|
153
|
+
.month-picker .month-select-wrapper .month-button.disabled {
|
|
154
|
+
@apply bg-white text-pgray-5;
|
|
155
|
+
}
|
|
151
156
|
</style>
|