@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.
package/dist/aform.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { flattenFields, hasBadgeOptions, isBadgeDescriptor, lookupBadge, partsPatch, readParts, selectChoices } from "@stonecrop/schema";
2
2
  import { TABLE_TUPLE_CURRENCY_PICKER, TABLE_TUPLE_QUANTITY_PICKER, install as install$1, isTableTuplePickerModal } from "@stonecrop/atable";
3
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, vModelCheckbox, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
4
4
  import { currencyAmountEntryPattern, currencyAmountSeparators, currencyInputFractionDigits, formatCurrencyAmount, formatCurrencyAmountInput, formatCurrencySymbol, fromISODate, isSemver, isSemverPrefix, parseCurrencyAmountInput, roundToPrecision, useArithmeticInput } from "@stonecrop/utilities";
5
5
  import { vOnClickOutside } from "@vueuse/components";
6
6
  import { Temporal } from "temporal-polyfill";
@@ -919,8 +919,8 @@ var _hoisted_12$4 = {
919
919
  class: "acurrency__field acurrency__field--base-currency",
920
920
  "aria-hidden": "true"
921
921
  };
922
- var _hoisted_13$2 = ["value"];
923
- var _hoisted_14$2 = ["id"];
922
+ var _hoisted_13$3 = ["value"];
923
+ var _hoisted_14$3 = ["id"];
924
924
  var _hoisted_15$1 = ["id"];
925
925
  // src/components/form/ACurrencyInput.vue
926
926
  var ACurrencyInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -1206,12 +1206,12 @@ var ACurrencyInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
1206
1206
  readonly: "",
1207
1207
  tabindex: "-1",
1208
1208
  value: baseCurrencyText.value
1209
- }, null, 8, _hoisted_13$2)])]),
1209
+ }, null, 8, _hoisted_13$3)])]),
1210
1210
  showBase.value && !errorText.value ? (openBlock(), createElementBlock("p", {
1211
1211
  key: 0,
1212
1212
  id: helperId.value,
1213
1213
  class: "acurrency__helper"
1214
- }, toDisplayString(conversionHelperText.value), 9, _hoisted_14$2)) : createCommentVNode("", true),
1214
+ }, toDisplayString(conversionHelperText.value), 9, _hoisted_14$3)) : createCommentVNode("", true),
1215
1215
  withDirectives(createElementVNode("p", {
1216
1216
  id: unref(errorId),
1217
1217
  class: "aform_error",
@@ -1276,7 +1276,7 @@ var _hoisted_9$3 = { class: "date-input" };
1276
1276
  var _hoisted_10$3 = ["value"];
1277
1277
  var _hoisted_11$3 = ["value"];
1278
1278
  var _hoisted_12$3 = { class: "days-header" };
1279
- var _hoisted_13$1 = [
1279
+ var _hoisted_13$2 = [
1280
1280
  "tabindex",
1281
1281
  "aria-label",
1282
1282
  "aria-selected",
@@ -1285,7 +1285,7 @@ var _hoisted_13$1 = [
1285
1285
  "onKeydown",
1286
1286
  "onMouseover"
1287
1287
  ];
1288
- var _hoisted_14$1 = ["id"];
1288
+ var _hoisted_14$2 = ["id"];
1289
1289
  var numberOfRows = 6;
1290
1290
  var numberOfColumns = 7;
1291
1291
  // src/components/form/ADatePicker.vue
@@ -1588,14 +1588,14 @@ var ADatePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
1588
1588
  onClick: withModifiers(($event) => selectDate(getCurrentCell(rowNo, colNo)), ["prevent", "stop"]),
1589
1589
  onKeydown: ($event) => onDayKeydown($event, getCurrentCell(rowNo, colNo)),
1590
1590
  onMouseover: ($event) => hoverDate(getCurrentCell(rowNo, colNo))
1591
- }, toDisplayString(getCurrentDate(rowNo, colNo).day), 43, _hoisted_13$1);
1591
+ }, toDisplayString(getCurrentDate(rowNo, colNo).day), 43, _hoisted_13$2);
1592
1592
  }), 64))]);
1593
1593
  }), 64))
1594
1594
  ])], 40, _hoisted_5$14)]), withDirectives(createElementVNode("p", {
1595
1595
  id: unref(errorId),
1596
1596
  class: "aform_error",
1597
1597
  role: "alert"
1598
- }, toDisplayString(errorText.value), 9, _hoisted_14$1), [[vShow, errorText.value]])], 64));
1598
+ }, toDisplayString(errorText.value), 9, _hoisted_14$2), [[vShow, errorText.value]])], 64));
1599
1599
  };
1600
1600
  }
1601
1601
  }), [["__scopeId", "data-v-2d02eab2"]]);
@@ -2858,6 +2858,45 @@ function wordErrors(errors, validation) {
2858
2858
  const messages = errors.map((error) => error || validation?.errorMessage || "").filter(Boolean);
2859
2859
  return [...new Set(messages)];
2860
2860
  }
2861
+ // src/utils/reportedRecords.ts
2862
+ var pending = /* @__PURE__ */ new WeakMap();
2863
+ /** The record an edit to `handed` builds on: `handed` with the changes reported for it this tick laid over it. */
2864
+ var latestRecord = (handed) => {
2865
+ const changes = pending.get(handed);
2866
+ return changes ? {
2867
+ ...handed,
2868
+ ...changes
2869
+ } : handed;
2870
+ };
2871
+ /**
2872
+ * The changes reported for `handed` this tick: what a form handed it has changed. A nested form's edit is taken
2873
+ * from these, not from comparing the record it reports with `handed`, which cannot tell a field set back to its
2874
+ * handed value, such as a SKU cleared and retyped in one go, from a field left alone.
2875
+ */
2876
+ var reportedChanges = (handed) => pending.get(handed) ?? {};
2877
+ /** Notes `changes` as reported for `handed`, until the next tick, and returns the record to report. */
2878
+ var noteReported = (handed, changes) => {
2879
+ const kept = {
2880
+ ...pending.get(handed),
2881
+ ...changes
2882
+ };
2883
+ pending.set(handed, kept);
2884
+ nextTick(() => {
2885
+ if (pending.get(handed) === kept) pending.delete(handed);
2886
+ });
2887
+ return {
2888
+ ...handed,
2889
+ ...kept
2890
+ };
2891
+ };
2892
+ /**
2893
+ * The fields of `reported` that differ from `handed`: what a nested form changed, out of the whole record it
2894
+ * reports. A fieldset's form reports its whole record, laid over the record it was handed; taking all of it as
2895
+ * changes would put back that record's old value of a field the host has since filled in itself, such as a City
2896
+ * it fills when Name changes. A field it sets back to its handed value is still kept: its form is handed this
2897
+ * same record, so that edit is already among the changes reported for it.
2898
+ */
2899
+ var changedFields = (reported, handed) => Object.fromEntries(Object.entries(reported).filter(([key, value]) => !Object.is(value, handed[key])));
2861
2900
  // src/components/AForm.vue?vue&type=script&setup=true&lang.ts
2862
2901
  var _hoisted_1$14 = { class: "aform" };
2863
2902
  var _hoisted_2$10 = {
@@ -2894,10 +2933,9 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
2894
2933
  const isLinkSection = (componentObj) => componentObj.kind === "link" && hasChildSchema(componentObj);
2895
2934
  const isFieldsetSection = (componentObj) => componentObj.kind === "fieldset" && hasChildSchema(componentObj);
2896
2935
  const applyChanges = (changes) => {
2897
- if (dataModel.value) dataModel.value = {
2898
- ...dataModel.value,
2899
- ...changes
2900
- };
2936
+ const handed = dataModel.value;
2937
+ if (!handed) return;
2938
+ dataModel.value = noteReported(handed, changes);
2901
2939
  };
2902
2940
  const nestedData = ref({});
2903
2941
  watch(() => dataModel.value, (newData) => {
@@ -2910,7 +2948,9 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
2910
2948
  nestedData.value[fieldname] = val;
2911
2949
  applyChanges({ [fieldname]: val });
2912
2950
  };
2913
- const updateFieldsetData = (val) => applyChanges(val);
2951
+ const updateFieldsetData = (val) => {
2952
+ if (dataModel.value) applyChanges(changedFields(val, dataModel.value));
2953
+ };
2914
2954
  const isListExpansionTable = (componentObj) => componentObj.kind === "table" && componentObj.config?.view === "list-expansion";
2915
2955
  const tableExpansionSchema = (table) => table.schema.filter((col) => Boolean(col.component)).map(({ fieldname, component, ...rest }) => Object.assign(rest, {
2916
2956
  kind: "field",
@@ -2918,11 +2958,12 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
2918
2958
  component
2919
2959
  }));
2920
2960
  const updateTableRows = (fieldname, rows) => applyChanges({ [fieldname]: rows });
2921
- const updateTableRow = (fieldname, rowIndex, val) => {
2922
- const rows = Array.isArray(dataModel.value?.[fieldname]) ? [...dataModel.value[fieldname]] : [];
2961
+ const updateTableRow = (fieldname, rowIndex, handedRow) => {
2962
+ const current = dataModel.value ? latestRecord(dataModel.value) : void 0;
2963
+ const rows = Array.isArray(current?.[fieldname]) ? [...current[fieldname]] : [];
2923
2964
  rows[rowIndex] = {
2924
2965
  ...rows[rowIndex],
2925
- ...val
2966
+ ...reportedChanges(handedRow)
2926
2967
  };
2927
2968
  updateTableRows(fieldname, rows);
2928
2969
  };
@@ -3052,7 +3093,7 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
3052
3093
  data: row,
3053
3094
  schema: tableExpansionSchema(componentObj),
3054
3095
  mode: resolvedMode(componentObj)
3055
- }, toHandlers(listenersWhenHeard((val) => updateTableRow(componentObj.fieldname, rowIndex, val)))), null, 16, [
3096
+ }, toHandlers(listenersWhenHeard(() => updateTableRow(componentObj.fieldname, rowIndex, row)))), null, 16, [
3056
3097
  "data",
3057
3098
  "schema",
3058
3099
  "mode"
@@ -3070,7 +3111,7 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
3070
3111
  }), 128))]);
3071
3112
  };
3072
3113
  }
3073
- }), [["__scopeId", "data-v-4db17a4f"]]);
3114
+ }), [["__scopeId", "data-v-0bcb72e3"]]);
3074
3115
  // src/components/base/CollapseButton.vue
3075
3116
  var CollapseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3076
3117
  __name: "CollapseButton",
@@ -3221,11 +3262,11 @@ var _hoisted_11$2 = {
3221
3262
  d: "M2.5 8h11M9 3.5 13.5 8 9 12.5"
3222
3263
  };
3223
3264
  var _hoisted_12$2 = { class: "aform_form-btn-name" };
3224
- var _hoisted_13 = {
3265
+ var _hoisted_13$1 = {
3225
3266
  key: 0,
3226
3267
  class: "loading autocomplete-result"
3227
3268
  };
3228
- var _hoisted_14 = [
3269
+ var _hoisted_14$1 = [
3229
3270
  "id",
3230
3271
  "aria-selected",
3231
3272
  "onMousedown",
@@ -3456,7 +3497,7 @@ var AFormLink_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
3456
3497
  "option-count": () => dropdownResults.value.length,
3457
3498
  "active-index": () => activeIndex.value
3458
3499
  }, {
3459
- default: withCtx(() => [loading.value ? (openBlock(), createElementBlock("li", _hoisted_13, "Loading…")) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(dropdownResults.value, (option, i) => {
3500
+ default: withCtx(() => [loading.value ? (openBlock(), createElementBlock("li", _hoisted_13$1, "Loading…")) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(dropdownResults.value, (option, i) => {
3460
3501
  return openBlock(), createElementBlock("li", {
3461
3502
  id: `${listboxId}-opt-${i}`,
3462
3503
  key: String(option.id),
@@ -3468,7 +3509,7 @@ var AFormLink_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
3468
3509
  }]),
3469
3510
  onMousedown: withModifiers(($event) => selectOption(option), ["prevent"]),
3470
3511
  onMouseenter: ($event) => activeIndex.value = i
3471
- }, [renderSlot(_ctx.$slots, "option", { option }, () => [createTextVNode(toDisplayString(option.displayText ?? String(option.id)), 1)], true)], 42, _hoisted_14);
3512
+ }, [renderSlot(_ctx.$slots, "option", { option }, () => [createTextVNode(toDisplayString(option.displayText ?? String(option.id)), 1)], true)], 42, _hoisted_14$1);
3472
3513
  }), 128))]),
3473
3514
  _: 3
3474
3515
  }, 8, [
@@ -4075,89 +4116,111 @@ var _hoisted_1$6 = { class: "login-container" };
4075
4116
  var _hoisted_2$2 = { class: "account-container" };
4076
4117
  var _hoisted_3 = { class: "account-header" };
4077
4118
  var _hoisted_4 = { id: "account-title" };
4078
- var _hoisted_5 = { id: "account-subtitle" };
4119
+ var _hoisted_5 = {
4120
+ key: 0,
4121
+ id: "account-subtitle"
4122
+ };
4079
4123
  var _hoisted_6 = { class: "login-form-container" };
4080
- var _hoisted_7 = { class: "login-form-email aform_form-element" };
4081
- var _hoisted_8 = ["disabled"];
4082
- var _hoisted_9 = { class: "login-form-password aform_form-element" };
4083
- var _hoisted_10 = ["disabled"];
4124
+ var _hoisted_7 = { class: "login-form-identity aform_form-element" };
4125
+ var _hoisted_8 = ["id", "for"];
4126
+ var _hoisted_9 = [
4127
+ "id",
4128
+ "name",
4129
+ "placeholder",
4130
+ "type",
4131
+ "autocomplete",
4132
+ "disabled"
4133
+ ];
4134
+ var _hoisted_10 = { class: "login-form-password aform_form-element" };
4084
4135
  var _hoisted_11 = ["disabled"];
4085
- var _hoisted_12 = {
4136
+ var _hoisted_12 = ["disabled"];
4137
+ var _hoisted_13 = {
4138
+ key: 0,
4139
+ class: "loading-icon",
4140
+ "aria-hidden": "true"
4141
+ };
4142
+ var _hoisted_14 = {
4086
4143
  key: 0,
4087
- class: "material-symbols-outlined loading-icon"
4144
+ class: "login-alternate"
4088
4145
  };
4089
4146
  // src/components/utilities/Login.vue
4090
4147
  var Login_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
4091
4148
  __name: "Login",
4092
4149
  props: {
4093
4150
  headerTitle: { default: "Login" },
4094
- headerSubtitle: { default: "Enter your email and password to login" }
4151
+ headerSubtitle: {},
4152
+ identity: {},
4153
+ authenticate: { type: Function }
4095
4154
  },
4096
4155
  emits: ["loginFailed", "loginSuccess"],
4097
4156
  setup(__props, { emit: __emit }) {
4098
4157
  const emit = __emit;
4099
- const email = ref("");
4158
+ const identityValue = ref("");
4100
4159
  const password = ref("");
4101
4160
  const isLoading = ref(false);
4102
- const loginFailed = ref(false);
4103
- function onSubmit(event) {
4161
+ const passwordInput = useTemplateRef("passwordInput");
4162
+ async function onSubmit(event) {
4104
4163
  event.preventDefault();
4105
4164
  isLoading.value = true;
4106
- if (loginFailed.value) {
4165
+ try {
4166
+ await __props.authenticate(identityValue.value, password.value);
4167
+ emit("loginSuccess");
4168
+ } catch (error) {
4169
+ isLoading.value = false;
4170
+ await nextTick();
4171
+ passwordInput.value?.focus();
4172
+ passwordInput.value?.select();
4173
+ emit("loginFailed", error);
4174
+ } finally {
4107
4175
  isLoading.value = false;
4108
- emit("loginFailed");
4109
- return;
4110
4176
  }
4111
- isLoading.value = false;
4112
- emit("loginSuccess");
4113
4177
  }
4114
4178
  return (_ctx, _cache) => {
4115
4179
  return openBlock(), createElementBlock("div", _hoisted_1$6, [createElementVNode("div", null, [createElementVNode("div", _hoisted_2$2, [
4116
- createElementVNode("div", _hoisted_3, [createElementVNode("h1", _hoisted_4, toDisplayString(__props.headerTitle), 1), createElementVNode("p", _hoisted_5, toDisplayString(__props.headerSubtitle), 1)]),
4180
+ createElementVNode("div", _hoisted_3, [createElementVNode("h1", _hoisted_4, toDisplayString(__props.headerTitle), 1), __props.headerSubtitle ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(__props.headerSubtitle), 1)) : createCommentVNode("", true)]),
4117
4181
  createElementVNode("form", { onSubmit }, [createElementVNode("div", _hoisted_6, [
4118
- createElementVNode("div", _hoisted_7, [_cache[2] || (_cache[2] = createElementVNode("label", {
4119
- id: "login-email",
4120
- for: "email",
4182
+ createElementVNode("div", _hoisted_7, [createElementVNode("label", {
4183
+ id: `login-${__props.identity.name}`,
4184
+ for: __props.identity.name,
4121
4185
  class: "aform_field-label"
4122
- }, "Email", -1)), withDirectives(createElementVNode("input", {
4123
- id: "email",
4124
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
4186
+ }, toDisplayString(__props.identity.label), 9, _hoisted_8), withDirectives(createElementVNode("input", {
4187
+ id: __props.identity.name,
4188
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => identityValue.value = $event),
4125
4189
  class: "aform_input-field",
4126
- name: "email",
4127
- placeholder: "name@example.com",
4128
- type: "email",
4129
- autocomplete: "email",
4190
+ name: __props.identity.name,
4191
+ placeholder: __props.identity.placeholder,
4192
+ type: __props.identity.inputType,
4193
+ autocomplete: __props.identity.autocomplete,
4130
4194
  autocapitalize: "none",
4131
4195
  autocorrect: "off",
4132
4196
  disabled: isLoading.value
4133
- }, null, 8, _hoisted_8), [[vModelText, email.value]])]),
4134
- createElementVNode("div", _hoisted_9, [_cache[3] || (_cache[3] = createElementVNode("label", {
4197
+ }, null, 8, _hoisted_9), [[vModelDynamic, identityValue.value]])]),
4198
+ createElementVNode("div", _hoisted_10, [_cache[2] || (_cache[2] = createElementVNode("label", {
4135
4199
  id: "login-password",
4136
4200
  for: "password",
4137
4201
  class: "aform_field-label"
4138
4202
  }, "Password", -1)), withDirectives(createElementVNode("input", {
4139
4203
  id: "password",
4204
+ ref_key: "passwordInput",
4205
+ ref: passwordInput,
4140
4206
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => password.value = $event),
4141
4207
  class: "aform_input-field",
4142
4208
  name: "password",
4143
4209
  type: "password",
4144
4210
  autocomplete: "current-password",
4145
4211
  disabled: isLoading.value
4146
- }, null, 8, _hoisted_10), [[vModelText, password.value]])]),
4212
+ }, null, 8, _hoisted_11), [[vModelText, password.value]])]),
4147
4213
  createElementVNode("button", {
4148
4214
  type: "submit",
4149
4215
  class: "btn",
4150
- disabled: isLoading.value || !email.value || !password.value
4151
- }, [isLoading.value ? (openBlock(), createElementBlock("span", _hoisted_12, "progress_activity")) : createCommentVNode("", true), _cache[4] || (_cache[4] = createElementVNode("span", { id: "login-form-button" }, "Login", -1))], 8, _hoisted_11)
4216
+ disabled: isLoading.value || !identityValue.value || !password.value
4217
+ }, [isLoading.value ? (openBlock(), createElementBlock("span", _hoisted_13)) : createCommentVNode("", true), _cache[3] || (_cache[3] = createElementVNode("span", { id: "login-form-button" }, "Login", -1))], 8, _hoisted_12)
4152
4218
  ])], 32),
4153
- _cache[5] || (_cache[5] = createElementVNode("button", {
4154
- type: "button",
4155
- class: "btn"
4156
- }, [createElementVNode("span", { id: "forgot-password-button" }, "Forgot password?")], -1))
4219
+ _ctx.$slots.alternateSignIn ? (openBlock(), createElementBlock("div", _hoisted_14, [renderSlot(_ctx.$slots, "alternateSignIn", { identity: identityValue.value }, void 0, true)])) : createCommentVNode("", true)
4157
4220
  ])])]);
4158
4221
  };
4159
4222
  }
4160
- }), [["__scopeId", "data-v-555c3224"]]);
4223
+ }), [["__scopeId", "data-v-206dce0e"]]);
4161
4224
  // src/components/AFormLoading.vue
4162
4225
  var _sfc_main = {};
4163
4226
  var _hoisted_1$5 = { class: "aform-loading" };
@@ -4719,6 +4782,36 @@ var ATupleCellEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
4719
4782
  };
4720
4783
  }
4721
4784
  }), [["__scopeId", "data-v-9630226d"]]);
4785
+ // src/login/loginIdentity.ts
4786
+ /**
4787
+ * Built-in identity field presets for email and username sign-in.
4788
+ * @public
4789
+ */
4790
+ var loginIdentities = {
4791
+ email: {
4792
+ label: "Email",
4793
+ inputType: "email",
4794
+ autocomplete: "email",
4795
+ name: "email"
4796
+ },
4797
+ username: {
4798
+ label: "Username",
4799
+ inputType: "text",
4800
+ autocomplete: "username",
4801
+ name: "username"
4802
+ }
4803
+ };
4804
+ // src/composables/useLoginPreset.ts
4805
+ /**
4806
+ * Header copy and identity field wiring for common login modes.
4807
+ * @public
4808
+ */
4809
+ function useLoginPreset(preset) {
4810
+ return {
4811
+ identity: loginIdentities[preset],
4812
+ headerSubtitle: preset === "email" ? "Enter your email and password to login" : "Enter your username and password to login"
4813
+ };
4814
+ }
4722
4815
  // src/index.ts
4723
4816
  /**
4724
4817
  * Install all AForm components
@@ -4755,6 +4848,6 @@ function install(app) {
4755
4848
  app.component("ATupleCellEditor", ATupleCellEditor_default);
4756
4849
  app.component("ATupleCellShell", ATupleCellShell_default);
4757
4850
  }
4758
- export { ABadge_default as ABadge, ACheckbox_default as ACheckbox, ACurrencyInput_default as ACurrencyInput, ADate_default as ADate, ADatePicker_default as ADatePicker, ADateRange_default as ADateRange, ADateSelection_default as ADateSelection, ADateTime_default as ADateTime, ADateTimeInput_default as ADateTimeInput, ADropdown_default as ADropdown, ADuration_default as ADuration, AFieldset_default as AFieldset, AFileAttach_default as AFileAttach, AForm_default as AForm, AFormLink_default as AFormLink, AFormLoading_default as AFormLoading, ANumericInput_default as ANumericInput, AQuantityInput_default as AQuantityInput, ASegmentedControl_default as ASegmentedControl, ASemverInput_default as ASemverInput, ATableTupleCurrencyPicker_default as ATableTupleCurrencyPicker, ATableTupleQuantityPicker_default as ATableTupleQuantityPicker, ATextInput_default as ATextInput, ATextboxInput_default as ATextboxInput, ATupleCellEditor_default as ATupleCellEditor, ATupleCellShell_default as ATupleCellShell, ExpandButton_default as ExpandButton, Login_default as Login, badgeInputAccentStyle, deserializeFunction, install, resolveFieldBadge, resolvedFieldsToColumns };
4851
+ export { ABadge_default as ABadge, ACheckbox_default as ACheckbox, ACurrencyInput_default as ACurrencyInput, ADate_default as ADate, ADatePicker_default as ADatePicker, ADateRange_default as ADateRange, ADateSelection_default as ADateSelection, ADateTime_default as ADateTime, ADateTimeInput_default as ADateTimeInput, ADropdown_default as ADropdown, ADuration_default as ADuration, AFieldset_default as AFieldset, AFileAttach_default as AFileAttach, AForm_default as AForm, AFormLink_default as AFormLink, AFormLoading_default as AFormLoading, ANumericInput_default as ANumericInput, AQuantityInput_default as AQuantityInput, ASegmentedControl_default as ASegmentedControl, ASemverInput_default as ASemverInput, ATableTupleCurrencyPicker_default as ATableTupleCurrencyPicker, ATableTupleQuantityPicker_default as ATableTupleQuantityPicker, ATextInput_default as ATextInput, ATextboxInput_default as ATextboxInput, ATupleCellEditor_default as ATupleCellEditor, ATupleCellShell_default as ATupleCellShell, ExpandButton_default as ExpandButton, Login_default as Login, badgeInputAccentStyle, deserializeFunction, install, loginIdentities, resolveFieldBadge, resolvedFieldsToColumns, useLoginPreset };
4759
4852
 
4760
4853
  //# sourceMappingURL=aform.js.map