@flarehr/apollo-super-selection 4.15.24792 → 4.17.26571

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.
Files changed (25) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/{p-f078b2b7.system.entry.js → p-5dd312a3.system.entry.js} +8 -8
  4. package/dist/lib/apollo-super-selection/p-a454c53a.entry.js +14 -0
  5. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  6. package/dist/lib/cjs/sss-button_29.cjs.entry.js +35 -9
  7. package/dist/lib/collection/apollo-super-selection.css +1 -1
  8. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +6 -2
  9. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +28 -3
  10. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +5 -1
  11. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +13 -2
  12. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +3 -1
  13. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +1 -1
  14. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +1 -1
  15. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +2 -0
  16. package/dist/lib/esm/sss-button_29.entry.js +35 -9
  17. package/dist/lib/esm-es5/sss-button_29.entry.js +4 -4
  18. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +4 -0
  19. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +2 -0
  20. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +2 -0
  21. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +2 -0
  22. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +2 -0
  23. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +2 -0
  24. package/package.json +1 -1
  25. package/dist/lib/apollo-super-selection/p-af33b1bd.entry.js +0 -14
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
260
260
  }
261
261
  }
262
262
 
263
- const AppVersion = '4.15.24792';
263
+ const AppVersion = '4.17.26571';
264
264
 
265
265
  // -------------------------------------------------------------------------------------
266
266
  // guards
@@ -3654,7 +3654,9 @@ const initialStateCustomFund = {
3654
3654
  myOwnFundForm: {
3655
3655
  fundUsi: none,
3656
3656
  fundName: none,
3657
- memberNumber: none
3657
+ memberNumber: none,
3658
+ memberFirstName: none,
3659
+ memberFamilyName: none
3658
3660
  },
3659
3661
  selfManagedFundForm: {
3660
3662
  fundName: '',
@@ -3667,7 +3669,9 @@ const initialStateCustomFund = {
3667
3669
  city: '',
3668
3670
  bankAccountName: '',
3669
3671
  bsb: '',
3670
- bankAccountNumber: ''
3672
+ bankAccountNumber: '',
3673
+ memberFirstName: '',
3674
+ memberFamilyName: ''
3671
3675
  },
3672
3676
  currentCustomFundType: CustomFundTypes.MyOwnFund,
3673
3677
  customFunds: [
@@ -4471,7 +4475,9 @@ const MyOwnFund = class {
4471
4475
  return;
4472
4476
  }
4473
4477
  const isAllInformationProvided = isSome(state$1.myOwnFundForm.fundUsi) &&
4474
- isSome(state$1.myOwnFundForm.memberNumber);
4478
+ isSome(state$1.myOwnFundForm.memberNumber) &&
4479
+ isSome(state$1.myOwnFundForm.memberFirstName) &&
4480
+ isSome(state$1.myOwnFundForm.memberFamilyName);
4475
4481
  if (!isAllInformationProvided) {
4476
4482
  this.isNotAllInformationProvidedMessageVisible = true;
4477
4483
  return;
@@ -4483,6 +4489,8 @@ const MyOwnFund = class {
4483
4489
  const customFundChoiceDto = {
4484
4490
  fundUsi: this.getOrError(state$1.myOwnFundForm.fundUsi),
4485
4491
  memberNumber: this.getOrError(state$1.myOwnFundForm.memberNumber),
4492
+ memberFirstName: this.getOrError(state$1.myOwnFundForm.memberFirstName),
4493
+ memberFamilyName: this.getOrError(state$1.myOwnFundForm.memberFamilyName),
4486
4494
  standardChoiceFormSignature
4487
4495
  };
4488
4496
  await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
@@ -4529,7 +4537,15 @@ const MyOwnFundInputs = class {
4529
4537
  'shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md': true,
4530
4538
  'invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500': this
4531
4539
  .showValidationErrors
4532
- }, required: true, pattern: "[A-Za-z0-9]{4,16}", name: "memberNumber", id: "memberNumber", value: toUndefined(state$1.myOwnFundForm.memberNumber), onChange: (ev) => this.updateMemberNumber(ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid member number (only numbers and / or letters)")))));
4540
+ }, required: true, pattern: "[A-Za-z0-9]{4,16}", name: "memberNumber", id: "memberNumber", value: toUndefined(state$1.myOwnFundForm.memberNumber), onChange: (ev) => this.updateMemberNumber(ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid member number (only numbers and / or letters)"))), h("div", { class: "flex space-x-4" }, h("div", { class: "mt-3 w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Given names(s)"), h("div", { class: "mt-1" }, h("input", { type: "text", class: {
4541
+ 'shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md': true,
4542
+ 'invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500': this
4543
+ .showValidationErrors
4544
+ }, required: true, pattern: "^[A-Za-z]{2,}\\s*[A-Za-z]{0,}$", name: "memberFirstName", id: "memberFirstName", value: toUndefined(state$1.myOwnFundForm.memberFirstName), onChange: (ev) => this.updateMemberFirstName(ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid given name(s)"))), h("div", { class: "mt-3 w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Last name"), h("div", { class: "mt-1" }, h("input", { type: "text", class: {
4545
+ 'shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md': true,
4546
+ 'invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500': this
4547
+ .showValidationErrors
4548
+ }, required: true, pattern: "^[A-Za-z]{2,}\\s*[A-Za-z]{0,}$", name: "memberFamilyName", id: "memberFamilyName", value: toUndefined(state$1.myOwnFundForm.memberFamilyName), onChange: (ev) => this.updateMemberFamilyName(ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid last name"))))));
4533
4549
  }
4534
4550
  updateFund(fund) {
4535
4551
  this.formChanged.emit({ fundUsi: some(fund.value), fundName: some(fund.label) });
@@ -4537,6 +4553,12 @@ const MyOwnFundInputs = class {
4537
4553
  updateMemberNumber(memberNumber) {
4538
4554
  this.formChanged.emit({ memberNumber: some(memberNumber) });
4539
4555
  }
4556
+ updateMemberFirstName(memberFirstName) {
4557
+ this.formChanged.emit({ memberFirstName: some(memberFirstName) });
4558
+ }
4559
+ updateMemberFamilyName(memberFamilyName) {
4560
+ this.formChanged.emit({ memberFamilyName: some(memberFamilyName) });
4561
+ }
4540
4562
  };
4541
4563
 
4542
4564
  class PromotedFundChoiceApi {
@@ -4590,7 +4612,7 @@ class PromotedFundJoinV1IFrameBuilder {
4590
4612
  navigationService.navigateInternallyToStandardChoice({
4591
4613
  history,
4592
4614
  fundName: (_a = getFundNameById(state$2.fundId)) !== null && _a !== void 0 ? _a : '',
4593
- handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
4615
+ handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
4594
4616
  promotedFundId: state$2.fundId
4595
4617
  });
4596
4618
  break;
@@ -4708,7 +4730,7 @@ class PromotedFundJoinV2IFrameBuilder {
4708
4730
  navigationService.navigateInternallyToStandardChoice({
4709
4731
  history,
4710
4732
  fundName: (_a = getFundNameById(state$2.fundId)) !== null && _a !== void 0 ? _a : '',
4711
- handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
4733
+ handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
4712
4734
  promotedFundId: state$2.fundId
4713
4735
  });
4714
4736
  break;
@@ -4824,7 +4846,9 @@ const SelfManagedFund = class {
4824
4846
  bsb: state$1.selfManagedFundForm.bsb,
4825
4847
  bankAccountName: state$1.selfManagedFundForm.bankAccountName,
4826
4848
  bankAccountNumber: state$1.selfManagedFundForm.bankAccountNumber,
4827
- electronicServiceAddress: state$1.selfManagedFundForm.fundEsa
4849
+ electronicServiceAddress: state$1.selfManagedFundForm.fundEsa,
4850
+ memberFirstName: state$1.selfManagedFundForm.memberFirstName,
4851
+ memberFamilyName: state$1.selfManagedFundForm.memberFamilyName
4828
4852
  },
4829
4853
  standardChoiceFormSignature
4830
4854
  };
@@ -5022,7 +5046,7 @@ const SelfManagedFundInputs = class {
5022
5046
  }, ref: (el) => (this.postcodeElement = el) })), h("div", { class: "flex-1 min-w-0" }, h("select", { class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-br-md shadow-none': true, 'text-gray-500': this.fundForm.state !== undefined }), name: "state", required: true, id: "state", onChange: (ev) => {
5023
5047
  this.updateFormField('state', ev.target.value.trim());
5024
5048
  this.updateAddressErrorMessage();
5025
- }, ref: (el) => (this.stateElement = el) }, h("option", { disabled: true, selected: this.fundForm.state !== undefined, value: "" }, "State"), this.stateOptions.map((s) => (h("option", { value: s.value, selected: this.fundForm.state === s.value }, s.label))))))), isSome(this.addressErrorMessage) && this.showValidationErrors && (h("div", { class: "mt-2 text-sm text-red-600" }, this.addressErrorMessage.value))), h("h3", { class: "text-lg font-bold mt-6" }, "Fund bank details"), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Account name"), h("div", { class: "mt-1" }, h("input", { type: "text", required: true, class: inputClass, name: "bankAccountName", minlength: "2", id: "bankAccountName", value: state$1.selfManagedFundForm.bankAccountName, onChange: (ev) => this.updateFormField('bankAccountName', ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account name"))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "BSB"), h("div", { class: "mt-1" }, h("input", { type: "text", required: true, class: inputClass, name: "bsb", id: "bsb", minlength: "6", maxlength: "7", inputmode: "numeric", onKeyUp: (ev) => this.updateCurrentBank(ev), pattern: this.bsbRegex.source, value: state$1.selfManagedFundForm.bsb }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid BSB"))), isSome(this.currentBank) && (h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Bank name"), h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm" }, this.currentBank.value))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Account number"), h("div", { class: "mt-1" }, h("input", { type: "text", required: true, class: inputClass, name: "bankAccountNumber", id: "bankAccountNumber", minlength: "2", maxlength: "11", pattern: this.bankAccountNumberRegex.source, inputmode: "numeric", value: state$1.selfManagedFundForm.bankAccountNumber, onKeyUp: (ev) => this.updateCurrentBankAccountNumber(ev), onChange: (ev) => this.updateFormField('bankAccountNumber', ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account number")))));
5049
+ }, ref: (el) => (this.stateElement = el) }, h("option", { disabled: true, selected: this.fundForm.state !== undefined, value: "" }, "State"), this.stateOptions.map((s) => (h("option", { value: s.value, selected: this.fundForm.state === s.value }, s.label))))))), isSome(this.addressErrorMessage) && this.showValidationErrors && (h("div", { class: "mt-2 text-sm text-red-600" }, this.addressErrorMessage.value))), h("div", { class: "flex space-x-4" }, h("div", { class: "mt-3 w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Given name(s)"), h("div", { class: "mt-1" }, h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "memberFirstName", id: "memberFirstName", value: state$1.selfManagedFundForm.memberFirstName, onChange: (ev) => this.updateFormField('memberFirstName', ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid given name"))), h("div", { class: "mt-3 w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Last name"), h("div", { class: "mt-1" }, h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "memberFamilyName", id: "memberFamilyName", value: state$1.selfManagedFundForm.memberFamilyName, onChange: (ev) => this.updateFormField('memberFamilyName', ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid last name")))), h("h3", { class: "text-lg font-bold mt-6" }, "Fund bank details"), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Account name"), h("div", { class: "mt-1" }, h("input", { type: "text", required: true, class: inputClass, name: "bankAccountName", minlength: "2", id: "bankAccountName", value: state$1.selfManagedFundForm.bankAccountName, onChange: (ev) => this.updateFormField('bankAccountName', ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account name"))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "BSB"), h("div", { class: "mt-1" }, h("input", { type: "text", required: true, class: inputClass, name: "bsb", id: "bsb", minlength: "6", maxlength: "7", inputmode: "numeric", onKeyUp: (ev) => this.updateCurrentBank(ev), pattern: this.bsbRegex.source, value: state$1.selfManagedFundForm.bsb }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid BSB"))), isSome(this.currentBank) && (h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Bank name"), h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm" }, this.currentBank.value))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Account number"), h("div", { class: "mt-1" }, h("input", { type: "text", required: true, class: inputClass, name: "bankAccountNumber", id: "bankAccountNumber", minlength: "2", maxlength: "11", pattern: this.bankAccountNumberRegex.source, inputmode: "numeric", value: state$1.selfManagedFundForm.bankAccountNumber, onKeyUp: (ev) => this.updateCurrentBankAccountNumber(ev), onChange: (ev) => this.updateFormField('bankAccountNumber', ev.target.value.trim()) }), h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account number")))));
5026
5050
  }
5027
5051
  updateFormField(key, value) {
5028
5052
  this.formChanged.emit({ [key]: value });
@@ -5199,6 +5223,8 @@ class SlateIFrameBuilder {
5199
5223
  fundName: Slate.Name,
5200
5224
  handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync({
5201
5225
  memberNumber: data.memberNumber,
5226
+ memberFirstName: data.memberFirstName,
5227
+ memberFamilyName: data.memberFamilyName,
5202
5228
  standardChoiceFormSignature,
5203
5229
  shownFunds: superSelectionAppService.promotedFunds,
5204
5230
  defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)