@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
@@ -54,8 +54,8 @@
54
54
  <script lang="ts">
55
55
  import type { PropType } from "vue";
56
56
  import { SLSelect } from "#components";
57
- import type IStayRange from "~ui/interface/IStayRange";
58
- import { StayRangeLevel } from "~ui/interface/IStayRange";
57
+ import type IStayRange from "~ui/app/interface/IStayRange";
58
+ import { StayRangeLevel } from "~ui/app/interface/IStayRange";
59
59
 
60
60
  type SLSelectType = InstanceType<typeof SLSelect>;
61
61
 
@@ -255,52 +255,63 @@ export default defineComponent({
255
255
  });
256
256
  </script>
257
257
 
258
- <style lang="stylus">
259
- .stay-range-input
260
- @apply flex flex-col
258
+ <style>
259
+ @reference '~ui/app/assets/css/main.css';
261
260
 
262
- &.inline
263
- @apply flex flex-row
261
+ .stay-range-input {
262
+ @apply flex flex-col;
263
+ }
264
264
 
265
- & > label
266
- @apply flex-grow-0 flex-shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent
265
+ .stay-range-input.inline {
266
+ @apply flex flex-row;
267
+ }
267
268
 
268
- .form-control
269
- @apply flex-grow
269
+ .stay-range-input.inline > label {
270
+ @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
271
+ }
270
272
 
271
- &.disabled, &.readonly
272
- .input-group
273
- input[type=text]
274
- @apply border-primary-600 bg-primary-100
273
+ .stay-range-input.inline .form-control {
274
+ @apply grow;
275
+ }
275
276
 
277
+ .stay-range-input.disabled .input-group input[type="text"],
278
+ .stay-range-input.readonly .input-group input[type="text"] {
279
+ @apply border-primary-600 bg-primary-100;
280
+ }
276
281
 
277
- & > label
278
- @apply mb-2 text-base leading-normal text-pgray-2
282
+ .stay-range-input > label {
283
+ @apply mb-2 text-base leading-[1.3125] text-pgray-2;
284
+ }
279
285
 
280
- .is-invalid
281
- .input-group
282
- input[type=text]
283
- @apply border-danger
284
-
285
- .invalid-feedback
286
- @apply block
286
+ .stay-range-input .is-invalid .input-group input[type="text"] {
287
+ @apply border-danger;
288
+ }
287
289
 
290
+ .stay-range-input .is-invalid .invalid-feedback {
291
+ @apply block;
292
+ }
288
293
 
289
- .form-control-container
290
- @apply flex items-center space-x-2
294
+ .stay-range-input .form-control-container {
295
+ @apply flex items-center space-x-2;
296
+ }
291
297
 
292
- .input-group
293
- @apply flex-grow flex flex-nowrap space-x-2
298
+ .stay-range-input .input-group {
299
+ @apply grow flex flex-nowrap space-x-2;
300
+ }
294
301
 
295
- input[type=text]
296
- @apply flex-grow-0 flex-shrink-0 w-11 border border-primary-600 rounded text-base text-center text-pgray-2 outline-none
302
+ .stay-range-input .input-group input[type="text"] {
303
+ @apply grow-0 shrink-0 w-11 border border-primary-600 rounded text-base text-center text-pgray-2 outline-none;
304
+ }
297
305
 
298
- .custom-select
299
- @apply w-full
306
+ .stay-range-input .input-group .custom-select {
307
+ @apply w-full;
308
+ }
300
309
 
301
- .input-group-splitter
302
- @apply flex-grow-0 flex-shrink-0 w-3 h-px bg-primary
310
+ .stay-range-input .input-group-splitter {
311
+ @apply grow-0 shrink-0 w-3 h-px bg-primary;
312
+ }
303
313
 
304
- .invalid-feedback
305
- @apply hidden text-danger text-xs
314
+ .stay-range-input .invalid-feedback {
315
+ @apply hidden text-danger text-xs;
316
+ }
306
317
  </style>
@@ -111,7 +111,12 @@ export default defineComponent({
111
111
  });
112
112
 
113
113
  function navClick() {
114
- if (!isActive.value && distributed && distributed.changeTabTo && !disabled.value) {
114
+ if (
115
+ !isActive.value &&
116
+ distributed &&
117
+ distributed.changeTabTo &&
118
+ !disabled.value
119
+ ) {
115
120
  distributed.changeTabTo(index.value || 0);
116
121
  }
117
122
  }
@@ -167,4 +172,4 @@ export default defineComponent({
167
172
  });
168
173
  </script>
169
174
 
170
- <style lang="stylus"></style>
175
+ <style></style>