@stonecrop/aform 0.2.63 → 0.2.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/dist/aform.d.ts +114 -21
- package/dist/aform.js.map +1 -1
- package/dist/aform.tsbuildinfo +1 -1
- package/dist/aform.umd.cjs +1 -1
- package/dist/aform.umd.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/src/index.d.ts +12 -12
- package/dist/{aform/src → src}/tsdoc-metadata.json +1 -1
- package/dist/src/types/index.d.ts +28 -4
- package/dist/src/types/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/index.ts +14 -14
- package/src/types/index.ts +28 -4
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import ACheckbox from '
|
|
2
|
-
import AComboBox from '
|
|
3
|
-
import ADate from '
|
|
4
|
-
import ADropdown from '
|
|
5
|
-
import ADatePicker from '
|
|
6
|
-
import AFieldset from '
|
|
7
|
-
import AFileAttach from '
|
|
8
|
-
import AForm from '
|
|
9
|
-
import ANumericInput from '
|
|
10
|
-
import ATextInput from '
|
|
11
|
-
import Login from '
|
|
12
|
-
// import { ACurrency } from '
|
|
13
|
-
// import { AQuantity } from '
|
|
1
|
+
import ACheckbox from './components/form/ACheckbox.vue';
|
|
2
|
+
import AComboBox from './components/form/AComboBox.vue';
|
|
3
|
+
import ADate from './components/form/ADate.vue';
|
|
4
|
+
import ADropdown from './components/form/ADropdown.vue';
|
|
5
|
+
import ADatePicker from './components/form/ADatePicker.vue';
|
|
6
|
+
import AFieldset from './components/form/AFieldset.vue';
|
|
7
|
+
import AFileAttach from './components/form/AFileAttach.vue';
|
|
8
|
+
import AForm from './components/AForm.vue';
|
|
9
|
+
import ANumericInput from './components/form/ANumericInput.vue';
|
|
10
|
+
import ATextInput from './components/form/ATextInput.vue';
|
|
11
|
+
import Login from './components/utilities/Login.vue';
|
|
12
|
+
// import { ACurrency } from './components/form/ACurrency.vue'
|
|
13
|
+
// import { AQuantity } from './components/form/AQuantity.vue'
|
|
14
14
|
/**
|
|
15
15
|
* Install all AForm components
|
|
16
16
|
* @param app - Vue app instance
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import ACheckbox from '
|
|
3
|
-
import AComboBox from '
|
|
4
|
-
import ADate from '
|
|
5
|
-
import ADropdown from '
|
|
6
|
-
import ADatePicker from '
|
|
7
|
-
import AFieldset from '
|
|
8
|
-
import AFileAttach from '
|
|
9
|
-
import AForm from '
|
|
10
|
-
import ANumericInput from '
|
|
11
|
-
import ATextInput from '
|
|
12
|
-
import Login from '
|
|
13
|
-
export type { BasicSchema, FormSchema, TableSchema, FieldsetSchema, SchemaTypes } from '
|
|
2
|
+
import ACheckbox from './components/form/ACheckbox.vue';
|
|
3
|
+
import AComboBox from './components/form/AComboBox.vue';
|
|
4
|
+
import ADate from './components/form/ADate.vue';
|
|
5
|
+
import ADropdown from './components/form/ADropdown.vue';
|
|
6
|
+
import ADatePicker from './components/form/ADatePicker.vue';
|
|
7
|
+
import AFieldset from './components/form/AFieldset.vue';
|
|
8
|
+
import AFileAttach from './components/form/AFileAttach.vue';
|
|
9
|
+
import AForm from './components/AForm.vue';
|
|
10
|
+
import ANumericInput from './components/form/ANumericInput.vue';
|
|
11
|
+
import ATextInput from './components/form/ATextInput.vue';
|
|
12
|
+
import Login from './components/utilities/Login.vue';
|
|
13
|
+
export type { BasicSchema, FormSchema, TableSchema, FieldsetSchema, SchemaTypes } from './types';
|
|
14
14
|
/**
|
|
15
15
|
* Install all AForm components
|
|
16
16
|
* @param app - Vue app instance
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { TableColumn, TableConfig, TableRow } from '@stonecrop/atable';
|
|
2
|
+
/**
|
|
3
|
+
* Defined props for AForm components
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
2
6
|
export type ComponentProps = {
|
|
3
7
|
label?: string;
|
|
4
8
|
mask?: string;
|
|
@@ -7,11 +11,19 @@ export type ComponentProps = {
|
|
|
7
11
|
uuid?: string;
|
|
8
12
|
validation?: Record<string, any>;
|
|
9
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Base schemda for AForm components
|
|
16
|
+
* @beta
|
|
17
|
+
*/
|
|
10
18
|
export type BasicSchema = {
|
|
11
19
|
component: string;
|
|
12
20
|
fieldname: string;
|
|
13
21
|
value: any;
|
|
14
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Form schema
|
|
25
|
+
* @beta
|
|
26
|
+
*/
|
|
15
27
|
export type FormSchema = BasicSchema & {
|
|
16
28
|
align: string;
|
|
17
29
|
edit: boolean;
|
|
@@ -21,15 +33,27 @@ export type FormSchema = BasicSchema & {
|
|
|
21
33
|
width: string;
|
|
22
34
|
mask?: string;
|
|
23
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Table schema
|
|
38
|
+
* @beta
|
|
39
|
+
*/
|
|
24
40
|
export type TableSchema = BasicSchema & {
|
|
25
|
-
columns:
|
|
26
|
-
config:
|
|
27
|
-
rows:
|
|
41
|
+
columns: TableColumn[];
|
|
42
|
+
config: TableConfig;
|
|
43
|
+
rows: TableRow[];
|
|
28
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Fieldset schema
|
|
47
|
+
* @beta
|
|
48
|
+
*/
|
|
29
49
|
export type FieldsetSchema = BasicSchema & {
|
|
30
50
|
label: string;
|
|
31
51
|
schema: (FormSchema | TableSchema)[];
|
|
32
52
|
collapsible?: boolean;
|
|
33
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Superset of schema types
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
34
58
|
export type SchemaTypes = FormSchema | TableSchema | FieldsetSchema;
|
|
35
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],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W,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/aform",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.65",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -18,27 +18,27 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"import": {
|
|
21
|
-
"types": "./dist/
|
|
21
|
+
"types": "./dist/src/index.d.ts",
|
|
22
22
|
"default": "./dist/aform.js"
|
|
23
23
|
},
|
|
24
24
|
"require": "./dist/aform.umd.cjs"
|
|
25
25
|
},
|
|
26
26
|
"./styles": "./dist/assets/index.css"
|
|
27
27
|
},
|
|
28
|
-
"typings": "./dist/
|
|
28
|
+
"typings": "./dist/src/index.d.ts",
|
|
29
29
|
"files": [
|
|
30
30
|
"dist/*",
|
|
31
31
|
"src/*"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@vueuse/core": "^11.1.0",
|
|
35
|
-
"vue": "^3.5.
|
|
36
|
-
"@stonecrop/themes": "0.2.
|
|
37
|
-
"@stonecrop/utilities": "0.2.
|
|
35
|
+
"vue": "^3.5.11",
|
|
36
|
+
"@stonecrop/themes": "0.2.65",
|
|
37
|
+
"@stonecrop/utilities": "0.2.65"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@microsoft/api-documenter": "^7.
|
|
41
|
-
"@rushstack/heft": "^0.
|
|
40
|
+
"@microsoft/api-documenter": "^7.26.2",
|
|
41
|
+
"@rushstack/heft": "^0.68.6",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
43
43
|
"@typescript-eslint/parser": "^7.14.1",
|
|
44
44
|
"@vitejs/plugin-vue": "^5.1.3",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"eslint-plugin-vue": "^9.11.1",
|
|
51
51
|
"eslint": "^8.40.0",
|
|
52
52
|
"jsdom": "^25.0.0",
|
|
53
|
-
"typescript": "^5.
|
|
53
|
+
"typescript": "^5.6.3",
|
|
54
54
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
55
55
|
"vite": "^5.4.5",
|
|
56
56
|
"vitest": "^2.1.1",
|
|
57
57
|
"vue-router": "^4.4.0",
|
|
58
|
-
"@stonecrop/atable": "0.2.
|
|
58
|
+
"@stonecrop/atable": "0.2.65",
|
|
59
59
|
"stonecrop-rig": "0.2.22"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@stonecrop/atable": "0.2.
|
|
62
|
+
"@stonecrop/atable": "0.2.65"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
package/src/index.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { App } from 'vue'
|
|
2
2
|
|
|
3
|
-
import ACheckbox from '
|
|
4
|
-
import AComboBox from '
|
|
5
|
-
import ADate from '
|
|
6
|
-
import ADropdown from '
|
|
7
|
-
import ADatePicker from '
|
|
8
|
-
import AFieldset from '
|
|
9
|
-
import AFileAttach from '
|
|
10
|
-
import AForm from '
|
|
11
|
-
import ANumericInput from '
|
|
12
|
-
import ATextInput from '
|
|
13
|
-
import Login from '
|
|
14
|
-
export type { BasicSchema, FormSchema, TableSchema, FieldsetSchema, SchemaTypes } from '
|
|
15
|
-
// import { ACurrency } from '
|
|
16
|
-
// import { AQuantity } from '
|
|
3
|
+
import ACheckbox from './components/form/ACheckbox.vue'
|
|
4
|
+
import AComboBox from './components/form/AComboBox.vue'
|
|
5
|
+
import ADate from './components/form/ADate.vue'
|
|
6
|
+
import ADropdown from './components/form/ADropdown.vue'
|
|
7
|
+
import ADatePicker from './components/form/ADatePicker.vue'
|
|
8
|
+
import AFieldset from './components/form/AFieldset.vue'
|
|
9
|
+
import AFileAttach from './components/form/AFileAttach.vue'
|
|
10
|
+
import AForm from './components/AForm.vue'
|
|
11
|
+
import ANumericInput from './components/form/ANumericInput.vue'
|
|
12
|
+
import ATextInput from './components/form/ATextInput.vue'
|
|
13
|
+
import Login from './components/utilities/Login.vue'
|
|
14
|
+
export type { BasicSchema, FormSchema, TableSchema, FieldsetSchema, SchemaTypes } from './types'
|
|
15
|
+
// import { ACurrency } from './components/form/ACurrency.vue'
|
|
16
|
+
// import { AQuantity } from './components/form/AQuantity.vue'
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Install all AForm components
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { TableColumn, TableConfig, TableRow } from '@stonecrop/atable'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Defined props for AForm components
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
3
7
|
export type ComponentProps = {
|
|
4
8
|
label?: string
|
|
5
9
|
mask?: string
|
|
@@ -9,12 +13,20 @@ export type ComponentProps = {
|
|
|
9
13
|
validation?: Record<string, any>
|
|
10
14
|
}
|
|
11
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Base schemda for AForm components
|
|
18
|
+
* @beta
|
|
19
|
+
*/
|
|
12
20
|
export type BasicSchema = {
|
|
13
21
|
component: string
|
|
14
22
|
fieldname: string
|
|
15
23
|
value: any
|
|
16
24
|
}
|
|
17
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Form schema
|
|
28
|
+
* @beta
|
|
29
|
+
*/
|
|
18
30
|
export type FormSchema = BasicSchema & {
|
|
19
31
|
align: string
|
|
20
32
|
edit: boolean
|
|
@@ -25,16 +37,28 @@ export type FormSchema = BasicSchema & {
|
|
|
25
37
|
mask?: string
|
|
26
38
|
}
|
|
27
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Table schema
|
|
42
|
+
* @beta
|
|
43
|
+
*/
|
|
28
44
|
export type TableSchema = BasicSchema & {
|
|
29
|
-
columns:
|
|
30
|
-
config:
|
|
31
|
-
rows:
|
|
45
|
+
columns: TableColumn[]
|
|
46
|
+
config: TableConfig
|
|
47
|
+
rows: TableRow[]
|
|
32
48
|
}
|
|
33
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Fieldset schema
|
|
52
|
+
* @beta
|
|
53
|
+
*/
|
|
34
54
|
export type FieldsetSchema = BasicSchema & {
|
|
35
55
|
label: string
|
|
36
56
|
schema: (FormSchema | TableSchema)[]
|
|
37
57
|
collapsible?: boolean
|
|
38
58
|
}
|
|
39
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Superset of schema types
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
40
64
|
export type SchemaTypes = FormSchema | TableSchema | FieldsetSchema
|