eco-vue-js 0.20.6 → 0.21.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/dist/assets/icons/IconDanger.js +6 -18
- package/dist/assets/icons/IconNotification.js +37 -0
- package/dist/assets/icons/IconSuccess.js +4 -8
- package/dist/assets/icons/IconWarn.js +6 -31
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +8 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue_vue_type_script_setup_true_lang.js +36 -9
- package/dist/components/Button/WButton.vue.d.ts +4 -4
- package/dist/components/Button/WButtonAction.vue.d.ts +6 -6
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -1
- package/dist/components/Button/WButtonDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/Button/WButtonMore.vue.d.ts +10 -5
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue_vue_type_script_setup_true_lang.js +50 -49
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue_vue_type_script_setup_true_lang.js +16 -26
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/Chart/WChartLinear.vue.d.ts +2 -2
- package/dist/components/Chart/WChartLinear.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +1 -1
- package/dist/components/Chip/WChip.vue.d.ts +1 -1
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +2 -2
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue_vue_type_script_setup_true_lang.js +13 -4
- package/dist/components/Counter/WCounter.vue.d.ts +1 -1
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/Dismissable/WDismissable.vue.d.ts +4 -2
- package/dist/components/Dismissable/WDismissable.vue.d.ts.map +1 -1
- package/dist/components/Dismissable/WDismissable.vue_vue_type_script_setup_true_lang.js +30 -5
- package/dist/components/Dropdown/WDropdown.vue.d.ts +2 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue_vue_type_script_setup_true_lang.js +18 -6
- package/dist/components/Dropdown/types.d.ts +6 -2
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownAdaptive.vue.d.ts +11 -16
- package/dist/components/DropdownMenu/WDropdownAdaptive.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownAdaptive.vue_vue_type_script_setup_true_lang.js +64 -49
- package/dist/components/DropdownMenu/WDropdownMenu.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/components/DropdownMenu/types.d.ts +9 -3
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +7 -3
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue_vue_type_script_setup_true_lang.js +5 -3
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +3 -3
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/Input/WInputDate.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue_vue_type_script_setup_true_lang.js +1 -5
- package/dist/components/Input/WInputSuggest.vue.d.ts +8 -8
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue_vue_type_script_setup_true_lang.js +45 -46
- package/dist/components/Input/components/InputActionsButton.vue.d.ts +1 -1
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputSuggestEmbedded.vue.d.ts +19 -0
- package/dist/components/Input/components/InputSuggestEmbedded.vue.d.ts.map +1 -0
- package/dist/components/Input/components/InputSuggestEmbedded.vue.js +5 -0
- package/dist/components/Input/components/InputSuggestEmbedded.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/Link/WLink.vue.d.ts +3 -3
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderExport.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderExport.vue_vue_type_script_setup_true_lang.js +23 -29
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue_vue_type_script_setup_true_lang.js +16 -18
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue_vue_type_script_setup_true_lang.js +34 -41
- package/dist/components/List/components/ListFilterLocalItem.vue.d.ts +1 -1
- package/dist/components/List/components/ListFilterLocalItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListFilterLocalItem.vue_vue_type_script_setup_true_lang.js +7 -22
- package/dist/components/List/components/ListFilterSelect.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListFilterSelect.vue_vue_type_script_setup_true_lang.js +5 -13
- package/dist/components/List/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListItem.vue_vue_type_script_setup_true_lang.js +12 -37
- package/dist/components/List/components/ListToolbar.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListToolbar.vue_vue_type_script_setup_true_lang.js +7 -3
- package/dist/components/List/types.d.ts +2 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +2 -2
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue_vue_type_script_setup_true_lang.js +149 -71
- package/dist/components/Modal/components/OverlayDropdown.vue.d.ts +37 -0
- package/dist/components/Modal/components/OverlayDropdown.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayDropdown.vue.js +5 -0
- package/dist/components/Modal/components/OverlayDropdown.vue_vue_type_script_setup_true_lang.js +140 -0
- package/dist/components/Modal/components/OverlayHeader.vue.d.ts +14 -0
- package/dist/components/Modal/components/OverlayHeader.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayHeader.vue.js +5 -0
- package/dist/components/Modal/components/OverlayHeader.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/components/Modal/components/OverlayLayerProvider.vue.d.ts +22 -0
- package/dist/components/Modal/components/OverlayLayerProvider.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayLayerProvider.vue.js +5 -0
- package/dist/components/Modal/components/OverlayLayerProvider.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.d.ts +24 -0
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.d.ts.map +1 -0
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.js +5 -0
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.d.ts +9 -0
- package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.d.ts.map +1 -0
- package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.js +5 -0
- package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +1 -7
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue_vue_type_script_setup_true_lang.js +42 -86
- package/dist/components/Modal/models/overlayRegistry.d.ts +87 -0
- package/dist/components/Modal/models/overlayRegistry.d.ts.map +1 -0
- package/dist/components/Modal/models/overlayRegistry.js +154 -0
- package/dist/components/Modal/types.d.ts +3 -0
- package/dist/components/Modal/types.d.ts.map +1 -1
- package/dist/components/Modal/use/useConfirm.d.ts +13 -0
- package/dist/components/Modal/use/useConfirm.d.ts.map +1 -0
- package/dist/components/Modal/use/useConfirm.js +38 -0
- package/dist/components/Notify/WNotify.vue.d.ts +4 -1
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue_vue_type_script_setup_true_lang.js +21 -48
- package/dist/components/Notify/WNotifyCenter.vue.d.ts +15 -0
- package/dist/components/Notify/WNotifyCenter.vue.d.ts.map +1 -0
- package/dist/components/Notify/WNotifyCenter.vue.js +5 -0
- package/dist/components/Notify/WNotifyCenter.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/components/Notify/WNotifyCenterButton.vue.d.ts +22 -0
- package/dist/components/Notify/WNotifyCenterButton.vue.d.ts.map +1 -0
- package/dist/components/Notify/WNotifyCenterButton.vue.js +5 -0
- package/dist/components/Notify/WNotifyCenterButton.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +11 -19
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue_vue_type_script_setup_true_lang.js +91 -52
- package/dist/components/Notify/models/NotifyType.d.ts +10 -1
- package/dist/components/Notify/models/NotifyType.d.ts.map +1 -1
- package/dist/components/Notify/models/NotifyType.js +11 -1
- package/dist/components/Notify/models/notifyCenter.d.ts +35 -0
- package/dist/components/Notify/models/notifyCenter.d.ts.map +1 -0
- package/dist/components/Notify/models/notifyCenter.js +194 -0
- package/dist/components/Notify/models/types.d.ts +41 -3
- package/dist/components/Notify/models/types.d.ts.map +1 -1
- package/dist/components/Notify/types.d.ts +18 -0
- package/dist/components/Notify/types.d.ts.map +1 -0
- package/dist/components/Notify/use/useNotifyCenter.d.ts +21 -0
- package/dist/components/Notify/use/useNotifyCenter.d.ts.map +1 -0
- package/dist/components/Notify/use/useNotifyCenter.js +44 -0
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue_vue_type_script_setup_true_lang.js +22 -13
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue_vue_type_script_setup_true_lang.js +7 -12
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/Select/WSelectStringified.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +4 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue_vue_type_script_setup_true_lang.js +17 -4
- package/dist/components/Select/components/SelectOption.vue.d.ts +26 -8
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue_vue_type_script_setup_true_lang.js +16 -8
- package/dist/components/Select/models/useScrollSelected.d.ts +10 -0
- package/dist/components/Select/models/useScrollSelected.d.ts.map +1 -0
- package/dist/components/Select/models/useScrollSelected.js +29 -0
- package/dist/components/Select/types.d.ts +4 -2
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Slider/WSlider.vue.d.ts +1 -1
- package/dist/components/Slider/WSlider.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/main.d.ts +5 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +15 -9
- package/dist/types/global.d.ts +4 -0
- package/dist/types/types.d.ts +1 -1
- package/dist/utils/Modal.d.ts +4 -2
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/Modal.js +10 -10
- package/dist/utils/Notify.d.ts +11 -4
- package/dist/utils/Notify.d.ts.map +1 -1
- package/dist/utils/Notify.js +24 -3
- package/dist/utils/Overlay.d.ts +83 -0
- package/dist/utils/Overlay.d.ts.map +1 -0
- package/dist/utils/Overlay.js +89 -0
- package/dist/utils/useSelected.d.ts.map +1 -1
- package/dist/utils/useSelected.js +3 -1
- package/dist/utils/utils.d.ts +15 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +25 -6
- package/docs/components/dropdown-menu.md +25 -33
- package/docs/components/field-wrapper.md +1 -0
- package/docs/components/input.md +1 -1
- package/docs/components/list.md +4 -6
- package/docs/components/modal.md +139 -1
- package/docs/components/notify.md +234 -1
- package/docs/components/select.md +36 -2
- package/docs/guide/getting-started.md +1 -1
- package/docs/icons.md +2 -2
- package/docs/llms.txt +4 -4
- package/docs/recipes/list-with-fields.md +186 -16
- package/package.json +13 -1
- package/tailwind-base/css/default.css +5 -0
- package/dist/components/Button/models/buttonMore.d.ts +0 -4
- package/dist/components/Button/models/buttonMore.d.ts.map +0 -1
- package/dist/components/Button/models/buttonMore.js +0 -8
|
@@ -8,24 +8,12 @@ var _hoisted_1 = {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
10
|
function render(_ctx, _cache) {
|
|
11
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class: "fill-tone-on",
|
|
18
|
-
d: "M13 14.28h-2L10.09 7h3.81z",
|
|
19
|
-
fill: "#fff"
|
|
20
|
-
}, null, -1),
|
|
21
|
-
createElementVNode("circle", {
|
|
22
|
-
class: "fill-tone-on",
|
|
23
|
-
cx: "12",
|
|
24
|
-
cy: "18",
|
|
25
|
-
fill: "#fff",
|
|
26
|
-
r: "2"
|
|
27
|
-
}, null, -1)
|
|
28
|
-
])]);
|
|
11
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
|
|
12
|
+
"clip-rule": "evenodd",
|
|
13
|
+
d: "M10.03 3.07a2.34 2.34 0 0 1 3.94 0l9.7 15.59c.92 1.47-.18 3.34-1.97 3.34H2.3C.5 22-.6 20.13.33 18.66zM13 14.28h-2L10.09 7h3.81zM12 16a2 2 0 1 0 0 4 2 2 0 1 0 0-4",
|
|
14
|
+
fill: "currentcolor",
|
|
15
|
+
"fill-rule": "evenodd"
|
|
16
|
+
}, null, -1)])]);
|
|
29
17
|
}
|
|
30
18
|
var IconDanger_default = { render };
|
|
31
19
|
//#endregion
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, openBlock } from "vue";
|
|
2
|
+
//#region src/assets/icons/IconNotification.svg?component
|
|
3
|
+
var _hoisted_1 = {
|
|
4
|
+
width: "20",
|
|
5
|
+
height: "20",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
};
|
|
10
|
+
function render(_ctx, _cache) {
|
|
11
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
12
|
+
createElementVNode("path", {
|
|
13
|
+
d: "M12.02 2.91a6 6 0 0 0-6 6v2.89c0 .61-.26 1.54-.57 2.06L4.3 15.77c-.71 1.18-.22 2.49 1.08 2.93a21 21 0 0 0 13.27 0 2 2 0 0 0 1.08-2.93l-1.15-1.91a5 5 0 0 1-.56-2.06V8.91c0-3.3-2.7-6-6-6Z",
|
|
14
|
+
stroke: "currentcolor",
|
|
15
|
+
"stroke-linecap": "round",
|
|
16
|
+
"stroke-miterlimit": "10",
|
|
17
|
+
"stroke-width": "1.5"
|
|
18
|
+
}, null, -1),
|
|
19
|
+
createElementVNode("path", {
|
|
20
|
+
d: "M13.87 3.2a7 7 0 0 0-3.7 0 1.99 1.99 0 0 1 3.7 0",
|
|
21
|
+
stroke: "currentcolor",
|
|
22
|
+
"stroke-linecap": "round",
|
|
23
|
+
"stroke-linejoin": "round",
|
|
24
|
+
"stroke-miterlimit": "10",
|
|
25
|
+
"stroke-width": "1.5"
|
|
26
|
+
}, null, -1),
|
|
27
|
+
createElementVNode("path", {
|
|
28
|
+
d: "M15.02 19.06a3 3 0 0 1-5.12 2.12 3 3 0 0 1-.88-2.12",
|
|
29
|
+
stroke: "currentcolor",
|
|
30
|
+
"stroke-miterlimit": "10",
|
|
31
|
+
"stroke-width": "1.5"
|
|
32
|
+
}, null, -1)
|
|
33
|
+
])]);
|
|
34
|
+
}
|
|
35
|
+
var IconNotification_default = { render };
|
|
36
|
+
//#endregion
|
|
37
|
+
export { IconNotification_default as default, render };
|
|
@@ -8,15 +8,11 @@ var _hoisted_1 = {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
10
|
function render(_ctx, _cache) {
|
|
11
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
|
|
12
|
+
"clip-rule": "evenodd",
|
|
13
|
+
d: "M12 0a12 12 0 1 0 0 24 12 12 0 1 0 0-24M10.6 18 5 10.61h2.2l3.4 4.48L16.79 7H19z",
|
|
14
14
|
fill: "currentcolor",
|
|
15
|
-
|
|
16
|
-
}, null, -1), createElementVNode("path", {
|
|
17
|
-
class: "fill-tone-on",
|
|
18
|
-
d: "M10.6 18 5 10.61h2.2l3.4 4.48L16.79 7H19z",
|
|
19
|
-
fill: "#fff"
|
|
15
|
+
"fill-rule": "evenodd"
|
|
20
16
|
}, null, -1)])]);
|
|
21
17
|
}
|
|
22
18
|
var IconSuccess_default = { render };
|
|
@@ -8,37 +8,12 @@ var _hoisted_1 = {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
10
|
function render(_ctx, _cache) {
|
|
11
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transform: "rotate(45 11.78 0)",
|
|
18
|
-
x: "11.78"
|
|
19
|
-
}, null, -1),
|
|
20
|
-
createElementVNode("circle", {
|
|
21
|
-
class: "fill-tone-on",
|
|
22
|
-
cx: "7.36",
|
|
23
|
-
cy: "12.27",
|
|
24
|
-
fill: "#fff",
|
|
25
|
-
r: "1.47"
|
|
26
|
-
}, null, -1),
|
|
27
|
-
createElementVNode("circle", {
|
|
28
|
-
class: "fill-tone-on",
|
|
29
|
-
cx: "11.78",
|
|
30
|
-
cy: "12.27",
|
|
31
|
-
fill: "#fff",
|
|
32
|
-
r: "1.47"
|
|
33
|
-
}, null, -1),
|
|
34
|
-
createElementVNode("circle", {
|
|
35
|
-
class: "fill-tone-on",
|
|
36
|
-
cx: "16.2",
|
|
37
|
-
cy: "12.27",
|
|
38
|
-
fill: "#fff",
|
|
39
|
-
r: "1.47"
|
|
40
|
-
}, null, -1)
|
|
41
|
-
])]);
|
|
11
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
|
|
12
|
+
"clip-rule": "evenodd",
|
|
13
|
+
d: "M8.95 2.83a4 4 0 0 1 5.66 0l6.34 6.34a4 4 0 0 1 0 5.66l-6.34 6.34a4 4 0 0 1-5.66 0l-6.34-6.34a4 4 0 0 1 0-5.66zM7.36 10.8a1.47 1.47 0 1 0 0 2.94 1.47 1.47 0 1 0 0-2.94m4.42 0a1.47 1.47 0 1 0 0 2.94 1.47 1.47 0 1 0 0-2.94m4.42 0a1.47 1.47 0 1 0 0 2.94 1.47 1.47 0 1 0 0-2.94",
|
|
14
|
+
fill: "currentcolor",
|
|
15
|
+
"fill-rule": "evenodd"
|
|
16
|
+
}, null, -1)])]);
|
|
42
17
|
}
|
|
43
18
|
var IconWarn_default = { render };
|
|
44
19
|
//#endregion
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
/** Opens the sheet. */
|
|
3
3
|
isOpen: boolean;
|
|
4
|
+
/** Sizes the sheet to its content, up to 90% of the screen, instead of always taking 90%. */
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
/** Leaves the page in view without the dimmed backdrop. A tap outside the sheet still closes it, and also reaches the page. */
|
|
7
|
+
noOverlay?: boolean;
|
|
4
8
|
};
|
|
5
9
|
type __VLS_Slots = {
|
|
6
10
|
/** Element that opens the sheet, rendered in place and again at the top of the sheet — `unclickable` is `true` for the one in place and `false` for the copy. */
|
|
@@ -11,7 +15,10 @@ type __VLS_Slots = {
|
|
|
11
15
|
/** Content of the sheet, which scrolls under the toggle. */
|
|
12
16
|
content?: () => void;
|
|
13
17
|
};
|
|
14
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
18
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
19
|
+
/** Slides the sheet down. Resolves once it is out of view — then set `isOpen` to `false` for no visible jump. */
|
|
20
|
+
hide: () => Promise<void>;
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
22
|
close: () => any;
|
|
16
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
24
|
onClose?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AA8CA;AAoGA,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,OAAO,CAAA;IACf,6FAA6F;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+HAA+H;IAC/H,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,iKAAiK;IACjK,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,WAAW,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAA;IACjE,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AAuKF,QAAA,MAAM,UAAU;IA/Jd,iHAAiH;gBACvG,OAAO,CAAC,IAAI,CAAC;;;;;kFAkKvB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,30 +1,57 @@
|
|
|
1
1
|
import { wBaseZIndex } from "../../utils/utils.js";
|
|
2
|
+
import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
|
|
2
3
|
import WDismissable_default from "../Dismissable/WDismissable.vue.js";
|
|
3
|
-
import { Fragment, Teleport, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeProps, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, unref, useTemplateRef, withCtx } from "vue";
|
|
4
5
|
//#region src/components/BottomSheet/WBottomSheet.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var _hoisted_1 = { class: "px-3" };
|
|
6
7
|
var _hoisted_2 = { class: "overflow-y-auto overflow-x-hidden overscroll-contain" };
|
|
7
8
|
var WBottomSheet_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
9
|
__name: "WBottomSheet",
|
|
9
|
-
props: {
|
|
10
|
+
props: {
|
|
11
|
+
isOpen: { type: Boolean },
|
|
12
|
+
compact: { type: Boolean },
|
|
13
|
+
noOverlay: { type: Boolean }
|
|
14
|
+
},
|
|
10
15
|
emits: ["close"],
|
|
11
|
-
setup(__props) {
|
|
16
|
+
setup(__props, { expose: __expose }) {
|
|
17
|
+
const props = __props;
|
|
12
18
|
const baseZIndex = inject(wBaseZIndex, 0);
|
|
19
|
+
const dismissableRef = useTemplateRef("dismissable");
|
|
20
|
+
__expose({
|
|
21
|
+
/** Slides the sheet down. Resolves once it is out of view — then set `isOpen` to `false` for no visible jump. */
|
|
22
|
+
hide: () => dismissableRef.value?.hide() ?? Promise.resolve() });
|
|
23
|
+
const contentClass = computed(() => [
|
|
24
|
+
"bg-surface grid-cols-[1fr] grid-rows-[auto_1fr] rounded-t-3xl shadow-md relative grid",
|
|
25
|
+
props.compact ? "max-h-[90%]" : "height-[90%]",
|
|
26
|
+
props.noOverlay ? "pointer-events-auto border-t border-solid border-line-raised" : ""
|
|
27
|
+
].join(" "));
|
|
13
28
|
return (_ctx, _cache) => {
|
|
14
29
|
return openBlock(), createElementBlock(Fragment, null, [renderSlot(_ctx.$slots, "toggle", { unclickable: true }), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(WDismissable_default, {
|
|
30
|
+
ref: "dismissable",
|
|
15
31
|
"is-open": __props.isOpen,
|
|
16
|
-
class: "
|
|
17
|
-
"content-class":
|
|
32
|
+
class: normalizeClass(["fixed inset-0", __props.noOverlay ? "pointer-events-none" : "bg-backdrop backdrop-blur"]),
|
|
33
|
+
"content-class": contentClass.value,
|
|
18
34
|
style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(100) }),
|
|
19
|
-
onClose: _cache[
|
|
35
|
+
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
20
36
|
}, {
|
|
21
37
|
default: withCtx(() => [
|
|
22
|
-
createElementVNode("div", _hoisted_1, [_cache[
|
|
38
|
+
createElementVNode("div", _hoisted_1, [_cache[2] || (_cache[2] = createElementVNode("div", { class: "flex h-9 items-center justify-center" }, [createElementVNode("div", { class: "h-1 w-12 rounded-sm bg-track" })], -1)), createElementVNode("div", null, [renderSlot(_ctx.$slots, "toggle", mergeProps({ unclickable: false }, { isTop: false }))])]),
|
|
23
39
|
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "content")]),
|
|
24
|
-
_cache[
|
|
40
|
+
_cache[3] || (_cache[3] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-inherit" }, null, -1)),
|
|
41
|
+
__props.noOverlay ? (openBlock(), createBlock(WClickOutside_default, {
|
|
42
|
+
key: 0,
|
|
43
|
+
"no-filter": "",
|
|
44
|
+
class: "hidden",
|
|
45
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
46
|
+
})) : createCommentVNode("", true)
|
|
25
47
|
]),
|
|
26
48
|
_: 3
|
|
27
|
-
}, 8, [
|
|
49
|
+
}, 8, [
|
|
50
|
+
"is-open",
|
|
51
|
+
"class",
|
|
52
|
+
"content-class",
|
|
53
|
+
"style"
|
|
54
|
+
])]))], 64);
|
|
28
55
|
};
|
|
29
56
|
}
|
|
30
57
|
});
|
|
@@ -11,15 +11,15 @@ declare const __VLS_base: import('vue').DefineComponent<ButtonProps, {}, {}, {},
|
|
|
11
11
|
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
12
12
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
+
to: import('vue-router').RouterLinkProps["to"];
|
|
14
15
|
skeleton: boolean;
|
|
15
|
-
|
|
16
|
+
disabled: boolean;
|
|
16
17
|
type: string;
|
|
17
|
-
|
|
18
|
-
to: import('vue-router').RouterLinkProps["to"];
|
|
18
|
+
semanticType: SemanticType;
|
|
19
19
|
tag: keyof HTMLElementTagNameMap;
|
|
20
|
+
href: string;
|
|
20
21
|
target: "_self" | "_blank" | "_parent" | "_top";
|
|
21
22
|
rel: string;
|
|
22
|
-
disabled: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -39,17 +39,17 @@ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
39
39
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
40
40
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
|
-
skeleton: boolean;
|
|
43
|
-
count: number;
|
|
44
|
-
semanticType: SemanticType;
|
|
45
|
-
href: string;
|
|
46
42
|
to: import('vue-router').RouterLinkProps["to"];
|
|
43
|
+
tooltipText: string;
|
|
44
|
+
skeleton: boolean;
|
|
45
|
+
disabled: boolean;
|
|
47
46
|
icon: SVGComponent;
|
|
47
|
+
semanticType: SemanticType;
|
|
48
48
|
tag: "button" | "a";
|
|
49
|
+
href: string;
|
|
49
50
|
target: "_self" | "_blank" | "_parent" | "_top";
|
|
50
51
|
rel: string;
|
|
51
|
-
|
|
52
|
-
tooltipText: string;
|
|
52
|
+
count: number;
|
|
53
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
55
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AA+EA;AAAA,OAqKO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAW5C,OAAO,EAAC,YAAY,EAA+B,MAAM,sBAAsB,CAAA;AAE/E,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,uDAAuD;IACvD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,gHAAgH;IAChH,KAAK,EAAE,MAAM,CAAA;IACb,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6FAA6F;IAC7F,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAA;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AA0BD,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;CAClB,CAAC;AAyPF,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AA+EA;AAAA,OAqKO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAW5C,OAAO,EAAC,YAAY,EAA+B,MAAM,sBAAsB,CAAA;AAE/E,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,uDAAuD;IACvD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,gHAAgH;IAChH,KAAK,EAAE,MAAM,CAAA;IACb,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6FAA6F;IAC7F,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAA;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AA0BD,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;CAClB,CAAC;AAyPF,QAAA,MAAM,UAAU;;;;;;iBA3RA,MAAM;cAFT,OAAO;cAFP,OAAO;UAlBX,YAAY;kBAgBJ,YAAY;SAVrB,QAAQ,GAAG,GAAG;UAEb,MAAM;YAEJ,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;SAE1C,MAAM;WAEJ,MAAM;6EAuSd,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"}
|
|
@@ -11,8 +11,8 @@ type __VLS_Slots = {
|
|
|
11
11
|
}) => VNode[];
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import('vue').DefineComponent<ButtonDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonDropdownProps> & Readonly<{}>, {
|
|
14
|
-
disabled: boolean;
|
|
15
14
|
horizontalAlign: HorizontalAlign;
|
|
15
|
+
disabled: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import WTooltip_default from "../Tooltip/WTooltip.vue.js";
|
|
2
|
-
import WButton_default from "./WButton.vue.js";
|
|
3
2
|
import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
|
|
3
|
+
import WButton_default from "./WButton.vue.js";
|
|
4
4
|
import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
|
|
5
5
|
import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
|
|
6
6
|
import IconArrow_default from "../../assets/icons/IconArrow.js";
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OverlayAnchor } from '../../utils/Overlay';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** Icon of the button. Defaults to three dots. */
|
|
4
4
|
icon?: SVGComponent;
|
|
5
5
|
/** Blocks opening and dims the button. */
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
/** Element the menu is positioned against instead of the button, aligned to its right edge — for a menu opened at a cursor or row. */
|
|
8
|
-
anchor?:
|
|
8
|
+
anchor?: OverlayAnchor;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Menu items, usually WButtonMoreItem. A click inside closes the menu. Only one menu is open at a time, and on phones it is a bottom sheet.
|
|
13
|
+
* A confirm opened from an item with `useOverlay` takes the menu's place at the same anchor.
|
|
14
|
+
*/
|
|
12
15
|
default?: () => void;
|
|
13
16
|
};
|
|
14
17
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
-
open: () => void;
|
|
18
|
+
open: (anchor?: OverlayAnchor) => void;
|
|
16
19
|
close: () => void;
|
|
17
|
-
isOpen: import('vue').
|
|
20
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
21
|
+
/** The menu, or a confirm it handed off to, is open. */
|
|
22
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
18
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
24
|
close: () => any;
|
|
20
25
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AA8BA;AAyIA,OAAO,EAAC,KAAK,aAAa,EAAa,MAAM,iBAAiB,CAAA;AAE9D,KAAK,WAAW,GAAG;IACjB,kDAAkD;IAClD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sIAAsI;IACtI,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA+IF,QAAA,MAAM,UAAU;oBAxHO,aAAa,KAAG,IAAI;iBA8BzB,IAAI;;IAepB,wDAAwD;;;;;;kFA+ExD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
|
|
2
|
-
import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
|
|
3
|
-
import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
|
|
4
1
|
import IconMore_default from "../../assets/icons/IconMore.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { hasAnchorLayer } from "../Modal/models/overlayRegistry.js";
|
|
3
|
+
import { useOverlay } from "../../utils/Overlay.js";
|
|
4
|
+
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, markRaw, mergeProps, normalizeClass, openBlock, ref, resolveDynamicComponent, shallowRef, unref, useSlots, useTemplateRef } from "vue";
|
|
7
5
|
//#region src/components/Button/WButtonMore.vue?vue&type=script&setup=true&lang.ts
|
|
8
6
|
var _hoisted_1 = [
|
|
9
7
|
"disabled",
|
|
@@ -21,29 +19,58 @@ var WButtonMore_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
21
19
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
20
|
const props = __props;
|
|
23
21
|
const emit = __emit;
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
const slots = useSlots();
|
|
23
|
+
const renderSlot = markRaw(() => slots.default?.());
|
|
24
|
+
const buttonRef = useTemplateRef("button");
|
|
25
|
+
const overlay = useOverlay();
|
|
26
|
+
let closeMenu = null;
|
|
27
|
+
const isOpen = ref(false);
|
|
28
|
+
const isCustomAnchor = ref(false);
|
|
29
|
+
const anchorOpened = shallowRef(null);
|
|
30
|
+
const isActive = computed(() => anchorOpened.value !== null && hasAnchorLayer(anchorOpened.value));
|
|
31
|
+
/** Opens the menu at `anchor` — such as a point made with `createPointAnchor` — instead of the `anchor` prop or the button. */
|
|
32
|
+
const open = (anchor) => {
|
|
33
|
+
const target = anchor ?? props.anchor;
|
|
34
|
+
const opened = target ?? buttonRef.value;
|
|
35
|
+
if (!opened) return;
|
|
36
|
+
const value = overlay.open({
|
|
37
|
+
present: "dropdown",
|
|
38
|
+
anchor: opened,
|
|
39
|
+
content: renderSlot,
|
|
40
|
+
dropdown: {
|
|
41
|
+
cornered: target !== void 0,
|
|
42
|
+
closeOnClick: true
|
|
43
|
+
},
|
|
44
|
+
onClose: () => {
|
|
45
|
+
if (closeMenu !== value) return;
|
|
46
|
+
closeMenu = null;
|
|
47
|
+
isOpen.value = false;
|
|
48
|
+
emit("close");
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
closeMenu = value;
|
|
52
|
+
anchorOpened.value = opened;
|
|
53
|
+
isOpen.value = value !== null;
|
|
54
|
+
isCustomAnchor.value = target !== void 0;
|
|
32
55
|
};
|
|
33
56
|
const close = () => {
|
|
34
|
-
|
|
35
|
-
emit("close");
|
|
57
|
+
closeMenu?.();
|
|
36
58
|
};
|
|
37
|
-
const
|
|
38
|
-
|
|
59
|
+
const toggle = () => {
|
|
60
|
+
if (props.disabled) return;
|
|
61
|
+
if (isOpen.value) close();
|
|
62
|
+
else open();
|
|
39
63
|
};
|
|
40
64
|
__expose({
|
|
41
65
|
open,
|
|
42
66
|
close,
|
|
43
|
-
isOpen
|
|
67
|
+
isOpen,
|
|
68
|
+
/** The menu, or a confirm it handed off to, is open. */
|
|
69
|
+
isActive
|
|
44
70
|
});
|
|
45
71
|
return (_ctx, _cache) => {
|
|
46
72
|
return openBlock(), createElementBlock("button", mergeProps(_ctx.$attrs, {
|
|
73
|
+
ref: "button",
|
|
47
74
|
disabled: __props.disabled,
|
|
48
75
|
class: [{
|
|
49
76
|
"w-hover-circle-trigger cursor-pointer": !__props.disabled,
|
|
@@ -53,37 +80,11 @@ var WButtonMore_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
53
80
|
"aria-disabled": __props.disabled,
|
|
54
81
|
"aria-label": "More options",
|
|
55
82
|
onClick: toggle
|
|
56
|
-
}), [
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
}, {
|
|
62
|
-
toggle: withCtx(() => [createElementVNode("div", { class: normalizeClass(["relative", {
|
|
63
|
-
"w-hover-circle": !__props.disabled,
|
|
64
|
-
"text-description": !isOpen.value || __props.anchor,
|
|
65
|
-
"tone-primary text-tone": isOpen.value && !__props.anchor
|
|
66
|
-
}]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconMore_default)), { class: "square-[1.125em]" }))], 2)]),
|
|
67
|
-
content: withCtx(({ isTop, isRight, isLeft }) => [createVNode(WClickOutside_default, {
|
|
68
|
-
"no-filter": "",
|
|
69
|
-
class: normalizeClass(["surface-raised overflow-hidden rounded-xl text-start font-normal shadow-md border border-solid border-line-raised", {
|
|
70
|
-
"sm-not:-mr-4 my-4 -mr-5": !__props.anchor,
|
|
71
|
-
"rounded-bl-none": __props.anchor && isRight && isTop,
|
|
72
|
-
"rounded-tl-none": __props.anchor && isRight && !isTop,
|
|
73
|
-
"rounded-br-none": __props.anchor && isLeft && isTop,
|
|
74
|
-
"rounded-tr-none": __props.anchor && isLeft && !isTop
|
|
75
|
-
}]),
|
|
76
|
-
onClick: close
|
|
77
|
-
}, {
|
|
78
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
79
|
-
_: 3
|
|
80
|
-
}, 8, ["class"])]),
|
|
81
|
-
_: 3
|
|
82
|
-
}, 8, [
|
|
83
|
-
"is-open",
|
|
84
|
-
"horizontal-align",
|
|
85
|
-
"parent-element"
|
|
86
|
-
])], 16, _hoisted_1);
|
|
83
|
+
}), [createElementVNode("div", { class: normalizeClass(["relative", {
|
|
84
|
+
"w-hover-circle": !__props.disabled,
|
|
85
|
+
"text-description": !isOpen.value || isCustomAnchor.value,
|
|
86
|
+
"tone-primary text-tone": isOpen.value && !isCustomAnchor.value
|
|
87
|
+
}]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconMore_default)), { class: "square-[1.125em]" }))], 2)], 16, _hoisted_1);
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
90
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAyDA;
|
|
1
|
+
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAyDA;AAgHA,OAAO,EAAC,KAAK,KAAK,EAA0C,MAAM,KAAK,CAAA;AAWvE,KAAK,WAAW,GAAG;IACf,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAC;AAyBJ,KAAK,WAAW,GAAG;IACjB,gHAAgH;IAChH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACpF,sDAAsD;IACtD,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACjF,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;CACzB,CAAC;AA0LF,QAAA,MAAM,UAAU;;;;;WAjOJ,MAAM;oBAEG,MAAM;mBAEP,MAAM;qBAEJ,MAAM;6EA+N1B,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,11 +1,9 @@
|
|
|
1
1
|
import { numberFormatter, wBaseZIndex } from "../../utils/utils.js";
|
|
2
|
-
import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
|
|
3
|
-
import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
|
|
4
|
-
import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
|
|
5
2
|
import IconMore_default from "../../assets/icons/IconMore.js";
|
|
3
|
+
import WDropdownAdaptive_default from "../DropdownMenu/WDropdownAdaptive.vue.js";
|
|
6
4
|
import WButtonSelectionAction_default from "./WButtonSelectionAction.vue.js";
|
|
7
5
|
import WButtonSelectionState_default from "./WButtonSelectionState.vue.js";
|
|
8
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, normalizeClass, normalizeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, normalizeClass, normalizeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
9
7
|
//#region src/components/Button/WButtonSelection.vue?vue&type=script&setup=true&lang.ts
|
|
10
8
|
var _hoisted_1 = { class: "list:left---left-inner list:w---width-inner list:sticky grid w-full grid-cols-[1fr_auto] pb-3" };
|
|
11
9
|
var _hoisted_2 = { class: "flex" };
|
|
@@ -24,51 +22,43 @@ var WButtonSelection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
24
22
|
const props = __props;
|
|
25
23
|
const baseZIndex = inject(wBaseZIndex, null);
|
|
26
24
|
provide(wBaseZIndex, baseZIndex ?? 20);
|
|
27
|
-
const isOpen = ref(false);
|
|
28
25
|
const disableMessageValue = computed(() => props.selectedCount === 0 ? props.disableMessage : void 0);
|
|
26
|
+
const isOpen = ref(false);
|
|
29
27
|
return (_ctx, _cache) => {
|
|
30
28
|
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
|
|
31
29
|
disableMessage: disableMessageValue.value,
|
|
32
30
|
cssClass: "border-l border-solid border-line first:border-l-0"
|
|
33
|
-
}))), _ctx.$slots.more ? (openBlock(), createBlock(
|
|
31
|
+
}))), _ctx.$slots.more ? (openBlock(), createBlock(WDropdownAdaptive_default, {
|
|
34
32
|
key: 0,
|
|
35
33
|
"is-open": isOpen.value,
|
|
36
|
-
"
|
|
37
|
-
|
|
34
|
+
"close-on-click": "",
|
|
35
|
+
onClose: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
|
|
38
36
|
}, {
|
|
39
37
|
toggle: withCtx(() => [createVNode(WButtonSelectionAction_default, {
|
|
40
38
|
title: "More",
|
|
41
39
|
icon: markRaw(unref(IconMore_default)),
|
|
42
40
|
"aria-expanded": isOpen.value,
|
|
43
41
|
"disable-message": disableMessageValue.value,
|
|
44
|
-
class: "border-l border-solid border-line",
|
|
42
|
+
class: normalizeClass(["border-l border-solid border-line", __props.moreToggleClass]),
|
|
45
43
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
46
44
|
}, null, 8, [
|
|
47
45
|
"icon",
|
|
48
46
|
"aria-expanded",
|
|
49
|
-
"disable-message"
|
|
47
|
+
"disable-message",
|
|
48
|
+
"class"
|
|
50
49
|
])]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
disableMessage: disableMessageValue.value,
|
|
57
|
-
cssClass: "first:pt-2 last:pb-2"
|
|
58
|
-
})))]),
|
|
59
|
-
_: 3
|
|
60
|
-
})]),
|
|
50
|
+
header: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" More ", -1)])]),
|
|
51
|
+
content: withCtx(() => [renderSlot(_ctx.$slots, "more", normalizeProps(guardReactiveProps({
|
|
52
|
+
disableMessage: disableMessageValue.value,
|
|
53
|
+
cssClass: "first:pt-2 last:pb-2"
|
|
54
|
+
})))]),
|
|
61
55
|
_: 3
|
|
62
|
-
}, 8, [
|
|
63
|
-
"is-open",
|
|
64
|
-
"horizontal-align",
|
|
65
|
-
"class"
|
|
66
|
-
])) : createCommentVNode("", true)]), __props.selectedCount ? (openBlock(), createBlock(WButtonSelectionState_default, {
|
|
56
|
+
}, 8, ["is-open"])) : createCommentVNode("", true)]), __props.selectedCount ? (openBlock(), createBlock(WButtonSelectionState_default, {
|
|
67
57
|
key: 0,
|
|
68
58
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("clear:selection"))
|
|
69
59
|
}, {
|
|
70
60
|
default: withCtx(() => [
|
|
71
|
-
_cache[
|
|
61
|
+
_cache[4] || (_cache[4] = createElementVNode("span", { class: "sm-not:hidden" }, "Selected\xA0", -1)),
|
|
72
62
|
createElementVNode("span", _hoisted_3, toDisplayString(unref(numberFormatter).format(__props.selectedCount)), 1),
|
|
73
63
|
createElementVNode("span", _hoisted_4, "\xA0" + toDisplayString(__props.title) + toDisplayString(__props.selectedCount === 1 ? "" : "s"), 1)
|
|
74
64
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAyEA;AAAA,OA+HO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAS5C,KAAK,WAAW,GAAG;IACjB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sFAAsF;IACtF,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IACpB,4FAA4F;IAC5F,GAAG,CAAC,EAAE,MAAM,qBAAqB,CAAA;IACjC,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA+NF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/components/Button/WButtonSelectionAction.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -2,13 +2,10 @@ import WRouterLink_default from "../RouterLink/WRouterLink.vue.js";
|
|
|
2
2
|
import WShine_default from "../Shine/WShine.vue.js";
|
|
3
3
|
import WTooltip_default from "../Tooltip/WTooltip.vue.js";
|
|
4
4
|
import WSpinner_default from "../Spinner/WSpinner.vue.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useOverlayFrame } from "../../utils/Overlay.js";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
6
7
|
//#region src/components/Button/WButtonSelectionAction.vue?vue&type=script&setup=true&lang.ts
|
|
7
8
|
var _hoisted_1 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "sm-not:hidden sm-not:in-[.dropdown]:block whitespace-nowrap font-normal"
|
|
10
|
-
};
|
|
11
|
-
var _hoisted_2 = {
|
|
12
9
|
key: 0,
|
|
13
10
|
class: "text-description absolute inset-0 z-10 flex items-center justify-center"
|
|
14
11
|
};
|
|
@@ -31,6 +28,7 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
|
|
|
31
28
|
},
|
|
32
29
|
emits: ["click"],
|
|
33
30
|
setup(__props) {
|
|
31
|
+
const overlay = useOverlayFrame();
|
|
34
32
|
return (_ctx, _cache) => {
|
|
35
33
|
return openBlock(), createBlock(resolveDynamicComponent(__props.to !== void 0 ? __props.disabled ? "a" : WRouterLink_default : __props.tag ?? "button"), mergeProps({ ...__props.disabled ? {} : __props.tag === "a" ? {
|
|
36
34
|
href: __props.href,
|
|
@@ -53,8 +51,11 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
|
|
|
53
51
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && !__props.disableMessage && !__props.loading && _ctx.$emit("click", $event))
|
|
54
52
|
}), {
|
|
55
53
|
default: withCtx(() => [
|
|
56
|
-
createElementVNode("div", { class: normalizeClass(["h---w-input-height sm-not:px---inner-margin z-10 flex items-center gap-2 px-(--w-list-padding,1rem)", { "opacity-0": __props.loading }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em]" })), __props.title ? (openBlock(), createElementBlock("div",
|
|
57
|
-
|
|
54
|
+
createElementVNode("div", { class: normalizeClass(["h---w-input-height sm-not:px---inner-margin z-10 flex items-center gap-2 px-(--w-list-padding,1rem)", { "opacity-0": __props.loading }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em]" })), __props.title ? (openBlock(), createElementBlock("div", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: normalizeClass(["whitespace-nowrap font-normal", !unref(overlay) ? "sm-not:hidden" : void 0])
|
|
57
|
+
}, toDisplayString(__props.title), 3)) : createCommentVNode("", true)], 2),
|
|
58
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(WSpinner_default, { class: "square-5" })])) : createCommentVNode("", true),
|
|
58
59
|
__props.disableMessage || __props.tooltipText ? (openBlock(), createBlock(WTooltip_default, {
|
|
59
60
|
key: 1,
|
|
60
61
|
text: __props.disableMessage ?? __props.tooltipText,
|
|
@@ -65,7 +66,7 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
|
|
|
65
66
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip")]),
|
|
66
67
|
key: "0"
|
|
67
68
|
} : void 0]), 1032, ["text"])) : createCommentVNode("", true),
|
|
68
|
-
!__props.disabled && !__props.disableMessage && !__props.loading ? (openBlock(), createBlock(WShine_default, { key: 2 })) : createCommentVNode("", true)
|
|
69
|
+
!__props.disabled && !__props.disableMessage && !__props.loading && !unref(overlay) ? (openBlock(), createBlock(WShine_default, { key: 2 })) : createCommentVNode("", true)
|
|
69
70
|
]),
|
|
70
71
|
_: 3
|
|
71
72
|
}, 16, [
|