morya-ui 0.4.4 → 0.5.0
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/CHANGELOG.md +828 -775
- package/LICENSE +21 -21
- package/README.md +156 -156
- package/README.zh-CN.md +156 -156
- package/dist/{Button-Bjsth0ct.js → Button-fKkfCnYv.js} +1 -1
- package/dist/{Checkbox-Bo26OGHP.js → Checkbox-BXC2mLNd.js} +1 -1
- package/dist/DatePicker-DcVjiS5d.js +848 -0
- package/dist/{Empty-rMhOPi79.js → Empty-By1qe-ew.js} +1 -1
- package/dist/{FlyoutSubmenu-C0id6-Sb.js → FlyoutSubmenu-C1n-fr6i.js} +1 -1
- package/dist/{Input-CxSTVp9E.js → Input-D2bee2LU.js} +2 -2
- package/dist/InputNumber-DjbXtTzR.js +245 -0
- package/dist/{Loading-D_qRwfKv.js → Loading-DE9Iaiao.js} +3 -3
- package/dist/Pagination-DpNOb0CS.js +178 -0
- package/dist/{Popover-D1uZ1N9Z.js → Popover-Bnz7KNZq.js} +2 -2
- package/dist/{ProgressSpinner-hmR23xpi.js → ProgressSpinner-vBXGvQ92.js} +1 -1
- package/dist/{Radio-CZAyelC_.js → Radio-BbznzRbr.js} +1 -1
- package/dist/{Segmented-BpdO7arR.js → Segmented-CMP3nBAP.js} +1 -1
- package/dist/{Select-CySmusHs.js → Select-q4X2ff_M.js} +3 -3
- package/dist/{Textarea-DskjTCcz.js → Textarea-DsFOAtPd.js} +2 -2
- package/dist/{Tooltip-DSfkflHp.js → Tooltip-5zRVTTVs.js} +2 -2
- package/dist/accordion/style.css +1197 -1205
- package/dist/affix/style.css +1197 -1205
- package/dist/alert/index.js +2 -2
- package/dist/alert/style.css +1197 -1205
- package/dist/anchor/style.css +1197 -1205
- package/dist/auto-complete/index.js +3 -3
- package/dist/auto-complete/style.css +1741 -1749
- package/dist/avatar/style.css +1310 -1318
- package/dist/badge/style.css +1363 -1371
- package/dist/block-ui/index.js +1 -1
- package/dist/block-ui/style.css +1197 -1205
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/style.css +1197 -1205
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +1901 -1909
- package/dist/calendar/index.js +3 -3
- package/dist/calendar/style.css +2072 -1880
- package/dist/card/style.css +1197 -1205
- package/dist/carousel/index.js +2 -2
- package/dist/carousel/style.css +2200 -2208
- package/dist/cascade-select/index.js +3 -3
- package/dist/cascade-select/style.css +1901 -1909
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/style.css +1197 -1205
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +1341 -1349
- package/dist/color-picker/index.js +676 -0
- package/dist/{input-color → color-picker}/style.css +2613 -1289
- package/dist/color-picker/style.js +8 -0
- package/dist/command-menu/index.js +3 -3
- package/dist/command-menu/style.css +1430 -1438
- package/dist/components/AutoComplete/styles.css +209 -209
- package/dist/components/Avatar/styles.css +113 -113
- package/dist/components/Badge/styles.css +164 -164
- package/dist/components/Button/styles.css +698 -698
- package/dist/components/Carousel/styles.css +302 -302
- package/dist/components/CascadeSelect/styles.css +168 -168
- package/dist/components/Chip/styles.css +144 -144
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +41 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
- package/dist/components/ColorPicker/colorUtils.d.ts +23 -0
- package/dist/components/ColorPicker/colorUtils.d.ts.map +1 -0
- package/dist/components/ColorPicker/gradientUtils.d.ts +9 -0
- package/dist/components/ColorPicker/gradientUtils.d.ts.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/components/ColorPicker/styles.css +405 -0
- package/dist/components/ColorPicker/types.d.ts +60 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/CommandMenu/styles.css +102 -102
- package/dist/components/ConfigProvider/styles.css +6 -6
- package/dist/components/ConfirmDialog/styles.css +24 -24
- package/dist/components/ConfirmPopup/styles.css +35 -35
- package/dist/components/ContextMenu/styles.css +138 -138
- package/dist/components/DatePicker/DatePicker.vue.d.ts +21 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +653 -453
- package/dist/components/DatePicker/types.d.ts +20 -2
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +420 -420
- package/dist/components/Dock/styles.css +84 -84
- package/dist/components/Drawer/styles.css +346 -346
- package/dist/components/Dropdown/styles.css +135 -135
- package/dist/components/Empty/styles.css +146 -146
- package/dist/components/FileUpload/styles.css +359 -359
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/styles.css +125 -125
- package/dist/components/Gallery/styles.css +100 -100
- package/dist/components/Input/styles.css +392 -392
- package/dist/components/InputNumber/styles.css +280 -262
- package/dist/components/InputPassword/styles.css +189 -189
- package/dist/components/InputTags/styles.css +121 -121
- package/dist/components/Layout/styles.css +433 -433
- package/dist/components/List/styles.css +229 -229
- package/dist/components/Listbox/styles.css +130 -130
- package/dist/components/Loading/styles.css +378 -378
- package/dist/components/MegaMenu/styles.css +97 -97
- package/dist/components/Menu/styles.css +565 -565
- package/dist/components/Menubar/styles.css +144 -144
- package/dist/components/Message/styles.css +248 -248
- package/dist/components/MeterGroup/styles.css +49 -49
- package/dist/components/OrderList/OrderList.vue.d.ts +13 -7
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/OrderList/styles.css +80 -7
- package/dist/components/OrderList/types.d.ts +20 -3
- package/dist/components/OrderList/types.d.ts.map +1 -1
- package/dist/components/Page/styles.css +430 -430
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +97 -124
- package/dist/components/Popover/styles.css +92 -92
- package/dist/components/Result/styles.css +146 -146
- package/dist/components/Scrollbar/styles.css +131 -131
- package/dist/components/Select/styles.css +222 -222
- package/dist/components/SelectButton/styles.css +107 -107
- package/dist/components/Sidebar/styles.css +74 -74
- package/dist/components/Slider/styles.css +211 -211
- package/dist/components/SplitButton/styles.css +216 -216
- package/dist/components/Status/styles.css +190 -190
- package/dist/components/Stepper/styles.css +152 -152
- package/dist/components/Switch/styles.css +129 -129
- package/dist/components/Table/Table.vue.d.ts +37 -282
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/core/tree.d.ts +4 -0
- package/dist/components/Table/core/tree.d.ts.map +1 -1
- package/dist/components/Table/core/utils.d.ts +11 -3
- package/dist/components/Table/core/utils.d.ts.map +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/render/TableColumnSetting.vue.d.ts +25 -0
- package/dist/components/Table/render/TableColumnSetting.vue.d.ts.map +1 -0
- package/dist/components/Table/render/TableTbody.vue.d.ts +16 -0
- package/dist/components/Table/render/TableTbody.vue.d.ts.map +1 -1
- package/dist/components/Table/render/TableThead.vue.d.ts +8 -0
- package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -1
- package/dist/components/Table/state/internal.d.ts +1 -1
- package/dist/components/Table/state/internal.d.ts.map +1 -1
- package/dist/components/Table/state/usePageItems.d.ts +1 -3
- package/dist/components/Table/state/usePageItems.d.ts.map +1 -1
- package/dist/components/Table/state/useVirtualRows.d.ts +20 -2
- package/dist/components/Table/state/useVirtualRows.d.ts.map +1 -1
- package/dist/components/Table/styles.css +95 -0
- package/dist/components/Table/types.d.ts +77 -12
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css +165 -165
- package/dist/components/Terminal/styles.css +75 -75
- package/dist/components/Textarea/styles.css +146 -146
- package/dist/components/TieredMenu/styles.css +125 -125
- package/dist/components/Timeline/styles.css +157 -157
- package/dist/components/TreeSelect/styles.css +172 -172
- package/dist/components/VirtualScroller/styles.css +27 -27
- package/dist/{config-BEpyhJi3.js → config-Cd20zAyW.js} +11 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +2293 -2301
- package/dist/confirm-dialog/index.js +4 -4
- package/dist/confirm-dialog/style.css +2339 -2347
- package/dist/confirm-popup/index.js +4 -4
- package/dist/confirm-popup/style.css +1930 -1938
- package/dist/context-menu/index.js +3 -3
- package/dist/context-menu/style.css +1466 -1474
- package/dist/data-view/index.js +3 -3
- package/dist/data-view/style.css +1672 -1707
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +1982 -1658
- package/dist/date-picker/style.js +1 -0
- package/dist/descriptions/index.js +1 -1
- package/dist/descriptions/style.css +1197 -1205
- package/dist/dialog/index.js +4 -4
- package/dist/dialog/style.css +2315 -2323
- package/dist/divider/style.css +1197 -1205
- package/dist/dock/style.css +1281 -1289
- package/dist/drawer/index.js +3 -3
- package/dist/drawer/style.css +1543 -1551
- package/dist/dropdown/index.js +4 -4
- package/dist/dropdown/style.css +1463 -1471
- package/dist/empty/index.js +1 -1
- package/dist/empty/style.css +1343 -1351
- package/dist/fieldset/style.css +1197 -1205
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/style.css +1556 -1564
- package/dist/flex/index.js +1 -1
- package/dist/flex/style.css +1197 -1205
- package/dist/float-label/style.css +1197 -1205
- package/dist/fluid/style.css +1197 -1205
- package/dist/form/index.js +1 -1
- package/dist/form/style.css +1324 -1332
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +1428 -1436
- package/dist/grid/style.css +1197 -1205
- package/dist/icon/style.css +1197 -1205
- package/dist/icon-field/style.css +1589 -1597
- package/dist/image/index.js +1 -1
- package/dist/image/style.css +1197 -1205
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4792 -3559
- package/dist/inplace/style.css +1197 -1205
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +1714 -1722
- package/dist/input-group/style.css +1197 -1205
- package/dist/input-number/index.js +2 -245
- package/dist/input-number/style.css +1477 -1467
- package/dist/input-otp/index.js +2 -2
- package/dist/input-otp/style.css +1197 -1205
- package/dist/input-password/index.js +2 -2
- package/dist/input-password/style.css +1511 -1519
- package/dist/input-tags/index.js +2 -2
- package/dist/input-tags/style.css +1318 -1326
- package/dist/knob/style.css +1197 -1205
- package/dist/label/style.css +1197 -1205
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +1761 -1769
- package/dist/list/index.js +4 -4
- package/dist/list/style.css +2052 -2087
- package/dist/listbox/index.js +2 -2
- package/dist/listbox/style.css +1489 -1497
- package/dist/loading/index.js +1 -1
- package/dist/loading/style.css +1577 -1585
- package/dist/locale/de-DE.d.ts.map +1 -1
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/es-ES.d.ts.map +1 -1
- package/dist/locale/fr-FR.d.ts.map +1 -1
- package/dist/locale/ja-JP.d.ts.map +1 -1
- package/dist/locale/ko-KR.d.ts.map +1 -1
- package/dist/locale/pt-BR.d.ts.map +1 -1
- package/dist/locale/ru-RU.d.ts.map +1 -1
- package/dist/locale/types.d.ts +18 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/locale/zh-TW.d.ts.map +1 -1
- package/dist/{locale-CZddM-tH.js → locale-BcxMPufl.js} +1 -1
- package/dist/mega-menu/index.js +3 -3
- package/dist/mega-menu/style.css +1294 -1302
- package/dist/mentions/index.js +3 -3
- package/dist/mentions/style.css +1322 -1330
- package/dist/menu/index.js +4 -4
- package/dist/menu/style.css +2051 -2059
- package/dist/menubar/index.js +4 -4
- package/dist/menubar/style.css +1472 -1480
- package/dist/message/index.js +3 -3
- package/dist/message/style.css +1445 -1453
- package/dist/meter-group/style.css +1248 -1256
- package/dist/order-list/index.js +191 -101
- package/dist/order-list/style.css +1277 -1212
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +2592 -2600
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +1516 -1551
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +1197 -1205
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +1197 -1205
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +1291 -1299
- package/dist/progress-bar/style.css +1197 -1205
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +1197 -1205
- package/dist/qr-code/index.js +3 -3
- package/dist/qr-code/style.css +1895 -1903
- package/dist/radio/index.js +1 -1
- package/dist/radio/style.css +1197 -1205
- package/dist/rating/index.js +2 -2
- package/dist/rating/style.css +1197 -1205
- package/dist/resolver.js +1 -1
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +1343 -1351
- package/dist/scroll-top/index.js +2 -2
- package/dist/scroll-top/style.css +1328 -1336
- package/dist/scrollbar/style.css +1330 -1338
- package/dist/segmented/index.js +1 -1
- package/dist/segmented/style.css +1197 -1205
- package/dist/select/index.js +1 -1
- package/dist/select/style.css +2107 -2115
- package/dist/select-button/index.js +1 -1
- package/dist/select-button/style.css +1306 -1314
- package/dist/shared/styles/control-affix-icon.css +110 -110
- package/dist/shared/styles/control-suffix.css +118 -118
- package/dist/shared/styles/select-overlay.css +177 -177
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/style.css +1271 -1279
- package/dist/skeleton/style.css +1197 -1205
- package/dist/slider/index.js +2 -2
- package/dist/slider/style.css +1410 -1418
- package/dist/space/index.js +1 -1
- package/dist/space/style.css +1197 -1205
- package/dist/speed-dial/index.js +3 -3
- package/dist/speed-dial/style.css +1197 -1205
- package/dist/split-button/index.js +3 -3
- package/dist/split-button/style.css +2111 -2119
- package/dist/splitter/index.js +1 -1
- package/dist/splitter/style.css +1197 -1205
- package/dist/statistic/style.css +1197 -1205
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +1387 -1395
- package/dist/stepper/style.css +1349 -1357
- package/dist/styles/base.css +795 -804
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/style.css +1328 -1336
- package/dist/table/index.js +975 -714
- package/dist/table/style.css +1899 -1839
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +1493 -1501
- package/dist/tag/index.js +2 -2
- package/dist/tag/style.css +1197 -1205
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/style.css +1274 -1282
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +1468 -1476
- package/dist/theme/styles.css +402 -401
- package/dist/tiered-menu/index.js +3 -3
- package/dist/tiered-menu/style.css +1453 -1461
- package/dist/time-picker/index.js +5 -1
- package/dist/time-picker/style.css +1852 -1660
- package/dist/timeline/style.css +1485 -1493
- package/dist/toast/index.js +3 -3
- package/dist/toast/style.css +1895 -1903
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +1197 -1205
- package/dist/toolbar/style.css +1197 -1205
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +1197 -1205
- package/dist/tour/index.js +3 -3
- package/dist/tour/style.css +1895 -1903
- package/dist/tree/index.js +2 -2
- package/dist/tree/style.css +1197 -1205
- package/dist/tree-select/index.js +4 -4
- package/dist/tree-select/style.css +1905 -1913
- package/dist/typography/index.js +2 -2
- package/dist/typography/style.css +1343 -1351
- package/dist/{useMotionTransition-DqL_SEML.js → useMotionTransition-DohkfWRB.js} +1 -1
- package/dist/virtual-scroller/style.css +1358 -1366
- package/dist/watermark/style.css +1197 -1205
- package/package.json +8 -8
- package/dist/DatePicker-CsMGzCqY.js +0 -630
- package/dist/Pagination-CnGOpp0m.js +0 -171
- package/dist/components/InputColor/InputColor.vue.d.ts +0 -24
- package/dist/components/InputColor/InputColor.vue.d.ts.map +0 -1
- package/dist/components/InputColor/index.d.ts +0 -3
- package/dist/components/InputColor/index.d.ts.map +0 -1
- package/dist/components/InputColor/styles.css +0 -139
- package/dist/components/InputColor/types.d.ts +0 -19
- package/dist/components/InputColor/types.d.ts.map +0 -1
- package/dist/input-color/index.js +0 -118
- package/dist/input-color/style.js +0 -3
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "./Icon-CmHjx7W8.js";
|
|
3
|
-
import { t as n } from "./Select-CySmusHs.js";
|
|
4
|
-
import { n as r, t as i } from "./locale-CZddM-tH.js";
|
|
5
|
-
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, renderList as h, toDisplayString as g, unref as _, useAttrs as v } from "vue";
|
|
6
|
-
//#region src/components/Pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var y = ["aria-label"], b = ["disabled", "aria-label"], x = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "m-pagination__simple",
|
|
10
|
-
"aria-current": "page"
|
|
11
|
-
}, S = [
|
|
12
|
-
"disabled",
|
|
13
|
-
"aria-label",
|
|
14
|
-
"aria-current",
|
|
15
|
-
"onClick"
|
|
16
|
-
], C = ["disabled", "aria-label"], w = {
|
|
17
|
-
key: 2,
|
|
18
|
-
class: "m-pagination__sizer"
|
|
19
|
-
}, T = { class: "m-pagination__sizer-label" }, E = ["disabled", "value"], D = ["value"], O = {
|
|
20
|
-
key: 3,
|
|
21
|
-
class: "m-pagination__jumper"
|
|
22
|
-
}, k = { key: 0 }, A = /* @__PURE__ */ d({
|
|
23
|
-
inheritAttrs: !1,
|
|
24
|
-
__name: "Pagination",
|
|
25
|
-
props: {
|
|
26
|
-
pt: {},
|
|
27
|
-
modelValue: { default: 1 },
|
|
28
|
-
totalRecords: {},
|
|
29
|
-
rows: { default: 10 },
|
|
30
|
-
pageSize: {},
|
|
31
|
-
pageLinkSize: { default: 5 },
|
|
32
|
-
disabled: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !1
|
|
35
|
-
},
|
|
36
|
-
size: { default: "medium" },
|
|
37
|
-
showSizePicker: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
},
|
|
41
|
-
showSizeChanger: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !1
|
|
44
|
-
},
|
|
45
|
-
pageSizes: { default: () => [
|
|
46
|
-
10,
|
|
47
|
-
20,
|
|
48
|
-
50,
|
|
49
|
-
100
|
|
50
|
-
] },
|
|
51
|
-
showQuickJumper: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: !1
|
|
54
|
-
},
|
|
55
|
-
simple: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !1
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
emits: [
|
|
61
|
-
"update:modelValue",
|
|
62
|
-
"page",
|
|
63
|
-
"update:rows",
|
|
64
|
-
"update:pageSize"
|
|
65
|
-
],
|
|
66
|
-
setup(d, { expose: A, emit: j }) {
|
|
67
|
-
let M = d, N = j, P = v(), { rootAttrs: F } = e(P, () => M.pt), I = r(), L = o(() => Math.max(1, M.pageSize ?? M.rows)), R = o(() => M.showSizePicker || M.showSizeChanger), z = o(() => Math.max(1, Math.ceil(M.totalRecords / L.value))), B = o(() => Math.min(Math.max(1, M.modelValue), z.value)), V = o(() => (B.value - 1) * L.value), H = o(() => {
|
|
68
|
-
let e = Math.min(M.pageLinkSize, z.value), t = Math.min(Math.max(1, B.value - Math.floor(e / 2)), z.value - e + 1);
|
|
69
|
-
return Array.from({ length: e }, (e, n) => t + n);
|
|
70
|
-
}), U = o(() => {
|
|
71
|
-
let e = [...M.pageSizes];
|
|
72
|
-
return e.includes(L.value) || e.unshift(L.value), e;
|
|
73
|
-
}), W = o(() => !M.showQuickJumper || M.simple ? [] : Array.from({ length: z.value }, (e, t) => {
|
|
74
|
-
let n = t + 1;
|
|
75
|
-
return {
|
|
76
|
-
label: String(n),
|
|
77
|
-
value: n
|
|
78
|
-
};
|
|
79
|
-
})), G = o(() => ({ control: { "aria-label": I.value.jumpToPage } }));
|
|
80
|
-
function K(e) {
|
|
81
|
-
let t = Math.min(Math.max(1, e), z.value);
|
|
82
|
-
M.disabled || t === B.value || (N("update:modelValue", t), N("page", t));
|
|
83
|
-
}
|
|
84
|
-
function q(e) {
|
|
85
|
-
if (M.disabled || e === L.value) return;
|
|
86
|
-
N("update:rows", e), N("update:pageSize", e);
|
|
87
|
-
let t = Math.max(1, Math.ceil(M.totalRecords / e)), n = Math.min(B.value, t);
|
|
88
|
-
n !== B.value && (N("update:modelValue", n), N("page", n));
|
|
89
|
-
}
|
|
90
|
-
function J(e) {
|
|
91
|
-
let t = Number(e.target.value);
|
|
92
|
-
Number.isFinite(t) && q(t);
|
|
93
|
-
}
|
|
94
|
-
function Y(e) {
|
|
95
|
-
if (typeof e != "number" && typeof e != "string") return;
|
|
96
|
-
let t = typeof e == "number" ? e : Number(e);
|
|
97
|
-
Number.isFinite(t) && K(t);
|
|
98
|
-
}
|
|
99
|
-
function X(e) {
|
|
100
|
-
return i(I.value.page, { page: e });
|
|
101
|
-
}
|
|
102
|
-
return A({
|
|
103
|
-
first: V,
|
|
104
|
-
pageCount: z
|
|
105
|
-
}), (e, r) => (m(), c("nav", f(_(F), {
|
|
106
|
-
class: ["m-pagination", [`m-pagination--${d.size}`, { "m-pagination--simple": d.simple }]],
|
|
107
|
-
"aria-label": _(I).pagination
|
|
108
|
-
}), [
|
|
109
|
-
l("button", {
|
|
110
|
-
type: "button",
|
|
111
|
-
class: "m-pagination__button",
|
|
112
|
-
disabled: d.disabled || B.value === 1,
|
|
113
|
-
"aria-label": _(I).prevPage,
|
|
114
|
-
onClick: r[0] ||= (e) => K(B.value - 1)
|
|
115
|
-
}, [u(t, {
|
|
116
|
-
name: "chevron-left",
|
|
117
|
-
size: "sm"
|
|
118
|
-
})], 8, b),
|
|
119
|
-
d.simple ? (m(), c("span", x, g(B.value) + " / " + g(z.value), 1)) : (m(!0), c(a, { key: 1 }, h(H.value, (e) => (m(), c("button", {
|
|
120
|
-
key: e,
|
|
121
|
-
type: "button",
|
|
122
|
-
class: p(["m-pagination__button", { "m-pagination__button--active": e === B.value }]),
|
|
123
|
-
disabled: d.disabled,
|
|
124
|
-
"aria-label": X(e),
|
|
125
|
-
"aria-current": e === B.value ? "page" : void 0,
|
|
126
|
-
onClick: (t) => K(e)
|
|
127
|
-
}, g(e), 11, S))), 128)),
|
|
128
|
-
l("button", {
|
|
129
|
-
type: "button",
|
|
130
|
-
class: "m-pagination__button",
|
|
131
|
-
disabled: d.disabled || B.value === z.value,
|
|
132
|
-
"aria-label": _(I).nextPage,
|
|
133
|
-
onClick: r[1] ||= (e) => K(B.value + 1)
|
|
134
|
-
}, [u(t, {
|
|
135
|
-
name: "chevron-right",
|
|
136
|
-
size: "sm"
|
|
137
|
-
})], 8, C),
|
|
138
|
-
R.value && !d.simple ? (m(), c("label", w, [l("span", T, g(_(I).itemsPerPage), 1), l("select", {
|
|
139
|
-
class: "m-pagination__select",
|
|
140
|
-
disabled: d.disabled,
|
|
141
|
-
value: L.value,
|
|
142
|
-
onChange: J
|
|
143
|
-
}, [(m(!0), c(a, null, h(U.value, (e) => (m(), c("option", {
|
|
144
|
-
key: e,
|
|
145
|
-
value: e
|
|
146
|
-
}, g(e), 9, D))), 128))], 40, E)])) : s("", !0),
|
|
147
|
-
d.showQuickJumper && !d.simple ? (m(), c("div", O, [
|
|
148
|
-
l("span", null, g(_(I).jumpToPage), 1),
|
|
149
|
-
u(n, {
|
|
150
|
-
class: "m-pagination__jumper-select",
|
|
151
|
-
size: "small",
|
|
152
|
-
"model-value": B.value,
|
|
153
|
-
options: W.value,
|
|
154
|
-
disabled: d.disabled,
|
|
155
|
-
"show-search": z.value > 10,
|
|
156
|
-
pt: G.value,
|
|
157
|
-
"onUpdate:modelValue": Y
|
|
158
|
-
}, null, 8, [
|
|
159
|
-
"model-value",
|
|
160
|
-
"options",
|
|
161
|
-
"disabled",
|
|
162
|
-
"show-search",
|
|
163
|
-
"pt"
|
|
164
|
-
]),
|
|
165
|
-
_(I).pageClassifier ? (m(), c("span", k, g(_(I).pageClassifier), 1)) : s("", !0)
|
|
166
|
-
])) : s("", !0)
|
|
167
|
-
], 16, y));
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
//#endregion
|
|
171
|
-
export { A as t };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { InputColorProps } from './types';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare var __VLS_1: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
trigger?: (props: typeof __VLS_1) => any;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_base: DefineComponent<InputColorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
-
"update:modelValue": (value: string) => any;
|
|
9
|
-
}, string, PublicProps, Readonly<InputColorProps> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
modelValue: string;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
invalid: boolean;
|
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
-
export default _default;
|
|
19
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=InputColor.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputColor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/InputColor.vue"],"names":[],"mappings":";AA4GA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAqK9C,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACzD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/* --- Form: InputColor --- */
|
|
2
|
-
.m-inputcolor-field {
|
|
3
|
-
display: grid;
|
|
4
|
-
gap: var(--m-space-2);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.m-inputcolor-field__label {
|
|
8
|
-
color: var(--m-color-text);
|
|
9
|
-
font-family: var(--m-font-sans);
|
|
10
|
-
font-size: var(--m-font-size-md);
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.m-inputcolor {
|
|
15
|
-
--m-inputcolor-text-min-width: 7rem;
|
|
16
|
-
--m-inputcolor-preset-size: 1.25rem;
|
|
17
|
-
display: inline-flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
gap: var(--m-space-2);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.m-inputcolor--disabled {
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
opacity: var(--m-opacity-disabled);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.m-inputcolor__swatch {
|
|
28
|
-
background: transparent;
|
|
29
|
-
border: var(--m-border-width) solid var(--m-color-border);
|
|
30
|
-
border-radius: var(--m-radius-control);
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
height: var(--m-control-height-medium);
|
|
33
|
-
padding: 0;
|
|
34
|
-
transition:
|
|
35
|
-
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
36
|
-
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
37
|
-
opacity var(--m-motion-fast) var(--m-motion-ease);
|
|
38
|
-
width: var(--m-control-height-medium);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.m-inputcolor__text {
|
|
42
|
-
background: var(--m-color-surface);
|
|
43
|
-
border: var(--m-border-width) solid var(--m-color-border);
|
|
44
|
-
border-radius: var(--m-radius-control);
|
|
45
|
-
color: var(--m-color-text);
|
|
46
|
-
font-family: var(--m-font-sans);
|
|
47
|
-
font-size: var(--m-control-font-medium);
|
|
48
|
-
min-height: var(--m-control-height-medium);
|
|
49
|
-
min-width: var(--m-inputcolor-text-min-width);
|
|
50
|
-
padding: 0 var(--m-control-padding-x-medium);
|
|
51
|
-
transition:
|
|
52
|
-
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
53
|
-
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
54
|
-
background-color var(--m-motion-fast) var(--m-motion-ease),
|
|
55
|
-
opacity var(--m-motion-fast) var(--m-motion-ease);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.m-inputcolor__text:hover:not(:disabled):not(:focus),
|
|
59
|
-
.m-inputcolor__swatch:hover:not(:disabled):not(:focus) {
|
|
60
|
-
border-color: var(--m-color-primary-hover);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.m-inputcolor__text:focus,
|
|
64
|
-
.m-inputcolor__text:focus-visible,
|
|
65
|
-
.m-inputcolor__swatch:focus,
|
|
66
|
-
.m-inputcolor__swatch:focus-visible {
|
|
67
|
-
border-color: var(--m-color-primary);
|
|
68
|
-
box-shadow: var(--m-focus-shadow);
|
|
69
|
-
outline: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.m-inputcolor__row {
|
|
73
|
-
align-items: center;
|
|
74
|
-
display: flex;
|
|
75
|
-
gap: var(--m-space-2);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.m-inputcolor__swatches {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-wrap: wrap;
|
|
81
|
-
gap: var(--m-space-1);
|
|
82
|
-
margin-top: var(--m-space-2);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.m-inputcolor__preset {
|
|
86
|
-
border: var(--m-border-width) solid var(--m-color-border);
|
|
87
|
-
border-radius: var(--m-radius-sm);
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
height: var(--m-inputcolor-preset-size);
|
|
90
|
-
padding: 0;
|
|
91
|
-
transition:
|
|
92
|
-
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
93
|
-
box-shadow var(--m-motion-fast) var(--m-motion-ease);
|
|
94
|
-
width: var(--m-inputcolor-preset-size);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.m-inputcolor__preset:hover:not(:disabled) {
|
|
98
|
-
border-color: var(--m-color-primary-hover);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.m-inputcolor__preset:focus-visible {
|
|
102
|
-
box-shadow: var(--m-focus-shadow);
|
|
103
|
-
outline: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.m-inputcolor--small .m-inputcolor__swatch,
|
|
107
|
-
.m-inputcolor--small .m-inputcolor__text {
|
|
108
|
-
min-height: var(--m-control-height-small);
|
|
109
|
-
height: var(--m-control-height-small);
|
|
110
|
-
font-size: var(--m-control-font-small);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.m-inputcolor--small .m-inputcolor__swatch {
|
|
114
|
-
width: var(--m-control-height-small);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.m-inputcolor--large .m-inputcolor__swatch,
|
|
118
|
-
.m-inputcolor--large .m-inputcolor__text {
|
|
119
|
-
min-height: var(--m-control-height-large);
|
|
120
|
-
height: var(--m-control-height-large);
|
|
121
|
-
font-size: var(--m-control-font-large);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.m-inputcolor--large .m-inputcolor__swatch {
|
|
125
|
-
width: var(--m-control-height-large);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.m-inputcolor--invalid .m-inputcolor__text,
|
|
129
|
-
.m-inputcolor--invalid .m-inputcolor__swatch {
|
|
130
|
-
border-color: var(--m-color-danger);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus,
|
|
134
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus-visible,
|
|
135
|
-
.m-inputcolor--invalid .m-inputcolor__swatch:focus,
|
|
136
|
-
.m-inputcolor--invalid .m-inputcolor__swatch:focus-visible {
|
|
137
|
-
border-color: var(--m-color-danger);
|
|
138
|
-
box-shadow: var(--m-focus-shadow-danger);
|
|
139
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MNativeInputProps } from '../../shared/nativeControlProps';
|
|
2
|
-
import { FieldPassThrough } from '../../shared/passThrough';
|
|
3
|
-
import { MSizeInput } from '../../shared/types';
|
|
4
|
-
export interface InputColorProps extends MNativeInputProps {
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
id?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
invalid?: boolean;
|
|
10
|
-
size?: MSizeInput;
|
|
11
|
-
/** Preset hex colors shown under the input. */
|
|
12
|
-
swatches?: string[];
|
|
13
|
-
/** Pass-through attrs/classes/styles per DOM part. */
|
|
14
|
-
pt?: FieldPassThrough;
|
|
15
|
-
}
|
|
16
|
-
export interface InputColorEmits {
|
|
17
|
-
(event: 'update:modelValue', value: string): void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,sDAAsD;IACtD,EAAE,CAAC,EAAE,gBAAgB,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAClD"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../useFieldFeedback-C5qIqYMK.js";
|
|
3
|
-
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
|
-
import { o as r } from "../config-BEpyhJi3.js";
|
|
5
|
-
import { n as i } from "../locale-CZddM-tH.js";
|
|
6
|
-
import "./style.js";
|
|
7
|
-
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y } from "vue";
|
|
8
|
-
//#region src/components/InputColor/InputColor.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var b = ["for"], x = { class: "m-inputcolor__row" }, S = [
|
|
10
|
-
"value",
|
|
11
|
-
"disabled",
|
|
12
|
-
"aria-label"
|
|
13
|
-
], C = [
|
|
14
|
-
"id",
|
|
15
|
-
"value",
|
|
16
|
-
"disabled",
|
|
17
|
-
"placeholder",
|
|
18
|
-
"name",
|
|
19
|
-
"autocomplete",
|
|
20
|
-
"autofocus",
|
|
21
|
-
"aria-invalid",
|
|
22
|
-
"aria-label"
|
|
23
|
-
], w = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "m-inputcolor__swatches"
|
|
26
|
-
}, T = [
|
|
27
|
-
"disabled",
|
|
28
|
-
"aria-label",
|
|
29
|
-
"onClick"
|
|
30
|
-
], E = /* @__PURE__ */ u({
|
|
31
|
-
inheritAttrs: !1,
|
|
32
|
-
__name: "InputColor",
|
|
33
|
-
props: {
|
|
34
|
-
modelValue: { default: "#000000" },
|
|
35
|
-
disabled: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !1
|
|
38
|
-
},
|
|
39
|
-
id: {},
|
|
40
|
-
label: {},
|
|
41
|
-
invalid: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !1
|
|
44
|
-
},
|
|
45
|
-
size: {},
|
|
46
|
-
swatches: {},
|
|
47
|
-
pt: {},
|
|
48
|
-
placeholder: {},
|
|
49
|
-
name: {},
|
|
50
|
-
autocomplete: {},
|
|
51
|
-
autofocus: { type: Boolean }
|
|
52
|
-
},
|
|
53
|
-
emits: ["update:modelValue"],
|
|
54
|
-
setup(u, { emit: E }) {
|
|
55
|
-
let D = u, O = E, k = y(), { rootAttrs: A, controlAttrs: j } = e(k, () => D.pt), M = i(), N = r("InputColor", () => D.size), P = n("m-inputcolor"), F = o(() => D.id ?? P), { isInvalid: I } = t(D), L = o(() => {
|
|
56
|
-
let e = D.modelValue?.trim() || "#000000";
|
|
57
|
-
return /^#[0-9a-f]{6}$/i.test(e) ? e : "#000000";
|
|
58
|
-
}), R = o(() => [
|
|
59
|
-
"m-inputcolor",
|
|
60
|
-
`m-inputcolor--${N.value}`,
|
|
61
|
-
{
|
|
62
|
-
"m-inputcolor--disabled": D.disabled,
|
|
63
|
-
"m-inputcolor--invalid": I.value
|
|
64
|
-
}
|
|
65
|
-
]);
|
|
66
|
-
function z(e) {
|
|
67
|
-
let t = e.target;
|
|
68
|
-
O("update:modelValue", t.value);
|
|
69
|
-
}
|
|
70
|
-
function B(e) {
|
|
71
|
-
let t = e.target;
|
|
72
|
-
O("update:modelValue", t.value);
|
|
73
|
-
}
|
|
74
|
-
function V(e) {
|
|
75
|
-
D.disabled || O("update:modelValue", e);
|
|
76
|
-
}
|
|
77
|
-
return (e, t) => (m(), c("div", d(v(A), { class: "m-inputcolor-field" }), [u.label ? (m(), c("label", {
|
|
78
|
-
key: 0,
|
|
79
|
-
class: "m-inputcolor-field__label",
|
|
80
|
-
for: F.value
|
|
81
|
-
}, _(u.label), 9, b)) : s("", !0), l("div", { class: f(R.value) }, [g(e.$slots, "trigger", {}, () => [l("div", x, [
|
|
82
|
-
l("input", {
|
|
83
|
-
class: "m-inputcolor__swatch",
|
|
84
|
-
type: "color",
|
|
85
|
-
value: L.value,
|
|
86
|
-
disabled: u.disabled,
|
|
87
|
-
"aria-label": v(M).selectColor,
|
|
88
|
-
onInput: z
|
|
89
|
-
}, null, 40, S),
|
|
90
|
-
l("input", d(v(j), {
|
|
91
|
-
id: F.value,
|
|
92
|
-
class: "m-inputcolor__text",
|
|
93
|
-
type: "text",
|
|
94
|
-
value: u.modelValue,
|
|
95
|
-
disabled: u.disabled,
|
|
96
|
-
placeholder: u.placeholder ?? "#000000",
|
|
97
|
-
name: u.name,
|
|
98
|
-
autocomplete: u.autocomplete,
|
|
99
|
-
autofocus: u.autofocus || void 0,
|
|
100
|
-
spellcheck: "false",
|
|
101
|
-
"aria-invalid": v(I) || void 0,
|
|
102
|
-
"aria-label": u.label ?? v(M).colorHexValue,
|
|
103
|
-
onInput: B
|
|
104
|
-
}), null, 16, C),
|
|
105
|
-
u.swatches?.length ? (m(), c("div", w, [(m(!0), c(a, null, h(u.swatches, (e) => (m(), c("button", {
|
|
106
|
-
key: e,
|
|
107
|
-
type: "button",
|
|
108
|
-
class: "m-inputcolor__preset",
|
|
109
|
-
style: p({ background: e }),
|
|
110
|
-
disabled: u.disabled,
|
|
111
|
-
"aria-label": e,
|
|
112
|
-
onClick: (t) => V(e)
|
|
113
|
-
}, null, 12, T))), 128))])) : s("", !0)
|
|
114
|
-
])])], 2)], 16));
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
//#endregion
|
|
118
|
-
export { E as MInputColor };
|