@stonecrop/aform 0.62.7 → 0.63.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.
@@ -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;
@@ -1191,7 +1191,7 @@ legend[data-v-45ea7837] {
1191
1191
  white-space: pre-wrap;
1192
1192
  }
1193
1193
 
1194
- .login-container[data-v-555c3224] {
1194
+ .login-container[data-v-206dce0e] {
1195
1195
  width: 100%;
1196
1196
  position: relative;
1197
1197
  display: flex;
@@ -1201,7 +1201,7 @@ legend[data-v-45ea7837] {
1201
1201
  font-family: var(--sc-font-family);
1202
1202
  background: var(--sc-form-background);
1203
1203
  }
1204
- .account-container[data-v-555c3224] {
1204
+ .account-container[data-v-206dce0e] {
1205
1205
  width: 100%;
1206
1206
  margin-left: auto;
1207
1207
  margin-top: 0.5rem;
@@ -1210,35 +1210,36 @@ legend[data-v-45ea7837] {
1210
1210
  flex-direction: column;
1211
1211
  justify-content: center;
1212
1212
  }
1213
- .account-header[data-v-555c3224] {
1213
+ .account-header[data-v-206dce0e] {
1214
1214
  display: flex;
1215
1215
  flex-direction: column;
1216
1216
  text-align: center;
1217
1217
  margin-top: 0.5rem;
1218
1218
  }
1219
- #account-title[data-v-555c3224] {
1219
+ #account-title[data-v-206dce0e] {
1220
1220
  font-size: 1.5rem;
1221
1221
  line-height: 2rem;
1222
1222
  font-weight: 600;
1223
1223
  letter-spacing: -0.025em;
1224
1224
  margin: 0;
1225
1225
  }
1226
- #account-subtitle[data-v-555c3224] {
1226
+ #account-subtitle[data-v-206dce0e] {
1227
1227
  font-size: 0.875rem;
1228
1228
  line-height: 1.25rem;
1229
1229
  margin: 1rem;
1230
1230
  }
1231
- .login-form-container[data-v-555c3224] {
1231
+ .login-form-container[data-v-206dce0e],
1232
+ .login-alternate[data-v-206dce0e] {
1232
1233
  display: grid;
1233
1234
  gap: 0.5rem;
1234
1235
  }
1235
- .login-form-element[data-v-555c3224] {
1236
+ .login-form-element[data-v-206dce0e] {
1236
1237
  display: grid;
1237
1238
  margin: 0.5rem 0;
1238
1239
  position: relative;
1239
1240
  }
1240
1241
  .btn {
1241
- &[data-v-555c3224] {
1242
+ &[data-v-206dce0e] {
1242
1243
  background-color: var(--sc-btn-color);
1243
1244
  color: var(--sc-btn-label-color);
1244
1245
  border: 1px solid var(--sc-btn-border);
@@ -1247,28 +1248,32 @@ legend[data-v-45ea7837] {
1247
1248
  position: relative;
1248
1249
  cursor: pointer;
1249
1250
  }
1250
- &[data-v-555c3224]:hover {
1251
+ &[data-v-206dce0e]:hover {
1251
1252
  background-color: var(--sc-btn-hover);
1252
1253
  }
1253
- &[data-v-555c3224]:disabled {
1254
+ &[data-v-206dce0e]:disabled {
1254
1255
  background-color: var(--sc-input-field-disabled-background);
1255
1256
  }
1256
1257
  }
1257
- .disabled[data-v-555c3224] {
1258
+ .disabled[data-v-206dce0e] {
1258
1259
  opacity: 0.5;
1259
1260
  }
1260
- .loading-icon[data-v-555c3224] {
1261
- animation: spin-555c3224 1s linear infinite forwards;
1261
+ /* Drawn in CSS: an icon font would show its ligature's name, "progress_activity", wherever the host hasn't loaded it. */
1262
+ .loading-icon[data-v-206dce0e] {
1263
+ animation: spin-206dce0e 1s linear infinite;
1262
1264
  display: inline-block;
1263
- margin-right: 0.2rem;
1264
- line-height: 0;
1265
- font-size: 1rem;
1266
- position: relative;
1267
- top: 0.2rem;
1265
+ box-sizing: border-box;
1266
+ width: 0.75rem;
1267
+ height: 0.75rem;
1268
+ margin-right: 0.4rem;
1269
+ vertical-align: -0.05rem;
1270
+ border: 2px solid currentColor;
1271
+ border-right-color: transparent;
1272
+ border-radius: 50%;
1268
1273
  }
1269
1274
 
1270
1275
  /* ANIMATION */
1271
- @keyframes spin-555c3224 {
1276
+ @keyframes spin-206dce0e {
1272
1277
  from {
1273
1278
  transform: rotate(0deg);
1274
1279
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AForm.vue"],"names":[],"mappings":"AA+bA,OAAO,KAAK,EAAE,aAAa,EAAiD,MAAM,UAAU,CAAA;AAG5F,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAItE,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,IAAI,CA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ginIdentity } from '../../login/loginIdentity';
1
2
  type __VLS_Props = {
2
3
  headerTitle?: string;
3
4
  headerSubtitle?: string;
5
+ identity: LoginIdentity;
6
+ authenticate: (identity: string, password: string) => Promise<void>;
4
7
  };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- loginFailed: (...args: any[]) => void;
7
- loginSuccess: (...args: any[]) => void;
8
+ type __VLS_Slots = {
9
+ alternateSignIn?: (props: {
10
+ identity: string;
11
+ }) => unknown;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ loginFailed: (error: unknown) => any;
15
+ loginSuccess: () => any;
8
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onLoginFailed?: ((...args: any[]) => any) | undefined;
10
- onLoginSuccess?: ((...args: any[]) => any) | undefined;
17
+ onLoginFailed?: ((error: unknown) => any) | undefined;
18
+ onLoginSuccess?: (() => any) | undefined;
11
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
21
  declare const _default: typeof __VLS_export;
13
22
  export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
14
28
  //# sourceMappingURL=Login.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Login.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/utilities/Login.vue"],"names":[],"mappings":"AAyLA,KAAK,WAAW,GAAG;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB,CAAC;AAiKF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"Login.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/utilities/Login.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,KAAK,WAAW,GAAG;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,aAAa,CAAA;IACvB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACnE,CAAC;AAeF,KAAK,WAAW,GAAG;IAClB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAA;CAC1D,CAAC;AA0KF,QAAA,MAAM,UAAU;;;;;;kFAGd,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"}
@@ -0,0 +1,20 @@
1
+ import { type LoginPreset } from '../login/loginIdentity';
2
+ /**
3
+ * Header copy and identity field wiring for common login modes.
4
+ * @public
5
+ */
6
+ export declare function useLoginPreset(preset: LoginPreset): {
7
+ identity: {
8
+ readonly label: "Email";
9
+ readonly inputType: "email";
10
+ readonly autocomplete: "email";
11
+ readonly name: "email";
12
+ } | {
13
+ readonly label: "Username";
14
+ readonly inputType: "text";
15
+ readonly autocomplete: "username";
16
+ readonly name: "username";
17
+ };
18
+ headerSubtitle: string;
19
+ };
20
+ //# sourceMappingURL=useLoginPreset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLoginPreset.d.ts","sourceRoot":"","sources":["../../../src/composables/useLoginPreset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAE1E;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW;;;;;;;;;;;;;EAKjD"}
@@ -32,6 +32,8 @@ import ATableTupleCurrencyPicker from './components/table/ATableTupleCurrencyPic
32
32
  import ATableTupleQuantityPicker from './components/table/ATableTupleQuantityPicker.vue';
33
33
  import ATupleCellEditor from './components/table/ATupleCellEditor.vue';
34
34
  import ATupleCellShell from './components/table/ATupleCellShell.vue';
35
+ import { loginIdentities } from './login/loginIdentity';
36
+ import { useLoginPreset } from './composables/useLoginPreset';
35
37
  export type * from './types';
36
38
  /**
37
39
  * Install all AForm components
@@ -39,5 +41,6 @@ export type * from './types';
39
41
  * @public
40
42
  */
41
43
  declare function install(app: App): void;
42
- export { ACheckbox, ACurrencyInput, ADate, ADropdown, ASegmentedControl, ABadge, ADatePicker, ADateRange, ADateSelection, ADuration, ADateTime, ADateTimeInput, AFieldset, AFileAttach, AForm, AFormLink, ANumericInput, AQuantityInput, ASemverInput, ATextInput, ATextboxInput, Login, AFormLoading, ExpandButton, ATableTupleQuantityPicker, ATableTupleCurrencyPicker, ATupleCellEditor, ATupleCellShell, install, };
44
+ export { ACheckbox, ACurrencyInput, ADate, ADropdown, ASegmentedControl, ABadge, ADatePicker, ADateRange, ADateSelection, ADuration, ADateTime, ADateTimeInput, AFieldset, AFileAttach, AForm, AFormLink, ANumericInput, AQuantityInput, ASemverInput, ATextInput, ATextboxInput, Login, AFormLoading, ExpandButton, ATableTupleQuantityPicker, ATableTupleCurrencyPicker, ATupleCellEditor, ATupleCellShell, install, loginIdentities, useLoginPreset, };
45
+ export type { LoginIdentity, LoginPreset } from './login/loginIdentity';
43
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names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,cAAc,EACd,SAAS,EACT,WAAW,EACX,KAAK,EACL,SAAS,EACT,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EACf,OAAO,EACP,eAAe,EACf,cAAc,GACd,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Configuration for the identity field on `Login`.
3
+ * @public
4
+ */
5
+ export type LoginIdentity = {
6
+ label: string;
7
+ inputType: string;
8
+ autocomplete: string;
9
+ name: string;
10
+ placeholder?: string;
11
+ };
12
+ /**
13
+ * Built-in identity field presets for email and username sign-in.
14
+ * @public
15
+ */
16
+ export declare const loginIdentities: {
17
+ readonly email: {
18
+ readonly label: "Email";
19
+ readonly inputType: "email";
20
+ readonly autocomplete: "email";
21
+ readonly name: "email";
22
+ };
23
+ readonly username: {
24
+ readonly label: "Username";
25
+ readonly inputType: "text";
26
+ readonly autocomplete: "username";
27
+ readonly name: "username";
28
+ };
29
+ };
30
+ /**
31
+ * Keys of {@link loginIdentities}.
32
+ * @public
33
+ */
34
+ export type LoginPreset = keyof typeof loginIdentities;
35
+ //# sourceMappingURL=loginIdentity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loginIdentity.d.ts","sourceRoot":"","sources":["../../../src/login/loginIdentity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAasB,CAAA;AAElD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,eAAe,CAAA"}
@@ -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.7",
3
+ "version": "0.63.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.62.7",
51
- "@stonecrop/schema": "0.62.7",
52
- "@stonecrop/themes": "0.62.7",
53
- "@stonecrop/utilities": "0.62.7"
50
+ "@stonecrop/atable": "0.63.0",
51
+ "@stonecrop/schema": "0.63.0",
52
+ "@stonecrop/themes": "0.63.0",
53
+ "@stonecrop/utilities": "0.63.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@microsoft/api-extractor": "^7.58.7",