@stonecrop/aform 0.62.6 → 0.62.8

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.
@@ -846,7 +846,7 @@ p.aform_error {
846
846
  margin: 0;
847
847
  }
848
848
 
849
- .aform[data-v-4db17a4f] {
849
+ .aform[data-v-0bcb72e3] {
850
850
  display: flex;
851
851
  flex-wrap: wrap;
852
852
  gap: 1rem;
@@ -858,17 +858,17 @@ p.aform_error {
858
858
  max-width: 100%;
859
859
  }
860
860
  @media screen and (max-width: 400px) {
861
- .aform[data-v-4db17a4f] {
861
+ .aform[data-v-0bcb72e3] {
862
862
  flex-direction: column;
863
863
  }
864
864
  }
865
865
 
866
866
  /* Nested form section */
867
- .aform-nested-section[data-v-4db17a4f] {
867
+ .aform-nested-section[data-v-0bcb72e3] {
868
868
  width: 100%;
869
869
  padding: 0.5rem 0;
870
870
  }
871
- .aform-nested-label[data-v-4db17a4f] {
871
+ .aform-nested-label[data-v-0bcb72e3] {
872
872
  font-size: 0.9rem;
873
873
  font-weight: 600;
874
874
  margin: 0 0 0.5rem 0;
@@ -878,12 +878,12 @@ p.aform_error {
878
878
  /* Only the section's own form is indented: a linked record's form sits directly in the section, a
879
879
  fieldset's form directly in its fieldset. A descendant selector would reach every form nested
880
880
  deeper too (a table's expanded row, say), pushing it out of line with the fields around it. */
881
- .aform-nested-section > .aform[data-v-4db17a4f],
882
- .aform-nested-section > fieldset > .aform[data-v-4db17a4f] {
881
+ .aform-nested-section > .aform[data-v-0bcb72e3],
882
+ .aform-nested-section > fieldset > .aform[data-v-0bcb72e3] {
883
883
  border-left-width: 2px;
884
884
  margin-left: 0.5rem;
885
885
  }
886
- .aform-table-expansion[data-v-4db17a4f] {
886
+ .aform-table-expansion[data-v-0bcb72e3] {
887
887
  margin-bottom: 0;
888
888
  border: none;
889
889
  border-left: none;
@@ -1 +1 @@
1
- {"version":3,"file":"AForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AFor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C,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"}
@@ -0,0 +1,19 @@
1
+ /** The record an edit to `handed` builds on: `handed` with the changes reported for it this tick laid over it. */
2
+ export declare const latestRecord: (handed: Record<string, any>) => Record<string, any>;
3
+ /**
4
+ * The changes reported for `handed` this tick: what a form handed it has changed. A nested form's edit is taken
5
+ * from these, not from comparing the record it reports with `handed`, which cannot tell a field set back to its
6
+ * handed value, such as a SKU cleared and retyped in one go, from a field left alone.
7
+ */
8
+ export declare const reportedChanges: (handed: Record<string, any>) => Record<string, any>;
9
+ /** Notes `changes` as reported for `handed`, until the next tick, and returns the record to report. */
10
+ export declare const noteReported: (handed: Record<string, any>, changes: Record<string, any>) => Record<string, any>;
11
+ /**
12
+ * The fields of `reported` that differ from `handed`: what a nested form changed, out of the whole record it
13
+ * reports. A fieldset's form reports its whole record, laid over the record it was handed; taking all of it as
14
+ * changes would put back that record's old value of a field the host has since filled in itself, such as a City
15
+ * it fills when Name changes. A field it sets back to its handed value is still kept: its form is handed this
16
+ * same record, so that edit is already among the changes reported for it.
17
+ */
18
+ export declare const changedFields: (reported: Record<string, any>, handed: Record<string, any>) => Record<string, any>;
19
+ //# sourceMappingURL=reportedRecords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportedRecords.d.ts","sourceRoot":"","sources":["../../../src/utils/reportedRecords.ts"],"names":[],"mappings":"AAmBA,kHAAkH;AAClH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAG5E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAA8B,CAAA;AAE9G,uGAAuG;AACvG,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAO1G,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CACP,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/aform",
3
- "version": "0.62.6",
3
+ "version": "0.62.8",
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.62.6",
51
- "@stonecrop/schema": "0.62.6",
52
- "@stonecrop/themes": "0.62.6",
53
- "@stonecrop/utilities": "0.62.6"
50
+ "@stonecrop/themes": "0.62.8",
51
+ "@stonecrop/atable": "0.62.8",
52
+ "@stonecrop/utilities": "0.62.8",
53
+ "@stonecrop/schema": "0.62.8"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@microsoft/api-extractor": "^7.58.7",