eco-vue-js 0.10.23 → 0.10.25
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/ActionsBar/WActionsBar.vue.d.ts +2 -0
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +4 -2
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +14 -11
- package/dist/components/Button/WButtonAction.vue.d.ts +3 -0
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +32 -8
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +43 -35
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +2 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +1 -1
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +3 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts +3 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +5 -4
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +9 -3
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +3 -5
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -2
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -2
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -2
- package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +2 -3
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -2
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -2
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +2 -3
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +2 -3
- package/dist/components/FormAsync/use/useFormAsync.d.ts +0 -1
- package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
- package/dist/components/FormAsync/use/useFormAsync.js +2 -4
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +4 -2
- package/dist/components/List/types.d.ts +7 -4
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +2 -1
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +2 -1
- package/dist/components/Tooltip/WTooltip.vue.d.ts +2 -0
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +6 -2
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +9 -5
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +4 -0
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +56 -19
- package/dist/imports/componentsPlugin.d.ts +1 -2
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.js +1 -2
- package/dist/utils/Tooltip.d.ts +2 -0
- package/dist/utils/Tooltip.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +0 -2
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +1 -2
- package/package.json +1 -4
- package/dist/components/Provide/WProvide.vue.d.ts +0 -21
- package/dist/components/Provide/WProvide.vue.d.ts.map +0 -1
- package/dist/components/Provide/WProvide.vue.js +0 -20
- package/dist/components/Provide/WProvide.vue2.js +0 -5
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelect.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelect.vue"],"names":[],"mappings":"AAkCA;AAAA,OA8DO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAMnD,KAAK,EAAE,SAAS,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAC5K,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;WA0IO,mBAAmB,CAAC;;gPAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAtCgB,GAAG;0BACC,GAAG;uBACN,GAAG;;cAnGzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA2IhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArJzE,wBAqJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
81
|
setup(__props, { emit: __emit }) {
|
82
82
|
const props = __props;
|
83
83
|
const emit = __emit;
|
84
|
-
const { isLoadingError, data, modelValue, submitting,
|
84
|
+
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
85
85
|
const getNewValue = (value) => {
|
86
86
|
const newValue = modelValue.value?.slice() ?? [];
|
87
87
|
const index = newValue.indexOf(value);
|
@@ -95,8 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
95
95
|
modelValue: unref(modelValue) ?? [],
|
96
96
|
skeleton: _ctx.skeleton || !unref(data),
|
97
97
|
disabled: _ctx.disabled || unref(isLoadingError),
|
98
|
-
loading: _ctx.loading || unref(submitting)
|
99
|
-
readonly: unref(readonlyInjected) || _ctx.readonly
|
98
|
+
loading: _ctx.loading || unref(submitting)
|
100
99
|
}, {
|
101
100
|
onSelect: _cache[0] || (_cache[0] = ($event) => unref(showModal)(getNewValue($event))),
|
102
101
|
onUnselect: _cache[1] || (_cache[1] = ($event) => unref(showModal)(getNewValue($event)))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncSelectInfiniteSingle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncSelectInfiniteSingle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue"],"names":[],"mappings":"AAiCA;AAAA,OAmDO,KAAK,EAAC,kCAAkC,EAAC,MAAM,SAAS,CAAA;AAC/D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAMnD,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,GAAG,KAAK,EAC5M,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;WAyHO,mBAAmB,CAAC;;0QAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBArCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cAnFzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA0HhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApIzE,wBAoI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -83,14 +83,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
83
|
setup(__props, { emit: __emit }) {
|
84
84
|
const props = __props;
|
85
85
|
const emit = __emit;
|
86
|
-
const { isLoadingError, data, modelValue, submitting,
|
86
|
+
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
87
87
|
return (_ctx, _cache) => {
|
88
88
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
89
89
|
...props,
|
90
90
|
modelValue: unref(modelValue),
|
91
91
|
skeleton: _ctx.skeleton || !unref(data),
|
92
92
|
disabled: _ctx.disabled || unref(isLoadingError),
|
93
|
-
readonly: unref(readonlyInjected) || _ctx.readonly,
|
94
93
|
loading: _ctx.loading || unref(submitting)
|
95
94
|
}, {
|
96
95
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelectSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelectSingle.vue"],"names":[],"mappings":"AAiCA;AAAA,OAmDO,KAAK,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAMnD,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,GAAG,KAAK,EAC5M,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;WAyHO,mBAAmB,CAAC;;kQAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBArCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cAnFzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA0HhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApIzE,wBAoI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -82,14 +82,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
82
|
setup(__props, { emit: __emit }) {
|
83
83
|
const props = __props;
|
84
84
|
const emit = __emit;
|
85
|
-
const { isLoadingError, data, modelValue, submitting,
|
85
|
+
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
86
86
|
return (_ctx, _cache) => {
|
87
87
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
88
88
|
...props,
|
89
89
|
modelValue: unref(modelValue),
|
90
90
|
skeleton: _ctx.skeleton || !unref(data),
|
91
91
|
disabled: _ctx.disabled || unref(isLoadingError),
|
92
|
-
readonly: unref(readonlyInjected) || _ctx.readonly,
|
93
92
|
loading: _ctx.loading || unref(submitting)
|
94
93
|
}, {
|
95
94
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncSelectStringified.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelectStringified.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncSelectStringified.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncSelectStringified.vue"],"names":[],"mappings":"AAiCA;AAAA,OAmDO,KAAK,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAA;AAC5D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAMnD,KAAK,EAAE,SAAS,SAAS,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAC/J,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;WAyHO,mBAAmB,CAAC;;2PAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBArCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cAnFzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA0HhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApIzE,wBAoI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -82,15 +82,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
82
|
setup(__props, { emit: __emit }) {
|
83
83
|
const props = __props;
|
84
84
|
const emit = __emit;
|
85
|
-
const { isLoadingError, data, modelValue, submitting,
|
85
|
+
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
86
86
|
return (_ctx, _cache) => {
|
87
87
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
88
88
|
...props,
|
89
89
|
modelValue: unref(modelValue),
|
90
90
|
skeleton: _ctx.skeleton || !unref(data),
|
91
91
|
disabled: _ctx.disabled || unref(isLoadingError),
|
92
|
-
loading: _ctx.loading || unref(submitting)
|
93
|
-
readonly: unref(readonlyInjected) || _ctx.readonly
|
92
|
+
loading: _ctx.loading || unref(submitting)
|
94
93
|
}, {
|
95
94
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
96
95
|
}), createSlots({ _: 2 }, [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"AAWA;AAAA,OA6BO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;yBAMhC,KAAK,EAAE,SAAS,SAAS,OAAO,GAAG,IAAI,EAAE,WAAW,EACpE,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;WAuFO,mBAAmB,CAAC;;qMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cApFL,SAAS,SAAS,KAAK,KAAG,IAAI;EAwFhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlGzE,wBAkG4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -28,14 +28,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
setup(__props, { emit: __emit }) {
|
29
29
|
const props = __props;
|
30
30
|
const emit = __emit;
|
31
|
-
const { isLoadingError, data, modelValue, submitting,
|
31
|
+
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
32
32
|
return (_ctx, _cache) => {
|
33
33
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
34
34
|
...props,
|
35
35
|
modelValue: unref(modelValue),
|
36
36
|
loading: _ctx.loading || !unref(data) || unref(submitting),
|
37
|
-
disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled
|
38
|
-
readonly: unref(readonlyInjected) || _ctx.readonly
|
37
|
+
disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled
|
39
38
|
}, { "onUpdate:modelValue": unref(showModal) }), null, 16, ["onUpdate:modelValue"]);
|
40
39
|
};
|
41
40
|
}
|
@@ -4,7 +4,6 @@ export declare const useFormAsync: <Model, FieldType, QueryParams>(props: FormAs
|
|
4
4
|
data: import('vue').Ref<Model, Model> | import('vue').Ref<undefined, undefined>;
|
5
5
|
modelValue: import('vue').ComputedRef<FieldType | undefined>;
|
6
6
|
submitting: import('vue').Ref<boolean, boolean>;
|
7
|
-
readonlyInjected: import('vue').Ref<boolean, boolean>;
|
8
7
|
showModal: (value: FieldType) => void;
|
9
8
|
};
|
10
9
|
//# sourceMappingURL=useFormAsync.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useFormAsync.d.ts","sourceRoot":"","sources":["../../../../../src/components/FormAsync/use/useFormAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAS5C,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI
|
1
|
+
{"version":3,"file":"useFormAsync.d.ts","sourceRoot":"","sources":["../../../../../src/components/FormAsync/use/useFormAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAS5C,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;;;;uBAgCvH,SAAS;CA8BpC,CAAA"}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { toRef,
|
1
|
+
import { toRef, ref, computed, onBeforeUnmount } from 'vue';
|
2
2
|
import { Modal } from '../../../utils/Modal.js';
|
3
3
|
import { Notify } from '../../../utils/Notify.js';
|
4
4
|
import { handleApiError } from '../../../utils/api.js';
|
5
|
-
import {
|
5
|
+
import { get, set } from '../../../utils/utils.js';
|
6
6
|
|
7
7
|
const useFormAsync = (props, onSuccess) => {
|
8
8
|
const enabled = toRef(props, "queryEnabled");
|
9
|
-
const readonlyInjected = inject(wReadonly, ref(false));
|
10
9
|
const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled }) : props.useQueryFn(toRef(props, "queryParams"), { enabled });
|
11
10
|
const submitting = ref(false);
|
12
11
|
const modelValue = computed(() => get(data.value ?? {}, props.field));
|
@@ -45,7 +44,6 @@ const useFormAsync = (props, onSuccess) => {
|
|
45
44
|
data,
|
46
45
|
modelValue,
|
47
46
|
submitting,
|
48
|
-
readonlyInjected,
|
49
47
|
showModal
|
50
48
|
};
|
51
49
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AAoPA;AAoYA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAWzC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAWrB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,EAC3I,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,CA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uuB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -176,9 +176,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
176
176
|
"selection-count": unref(selectionCount),
|
177
177
|
"query-params-getter": getQueryParamsBulk,
|
178
178
|
"disable-message": disableMessage,
|
179
|
+
readonly: _ctx.readonly ?? false,
|
179
180
|
class: normalizeClass(cssClass),
|
180
181
|
"onClear:selected": unref(resetSelection)
|
181
|
-
}, null, 40, ["selection-count", "disable-message", "class", "onClear:selected"]);
|
182
|
+
}, null, 40, ["selection-count", "disable-message", "readonly", "class", "onClear:selected"]);
|
182
183
|
}), 128))
|
183
184
|
]),
|
184
185
|
key: "0"
|
@@ -192,9 +193,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
192
193
|
"selection-count": unref(selectionCount),
|
193
194
|
"query-params-getter": getQueryParamsBulk,
|
194
195
|
"disable-message": scope?.disableMessage,
|
196
|
+
readonly: _ctx.readonly ?? false,
|
195
197
|
class: normalizeClass(scope?.cssClass),
|
196
198
|
"onClear:selected": unref(resetSelection)
|
197
|
-
}, null, 40, ["selection-count", "disable-message", "class", "onClear:selected"]);
|
199
|
+
}, null, 40, ["selection-count", "disable-message", "readonly", "class", "onClear:selected"]);
|
198
200
|
}), 128))
|
199
201
|
]),
|
200
202
|
key: "1"
|
@@ -69,17 +69,20 @@ export interface ListFieldNestedArrayGetter<Data, QueryParams = unknown, Inner =
|
|
69
69
|
componentArray?: Raw<FieldComponentNested<Data>>;
|
70
70
|
}
|
71
71
|
export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedEntityGetter<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams> | ListFieldNestedArrayGetter<Data, QueryParams>)[];
|
72
|
-
export type
|
72
|
+
export type MenuProps<Data> = {
|
73
73
|
item: Data;
|
74
74
|
readonly: boolean;
|
75
75
|
updateItem: (newItem?: Data | undefined) => void;
|
76
76
|
deleteItem: () => void;
|
77
|
-
}
|
78
|
-
export type
|
77
|
+
};
|
78
|
+
export type MenuComponent<Data> = Component<MenuProps<Data>>;
|
79
|
+
export type BulkProps<QueryParams> = {
|
79
80
|
queryParamsGetter: () => QueryParams;
|
80
81
|
selectionCount: number;
|
81
82
|
disableMessage: string | undefined;
|
82
|
-
|
83
|
+
readonly: boolean;
|
84
|
+
};
|
85
|
+
export type BulkComponent<QueryParams> = Component<BulkProps<QueryParams>>;
|
83
86
|
export type FieldConfig = {
|
84
87
|
width: number | null;
|
85
88
|
visible: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,IAAI,SAAS,CAAC;IACjD,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,kBAAkB,CAAC,IAAI,IAAI,SAAS,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,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F,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI;IAC5D,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC9B,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAoKA;
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAoKA;AA0bA,OAAO,KAAK,EAAC,qBAAqB,EAA8B,WAAW,EAAC,MAAM,SAAS,CAAA;yBAa1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAChJ,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;WA0pBO,mBAAmB,CAAC;;;;;;;sSAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;2BAvcrB,MAAM,KAAG,IAAI;MAuc8B,GAAG,IAAI;WACpE,GAAG;;gBA3ZD,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;YAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;gBATV,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;YAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;;YAnQd,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;EAopBrB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArqBzE,wBAqqB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -130,7 +130,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
130
130
|
if (props.selectOnClose && focused.value && !isModelValueSearch.value) {
|
131
131
|
const optionExact = optionsFiltered.value.find((option) => props.valueGetter(option) === search.value);
|
132
132
|
if (optionExact) select(props.valueGetter(optionExact));
|
133
|
-
else create(search.value);
|
133
|
+
else if (search.value) create(search.value);
|
134
|
+
else if (props.modelValue.length) unselect(props.modelValue[props.modelValue.length - 1]);
|
134
135
|
}
|
135
136
|
isOpen.value = false;
|
136
137
|
focused.value = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA0HA;
|
1
|
+
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA0HA;AAwSA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAW/E,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;WA4fO,mBAAmB,CAAC;;;;;;;2RAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;2BAvXrB,MAAM,KAAG,IAAI;MAuX8B,GAAG,IAAI;WACpE,GAAG;;gBA7VD,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;gBAH9H,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YAtJlI,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,YAAY,GAAG,IAAI;YACnB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;EA+elC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvgBzE,wBAugB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -103,7 +103,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
103
103
|
if (props.selectOnClose && search.value && !isModelValueSearch.value) {
|
104
104
|
const optionExact = firstPageData.value?.results.find((option) => props.valueGetter(option) === search.value);
|
105
105
|
if (optionExact) select(props.valueGetter(optionExact));
|
106
|
-
else create(search.value);
|
106
|
+
else if (search.value) create(search.value);
|
107
|
+
else if (props.modelValue.length) unselect(props.modelValue[props.modelValue.length - 1]);
|
107
108
|
}
|
108
109
|
search.value = "";
|
109
110
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":"AAOA;
|
1
|
+
{"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":"AAOA;AA4FA,OAAO,EAAC,KAAK,KAAK,EAAkF,MAAM,KAAK,CAAA;AAO/G,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AAoEF,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;kBA9BtC,MAAM,KAAK,EAAE;;kBAAb,MAAM,KAAK,EAAE;;;;;;EAmCxB;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;OAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -16,7 +16,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
overflowOnly: { type: Boolean },
|
17
17
|
light: { type: Boolean },
|
18
18
|
trigger: {},
|
19
|
-
maxHeight: {}
|
19
|
+
maxHeight: {},
|
20
|
+
left: { type: Boolean },
|
21
|
+
right: { type: Boolean }
|
20
22
|
},
|
21
23
|
setup(__props) {
|
22
24
|
const props = __props;
|
@@ -41,7 +43,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
43
|
text: props.text,
|
42
44
|
light: props.light,
|
43
45
|
key: getIncrement(),
|
44
|
-
maxHeight: props.maxHeight
|
46
|
+
maxHeight: props.maxHeight,
|
47
|
+
left: props.left,
|
48
|
+
right: props.right
|
45
49
|
});
|
46
50
|
};
|
47
51
|
const close = () => {
|
@@ -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":"AAgDA;;AA4TA,wBAMG"}
|
@@ -59,19 +59,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
59
59
|
tooltipMeta.value ? (openBlock(), createBlock(_sfc_main$1, {
|
60
60
|
key: 0,
|
61
61
|
"parent-element": tooltipMeta.value.parent,
|
62
|
-
"horizontal-align": unref(HorizontalAlign).CENTER,
|
62
|
+
"horizontal-align": tooltipMeta.value.left ? unref(HorizontalAlign).LEFT_OUTER : tooltipMeta.value.right ? unref(HorizontalAlign).RIGHT_OUTER : unref(HorizontalAlign).CENTER,
|
63
63
|
"max-height": tooltipMeta.value?.maxHeight ?? 120,
|
64
64
|
"max-width": 240,
|
65
65
|
"emit-update": "",
|
66
|
-
class: "isolate z-[10000]
|
66
|
+
class: "isolate z-[10000]",
|
67
67
|
"onUpdate:rect": close
|
68
68
|
}, {
|
69
|
-
default: withCtx(({ left, right,
|
69
|
+
default: withCtx(({ left, right, top, bottom, isTop }) => [
|
70
70
|
createVNode(_sfc_main$2, {
|
71
71
|
"tooltip-meta": tooltipMeta.value,
|
72
72
|
left,
|
73
73
|
right,
|
74
|
-
|
74
|
+
top,
|
75
|
+
bottom,
|
76
|
+
"is-top": isTop,
|
77
|
+
"is-left": tooltipMeta.value.left,
|
78
|
+
"is-right": tooltipMeta.value.right,
|
75
79
|
onOver: _cache[0] || (_cache[0] = ($event) => setTooltipMeta(tooltipMeta.value)),
|
76
80
|
onLeave: _cache[1] || (_cache[1] = ($event) => setTooltipMeta(null))
|
77
81
|
}, {
|
@@ -81,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
85
|
})) : tooltipMeta.value.text ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(tooltipMeta.value.text), 1)) : createCommentVNode("", true)
|
82
86
|
]),
|
83
87
|
_: 2
|
84
|
-
}, 1032, ["tooltip-meta", "left", "right", "is-top"])
|
88
|
+
}, 1032, ["tooltip-meta", "left", "right", "top", "bottom", "is-top", "is-left", "is-right"])
|
85
89
|
]),
|
86
90
|
_: 1
|
87
91
|
}, 8, ["parent-element", "horizontal-align", "max-height"])) : createCommentVNode("", true)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/components/TooltipContainer.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/components/TooltipContainer.vue"],"names":[],"mappings":"AA8CA;AAAA,OA8JO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAgGF,iBAAS,cAAc;WAuET,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, createElementBlock, openBlock,
|
1
|
+
import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, nextTick } from 'vue';
|
2
2
|
import { isClientSide } from '../../../utils/utils.js';
|
3
3
|
|
4
|
-
const _hoisted_1 = { class: "pointer-events-none flex flex-col items-center justify-center drop-shadow-md dark:drop-shadow-none" };
|
5
4
|
const MARGIN = 12;
|
6
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
6
|
__name: "TooltipContainer",
|
@@ -9,15 +8,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
8
|
tooltipMeta: {},
|
10
9
|
isTop: { type: Boolean },
|
11
10
|
left: {},
|
12
|
-
right: {}
|
11
|
+
right: {},
|
12
|
+
top: {},
|
13
|
+
bottom: {},
|
14
|
+
isLeft: { type: Boolean },
|
15
|
+
isRight: { type: Boolean }
|
13
16
|
},
|
14
17
|
emits: ["over", "leave"],
|
15
18
|
setup(__props) {
|
16
19
|
const props = __props;
|
17
20
|
const containerRef = useTemplateRef("container");
|
18
21
|
const transformX = ref(0);
|
22
|
+
const transformY = ref(0);
|
19
23
|
const getTransformX = () => {
|
20
24
|
if (!isClientSide || !containerRef.value) return 0;
|
25
|
+
if (props.isLeft || props.isRight) return 0;
|
21
26
|
const l = props.left ? Number.parseFloat(props.left.slice(0, -2)) : null;
|
22
27
|
if (typeof l === "number") {
|
23
28
|
const containerLeft = l - containerRef.value.offsetWidth / 2 - MARGIN;
|
@@ -36,43 +41,75 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
41
|
}
|
37
42
|
return 0;
|
38
43
|
};
|
39
|
-
const
|
44
|
+
const getTransformY = () => {
|
45
|
+
if (!isClientSide || !containerRef.value) return 0;
|
46
|
+
if (!props.isLeft && !props.isRight) return 0;
|
47
|
+
const t = props.top ? Number.parseFloat(props.top.slice(0, -2)) : null;
|
48
|
+
if (typeof t === "number") {
|
49
|
+
const containerTop = t - containerRef.value.offsetHeight / 2 - MARGIN;
|
50
|
+
if (containerTop < 0) return containerTop * -1;
|
51
|
+
const containerBottom = window.innerHeight - t - containerRef.value.offsetHeight / 2 - MARGIN;
|
52
|
+
if (containerBottom < 0) return containerBottom;
|
53
|
+
return 0;
|
54
|
+
}
|
55
|
+
const b = props.bottom ? Number.parseFloat(props.bottom.slice(0, -2)) : null;
|
56
|
+
if (typeof b === "number") {
|
57
|
+
const containerTop = window.innerHeight - b - containerRef.value.offsetHeight / 2 - MARGIN;
|
58
|
+
if (containerTop < 0) return containerTop * -1;
|
59
|
+
const containerBottom = b - containerRef.value.offsetHeight / 2 - MARGIN;
|
60
|
+
if (containerBottom < 0) return containerBottom;
|
61
|
+
return 0;
|
62
|
+
}
|
63
|
+
return 0;
|
64
|
+
};
|
65
|
+
const setTransform = async () => {
|
40
66
|
await nextTick();
|
41
67
|
transformX.value = getTransformX();
|
68
|
+
transformY.value = getTransformY();
|
42
69
|
};
|
43
|
-
watch(toRef(props, "tooltipMeta"),
|
44
|
-
|
45
|
-
});
|
46
|
-
onMounted(() => {
|
47
|
-
setTransformX();
|
48
|
-
});
|
70
|
+
watch(toRef(props, "tooltipMeta"), setTransform);
|
71
|
+
onMounted(setTransform);
|
49
72
|
return (_ctx, _cache) => {
|
50
|
-
return openBlock(), createElementBlock("div",
|
51
|
-
|
52
|
-
|
73
|
+
return openBlock(), createElementBlock("div", {
|
74
|
+
class: normalizeClass(["pointer-events-none flex items-center drop-shadow-md dark:drop-shadow-none", {
|
75
|
+
"flex-col": !_ctx.isLeft && !_ctx.isRight,
|
76
|
+
"justify-end": _ctx.isLeft
|
77
|
+
}])
|
78
|
+
}, [
|
79
|
+
(openBlock(), createElementBlock("svg", {
|
80
|
+
viewBox: "0 0 16 16",
|
81
|
+
class: normalizeClass(["square-5 pointer-events-auto z-10", {
|
53
82
|
"text-black-default dark:text-gray-800": !_ctx.tooltipMeta.light,
|
54
83
|
"text-default dark:text-gray-800": _ctx.tooltipMeta.light,
|
55
|
-
"order-2
|
56
|
-
"
|
84
|
+
"order-2 -mb-1 rotate-180": _ctx.isTop,
|
85
|
+
"order-2 -mr-1 rotate-90": _ctx.isLeft,
|
86
|
+
"-ml-1 -rotate-90": _ctx.isRight,
|
87
|
+
"-mt-1": !_ctx.isTop && !_ctx.isLeft && !_ctx.isRight
|
57
88
|
}]),
|
58
89
|
onMouseover: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("over")),
|
59
90
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("leave"))
|
60
|
-
},
|
91
|
+
}, _cache[4] || (_cache[4] = [
|
92
|
+
createElementVNode("path", {
|
93
|
+
d: "M7.16933 9.81927C5.84985 12.8991 5.05085 15.1582 0 16H16.0042C10.9498 15.1582 10.1503 12.8991 8.83068 9.81926C8.50615 9.06181 7.49384 9.06181 7.16933 9.81927Z",
|
94
|
+
fill: "currentColor"
|
95
|
+
}, null, -1)
|
96
|
+
]), 34)),
|
61
97
|
createElementVNode("div", {
|
62
98
|
ref: "container",
|
63
|
-
class: normalizeClass(["pointer-events-auto max-w-[calc(100vw-1.5rem)] translate-x-[var(--t-translate-x)] rounded-
|
99
|
+
class: normalizeClass(["pointer-events-auto max-w-[calc(100vw-1.5rem)] translate-x-[var(--t-translate-x)] translate-y-[var(--t-translate-y)] rounded-lg px-3 py-2 text-center text-xs font-medium", {
|
64
100
|
"bg-black-default text-default dark:bg-gray-800": !_ctx.tooltipMeta.light,
|
65
101
|
"bg-default text-accent dark:bg-gray-800": _ctx.tooltipMeta.light
|
66
102
|
}]),
|
67
103
|
style: normalizeStyle({
|
68
|
-
"--t-translate-x": transformX.value + "px"
|
104
|
+
"--t-translate-x": transformX.value + "px",
|
105
|
+
"--t-translate-y": transformY.value + "px"
|
69
106
|
}),
|
70
107
|
onMouseover: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("over")),
|
71
108
|
onMouseleave: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("leave"))
|
72
109
|
}, [
|
73
110
|
renderSlot(_ctx.$slots, "default")
|
74
111
|
], 38)
|
75
|
-
]);
|
112
|
+
], 2);
|
76
113
|
};
|
77
114
|
}
|
78
115
|
});
|
@@ -71,7 +71,6 @@ import { default as WPageBreadcrumbs } from '../components/Page/WPageBreadcrumbs
|
|
71
71
|
import { default as WPageNumerator } from '../components/Page/WPageNumerator.vue';
|
72
72
|
import { default as WPageTitle } from '../components/Page/WPageTitle.vue';
|
73
73
|
import { default as WProgress } from '../components/Progress/WProgress.vue';
|
74
|
-
import { default as WProvide } from '../components/Provide/WProvide.vue';
|
75
74
|
import { default as WSelect } from '../components/Select/WSelect.vue';
|
76
75
|
import { default as WSelectAsync } from '../components/Select/WSelectAsync.vue';
|
77
76
|
import { default as WSelectAsyncList } from '../components/Select/WSelectAsyncList.vue';
|
@@ -90,5 +89,5 @@ declare const _default: {
|
|
90
89
|
install: (app: App | any) => void;
|
91
90
|
};
|
92
91
|
export default _default;
|
93
|
-
export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WCheckboxGroup, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress,
|
92
|
+
export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WCheckboxGroup, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
|
94
93
|
//# sourceMappingURL=componentsPlugin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,cAAc,MAAM,0CAA0C,CAAA;AACrE,OAAO,KAAK,MAAM,6BAA6B,CAAA;AAC/C,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,QAAQ,MAAM,mCAAmC,CAAA;AACxD,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,iBAAiB,MAAM,+CAA+C,CAAA;AAC7E,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,eAAe,MAAM,iDAAiD,CAAA;AAC7E,OAAO,UAA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ACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,gBAAgB,EAChB,KAAK,EACL,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
|
package/dist/main.js
CHANGED
@@ -74,7 +74,6 @@ export { default as WPageBreadcrumbs } from './components/Page/WPageBreadcrumbs.
|
|
74
74
|
export { default as WPageNumerator } from './components/Page/WPageNumerator.vue.js';
|
75
75
|
export { default as WPageTitle } from './components/Page/WPageTitle.vue.js';
|
76
76
|
export { default as WProgress } from './components/Progress/WProgress.vue.js';
|
77
|
-
export { default as WProvide } from './components/Provide/WProvide.vue.js';
|
78
77
|
export { default as WSelect } from './components/Select/WSelect.vue.js';
|
79
78
|
export { default as WSelectAsync } from './components/Select/WSelectAsync.vue.js';
|
80
79
|
export { default as WSelectAsyncList } from './components/Select/WSelectAsyncList.vue.js';
|
@@ -101,5 +100,5 @@ export { getIsMobile, getIsTablet, getIsTouchDevice, useIsMobile } from './utils
|
|
101
100
|
export { PAGE_LENGTH, makeQueryPaginated, useDefaultQuery, wrapUseQueryPaginated } from './utils/useDefaultQuery.js';
|
102
101
|
export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
|
103
102
|
export { useCopy } from './utils/useCopy.js';
|
104
|
-
export { ListMode, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle
|
103
|
+
export { ListMode, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle } from './utils/utils.js';
|
105
104
|
export { validateRequired } from './utils/validate.js';
|
package/dist/utils/Tooltip.d.ts
CHANGED
@@ -6,6 +6,8 @@ export type TooltipMeta = {
|
|
6
6
|
light?: boolean;
|
7
7
|
key: number;
|
8
8
|
maxHeight?: number;
|
9
|
+
left?: boolean;
|
10
|
+
right?: boolean;
|
9
11
|
};
|
10
12
|
export type SetTooltipMeta = (meta: TooltipMeta | null) => void;
|
11
13
|
export declare const initTooltip: (value: SetTooltipMeta | undefined) => void;
|