eco-vue-js 0.21.2 → 0.22.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/components/BottomSheet/WBottomSheet.vue.d.ts +2 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/Button/WButtonAction.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts +7 -5
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue_vue_type_script_setup_true_lang.js +74 -17
- package/dist/components/DropdownMenu/WDropdownAdaptive.vue.d.ts +2 -2
- package/dist/components/DropdownMenu/WDropdownAdaptive.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownAdaptive.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/DropdownMenu/types.d.ts +2 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCard.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/Input/components/InputSuggestEmbedded.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputSuggestEmbedded.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/components/List/WList.vue.d.ts +1 -1
- package/dist/components/List/WList.vue.d.ts.map +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 -4
- 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 +10 -10
- package/dist/components/List/types.d.ts +0 -1
- package/dist/components/List/types.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 +14 -9
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalStepper.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue_vue_type_script_setup_true_lang.js +79 -89
- package/dist/components/Modal/components/OverlayDropdown.vue.d.ts +3 -3
- package/dist/components/Modal/components/OverlayDropdown.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/OverlayDropdown.vue_vue_type_script_setup_true_lang.js +90 -28
- package/dist/components/Modal/components/OverlayLayerProvider.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/OverlayLayerProvider.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/Modal/components/{OverlayHeader.vue.d.ts → OverlayModal.vue.d.ts} +4 -4
- package/dist/components/Modal/components/OverlayModal.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayModal.vue.js +5 -0
- package/dist/components/Modal/components/OverlayModal.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/components/Modal/components/OverlayPartRender.vue.d.ts +8 -0
- package/dist/components/Modal/components/OverlayPartRender.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayPartRender.vue.js +5 -0
- package/dist/components/Modal/components/OverlayPartRender.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/Modal/components/OverlayRegion.vue.d.ts +8 -0
- package/dist/components/Modal/components/OverlayRegion.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayRegion.vue.js +5 -0
- package/dist/components/Modal/components/OverlayRegion.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/Modal/components/OverlayRegionPart.vue.d.ts +22 -0
- package/dist/components/Modal/components/OverlayRegionPart.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/OverlayRegionPart.vue.js +5 -0
- package/dist/components/Modal/components/OverlayRegionPart.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.d.ts +0 -2
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmActions.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue_vue_type_script_setup_true_lang.js +3 -2
- 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 +1 -1
- package/dist/components/Modal/models/overlayRegistry.d.ts +44 -7
- package/dist/components/Modal/models/overlayRegistry.d.ts.map +1 -1
- package/dist/components/Modal/models/overlayRegistry.js +36 -10
- package/dist/components/Modal/use/useOverlayRegions.d.ts +11 -0
- package/dist/components/Modal/use/useOverlayRegions.d.ts.map +1 -0
- package/dist/components/Modal/use/useOverlayRegions.js +49 -0
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/Notify/WNotifyCenter.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotifyCenter.vue_vue_type_script_setup_true_lang.js +63 -38
- package/dist/components/Notify/WNotifyCenterButton.vue.d.ts +3 -0
- package/dist/components/Notify/WNotifyCenterButton.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotifyCenterButton.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/Notify/types.d.ts +1 -1
- package/dist/components/Notify/types.d.ts.map +1 -1
- package/dist/components/Notify/use/useNotifyCenter.d.ts +6 -0
- package/dist/components/Notify/use/useNotifyCenter.d.ts.map +1 -1
- package/dist/components/Notify/use/useNotifyCenter.js +4 -1
- package/dist/components/Select/WSelect.vue.d.ts +1 -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 +4 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts +1 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue_vue_type_script_setup_true_lang.js +3 -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 +3 -0
- package/dist/components/Select/components/SelectOption.vue.d.ts +7 -7
- package/dist/components/Select/models/useCloseOnPick.d.ts +9 -0
- package/dist/components/Select/models/useCloseOnPick.d.ts.map +1 -0
- package/dist/components/Select/models/useCloseOnPick.js +18 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +2 -0
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue_vue_type_script_setup_true_lang.js +208 -134
- package/dist/components/Tabs/components/TabItem.vue.d.ts +1 -0
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/components/Tabs/components/TabsStepperButtons.vue.d.ts +24 -0
- package/dist/components/Tabs/components/TabsStepperButtons.vue.d.ts.map +1 -0
- package/dist/components/Tabs/components/TabsStepperButtons.vue.js +5 -0
- package/dist/components/Tabs/components/TabsStepperButtons.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/components/Tabs/types.d.ts +13 -1
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Uniform/WUniform.vue.d.ts.map +1 -1
- package/dist/components/Uniform/WUniform.vue_vue_type_script_setup_true_lang.js +14 -8
- package/dist/components/Uniform/use/useUniformField.d.ts.map +1 -1
- package/dist/components/Uniform/use/useUniformField.js +2 -1
- package/dist/components/Uniform/use/useUniformModel.d.ts.map +1 -1
- package/dist/components/Uniform/use/useUniformModel.js +43 -6
- package/dist/components/Uniform/use/useUniformSubmit.d.ts.map +1 -1
- package/dist/components/Uniform/use/useUniformSubmit.js +2 -1
- package/dist/components/Uniform/utils/injection.d.ts +7 -1
- package/dist/components/Uniform/utils/injection.d.ts.map +1 -1
- package/dist/components/Uniform/utils/injection.js +20 -5
- package/dist/components/Uniform/utils/utils.d.ts.map +1 -1
- package/dist/components/Uniform/utils/utils.js +3 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +3 -2
- package/dist/utils/Overlay.d.ts +21 -2
- package/dist/utils/Overlay.d.ts.map +1 -1
- package/dist/utils/Overlay.js +34 -4
- package/dist/utils/texts.d.ts +32 -0
- package/dist/utils/texts.d.ts.map +1 -0
- package/dist/utils/texts.js +28 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +4 -1
- package/docs/components/bottom-sheet.md +1 -0
- package/docs/components/dropdown-menu.md +3 -2
- package/docs/components/form.md +2 -0
- package/docs/components/list.md +3 -4
- package/docs/components/modal.md +69 -47
- package/docs/components/notify.md +10 -5
- package/docs/components/tabs.md +9 -2
- package/docs/guide/getting-started.md +17 -0
- package/docs/llms.txt +3 -2
- package/docs/recipes/form-in-three-modes.md +574 -0
- package/docs/recipes/list-with-fields.md +252 -8
- package/package.json +4 -1
- package/tailwind-base/css/default.css +5 -0
- package/dist/components/Modal/components/OverlayHeader.vue.d.ts.map +0 -1
- package/dist/components/Modal/components/OverlayHeader.vue.js +0 -5
- package/dist/components/Modal/components/OverlayHeader.vue_vue_type_script_setup_true_lang.js +0 -20
|
@@ -14,6 +14,8 @@ type __VLS_Slots = {
|
|
|
14
14
|
}) => void;
|
|
15
15
|
/** Content of the sheet, which scrolls under the toggle. */
|
|
16
16
|
content?: () => void;
|
|
17
|
+
/** Pinned at the bottom of the sheet, under the content that scrolls, such as a form's buttons. */
|
|
18
|
+
footer?: () => void;
|
|
17
19
|
};
|
|
18
20
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
19
21
|
/** Slides the sheet down. Resolves once it is out of view — then set `isOpen` to `false` for no visible jump. */
|
|
@@ -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":"AAgDA;AAwGA,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;IACpB,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,CAAC;AAyKF,QAAA,MAAM,UAAU;IAjKd,iHAAiH;gBACvG,OAAO,CAAC,IAAI,CAAC;;;;;kFAoKvB,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"}
|
|
@@ -21,7 +21,7 @@ var WBottomSheet_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
21
21
|
/** Slides the sheet down. Resolves once it is out of view — then set `isOpen` to `false` for no visible jump. */
|
|
22
22
|
hide: () => dismissableRef.value?.hide() ?? Promise.resolve() });
|
|
23
23
|
const contentClass = computed(() => [
|
|
24
|
-
"bg-surface grid-cols-[1fr] grid-rows-[
|
|
24
|
+
"bg-surface grid-cols-[1fr] grid-rows-[auto_1fr_auto] rounded-t-3xl shadow-md relative grid",
|
|
25
25
|
props.compact ? "max-h-[90%]" : "height-[90%]",
|
|
26
26
|
props.noOverlay ? "pointer-events-auto border-t border-solid border-line-raised" : ""
|
|
27
27
|
].join(" "));
|
|
@@ -37,6 +37,7 @@ hide: () => dismissableRef.value?.hide() ?? Promise.resolve() });
|
|
|
37
37
|
default: withCtx(() => [
|
|
38
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 }))])]),
|
|
39
39
|
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "content")]),
|
|
40
|
+
renderSlot(_ctx.$slots, "footer"),
|
|
40
41
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-inherit" }, null, -1)),
|
|
41
42
|
__props.noOverlay ? (openBlock(), createBlock(WClickOutside_default, {
|
|
42
43
|
key: 0,
|
|
@@ -91,7 +91,7 @@ var WButtonAction_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
91
91
|
key: 2,
|
|
92
92
|
class: normalizeClass(["text-3xs mt-1 text-center", { "self-center": !__props.skeleton }])
|
|
93
93
|
}, [__props.skeleton ? (openBlock(), createBlock(WSkeleton_default, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.title), 1)], 64))], 2)) : createCommentVNode("", true),
|
|
94
|
-
__props.tooltipText || !__props.titleText && __props.title ? (openBlock(), createBlock(WTooltip_default, {
|
|
94
|
+
(__props.tooltipText || !__props.titleText && __props.title) && !__props.active ? (openBlock(), createBlock(WTooltip_default, {
|
|
95
95
|
key: 3,
|
|
96
96
|
ref: "tooltip",
|
|
97
97
|
text: __props.tooltipText ?? (__props.titleText ? void 0 : __props.title),
|
|
@@ -6,19 +6,22 @@ type __VLS_Props = {
|
|
|
6
6
|
disableMessage?: string;
|
|
7
7
|
/** Number of selected items. While it is above 0, the counter with a clear button replaces the `settings` slot. */
|
|
8
8
|
selectedCount?: number;
|
|
9
|
-
/** Class of the More menu's toggle, e.g. to hide it while all actions fit. */
|
|
10
|
-
moreToggleClass?: string;
|
|
11
9
|
};
|
|
12
10
|
type __VLS_Slots = {
|
|
13
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* WButtonSelectionAction buttons. Pass them `disableMessage`, and `cssClass` for the dividers between them.
|
|
13
|
+
* Hide the ones from `visibleCount` on, which do not fit — the `more` slot shows them instead.
|
|
14
|
+
*/
|
|
14
15
|
default?: (props: {
|
|
15
16
|
disableMessage: string | undefined;
|
|
16
17
|
cssClass: string;
|
|
18
|
+
visibleCount: number;
|
|
17
19
|
}) => VNode[];
|
|
18
|
-
/** Actions in the More menu at the end of the row. */
|
|
20
|
+
/** Actions in the More menu at the end of the row: the ones of the `default` slot from `visibleCount` on, which do not fit the row. The menu shows only when some do not. */
|
|
19
21
|
more?: (props: {
|
|
20
22
|
disableMessage: string | undefined;
|
|
21
23
|
cssClass: string;
|
|
24
|
+
visibleCount: number;
|
|
22
25
|
}) => VNode[];
|
|
23
26
|
/** Content at the end of the bar while nothing is selected, such as list settings. */
|
|
24
27
|
settings?: () => VNode[];
|
|
@@ -31,7 +34,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
31
34
|
title: string;
|
|
32
35
|
disableMessage: string;
|
|
33
36
|
selectedCount: number;
|
|
34
|
-
moreToggleClass: string;
|
|
35
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAkEA;AAuMA,OAAO,EAAC,KAAK,KAAK,EAAiG,MAAM,KAAK,CAAA;AAW9H,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;CACvB,CAAC;AAsGJ,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IAC1G,6KAA6K;IAC7K,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACvG,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;CACzB,CAAC;AA0MF,QAAA,MAAM,UAAU;;;;;WA/TJ,MAAM;oBAEG,MAAM;mBAEP,MAAM;6EA+TxB,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"}
|
|
@@ -3,19 +3,22 @@ import IconMore_default from "../../assets/icons/IconMore.js";
|
|
|
3
3
|
import WDropdownAdaptive_default from "../DropdownMenu/WDropdownAdaptive.vue.js";
|
|
4
4
|
import WButtonSelectionAction_default from "./WButtonSelectionAction.vue.js";
|
|
5
5
|
import WButtonSelectionState_default from "./WButtonSelectionState.vue.js";
|
|
6
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw,
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, withCtx } from "vue";
|
|
7
7
|
//#region src/components/Button/WButtonSelection.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _hoisted_1 = { class: "list:left---left-inner list:w---width-inner list:sticky grid w-full grid-cols-[1fr_auto] pb-3" };
|
|
9
|
-
var _hoisted_2 = {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var _hoisted_2 = {
|
|
10
|
+
ref: "row",
|
|
11
|
+
class: "flex min-w-0"
|
|
12
|
+
};
|
|
13
|
+
var _hoisted_3 = { class: "py-2 grid" };
|
|
14
|
+
var _hoisted_4 = { class: "tone-primary text-tone font-semibold" };
|
|
15
|
+
var _hoisted_5 = { class: "sm-not:text-xs" };
|
|
12
16
|
var WButtonSelection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
13
17
|
__name: "WButtonSelection",
|
|
14
18
|
props: {
|
|
15
19
|
title: { default: "item" },
|
|
16
20
|
disableMessage: { default: "No selected items" },
|
|
17
|
-
selectedCount: { default: void 0 }
|
|
18
|
-
moreToggleClass: { default: void 0 }
|
|
21
|
+
selectedCount: { default: void 0 }
|
|
19
22
|
},
|
|
20
23
|
emits: ["clear:selection"],
|
|
21
24
|
setup(__props) {
|
|
@@ -24,43 +27,97 @@ var WButtonSelection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
24
27
|
provide(wBaseZIndex, baseZIndex ?? 20);
|
|
25
28
|
const disableMessageValue = computed(() => props.selectedCount === 0 ? props.disableMessage : void 0);
|
|
26
29
|
const isOpen = ref(false);
|
|
30
|
+
const rowRef = useTemplateRef("row");
|
|
31
|
+
/** How many actions of the row fit, from the first. The rest are hidden by the `default` slot and shown by the `more` slot. */
|
|
32
|
+
const visibleCount = ref(Infinity);
|
|
33
|
+
const isOverflowing = ref(false);
|
|
34
|
+
const widths = /* @__PURE__ */ new WeakMap();
|
|
35
|
+
let moreWidth = 0;
|
|
36
|
+
const isShown = (element) => element.getClientRects().length > 0;
|
|
37
|
+
const update = () => {
|
|
38
|
+
const row = rowRef.value;
|
|
39
|
+
if (!row) return;
|
|
40
|
+
const children = Array.from(row.children);
|
|
41
|
+
const items = children.filter((element) => !element.hasAttribute("data-selection-more"));
|
|
42
|
+
const more = children.find((element) => element.hasAttribute("data-selection-more"));
|
|
43
|
+
items.forEach((element) => {
|
|
44
|
+
if (isShown(element)) widths.set(element, element.getBoundingClientRect().width);
|
|
45
|
+
});
|
|
46
|
+
if (more && isShown(more)) moreWidth = more.getBoundingClientRect().width;
|
|
47
|
+
if (items.some((element) => !widths.has(element))) {
|
|
48
|
+
visibleCount.value = Infinity;
|
|
49
|
+
isOverflowing.value = false;
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const available = row.clientWidth;
|
|
53
|
+
if (items.reduce((sum, element) => sum + widths.get(element), 0) <= available || !more) {
|
|
54
|
+
visibleCount.value = Infinity;
|
|
55
|
+
isOverflowing.value = false;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
let count = 0;
|
|
59
|
+
let used = moreWidth;
|
|
60
|
+
while (count < items.length && used + widths.get(items[count]) <= available) {
|
|
61
|
+
used += widths.get(items[count]);
|
|
62
|
+
count++;
|
|
63
|
+
}
|
|
64
|
+
visibleCount.value = count;
|
|
65
|
+
isOverflowing.value = true;
|
|
66
|
+
};
|
|
67
|
+
let observer = null;
|
|
68
|
+
const observe = () => {
|
|
69
|
+
if (!observer || !rowRef.value) return;
|
|
70
|
+
observer.disconnect();
|
|
71
|
+
observer.observe(rowRef.value);
|
|
72
|
+
Array.from(rowRef.value.children).forEach((element) => observer?.observe(element));
|
|
73
|
+
};
|
|
74
|
+
onMounted(() => {
|
|
75
|
+
observer = new ResizeObserver(update);
|
|
76
|
+
observe();
|
|
77
|
+
});
|
|
78
|
+
onUpdated(observe);
|
|
79
|
+
onBeforeUnmount(() => {
|
|
80
|
+
observer?.disconnect();
|
|
81
|
+
observer = null;
|
|
82
|
+
});
|
|
27
83
|
return (_ctx, _cache) => {
|
|
28
84
|
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
|
|
29
85
|
disableMessage: disableMessageValue.value,
|
|
30
|
-
cssClass: "border-l border-solid border-line first:border-l-0"
|
|
86
|
+
cssClass: "shrink-0 border-l border-solid border-line first:border-l-0",
|
|
87
|
+
visibleCount: visibleCount.value
|
|
31
88
|
}))), _ctx.$slots.more ? (openBlock(), createBlock(WDropdownAdaptive_default, {
|
|
32
89
|
key: 0,
|
|
33
90
|
"is-open": isOpen.value,
|
|
34
91
|
"close-on-click": "",
|
|
35
92
|
onClose: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
|
|
36
93
|
}, {
|
|
37
|
-
toggle: withCtx(() => [createVNode(WButtonSelectionAction_default, {
|
|
94
|
+
toggle: withCtx(() => [createVNode(WButtonSelectionAction_default, mergeProps({
|
|
38
95
|
title: "More",
|
|
39
96
|
icon: markRaw(unref(IconMore_default)),
|
|
40
97
|
"aria-expanded": isOpen.value,
|
|
41
98
|
"disable-message": disableMessageValue.value,
|
|
42
|
-
class:
|
|
43
|
-
|
|
44
|
-
}, null, 8, [
|
|
99
|
+
class: ["shrink-0 border-l border-solid border-line", { hidden: !isOverflowing.value }]
|
|
100
|
+
}, { "data-selection-more": "" }, { onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value) }), null, 16, [
|
|
45
101
|
"icon",
|
|
46
102
|
"aria-expanded",
|
|
47
103
|
"disable-message",
|
|
48
104
|
"class"
|
|
49
105
|
])]),
|
|
50
106
|
header: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" More ", -1)])]),
|
|
51
|
-
content: withCtx(() => [renderSlot(_ctx.$slots, "more", normalizeProps(guardReactiveProps({
|
|
107
|
+
content: withCtx(() => [createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "more", normalizeProps(guardReactiveProps({
|
|
52
108
|
disableMessage: disableMessageValue.value,
|
|
53
|
-
cssClass: "
|
|
54
|
-
|
|
109
|
+
cssClass: "",
|
|
110
|
+
visibleCount: visibleCount.value
|
|
111
|
+
})))])]),
|
|
55
112
|
_: 3
|
|
56
|
-
}, 8, ["is-open"])) : createCommentVNode("", true)]), __props.selectedCount ? (openBlock(), createBlock(WButtonSelectionState_default, {
|
|
113
|
+
}, 8, ["is-open"])) : createCommentVNode("", true)], 512), __props.selectedCount ? (openBlock(), createBlock(WButtonSelectionState_default, {
|
|
57
114
|
key: 0,
|
|
58
115
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("clear:selection"))
|
|
59
116
|
}, {
|
|
60
117
|
default: withCtx(() => [
|
|
61
118
|
_cache[4] || (_cache[4] = createElementVNode("span", { class: "sm-not:hidden" }, "Selected\xA0", -1)),
|
|
62
|
-
createElementVNode("span",
|
|
63
|
-
createElementVNode("span",
|
|
119
|
+
createElementVNode("span", _hoisted_4, toDisplayString(unref(numberFormatter).format(__props.selectedCount)), 1),
|
|
120
|
+
createElementVNode("span", _hoisted_5, "\xA0" + toDisplayString(__props.title) + toDisplayString(__props.selectedCount === 1 ? "" : "s"), 1)
|
|
64
121
|
]),
|
|
65
122
|
_: 1
|
|
66
123
|
})) : renderSlot(_ctx.$slots, "settings", {}, void 0, void 0, 1)]);
|
|
@@ -9,9 +9,9 @@ type __VLS_Slots = {
|
|
|
9
9
|
isTop: boolean;
|
|
10
10
|
unclickable: boolean | undefined;
|
|
11
11
|
}) => VNode[];
|
|
12
|
-
/** Heading of the bottom sheet on phones, instead of the copy of `toggle`. */
|
|
12
|
+
/** Heading of the bottom sheet on phones, instead of the copy of `toggle`. With `dialog`, the title of the dropdown too. */
|
|
13
13
|
header?: () => VNode[];
|
|
14
|
-
/** Content of the dropdown, which brings its own padding
|
|
14
|
+
/** Content of the dropdown, which brings its own padding, unless it is a `dialog`. A click inside closes it with `closeOnClick`. */
|
|
15
15
|
content?: () => VNode[];
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import('vue').DefineComponent<DropdownAdaptiveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WDropdownAdaptive.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownAdaptive.vue"],"names":[],"mappings":"AAOA;
|
|
1
|
+
{"version":3,"file":"WDropdownAdaptive.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownAdaptive.vue"],"names":[],"mappings":"AAOA;AA4HA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,SAAS,CAAA;AAElD,OAAO,EAAC,KAAK,KAAK,EAAyF,MAAM,KAAK,CAAA;AAkBtH,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IAC/E,4HAA4H;IAC5H,MAAM,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACtB,oIAAoI;IACpI,OAAO,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;CACxB,CAAC;AA6HF,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/DropdownMenu/WDropdownAdaptive.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsMobile } from "../../utils/mobile.js";
|
|
2
|
-
import { useOverlay, useOverlayFrame } from "../../utils/Overlay.js";
|
|
3
|
-
import
|
|
2
|
+
import { useOverlay, useOverlayFrame, useOverlayFrameOptions } from "../../utils/Overlay.js";
|
|
3
|
+
import OverlayRegionPart_default from "../Modal/components/OverlayRegionPart.vue.js";
|
|
4
4
|
import { computed, createBlock, defineComponent, h, markRaw, mergeProps, onMounted, openBlock, ref, resolveDynamicComponent, unref, useSlots, useTemplateRef, watch } from "vue";
|
|
5
5
|
//#region src/components/DropdownMenu/WDropdownAdaptive.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var WDropdownAdaptive_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -10,6 +10,7 @@ var WDropdownAdaptive_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
10
10
|
isOpen: { type: Boolean },
|
|
11
11
|
parentElement: {},
|
|
12
12
|
horizontalAlign: {},
|
|
13
|
+
dialog: { type: Boolean },
|
|
13
14
|
frameClass: {},
|
|
14
15
|
closeOnClick: { type: Boolean }
|
|
15
16
|
},
|
|
@@ -26,11 +27,16 @@ var WDropdownAdaptive_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
26
27
|
emits: ["close:modal"],
|
|
27
28
|
setup: () => {
|
|
28
29
|
const isSheet = useOverlayFrame() === "sheet";
|
|
30
|
+
if (props.dialog) useOverlayFrameOptions(() => ({
|
|
31
|
+
padded: true,
|
|
32
|
+
fitContent: true
|
|
33
|
+
}));
|
|
29
34
|
const renderHeader = () => slots.header ? h("div", { class: "flex items-center gap-2 py-2 text-base text-center font-semibold" }, slots.header()) : slots.toggle?.({
|
|
30
35
|
isTop: false,
|
|
31
36
|
unclickable: false
|
|
32
37
|
});
|
|
33
|
-
|
|
38
|
+
const renderTitle = () => h("span", { class: "inline-flex items-center gap-2" }, slots.header?.());
|
|
39
|
+
return () => [props.dialog ? h(OverlayRegionPart_default, { region: "title" }, { default: renderTitle }) : isSheet ? h(OverlayRegionPart_default, { region: "header" }, { default: renderHeader }) : null, slots.content?.()];
|
|
34
40
|
}
|
|
35
41
|
}));
|
|
36
42
|
const overlay = useOverlay();
|
|
@@ -16,5 +16,7 @@ export interface DropdownAdaptiveProps extends Pick<OverlayDropdownOptions, 'fra
|
|
|
16
16
|
parentElement?: OverlayAnchor | null;
|
|
17
17
|
/** Aligns the dropdown to the parent without a tip, such as a field's menu with `HorizontalAlign.FILL`. Otherwise it is centered on the parent with a tip pointing at it. */
|
|
18
18
|
horizontalAlign?: HorizontalAlign;
|
|
19
|
+
/** The content is a small form, such as a filter: the `header` slot is its title on every screen, and the frame pads the content and sizes to it. */
|
|
20
|
+
dialog?: boolean;
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAC,aAAa,EAAE,sBAAsB,EAAC,MAAM,iBAAiB,CAAA;AAE1E,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,GAAG,YAAY,CAAC;IAC5F,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAA;IACf,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;IAC9C,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,YAAY,GAAG,cAAc,CAAC;IACxG,0BAA0B;IAC1B,MAAM,EAAE,OAAO,CAAA;IACf,4FAA4F;IAC5F,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACpC,6KAA6K;IAC7K,eAAe,CAAC,EAAE,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAC,aAAa,EAAE,sBAAsB,EAAC,MAAM,iBAAiB,CAAA;AAE1E,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,GAAG,YAAY,CAAC;IAC5F,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAA;IACf,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;IAC9C,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,YAAY,GAAG,cAAc,CAAC;IACxG,0BAA0B;IAC1B,MAAM,EAAE,OAAO,CAAA;IACf,4FAA4F;IAC5F,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACpC,6KAA6K;IAC7K,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,qJAAqJ;IACrJ,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"AAqLA;AAkUA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAkB,KAAK,KAAK,EAAuE,MAAM,KAAK,CAAA;AAerH,KAAK,WAAW,GAAG,iBAAiB,GAAG;IACnC,uJAAuJ;IACvJ,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AAyGJ,KAAK,WAAW,GAAG;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACrB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,KAAK,EAAE,CAAA;IACvB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACrB,qDAAqD;IACrD,MAAM,EAAE,MAAM,KAAK,EAAE,CAAA;IACrB,2JAA2J;IAC3J,KAAK,EAAE,CAAC,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACpH,sGAAsG;IACtG,OAAO,EAAE,CAAC,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;CACvH,CAAC;AA6XF,QAAA,MAAM,UAAU;sBAvdO,cAAc,GAAG,IAAI;yBA2BhB,MAAM,eAAc,MAAM;;;;;;;;;;;6EAicpD,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"}
|
|
@@ -170,7 +170,7 @@ var WFieldWrapper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
170
170
|
"pr-9": !__props.title && !_ctx.$slots.title && __props.filterField,
|
|
171
171
|
"col-start-2 -col-end-1 row-start-1 -row-end-3 grid-cols-subgrid": __props.subgrid,
|
|
172
172
|
"grid-cols-[1fr_auto]": !__props.subgrid,
|
|
173
|
-
"px-3": __props.embedded
|
|
173
|
+
"px-[max(0px,calc(--spacing(3)-var(--w-frame-padding,0px)))]": __props.embedded
|
|
174
174
|
}])
|
|
175
175
|
}, [
|
|
176
176
|
!unref(isSkeleton) ? (openBlock(), createElementBlock("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WInfoCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoCard/WInfoCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WInfoCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoCard/WInfoCard.vue"],"names":[],"mappings":"AAgCA;AAmEA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAIjD,KAAK,WAAW,GAAG;IACjB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,sBAAsB;IACtB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2GAA2G;IAC3G,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,wEAAwE;IACxE,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,uCAAuC;IACvC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAA;IAChB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,CAAC;AAsFF,QAAA,MAAM,UAAU,kSAEd,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,4 +1,5 @@
|
|
|
1
1
|
import { SemanticType } from "../../utils/SemanticType.js";
|
|
2
|
+
import { useOverlayFrame } from "../../utils/Overlay.js";
|
|
2
3
|
import IconNegativeInfo_default from "../../assets/icons/IconNegativeInfo.js";
|
|
3
4
|
import { infoCardIconSemanticTypeMap, infoCardSemanticTypeMap } from "./models/utils.js";
|
|
4
5
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref } from "vue";
|
|
@@ -14,8 +15,13 @@ var WInfoCard_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
14
15
|
semanticType: {}
|
|
15
16
|
},
|
|
16
17
|
setup(__props) {
|
|
18
|
+
const frame = useOverlayFrame();
|
|
17
19
|
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(["
|
|
20
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["p-4 sm:rounded-3xl", {
|
|
21
|
+
"sm-not:w-frame-bleed sm-not:px-[max(var(--w-frame-padding),1rem)]": unref(frame) !== null,
|
|
22
|
+
"sm-not:px---inner-margin sm-not:-mx---inner-margin": unref(frame) === null,
|
|
23
|
+
[unref(infoCardSemanticTypeMap)[__props.semanticType ?? unref(SemanticType).SECONDARY]]: !__props.noBg
|
|
24
|
+
}]) }, [
|
|
19
25
|
renderSlot(_ctx.$slots, "top"),
|
|
20
26
|
createElementVNode("div", _hoisted_1, [!__props.noIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconNegativeInfo_default)), {
|
|
21
27
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputSuggestEmbedded.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/InputSuggestEmbedded.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputSuggestEmbedded.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/InputSuggestEmbedded.vue"],"names":[],"mappings":"AAaA;AAiDA,QAAA,IAAI,OAAO;;;CAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAC/C,QAAA,MAAM,UAAU,+QACd,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/Input/components/InputSuggestEmbedded.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Fragment, createElementBlock, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, withCtx } from "vue";
|
|
1
|
+
import OverlayRegionPart_default from "../../Modal/components/OverlayRegionPart.vue.js";
|
|
2
|
+
import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, withCtx } from "vue";
|
|
3
3
|
//#region src/components/Input/components/InputSuggestEmbedded.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "w-frame-bleed" };
|
|
4
5
|
var InputSuggestEmbedded_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
6
|
__name: "InputSuggestEmbedded",
|
|
6
7
|
setup(__props) {
|
|
7
8
|
return (_ctx, _cache) => {
|
|
8
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(
|
|
9
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(OverlayRegionPart_default, { region: "header" }, {
|
|
9
10
|
default: withCtx(() => [renderSlot(_ctx.$slots, "toggle", normalizeProps(guardReactiveProps({
|
|
10
11
|
unclickable: void 0,
|
|
11
12
|
isTop: false
|
|
12
13
|
})))]),
|
|
13
14
|
_: 3
|
|
14
|
-
}), renderSlot(_ctx.$slots, "content")], 64);
|
|
15
|
+
}), createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "content")])], 64);
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
});
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: <Data extends DefaultData, QueryParams, Fields exten
|
|
|
25
25
|
bulkDisableMessage?: string;
|
|
26
26
|
/** Singular noun in the "Selected N items" counter of the selection bar. */
|
|
27
27
|
selectionTitle: string;
|
|
28
|
-
/** Actions in the selection bar while items are selected. Each gets the selection count and a getter of the query params narrowed to the selection.
|
|
28
|
+
/** Actions in the selection bar while items are selected. Each gets the selection count and a getter of the query params narrowed to the selection. The ones that do not fit the bar move into a More menu. */
|
|
29
29
|
bulk?: BulkComponent<QueryParams>[];
|
|
30
30
|
/** Actions in the selection bar while nothing is selected, with the current query params. */
|
|
31
31
|
action?: ActionComponent<QueryParams>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AA8KA;AAojBA,OAAO,KAAK,EAAC,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,SAAS,EAAc,kBAAkB,EAAe,cAAc,EAAE,OAAO,EAAkB,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzM,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AASzC,OAAO,EAAC,KAAK,mBAAmB,EAAc,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAC,KAAK,SAAS,EAAgC,MAAM,qBAAqB,CAAA;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAOtC,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MA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AxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListFilterLocalItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterLocalItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListFilterLocalItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterLocalItem.vue"],"names":[],"mappings":"AAoEA;AAiHA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;AAC7C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAA;AAc5D,QAAA,MAAM,YAAY,GAAK,WAAW,EACjC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAmOO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;eAjO/C,YAAY,CAAC,WAAW,CAAC;cAC1B,eAAe,CAAC,WAAW,CAAC;gBAC1B,OAAO;kBACL,OAAO;;;;;KA8NwE,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;WACH,EAAE;;YA5NJ,QAAQ,GAAG,IAAI;YACf,OAAO,GAAG,IAAI;YACd,QAAQ,GAAG,IAAI;;EA6NjB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
package/dist/components/List/components/ListFilterLocalItem.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -3,10 +3,12 @@ import { getMetaValue } from "../models/utils.js";
|
|
|
3
3
|
import WButton_default from "../../Button/WButton.vue.js";
|
|
4
4
|
import WDropdownAdaptive_default from "../../DropdownMenu/WDropdownAdaptive.vue.js";
|
|
5
5
|
import IconClose_default from "../../../assets/icons/IconClose.js";
|
|
6
|
-
import {
|
|
6
|
+
import { wCloseOverlayOnPick } from "../../Select/models/useCloseOnPick.js";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
7
8
|
//#region src/components/List/components/ListFilterLocalItem.vue?vue&type=script&setup=true&lang.ts
|
|
8
9
|
var _hoisted_1 = { class: "whitespace-nowrap" };
|
|
9
10
|
var _hoisted_2 = { class: "square-4 relative flex items-center justify-center rounded-full group-hover:bg-surface-muted" };
|
|
11
|
+
var _hoisted_3 = { class: "text-start font-normal" };
|
|
10
12
|
var ListFilterLocalItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
11
13
|
__name: "ListFilterLocalItem",
|
|
12
14
|
props: {
|
|
@@ -22,6 +24,7 @@ var ListFilterLocalItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
22
24
|
],
|
|
23
25
|
setup(__props) {
|
|
24
26
|
const props = __props;
|
|
27
|
+
provide(wCloseOverlayOnPick, true);
|
|
25
28
|
const meta = computed(() => Array.isArray(props.item) ? props.item[0].meta : props.item.meta);
|
|
26
29
|
const title = computed(() => getMetaValue(meta.value.title, props.scope.modelValue));
|
|
27
30
|
const icon = computed(() => getMetaValue(meta.value.icon, props.scope.modelValue));
|
|
@@ -29,7 +32,7 @@ var ListFilterLocalItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
29
32
|
return (_ctx, _cache) => {
|
|
30
33
|
return openBlock(), createBlock(WDropdownAdaptive_default, {
|
|
31
34
|
"is-open": __props.isOpen,
|
|
32
|
-
|
|
35
|
+
dialog: "",
|
|
33
36
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
34
37
|
}, {
|
|
35
38
|
toggle: withCtx(() => [createVNode(WButton_default, {
|
|
@@ -58,7 +61,7 @@ var ListFilterLocalItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
58
61
|
key: 0,
|
|
59
62
|
class: "square-[1.25em]"
|
|
60
63
|
})) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(title.value), 1)]),
|
|
61
|
-
content: withCtx(() => [createElementVNode("div",
|
|
64
|
+
content: withCtx(() => [createElementVNode("div", _hoisted_3, [Array.isArray(__props.item) ? (openBlock(), createBlock(resolveDynamicComponent(__props.item[0].default), mergeProps({ key: 0 }, __props.item[1], {
|
|
62
65
|
scope: __props.scope,
|
|
63
66
|
readonly: __props.readonly,
|
|
64
67
|
global: false
|
|
@@ -67,7 +70,7 @@ var ListFilterLocalItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
67
70
|
scope: __props.scope,
|
|
68
71
|
readonly: __props.readonly,
|
|
69
72
|
global: false
|
|
70
|
-
}, null, 8, ["scope", "readonly"]))]
|
|
73
|
+
}, null, 8, ["scope", "readonly"]))])]),
|
|
71
74
|
_: 1
|
|
72
75
|
}, 8, ["is-open"]);
|
|
73
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListToolbar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListToolbar.vue"],"names":[],"mappings":"AAqMA;AAySA,OAAO,KAAK,EAAC,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,UAAU,CAAA;AACpG,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAsB3C,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,WAAW,EAAE,WAAW,EAC3D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAooBO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;QAloBtD,iFAAiF;eAC1E,MAAM,GAAG,SAAS;QACzB,8EAA8E;oBAClE,MAAM,GAAG,SAAS;wBACd,MAAM;4BACF,MAAM,GAAG,SAAS;wBACtB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GAAG,SAAS;;;;;;;;;;;KAqlBmD,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;iBA/jBA,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;SAAC,KAAK,IAAI;oBACzC,MAAM,IAAI;;;YApBlB,iBAAiB,GAAG,IAAI;YACxB,kBAAkB,SAAS,OAAO,GAAG,IAAI;YACzC,kBAAkB,GAAG,IAAI;YACzB,iBAAiB,SAAS,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,GAAG,IAAI;YACxD,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,cAAc,SAAS,MAAM,SAAS,MAAM,GAAG,IAAI;YACnD,YAAY,GAAG,IAAI;YACnB,aAAa,GAAG,IAAI;;EA8kBtB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ import HeaderSettings_default from "./HeaderSettings.vue.js";
|
|
|
11
11
|
import HeaderSort_default from "./HeaderSort.vue.js";
|
|
12
12
|
import WListHeader_default from "../WListHeader.vue.js";
|
|
13
13
|
import WListHeaderItem_default from "../WListHeaderItem.vue.js";
|
|
14
|
-
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, markRaw, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
14
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, markRaw, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
15
15
|
//#region src/components/List/components/ListToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
16
16
|
var _hoisted_1 = {
|
|
17
17
|
key: 1,
|
|
@@ -74,7 +74,9 @@ var ListToolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
74
74
|
"click:reset"
|
|
75
75
|
],
|
|
76
76
|
setup(__props, { emit: __emit }) {
|
|
77
|
+
const props = __props;
|
|
77
78
|
const emit = __emit;
|
|
79
|
+
const bulkOffset = computed(() => props.disableExport ? 0 : 1);
|
|
78
80
|
const resetSelection = () => emit("reset:selection");
|
|
79
81
|
return (_ctx, _cache) => {
|
|
80
82
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -84,7 +86,6 @@ var ListToolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
84
86
|
"disable-message": __props.bulkDisableMessage,
|
|
85
87
|
"selected-count": __props.selectionCount,
|
|
86
88
|
style: normalizeStyle({ zIndex: unref(2) }),
|
|
87
|
-
"more-toggle-class": "nth-[-n+3]:hidden sm:nth-[-n+5]:hidden",
|
|
88
89
|
"onClear:selection": _cache[7] || (_cache[7] = ($event) => _ctx.$emit("reset:selection"))
|
|
89
90
|
}, createSlots({
|
|
90
91
|
settings: withCtx(() => [_ctx.$slots.selection ? renderSlot(_ctx.$slots, "selection", {}, void 0, void 0, 0) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -155,7 +156,7 @@ var ListToolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
155
156
|
_: 2
|
|
156
157
|
}, [__props.bulk || __props.action || !__props.disableExport ? {
|
|
157
158
|
name: "default",
|
|
158
|
-
fn: withCtx(({ disableMessage, cssClass }) => [__props.selectionCount === 0 && __props.action ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.action, (item, index) => {
|
|
159
|
+
fn: withCtx(({ disableMessage, cssClass, visibleCount }) => [__props.selectionCount === 0 && __props.action ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.action, (item, index) => {
|
|
159
160
|
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
160
161
|
key: index,
|
|
161
162
|
"query-params": __props.queryParams,
|
|
@@ -191,7 +192,7 @@ var ListToolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
191
192
|
"disable-message": disableMessage,
|
|
192
193
|
readonly: __props.readonly,
|
|
193
194
|
"clear-selection": resetSelection,
|
|
194
|
-
class: normalizeClass([cssClass,
|
|
195
|
+
class: normalizeClass([cssClass, { hidden: bulkOffset.value + index >= visibleCount }]),
|
|
195
196
|
"onClear:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("reset:selection"))
|
|
196
197
|
}, null, 40, [
|
|
197
198
|
"selection-count",
|
|
@@ -202,24 +203,23 @@ var ListToolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
202
203
|
]);
|
|
203
204
|
}), 128))], 64))]),
|
|
204
205
|
key: "0"
|
|
205
|
-
} : void 0, __props.bulk && __props.
|
|
206
|
+
} : void 0, __props.bulk?.length && !(__props.selectionCount === 0 && __props.action) ? {
|
|
206
207
|
name: "more",
|
|
207
208
|
fn: withCtx((scope) => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.bulk, (item, index) => {
|
|
208
|
-
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
209
|
-
key:
|
|
209
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [bulkOffset.value + index >= scope.visibleCount ? (openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
210
|
+
key: 0,
|
|
210
211
|
"selection-count": __props.selectionCount,
|
|
211
212
|
"query-params-getter": __props.getQueryParamsBulk,
|
|
212
|
-
"disable-message": scope
|
|
213
|
+
"disable-message": scope.disableMessage,
|
|
213
214
|
readonly: __props.readonly,
|
|
214
215
|
"clear-selection": resetSelection,
|
|
215
|
-
class: "last:pb-2 nth-[-n+1]:hidden sm:nth-[-n+3]:hidden nth-2:pt-2 sm:nth-4:pt-2",
|
|
216
216
|
"onClear:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("reset:selection"))
|
|
217
217
|
}, null, 40, [
|
|
218
218
|
"selection-count",
|
|
219
219
|
"query-params-getter",
|
|
220
220
|
"disable-message",
|
|
221
221
|
"readonly"
|
|
222
|
-
]);
|
|
222
|
+
])) : createCommentVNode("", true)], 64);
|
|
223
223
|
}), 128))]),
|
|
224
224
|
key: "1"
|
|
225
225
|
} : void 0]), 1032, [
|
|
@@ -148,7 +148,6 @@ export type FilterMeta<QueryParams> = {
|
|
|
148
148
|
title?: string | ((queryParams: QueryParams) => string);
|
|
149
149
|
icon?: SVGComponent | ((queryParams: QueryParams) => SVGComponent);
|
|
150
150
|
hidden?: boolean | ((queryParams: QueryParams) => boolean);
|
|
151
|
-
embedded?: boolean;
|
|
152
151
|
};
|
|
153
152
|
export type FilterEmits = {
|
|
154
153
|
(e: 'close'): void;
|