morya-ui 0.3.0 → 0.3.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/CHANGELOG.md +64 -0
- package/dist/Button-dMqRmoYa.js +222 -0
- package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
- package/dist/Empty-C5tndBOm.js +147 -0
- package/dist/Icon-od9Ob-Ay.js +393 -0
- package/dist/Loading-BSsRs6v9.js +420 -0
- package/dist/Pagination-CqpC5EAs.js +166 -0
- package/dist/Select-CKGrSoaC.js +572 -0
- package/dist/Skeleton-DCYdXAH2.js +59 -0
- package/dist/accordion/style.css +20 -71
- package/dist/auto-complete/index.js +118 -120
- package/dist/auto-complete/style.css +24 -88
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +10 -67
- package/dist/badge/style.css +10 -68
- package/dist/block-ui/style.css +10 -68
- package/dist/breadcrumb/style.css +10 -61
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +72 -78
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +30 -67
- package/dist/carousel/index.js +72 -64
- package/dist/carousel/style.css +36 -82
- package/dist/cascade-select/index.js +1 -1
- package/dist/cascade-select/style.css +24 -81
- package/dist/checkbox/style.css +10 -61
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +10 -67
- package/dist/command-menu/index.js +37 -39
- package/dist/command-menu/style.css +10 -75
- package/dist/components/Accordion/styles.css +10 -10
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +0 -7
- package/dist/components/Badge/styles.css +0 -7
- package/dist/components/BlockUI/styles.css +0 -7
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +62 -11
- package/dist/components/Button/types.d.ts +4 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +2 -2
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/styles.css +20 -6
- package/dist/components/Card/types.d.ts +4 -2
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +26 -15
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
- package/dist/components/DataView/DataView.vue.d.ts +7 -7
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/DataView/styles.css +0 -20
- package/dist/components/Dialog/styles.css +3 -46
- package/dist/components/Dock/styles.css +0 -10
- package/dist/components/Drawer/styles.css +2 -51
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +8 -9
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +24 -5
- package/dist/components/Fieldset/styles.css +0 -7
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUtils.d.ts +8 -0
- package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
- package/dist/components/Gallery/styles.css +0 -8
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/icon-categories.d.ts.map +1 -1
- package/dist/components/Icon/icons-types.d.ts +4 -2
- package/dist/components/Icon/icons-types.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +250 -561
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +0 -6
- package/dist/components/Knob/styles.css +0 -6
- package/dist/components/Layout/styles.css +5 -14
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +0 -16
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +6 -7
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Message/styles.css +0 -13
- package/dist/components/Page/PageContent.vue.d.ts +2 -1
- package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
- package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
- package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
- package/dist/components/Page/PageFilters.vue.d.ts +15 -3
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageHeader.vue.d.ts +8 -4
- package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
- package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
- package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
- package/dist/components/Page/PageSection.vue.d.ts +8 -2
- package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts +8 -3
- package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
- package/dist/components/Page/index.d.ts +2 -1
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/styles.css +239 -44
- package/dist/components/Page/types.d.ts +40 -0
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +7 -10
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +0 -7
- package/dist/components/Popover/styles.css +20 -17
- package/dist/components/ProgressBar/styles.css +0 -9
- package/dist/components/ProgressSpinner/styles.css +0 -7
- package/dist/components/ScrollTop/styles.css +0 -7
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/dist/components/Scrollbar/styles.css +0 -8
- package/dist/components/Select/Select.vue.d.ts +10 -8
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/selectOptions.d.ts +46 -0
- package/dist/components/Select/selectOptions.d.ts.map +1 -0
- package/dist/components/Select/styles.css +35 -8
- package/dist/components/Select/types.d.ts +11 -1
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +0 -6
- package/dist/components/Skeleton/styles.css +0 -6
- package/dist/components/Slider/styles.css +9 -0
- package/dist/components/SplitButton/styles.css +5 -0
- package/dist/components/Status/styles.css +0 -7
- package/dist/components/Switch/styles.css +0 -7
- package/dist/components/Table/Table.vue.d.ts +26 -26
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/TableLoadingLine.vue.d.ts.map +1 -1
- package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +61 -44
- package/dist/components/Table/tableQuery.d.ts +30 -0
- package/dist/components/Table/tableQuery.d.ts.map +1 -0
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/treeQuery.d.ts +31 -0
- package/dist/components/Tree/treeQuery.d.ts.map +1 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +1 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +72 -72
- package/dist/confirm-dialog/index.js +2 -2
- package/dist/confirm-dialog/style.css +75 -124
- package/dist/confirm-popup/index.js +2 -2
- package/dist/confirm-popup/style.css +72 -78
- package/dist/context-menu/index.js +2 -2
- package/dist/context-menu/style.css +10 -75
- package/dist/data-view/index.js +47 -47
- package/dist/data-view/style.css +393 -174
- package/dist/data-view/style.js +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +10 -67
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +75 -124
- package/dist/divider/style.css +10 -61
- package/dist/dock/index.js +2 -2
- package/dist/dock/style.css +10 -77
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +12 -118
- package/dist/dropdown/index.js +110 -91
- package/dist/dropdown/style.css +34 -80
- package/dist/empty/index.js +5 -150
- package/dist/empty/style.css +10 -67
- package/dist/fieldset/index.js +1 -1
- package/dist/fieldset/style.css +10 -74
- package/dist/file-upload/index.js +148 -146
- package/dist/file-upload/style.css +10 -67
- package/dist/filterByQuery-Bczaxzih.js +17 -0
- package/dist/flex/style.css +10 -61
- package/dist/float-label/style.css +10 -61
- package/dist/fluid/style.css +10 -61
- package/dist/form/style.css +10 -61
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +10 -83
- package/dist/grid/style.css +10 -61
- package/dist/icon/index.js +93 -39
- package/dist/icon/style.css +10 -67
- package/dist/icon-COrt_N8A.js +18 -0
- package/dist/icon-field/style.css +10 -61
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5400 -5145
- package/dist/inplace/style.css +10 -61
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +10 -67
- package/dist/input-color/style.css +10 -61
- package/dist/input-group/style.css +10 -61
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style.css +10 -67
- package/dist/input-otp/style.css +10 -61
- package/dist/input-password/index.js +1 -1
- package/dist/input-password/style.css +10 -67
- package/dist/input-tags/index.js +1 -1
- package/dist/input-tags/style.css +10 -67
- package/dist/knob/style.css +10 -67
- package/dist/label/style.css +10 -61
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +15 -89
- package/dist/listbox/index.js +30 -32
- package/dist/listbox/style.css +10 -69
- package/dist/loading/index.js +32 -446
- package/dist/loading/style.css +10 -77
- package/dist/mega-menu/index.js +2 -2
- package/dist/mega-menu/style.css +10 -67
- package/dist/menu/index.js +265 -255
- package/dist/menu/style.css +36 -99
- package/dist/menubar/index.js +6 -3
- package/dist/menubar/style.css +14 -75
- package/dist/message/index.js +1 -1
- package/dist/message/style.css +10 -80
- package/dist/meter-group/style.css +10 -61
- package/dist/order-list/index.js +1 -1
- package/dist/order-list/style.css +10 -67
- package/dist/page/index.js +229 -70
- package/dist/page/style.css +1186 -113
- package/dist/page/style.js +3 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +210 -77
- package/dist/pagination/style.js +1 -0
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +10 -74
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +10 -67
- package/dist/popover/style.css +30 -78
- package/dist/progress-bar/style.css +10 -70
- package/dist/progress-spinner/index.js +105 -2
- package/dist/progress-spinner/style.css +10 -68
- package/dist/radio/style.css +10 -61
- package/dist/rating/index.js +1 -1
- package/dist/rating/style.css +10 -67
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +10 -67
- package/dist/scroll-top/index.js +1 -1
- package/dist/scroll-top/style.css +10 -82
- package/dist/scrollbar/style.css +10 -69
- package/dist/select/index.js +2 -478
- package/dist/select/style.css +59 -89
- package/dist/select-button/style.css +10 -61
- package/dist/shared/config.d.ts +2 -2
- package/dist/shared/filterByQuery.d.ts +14 -0
- package/dist/shared/filterByQuery.d.ts.map +1 -0
- package/dist/shared/menu/expand.d.ts +38 -0
- package/dist/shared/menu/expand.d.ts.map +1 -0
- package/dist/shared/menu/icon.d.ts.map +1 -1
- package/dist/shared/menu/index.d.ts +2 -0
- package/dist/shared/menu/index.d.ts.map +1 -1
- package/dist/shared/styles/select-overlay.css +14 -6
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/style.css +10 -73
- package/dist/skeleton/index.js +2 -59
- package/dist/skeleton/style.css +10 -67
- package/dist/slider/style.css +19 -61
- package/dist/space/style.css +10 -61
- package/dist/speed-dial/index.js +2 -2
- package/dist/speed-dial/style.css +10 -67
- package/dist/split-button/index.js +1 -1
- package/dist/split-button/style.css +77 -78
- package/dist/splitter/style.css +10 -61
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +10 -74
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/style.css +10 -67
- package/dist/styles/base.css +5 -50
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +10 -68
- package/dist/table/index.js +409 -373
- package/dist/table/style.css +457 -215
- package/dist/table/style.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +10 -75
- package/dist/tag/index.js +1 -1
- package/dist/tag/style.css +10 -67
- package/dist/terminal/style.css +10 -61
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +10 -67
- package/dist/theme/styles.css +5 -11
- package/dist/theme/useMotion.d.ts +5 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/tiered-menu/index.js +1 -1
- package/dist/tiered-menu/style.css +10 -75
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +10 -75
- package/dist/toast/index.js +1 -1
- package/dist/toast/style.css +10 -67
- package/dist/toggle-button/index.js +2 -2
- package/dist/toggle-button/style.css +10 -67
- package/dist/toolbar/style.css +10 -61
- package/dist/tooltip/style.css +10 -61
- package/dist/tree/index.js +159 -173
- package/dist/tree/style.css +10 -67
- package/dist/tree-select/index.js +200 -213
- package/dist/tree-select/style.css +25 -82
- package/dist/tree-table/index.js +1 -1
- package/dist/tree-table/style.css +10 -67
- package/dist/treeQuery-CnHkyYOA.js +107 -0
- package/dist/virtual-scroller/style.css +10 -69
- package/package.json +1 -1
- package/dist/Button-B5X_R4Md.js +0 -156
- package/dist/Icon-lcN1rS87.js +0 -610
- package/dist/Pagination-CVrH8Ypi.js +0 -158
- package/dist/ProgressSpinner-BeWVF6Jv.js +0 -105
- package/dist/checkStrategy-CZzuUKDI.js +0 -63
- package/dist/components/Icon/icons-tabler.d.ts +0 -77
- package/dist/components/Icon/icons-tabler.d.ts.map +0 -1
- package/dist/icon-DWXkh-RM.js +0 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableLoadingLine.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableLoadingLine.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TableLoadingLine.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableLoadingLine.vue"],"names":[],"mappings":";AAwCA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExpandableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/hooks/useExpandableRow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"useExpandableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/hooks/useExpandableRow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAKhD,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC,EACxD,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EACnB,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,EACrC,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI;;0BAQ7B,SAAS,aAAa,MAAM;4BAG1B,SAAS,aAAa,MAAM,SAAS,KAAK;EAa1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTotalItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/hooks/useTotalItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"useTotalItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/hooks/useTotalItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AASnE,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,GAAG,IAAI,CAAC,EAChD,aAAa,EAAE,GAAG,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC,EAC9C,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,EAC5C,gBAAgB,EAAE,WAAW,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC,EACvB,aAAa,EAAE,GAAG,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,EACtC,WAAW,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EACnC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,EACxB,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,EACvB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EACnB,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI;;;;iCA2BtB,OAAO;6BAKX,SAAS;EAiB1C"}
|
|
@@ -161,15 +161,15 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.m-table__header-inner {
|
|
164
|
-
display:
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: row;
|
|
165
166
|
align-items: center;
|
|
166
167
|
gap: var(--m-space-1);
|
|
167
168
|
box-sizing: border-box;
|
|
169
|
+
width: 100%;
|
|
168
170
|
max-width: 100%;
|
|
169
171
|
padding: 0 var(--m-table-cell-padding-inline);
|
|
170
172
|
overflow: hidden;
|
|
171
|
-
line-height: var(--m-table-cell-line-height);
|
|
172
|
-
vertical-align: middle;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.m-table__header-inner--left {
|
|
@@ -185,47 +185,47 @@
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
.m-table__header-text {
|
|
188
|
+
min-width: 0;
|
|
188
189
|
overflow: hidden;
|
|
189
190
|
text-overflow: ellipsis;
|
|
190
191
|
white-space: nowrap;
|
|
192
|
+
line-height: var(--m-table-cell-line-height);
|
|
191
193
|
}
|
|
192
194
|
|
|
193
|
-
.m-
|
|
194
|
-
|
|
195
|
-
display: inline-flex;
|
|
195
|
+
.m-table__sort {
|
|
196
|
+
display: flex;
|
|
196
197
|
flex-direction: column;
|
|
197
198
|
flex-shrink: 0;
|
|
198
199
|
align-items: center;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
vertical-align: middle;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
gap: 2px;
|
|
202
|
+
line-height: 0;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
.m-table__sort-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
border: calc(var(--m-space-1) + 1px) solid transparent;
|
|
205
|
+
.m-table__sort-icon.m-icon {
|
|
206
|
+
display: block;
|
|
207
|
+
width: 0.75rem;
|
|
208
|
+
height: 0.375rem;
|
|
209
|
+
color: color-mix(in srgb, var(--m-color-text-muted) 55%, transparent);
|
|
211
210
|
}
|
|
212
211
|
|
|
213
|
-
.m-table__sort-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
.m-table__sort-icon--ascending,
|
|
213
|
+
.m-table__sort-icon--descending {
|
|
214
|
+
margin: 0;
|
|
216
215
|
}
|
|
217
216
|
|
|
218
|
-
.m-
|
|
219
|
-
|
|
220
|
-
border-top-color: color-mix(in srgb, var(--m-color-text-muted) 55%, transparent);
|
|
217
|
+
.m-table__header-cell--sortable:hover .m-table__sort-icon {
|
|
218
|
+
color: color-mix(in srgb, var(--m-color-text-muted) 80%, transparent);
|
|
221
219
|
}
|
|
222
220
|
|
|
223
|
-
.m-table__header-cell--ascending .m-table__sort-
|
|
224
|
-
|
|
221
|
+
.m-table__header-cell--ascending .m-table__sort-icon--ascending,
|
|
222
|
+
.m-table__header-cell--descending .m-table__sort-icon--descending {
|
|
223
|
+
color: var(--m-color-primary);
|
|
225
224
|
}
|
|
226
225
|
|
|
227
|
-
.m-table__header-cell--
|
|
228
|
-
|
|
226
|
+
.m-table__header-cell--sortable:hover.m-table__header-cell--ascending .m-table__sort-icon--ascending,
|
|
227
|
+
.m-table__header-cell--sortable:hover.m-table__header-cell--descending .m-table__sort-icon--descending {
|
|
228
|
+
color: var(--m-color-primary);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.m-table__multi-sort-number {
|
|
@@ -387,30 +387,41 @@
|
|
|
387
387
|
.m-table__cell--expanded {
|
|
388
388
|
padding: var(--m-space-4) calc(var(--m-table-cell-padding-inline) * 2);
|
|
389
389
|
background: var(--m-table-expanded-bg);
|
|
390
|
+
position: relative;
|
|
390
391
|
}
|
|
391
392
|
|
|
392
393
|
.m-table__cell--expanded:hover {
|
|
393
394
|
background: var(--m-table-expanded-bg) !important;
|
|
394
395
|
}
|
|
395
396
|
|
|
396
|
-
.m-table__loading {
|
|
397
|
+
.m-table__loading-line {
|
|
398
|
+
background: color-mix(in srgb, var(--m-color-primary) 16%, transparent);
|
|
399
|
+
border-radius: var(--m-radius-full);
|
|
400
|
+
height: calc(var(--m-space-1) / 2);
|
|
401
|
+
left: 0;
|
|
402
|
+
overflow: hidden;
|
|
397
403
|
position: absolute;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
display: flex;
|
|
401
|
-
align-items: center;
|
|
402
|
-
justify-content: center;
|
|
404
|
+
top: 0;
|
|
405
|
+
width: 100%;
|
|
403
406
|
}
|
|
404
407
|
|
|
405
|
-
.m-table__loading-
|
|
408
|
+
.m-table__loading-line::before {
|
|
409
|
+
animation: m-table-loading-line var(--m-motion-pulse) var(--m-motion-ease) infinite;
|
|
410
|
+
background: var(--m-color-primary);
|
|
411
|
+
border-radius: inherit;
|
|
412
|
+
content: '';
|
|
413
|
+
inset: 0 auto 0 0;
|
|
406
414
|
position: absolute;
|
|
407
|
-
|
|
408
|
-
background: color-mix(in srgb, var(--m-color-surface) 72%, transparent);
|
|
415
|
+
width: 40%;
|
|
409
416
|
}
|
|
410
417
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
418
|
+
@keyframes m-table-loading-line {
|
|
419
|
+
0% {
|
|
420
|
+
transform: translateX(-120%);
|
|
421
|
+
}
|
|
422
|
+
100% {
|
|
423
|
+
transform: translateX(320%);
|
|
424
|
+
}
|
|
414
425
|
}
|
|
415
426
|
|
|
416
427
|
.m-table__message {
|
|
@@ -470,10 +481,16 @@
|
|
|
470
481
|
max-width: 100%;
|
|
471
482
|
}
|
|
472
483
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
484
|
+
[data-m-motion="reduced"] .m-table__header th,
|
|
485
|
+
[data-m-motion="reduced"] .m-table__body td,
|
|
486
|
+
[data-m-motion="reduced"] .m-table__expand-btn,
|
|
487
|
+
[data-m-motion="none"] .m-table__header th,
|
|
488
|
+
[data-m-motion="none"] .m-table__body td,
|
|
489
|
+
[data-m-motion="none"] .m-table__expand-btn {
|
|
490
|
+
transition: none;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
[data-m-motion="reduced"] .m-table__loading-line::before,
|
|
494
|
+
[data-m-motion="none"] .m-table__loading-line::before {
|
|
495
|
+
animation: none;
|
|
479
496
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TableFilterOption, TableItem } from './types';
|
|
2
|
+
/** Compare two cell values; numeric when both sides are numbers, lexical otherwise. */
|
|
3
|
+
export declare function compareTableValues(left: unknown, right: unknown, sortDesc: boolean): number;
|
|
4
|
+
/** Match a cell value against a simple filters-map criteria. */
|
|
5
|
+
export declare function matchesFilterCriteria(itemValue: unknown, criteria: unknown): boolean;
|
|
6
|
+
/** Match a row against one structured filter option. */
|
|
7
|
+
export declare function matchesFilterOption(item: TableItem, option: TableFilterOption): boolean;
|
|
8
|
+
/** Apply `filters` map and optional `filterOptions` list. */
|
|
9
|
+
export declare function filterTableItems(items: TableItem[], filters?: Record<string, unknown> | null, filterOptions?: TableFilterOption[] | null): TableItem[];
|
|
10
|
+
/** Build the searchable text blob for one row. */
|
|
11
|
+
export declare function buildSearchTarget(item: TableItem, searchField: string | string[]): string;
|
|
12
|
+
/** Case-insensitive substring search across configured fields. */
|
|
13
|
+
export declare function searchTableItems(items: TableItem[], searchValue: string, searchField?: string | string[]): TableItem[];
|
|
14
|
+
/** Client-side single- or multi-column sort. Returns a new array. */
|
|
15
|
+
export declare function sortTableItems(items: TableItem[], sortBy: string | string[], sortDesc: boolean | boolean[], multiSort?: boolean): TableItem[];
|
|
16
|
+
/** Toggle one expanded-row key. */
|
|
17
|
+
export declare function toggleExpandedRowKeys(keys: Array<string | number>, key: string | number): {
|
|
18
|
+
next: Array<string | number>;
|
|
19
|
+
expanded: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Compute the next multi-select selection for a row toggle.
|
|
23
|
+
* Strips transient `checkbox` / `index` fields from the toggled row.
|
|
24
|
+
*/
|
|
25
|
+
export declare function toggleSelectedItems(selected: TableItem[], item: TableItem, rowKey?: string): {
|
|
26
|
+
next: TableItem[];
|
|
27
|
+
selected: boolean;
|
|
28
|
+
row: TableItem;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=tableQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableQuery.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAG3D,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAW3F;AAED,gEAAgE;AAChE,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAMpF;AAED,wDAAwD;AACxD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,GAAG,OAAO,CA6BvF;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAAE,EAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACxC,aAAa,CAAC,EAAE,iBAAiB,EAAE,GAAG,IAAI,GACzC,SAAS,EAAE,CAcb;AAED,kDAAkD;AAClD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,GAC7B,MAAM,CAQR;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAAE,EAClB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,MAAM,GAAG,MAAM,EAAO,GAClC,SAAS,EAAE,CAIb;AAwBD,qEAAqE;AACrE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,EAAE,EAClB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,QAAQ,EAAE,OAAO,GAAG,OAAO,EAAE,EAC7B,SAAS,UAAQ,GAChB,SAAS,EAAE,CAab;AAED,mCAAmC;AACnC,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAC5B,GAAG,EAAE,MAAM,GAAG,MAAM,GACnB;IAAE,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CASrD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,EAAE,EACrB,IAAI,EAAE,SAAS,EACf,MAAM,SAAO,GACZ;IAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,SAAS,CAAA;CAAE,CAa1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/Tree.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Tree.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/Tree.vue"],"names":[],"mappings":";AAoaA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAqehB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO7C,QAAA,MAAM,UAAU;;;cA7boB,QAAQ;qBAAe,eAAe;;;;;;;;iBAC/B,MAAM;iBAAW,MAAM;kBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ;;;;;cAF7D,QAAQ;eAAS,OAAO;;;;;cAClC,QAAQ;qBAAe,eAAe;;;;;;;;iBAC/B,MAAM;iBAAW,MAAM;kBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ;;;;;cAF7D,QAAQ;eAAS,OAAO;;;;;;;;;;;;;;;;6EAkcpE,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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TreeExpandedKeys, TreeNode } from './types';
|
|
2
|
+
/** Default label matcher used by Tree filter. */
|
|
3
|
+
export declare function matchTreeNodeByLabel(value: string, data: {
|
|
4
|
+
label: string;
|
|
5
|
+
}): boolean;
|
|
6
|
+
/** True when the node or any descendant matches the filter. */
|
|
7
|
+
export declare function treeNodeMatchesFilter(node: TreeNode, query: string, matcher?: (value: string, data: TreeNode) => boolean): boolean;
|
|
8
|
+
/** Keep roots that match themselves or contain a matching descendant. */
|
|
9
|
+
export declare function filterTreeRoots(nodes: TreeNode[], query: string, matcher?: (value: string, data: TreeNode) => boolean): TreeNode[];
|
|
10
|
+
/**
|
|
11
|
+
* Prune a tree to matching nodes (TreeSelect-style).
|
|
12
|
+
* Matching parents keep unmatched children; matching leaves bubble up.
|
|
13
|
+
*/
|
|
14
|
+
export declare function filterTreePrune<T extends {
|
|
15
|
+
label: string;
|
|
16
|
+
children?: T[];
|
|
17
|
+
}>(nodes: T[], query: string): T[];
|
|
18
|
+
/** Collect keys of all nodes that have children (defaultExpandAll). */
|
|
19
|
+
export declare function collectExpandableTreeKeys(nodes: TreeNode[]): TreeExpandedKeys;
|
|
20
|
+
/**
|
|
21
|
+
* Toggle one expanded key.
|
|
22
|
+
* - `mode: 'delete'` (Tree): closing removes the key
|
|
23
|
+
* - `mode: 'boolean'` (TreeSelect): closing stores `false`
|
|
24
|
+
*/
|
|
25
|
+
export declare function toggleTreeExpandedKey(expanded: TreeExpandedKeys, key: string, options?: {
|
|
26
|
+
accordion?: boolean;
|
|
27
|
+
/** Override detected open state (e.g. filter-forced expand). */
|
|
28
|
+
open?: boolean;
|
|
29
|
+
mode?: 'delete' | 'boolean';
|
|
30
|
+
}): TreeExpandedKeys;
|
|
31
|
+
//# sourceMappingURL=treeQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treeQuery.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/treeQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIzD,iDAAiD;AACjD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAEpF;AAED,+DAA+D;AAC/D,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,OAA8B,GACzE,OAAO,CAKT;AAED,yEAAyE;AACzE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,EAAE,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,OAAO,GACnD,QAAQ,EAAE,CAGZ;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;CAAE,EACzE,KAAK,EAAE,CAAC,EAAE,EACV,KAAK,EAAE,MAAM,GACZ,CAAC,EAAE,CAcL;AAED,uEAAuE;AACvE,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAM7E;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,gBAAgB,EAC1B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gEAAgE;IAChE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CACvB,GACL,gBAAgB,CAclB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TreeSelect/TreeSelect.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"TreeSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TreeSelect/TreeSelect.vue"],"names":[],"mappings":";;AAufA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAsuB/E,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAS7C,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"}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
.m-treeselect__panel:has(.m-treeselect__filter) {
|
|
104
104
|
--m-treeselect-list-max-height: calc(
|
|
105
|
-
var(--m-treeselect-panel-max-height) - var(--m-control-height-
|
|
105
|
+
var(--m-treeselect-panel-max-height) - var(--m-control-height-small) - var(--m-space-6)
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -52,7 +52,7 @@ function A(e, t) {
|
|
|
52
52
|
n && (e === !1 ? n.dataset.mIgnoreReducedMotion = "true" : delete n.dataset.mIgnoreReducedMotion);
|
|
53
53
|
}
|
|
54
54
|
function j() {
|
|
55
|
-
return
|
|
55
|
+
return "full";
|
|
56
56
|
}
|
|
57
57
|
function M() {
|
|
58
58
|
let e = _(T, E);
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
--m-font-size-sm: 0.8125rem;
|
|
51
51
|
--m-font-size-md: 0.875rem;
|
|
52
52
|
--m-font-size-lg: 1.125rem;
|
|
53
|
+
/* Display scale (page titles, KPI figures) */
|
|
54
|
+
--m-font-size-xl: 1.25rem;
|
|
55
|
+
--m-font-size-2xl: 1.5rem;
|
|
56
|
+
--m-font-size-3xl: 1.75rem;
|
|
53
57
|
--m-opacity-disabled: 0.55;
|
|
54
58
|
/* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
|
|
55
59
|
--m-z-base: 1000;
|
|
@@ -192,20 +196,10 @@
|
|
|
192
196
|
|
|
193
197
|
/*
|
|
194
198
|
* Global motion policy (complements per-component rules):
|
|
195
|
-
* - `reduced
|
|
199
|
+
* - `reduced`: keep short paint transitions; stop loops
|
|
196
200
|
* and layout/transform size animation.
|
|
197
201
|
* - `none`: zero all transition/animation durations.
|
|
198
202
|
*/
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
html:not([data-m-ignore-reduced-motion]) *,
|
|
201
|
-
html:not([data-m-ignore-reduced-motion]) *::before,
|
|
202
|
-
html:not([data-m-ignore-reduced-motion]) *::after {
|
|
203
|
-
animation-duration: 0.01ms !important;
|
|
204
|
-
animation-iteration-count: 1 !important;
|
|
205
|
-
transition-property: background-color, border-color, color, opacity, box-shadow,
|
|
206
|
-
outline, fill, stroke, stroke-dashoffset !important;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
203
|
|
|
210
204
|
[data-m-motion="reduced"] *,
|
|
211
205
|
[data-m-motion="reduced"] *::before,
|
|
@@ -529,9 +523,13 @@
|
|
|
529
523
|
border-radius: var(--m-radius-md);
|
|
530
524
|
box-shadow: var(--m-shadow-md);
|
|
531
525
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
526
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
527
|
min-width: 10rem;
|
|
533
528
|
overflow: hidden;
|
|
534
529
|
padding: var(--m-space-1);
|
|
530
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
531
|
+
by the space left of the anchor in the viewport. */
|
|
532
|
+
width: max-content;
|
|
535
533
|
}
|
|
536
534
|
|
|
537
535
|
.m-dropdown__submenu--teleported {
|
|
@@ -611,7 +609,7 @@
|
|
|
611
609
|
.m-zoom-enter-from,
|
|
612
610
|
.m-zoom-leave-to {
|
|
613
611
|
opacity: 0;
|
|
614
|
-
transform: scale(0.
|
|
612
|
+
transform: scale(0.95);
|
|
615
613
|
}
|
|
616
614
|
|
|
617
615
|
.m-slide-up-enter-active,
|
|
@@ -656,44 +654,6 @@
|
|
|
656
654
|
transform: translateX(calc(var(--m-motion-distance) * -1));
|
|
657
655
|
}
|
|
658
656
|
|
|
659
|
-
@media (prefers-reduced-motion: reduce) {
|
|
660
|
-
html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
|
|
661
|
-
html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
|
|
662
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
|
|
663
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
|
|
664
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
|
|
665
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active,
|
|
666
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active,
|
|
667
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active,
|
|
668
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active,
|
|
669
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active,
|
|
670
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active,
|
|
671
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active,
|
|
672
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active,
|
|
673
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active,
|
|
674
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active,
|
|
675
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active {
|
|
676
|
-
transition: none;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
|
|
680
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
|
|
681
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
|
|
682
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to,
|
|
683
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from,
|
|
684
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to,
|
|
685
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from,
|
|
686
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to,
|
|
687
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from,
|
|
688
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to,
|
|
689
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from,
|
|
690
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to,
|
|
691
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from,
|
|
692
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to {
|
|
693
|
-
transform: none;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
|
|
697
657
|
[data-m-motion="reduced"] .m-fade-enter-active,
|
|
698
658
|
[data-m-motion="reduced"] .m-fade-leave-active,
|
|
699
659
|
[data-m-motion="reduced"] .m-scale-fade-enter-active,
|
|
@@ -1188,17 +1148,6 @@
|
|
|
1188
1148
|
animation: none !important;
|
|
1189
1149
|
}
|
|
1190
1150
|
|
|
1191
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1192
|
-
html:not([data-m-ignore-reduced-motion]) *,
|
|
1193
|
-
html:not([data-m-ignore-reduced-motion]) *::before,
|
|
1194
|
-
html:not([data-m-ignore-reduced-motion]) *::after {
|
|
1195
|
-
animation-duration: 0.01ms !important;
|
|
1196
|
-
animation-iteration-count: 1 !important;
|
|
1197
|
-
scroll-behavior: auto !important;
|
|
1198
|
-
transition-duration: 0.01ms !important;
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
1151
|
.m-button {
|
|
1203
1152
|
--m-button-padding-x-small: var(--m-control-padding-x-small);
|
|
1204
1153
|
--m-button-padding-x-medium: calc(
|
|
@@ -1244,21 +1193,28 @@
|
|
|
1244
1193
|
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
1245
1194
|
color var(--m-motion-fast) var(--m-motion-ease),
|
|
1246
1195
|
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
1247
|
-
opacity var(--m-motion-fast) var(--m-motion-ease)
|
|
1196
|
+
opacity var(--m-motion-fast) var(--m-motion-ease),
|
|
1197
|
+
transform 160ms var(--m-motion-ease);
|
|
1248
1198
|
vertical-align: middle;
|
|
1249
1199
|
white-space: nowrap;
|
|
1250
1200
|
}
|
|
1251
1201
|
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1202
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1203
|
+
.m-button:hover:not(:disabled) {
|
|
1204
|
+
background: var(--m-button-hover-bg);
|
|
1205
|
+
border-color: var(--m-button-hover-border);
|
|
1206
|
+
color: var(--m-button-hover-fg);
|
|
1207
|
+
}
|
|
1256
1208
|
}
|
|
1257
1209
|
|
|
1258
1210
|
.m-button:active:not(:disabled) {
|
|
1259
1211
|
background: var(--m-button-active-bg);
|
|
1260
1212
|
}
|
|
1261
1213
|
|
|
1214
|
+
.m-button--press:active:not(:disabled) {
|
|
1215
|
+
transform: scale(0.97);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1262
1218
|
/* Naive-style focus: soft glow, not outline-offset ring */
|
|
1263
1219
|
.m-button:focus {
|
|
1264
1220
|
outline: none;
|
|
@@ -1780,6 +1736,52 @@
|
|
|
1780
1736
|
justify-content: center;
|
|
1781
1737
|
}
|
|
1782
1738
|
|
|
1739
|
+
.m-button__icon,
|
|
1740
|
+
.m-button__label,
|
|
1741
|
+
.m-button__badge {
|
|
1742
|
+
position: relative;
|
|
1743
|
+
z-index: 1;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
.m-button__ripple {
|
|
1747
|
+
border-radius: inherit;
|
|
1748
|
+
inset: 0;
|
|
1749
|
+
overflow: hidden;
|
|
1750
|
+
pointer-events: none;
|
|
1751
|
+
position: absolute;
|
|
1752
|
+
z-index: 0;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
.m-button__ripple-wave {
|
|
1756
|
+
background: currentColor;
|
|
1757
|
+
border-radius: var(--m-radius-full);
|
|
1758
|
+
opacity: 0;
|
|
1759
|
+
pointer-events: none;
|
|
1760
|
+
position: absolute;
|
|
1761
|
+
transform: scale(0);
|
|
1762
|
+
will-change: transform, opacity;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
/* Used only when Web Animations API is unavailable. */
|
|
1766
|
+
.m-button__ripple-wave--fallback {
|
|
1767
|
+
animation: m-button-ripple 560ms var(--m-motion-ease) forwards;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
@keyframes m-button-ripple {
|
|
1771
|
+
0% {
|
|
1772
|
+
opacity: 0.42;
|
|
1773
|
+
transform: scale(0);
|
|
1774
|
+
}
|
|
1775
|
+
55% {
|
|
1776
|
+
opacity: 0.22;
|
|
1777
|
+
transform: scale(0.55);
|
|
1778
|
+
}
|
|
1779
|
+
100% {
|
|
1780
|
+
opacity: 0;
|
|
1781
|
+
transform: scale(1);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1783
1785
|
.m-button__icon {
|
|
1784
1786
|
flex: 0 0 auto;
|
|
1785
1787
|
width: var(--m-button-icon-size);
|
|
@@ -1863,17 +1865,15 @@
|
|
|
1863
1865
|
}
|
|
1864
1866
|
}
|
|
1865
1867
|
|
|
1866
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1867
|
-
html:not([data-m-ignore-reduced-motion]) .m-button__spinner {
|
|
1868
|
-
animation: none;
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
1868
|
[data-m-motion="reduced"] .m-button__spinner,
|
|
1873
1869
|
[data-m-motion="none"] .m-button__spinner {
|
|
1874
1870
|
animation: none;
|
|
1875
1871
|
}
|
|
1876
1872
|
|
|
1873
|
+
[data-m-motion="none"] .m-button__ripple-wave {
|
|
1874
|
+
display: none;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
1877
|
.m-input:focus {
|
|
1878
1878
|
outline: none;
|
|
1879
1879
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-od9Ob-Ay.js";
|
|
3
3
|
import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
|
|
4
|
-
import { t as r } from "../Button-
|
|
4
|
+
import { t as r } from "../Button-dMqRmoYa.js";
|
|
5
5
|
import { n as i } from "../overlay-oR-5MDuE.js";
|
|
6
6
|
import { t as a } from "../useModalOverlay-Beo3CEAt.js";
|
|
7
7
|
import { t as o } from "../asyncGuard-CPGT_TKu.js";
|