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

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.
@@ -1278,7 +1278,7 @@
1278
1278
  function isTemplateItemDesign(design) {
1279
1279
  switch (design.type) {
1280
1280
  case webFormTs.BOOLEAN_ITEM_TEMPLATE_ID:
1281
- // case BULLETED_LIST_ITEM_TEMPLATE_ID:
1281
+ case webFormTs.BULLETED_LIST_ITEM_TEMPLATE_ID:
1282
1282
  case webFormTs.CHECKBOX_GRID_TEMPLATE_ID:
1283
1283
  case webFormTs.CHECKBOX_ITEM_TEMPLATE_ID:
1284
1284
  case webFormTs.DATE_ITEM_TEMPLATE_ID:
@@ -1291,7 +1291,7 @@
1291
1291
  case webFormTs.LINEAR_SCALE_ITEM_TEMPLATE_ID:
1292
1292
  case webFormTs.MULTIPLE_CHOICE_GRID_ITEM_TEMPLATE_ID:
1293
1293
  case webFormTs.MULTIPLE_CHOICE_ITEM_TEMPLATE_ID:
1294
- // case NUMBERED_LIST_ITEM_TEMPLATE_ID:
1294
+ case webFormTs.NUMBERED_LIST_ITEM_TEMPLATE_ID:
1295
1295
  case webFormTs.OFFSET_DATE_RANGE_ITEM_TEMPLATE_ID:
1296
1296
  case webFormTs.PARAGRAPH_ANSWER_ITEM_TEMPLATE_ID:
1297
1297
  case webFormTs.REPEATABLE_ITEM_TEMPLATE_IMPL_ID:
@@ -1311,7 +1311,7 @@
1311
1311
  }
1312
1312
  function isTemplateItem(something) {
1313
1313
  return (webFormTs.instanceOfBooleanItemTemplate(something) ||
1314
- // instanceOfBulletedListItemTemplate(something) ||
1314
+ webFormTs.instanceOfBulletedListItemTemplate(something) ||
1315
1315
  webFormTs.instanceOfCheckboxGridTemplate(something) ||
1316
1316
  webFormTs.instanceOfCheckboxItemTemplate(something) ||
1317
1317
  webFormTs.instanceOfDateItemTemplate(something) ||
@@ -1324,7 +1324,7 @@
1324
1324
  webFormTs.instanceOfLinearScaleItemTemplate(something) ||
1325
1325
  webFormTs.instanceOfMultipleChoiceGridItemTemplate(something) ||
1326
1326
  webFormTs.instanceOfMultipleChoiceItemTemplate(something) ||
1327
- // instanceOfNumberedListItemTemplate(something) ||
1327
+ webFormTs.instanceOfNumberedListItemTemplate(something) ||
1328
1328
  webFormTs.instanceOfOffsetDateRangeTemplate(something) ||
1329
1329
  webFormTs.instanceOfParagraphAnswerItemTemplate(something) ||
1330
1330
  webFormTs.instanceOfRepeatableItemTemplate(something) ||
@@ -2551,7 +2551,6 @@
2551
2551
  };
2552
2552
  BulletedListItemTemplateMapper.prototype.getSectionItemBulletedList = function (item) {
2553
2553
  var properties = [];
2554
- // TODO need to handle for repeated literals, add new type of REPEATED_STRING_I18N(?) and component to handle input
2555
2554
  properties.push(designerTs.getI18nListDesignProperty(i18n_values, i18n_valuesInstructions, prop_item_values, i18n_listValue, i18n_newListValue, item.values));
2556
2555
  return { display: i18n_bulletedListConfiguration, properties: properties };
2557
2556
  };
@@ -2793,7 +2792,6 @@
2793
2792
  };
2794
2793
  NumberedListItemTemplateMapper.prototype.getSectionItemNumberedList = function (item) {
2795
2794
  var properties = [];
2796
- // TODO need to handle for repeated literals, add new type of REPEATED_STRING_I18N(?) and component to handle input
2797
2795
  properties.push(designerTs.getI18nListDesignProperty(i18n_items, i18n_templateItemsInstructions, prop_item_items, i18n_item, i18n_newItem, item.items));
2798
2796
  return { display: i18n_numberedListConfiguration, properties: properties };
2799
2797
  };
@@ -6026,7 +6024,7 @@
6026
6024
  function MtnaWfApiService(apiConfig, http) {
6027
6025
  this.apiConfig = apiConfig;
6028
6026
  this.http = http;
6029
- this.API_URL = this.apiConfig.baseUrl + "/api";
6027
+ this.API_URL = "" + this.apiConfig.baseUrl;
6030
6028
  this.FORM_URL = this.API_URL + "/form";
6031
6029
  this.TEMPLATE_URL = this.API_URL + "/template";
6032
6030
  this.NEW_TEMPLATE_URL = this.TEMPLATE_URL + "/new";
@@ -7607,6 +7605,9 @@
7607
7605
  enumerable: false,
7608
7606
  configurable: true
7609
7607
  });
7608
+ MtnaWfStepCardComponent.prototype.handleMouseEnter = function (event) {
7609
+ this.handleFocusChange('mouse');
7610
+ };
7610
7611
  Object.defineProperty(MtnaWfStepCardComponent.prototype, "step", {
7611
7612
  // @Input() step: FormStep | null | undefined;
7612
7613
  get: function () {
@@ -7626,7 +7627,7 @@
7626
7627
  return MtnaWfStepCardComponent;
7627
7628
  }(_StepCardMixinBase));
7628
7629
  MtnaWfStepCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
7629
- MtnaWfStepCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: { color: "color", step: "step", subtitle: "subtitle" }, outputs: { focused: "focused" }, host: { properties: { "class.active": "this.active" } }, usesInheritance: true, ngImport: i0__namespace, template: "<mat-card cdkMonitorSubtreeFocus (cdkFocusChange)=\"handleFocusChange($event)\">\n <mat-card-header>\n <mtna-status-circle mat-card-avatar [circleNumber]=\"step?.num\" [optional]=\"step?.optional\" [status]=\"step?.status\"></mtna-status-circle>\n <mat-card-title>{{ step?.label }}</mat-card-title>\n <mat-card-subtitle [innerHTML]=\"subtitle | mtnaWfSanitizeHtml\"></mat-card-subtitle>\n <p *ngIf=\"step?.optional\" class=\"optional mat-caption\" i18n>Optional</p>\n </mat-card-header>\n\n <mat-divider [inset]=\"true\"></mat-divider>\n\n <mat-card-content>\n <ng-content select=\"[cardContent]\"></ng-content>\n </mat-card-content>\n\n <mat-card-actions>\n <ng-content select=\"[cardActions]\"></ng-content>\n </mat-card-actions>\n</mat-card>\n", styles: ["mtna-wf-step-card{display:block;position:relative}mtna-wf-step-card.active:before{transform-origin:top;transform:scaleY(1)}mtna-wf-step-card:before{content:\"\";display:block;position:absolute;top:0;left:0;bottom:0;width:5px;transition:transform .4s cubic-bezier(.25,.8,.25,1);transform-origin:bottom;transform:scaleY(0);z-index:1;border-top-left-radius:2px;border-bottom-left-radius:2px}mtna-wf-step-card mat-card-header{position:relative}mtna-wf-step-card mat-card-header mat-card-title{line-height:24px;margin-right:100px}mtna-wf-step-card mat-card-header mtna-status-circle[mat-card-avatar]{width:24px;height:24px}mtna-wf-step-card mat-card-header>.optional:not(.mtna-status-circle){position:absolute;right:16px;top:0;margin:0;line-height:24px}mtna-wf-step-card mat-card-actions{padding:0;margin:0}mtna-wf-step-card mat-card-content{margin-top:16px}mtna-wf-step-card mat-card-content [cardcontent]>:first-child{margin-top:0}\n"], components: [{ type: i1__namespace$4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i1__namespace$4.MatCardHeader, selector: "mat-card-header" }, { type: i1__namespace$1.MtnaStatusCircleComponent, selector: "mtna-status-circle", inputs: ["color", "circleNumber", "incompleteIcon", "status", "validIcon", "optional"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i4__namespace.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1__namespace$4.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i1__namespace$4.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i1__namespace$4.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1__namespace$4.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }], pipes: { "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
7630
+ MtnaWfStepCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfStepCardComponent, selector: "mtna-wf-step-card", inputs: { color: "color", step: "step", subtitle: "subtitle" }, outputs: { focused: "focused" }, host: { listeners: { "mouseenter": "handleMouseEnter($event)" }, properties: { "class.active": "this.active" } }, usesInheritance: true, ngImport: i0__namespace, template: "<mat-card cdkMonitorSubtreeFocus (cdkFocusChange)=\"handleFocusChange($event)\">\n <mat-card-header>\n <mtna-status-circle mat-card-avatar [circleNumber]=\"step?.num\" [optional]=\"step?.optional\" [status]=\"step?.status\"></mtna-status-circle>\n <mat-card-title>{{ step?.label }}</mat-card-title>\n <mat-card-subtitle [innerHTML]=\"subtitle | mtnaWfSanitizeHtml\"></mat-card-subtitle>\n <p *ngIf=\"step?.optional\" class=\"optional mat-caption\" i18n>Optional</p>\n </mat-card-header>\n\n <mat-divider [inset]=\"true\"></mat-divider>\n\n <mat-card-content>\n <ng-content select=\"[cardContent]\"></ng-content>\n </mat-card-content>\n\n <mat-card-actions>\n <ng-content select=\"[cardActions]\"></ng-content>\n </mat-card-actions>\n</mat-card>\n", styles: ["mtna-wf-step-card{display:block;position:relative}mtna-wf-step-card.active:before{transform-origin:top;transform:scaleY(1)}mtna-wf-step-card:before{content:\"\";display:block;position:absolute;top:0;left:0;bottom:0;width:5px;transition:transform .4s cubic-bezier(.25,.8,.25,1);transform-origin:bottom;transform:scaleY(0);z-index:1;border-top-left-radius:2px;border-bottom-left-radius:2px}mtna-wf-step-card mat-card-header{position:relative}mtna-wf-step-card mat-card-header mat-card-title{line-height:24px;margin-right:100px}mtna-wf-step-card mat-card-header mtna-status-circle[mat-card-avatar]{width:24px;height:24px}mtna-wf-step-card mat-card-header>.optional:not(.mtna-status-circle){position:absolute;right:16px;top:0;margin:0;line-height:24px}mtna-wf-step-card mat-card-actions{padding:0;margin:0}mtna-wf-step-card mat-card-content{margin-top:16px}mtna-wf-step-card mat-card-content [cardcontent]>:first-child{margin-top:0}\n"], components: [{ type: i1__namespace$4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i1__namespace$4.MatCardHeader, selector: "mat-card-header" }, { type: i1__namespace$1.MtnaStatusCircleComponent, selector: "mtna-status-circle", inputs: ["color", "circleNumber", "incompleteIcon", "status", "validIcon", "optional"] }, { type: i2__namespace$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i4__namespace.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1__namespace$4.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i1__namespace$4.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i1__namespace$4.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1__namespace$4.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }], pipes: { "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
7630
7631
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardComponent, decorators: [{
7631
7632
  type: i0.Component,
7632
7633
  args: [{
@@ -7640,6 +7641,9 @@
7640
7641
  }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { active: [{
7641
7642
  type: i0.HostBinding,
7642
7643
  args: ['class.active']
7644
+ }], handleMouseEnter: [{
7645
+ type: i0.HostListener,
7646
+ args: ['mouseenter', ['$event']]
7643
7647
  }], step: [{
7644
7648
  type: i0.Input
7645
7649
  }], subtitle: [{
@@ -12173,15 +12177,35 @@
12173
12177
  }] });
12174
12178
  var templateObject_1;
12175
12179
 
12180
+ var MtnaWfUnorderedListItemTemplateComponent = /** @class */ (function (_super) {
12181
+ __extends(MtnaWfUnorderedListItemTemplateComponent, _super);
12182
+ function MtnaWfUnorderedListItemTemplateComponent() {
12183
+ return _super !== null && _super.apply(this, arguments) || this;
12184
+ }
12185
+ return MtnaWfUnorderedListItemTemplateComponent;
12186
+ }(MtnaWfBaseTemplateItemComponent));
12187
+ MtnaWfUnorderedListItemTemplateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemTemplateComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
12188
+ MtnaWfUnorderedListItemTemplateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfUnorderedListItemTemplateComponent, selector: "mtna-wf-unordered-list-item-template", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"template\">\n <ul>\n <ng-container *ngIf=\"displayLocale | getI18nStringsValueFromLocale : template.values as values\">\n <li *ngFor=\"let value of values\" [innerHTML]=\"value | mtnaWfSanitizeHtml\"></li>\n </ng-container>\n </ul>\n</ng-container>\n", styles: ["mtna-wf-unordered-list-item-template>ul{list-style:disc outside;padding-left:1rem}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "getI18nStringsValueFromLocale": GetI18nStringsValueFromLocalePipe, "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
12189
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemTemplateComponent, decorators: [{
12190
+ type: i0.Component,
12191
+ args: [{
12192
+ selector: 'mtna-wf-unordered-list-item-template',
12193
+ templateUrl: './unordered-list-item.component.html',
12194
+ styleUrls: ['./unordered-list-item.component.scss'],
12195
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
12196
+ encapsulation: i0.ViewEncapsulation.None,
12197
+ }]
12198
+ }] });
12199
+
12176
12200
  var MTNA_WF_TEMPLATE_ITEM_INJECTED_COMPONENTS = [
12177
12201
  {
12178
12202
  key: webFormTs.BOOLEAN_ITEM_TEMPLATE_ID,
12179
12203
  component: MtnaWfBooleanItemTemplateComponent,
12180
12204
  },
12181
- // {
12182
- // key: BULLETED_LIST_ITEM_TEMPLATE_ID,
12183
- // component: MtnaWfUnorderedListItemTemplateComponent,
12184
- // },
12205
+ {
12206
+ key: webFormTs.BULLETED_LIST_ITEM_TEMPLATE_ID,
12207
+ component: MtnaWfUnorderedListItemTemplateComponent,
12208
+ },
12185
12209
  {
12186
12210
  key: webFormTs.CHECKBOX_ITEM_TEMPLATE_ID,
12187
12211
  component: MtnaWfCheckboxItemTemplateComponent,
@@ -12218,10 +12242,10 @@
12218
12242
  key: webFormTs.OFFSET_DATE_RANGE_ITEM_TEMPLATE_ID,
12219
12243
  component: MtnaWfOffsetDateRangeItemTemplateComponent,
12220
12244
  },
12221
- // {
12222
- // key: NUMBERED_LIST_ITEM_TEMPLATE_ID,
12223
- // component: MtnaWfOrderedListItemTemplateComponent,
12224
- // },
12245
+ {
12246
+ key: webFormTs.NUMBERED_LIST_ITEM_TEMPLATE_ID,
12247
+ component: MtnaWfOrderedListItemTemplateComponent,
12248
+ },
12225
12249
  {
12226
12250
  key: webFormTs.PARAGRAPH_ANSWER_ITEM_TEMPLATE_ID,
12227
12251
  component: MtnaWfParagraphAnswerItemTemplateComponent,
@@ -12361,26 +12385,6 @@
12361
12385
  }]
12362
12386
  }] });
12363
12387
 
12364
- var MtnaWfUnorderedListItemTemplateComponent = /** @class */ (function (_super) {
12365
- __extends(MtnaWfUnorderedListItemTemplateComponent, _super);
12366
- function MtnaWfUnorderedListItemTemplateComponent() {
12367
- return _super !== null && _super.apply(this, arguments) || this;
12368
- }
12369
- return MtnaWfUnorderedListItemTemplateComponent;
12370
- }(MtnaWfBaseTemplateItemComponent));
12371
- MtnaWfUnorderedListItemTemplateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemTemplateComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
12372
- MtnaWfUnorderedListItemTemplateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfUnorderedListItemTemplateComponent, selector: "mtna-wf-unordered-list-item-template", usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"template\">\n <ul>\n <ng-container *ngIf=\"displayLocale | getI18nStringsValueFromLocale : template.values as values\">\n <li *ngFor=\"let value of values\" [innerHTML]=\"value | mtnaWfSanitizeHtml\"></li>\n </ng-container>\n </ul>\n</ng-container>\n", styles: ["mtna-wf-unordered-list-item-template>ul{list-style:disc outside;padding-left:1rem}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "getI18nStringsValueFromLocale": GetI18nStringsValueFromLocalePipe, "mtnaWfSanitizeHtml": MtnaWfSanitizeHtmlPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
12373
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfUnorderedListItemTemplateComponent, decorators: [{
12374
- type: i0.Component,
12375
- args: [{
12376
- selector: 'mtna-wf-unordered-list-item-template',
12377
- templateUrl: './unordered-list-item.component.html',
12378
- styleUrls: ['./unordered-list-item.component.scss'],
12379
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
12380
- encapsulation: i0.ViewEncapsulation.None,
12381
- }]
12382
- }] });
12383
-
12384
12388
  var MtnaWfUnorderedListItemTemplateModule = /** @class */ (function () {
12385
12389
  function MtnaWfUnorderedListItemTemplateModule() {
12386
12390
  }