vft 0.0.390 → 0.0.391

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.
@@ -1,5 +1,5 @@
1
- import { FormCompEnum } from 'vft/es/utils';
2
- declare const isRangePicker: (type: FormCompEnum) => boolean;
3
- declare const isInput: (type: FormCompEnum) => boolean;
4
- declare const isDatePicker: (type: FormCompEnum) => boolean;
1
+ import { type FormCompEnumType } from 'vft/es/utils';
2
+ declare const isRangePicker: (type: FormCompEnumType) => boolean;
3
+ declare const isInput: (type: FormCompEnumType) => boolean;
4
+ declare const isDatePicker: (type: FormCompEnumType) => boolean;
5
5
  export { isDatePicker, isInput, isRangePicker };
@@ -109,7 +109,7 @@ import "../../hooks/use-z-index/index.js";
109
109
  import "../message/index.js";
110
110
  import "../progress-i/index.js";
111
111
  import "./index.js";
112
- import { isInput as he, isDatePicker as Ee, isRangePicker as Pe } from "./component-map.js";
112
+ import { isRangePicker as he, isInput as Ee, isDatePicker as Pe } from "./component-map.js";
113
113
  import { createPlaceholderMessage as Y } from "./use/helper.js";
114
114
  function q(o) {
115
115
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
@@ -282,7 +282,7 @@ const Ce = Q({
282
282
  placeholderJoinLabel: f = !0
283
283
  } = o.schema;
284
284
  let p = a;
285
- he(t) ? p = "input" : Ee(t) || t === e.TIME_PICKER || [e.INPUT_TAG, e.AUTOCOMPLETE, e.Cascader, e.ColorPicker, e.Slider].includes(t) ? p = "update:modelValue" : t === e.Upload && (p = "update:fileList");
285
+ Ee(t) ? p = "input" : Pe(t) || t === e.TIME_PICKER || [e.INPUT_TAG, e.AUTOCOMPLETE, e.Cascader, e.ColorPicker, e.Slider].includes(t) ? p = "update:modelValue" : t === e.Upload && (p = "update:fileList");
286
286
  const i = `on${me(p)}`, g = {
287
287
  [i]: (...R) => {
288
288
  const [N] = R;
@@ -297,7 +297,7 @@ const Ce = Q({
297
297
  clearable: !0,
298
298
  ...c(K)
299
299
  };
300
- if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !Pe(t) && t) {
300
+ if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !he(t) && t) {
301
301
  const R = u || h;
302
302
  d.placeholder = c(K)?.placeholder || Y(t, f && ce(R) ? R : "");
303
303
  }
@@ -6,7 +6,7 @@ import type { RowProps } from 'vft/es/components/row';
6
6
  import type { ToolTipProps } from 'vft/es/components/tooltip';
7
7
  import type { ComponentSize } from 'vft/es/constants';
8
8
  import type { Arrayable } from 'vft/es/utils';
9
- import { FormCompEnum } from 'vft/es/utils';
9
+ import { type FormCompEnumType } from 'vft/es/utils';
10
10
  import type { InternalRuleItem, RuleItem } from 'async-validator';
11
11
  import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
12
12
  import type { Recordable } from '../types';
@@ -199,7 +199,7 @@ export interface FormSchema {
199
199
  /** 用于自定义组件时给 label 加上必选 * */
200
200
  labelRequired?: boolean;
201
201
  /** 渲染组件 */
202
- type?: FormCompEnum;
202
+ type?: FormCompEnumType;
203
203
  /** 组件内置参数 */
204
204
  componentProps?: ((opt: {
205
205
  schema: FormSchema;
@@ -1,4 +1,4 @@
1
- import { FormCompEnum } from 'vft/es/utils';
1
+ import { type FormCompEnumType } from 'vft/es/utils';
2
2
  /**
3
3
  * @description 自动创建 placeholder
4
4
  * @example
@@ -6,7 +6,7 @@ import { FormCompEnum } from 'vft/es/utils';
6
6
  * @param type 组件类型
7
7
  * @param label
8
8
  */
9
- export declare function createPlaceholderMessage(type: FormCompEnum, label?: string): string;
9
+ export declare function createPlaceholderMessage(type: FormCompEnumType, label?: string): string;
10
10
  /**
11
11
  * @description 处理 input 输入为数值的 val
12
12
  * @example
@@ -14,4 +14,4 @@ export declare function createPlaceholderMessage(type: FormCompEnum, label?: str
14
14
  * @param type
15
15
  * @param val
16
16
  */
17
- export declare function handleInputNumberValue(type?: FormCompEnum, val?: any): any;
17
+ export declare function handleInputNumberValue(type?: FormCompEnumType, val?: any): any;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.390",
3
+ "version": "0.0.391",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.390";
1
+ const o = "0.0.391";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1,42 +1,43 @@
1
1
  import type { Component } from 'vue';
2
- export declare enum FormCompEnum {
3
- AUTOCOMPLETE = "autocomplete",
4
- Cascader = "cascader",
5
- ColorPicker = "colorPicker",
6
- INPUT = "input",
7
- INPUT_NUMBER = "input-number",
8
- INPUT_NUMBER_STEP = "input-number-step",
9
- INPUT_TAG = "input-tag",
10
- PASSWORD = "password",
11
- TEXTAREA = "textarea",
12
- Slider = "slider",
13
- DIVIDER = "divider",
14
- SELECT = "select",
15
- SEARCH = "search",
16
- RADIO = "radio",
17
- RADIO_SINGLE = "radio_single",
18
- RADIO_BUTTON = "radio-button",
19
- CHECKBOX = "checkbox",
20
- CHECKBOX_SINGLE = "checkbox_single",
21
- CHECKBOX_BUTTON = "checkbox-button",
22
- SWITCH = "switch",
23
- Upload = "upload",
24
- TIME_PICKER = "time-picker",
25
- TIMERANGE_PICKER = "time-picker",
26
- YEAR_PICKER = "year",
27
- MONTH_PICKER = "month",
28
- DATE_PICKER = "date",
29
- DATES_PICKER = "dates",
30
- DATETIME_PICKER = "datetime",
31
- WEEK_PICKER = "week",
32
- DATETIMERANGE_PICKER = "datetimerange",
33
- DATERANGE_PICKER = "daterange",
34
- MONTHRANGE_PICKER = "monthrange"
35
- }
36
- export declare function registerComponent(compName: FormCompEnum | string, component: Component): void;
2
+ export declare const FormCompEnum: {
3
+ readonly AUTOCOMPLETE: "autocomplete";
4
+ readonly Cascader: "cascader";
5
+ readonly ColorPicker: "colorPicker";
6
+ readonly INPUT: "input";
7
+ readonly INPUT_NUMBER: "input-number";
8
+ readonly INPUT_NUMBER_STEP: "input-number-step";
9
+ readonly INPUT_TAG: "input-tag";
10
+ readonly PASSWORD: "password";
11
+ readonly TEXTAREA: "textarea";
12
+ readonly Slider: "slider";
13
+ readonly DIVIDER: "divider";
14
+ readonly SELECT: "select";
15
+ readonly SEARCH: "search";
16
+ readonly RADIO: "radio";
17
+ readonly RADIO_SINGLE: "radio_single";
18
+ readonly RADIO_BUTTON: "radio-button";
19
+ readonly CHECKBOX: "checkbox";
20
+ readonly CHECKBOX_SINGLE: "checkbox_single";
21
+ readonly CHECKBOX_BUTTON: "checkbox-button";
22
+ readonly SWITCH: "switch";
23
+ readonly Upload: "upload";
24
+ readonly TIME_PICKER: "time-picker";
25
+ readonly TIMERANGE_PICKER: "time-picker";
26
+ readonly YEAR_PICKER: "year";
27
+ readonly MONTH_PICKER: "month";
28
+ readonly DATE_PICKER: "date";
29
+ readonly DATES_PICKER: "dates";
30
+ readonly DATETIME_PICKER: "datetime";
31
+ readonly WEEK_PICKER: "week";
32
+ readonly DATETIMERANGE_PICKER: "datetimerange";
33
+ readonly DATERANGE_PICKER: "daterange";
34
+ readonly MONTHRANGE_PICKER: "monthrange";
35
+ };
36
+ export type FormCompEnumType = (typeof FormCompEnum)[keyof typeof FormCompEnum];
37
+ export declare function registerComponent(compName: FormCompEnumType | string, component: Component): void;
37
38
  export declare function registerComponents(components: Record<string, Component>): void;
38
- export declare function getComponent(compName: FormCompEnum): Component | undefined;
39
- export declare function removeComponent(compName: FormCompEnum): void;
40
- export declare function hasComponent(compName: FormCompEnum): boolean;
41
- export declare function getRegisteredComponents(): FormCompEnum[];
39
+ export declare function getComponent(compName: FormCompEnumType): Component | undefined;
40
+ export declare function removeComponent(compName: FormCompEnumType): void;
41
+ export declare function hasComponent(compName: FormCompEnumType): boolean;
42
+ export declare function getRegisteredComponents(): FormCompEnumType[];
42
43
  export declare function clearComponents(): void;
@@ -1,35 +1,68 @@
1
- var c = /* @__PURE__ */ ((e) => (e.AUTOCOMPLETE = "autocomplete", e.Cascader = "cascader", e.ColorPicker = "colorPicker", e.INPUT = "input", e.INPUT_NUMBER = "input-number", e.INPUT_NUMBER_STEP = "input-number-step", e.INPUT_TAG = "input-tag", e.PASSWORD = "password", e.TEXTAREA = "textarea", e.Slider = "slider", e.DIVIDER = "divider", e.SELECT = "select", e.SEARCH = "search", e.RADIO = "radio", e.RADIO_SINGLE = "radio_single", e.RADIO_BUTTON = "radio-button", e.CHECKBOX = "checkbox", e.CHECKBOX_SINGLE = "checkbox_single", e.CHECKBOX_BUTTON = "checkbox-button", e.SWITCH = "switch", e.Upload = "upload", e.TIME_PICKER = "time-picker", e.TIMERANGE_PICKER = "time-picker", e.YEAR_PICKER = "year", e.MONTH_PICKER = "month", e.DATE_PICKER = "date", e.DATES_PICKER = "dates", e.DATETIME_PICKER = "datetime", e.WEEK_PICKER = "week", e.DATETIMERANGE_PICKER = "datetimerange", e.DATERANGE_PICKER = "daterange", e.MONTHRANGE_PICKER = "monthrange", e))(c || {});
2
- const t = /* @__PURE__ */ new Map();
3
- function I(e, a) {
4
- t.set(e, a);
1
+ const E = {
2
+ AUTOCOMPLETE: "autocomplete",
3
+ Cascader: "cascader",
4
+ ColorPicker: "colorPicker",
5
+ INPUT: "input",
6
+ INPUT_NUMBER: "input-number",
7
+ INPUT_NUMBER_STEP: "input-number-step",
8
+ INPUT_TAG: "input-tag",
9
+ PASSWORD: "password",
10
+ TEXTAREA: "textarea",
11
+ Slider: "slider",
12
+ DIVIDER: "divider",
13
+ SELECT: "select",
14
+ SEARCH: "search",
15
+ RADIO: "radio",
16
+ RADIO_SINGLE: "radio_single",
17
+ RADIO_BUTTON: "radio-button",
18
+ CHECKBOX: "checkbox",
19
+ CHECKBOX_SINGLE: "checkbox_single",
20
+ CHECKBOX_BUTTON: "checkbox-button",
21
+ SWITCH: "switch",
22
+ Upload: "upload",
23
+ TIME_PICKER: "time-picker",
24
+ // eslint-disable-next-line
25
+ TIMERANGE_PICKER: "time-picker",
26
+ YEAR_PICKER: "year",
27
+ MONTH_PICKER: "month",
28
+ DATE_PICKER: "date",
29
+ DATES_PICKER: "dates",
30
+ DATETIME_PICKER: "datetime",
31
+ WEEK_PICKER: "week",
32
+ DATETIMERANGE_PICKER: "datetimerange",
33
+ DATERANGE_PICKER: "daterange",
34
+ MONTHRANGE_PICKER: "monthrange"
35
+ }, t = /* @__PURE__ */ new Map();
36
+ function r(e, n) {
37
+ t.set(e, n);
5
38
  }
6
- function T(e) {
7
- Object.entries(e).forEach(([a, i]) => {
8
- t.set(a, i);
39
+ function i(e) {
40
+ Object.entries(e).forEach(([n, o]) => {
41
+ t.set(n, o);
9
42
  });
10
43
  }
11
- function R(e) {
44
+ function a(e) {
12
45
  return t.get(e);
13
46
  }
14
- function s(e) {
47
+ function c(e) {
15
48
  t.delete(e);
16
49
  }
17
- function n(e) {
50
+ function C(e) {
18
51
  return t.has(e);
19
52
  }
20
- function _() {
53
+ function I() {
21
54
  return Array.from(t.keys());
22
55
  }
23
- function A() {
56
+ function T() {
24
57
  t.clear();
25
58
  }
26
59
  export {
27
- c as FormCompEnum,
28
- A as clearComponents,
29
- R as getComponent,
30
- _ as getRegisteredComponents,
31
- n as hasComponent,
32
- I as registerComponent,
33
- T as registerComponents,
34
- s as removeComponent
60
+ E as FormCompEnum,
61
+ T as clearComponents,
62
+ a as getComponent,
63
+ I as getRegisteredComponents,
64
+ C as hasComponent,
65
+ r as registerComponent,
66
+ i as registerComponents,
67
+ c as removeComponent
35
68
  };
@@ -1,5 +1,5 @@
1
- import { FormCompEnum } from 'vft/es/utils';
2
- declare const isRangePicker: (type: FormCompEnum) => boolean;
3
- declare const isInput: (type: FormCompEnum) => boolean;
4
- declare const isDatePicker: (type: FormCompEnum) => boolean;
1
+ import { type FormCompEnumType } from 'vft/es/utils';
2
+ declare const isRangePicker: (type: FormCompEnumType) => boolean;
3
+ declare const isInput: (type: FormCompEnumType) => boolean;
4
+ declare const isDatePicker: (type: FormCompEnumType) => boolean;
5
5
  export { isDatePicker, isInput, isRangePicker };
@@ -6,7 +6,7 @@ import type { RowProps } from 'vft/es/components/row';
6
6
  import type { ToolTipProps } from 'vft/es/components/tooltip';
7
7
  import type { ComponentSize } from 'vft/es/constants';
8
8
  import type { Arrayable } from 'vft/es/utils';
9
- import { FormCompEnum } from 'vft/es/utils';
9
+ import { type FormCompEnumType } from 'vft/es/utils';
10
10
  import type { InternalRuleItem, RuleItem } from 'async-validator';
11
11
  import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
12
12
  import type { Recordable } from '../types';
@@ -199,7 +199,7 @@ export interface FormSchema {
199
199
  /** 用于自定义组件时给 label 加上必选 * */
200
200
  labelRequired?: boolean;
201
201
  /** 渲染组件 */
202
- type?: FormCompEnum;
202
+ type?: FormCompEnumType;
203
203
  /** 组件内置参数 */
204
204
  componentProps?: ((opt: {
205
205
  schema: FormSchema;
@@ -1,4 +1,4 @@
1
- import { FormCompEnum } from 'vft/es/utils';
1
+ import { type FormCompEnumType } from 'vft/es/utils';
2
2
  /**
3
3
  * @description 自动创建 placeholder
4
4
  * @example
@@ -6,7 +6,7 @@ import { FormCompEnum } from 'vft/es/utils';
6
6
  * @param type 组件类型
7
7
  * @param label
8
8
  */
9
- export declare function createPlaceholderMessage(type: FormCompEnum, label?: string): string;
9
+ export declare function createPlaceholderMessage(type: FormCompEnumType, label?: string): string;
10
10
  /**
11
11
  * @description 处理 input 输入为数值的 val
12
12
  * @example
@@ -14,4 +14,4 @@ export declare function createPlaceholderMessage(type: FormCompEnum, label?: str
14
14
  * @param type
15
15
  * @param val
16
16
  */
17
- export declare function handleInputNumberValue(type?: FormCompEnum, val?: any): any;
17
+ export declare function handleInputNumberValue(type?: FormCompEnumType, val?: any): any;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.390";exports.version=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.391";exports.version=e;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.390",
3
+ "version": "0.0.391",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=(e=>(e.AUTOCOMPLETE="autocomplete",e.Cascader="cascader",e.ColorPicker="colorPicker",e.INPUT="input",e.INPUT_NUMBER="input-number",e.INPUT_NUMBER_STEP="input-number-step",e.INPUT_TAG="input-tag",e.PASSWORD="password",e.TEXTAREA="textarea",e.Slider="slider",e.DIVIDER="divider",e.SELECT="select",e.SEARCH="search",e.RADIO="radio",e.RADIO_SINGLE="radio_single",e.RADIO_BUTTON="radio-button",e.CHECKBOX="checkbox",e.CHECKBOX_SINGLE="checkbox_single",e.CHECKBOX_BUTTON="checkbox-button",e.SWITCH="switch",e.Upload="upload",e.TIME_PICKER="time-picker",e.TIMERANGE_PICKER="time-picker",e.YEAR_PICKER="year",e.MONTH_PICKER="month",e.DATE_PICKER="date",e.DATES_PICKER="dates",e.DATETIME_PICKER="datetime",e.WEEK_PICKER="week",e.DATETIMERANGE_PICKER="datetimerange",e.DATERANGE_PICKER="daterange",e.MONTHRANGE_PICKER="monthrange",e))(n||{});const t=new Map;function c(e,i){t.set(e,i)}function s(e){Object.entries(e).forEach(([i,a])=>{t.set(i,a)})}function T(e){return t.get(e)}function I(e){t.delete(e)}function R(e){return t.has(e)}function r(){return Array.from(t.keys())}function d(){t.clear()}exports.FormCompEnum=n;exports.clearComponents=d;exports.getComponent=T;exports.getRegisteredComponents=r;exports.hasComponent=R;exports.registerComponent=c;exports.registerComponents=s;exports.removeComponent=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={AUTOCOMPLETE:"autocomplete",Cascader:"cascader",ColorPicker:"colorPicker",INPUT:"input",INPUT_NUMBER:"input-number",INPUT_NUMBER_STEP:"input-number-step",INPUT_TAG:"input-tag",PASSWORD:"password",TEXTAREA:"textarea",Slider:"slider",DIVIDER:"divider",SELECT:"select",SEARCH:"search",RADIO:"radio",RADIO_SINGLE:"radio_single",RADIO_BUTTON:"radio-button",CHECKBOX:"checkbox",CHECKBOX_SINGLE:"checkbox_single",CHECKBOX_BUTTON:"checkbox-button",SWITCH:"switch",Upload:"upload",TIME_PICKER:"time-picker",TIMERANGE_PICKER:"time-picker",YEAR_PICKER:"year",MONTH_PICKER:"month",DATE_PICKER:"date",DATES_PICKER:"dates",DATETIME_PICKER:"datetime",WEEK_PICKER:"week",DATETIMERANGE_PICKER:"datetimerange",DATERANGE_PICKER:"daterange",MONTHRANGE_PICKER:"monthrange"},t=new Map;function E(e,n){t.set(e,n)}function i(e){Object.entries(e).forEach(([n,o])=>{t.set(n,o)})}function C(e){return t.get(e)}function a(e){t.delete(e)}function c(e){return t.has(e)}function s(){return Array.from(t.keys())}function m(){t.clear()}exports.FormCompEnum=r;exports.clearComponents=m;exports.getComponent=C;exports.getRegisteredComponents=s;exports.hasComponent=c;exports.registerComponent=E;exports.registerComponents=i;exports.removeComponent=a;
@@ -1,42 +1,43 @@
1
1
  import type { Component } from 'vue';
2
- export declare enum FormCompEnum {
3
- AUTOCOMPLETE = "autocomplete",
4
- Cascader = "cascader",
5
- ColorPicker = "colorPicker",
6
- INPUT = "input",
7
- INPUT_NUMBER = "input-number",
8
- INPUT_NUMBER_STEP = "input-number-step",
9
- INPUT_TAG = "input-tag",
10
- PASSWORD = "password",
11
- TEXTAREA = "textarea",
12
- Slider = "slider",
13
- DIVIDER = "divider",
14
- SELECT = "select",
15
- SEARCH = "search",
16
- RADIO = "radio",
17
- RADIO_SINGLE = "radio_single",
18
- RADIO_BUTTON = "radio-button",
19
- CHECKBOX = "checkbox",
20
- CHECKBOX_SINGLE = "checkbox_single",
21
- CHECKBOX_BUTTON = "checkbox-button",
22
- SWITCH = "switch",
23
- Upload = "upload",
24
- TIME_PICKER = "time-picker",
25
- TIMERANGE_PICKER = "time-picker",
26
- YEAR_PICKER = "year",
27
- MONTH_PICKER = "month",
28
- DATE_PICKER = "date",
29
- DATES_PICKER = "dates",
30
- DATETIME_PICKER = "datetime",
31
- WEEK_PICKER = "week",
32
- DATETIMERANGE_PICKER = "datetimerange",
33
- DATERANGE_PICKER = "daterange",
34
- MONTHRANGE_PICKER = "monthrange"
35
- }
36
- export declare function registerComponent(compName: FormCompEnum | string, component: Component): void;
2
+ export declare const FormCompEnum: {
3
+ readonly AUTOCOMPLETE: "autocomplete";
4
+ readonly Cascader: "cascader";
5
+ readonly ColorPicker: "colorPicker";
6
+ readonly INPUT: "input";
7
+ readonly INPUT_NUMBER: "input-number";
8
+ readonly INPUT_NUMBER_STEP: "input-number-step";
9
+ readonly INPUT_TAG: "input-tag";
10
+ readonly PASSWORD: "password";
11
+ readonly TEXTAREA: "textarea";
12
+ readonly Slider: "slider";
13
+ readonly DIVIDER: "divider";
14
+ readonly SELECT: "select";
15
+ readonly SEARCH: "search";
16
+ readonly RADIO: "radio";
17
+ readonly RADIO_SINGLE: "radio_single";
18
+ readonly RADIO_BUTTON: "radio-button";
19
+ readonly CHECKBOX: "checkbox";
20
+ readonly CHECKBOX_SINGLE: "checkbox_single";
21
+ readonly CHECKBOX_BUTTON: "checkbox-button";
22
+ readonly SWITCH: "switch";
23
+ readonly Upload: "upload";
24
+ readonly TIME_PICKER: "time-picker";
25
+ readonly TIMERANGE_PICKER: "time-picker";
26
+ readonly YEAR_PICKER: "year";
27
+ readonly MONTH_PICKER: "month";
28
+ readonly DATE_PICKER: "date";
29
+ readonly DATES_PICKER: "dates";
30
+ readonly DATETIME_PICKER: "datetime";
31
+ readonly WEEK_PICKER: "week";
32
+ readonly DATETIMERANGE_PICKER: "datetimerange";
33
+ readonly DATERANGE_PICKER: "daterange";
34
+ readonly MONTHRANGE_PICKER: "monthrange";
35
+ };
36
+ export type FormCompEnumType = (typeof FormCompEnum)[keyof typeof FormCompEnum];
37
+ export declare function registerComponent(compName: FormCompEnumType | string, component: Component): void;
37
38
  export declare function registerComponents(components: Record<string, Component>): void;
38
- export declare function getComponent(compName: FormCompEnum): Component | undefined;
39
- export declare function removeComponent(compName: FormCompEnum): void;
40
- export declare function hasComponent(compName: FormCompEnum): boolean;
41
- export declare function getRegisteredComponents(): FormCompEnum[];
39
+ export declare function getComponent(compName: FormCompEnumType): Component | undefined;
40
+ export declare function removeComponent(compName: FormCompEnumType): void;
41
+ export declare function hasComponent(compName: FormCompEnumType): boolean;
42
+ export declare function getRegisteredComponents(): FormCompEnumType[];
42
43
  export declare function clearComponents(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vft",
3
- "version": "0.0.390",
3
+ "version": "0.0.391",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -55,12 +55,12 @@
55
55
  "resize-detector": "0.3.0",
56
56
  "sortablejs": "1.15.0",
57
57
  "photoswipe": "5.4.4",
58
- "@vft/constants": "0.0.72",
59
- "@vft/store": "0.0.54",
60
58
  "@vft/router": "0.0.67",
59
+ "@vft/constants": "0.0.72",
60
+ "@vft/utils": "0.0.140",
61
61
  "@vft/directives": "0.0.36",
62
62
  "@vft/use": "0.0.82",
63
- "@vft/utils": "0.0.140"
63
+ "@vft/store": "0.0.54"
64
64
  },
65
65
  "vetur": {
66
66
  "tags": "tags.json",
package/web-types.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"vft","version":"0.0.390","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{}}}
1
+ {"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"vft","version":"0.0.391","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{}}}