@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.
Files changed (111) hide show
  1. package/AGENTS.md +59 -0
  2. package/CLAUDE.md +36 -0
  3. package/README.md +7 -7
  4. package/app/app.config.ts +11 -2
  5. package/app/app.vue +5 -0
  6. package/app/assets/css/layout.css +134 -0
  7. package/app/assets/css/main.css +189 -0
  8. package/app/components/SLAlertModal.vue +24 -16
  9. package/app/components/SLBreadcrumbs.vue +12 -8
  10. package/app/components/SLButton.vue +196 -163
  11. package/app/components/SLCalendarButton.vue +40 -34
  12. package/app/components/SLCalendarPopup.vue +79 -53
  13. package/app/components/SLCard.vue +57 -41
  14. package/app/components/SLChart.vue +6 -3
  15. package/app/components/SLCheckbox.vue +92 -49
  16. package/app/components/SLCircleButton.vue +25 -16
  17. package/app/components/SLCollapsableBlock.vue +44 -33
  18. package/app/components/SLCollapsableMulitPillSelect.vue +20 -15
  19. package/app/components/SLConfirmModal.vue +9 -6
  20. package/app/components/SLContextMenu.vue +88 -48
  21. package/app/components/SLDateInput.vue +109 -92
  22. package/app/components/SLDatePicker.vue +9 -7
  23. package/app/components/SLDistributor.vue +1 -1
  24. package/app/components/SLDownloadButton.vue +39 -29
  25. package/app/components/SLDraggable.vue +2 -2
  26. package/app/components/SLDropdown.vue +33 -25
  27. package/app/components/SLDropdownItem.vue +9 -5
  28. package/app/components/SLElementWithTitle.vue +12 -7
  29. package/app/components/SLEyeCheckbox.vue +44 -31
  30. package/app/components/SLFileInput.vue +23 -16
  31. package/app/components/SLGenderAgeSelect.vue +52 -36
  32. package/app/components/SLHourRangeInput.vue +45 -32
  33. package/app/components/SLIOSSwitch.vue +81 -60
  34. package/app/components/SLIcon.vue +4 -3
  35. package/app/components/SLIconButton.vue +31 -29
  36. package/app/components/SLInfoTip.vue +51 -40
  37. package/app/components/SLInsightSitePage.vue +12 -7
  38. package/app/components/SLLegend.vue +19 -12
  39. package/app/components/SLLinearProgressBar.vue +7 -20
  40. package/app/components/SLLink.vue +12 -8
  41. package/app/components/SLLoading.vue +34 -31
  42. package/app/components/SLMapChart.vue +5 -4
  43. package/app/components/SLModal.vue +90 -66
  44. package/app/components/SLMonthCalendarButton.vue +91 -45
  45. package/app/components/SLMonthPicker.vue +42 -37
  46. package/app/components/SLMultiEmailInput.vue +163 -113
  47. package/app/components/SLMultiSelect.vue +37 -26
  48. package/app/components/SLNoData.vue +16 -11
  49. package/app/components/SLNotification.vue +133 -129
  50. package/app/components/SLPageModal.vue +14 -9
  51. package/app/components/SLPagination.vue +45 -33
  52. package/app/components/SLPillCheckbox.vue +50 -42
  53. package/app/components/SLPillLabel.vue +43 -28
  54. package/app/components/SLPopupMenuButton.vue +26 -17
  55. package/app/components/SLProfileButton.vue +28 -20
  56. package/app/components/SLProjectShareItem.vue +30 -17
  57. package/app/components/SLRadioButton.vue +41 -33
  58. package/app/components/SLRadioButtonGroup.vue +28 -23
  59. package/app/components/SLRadioGroup.vue +90 -78
  60. package/app/components/SLRangeInput.vue +53 -38
  61. package/app/components/SLRegionsMapChart.vue +5 -4
  62. package/app/components/SLRightSider.vue +50 -40
  63. package/app/components/SLSearchInput.vue +24 -19
  64. package/app/components/SLSelect.vue +114 -87
  65. package/app/components/SLSelectAllToggle.vue +52 -37
  66. package/app/components/SLSidebarNav.vue +253 -193
  67. package/app/components/SLSidebarNavGroupItem.vue +13 -10
  68. package/app/components/SLSidebarNavGroupItemSection.vue +240 -179
  69. package/app/components/SLSidebarNavLinkItem.vue +131 -109
  70. package/app/components/SLSidebarNavSectionItem.vue +21 -18
  71. package/app/components/SLSitePage.vue +35 -24
  72. package/app/components/SLSkyInsightSitePage.vue +13 -8
  73. package/app/components/SLSortByDropdown.vue +35 -22
  74. package/app/components/SLSpinIcon.vue +6 -3
  75. package/app/components/SLStayRangeInput.vue +47 -36
  76. package/app/components/SLTab.vue +7 -2
  77. package/app/components/SLTable.vue +330 -313
  78. package/app/components/SLTableTooltip.vue +44 -30
  79. package/app/components/SLTabs.vue +333 -280
  80. package/app/components/SLTextInput.vue +162 -134
  81. package/app/components/SLTextarea.vue +40 -29
  82. package/app/components/SLToast.vue +19 -11
  83. package/app/components/SLToggleButton.vue +18 -11
  84. package/app/components/SLTwoLayerMultiSelect.vue +180 -85
  85. package/app/components/SLTwoLayerSelect.vue +47 -37
  86. package/app/components/SLTwoLayerSingleSelect.vue +52 -33
  87. package/app/components/SLWarnModal.vue +9 -7
  88. package/app/interface/commons.ts +7 -0
  89. package/app/utils/index.ts +213 -146
  90. package/eslint.config.js +3 -0
  91. package/nuxt.config.ts +17 -14
  92. package/package.json +9 -8
  93. package/skills-lock.json +59 -0
  94. package/tsconfig.json +1 -6
  95. package/.eslintrc.cjs +0 -4
  96. package/app/assets/css/layout.styl +0 -98
  97. package/app/assets/css/tailwind.css +0 -3
  98. package/app/pages/index.vue +0 -15
  99. package/interface/commons.ts +0 -7
  100. package/tailwind.config.js +0 -271
  101. /package/{interface → app/interface}/IDateRange.ts +0 -0
  102. /package/{interface → app/interface}/IHourRange.ts +0 -0
  103. /package/{interface → app/interface}/IInputOption.ts +0 -0
  104. /package/{interface → app/interface}/ILegendItem.ts +0 -0
  105. /package/{interface → app/interface}/IOrganization.ts +0 -0
  106. /package/{interface → app/interface}/IPopupMenuButton.ts +0 -0
  107. /package/{interface → app/interface}/IStayRange.ts +0 -0
  108. /package/{interface → app/interface}/ITableField.ts +0 -0
  109. /package/{interface → app/interface}/IWeb.ts +0 -0
  110. /package/{interface → app/interface}/NavConfigType.ts +0 -0
  111. /package/{models → app/models}/DateRange.ts +0 -0
@@ -21,9 +21,9 @@
21
21
 
22
22
  <script lang="ts">
23
23
  import type { PropType } from "vue";
24
- import { formatDateRange } from "~ui/utils";
25
- import type IDateRange from "~ui/interface/IDateRange";
26
- import type ITableField from "~ui/interface/ITableField";
24
+ import { formatDateRange } from "~ui/app/utils";
25
+ import type IDateRange from "~ui/app/interface/IDateRange";
26
+ import type ITableField from "~ui/app/interface/ITableField";
27
27
 
28
28
  export default defineComponent({
29
29
  name: "SLTableTooltip",
@@ -70,42 +70,56 @@ export default defineComponent({
70
70
  });
71
71
  </script>
72
72
 
73
- <style lang="stylus">
74
- .table-tooltip
75
- @apply inline-block p-4 border border-primary-600 rounded bg-white shadow-popup-sm pointer-events-none
73
+ <style>
74
+ @reference '~ui/app/assets/css/main.css';
75
+
76
+ .table-tooltip {
77
+ @apply inline-block p-4 border border-primary-600 rounded bg-white shadow-popup-sm pointer-events-none;
78
+ }
76
79
 
77
- &-title
78
- @apply mb-4 text-base text-pgray-2 font-bold
80
+ .table-tooltip-title {
81
+ @apply mb-4 text-base text-pgray-2 font-bold;
82
+ }
79
83
 
80
- &:not(:last-child)
81
- @apply mb-1
84
+ .table-tooltip-title:not(:last-child) {
85
+ @apply mb-1;
86
+ }
82
87
 
83
- &-caption
84
- @apply mb-2 text-sm text-pgray-2
88
+ .table-tooltip-caption {
89
+ @apply mb-2 text-sm text-pgray-2;
90
+ }
85
91
 
86
- table
87
- @apply w-full text-base text-pgray-2
92
+ .table-tooltip table {
93
+ @apply w-full text-base text-pgray-2;
94
+ }
88
95
 
89
- tbody
90
- tr
91
- &.date-row
92
- @apply text-pgray-3
96
+ .table-tooltip table tbody tr.date-row {
97
+ @apply text-pgray-3;
98
+ }
93
99
 
94
- td
95
- @apply pt-4
100
+ .table-tooltip table tbody tr.date-row td {
101
+ @apply pt-4;
102
+ }
96
103
 
97
- &:first-child
98
- @apply text-primary
104
+ .table-tooltip table tbody tr.date-row:first-child {
105
+ @apply text-primary;
106
+ }
99
107
 
100
- td
101
- @apply pt-0
108
+ .table-tooltip table tbody tr.date-row:first-child td {
109
+ @apply pt-0;
110
+ }
102
111
 
103
- td, th
104
- @apply text-left
112
+ .table-tooltip table tbody tr.date-row td,
113
+ .table-tooltip table tbody tr.date-row th {
114
+ @apply text-left;
115
+ }
105
116
 
106
- &.header-row
107
- @apply border-b
117
+ .table-tooltip table tbody tr.header-row {
118
+ @apply border-b;
119
+ }
108
120
 
109
- td, th
110
- @apply py-1 px-3 text-center
121
+ .table-tooltip table tbody tr td,
122
+ .table-tooltip table tbody tr th {
123
+ @apply py-1 px-3 text-center;
124
+ }
111
125
  </style>