@theseam/ui-common 0.4.0-beta.4 → 0.4.0-beta.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 (50) hide show
  1. package/esm2020/checkbox/testing/checkbox.harness.mjs +1 -1
  2. package/esm2020/checkbox/testing/index.mjs +1 -1
  3. package/esm2020/form-field/form-field-tokens.mjs +1 -1
  4. package/esm2020/form-field/testing/form-field-required-indicator.harness.mjs +1 -1
  5. package/esm2020/form-field/testing/index.mjs +1 -1
  6. package/esm2020/framework/dashboard/dashboard-widgets-tokens.mjs +1 -1
  7. package/esm2020/framework/side-nav/side-nav-tokens.mjs +1 -1
  8. package/esm2020/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.mjs +103 -0
  9. package/esm2020/google-maps/google-maps-api-loader/noop-google-maps-api-loader.mjs +25 -0
  10. package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.mjs +3 -3
  11. package/esm2020/google-maps/public-api.mjs +4 -1
  12. package/esm2020/tabbed/tabbed-models.mjs +1 -1
  13. package/esm2020/utils/file-utils.mjs +2 -3
  14. package/esm2020/utils/geo-json/coerce-feature-collection.mjs +1 -1
  15. package/esm2020/utils/geo-json/geo-json-to-area.mjs +1 -1
  16. package/esm2020/utils/geo-json/is-feature-collection.validator.mjs +1 -1
  17. package/esm2020/utils/geo-json/is-only-geometry-types.mjs +1 -1
  18. package/esm2020/utils/geo-json/is-only-geometry-types.validator.mjs +1 -1
  19. package/esm2020/utils/geo-json/merge-polygons.mjs +1 -1
  20. package/esm2020/utils/geo-json/no-inner-rings.validator.mjs +1 -1
  21. package/esm2020/utils/geo-json/read-geo-file.mjs +5 -2
  22. package/esm2020/utils/geo-json/split-multi-polygons.mjs +1 -1
  23. package/esm2020/widget/widget/widget.component.mjs +29 -32
  24. package/esm2020/widget/widget-registry.service.mjs +2 -2
  25. package/esm2020/widget/widget.module.mjs +6 -6
  26. package/fesm2015/theseam-ui-common-checkbox.mjs.map +1 -1
  27. package/fesm2015/theseam-ui-common-form-field.mjs.map +1 -1
  28. package/fesm2015/theseam-ui-common-framework.mjs.map +1 -1
  29. package/fesm2015/theseam-ui-common-google-maps.mjs +127 -5
  30. package/fesm2015/theseam-ui-common-google-maps.mjs.map +1 -1
  31. package/fesm2015/theseam-ui-common-utils.mjs +5 -4
  32. package/fesm2015/theseam-ui-common-utils.mjs.map +1 -1
  33. package/fesm2015/theseam-ui-common-widget.mjs +34 -37
  34. package/fesm2015/theseam-ui-common-widget.mjs.map +1 -1
  35. package/fesm2020/theseam-ui-common-checkbox.mjs.map +1 -1
  36. package/fesm2020/theseam-ui-common-form-field.mjs.map +1 -1
  37. package/fesm2020/theseam-ui-common-framework.mjs.map +1 -1
  38. package/fesm2020/theseam-ui-common-google-maps.mjs +125 -5
  39. package/fesm2020/theseam-ui-common-google-maps.mjs.map +1 -1
  40. package/fesm2020/theseam-ui-common-utils.mjs +5 -4
  41. package/fesm2020/theseam-ui-common-utils.mjs.map +1 -1
  42. package/fesm2020/theseam-ui-common-widget.mjs +34 -37
  43. package/fesm2020/theseam-ui-common-widget.mjs.map +1 -1
  44. package/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.d.ts +73 -0
  45. package/google-maps/google-maps-api-loader/noop-google-maps-api-loader.d.ts +13 -0
  46. package/google-maps/public-api.d.ts +3 -0
  47. package/package.json +1 -1
  48. package/utils/file-utils.d.ts +1 -1
  49. package/utils/geo-json/read-geo-file.d.ts +1 -1
  50. package/widget/widget/widget.component.d.ts +1 -6
@@ -982,26 +982,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
982
982
  * used then the situation should be considered for becoming a widget component.
983
983
  */
984
984
  class WidgetComponent {
985
- /**
986
- * Icon displayed in the top header.
987
- *
988
- * If a more advanced icon is needed you can use `seamWidgetIconTpl` template
989
- * directive, but a `SeamIcon` input is recommended, because allowing custom
990
- * icons that do not follow the tested types can lead to inconsitency quickly
991
- * as different developers keep making tweaks.
992
- */
993
- get icon() { return this._iconUrl || this._iconObj; }
994
- set icon(value) {
995
- if (typeof value === 'string') {
996
- this._iconUrl = value;
997
- this._iconObj = undefined;
998
- }
999
- else {
1000
- this._iconUrl = undefined;
1001
- this._iconObj = value;
1002
- }
1003
- }
1004
- /** @ignore */
1005
985
  constructor() {
1006
986
  /** @ignore */
1007
987
  this.configIcon = faCog;
@@ -1022,8 +1002,25 @@ class WidgetComponent {
1022
1002
  // NOTE: Collapse is still being worked on.
1023
1003
  this.canCollapse = false;
1024
1004
  }
1025
- /** @ignore */
1026
- ngOnInit() { }
1005
+ /**
1006
+ * Icon displayed in the top header.
1007
+ *
1008
+ * If a more advanced icon is needed you can use `seamWidgetIconTpl` template
1009
+ * directive, but a `SeamIcon` input is recommended, because allowing custom
1010
+ * icons that do not follow the tested types can lead to inconsitency quickly
1011
+ * as different developers keep making tweaks.
1012
+ */
1013
+ get icon() { return this._iconUrl || this._iconObj; }
1014
+ set icon(value) {
1015
+ if (typeof value === 'string') {
1016
+ this._iconUrl = value;
1017
+ this._iconObj = undefined;
1018
+ }
1019
+ else {
1020
+ this._iconUrl = undefined;
1021
+ this._iconObj = value;
1022
+ }
1023
+ }
1027
1024
  /**
1028
1025
  * Toggles a widget's collapsed state.
1029
1026
  *
@@ -1040,13 +1037,13 @@ WidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
1040
1037
  trigger('loadingAnim', [
1041
1038
  transition(':enter', [
1042
1039
  style({ opacity: 0 }),
1043
- animate('250ms ease-in-out', style({ opacity: 1 }))
1040
+ animate('250ms ease-in-out', style({ opacity: 1 })),
1044
1041
  ]),
1045
1042
  transition(':leave', [
1046
1043
  style({ opacity: 1 }),
1047
- animate('250ms ease-in-out', style({ opacity: 0 }))
1048
- ])
1049
- ])
1044
+ animate('250ms ease-in-out', style({ opacity: 0 })),
1045
+ ]),
1046
+ ]),
1050
1047
  ], encapsulation: i0.ViewEncapsulation.None });
1051
1048
  __decorate([
1052
1049
  InputBoolean()
@@ -1069,15 +1066,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
1069
1066
  trigger('loadingAnim', [
1070
1067
  transition(':enter', [
1071
1068
  style({ opacity: 0 }),
1072
- animate('250ms ease-in-out', style({ opacity: 1 }))
1069
+ animate('250ms ease-in-out', style({ opacity: 1 })),
1073
1070
  ]),
1074
1071
  transition(':leave', [
1075
1072
  style({ opacity: 1 }),
1076
- animate('250ms ease-in-out', style({ opacity: 0 }))
1077
- ])
1078
- ])
1073
+ animate('250ms ease-in-out', style({ opacity: 0 })),
1074
+ ]),
1075
+ ]),
1079
1076
  ], template: "<div class=\"seam-widget border rounded overflow-hidden\">\n <div class=\"widget-header\" seamWidgetDragHandle *ngIf=\"hasHeader\">\n <div class=\"widget-header-content p-2 text-nowrap\">\n <span class=\"mr-1 widget-header-icon\">\n <ng-container *ngIf=\"iconTpl; else noIconTpl\">\n <ng-template\n [ngTemplateOutlet]=\"iconTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: icon, icon: icon, title: titleText }\">\n </ng-template>\n </ng-container>\n <ng-template #noIconTpl>\n <fa-icon *ngIf=\"_iconObj\"\n class=\"widget-header-icon--fa {{ iconClass }}\"\n [icon]=\"_iconObj\"></fa-icon>\n <img *ngIf=\"_iconUrl\"\n class=\"widget-header-icon--img {{ iconClass }}\"\n [src]=\"_iconUrl\" [alt]=\"titleText\">\n </ng-template>\n </span>\n <span class=\"widget-header-title text-truncate\">\n <ng-container *ngIf=\"titleTpl; else noTitleTpl\">\n <ng-template\n [ngTemplateOutlet]=\"titleTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: titleText, icon: icon, title: titleText }\">\n </ng-template>\n </ng-container>\n <ng-template #noTitleTpl>{{ titleText }}</ng-template>\n </span>\n </div>\n <div class=\"widget-header-btns-container\" *ngIf=\"hasConfig || canCollapse\">\n <div *ngIf=\"hasConfig\">\n <!-- <button seamIconBtn [icon]=\"configIcon\"\n class=\"widget-header-btn-config\"\n iconType=\"\">\n <span class=\"sr-only\">Widget configuration menu</span>\n </button> -->\n <button seamButton class=\"widget-header-btn-config p-0\">\n <seam-icon class=\"d-block\" [icon]=\"configIcon\" iconClass=\"text-secondary\"></seam-icon>\n <span class=\"sr-only\">Widget configuration menu</span>\n </button>\n </div>\n\n <div *ngIf=\"canCollapse\" class=\"px-0\">\n <button seamButton class=\"widget-header-btn-collapse p-0\" (click)=\"collapse()\">\n <seam-icon class=\"d-block\" [icon]=\"collapseIcon\" iconClass=\"text-secondary\" style=\"margin-left: -10px; margin-right: -5px;\"></seam-icon>\n <span class=\"sr-only\">Widget collapse</span>\n </button>\n </div>\n </div>\n </div>\n <div class=\"position-relative\" [style.height.px]=\"loading ? 150 : undefined\">\n <ng-container *ngIf=\"!collapsed\">\n <div class=\"p-2\" *ngIf=\"!loading else loadingTpl\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"seam-widget-footer\"></ng-content>\n <ng-template #loadingTpl>\n <div class=\"position-absolute\" @loadingAnim style=\"top:0;right:0;bottom:0;left:0\">\n <seam-loading [theme]=\"'primary'\"></seam-loading>\n </div>\n </ng-template>\n </ng-container>\n </div>\n</div>\n", styles: ["seam-widget{display:block;font-size:15px}seam-widget .seam-widget{background:#FFFFFF;box-shadow:none}seam-widget .widget-header{display:flex;flex-direction:row;border-bottom:1px solid #dee2e6;background:#F4F4F4;font-size:17px}seam-widget .widget-header .widget-header-content{flex:1 1 100%}seam-widget .widget-header .widget-header-btns-container{display:flex;flex-direction:row}seam-widget .widget-header .widget-header-btns-container>div{display:flex;flex-direction:column;justify-content:center;padding:4px}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-config .seam-icon--fa{display:flex;flex-direction:row;justify-content:center;text-align:center;height:25px;width:30px}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-config .seam-icon--fa .svg-inline--fa{max-width:100%;height:100%;width:100%}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-collapse .seam-icon--fa{display:flex;flex-direction:row;justify-content:center;text-align:center;height:15px;width:30px}seam-widget .widget-header .widget-header-btns-container .widget-header-btn-collapse .seam-icon--fa .svg-inline--fa{max-width:100%;height:100%;width:100%}seam-widget .widget-header .widget-header-title{font-size:17px}seam-widget .widget-header-icon{display:inline-block;vertical-align:top;max-height:20px;max-width:20px;height:20px;width:20px;color:currentColor}seam-widget .widget-header-icon .widget-header-icon--fa{display:flex;flex-direction:row;justify-content:center;text-align:center;max-height:20px;max-width:20px;height:20px;width:20px}seam-widget .widget-header-icon .widget-header-icon--fa .svg-inline--fa{max-width:100%;height:100%;width:100%}seam-widget .widget-header-icon .widget-header-icon--img{height:100%;max-height:20px;max-width:20px}\n"] }]
1080
- }], ctorParameters: function () { return []; }, propDecorators: { collapsed: [{
1077
+ }], propDecorators: { collapsed: [{
1081
1078
  type: Input
1082
1079
  }], hasHeader: [{
1083
1080
  type: Input
@@ -1155,7 +1152,7 @@ WidgetRegistryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0"
1155
1152
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WidgetRegistryService, decorators: [{
1156
1153
  type: Injectable,
1157
1154
  args: [{
1158
- providedIn: 'root'
1155
+ providedIn: 'root',
1159
1156
  }]
1160
1157
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1161
1158
  type: Inject,
@@ -1173,7 +1170,7 @@ const contentModules = [
1173
1170
  TheSeamWidgetListGroupModule,
1174
1171
  TheSeamWidgetTableModule,
1175
1172
  TheSeamWidgetTileListModule,
1176
- TheSeamWidgetTileModule
1173
+ TheSeamWidgetTileModule,
1177
1174
  ];
1178
1175
  class TheSeamWidgetModule {
1179
1176
  }
@@ -1238,7 +1235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
1238
1235
  WidgetIconTplDirective,
1239
1236
  WidgetTitleTplDirective,
1240
1237
  WidgetDragHandleDirective,
1241
- WidgetFooterComponent
1238
+ WidgetFooterComponent,
1242
1239
  ],
1243
1240
  imports: [
1244
1241
  CommonModule,
@@ -1248,7 +1245,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
1248
1245
  DragDropModule,
1249
1246
  TheSeamButtonsModule,
1250
1247
  CdkTableModule,
1251
- ...contentModules
1248
+ ...contentModules,
1252
1249
  ],
1253
1250
  exports: [
1254
1251
  RouterModule,
@@ -1256,8 +1253,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
1256
1253
  WidgetIconTplDirective,
1257
1254
  WidgetTitleTplDirective,
1258
1255
  WidgetFooterComponent,
1259
- ...contentModules
1260
- ]
1256
+ ...contentModules,
1257
+ ],
1261
1258
  }]
1262
1259
  }] });
1263
1260