@stonecrop/aform 0.58.4 → 0.60.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/aform.js +37 -50
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +9 -9
- package/dist/src/components/AForm.vue.d.ts +2 -0
- package/dist/src/components/AForm.vue.d.ts.map +1 -1
- package/dist/src/components/form/AFieldset.vue.d.ts +2 -0
- package/dist/src/components/form/AFieldset.vue.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/assets/index.css
CHANGED
|
@@ -835,7 +835,7 @@ p.aform_error {
|
|
|
835
835
|
margin: 0;
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
.aform[data-v-
|
|
838
|
+
.aform[data-v-9065abbb] {
|
|
839
839
|
display: flex;
|
|
840
840
|
flex-wrap: wrap;
|
|
841
841
|
gap: 1rem;
|
|
@@ -847,27 +847,27 @@ p.aform_error {
|
|
|
847
847
|
max-width: 100%;
|
|
848
848
|
}
|
|
849
849
|
@media screen and (max-width: 400px) {
|
|
850
|
-
.aform[data-v-
|
|
850
|
+
.aform[data-v-9065abbb] {
|
|
851
851
|
flex-direction: column;
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
|
|
855
855
|
/* Nested form section */
|
|
856
|
-
.aform-nested-section[data-v-
|
|
856
|
+
.aform-nested-section[data-v-9065abbb] {
|
|
857
857
|
width: 100%;
|
|
858
858
|
padding: 0.5rem 0;
|
|
859
859
|
}
|
|
860
|
-
.aform-nested-label[data-v-
|
|
860
|
+
.aform-nested-label[data-v-9065abbb] {
|
|
861
861
|
font-size: 0.9rem;
|
|
862
862
|
font-weight: 600;
|
|
863
863
|
margin: 0 0 0.5rem 0;
|
|
864
864
|
color: var(--sc-input-label-color);
|
|
865
865
|
}
|
|
866
|
-
.aform-nested-section .aform[data-v-
|
|
866
|
+
.aform-nested-section .aform[data-v-9065abbb] {
|
|
867
867
|
border-left-width: 2px;
|
|
868
868
|
margin-left: 0.5rem;
|
|
869
869
|
}
|
|
870
|
-
.aform-table-expansion[data-v-
|
|
870
|
+
.aform-table-expansion[data-v-9065abbb] {
|
|
871
871
|
margin-bottom: 0;
|
|
872
872
|
border: none;
|
|
873
873
|
border-left: none;
|
|
@@ -901,7 +901,7 @@ p.aform_error {
|
|
|
901
901
|
transition: transform 250ms;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
fieldset[data-v-
|
|
904
|
+
fieldset[data-v-45ea7837] {
|
|
905
905
|
/* Its padding and border sit inside the width, and no browser margin sits outside it: a fieldset
|
|
906
906
|
spans exactly the space it is given, so its border never crosses the form's. */
|
|
907
907
|
box-sizing: border-box;
|
|
@@ -911,7 +911,7 @@ fieldset[data-v-8215ff87] {
|
|
|
911
911
|
border: 1px solid transparent;
|
|
912
912
|
border-bottom: 1px solid var(--sc-gray-50);
|
|
913
913
|
}
|
|
914
|
-
legend[data-v-
|
|
914
|
+
legend[data-v-45ea7837] {
|
|
915
915
|
width: 100%;
|
|
916
916
|
height: 1.15rem;
|
|
917
917
|
border: 1px solid transparent;
|
|
@@ -920,7 +920,7 @@ legend[data-v-8215ff87] {
|
|
|
920
920
|
font-weight: 600;
|
|
921
921
|
user-select: none;
|
|
922
922
|
}
|
|
923
|
-
.collapse-button[data-v-
|
|
923
|
+
.collapse-button[data-v-45ea7837] {
|
|
924
924
|
float: right;
|
|
925
925
|
}
|
|
926
926
|
|
|
@@ -5,6 +5,8 @@ type __VLS_Props = {
|
|
|
5
5
|
mode?: InteractionMode;
|
|
6
6
|
/** Inline validation errors keyed by fieldname. Fed by the host; the form stays store-agnostic. */
|
|
7
7
|
errors?: Record<string, string[]>;
|
|
8
|
+
/** The caller's `update:data` listener. Without one an edit reaches nobody, so the form shows `edit` as `read`. */
|
|
9
|
+
'onUpdate:data'?: (record: Record<string, any>) => void;
|
|
8
10
|
};
|
|
9
11
|
type __VLS_ModelProps = {
|
|
10
12
|
'data': Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AForm.vue"],"names":[],"mappings":"AAgaA,OAAO,KAAK,EAAE,aAAa,EAAiD,MAAM,UAAU,CAAA;AAE5F,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAItE,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACjC,mHAAmH;IACnH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;CACvD,CAAC;AAqLF,KAAK,gBAAgB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAsKxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -8,6 +8,8 @@ type __VLS_Props = {
|
|
|
8
8
|
mode?: InteractionMode;
|
|
9
9
|
/** Inline validation errors keyed by fieldname, forwarded to the inner AForm. */
|
|
10
10
|
errors?: Record<string, string[]>;
|
|
11
|
+
/** The caller's `update:data` listener. Without one the inner form's edits reach nobody, so it shows read-only. */
|
|
12
|
+
'onUpdate:data'?: (record: Record<string, any>) => void;
|
|
11
13
|
};
|
|
12
14
|
type __VLS_ModelProps = {
|
|
13
15
|
/** The record the fieldset's fields belong to: a fieldset is layout, so they are its own keys. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AFieldset.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/AFieldset.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"AFieldset.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/AFieldset.vue"],"names":[],"mappings":"AAAA,OA2FO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kDAAkD;IAClD,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACjC,mHAAmH;IACnH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;CACvD,CAAC;AAgCF,KAAK,gBAAgB,GAAG;IACxB,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA8DxD,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/aform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Schema-driven form components for Stonecrop",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@vueuse/components": "^14.2.1",
|
|
48
48
|
"@vueuse/core": "^14.2.1",
|
|
49
49
|
"temporal-polyfill": "^1.0.5",
|
|
50
|
-
"@stonecrop/atable": "0.
|
|
51
|
-
"@stonecrop/
|
|
52
|
-
"@stonecrop/
|
|
53
|
-
"@stonecrop/
|
|
50
|
+
"@stonecrop/atable": "0.60.0",
|
|
51
|
+
"@stonecrop/themes": "0.60.0",
|
|
52
|
+
"@stonecrop/schema": "0.60.0",
|
|
53
|
+
"@stonecrop/utilities": "0.60.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@microsoft/api-extractor": "^7.58.7",
|