eco-vue-js 0.10.24 → 0.10.26

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 (65) hide show
  1. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  2. package/dist/components/Button/WButton.vue.js +14 -11
  3. package/dist/components/Button/WButtonAction.vue.d.ts +1 -0
  4. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  5. package/dist/components/Button/WButtonAction.vue.js +8 -1
  6. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  7. package/dist/components/Button/WButtonDropdown.vue.js +43 -35
  8. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  9. package/dist/components/Button/WButtonGroup.vue.js +2 -1
  10. package/dist/components/Button/WButtonSelectionAction.vue.js +1 -1
  11. package/dist/components/Button/types.d.ts +2 -0
  12. package/dist/components/Button/types.d.ts.map +1 -1
  13. package/dist/components/Dropdown/WDropdown.vue.d.ts +3 -1
  14. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  15. package/dist/components/Dropdown/WDropdown.vue.js +5 -4
  16. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +9 -3
  17. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  18. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  19. package/dist/components/Form/WFormValidator.vue.js +3 -5
  20. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
  21. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -2
  22. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.d.ts.map +1 -1
  23. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -2
  24. package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
  25. package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -2
  26. package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
  27. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +2 -3
  28. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
  29. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -2
  30. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
  31. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -2
  32. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
  33. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +2 -3
  34. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
  35. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +2 -3
  36. package/dist/components/FormAsync/use/useFormAsync.d.ts +0 -1
  37. package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
  38. package/dist/components/FormAsync/use/useFormAsync.js +2 -4
  39. package/dist/components/List/WList.vue.d.ts.map +1 -1
  40. package/dist/components/List/WList.vue.js +4 -2
  41. package/dist/components/List/types.d.ts +10 -6
  42. package/dist/components/List/types.d.ts.map +1 -1
  43. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  44. package/dist/components/Select/WSelectAsync.vue.js +2 -1
  45. package/dist/components/Tooltip/WTooltip.vue.d.ts +2 -0
  46. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  47. package/dist/components/Tooltip/WTooltip.vue.js +6 -2
  48. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  49. package/dist/components/Tooltip/WTooltipContainer.vue.js +9 -5
  50. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +4 -0
  51. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
  52. package/dist/components/Tooltip/components/TooltipContainer.vue.js +56 -19
  53. package/dist/imports/componentsPlugin.d.ts +1 -2
  54. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  55. package/dist/main.js +1 -2
  56. package/dist/utils/Tooltip.d.ts +2 -0
  57. package/dist/utils/Tooltip.d.ts.map +1 -1
  58. package/dist/utils/utils.d.ts +0 -2
  59. package/dist/utils/utils.d.ts.map +1 -1
  60. package/dist/utils/utils.js +1 -2
  61. package/package.json +1 -4
  62. package/dist/components/Provide/WProvide.vue.d.ts +0 -21
  63. package/dist/components/Provide/WProvide.vue.d.ts.map +0 -1
  64. package/dist/components/Provide/WProvide.vue.js +0 -20
  65. package/dist/components/Provide/WProvide.vue2.js +0 -5
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"AAWA;AAAA,OA6BO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;yBAMhC,KAAK,EAAE,SAAS,SAAS,OAAO,GAAG,IAAI,EAAE,WAAW,EACpE,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuFO,mBAAmB,CAAC;;qMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cApFL,SAAS,SAAS,KAAK,KAAG,IAAI;EAwFhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlGzE,wBAkG4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -28,14 +28,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  setup(__props, { emit: __emit }) {
29
29
  const props = __props;
30
30
  const emit = __emit;
31
- const { isLoadingError, data, modelValue, submitting, readonlyInjected, showModal } = useFormAsync(props, (value) => emit("success", value));
31
+ const { isLoadingError, data, modelValue, submitting, showModal } = useFormAsync(props, (value) => emit("success", value));
32
32
  return (_ctx, _cache) => {
33
33
  return openBlock(), createBlock(_sfc_main$1, mergeProps({
34
34
  ...props,
35
35
  modelValue: unref(modelValue),
36
36
  loading: _ctx.loading || !unref(data) || unref(submitting),
37
- disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled,
38
- readonly: unref(readonlyInjected) || _ctx.readonly
37
+ disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled
39
38
  }, { "onUpdate:modelValue": unref(showModal) }), null, 16, ["onUpdate:modelValue"]);
40
39
  };
41
40
  }
@@ -4,7 +4,6 @@ export declare const useFormAsync: <Model, FieldType, QueryParams>(props: FormAs
4
4
  data: import('vue').Ref<Model, Model> | import('vue').Ref<undefined, undefined>;
5
5
  modelValue: import('vue').ComputedRef<FieldType | undefined>;
6
6
  submitting: import('vue').Ref<boolean, boolean>;
7
- readonlyInjected: import('vue').Ref<boolean, boolean>;
8
7
  showModal: (value: FieldType) => void;
9
8
  };
10
9
  //# sourceMappingURL=useFormAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormAsync.d.ts","sourceRoot":"","sources":["../../../../../src/components/FormAsync/use/useFormAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAS5C,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;;;;;uBAkCvH,SAAS;CA+BpC,CAAA"}
1
+ {"version":3,"file":"useFormAsync.d.ts","sourceRoot":"","sources":["../../../../../src/components/FormAsync/use/useFormAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAS5C,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;;;;uBAgCvH,SAAS;CA8BpC,CAAA"}
@@ -1,12 +1,11 @@
1
- import { toRef, inject, ref, computed, onBeforeUnmount } from 'vue';
1
+ import { toRef, ref, computed, onBeforeUnmount } from 'vue';
2
2
  import { Modal } from '../../../utils/Modal.js';
3
3
  import { Notify } from '../../../utils/Notify.js';
4
4
  import { handleApiError } from '../../../utils/api.js';
5
- import { wReadonly, get, set } from '../../../utils/utils.js';
5
+ import { get, set } from '../../../utils/utils.js';
6
6
 
7
7
  const useFormAsync = (props, onSuccess) => {
8
8
  const enabled = toRef(props, "queryEnabled");
9
- const readonlyInjected = inject(wReadonly, ref(false));
10
9
  const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled }) : props.useQueryFn(toRef(props, "queryParams"), { enabled });
11
10
  const submitting = ref(false);
12
11
  const modelValue = computed(() => get(data.value ?? {}, props.field));
@@ -45,7 +44,6 @@ const useFormAsync = (props, onSuccess) => {
45
44
  data,
46
45
  modelValue,
47
46
  submitting,
48
- readonlyInjected,
49
47
  showModal
50
48
  };
51
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AAkPA;AAkYA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAWzC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAWrB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,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C,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -176,9 +176,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
176
176
  "selection-count": unref(selectionCount),
177
177
  "query-params-getter": getQueryParamsBulk,
178
178
  "disable-message": disableMessage,
179
+ readonly: _ctx.readonly ?? false,
179
180
  class: normalizeClass(cssClass),
180
181
  "onClear:selected": unref(resetSelection)
181
- }, null, 40, ["selection-count", "disable-message", "class", "onClear:selected"]);
182
+ }, null, 40, ["selection-count", "disable-message", "readonly", "class", "onClear:selected"]);
182
183
  }), 128))
183
184
  ]),
184
185
  key: "0"
@@ -192,9 +193,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
193
  "selection-count": unref(selectionCount),
193
194
  "query-params-getter": getQueryParamsBulk,
194
195
  "disable-message": scope?.disableMessage,
196
+ readonly: _ctx.readonly ?? false,
195
197
  class: normalizeClass(scope?.cssClass),
196
198
  "onClear:selected": unref(resetSelection)
197
- }, null, 40, ["selection-count", "disable-message", "class", "onClear:selected"]);
199
+ }, null, 40, ["selection-count", "disable-message", "readonly", "class", "onClear:selected"]);
198
200
  }), 128))
199
201
  ]),
200
202
  key: "1"
@@ -1,11 +1,12 @@
1
1
  import { ListMode } from '../../utils/utils';
2
2
  import { Component, Raw } from 'vue';
3
- export type FieldComponent<Data> = Component<{
3
+ export type FieldProps<Data> = {
4
4
  item: Data;
5
5
  skeleton: boolean;
6
6
  readonly: boolean;
7
7
  card: boolean;
8
- }>;
8
+ };
9
+ export type FieldComponent<Data> = Component<FieldProps<Data>>;
9
10
  export type FieldComponentNested<Data> = Component<{
10
11
  item: Data;
11
12
  skeleton: boolean;
@@ -69,17 +70,20 @@ export interface ListFieldNestedArrayGetter<Data, QueryParams = unknown, Inner =
69
70
  componentArray?: Raw<FieldComponentNested<Data>>;
70
71
  }
71
72
  export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedEntityGetter<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams> | ListFieldNestedArrayGetter<Data, QueryParams>)[];
72
- export type MenuComponent<Data> = Component<{
73
+ export type MenuProps<Data> = {
73
74
  item: Data;
74
75
  readonly: boolean;
75
76
  updateItem: (newItem?: Data | undefined) => void;
76
77
  deleteItem: () => void;
77
- }>;
78
- export type BulkComponent<QueryParams> = Component<{
78
+ };
79
+ export type MenuComponent<Data> = Component<MenuProps<Data>>;
80
+ export type BulkProps<QueryParams> = {
79
81
  queryParamsGetter: () => QueryParams;
80
82
  selectionCount: number;
81
83
  disableMessage: string | undefined;
82
- }>;
84
+ readonly: boolean;
85
+ };
86
+ export type BulkComponent<QueryParams> = Component<BulkProps<QueryParams>>;
83
87
  export type FieldConfig = {
84
88
  width: number | null;
85
89
  visible: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,IAAI,SAAS,CAAC;IACjD,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,kBAAkB,CAAC,IAAI,IAAI,SAAS,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI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URE__ */ defineComponent({
103
103
  if (props.selectOnClose && search.value && !isModelValueSearch.value) {
104
104
  const optionExact = firstPageData.value?.results.find((option) => props.valueGetter(option) === search.value);
105
105
  if (optionExact) select(props.valueGetter(optionExact));
106
- else create(search.value);
106
+ else if (search.value) create(search.value);
107
+ else if (props.modelValue.length) unselect(props.modelValue[props.modelValue.length - 1]);
107
108
  }
108
109
  search.value = "";
109
110
  };
@@ -6,6 +6,8 @@ type __VLS_Props = {
6
6
  light?: boolean;
7
7
  trigger?: Element;
8
8
  maxHeight?: number;
9
+ left?: boolean;
10
+ right?: boolean;
9
11
  };
10
12
  declare function __VLS_template(): {
11
13
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":"AAOA;AAwFA,OAAO,EAAC,KAAK,KAAK,EAAkF,MAAM,KAAK,CAAA;AAO/G,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkEF,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;kBA9BtC,MAAM,KAAK,EAAE;;kBAAb,MAAM,KAAK,EAAE;;;;;;EAmCxB;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;OAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":"AAOA;AA4FA,OAAO,EAAC,KAAK,KAAK,EAAkF,MAAM,KAAK,CAAA;AAO/G,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AAoEF,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;kBA9BtC,MAAM,KAAK,EAAE;;kBAAb,MAAM,KAAK,EAAE;;;;;;EAmCxB;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;OAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -16,7 +16,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  overflowOnly: { type: Boolean },
17
17
  light: { type: Boolean },
18
18
  trigger: {},
19
- maxHeight: {}
19
+ maxHeight: {},
20
+ left: { type: Boolean },
21
+ right: { type: Boolean }
20
22
  },
21
23
  setup(__props) {
22
24
  const props = __props;
@@ -41,7 +43,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
43
  text: props.text,
42
44
  light: props.light,
43
45
  key: getIncrement(),
44
- maxHeight: props.maxHeight
46
+ maxHeight: props.maxHeight,
47
+ left: props.left,
48
+ right: props.right
45
49
  });
46
50
  };
47
51
  const close = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":"AA4CA;;AAgTA,wBAMG"}
1
+ {"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":"AAgDA;;AA4TA,wBAMG"}
@@ -59,19 +59,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
59
  tooltipMeta.value ? (openBlock(), createBlock(_sfc_main$1, {
60
60
  key: 0,
61
61
  "parent-element": tooltipMeta.value.parent,
62
- "horizontal-align": unref(HorizontalAlign).CENTER,
62
+ "horizontal-align": tooltipMeta.value.left ? unref(HorizontalAlign).LEFT_OUTER : tooltipMeta.value.right ? unref(HorizontalAlign).RIGHT_OUTER : unref(HorizontalAlign).CENTER,
63
63
  "max-height": tooltipMeta.value?.maxHeight ?? 120,
64
64
  "max-width": 240,
65
65
  "emit-update": "",
66
- class: "isolate z-[10000] will-change-[top,bottom,left,right] sm:transition-[top,bottom,left,right]",
66
+ class: "isolate z-[10000]",
67
67
  "onUpdate:rect": close
68
68
  }, {
69
- default: withCtx(({ left, right, istop }) => [
69
+ default: withCtx(({ left, right, top, bottom, isTop }) => [
70
70
  createVNode(_sfc_main$2, {
71
71
  "tooltip-meta": tooltipMeta.value,
72
72
  left,
73
73
  right,
74
- "is-top": istop,
74
+ top,
75
+ bottom,
76
+ "is-top": isTop,
77
+ "is-left": tooltipMeta.value.left,
78
+ "is-right": tooltipMeta.value.right,
75
79
  onOver: _cache[0] || (_cache[0] = ($event) => setTooltipMeta(tooltipMeta.value)),
76
80
  onLeave: _cache[1] || (_cache[1] = ($event) => setTooltipMeta(null))
77
81
  }, {
@@ -81,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
85
  })) : tooltipMeta.value.text ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(tooltipMeta.value.text), 1)) : createCommentVNode("", true)
82
86
  ]),
83
87
  _: 2
84
- }, 1032, ["tooltip-meta", "left", "right", "is-top"])
88
+ }, 1032, ["tooltip-meta", "left", "right", "top", "bottom", "is-top", "is-left", "is-right"])
85
89
  ]),
86
90
  _: 1
87
91
  }, 8, ["parent-element", "horizontal-align", "max-height"])) : createCommentVNode("", true)
@@ -4,6 +4,10 @@ type __VLS_Props = {
4
4
  isTop?: boolean;
5
5
  left?: string;
6
6
  right?: string;
7
+ top?: string;
8
+ bottom?: string;
9
+ isLeft?: boolean;
10
+ isRight?: boolean;
7
11
  };
8
12
  declare function __VLS_template(): {
9
13
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/components/TooltipContainer.vue"],"names":[],"mappings":"AA+BA;AAAA,OAyGO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA8DF,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/components/TooltipContainer.vue"],"names":[],"mappings":"AA8CA;AAAA,OA8JO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAgGF,iBAAS,cAAc;WAuET,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,6 @@
1
- import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, createElementBlock, openBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, nextTick } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, nextTick } from 'vue';
2
2
  import { isClientSide } from '../../../utils/utils.js';
3
3
 
4
- const _hoisted_1 = { class: "pointer-events-none flex flex-col items-center justify-center drop-shadow-md dark:drop-shadow-none" };
5
4
  const MARGIN = 12;
6
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
6
  __name: "TooltipContainer",
@@ -9,15 +8,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
8
  tooltipMeta: {},
10
9
  isTop: { type: Boolean },
11
10
  left: {},
12
- right: {}
11
+ right: {},
12
+ top: {},
13
+ bottom: {},
14
+ isLeft: { type: Boolean },
15
+ isRight: { type: Boolean }
13
16
  },
14
17
  emits: ["over", "leave"],
15
18
  setup(__props) {
16
19
  const props = __props;
17
20
  const containerRef = useTemplateRef("container");
18
21
  const transformX = ref(0);
22
+ const transformY = ref(0);
19
23
  const getTransformX = () => {
20
24
  if (!isClientSide || !containerRef.value) return 0;
25
+ if (props.isLeft || props.isRight) return 0;
21
26
  const l = props.left ? Number.parseFloat(props.left.slice(0, -2)) : null;
22
27
  if (typeof l === "number") {
23
28
  const containerLeft = l - containerRef.value.offsetWidth / 2 - MARGIN;
@@ -36,43 +41,75 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
41
  }
37
42
  return 0;
38
43
  };
39
- const setTransformX = async () => {
44
+ const getTransformY = () => {
45
+ if (!isClientSide || !containerRef.value) return 0;
46
+ if (!props.isLeft && !props.isRight) return 0;
47
+ const t = props.top ? Number.parseFloat(props.top.slice(0, -2)) : null;
48
+ if (typeof t === "number") {
49
+ const containerTop = t - containerRef.value.offsetHeight / 2 - MARGIN;
50
+ if (containerTop < 0) return containerTop * -1;
51
+ const containerBottom = window.innerHeight - t - containerRef.value.offsetHeight / 2 - MARGIN;
52
+ if (containerBottom < 0) return containerBottom;
53
+ return 0;
54
+ }
55
+ const b = props.bottom ? Number.parseFloat(props.bottom.slice(0, -2)) : null;
56
+ if (typeof b === "number") {
57
+ const containerTop = window.innerHeight - b - containerRef.value.offsetHeight / 2 - MARGIN;
58
+ if (containerTop < 0) return containerTop * -1;
59
+ const containerBottom = b - containerRef.value.offsetHeight / 2 - MARGIN;
60
+ if (containerBottom < 0) return containerBottom;
61
+ return 0;
62
+ }
63
+ return 0;
64
+ };
65
+ const setTransform = async () => {
40
66
  await nextTick();
41
67
  transformX.value = getTransformX();
68
+ transformY.value = getTransformY();
42
69
  };
43
- watch(toRef(props, "tooltipMeta"), () => {
44
- setTransformX();
45
- });
46
- onMounted(() => {
47
- setTransformX();
48
- });
70
+ watch(toRef(props, "tooltipMeta"), setTransform);
71
+ onMounted(setTransform);
49
72
  return (_ctx, _cache) => {
50
- return openBlock(), createElementBlock("div", _hoisted_1, [
51
- createElementVNode("div", {
52
- class: normalizeClass(["pointer-events-auto z-10 w-1 border-[0.5rem] border-solid border-transparent", {
73
+ return openBlock(), createElementBlock("div", {
74
+ class: normalizeClass(["pointer-events-none flex items-center drop-shadow-md dark:drop-shadow-none", {
75
+ "flex-col": !_ctx.isLeft && !_ctx.isRight,
76
+ "justify-end": _ctx.isLeft
77
+ }])
78
+ }, [
79
+ (openBlock(), createElementBlock("svg", {
80
+ viewBox: "0 0 16 16",
81
+ class: normalizeClass(["square-5 pointer-events-auto z-10", {
53
82
  "text-black-default dark:text-gray-800": !_ctx.tooltipMeta.light,
54
83
  "text-default dark:text-gray-800": _ctx.tooltipMeta.light,
55
- "order-2 border-t-current": _ctx.isTop,
56
- "border-b-current": !_ctx.isTop
84
+ "order-2 -mb-1 rotate-180": _ctx.isTop,
85
+ "order-2 -mr-1 rotate-90": _ctx.isLeft,
86
+ "-ml-1 -rotate-90": _ctx.isRight,
87
+ "-mt-1": !_ctx.isTop && !_ctx.isLeft && !_ctx.isRight
57
88
  }]),
58
89
  onMouseover: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("over")),
59
90
  onMouseleave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("leave"))
60
- }, null, 34),
91
+ }, _cache[4] || (_cache[4] = [
92
+ createElementVNode("path", {
93
+ d: "M7.16933 9.81927C5.84985 12.8991 5.05085 15.1582 0 16H16.0042C10.9498 15.1582 10.1503 12.8991 8.83068 9.81926C8.50615 9.06181 7.49384 9.06181 7.16933 9.81927Z",
94
+ fill: "currentColor"
95
+ }, null, -1)
96
+ ]), 34)),
61
97
  createElementVNode("div", {
62
98
  ref: "container",
63
- class: normalizeClass(["pointer-events-auto max-w-[calc(100vw-1.5rem)] translate-x-[var(--t-translate-x)] rounded-xl px-4 py-3 text-center text-xs font-medium", {
99
+ class: normalizeClass(["pointer-events-auto max-w-[calc(100vw-1.5rem)] translate-x-[var(--t-translate-x)] translate-y-[var(--t-translate-y)] rounded-lg px-3 py-2 text-center text-xs font-medium", {
64
100
  "bg-black-default text-default dark:bg-gray-800": !_ctx.tooltipMeta.light,
65
101
  "bg-default text-accent dark:bg-gray-800": _ctx.tooltipMeta.light
66
102
  }]),
67
103
  style: normalizeStyle({
68
- "--t-translate-x": transformX.value + "px"
104
+ "--t-translate-x": transformX.value + "px",
105
+ "--t-translate-y": transformY.value + "px"
69
106
  }),
70
107
  onMouseover: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("over")),
71
108
  onMouseleave: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("leave"))
72
109
  }, [
73
110
  renderSlot(_ctx.$slots, "default")
74
111
  ], 38)
75
- ]);
112
+ ], 2);
76
113
  };
77
114
  }
78
115
  });
@@ -71,7 +71,6 @@ import { default as WPageBreadcrumbs } from '../components/Page/WPageBreadcrumbs
71
71
  import { default as WPageNumerator } from '../components/Page/WPageNumerator.vue';
72
72
  import { default as WPageTitle } from '../components/Page/WPageTitle.vue';
73
73
  import { default as WProgress } from '../components/Progress/WProgress.vue';
74
- import { default as WProvide } from '../components/Provide/WProvide.vue';
75
74
  import { default as WSelect } from '../components/Select/WSelect.vue';
76
75
  import { default as WSelectAsync } from '../components/Select/WSelectAsync.vue';
77
76
  import { default as WSelectAsyncList } from '../components/Select/WSelectAsyncList.vue';
@@ -90,5 +89,5 @@ declare const _default: {
90
89
  install: (app: App | any) => void;
91
90
  };
92
91
  export default _default;
93
- export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WCheckboxGroup, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WProvide, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
92
+ export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WCheckboxGroup, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
94
93
  //# sourceMappingURL=componentsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,cAAc,MAAM,0CAA0C,C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Q,MAAM,mCAAmC,CAAA;AACxD,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;;mBAIzD,GAAG,GAAG,GAAG;;AAF1B,wBA0FC;AAED,OAAO,EACL,WAAW,EACX,YAAY,EACZ,OAAO,EACP,aAAa,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,KAAK,EACL,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,2BAA2B,EAC3B,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,iBAAiB,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,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
package/dist/main.js CHANGED
@@ -74,7 +74,6 @@ export { default as WPageBreadcrumbs } from './components/Page/WPageBreadcrumbs.
74
74
  export { default as WPageNumerator } from './components/Page/WPageNumerator.vue.js';
75
75
  export { default as WPageTitle } from './components/Page/WPageTitle.vue.js';
76
76
  export { default as WProgress } from './components/Progress/WProgress.vue.js';
77
- export { default as WProvide } from './components/Provide/WProvide.vue.js';
78
77
  export { default as WSelect } from './components/Select/WSelect.vue.js';
79
78
  export { default as WSelectAsync } from './components/Select/WSelectAsync.vue.js';
80
79
  export { default as WSelectAsyncList } from './components/Select/WSelectAsyncList.vue.js';
@@ -101,5 +100,5 @@ export { getIsMobile, getIsTablet, getIsTouchDevice, useIsMobile } from './utils
101
100
  export { PAGE_LENGTH, makeQueryPaginated, useDefaultQuery, wrapUseQueryPaginated } from './utils/useDefaultQuery.js';
102
101
  export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
103
102
  export { useCopy } from './utils/useCopy.js';
104
- export { ListMode, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle, wReadonly } from './utils/utils.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';
105
104
  export { validateRequired } from './utils/validate.js';
@@ -6,6 +6,8 @@ export type TooltipMeta = {
6
6
  light?: boolean;
7
7
  key: number;
8
8
  maxHeight?: number;
9
+ left?: boolean;
10
+ right?: boolean;
9
11
  };
10
12
  export type SetTooltipMeta = (meta: TooltipMeta | null) => void;
11
13
  export declare const initTooltip: (value: SetTooltipMeta | undefined) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/utils/Tooltip.ts"],"names":[],"mappings":"A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Map, GetFieldLabels, ListFields } from '../components/List/types';
2
- import { InjectionKey, Ref } from 'vue';
3
2
  export declare const getScrollParent: (node: Element) => Element | null;
4
3
  export declare const getAllScrollParents: (node?: Element, max?: number) => Array<Element>;
5
4
  export declare const hasParent: (parent: Element, current: Element) => boolean;
@@ -27,6 +26,5 @@ export declare enum ListMode {
27
26
  TABLE = "table",
28
27
  GRID = "grid"
29
28
  }
30
- export declare const wReadonly: InjectionKey<Ref<boolean>>;
31
29
  export {};
32
30
  //# 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;AACpG,OAAO,KAAK,EAAC,YAAY,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAY1C,eAAO,MAAM,eAAe,GAAI,MAAM,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,GAAI,OAAO,OAAO,EAAE,YAAQ,KAAG,KAAK,CAAC,OAAO,CAa3E,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,QAAQ,OAAO,EAAE,SAAS,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAWpE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAYpE;AAED,eAAO,MAAM,UAAU,GAAI,MAAM,OAAO,EAAE,EAAE,MAAM,OAAO,EAAE,KAAG,OAE7D,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,MAA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ED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
@@ -121,6 +121,5 @@ var ListMode = /* @__PURE__ */ ((ListMode2) => {
121
121
  ListMode2["GRID"] = "grid";
122
122
  return ListMode2;
123
123
  })(ListMode || {});
124
- const wReadonly = Symbol("wReadonly");
125
124
 
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 };
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 };
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.24",
7
+ "version": "0.10.26",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "dev": "vite build --watch",
@@ -355,9 +355,6 @@
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
- },
361
358
  "./dist/components/Select/WSelect.vue": {
362
359
  "import": "./dist/components/Select/WSelect.vue.js"
363
360
  },
@@ -1,21 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,20 +0,0 @@
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,5 +0,0 @@
1
- import _sfc_main from './WProvide.vue.js';
2
-
3
-
4
-
5
- export { _sfc_main as default };