@igo2/common 1.9.1 → 1.9.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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/button'), require('@angular/material/card'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/tooltip'), require('@igo2/core'), require('typy'), require('rxjs'), require('rxjs/operators'), require('@igo2/utils'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('scroll-into-view-if-needed'), require('@angular/material/paginator'), require('@angular/common/http'), require('ts-cacheable'), require('@ngx-translate/core'), require('@angular/platform-browser'), require('@angular/cdk/overlay'), require('@angular/material/badge'), require('@angular/material/dialog'), require('@angular/cdk/portal'), require('@angular/material/input'), require('@angular/forms'), require('angular-shepherd'), require('@angular/material/sidenav'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/cdk/collections'), require('@angular/animations')) :
3
3
  typeof define === 'function' && define.amd ? define('@igo2/common', ['exports', '@angular/core', '@angular/common', '@angular/material/button', '@angular/material/card', '@angular/material/checkbox', '@angular/material/icon', '@angular/material/list', '@angular/material/menu', '@angular/material/tooltip', '@igo2/core', 'typy', 'rxjs', 'rxjs/operators', '@igo2/utils', '@angular/material/form-field', '@angular/material/select', '@angular/material/core', '@angular/material/table', '@angular/material/sort', 'scroll-into-view-if-needed', '@angular/material/paginator', '@angular/common/http', 'ts-cacheable', '@ngx-translate/core', '@angular/platform-browser', '@angular/cdk/overlay', '@angular/material/badge', '@angular/material/dialog', '@angular/cdk/portal', '@angular/material/input', '@angular/forms', 'angular-shepherd', '@angular/material/sidenav', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/cdk/collections', '@angular/animations'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.common = {}), global.ng.core, global.ng.common, global.ng.material.button, global.ng.material.card, global.ng.material.checkbox, global.ng.material.icon, global.ng.material.list, global.ng.material.menu, global.ng.material.tooltip, global.core, global.typy, global.rxjs, global.rxjs.operators, global.utils, global.ng.material.formField, global.ng.material.select, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.scrollIntoView, global.ng.material.paginator, global.ng.common.http, global.tsCacheable, global['ngxt-core'], global.ng.platformBrowser, global.ng.cdk.overlay, global.ng.material.badge, global.ng.material.dialog, global.ng.cdk.portal, global.ng.material.input, global.ng.forms, global.angularShepherd, global.ng.material.sidenav, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.cdk.collections, global.ng.animations));
5
- }(this, (function (exports, i0, i1$1, i4$2, i10, i4$1, i5, i1$6, i9, i6, i1$2, t, rxjs, operators, utils, i1, i2, i4, i1$5, i2$2, scrollIntoView, i2$1, i1$3, tsCacheable, i11, i1$4, i1$7, badge, i1$8, portal, i2$3, i3, i3$1, i1$9, i2$4, table, collections, animations) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.common = {}), global.ng.core, global.ng.common, global.ng.material.button, global.ng.material.card, global.ng.material.checkbox, global.ng.material.icon, global.ng.material.list, global.ng.material.menu, global.ng.material.tooltip, global.core, global.typy, global.rxjs, global.rxjs.operators, global.utils, global.ng.material.formField, global.ng.material.select, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.scrollIntoView, global.ng.material.paginator, global.ng.common.http, global.tsCacheable, global["ngxt-core"], global.ng.platformBrowser, global.ng.cdk.overlay, global.ng.material.badge, global.ng.material.dialog, global.ng.cdk.portal, global.ng.material.input, global.ng.forms, global.angularShepherd, global.ng.material.sidenav, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.cdk.collections, global.ng.animations));
5
+ })(this, (function (exports, i0, i1$1, i4$2, i10, i4$1, i5, i1$6, i9, i6, i1$2, t, rxjs, operators, utils, i1, i2, i4, i1$5, i2$2, scrollIntoView, i2$1, i1$3, tsCacheable, i11, i1$4, i1$7, badge, i1$8, portal, i2$3, i3, i3$1, i1$9, i2$4, table, collections, animations) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -15,14 +15,12 @@
15
15
  var d = Object.getOwnPropertyDescriptor(e, k);
16
16
  Object.defineProperty(n, k, d.get ? d : {
17
17
  enumerable: true,
18
- get: function () {
19
- return e[k];
20
- }
18
+ get: function () { return e[k]; }
21
19
  });
22
20
  }
23
21
  });
24
22
  }
25
- n['default'] = e;
23
+ n["default"] = e;
26
24
  return Object.freeze(n);
27
25
  }
28
26
 
@@ -412,7 +410,7 @@
412
410
  * @returns Property value
413
411
  */
414
412
  function getEntityProperty(entity, property) {
415
- return t__default['default'](entity, property).safeObject;
413
+ return t__default["default"](entity, property).safeObject;
416
414
  }
417
415
  /**
418
416
  * Get an entity's id. An entity's id can be one of:
@@ -2342,7 +2340,7 @@
2342
2340
  */
2343
2341
  EntityTableRowDirective.prototype.scroll = function () {
2344
2342
  if (this._selected === true) {
2345
- scrollIntoView__default['default'](this.el.nativeElement, {
2343
+ scrollIntoView__default["default"](this.el.nativeElement, {
2346
2344
  scrollMode: 'if-needed',
2347
2345
  behavior: 'smooth',
2348
2346
  block: 'end',
@@ -4517,6 +4515,11 @@
4517
4515
  })();
4518
4516
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoBackdropModule, { declarations: [BackdropComponent], imports: [i1$1.CommonModule], exports: [BackdropComponent] }); })();
4519
4517
 
4518
+ /**
4519
+ * This directive allow to add an icon inside a matBadge.
4520
+ * A value must be set into the matBadge directive ex: matBadge="icon".
4521
+ * The badge content will be overrided by this current directive.
4522
+ */
4520
4523
  var IgoBadgeIconDirective = /** @class */ (function () {
4521
4524
  function IgoBadgeIconDirective(el, matIconRegistry) {
4522
4525
  this.el = el;
@@ -6161,11 +6164,11 @@
6161
6164
  };
6162
6165
  FormComponent.prototype.setData = function (data) {
6163
6166
  this.form.fields.forEach(function (field) {
6164
- field.control.setValue(t__default['default'](data, field.name).safeObject);
6167
+ field.control.setValue(t__default["default"](data, field.name).safeObject);
6165
6168
  });
6166
6169
  this.form.groups.forEach(function (group) {
6167
6170
  group.fields.forEach(function (field) {
6168
- field.control.setValue(t__default['default'](data, field.name).safeObject);
6171
+ field.control.setValue(t__default["default"](data, field.name).safeObject);
6169
6172
  });
6170
6173
  });
6171
6174
  };
@@ -7128,6 +7131,83 @@
7128
7131
  IgoFormFieldModule] });
7129
7132
  })();
7130
7133
 
7134
+ var HomeButtonComponent = /** @class */ (function () {
7135
+ function HomeButtonComponent() {
7136
+ this.unselectButton = new i0.EventEmitter();
7137
+ }
7138
+ HomeButtonComponent.prototype.onUnselectButtonClick = function () {
7139
+ this.unselectButton.emit();
7140
+ };
7141
+ return HomeButtonComponent;
7142
+ }());
7143
+ HomeButtonComponent.ɵfac = function HomeButtonComponent_Factory(t) { return new (t || HomeButtonComponent)(); };
7144
+ HomeButtonComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: HomeButtonComponent, selectors: [["igo-home-button"]], outputs: { unselectButton: "unselectButton" }, decls: 3, vars: 3, consts: [["id", "homeButton", "mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", "click"], ["svgIcon", "home"]], template: function HomeButtonComponent_Template(rf, ctx) {
7145
+ if (rf & 1) {
7146
+ i0__namespace.ɵɵelementStart(0, "button", 0);
7147
+ i0__namespace.ɵɵlistener("click", function HomeButtonComponent_Template_button_click_0_listener() { return ctx.onUnselectButtonClick(); });
7148
+ i0__namespace.ɵɵpipe(1, "translate");
7149
+ i0__namespace.ɵɵelement(2, "mat-icon", 1);
7150
+ i0__namespace.ɵɵelementEnd();
7151
+ }
7152
+ if (rf & 2) {
7153
+ i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 1, "igo.context.sidenav.mainMenu"));
7154
+ }
7155
+ }, directives: [i4__namespace$2.MatButton, i6__namespace.MatTooltip, i5__namespace.MatIcon], pipes: [i11__namespace.TranslatePipe], styles: ["#homeButton[_ngcontent-%COMP%]{position:absolute;top:50px;left:0px;border-radius:0;height:46px;width:48px}"] });
7156
+ (function () {
7157
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(HomeButtonComponent, [{
7158
+ type: i0.Component,
7159
+ args: [{
7160
+ selector: 'igo-home-button',
7161
+ templateUrl: './home-button.component.html',
7162
+ styleUrls: ['./home-button.component.scss']
7163
+ }]
7164
+ }], function () { return []; }, { unselectButton: [{
7165
+ type: i0.Output
7166
+ }] });
7167
+ })();
7168
+
7169
+ /**
7170
+ * @ignore
7171
+ */
7172
+ var IgoHomeButtonModule = /** @class */ (function () {
7173
+ function IgoHomeButtonModule() {
7174
+ }
7175
+ return IgoHomeButtonModule;
7176
+ }());
7177
+ IgoHomeButtonModule.ɵfac = function IgoHomeButtonModule_Factory(t) { return new (t || IgoHomeButtonModule)(); };
7178
+ IgoHomeButtonModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoHomeButtonModule });
7179
+ IgoHomeButtonModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ providers: [], imports: [[
7180
+ i1$1.CommonModule,
7181
+ i5.MatIconModule,
7182
+ i4$2.MatButtonModule,
7183
+ i6.MatTooltipModule,
7184
+ i1$2.IgoLanguageModule
7185
+ ]] });
7186
+ (function () {
7187
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoHomeButtonModule, [{
7188
+ type: i0.NgModule,
7189
+ args: [{
7190
+ imports: [
7191
+ i1$1.CommonModule,
7192
+ i5.MatIconModule,
7193
+ i4$2.MatButtonModule,
7194
+ i6.MatTooltipModule,
7195
+ i1$2.IgoLanguageModule
7196
+ ],
7197
+ exports: [HomeButtonComponent],
7198
+ declarations: [HomeButtonComponent],
7199
+ providers: []
7200
+ }]
7201
+ }], null, null);
7202
+ })();
7203
+ (function () {
7204
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoHomeButtonModule, { declarations: [HomeButtonComponent], imports: [i1$1.CommonModule,
7205
+ i5.MatIconModule,
7206
+ i4$2.MatButtonModule,
7207
+ i6.MatTooltipModule,
7208
+ i1$2.IgoLanguageModule], exports: [HomeButtonComponent] });
7209
+ })();
7210
+
7131
7211
  /**
7132
7212
  * @ignore
7133
7213
  */
@@ -7387,7 +7467,7 @@
7387
7467
  .subscribe(function (data) {
7388
7468
  _this.allToursOptions = data;
7389
7469
  }, function (err) {
7390
- throw new Error('Problem with Interactive tour configuration file: interactiveTour.json not find. Check if the file and is path is set correctly.');
7470
+ throw new Error("Problem with Interactive tour configuration file: interactiveTour.json not find. Check if the file and is path is set correctly.");
7391
7471
  });
7392
7472
  };
7393
7473
  InteractiveTourLoader.prototype.getPathToConfigFile = function () {
@@ -9732,7 +9812,7 @@
9732
9812
  }
9733
9813
  if (rf & 2) {
9734
9814
  var ctx_r0 = i0__namespace.ɵɵnextContext();
9735
- i0__namespace.ɵɵproperty("store", ctx_r0.actionStore)("withIcon", true)("withTitle", i0__namespace.ɵɵpipeBind1(1, 6, ctx_r0.toolbarWithTitle$))("withTooltip", !i0__namespace.ɵɵpipeBind1(2, 8, ctx_r0.toolbarWithTitle$))("scrollActive", i0__namespace.ɵɵpipeBind1(3, 10, ctx_r0.toolbarWithTitle$))("horizontal", false);
9815
+ i0__namespace.ɵɵproperty("store", ctx_r0.actionStore)("withIcon", true)("withTitle", i0__namespace.ɵɵpipeBind1(1, 6, ctx_r0.toolbarWithTitle$))("withTooltip", i0__namespace.ɵɵpipeBind1(2, 8, ctx_r0.toolbarWithTitle$) === false)("scrollActive", i0__namespace.ɵɵpipeBind1(3, 10, ctx_r0.toolbarWithTitle$))("horizontal", false);
9736
9816
  }
9737
9817
  }
9738
9818
  var _c0 = function (a0, a1) { return { "igo-tool-container-with-toolbar": a0, "igo-tool-container-with-animation": a1 }; };
@@ -10843,6 +10923,7 @@
10843
10923
  exports.FormFieldService = FormFieldService;
10844
10924
  exports.FormGroupComponent = FormGroupComponent;
10845
10925
  exports.FormService = FormService;
10926
+ exports.HomeButtonComponent = HomeButtonComponent;
10846
10927
  exports.IgoActionModule = IgoActionModule;
10847
10928
  exports.IgoActionbarModule = IgoActionbarModule;
10848
10929
  exports.IgoBackdropModule = IgoBackdropModule;
@@ -10866,6 +10947,7 @@
10866
10947
  exports.IgoFormFormModule = IgoFormFormModule;
10867
10948
  exports.IgoFormGroupModule = IgoFormGroupModule;
10868
10949
  exports.IgoFormModule = IgoFormModule;
10950
+ exports.IgoHomeButtonModule = IgoHomeButtonModule;
10869
10951
  exports.IgoImageModule = IgoImageModule;
10870
10952
  exports.IgoInteractiveTourModule = IgoInteractiveTourModule;
10871
10953
  exports.IgoJsonDialogModule = IgoJsonDialogModule;
@@ -10928,5 +11010,5 @@
10928
11010
 
10929
11011
  Object.defineProperty(exports, '__esModule', { value: true });
10930
11012
 
10931
- })));
11013
+ }));
10932
11014
  //# sourceMappingURL=igo2-common.umd.js.map