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
|
@@ -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
|
/* —— Misc: MeterGroup —— */
|
|
1203
1152
|
.m-metergroup {
|
|
1204
1153
|
--m-metergroup-meter-height: var(--m-meter-track-height);
|
package/dist/order-list/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 "../useMenuKeyboard-BedmYE4W.js";
|
|
4
4
|
import { t as r } from "../ScrollBody-5hUnHj_M.js";
|
|
5
5
|
import { n as i } from "../locale-Bzm2nbEp.js";
|
|
@@ -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-icon {
|
|
1203
1152
|
color: currentColor;
|
|
1204
1153
|
display: inline-flex;
|
|
@@ -1243,12 +1192,6 @@
|
|
|
1243
1192
|
}
|
|
1244
1193
|
}
|
|
1245
1194
|
|
|
1246
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1247
|
-
html:not([data-m-ignore-reduced-motion]) .m-icon--spin svg {
|
|
1248
|
-
animation: none;
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
1195
|
:root[data-m-motion='none'] .m-icon--spin svg,
|
|
1253
1196
|
:root[data-m-motion='reduced'] .m-icon--spin svg {
|
|
1254
1197
|
animation: none;
|
package/dist/page/index.js
CHANGED
|
@@ -1,50 +1,123 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
3
|
-
import { t as n } from "../
|
|
4
|
-
import { r } from "../
|
|
2
|
+
import { t } from "../Icon-od9Ob-Ay.js";
|
|
3
|
+
import { t as n } from "../Button-dMqRmoYa.js";
|
|
4
|
+
import { t as r } from "../Card-B1CB9Trm.js";
|
|
5
|
+
import { t as i } from "../Empty-C5tndBOm.js";
|
|
6
|
+
import { r as a } from "../responsive-DA5bxylA.js";
|
|
7
|
+
import { t as o } from "../Skeleton-DCYdXAH2.js";
|
|
8
|
+
import { n as s } from "../locale-Bzm2nbEp.js";
|
|
5
9
|
import "./style.js";
|
|
6
|
-
import { computed as
|
|
10
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, mergeProps as y, normalizeClass as b, normalizeProps as x, openBlock as S, renderSlot as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useAttrs as D, useId as O, useSlots as k, withCtx as A } from "vue";
|
|
7
11
|
//#endregion
|
|
8
12
|
//#region src/components/Page/PageContent.vue
|
|
9
|
-
var
|
|
13
|
+
var j = /* @__PURE__ */ _({
|
|
10
14
|
name: "MPageContent",
|
|
11
15
|
inheritAttrs: !1,
|
|
12
16
|
__name: "PageContent",
|
|
13
17
|
props: {
|
|
14
18
|
pt: {},
|
|
15
19
|
density: { default: "default" },
|
|
16
|
-
width: { default: "full" }
|
|
20
|
+
width: { default: "full" },
|
|
21
|
+
bands: { default: "auto" }
|
|
17
22
|
},
|
|
18
23
|
setup(t) {
|
|
19
|
-
let n = t, r =
|
|
24
|
+
let n = t, r = D(), { rootAttrs: i } = e(r, () => n.pt), a = l(() => ["m-page-content", {
|
|
20
25
|
"m-page-content--compact": n.density === "compact",
|
|
21
26
|
"m-page-content--spacious": n.density === "spacious",
|
|
22
|
-
"m-page-content--narrow": n.width === "narrow"
|
|
27
|
+
"m-page-content--narrow": n.width === "narrow",
|
|
28
|
+
"m-page-content--bands-uniform": n.bands === "uniform"
|
|
23
29
|
}]);
|
|
24
|
-
return (e, t) => (
|
|
30
|
+
return (e, t) => (S(), f("div", y(E(i), { class: a.value }), [C(e.$slots, "default")], 16));
|
|
25
31
|
}
|
|
26
|
-
}),
|
|
27
|
-
|
|
32
|
+
}), M = ["aria-label"], ee = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "m-page-filter-chips__label"
|
|
35
|
+
}, N = { class: "m-page-filter-chips__items" }, P = /* @__PURE__ */ _({
|
|
36
|
+
name: "MPageFilterChips",
|
|
28
37
|
inheritAttrs: !1,
|
|
29
|
-
__name: "
|
|
38
|
+
__name: "PageFilterChips",
|
|
30
39
|
props: {
|
|
31
40
|
pt: {},
|
|
41
|
+
label: {},
|
|
32
42
|
ariaLabel: {}
|
|
33
43
|
},
|
|
34
44
|
setup(t) {
|
|
35
|
-
let n = t, r =
|
|
36
|
-
return (e, n) => (
|
|
37
|
-
class:
|
|
45
|
+
let n = t, r = D(), { rootAttrs: i } = e(r, () => n.pt), a = l(() => ["m-page-filter-chips"]);
|
|
46
|
+
return (e, n) => (S(), f("div", y(E(i), {
|
|
47
|
+
class: a.value,
|
|
48
|
+
role: "list",
|
|
38
49
|
"aria-label": t.ariaLabel
|
|
39
|
-
}), [
|
|
50
|
+
}), [t.label ? (S(), f("span", ee, T(t.label), 1)) : d("", !0), p("div", N, [C(e.$slots, "default")])], 16, M));
|
|
40
51
|
}
|
|
41
|
-
}),
|
|
52
|
+
}), F = ["aria-label"], I = { class: "m-page-filters__row" }, L = { class: "m-page-filters__controls" }, R = ["id"], z = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "m-page-filters__active"
|
|
55
|
+
}, B = /* @__PURE__ */ _({
|
|
56
|
+
name: "MPageFilters",
|
|
57
|
+
inheritAttrs: !1,
|
|
58
|
+
__name: "PageFilters",
|
|
59
|
+
props: {
|
|
60
|
+
pt: {},
|
|
61
|
+
ariaLabel: {},
|
|
62
|
+
variant: { default: "plain" },
|
|
63
|
+
collapsible: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
expanded: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: !1
|
|
70
|
+
},
|
|
71
|
+
expandLabel: {},
|
|
72
|
+
collapseLabel: {}
|
|
73
|
+
},
|
|
74
|
+
emits: ["update:expanded"],
|
|
75
|
+
setup(t, { emit: r }) {
|
|
76
|
+
let i = t, a = r, o = k(), c = s(), m = O(), g = D(), { rootAttrs: _ } = e(g, () => i.pt), v = l(() => !!o.advanced), b = l(() => i.collapsible && v.value), x = l(() => i.expandLabel ?? `${c.expand ?? "Expand"} ${c.filterOptions ?? "filters"}`), w = l(() => i.collapseLabel ?? c.collapse), j = l(() => ["m-page-filters", {
|
|
77
|
+
"m-page-filters--filled": i.variant === "filled",
|
|
78
|
+
"m-page-filters--collapsible": b.value
|
|
79
|
+
}]);
|
|
80
|
+
function M() {
|
|
81
|
+
a("update:expanded", !i.expanded);
|
|
82
|
+
}
|
|
83
|
+
return (e, r) => (S(), f("section", y(E(_), {
|
|
84
|
+
class: j.value,
|
|
85
|
+
"aria-label": t.ariaLabel
|
|
86
|
+
}), [
|
|
87
|
+
p("div", I, [p("div", L, [C(e.$slots, "default")]), b.value ? (S(), u(n, {
|
|
88
|
+
key: 0,
|
|
89
|
+
type: "button",
|
|
90
|
+
severity: "secondary",
|
|
91
|
+
text: "",
|
|
92
|
+
class: "m-page-filters__toggle",
|
|
93
|
+
"aria-expanded": t.expanded,
|
|
94
|
+
"aria-controls": E(m),
|
|
95
|
+
onClick: M
|
|
96
|
+
}, {
|
|
97
|
+
default: A(() => [h(T(t.expanded ? w.value : x.value), 1)]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["aria-expanded", "aria-controls"])) : d("", !0)]),
|
|
100
|
+
b.value && t.expanded ? (S(), f("div", {
|
|
101
|
+
key: 0,
|
|
102
|
+
id: E(m),
|
|
103
|
+
class: "m-page-filters__advanced"
|
|
104
|
+
}, [C(e.$slots, "advanced")], 8, R)) : d("", !0),
|
|
105
|
+
e.$slots.active ? (S(), f("div", z, [C(e.$slots, "active")])) : d("", !0)
|
|
106
|
+
], 16, F));
|
|
107
|
+
}
|
|
108
|
+
}), V = { class: "m-page-header__main" }, H = {
|
|
109
|
+
key: 0,
|
|
110
|
+
class: "m-page-header__breadcrumb"
|
|
111
|
+
}, U = { class: "m-page-header__heading" }, W = {
|
|
42
112
|
key: 2,
|
|
113
|
+
class: "m-page-header__tags"
|
|
114
|
+
}, G = {
|
|
115
|
+
key: 1,
|
|
43
116
|
class: "m-page-header__description"
|
|
44
|
-
},
|
|
117
|
+
}, K = {
|
|
45
118
|
key: 0,
|
|
46
119
|
class: "m-page-header__actions"
|
|
47
|
-
},
|
|
120
|
+
}, q = /* @__PURE__ */ _({
|
|
48
121
|
name: "MPageHeader",
|
|
49
122
|
inheritAttrs: !1,
|
|
50
123
|
__name: "PageHeader",
|
|
@@ -55,16 +128,20 @@ var x = /* @__PURE__ */ u({
|
|
|
55
128
|
headingLevel: { default: 1 }
|
|
56
129
|
},
|
|
57
130
|
setup(t) {
|
|
58
|
-
let n = t, r =
|
|
59
|
-
return (e, n) => (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
131
|
+
let n = t, r = D(), { rootAttrs: i } = e(r, () => n.pt), a = k(), o = l(() => `h${n.headingLevel}`), s = l(() => !!a.actions);
|
|
132
|
+
return (e, n) => (S(), f("header", y(E(i), { class: "m-page-header" }), [p("div", V, [
|
|
133
|
+
E(a).breadcrumb ? (S(), f("div", H, [C(e.$slots, "breadcrumb")])) : d("", !0),
|
|
134
|
+
p("div", U, [t.title ? (S(), u(w(o.value), {
|
|
135
|
+
key: 0,
|
|
136
|
+
class: "m-page-header__title"
|
|
137
|
+
}, {
|
|
138
|
+
default: A(() => [h(T(t.title), 1)]),
|
|
139
|
+
_: 1
|
|
140
|
+
})) : C(e.$slots, "title", {}, void 0, void 0, 1), E(a).tags ? (S(), f("span", W, [C(e.$slots, "tags")])) : d("", !0)]),
|
|
141
|
+
t.description ? (S(), f("p", G, T(t.description), 1)) : E(a).description ? C(e.$slots, "description", {}, void 0, void 0, 2) : d("", !0)
|
|
142
|
+
]), s.value ? (S(), f("div", K, [C(e.$slots, "actions")])) : d("", !0)], 16));
|
|
66
143
|
}
|
|
67
|
-
}),
|
|
144
|
+
}), J = /* @__PURE__ */ _({
|
|
68
145
|
name: "MPagePlaceholder",
|
|
69
146
|
inheritAttrs: !1,
|
|
70
147
|
__name: "PagePlaceholder",
|
|
@@ -75,15 +152,42 @@ var x = /* @__PURE__ */ u({
|
|
|
75
152
|
minHeight: { default: "12rem" }
|
|
76
153
|
},
|
|
77
154
|
setup(t) {
|
|
78
|
-
let n = t,
|
|
79
|
-
return (e, n) => (
|
|
155
|
+
let n = t, r = D(), { rootAttrs: o } = e(r, () => n.pt), s = k(), c = l(() => ({ "--m-page-placeholder-min-height": a(n.minHeight) }));
|
|
156
|
+
return (e, n) => (S(), f("div", y(E(o), {
|
|
80
157
|
class: "m-page-placeholder",
|
|
81
|
-
role: "img",
|
|
82
|
-
"aria-label": t.ariaLabel,
|
|
83
158
|
style: c.value
|
|
84
|
-
}), [
|
|
159
|
+
}), [g(i, {
|
|
160
|
+
class: "m-page-placeholder__empty",
|
|
161
|
+
description: t.description,
|
|
162
|
+
"aria-label": t.ariaLabel
|
|
163
|
+
}, m({ _: 2 }, [
|
|
164
|
+
E(s).default ? {
|
|
165
|
+
name: "default",
|
|
166
|
+
fn: A(() => [C(e.$slots, "default")]),
|
|
167
|
+
key: "0"
|
|
168
|
+
} : void 0,
|
|
169
|
+
E(s).icon ? {
|
|
170
|
+
name: "icon",
|
|
171
|
+
fn: A(() => [C(e.$slots, "icon")]),
|
|
172
|
+
key: "1"
|
|
173
|
+
} : void 0,
|
|
174
|
+
E(s).extra ? {
|
|
175
|
+
name: "extra",
|
|
176
|
+
fn: A(() => [C(e.$slots, "extra")]),
|
|
177
|
+
key: "2"
|
|
178
|
+
} : void 0
|
|
179
|
+
]), 1032, ["description", "aria-label"])], 16));
|
|
85
180
|
}
|
|
86
|
-
}),
|
|
181
|
+
}), te = { class: "m-page-section__header" }, Y = { key: 1 }, X = {
|
|
182
|
+
key: 2,
|
|
183
|
+
class: "m-page-section__actions"
|
|
184
|
+
}, Z = {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: "m-page-section__header"
|
|
187
|
+
}, Q = { key: 1 }, ne = {
|
|
188
|
+
key: 2,
|
|
189
|
+
class: "m-page-section__actions"
|
|
190
|
+
}, re = /* @__PURE__ */ _({
|
|
87
191
|
name: "MPageSection",
|
|
88
192
|
inheritAttrs: !1,
|
|
89
193
|
__name: "PageSection",
|
|
@@ -94,26 +198,52 @@ var x = /* @__PURE__ */ u({
|
|
|
94
198
|
headingLevel: { default: 2 }
|
|
95
199
|
},
|
|
96
200
|
setup(t) {
|
|
97
|
-
let n = t,
|
|
201
|
+
let n = t, i = D(), { rootAttrs: a } = e(i, () => n.pt), o = k(), s = l(() => `h${n.headingLevel}`), c = l(() => !!(n.title || o.actions)), g = l(() => n.variant === "form"), _ = l(() => ["m-page-section", {
|
|
98
202
|
"m-page-section--muted": n.variant === "muted",
|
|
99
203
|
"m-page-section--form": n.variant === "form",
|
|
100
204
|
"m-page-section--actions": n.variant === "actions"
|
|
101
205
|
}]);
|
|
102
|
-
return (e, n) => (
|
|
206
|
+
return (e, n) => g.value ? (S(), u(r, y({ key: 0 }, E(a), {
|
|
207
|
+
class: _.value,
|
|
208
|
+
bordered: "",
|
|
209
|
+
"heading-level": t.headingLevel
|
|
210
|
+
}), m({
|
|
211
|
+
default: A(() => [C(e.$slots, "default")]),
|
|
212
|
+
_: 2
|
|
213
|
+
}, [c.value ? {
|
|
214
|
+
name: "header",
|
|
215
|
+
fn: A(() => [p("div", te, [t.title ? (S(), u(w(s.value), {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: "m-page-section__title"
|
|
218
|
+
}, {
|
|
219
|
+
default: A(() => [h(T(t.title), 1)]),
|
|
220
|
+
_: 1
|
|
221
|
+
})) : (S(), f("span", Y)), E(o).actions ? (S(), f("div", X, [C(e.$slots, "actions")])) : d("", !0)])]),
|
|
222
|
+
key: "0"
|
|
223
|
+
} : void 0]), 1040, ["class", "heading-level"])) : (S(), f("section", y({ key: 1 }, E(a), { class: _.value }), [c.value ? (S(), f("div", Z, [t.title ? (S(), u(w(s.value), {
|
|
103
224
|
key: 0,
|
|
104
225
|
class: "m-page-section__title"
|
|
105
226
|
}, {
|
|
106
|
-
default:
|
|
227
|
+
default: A(() => [h(T(t.title), 1)]),
|
|
107
228
|
_: 1
|
|
108
|
-
})) : o("", !0),
|
|
229
|
+
})) : (S(), f("span", Q)), E(o).actions ? (S(), f("div", ne, [C(e.$slots, "actions")])) : d("", !0)])) : d("", !0), C(e.$slots, "default")], 16));
|
|
109
230
|
}
|
|
110
|
-
}),
|
|
231
|
+
}), ie = { class: "m-page-stat__body" }, ae = { class: "m-page-stat__content" }, oe = {
|
|
111
232
|
key: 0,
|
|
112
233
|
class: "m-page-stat__label"
|
|
113
|
-
},
|
|
114
|
-
key:
|
|
234
|
+
}, $ = {
|
|
235
|
+
key: 0,
|
|
115
236
|
class: "m-page-stat__value"
|
|
116
|
-
},
|
|
237
|
+
}, se = {
|
|
238
|
+
key: 1,
|
|
239
|
+
class: "m-page-stat__meta"
|
|
240
|
+
}, ce = {
|
|
241
|
+
key: 1,
|
|
242
|
+
class: "m-page-stat__trend-label"
|
|
243
|
+
}, le = {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: "m-page-stat__icon"
|
|
246
|
+
}, ue = /* @__PURE__ */ _({
|
|
117
247
|
name: "MPageStat",
|
|
118
248
|
inheritAttrs: !1,
|
|
119
249
|
__name: "PageStat",
|
|
@@ -123,36 +253,65 @@ var x = /* @__PURE__ */ u({
|
|
|
123
253
|
value: {},
|
|
124
254
|
trend: {},
|
|
125
255
|
trendSeverity: { default: "primary" },
|
|
126
|
-
|
|
256
|
+
trendDirection: {},
|
|
257
|
+
trendLabel: {},
|
|
258
|
+
icon: {},
|
|
259
|
+
loading: { type: Boolean },
|
|
260
|
+
shadow: { default: "always" },
|
|
261
|
+
layout: { default: "card" },
|
|
262
|
+
density: { default: "default" },
|
|
263
|
+
orientation: { default: "stacked" }
|
|
127
264
|
},
|
|
128
|
-
setup(
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
}), {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
265
|
+
setup(n) {
|
|
266
|
+
let i = n, a = D(), { rootAttrs: s } = e(a, () => i.pt), m = l(() => ["m-page-stat", {
|
|
267
|
+
"m-page-stat--plain": i.layout === "plain",
|
|
268
|
+
"m-page-stat--compact": i.density === "compact",
|
|
269
|
+
"m-page-stat--inline": i.orientation === "inline"
|
|
270
|
+
}]), _ = l(() => i.layout === "card" ? r : "div"), y = l(() => {
|
|
271
|
+
let e = {
|
|
272
|
+
...s.value,
|
|
273
|
+
class: m.value,
|
|
274
|
+
"aria-label": i.label
|
|
275
|
+
};
|
|
276
|
+
return i.layout === "card" ? {
|
|
277
|
+
...e,
|
|
278
|
+
shadow: i.shadow
|
|
279
|
+
} : e;
|
|
280
|
+
}), E = l(() => ["m-page-stat__trend", `m-page-stat__trend--${i.trendSeverity}`]), O = l(() => {
|
|
281
|
+
if (i.trendDirection === "up") return "arrow-narrow-up";
|
|
282
|
+
if (i.trendDirection === "down") return "arrow-narrow-down";
|
|
283
|
+
}), k = l(() => !!(i.trend || i.trendLabel));
|
|
284
|
+
return (e, r) => (S(), u(w(_.value), x(v(y.value)), {
|
|
285
|
+
default: A(() => [p("div", ie, [p("div", ae, [n.label ? (S(), f("p", oe, T(n.label), 1)) : d("", !0), n.loading ? (S(), f(c, { key: 1 }, [g(o, {
|
|
286
|
+
width: "7rem",
|
|
287
|
+
height: "1.75rem"
|
|
288
|
+
}), k.value ? (S(), u(o, {
|
|
143
289
|
key: 0,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
290
|
+
text: "",
|
|
291
|
+
width: "4.5rem"
|
|
292
|
+
})) : d("", !0)], 64)) : (S(), f(c, { key: 2 }, [
|
|
293
|
+
n.value != null && n.value !== "" ? (S(), f("p", $, T(n.value), 1)) : d("", !0),
|
|
294
|
+
k.value ? (S(), f("div", se, [n.trend ? (S(), f("span", {
|
|
295
|
+
key: 0,
|
|
296
|
+
class: b(E.value)
|
|
297
|
+
}, [O.value ? (S(), u(t, {
|
|
298
|
+
key: 0,
|
|
299
|
+
name: O.value,
|
|
300
|
+
class: "m-page-stat__trend-icon",
|
|
301
|
+
"aria-hidden": "true"
|
|
302
|
+
}, null, 8, ["name"])) : d("", !0), h(" " + T(n.trend), 1)], 2)) : d("", !0), n.trendLabel ? (S(), f("span", ce, T(n.trendLabel), 1)) : d("", !0)])) : d("", !0),
|
|
303
|
+
C(e.$slots, "default")
|
|
304
|
+
], 64))]), n.icon ? (S(), f("span", le, [g(t, {
|
|
305
|
+
name: n.icon,
|
|
147
306
|
"aria-hidden": "true"
|
|
148
|
-
}, null, 8, ["name"])) :
|
|
307
|
+
}, null, 8, ["name"])])) : d("", !0)])]),
|
|
149
308
|
_: 3
|
|
150
|
-
}, 16
|
|
309
|
+
}, 16));
|
|
151
310
|
}
|
|
152
|
-
}),
|
|
311
|
+
}), de = {
|
|
153
312
|
key: 2,
|
|
154
313
|
class: "m-page-toolbar__actions"
|
|
155
|
-
},
|
|
314
|
+
}, fe = /* @__PURE__ */ _({
|
|
156
315
|
name: "MPageToolbar",
|
|
157
316
|
inheritAttrs: !1,
|
|
158
317
|
__name: "PageToolbar",
|
|
@@ -162,15 +321,15 @@ var x = /* @__PURE__ */ u({
|
|
|
162
321
|
headingLevel: { default: 1 }
|
|
163
322
|
},
|
|
164
323
|
setup(t) {
|
|
165
|
-
let n = t, r =
|
|
166
|
-
return (e, n) => (
|
|
324
|
+
let n = t, r = D(), { rootAttrs: i } = e(r, () => n.pt), a = k(), o = l(() => `h${n.headingLevel}`), s = l(() => !!a.actions);
|
|
325
|
+
return (e, n) => (S(), f("header", y(E(i), { class: "m-page-toolbar" }), [t.title ? (S(), u(w(o.value), {
|
|
167
326
|
key: 0,
|
|
168
327
|
class: "m-page-toolbar__title"
|
|
169
328
|
}, {
|
|
170
|
-
default:
|
|
329
|
+
default: A(() => [h(T(t.title), 1)]),
|
|
171
330
|
_: 1
|
|
172
|
-
})) :
|
|
331
|
+
})) : C(e.$slots, "default", {}, void 0, void 0, 1), s.value ? (S(), f("div", de, [C(e.$slots, "actions")])) : d("", !0)], 16));
|
|
173
332
|
}
|
|
174
333
|
});
|
|
175
334
|
//#endregion
|
|
176
|
-
export {
|
|
335
|
+
export { j as MPageContent, P as MPageFilterChips, B as MPageFilters, q as MPageHeader, J as MPagePlaceholder, re as MPageSection, ue as MPageStat, fe as MPageToolbar };
|