eco-vue-js 0.10.22 → 0.10.23
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/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +10 -7
- package/dist/components/Button/WButtonGroup.vue.js +1 -0
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +3 -3
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +4 -3
- package/dist/components/FieldWrapper/types.d.ts +1 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +5 -3
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -1
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +3 -2
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +2 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +3 -2
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +2 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +2 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +3 -2
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +3 -2
- package/dist/components/FormAsync/use/useFormAsync.d.ts +1 -0
- package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
- package/dist/components/FormAsync/use/useFormAsync.js +4 -2
- package/dist/components/Input/WInput.vue.js +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +3 -3
- package/dist/components/Notify/components/NotifyCard.vue.js +1 -1
- package/dist/components/Provide/WProvide.vue.d.ts +21 -0
- package/dist/components/Provide/WProvide.vue.d.ts.map +1 -0
- package/dist/components/Provide/WProvide.vue.js +20 -0
- package/dist/components/Provide/WProvide.vue2.js +5 -0
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +4 -2
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +2 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.js +2 -1
- package/dist/components/Select/types.d.ts +5 -4
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +4 -2
- package/dist/imports/componentsPlugin.d.ts +2 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.js +2 -1
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/package.json +4 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AAuDA;
|
1
|
+
{"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AAuDA;AAoGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AAOxC,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AA+CjD,iBAAS,cAAc;WAsHT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;eAlMrB,YAjGgB;;;;;;6EA2Sd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withKeys, withModifiers, withCtx, createElementVNode, createVNode, normalizeClass, renderSlot, Transition, createCommentVNode } from 'vue';
|
1
|
+
import { defineComponent, inject, ref, computed, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withKeys, withModifiers, withCtx, createElementVNode, createVNode, normalizeClass, renderSlot, Transition, createCommentVNode } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import WSpinner from '../Spinner/WSpinner.vue.js';
|
4
4
|
import { SemanticType } from '../../utils/SemanticType.js';
|
5
|
+
import { wReadonly } from '../../utils/utils.js';
|
5
6
|
import { semanticTypeButtonBorderStylesMap, semanticTypeButtonStylesMap } from './models/semanticTypeStylesMap.js';
|
6
7
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -23,26 +24,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
24
|
emits: ["click"],
|
24
25
|
setup(__props, { emit: __emit }) {
|
25
26
|
const props = __props;
|
27
|
+
const readonlyInjected = inject(wReadonly, ref(false));
|
28
|
+
const isDisabled = computed(() => readonlyInjected.value || props.disabled);
|
26
29
|
const emit = __emit;
|
27
30
|
const click = (event) => {
|
28
|
-
if (
|
31
|
+
if (isDisabled.value || props.loading) return;
|
29
32
|
emit("click", event);
|
30
33
|
};
|
31
34
|
return (_ctx, _cache) => {
|
32
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ?
|
35
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? isDisabled.value ? "a" : unref(RouterLink) : _ctx.tag), mergeProps({
|
33
36
|
class: _ctx.$attrs.class,
|
34
37
|
style: _ctx.$attrs.style,
|
35
|
-
...
|
38
|
+
...isDisabled.value ? {} : _ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : {}
|
36
39
|
}, {
|
37
40
|
class: ["w-ripple-rounded-[calc(var(--w-button-rounded,1rem)-0.0625rem)] relative isolate flex min-h-[--w-button-height,2.75rem] select-none items-center justify-center whitespace-nowrap rounded-[--w-button-rounded,1rem] px-[--w-button-rounded,1rem] font-medium outline-none", {
|
38
41
|
[_ctx.semanticTypeMap?.[_ctx.semanticType] ?? unref(semanticTypeButtonStylesMap)[_ctx.semanticType]]: true,
|
39
42
|
[_ctx.semanticTypeMap?.[_ctx.semanticType] ?? unref(semanticTypeButtonBorderStylesMap)[_ctx.semanticType]]: true,
|
40
|
-
"w-ripple w-ripple-hover before:text-black-default w-ripple-opacity-20 dark:w-ripple-opacity-30 cursor-pointer": !_ctx.loading && !
|
43
|
+
"w-ripple w-ripple-hover before:text-black-default w-ripple-opacity-20 dark:w-ripple-opacity-30 cursor-pointer": !_ctx.loading && !isDisabled.value,
|
41
44
|
"cursor-progress": _ctx.loading,
|
42
|
-
"cursor-not-allowed opacity-70":
|
45
|
+
"cursor-not-allowed opacity-70": isDisabled.value,
|
43
46
|
"first-not:rounded-l-none first-not:border-l-0 first-not:before:rounded-l-none last-not:rounded-r-none last-not:border-r-0 last-not:before:rounded-r-none": _ctx.join
|
44
47
|
}],
|
45
|
-
disabled: !_ctx.loading &&
|
48
|
+
disabled: !_ctx.loading && isDisabled.value,
|
46
49
|
type: _ctx.type,
|
47
50
|
onClick: click,
|
48
51
|
onKeypress: withKeys(withModifiers(click, ["stop", "prevent"]), ["enter"])
|
@@ -26,6 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
26
|
hasChanges: { type: Boolean },
|
27
27
|
skeleton: { type: Boolean },
|
28
28
|
disabled: { type: Boolean },
|
29
|
+
readonly: { type: Boolean },
|
29
30
|
required: { type: Boolean },
|
30
31
|
mandatory: { type: Boolean },
|
31
32
|
noMargin: { type: Boolean },
|
@@ -28,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
hasChanges: { type: Boolean },
|
29
29
|
skeleton: { type: Boolean },
|
30
30
|
disabled: { type: Boolean },
|
31
|
+
readonly: { type: Boolean },
|
31
32
|
required: { type: Boolean },
|
32
33
|
mandatory: { type: Boolean },
|
33
34
|
noMargin: { type: Boolean },
|
@@ -37,7 +38,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
38
|
filterField: {},
|
38
39
|
filterValue: {},
|
39
40
|
subgrid: { type: Boolean },
|
40
|
-
readonly: { type: Boolean },
|
41
41
|
radio: { type: Boolean },
|
42
42
|
loading: { type: Boolean },
|
43
43
|
alignTop: { type: Boolean }
|
@@ -2,7 +2,7 @@ import { defineComponent, createElementBlock, openBlock, Fragment, createBlock,
|
|
2
2
|
import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
3
3
|
import _sfc_main$1 from './WExpansion.vue.js';
|
4
4
|
|
5
|
-
const _hoisted_1 = { class: "col-start-2" };
|
5
|
+
const _hoisted_1 = { class: "col-start-2 mr-2" };
|
6
6
|
const _hoisted_2 = {
|
7
7
|
key: 0,
|
8
8
|
class: "square-2 bg-info dark:bg-info-dark absolute right-0 top-0 rounded-full"
|
@@ -22,13 +22,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
return (_ctx, _cache) => {
|
23
23
|
return openBlock(), createElementBlock(Fragment, null, [
|
24
24
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.title?.()?.[0] ?? "button"), {
|
25
|
-
class: "w-ripple w-ripple-hover -px--inner-margin relative grid w-full cursor-pointer select-none grid-cols-[auto,1fr,auto] items-center
|
25
|
+
class: "w-ripple w-ripple-hover -px--inner-margin relative grid w-full cursor-pointer select-none grid-cols-[auto,1fr,auto] items-center py-3 text-start",
|
26
26
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle"))
|
27
27
|
}, {
|
28
28
|
default: withCtx(() => [
|
29
29
|
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
30
30
|
key: 0,
|
31
|
-
class: "square-[1.5em]"
|
31
|
+
class: "square-[1.5em] mr-2"
|
32
32
|
})) : createCommentVNode("", true),
|
33
33
|
createElementVNode("div", _hoisted_1, [
|
34
34
|
createElementVNode("span", {
|
@@ -39,6 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
hasChanges: { type: Boolean },
|
40
40
|
skeleton: { type: Boolean },
|
41
41
|
disabled: { type: Boolean },
|
42
|
+
readonly: { type: Boolean },
|
42
43
|
required: { type: Boolean },
|
43
44
|
mandatory: { type: Boolean },
|
44
45
|
noMargin: { type: Boolean },
|
@@ -73,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
74
|
key: 0,
|
74
75
|
for: unref(id),
|
75
76
|
class: normalizeClass(["text-accent relative pr-6 text-xs font-semibold leading-loose duration-500", {
|
76
|
-
"cursor-not-allowed opacity-50": _ctx.disabled && !_ctx.skeleton,
|
77
|
+
"cursor-not-allowed opacity-50": _ctx.disabled && !_ctx.readonly && !_ctx.skeleton,
|
77
78
|
"col-start-1": _ctx.subgrid
|
78
79
|
}])
|
79
80
|
}, [
|
@@ -186,7 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
186
187
|
_ctx.description ? (openBlock(), createElementBlock("div", {
|
187
188
|
key: 1,
|
188
189
|
class: normalizeClass(["text-description col-start-1 whitespace-pre-wrap text-pretty break-words text-xs font-normal", {
|
189
|
-
"opacity-50": _ctx.disabled && !_ctx.skeleton,
|
190
|
+
"opacity-50": _ctx.disabled && !_ctx.readonly && !_ctx.skeleton,
|
190
191
|
"pt-4": !_ctx.subgrid
|
191
192
|
}])
|
192
193
|
}, [
|
@@ -194,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
194
195
|
createTextVNode(toDisplayString(_ctx.description), 1)
|
195
196
|
], 64))
|
196
197
|
], 2)) : createCommentVNode("", true),
|
197
|
-
_ctx.tooltipText && !_ctx.skeleton ? (openBlock(), createBlock(_sfc_main$3, {
|
198
|
+
_ctx.tooltipText && !_ctx.skeleton && !_ctx.readonly ? (openBlock(), createBlock(_sfc_main$3, {
|
198
199
|
key: 2,
|
199
200
|
text: _ctx.tooltipText
|
200
201
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAaA;AAyTA,OAAO,EAAC,KAAK,KAAK,EAAyF,MAAM,KAAK,CAAA;AAUtH,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAmSF,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;iBA1DvC,MAAM,KAAK,EAAE;;iBAAb,MAAM,KAAK,EAAE;;;;;;EA+DvB;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wBAjGC,MAAM;qBA5EN,IAAI;;;;;;;;;;;;;OAuLxB,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,7 @@
|
|
1
|
-
import { defineComponent, inject, useSlots, computed, useTemplateRef,
|
1
|
+
import { defineComponent, inject, ref, useSlots, computed, useTemplateRef, watch, onBeforeMount, onBeforeUnmount, createBlock, openBlock, resolveDynamicComponent, unref } from 'vue';
|
2
2
|
import { useIsInsideTab } from '../Tabs/use/useIsInsideTab.js';
|
3
3
|
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
4
|
-
import { debounce } from '../../utils/utils.js';
|
4
|
+
import { wReadonly, debounce } from '../../utils/utils.js';
|
5
5
|
import { validateRequired } from '../../utils/validate.js';
|
6
6
|
import { wFormTitleUpdater, wFormErrorMessageUpdater, wFormHasChangesUpdater, wFormHasValueUpdater, wFormValidateUpdater, wFormInvalidateUpdater, wFormInitModelUpdater, wFormUnlistener } from './models/injection.js';
|
7
7
|
import { scrollToValidator } from './models/utils.js';
|
@@ -21,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
setup(__props, { expose: __expose, emit: __emit }) {
|
22
22
|
const props = __props;
|
23
23
|
const emit = __emit;
|
24
|
+
const readonlyInjected = inject(wReadonly, ref(false));
|
24
25
|
const titleUpdater = inject(wFormTitleUpdater, void 0);
|
25
26
|
const errorMessageUpdater = inject(wFormErrorMessageUpdater, void 0);
|
26
27
|
const hasChangesUpdater = inject(wFormHasChangesUpdater, void 0);
|
@@ -219,11 +220,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
219
220
|
ref: "component",
|
220
221
|
"error-message": errorMessage.value,
|
221
222
|
"has-changes": _ctx.noChanges ? void 0 : hasChanges.value,
|
223
|
+
readonly: unref(readonlyInjected),
|
222
224
|
"onUpdate:modelValue": _validateOnUpdate,
|
223
225
|
onSelect: _validateOnSelect,
|
224
226
|
onUnselect: _validateOnUnselect,
|
225
227
|
onInitModel: initModel
|
226
|
-
}, null, 40, ["error-message", "has-changes"]);
|
228
|
+
}, null, 40, ["error-message", "has-changes", "readonly"]);
|
227
229
|
};
|
228
230
|
}
|
229
231
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncButtonGroup.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncButtonGroup.vue.d.ts","sourceRoot":"","sources":["../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
|
24
24
|
skeleton: { type: Boolean },
|
25
25
|
disabled: { type: Boolean },
|
26
|
+
readonly: { type: Boolean },
|
26
27
|
required: { type: Boolean },
|
27
28
|
mandatory: { type: Boolean },
|
28
29
|
noMargin: { type: Boolean },
|
@@ -47,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
48
|
setup(__props, { emit: __emit }) {
|
48
49
|
const props = __props;
|
49
50
|
const emit = __emit;
|
50
|
-
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
51
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, showModal } = useFormAsync(props, (value) => emit("success", value));
|
51
52
|
return (_ctx, _cache) => {
|
52
53
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
53
54
|
...props,
|
@@ -56,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
57
|
optionComponent: _ctx.optionComponent,
|
57
58
|
loading: _ctx.loading || unref(submitting),
|
58
59
|
disabled: _ctx.disabled || unref(isLoadingError),
|
60
|
+
readonly: unref(readonlyInjected) || _ctx.readonly,
|
59
61
|
skeleton: _ctx.skeleton || !unref(data)
|
60
62
|
}, {
|
61
63
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncCheckboxGroup.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncCheckboxGroup.vue"],"names":[],"mappings":"AA+CA;AAAA,OAiEO,KAAK,EAAC,2BAA2B,EAAC,MAAM,SAAS,CAAA;yBAOvC,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EAChN,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;WA6IO,mBAAmB,CAAC;;iOAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAvCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;;;YACF,GAAG;;cAtG1B,SAAS,SAAS,KAAK,KAAG,IAAI;EA8IhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAxJzE,wBAwJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -26,6 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
26
|
hasChanges: { type: Boolean },
|
27
27
|
skeleton: { type: Boolean },
|
28
28
|
disabled: { type: Boolean },
|
29
|
+
readonly: { type: Boolean },
|
29
30
|
required: { type: Boolean },
|
30
31
|
mandatory: { type: Boolean },
|
31
32
|
noMargin: { type: Boolean },
|
@@ -35,7 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
36
|
filterField: {},
|
36
37
|
filterValue: {},
|
37
38
|
subgrid: { type: Boolean },
|
38
|
-
readonly: { type: Boolean },
|
39
39
|
radio: { type: Boolean },
|
40
40
|
loading: { type: Boolean },
|
41
41
|
alignTop: { type: Boolean },
|
@@ -51,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
51
|
setup(__props, { emit: __emit }) {
|
52
52
|
const props = __props;
|
53
53
|
const emit = __emit;
|
54
|
-
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
54
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, showModal } = useFormAsync(props, (value) => emit("success", value));
|
55
55
|
return (_ctx, _cache) => {
|
56
56
|
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
57
57
|
...props,
|
@@ -60,6 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
60
|
optionComponent: _ctx.optionComponent,
|
61
61
|
loading: _ctx.loading || unref(submitting),
|
62
62
|
disabled: _ctx.disabled || unref(isLoadingError),
|
63
|
+
readonly: unref(readonlyInjected) || _ctx.readonly,
|
63
64
|
skeleton: _ctx.skeleton || !unref(data)
|
64
65
|
}, {
|
65
66
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormAsyncInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncInput.vue"],"names":[],"mappings":"AAoCA;AAAA,OAsEO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;yBAU/B,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,WAAW,EACrE,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;WA6IO,mBAAmB,CAAC;;oMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAvCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cArGzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA8IhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAxJzE,wBAwJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
62
62
|
setup(__props, { emit: __emit }) {
|
63
63
|
const props = __props;
|
64
64
|
const emit = __emit;
|
65
|
-
const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
|
65
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, showModal } = useFormAsync(props, (value) => emit("success", value));
|
66
66
|
const validateFn = computed(() => {
|
67
67
|
const result = Array.isArray(props.validate) ? props.validate.slice() : props.validate ? [props.validate] : [];
|
68
68
|
if (props.required && !props.textSecure) result.push(validateRequired);
|
@@ -75,6 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
75
|
skeleton: _ctx.skeleton || !unref(data),
|
76
76
|
disabled: _ctx.disabled || unref(isLoadingError),
|
77
77
|
loading: _ctx.loading || unref(submitting),
|
78
|
+
readonly: unref(readonlyInjected) || _ctx.readonly,
|
78
79
|
validate: validateFn.value,
|
79
80
|
placeholderSecure: _ctx.textSecure ? !!unref(modelValue) : void 0
|
80
81
|
}, {
|
@@ -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":"AAmCA;AAAA,OA+DO,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;WA6IO,mBAAmB,CAAC;;gPAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAvCgB,GAAG;0BACC,GAAG;uBACN,GAAG;;cArGzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA8IhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAxJzE,wBAwJ4E;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, showModal } = useFormAsync(props, (value) => emit("success", value));
|
84
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, 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,7 +95,8 @@ 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)
|
98
|
+
loading: _ctx.loading || unref(submitting),
|
99
|
+
readonly: unref(readonlyInjected) || _ctx.readonly
|
99
100
|
}, {
|
100
101
|
onSelect: _cache[0] || (_cache[0] = ($event) => unref(showModal)(getNewValue($event))),
|
101
102
|
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":"AAkCA;AAAA,OAoDO,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;WA4HO,mBAAmB,CAAC;;0QAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAtCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cArFzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA6HhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvIzE,wBAuI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -83,13 +83,14 @@ 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, showModal } = useFormAsync(props, (value) => emit("success", value));
|
86
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, 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,
|
93
94
|
loading: _ctx.loading || unref(submitting)
|
94
95
|
}, {
|
95
96
|
"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":"AAkCA;AAAA,OAoDO,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;WA4HO,mBAAmB,CAAC;;kQAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAtCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cArFzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA6HhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvIzE,wBAuI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -82,13 +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, showModal } = useFormAsync(props, (value) => emit("success", value));
|
85
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, 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,
|
92
93
|
loading: _ctx.loading || unref(submitting)
|
93
94
|
}, {
|
94
95
|
"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":"AAkCA;AAAA,OAoDO,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;WA4HO,mBAAmB,CAAC;;2PAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAtCgB,GAAG;0BACA,GAAG;uBACL,GAAG;;cArFzB,SAAS,SAAS,KAAK,KAAG,IAAI;EA6HhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvIzE,wBAuI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -82,14 +82,15 @@ 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, showModal } = useFormAsync(props, (value) => emit("success", value));
|
85
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, 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)
|
92
|
+
loading: _ctx.loading || unref(submitting),
|
93
|
+
readonly: unref(readonlyInjected) || _ctx.readonly
|
93
94
|
}, {
|
94
95
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(showModal)($event ?? null))
|
95
96
|
}), 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":"AAYA;AAAA,OA8BO,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;WA0FO,mBAAmB,CAAC;;qMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAvFL,SAAS,SAAS,KAAK,KAAG,IAAI;EA2FhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArGzE,wBAqG4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -28,13 +28,14 @@ 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, showModal } = useFormAsync(props, (value) => emit("success", value));
|
31
|
+
const { isLoadingError, data, modelValue, submitting, readonlyInjected, 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
|
37
|
+
disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled,
|
38
|
+
readonly: unref(readonlyInjected) || _ctx.readonly
|
38
39
|
}, { "onUpdate:modelValue": unref(showModal) }), null, 16, ["onUpdate:modelValue"]);
|
39
40
|
};
|
40
41
|
}
|
@@ -4,6 +4,7 @@ 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>;
|
7
8
|
showModal: (value: FieldType) => void;
|
8
9
|
};
|
9
10
|
//# 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;;;;;;uBAkCvH,SAAS;CA+BpC,CAAA"}
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { toRef, ref, computed, onBeforeUnmount } from 'vue';
|
1
|
+
import { toRef, inject, 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 { get, set } from '../../../utils/utils.js';
|
5
|
+
import { wReadonly, 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));
|
9
10
|
const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled }) : props.useQueryFn(toRef(props, "queryParams"), { enabled });
|
10
11
|
const submitting = ref(false);
|
11
12
|
const modelValue = computed(() => get(data.value ?? {}, props.field));
|
@@ -44,6 +45,7 @@ const useFormAsync = (props, onSuccess) => {
|
|
44
45
|
data,
|
45
46
|
modelValue,
|
46
47
|
submitting,
|
48
|
+
readonlyInjected,
|
47
49
|
showModal
|
48
50
|
};
|
49
51
|
};
|
@@ -203,7 +203,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
203
203
|
key: 0,
|
204
204
|
class: normalizeClass({
|
205
205
|
"font-mono": _ctx.mono,
|
206
|
-
"text-secure": _ctx.textSecure && !isSecureVisible.value
|
206
|
+
"text-secure": _ctx.textSecure && !isSecureVisible.value && _ctx.modelValue
|
207
207
|
})
|
208
208
|
}, toDisplayString(_ctx.modelValue || _ctx.emptyValue), 3)) : createCommentVNode("", true)
|
209
209
|
])
|
@@ -122,8 +122,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
122
122
|
description: void 0
|
123
123
|
}, {
|
124
124
|
class: {
|
125
|
-
"cursor-pointer": !_ctx.disabled,
|
126
|
-
"cursor-not-allowed": _ctx.disabled,
|
125
|
+
"cursor-pointer": !_ctx.disabled && !_ctx.readonly,
|
126
|
+
"cursor-not-allowed": _ctx.disabled && !_ctx.readonly,
|
127
127
|
"mb-3": unref(isMobile) && !unclickable
|
128
128
|
},
|
129
129
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => !_ctx.loading && _ctx.$emit("update:modelValue", $event)),
|
@@ -200,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
200
200
|
_ctx.description ? (openBlock(), createElementBlock("div", {
|
201
201
|
key: 0,
|
202
202
|
class: normalizeClass(["text-description whitespace-pre-wrap break-words pb-4 text-xs font-normal", {
|
203
|
-
"opacity-50": _ctx.disabled && !_ctx.skeleton
|
203
|
+
"opacity-50": _ctx.disabled && !_ctx.readonly && !_ctx.skeleton
|
204
204
|
}])
|
205
205
|
}, [
|
206
206
|
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
55
|
}, [
|
56
56
|
createElementVNode("div", _hoisted_1, [
|
57
57
|
withDirectives(createVNode(_sfc_main$1, {
|
58
|
-
class: "absolute
|
58
|
+
class: "absolute left-[-0.625em] top-[-0.625em] text-xs shadow-md",
|
59
59
|
count: _ctx.count
|
60
60
|
}, null, 8, ["count"]), [
|
61
61
|
[vShow, _ctx.count > 1]
|
@@ -0,0 +1,21 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
readonly?: boolean;
|
3
|
+
};
|
4
|
+
declare function __VLS_template(): {
|
5
|
+
attrs: Partial<{}>;
|
6
|
+
slots: {
|
7
|
+
default?(_: {}): any;
|
8
|
+
};
|
9
|
+
refs: {};
|
10
|
+
rootEl: any;
|
11
|
+
};
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
15
|
+
export default _default;
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
17
|
+
new (): {
|
18
|
+
$slots: S;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=WProvide.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WProvide.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Provide/WProvide.vue"],"names":[],"mappings":"AAGA;AAwBA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAWF,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { defineComponent, inject, computed, provide, renderSlot } from 'vue';
|
2
|
+
import { wReadonly } from '../../utils/utils.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "WProvide",
|
6
|
+
props: {
|
7
|
+
readonly: { type: Boolean }
|
8
|
+
},
|
9
|
+
setup(__props) {
|
10
|
+
const props = __props;
|
11
|
+
const readonlyInjected = inject(wReadonly, void 0);
|
12
|
+
const isReadonly = computed(() => props.readonly || (readonlyInjected?.value ?? false));
|
13
|
+
provide(wReadonly, isReadonly);
|
14
|
+
return (_ctx, _cache) => {
|
15
|
+
return renderSlot(_ctx.$slots, "default");
|
16
|
+
};
|
17
|
+
}
|
18
|
+
});
|
19
|
+
|
20
|
+
export { _sfc_main as default };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components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BACF,MAAM,IAAI;;;YAlQd,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;;EAmpBrB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApqBzE,wBAoqB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -256,7 +256,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
256
256
|
modelValue: search.value,
|
257
257
|
hideInput: _ctx.modelValue.length === 0 ? false : unref(isMobile) ? !focused.value : !isOpen.value,
|
258
258
|
loading: _ctx.loading || unref(isLoading) || loadingCreate.value,
|
259
|
-
filterValue: _ctx.filterValue === void 0 ? _ctx.modelValue : _ctx.filterValue
|
259
|
+
filterValue: _ctx.filterValue === void 0 ? _ctx.modelValue : _ctx.filterValue,
|
260
|
+
placeholder: _ctx.placeholder ?? (_ctx.modelValue.length === 0 ? _ctx.emptyValue : void 0)
|
260
261
|
}, {
|
261
262
|
class: _ctx.$attrs.class,
|
262
263
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => !_ctx.loading && !unref(isLoading) && (search.value = $event ?? "")),
|
@@ -285,6 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
285
286
|
index,
|
286
287
|
loading: _ctx.loading || unref(isLoading),
|
287
288
|
disabled: _ctx.disabled,
|
289
|
+
readonly: _ctx.readonly,
|
288
290
|
"disable-clear": _ctx.disableClear || _ctx.readonly,
|
289
291
|
search: value,
|
290
292
|
onUnselect: ($event) => unselect(value)
|
@@ -300,7 +302,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
300
302
|
]),
|
301
303
|
key: "0"
|
302
304
|
} : void 0
|
303
|
-
]), 1032, ["option", "option-component", "option-component-props", "index", "loading", "disabled", "disable-clear", "search", "onUnselect"]);
|
305
|
+
]), 1032, ["option", "option-component", "option-component-props", "index", "loading", "disabled", "readonly", "disable-clear", "search", "onUnselect"]);
|
304
306
|
}), 128)) : createCommentVNode("", true)
|
305
307
|
]),
|
306
308
|
content: withCtx(() => [
|
@@ -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":"AA0HA;AAuSA,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;WA2fO,mBAAmB,CAAC;;;;;;;2RAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;2BAvXrB,MAAM,KAAG,IAAI;MAuX8B,GAAG,IAAI;WACpE,GAAG;;gBA7VD,MAA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__ */ defineComponent({
|
|
179
179
|
modelValue: search.value,
|
180
180
|
loading: _ctx.loading || isFetchingPrefix.value || loadingCreate.value,
|
181
181
|
hideInput: unref(isMobile) ? !focused.value : !isOpen.value,
|
182
|
-
filterValue: _ctx.filterValue === void 0 ? _ctx.modelValue : _ctx.filterValue
|
182
|
+
filterValue: _ctx.filterValue === void 0 ? _ctx.modelValue : _ctx.filterValue,
|
183
|
+
placeholder: _ctx.placeholder ?? (_ctx.modelValue.length === 0 ? _ctx.emptyValue : void 0)
|
183
184
|
}, {
|
184
185
|
class: _ctx.$attrs.class,
|
185
186
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => !_ctx.loading && !isFetchingPrefix.value && (search.value = $event ?? "")),
|
@@ -8,6 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
search: {},
|
9
9
|
index: {},
|
10
10
|
disabled: { type: Boolean },
|
11
|
+
readonly: { type: Boolean },
|
11
12
|
loading: { type: Boolean },
|
12
13
|
disableClear: { type: Boolean },
|
13
14
|
optionComponent: {},
|
@@ -38,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
39
|
}, 16, ["option", "index", "search"])) : (openBlock(), createElementBlock("div", {
|
39
40
|
key: 1,
|
40
41
|
class: normalizeClass(["text-description group/model relative grid grid-cols-[1fr,auto] items-center", {
|
41
|
-
"cursor-pointer": !_ctx.disabled,
|
42
|
+
"cursor-pointer": !_ctx.disabled && !_ctx.readonly,
|
42
43
|
"cursor-not-allowed opacity-50": _ctx.disabled
|
43
44
|
}])
|
44
45
|
}, [
|
@@ -44,10 +44,11 @@ export interface SelectProps<Model extends number | string, Data extends Default
|
|
44
44
|
export interface SelectPrefixProps<Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
|
45
45
|
option: Data | undefined;
|
46
46
|
search: string | number | undefined;
|
47
|
-
index
|
48
|
-
disabled
|
49
|
-
|
50
|
-
|
47
|
+
index: number;
|
48
|
+
disabled: boolean | undefined;
|
49
|
+
readonly: boolean | undefined;
|
50
|
+
loading: boolean | undefined;
|
51
|
+
disableClear: boolean | undefined;
|
51
52
|
}
|
52
53
|
export interface SelectSingleProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectProps<Model, Data, QueryParams, OptionComponent>, 'modelValue' | 'disableClear' | 'createdData'> {
|
53
54
|
modelValue: Model | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAEzH,MAAM,MAAM,qBAAqB,CAAC,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;AAEhF,MAAM,WAAW,0BAA0B,CAAC,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC;IACvG,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,oBAAoB,CAAC,EAAE,eAAe,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAA;CACtI;AAED,UAAU,mBAAmB,CAAC,IAAI,SAAS,WAAW;IACpD,iBAAiB,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC,CAAA;IAC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,EAAE,CAAA;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,CAAA;CACpC;AAED,MAAM,WAAW,sBAAsB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,CAC3L,SAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,CAAC;IACxI,UAAU,EAAE,KAAK,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,IAAI,CAAA;CACnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAmEA;AAoIA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAQvB,KAAK,SAAS,OAAO,GAAG,IAAI,GAAG,OAAO,EACtD,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;WA4KO,mBAAmB,CAAC;;8KAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAhKL,mBAAmB,SAAS,KAAK,KAAG,IAAI;EAoK1C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvLzE,wBAuL4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -63,14 +63,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
63
|
})
|
64
64
|
}, [
|
65
65
|
createElementVNode("button", {
|
66
|
-
class: normalizeClass(["w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08] isolate grid w-full
|
66
|
+
class: normalizeClass(["w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08] isolate grid w-full items-center gap-4 text-start focus:outline-none", {
|
67
67
|
"cursor-not-allowed opacity-50": _ctx.disabled,
|
68
68
|
"cursor-progress": _ctx.loading,
|
69
69
|
"cursor-pointer": !_ctx.readonly && !_ctx.loading && !_ctx.disabled,
|
70
|
+
"cursor-auto select-text": _ctx.readonly,
|
71
|
+
"select-none": !_ctx.readonly,
|
70
72
|
"grid-cols-[1fr,auto]": !_ctx.rightLabel,
|
71
73
|
"grid-cols-[auto,1fr]": _ctx.rightLabel
|
72
74
|
}]),
|
73
|
-
disabled: _ctx.disabled,
|
75
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
74
76
|
onClick: updateModelValue
|
75
77
|
}, [
|
76
78
|
_ctx.title ? (openBlock(), createElementBlock("div", {
|
@@ -71,6 +71,7 @@ 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';
|
74
75
|
import { default as WSelect } from '../components/Select/WSelect.vue';
|
75
76
|
import { default as WSelectAsync } from '../components/Select/WSelectAsync.vue';
|
76
77
|
import { default as WSelectAsyncList } from '../components/Select/WSelectAsyncList.vue';
|
@@ -89,5 +90,5 @@ declare const _default: {
|
|
89
90
|
install: (app: App | any) => void;
|
90
91
|
};
|
91
92
|
export default _default;
|
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, };
|
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, WProvide, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
|
93
94
|
//# 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,yCAAy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AAiB,EACjB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,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,QAAQ,EACR,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,6 +74,7 @@ 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';
|
77
78
|
export { default as WSelect } from './components/Select/WSelect.vue.js';
|
78
79
|
export { default as WSelectAsync } from './components/Select/WSelectAsync.vue.js';
|
79
80
|
export { default as WSelectAsyncList } from './components/Select/WSelectAsyncList.vue.js';
|
@@ -100,5 +101,5 @@ export { getIsMobile, getIsTablet, getIsTouchDevice, useIsMobile } from './utils
|
|
100
101
|
export { PAGE_LENGTH, makeQueryPaginated, useDefaultQuery, wrapUseQueryPaginated } from './utils/useDefaultQuery.js';
|
101
102
|
export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
|
102
103
|
export { useCopy } from './utils/useCopy.js';
|
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';
|
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, wReadonly } from './utils/utils.js';
|
104
105
|
export { validateRequired } from './utils/validate.js';
|
package/dist/utils/utils.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { FieldConfigMap, GetFieldLabels, ListFields } from '../components/List/types';
|
2
|
+
import { InjectionKey, Ref } from 'vue';
|
2
3
|
export declare const getScrollParent: (node: Element) => Element | null;
|
3
4
|
export declare const getAllScrollParents: (node?: Element, max?: number) => Array<Element>;
|
4
5
|
export declare const hasParent: (parent: Element, current: Element) => boolean;
|
@@ -26,5 +27,6 @@ export declare enum ListMode {
|
|
26
27
|
TABLE = "table",
|
27
28
|
GRID = "grid"
|
28
29
|
}
|
30
|
+
export declare const wReadonly: InjectionKey<Ref<boolean>>;
|
29
31
|
export {};
|
30
32
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,cAAc,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,cAAc,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AACpG,OAAO,KAAK,EAAC,YAAY,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAY1C,eAAO,MAAM,eAA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KAAG,MAUxC,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAqB,CAAA;AAEtE,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAEjD,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,MAU3C,CAAA;AAED,eAAO,MAAM,GAAG,GAAI,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI,EAAE,MAAM,MAAM,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,KAAG,SAAS,GAAG,SAA2J,CAAA;AAEnQ,eAAO,MAAM,GAAG,GAAI,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI,EAAE,MAAM,MAAM,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,SAAS,KAAG,IAe7G,CAAA;AAGD,eAAO,MAAM,wBAAwB,GAAI,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,MAAM,EAAE,SAAS,IAAI,SAAS,OAAO,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,KAAG,cAAc,CAAC,MAAM,CAiBhM,CAAA;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,SAAS,EAA0B,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA"}
|
package/dist/utils/utils.js
CHANGED
@@ -121,5 +121,6 @@ var ListMode = /* @__PURE__ */ ((ListMode2) => {
|
|
121
121
|
ListMode2["GRID"] = "grid";
|
122
122
|
return ListMode2;
|
123
123
|
})(ListMode || {});
|
124
|
+
const wReadonly = Symbol("wReadonly");
|
124
125
|
|
125
|
-
export { ListMode, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle };
|
126
|
+
export { ListMode, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle, wReadonly };
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "git",
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
6
6
|
},
|
7
|
-
"version": "0.10.
|
7
|
+
"version": "0.10.23",
|
8
8
|
"scripts": {
|
9
9
|
"build": "run-p type-check \"build-only {@}\" --",
|
10
10
|
"dev": "vite build --watch",
|
@@ -355,6 +355,9 @@
|
|
355
355
|
"./dist/components/Progress/WProgress.vue": {
|
356
356
|
"import": "./dist/components/Progress/WProgress.vue.js"
|
357
357
|
},
|
358
|
+
"./dist/components/Provide/WProvide.vue": {
|
359
|
+
"import": "./dist/components/Provide/WProvide.vue.js"
|
360
|
+
},
|
358
361
|
"./dist/components/Select/WSelect.vue": {
|
359
362
|
"import": "./dist/components/Select/WSelect.vue.js"
|
360
363
|
},
|