lovelymaid 1.7.1 → 1.7.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/dist/components/external/ContentBar.vue.d.ts +2 -0
- package/dist/components/external/Loading.vue.d.ts +11 -0
- package/dist/components/external/Modal.vue.d.ts +2 -0
- package/dist/components/external/SideBar.vue.d.ts +2 -0
- package/dist/components/external/Table.vue.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/lovelymaid.css +1 -1
- package/dist/lovelymaid.js +222 -161
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import ContentBar from './components/external/ContentBar.vue';
|
|
|
5
5
|
import FoldList from './components/external/FoldList.vue';
|
|
6
6
|
import Form, { type FormItem } from './components/external/Form.vue';
|
|
7
7
|
import Input from './components/external/Input.vue';
|
|
8
|
+
import Loading from './components/external/Loading.vue';
|
|
8
9
|
import MenuBar from './components/external/MenuBar.vue';
|
|
9
10
|
import Modal from './components/external/Modal.vue';
|
|
10
11
|
import Select from './components/external/Select.vue';
|
|
@@ -13,4 +14,4 @@ import TabBar from './components/external/TabBar.vue';
|
|
|
13
14
|
import Table, { type ColumnConfig, type SortConfig } from './components/external/Table.vue';
|
|
14
15
|
import TextArea from './components/external/TextArea.vue';
|
|
15
16
|
import type { Item, ListItem, OptionItem, DateItem } from './components/types.js';
|
|
16
|
-
export { Button, Card, CheckBox, ContentBar, FoldList, Form, type FormItem, Input, MenuBar, Modal, Select, SideBar, TabBar, Table, type ColumnConfig, type SortConfig, TextArea, type Item, type ListItem, type OptionItem, type DateItem };
|
|
17
|
+
export { Button, Card, CheckBox, ContentBar, FoldList, Form, type FormItem, Input, Loading, MenuBar, Modal, Select, SideBar, TabBar, Table, type ColumnConfig, type SortConfig, TextArea, type Item, type ListItem, type OptionItem, type DateItem };
|
package/dist/lovelymaid.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
._Button_744qe_2{border-radius:var(--Button-border-radius);width:30px;height:30px;font-size:var(--Button-font-size);color:var(--lovelymai-color-gray-600);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;--background-color:var(--lovelymai-color-blue-200);justify-content:center;align-items:center;font-weight:500;transition:transform .2s;display:flex}._Button_744qe_2._common_744qe_20{background-color:var(--background-color)}._Button_744qe_2._lovelymai-glass-container_744qe_24:active{background-color:#fff}._Button_744qe_2:active{transform:scale(1.2)}._Menu_1y2co_2{background-color:var(--lovelymai-color-gray-150);outline:.5px solid var(--lovelymai-color-gray-250);-webkit-user-select:none;user-select:none;border:1px solid #fff;border-radius:10px;padding:4px;position:absolute;box-shadow:0 0 10px #0000004d}._Menu_1y2co_2 ._item_1y2co_14{z-index:0;color:#000;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:5px;height:28px;padding:5px;display:flex;position:relative}._Menu_1y2co_2._sub_1y2co_28 ._item_1y2co_14{justify-content:space-between}@media (hover:hover){._Menu_1y2co_2 ._item_1y2co_14:hover{background-color:var(--lovelymai-color-blue-200);color:#fff}}._Menu_1y2co_2 ._item_1y2co_14 ._left_1y2co_39{gap:5px;display:flex}._Menu_1y2co_2 ._item_1y2co_14 ._left_1y2co_39 ._text_1y2co_44{white-space:nowrap;font-size:12px;font-weight:450;line-height:18px}.lovely-right-arrow[data-v-11681ed9]{font-weight:600;transform:translateY(1px)}._Input_16ltj_2{border-radius:calc(var(--Input-height) * .5px);--font-size:14px;--font-weight:400;--line-height:18px;--clear-color:var(--lovelymai-color-gray-300);--placeholder-color:var(--lovelymai-color-gray-400);height:35px;display:flex;position:relative}._icon_16ltj_14{width:calc(var(--input-height) * 1px);height:100%;font-size:calc(var(--input-height) * .5px);color:var(--lovelymai-color-gray-600);pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_16ltj_14._custom_16ltj_26{left:0}._icon_16ltj_14._clear_16ltj_30{right:0}._input_16ltj_34{min-width:0;padding-left:calc(var(--input-paddingLeft) * 1px);padding-right:calc(var(--input-height) * 1px);border-radius:calc(var(--input-height) * .5px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:var(--lovelymai-color-blue-200);background-color:#0000;border:none;outline:0 solid #0000;flex:1;transition:outline .2s}._input_16ltj_34::placeholder{color:var(--placeholder-color)}._input_16ltj_34:focus{outline:3px solid var(--lovelymai-color-blue-100)}.lovely-clear[data-v-d7e38c1f]{font-size:calc(var(--input-height) * .5px);color:var(--clear-color);cursor:pointer;pointer-events:auto}.lovely-horizontal[data-v-d7e38c1f],.lovely-check[data-v-d7e38c1f]{font-size:16px}._ContentBar_tocyr_2{transform:translateX(var(--ContentBar-translateX)) scale(var(--ContentBar-scale));transition:var(--ContentBar-transition);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_tocyr_10{z-index:1;height:0;box-shadow:0 0px 20px 35px var(--lovelymai-color-gray-100);justify-content:space-between;gap:5px;margin-bottom:50px;padding:0 10px;display:flex;position:sticky;top:0}._title_tocyr_23{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;height:30px;margin-top:10px;font-size:16px;font-weight:500;line-height:30px;overflow:hidden}._Button_tocyr_36{margin-top:10px;font-size:20px}._content_tocyr_41{z-index:0;display:flow-root;position:relative}._tip_tocyr_47{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._FoldList_t5uhr_2{--header-height:30px;--header-font-size:12px;--header-color:var(--lovelymai-color-gray-300);--list-font-size:14px;--list-line-height:30px;--list-color:inherit}._header_t5uhr_11{height:var(--header-height);cursor:pointer;justify-content:space-between;align-items:center;display:flex}._header_t5uhr_11 ._title_t5uhr_19{font-size:var(--header-font-size);color:var(--header-color);font-weight:500}._container_t5uhr_25{height:var(--container-height);transition:height .5s;overflow:hidden}._list_t5uhr_31{transition:transform .5s;transform:translateY(0)}._list_t5uhr_31._close_t5uhr_36{transform:translateY(-100%)}._list_t5uhr_31 ._item_t5uhr_40{font-size:var(--list-font-size);line-height:var(--list-line-height);color:var(--list-color);white-space:nowrap;text-overflow:ellipsis;border-radius:6px;padding:0 10px;transition:all .2s;position:relative;overflow:hidden}._list_t5uhr_31 ._item_t5uhr_40._active_t5uhr_53{background-color:var(--lovelymai-color-gray-200);color:var(--lovelymai-color-blue-200)}@keyframes _slideAnimation_t5uhr_68{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}._slideAnimation_t5uhr_68{animation:.5s _slideAnimation_t5uhr_68}.lovely-right-arrow[data-v-063ffc36]{color:var(--header-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._TextArea_qzc37_2{border-radius:var(--border-radius);--max-height:auto;--border-radius:20px;--font-size:14px;--font-weight:400;--line-height:18px;--placeholder-color:var(--lovelymai-color-gray-400)}textarea[data-v-5802153b]{width:100%;max-height:var(--max-height);border-radius:calc(var(--border-radius) - 1px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:var(--lovelymai-color-blue-200);resize:none;scrollbar-width:thin;background-color:#0000;border:none;outline:0 solid #0000;padding:12px;transition:outline .2s;display:block;overflow-y:auto}textarea[data-v-5802153b]::placeholder{color:var(--placeholder-color)}textarea[data-v-5802153b]:focus{outline:3px solid var(--lovelymai-color-blue-100)}._Scroll_xxsn9_2{z-index:0;justify-content:center;align-items:center;height:200px;padding:16px 0;display:flex;position:relative}._selected_xxsn9_12{z-index:0;background-color:var(--lovelymai-color-gray-150);border-radius:12px;width:100%;height:24px;position:absolute;top:calc(50% - 12px);left:0}._list_xxsn9_23{z-index:1;overscroll-behavior:contain;scrollbar-width:none;scroll-snap-type:y mandatory;width:50%;height:168px;position:relative;overflow-y:auto}._list_xxsn9_23._left_xxsn9_34{padding-left:5px}._list_xxsn9_23._right_xxsn9_38{padding:0 5px 0 10px}._list_xxsn9_23 ._item_xxsn9_42{scroll-snap-align:start;height:24px;font-size:16px;line-height:24px;display:flex}._list_xxsn9_23._left_xxsn9_34 ._item_xxsn9_42{justify-content:flex-end}._list_xxsn9_23._right_xxsn9_38 ._item_xxsn9_42{justify-content:flex-start}._Date_1yt3w_2{z-index:0;-webkit-user-select:none;user-select:none;border-radius:16px;width:250px;padding:14px;position:absolute}._header_1yt3w_12{justify-content:space-between;height:24px;margin-bottom:14px;display:flex}._header_1yt3w_12 ._date_1yt3w_19{cursor:pointer;align-items:center;gap:2px;font-size:16px;font-weight:500;display:flex}._header_1yt3w_12 ._date_1yt3w_19 ._arrow_1yt3w_28{font-size:14px;transition:transform .5s}._header_1yt3w_12 ._button_1yt3w_33{align-items:center;gap:10px;display:flex}._header_1yt3w_12 ._button_1yt3w_33 ._arrow_1yt3w_28{font-size:20px}._days_1yt3w_43 ._weekdays_1yt3w_43{color:var(--lovelymai-color-gray-300);justify-content:space-between;font-size:12px;display:flex}._days_1yt3w_43 ._monthDays_1yt3w_50{flex-wrap:wrap;margin-top:10px;display:flex}._days_1yt3w_43 ._dayCell_1yt3w_56{justify-content:center;align-items:center;width:14.2857%;height:32px;display:flex}._days_1yt3w_43 ._day_1yt3w_43{cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:14px;font-weight:450;transition:background-color .2s;display:flex}._days_1yt3w_43 ._day_1yt3w_43._today_1yt3w_77{color:var(--lovelymai-color-blue-200)}._days_1yt3w_43 ._day_1yt3w_43._active_1yt3w_81{background-color:var(--lovelymai-color-blue-200);color:#fff}.lovelymai[data-v-e94022f9]{color:var(--lovelymai-color-blue-300);cursor:pointer;font-weight:600;transform:translateY(1px)}._Input_xcjmx_2{border-radius:calc(var(--Input-height) * .5px);--font-size:14px;--font-weight:400;--line-height:18px;--clear-color:var(--lovelymai-color-gray-300);--placeholder-color:var(--lovelymai-color-gray-400);height:35px;display:flex;position:relative}._icon_xcjmx_14{width:calc(var(--input-height) * 1px);height:100%;font-size:calc(var(--input-height) * .5px);color:var(--lovelymai-color-gray-600);pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_xcjmx_14._custom_xcjmx_26{left:0}._icon_xcjmx_14._clear_xcjmx_30{right:0}._input_xcjmx_34{min-width:0;padding-left:calc(var(--input-paddingLeft) * 1px);padding-right:calc(var(--input-height) * 1px);border-radius:calc(var(--input-height) * .5px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:var(--lovelymai-color-blue-200);background-color:#0000;border:none;outline:0 solid #0000;flex:1;transition:outline .2s}._input_xcjmx_34::placeholder{color:var(--placeholder-color)}._input_xcjmx_34:focus{outline:3px solid var(--lovelymai-color-blue-100)}._input_xcjmx_34[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.lovely-clear[data-v-7a5356f3]{font-size:calc(var(--input-height) * .5px);color:var(--clear-color);cursor:pointer;pointer-events:auto}._Form_1hpm1_2{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}._FormItem_1hpm1_9{align-items:flex-start;gap:10px;display:flex}._FormItem_1hpm1_9 ._TextArea_1hpm1_15,._FormItem_1hpm1_9 ._CheckBox_1hpm1_16,._FormItem_1hpm1_9 ._Input_1hpm1_17{flex:1;min-width:0}._FormItem_1hpm1_9 ._Input_1hpm1_17{height:100%}._MenuBar_1cxih_2{border-radius:var(--MenuBar-border-radius);-webkit-user-select:none;user-select:none;padding:3px}._menus_1cxih_9{justify-content:space-between;width:100%;height:100%;display:flex}._menus_1cxih_9 ._menu_1cxih_9{aspect-ratio:1;cursor:pointer;border-radius:50%;justify-content:center;align-items:center;display:flex}._menus_1cxih_9 ._menu_1cxih_9._disabled_1cxih_25{opacity:.3;cursor:not-allowed}@media (hover:hover){._menu_1cxih_9:not(._disabled_1cxih_25):hover{background-color:var(--lovelymai-color-gray-150)}}._Modal_s9g07_2{position:relative}._mask_s9g07_6{background-color:#0000001a;width:100dvw;height:100dvh;position:fixed;top:0;left:0}._ContentBar_s9g07_15{left:var(--ContentBar-left);top:var(--ContentBar-top);width:var(--ContentBar-width);height:var(--ContentBar-height);position:fixed}._Select_fr749_2{cursor:pointer;justify-content:center;align-items:center;width:20px;height:20px;display:flex}._SideBar_1cdce_2{transform:translateX(var(--SideBar-translateX)) scale(var(--SideBar-scale));transition:var(--SideBar-transition);border-radius:20px}._header_1cdce_8{align-items:center;height:50px;padding:0 10px;display:flex;position:relative}._header_1cdce_8 ._text_1cdce_16{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:16px;font-weight:500;line-height:30px;overflow:hidden}._button_1cdce_26{width:35px;height:30px;transform:translateX(var(--button-translateX));cursor:pointer;border:none;border-radius:15px;justify-content:center;align-items:center;transition:transform .5s,box-shadow .5s;display:flex}._button_1cdce_26._close_1cdce_39{box-shadow:var(--lovelymai-box-shadow-200);background-color:#ffffffe6;border:1px solid #fff}@media (hover:hover){._button_1cdce_26:hover{background-color:var(--lovelymai-color-gray-150)}}.lovely-left-sidebar[data-v-e67da6b4]{color:var(--lovelymai-color-gray-600);font-size:20px}._TabBar_1onpt_2{-webkit-user-select:none;user-select:none;--top-color:var(--lovelymai-color-blue-300);gap:5px;height:50px;display:flex}._Bar_1onpt_11{width:calc(var(--Bar-height) * .8px);border-radius:calc(var(--Bar-border-radius) * 1px);cursor:pointer;height:80%;transition:var(--Bar-transition);padding:2px;overflow:hidden;background-color:var(--Bar-background-color)!important}._Bar_1onpt_11._active_1onpt_22{width:calc(var(--Bar-width) * 1px);height:100%;transform:scale(var(--Bar-scale));overflow:visible}._Bar_1onpt_11:not(._active_1onpt_22):active{transform:scale(1.2)}._search_1onpt_33{width:calc(var(--Bar-height) * 1px);height:100%;transition:var(--Bar-transition)}._search_1onpt_33._active_1onpt_22{width:calc(var(--search-width) * 1px);height:80%}._content_1onpt_44{touch-action:none;width:100%;height:100%;display:flex;position:relative}._content_1onpt_44._top_1onpt_52{z-index:1;clip-path:inset(0 calc(100% - var(--content-top-clipRight) * 1px) 0 calc(var(--content-top-clipLeft) * 1px) round calc((var(--Bar-border-radius) - 3) * 1px));transform:translateZ(0) scale(var(--content-top-scale));transform-origin:calc(var(--slide-center) * 1px) center;backface-visibility:hidden;transition:transform .2s;position:absolute;top:0;left:0}._tab_1onpt_64{width:calc(var(--slide-width) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_1onpt_64._small_1onpt_74{aspect-ratio:1;flex-shrink:1;height:100%}._tab_1onpt_64._top_1onpt_52{color:var(--top-color)}._search_1onpt_33 ._Button_1onpt_84{width:100%;height:100%}._search_1onpt_33 ._Input_1onpt_89{--font-size:18px;height:100%}._slide_1onpt_94{z-index:0;width:calc(var(--slide-width) * 1px);background:var(--slide-background);border:var(--slide-border);border-radius:calc((var(--Bar-border-radius) - 3) * 1px);height:100%;box-shadow:var(--slide-box-shadow);transform:translateX(calc(var(--slide-translateX) * 1px)) scale(var(--slide-scale));transition:var(--slide-transition);position:absolute;top:0;left:0}._header_g8sel_2{border-bottom:.5px solid var(--lovelymai-color-gray-300);-webkit-user-select:none;user-select:none;height:28px;margin-bottom:4px;display:flex}._header_g8sel_2 ._column_g8sel_11{cursor:pointer;justify-content:space-between;align-items:center;padding:6px 8px;display:flex}._header_g8sel_2 ._column_g8sel_11:not(:last-child){border-right:.5px solid var(--lovelymai-color-gray-300)}._header_g8sel_2 ._column_g8sel_11 ._text_g8sel_23{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;line-height:16px;overflow:hidden}._list_g8sel_32 ._row_g8sel_32{height:35px;display:flex}._list_g8sel_32 ._row_g8sel_32:nth-child(2n){background-color:var(--lovelymai-color-gray-150)}._list_g8sel_32 ._row_g8sel_32 ._text_g8sel_23{white-space:nowrap;text-overflow:ellipsis;padding:0 8px;font-size:16px;line-height:35px;overflow:hidden}.lovely-down-arrow[data-v-12ec82a7]{color:var(--lovelymai-color-gray-300);font-size:12px;font-weight:700}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}input,textarea{font-family:inherit}ul,li{list-style:none}@media (pointer:coarse){input,textarea{font-size:16px!important}}:root{--lovelymai-color-blue-100:#94bbf0;--lovelymai-color-blue-200:#3b86f7;--lovelymai-color-blue-300:#0067ec;--lovelymai-color-blue-450:#2962d9;--lovelymai-color-gray-100:#fafafae6;--lovelymai-color-gray-150:#f5f5f5e6;--lovelymai-color-gray-200:#e4e4e4;--lovelymai-color-gray-225:#dadada;--lovelymai-color-gray-250:#b3b3b3;--lovelymai-color-gray-300:#767676;--lovelymai-color-gray-400:#544957;--lovelymai-color-gray-500:#0000001a;--lovelymai-color-gray-600:#19191a;--lovelymai-color-red-200:#ef6b6bcc;--lovelymai-box-shadow-100:0 0 20px 0 #0000001a;--lovelymai-box-shadow-200:0 0 10px 2px #0000001a}.lovelymai-glass-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);border:1px solid var(--lovelymai-color-gray-500);box-shadow:var(--lovelymai-box-shadow-100);background-color:#ffffffe6}.lovelymai-fade-enter-from,.lovelymai-fade-leave-to{opacity:0}.lovelymai-fade-enter-active,.lovelymai-fade-leave-active{transition:opacity .2s}.lovelymai-fade-leave-leave-to{opacity:0}.lovelymai-fade-leave-leave-active{transition:opacity .2s}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FU1XAAABjAAAAGBjbWFwILUFLQAAAhwAAAI8Z2x5ZnozidoAAAR0AAAEoGhlYWQwT9fFAAAA4AAAADZoaGVhB94DjQAAALwAAAAkaG10eDAAAAAAAAHsAAAAMGxvY2EHvAaAAAAEWAAAABptYXhwARwAVgAAARgAAAAgbmFtZXqBcSwAAAkUAAACc3Bvc3SyHxorAAALiAAAAJ4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAwAAQAAAAEAADPlRt5fDzz1AAsEAAAAAADmmEnkAAAAAOaYSeQAAP+ABAADgAAAAAgAAgAAAAAAAAABAAAADABKAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAA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8AdgBlAGwAeQBtAGEAaQBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQAKaG9yaXpvbnRhbAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxsZWZ0LXNpZGViYXILcmlnaHQtYXJyb3cFY2xlYXIKZG93bi1hcnJvdwpsZWZ0LWFycm93BWNoZWNrBWNsb3NlAAAAAA==)format("truetype")}.lovelymai{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-family:lovelymai!important}.lovely-horizontal:before{content:""}.lovely-ellipsis:before{content:""}.lovely-search:before{content:""}.lovely-info:before{content:""}.lovely-left-sidebar:before{content:""}.lovely-right-arrow:before{content:""}.lovely-clear:before{content:""}.lovely-down-arrow:before{content:""}.lovely-left-arrow:before{content:""}.lovely-check:before{content:""}.lovely-close:before{content:""}
|
|
1
|
+
._Button_744qe_2{border-radius:var(--Button-border-radius);width:30px;height:30px;font-size:var(--Button-font-size);color:var(--lovelymai-color-gray-600);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;--background-color:var(--lovelymai-color-blue-200);justify-content:center;align-items:center;font-weight:500;transition:transform .2s;display:flex}._Button_744qe_2._common_744qe_20{background-color:var(--background-color)}._Button_744qe_2._lovelymai-glass-container_744qe_24:active{background-color:#fff}._Button_744qe_2:active{transform:scale(1.2)}._Menu_1y2co_2{background-color:var(--lovelymai-color-gray-150);outline:.5px solid var(--lovelymai-color-gray-250);-webkit-user-select:none;user-select:none;border:1px solid #fff;border-radius:10px;padding:4px;position:absolute;box-shadow:0 0 10px #0000004d}._Menu_1y2co_2 ._item_1y2co_14{z-index:0;color:#000;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:5px;height:28px;padding:5px;display:flex;position:relative}._Menu_1y2co_2._sub_1y2co_28 ._item_1y2co_14{justify-content:space-between}@media (hover:hover){._Menu_1y2co_2 ._item_1y2co_14:hover{background-color:var(--lovelymai-color-blue-200);color:#fff}}._Menu_1y2co_2 ._item_1y2co_14 ._left_1y2co_39{gap:5px;display:flex}._Menu_1y2co_2 ._item_1y2co_14 ._left_1y2co_39 ._text_1y2co_44{white-space:nowrap;font-size:12px;font-weight:450;line-height:18px}.lovely-right-arrow[data-v-11681ed9]{font-weight:600;transform:translateY(1px)}._Input_16ltj_2{border-radius:calc(var(--Input-height) * .5px);--font-size:14px;--font-weight:400;--line-height:18px;--clear-color:var(--lovelymai-color-gray-300);--placeholder-color:var(--lovelymai-color-gray-400);height:35px;display:flex;position:relative}._icon_16ltj_14{width:calc(var(--input-height) * 1px);height:100%;font-size:calc(var(--input-height) * .5px);color:var(--lovelymai-color-gray-600);pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_16ltj_14._custom_16ltj_26{left:0}._icon_16ltj_14._clear_16ltj_30{right:0}._input_16ltj_34{min-width:0;padding-left:calc(var(--input-paddingLeft) * 1px);padding-right:calc(var(--input-height) * 1px);border-radius:calc(var(--input-height) * .5px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:var(--lovelymai-color-blue-200);background-color:#0000;border:none;outline:0 solid #0000;flex:1;transition:outline .2s}._input_16ltj_34::placeholder{color:var(--placeholder-color)}._input_16ltj_34:focus{outline:3px solid var(--lovelymai-color-blue-100)}.lovely-clear[data-v-d7e38c1f]{font-size:calc(var(--input-height) * .5px);color:var(--clear-color);cursor:pointer;pointer-events:auto}.lovely-horizontal[data-v-d7e38c1f],.lovely-check[data-v-d7e38c1f]{font-size:16px}._Loading_obw4q_2{background-color:var(--lovelymai-color-gray-100);opacity:.8;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}._spinner_obw4q_15{border:3px solid var(--lovelymai-color-gray-200);border-top-color:var(--lovelymai-color-blue-300);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite _lovelymai-spin_obw4q_1}@keyframes _lovelymai-spin_obw4q_1{to{transform:rotate(360deg)}}._ContentBar_h8x45_2{transform:translateX(var(--ContentBar-translateX)) scale(var(--ContentBar-scale));transition:var(--ContentBar-transition);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_h8x45_10{z-index:2;height:0;box-shadow:0 0px 20px 35px var(--lovelymai-color-gray-100);justify-content:space-between;gap:5px;margin-bottom:50px;padding:0 10px;display:flex;position:sticky;top:0}._title_h8x45_23{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;height:30px;margin-top:10px;font-size:16px;font-weight:500;line-height:30px;overflow:hidden}._Button_h8x45_36{margin-top:10px;font-size:20px}._content_h8x45_41{z-index:0;display:flow-root;position:relative}._FoldList_t5uhr_2{--header-height:30px;--header-font-size:12px;--header-color:var(--lovelymai-color-gray-300);--list-font-size:14px;--list-line-height:30px;--list-color:inherit}._header_t5uhr_11{height:var(--header-height);cursor:pointer;justify-content:space-between;align-items:center;display:flex}._header_t5uhr_11 ._title_t5uhr_19{font-size:var(--header-font-size);color:var(--header-color);font-weight:500}._container_t5uhr_25{height:var(--container-height);transition:height .5s;overflow:hidden}._list_t5uhr_31{transition:transform .5s;transform:translateY(0)}._list_t5uhr_31._close_t5uhr_36{transform:translateY(-100%)}._list_t5uhr_31 ._item_t5uhr_40{font-size:var(--list-font-size);line-height:var(--list-line-height);color:var(--list-color);white-space:nowrap;text-overflow:ellipsis;border-radius:6px;padding:0 10px;transition:all .2s;position:relative;overflow:hidden}._list_t5uhr_31 ._item_t5uhr_40._active_t5uhr_53{background-color:var(--lovelymai-color-gray-200);color:var(--lovelymai-color-blue-200)}@keyframes _slideAnimation_t5uhr_68{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}._slideAnimation_t5uhr_68{animation:.5s _slideAnimation_t5uhr_68}.lovely-right-arrow[data-v-063ffc36]{color:var(--header-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._TextArea_qzc37_2{border-radius:var(--border-radius);--max-height:auto;--border-radius:20px;--font-size:14px;--font-weight:400;--line-height:18px;--placeholder-color:var(--lovelymai-color-gray-400)}textarea[data-v-5802153b]{width:100%;max-height:var(--max-height);border-radius:calc(var(--border-radius) - 1px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:var(--lovelymai-color-blue-200);resize:none;scrollbar-width:thin;background-color:#0000;border:none;outline:0 solid #0000;padding:12px;transition:outline .2s;display:block;overflow-y:auto}textarea[data-v-5802153b]::placeholder{color:var(--placeholder-color)}textarea[data-v-5802153b]:focus{outline:3px solid var(--lovelymai-color-blue-100)}._Scroll_xxsn9_2{z-index:0;justify-content:center;align-items:center;height:200px;padding:16px 0;display:flex;position:relative}._selected_xxsn9_12{z-index:0;background-color:var(--lovelymai-color-gray-150);border-radius:12px;width:100%;height:24px;position:absolute;top:calc(50% - 12px);left:0}._list_xxsn9_23{z-index:1;overscroll-behavior:contain;scrollbar-width:none;scroll-snap-type:y mandatory;width:50%;height:168px;position:relative;overflow-y:auto}._list_xxsn9_23._left_xxsn9_34{padding-left:5px}._list_xxsn9_23._right_xxsn9_38{padding:0 5px 0 10px}._list_xxsn9_23 ._item_xxsn9_42{scroll-snap-align:start;height:24px;font-size:16px;line-height:24px;display:flex}._list_xxsn9_23._left_xxsn9_34 ._item_xxsn9_42{justify-content:flex-end}._list_xxsn9_23._right_xxsn9_38 ._item_xxsn9_42{justify-content:flex-start}._Date_1yt3w_2{z-index:0;-webkit-user-select:none;user-select:none;border-radius:16px;width:250px;padding:14px;position:absolute}._header_1yt3w_12{justify-content:space-between;height:24px;margin-bottom:14px;display:flex}._header_1yt3w_12 ._date_1yt3w_19{cursor:pointer;align-items:center;gap:2px;font-size:16px;font-weight:500;display:flex}._header_1yt3w_12 ._date_1yt3w_19 ._arrow_1yt3w_28{font-size:14px;transition:transform .5s}._header_1yt3w_12 ._button_1yt3w_33{align-items:center;gap:10px;display:flex}._header_1yt3w_12 ._button_1yt3w_33 ._arrow_1yt3w_28{font-size:20px}._days_1yt3w_43 ._weekdays_1yt3w_43{color:var(--lovelymai-color-gray-300);justify-content:space-between;font-size:12px;display:flex}._days_1yt3w_43 ._monthDays_1yt3w_50{flex-wrap:wrap;margin-top:10px;display:flex}._days_1yt3w_43 ._dayCell_1yt3w_56{justify-content:center;align-items:center;width:14.2857%;height:32px;display:flex}._days_1yt3w_43 ._day_1yt3w_43{cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:14px;font-weight:450;transition:background-color .2s;display:flex}._days_1yt3w_43 ._day_1yt3w_43._today_1yt3w_77{color:var(--lovelymai-color-blue-200)}._days_1yt3w_43 ._day_1yt3w_43._active_1yt3w_81{background-color:var(--lovelymai-color-blue-200);color:#fff}.lovelymai[data-v-e94022f9]{color:var(--lovelymai-color-blue-300);cursor:pointer;font-weight:600;transform:translateY(1px)}._Input_xcjmx_2{border-radius:calc(var(--Input-height) * .5px);--font-size:14px;--font-weight:400;--line-height:18px;--clear-color:var(--lovelymai-color-gray-300);--placeholder-color:var(--lovelymai-color-gray-400);height:35px;display:flex;position:relative}._icon_xcjmx_14{width:calc(var(--input-height) * 1px);height:100%;font-size:calc(var(--input-height) * .5px);color:var(--lovelymai-color-gray-600);pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_xcjmx_14._custom_xcjmx_26{left:0}._icon_xcjmx_14._clear_xcjmx_30{right:0}._input_xcjmx_34{min-width:0;padding-left:calc(var(--input-paddingLeft) * 1px);padding-right:calc(var(--input-height) * 1px);border-radius:calc(var(--input-height) * .5px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:var(--lovelymai-color-blue-200);background-color:#0000;border:none;outline:0 solid #0000;flex:1;transition:outline .2s}._input_xcjmx_34::placeholder{color:var(--placeholder-color)}._input_xcjmx_34:focus{outline:3px solid var(--lovelymai-color-blue-100)}._input_xcjmx_34[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.lovely-clear[data-v-7a5356f3]{font-size:calc(var(--input-height) * .5px);color:var(--clear-color);cursor:pointer;pointer-events:auto}._Form_1hpm1_2{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}._FormItem_1hpm1_9{align-items:flex-start;gap:10px;display:flex}._FormItem_1hpm1_9 ._TextArea_1hpm1_15,._FormItem_1hpm1_9 ._CheckBox_1hpm1_16,._FormItem_1hpm1_9 ._Input_1hpm1_17{flex:1;min-width:0}._FormItem_1hpm1_9 ._Input_1hpm1_17{height:100%}._MenuBar_1cxih_2{border-radius:var(--MenuBar-border-radius);-webkit-user-select:none;user-select:none;padding:3px}._menus_1cxih_9{justify-content:space-between;width:100%;height:100%;display:flex}._menus_1cxih_9 ._menu_1cxih_9{aspect-ratio:1;cursor:pointer;border-radius:50%;justify-content:center;align-items:center;display:flex}._menus_1cxih_9 ._menu_1cxih_9._disabled_1cxih_25{opacity:.3;cursor:not-allowed}@media (hover:hover){._menu_1cxih_9:not(._disabled_1cxih_25):hover{background-color:var(--lovelymai-color-gray-150)}}._Modal_s9g07_2{position:relative}._mask_s9g07_6{background-color:#0000001a;width:100dvw;height:100dvh;position:fixed;top:0;left:0}._ContentBar_s9g07_15{left:var(--ContentBar-left);top:var(--ContentBar-top);width:var(--ContentBar-width);height:var(--ContentBar-height);position:fixed}._Select_fr749_2{cursor:pointer;justify-content:center;align-items:center;width:20px;height:20px;display:flex}._SideBar_15t6h_2{transform:translateX(var(--SideBar-translateX)) scale(var(--SideBar-scale));transition:var(--SideBar-transition);border-radius:20px}._header_15t6h_8{z-index:1;align-items:center;width:100%;height:50px;padding:0 10px;display:flex;position:absolute}._header_15t6h_8 ._text_15t6h_18{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:16px;font-weight:500;line-height:30px;overflow:hidden}._header_15t6h_8 ._button_15t6h_28{width:35px;height:30px;transform:translateX(var(--button-translateX));cursor:pointer;border:none;border-radius:15px;justify-content:center;align-items:center;transition:transform .5s,box-shadow .5s;display:flex}._header_15t6h_8 ._button_15t6h_28._close_15t6h_41{box-shadow:var(--lovelymai-box-shadow-200);background-color:#ffffffe6;border:1px solid #fff}@media (hover:hover){._header_15t6h_8 ._button_15t6h_28:hover{background-color:var(--lovelymai-color-gray-150)}}._mask_15t6h_53{z-index:0;border-radius:inherit;min-height:100%;position:relative;overflow-y:auto}._mask_15t6h_53 ._empty_15t6h_61{height:50px}.lovely-left-sidebar[data-v-31cee9be]{color:var(--lovelymai-color-gray-600);font-size:20px}._TabBar_1onpt_2{-webkit-user-select:none;user-select:none;--top-color:var(--lovelymai-color-blue-300);gap:5px;height:50px;display:flex}._Bar_1onpt_11{width:calc(var(--Bar-height) * .8px);border-radius:calc(var(--Bar-border-radius) * 1px);cursor:pointer;height:80%;transition:var(--Bar-transition);padding:2px;overflow:hidden;background-color:var(--Bar-background-color)!important}._Bar_1onpt_11._active_1onpt_22{width:calc(var(--Bar-width) * 1px);height:100%;transform:scale(var(--Bar-scale));overflow:visible}._Bar_1onpt_11:not(._active_1onpt_22):active{transform:scale(1.2)}._search_1onpt_33{width:calc(var(--Bar-height) * 1px);height:100%;transition:var(--Bar-transition)}._search_1onpt_33._active_1onpt_22{width:calc(var(--search-width) * 1px);height:80%}._content_1onpt_44{touch-action:none;width:100%;height:100%;display:flex;position:relative}._content_1onpt_44._top_1onpt_52{z-index:1;clip-path:inset(0 calc(100% - var(--content-top-clipRight) * 1px) 0 calc(var(--content-top-clipLeft) * 1px) round calc((var(--Bar-border-radius) - 3) * 1px));transform:translateZ(0) scale(var(--content-top-scale));transform-origin:calc(var(--slide-center) * 1px) center;backface-visibility:hidden;transition:transform .2s;position:absolute;top:0;left:0}._tab_1onpt_64{width:calc(var(--slide-width) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_1onpt_64._small_1onpt_74{aspect-ratio:1;flex-shrink:1;height:100%}._tab_1onpt_64._top_1onpt_52{color:var(--top-color)}._search_1onpt_33 ._Button_1onpt_84{width:100%;height:100%}._search_1onpt_33 ._Input_1onpt_89{--font-size:18px;height:100%}._slide_1onpt_94{z-index:0;width:calc(var(--slide-width) * 1px);background:var(--slide-background);border:var(--slide-border);border-radius:calc((var(--Bar-border-radius) - 3) * 1px);height:100%;box-shadow:var(--slide-box-shadow);transform:translateX(calc(var(--slide-translateX) * 1px)) scale(var(--slide-scale));transition:var(--slide-transition);position:absolute;top:0;left:0}._Table_1lr91_2{z-index:0;scrollbar-width:thin;border-radius:16px;padding:12px;position:relative;overflow:auto}._header_1lr91_11{border-bottom:.5px solid var(--lovelymai-color-gray-300);-webkit-user-select:none;user-select:none;width:max-content;height:28px;margin-bottom:4px;display:flex}._header_1lr91_11 ._column_1lr91_21{cursor:pointer;flex-shrink:0;justify-content:space-between;align-items:center;padding:6px 8px;display:flex}._header_1lr91_11 ._column_1lr91_21:not(:last-child){border-right:.5px solid var(--lovelymai-color-gray-300)}._header_1lr91_11 ._column_1lr91_21 ._text_1lr91_34{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;line-height:16px;overflow:hidden}._list_1lr91_43 ._row_1lr91_43{width:max-content;height:35px;display:flex}._list_1lr91_43 ._row_1lr91_43:nth-child(2n){background-color:var(--lovelymai-color-gray-150)}._list_1lr91_43 ._row_1lr91_43 ._cell_1lr91_53{white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;padding:0 8px;font-size:16px;line-height:35px;overflow:hidden}.lovely-down-arrow[data-v-4dc2c396]{color:var(--lovelymai-color-gray-300);font-size:12px;font-weight:700}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}input,textarea{font-family:inherit}ul,li{list-style:none}@media (pointer:coarse){input,textarea{font-size:16px!important}}:root{--lovelymai-color-blue-50:#bfd0f4;--lovelymai-color-blue-100:#94bbf0;--lovelymai-color-blue-200:#3b86f7;--lovelymai-color-blue-300:#0067ec;--lovelymai-color-blue-450:#2962d9;--lovelymai-color-gray-100:#fafafae6;--lovelymai-color-gray-150:#f5f5f5e6;--lovelymai-color-gray-200:#e4e4e4;--lovelymai-color-gray-225:#dadada;--lovelymai-color-gray-250:#b3b3b3;--lovelymai-color-gray-300:#767676;--lovelymai-color-gray-400:#544957;--lovelymai-color-gray-500:#0000001a;--lovelymai-color-gray-600:#19191a;--lovelymai-color-red-200:#ef6b6bcc;--lovelymai-box-shadow-100:0 0 20px 0 #0000001a;--lovelymai-box-shadow-200:0 0 10px 2px #0000001a}.lovelymai-glass-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);border:1px solid var(--lovelymai-color-gray-500);box-shadow:var(--lovelymai-box-shadow-100);background-color:#ffffffe6}.lovelymai-fade-enter-from,.lovelymai-fade-leave-to{opacity:0}.lovelymai-fade-enter-active,.lovelymai-fade-leave-active{transition:opacity .2s}.lovelymai-fade-leave-leave-to{opacity:0}.lovelymai-fade-leave-leave-active{transition:opacity .2s}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FU1XAAABjAAAAGBjbWFwILUFLQAAAhwAAAI8Z2x5ZnozidoAAAR0AAAEoGhlYWQwT9fFAAAA4AAAADZoaGVhB94DjQAAALwAAAAkaG10eDAAAAAAAAHsAAAAMGxvY2EHvAaAAAAEWAAAABptYXhwARwAVgAAARgAAAAgbmFtZXqBcSwAAAkUAAACc3Bvc3SyHxorAAALiAAAAJ4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAwAAQAAAAEAADPlRt5fDzz1AAsEAAAAAADmmEnkAAAAAOaYSeQAAP+ABAADgAAAAAgAAgAAAAAAAAABAAAADABKAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAA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QBvAG4AIAAxAC4AMABsAG8AdgBlAGwAeQBtAGEAaQBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQAKaG9yaXpvbnRhbAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxsZWZ0LXNpZGViYXILcmlnaHQtYXJyb3cFY2xlYXIKZG93bi1hcnJvdwpsZWZ0LWFycm93BWNoZWNrBWNsb3NlAAAAAA==)format("truetype")}.lovelymai{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-family:lovelymai!important}.lovely-horizontal:before{content:""}.lovely-ellipsis:before{content:""}.lovely-search:before{content:""}.lovely-info:before{content:""}.lovely-left-sidebar:before{content:""}.lovely-right-arrow:before{content:""}.lovely-clear:before{content:""}.lovely-down-arrow:before{content:""}.lovely-left-arrow:before{content:""}.lovely-check:before{content:""}.lovely-close:before{content:""}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/lovelymaid.js
CHANGED
|
@@ -87,7 +87,7 @@ var G = /* @__PURE__ */ B(H, [["render", W]]), K = (e, t) => {
|
|
|
87
87
|
let i = t.target;
|
|
88
88
|
r.contains(i) && !e.contains(i) && n.value && c();
|
|
89
89
|
};
|
|
90
|
-
return b({
|
|
90
|
+
return e.matches(":hover") && o(), b({
|
|
91
91
|
visible: n,
|
|
92
92
|
position: i,
|
|
93
93
|
open: o,
|
|
@@ -416,10 +416,40 @@ var G = /* @__PURE__ */ B(H, [["render", W]]), K = (e, t) => {
|
|
|
416
416
|
custom: "_custom_16ltj_26",
|
|
417
417
|
clear: "_clear_16ltj_30",
|
|
418
418
|
input: "_input_16ltj_34"
|
|
419
|
-
} }], ["__scopeId", "data-v-d7e38c1f"]])
|
|
419
|
+
} }], ["__scopeId", "data-v-d7e38c1f"]]), ae = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
420
|
+
__name: "Loading",
|
|
421
|
+
props: {
|
|
422
|
+
loading: { type: Boolean },
|
|
423
|
+
zIndex: { default: 0 }
|
|
424
|
+
},
|
|
425
|
+
setup(e) {
|
|
426
|
+
let t = e, n = x(null), r = null, i = "", c = () => {
|
|
427
|
+
r || (r = n.value?.offsetParent ?? n.value?.parentElement ?? null, r && (i = r.style.overflow, r.style.overflow = "hidden"));
|
|
428
|
+
}, l = () => {
|
|
429
|
+
r &&= (r.style.overflow = i, null);
|
|
430
|
+
};
|
|
431
|
+
return g(() => {
|
|
432
|
+
t.loading && c();
|
|
433
|
+
}), A(() => t.loading, (e) => {
|
|
434
|
+
e ? c() : l();
|
|
435
|
+
}, { flush: "post" }), _(() => {
|
|
436
|
+
l();
|
|
437
|
+
}), (e, r) => t.loading ? (v(), o("div", {
|
|
438
|
+
key: 0,
|
|
439
|
+
class: m(e.$style.Loading),
|
|
440
|
+
ref_key: "LoadingRef",
|
|
441
|
+
ref: n,
|
|
442
|
+
style: h({ zIndex: t.zIndex })
|
|
443
|
+
}, [s("div", { class: m(e.$style.spinner) }, null, 2)], 6)) : a("", !0);
|
|
444
|
+
}
|
|
445
|
+
}), [["__cssModules", { $style: {
|
|
446
|
+
Loading: "_Loading_obw4q_2",
|
|
447
|
+
spinner: "_spinner_obw4q_15",
|
|
448
|
+
"lovelymai-spin": "_lovelymai-spin_obw4q_1"
|
|
449
|
+
} }]]);
|
|
420
450
|
//#endregion
|
|
421
451
|
//#region src/utils/function.ts
|
|
422
|
-
function
|
|
452
|
+
function oe(e, t) {
|
|
423
453
|
let n;
|
|
424
454
|
return function(...r) {
|
|
425
455
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -427,21 +457,21 @@ function ae(e, t) {
|
|
|
427
457
|
}, t);
|
|
428
458
|
};
|
|
429
459
|
}
|
|
430
|
-
function
|
|
460
|
+
function se(e, t) {
|
|
431
461
|
let n;
|
|
432
462
|
return function(...r) {
|
|
433
463
|
n || (n = setTimeout(() => n = void 0, t), e.apply(this, r));
|
|
434
464
|
};
|
|
435
465
|
}
|
|
436
|
-
var
|
|
466
|
+
var ce = (...e) => {
|
|
437
467
|
e.forEach((e) => {
|
|
438
468
|
e && (clearInterval(e), clearTimeout(e));
|
|
439
469
|
});
|
|
440
|
-
},
|
|
470
|
+
}, le = (e) => {
|
|
441
471
|
let t = 0, n = e, r = !1;
|
|
442
472
|
for (; n && n !== document.body;) getComputedStyle(n).position === "fixed" && (r = !0), t += n.offsetLeft, n = n.offsetParent;
|
|
443
473
|
return r && (t += document.documentElement.scrollLeft), t;
|
|
444
|
-
},
|
|
474
|
+
}, ue = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
445
475
|
__name: "ContentBar",
|
|
446
476
|
props: {
|
|
447
477
|
visible: {
|
|
@@ -452,7 +482,11 @@ var se = (...e) => {
|
|
|
452
482
|
type: Boolean,
|
|
453
483
|
default: !0
|
|
454
484
|
},
|
|
455
|
-
onCloseClick: {}
|
|
485
|
+
onCloseClick: {},
|
|
486
|
+
loading: {
|
|
487
|
+
type: Boolean,
|
|
488
|
+
default: !1
|
|
489
|
+
}
|
|
456
490
|
},
|
|
457
491
|
setup(e) {
|
|
458
492
|
let t = e, n = b({ ContentBar: {
|
|
@@ -466,8 +500,8 @@ var se = (...e) => {
|
|
|
466
500
|
r.value && I(r.value, n);
|
|
467
501
|
});
|
|
468
502
|
let r = x(null), a = x(0), o, u = () => {
|
|
469
|
-
r.value && (a.value =
|
|
470
|
-
}, d =
|
|
503
|
+
r.value && (a.value = le(r.value) + r.value.offsetWidth + 10);
|
|
504
|
+
}, d = oe(u, 100);
|
|
471
505
|
g(() => {
|
|
472
506
|
r.value && (u(), o = F(r.value, () => {
|
|
473
507
|
d();
|
|
@@ -487,7 +521,7 @@ var se = (...e) => {
|
|
|
487
521
|
ref: (e) => r.value = e?.$el ?? null
|
|
488
522
|
}, {
|
|
489
523
|
default: j(() => [
|
|
490
|
-
s("div", { class: m(e.$style.header) }, [s("div", { class: m(e.$style.title) }, [C(e.$slots, "
|
|
524
|
+
s("div", { class: m(e.$style.header) }, [s("div", { class: m(e.$style.title) }, [C(e.$slots, "header", {}, () => [n[0] ||= c("标题", -1)])], 2), l(V, {
|
|
491
525
|
class: m(e.$style.Button),
|
|
492
526
|
type: "glass",
|
|
493
527
|
"on-click": t.onCloseClick,
|
|
@@ -497,19 +531,21 @@ var se = (...e) => {
|
|
|
497
531
|
_: 1
|
|
498
532
|
}, 8, ["class", "on-click"])], 2),
|
|
499
533
|
s("div", { class: m(e.$style.content) }, [C(e.$slots, "default")], 2),
|
|
500
|
-
|
|
534
|
+
l(ae, {
|
|
535
|
+
loading: t.loading,
|
|
536
|
+
"z-index": 1
|
|
537
|
+
}, null, 8, ["loading"])
|
|
501
538
|
]),
|
|
502
539
|
_: 3
|
|
503
540
|
}, 8, ["class"]));
|
|
504
541
|
}
|
|
505
542
|
}), [["__cssModules", { $style: {
|
|
506
|
-
ContentBar: "
|
|
507
|
-
header: "
|
|
508
|
-
title: "
|
|
509
|
-
Button: "
|
|
510
|
-
content: "
|
|
511
|
-
|
|
512
|
-
} }]]), ue = (e, t) => {
|
|
543
|
+
ContentBar: "_ContentBar_h8x45_2",
|
|
544
|
+
header: "_header_h8x45_10",
|
|
545
|
+
title: "_title_h8x45_23",
|
|
546
|
+
Button: "_Button_h8x45_36",
|
|
547
|
+
content: "_content_h8x45_41"
|
|
548
|
+
} }]]), de = (e, t) => {
|
|
513
549
|
let n = Array(e.length), r = /* @__PURE__ */ new Map();
|
|
514
550
|
for (let e = 0; e < t.length; e++) r.set(t[e].id, e);
|
|
515
551
|
let i = -1;
|
|
@@ -518,7 +554,7 @@ var se = (...e) => {
|
|
|
518
554
|
o === void 0 ? i === -1 ? n[t] = -1 - t : n[t] = i - t : (n[t] = o - t, i = o);
|
|
519
555
|
}
|
|
520
556
|
return n;
|
|
521
|
-
},
|
|
557
|
+
}, fe = ["title"], pe = ["onClick"], me = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
522
558
|
__name: "FoldList",
|
|
523
559
|
props: /* @__PURE__ */ f({
|
|
524
560
|
title: { default: "标题" },
|
|
@@ -546,7 +582,7 @@ var se = (...e) => {
|
|
|
546
582
|
});
|
|
547
583
|
let _ = x([]), y = x(!1), w = x(n.list);
|
|
548
584
|
A(r(() => n.list.map((e) => e.id).join(",")), async (e, t) => {
|
|
549
|
-
e !== t && (y.value = !1, _.value =
|
|
585
|
+
e !== t && (y.value = !1, _.value = de(n.list, w.value), await p(), y.value = !0, w.value = [...n.list]);
|
|
550
586
|
}, { deep: !0 });
|
|
551
587
|
let E = (e, t) => {
|
|
552
588
|
a.value = e.id, n.onItemClick?.(e, t);
|
|
@@ -563,7 +599,7 @@ var se = (...e) => {
|
|
|
563
599
|
style: h({ transform: i.value ? "rotate(90deg)" : "rotate(0deg)" }),
|
|
564
600
|
title: i.value ? "收起列表" : "展开列表",
|
|
565
601
|
onClick: d[0] ||= P(() => i.value = !i.value, ["stop"])
|
|
566
|
-
}, null, 12,
|
|
602
|
+
}, null, 12, fe)], 2), s("div", { class: m(r.$style.container) }, [s("ul", {
|
|
567
603
|
class: m([r.$style.list, { [r.$style.close]: !i.value }]),
|
|
568
604
|
ref_key: "ListRef",
|
|
569
605
|
ref: u
|
|
@@ -582,7 +618,7 @@ var se = (...e) => {
|
|
|
582
618
|
}, [C(r.$slots, "default", {
|
|
583
619
|
item: e,
|
|
584
620
|
index: t
|
|
585
|
-
}, () => [c(T(e.name), 1)], !0)], 46,
|
|
621
|
+
}, () => [c(T(e.name), 1)], !0)], 46, pe))), 128))], 2)], 2)], 2));
|
|
586
622
|
}
|
|
587
623
|
}), [["__cssModules", { $style: {
|
|
588
624
|
FoldList: "_FoldList_t5uhr_2",
|
|
@@ -594,14 +630,14 @@ var se = (...e) => {
|
|
|
594
630
|
item: "_item_t5uhr_40",
|
|
595
631
|
active: "_active_t5uhr_53",
|
|
596
632
|
slideAnimation: "_slideAnimation_t5uhr_68"
|
|
597
|
-
} }], ["__scopeId", "data-v-063ffc36"]]),
|
|
633
|
+
} }], ["__scopeId", "data-v-063ffc36"]]), he = [
|
|
598
634
|
"rows",
|
|
599
635
|
"value",
|
|
600
636
|
"placeholder",
|
|
601
637
|
"enterkeyhint",
|
|
602
638
|
"disabled",
|
|
603
639
|
"onKeydown"
|
|
604
|
-
],
|
|
640
|
+
], ge = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
605
641
|
__name: "TextArea",
|
|
606
642
|
props: /* @__PURE__ */ f({
|
|
607
643
|
minrow: { default: 1 },
|
|
@@ -656,11 +692,11 @@ var se = (...e) => {
|
|
|
656
692
|
onKeydown: N(P(f, ["prevent"]), ["enter"]),
|
|
657
693
|
onCompositionstart: d,
|
|
658
694
|
onCompositionend: u
|
|
659
|
-
}, null, 40,
|
|
695
|
+
}, null, 40, he)]),
|
|
660
696
|
_: 1
|
|
661
697
|
}, 8, ["class"]));
|
|
662
698
|
}
|
|
663
|
-
}), [["__cssModules", { $style: { TextArea: "_TextArea_qzc37_2" } }], ["__scopeId", "data-v-5802153b"]]),
|
|
699
|
+
}), [["__cssModules", { $style: { TextArea: "_TextArea_qzc37_2" } }], ["__scopeId", "data-v-5802153b"]]), _e = ["data-index"], ve = ["data-index"], ye = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
664
700
|
__name: "Scroll",
|
|
665
701
|
props: /* @__PURE__ */ f({ lists: {} }, {
|
|
666
702
|
"active-ids": {},
|
|
@@ -672,7 +708,7 @@ var se = (...e) => {
|
|
|
672
708
|
A(() => n.lists, (e) => {
|
|
673
709
|
r.value === void 0 && (r.value = e.map((e) => e[0].id));
|
|
674
710
|
}, { immediate: !0 });
|
|
675
|
-
let i = x(null), a = x(null), c, l =
|
|
711
|
+
let i = x(null), a = x(null), c, l = oe((e) => {
|
|
676
712
|
let t;
|
|
677
713
|
e === "left" && i.value ? (t = Math.floor(i.value.scrollTop / 24), r.value = [n.lists[0][t].id, r.value[1]]) : e === "right" && a.value && (t = Math.floor(a.value.scrollTop / 24), r.value = [r.value[0], n.lists[1][t].id]);
|
|
678
714
|
}, 100);
|
|
@@ -716,7 +752,7 @@ var se = (...e) => {
|
|
|
716
752
|
(v(!0), o(e, null, S(n.lists[0], (e, n) => (v(), o("li", {
|
|
717
753
|
class: m(t.$style.item),
|
|
718
754
|
"data-index": n
|
|
719
|
-
}, [s("span", null, T(e.name), 1)], 10,
|
|
755
|
+
}, [s("span", null, T(e.name), 1)], 10, _e))), 256)),
|
|
720
756
|
(v(!0), o(e, null, S([
|
|
721
757
|
,
|
|
722
758
|
,
|
|
@@ -738,7 +774,7 @@ var se = (...e) => {
|
|
|
738
774
|
(v(!0), o(e, null, S(n.lists[1], (e, n) => (v(), o("li", {
|
|
739
775
|
class: m(t.$style.item),
|
|
740
776
|
"data-index": n
|
|
741
|
-
}, [s("span", null, T(e.name), 1)], 10,
|
|
777
|
+
}, [s("span", null, T(e.name), 1)], 10, ve))), 256)),
|
|
742
778
|
(v(!0), o(e, null, S([
|
|
743
779
|
,
|
|
744
780
|
,
|
|
@@ -757,7 +793,7 @@ var se = (...e) => {
|
|
|
757
793
|
} }]]);
|
|
758
794
|
//#endregion
|
|
759
795
|
//#region src/utils/date.ts
|
|
760
|
-
function
|
|
796
|
+
function be(e) {
|
|
761
797
|
let t = typeof e == "number" ? new Date(e) : e;
|
|
762
798
|
return [
|
|
763
799
|
t.getFullYear(),
|
|
@@ -765,7 +801,7 @@ function ye(e) {
|
|
|
765
801
|
t.getDate()
|
|
766
802
|
];
|
|
767
803
|
}
|
|
768
|
-
function
|
|
804
|
+
function xe(e) {
|
|
769
805
|
function t(e) {
|
|
770
806
|
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
|
|
771
807
|
}
|
|
@@ -789,7 +825,7 @@ function be(e) {
|
|
|
789
825
|
}
|
|
790
826
|
//#endregion
|
|
791
827
|
//#region src/components/internal/Date.vue?vue&type=script&setup=true&lang.ts
|
|
792
|
-
var
|
|
828
|
+
var Se = ["data-day"], Ce = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
793
829
|
__name: "Date",
|
|
794
830
|
props: /* @__PURE__ */ f({
|
|
795
831
|
visible: { type: Boolean },
|
|
@@ -797,12 +833,12 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
797
833
|
zIndex: { default: 0 },
|
|
798
834
|
onDateClick: {}
|
|
799
835
|
}, {
|
|
800
|
-
date: { default: () =>
|
|
836
|
+
date: { default: () => be(Date.now()) },
|
|
801
837
|
dateModifiers: {}
|
|
802
838
|
}),
|
|
803
839
|
emits: ["update:date"],
|
|
804
840
|
setup(c, { expose: u }) {
|
|
805
|
-
let d = c, f = D(c, "date"), p =
|
|
841
|
+
let d = c, f = D(c, "date"), p = be(Date.now()), g = [
|
|
806
842
|
"周一",
|
|
807
843
|
"周二",
|
|
808
844
|
"周三",
|
|
@@ -881,7 +917,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
881
917
|
name: "lovelymai-fade",
|
|
882
918
|
mode: "out-in"
|
|
883
919
|
}, {
|
|
884
|
-
default: j(() => [w.value ? (v(), i(
|
|
920
|
+
default: j(() => [w.value ? (v(), i(ye, {
|
|
885
921
|
key: 0,
|
|
886
922
|
lists: [E(y), E(_)],
|
|
887
923
|
"active-ids": O.value,
|
|
@@ -902,7 +938,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
902
938
|
[r.$style.active]: b.value === f.value[0] && C.value === f.value[1] && Number(e) === f.value[2]
|
|
903
939
|
}]),
|
|
904
940
|
"data-day": e
|
|
905
|
-
}, T(e), 11,
|
|
941
|
+
}, T(e), 11, Se)) : a("", !0)], 2))), 128))], 2)], 2))]),
|
|
906
942
|
_: 1
|
|
907
943
|
})]),
|
|
908
944
|
_: 1
|
|
@@ -923,7 +959,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
923
959
|
day: "_day_1yt3w_43",
|
|
924
960
|
today: "_today_1yt3w_77",
|
|
925
961
|
active: "_active_1yt3w_81"
|
|
926
|
-
} }], ["__scopeId", "data-v-e94022f9"]]),
|
|
962
|
+
} }], ["__scopeId", "data-v-e94022f9"]]), we = [
|
|
927
963
|
"type",
|
|
928
964
|
"value",
|
|
929
965
|
"placeholder",
|
|
@@ -931,7 +967,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
931
967
|
"disabled",
|
|
932
968
|
"readonly",
|
|
933
969
|
"onKeydown"
|
|
934
|
-
],
|
|
970
|
+
], Te = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
935
971
|
__name: "Input",
|
|
936
972
|
props: /* @__PURE__ */ f({
|
|
937
973
|
type: { default: "text" },
|
|
@@ -1027,7 +1063,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1027
1063
|
L.value.open();
|
|
1028
1064
|
}
|
|
1029
1065
|
});
|
|
1030
|
-
let W = x(
|
|
1066
|
+
let W = x(be(Date.now())), K = x(null), q = x(null);
|
|
1031
1067
|
g(() => {
|
|
1032
1068
|
!d.value || n.type !== "date" || (q.value = Q(d.value, K));
|
|
1033
1069
|
}), _(() => {
|
|
@@ -1076,7 +1112,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1076
1112
|
Number(e[2]),
|
|
1077
1113
|
Number(e[3])
|
|
1078
1114
|
];
|
|
1079
|
-
return
|
|
1115
|
+
return xe(t) && n.format(t) === c.value;
|
|
1080
1116
|
}
|
|
1081
1117
|
return !0;
|
|
1082
1118
|
});
|
|
@@ -1115,7 +1151,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1115
1151
|
onKeydown: [N(P(ee, ["prevent"]), ["enter"]), N(P(te, ["prevent"]), ["tab"])],
|
|
1116
1152
|
onCompositionstart: T,
|
|
1117
1153
|
onCompositionend: w
|
|
1118
|
-
}, null, 46,
|
|
1154
|
+
}, null, 46, we),
|
|
1119
1155
|
s("div", { class: m([e.$style.icon, e.$style.clear]) }, [M(s("span", {
|
|
1120
1156
|
class: "lovelymai lovely-clear",
|
|
1121
1157
|
onMouseup: t[1] ||= P(() => X(), ["stop"])
|
|
@@ -1136,7 +1172,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1136
1172
|
"min-width",
|
|
1137
1173
|
"z-index"
|
|
1138
1174
|
])) : a("", !0),
|
|
1139
|
-
n.type === "date" ? (v(), i(
|
|
1175
|
+
n.type === "date" ? (v(), i(Ce, {
|
|
1140
1176
|
key: 2,
|
|
1141
1177
|
ref: (e) => K.value = e?.root ?? null,
|
|
1142
1178
|
visible: q.value?.visible ?? !1,
|
|
@@ -1161,7 +1197,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1161
1197
|
custom: "_custom_xcjmx_26",
|
|
1162
1198
|
clear: "_clear_xcjmx_30",
|
|
1163
1199
|
input: "_input_xcjmx_34"
|
|
1164
|
-
} }], ["__scopeId", "data-v-7a5356f3"]]),
|
|
1200
|
+
} }], ["__scopeId", "data-v-7a5356f3"]]), Ee = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1165
1201
|
__name: "Form",
|
|
1166
1202
|
props: /* @__PURE__ */ f({
|
|
1167
1203
|
itemWidth: {},
|
|
@@ -1194,7 +1230,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1194
1230
|
key: 0,
|
|
1195
1231
|
class: m(t.$style.name),
|
|
1196
1232
|
style: h({ lineHeight: e.type === "textarea" ? "42px" : (e.height ?? s.itemHeight ?? 35) + "px" })
|
|
1197
|
-
}, T(e.name), 7)) : a("", !0), e.type === "textarea" ? (v(), i(
|
|
1233
|
+
}, T(e.name), 7)) : a("", !0), e.type === "textarea" ? (v(), i(ge, {
|
|
1198
1234
|
key: 1,
|
|
1199
1235
|
class: m(t.$style.TextArea),
|
|
1200
1236
|
ref_for: !0,
|
|
@@ -1244,7 +1280,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1244
1280
|
"warning",
|
|
1245
1281
|
"onUpdate:warning",
|
|
1246
1282
|
"on-enter"
|
|
1247
|
-
])) : (v(), i(
|
|
1283
|
+
])) : (v(), i(Te, {
|
|
1248
1284
|
key: 3,
|
|
1249
1285
|
class: m(t.$style.Input),
|
|
1250
1286
|
ref_for: !0,
|
|
@@ -1289,7 +1325,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1289
1325
|
TextArea: "_TextArea_1hpm1_15",
|
|
1290
1326
|
CheckBox: "_CheckBox_1hpm1_16",
|
|
1291
1327
|
Input: "_Input_1hpm1_17"
|
|
1292
|
-
} }]]),
|
|
1328
|
+
} }]]), De = ["onClick"], Oe = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1293
1329
|
__name: "MenuBar",
|
|
1294
1330
|
props: {
|
|
1295
1331
|
menus: {},
|
|
@@ -1314,7 +1350,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1314
1350
|
}, [C(t.$slots, "default", {
|
|
1315
1351
|
menu: e,
|
|
1316
1352
|
index: r
|
|
1317
|
-
})], 10,
|
|
1353
|
+
})], 10, De))), 256))], 2)]),
|
|
1318
1354
|
_: 3
|
|
1319
1355
|
}, 8, ["class"]));
|
|
1320
1356
|
}
|
|
@@ -1323,13 +1359,14 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1323
1359
|
menus: "_menus_1cxih_9",
|
|
1324
1360
|
menu: "_menu_1cxih_9",
|
|
1325
1361
|
disabled: "_disabled_1cxih_25"
|
|
1326
|
-
} }]]),
|
|
1362
|
+
} }]]), ke = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1327
1363
|
__name: "Modal",
|
|
1328
1364
|
props: /* @__PURE__ */ f({
|
|
1329
1365
|
width: {},
|
|
1330
1366
|
height: {},
|
|
1331
1367
|
zIndex: { default: 0 },
|
|
1332
|
-
onClose: {}
|
|
1368
|
+
onClose: {},
|
|
1369
|
+
loading: { type: Boolean }
|
|
1333
1370
|
}, {
|
|
1334
1371
|
visible: {
|
|
1335
1372
|
type: Boolean,
|
|
@@ -1371,23 +1408,27 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1371
1408
|
onClickCapture: P(f, ["stop"])
|
|
1372
1409
|
}, null, 34)) : a("", !0)]),
|
|
1373
1410
|
_: 1
|
|
1374
|
-
}), l(
|
|
1411
|
+
}), l(ue, {
|
|
1375
1412
|
class: m(e.$style.ContentBar),
|
|
1376
1413
|
visible: c.value,
|
|
1377
1414
|
"is-open": !0,
|
|
1378
|
-
"on-close-click": f
|
|
1415
|
+
"on-close-click": f,
|
|
1416
|
+
loading: r.loading
|
|
1379
1417
|
}, {
|
|
1380
|
-
|
|
1381
|
-
tip: j(() => [C(e.$slots, "tip")]),
|
|
1418
|
+
header: j(() => [C(e.$slots, "header")]),
|
|
1382
1419
|
default: j(() => [C(e.$slots, "default")]),
|
|
1383
1420
|
_: 3
|
|
1384
|
-
}, 8, [
|
|
1421
|
+
}, 8, [
|
|
1422
|
+
"class",
|
|
1423
|
+
"visible",
|
|
1424
|
+
"loading"
|
|
1425
|
+
])], 6)]));
|
|
1385
1426
|
}
|
|
1386
1427
|
}), [["__cssModules", { $style: {
|
|
1387
1428
|
Modal: "_Modal_s9g07_2",
|
|
1388
1429
|
mask: "_mask_s9g07_6",
|
|
1389
1430
|
ContentBar: "_ContentBar_s9g07_15"
|
|
1390
|
-
} }]]),
|
|
1431
|
+
} }]]), Ae = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1391
1432
|
__name: "Select",
|
|
1392
1433
|
props: {
|
|
1393
1434
|
options: {},
|
|
@@ -1431,14 +1472,15 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1431
1472
|
"on-option-click"
|
|
1432
1473
|
])], 2));
|
|
1433
1474
|
}
|
|
1434
|
-
}), [["__cssModules", { $style: { Select: "_Select_fr749_2" } }]]),
|
|
1475
|
+
}), [["__cssModules", { $style: { Select: "_Select_fr749_2" } }]]), je = ["title"], Me = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1435
1476
|
__name: "SideBar",
|
|
1436
1477
|
props: /* @__PURE__ */ f({
|
|
1437
1478
|
visible: {
|
|
1438
1479
|
type: Boolean,
|
|
1439
1480
|
default: !0
|
|
1440
1481
|
},
|
|
1441
|
-
onButtonClick: {}
|
|
1482
|
+
onButtonClick: {},
|
|
1483
|
+
loading: { type: Boolean }
|
|
1442
1484
|
}, {
|
|
1443
1485
|
open: {
|
|
1444
1486
|
type: Boolean,
|
|
@@ -1463,44 +1505,50 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1463
1505
|
g(() => {
|
|
1464
1506
|
a.value && I(a.value, r);
|
|
1465
1507
|
});
|
|
1466
|
-
let a = x(null), o = x(0),
|
|
1467
|
-
a.value && (o.value =
|
|
1468
|
-
},
|
|
1508
|
+
let a = x(null), o = x(0), u, d = () => {
|
|
1509
|
+
a.value && (o.value = le(a.value) + a.value.offsetWidth + 10);
|
|
1510
|
+
}, f = oe(d, 100);
|
|
1469
1511
|
g(() => {
|
|
1470
|
-
a.value && (
|
|
1471
|
-
|
|
1512
|
+
a.value && (d(), u = F(a.value, () => {
|
|
1513
|
+
f();
|
|
1472
1514
|
}), setTimeout(() => {
|
|
1473
1515
|
r.SideBar.transition = "transform .5s";
|
|
1474
|
-
}, 100), window.addEventListener("resize",
|
|
1516
|
+
}, 100), window.addEventListener("resize", f));
|
|
1475
1517
|
}), _(() => {
|
|
1476
|
-
|
|
1518
|
+
u(), window.removeEventListener("resize", f);
|
|
1477
1519
|
});
|
|
1478
|
-
let
|
|
1520
|
+
let h;
|
|
1479
1521
|
return A(() => t.visible, async (e) => {
|
|
1480
|
-
clearTimeout(
|
|
1522
|
+
clearTimeout(h), r.SideBar.transition = "transform .3s", h = setTimeout(() => {
|
|
1481
1523
|
r.SideBar.transition = "transform .5s";
|
|
1482
1524
|
}, 300), e ? (await p(), r.SideBar.scale = "1") : r.SideBar.scale = "0";
|
|
1483
1525
|
}), (e, r) => (v(), i(G, {
|
|
1484
1526
|
class: m(e.$style.SideBar),
|
|
1485
1527
|
ref: (e) => a.value = e?.$el ?? null
|
|
1486
1528
|
}, {
|
|
1487
|
-
default: j(() => [s("div", { class: m(e.$style.header) }, [s("div", { class: m(e.$style.text) }, [C(e.$slots, "
|
|
1529
|
+
default: j(() => [s("div", { class: m(e.$style.header) }, [s("div", { class: m(e.$style.text) }, [C(e.$slots, "header", {}, void 0, !0)], 2), s("div", {
|
|
1488
1530
|
class: m([e.$style.button, { [e.$style.close]: !n.value }]),
|
|
1489
1531
|
title: n.value ? "收起侧边栏" : "打开侧边栏",
|
|
1490
1532
|
onClick: r[0] ||= P(() => {
|
|
1491
1533
|
n.value = !n.value, t.onButtonClick?.();
|
|
1492
1534
|
}, ["stop"])
|
|
1493
|
-
}, [...r[1] ||= [s("span", { class: "lovelymai lovely-left-sidebar" }, null, -1)]], 10,
|
|
1535
|
+
}, [...r[1] ||= [s("span", { class: "lovelymai lovely-left-sidebar" }, null, -1)]], 10, je)], 2), s("div", { class: m(e.$style.mask) }, [
|
|
1536
|
+
s("div", { class: m(e.$style.empty) }, null, 2),
|
|
1537
|
+
C(e.$slots, "default", {}, () => [r[2] ||= c("111", -1)], !0),
|
|
1538
|
+
l(ae, { loading: t.loading }, null, 8, ["loading"])
|
|
1539
|
+
], 2)]),
|
|
1494
1540
|
_: 3
|
|
1495
1541
|
}, 8, ["class"]));
|
|
1496
1542
|
}
|
|
1497
1543
|
}), [["__cssModules", { $style: {
|
|
1498
|
-
SideBar: "
|
|
1499
|
-
header: "
|
|
1500
|
-
text: "
|
|
1501
|
-
button: "
|
|
1502
|
-
close: "
|
|
1503
|
-
|
|
1544
|
+
SideBar: "_SideBar_15t6h_2",
|
|
1545
|
+
header: "_header_15t6h_8",
|
|
1546
|
+
text: "_text_15t6h_18",
|
|
1547
|
+
button: "_button_15t6h_28",
|
|
1548
|
+
close: "_close_15t6h_41",
|
|
1549
|
+
mask: "_mask_15t6h_53",
|
|
1550
|
+
empty: "_empty_15t6h_61"
|
|
1551
|
+
} }], ["__scopeId", "data-v-31cee9be"]]), Ne = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1504
1552
|
__name: "TabBar",
|
|
1505
1553
|
props: /* @__PURE__ */ f({
|
|
1506
1554
|
tabs: {},
|
|
@@ -1554,9 +1602,9 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1554
1602
|
p.Bar.transition = "width .3s, height .3s, transform .2s";
|
|
1555
1603
|
}, 500));
|
|
1556
1604
|
}), _(() => {
|
|
1557
|
-
w(), cancelAnimationFrame(T), cancelAnimationFrame(E),
|
|
1605
|
+
w(), cancelAnimationFrame(T), cancelAnimationFrame(E), ce(O);
|
|
1558
1606
|
});
|
|
1559
|
-
let N = !1, L = !1, R, z = () => new DOMMatrix(window.getComputedStyle(f.value).transform).m41, B = (e, t, n) => Math.max(t, Math.min(n, e)), H = (e) => d.value ? B(e.pageX -
|
|
1607
|
+
let N = !1, L = !1, R, z = () => new DOMMatrix(window.getComputedStyle(f.value).transform).m41, B = (e, t, n) => Math.max(t, Math.min(n, e)), H = (e) => d.value ? B(e.pageX - le(d.value) - p.slide.width / 2, 0, (n.tabs.length - 1) * p.slide.width) : 0, U = (e) => {
|
|
1560
1608
|
let t = z();
|
|
1561
1609
|
Math.abs(e - t) < y.value / 10 ? (p.slide.transition = "background .1s", p.slide.translateX = e, N = !0, E = void 0) : (p.slide.translateX += e - t > 0 ? y.value / 10 : -y.value / 10, E = requestAnimationFrame(() => U(e)));
|
|
1562
1610
|
}, W = (e) => {
|
|
@@ -1593,7 +1641,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1593
1641
|
}, 100);
|
|
1594
1642
|
}, ee = (e) => {
|
|
1595
1643
|
R = Date.now(), Y(), W(H(e)), cancelAnimationFrame(T), T = void 0, q(500), document.addEventListener("pointermove", X), document.addEventListener("pointerup", te);
|
|
1596
|
-
}, X =
|
|
1644
|
+
}, X = se((e) => {
|
|
1597
1645
|
if (L = !0, Q.value) {
|
|
1598
1646
|
Q.value = !1;
|
|
1599
1647
|
return;
|
|
@@ -1602,10 +1650,10 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1602
1650
|
}, 8), Z = () => {
|
|
1603
1651
|
p.slide.background = "var(--lovelymai-color-gray-200)", p.Bar["background-color"] = "var(--lovelymai-color-gray-100)", p.slide.border = "none", p.slide["box-shadow"] = "none", p.Bar.scale = 1, p.slide.scale = 1;
|
|
1604
1652
|
}, te = (e) => {
|
|
1605
|
-
if (Date.now() - R < 100 &&
|
|
1653
|
+
if (Date.now() - R < 100 && ce(O), Z(), Q.value) Q.value = !1, J(h.value);
|
|
1606
1654
|
else {
|
|
1607
1655
|
if (!d.value) return;
|
|
1608
|
-
let t = e.pageX -
|
|
1656
|
+
let t = e.pageX - le(d.value), r = Math.floor(t / p.slide.width), i = h.value, a = B(r, 0, n.tabs.length - 1);
|
|
1609
1657
|
h.value = a, i === a && (J(a), L || n.onActiveTabPress?.(a));
|
|
1610
1658
|
}
|
|
1611
1659
|
L = !1, N = !1, document.removeEventListener("pointermove", X), document.removeEventListener("pointerup", te);
|
|
@@ -1666,7 +1714,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1666
1714
|
}, {
|
|
1667
1715
|
default: j(() => [...r[1] ||= [s("span", { class: "lovelymai lovely-search button" }, null, -1)]]),
|
|
1668
1716
|
_: 1
|
|
1669
|
-
}, 8, ["class"]), [[k, !$.value]]), M(l(
|
|
1717
|
+
}, 8, ["class"]), [[k, !$.value]]), M(l(Te, {
|
|
1670
1718
|
class: m(t.$style.Input),
|
|
1671
1719
|
type: "text",
|
|
1672
1720
|
value: c.value,
|
|
@@ -1696,7 +1744,7 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1696
1744
|
Button: "_Button_1onpt_84",
|
|
1697
1745
|
Input: "_Input_1onpt_89",
|
|
1698
1746
|
slide: "_slide_1onpt_94"
|
|
1699
|
-
} }]]),
|
|
1747
|
+
} }]]), Pe = (e, t, n) => {
|
|
1700
1748
|
let r = x(/* @__PURE__ */ new Set()), i;
|
|
1701
1749
|
A(t, (t) => {
|
|
1702
1750
|
r.value = new Set(e.value.map((e, n) => t.has(e.id) ? n : -1).filter((e) => e !== -1));
|
|
@@ -1729,12 +1777,13 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1729
1777
|
n.removeEventListener("pointerdown", s);
|
|
1730
1778
|
}
|
|
1731
1779
|
});
|
|
1732
|
-
},
|
|
1780
|
+
}, Fe = ["onClick"], Ie = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
1733
1781
|
__name: "Table",
|
|
1734
1782
|
props: /* @__PURE__ */ f({
|
|
1735
1783
|
columns: {},
|
|
1736
1784
|
rows: {},
|
|
1737
|
-
zIndex: {}
|
|
1785
|
+
zIndex: {},
|
|
1786
|
+
loading: { type: Boolean }
|
|
1738
1787
|
}, {
|
|
1739
1788
|
sort: {},
|
|
1740
1789
|
sortModifiers: {},
|
|
@@ -1743,91 +1792,103 @@ var xe = ["data-day"], Se = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
1743
1792
|
}),
|
|
1744
1793
|
emits: ["update:sort", "update:active-ids"],
|
|
1745
1794
|
setup(t) {
|
|
1746
|
-
let n = t,
|
|
1747
|
-
n.rows.every((t) => typeof t[e.prop] == "string" || typeof t[e.prop] == "number") && (
|
|
1795
|
+
let n = t, a = D(t, "sort"), u = D(t, "active-ids"), d = (e) => {
|
|
1796
|
+
n.rows.every((t) => typeof t[e.prop] == "string" || typeof t[e.prop] == "number") && (a.value = {
|
|
1748
1797
|
id: e.id,
|
|
1749
|
-
order:
|
|
1798
|
+
order: a.value?.order === "asc" ? "desc" : "asc"
|
|
1750
1799
|
});
|
|
1751
|
-
},
|
|
1752
|
-
if (!
|
|
1753
|
-
let e = n.columns.find((e) => e.id ===
|
|
1754
|
-
return n.rows.every((t) => typeof t[e] == "string" || typeof t[e] == "number") ? [...n.rows].sort((t, n) =>
|
|
1755
|
-
}),
|
|
1800
|
+
}, f = r(() => {
|
|
1801
|
+
if (!a.value) return n.rows;
|
|
1802
|
+
let e = n.columns.find((e) => e.id === a.value.id).prop;
|
|
1803
|
+
return n.rows.every((t) => typeof t[e] == "string" || typeof t[e] == "number") ? [...n.rows].sort((t, n) => a.value.order === "asc" ? t[e].localeCompare(n[e], void 0, { numeric: !0 }) : n[e].localeCompare(t[e], void 0, { numeric: !0 })) : n.rows;
|
|
1804
|
+
}), p = x(null), y = x(null);
|
|
1756
1805
|
g(() => {
|
|
1757
|
-
|
|
1806
|
+
p.value && (y.value = Pe(f, u, p.value));
|
|
1758
1807
|
}), _(() => {
|
|
1759
|
-
|
|
1808
|
+
y.value?.cleanup();
|
|
1760
1809
|
});
|
|
1761
|
-
let
|
|
1762
|
-
if (!
|
|
1763
|
-
let t =
|
|
1810
|
+
let b = (e) => {
|
|
1811
|
+
if (!y.value?.activeIndexes.has(e)) return "8px";
|
|
1812
|
+
let t = y.value.activeIndexes.has(e - 1), n = y.value.activeIndexes.has(e + 1);
|
|
1764
1813
|
return !t && !n ? "8px" : t && n ? "0" : !t && n ? "8px 8px 0 0" : "0 0 8px 8px";
|
|
1765
|
-
},
|
|
1814
|
+
}, w = x(null), E = x(null), O = x(null);
|
|
1766
1815
|
return g(() => {
|
|
1767
|
-
|
|
1816
|
+
w.value && (O.value = Q(w.value, E, "flex", "contextmenu"));
|
|
1768
1817
|
}), _(() => {
|
|
1769
|
-
|
|
1770
|
-
}), (t, r) => (v(),
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1818
|
+
O.value?.cleanup();
|
|
1819
|
+
}), (t, r) => (v(), i(G, { class: m(t.$style.Table) }, {
|
|
1820
|
+
default: j(() => [
|
|
1821
|
+
s("ul", {
|
|
1822
|
+
class: m(t.$style.header),
|
|
1823
|
+
ref_key: "headerRef",
|
|
1824
|
+
ref: w
|
|
1825
|
+
}, [(v(!0), o(e, null, S(n.columns, (e) => (v(), o("li", {
|
|
1826
|
+
class: m(t.$style.column),
|
|
1827
|
+
key: e.id,
|
|
1828
|
+
style: h({
|
|
1829
|
+
width: e.width ?? "200px",
|
|
1830
|
+
color: a.value?.id === e.id ? "#000" : "var(--lovelymai-color-gray-300)"
|
|
1831
|
+
}),
|
|
1832
|
+
onClick: P(() => d(e), ["stop"])
|
|
1833
|
+
}, [s("span", { class: m(t.$style.text) }, T(e.name), 3), M(s("span", {
|
|
1834
|
+
class: "lovelymai lovely-down-arrow",
|
|
1835
|
+
style: h({ transform: a.value?.order === "asc" ? "rotate(180deg)" : "rotate(0deg)" })
|
|
1836
|
+
}, null, 4), [[k, e.id === a.value?.id]])], 14, Fe))), 128)), l(Y, {
|
|
1837
|
+
ref: (e) => E.value = e?.root ?? null,
|
|
1838
|
+
visible: O.value?.visible ?? !1,
|
|
1839
|
+
position: O.value?.position ?? [0, 0],
|
|
1840
|
+
"z-index": n.zIndex,
|
|
1841
|
+
options: [{
|
|
1842
|
+
id: "1",
|
|
1843
|
+
name: "关闭排序"
|
|
1844
|
+
}],
|
|
1845
|
+
"on-option-click": () => {
|
|
1846
|
+
a.value = void 0, O.value?.close();
|
|
1847
|
+
}
|
|
1848
|
+
}, null, 8, [
|
|
1849
|
+
"visible",
|
|
1850
|
+
"position",
|
|
1851
|
+
"z-index",
|
|
1852
|
+
"on-option-click"
|
|
1853
|
+
])], 2),
|
|
1854
|
+
s("ul", {
|
|
1855
|
+
class: m(t.$style.list),
|
|
1856
|
+
ref_key: "ListRef",
|
|
1857
|
+
ref: p
|
|
1858
|
+
}, [(v(!0), o(e, null, S(f.value, (r, i) => (v(), o("li", {
|
|
1859
|
+
class: m(t.$style.row),
|
|
1860
|
+
key: r.id,
|
|
1861
|
+
style: h({
|
|
1862
|
+
backgroundColor: y.value?.activeIndexes.has(i) ? "var(--lovelymai-color-blue-450)" : "",
|
|
1863
|
+
borderRadius: b(i)
|
|
1864
|
+
})
|
|
1865
|
+
}, [(v(!0), o(e, null, S(n.columns, (e) => (v(), o("span", {
|
|
1866
|
+
class: m(t.$style.cell),
|
|
1867
|
+
key: e.id,
|
|
1868
|
+
style: h({
|
|
1869
|
+
width: e.width ?? "200px",
|
|
1870
|
+
color: y.value?.activeIndexes.has(i) ? a.value?.id === e.id ? "#fff" : "var(--lovelymai-color-blue-50)" : a.value?.id === e.id ? "#000" : "var(--lovelymai-color-gray-300)"
|
|
1871
|
+
})
|
|
1872
|
+
}, [C(t.$slots, "default", {
|
|
1873
|
+
row: r,
|
|
1874
|
+
column: e
|
|
1875
|
+
}, () => [c(T(r[e.prop]), 1)], !0)], 6))), 128))], 6))), 128))], 2),
|
|
1876
|
+
l(ae, {
|
|
1877
|
+
loading: n.loading,
|
|
1878
|
+
"z-index": 1
|
|
1879
|
+
}, null, 8, ["loading"])
|
|
1880
|
+
]),
|
|
1881
|
+
_: 3
|
|
1882
|
+
}, 8, ["class"]));
|
|
1824
1883
|
}
|
|
1825
1884
|
}), [["__cssModules", { $style: {
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1885
|
+
Table: "_Table_1lr91_2",
|
|
1886
|
+
header: "_header_1lr91_11",
|
|
1887
|
+
column: "_column_1lr91_21",
|
|
1888
|
+
text: "_text_1lr91_34",
|
|
1889
|
+
list: "_list_1lr91_43",
|
|
1890
|
+
row: "_row_1lr91_43",
|
|
1891
|
+
cell: "_cell_1lr91_53"
|
|
1892
|
+
} }], ["__scopeId", "data-v-4dc2c396"]]);
|
|
1832
1893
|
//#endregion
|
|
1833
|
-
export { V as Button, G as Card, ie as CheckBox,
|
|
1894
|
+
export { V as Button, G as Card, ie as CheckBox, ue as ContentBar, me as FoldList, Ee as Form, Te as Input, ae as Loading, Oe as MenuBar, ke as Modal, Ae as Select, Me as SideBar, Ne as TabBar, Ie as Table, ge as TextArea };
|