@dyedurham/search-and-file-widget 1.3.5 → 1.3.6

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 (2) hide show
  1. package/dnd-filing-shell.js +104 -84
  2. package/package.json +1 -1
@@ -86835,8 +86835,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86835
86835
  }
86836
86836
  if (rf & 2) {
86837
86837
  const ctx_r2 = \u0275\u0275nextContext(3);
86838
- const task_r5 = \u0275\u0275readContextLet(9);
86839
- \u0275\u0275property("errors", ctx_r2.errors())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("form", ctx_r2.deltaForm)("taskType", task_r5._taskType);
86838
+ const currentTask_r5 = \u0275\u0275readContextLet(9);
86839
+ \u0275\u0275property("errors", ctx_r2.errors())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("form", ctx_r2.deltaForm)("taskType", currentTask_r5._taskType);
86840
86840
  }
86841
86841
  }
86842
86842
  function FilingComponent_Conditional_10_Conditional_0_Conditional_1_Template(rf, ctx) {
@@ -86856,8 +86856,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86856
86856
  }
86857
86857
  if (rf & 2) {
86858
86858
  const ctx_r2 = \u0275\u0275nextContext(3);
86859
- const task_r5 = \u0275\u0275readContextLet(9);
86860
- \u0275\u0275property("form", ctx_r2.previewForm)("taskType", task_r5._taskType)("actionsDisabled", ctx_r2.isLoading());
86859
+ const currentTask_r5 = \u0275\u0275readContextLet(9);
86860
+ \u0275\u0275property("form", ctx_r2.previewForm)("taskType", currentTask_r5._taskType)("actionsDisabled", ctx_r2.isLoading());
86861
86861
  }
86862
86862
  }
86863
86863
  function FilingComponent_Conditional_10_Conditional_0_Conditional_2_Template(rf, ctx) {
@@ -86910,8 +86910,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86910
86910
  }
86911
86911
  if (rf & 2) {
86912
86912
  const ctx_r2 = \u0275\u0275nextContext(2);
86913
- const task_r5 = \u0275\u0275readContextLet(9);
86914
- \u0275\u0275property("form", ctx_r2.previewForm)("taskType", task_r5._taskType)("actionsDisabled", ctx_r2.isLoading())("validationConfig", ctx_r2.validationConfig())("errors", ctx_r2.errors())("readonly", false)("isNote", ctx_r2.dataWasChanged());
86913
+ const currentTask_r5 = \u0275\u0275readContextLet(9);
86914
+ \u0275\u0275property("form", ctx_r2.previewForm)("taskType", currentTask_r5._taskType)("actionsDisabled", ctx_r2.isLoading())("validationConfig", ctx_r2.validationConfig())("errors", ctx_r2.errors())("readonly", false)("isNote", ctx_r2.dataWasChanged());
86915
86915
  }
86916
86916
  }
86917
86917
  function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
@@ -86935,8 +86935,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86935
86935
  }
86936
86936
  if (rf & 2) {
86937
86937
  const ctx_r2 = \u0275\u0275nextContext(2);
86938
- const task_r5 = \u0275\u0275readContextLet(9);
86939
- \u0275\u0275property("form", ctx_r2.previewForm)("taskType", task_r5._taskType)("actionsDisabled", ctx_r2.isLoading())("validationConfig", ctx_r2.validationConfig())("errors", ctx_r2.errors())("readonly", true);
86938
+ const currentTask_r5 = \u0275\u0275readContextLet(9);
86939
+ \u0275\u0275property("form", ctx_r2.previewForm)("taskType", currentTask_r5._taskType)("actionsDisabled", ctx_r2.isLoading())("validationConfig", ctx_r2.validationConfig())("errors", ctx_r2.errors())("readonly", true);
86940
86940
  }
86941
86941
  }
86942
86942
  function FilingComponent_Conditional_10_Conditional_3_Conditional_0_Template(rf, ctx) {
@@ -86970,8 +86970,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86970
86970
  }
86971
86971
  if (rf & 2) {
86972
86972
  const ctx_r2 = \u0275\u0275nextContext();
86973
- const task_r5 = \u0275\u0275readContextLet(9);
86974
- \u0275\u0275conditional(ctx_r2.isFormationTask(task_r5) ? 0 : -1);
86973
+ const currentTask_r5 = \u0275\u0275readContextLet(9);
86974
+ \u0275\u0275conditional(ctx_r2.isFormationTask(currentTask_r5) ? 0 : -1);
86975
86975
  \u0275\u0275advance();
86976
86976
  \u0275\u0275conditional(ctx_r2.activeStep() === ctx_r2.steps.Validate ? 1 : -1);
86977
86977
  \u0275\u0275advance();
@@ -87026,20 +87026,45 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87026
87026
  init_core();
87027
87027
  init_button();
87028
87028
  FilingComponent = class _FilingComponent {
87029
- signature = input();
87030
- corporationInformation = input();
87031
- deltaData = input();
87029
+ env = input();
87030
+ config = input();
87031
+ language = input("en");
87032
+ proxyApiUrl = input();
87033
+ jwtToken = input();
87034
+ task = input();
87032
87035
  validateOptions = input();
87033
- envConfig = input();
87034
- changeDeltaData = output();
87035
- onResultGet = output();
87036
+ deltaDataChange = output();
87037
+ filingValidateSuccess = output();
87038
+ filingSubmitSuccess = output();
87036
87039
  close = output();
87040
+ _signature = computed(() => {
87041
+ const task = this.task();
87042
+ const config2 = this.config();
87043
+ const env = this.env();
87044
+ const language = this.language();
87045
+ const proxyApiUrl = this.proxyApiUrl();
87046
+ const jwtToken = this.jwtToken();
87047
+ if (!task || !config2 || !env || !proxyApiUrl || !jwtToken)
87048
+ return void 0;
87049
+ return {
87050
+ env,
87051
+ config: config2,
87052
+ language,
87053
+ proxyApiUrl,
87054
+ jwtToken,
87055
+ task,
87056
+ deltaDataChange: (data) => this.deltaDataChange.emit(data),
87057
+ filingValidateSuccess: (event) => this.filingValidateSuccess.emit(event),
87058
+ filingSubmitSuccess: (event) => this.filingSubmitSuccess.emit(event),
87059
+ close: () => this.close.emit()
87060
+ };
87061
+ });
87037
87062
  dialog = inject(MatDialog);
87038
87063
  formationService = inject(FormationService);
87039
87064
  initialReturnService = inject(InitialReturnService);
87040
87065
  translate = inject(TranslateService);
87041
87066
  isEditButton = computed(() => {
87042
- const task = this.signature()?.task;
87067
+ const task = this.task();
87043
87068
  switch (task?._taskType) {
87044
87069
  case TaskType.Formation:
87045
87070
  return this.activeStep() === Step.FilingPreview;
@@ -87062,18 +87087,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87062
87087
  previewFormInitialValue = {};
87063
87088
  errors = signal([]);
87064
87089
  title = computed(() => {
87065
- const signature = this.signature();
87066
- if (isInitialReturnTask(signature?.task)) {
87090
+ const task = this.task();
87091
+ if (isInitialReturnTask(task)) {
87067
87092
  return "File Initial Return";
87068
87093
  }
87069
- if (isFormationTask(signature?.task)) {
87094
+ if (isFormationTask(task)) {
87070
87095
  return "File Article Of Incorporation";
87071
87096
  }
87072
87097
  return "";
87073
87098
  });
87074
87099
  constructor() {
87075
87100
  effect(() => {
87076
- const config2 = this.envConfig();
87101
+ const config2 = this.config();
87077
87102
  if (config2) {
87078
87103
  this.initialReturnService.setConfig(config2);
87079
87104
  this.formationService.setConfig(config2);
@@ -87081,17 +87106,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87081
87106
  });
87082
87107
  addStylesVariables();
87083
87108
  effect(() => {
87084
- const task = this.signature()?.task;
87109
+ const task = this.task();
87085
87110
  if (task) {
87086
- this.translate.setDefaultLang(this.signature()?.language || "en");
87111
+ this.translate.setDefaultLang(this.language() || "en");
87087
87112
  this.deltaForm = new FormGroup(this.generateDeltaFormFieldsConfig(task));
87088
87113
  }
87089
87114
  });
87090
87115
  effect(() => {
87091
- const deltaDataValue = this.deltaData();
87092
- const deltaFromSignature = this.signature()?.task.deltaData;
87093
- const deltaData = deltaFromSignature ?? deltaDataValue;
87094
- const task = this.signature()?.task;
87116
+ const task = this.task();
87117
+ const deltaData = task?.deltaData;
87095
87118
  if (!task) {
87096
87119
  return;
87097
87120
  }
@@ -87127,29 +87150,25 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87127
87150
  validateAndFileFormationTask(form, termsAndConditions) {
87128
87151
  return __async(this, null, function* () {
87129
87152
  const deltaData = this.generateFormationDeltaData(form, termsAndConditions);
87130
- if (this.signature()?.deltaDataChange) {
87131
- this.signature()?.deltaDataChange({
87132
- deltaData: __spreadProps(__spreadValues({}, deltaData), { signature: this.signature() })
87133
- });
87134
- }
87135
- const signature = this.signature();
87153
+ this.deltaDataChange.emit({
87154
+ deltaData: __spreadProps(__spreadValues({}, deltaData), { signature: this._signature() })
87155
+ });
87156
+ const signature = this._signature();
87136
87157
  if (signature) {
87137
87158
  const response = yield this.formationService.validate(signature, deltaData, this.serviceOrderId, this.validateOptions() ?? {});
87138
- this.changeDeltaData.emit({
87139
- deltaData: __spreadProps(__spreadValues({}, deltaData), { task: this.signature()?.task })
87159
+ this.deltaDataChange.emit({
87160
+ deltaData: __spreadProps(__spreadValues({}, deltaData), { task: this.task() })
87161
+ });
87162
+ const isoTimestamp = (/* @__PURE__ */ new Date()).toISOString();
87163
+ this.filingValidateSuccess.emit({
87164
+ searchOrFilingType: "ontarioIncorporation",
87165
+ serviceOrderId: this.serviceOrderId,
87166
+ validatedOn: /* @__PURE__ */ new Date(),
87167
+ provider: "obr",
87168
+ draftPdf: response.Draft ?? "",
87169
+ documentName: this.validateOptions()?.documentName ? `${this.validateOptions()?.documentName} ${isoTimestamp}` : `Incorporation Draft ${isoTimestamp}`,
87170
+ documentType: "pdf"
87140
87171
  });
87141
- if (this.signature()?.filingValidateSuccess) {
87142
- const isoTimestamp = (/* @__PURE__ */ new Date()).toISOString();
87143
- this.signature()?.filingValidateSuccess({
87144
- searchOrFilingType: "ontarioIncorporation",
87145
- serviceOrderId: this.serviceOrderId,
87146
- validatedOn: /* @__PURE__ */ new Date(),
87147
- provider: "obr",
87148
- draftPdf: response.Draft ?? "",
87149
- documentName: this.validateOptions()?.documentName ? `${this.validateOptions()?.documentName} ${isoTimestamp}` : `Incorporation Draft ${isoTimestamp}`,
87150
- documentType: "pdf"
87151
- });
87152
- }
87153
87172
  return response;
87154
87173
  }
87155
87174
  return;
@@ -87157,7 +87176,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87157
87176
  }
87158
87177
  validateAndFileInitialReturnTask(form) {
87159
87178
  return __async(this, null, function* () {
87160
- const task = this.signature()?.task;
87179
+ const task = this.task();
87161
87180
  if (!isInitialReturnTask(task)) {
87162
87181
  return null;
87163
87182
  }
@@ -87308,11 +87327,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87308
87327
  }
87309
87328
  }
87310
87329
  };
87311
- const signature = this.signature();
87330
+ const signature = this._signature();
87312
87331
  if (signature) {
87313
87332
  const response = yield this.initialReturnService.submitInitialReturnValidationToECore(signature, payload, this.serviceOrderId, this.validateOptions());
87314
- this.changeDeltaData.emit({
87315
- deltaData: __spreadProps(__spreadValues({}, formData), { task: this.signature()?.task })
87333
+ this.deltaDataChange.emit({
87334
+ deltaData: __spreadProps(__spreadValues({}, formData), { task: this.task() })
87316
87335
  });
87317
87336
  return response;
87318
87337
  }
@@ -87320,7 +87339,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87320
87339
  });
87321
87340
  }
87322
87341
  onEditClick() {
87323
- if (isInitialReturnTask(this.signature()?.task)) {
87342
+ if (isInitialReturnTask(this.task())) {
87324
87343
  this.previewForm.enable();
87325
87344
  this.activeStep.set(Step.Validate);
87326
87345
  return;
@@ -87329,7 +87348,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87329
87348
  }
87330
87349
  onDeltaDataSubmit() {
87331
87350
  return __async(this, null, function* () {
87332
- const task = this.signature()?.task;
87351
+ const task = this.task();
87333
87352
  if (!task) {
87334
87353
  return;
87335
87354
  }
@@ -87357,7 +87376,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87357
87376
  this.errors.set([]);
87358
87377
  const result = yield this.validateAndFileFormationTask(this.previewForm, termsAndConditions);
87359
87378
  const serviceId = result?.ServiceOrderId;
87360
- const signature = this.signature();
87379
+ const signature = this._signature();
87361
87380
  if (serviceId && signature) {
87362
87381
  const result2 = yield this.formationService.submitFormationRequest(signature, serviceId, this.validateOptions());
87363
87382
  if (!result2?.ReceiptPdf) {
@@ -87382,7 +87401,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87382
87401
  }
87383
87402
  onClose() {
87384
87403
  if (deepEqual(this.previewFormInitialValue, this.previewForm.getRawValue())) {
87385
- this.signature()?.close();
87386
87404
  this.close.emit();
87387
87405
  } else {
87388
87406
  this.dialog.open(ConfirmModalComponent, {
@@ -87404,7 +87422,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87404
87422
  }
87405
87423
  onSaveDeltaFormChanges() {
87406
87424
  const formData = this.generateFormationDeltaData(this.deltaForm);
87407
- this.signature()?.deltaDataChange?.({ deltaData: formData, signature: this.signature() });
87425
+ this.deltaDataChange.emit({ deltaData: formData, signature: this._signature() });
87408
87426
  }
87409
87427
  generateFormationDeltaData(form, termsAndConditions) {
87410
87428
  const formData = form.getRawValue();
@@ -87423,14 +87441,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87423
87441
  }
87424
87442
  onSaveChanges() {
87425
87443
  const formData = this.previewForm.getRawValue();
87426
- this.signature()?.deltaDataChange?.({ deltaData: formData, signature: this.signature() });
87444
+ this.deltaDataChange.emit({ deltaData: formData, signature: this._signature() });
87427
87445
  }
87428
87446
  onPreviewNextClick() {
87429
87447
  this.activeStep.set(Step.TermsAndConditions);
87430
87448
  }
87431
87449
  onDataComparisonNextClick() {
87432
87450
  return __async(this, null, function* () {
87433
- const task = this.signature()?.task;
87451
+ const task = this.task();
87434
87452
  if (!task) {
87435
87453
  return;
87436
87454
  }
@@ -87439,7 +87457,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87439
87457
  this.errors.set([]);
87440
87458
  if (isInitialReturnTask(task)) {
87441
87459
  yield this.validateAndFileInitialReturnTask(this.previewForm);
87442
- this.changeDeltaData.emit({ deltaData: __spreadProps(__spreadValues({}, this.previewForm.getRawValue()), { task: this.signature()?.task }) });
87460
+ this.deltaDataChange.emit({ deltaData: __spreadProps(__spreadValues({}, this.previewForm.getRawValue()), { task: this.task() }) });
87443
87461
  }
87444
87462
  } catch (response) {
87445
87463
  console.error(response);
@@ -87454,7 +87472,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87454
87472
  }
87455
87473
  onInitialReturnSubmit(termsAndConditions) {
87456
87474
  return __async(this, null, function* () {
87457
- const task = this.signature()?.task;
87475
+ const task = this.task();
87458
87476
  if (!task) {
87459
87477
  return;
87460
87478
  }
@@ -87462,7 +87480,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87462
87480
  this.isLoading.set(true);
87463
87481
  this.errors.set([]);
87464
87482
  if (isInitialReturnTask(task)) {
87465
- const signature = this.signature();
87483
+ const signature = this._signature();
87466
87484
  if (signature) {
87467
87485
  const result = yield this.initialReturnService.submitRequest(signature, this.serviceOrderId, this.validateOptions());
87468
87486
  if (!result?.ReceiptPdf) {
@@ -87485,8 +87503,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87485
87503
  getStatus(serviceId) {
87486
87504
  return __async(this, null, function* () {
87487
87505
  this.isPolling = true;
87488
- const signature = this.signature();
87489
- const task = this.signature()?.task;
87506
+ const signature = this._signature();
87507
+ const task = this.task();
87490
87508
  if (signature) {
87491
87509
  let result = null;
87492
87510
  if (isFormationTask(task)) {
@@ -87496,7 +87514,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87496
87514
  }
87497
87515
  const status = result?.Status;
87498
87516
  if (result && !status) {
87499
- this.onResultGet.emit(result);
87517
+ this.filingSubmitSuccess.emit({
87518
+ serviceOrderId: result.ServiceOrderId ?? serviceId,
87519
+ filedOn: /* @__PURE__ */ new Date()
87520
+ });
87500
87521
  }
87501
87522
  return;
87502
87523
  }
@@ -87509,7 +87530,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87509
87530
  this.activeStep.set(Step.FilingPreview);
87510
87531
  }
87511
87532
  generateFormationPreviewForm(task) {
87512
- const fieldsConfig = FormationPreviewFormHelper.generateFieldConfig(task, this.deltaData()?.deltaData);
87533
+ const fieldsConfig = FormationPreviewFormHelper.generateFieldConfig(task, task.deltaData?.deltaData);
87513
87534
  this.previewForm = new FormGroup(fieldsConfig);
87514
87535
  this.previewForm.disable();
87515
87536
  if (untracked2(this.activeStep) === Step.Validate) {
@@ -87518,7 +87539,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87518
87539
  this.previewFormInitialValue = this.previewForm.getRawValue();
87519
87540
  }
87520
87541
  generateInitialReturnPreviewForm(data) {
87521
- const task = this.signature()?.task;
87542
+ const task = this.task();
87522
87543
  if (!task || !isInitialReturnTask(task) || !data)
87523
87544
  return;
87524
87545
  const fieldsConfig = IRPreviewInitialFormHelper.generateInitialForm(task, data);
@@ -87530,7 +87551,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87530
87551
  }
87531
87552
  getInitialReturnServiceId() {
87532
87553
  return __async(this, null, function* () {
87533
- const signature = this.signature();
87554
+ const signature = this._signature();
87534
87555
  if (signature) {
87535
87556
  return yield this.initialReturnService.validateCurrentData(signature, this.validateOptions());
87536
87557
  }
@@ -87541,11 +87562,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87541
87562
  this.activeStep.set(Step.Validate);
87542
87563
  }
87543
87564
  defineInitialStep() {
87544
- const signature = this.signature();
87545
- const taskFromDeltaData = this.signature()?.task?.deltaData?.signature?.task ?? this.deltaData()?.deltaData?.task;
87546
- delete signature?.task?.deltaData;
87547
- if (signature && taskFromDeltaData) {
87548
- const dataWasChanged = !deepEqual(signature.task, taskFromDeltaData, ["deltaData"]);
87565
+ const task = this.task();
87566
+ const taskFromDeltaData = task?.deltaData?.signature?.task;
87567
+ delete task?.deltaData;
87568
+ if (task && taskFromDeltaData) {
87569
+ const dataWasChanged = !deepEqual(task, taskFromDeltaData, ["deltaData"]);
87549
87570
  this.dataWasChanged.set(dataWasChanged);
87550
87571
  this.activeStep.set(dataWasChanged ? Step.Validate : Step.FilingPreview);
87551
87572
  } else {
@@ -87556,7 +87577,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87556
87577
  static \u0275fac = function FilingComponent_Factory(__ngFactoryType__) {
87557
87578
  return new (__ngFactoryType__ || _FilingComponent)();
87558
87579
  };
87559
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _FilingComponent, selectors: [["app-filing"]], inputs: { signature: [1, "signature"], corporationInformation: [1, "corporationInformation"], deltaData: [1, "deltaData"], validateOptions: [1, "validateOptions"], envConfig: [1, "envConfig"] }, outputs: { changeDeltaData: "changeDeltaData", onResultGet: "onResultGet", close: "close" }, decls: 12, vars: 7, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly", "isNote"], [3, "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly"], [3, "errors", "isNote", "actionsDisabled", "form", "taskType"], [3, "form", "taskType", "actionsDisabled"], [3, "close", "validate", "previous", "save", "errors", "isNote", "actionsDisabled", "form", "taskType"], [3, "next", "close", "form", "taskType", "actionsDisabled"], [3, "prev", "confirm"], [3, "validate", "close", "save", "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly", "isNote"], [3, "close", "save", "file", "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
87580
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _FilingComponent, selectors: [["app-filing"]], inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], validateOptions: [1, "validateOptions"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 7, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly", "isNote"], [3, "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly"], [3, "errors", "isNote", "actionsDisabled", "form", "taskType"], [3, "form", "taskType", "actionsDisabled"], [3, "close", "validate", "previous", "save", "errors", "isNote", "actionsDisabled", "form", "taskType"], [3, "next", "close", "form", "taskType", "actionsDisabled"], [3, "prev", "confirm"], [3, "validate", "close", "save", "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly", "isNote"], [3, "close", "save", "file", "form", "taskType", "actionsDisabled", "validationConfig", "errors", "readonly"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
87560
87581
  if (rf & 1) {
87561
87582
  const _r1 = \u0275\u0275getCurrentView();
87562
87583
  \u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
@@ -87577,15 +87598,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87577
87598
  \u0275\u0275elementEnd()();
87578
87599
  }
87579
87600
  if (rf & 2) {
87580
- let tmp_2_0;
87581
87601
  \u0275\u0275advance(3);
87582
87602
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 4, ctx.title()));
87583
87603
  \u0275\u0275advance(4);
87584
87604
  \u0275\u0275conditional(ctx.isEditButton() ? 7 : -1);
87585
87605
  \u0275\u0275advance(2);
87586
- const task_r11 = \u0275\u0275storeLet((tmp_2_0 = ctx.signature()) == null ? null : tmp_2_0.task);
87606
+ const currentTask_r11 = \u0275\u0275storeLet(ctx.task());
87587
87607
  \u0275\u0275advance();
87588
- \u0275\u0275conditional(task_r11 ? 10 : -1);
87608
+ \u0275\u0275conditional(currentTask_r11 ? 10 : -1);
87589
87609
  \u0275\u0275advance();
87590
87610
  \u0275\u0275conditional(ctx.isLoading() ? 11 : -1);
87591
87611
  }
@@ -87633,10 +87653,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87633
87653
  }\r
87634
87654
  \r
87635
87655
  <div class="filing-content">\r
87636
- @let task = signature()?.task;\r
87656
+ @let currentTask = task();\r
87637
87657
  \r
87638
- @if (task) {\r
87639
- @if (isFormationTask(task)) {\r
87658
+ @if (currentTask) {\r
87659
+ @if (isFormationTask(currentTask)) {\r
87640
87660
  @if (activeStep() === steps.Validate) {\r
87641
87661
  <delta-form\r
87642
87662
  [errors]="errors()"\r
@@ -87645,7 +87665,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87645
87665
  (close)="onClose()"\r
87646
87666
  (validate)="onDeltaDataSubmit()"\r
87647
87667
  [form]="deltaForm"\r
87648
- [taskType]="task._taskType"\r
87668
+ [taskType]="currentTask._taskType"\r
87649
87669
  (previous)="onDeltaFormPrevious()"\r
87650
87670
  (save)="onSaveDeltaFormChanges()"\r
87651
87671
  />\r
@@ -87654,7 +87674,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87654
87674
  @if (activeStep() === steps.FilingPreview) {\r
87655
87675
  <preview-form\r
87656
87676
  [form]="previewForm"\r
87657
- [taskType]="task._taskType"\r
87677
+ [taskType]="currentTask._taskType"\r
87658
87678
  [actionsDisabled]="isLoading()"\r
87659
87679
  (next)="onPreviewNextClick()"\r
87660
87680
  (close)="onPreviewPrevClick()"\r
@@ -87672,7 +87692,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87672
87692
  @if (activeStep() === steps.Validate) {\r
87673
87693
  <comparison-form\r
87674
87694
  [form]="previewForm"\r
87675
- [taskType]="task._taskType"\r
87695
+ [taskType]="currentTask._taskType"\r
87676
87696
  [actionsDisabled]="isLoading()"\r
87677
87697
  [validationConfig]="validationConfig()"\r
87678
87698
  [errors]="errors()"\r
@@ -87687,7 +87707,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87687
87707
  @if (activeStep() === steps.FilingPreview) {\r
87688
87708
  <comparison-form\r
87689
87709
  [form]="previewForm"\r
87690
- [taskType]="task._taskType"\r
87710
+ [taskType]="currentTask._taskType"\r
87691
87711
  [actionsDisabled]="isLoading()"\r
87692
87712
  [validationConfig]="validationConfig()"\r
87693
87713
  [errors]="errors()"\r
@@ -87719,7 +87739,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87719
87739
  }], () => [], null);
87720
87740
  })();
87721
87741
  (() => {
87722
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 80 });
87742
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 85 });
87723
87743
  })();
87724
87744
  }
87725
87745
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {