eco-vue-js 0.10.81 → 0.10.83
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 +2 -0
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +13 -11
- package/dist/components/Button/WButtonAction.vue.d.ts +2 -0
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +2 -2
- package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -0
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +2 -1
- package/dist/components/Button/WButtonGroup.vue.d.ts +1 -1
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +7 -5
- package/dist/components/Chart/WChartLine.vue.d.ts.map +1 -1
- package/dist/components/Chart/WChartLine.vue.js +12 -9
- package/dist/components/Chart/WChartLinear.vue.d.ts +1 -0
- package/dist/components/Chart/WChartLinear.vue.d.ts.map +1 -1
- package/dist/components/Chart/WChartLinear.vue.js +7 -5
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +5 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +21 -18
- package/dist/components/Checkbox/types.d.ts +1 -0
- package/dist/components/Checkbox/types.d.ts.map +1 -1
- package/dist/components/Chip/WChip.vue.d.ts +5 -1
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/Chip/WChip.vue.js +9 -6
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +9 -1
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +8 -4
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +11 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +10 -4
- package/dist/components/DragContainer/use/useDragContainer.js +2 -1
- package/dist/components/Dropdown/WDropdown.vue.js +2 -2
- package/dist/components/Dropdown/types.d.ts +1 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +2 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +1 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +5 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +12 -10
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +11 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +20 -14
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +4 -3
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +4 -3
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +4 -3
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +4 -3
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +3 -2
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +1 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +4 -2
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +1 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +3 -2
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +24 -22
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +11 -9
- package/dist/components/Input/WInputDate.vue.d.ts +3 -0
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +5 -4
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue.js +13 -10
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +12 -9
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +27 -25
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +4 -2
- package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeader.vue.js +1 -0
- package/dist/components/MenuItem/WMenuItem.vue.js +1 -1
- package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +23 -20
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +15 -12
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +2 -0
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +12 -6
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +6 -5
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +8 -7
- package/dist/components/Select/WSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectStringified.vue.js +8 -7
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +16 -12
- package/dist/components/Toggle/WToggleTheme.vue.js +2 -1
- package/dist/components/Toggle/types.d.ts +1 -0
- package/dist/components/Toggle/types.d.ts.map +1 -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 +4 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +3 -1
- package/dist/components/Tooltip/models/tooltipMeta.d.ts +6 -0
- package/dist/components/Tooltip/models/tooltipMeta.d.ts.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -0
- package/dist/types/global.d.ts +1 -1
- package/dist/utils/api.d.ts +1 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/api.js +4 -1
- package/dist/utils/provide.d.ts +5 -0
- package/dist/utils/provide.d.ts.map +1 -0
- package/dist/utils/provide.js +19 -0
- package/dist/utils/useComponentStates.d.ts +19 -0
- package/dist/utils/useComponentStates.d.ts.map +1 -0
- package/dist/utils/useComponentStates.js +36 -0
- package/package.json +4 -1
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
33
|
name: {},
|
34
34
|
autocomplete: {},
|
35
35
|
autofocus: { type: Boolean },
|
36
|
-
readonly: { type: Boolean },
|
36
|
+
readonly: { type: Boolean, default: void 0 },
|
37
37
|
disabledActions: { type: Boolean },
|
38
38
|
loading: { type: Boolean },
|
39
39
|
spellcheck: { type: Boolean },
|
@@ -49,8 +49,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
49
|
tooltipText: {},
|
50
50
|
mono: { type: Boolean },
|
51
51
|
hasChanges: { type: Boolean },
|
52
|
-
skeleton: { type: Boolean },
|
53
|
-
disabled: { type: Boolean },
|
52
|
+
skeleton: { type: Boolean, default: void 0 },
|
53
|
+
disabled: { type: Boolean, default: void 0 },
|
54
54
|
required: { type: Boolean },
|
55
55
|
mandatory: { type: Boolean },
|
56
56
|
noMargin: { type: Boolean },
|
@@ -66,6 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
66
|
maxWidth: {},
|
67
67
|
horizontalAlign: {},
|
68
68
|
top: { type: Boolean },
|
69
|
+
bottom: { type: Boolean },
|
69
70
|
optionComponent: {},
|
70
71
|
optionComponentProps: {},
|
71
72
|
useQueryFnOptions: {},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"AAkBA;
|
1
|
+
{"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"AAkBA;AA4CA,OAAO,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;WA8GO,mBAAmB,CAAC;;qMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAnCgB,GAAG;;cAhExB,SAAS,SAAS,KAAK,KAAG,IAAI;EAuGhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzHzE,wBAyH4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -8,9 +8,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
title: {},
|
9
9
|
icon: {},
|
10
10
|
small: { type: Boolean },
|
11
|
-
disabled: { type: Boolean },
|
11
|
+
disabled: { type: Boolean, default: void 0 },
|
12
12
|
loading: { type: Boolean },
|
13
|
-
readonly: { type: Boolean },
|
13
|
+
readonly: { type: Boolean, default: void 0 },
|
14
14
|
rightLabel: { type: Boolean },
|
15
15
|
noMargin: { type: Boolean },
|
16
16
|
description: {},
|
@@ -19,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
19
|
validate: {},
|
20
20
|
center: { type: Boolean },
|
21
21
|
mandatory: { type: Boolean },
|
22
|
+
skeleton: { type: Boolean, default: void 0 },
|
22
23
|
useQueryFn: {},
|
23
24
|
noParams: { type: Boolean },
|
24
25
|
queryParams: {},
|
@@ -15,6 +15,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
15
15
|
transition?: boolean;
|
16
16
|
headerTopIgnore?: boolean;
|
17
17
|
minHeight?: boolean;
|
18
|
+
noHeaderUpdate?: boolean;
|
18
19
|
lastChild?: boolean;
|
19
20
|
excludeParams?: (keyof QueryParams)[];
|
20
21
|
emptyStub?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAuEA;AA4JA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAWxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,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;WAqQO,mBAAmB,CAAC;;;;;;;;oBAnQZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;qBACV,OAAO;0BACF,OAAO;oBACb,OAAO;yBACF,OAAO;oBACZ,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;qBAEhD,MAAM;gBACX,MAAM;sBAEA,CAAC,IAAI,EAAE,IAA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AAE,MAAM,CAAA;YACb,QAAQ,EAAE,MAAM,CAAA;YAChB,KAAK,EAAE,KAAK,CAAA;SACb,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,kBAAkB,EAAE,MAAM,IAAI,CAAA;SAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAsNgiU,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;+FAtNlnU,KAAK,IAAI;gBACtC,MAAM,IAAI;;;YA9Bd,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,cAAc,SAAS,QAAQ,GAAG,IAAI;;EAgOxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAhRzE,wBAgR4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -14,6 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
transition: { type: Boolean },
|
15
15
|
headerTopIgnore: { type: Boolean },
|
16
16
|
minHeight: { type: Boolean },
|
17
|
+
noHeaderUpdate: { type: Boolean },
|
17
18
|
lastChild: { type: Boolean },
|
18
19
|
excludeParams: { default: void 0 },
|
19
20
|
emptyStub: { default: void 0 },
|
@@ -32,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
32
33
|
__expose(infiniteListPagesRef.value ?? {});
|
33
34
|
return (_ctx, _cache) => {
|
34
35
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.minHeight ? _sfc_main$1 : _sfc_main$2), {
|
35
|
-
"init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0
|
36
|
+
"init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0,
|
37
|
+
"no-header-update": _ctx.noHeaderUpdate
|
36
38
|
}, {
|
37
39
|
header: withCtx((headerScope) => [
|
38
40
|
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ ...unref(infiniteListPagesRef) ?? {}, ...headerScope ?? {} })))
|
@@ -92,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
94
|
]), 1032, ["query-params", "use-query-fn", "skeleton-length", "hide-page-title", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "class", "style", "value-getter"])
|
93
95
|
]),
|
94
96
|
_: 3
|
95
|
-
}, 8, ["init-is-intersecting"]);
|
97
|
+
}, 8, ["init-is-intersecting", "no-header-update"]);
|
96
98
|
};
|
97
99
|
}
|
98
100
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AAkCA;
|
1
|
+
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AAkCA;AAoGA,KAAK,WAAW,GAAG;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AAwCF,iBAAS,cAAc;WAyET,OAAO,IAA6B;;wBAftB,GAAG;;;YAEH,GAAG;yBADF,GAAG;;;;YAEH,GAAG;;;;;;;EAiB/B;AAaD,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"}
|
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
...{ inheritAttrs: false },
|
13
13
|
__name: "WInfiniteListWrapper",
|
14
14
|
props: {
|
15
|
-
initIsIntersecting: { type: Boolean }
|
15
|
+
initIsIntersecting: { type: Boolean },
|
16
|
+
noHeaderUpdate: { type: Boolean }
|
16
17
|
},
|
17
18
|
setup(__props) {
|
18
19
|
const props = __props;
|
@@ -45,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
45
46
|
return (_ctx, _cache) => {
|
46
47
|
return openBlock(), createElementBlock(Fragment, null, [
|
47
48
|
createElementVNode("div", _hoisted_1, null, 512),
|
48
|
-
unref(isModal) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
49
|
+
unref(isModal) || _ctx.noHeaderUpdate ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
49
50
|
createElementVNode("div", {
|
50
51
|
ref: "header",
|
51
52
|
class: "-top--modal-header-height bg-default dark:bg-default-dark sticky print:hidden",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA0MA;
|
1
|
+
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA0MA;AA+aA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAYtB,IAAI,SAAS,SAAS,GAAG,MAAM,EAC/C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,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CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, watch, nextTick, onMounted, onBeforeUnmount, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, toDisplayString, withModifiers, resolveDynamicComponent, withKeys
|
1
|
+
import { defineComponent, useTemplateRef, ref, watch, nextTick, onMounted, onBeforeUnmount, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, unref, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, toDisplayString, withModifiers, resolveDynamicComponent, withKeys } from 'vue';
|
2
2
|
import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
|
3
3
|
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
4
4
|
import { Notify } from '../../utils/Notify.js';
|
5
|
+
import { useComponentStates } from '../../utils/useComponentStates.js';
|
5
6
|
import _sfc_main$2 from './components/InputActions.vue.js';
|
6
7
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -22,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
23
|
name: {},
|
23
24
|
autocomplete: { default: "off" },
|
24
25
|
autofocus: { type: Boolean },
|
25
|
-
readonly: { type: Boolean },
|
26
|
+
readonly: { type: Boolean, default: void 0 },
|
26
27
|
unclickable: { type: [Boolean, null] },
|
27
28
|
disabledActions: { type: Boolean },
|
28
29
|
loading: { type: Boolean },
|
@@ -41,8 +42,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
42
|
tooltipText: {},
|
42
43
|
mono: { type: Boolean },
|
43
44
|
hasChanges: { type: Boolean },
|
44
|
-
skeleton: { type: Boolean },
|
45
|
-
disabled: { type: Boolean },
|
45
|
+
skeleton: { type: Boolean, default: void 0 },
|
46
|
+
disabled: { type: Boolean, default: void 0 },
|
46
47
|
required: { type: Boolean },
|
47
48
|
mandatory: { type: Boolean },
|
48
49
|
noMargin: { type: Boolean },
|
@@ -58,12 +59,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
58
59
|
setup(__props, { expose: __expose, emit: __emit }) {
|
59
60
|
const props = __props;
|
60
61
|
const emit = __emit;
|
62
|
+
const { isReadonly, isDisabled } = useComponentStates(props);
|
61
63
|
const fieldWrapperRef = useTemplateRef("fieldWrapper");
|
62
64
|
const contentRef = useTemplateRef("content");
|
63
65
|
const inputRef = useTemplateRef("input");
|
64
66
|
const isSecureVisible = ref(false);
|
65
67
|
const updateModelValue = (value) => {
|
66
|
-
if (props.loading ||
|
68
|
+
if (props.loading || isDisabled.value || isReadonly.value || props.unclickable) return;
|
67
69
|
if (props.type === "number") {
|
68
70
|
emit("update:modelValue", typeof value === "string" && value.length ? Number.parseFloat(value) : void 0);
|
69
71
|
} else {
|
@@ -104,14 +106,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
106
|
updateModelValue(value);
|
105
107
|
};
|
106
108
|
const clearValue = () => {
|
107
|
-
if (
|
109
|
+
if (isDisabled.value || isReadonly.value || props.unclickable) return;
|
108
110
|
if (typeof props.modelValue === "string") updateModelValue("");
|
109
111
|
else updateModelValue(void 0);
|
110
112
|
inputRef.value?.focus();
|
111
113
|
emit("click:clear");
|
112
114
|
};
|
113
115
|
const focus = () => {
|
114
|
-
if (
|
116
|
+
if (isDisabled.value || isReadonly.value) return;
|
115
117
|
if (props.unclickable) emit("focus", void 0);
|
116
118
|
else inputRef.value?.focus();
|
117
119
|
};
|
@@ -211,7 +213,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
211
213
|
]),
|
212
214
|
key: "1"
|
213
215
|
} : void 0,
|
214
|
-
|
216
|
+
unref(isReadonly) ? {
|
215
217
|
name: "default",
|
216
218
|
fn: withCtx(() => [
|
217
219
|
createElementVNode("div", {
|
@@ -236,11 +238,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
236
238
|
fn: withCtx(({ id, setFocused, focused }) => [
|
237
239
|
createElementVNode("div", {
|
238
240
|
class: normalizeClass(["relative grid min-h-[--w-input-min-height,var(--w-input-height,2.75rem)] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid", {
|
239
|
-
"focus-within:border-primary dark:focus-within:border-primary-dark focus-within:outline-primary/20 dark:focus-within:outline-primary-dark/20 focus-within:outline focus-within:outline-2": !
|
240
|
-
"cursor-text": !
|
241
|
+
"focus-within:border-primary dark:focus-within:border-primary-dark focus-within:outline-primary/20 dark:focus-within:outline-primary-dark/20 focus-within:outline focus-within:outline-2": !unref(isDisabled) && !unref(isReadonly) && !_ctx.unclickable,
|
242
|
+
"cursor-text": !unref(isDisabled),
|
241
243
|
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
242
|
-
"border-gray-300 dark:border-gray-700": !
|
243
|
-
"border-gray-300/50 dark:border-gray-700/50":
|
244
|
+
"border-gray-300 dark:border-gray-700": !unref(isDisabled),
|
245
|
+
"border-gray-300/50 dark:border-gray-700/50": unref(isDisabled),
|
244
246
|
"border-opacity-0 group-hover/field:border-opacity-100 dark:border-opacity-0 dark:group-hover/field:border-opacity-100": _ctx.seamless && !focused,
|
245
247
|
"bg-default dark:bg-default-dark": !_ctx.seamless || focused
|
246
248
|
}]),
|
@@ -290,15 +292,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
290
292
|
"w-option": !_ctx.textarea && _ctx.$slots.prefix,
|
291
293
|
"font-mono": _ctx.mono,
|
292
294
|
"text-secure": _ctx.textSecure && !isSecureVisible.value,
|
293
|
-
"text-black-default dark:text-gray-200": !
|
294
|
-
"text-black-default/50 dark:text-gray-200/50":
|
295
|
+
"text-black-default dark:text-gray-200": !unref(isDisabled),
|
296
|
+
"text-black-default/50 dark:text-gray-200/50": unref(isDisabled)
|
295
297
|
}]),
|
296
298
|
value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
|
297
299
|
placeholder: _ctx.placeholder,
|
298
300
|
type: _ctx.type ?? "text",
|
299
301
|
name: _ctx.name,
|
300
|
-
disabled:
|
301
|
-
readonly:
|
302
|
+
disabled: unref(isDisabled),
|
303
|
+
readonly: unref(isReadonly) || _ctx.unclickable,
|
302
304
|
autocomplete: _ctx.autocomplete,
|
303
305
|
size: _ctx.size || void 0,
|
304
306
|
step: _ctx.step,
|
@@ -306,12 +308,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
306
308
|
max: _ctx.max,
|
307
309
|
spellcheck: _ctx.spellcheck ? "true" : "false",
|
308
310
|
onInput: handleInputEvent,
|
309
|
-
onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !
|
311
|
+
onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !unref(isDisabled) && !unref(isReadonly) && _ctx.$emit("keypress:enter", $event), ["exact"]), ["enter"])),
|
310
312
|
onKeydown: [
|
311
|
-
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !
|
312
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !
|
313
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !unref(isDisabled) && !unref(isReadonly) && _ctx.$emit("keypress:up", $event), ["exact", "stop"]), ["up"])),
|
314
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !unref(isDisabled) && !unref(isReadonly) && _ctx.$emit("keypress:down", $event), ["exact", "stop"]), ["down"])),
|
313
315
|
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => {
|
314
|
-
!
|
316
|
+
!unref(isDisabled) && !unref(isReadonly) && _ctx.$emit("keypress:delete", $event);
|
315
317
|
handleBackspace($event);
|
316
318
|
}, ["exact", "stop"]), ["delete"]))
|
317
319
|
],
|
@@ -339,8 +341,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
339
341
|
"model-value": _ctx.modelValue,
|
340
342
|
loading: _ctx.loading,
|
341
343
|
"allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
|
342
|
-
disabled:
|
343
|
-
readonly:
|
344
|
+
disabled: unref(isDisabled) || _ctx.disabledActions,
|
345
|
+
readonly: unref(isReadonly) || _ctx.unclickable === true,
|
344
346
|
"text-secure": _ctx.textSecure,
|
345
347
|
"is-secure-visible": isSecureVisible.value,
|
346
348
|
"allow-paste": _ctx.allowPaste,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAwFA;
|
1
|
+
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAwFA;AAoPA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAa3B,IAAI,SAAS,SAAS,GAAG,MAAM,EAC/C,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;WAyYO,mBAAmB,CAAC;;iLAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAlDiB,GAAG;0BACA,GAAG;uBACN,GAAG;;cA3UzB,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI;EA+X3D,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApZzE,wBAoZ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, normalizeClass, markRaw,
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, unref, createCommentVNode, normalizeClass, markRaw, createElementVNode, createVNode, Transition, createElementBlock, normalizeStyle } from 'vue';
|
2
2
|
import _sfc_main$2 from '../Button/WButtonInput.vue.js';
|
3
3
|
import _sfc_main$1 from './WInput.vue.js';
|
4
4
|
import IconCheck from '../../assets/icons/default/IconCheck.svg.js';
|
5
5
|
import IconEdit from '../../assets/icons/sax/IconEdit.svg.js';
|
6
6
|
import IconSlash from '../../assets/icons/sax/IconSlash.svg.js';
|
7
|
+
import { useComponentStates } from '../../utils/useComponentStates.js';
|
7
8
|
|
8
9
|
const _hoisted_1 = { class: "absolute inset-x-3 bottom-1 isolate h-0.5" };
|
9
10
|
const _hoisted_2 = {
|
@@ -31,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
32
|
name: {},
|
32
33
|
autocomplete: {},
|
33
34
|
autofocus: { type: Boolean },
|
34
|
-
readonly: { type: Boolean },
|
35
|
+
readonly: { type: Boolean, default: void 0 },
|
35
36
|
unclickable: { type: [Boolean, null] },
|
36
37
|
disabledActions: { type: Boolean },
|
37
38
|
loading: { type: Boolean },
|
@@ -50,8 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
50
51
|
tooltipText: {},
|
51
52
|
mono: { type: Boolean },
|
52
53
|
hasChanges: { type: Boolean },
|
53
|
-
skeleton: { type: Boolean },
|
54
|
-
disabled: { type: Boolean },
|
54
|
+
skeleton: { type: Boolean, default: void 0 },
|
55
|
+
disabled: { type: Boolean, default: void 0 },
|
55
56
|
required: { type: Boolean },
|
56
57
|
mandatory: { type: Boolean },
|
57
58
|
noMargin: { type: Boolean },
|
@@ -67,6 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
68
|
setup(__props, { emit: __emit }) {
|
68
69
|
const props = __props;
|
69
70
|
const emit = __emit;
|
71
|
+
const { isReadonly, isDisabled } = useComponentStates(props);
|
70
72
|
const focused = ref(false);
|
71
73
|
const saved = ref(false);
|
72
74
|
const value = ref();
|
@@ -91,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
91
93
|
inputRef.value?.blur();
|
92
94
|
};
|
93
95
|
const toggle = async () => {
|
94
|
-
if (
|
96
|
+
if (isDisabled.value || isReadonly.value || props.loading) return;
|
95
97
|
if (canSave.value) {
|
96
98
|
emitUpdateModelValue(value.value);
|
97
99
|
} else {
|
@@ -100,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
100
102
|
}
|
101
103
|
};
|
102
104
|
const open = () => {
|
103
|
-
if (
|
105
|
+
if (isDisabled.value || isReadonly.value || props.loading) return;
|
104
106
|
inputRef.value?.focus();
|
105
107
|
};
|
106
108
|
watch(toRef(props, "modelValue"), (modelValue) => {
|
@@ -120,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
120
122
|
}
|
121
123
|
});
|
122
124
|
const emitUpdateModelValue = (newValue) => {
|
123
|
-
if (
|
125
|
+
if (isDisabled.value || isReadonly.value || props.loading) return;
|
124
126
|
if (errorMessageValue.value) return;
|
125
127
|
if (props.placeholderSecure) inputRef.value?.blur();
|
126
128
|
emit("update:modelValue", newValue);
|
@@ -188,11 +190,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
188
190
|
]),
|
189
191
|
key: "1"
|
190
192
|
} : void 0,
|
191
|
-
!
|
193
|
+
!unref(isReadonly) && !_ctx.hideButton || _ctx.$slots.right ? {
|
192
194
|
name: "right",
|
193
195
|
fn: withCtx(() => [
|
194
196
|
renderSlot(_ctx.$slots, "right"),
|
195
|
-
!
|
197
|
+
!unref(isReadonly) && !_ctx.hideButton ? (openBlock(), createBlock(_sfc_main$2, {
|
196
198
|
key: 0,
|
197
199
|
icon: canSave.value ? markRaw(unref(IconCheck)) : focused.value ? markRaw(unref(IconSlash)) : markRaw(unref(IconEdit)),
|
198
200
|
"tooltip-text": !_ctx.loading && focused.value ? canSave.value ? "Save" : "Cancel" : void 0,
|
@@ -24,7 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<InputDateProps, {},
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<InputDateProps> & Readonly<{
|
25
25
|
"onUpdate:model-value"?: ((value: Date | undefined) => any) | undefined;
|
26
26
|
}>, {
|
27
|
+
skeleton: boolean;
|
28
|
+
readonly: boolean;
|
27
29
|
maxHeight: number;
|
30
|
+
disabled: boolean;
|
28
31
|
modelValue: Date;
|
29
32
|
maxWidth: number;
|
30
33
|
horizontalAlign: HorizontalAlign;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputDate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputDate.vue"],"names":[],"mappings":"AAiDA;
|
1
|
+
{"version":3,"file":"WInputDate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputDate.vue"],"names":[],"mappings":"AAiDA;AAmHA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAO3C,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAuEvD,iBAAS,cAAc;WA6HT,OAAO,IAA6B;;uBAbtB,GAAG;0BACA,GAAG;uBACN,GAAG;;;;;;;;;;;;EAgB9B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;OASnB,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"}
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
name: {},
|
28
28
|
autocomplete: {},
|
29
29
|
autofocus: { type: Boolean },
|
30
|
-
readonly: { type: Boolean },
|
30
|
+
readonly: { type: Boolean, default: void 0 },
|
31
31
|
disabledActions: { type: Boolean },
|
32
32
|
loading: { type: Boolean },
|
33
33
|
spellcheck: { type: Boolean },
|
@@ -45,8 +45,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
45
45
|
tooltipText: {},
|
46
46
|
mono: { type: Boolean },
|
47
47
|
hasChanges: { type: Boolean },
|
48
|
-
skeleton: { type: Boolean },
|
49
|
-
disabled: { type: Boolean },
|
48
|
+
skeleton: { type: Boolean, default: void 0 },
|
49
|
+
disabled: { type: Boolean, default: void 0 },
|
50
50
|
required: { type: Boolean },
|
51
51
|
mandatory: { type: Boolean },
|
52
52
|
noMargin: { type: Boolean },
|
@@ -61,7 +61,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
61
61
|
maxHeight: { default: 440 },
|
62
62
|
maxWidth: { default: 480 },
|
63
63
|
horizontalAlign: { default: HorizontalAlign.RIGHT_INNER },
|
64
|
-
top: { type: Boolean }
|
64
|
+
top: { type: Boolean },
|
65
|
+
bottom: { type: Boolean }
|
65
66
|
},
|
66
67
|
emits: ["update:model-value"],
|
67
68
|
setup(__props, { emit: __emit }) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputOptions.vue"],"names":[],"mappings":"AA+EA;
|
1
|
+
{"version":3,"file":"WInputOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputOptions.vue"],"names":[],"mappings":"AA+EA;AAkNA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;yBAU7B,IAAI,SAAS,SAAS,GAAG,MAAM,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAC,EAAE,EAAE,MAAM,CAAA;CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAC,EAAE,EAAE,MAAM,CAAA;CAAC,EACvI,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;WA+VO,mBAAmB,CAAC;;4LAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAhDiB,GAAG;0BACA,GAAG;uBACN,GAAG;;;;;YACF,GAAG;;cAtS1B,oBAAoB,qDAAsB,IAAI;EAuVhD,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1WzE,wBA0W4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { defineComponent, ref, useTemplateRef, computed, watch, toRef, nextTick, createBlock, openBlock, mergeProps, withModifiers, createSlots, withCtx, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, Fragment, renderList, renderSlot, resolveDynamicComponent } from 'vue';
|
2
2
|
import _sfc_main$1 from './WInputSuggest.vue.js';
|
3
3
|
import _sfc_main$2 from '../Select/components/SelectOption.vue.js';
|
4
|
+
import { useComponentStates } from '../../utils/useComponentStates.js';
|
4
5
|
import { debounce } from '../../utils/utils.js';
|
5
6
|
|
6
7
|
const _hoisted_1 = {
|
@@ -12,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
13
|
__name: "WInputOptions",
|
13
14
|
props: {
|
14
15
|
options: {},
|
15
|
-
valueGetter: {
|
16
|
+
valueGetter: {},
|
16
17
|
emptyStub: {},
|
17
18
|
optionComponent: {},
|
18
19
|
mobileTitle: {},
|
@@ -32,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
32
33
|
name: {},
|
33
34
|
autocomplete: {},
|
34
35
|
autofocus: { type: Boolean },
|
35
|
-
readonly: { type: Boolean },
|
36
|
+
readonly: { type: Boolean, default: void 0 },
|
36
37
|
disabledActions: { type: Boolean },
|
37
38
|
loading: { type: Boolean },
|
38
39
|
spellcheck: { type: Boolean },
|
@@ -50,8 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
50
51
|
tooltipText: {},
|
51
52
|
mono: { type: Boolean },
|
52
53
|
hasChanges: { type: Boolean },
|
53
|
-
skeleton: { type: Boolean },
|
54
|
-
disabled: { type: Boolean },
|
54
|
+
skeleton: { type: Boolean, default: void 0 },
|
55
|
+
disabled: { type: Boolean, default: void 0 },
|
55
56
|
required: { type: Boolean },
|
56
57
|
mandatory: { type: Boolean },
|
57
58
|
noMargin: { type: Boolean },
|
@@ -66,12 +67,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
67
|
maxHeight: {},
|
67
68
|
maxWidth: {},
|
68
69
|
horizontalAlign: {},
|
69
|
-
top: { type: Boolean }
|
70
|
+
top: { type: Boolean },
|
71
|
+
bottom: { type: Boolean }
|
70
72
|
},
|
71
73
|
emits: ["update:model-value"],
|
72
74
|
setup(__props, { expose: __expose, emit: __emit }) {
|
73
75
|
const props = __props;
|
74
76
|
const emit = __emit;
|
77
|
+
const { isReadonly, isDisabled } = useComponentStates(props);
|
75
78
|
const isOpen = ref(false);
|
76
79
|
const inputRef = useTemplateRef("input");
|
77
80
|
const cursor = ref(-1);
|
@@ -79,13 +82,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
82
|
const lastIndex = computed(() => props.options.length);
|
80
83
|
const focused = ref(false);
|
81
84
|
const loadingOptionIndex = ref(null);
|
82
|
-
const
|
85
|
+
const isDisabledComputed = computed(() => props.loading || isReadonly.value || isDisabled.value);
|
83
86
|
const close = () => {
|
84
87
|
isOpen.value = false;
|
85
88
|
focused.value = false;
|
86
89
|
};
|
87
90
|
const setLoadingOptionIndex = (value) => {
|
88
|
-
if (
|
91
|
+
if (isDisabledComputed.value) return;
|
89
92
|
loadingOptionIndex.value = value;
|
90
93
|
};
|
91
94
|
const unlockCursor = debounce(() => {
|
@@ -100,17 +103,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
100
103
|
cursor.value = value;
|
101
104
|
};
|
102
105
|
const cursorUp = () => {
|
103
|
-
if (
|
106
|
+
if (isDisabledComputed.value) return;
|
104
107
|
lockCursor();
|
105
108
|
cursor.value = !props.options.length ? 0 : cursor.value < 1 ? lastIndex.value : cursor.value - 1;
|
106
109
|
};
|
107
110
|
const cursorDown = () => {
|
108
|
-
if (
|
111
|
+
if (isDisabledComputed.value) return;
|
109
112
|
lockCursor();
|
110
113
|
cursor.value = !props.options.length ? 0 : cursor.value >= lastIndex.value ? 0 : cursor.value + 1;
|
111
114
|
};
|
112
115
|
const selectCursor = () => {
|
113
|
-
if (
|
116
|
+
if (isDisabledComputed.value) return;
|
114
117
|
const value = cursor.value !== -1 ? props.options[cursor.value] : void 0;
|
115
118
|
if (value) select(value);
|
116
119
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AA6GA;
|
1
|
+
{"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AA6GA;AAsNA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAC,KAAK,KAAK,EAAgC,MAAM,KAAK,CAAA;yBAa5C,IAAI,SAAS,SAAS,GAAG,MAAM,EAC/C,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;WA+YO,mBAAmB,CAAC,2CAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;gBAxTD,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YAAC,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;SAAC,KAAK,IAAI;gBAChD,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;kBACpC,CAAC,KAAK,CAAC,EAAE;YAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;SAAC,KAAK,KAAK,EAAE;;gBAJnD,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YAAC,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;SAAC,KAAK,IAAI;gBAChD,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;kBACpC,CAAC,KAAK,CAAC,EAAE;YAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;SAAC,KAAK,KAAK,EAAE;;;YA1EvD,mBAAmB,mDAAsB,IAAI;YAC7C,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,MAAM,GAAG,IAAI;YACb,OAAO,GAAG,IAAI;YACd,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;EAyXlC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1ZzE,wBA0Z4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -6,6 +6,7 @@ import _sfc_main$4 from './WInput.vue.js';
|
|
6
6
|
import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
7
7
|
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
8
8
|
import { useIsMobile } from '../../utils/mobile.js';
|
9
|
+
import { useComponentStates } from '../../utils/useComponentStates.js';
|
9
10
|
|
10
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
12
|
...{ inheritAttrs: false },
|
@@ -28,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
29
|
name: {},
|
29
30
|
autocomplete: {},
|
30
31
|
autofocus: { type: Boolean },
|
31
|
-
readonly: { type: Boolean },
|
32
|
+
readonly: { type: Boolean, default: void 0 },
|
32
33
|
disabledActions: { type: Boolean },
|
33
34
|
loading: { type: Boolean },
|
34
35
|
spellcheck: { type: Boolean },
|
@@ -46,8 +47,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
47
|
tooltipText: {},
|
47
48
|
mono: { type: Boolean },
|
48
49
|
hasChanges: { type: Boolean },
|
49
|
-
skeleton: { type: Boolean },
|
50
|
-
disabled: { type: Boolean },
|
50
|
+
skeleton: { type: Boolean, default: void 0 },
|
51
|
+
disabled: { type: Boolean, default: void 0 },
|
51
52
|
required: { type: Boolean },
|
52
53
|
mandatory: { type: Boolean },
|
53
54
|
noMargin: { type: Boolean },
|
@@ -62,19 +63,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
62
63
|
maxHeight: { default: 320 },
|
63
64
|
maxWidth: { default: 600 },
|
64
65
|
horizontalAlign: { default: HorizontalAlign.FILL },
|
65
|
-
top: { type: Boolean }
|
66
|
+
top: { type: Boolean },
|
67
|
+
bottom: { type: Boolean }
|
66
68
|
},
|
67
69
|
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "open", "close", "click:clear", "focus", "blur"],
|
68
70
|
setup(__props, { expose: __expose, emit: __emit }) {
|
69
71
|
const props = __props;
|
70
72
|
const emit = __emit;
|
73
|
+
const { isReadonly, isDisabled } = useComponentStates(props);
|
71
74
|
const isOpen = ref(false);
|
72
75
|
const dropdownMenuRef = useTemplateRef("dropdownMenu");
|
73
76
|
const inputRef = useTemplateRef("input");
|
74
77
|
const { isMobile } = useIsMobile();
|
75
|
-
const
|
78
|
+
const isDisabledComputed = computed(() => isReadonly.value || isDisabled.value);
|
76
79
|
const open = () => {
|
77
|
-
if (
|
80
|
+
if (isDisabledComputed.value) return;
|
78
81
|
isOpen.value = true;
|
79
82
|
emit("open");
|
80
83
|
};
|
@@ -124,8 +127,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
124
127
|
seamless: toggleScope?.unclickable === false ? false : props.seamless
|
125
128
|
}, {
|
126
129
|
class: {
|
127
|
-
"cursor-pointer": !
|
128
|
-
"cursor-not-allowed":
|
130
|
+
"cursor-pointer": !unref(isDisabled) && !unref(isReadonly),
|
131
|
+
"cursor-not-allowed": unref(isDisabled) && !unref(isReadonly),
|
129
132
|
"mb-3": unref(isMobile) && !toggleScope?.unclickable
|
130
133
|
},
|
131
134
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => !_ctx.loading && _ctx.$emit("update:modelValue", $event)),
|
@@ -154,7 +157,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
154
157
|
})
|
155
158
|
]),
|
156
159
|
suffix: withCtx(() => [
|
157
|
-
!
|
160
|
+
!unref(isDisabled) ? (openBlock(), createBlock(unref(IconArrow), {
|
158
161
|
key: 0,
|
159
162
|
class: normalizeClass(["square-3 text-description transition-transform", { "rotate-180": isOpen.value }])
|
160
163
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AAqTA;
|
1
|
+
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AAqTA;AA6fA,OAAO,KAAK,EAAC,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,SAAS,EAAE,kBAAkB,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AAChK,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAezC,OAAO,EAAuB,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAW3C,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,W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