@mtna/web-form-angular 1.0.6-SNAPSHOT.3 → 1.0.6-SNAPSHOT.4

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.
@@ -3264,8 +3264,6 @@
3264
3264
  return coreTs.isType(something, 'className') && something.className === 'FormStep';
3265
3265
  }
3266
3266
 
3267
- var MTNA_WF_API_TOKEN = new i0.InjectionToken('mtnaWfApiConfig');
3268
-
3269
3267
  var CUSTOM_MAT_DATE_FORMAT = {
3270
3268
  parse: {
3271
3269
  dateInput: 'YYYY/MM/DD',
@@ -6020,20 +6018,24 @@
6020
6018
  }]
6021
6019
  }] });
6022
6020
 
6023
- var MtnaWfApiService = /** @class */ (function () {
6024
- function MtnaWfApiService(apiConfig, http) {
6025
- this.apiConfig = apiConfig;
6026
- this.http = http;
6027
- this.API_URL = "" + this.apiConfig.baseUrl;
6028
- this.FORM_URL = this.API_URL + "/form";
6029
- this.TEMPLATE_URL = this.API_URL + "/template";
6030
- this.NEW_TEMPLATE_URL = this.TEMPLATE_URL + "/new";
6031
- this.NEW_SECTION_URL = this.TEMPLATE_URL + "/section";
6032
- this.ITEMS_URL = this.TEMPLATE_URL + "/items";
6033
- this.ITEM_INSTANCE_URL = this.TEMPLATE_URL + "/item";
6034
- this.TEMPLATE_SAVE_URL = this.TEMPLATE_URL + "/save";
6035
- this.TEMPLATE_DELETE_URL = this.TEMPLATE_URL + "/delete";
6036
- this.ALL_TEMPLATES_URL = this.API_URL + "/templates";
6021
+ var MtnaWfApiService = /** @class */ (function (_super) {
6022
+ __extends(MtnaWfApiService, _super);
6023
+ function MtnaWfApiService(apiConfig, http, logger) {
6024
+ var _this = _super.call(this, apiConfig, http, logger) || this;
6025
+ _this.apiConfig = apiConfig;
6026
+ _this.http = http;
6027
+ _this.logger = logger;
6028
+ _this.API_URL = "" + _this.BASE_URL;
6029
+ _this.FORM_URL = _this.API_URL + "/form";
6030
+ _this.TEMPLATE_URL = _this.API_URL + "/template";
6031
+ _this.NEW_TEMPLATE_URL = _this.TEMPLATE_URL + "/new";
6032
+ _this.NEW_SECTION_URL = _this.TEMPLATE_URL + "/section";
6033
+ _this.ITEMS_URL = _this.TEMPLATE_URL + "/items";
6034
+ _this.ITEM_INSTANCE_URL = _this.TEMPLATE_URL + "/item";
6035
+ _this.TEMPLATE_SAVE_URL = _this.TEMPLATE_URL + "/save";
6036
+ _this.TEMPLATE_DELETE_URL = _this.TEMPLATE_URL + "/delete";
6037
+ _this.ALL_TEMPLATES_URL = _this.API_URL + "/templates";
6038
+ return _this;
6037
6039
  }
6038
6040
  /**
6039
6041
  * Download a web form
@@ -6079,8 +6081,8 @@
6079
6081
  return this.http.post(this.ITEM_INSTANCE_URL + "/convert", templateItem);
6080
6082
  };
6081
6083
  return MtnaWfApiService;
6082
- }());
6083
- MtnaWfApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, deps: [{ token: MTNA_WF_API_TOKEN }, { token: i1__namespace$3.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
6084
+ }(i1$2.BaseUrlService));
6085
+ MtnaWfApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, deps: [{ token: i1$2.MTNA_API_CONFIG }, { token: i1__namespace$3.HttpClient }, { token: i1__namespace$1.MtnaLogger }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
6084
6086
  MtnaWfApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, providedIn: 'root' });
6085
6087
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfApiService, decorators: [{
6086
6088
  type: i0.Injectable,
@@ -6088,8 +6090,8 @@
6088
6090
  }], ctorParameters: function () {
6089
6091
  return [{ type: undefined, decorators: [{
6090
6092
  type: i0.Inject,
6091
- args: [MTNA_WF_API_TOKEN]
6092
- }] }, { type: i1__namespace$3.HttpClient }];
6093
+ args: [i1$2.MTNA_API_CONFIG]
6094
+ }] }, { type: i1__namespace$3.HttpClient }, { type: i1__namespace$1.MtnaLogger }];
6093
6095
  } });
6094
6096
 
6095
6097
  /**
@@ -6912,11 +6914,15 @@
6912
6914
  type: i0.Injectable
6913
6915
  }] });
6914
6916
 
6915
- var MtnaTemplateTransformationService = /** @class */ (function () {
6916
- function MtnaTemplateTransformationService(apiConfig, http) {
6917
- this.apiConfig = apiConfig;
6918
- this.http = http;
6919
- this.API_URL = this.apiConfig.baseUrl + "/api";
6917
+ var MtnaTemplateTransformationService = /** @class */ (function (_super) {
6918
+ __extends(MtnaTemplateTransformationService, _super);
6919
+ function MtnaTemplateTransformationService(apiConfig, http, logger) {
6920
+ var _this = _super.call(this, apiConfig, http, logger) || this;
6921
+ _this.apiConfig = apiConfig;
6922
+ _this.http = http;
6923
+ _this.logger = logger;
6924
+ _this.API_URL = "" + _this.BASE_URL;
6925
+ return _this;
6920
6926
  }
6921
6927
  MtnaTemplateTransformationService.prototype.convertTemplateToForm = function (request) {
6922
6928
  // return this.http.post<Form>(`${this.API_URL}/template/convert`, request);
@@ -6924,8 +6930,8 @@
6924
6930
  return rxjs.of(undefined);
6925
6931
  };
6926
6932
  return MtnaTemplateTransformationService;
6927
- }());
6928
- MtnaTemplateTransformationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaTemplateTransformationService, deps: [{ token: MTNA_WF_API_TOKEN }, { token: i1__namespace$3.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
6933
+ }(i1$2.BaseUrlService));
6934
+ MtnaTemplateTransformationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaTemplateTransformationService, deps: [{ token: i1$2.MTNA_API_CONFIG }, { token: i1__namespace$3.HttpClient }, { token: i1__namespace$1.MtnaLogger }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
6929
6935
  MtnaTemplateTransformationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaTemplateTransformationService, providedIn: 'root' });
6930
6936
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaTemplateTransformationService, decorators: [{
6931
6937
  type: i0.Injectable,
@@ -6933,8 +6939,8 @@
6933
6939
  }], ctorParameters: function () {
6934
6940
  return [{ type: undefined, decorators: [{
6935
6941
  type: i0.Inject,
6936
- args: [MTNA_WF_API_TOKEN]
6937
- }] }, { type: i1__namespace$3.HttpClient }];
6942
+ args: [i1$2.MTNA_API_CONFIG]
6943
+ }] }, { type: i1__namespace$3.HttpClient }, { type: i1__namespace$1.MtnaLogger }];
6938
6944
  } });
6939
6945
 
6940
6946
  var _BaseFormComponent = i1$2.mixinDestroyNotifier(/** @class */ (function () {
@@ -12489,7 +12495,6 @@
12489
12495
  exports.I18nTextResponseItemTemplateMapper = I18nTextResponseItemTemplateMapper;
12490
12496
  exports.ISO_8601_DATE_DISPLAY_VALUE = ISO_8601_DATE_DISPLAY_VALUE;
12491
12497
  exports.LONG_DATE_DISPLAY_VALUE = LONG_DATE_DISPLAY_VALUE;
12492
- exports.MTNA_WF_API_TOKEN = MTNA_WF_API_TOKEN;
12493
12498
  exports.MTNA_WF_DEFAULT_YEAR_RANGE = MTNA_WF_DEFAULT_YEAR_RANGE;
12494
12499
  exports.MTNA_WF_EXPAND_COLLAPSE = MTNA_WF_EXPAND_COLLAPSE;
12495
12500
  exports.MTNA_WF_FORM_ITEM_VALIDATION_RESULT_ERROR_NAME = MTNA_WF_FORM_ITEM_VALIDATION_RESULT_ERROR_NAME;