@mptw/skylens-ui 1.5.11 → 1.5.13

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 (84) hide show
  1. package/app/app.config.ts +2 -11
  2. package/app/app.vue +25 -2
  3. package/app/assets/css/icons.css +10 -8
  4. package/app/assets/css/layout.css +1 -1
  5. package/app/assets/css/main.css +159 -155
  6. package/app/components/SLAlertModal.vue +1 -1
  7. package/app/components/SLBreadcrumbs.vue +1 -1
  8. package/app/components/SLButton.vue +1 -1
  9. package/app/components/SLCalendarButton.vue +4 -4
  10. package/app/components/SLCalendarPopup.vue +4 -4
  11. package/app/components/SLCard.vue +1 -1
  12. package/app/components/SLChart.vue +1 -1
  13. package/app/components/SLCheckbox.vue +3 -3
  14. package/app/components/SLCircleButton.vue +1 -1
  15. package/app/components/SLCollapsableBlock.vue +1 -1
  16. package/app/components/SLCollapsableMulitPillSelect.vue +2 -2
  17. package/app/components/SLConfirmModal.vue +1 -1
  18. package/app/components/SLContextMenu.vue +3 -3
  19. package/app/components/SLDateInput.vue +2 -2
  20. package/app/components/SLDatePicker.vue +2 -2
  21. package/app/components/SLDownloadButton.vue +3 -3
  22. package/app/components/SLDropdown.vue +1 -1
  23. package/app/components/SLDropdownItem.vue +1 -1
  24. package/app/components/SLElementWithTitle.vue +1 -1
  25. package/app/components/SLEyeCheckbox.vue +2 -2
  26. package/app/components/SLFileInput.vue +2 -2
  27. package/app/components/SLGenderAgeSelect.vue +2 -2
  28. package/app/components/SLHourRangeInput.vue +2 -2
  29. package/app/components/SLIOSSwitch.vue +2 -2
  30. package/app/components/SLIconButton.vue +1 -1
  31. package/app/components/SLInfoTip.vue +1 -1
  32. package/app/components/SLInsightSitePage.vue +1 -1
  33. package/app/components/SLLegend.vue +2 -2
  34. package/app/components/SLLinearProgressBar.vue +1 -1
  35. package/app/components/SLLink.vue +1 -1
  36. package/app/components/SLLoading.vue +1 -1
  37. package/app/components/SLMapChart.vue +1 -1
  38. package/app/components/SLModal.vue +1 -1
  39. package/app/components/SLMonthCalendarButton.vue +2 -2
  40. package/app/components/SLMonthPicker.vue +1 -1
  41. package/app/components/SLMultiEmailInput.vue +2 -2
  42. package/app/components/SLMultiSelect.vue +2 -2
  43. package/app/components/SLNoData.vue +2 -2
  44. package/app/components/SLNotification.vue +1 -1
  45. package/app/components/SLPageModal.vue +1 -1
  46. package/app/components/SLPagination.vue +1 -1
  47. package/app/components/SLPillCheckbox.vue +2 -2
  48. package/app/components/SLPillLabel.vue +1 -1
  49. package/app/components/SLPopupMenuButton.vue +2 -2
  50. package/app/components/SLProfileButton.vue +1 -1
  51. package/app/components/SLProjectShareItem.vue +2 -2
  52. package/app/components/SLRadioButton.vue +2 -2
  53. package/app/components/SLRadioButtonGroup.vue +2 -2
  54. package/app/components/SLRadioGroup.vue +3 -3
  55. package/app/components/SLRangeInput.vue +1 -1
  56. package/app/components/SLRightSider.vue +1 -1
  57. package/app/components/SLSearchInput.vue +1 -1
  58. package/app/components/SLSelect.vue +3 -3
  59. package/app/components/SLSelectAllToggle.vue +1 -1
  60. package/app/components/SLSidebarNav.vue +7 -7
  61. package/app/components/SLSidebarNavGroupItem.vue +2 -2
  62. package/app/components/SLSidebarNavGroupItemSection.vue +2 -2
  63. package/app/components/SLSidebarNavLinkItem.vue +5 -2
  64. package/app/components/SLSidebarNavSectionItem.vue +2 -2
  65. package/app/components/SLSitePage.vue +1 -1
  66. package/app/components/SLSkyInsightSitePage.vue +1 -1
  67. package/app/components/SLSortByDropdown.vue +2 -2
  68. package/app/components/SLSpinIcon.vue +1 -1
  69. package/app/components/SLStayRangeInput.vue +3 -3
  70. package/app/components/SLTable.vue +3 -3
  71. package/app/components/SLTableTooltip.vue +4 -4
  72. package/app/components/SLTabs.vue +1 -1
  73. package/app/components/SLTextInput.vue +2 -2
  74. package/app/components/SLTextarea.vue +2 -2
  75. package/app/components/SLToast.vue +1 -1
  76. package/app/components/SLToggleButton.vue +1 -1
  77. package/app/components/SLTwoLayerMultiSelect.vue +1 -1
  78. package/app/components/SLTwoLayerSelect.vue +1 -1
  79. package/app/components/SLTwoLayerSingleSelect.vue +1 -1
  80. package/app/components/SLWarnModal.vue +1 -1
  81. package/app/models/DateRange.ts +1 -1
  82. package/app/utils/index.ts +3 -3
  83. package/nuxt.config.ts +8 -7
  84. package/package.json +9 -8
@@ -66,7 +66,10 @@ NuxtLink.sidebar-nav-link-item(
66
66
  import type { NuxtLink } from "#components";
67
67
  import { createPopper } from "@popperjs/core";
68
68
  import type { Instance as PopperInstance } from "@popperjs/core";
69
- import { NavItemStatus, type NavItemLink } from "~app/interface/NavConfigType";
69
+ import {
70
+ NavItemStatus,
71
+ type NavItemLink,
72
+ } from "~uiApp/interface/NavConfigType";
70
73
 
71
74
  type NuxtLinkType = InstanceType<typeof NuxtLink>;
72
75
 
@@ -226,7 +229,7 @@ export default defineComponent({
226
229
  </script>
227
230
 
228
231
  <style>
229
- @reference '~app/assets/css/main.css';
232
+ @reference '~uiApp/assets/css/main.css';
230
233
 
231
234
  .sidebar.closure .sidebar-nav-link-item {
232
235
  @apply lg:p-2 lg:text-lg;
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
 
14
14
  <script lang="ts">
15
- import type { NavItemSection } from "~app/interface/NavConfigType";
15
+ import type { NavItemSection } from "~uiApp/interface/NavConfigType";
16
16
 
17
17
  export default defineComponent({
18
18
  name: "SLSidebarNavSectionItem",
@@ -42,7 +42,7 @@ export default defineComponent({
42
42
  </script>
43
43
 
44
44
  <style>
45
- @reference '~app/assets/css/main.css';
45
+ @reference '~uiApp/assets/css/main.css';
46
46
 
47
47
  .sidebar.closure .sidebar-nav-section-item {
48
48
  @apply lg:items-center;
@@ -111,7 +111,7 @@ export default defineComponent({
111
111
  </script>
112
112
 
113
113
  <style>
114
- @reference '~app/assets/css/main.css';
114
+ @reference '~uiApp/assets/css/main.css';
115
115
 
116
116
  .site-page {
117
117
  @apply flex flex-col w-full min-h-full pt-1.5 lg:pt-2;
@@ -16,7 +16,7 @@ export default {
16
16
  </script>
17
17
 
18
18
  <style>
19
- @reference '~app/assets/css/main.css';
19
+ @reference '~uiApp/assets/css/main.css';
20
20
 
21
21
  .sky-insight-site-page {
22
22
  @apply grow flex flex-col;
@@ -21,7 +21,7 @@ import type { PropType } from "vue";
21
21
  import { createPopper } from "@popperjs/core";
22
22
  import type { Instance as PopperInstance } from "@popperjs/core";
23
23
  import { fromEvent, type Subscription } from "rxjs";
24
- import type IInputOption from "~app/interface/IInputOption";
24
+ import type IInputOption from "~uiApp/interface/IInputOption";
25
25
 
26
26
  export default defineComponent({
27
27
  name: "SLSortByDropdown",
@@ -162,7 +162,7 @@ export default defineComponent({
162
162
  </script>
163
163
 
164
164
  <style scoped>
165
- @reference '~app/assets/css/main.css';
165
+ @reference '~uiApp/assets/css/main.css';
166
166
 
167
167
  .sort-by-dropdown {
168
168
  @apply inline-flex;
@@ -19,7 +19,7 @@ export default defineComponent({
19
19
  </script>
20
20
 
21
21
  <style>
22
- @reference '~app/assets/css/main.css';
22
+ @reference '~uiApp/assets/css/main.css';
23
23
 
24
24
  i.spin-icon {
25
25
  @apply animate-spin;
@@ -54,8 +54,8 @@
54
54
  <script lang="ts">
55
55
  import type { PropType } from "vue";
56
56
  import type { SLSelect } from "#components";
57
- import type IStayRange from "~app/interface/IStayRange";
58
- import type { StayRangeLevel } from "~app/interface/IStayRange";
57
+ import type IStayRange from "~uiApp/interface/IStayRange";
58
+ import type { StayRangeLevel } from "~uiApp/interface/IStayRange";
59
59
 
60
60
  type SLSelectType = InstanceType<typeof SLSelect>;
61
61
 
@@ -256,7 +256,7 @@ export default defineComponent({
256
256
  </script>
257
257
 
258
258
  <style>
259
- @reference '~app/assets/css/main.css';
259
+ @reference '~uiApp/assets/css/main.css';
260
260
 
261
261
  .stay-range-input {
262
262
  @apply flex flex-col;
@@ -90,7 +90,7 @@
90
90
  div(v-if="loading", style="min-height: 200px")
91
91
  slot(v-else name='noItems')
92
92
  .flex.flex-col.items-center.py-8.px-4.space-y-3
93
- img(src="~app/assets/images/commons/empty-box.png")
93
+ img(src="@@uiApp/commons/empty-box.png")
94
94
  .text-lg.text-primary-600 {{ noItems }}
95
95
  .text-sm.text-pgray-3(v-if="reason") 可能的原因:{{ reason }}
96
96
  SLLoading(
@@ -120,7 +120,7 @@ import type { PropType } from "vue";
120
120
  import { fromEvent, type Subscription } from "rxjs";
121
121
  import { createPopper } from "@popperjs/core";
122
122
  import type { Instance as PopperInstance } from "@popperjs/core";
123
- import type ITableField from "~app/interface/ITableField";
123
+ import type ITableField from "~uiApp/interface/ITableField";
124
124
 
125
125
  export default defineComponent({
126
126
  name: "SLTable",
@@ -381,7 +381,7 @@ export default defineComponent({
381
381
  </script>
382
382
 
383
383
  <style>
384
- @reference '~app/assets/css/main.css';
384
+ @reference '~uiApp/assets/css/main.css';
385
385
 
386
386
  .table {
387
387
  @apply block relative w-full overflow-hidden;
@@ -21,9 +21,9 @@
21
21
 
22
22
  <script lang="ts">
23
23
  import type { PropType } from "vue";
24
- import { formatDateRange } from "~app/utils";
25
- import type IDateRange from "~app/interface/IDateRange";
26
- import type ITableField from "~app/interface/ITableField";
24
+ import { formatDateRange } from "~uiApp/utils";
25
+ import type IDateRange from "~uiApp/interface/IDateRange";
26
+ import type ITableField from "~uiApp/interface/ITableField";
27
27
 
28
28
  export default defineComponent({
29
29
  name: "SLTableTooltip",
@@ -71,7 +71,7 @@ export default defineComponent({
71
71
  </script>
72
72
 
73
73
  <style>
74
- @reference '~app/assets/css/main.css';
74
+ @reference '~uiApp/assets/css/main.css';
75
75
 
76
76
  .table-tooltip {
77
77
  @apply inline-block p-4 border border-primary-600 rounded bg-white shadow-popup-sm pointer-events-none;
@@ -185,7 +185,7 @@ export default defineComponent({
185
185
  </script>
186
186
 
187
187
  <style>
188
- @reference '~app/assets/css/main.css';
188
+ @reference '~uiApp/assets/css/main.css';
189
189
 
190
190
  .tabs.tabs-sm.tabs-type-1 > .tabs-nav ul .tab-nav-item-link {
191
191
  @apply text-sm;
@@ -41,7 +41,7 @@
41
41
 
42
42
  <script lang="ts">
43
43
  import { debounce } from "lodash-es";
44
- import { getUID } from "~app/utils";
44
+ import { getUID } from "~uiApp/utils";
45
45
 
46
46
  export default defineComponent({
47
47
  name: "SLTextInput",
@@ -226,7 +226,7 @@ export default defineComponent({
226
226
  </script>
227
227
 
228
228
  <style>
229
- @reference '~app/assets/css/main.css';
229
+ @reference '~uiApp/assets/css/main.css';
230
230
 
231
231
  .text-input.inline {
232
232
  @apply flex;
@@ -21,7 +21,7 @@
21
21
  </template>
22
22
 
23
23
  <script lang="ts">
24
- import { getUID } from "~app/utils";
24
+ import { getUID } from "~uiApp/utils";
25
25
 
26
26
  export default defineComponent({
27
27
  name: "SLTextArea",
@@ -93,7 +93,7 @@ export default defineComponent({
93
93
  </script>
94
94
 
95
95
  <style>
96
- @reference '~app/assets/css/main.css';
96
+ @reference '~uiApp/assets/css/main.css';
97
97
 
98
98
  .textarea.inline {
99
99
  @apply flex;
@@ -55,7 +55,7 @@ export default defineComponent({
55
55
  </script>
56
56
 
57
57
  <style scoped>
58
- @reference '~app/assets/css/main.css';
58
+ @reference '~uiApp/assets/css/main.css';
59
59
 
60
60
  .toast {
61
61
  @apply z-100 fixed top-0 left-0 w-full h-full pointer-events-none;
@@ -61,7 +61,7 @@ export default defineComponent({
61
61
  </script>
62
62
 
63
63
  <style>
64
- @reference '~app/assets/css/main.css';
64
+ @reference '~uiApp/assets/css/main.css';
65
65
 
66
66
  .sl-toggle-button {
67
67
  @apply inline-flex items-center justify-center p-1.5 space-x-2 bg-primary-100 rounded text-base text-primary-600;
@@ -344,7 +344,7 @@ export default defineComponent({
344
344
  </script>
345
345
 
346
346
  <style>
347
- @reference '~app/assets/css/main.css';
347
+ @reference '~uiApp/assets/css/main.css';
348
348
 
349
349
  .two-layer-multi-select {
350
350
  @apply relative w-full;
@@ -215,7 +215,7 @@ export default defineComponent({
215
215
  </script>
216
216
 
217
217
  <style>
218
- @reference '~app/assets/css/main.css';
218
+ @reference '~uiApp/assets/css/main.css';
219
219
 
220
220
  .tw-layer-select {
221
221
  @apply flex flex-col w-138 h-67.75 pt-2.75 px-2.75 bg-white border border-primary-100 rounded shadow-default;
@@ -297,7 +297,7 @@ export default defineComponent({
297
297
  </script>
298
298
 
299
299
  <style>
300
- @reference '~app/assets/css/main.css';
300
+ @reference '~uiApp/assets/css/main.css';
301
301
 
302
302
  .two-layer-single-select {
303
303
  @apply relative w-full;
@@ -65,7 +65,7 @@ export default defineComponent({
65
65
  </script>
66
66
 
67
67
  <style>
68
- @reference '~app/assets/css/main.css';
68
+ @reference '~uiApp/assets/css/main.css';
69
69
 
70
70
  .warn-modal .modal-body-content {
71
71
  @apply flex flex-col items-center space-y-6 text-base text-pgray-2;
@@ -1,5 +1,5 @@
1
1
  import { format } from "date-fns";
2
- import type IDateRange from "~app/interface/IDateRange";
2
+ import type IDateRange from "~uiApp/interface/IDateRange";
3
3
 
4
4
  class DateRange implements IDateRange {
5
5
  start: Date;
@@ -17,12 +17,12 @@ import {
17
17
  } from "date-fns";
18
18
  import { sortBy, isEqual } from "lodash-es";
19
19
  import { HanRegex } from "#imports";
20
- import type IDateRange from "~app/interface/IDateRange";
21
- import { ScreenSize } from "~app/interface/commons";
20
+ import type IDateRange from "~uiApp/interface/IDateRange";
21
+ import { ScreenSize } from "~uiApp/interface/commons";
22
22
  import type ExcelJS from "exceljs";
23
23
  import { useGtm } from "@gtm-support/vue-gtm";
24
24
  import * as htmlToImage from "html-to-image";
25
- import WatermarkImage from "~public/assets/images/commons/watermark-2.svg";
25
+ import WatermarkImage from "~uiPublic/assets/images/commons/watermark-2.svg";
26
26
 
27
27
  export const getUID = () => {
28
28
  return `uid-${Math.random().toString(36).substring(2)}`;
package/nuxt.config.ts CHANGED
@@ -7,13 +7,14 @@ const currentDir = dirname(fileURLToPath(import.meta.url));
7
7
  // https://nuxt.com/docs/api/configuration/nuxt-config
8
8
  export default defineNuxtConfig({
9
9
  devtools: { enabled: true },
10
- compatibilityDate: "2026-07-28",
11
10
  $meta: {
12
11
  name: "skylens-ui",
13
12
  },
14
13
  alias: {
15
- "~app": join(currentDir, "./app"),
16
- "~public": join(currentDir, "./public"),
14
+ "~ui": join(currentDir, "./"),
15
+ "~uiApp": join(currentDir, "./app"),
16
+ "~uiPublic": join(currentDir, "./public"),
17
+ "@@uiAppImage": join(currentDir, "./app/assets/images"),
17
18
  },
18
19
  runtimeConfig: {
19
20
  public: {
@@ -23,11 +24,11 @@ export default defineNuxtConfig({
23
24
  },
24
25
  },
25
26
  css: [
26
- "~app/assets/css/main.css",
27
- "~app/assets/css/icon.css",
28
- "~app/assets/css/layout.css",
27
+ join(currentDir, "./app/assets/css/main.css"),
28
+ join(currentDir, "./app/assets/css/icons.css"),
29
+ join(currentDir, "./app/assets/css/layout.css"),
29
30
  ],
30
- plugins: ["~app/plugins/v-calendar.ts"],
31
+ plugins: [join(currentDir, "./app/plugins/v-calendar.ts")],
31
32
  vite: {
32
33
  plugins: [tailwindcss()],
33
34
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.5.11",
4
+ "version": "1.5.13",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -13,25 +13,26 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@nuxt/eslint": "^1.16.0",
16
+ "@types/commonmark": "^0.27.10",
17
+ "@types/dompurify": "^3.0.5",
18
+ "@types/lodash-es": "^4.17.12",
16
19
  "@types/node": "^24.13.3",
20
+ "@types/sortablejs": "^1.15.9",
17
21
  "eslint": "^10.8.0",
18
22
  "nuxt": "^4.5.1",
19
23
  "typescript": "^6.0.3",
24
+ "vite-tsconfig-paths": "^6.1.1",
20
25
  "vue": "^3.5.40"
21
26
  },
22
27
  "dependencies": {
23
28
  "@gtm-support/vue-gtm": "^3.2.0",
24
29
  "@popperjs/core": "^2.11.8",
25
30
  "@tailwindcss/vite": "^4.3.3",
26
- "@types/commonmark": "^0.27.10",
27
- "@types/dompurify": "^3.2.0",
28
- "@types/lodash-es": "^4.17.12",
29
- "@types/sortablejs": "^1.15.9",
30
- "@vue/language-plugin-pug": "^3.3.8",
31
+ "@vue/language-plugin-pug": "^3.3.9",
31
32
  "axios": "^1.19.0",
32
33
  "commonmark": "^0.31.2",
33
34
  "date-fns": "^4.4.0",
34
- "dompurify": "^3.4.12",
35
+ "dompurify": "^3.4.13",
35
36
  "echarts": "^6.1.0",
36
37
  "exceljs": "^4.4.0",
37
38
  "gsap": "^3.15.0",
@@ -40,7 +41,7 @@
40
41
  "pug": "^3.0.4",
41
42
  "rxjs": "^7.8.2",
42
43
  "sortablejs": "^1.15.7",
43
- "swiper": "^14.0.6",
44
+ "swiper": "^14.0.7",
44
45
  "tailwindcss": "^4.3.3",
45
46
  "v-calendar": "^3.1.2",
46
47
  "vue-3-slider-component": "^1.0.2",