@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.
- package/app/app.config.ts +2 -11
- package/app/app.vue +25 -2
- package/app/assets/css/icons.css +10 -8
- package/app/assets/css/layout.css +1 -1
- package/app/assets/css/main.css +159 -155
- package/app/components/SLAlertModal.vue +1 -1
- package/app/components/SLBreadcrumbs.vue +1 -1
- package/app/components/SLButton.vue +1 -1
- package/app/components/SLCalendarButton.vue +4 -4
- package/app/components/SLCalendarPopup.vue +4 -4
- package/app/components/SLCard.vue +1 -1
- package/app/components/SLChart.vue +1 -1
- package/app/components/SLCheckbox.vue +3 -3
- package/app/components/SLCircleButton.vue +1 -1
- package/app/components/SLCollapsableBlock.vue +1 -1
- package/app/components/SLCollapsableMulitPillSelect.vue +2 -2
- package/app/components/SLConfirmModal.vue +1 -1
- package/app/components/SLContextMenu.vue +3 -3
- package/app/components/SLDateInput.vue +2 -2
- package/app/components/SLDatePicker.vue +2 -2
- package/app/components/SLDownloadButton.vue +3 -3
- package/app/components/SLDropdown.vue +1 -1
- package/app/components/SLDropdownItem.vue +1 -1
- package/app/components/SLElementWithTitle.vue +1 -1
- package/app/components/SLEyeCheckbox.vue +2 -2
- package/app/components/SLFileInput.vue +2 -2
- package/app/components/SLGenderAgeSelect.vue +2 -2
- package/app/components/SLHourRangeInput.vue +2 -2
- package/app/components/SLIOSSwitch.vue +2 -2
- package/app/components/SLIconButton.vue +1 -1
- package/app/components/SLInfoTip.vue +1 -1
- package/app/components/SLInsightSitePage.vue +1 -1
- package/app/components/SLLegend.vue +2 -2
- package/app/components/SLLinearProgressBar.vue +1 -1
- package/app/components/SLLink.vue +1 -1
- package/app/components/SLLoading.vue +1 -1
- package/app/components/SLMapChart.vue +1 -1
- package/app/components/SLModal.vue +1 -1
- package/app/components/SLMonthCalendarButton.vue +2 -2
- package/app/components/SLMonthPicker.vue +1 -1
- package/app/components/SLMultiEmailInput.vue +2 -2
- package/app/components/SLMultiSelect.vue +2 -2
- package/app/components/SLNoData.vue +2 -2
- package/app/components/SLNotification.vue +1 -1
- package/app/components/SLPageModal.vue +1 -1
- package/app/components/SLPagination.vue +1 -1
- package/app/components/SLPillCheckbox.vue +2 -2
- package/app/components/SLPillLabel.vue +1 -1
- package/app/components/SLPopupMenuButton.vue +2 -2
- package/app/components/SLProfileButton.vue +1 -1
- package/app/components/SLProjectShareItem.vue +2 -2
- package/app/components/SLRadioButton.vue +2 -2
- package/app/components/SLRadioButtonGroup.vue +2 -2
- package/app/components/SLRadioGroup.vue +3 -3
- package/app/components/SLRangeInput.vue +1 -1
- package/app/components/SLRightSider.vue +1 -1
- package/app/components/SLSearchInput.vue +1 -1
- package/app/components/SLSelect.vue +3 -3
- package/app/components/SLSelectAllToggle.vue +1 -1
- package/app/components/SLSidebarNav.vue +7 -7
- package/app/components/SLSidebarNavGroupItem.vue +2 -2
- package/app/components/SLSidebarNavGroupItemSection.vue +2 -2
- package/app/components/SLSidebarNavLinkItem.vue +5 -2
- package/app/components/SLSidebarNavSectionItem.vue +2 -2
- package/app/components/SLSitePage.vue +1 -1
- package/app/components/SLSkyInsightSitePage.vue +1 -1
- package/app/components/SLSortByDropdown.vue +2 -2
- package/app/components/SLSpinIcon.vue +1 -1
- package/app/components/SLStayRangeInput.vue +3 -3
- package/app/components/SLTable.vue +3 -3
- package/app/components/SLTableTooltip.vue +4 -4
- package/app/components/SLTabs.vue +1 -1
- package/app/components/SLTextInput.vue +2 -2
- package/app/components/SLTextarea.vue +2 -2
- package/app/components/SLToast.vue +1 -1
- package/app/components/SLToggleButton.vue +1 -1
- package/app/components/SLTwoLayerMultiSelect.vue +1 -1
- package/app/components/SLTwoLayerSelect.vue +1 -1
- package/app/components/SLTwoLayerSingleSelect.vue +1 -1
- package/app/components/SLWarnModal.vue +1 -1
- package/app/models/DateRange.ts +1 -1
- package/app/utils/index.ts +3 -3
- package/nuxt.config.ts +8 -7
- 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 {
|
|
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 '~
|
|
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 "~
|
|
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 '~
|
|
45
|
+
@reference '~uiApp/assets/css/main.css';
|
|
46
46
|
|
|
47
47
|
.sidebar.closure .sidebar-nav-section-item {
|
|
48
48
|
@apply lg:items-center;
|
|
@@ -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 "~
|
|
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 '~
|
|
165
|
+
@reference '~uiApp/assets/css/main.css';
|
|
166
166
|
|
|
167
167
|
.sort-by-dropdown {
|
|
168
168
|
@apply inline-flex;
|
|
@@ -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 "~
|
|
58
|
-
import type { StayRangeLevel } from "~
|
|
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 '~
|
|
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="
|
|
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 "~
|
|
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 '~
|
|
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 "~
|
|
25
|
-
import type IDateRange from "~
|
|
26
|
-
import type ITableField from "~
|
|
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 '~
|
|
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;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
<script lang="ts">
|
|
43
43
|
import { debounce } from "lodash-es";
|
|
44
|
-
import { getUID } from "~
|
|
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 '~
|
|
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 "~
|
|
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 '~
|
|
96
|
+
@reference '~uiApp/assets/css/main.css';
|
|
97
97
|
|
|
98
98
|
.textarea.inline {
|
|
99
99
|
@apply flex;
|
|
@@ -61,7 +61,7 @@ export default defineComponent({
|
|
|
61
61
|
</script>
|
|
62
62
|
|
|
63
63
|
<style>
|
|
64
|
-
@reference '~
|
|
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;
|
|
@@ -215,7 +215,7 @@ export default defineComponent({
|
|
|
215
215
|
</script>
|
|
216
216
|
|
|
217
217
|
<style>
|
|
218
|
-
@reference '~
|
|
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;
|
package/app/models/DateRange.ts
CHANGED
package/app/utils/index.ts
CHANGED
|
@@ -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 "~
|
|
21
|
-
import { ScreenSize } from "~
|
|
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 "~
|
|
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
|
-
"~
|
|
16
|
-
"~
|
|
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
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
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: ["
|
|
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.
|
|
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
|
-
"@
|
|
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.
|
|
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.
|
|
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",
|