eco-vue-js 0.10.34 → 0.10.36

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.
Files changed (100) hide show
  1. package/dist/components/Button/WButtonDropdown.vue.d.ts +2 -2
  2. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButtonDropdown.vue.js +0 -2
  4. package/dist/components/Button/WButtonGroup.vue.js +1 -0
  5. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonMore.vue.js +0 -1
  7. package/dist/components/Button/WButtonSelection.vue.js +1 -1
  8. package/dist/components/Checkbox/WCheckboxGroup.vue.js +1 -0
  9. package/dist/components/Dropdown/WDropdown.vue.d.ts +6 -11
  10. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  11. package/dist/components/Dropdown/WDropdown.vue.js +1 -1
  12. package/dist/components/Dropdown/types.d.ts +9 -0
  13. package/dist/components/Dropdown/types.d.ts.map +1 -1
  14. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +20 -37
  15. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  16. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +11 -15
  17. package/dist/components/DropdownMenu/types.d.ts +0 -2
  18. package/dist/components/DropdownMenu/types.d.ts.map +1 -1
  19. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +5 -1
  20. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  21. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +13 -7
  22. package/dist/components/FieldWrapper/types.d.ts +1 -0
  23. package/dist/components/FieldWrapper/types.d.ts.map +1 -1
  24. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -0
  25. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -0
  26. package/dist/components/FormAsync/WFormAsyncInput.vue.js +3 -1
  27. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +3 -3
  28. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +3 -3
  29. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +3 -3
  30. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +3 -3
  31. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +2 -0
  32. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  33. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +0 -1
  34. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  35. package/dist/components/InfiniteList/WInfiniteList.vue.js +2 -5
  36. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.d.ts +25 -0
  37. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.d.ts.map +1 -0
  38. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.js +23 -0
  39. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue2.js +5 -0
  40. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +0 -1
  41. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
  42. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +8 -5
  43. package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +1 -1
  44. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -1
  45. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  46. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +5 -4
  47. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +0 -1
  48. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
  49. package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +7 -8
  50. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +3 -6
  51. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
  52. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +8 -10
  53. package/dist/components/InfiniteList/models/injection.d.ts +3 -0
  54. package/dist/components/InfiniteList/models/injection.d.ts.map +1 -0
  55. package/dist/components/InfiniteList/models/injection.js +3 -0
  56. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -1
  57. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
  58. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +5 -3
  59. package/dist/components/Input/WInput.vue.d.ts +1 -0
  60. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  61. package/dist/components/Input/WInput.vue.js +32 -15
  62. package/dist/components/Input/WInputAsync.vue.js +4 -2
  63. package/dist/components/Input/WInputDate.vue.js +3 -3
  64. package/dist/components/Input/WInputOptions.vue.js +3 -3
  65. package/dist/components/Input/WInputSuggest.vue.d.ts +2 -2
  66. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  67. package/dist/components/Input/WInputSuggest.vue.js +99 -109
  68. package/dist/components/Input/types.d.ts +2 -1
  69. package/dist/components/Input/types.d.ts.map +1 -1
  70. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  71. package/dist/components/List/WListCard.vue.js +6 -6
  72. package/dist/components/List/WListHeader.vue.js +4 -4
  73. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  74. package/dist/components/MenuItem/WMenuItem.vue.js +3 -3
  75. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  76. package/dist/components/Modal/WModal.vue.js +5 -1
  77. package/dist/components/Modal/WModalImport.vue.js +2 -2
  78. package/dist/components/Modal/WModalWrapper.vue.d.ts +8 -2
  79. package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
  80. package/dist/components/Modal/WModalWrapper.vue.js +35 -21
  81. package/dist/components/Modal/models/injection.d.ts +4 -0
  82. package/dist/components/Modal/models/injection.d.ts.map +1 -0
  83. package/dist/components/Modal/models/injection.js +4 -0
  84. package/dist/components/Progress/WProgressStriped.vue.js +2 -2
  85. package/dist/components/Select/WSelect.vue.js +4 -4
  86. package/dist/components/Select/WSelectAsync.vue.js +4 -4
  87. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  88. package/dist/components/Select/WSelectAsyncList.vue.js +41 -41
  89. package/dist/components/Select/WSelectAsyncSingle.vue.js +3 -3
  90. package/dist/components/Select/WSelectSingle.vue.js +3 -3
  91. package/dist/components/Select/WSelectStringified.vue.js +3 -3
  92. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +0 -1
  93. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  94. package/dist/components/Select/components/SelectAsyncList.vue.js +1 -3
  95. package/dist/imports/componentsPlugin.d.ts +2 -1
  96. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  97. package/dist/main.js +1 -0
  98. package/package.json +4 -1
  99. package/tailwind-base/plugins/default.ts +11 -19
  100. package/tailwind-base/theme/sizes.ts +5 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, ref, onMounted, onBeforeUnmount, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, createCommentVNode, normalizeClass, toDisplayString, withModifiers, createVNode, resolveDynamicComponent, withKeys, nextTick } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, onMounted, onBeforeUnmount, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, createCommentVNode, normalizeClass, toDisplayString, withModifiers, resolveDynamicComponent, withKeys, unref, nextTick } 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';
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  autocomplete: { default: "off" },
25
25
  autofocus: { type: Boolean },
26
26
  readonly: { type: Boolean },
27
- unclickable: { type: Boolean },
27
+ unclickable: { type: [Boolean, null] },
28
28
  disabledActions: { type: Boolean },
29
29
  loading: { type: Boolean },
30
30
  spellcheck: { type: Boolean },
@@ -34,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  allowClear: { type: Boolean },
35
35
  allowPaste: { type: Boolean },
36
36
  hideInput: { type: Boolean },
37
+ noWrap: { type: Boolean },
37
38
  title: {},
38
39
  titleIcon: {},
39
40
  description: {},
@@ -51,12 +52,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
52
  leftError: { type: Boolean },
52
53
  filterField: {},
53
54
  filterValue: {},
54
- subgrid: { type: Boolean }
55
+ subgrid: { type: Boolean },
56
+ seamless: { type: Boolean }
55
57
  },
56
58
  emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:suffix", "select:input", "paste"],
57
59
  setup(__props, { expose: __expose, emit: __emit }) {
58
60
  const props = __props;
59
61
  const emit = __emit;
62
+ const fieldWrapperRef = useTemplateRef("fieldWrapper");
63
+ const contentRef = useTemplateRef("content");
60
64
  const inputRef = useTemplateRef("input");
61
65
  const isSecureVisible = ref(false);
62
66
  const updateModelValue = (value) => {
@@ -173,12 +177,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
173
177
  });
174
178
  __expose({
175
179
  focus,
176
- blur
180
+ blur,
181
+ fieldRef: computed(() => fieldWrapperRef.value?.fieldRef)
177
182
  });
178
183
  return (_ctx, _cache) => {
179
- return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
184
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "fieldWrapper" }, props, {
180
185
  class: _ctx.$attrs.class,
181
- onClick: _cache[10] || (_cache[10] = ($event) => _ctx.$emit("click:suffix", $event))
186
+ onClick: _cache[10] || (_cache[10] = ($event) => {
187
+ _ctx.$emit("click:suffix", $event);
188
+ _ctx.seamless && focus();
189
+ })
182
190
  }), createSlots({ _: 2 }, [
183
191
  _ctx.$slots.title ? {
184
192
  name: "title",
@@ -187,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
195
  ]),
188
196
  key: "0"
189
197
  } : void 0,
190
- _ctx.$slots.subtitle ? {
198
+ _ctx.$slots.subtitle && _ctx.unclickable !== false ? {
191
199
  name: "subtitle",
192
200
  fn: withCtx(() => [
193
201
  renderSlot(_ctx.$slots, "subtitle")
@@ -213,12 +221,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
213
221
  name: "field",
214
222
  fn: withCtx(({ id, setFocused, focused }) => [
215
223
  createElementVNode("div", {
216
- class: normalizeClass(["bg-default dark:bg-default-dark relative grid min-h-[--w-input-height,2.75rem] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid transition-colors duration-75", {
224
+ class: normalizeClass(["relative grid min-h-[--w-input-height,2.75rem] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid transition-colors duration-75", {
217
225
  "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": !_ctx.disabled && !_ctx.readonly && !_ctx.unclickable,
218
226
  "cursor-text": !_ctx.disabled,
219
227
  "border-negative dark:border-negative-dark": _ctx.errorMessage,
220
228
  "border-gray-300 dark:border-gray-700": !_ctx.disabled,
221
- "border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
229
+ "border-gray-300/50 dark:border-gray-700/50": _ctx.disabled,
230
+ "border-opacity-0 group-hover/field:border-opacity-100 dark:border-opacity-0 dark:group-hover/field:border-opacity-100": _ctx.seamless && !focused,
231
+ "bg-default dark:bg-default-dark": !_ctx.seamless || focused
222
232
  }]),
223
233
  onClick: focus,
224
234
  onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
@@ -234,13 +244,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
234
244
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-[1.125em]" }))
235
245
  ], 2)) : createCommentVNode("", true),
236
246
  createElementVNode("div", {
247
+ ref: "content",
237
248
  class: normalizeClass(["group/input col-start-2 grid grid-cols-1", {
238
- "py-[--w-input-gap,0.25rem] first:pl-[--w-input-gap,0.25rem] last:pr-[--w-input-gap,0.25rem]": _ctx.$slots.prefix
249
+ "py-[--w-input-gap,0.25rem] first:pl-[--w-input-gap,0.25rem] last:pr-[--w-input-gap,0.25rem]": _ctx.$slots.prefix,
250
+ "no-scrollbar overflow-x-auto overscroll-x-contain": _ctx.noWrap && (!_ctx.seamless || focused),
251
+ "overflow-hidden": _ctx.noWrap && (_ctx.seamless && !focused)
239
252
  }])
240
253
  }, [
241
254
  createElementVNode("div", {
242
- class: normalizeClass(["flex flex-wrap gap-[--w-input-gap,0.25rem]", {
243
- "[&:not(:has(.w-option-has-bg))]:-px--w-option-padding": !_ctx.icon && !_ctx.textarea
255
+ class: normalizeClass(["flex gap-[--w-input-gap,0.25rem]", {
256
+ "[&:not(:has(.w-option-has-bg))]:-px--w-option-padding": !_ctx.icon && !_ctx.textarea,
257
+ "flex-wrap": !_ctx.noWrap
244
258
  }])
245
259
  }, [
246
260
  renderSlot(_ctx.$slots, "prefix"),
@@ -290,11 +304,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
290
304
  onFocus: ($event) => {
291
305
  _ctx.$emit("focus", $event);
292
306
  setFocused(true);
307
+ _ctx.seamless && nextTick(() => unref(contentRef)?.scrollTo({ left: unref(contentRef)?.scrollWidth ?? 0 }));
293
308
  },
294
309
  onBlur: ($event) => {
295
310
  _ctx.$emit("blur", $event);
296
311
  setFocused(false);
297
312
  isSecureVisible.value = false;
313
+ _ctx.seamless && unref(contentRef)?.scrollTo({ left: 0 });
298
314
  },
299
315
  onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
300
316
  onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
@@ -304,12 +320,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
304
320
  ], 2)
305
321
  ], 2)
306
322
  ], 2),
307
- createVNode(_sfc_main$2, {
323
+ !_ctx.seamless || focused ? (openBlock(), createBlock(_sfc_main$2, {
324
+ key: 1,
308
325
  "model-value": _ctx.modelValue,
309
326
  loading: _ctx.loading,
310
327
  "allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
311
328
  disabled: _ctx.disabled || _ctx.disabledActions,
312
- readonly: _ctx.readonly || _ctx.unclickable,
329
+ readonly: _ctx.readonly || _ctx.unclickable === true,
313
330
  "text-secure": _ctx.textSecure,
314
331
  "is-secure-visible": isSecureVisible.value,
315
332
  "allow-paste": _ctx.allowPaste,
@@ -334,7 +351,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
334
351
  ]),
335
352
  key: "0"
336
353
  } : void 0
337
- ]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"]),
354
+ ]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"])) : createCommentVNode("", true),
338
355
  renderSlot(_ctx.$slots, "inner")
339
356
  ], 34)
340
357
  ]),
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  autocomplete: {},
35
35
  autofocus: { type: Boolean },
36
36
  readonly: { type: Boolean },
37
- unclickable: { type: Boolean },
37
+ unclickable: { type: [Boolean, null] },
38
38
  disabledActions: { type: Boolean },
39
39
  loading: { type: Boolean },
40
40
  spellcheck: { type: Boolean },
@@ -44,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  allowClear: { type: Boolean },
45
45
  allowPaste: { type: Boolean },
46
46
  hideInput: { type: Boolean },
47
+ noWrap: { type: Boolean },
47
48
  title: {},
48
49
  titleIcon: {},
49
50
  description: {},
@@ -61,7 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
62
  leftError: { type: Boolean },
62
63
  filterField: {},
63
64
  filterValue: {},
64
- subgrid: { type: Boolean }
65
+ subgrid: { type: Boolean },
66
+ seamless: { type: Boolean }
65
67
  },
66
68
  emits: ["update:modelValue"],
67
69
  setup(__props, { emit: __emit }) {
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  autocomplete: {},
28
28
  autofocus: { type: Boolean },
29
29
  readonly: { type: Boolean },
30
- unclickable: { type: Boolean },
30
+ unclickable: { type: [Boolean, null] },
31
31
  disabledActions: { type: Boolean },
32
32
  loading: { type: Boolean },
33
33
  spellcheck: { type: Boolean },
@@ -37,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  allowClear: { type: Boolean },
38
38
  allowPaste: { type: Boolean },
39
39
  hideInput: { type: Boolean },
40
+ noWrap: { type: Boolean },
40
41
  title: {},
41
42
  titleIcon: {},
42
43
  description: {},
@@ -55,9 +56,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
56
  filterField: {},
56
57
  filterValue: {},
57
58
  subgrid: { type: Boolean },
59
+ seamless: { type: Boolean },
58
60
  teleport: { type: Boolean },
59
- noZIndex: { type: Boolean },
60
- zIndex: {},
61
61
  parentElement: {},
62
62
  maxHeight: { default: 440 },
63
63
  maxWidth: { default: 480 },
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  autocomplete: {},
33
33
  autofocus: { type: Boolean },
34
34
  readonly: { type: Boolean },
35
- unclickable: { type: Boolean },
35
+ unclickable: { type: [Boolean, null] },
36
36
  disabledActions: { type: Boolean },
37
37
  loading: { type: Boolean },
38
38
  spellcheck: { type: Boolean },
@@ -42,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  allowClear: { type: Boolean },
43
43
  allowPaste: { type: Boolean },
44
44
  hideInput: { type: Boolean },
45
+ noWrap: { type: Boolean },
45
46
  title: {},
46
47
  titleIcon: {},
47
48
  description: {},
@@ -60,9 +61,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
61
  filterField: {},
61
62
  filterValue: {},
62
63
  subgrid: { type: Boolean },
64
+ seamless: { type: Boolean },
63
65
  teleport: { type: Boolean },
64
- noZIndex: { type: Boolean },
65
- zIndex: {},
66
66
  parentElement: {},
67
67
  maxHeight: {},
68
68
  maxWidth: {},
@@ -13,7 +13,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
13
13
  title?: () => void;
14
14
  subtitle?: () => void;
15
15
  prefix?: (props: {
16
- unclickable?: boolean;
16
+ unclickable?: boolean | null;
17
17
  }) => void;
18
18
  right?: (props: Record<string, never>) => void;
19
19
  content?: (props?: {
@@ -23,7 +23,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
23
23
  title?: () => void;
24
24
  subtitle?: () => void;
25
25
  prefix?: (props: {
26
- unclickable?: boolean;
26
+ unclickable?: boolean | null;
27
27
  }) => void;
28
28
  right?: (props: Record<string, never>) => void;
29
29
  content?: (props?: {
@@ -1 +1 @@
1
- {"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AA6HA;AA4NA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAC,KAAK,KAAK,EAAgC,MAAM,KAAK,CAAA;yBAY5C,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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AI;kBACpC,CAAC,KAAK,CAAC,EAAE;YAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;SAAC,KAAK,KAAK,EAAE;;;YAlEvD,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;;EA4WlC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1YzE,wBA0Y4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import { defineComponent, ref, useTemplateRef, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, Fragment, renderList, createVNode, createSlots, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, normalizeClass, createElementBlock, createCommentVNode, Fragment, renderList, createSlots, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../BottomSheet/WBottomSheet.vue.js';
3
3
  import _sfc_main$2 from '../DropdownMenu/WDropdownMenu.vue.js';
4
- import _sfc_main$3 from './WInput.vue.js';
5
- import WSkeleton from '../Skeleton/WSkeleton.vue.js';
4
+ import _sfc_main$3 from '../InfiniteList/WInfiniteListScrollingElement.vue.js';
5
+ 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';
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  autocomplete: {},
29
29
  autofocus: { type: Boolean },
30
30
  readonly: { type: Boolean },
31
- unclickable: { type: Boolean },
31
+ unclickable: { type: [Boolean, null] },
32
32
  disabledActions: { type: Boolean },
33
33
  loading: { type: Boolean },
34
34
  spellcheck: { type: Boolean },
@@ -38,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  allowClear: { type: Boolean },
39
39
  allowPaste: { type: Boolean },
40
40
  hideInput: { type: Boolean },
41
+ noWrap: { type: Boolean },
41
42
  title: {},
42
43
  titleIcon: {},
43
44
  description: {},
@@ -56,9 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
57
  filterField: {},
57
58
  filterValue: {},
58
59
  subgrid: { type: Boolean },
60
+ seamless: { type: Boolean },
59
61
  teleport: { type: Boolean },
60
- noZIndex: { type: Boolean },
61
- zIndex: {},
62
62
  parentElement: {},
63
63
  maxHeight: { default: 320 },
64
64
  maxWidth: { default: 600 },
@@ -71,7 +71,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
71
  const isOpen = ref(false);
72
72
  const dropdownMenuRef = useTemplateRef("dropdownMenu");
73
73
  const inputRef = useTemplateRef("input");
74
- const contentRef = useTemplateRef("content");
75
74
  const { isMobile } = useIsMobile();
76
75
  const isDisabled = computed(() => props.readonly || props.disabled);
77
76
  const open = () => {
@@ -100,115 +99,106 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
99
  updateDropdown
101
100
  });
102
101
  return (_ctx, _cache) => {
103
- return openBlock(), createElementBlock("div", {
104
- class: normalizeClass(_ctx.$attrs.class)
105
- }, [
106
- (openBlock(), createBlock(resolveDynamicComponent(unref(isMobile) ? _sfc_main$1 : _sfc_main$2), mergeProps({ ref: "dropdownMenu" }, unref(isMobile) ? {
107
- isOpen: isOpen.value,
108
- onClose: close
109
- } : {
110
- isOpen: isOpen.value,
111
- maxHeight: _ctx.maxHeight,
112
- maxWidth: _ctx.maxWidth,
113
- horizontalAlign: _ctx.horizontalAlign,
114
- updateAlign: true,
115
- teleport: _ctx.teleport,
116
- noZIndex: _ctx.noZIndex
117
- }), {
118
- toggle: withCtx(({ unclickable }) => [
119
- createVNode(_sfc_main$3, mergeProps({ ref: "input" }, {
120
- ...props,
121
- title: unclickable ? _ctx.mobileTitle ?? _ctx.title : _ctx.title,
122
- unclickable,
123
- description: void 0
124
- }, {
125
- class: {
126
- "cursor-pointer": !_ctx.disabled && !_ctx.readonly,
127
- "cursor-not-allowed": _ctx.disabled && !_ctx.readonly,
128
- "mb-3": unref(isMobile) && !unclickable
129
- },
130
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => !_ctx.loading && _ctx.$emit("update:modelValue", $event)),
131
- "onKeypress:enter": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("keypress:enter", $event)),
132
- "onKeypress:up": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("keypress:up", $event)),
133
- "onKeypress:down": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("keypress:down", $event)),
134
- "onKeypress:delete": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("keypress:delete", $event)),
135
- onFocus: ($event) => {
136
- open();
137
- !unclickable && _ctx.$emit("focus", $event);
138
- },
139
- onBlur: ($event) => {
140
- !unref(isMobile) && !_ctx.persist && close();
141
- !unclickable && _ctx.$emit("blur", $event);
142
- },
143
- onClick: ($event) => unref(isMobile) && unclickable && open(),
144
- "onClick:suffix": ($event) => unref(isMobile) && unclickable && open(),
145
- "onClick:clear": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click:clear"))
146
- }), createSlots({
147
- prefix: withCtx(() => [
148
- renderSlot(_ctx.$slots, "prefix", { unclickable })
102
+ return openBlock(), createBlock(resolveDynamicComponent(unref(isMobile) ? _sfc_main$1 : _sfc_main$2), mergeProps({ ref: "dropdownMenu" }, unref(isMobile) ? {
103
+ isOpen: isOpen.value,
104
+ onClose: close
105
+ } : {
106
+ isOpen: isOpen.value,
107
+ maxHeight: _ctx.maxHeight,
108
+ maxWidth: _ctx.maxWidth,
109
+ horizontalAlign: _ctx.horizontalAlign,
110
+ updateAlign: true,
111
+ teleport: _ctx.teleport,
112
+ parentElement: unref(inputRef)?.fieldRef
113
+ }), {
114
+ toggle: withCtx((toggleScope) => [
115
+ createVNode(_sfc_main$4, mergeProps({ ref: "input" }, {
116
+ ...props,
117
+ ..._ctx.$attrs,
118
+ title: toggleScope?.unclickable ? _ctx.mobileTitle ?? _ctx.title : _ctx.title,
119
+ unclickable: toggleScope?.unclickable,
120
+ description: toggleScope?.unclickable === false ? void 0 : _ctx.description
121
+ }, {
122
+ class: {
123
+ "cursor-pointer": !_ctx.disabled && !_ctx.readonly,
124
+ "cursor-not-allowed": _ctx.disabled && !_ctx.readonly,
125
+ "mb-3": unref(isMobile) && !toggleScope?.unclickable
126
+ },
127
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => !_ctx.loading && _ctx.$emit("update:modelValue", $event)),
128
+ "onKeypress:enter": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("keypress:enter", $event)),
129
+ "onKeypress:up": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("keypress:up", $event)),
130
+ "onKeypress:down": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("keypress:down", $event)),
131
+ "onKeypress:delete": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("keypress:delete", $event)),
132
+ onFocus: ($event) => {
133
+ open();
134
+ !toggleScope?.unclickable && _ctx.$emit("focus", $event);
135
+ },
136
+ onBlur: ($event) => {
137
+ !unref(isMobile) && !_ctx.persist && close();
138
+ !toggleScope?.unclickable && _ctx.$emit("blur", $event);
139
+ },
140
+ onClick: ($event) => unref(isMobile) && toggleScope?.unclickable && open(),
141
+ "onClick:suffix": ($event) => unref(isMobile) && toggleScope?.unclickable && open(),
142
+ "onClick:clear": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click:clear"))
143
+ }), createSlots({
144
+ prefix: withCtx(() => [
145
+ renderSlot(_ctx.$slots, "prefix", {
146
+ unclickable: toggleScope?.unclickable
147
+ })
148
+ ]),
149
+ suffix: withCtx(() => [
150
+ !_ctx.disabled ? (openBlock(), createBlock(unref(IconArrow), {
151
+ key: 0,
152
+ class: normalizeClass(["square-3 text-description transition-transform", { "rotate-180": isOpen.value }])
153
+ }, null, 8, ["class"])) : createCommentVNode("", true)
154
+ ]),
155
+ _: 2
156
+ }, [
157
+ _ctx.$slots.title ? {
158
+ name: "title",
159
+ fn: withCtx(() => [
160
+ renderSlot(_ctx.$slots, "title")
149
161
  ]),
150
- suffix: withCtx(() => [
151
- !_ctx.disabled ? (openBlock(), createBlock(unref(IconArrow), {
152
- key: 0,
153
- class: normalizeClass(["square-3 text-description transition-transform", { "rotate-180": isOpen.value }])
154
- }, null, 8, ["class"])) : createCommentVNode("", true)
162
+ key: "0"
163
+ } : void 0,
164
+ _ctx.$slots.subtitle ? {
165
+ name: "subtitle",
166
+ fn: withCtx(() => [
167
+ renderSlot(_ctx.$slots, "subtitle")
155
168
  ]),
156
- _: 2
157
- }, [
158
- _ctx.$slots.title ? {
159
- name: "title",
160
- fn: withCtx(() => [
161
- renderSlot(_ctx.$slots, "title")
162
- ]),
163
- key: "0"
164
- } : void 0,
165
- _ctx.$slots.subtitle ? {
166
- name: "subtitle",
167
- fn: withCtx(() => [
168
- renderSlot(_ctx.$slots, "subtitle")
169
- ]),
170
- key: "1"
171
- } : void 0,
172
- _ctx.$slots.right ? {
173
- name: "right",
174
- fn: withCtx(() => [
175
- renderSlot(_ctx.$slots, "right")
176
- ]),
177
- key: "2"
178
- } : void 0
179
- ]), 1040, ["class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
180
- ]),
181
- content: withCtx((contentScope) => [
182
- createElementVNode("div", {
183
- ref: "content",
184
- class: normalizeClass(["bg-default dark:bg-default-dark w-full", {
185
- "pb-[50vh]": unref(isMobile),
186
- "overflow-y-overlay max-h-[inherit] overflow-x-hidden overscroll-contain rounded-xl shadow-md dark:border dark:border-solid dark:border-gray-800": !unref(isMobile),
187
- "mt-5": "istop" in contentScope && contentScope.istop === false && (_ctx.errorMessage || _ctx.maxLength)
188
- }])
189
- }, [
169
+ key: "1"
170
+ } : void 0,
171
+ _ctx.$slots.right ? {
172
+ name: "right",
173
+ fn: withCtx(() => [
174
+ renderSlot(_ctx.$slots, "right")
175
+ ]),
176
+ key: "2"
177
+ } : void 0
178
+ ]), 1040, ["class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
179
+ ]),
180
+ content: withCtx((contentScope) => [
181
+ createVNode(_sfc_main$3, {
182
+ parent: unref(isMobile),
183
+ class: normalizeClass(["bg-default dark:bg-default-dark w-full", {
184
+ "pb-[50vh]": unref(isMobile),
185
+ "overflow-y-overlay max-h-[inherit] overflow-x-hidden overscroll-contain rounded-xl shadow-md dark:border dark:border-solid dark:border-gray-800": !unref(isMobile),
186
+ "mt-5": "istop" in contentScope && contentScope.istop === false && (_ctx.errorMessage || _ctx.maxLength)
187
+ }])
188
+ }, {
189
+ default: withCtx(() => [
190
190
  _ctx.$slots.content ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.$slots.content(), (slot, index) => {
191
191
  return openBlock(), createBlock(resolveDynamicComponent(slot), {
192
192
  key: index,
193
- "scrolling-element": unref(isMobile) ? unref(contentRef)?.parentElement : unref(contentRef),
194
193
  onClose: close
195
- }, null, 40, ["scrolling-element"]);
194
+ }, null, 32);
196
195
  }), 128)) : createCommentVNode("", true)
197
- ], 2)
198
- ]),
199
- _: 3
200
- }, 16)),
201
- _ctx.description ? (openBlock(), createElementBlock("div", {
202
- key: 0,
203
- class: normalizeClass(["text-description whitespace-pre-wrap break-words pb-4 text-xs font-normal", {
204
- "opacity-50": _ctx.disabled && !_ctx.readonly && !_ctx.skeleton
205
- }])
206
- }, [
207
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
208
- createTextVNode(toDisplayString(_ctx.description), 1)
209
- ], 64))
210
- ], 2)) : createCommentVNode("", true)
211
- ], 2);
196
+ ]),
197
+ _: 2
198
+ }, 1032, ["parent", "class"])
199
+ ]),
200
+ _: 3
201
+ }, 16);
212
202
  };
213
203
  }
214
204
  });
@@ -17,7 +17,7 @@ export interface InputProps<Type extends InputType> extends Omit<FieldWrapperPro
17
17
  autocomplete?: 'off' | string;
18
18
  autofocus?: boolean;
19
19
  readonly?: boolean;
20
- unclickable?: boolean;
20
+ unclickable?: boolean | null;
21
21
  disabledActions?: boolean;
22
22
  loading?: boolean;
23
23
  spellcheck?: boolean;
@@ -27,6 +27,7 @@ export interface InputProps<Type extends InputType> extends Omit<FieldWrapperPro
27
27
  allowClear?: boolean;
28
28
  allowPaste?: boolean;
29
29
  hideInput?: boolean;
30
+ noWrap?: boolean;
30
31
  }
31
32
  export interface InputAsyncProps<Type extends InputType> extends InputProps<Type> {
32
33
  validate?: ValidateFn | ValidateFn[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAA;I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;;;;;;;;;;;;oCAzHK,GAAG,8CAC7B,GAAE,yBAAyB,GAC1B,6DACoB,GAAG;;;;;;;;;;;;;;;;OA8HtB,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"}
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
60
  const validate = (...args) => formRef.value?.validate(...args);
61
61
  const isActionShown = computed(() => !props.skeleton && (props.allowOpen || props.to !== void 0 || props.allowSelectHover || props.hasAction));
62
62
  const toggleMenu = (event) => {
63
- if (props.disabled || props.disableMore || !containerRef.value || !moreRef.value) return;
63
+ if (props.disabled || props.disableMore || !containerRef.value || !moreRef.value || event.ctrlKey) return;
64
64
  const containerRect = containerRef.value.getBoundingClientRect();
65
65
  position.value = { left: event.screenX - containerRect.x + "px", top: event.clientY - containerRect.y + "px" };
66
66
  moreRef.value.open();
@@ -92,11 +92,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
92
  }),
93
93
  !_ctx.card ? (openBlock(), createElementBlock("div", {
94
94
  key: 0,
95
- class: normalizeClass(["left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
95
+ class: normalizeClass(["-left--left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
96
96
  "width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
97
97
  }])
98
98
  }, [
99
- _cache[5] || (_cache[5] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
99
+ _cache[5] || (_cache[5] = createElementVNode("div", { class: "bg-default dark:bg-default-dark -w--left-inner absolute right-full top-0 z-[-1] h-full" }, null, -1)),
100
100
  createElementVNode("div", {
101
101
  class: normalizeClass(["h-full rounded-l-[--w-list-rounded,unset]", {
102
102
  "border border-r-0": _ctx.hasBorder,
@@ -176,12 +176,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
176
176
  }, 16, ["class"])),
177
177
  !_ctx.card ? (openBlock(), createElementBlock("div", {
178
178
  key: 1,
179
- class: normalizeClass(["right-inner bg-default dark:bg-default-dark sticky z-[1]", {
179
+ class: normalizeClass(["-right--right-inner bg-default dark:bg-default-dark sticky z-[1]", {
180
180
  "width-[calc(var(--w-list-padding,1rem)*2+1.25em)]": _ctx.$slots.more,
181
181
  "width-[--w-list-header-rounded,1rem]": !_ctx.$slots.more
182
182
  }])
183
183
  }, [
184
- _cache[6] || (_cache[6] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
184
+ _cache[6] || (_cache[6] = createElementVNode("div", { class: "bg-default dark:bg-default-dark -w--right-inner absolute left-full top-0 z-[-1] h-full" }, null, -1)),
185
185
  createElementVNode("div", {
186
186
  class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
187
187
  "rounded-tr-[--w-list-rounded,unset] border border-l-0": _ctx.hasBorder,
@@ -221,7 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
221
221
  _ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
222
222
  isOpen.value ? (openBlock(), createElementBlock("div", {
223
223
  key: 0,
224
- class: normalizeClass(["sm:w-inner sm:left-inner col-span-full sm:sticky", {
224
+ class: normalizeClass(["sm:-w--width-inner sm:-left--left-inner col-span-full sm:sticky", {
225
225
  "border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
226
226
  "border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
227
227
  "mt-[calc(var(--w-list-gap,1rem)*-1)] border border-t-0 px-5": !_ctx.card && _ctx.hasBorder,