@appcorp/app-corp-vista 0.1.64 → 0.1.65
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/package.json +1 -1
- package/type/vista-form-elements.d.ts +9 -9
- package/utils/form-schema.d.ts +18 -0
- package/utils/form-schema.js +42 -36
package/package.json
CHANGED
|
@@ -12,23 +12,23 @@ interface Base {
|
|
|
12
12
|
enabled: boolean;
|
|
13
13
|
order: number;
|
|
14
14
|
}
|
|
15
|
-
interface ButtonV1 extends VistaButtonV1Props, Base {
|
|
15
|
+
export interface ButtonV1 extends VistaButtonV1Props, Base {
|
|
16
16
|
}
|
|
17
|
-
interface CheckboxV1 extends VistaCheckboxV1Props, Base {
|
|
17
|
+
export interface CheckboxV1 extends VistaCheckboxV1Props, Base {
|
|
18
18
|
}
|
|
19
|
-
interface ComboboxV1 extends VistaComboboxV1Props, Base {
|
|
19
|
+
export interface ComboboxV1 extends VistaComboboxV1Props, Base {
|
|
20
20
|
}
|
|
21
|
-
interface DividerV4 extends VistaVerticalDividerV4Props, Base {
|
|
21
|
+
export interface DividerV4 extends VistaVerticalDividerV4Props, Base {
|
|
22
22
|
}
|
|
23
|
-
interface RadioV1 extends VistaRadioV1Props, Base {
|
|
23
|
+
export interface RadioV1 extends VistaRadioV1Props, Base {
|
|
24
24
|
}
|
|
25
|
-
interface SelectV1 extends VistaSelectV1Props, Base {
|
|
25
|
+
export interface SelectV1 extends VistaSelectV1Props, Base {
|
|
26
26
|
}
|
|
27
|
-
interface TextAreaV1 extends VistaTextAreaV1Props, Base {
|
|
27
|
+
export interface TextAreaV1 extends VistaTextAreaV1Props, Base {
|
|
28
28
|
}
|
|
29
|
-
interface TextInputV1 extends VistaTextInputV1Props, Base {
|
|
29
|
+
export interface TextInputV1 extends VistaTextInputV1Props, Base {
|
|
30
30
|
}
|
|
31
|
-
interface UploadV1 extends VistaUploadV1Props, Base {
|
|
31
|
+
export interface UploadV1 extends VistaUploadV1Props, Base {
|
|
32
32
|
}
|
|
33
33
|
export interface VistaFormElements {
|
|
34
34
|
[VISTA_FORM_ELEMENTS.BUTTON_V1]?: ButtonV1[];
|
package/utils/form-schema.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VistaComboboxV1Props } from "../type/vista-combobox-type";
|
|
3
|
+
import { VistaCheckboxV2Props, VistaCheckboxV3Props } from "../type/vista-checkbox-type";
|
|
4
|
+
import { ButtonV1, CheckboxV1, DividerV4, RadioV1, SelectV1, TextAreaV1, TextInputV1, UploadV1 } from "../type/vista-form-elements";
|
|
1
5
|
export declare enum VISTA_FORM_ELEMENTS {
|
|
2
6
|
AUDIO_V1 = "AUDIO_V1",
|
|
3
7
|
BUTTON_V1 = "BUTTON_V1",
|
|
@@ -12,3 +16,17 @@ export declare enum VISTA_FORM_ELEMENTS {
|
|
|
12
16
|
TEXT_INPUT_V1 = "TEXT_INPUT_V1",
|
|
13
17
|
UPLOAD_V1 = "UPLOAD_V1"
|
|
14
18
|
}
|
|
19
|
+
export declare const vistaFormSchema: {
|
|
20
|
+
AUDIO_V1: (props: any) => React.JSX.Element;
|
|
21
|
+
BUTTON_V1: (props: ButtonV1) => React.JSX.Element;
|
|
22
|
+
CHECKBOX_V1: (props: CheckboxV1) => React.JSX.Element;
|
|
23
|
+
CHECKBOX_V2: (props: VistaCheckboxV2Props) => React.JSX.Element;
|
|
24
|
+
CHECKBOX_V3: (props: VistaCheckboxV3Props) => React.JSX.Element;
|
|
25
|
+
COMBOBOX_V1: (props: VistaComboboxV1Props) => React.JSX.Element;
|
|
26
|
+
DIVIDER_V4: (props: DividerV4) => React.JSX.Element;
|
|
27
|
+
RADIO_V1: (props: RadioV1) => React.JSX.Element;
|
|
28
|
+
SELECT_V1: (props: SelectV1) => React.JSX.Element;
|
|
29
|
+
TEXT_AREA_V1: (props: TextAreaV1) => React.JSX.Element;
|
|
30
|
+
TEXT_INPUT_V1: (props: TextInputV1) => React.JSX.Element;
|
|
31
|
+
UPLOAD_V1: (props: UploadV1) => React.JSX.Element;
|
|
32
|
+
};
|
package/utils/form-schema.js
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// import { VistaRadioV1Props } from "../type/vista-radio-type";
|
|
18
|
-
// import { VistaRadioV1 } from "../molecules/vista-radio-v1/vista-radio-v1";
|
|
19
|
-
// import { VistaButtonV1Props } from "../type/vista-button-type";
|
|
20
|
-
// import { VistaButtonV1 } from "../molecules/vista-button-v1/vista-button-v1";
|
|
21
|
-
// import { VistaUploadV1Props } from "../type/vista-upload-type";
|
|
22
|
-
// import { VistaUploadV1 } from "../molecules/vista-upload-v1/vista-upload-v1";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
var _a;
|
|
23
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.VISTA_FORM_ELEMENTS = void 0;
|
|
18
|
+
exports.vistaFormSchema = exports.VISTA_FORM_ELEMENTS = void 0;
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
20
|
+
var vista_text_area_v1_1 = require("../molecules/vista-text-area-v1");
|
|
21
|
+
var vista_text_input_v1_1 = require("../molecules/vista-text-input-v1");
|
|
22
|
+
var vista_select_v1_1 = require("../molecules/vista-select-v1/vista-select-v1");
|
|
23
|
+
var vista_combobox_v1_1 = require("../molecules/vista-combobox-v1/vista-combobox-v1");
|
|
24
|
+
var vista_vertical_divider_v4_1 = require("../molecules/vista-vertical-divider-v4");
|
|
25
|
+
var vista_checkbox_v1_1 = require("../molecules/vista-checkbox-v1/vista-checkbox-v1");
|
|
26
|
+
var vista_checkbox_v2_1 = require("../molecules/vista-checkbox-v2/vista-checkbox-v2");
|
|
27
|
+
var vista_checkbox_v3_1 = require("../molecules/vista-checkbox-v3/vista-checkbox-v3");
|
|
28
|
+
var vista_radio_v1_1 = require("../molecules/vista-radio-v1/vista-radio-v1");
|
|
29
|
+
var vista_button_v1_1 = require("../molecules/vista-button-v1/vista-button-v1");
|
|
30
|
+
var vista_upload_v1_1 = require("../molecules/vista-upload-v1/vista-upload-v1");
|
|
25
31
|
var VISTA_FORM_ELEMENTS;
|
|
26
32
|
(function (VISTA_FORM_ELEMENTS) {
|
|
27
33
|
VISTA_FORM_ELEMENTS["AUDIO_V1"] = "AUDIO_V1";
|
|
@@ -37,17 +43,17 @@ var VISTA_FORM_ELEMENTS;
|
|
|
37
43
|
VISTA_FORM_ELEMENTS["TEXT_INPUT_V1"] = "TEXT_INPUT_V1";
|
|
38
44
|
VISTA_FORM_ELEMENTS["UPLOAD_V1"] = "UPLOAD_V1";
|
|
39
45
|
})(VISTA_FORM_ELEMENTS || (exports.VISTA_FORM_ELEMENTS = VISTA_FORM_ELEMENTS = {}));
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
exports.vistaFormSchema = (_a = {},
|
|
47
|
+
_a[VISTA_FORM_ELEMENTS.AUDIO_V1] = function (props) { return react_1.default.createElement("audio", __assign({}, props)); },
|
|
48
|
+
_a[VISTA_FORM_ELEMENTS.BUTTON_V1] = function (props) { return react_1.default.createElement(vista_button_v1_1.VistaButtonV1, __assign({}, props)); },
|
|
49
|
+
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V1] = function (props) { return react_1.default.createElement(vista_checkbox_v1_1.VistaCheckboxV1, __assign({}, props)); },
|
|
50
|
+
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V2] = function (props) { return react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, __assign({}, props)); },
|
|
51
|
+
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V3] = function (props) { return react_1.default.createElement(vista_checkbox_v3_1.VistaCheckboxV3, __assign({}, props)); },
|
|
52
|
+
_a[VISTA_FORM_ELEMENTS.COMBOBOX_V1] = function (props) { return react_1.default.createElement(vista_combobox_v1_1.VistaComboboxV1, __assign({}, props)); },
|
|
53
|
+
_a[VISTA_FORM_ELEMENTS.DIVIDER_V4] = function (props) { return react_1.default.createElement(vista_vertical_divider_v4_1.VistaVerticalDividerV4, __assign({}, props)); },
|
|
54
|
+
_a[VISTA_FORM_ELEMENTS.RADIO_V1] = function (props) { return react_1.default.createElement(vista_radio_v1_1.VistaRadioV1, __assign({}, props)); },
|
|
55
|
+
_a[VISTA_FORM_ELEMENTS.SELECT_V1] = function (props) { return react_1.default.createElement(vista_select_v1_1.VistaSelectV1, __assign({}, props)); },
|
|
56
|
+
_a[VISTA_FORM_ELEMENTS.TEXT_AREA_V1] = function (props) { return react_1.default.createElement(vista_text_area_v1_1.VistaTextAreaV1, __assign({}, props)); },
|
|
57
|
+
_a[VISTA_FORM_ELEMENTS.TEXT_INPUT_V1] = function (props) { return react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, __assign({}, props)); },
|
|
58
|
+
_a[VISTA_FORM_ELEMENTS.UPLOAD_V1] = function (props) { return react_1.default.createElement(vista_upload_v1_1.VistaUploadV1, __assign({}, props)); },
|
|
59
|
+
_a);
|