@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
|
@@ -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
|
|
259
|
-
.
|
|
260
|
-
@apply flex flex-col
|
|
258
|
+
<style>
|
|
259
|
+
@reference '~ui/app/assets/css/main.css';
|
|
261
260
|
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
.stay-range-input {
|
|
262
|
+
@apply flex flex-col;
|
|
263
|
+
}
|
|
264
264
|
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
.stay-range-input.inline {
|
|
266
|
+
@apply flex flex-row;
|
|
267
|
+
}
|
|
267
268
|
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
278
|
-
|
|
282
|
+
.stay-range-input > label {
|
|
283
|
+
@apply mb-2 text-base leading-[1.3125] text-pgray-2;
|
|
284
|
+
}
|
|
279
285
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
290
|
-
|
|
294
|
+
.stay-range-input .form-control-container {
|
|
295
|
+
@apply flex items-center space-x-2;
|
|
296
|
+
}
|
|
291
297
|
|
|
292
|
-
|
|
293
|
-
|
|
298
|
+
.stay-range-input .input-group {
|
|
299
|
+
@apply grow flex flex-nowrap space-x-2;
|
|
300
|
+
}
|
|
294
301
|
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
|
|
299
|
-
|
|
306
|
+
.stay-range-input .input-group .custom-select {
|
|
307
|
+
@apply w-full;
|
|
308
|
+
}
|
|
300
309
|
|
|
301
|
-
|
|
302
|
-
|
|
310
|
+
.stay-range-input .input-group-splitter {
|
|
311
|
+
@apply grow-0 shrink-0 w-3 h-px bg-primary;
|
|
312
|
+
}
|
|
303
313
|
|
|
304
|
-
|
|
305
|
-
|
|
314
|
+
.stay-range-input .invalid-feedback {
|
|
315
|
+
@apply hidden text-danger text-xs;
|
|
316
|
+
}
|
|
306
317
|
</style>
|
package/app/components/SLTab.vue
CHANGED
|
@@ -111,7 +111,12 @@ export default defineComponent({
|
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
function navClick() {
|
|
114
|
-
if (
|
|
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
|
|
175
|
+
<style></style>
|