vue-amazing-ui 2.2.12 → 2.2.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/dist/index.iife.js +52 -41
- package/dist/index.js +4226 -4195
- package/dist/index.umd.cjs +51 -40
- package/dist/style.css +1 -1
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.d.ts +6 -0
- package/es/calendar/Calendar.vue.js +2 -2
- package/es/calendar/Calendar.vue2.js +130 -126
- package/es/calendar/index.d.ts +9 -0
- package/es/colorpicker/ColorPicker.css +1 -1
- package/es/colorpicker/ColorPicker.d.ts +4 -0
- package/es/colorpicker/ColorPicker.vue.js +2 -2
- package/es/colorpicker/ColorPicker.vue2.js +244 -234
- package/es/colorpicker/index.d.ts +6 -0
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.d.ts +1 -0
- package/es/pagination/Pagination.vue.js +2 -2
- package/es/pagination/Pagination.vue2.js +119 -102
- package/es/pagination/index.d.ts +1 -0
- package/es/select/Select.css +1 -1
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +84 -84
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.d.ts +6 -0
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +5 -1
- package/lib/calendar/index.d.ts +9 -0
- package/lib/colorpicker/ColorPicker.css +1 -1
- package/lib/colorpicker/ColorPicker.d.ts +4 -0
- package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.vue2.cjs +10 -3
- package/lib/colorpicker/index.d.ts +6 -0
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.d.ts +1 -0
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/pagination/index.d.ts +1 -0
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +4 -4
- package/package.json +2 -2
package/es/calendar/Calendar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-calendar[data-v-e106726d]{color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;background:#fff;border-radius:4px}.m-calendar .calendar-header-wrap[data-v-e106726d]{padding:12px 0}.m-calendar .calendar-header-wrap .calendar-header-content[data-v-e106726d]{margin-bottom:10px}.m-calendar .calendar-header-wrap .calendar-header-content[data-v-e106726d] svg{fill:currentColor}.m-calendar .calendar-header-wrap .calendar-header-actions[data-v-e106726d]{display:flex;justify-content:flex-end}.m-calendar .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-e106726d],.m-calendar .calendar-header-wrap .calendar-header-actions .calendar-mode-radio[data-v-e106726d]{margin-left:8px}.m-calendar .calendar-display-wrap[data-v-e106726d]{background:#fff;outline:none}.m-calendar .calendar-display-wrap .calendar-date-panel[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel[data-v-e106726d]{display:flex;flex-direction:column;width:auto}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body[data-v-e106726d]{padding:8px 0}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table[data-v-e106726d]{display:table;margin:0;width:100%;table-layout:fixed;border-collapse:collapse}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table tr[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table tr[data-v-e106726d]{border:none;background-color:transparent}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table td[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table td[data-v-e106726d]{position:relative;min-width:24px;font-size:inherit;font-weight:400;padding:0;border:none}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-e106726d]{text-align:inherit;height:auto;line-height:18px;width:36px;color:#000000e0;vertical-align:middle;background:transparent}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d]{color:#00000040;cursor:pointer}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d]{position:relative;z-index:2;min-width:24px;line-height:24px}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-e106726d]{background:#0000000a}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-e106726d],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-e106726d]{color:#00000040;pointer-events:none}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-in-view[data-v-e106726d]:not(.date-cell-disabled):not(.date-cell-selected),.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-in-view[data-v-e106726d]:not(.date-cell-disabled):not(.date-cell-selected){color:#000000e0}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-e106726d]{min-width:90px}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-e106726d]{min-width:72px}.calendar-panel .calendar-display-wrap[data-v-e106726d]{width:100%;text-align:end}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-e106726d]{padding-right:12px;padding-bottom:4px}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d]{display:block;width:auto;height:auto;margin:0 4px;padding:4px 8px 0;border:0;border-top:2px solid rgba(5,5,5,.06);border-radius:0;transition:background .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-e106726d]{line-height:24px;transition:color .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-e106726d]{position:static;width:auto;height:86px;overflow-y:auto;color:#000000e0;line-height:1.57142857;text-align:start}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-e106726d]{border-color:#1677ff}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-e106726d]{color:#000000e0}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-e106726d],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-e106726d]{color:#1677ff;background:#e6f4ff}.calendar-card[data-v-e106726d]{width:300px;border:1px solid #d9d9d9;border-radius:4px}.calendar-card .calendar-header-wrap[data-v-e106726d]{padding-left:8px;padding-right:8px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-e106726d]{min-width:86px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-e106726d]{min-width:70px}.calendar-card .calendar-display-wrap[data-v-e106726d]{display:inline-flex;flex-direction:column;text-align:center;border-top:1px solid rgba(5,5,5,.06);border-radius:0 0 8px 8px}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d]{padding:4px 0}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d]:before{position:absolute;top:50%;left:0;right:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:"";pointer-events:none}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d]{display:inline-block;height:24px;border-radius:4px;transition:background .2s,color .2s}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-e106726d]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-e106726d]:before{background:#0000000a}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-e106726d]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-e106726d]:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #1677ff;border-radius:4px;content:""}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-e106726d]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-e106726d]:before{border-color:#00000040}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-e106726d],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-e106726d]{color:#fff;background:#1677ff}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d]{height:40px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-e106726d]{height:64px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-e106726d]{width:60px;padding:0 8px}
|
|
1
|
+
.m-calendar[data-v-6dc6f9bc]{color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;background:#fff;border-radius:4px}.m-calendar .calendar-header-wrap[data-v-6dc6f9bc]{padding:12px 0}.m-calendar .calendar-header-wrap .calendar-header-content[data-v-6dc6f9bc]{margin-bottom:10px}.m-calendar .calendar-header-wrap .calendar-header-content[data-v-6dc6f9bc] svg{fill:currentColor}.m-calendar .calendar-header-wrap .calendar-header-actions[data-v-6dc6f9bc]{display:flex;justify-content:flex-end}.m-calendar .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-6dc6f9bc],.m-calendar .calendar-header-wrap .calendar-header-actions .calendar-mode-radio[data-v-6dc6f9bc]{margin-left:8px}.m-calendar .calendar-display-wrap[data-v-6dc6f9bc]{background:#fff;outline:none}.m-calendar .calendar-display-wrap .calendar-date-panel[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel[data-v-6dc6f9bc]{display:flex;flex-direction:column;width:auto}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body[data-v-6dc6f9bc]{padding:8px 0}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table[data-v-6dc6f9bc]{display:table;margin:0;width:100%;table-layout:fixed;border-collapse:collapse}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table tr[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table tr[data-v-6dc6f9bc]{border:none;background-color:transparent}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table td[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table td[data-v-6dc6f9bc]{position:relative;min-width:24px;font-size:inherit;font-weight:400;padding:0;border:none}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-6dc6f9bc]{text-align:inherit;height:auto;line-height:18px;width:36px;color:#000000e0;vertical-align:middle;background:transparent}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc]{color:#00000040;cursor:pointer}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc]{position:relative;z-index:2;min-width:24px;line-height:24px}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-6dc6f9bc]{background:#0000000a}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-6dc6f9bc],.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-6dc6f9bc]{color:#00000040;pointer-events:none}.m-calendar .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-in-view[data-v-6dc6f9bc]:not(.date-cell-disabled):not(.date-cell-selected),.m-calendar .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-in-view[data-v-6dc6f9bc]:not(.date-cell-disabled):not(.date-cell-selected){color:#000000e0}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-6dc6f9bc]{min-width:90px}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-6dc6f9bc]{min-width:72px}.calendar-panel .calendar-display-wrap[data-v-6dc6f9bc]{width:100%;text-align:end}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-6dc6f9bc]{padding-right:12px;padding-bottom:4px}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc]{display:block;width:auto;height:auto;margin:0 4px;padding:4px 8px 0;border:0;border-top:2px solid rgba(5,5,5,.06);border-radius:0;transition:background .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-6dc6f9bc]{line-height:24px;transition:color .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-6dc6f9bc]{position:static;width:auto;height:86px;overflow-y:auto;color:#000000e0;line-height:1.57142857;text-align:start}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-6dc6f9bc]{border-color:var(--calendar-primary-color)}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-6dc6f9bc]{color:#000000e0}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-6dc6f9bc],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-6dc6f9bc]{color:var(--calendar-primary-color);background:var(--calendar-panel-primary-bg-color)}.calendar-card[data-v-6dc6f9bc]{width:300px;border:1px solid #d9d9d9;border-radius:4px}.calendar-card .calendar-header-wrap[data-v-6dc6f9bc]{padding-left:8px;padding-right:8px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-6dc6f9bc]{min-width:86px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-6dc6f9bc]{min-width:70px}.calendar-card .calendar-display-wrap[data-v-6dc6f9bc]{display:inline-flex;flex-direction:column;text-align:center;border-top:1px solid rgba(5,5,5,.06);border-radius:0 0 8px 8px}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc]{padding:4px 0}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc]:before{position:absolute;top:50%;left:0;right:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:"";pointer-events:none}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc]{display:inline-block;height:24px;border-radius:4px;transition:background .2s,color .2s}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-6dc6f9bc]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-6dc6f9bc]:before{background:#0000000a}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-6dc6f9bc]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-6dc6f9bc]:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid var(--calendar-primary-color);border-radius:4px;content:""}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-6dc6f9bc]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-6dc6f9bc]:before{border-color:#00000040}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-6dc6f9bc],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-6dc6f9bc]{color:#fff;background:var(--calendar-card-primary-bg-color)}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc]{height:40px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-6dc6f9bc]{height:64px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-6dc6f9bc]{width:60px;padding:0 8px}
|
|
@@ -4,6 +4,9 @@ export interface Props {
|
|
|
4
4
|
display?: 'panel' | 'card';
|
|
5
5
|
mode?: 'month' | 'year';
|
|
6
6
|
header?: string;
|
|
7
|
+
yearSelectProps?: object;
|
|
8
|
+
monthSelectProps?: object;
|
|
9
|
+
modeRadioProps?: object;
|
|
7
10
|
startDayOfWeek?: DayOfWeek;
|
|
8
11
|
dateStrip?: boolean;
|
|
9
12
|
dateFormat?: (date: number, timestamp: number) => string;
|
|
@@ -102,6 +105,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
102
105
|
mode: "month" | "year";
|
|
103
106
|
value: string | number;
|
|
104
107
|
display: "panel" | "card";
|
|
108
|
+
yearSelectProps: object;
|
|
109
|
+
monthSelectProps: object;
|
|
110
|
+
modeRadioProps: object;
|
|
105
111
|
startDayOfWeek: DayOfWeek;
|
|
106
112
|
dateStrip: boolean;
|
|
107
113
|
dateFormat: (date: number, timestamp: number) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Calendar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6dc6f9bc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as De, ref as v, computed as
|
|
2
|
-
import { getYear as
|
|
1
|
+
import { defineComponent as De, ref as v, computed as V, watch as O, createElementBlock as i, openBlock as u, normalizeClass as B, createElementVNode as s, createCommentVNode as $, renderSlot as M, createTextVNode as j, toDisplayString as T, createVNode as q, createBlock as be, unref as z, mergeProps as D, Fragment as C, renderList as w } from "vue";
|
|
2
|
+
import { getYear as S, getMonth as b, parse as A, format as F, startOfDay as G, startOfMonth as P, getTime as y, addDays as Y, getDay as Fe, startOfYear as ke, addMonths as J, addYears as Me, isSameDay as Oe, isSameMonth as K, getDate as Ce } from "date-fns";
|
|
3
3
|
import Q from "../select/index.js";
|
|
4
|
-
import
|
|
5
|
-
import { useSlotsExist as
|
|
6
|
-
const
|
|
4
|
+
import we from "../radio/index.js";
|
|
5
|
+
import { useSlotsExist as Se } from "../utils/index.js";
|
|
6
|
+
const _e = { class: "calendar-header-wrap" }, Ve = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "calendar-header-content"
|
|
9
9
|
}, $e = { class: "calendar-header-actions" }, je = {
|
|
@@ -12,15 +12,18 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
12
12
|
}, Te = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "calendar-date-panel"
|
|
15
|
-
}, ze = { class: "calendar-body" },
|
|
15
|
+
}, ze = { class: "calendar-body" }, Pe = { class: "calendar-table" }, Ye = ["title", "onClick"], Ne = { class: "date-cell-inner" }, We = { class: "date-value" }, Be = { class: "date-content" }, Ee = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "calendar-month-panel"
|
|
18
|
-
},
|
|
18
|
+
}, Re = { class: "calendar-body" }, Ue = { class: "calendar-table" }, Le = ["title", "onClick"], He = { class: "date-cell-inner" }, qe = { class: "date-value" }, Ae = { class: "date-content" }, Ze = /* @__PURE__ */ De({
|
|
19
19
|
__name: "Calendar",
|
|
20
20
|
props: {
|
|
21
21
|
display: { default: "panel" },
|
|
22
22
|
mode: { default: "month" },
|
|
23
23
|
header: { default: void 0 },
|
|
24
|
+
yearSelectProps: { default: () => ({}) },
|
|
25
|
+
monthSelectProps: { default: () => ({}) },
|
|
26
|
+
modeRadioProps: { default: () => ({}) },
|
|
24
27
|
startDayOfWeek: { default: 0 },
|
|
25
28
|
dateStrip: { type: Boolean, default: !0 },
|
|
26
29
|
dateFormat: { type: Function, default: void 0 },
|
|
@@ -32,7 +35,7 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
32
35
|
},
|
|
33
36
|
emits: ["update:value", "change", "panelChange", "select"],
|
|
34
37
|
setup(X, { emit: Z }) {
|
|
35
|
-
const l = X,
|
|
38
|
+
const l = X, E = v(Date.now()), R = v([]), I = v(ne()), x = v([
|
|
36
39
|
{
|
|
37
40
|
label: "月",
|
|
38
41
|
value: "month"
|
|
@@ -41,51 +44,51 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
41
44
|
label: "年",
|
|
42
45
|
value: "year"
|
|
43
46
|
}
|
|
44
|
-
]), c = v(
|
|
47
|
+
]), c = v(S(E.value)), m = v(b(E.value) + 1), p = v(l.mode), _ = v([]), r = v(), U = v([]), ee = Se(["header"]), h = Z, te = V(() => {
|
|
45
48
|
const e = ["一", "二", "三", "四", "五", "六", "日"], t = [];
|
|
46
49
|
t.push(e[l.startDayOfWeek]);
|
|
47
50
|
let n = (l.startDayOfWeek + 1) % 7;
|
|
48
51
|
for (; n !== l.startDayOfWeek; )
|
|
49
52
|
t.push(e[n]), n = (n + 1) % 7;
|
|
50
53
|
return t;
|
|
51
|
-
}),
|
|
52
|
-
if (
|
|
53
|
-
return typeof
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
}), f = V(() => {
|
|
55
|
+
if (r.value)
|
|
56
|
+
return typeof r.value == "string" ? A(r.value, l.valueFormat, /* @__PURE__ */ new Date()).getTime() : r.value;
|
|
57
|
+
}), L = V(() => new Date(c.value, m.value - 1, 1).getTime()), ae = V(() => ee.header || l.header);
|
|
58
|
+
O(
|
|
59
|
+
f,
|
|
57
60
|
(e) => {
|
|
58
|
-
e && (c.value =
|
|
61
|
+
e && (c.value = S(e), m.value = b(e) + 1);
|
|
59
62
|
},
|
|
60
63
|
{
|
|
61
64
|
immediate: !0
|
|
62
65
|
}
|
|
63
|
-
),
|
|
66
|
+
), O(
|
|
64
67
|
() => l.mode,
|
|
65
68
|
(e) => {
|
|
66
69
|
p.value = e;
|
|
67
70
|
}
|
|
68
|
-
),
|
|
71
|
+
), O(
|
|
69
72
|
() => [l.startDayOfWeek, l.dateStrip, m.value, c.value],
|
|
70
73
|
() => {
|
|
71
|
-
|
|
74
|
+
_.value = re();
|
|
72
75
|
},
|
|
73
76
|
{
|
|
74
77
|
immediate: !0,
|
|
75
78
|
deep: !0
|
|
76
79
|
}
|
|
77
|
-
),
|
|
80
|
+
), O(
|
|
78
81
|
c,
|
|
79
82
|
() => {
|
|
80
|
-
|
|
83
|
+
R.value = le(), U.value = ie();
|
|
81
84
|
},
|
|
82
85
|
{
|
|
83
86
|
immediate: !0
|
|
84
87
|
}
|
|
85
|
-
),
|
|
88
|
+
), O(
|
|
86
89
|
() => [l.valueFormat, l.value],
|
|
87
90
|
() => {
|
|
88
|
-
l.value && (l.valueFormat === void 0 || l.valueFormat === "T" ?
|
|
91
|
+
l.value && (l.valueFormat === void 0 || l.valueFormat === "T" ? r.value = Number(F(G(l.value).getTime(), l.valueFormat || "T")) : r.value = F(G(l.value).getTime(), l.valueFormat));
|
|
89
92
|
},
|
|
90
93
|
{
|
|
91
94
|
deep: !0,
|
|
@@ -110,13 +113,13 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
110
113
|
});
|
|
111
114
|
return e;
|
|
112
115
|
}
|
|
113
|
-
function
|
|
116
|
+
function N(e, t, n) {
|
|
114
117
|
return {
|
|
115
118
|
type: "date",
|
|
116
119
|
dateObject: {
|
|
117
120
|
date: Ce(e),
|
|
118
|
-
month:
|
|
119
|
-
year:
|
|
121
|
+
month: b(e),
|
|
122
|
+
year: S(e)
|
|
120
123
|
},
|
|
121
124
|
timestamp: y(e),
|
|
122
125
|
inCurrentMonth: K(e, t),
|
|
@@ -124,31 +127,31 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
function oe(e, t, n, o = !1) {
|
|
127
|
-
const a =
|
|
128
|
-
let d = y(
|
|
130
|
+
const a = b(e);
|
|
131
|
+
let d = y(P(e)), k = y(Y(d, -1));
|
|
129
132
|
const g = [];
|
|
130
|
-
let
|
|
131
|
-
for (; Fe(
|
|
132
|
-
g.unshift(
|
|
133
|
-
for (;
|
|
134
|
-
g.push(
|
|
133
|
+
let H = !o;
|
|
134
|
+
for (; Fe(k) !== n || H; )
|
|
135
|
+
g.unshift(N(k, e, t)), k = y(Y(k, -1)), H = !1;
|
|
136
|
+
for (; b(d) === a; )
|
|
137
|
+
g.push(N(d, e, t)), d = y(Y(d, 1));
|
|
135
138
|
const ge = o ? g.length <= 28 ? 28 : g.length <= 35 ? 35 : 42 : 42;
|
|
136
139
|
for (; g.length < ge; )
|
|
137
|
-
g.push(
|
|
140
|
+
g.push(N(d, e, t)), d = y(Y(d, 1));
|
|
138
141
|
return g;
|
|
139
142
|
}
|
|
140
|
-
function
|
|
141
|
-
const e = oe(
|
|
143
|
+
function re() {
|
|
144
|
+
const e = oe(L.value, Date.now(), l.startDayOfWeek, l.dateStrip), t = 7, n = e.length / t, o = [];
|
|
142
145
|
for (let a = 0; a < n; a++)
|
|
143
146
|
o.push(e.slice(a * t, (a + 1) * t));
|
|
144
147
|
return o;
|
|
145
148
|
}
|
|
146
|
-
function
|
|
149
|
+
function se(e, t) {
|
|
147
150
|
return {
|
|
148
151
|
type: "month",
|
|
149
152
|
monthObject: {
|
|
150
|
-
month:
|
|
151
|
-
year:
|
|
153
|
+
month: b(e),
|
|
154
|
+
year: S(e)
|
|
152
155
|
},
|
|
153
156
|
timestamp: y(e),
|
|
154
157
|
isCurrent: K(t, e)
|
|
@@ -157,20 +160,20 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
157
160
|
function ue(e, t) {
|
|
158
161
|
const n = [], o = ke(e);
|
|
159
162
|
for (let a = 0; a < 12; a++)
|
|
160
|
-
n.push(
|
|
163
|
+
n.push(se(y(J(o, a)), t));
|
|
161
164
|
return n;
|
|
162
165
|
}
|
|
163
166
|
function ie() {
|
|
164
|
-
const e = ue(
|
|
167
|
+
const e = ue(L.value, Date.now()), t = 3, n = e.length / t, o = [];
|
|
165
168
|
for (let a = 0; a < n; a++)
|
|
166
169
|
o.push(e.slice(a * t, (a + 1) * t));
|
|
167
170
|
return o;
|
|
168
171
|
}
|
|
169
172
|
function de(e) {
|
|
170
|
-
return
|
|
173
|
+
return F(e.timestamp, "yyyy-MM-dd");
|
|
171
174
|
}
|
|
172
175
|
function ce(e) {
|
|
173
|
-
return
|
|
176
|
+
return F(e.timestamp, "yyyy-MM");
|
|
174
177
|
}
|
|
175
178
|
function ve(e, t) {
|
|
176
179
|
return l.dateFormat === void 0 ? `${e}` : l.dateFormat(e, t);
|
|
@@ -181,155 +184,156 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
|
|
|
181
184
|
function pe(e, t) {
|
|
182
185
|
return l.monthFormat === void 0 ? `${e}月` : l.monthFormat(e, t);
|
|
183
186
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
187
|
+
function fe(e) {
|
|
188
|
+
f.value !== e.timestamp && (e.dateObject.month + 1 !== m.value && (m.value = e.dateObject.month + 1), l.valueFormat === void 0 || l.valueFormat === "T" ? r.value = e.timestamp : r.value = F(e.timestamp, l.valueFormat), h("update:value", r.value), h("select", r.value, "date"), h("change", r.value, e.dateObject));
|
|
186
189
|
}
|
|
187
|
-
function
|
|
188
|
-
if (
|
|
189
|
-
if (typeof
|
|
190
|
-
const e = A(
|
|
191
|
-
return
|
|
190
|
+
function he() {
|
|
191
|
+
if (r.value) {
|
|
192
|
+
if (typeof r.value == "string") {
|
|
193
|
+
const e = A(r.value, l.valueFormat, /* @__PURE__ */ new Date()).getTime();
|
|
194
|
+
return P(e).getTime();
|
|
192
195
|
}
|
|
193
|
-
return
|
|
196
|
+
return P(r.value).getTime();
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
function ye(e) {
|
|
197
|
-
if (
|
|
198
|
-
if (m.value = e.monthObject.month + 1,
|
|
199
|
-
const t = e.monthObject.year -
|
|
200
|
-
l.valueFormat === void 0 || l.valueFormat === "T" ?
|
|
200
|
+
if (he() !== e.timestamp) {
|
|
201
|
+
if (m.value = e.monthObject.month + 1, r.value) {
|
|
202
|
+
const t = e.monthObject.year - S(f.value), n = e.monthObject.month - b(f.value), o = J(Me(f.value, t), n);
|
|
203
|
+
l.valueFormat === void 0 || l.valueFormat === "T" ? r.value = Number(F(o, l.valueFormat || "T")) : r.value = F(o, l.valueFormat);
|
|
201
204
|
}
|
|
202
|
-
|
|
205
|
+
h("update:value", r.value), h("select", r.value, "month"), h("change", r.value, e.monthObject);
|
|
203
206
|
}
|
|
204
207
|
}
|
|
205
|
-
function
|
|
206
|
-
p.value === "month" ?
|
|
208
|
+
function W() {
|
|
209
|
+
p.value === "month" ? h(
|
|
207
210
|
"panelChange",
|
|
208
|
-
|
|
211
|
+
r.value,
|
|
209
212
|
{ year: c.value, month: m.value },
|
|
210
213
|
p.value
|
|
211
|
-
) :
|
|
214
|
+
) : h("panelChange", r.value, { year: c.value }, p.value);
|
|
212
215
|
}
|
|
213
216
|
return (e, t) => (u(), i("div", {
|
|
214
|
-
class:
|
|
217
|
+
class: B(["m-calendar", `calendar-${e.display}`]),
|
|
218
|
+
style: `
|
|
219
|
+
--calendar-primary-color: #1677ff;
|
|
220
|
+
--calendar-panel-primary-bg-color: #e6f4ff;
|
|
221
|
+
--calendar-card-primary-bg-color: #1677ff;
|
|
222
|
+
`
|
|
215
223
|
}, [
|
|
216
|
-
|
|
224
|
+
s("div", _e, [
|
|
217
225
|
ae.value ? (u(), i("div", Ve, [
|
|
218
|
-
|
|
219
|
-
|
|
226
|
+
M(e.$slots, "header", {}, () => [
|
|
227
|
+
j(T(e.header), 1)
|
|
220
228
|
], !0)
|
|
221
|
-
])) :
|
|
222
|
-
|
|
223
|
-
q(
|
|
229
|
+
])) : $("", !0),
|
|
230
|
+
s("div", $e, [
|
|
231
|
+
q(z(Q), D({
|
|
224
232
|
class: "calendar-year-select",
|
|
225
233
|
size: e.display === "card" ? "small" : "middle",
|
|
226
|
-
options:
|
|
234
|
+
options: R.value,
|
|
227
235
|
"max-display": 8,
|
|
228
236
|
modelValue: c.value,
|
|
229
237
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => c.value = n),
|
|
230
|
-
onChange:
|
|
231
|
-
}, null,
|
|
232
|
-
p.value === "month" ? (u(), be(
|
|
238
|
+
onChange: W
|
|
239
|
+
}, e.yearSelectProps), null, 16, ["size", "options", "modelValue"]),
|
|
240
|
+
p.value === "month" ? (u(), be(z(Q), D({
|
|
233
241
|
key: 0,
|
|
234
242
|
class: "calendar-month-select",
|
|
235
243
|
size: e.display === "card" ? "small" : "middle",
|
|
236
|
-
options:
|
|
244
|
+
options: I.value,
|
|
237
245
|
"max-display": 8,
|
|
238
246
|
modelValue: m.value,
|
|
239
247
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => m.value = n),
|
|
240
|
-
onChange:
|
|
241
|
-
}, null,
|
|
242
|
-
q(
|
|
248
|
+
onChange: W
|
|
249
|
+
}, e.monthSelectProps), null, 16, ["size", "options", "modelValue"])) : $("", !0),
|
|
250
|
+
q(z(we), D({
|
|
243
251
|
class: "calendar-mode-radio",
|
|
244
252
|
"button-size": e.display === "card" ? "small" : "middle",
|
|
245
|
-
options:
|
|
253
|
+
options: x.value,
|
|
246
254
|
value: p.value,
|
|
247
255
|
"onUpdate:value": t[2] || (t[2] = (n) => p.value = n),
|
|
248
256
|
button: "",
|
|
249
|
-
onChange:
|
|
250
|
-
}, null,
|
|
257
|
+
onChange: W
|
|
258
|
+
}, e.modeRadioProps), null, 16, ["button-size", "options", "value"])
|
|
251
259
|
])
|
|
252
260
|
]),
|
|
253
|
-
|
|
261
|
+
s("div", je, [
|
|
254
262
|
p.value === "month" ? (u(), i("div", Te, [
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
(u(!0), i(
|
|
260
|
-
|
|
263
|
+
s("div", ze, [
|
|
264
|
+
s("table", Pe, [
|
|
265
|
+
s("thead", null, [
|
|
266
|
+
s("tr", null, [
|
|
267
|
+
(u(!0), i(C, null, w(te.value, (n, o) => (u(), i("th", { key: o }, [
|
|
268
|
+
M(e.$slots, "week", {
|
|
261
269
|
defaultWeek: n,
|
|
262
270
|
week: o,
|
|
263
|
-
timestamp:
|
|
271
|
+
timestamp: _.value[0][o].timestamp
|
|
264
272
|
}, () => [
|
|
265
|
-
|
|
273
|
+
j(T(me(n, o, _.value[0][o].timestamp)), 1)
|
|
266
274
|
], !0)
|
|
267
275
|
]))), 128))
|
|
268
276
|
])
|
|
269
277
|
]),
|
|
270
|
-
|
|
271
|
-
(u(!0), i(
|
|
272
|
-
(u(!0), i(
|
|
273
|
-
class:
|
|
278
|
+
s("tbody", null, [
|
|
279
|
+
(u(!0), i(C, null, w(_.value, (n, o) => (u(), i("tr", { key: o }, [
|
|
280
|
+
(u(!0), i(C, null, w(n, (a, d) => (u(), i("td", {
|
|
281
|
+
class: B(["calendar-date-cell", {
|
|
274
282
|
"date-cell-disabled": e.disabledDate && e.disabledDate(a.timestamp),
|
|
275
283
|
"date-cell-in-view": a.inCurrentMonth,
|
|
276
284
|
"date-cell-today": a.isCurrentDate,
|
|
277
|
-
"date-cell-selected":
|
|
285
|
+
"date-cell-selected": f.value && f.value === a.timestamp
|
|
278
286
|
}]),
|
|
279
287
|
key: d,
|
|
280
|
-
title: de(a)
|
|
288
|
+
title: de(a),
|
|
289
|
+
onClick: (k) => fe(a)
|
|
281
290
|
}, [
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
r("div", Be, [
|
|
287
|
-
k(e.$slots, "dateValue", z({ ref_for: !0 }, a), () => [
|
|
288
|
-
$(j(ve(a.dateObject.date, a.timestamp)), 1)
|
|
291
|
+
s("div", Ne, [
|
|
292
|
+
s("div", We, [
|
|
293
|
+
M(e.$slots, "dateValue", D({ ref_for: !0 }, a), () => [
|
|
294
|
+
j(T(ve(a.dateObject.date, a.timestamp)), 1)
|
|
289
295
|
], !0)
|
|
290
296
|
]),
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
s("div", Be, [
|
|
298
|
+
M(e.$slots, "dateContent", D({ ref_for: !0 }, a), void 0, !0)
|
|
293
299
|
])
|
|
294
|
-
]
|
|
295
|
-
], 10,
|
|
300
|
+
])
|
|
301
|
+
], 10, Ye))), 128))
|
|
296
302
|
]))), 128))
|
|
297
303
|
])
|
|
298
304
|
])
|
|
299
305
|
])
|
|
300
|
-
])) :
|
|
301
|
-
p.value === "year" ? (u(), i("div",
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
(u(!0), i(
|
|
306
|
-
(u(!0), i(
|
|
307
|
-
class:
|
|
306
|
+
])) : $("", !0),
|
|
307
|
+
p.value === "year" ? (u(), i("div", Ee, [
|
|
308
|
+
s("div", Re, [
|
|
309
|
+
s("table", Ue, [
|
|
310
|
+
s("tbody", null, [
|
|
311
|
+
(u(!0), i(C, null, w(U.value, (n, o) => (u(), i("tr", { key: o }, [
|
|
312
|
+
(u(!0), i(C, null, w(n, (a, d) => (u(), i("td", {
|
|
313
|
+
class: B(["calendar-date-cell date-cell-in-view", {
|
|
308
314
|
"date-cell-today": a.isCurrent,
|
|
309
|
-
"date-cell-selected":
|
|
315
|
+
"date-cell-selected": f.value && z(P)(f.value).getTime() === a.timestamp
|
|
310
316
|
}]),
|
|
311
317
|
key: d,
|
|
312
|
-
title: ce(a)
|
|
318
|
+
title: ce(a),
|
|
319
|
+
onClick: (k) => ye(a)
|
|
313
320
|
}, [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
r("div", qe, [
|
|
319
|
-
k(e.$slots, "monthValue", z({ ref_for: !0 }, a), () => [
|
|
320
|
-
$(j(pe(a.monthObject.month + 1, a.timestamp)), 1)
|
|
321
|
+
s("div", He, [
|
|
322
|
+
s("div", qe, [
|
|
323
|
+
M(e.$slots, "monthValue", D({ ref_for: !0 }, a), () => [
|
|
324
|
+
j(T(pe(a.monthObject.month + 1, a.timestamp)), 1)
|
|
321
325
|
], !0)
|
|
322
326
|
]),
|
|
323
|
-
|
|
324
|
-
|
|
327
|
+
s("div", Ae, [
|
|
328
|
+
M(e.$slots, "monthContent", D({ ref_for: !0 }, a), void 0, !0)
|
|
325
329
|
])
|
|
326
|
-
]
|
|
327
|
-
], 10,
|
|
330
|
+
])
|
|
331
|
+
], 10, Le))), 128))
|
|
328
332
|
]))), 128))
|
|
329
333
|
])
|
|
330
334
|
])
|
|
331
335
|
])
|
|
332
|
-
])) :
|
|
336
|
+
])) : $("", !0)
|
|
333
337
|
])
|
|
334
338
|
], 2));
|
|
335
339
|
}
|
package/es/calendar/index.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ declare const _default: {
|
|
|
15
15
|
mode: "month" | "year";
|
|
16
16
|
value: string | number;
|
|
17
17
|
display: "panel" | "card";
|
|
18
|
+
yearSelectProps: object;
|
|
19
|
+
monthSelectProps: object;
|
|
20
|
+
modeRadioProps: object;
|
|
18
21
|
startDayOfWeek: import('./Calendar').DayOfWeek;
|
|
19
22
|
dateStrip: boolean;
|
|
20
23
|
dateFormat: (date: number, timestamp: number) => string;
|
|
@@ -39,6 +42,9 @@ declare const _default: {
|
|
|
39
42
|
mode: "month" | "year";
|
|
40
43
|
value: string | number;
|
|
41
44
|
display: "panel" | "card";
|
|
45
|
+
yearSelectProps: object;
|
|
46
|
+
monthSelectProps: object;
|
|
47
|
+
modeRadioProps: object;
|
|
42
48
|
startDayOfWeek: import('./Calendar').DayOfWeek;
|
|
43
49
|
dateStrip: boolean;
|
|
44
50
|
dateFormat: (date: number, timestamp: number) => string;
|
|
@@ -65,6 +71,9 @@ declare const _default: {
|
|
|
65
71
|
mode: "month" | "year";
|
|
66
72
|
value: string | number;
|
|
67
73
|
display: "panel" | "card";
|
|
74
|
+
yearSelectProps: object;
|
|
75
|
+
monthSelectProps: object;
|
|
76
|
+
modeRadioProps: object;
|
|
68
77
|
startDayOfWeek: import('./Calendar').DayOfWeek;
|
|
69
78
|
dateStrip: boolean;
|
|
70
79
|
dateFormat: (date: number, timestamp: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.color-picker-panel[data-v-
|
|
1
|
+
.color-picker-panel[data-v-b199915c]{padding:12px}.color-picker-panel .color-picker-pallete[data-v-b199915c]{height:180px;position:relative;margin-bottom:8px;cursor:crosshair}.color-picker-panel .color-picker-pallete .color-picker-pallete-layer[data-v-b199915c]{position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-pallete .pallete-layer-shadowed[data-v-b199915c]{box-shadow:inset 0 0 2px #0000003d}.color-picker-panel .color-picker-preview[data-v-b199915c]{display:flex}.color-picker-panel .color-picker-preview .color-picker-preview-sliders[data-v-b199915c]{flex:1 0 auto}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider[data-v-b199915c]{margin-bottom:8px;position:relative}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider[data-v-b199915c]:after{content:"";position:absolute;border-radius:inherit;left:0;right:0;top:0;bottom:0;box-shadow:inset 0 0 2px #0000003d;pointer-events:none}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-checkboard[data-v-b199915c]{background:#fff;position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-checkboard[data-v-b199915c]:after{background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0px;background-repeat:repeat;content:"";position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-slider-image[data-v-b199915c]{position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-circle[data-v-b199915c]{position:relative;height:30px;width:30px;margin:0 0 8px 6px;border-radius:50%;box-shadow:#00000026 0 0 0 1px inset;overflow:hidden}.color-picker-panel .color-picker-preview .color-picker-preview-circle .color-picker-circle-fill[data-v-b199915c]{display:block;width:30px;height:30px}.color-picker-panel .color-picker-preview .color-picker-preview-circle .color-picker-circle-input[data-v-b199915c]{position:absolute;top:0;left:0;width:30px;height:30px;opacity:0;z-index:1}.color-picker-panel .color-picker-handle[data-v-b199915c]{z-index:1;box-shadow:0 0 2px #00000073;position:absolute;background-color:#fff;overflow:hidden}.color-picker-panel .color-picker-handle .color-picker-handle-fill[data-v-b199915c]{border:2px solid white}.color-picker-panel .color-picker-input[data-v-b199915c]{display:flex;align-items:center}.color-picker-panel .color-picker-input .color-picker-input-mode[data-v-b199915c]{width:72px;text-align:center}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c]{display:inline-flex;width:100%;flex-wrap:nowrap;vertical-align:bottom}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input{flex-grow:1;flex-basis:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input:not(:first-child){margin-left:-1px}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input:not(:first-child) .input-wrap{border-top-left-radius:0;border-bottom-left-radius:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input:not(:last-child) .input-wrap{border-top-right-radius:0;border-bottom-right-radius:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input .input-wrap{padding:1px 4px}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input .input-item{text-align:center}.color-picker-panel .color-picker-swatches[data-v-b199915c]{display:flex;gap:8px;flex-wrap:wrap;position:relative;margin-top:10px}.color-picker-panel .color-picker-swatches .color-picker-swatch[data-v-b199915c]{width:18px;height:18px;background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:8px 8px;background-position:0px 0,0px 4px,4px -4px,-4px 0px;background-repeat:repeat}.color-picker-panel .color-picker-swatches .color-picker-swatch .color-picker-swatch-fill[data-v-b199915c]{position:relative;width:100%;height:100%;border-radius:3px;box-shadow:#00000026 0 0 0 1px inset;cursor:pointer}.panel-with-actions[data-v-b199915c]{padding-bottom:8px}.color-picker-actions[data-v-b199915c]{display:flex;gap:8px;border-top:1px solid rgba(5,5,5,.06);padding:8px 12px;justify-content:flex-end}.color-picker-footer[data-v-b199915c]{border-top:1px solid rgba(5,5,5,.06);padding:8px 12px}.color-picker-display[data-v-b199915c]{display:inline-block;width:var(--color-picker-width);height:var(--color-picker-height);border-radius:4px;position:relative;outline:none}.color-picker-display:not(.color-picker-disabled):hover .color-picker-wrap[data-v-b199915c]{border-color:var(--color-picker-primary-color-hover)}.color-picker-display:not(.color-picker-disabled):focus .color-picker-wrap[data-v-b199915c]{border-color:var(--color-picker-primary-color-focus);box-shadow:0 0 0 2px var(--color-picker-primary-shadow-color)}.color-picker-display .color-picker-wrap[data-v-b199915c]{height:100%;cursor:pointer;border:1px solid #d9d9d9;border-radius:4px;transition:all .2s cubic-bezier(.4,0,.2,1)}.color-picker-display .color-picker-wrap .color-picker-fill[data-v-b199915c]{position:absolute;left:4px;right:4px;top:4px;bottom:4px;display:flex;align-items:center;justify-content:center}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-checkboard[data-v-b199915c]{width:100%;height:100%;position:relative;background:#fff;position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-checkboard[data-v-b199915c]:after{background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:calc(var(--color-picker-block-size) * 2) calc(var(--color-picker-block-size) * 2);background-position:0 0,0 var(--color-picker-block-size),var(--color-picker-block-size) calc(-1 * var(--color-picker-block-size)),calc(-1 * var(--color-picker-block-size)) 0px;background-repeat:repeat;content:"";position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-value[data-v-b199915c]{white-space:nowrap;position:relative;font-size:14px;line-height:1.71428571}.color-picker-small .color-picker-wrap .color-picker-fill[data-v-b199915c]{left:3px;right:3px;top:3px;bottom:3px}.color-picker-small .color-picker-wrap .color-picker-fill .color-picker-value[data-v-b199915c]{line-height:1.28571429}.color-picker-large .color-picker-wrap .color-picker-fill[data-v-b199915c]{left:5px;right:5px;top:5px;bottom:5px}.color-picker-large .color-picker-wrap .color-picker-fill .color-picker-value[data-v-b199915c]{font-size:16px;line-height:1.875}.color-picker-disabled[data-v-b199915c]{cursor:not-allowed}
|
|
@@ -2,8 +2,10 @@ import { CSSProperties } from 'vue';
|
|
|
2
2
|
export type ColorPickerMode = 'rgb' | 'hsl' | 'hsv' | 'hex';
|
|
3
3
|
export type ColorPickerAction = 'confirm' | 'clear';
|
|
4
4
|
export interface Props {
|
|
5
|
+
width?: string | number;
|
|
5
6
|
label?: (color: string) => string;
|
|
6
7
|
tooltipStyle?: CSSProperties;
|
|
8
|
+
inputProps?: object;
|
|
7
9
|
showAlpha?: boolean;
|
|
8
10
|
showPreview?: boolean;
|
|
9
11
|
size?: 'small' | 'middle' | 'large';
|
|
@@ -173,9 +175,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
173
175
|
footer: string;
|
|
174
176
|
label: (color: string) => string;
|
|
175
177
|
actions: ColorPickerAction[];
|
|
178
|
+
width: string | number;
|
|
176
179
|
tooltipStyle: CSSProperties;
|
|
177
180
|
value: string;
|
|
178
181
|
disabled: boolean;
|
|
182
|
+
inputProps: object;
|
|
179
183
|
showAlpha: boolean;
|
|
180
184
|
showPreview: boolean;
|
|
181
185
|
modes: ColorPickerMode[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColorPicker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b199915c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|