toku-form-extensions 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/TCustomForm/CustomField.d.ts +4 -1
- package/dist/components/TCustomForm/CustomField.d.ts.map +1 -1
- package/dist/components/TCustomForm/FieldsSection.d.ts +7 -1
- package/dist/components/TCustomForm/FieldsSection.d.ts.map +1 -1
- package/dist/components/TCustomForm/TAlert.d.ts +3 -3
- package/dist/components/TCustomForm/TCustomForm.d.ts +1 -1
- package/dist/components/TCustomForm/TCustomForm.d.ts.map +1 -1
- package/dist/components/TCustomForm/index.d.ts +1 -1
- package/dist/components/TCustomForm/index.d.ts.map +1 -1
- package/dist/composables/useRelatedFields.d.ts +4 -3
- package/dist/composables/useRelatedFields.d.ts.map +1 -1
- package/dist/index.es.js +2731 -2717
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -23
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/{components/TCustomForm/TCustomForm.types.d.ts → types/customFields.d.ts} +5 -4
- package/dist/types/customFields.d.ts.map +1 -0
- package/dist/types/signUpField.d.ts +0 -10
- package/dist/types/signUpField.d.ts.map +1 -1
- package/dist/utils/typeChecker.d.ts +3 -3
- package/dist/utils/typeChecker.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/TCustomForm/TCustomForm.types.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { CustomFieldRegex } from '
|
|
2
|
+
import { CustomFieldRegex } from '../../types/customFields';
|
|
3
3
|
interface CustomFieldProps {
|
|
4
4
|
id: string;
|
|
5
5
|
value?: string | number | Date;
|
|
@@ -18,11 +18,14 @@ interface CustomFieldProps {
|
|
|
18
18
|
isMobile?: boolean;
|
|
19
19
|
autocomplete?: boolean;
|
|
20
20
|
isExternalId?: boolean;
|
|
21
|
+
touched?: boolean;
|
|
21
22
|
}
|
|
22
23
|
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<CustomFieldProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
24
|
input: (value: string | number | Date) => void;
|
|
24
25
|
"right-icon-click": () => void;
|
|
26
|
+
blur: () => void;
|
|
25
27
|
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CustomFieldProps>>> & {
|
|
28
|
+
onBlur?: (() => any) | undefined;
|
|
26
29
|
onInput?: ((value: string | number | Date) => any) | undefined;
|
|
27
30
|
"onRight-icon-click"?: (() => any) | undefined;
|
|
28
31
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/CustomField"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/CustomField"],"names":[],"mappings":"AAMA,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAIxD,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;;;;;;;AA6QD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { Account } from '../../types/entities';
|
|
3
|
-
import { CustomInputField } from '
|
|
3
|
+
import { CustomInputField } from '../../types/customFields';
|
|
4
4
|
interface FieldSectionsProps {
|
|
5
5
|
fieldsType: 'invoice' | 'customer';
|
|
6
6
|
title: string | undefined;
|
|
@@ -15,7 +15,13 @@ declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<FieldSecti
|
|
|
15
15
|
id: string;
|
|
16
16
|
value: string | number | Date;
|
|
17
17
|
}) => void;
|
|
18
|
+
blur: (value: {
|
|
19
|
+
id: string;
|
|
20
|
+
}) => void;
|
|
18
21
|
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FieldSectionsProps>>> & {
|
|
22
|
+
onBlur?: ((value: {
|
|
23
|
+
id: string;
|
|
24
|
+
}) => any) | undefined;
|
|
19
25
|
onInput?: ((value: {
|
|
20
26
|
id: string;
|
|
21
27
|
value: string | number | Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldsSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/FieldsSection"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldsSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/FieldsSection"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAM3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD,UAAU,kBAAkB;IAC1B,UAAU,EAAE,SAAS,GAAG,UAAU,CAAC;IACnC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;;;;;;;;;;;;;AA8VD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
variant: "success" | "
|
|
3
|
+
variant: "success" | "in-process" | "warning" | "error" | "info";
|
|
4
4
|
fullWidth?: boolean | undefined;
|
|
5
5
|
icon?: string | undefined;
|
|
6
6
|
size: "small" | "large";
|
|
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
8
8
|
variant: string;
|
|
9
9
|
icon: undefined;
|
|
10
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
-
variant: "success" | "
|
|
11
|
+
variant: "success" | "in-process" | "warning" | "error" | "info";
|
|
12
12
|
fullWidth?: boolean | undefined;
|
|
13
13
|
icon?: string | undefined;
|
|
14
14
|
size: "small" | "large";
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
16
16
|
variant: string;
|
|
17
17
|
icon: undefined;
|
|
18
18
|
}>>>, {
|
|
19
|
-
variant: "success" | "
|
|
19
|
+
variant: "success" | "in-process" | "warning" | "error" | "info";
|
|
20
20
|
icon: string;
|
|
21
21
|
}, {}>, {
|
|
22
22
|
default?(_: {}): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Account } from '../../types/entities';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { CustomCheckBoxField, CustomInputField, FormRequestData, TCustomFormProps } from '
|
|
3
|
+
import { CustomCheckBoxField, CustomInputField, FormRequestData, TCustomFormProps } from '../../types/customFields';
|
|
4
4
|
import '@/assets/scss/main.scss';
|
|
5
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TCustomFormProps>, {
|
|
6
6
|
customerFields: () => never[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TCustomForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/TCustomForm"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TCustomForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/TCustomForm"],"names":[],"mappings":"AAIA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmkBjC,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TCustomForm/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomCheckBoxField, CustomInputField } from '../types/customFields';
|
|
2
|
+
import { SignupField } from '../types/signUpField';
|
|
2
3
|
import { ComputedRef, Ref } from 'vue';
|
|
3
|
-
export default function useRelatedFields(fields?: Ref<Array<SignupField |
|
|
4
|
-
shouldShowField: (field: SignupField |
|
|
4
|
+
export default function useRelatedFields(fields?: Ref<Array<SignupField | CustomCheckBoxField | CustomInputField>> | ComputedRef<Array<SignupField | CustomCheckBoxField | CustomInputField>>): {
|
|
5
|
+
shouldShowField: (field: SignupField | CustomCheckBoxField | CustomInputField) => boolean;
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=useRelatedFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelatedFields.d.ts","sourceRoot":"","sources":["../../src/composables/useRelatedFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useRelatedFields.d.ts","sourceRoot":"","sources":["../../src/composables/useRelatedFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,MAAM,CAAC,EACH,GAAG,CAAC,KAAK,CAAC,WAAW,GAAG,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,GAChE,WAAW,CAAC,KAAK,CAAC,WAAW,GAAG,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;6BAWnE,WAAW,GAAG,mBAAmB,GAAG,gBAAgB,KAC1D,OAAO;EAgCX"}
|