eco-vue-js 0.11.4 → 0.11.6
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/Button/WButtonDropdown.vue.d.ts +0 -2
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +2 -6
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +0 -2
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +0 -2
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +29 -46
- package/dist/components/Dropdown/types.d.ts +0 -7
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +35 -75
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.js +97 -163
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +0 -4
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +1 -5
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +0 -2
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +9 -6
- package/dist/components/Input/WInputDate.vue.d.ts +0 -2
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +0 -2
- package/dist/components/Input/WInputOptions.vue.js +0 -2
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +1 -5
- package/dist/components/Input/components/ContentEditable.vue.js +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +0 -2
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue.js +0 -2
- package/dist/components/List/components/ListFilterSelect.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListFilterSelect.vue.js +0 -2
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +0 -2
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +75 -74
- package/dist/components/Select/WSelectAsync.vue.d.ts +2 -2
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -2
- package/dist/components/Select/WSelectAsyncSingle.vue.js +0 -2
- package/dist/components/Select/WSelectSingle.vue.js +0 -2
- package/dist/components/Select/WSelectStringified.vue.js +0 -2
- package/dist/components/Select/components/SelectAsyncList.vue.js +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +0 -2
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -3
- package/package.json +1 -1
- package/tailwind-base/plugins/default.ts +14 -8
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createCommentVNode, createElementBlock, renderSlot, resolveDynamicComponent,
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementVNode, createCommentVNode, createElementBlock, renderSlot, resolveDynamicComponent, toDisplayString, Fragment, renderList, normalizeClass } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
3
3
|
import { ApiError } from '../../utils/api.js';
|
4
4
|
import { useIsMobile } from '../../utils/mobile.js';
|
@@ -7,15 +7,16 @@ import { debounce } from '../../utils/utils.js';
|
|
7
7
|
import _sfc_main$2 from './components/SelectOption.vue.js';
|
8
8
|
import _sfc_main$3 from './components/SelectOptionPrefix.vue.js';
|
9
9
|
|
10
|
-
const _hoisted_1 = {
|
10
|
+
const _hoisted_1 = { class: "max-h-80" };
|
11
|
+
const _hoisted_2 = {
|
11
12
|
key: 1,
|
12
13
|
class: "text-description w-option flex items-center"
|
13
14
|
};
|
14
|
-
const
|
15
|
+
const _hoisted_3 = {
|
15
16
|
key: 1,
|
16
17
|
class: "w-select-option first:-pt--w-select-option-padding last:-pb--w-select-option-padding"
|
17
18
|
};
|
18
|
-
const
|
19
|
+
const _hoisted_4 = { class: "w-option flex cursor-default select-none items-center" };
|
19
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
20
21
|
...{ inheritAttrs: false },
|
21
22
|
__name: "WSelect",
|
@@ -81,8 +82,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
82
|
savedText: {},
|
82
83
|
topText: { type: Boolean },
|
83
84
|
parentElement: {},
|
84
|
-
maxHeight: {},
|
85
|
-
maxWidth: {},
|
86
85
|
horizontalAlign: {},
|
87
86
|
top: { type: Boolean },
|
88
87
|
bottom: { type: Boolean },
|
@@ -321,82 +320,84 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
321
320
|
}), 128)) : createCommentVNode("", true)
|
322
321
|
]),
|
323
322
|
content: withCtx(() => [
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
"hide-option-icon": _ctx.hideOptionIcon,
|
331
|
-
disabled: !search.value || isModelValueSearch.value,
|
332
|
-
class: "first:-pt--w-select-option-padding last:-pb--w-select-option-padding",
|
333
|
-
onSelect: _cache[0] || (_cache[0] = ($event) => create(search.value)),
|
334
|
-
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
|
335
|
-
}, {
|
336
|
-
prefix: withCtx(() => _cache[6] || (_cache[6] = [
|
337
|
-
createElementVNode("div", { class: "w-option flex items-center pr-2" }, " Create: ", -1)
|
338
|
-
])),
|
339
|
-
default: withCtx(() => [
|
340
|
-
search.value && !isModelValueSearch.value ? renderSlot(_ctx.$slots, "option", {
|
341
|
-
key: 0,
|
342
|
-
option: void 0,
|
343
|
-
search: search.value,
|
344
|
-
selected: false,
|
345
|
-
model: false,
|
346
|
-
index: void 0,
|
347
|
-
skeleton: false
|
348
|
-
}, () => [
|
349
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
|
350
|
-
option: null,
|
351
|
-
search: search.value,
|
352
|
-
selected: false,
|
353
|
-
model: false
|
354
|
-
}), null, 16, ["search"]))
|
355
|
-
]) : (openBlock(), createElementBlock("div", _hoisted_1, " Start typing.. "))
|
356
|
-
]),
|
357
|
-
_: 3
|
358
|
-
}, 8, ["is-cursor", "loading", "scroll", "hide-option-icon", "disabled"])) : createCommentVNode("", true),
|
359
|
-
!optionsFiltered.value.length && !isModelValueSearch.value && (!_ctx.createOption || optionsWithCreated.value.length) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
360
|
-
createElementVNode("div", _hoisted_3, toDisplayString(!search.value && _ctx.emptyStub ? _ctx.emptyStub : search.value ? "No match" : "Nothing to show"), 1)
|
361
|
-
])) : createCommentVNode("", true),
|
362
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
|
363
|
-
return openBlock(), createBlock(_sfc_main$2, {
|
364
|
-
key: _ctx.valueGetter(option),
|
365
|
-
"is-selected": _ctx.modelValue.includes(_ctx.valueGetter(option)),
|
366
|
-
"is-cursor": index === cursor.value,
|
367
|
-
loading: loadingOptionIndex.value === index && _ctx.loading,
|
323
|
+
createElementVNode("div", _hoisted_1, [
|
324
|
+
hasCreateOption.value ? (openBlock(), createBlock(_sfc_main$2, {
|
325
|
+
key: 0,
|
326
|
+
"is-selected": false,
|
327
|
+
"is-cursor": cursor.value === optionsFiltered.value.length,
|
328
|
+
loading: (loadingCreate.value || loadingOptionIndex.value === optionsFiltered.value.length) && _ctx.loading,
|
368
329
|
scroll: isCursorLocked.value,
|
369
330
|
"hide-option-icon": _ctx.hideOptionIcon,
|
331
|
+
disabled: !search.value || isModelValueSearch.value,
|
370
332
|
class: "first:-pt--w-select-option-padding last:-pb--w-select-option-padding",
|
371
|
-
onSelect: ($event) =>
|
372
|
-
|
373
|
-
setLoadingOptionIndex(index);
|
374
|
-
},
|
375
|
-
onUnselect: ($event) => {
|
376
|
-
unselect(_ctx.valueGetter(option));
|
377
|
-
setLoadingOptionIndex(index);
|
378
|
-
},
|
379
|
-
onMouseenter: ($event) => setCursor(index)
|
333
|
+
onSelect: _cache[0] || (_cache[0] = ($event) => create(search.value)),
|
334
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
|
380
335
|
}, {
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
336
|
+
prefix: withCtx(() => _cache[6] || (_cache[6] = [
|
337
|
+
createElementVNode("div", { class: "w-option flex items-center pr-2" }, " Create: ", -1)
|
338
|
+
])),
|
339
|
+
default: withCtx(() => [
|
340
|
+
search.value && !isModelValueSearch.value ? renderSlot(_ctx.$slots, "option", {
|
341
|
+
key: 0,
|
342
|
+
option: void 0,
|
343
|
+
search: search.value,
|
344
|
+
selected: false,
|
385
345
|
model: false,
|
386
|
-
index,
|
387
|
-
skeleton: false
|
388
|
-
search: search.value
|
346
|
+
index: void 0,
|
347
|
+
skeleton: false
|
389
348
|
}, () => [
|
390
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(
|
391
|
-
option,
|
392
|
-
|
349
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
|
350
|
+
option: null,
|
351
|
+
search: search.value,
|
352
|
+
selected: false,
|
393
353
|
model: false
|
394
|
-
}), null, 16, ["
|
395
|
-
])
|
354
|
+
}), null, 16, ["search"]))
|
355
|
+
]) : (openBlock(), createElementBlock("div", _hoisted_2, " Start typing.. "))
|
396
356
|
]),
|
397
|
-
_:
|
398
|
-
},
|
399
|
-
|
357
|
+
_: 3
|
358
|
+
}, 8, ["is-cursor", "loading", "scroll", "hide-option-icon", "disabled"])) : createCommentVNode("", true),
|
359
|
+
!optionsFiltered.value.length && !isModelValueSearch.value && (!_ctx.createOption || optionsWithCreated.value.length) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
360
|
+
createElementVNode("div", _hoisted_4, toDisplayString(!search.value && _ctx.emptyStub ? _ctx.emptyStub : search.value ? "No match" : "Nothing to show"), 1)
|
361
|
+
])) : createCommentVNode("", true),
|
362
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
|
363
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
364
|
+
key: _ctx.valueGetter(option),
|
365
|
+
"is-selected": _ctx.modelValue.includes(_ctx.valueGetter(option)),
|
366
|
+
"is-cursor": index === cursor.value,
|
367
|
+
loading: loadingOptionIndex.value === index && _ctx.loading,
|
368
|
+
scroll: isCursorLocked.value,
|
369
|
+
"hide-option-icon": _ctx.hideOptionIcon,
|
370
|
+
class: "first:-pt--w-select-option-padding last:-pb--w-select-option-padding",
|
371
|
+
onSelect: ($event) => {
|
372
|
+
select(_ctx.valueGetter(option));
|
373
|
+
setLoadingOptionIndex(index);
|
374
|
+
},
|
375
|
+
onUnselect: ($event) => {
|
376
|
+
unselect(_ctx.valueGetter(option));
|
377
|
+
setLoadingOptionIndex(index);
|
378
|
+
},
|
379
|
+
onMouseenter: ($event) => setCursor(index)
|
380
|
+
}, {
|
381
|
+
default: withCtx(({ selected }) => [
|
382
|
+
renderSlot(_ctx.$slots, "option", {
|
383
|
+
option,
|
384
|
+
selected,
|
385
|
+
model: false,
|
386
|
+
index,
|
387
|
+
skeleton: false,
|
388
|
+
search: search.value
|
389
|
+
}, () => [
|
390
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ ref_for: true }, _ctx.optionComponentProps, {
|
391
|
+
option,
|
392
|
+
selected,
|
393
|
+
model: false
|
394
|
+
}), null, 16, ["option", "selected"]))
|
395
|
+
])
|
396
|
+
]),
|
397
|
+
_: 2
|
398
|
+
}, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
|
399
|
+
}), 128))
|
400
|
+
])
|
400
401
|
]),
|
401
402
|
_: 2
|
402
403
|
}, [
|
@@ -3,7 +3,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly onSelect?: ((item: Model) => any) | undefined;
|
5
5
|
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
6
|
-
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
6
|
+
readonly onFocus?: ((value: FocusEvent | undefined) => any) | undefined;
|
7
7
|
readonly "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
8
8
|
readonly onUnselect?: ((item: Model) => any) | undefined;
|
9
9
|
readonly "onInit-model"?: (() => any) | undefined;
|
@@ -30,7 +30,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
30
30
|
(e: "unselect", item: Model): void;
|
31
31
|
(e: "update:model-value", value: Model[]): void;
|
32
32
|
(e: "init-model"): void;
|
33
|
-
(e: "focus", value: FocusEvent): void;
|
33
|
+
(e: "focus", value: FocusEvent | undefined): void;
|
34
34
|
(e: "blur", value: FocusEvent): void;
|
35
35
|
};
|
36
36
|
}>) => import('vue').VNode & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA+HA;AA0TA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA8B,iBAAiB,EAAC,MAAM,SAAS,CAAA;yBAYlG,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EACzI,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,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAshBO,mBAAmB,CAAC;;;;;;;4RAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;2BA7YrB,MAAM,KAAG,IAAI;MA6Y8B,GAAG,IAAI;WACpE,GAAG;;gBA3WD,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI;;gBAHrD,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI;;;YA/JzD,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,YAAY,GAAG,IAAI;YACnB,OAAO,SAAS,UAAU,GAAG,SAAS,GAAG,IAAI;YAC7C,MAAM,SAAS,UAAU,GAAG,IAAI;;EAsgBlC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAjiBzE,wBAiiB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -74,8 +74,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
74
74
|
savedText: {},
|
75
75
|
topText: { type: Boolean },
|
76
76
|
parentElement: {},
|
77
|
-
maxHeight: {},
|
78
|
-
maxWidth: {},
|
79
77
|
horizontalAlign: {},
|
80
78
|
top: { type: Boolean },
|
81
79
|
bottom: { type: Boolean },
|
@@ -265,6 +263,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
265
263
|
"value-getter": _ctx.valueGetter,
|
266
264
|
"loading-create": loadingCreate.value,
|
267
265
|
search: search.value,
|
266
|
+
class: "max-h-80",
|
268
267
|
onSelect: select,
|
269
268
|
onUnselect: unselect,
|
270
269
|
"onCreate:option": _cache[1] || (_cache[1] = ($event) => create(search.value)),
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
const firstItem = ref();
|
42
42
|
const lastItem = ref();
|
43
43
|
const count = ref(0);
|
44
|
-
const isModelValueSearch = computed(() => props.search && props.modelValue.includes(props.search));
|
44
|
+
const isModelValueSearch = computed(() => !!props.search && props.modelValue.includes(props.search));
|
45
45
|
const setLoadingOption = (value) => {
|
46
46
|
loadingOption.value = value;
|
47
47
|
};
|
@@ -4,8 +4,6 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
4
4
|
$: import('vue').ComponentInternalInstance;
|
5
5
|
$data: {};
|
6
6
|
$props: {
|
7
|
-
readonly maxHeight: number;
|
8
|
-
readonly maxWidth: number;
|
9
7
|
readonly horizontalAlign: HorizontalAlign;
|
10
8
|
readonly top?: boolean | undefined;
|
11
9
|
readonly bottom?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":"AA8CA;AAiFA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuL8sgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;AAT33gB,wBAOG"}
|
@@ -36,8 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
key: dropdownKey.value,
|
37
37
|
"parent-element": unref(tooltipMeta).parent,
|
38
38
|
"horizontal-align": unref(tooltipMeta).left ? unref(HorizontalAlign).LEFT_CENTER : unref(tooltipMeta).right ? unref(HorizontalAlign).RIGHT_CENTER : unref(HorizontalAlign).CENTER,
|
39
|
-
"max-height": unref(tooltipMeta)?.maxHeight ?? 120,
|
40
|
-
"max-width": unref(tooltipMeta).left || unref(tooltipMeta).right ? 400 : 240,
|
41
39
|
top: unref(tooltipMeta).top,
|
42
40
|
bottom: unref(tooltipMeta).bottom,
|
43
41
|
"emit-update": "",
|
@@ -62,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
62
60
|
}, 1032, ["tooltip-meta", "is-top", "is-left", "is-right"])
|
63
61
|
]),
|
64
62
|
_: 1
|
65
|
-
}, 8, ["parent-element", "horizontal-align", "
|
63
|
+
}, 8, ["parent-element", "horizontal-align", "top", "bottom", "onUpdate:rect"])) : createCommentVNode("", true)
|
66
64
|
]),
|
67
65
|
_: 1
|
68
66
|
});
|
package/package.json
CHANGED
@@ -35,16 +35,22 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
|
|
35
35
|
|
36
36
|
addBase({
|
37
37
|
'*': {
|
38
|
-
'--w-left-inner': 'calc(var(--nav-bar-width) + var(--inner-margin))',
|
39
|
-
'--w-right-inner': 'calc(var(--actions-bar-width) + var(--inner-margin))',
|
40
|
-
'--w-width-inner': 'calc(100vw - var(--
|
41
|
-
|
38
|
+
'--w-left-inner': 'calc(var(--nav-bar-width, 0px) + var(--inner-margin, 0px))',
|
39
|
+
'--w-right-inner': 'calc(var(--actions-bar-width, 0px) + var(--inner-margin, 0px) + var(--scroll-bar-width, 0px))',
|
40
|
+
'--w-width-inner': 'calc(100vw - var(--w-left-inner, 0px) - var(--w-right-inner, 0px))',
|
41
|
+
|
42
|
+
'--w-top-inner': 'calc(var(--header-height, 0px) + var(--infinite-list-header-height, 0px))',
|
43
|
+
'--w-bottom-inner': 'var(--scroll-bar-width, 0px)',
|
44
|
+
'--w-height-inner': 'calc(100vh - var(--w-top-inner, 0px) - var(--w-bottom-inner, 0px))',
|
42
45
|
},
|
43
46
|
'.w-modal-wrapper *': {
|
44
|
-
'--w-left-inner': 'var(--w-modal-wrapper-padding)',
|
45
|
-
'--w-right-inner': 'var(--w-modal-wrapper-padding)',
|
46
|
-
'--w-width-inner': 'calc(var(--w-modal-wrapper-width, 35rem) - var(--w-
|
47
|
-
|
47
|
+
'--w-left-inner': 'var(--w-modal-wrapper-padding, 0px)',
|
48
|
+
'--w-right-inner': 'calc(var(--w-modal-wrapper-padding, 0px) + var(--scroll-bar-width, 0px)))',
|
49
|
+
'--w-width-inner': 'calc(var(--w-modal-wrapper-width, 35rem) - var(--w-left-inner, 0px) - var(--w-left-inner, 0px))',
|
50
|
+
|
51
|
+
'--w-top-inner': 'calc(var(--w-modal-header-height, 0px) + var(--infinite-list-header-height, 0px))',
|
52
|
+
'--w-bottom-inner': 'calc(var(--w-modal-footer-height, 0px) + var(--scroll-bar-width, 0px))',
|
53
|
+
'--w-height-inner': 'calc(var(--w-modal-content-height, 0px) - var(--w-top-inner, 0px) - var(--w-bottom-inner, 0px))',
|
48
54
|
},
|
49
55
|
})
|
50
56
|
|