@valtimo/swagger 4.15.3-next-main.14 → 4.16.0

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
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@valtimo/security'), require('swagger-ui'), require('ngx-logger'), require('@valtimo/config'), require('@angular/router'), require('@valtimo/contract')) :
3
- typeof define === 'function' && define.amd ? define('@valtimo/swagger', ['exports', '@angular/core', '@angular/common', '@valtimo/security', 'swagger-ui', 'ngx-logger', '@valtimo/config', '@angular/router', '@valtimo/contract'], factory) :
4
- (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.swagger = {}), global.ng.core, global.ng.common, global.security, global.SwaggerUI, global.ngxLogger, global.config, global.ng.router, global.contract));
5
- }(this, (function (exports, core, common, security, SwaggerUI, ngxLogger, config, router, contract) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@valtimo/security'), require('swagger-ui'), require('ngx-logger'), require('@valtimo/config'), require('@angular/router')) :
3
+ typeof define === 'function' && define.amd ? define('@valtimo/swagger', ['exports', '@angular/core', '@angular/common', '@valtimo/security', 'swagger-ui', 'ngx-logger', '@valtimo/config', '@angular/router'], factory) :
4
+ (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.swagger = {}), global.ng.core, global.ng.common, global.security, global.SwaggerUI, global.ngxLogger, global.config, global.ng.router));
5
+ }(this, (function (exports, core, common, security, SwaggerUI, ngxLogger, config, router) { 'use strict';
6
6
 
7
7
  SwaggerUI = SwaggerUI && Object.prototype.hasOwnProperty.call(SwaggerUI, 'default') ? SwaggerUI['default'] : SwaggerUI;
8
8
 
@@ -37,13 +37,11 @@
37
37
  url: _this.valtimoSwaggerConfig.endpointUri,
38
38
  domNode: _this.el.nativeElement.querySelector('.swagger-container'),
39
39
  deepLinking: true,
40
- presets: [
41
- SwaggerUI.presets.apis
42
- ],
40
+ presets: [SwaggerUI.presets.apis],
43
41
  requestInterceptor: function (request) {
44
42
  request.headers.Authorization = "Bearer " + authToken;
45
43
  return request;
46
- }
44
+ },
47
45
  });
48
46
  });
49
47
  };
@@ -52,7 +50,7 @@
52
50
  SwaggerComponent.decorators = [
53
51
  { type: core.Component, args: [{
54
52
  selector: 'valtimo-swagger',
55
- template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class='swagger-container'></div>\n</div>\n",
53
+ template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n",
56
54
  encapsulation: core.ViewEncapsulation.None,
57
55
  styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}"]
58
56
  },] }
@@ -79,14 +77,14 @@
79
77
  * See the License for the specific language governing permissions and
80
78
  * limitations under the License.
81
79
  */
82
- var ɵ0 = { title: 'Swagger', roles: [contract.ROLE_USER] };
80
+ var ɵ0 = { title: 'Swagger', roles: [config.ROLE_USER] };
83
81
  var routes = [
84
82
  {
85
83
  path: 'swagger',
86
84
  component: SwaggerComponent,
87
85
  canActivate: [security.AuthGuardService],
88
- data: ɵ0
89
- }
86
+ data: ɵ0,
87
+ },
90
88
  ];
91
89
  var SwaggerRoutingModule = /** @class */ (function () {
92
90
  function SwaggerRoutingModule() {
@@ -95,11 +93,8 @@
95
93
  }());
96
94
  SwaggerRoutingModule.decorators = [
97
95
  { type: core.NgModule, args: [{
98
- imports: [
99
- common.CommonModule,
100
- router.RouterModule.forChild(routes),
101
- ],
102
- exports: [router.RouterModule]
96
+ imports: [common.CommonModule, router.RouterModule.forChild(routes)],
97
+ exports: [router.RouterModule],
103
98
  },] }
104
99
  ];
105
100
 
@@ -126,11 +121,8 @@
126
121
  SwaggerModule.decorators = [
127
122
  { type: core.NgModule, args: [{
128
123
  declarations: [SwaggerComponent],
129
- imports: [
130
- common.CommonModule,
131
- SwaggerRoutingModule
132
- ],
133
- exports: [SwaggerComponent]
124
+ imports: [common.CommonModule, SwaggerRoutingModule],
125
+ exports: [SwaggerComponent],
134
126
  },] }
135
127
  ];
136
128
 
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-swagger.umd.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts","../../../../projects/valtimo/swagger/src/public_api.ts","../../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class SwaggerComponent implements AfterViewInit {\n\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [\n SwaggerUI.presets.apis\n ],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n }\n });\n });\n }\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/contract';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]}\n }\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n ],\n exports: [RouterModule]\n})\nexport class SwaggerRoutingModule {\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [\n CommonModule,\n SwaggerRoutingModule\n ],\n exports: [SwaggerComponent]\n})\nexport class SwaggerModule {\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of swagger\n */\n\nexport * from './lib/swagger.module';\nexport * from './lib/swagger.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SwaggerRoutingModule as ɵa} from './lib/swagger-routing.module';"],"names":["Component","ViewEncapsulation","ConfigService","ElementRef","UserProviderService","NGXLogger","ROLE_USER","AuthGuardService","NgModule","CommonModule","RouterModule"],"mappings":";;;;;;;;IAAA;;;;;;;;;;;;;;;;QAgCE,0BACU,aAA4B,EAC5B,EAAc,EACd,mBAAwC,EACxC,MAAiB;YAHjB,kBAAa,GAAb,aAAa,CAAe;YAC5B,OAAE,GAAF,EAAE,CAAY;YACd,wBAAmB,GAAnB,mBAAmB,CAAqB;YACxC,WAAM,GAAN,MAAM,CAAW;YAEzB,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;SAC1D;QAED,0CAAe,GAAf;YAAA,iBAgBC;YAfC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAC,SAAiB;gBACzD,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAkC,SAAW,CAAC,CAAC;gBACjE,SAAS,CAAC;oBACR,GAAG,EAAE,KAAI,CAAC,oBAAoB,CAAC,WAAW;oBAC1C,OAAO,EAAE,KAAI,CAAC,EAAE,CAAC,aAAa,CAAC,aAAa,CAAC,oBAAoB,CAAC;oBAClE,WAAW,EAAE,IAAI;oBACjB,OAAO,EAAE;wBACP,SAAS,CAAC,OAAO,CAAC,IAAI;qBACvB;oBACD,kBAAkB,YAAC,OAAO;wBACxB,OAAO,CAAC,OAAO,CAAC,aAAa,GAAG,YAAU,SAAW,CAAC;wBACtD,OAAO,OAAO,CAAC;qBAChB;iBACF,CAAC,CAAC;aACJ,CAAC,CAAC;SACJ;;;;gBAnCFA,cAAS,SAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,8uBAAuC;oBAEvC,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBACtC;;;gBAPOC,oBAAa;gBAJaC,eAAU;gBACpCC,4BAAmB;gBAEnBC,mBAAS;;;ICnBjB;;;;;;;;;;;;;;;aA4BU,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAACC,kBAAS,CAAC,EAAC;IALhD,IAAM,MAAM,GAAW;QACrB;YACE,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,gBAAgB;YAC3B,WAAW,EAAE,CAACC,yBAAgB,CAAC;YAC/B,IAAI,IAAwC;SAC7C;KACF,CAAC;;QASF;;;;;gBAPCC,aAAQ,SAAC;oBACR,OAAO,EAAE;wBACPC,mBAAY;wBACZC,mBAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;qBAC9B;oBACD,OAAO,EAAE,CAACA,mBAAY,CAAC;iBACxB;;;ICtCD;;;;;;;;;;;;;;;;QA6BA;;;;;gBARCF,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE;wBACPC,mBAAY;wBACZ,oBAAoB;qBACrB;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;IC5BD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"valtimo-swagger.umd.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts","../../../../projects/valtimo/swagger/src/public_api.ts","../../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class SwaggerComponent implements AfterViewInit {\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [SwaggerUI.presets.apis],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n },\n });\n });\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SwaggerRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [CommonModule, SwaggerRoutingModule],\n exports: [SwaggerComponent],\n})\nexport class SwaggerModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of swagger\n */\n\nexport * from './lib/swagger.module';\nexport * from './lib/swagger.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SwaggerRoutingModule as ɵa} from './lib/swagger-routing.module';"],"names":["Component","ViewEncapsulation","ConfigService","ElementRef","UserProviderService","NGXLogger","ROLE_USER","AuthGuardService","NgModule","CommonModule","RouterModule"],"mappings":";;;;;;;;IAAA;;;;;;;;;;;;;;;;QA+BE,0BACU,aAA4B,EAC5B,EAAc,EACd,mBAAwC,EACxC,MAAiB;YAHjB,kBAAa,GAAb,aAAa,CAAe;YAC5B,OAAE,GAAF,EAAE,CAAY;YACd,wBAAmB,GAAnB,mBAAmB,CAAqB;YACxC,WAAM,GAAN,MAAM,CAAW;YAEzB,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;SAC1D;QAED,0CAAe,GAAf;YAAA,iBAcC;YAbC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAC,SAAiB;gBACzD,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAkC,SAAW,CAAC,CAAC;gBACjE,SAAS,CAAC;oBACR,GAAG,EAAE,KAAI,CAAC,oBAAoB,CAAC,WAAW;oBAC1C,OAAO,EAAE,KAAI,CAAC,EAAE,CAAC,aAAa,CAAC,aAAa,CAAC,oBAAoB,CAAC;oBAClE,WAAW,EAAE,IAAI;oBACjB,OAAO,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;oBACjC,kBAAkB,YAAC,OAAO;wBACxB,OAAO,CAAC,OAAO,CAAC,aAAa,GAAG,YAAU,SAAW,CAAC;wBACtD,OAAO,OAAO,CAAC;qBAChB;iBACF,CAAC,CAAC;aACJ,CAAC,CAAC;SACJ;;;;gBAhCFA,cAAS,SAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,gvBAAuC;oBAEvC,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBACtC;;;gBAPOC,oBAAa;gBAJaC,eAAU;gBACpCC,4BAAmB;gBAEnBC,mBAAS;;;ICnBjB;;;;;;;;;;;;;;;aA4BU,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAACC,gBAAS,CAAC,EAAC;IALhD,IAAM,MAAM,GAAW;QACrB;YACE,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,gBAAgB;YAC3B,WAAW,EAAE,CAACC,yBAAgB,CAAC;YAC/B,IAAI,IAAwC;SAC7C;KACF,CAAC;;QAMF;;;;;gBAJCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,EAAEC,mBAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACtD,OAAO,EAAE,CAACA,mBAAY,CAAC;iBACxB;;;ICnCD;;;;;;;;;;;;;;;;QA0BA;;;;;gBALCF,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAACC,mBAAY,EAAE,oBAAoB,CAAC;oBAC7C,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;ICzBD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@valtimo/security"),require("swagger-ui"),require("ngx-logger"),require("@valtimo/config"),require("@angular/router"),require("@valtimo/contract")):"function"==typeof define&&define.amd?define("@valtimo/swagger",["exports","@angular/core","@angular/common","@valtimo/security","swagger-ui","ngx-logger","@valtimo/config","@angular/router","@valtimo/contract"],t):t(((e=e||self).valtimo=e.valtimo||{},e.valtimo.swagger={}),e.ng.core,e.ng.common,e.security,e.SwaggerUI,e.ngxLogger,e.config,e.ng.router,e.contract)}(this,(function(e,t,n,i,r,o,a,s,u){"use strict";r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var c=function(){function e(e,t,n,i){this.configService=e,this.el=t,this.userProviderService=n,this.logger=i,this.valtimoSwaggerConfig=e.config.swagger}return e.prototype.ngAfterViewInit=function(){var e=this;this.userProviderService.getToken().then((function(t){e.logger.debug("swagger ngAfterViewInit token: "+t),r({url:e.valtimoSwaggerConfig.endpointUri,domNode:e.el.nativeElement.querySelector(".swagger-container"),deepLinking:!0,presets:[r.presets.apis],requestInterceptor:function(e){return e.headers.Authorization="Bearer "+t,e}})}))},e}();c.decorators=[{type:t.Component,args:[{selector:"valtimo-swagger",template:'\x3c!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the "License");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an "AS IS" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n --\x3e\n\n<div class="container-fluid">\n <div class=\'swagger-container\'></div>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:['/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}']}]}],c.ctorParameters=function(){return[{type:a.ConfigService},{type:t.ElementRef},{type:i.UserProviderService},{type:o.NGXLogger}]};var g={title:"Swagger",roles:[u.ROLE_USER]},l=[{path:"swagger",component:c,canActivate:[i.AuthGuardService],data:g}],p=function(){};p.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,s.RouterModule.forChild(l)],exports:[s.RouterModule]}]}];var d=function(){};d.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,p],exports:[c]}]}],e.SwaggerComponent=c,e.SwaggerModule=d,e.ɵa=p,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common"),require("@valtimo/security"),require("swagger-ui"),require("ngx-logger"),require("@valtimo/config"),require("@angular/router")):"function"==typeof define&&define.amd?define("@valtimo/swagger",["exports","@angular/core","@angular/common","@valtimo/security","swagger-ui","ngx-logger","@valtimo/config","@angular/router"],n):n(((e=e||self).valtimo=e.valtimo||{},e.valtimo.swagger={}),e.ng.core,e.ng.common,e.security,e.SwaggerUI,e.ngxLogger,e.config,e.ng.router)}(this,(function(e,n,t,i,r,o,a,s){"use strict";r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var u=function(){function e(e,n,t,i){this.configService=e,this.el=n,this.userProviderService=t,this.logger=i,this.valtimoSwaggerConfig=e.config.swagger}return e.prototype.ngAfterViewInit=function(){var e=this;this.userProviderService.getToken().then((function(n){e.logger.debug("swagger ngAfterViewInit token: "+n),r({url:e.valtimoSwaggerConfig.endpointUri,domNode:e.el.nativeElement.querySelector(".swagger-container"),deepLinking:!0,presets:[r.presets.apis],requestInterceptor:function(e){return e.headers.Authorization="Bearer "+n,e}})}))},e}();u.decorators=[{type:n.Component,args:[{selector:"valtimo-swagger",template:'\x3c!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the "License");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an "AS IS" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n --\x3e\n\n<div class="container-fluid">\n <div class="swagger-container"></div>\n</div>\n',encapsulation:n.ViewEncapsulation.None,styles:['/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}']}]}],u.ctorParameters=function(){return[{type:a.ConfigService},{type:n.ElementRef},{type:i.UserProviderService},{type:o.NGXLogger}]};var g={title:"Swagger",roles:[a.ROLE_USER]},c=[{path:"swagger",component:u,canActivate:[i.AuthGuardService],data:g}],l=function(){};l.decorators=[{type:n.NgModule,args:[{imports:[t.CommonModule,s.RouterModule.forChild(c)],exports:[s.RouterModule]}]}];var p=function(){};p.decorators=[{type:n.NgModule,args:[{declarations:[u],imports:[t.CommonModule,l],exports:[u]}]}],e.SwaggerComponent=u,e.SwaggerModule=p,e.ɵa=l,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=valtimo-swagger.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts"],"names":["SwaggerComponent","configService","el","userProviderService","logger","this","valtimoSwaggerConfig","config","swagger","prototype","ngAfterViewInit","_this","getToken","then","authToken","debug","SwaggerUI","url","endpointUri","domNode","nativeElement","querySelector","deepLinking","presets","apis","requestInterceptor","request","headers","Authorization","Component","args","selector","template","encapsulation","ViewEncapsulation","None","ConfigService","ElementRef","UserProviderService","NGXLogger","title","roles","ROLE_USER","routes","path","component","canActivate","AuthGuardService","data","ɵ0","NgModule","imports","CommonModule","RouterModule","forChild","exports","declarations","SwaggerRoutingModule"],"mappings":"+wBAgCE,SAAAA,EACUC,EACAC,EACAC,EACAC,GAHAC,KAAAJ,cAAAA,EACAI,KAAAH,GAAAA,EACAG,KAAAF,oBAAAA,EACAE,KAAAD,OAAAA,EAERC,KAAKC,qBAAuBL,EAAcM,OAAOC,eAGnDR,EAAAS,UAAAC,gBAAA,WAAA,IAAAC,EAAAN,KACEA,KAAKF,oBAAoBS,WAAWC,MAAK,SAACC,GACxCH,EAAKP,OAAOW,MAAM,kCAAkCD,GACpDE,EAAU,CACRC,IAAKN,EAAKL,qBAAqBY,YAC/BC,QAASR,EAAKT,GAAGkB,cAAcC,cAAc,sBAC7CC,aAAa,EACbC,QAAS,CACPP,EAAUO,QAAQC,MAEpBC,mBAAkB,SAACC,GAEjB,OADAA,EAAQC,QAAQC,cAAgB,UAAUd,EACnCY,kCA/BhBG,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,kBACVC,SAAA,uuBAEAC,cAAeC,EAAAA,kBAAkBC,uxBAN3BC,EAAAA,qBAJ0BC,EAAAA,kBAC1BC,EAAAA,2BAEAC,EAAAA,mBCSE,CAACC,MAAO,UAAWC,MAAO,CAACC,EAAAA,YAL/BC,EAAiB,CACrB,CACEC,KAAM,UACNC,UAAW7C,EACX8C,YAAa,CAACC,EAAAA,kBACdC,KAAIC,MAWR,iCAPCC,EAAAA,SAAQpB,KAAA,CAAC,CACRqB,QAAS,CACPC,EAAAA,aACAC,EAAAA,aAAaC,SAASX,IAExBY,QAAS,CAACF,EAAAA,wBCRZ,iCARCH,EAAAA,SAAQpB,KAAA,CAAC,CACR0B,aAAc,CAACxD,GACfmD,QAAS,CACPC,EAAAA,aACAK,GAEFF,QAAS,CAACvD","sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class SwaggerComponent implements AfterViewInit {\n\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [\n SwaggerUI.presets.apis\n ],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n }\n });\n });\n }\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/contract';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]}\n }\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n ],\n exports: [RouterModule]\n})\nexport class SwaggerRoutingModule {\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [\n CommonModule,\n SwaggerRoutingModule\n ],\n exports: [SwaggerComponent]\n})\nexport class SwaggerModule {\n\n}\n"]}
1
+ {"version":3,"sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts"],"names":["SwaggerComponent","configService","el","userProviderService","logger","this","valtimoSwaggerConfig","config","swagger","prototype","ngAfterViewInit","_this","getToken","then","authToken","debug","SwaggerUI","url","endpointUri","domNode","nativeElement","querySelector","deepLinking","presets","apis","requestInterceptor","request","headers","Authorization","Component","args","selector","template","encapsulation","ViewEncapsulation","None","ConfigService","ElementRef","UserProviderService","NGXLogger","title","roles","ROLE_USER","routes","path","component","canActivate","AuthGuardService","data","NgModule","imports","CommonModule","RouterModule","forChild","exports","declarations","SwaggerRoutingModule"],"mappings":"itBA+BE,SAAAA,EACUC,EACAC,EACAC,EACAC,GAHAC,KAAAJ,cAAAA,EACAI,KAAAH,GAAAA,EACAG,KAAAF,oBAAAA,EACAE,KAAAD,OAAAA,EAERC,KAAKC,qBAAuBL,EAAcM,OAAOC,eAGnDR,EAAAS,UAAAC,gBAAA,WAAA,IAAAC,EAAAN,KACEA,KAAKF,oBAAoBS,WAAWC,MAAK,SAACC,GACxCH,EAAKP,OAAOW,MAAM,kCAAkCD,GACpDE,EAAU,CACRC,IAAKN,EAAKL,qBAAqBY,YAC/BC,QAASR,EAAKT,GAAGkB,cAAcC,cAAc,sBAC7CC,aAAa,EACbC,QAAS,CAACP,EAAUO,QAAQC,MAC5BC,mBAAkB,SAACC,GAEjB,OADAA,EAAQC,QAAQC,cAAgB,UAAUd,EACnCY,kCA5BhBG,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,kBACVC,SAAA,quBAEAC,cAAeC,EAAAA,kBAAkBC,uxBAN3BC,EAAAA,qBAJ0BC,EAAAA,kBAC1BC,EAAAA,2BAEAC,EAAAA,mBCSE,CAACC,MAAO,UAAWC,MAAO,CAACC,EAAAA,YAL/BC,EAAiB,CACrB,CACEC,KAAM,UACNC,UAAW7C,EACX8C,YAAa,CAACC,EAAAA,kBACdC,KAAI,MAQR,iCAJCC,EAAAA,SAAQnB,KAAA,CAAC,CACRoB,QAAS,CAACC,EAAAA,aAAcC,EAAAA,aAAaC,SAASV,IAC9CW,QAAS,CAACF,EAAAA,wBCRZ,iCALCH,EAAAA,SAAQnB,KAAA,CAAC,CACRyB,aAAc,CAACvD,GACfkD,QAAS,CAACC,EAAAA,aAAcK,GACxBF,QAAS,CAACtD","sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class SwaggerComponent implements AfterViewInit {\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [SwaggerUI.presets.apis],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n },\n });\n });\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SwaggerRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [CommonModule, SwaggerRoutingModule],\n exports: [SwaggerComponent],\n})\nexport class SwaggerModule {}\n"]}
@@ -18,26 +18,23 @@ import { RouterModule } from '@angular/router';
18
18
  import { CommonModule } from '@angular/common';
19
19
  import { AuthGuardService } from '@valtimo/security';
20
20
  import { SwaggerComponent } from './swagger.component';
21
- import { ROLE_USER } from '@valtimo/contract';
21
+ import { ROLE_USER } from '@valtimo/config';
22
22
  const ɵ0 = { title: 'Swagger', roles: [ROLE_USER] };
23
23
  const routes = [
24
24
  {
25
25
  path: 'swagger',
26
26
  component: SwaggerComponent,
27
27
  canActivate: [AuthGuardService],
28
- data: ɵ0
29
- }
28
+ data: ɵ0,
29
+ },
30
30
  ];
31
31
  export class SwaggerRoutingModule {
32
32
  }
33
33
  SwaggerRoutingModule.decorators = [
34
34
  { type: NgModule, args: [{
35
- imports: [
36
- CommonModule,
37
- RouterModule.forChild(routes),
38
- ],
39
- exports: [RouterModule]
35
+ imports: [CommonModule, RouterModule.forChild(routes)],
36
+ exports: [RouterModule],
40
37
  },] }
41
38
  ];
42
39
  export { ɵ0 };
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci1yb3V0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vc3dhZ2dlci9zcmMvbGliL3N3YWdnZXItcm91dGluZy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQVMsTUFBTSxpQkFBaUIsQ0FBQztBQUNyRCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO1dBT2xDLEVBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsQ0FBQyxTQUFTLENBQUMsRUFBQztBQUxoRCxNQUFNLE1BQU0sR0FBVztJQUNyQjtRQUNFLElBQUksRUFBRSxTQUFTO1FBQ2YsU0FBUyxFQUFFLGdCQUFnQjtRQUMzQixXQUFXLEVBQ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bic7XG5pbXBvcnQge0F1dGhHdWFyZFNlcnZpY2V9IGZyb20gJ0B2YWx0aW1vL3NlY3VyaXR5JztcbmltcG9ydCB7U3dhZ2dlckNvbXBvbmVudH0gZnJvbSAnLi9zd2FnZ2VyLmNvbXBvbmVudCc7XG5pbXBvcnQge1JPTEVfVVNFUn0gZnJvbSAnQHZhbHRpbW8vY29uZmlnJztcblxuY29uc3Qgcm91dGVzOiBSb3V0ZXMgPSBbXG4gIHtcbiAgICBwYXRoOiAnc3dhZ2dlcicsXG4gICAgY29tcG9uZW50OiBTd2FnZ2VyQ29tcG9uZW50LFxuICAgIGNhbkFjdGl2YXRlOiBbQXV0aEd1YXJkU2VydmljZV0sXG4gICAgZGF0YToge3RpdGxlOiAnU3dhZ2dlcicsIHJvbGVzOiBbUk9MRV9VU0VSXX0sXG4gIH0sXG5dO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQocm91dGVzKV0sXG4gIGV4cG9ydHM6IFtSb3V0ZXJNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBTd2FnZ2VyUm91dGluZ01vZHVsZSB7fVxuIl19
@@ -33,13 +33,11 @@ export class SwaggerComponent {
33
33
  url: this.valtimoSwaggerConfig.endpointUri,
34
34
  domNode: this.el.nativeElement.querySelector('.swagger-container'),
35
35
  deepLinking: true,
36
- presets: [
37
- SwaggerUI.presets.apis
38
- ],
36
+ presets: [SwaggerUI.presets.apis],
39
37
  requestInterceptor(request) {
40
38
  request.headers.Authorization = `Bearer ${authToken}`;
41
39
  return request;
42
- }
40
+ },
43
41
  });
44
42
  });
45
43
  }
@@ -47,7 +45,7 @@ export class SwaggerComponent {
47
45
  SwaggerComponent.decorators = [
48
46
  { type: Component, args: [{
49
47
  selector: 'valtimo-swagger',
50
- template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class='swagger-container'></div>\n</div>\n",
48
+ template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n",
51
49
  encapsulation: ViewEncapsulation.None,
52
50
  styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}"]
53
51
  },] }
@@ -58,4 +56,4 @@ SwaggerComponent.ctorParameters = () => [
58
56
  { type: UserProviderService },
59
57
  { type: NGXLogger }
60
58
  ];
61
- //# sourceMappingURL=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JKHtcbiAgICAgICAgdXJsOiB0aGlzLnZhbHRpbW9Td2FnZ2VyQ29uZmlnLmVuZHBvaW50VXJpLFxuICAgICAgICBkb21Ob2RlOiB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvcignLnN3YWdnZXItY29udGFpbmVyJyksXG4gICAgICAgIGRlZXBMaW5raW5nOiB0cnVlLFxuICAgICAgICBwcmVzZXRzOiBbU3dhZ2dlclVJLnByZXNldHMuYXBpc10sXG4gICAgICAgIHJlcXVlc3RJbnRlcmNlcHRvcihyZXF1ZXN0KSB7XG4gICAgICAgICAgcmVxdWVzdC5oZWFkZXJzLkF1dGhvcml6YXRpb24gPSBgQmVhcmVyICR7YXV0aFRva2VufWA7XG4gICAgICAgICAgcmV0dXJuIHJlcXVlc3Q7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -22,11 +22,8 @@ export class SwaggerModule {
22
22
  SwaggerModule.decorators = [
23
23
  { type: NgModule, args: [{
24
24
  declarations: [SwaggerComponent],
25
- imports: [
26
- CommonModule,
27
- SwaggerRoutingModule
28
- ],
29
- exports: [SwaggerComponent]
25
+ imports: [CommonModule, SwaggerRoutingModule],
26
+ exports: [SwaggerComponent],
30
27
  },] }
31
28
  ];
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL3N3YWdnZXIvc3JjL2xpYi9zd2FnZ2VyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFN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U5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5pbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHtTd2FnZ2VyQ29tcG9uZW50fSBmcm9tICcuL3N3YWdnZXIuY29tcG9uZW50JztcbmltcG9ydCB7U3dhZ2dlclJvdXRpbmdNb2R1bGV9IGZyb20gJy4vc3dhZ2dlci1yb3V0aW5nLm1vZHVsZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1N3YWdnZXJDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBTd2FnZ2VyUm91dGluZ01vZHVsZV0sXG4gIGV4cG9ydHM6IFtTd2FnZ2VyQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgU3dhZ2dlck1vZHVsZSB7fVxuIl19
@@ -18,4 +18,4 @@
18
18
  */
19
19
  export * from './lib/swagger.module';
20
20
  export * from './lib/swagger.component';
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vc3dhZ2dlci9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVIOztHQUVHO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xuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHN3YWdnZXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zd2FnZ2VyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zd2FnZ2VyLmNvbXBvbmVudCc7XG4iXX0=
@@ -3,4 +3,4 @@
3
3
  */
4
4
  export * from './public_api';
5
5
  export { SwaggerRoutingModule as ɵa } from './lib/swagger-routing.module';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1zd2FnZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9zd2FnZ2VyL3NyYy92YWx0aW1vLXN3YWdnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sOEJBQThCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG5cbmV4cG9ydCB7U3dhZ2dlclJvdXRpbmdNb2R1bGUgYXMgybVhfSBmcm9tICcuL2xpYi9zd2FnZ2VyLXJvdXRpbmcubW9kdWxlJzsiXX0=
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1zd2FnZ2VyLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy00YzNiYjc3MC93b3Jrc3BhY2UvVmFsdGltb18tX0FuZ3VsYXJfTGlicmFyaWVzX21haW4vcHJvamVjdHMvdmFsdGltby9zd2FnZ2VyL3NyYy8iLCJzb3VyY2VzIjpbInZhbHRpbW8tc3dhZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtTd2FnZ2VyUm91dGluZ01vZHVsZSBhcyDJtWF9IGZyb20gJy4vbGliL3N3YWdnZXItcm91dGluZy5tb2R1bGUnOyJdfQ==
@@ -3,9 +3,8 @@ import { CommonModule } from '@angular/common';
3
3
  import { UserProviderService, AuthGuardService } from '@valtimo/security';
4
4
  import SwaggerUI from 'swagger-ui';
5
5
  import { NGXLogger } from 'ngx-logger';
6
- import { ConfigService } from '@valtimo/config';
6
+ import { ConfigService, ROLE_USER } from '@valtimo/config';
7
7
  import { RouterModule } from '@angular/router';
8
- import { ROLE_USER } from '@valtimo/contract';
9
8
 
10
9
  /*
11
10
  * Copyright 2015-2020 Ritense BV, the Netherlands.
@@ -37,13 +36,11 @@ class SwaggerComponent {
37
36
  url: this.valtimoSwaggerConfig.endpointUri,
38
37
  domNode: this.el.nativeElement.querySelector('.swagger-container'),
39
38
  deepLinking: true,
40
- presets: [
41
- SwaggerUI.presets.apis
42
- ],
39
+ presets: [SwaggerUI.presets.apis],
43
40
  requestInterceptor(request) {
44
41
  request.headers.Authorization = `Bearer ${authToken}`;
45
42
  return request;
46
- }
43
+ },
47
44
  });
48
45
  });
49
46
  }
@@ -51,7 +48,7 @@ class SwaggerComponent {
51
48
  SwaggerComponent.decorators = [
52
49
  { type: Component, args: [{
53
50
  selector: 'valtimo-swagger',
54
- template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class='swagger-container'></div>\n</div>\n",
51
+ template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n",
55
52
  encapsulation: ViewEncapsulation.None,
56
53
  styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}"]
57
54
  },] }
@@ -84,18 +81,15 @@ const routes = [
84
81
  path: 'swagger',
85
82
  component: SwaggerComponent,
86
83
  canActivate: [AuthGuardService],
87
- data: ɵ0
88
- }
84
+ data: ɵ0,
85
+ },
89
86
  ];
90
87
  class SwaggerRoutingModule {
91
88
  }
92
89
  SwaggerRoutingModule.decorators = [
93
90
  { type: NgModule, args: [{
94
- imports: [
95
- CommonModule,
96
- RouterModule.forChild(routes),
97
- ],
98
- exports: [RouterModule]
91
+ imports: [CommonModule, RouterModule.forChild(routes)],
92
+ exports: [RouterModule],
99
93
  },] }
100
94
  ];
101
95
 
@@ -119,11 +113,8 @@ class SwaggerModule {
119
113
  SwaggerModule.decorators = [
120
114
  { type: NgModule, args: [{
121
115
  declarations: [SwaggerComponent],
122
- imports: [
123
- CommonModule,
124
- SwaggerRoutingModule
125
- ],
126
- exports: [SwaggerComponent]
116
+ imports: [CommonModule, SwaggerRoutingModule],
117
+ exports: [SwaggerComponent],
127
118
  },] }
128
119
  ];
129
120
 
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-swagger.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts","../../../../projects/valtimo/swagger/src/public_api.ts","../../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class SwaggerComponent implements AfterViewInit {\n\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [\n SwaggerUI.presets.apis\n ],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n }\n });\n });\n }\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/contract';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]}\n }\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n ],\n exports: [RouterModule]\n})\nexport class SwaggerRoutingModule {\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [\n CommonModule,\n SwaggerRoutingModule\n ],\n exports: [SwaggerComponent]\n})\nexport class SwaggerModule {\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of swagger\n */\n\nexport * from './lib/swagger.module';\nexport * from './lib/swagger.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n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AAW;IACrB;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,gBAAgB;QAC3B,WAAW,EAAE,CAAC,gBAAgB,CAAC;QAC/B,IAAI,IAAwC;KAC7C;CACF,CAAC;MASW,oBAAoB;;;YAPhC,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAC9B;gBACD,OAAO,EAAE,CAAC,YAAY,CAAC;aACxB;;;ACtCD;;;;;;;;;;;;;;;MA6Ba,aAAa;;;YARzB,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;gBAChC,OAAO,EAAE;oBACP,YAAY;oBACZ,oBAAoB;iBACrB;gBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;aAC5B;;;AC5BD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"valtimo-swagger.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts","../../../../projects/valtimo/swagger/src/public_api.ts","../../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class SwaggerComponent implements AfterViewInit {\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [SwaggerUI.presets.apis],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n },\n });\n });\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SwaggerRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [CommonModule, SwaggerRoutingModule],\n exports: [SwaggerComponent],\n})\nexport class SwaggerModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of swagger\n */\n\nexport * from './lib/swagger.module';\nexport * from './lib/swagger.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SwaggerRoutingModule as ɵa} from './lib/swagger-routing.module';"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;MA4Ba,gBAAgB;IAG3B,YACU,aAA4B,EAC5B,EAAc,EACd,mBAAwC,EACxC,MAAiB;QAHjB,kBAAa,GAAb,aAAa,CAAe;QAC5B,OAAE,GAAF,EAAE,CAAY;QACd,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,WAAM,GAAN,MAAM,CAAW;QAEzB,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,MAA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QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;gBAChC,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;gBAC7C,OAAO,EAAE,CAAC,gBAAgB,CAAC;aAC5B;;;ACzBD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/swagger",
3
3
  "license": "EUPL-1.2",
4
- "version": "4.15.3-next-main.14",
4
+ "version": "4.16.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^10.0.11",
7
7
  "@angular/core": "^10.0.11"
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"SwaggerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":21,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SwaggerComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"SwaggerComponent"}]}]}],"members":{}},"SwaggerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"valtimo-swagger","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":26,"character":17},"member":"None"},"template":"<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class='swagger-container'></div>\n</div>\n","styles":["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":33,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":34,"character":16},{"__symbolic":"reference","module":"@valtimo/security","name":"UserProviderService","line":35,"character":33},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":36,"character":20}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":32,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":34,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":35,"character":4},"member":"forChild"},"arguments":[[{"path":"swagger","component":{"__symbolic":"reference","name":"SwaggerComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":27,"character":18}],"data":{"title":"Swagger","roles":[{"__symbolic":"reference","module":"@valtimo/contract","name":"ROLE_USER","line":28,"character":37}]}}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":37,"character":12}]}]}],"members":{}}},"origins":{"SwaggerModule":"./lib/swagger.module","SwaggerComponent":"./lib/swagger.component","ɵa":"./lib/swagger-routing.module"},"importAs":"@valtimo/swagger"}
1
+ {"__symbolic":"module","version":4,"metadata":{"SwaggerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":21,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SwaggerComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":23,"character":12},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"SwaggerComponent"}]}]}],"members":{}},"SwaggerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"valtimo-swagger","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":26,"character":17},"member":"None"},"template":"<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n","styles":["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":32,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":33,"character":16},{"__symbolic":"reference","module":"@valtimo/security","name":"UserProviderService","line":34,"character":33},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":35,"character":20}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":32,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":33,"character":12},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":33,"character":26},"member":"forChild"},"arguments":[[{"path":"swagger","component":{"__symbolic":"reference","name":"SwaggerComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":27,"character":18}],"data":{"title":"Swagger","roles":[{"__symbolic":"reference","module":"@valtimo/config","name":"ROLE_USER","line":28,"character":37}]}}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":34,"character":12}]}]}],"members":{}}},"origins":{"SwaggerModule":"./lib/swagger.module","SwaggerComponent":"./lib/swagger.component","ɵa":"./lib/swagger-routing.module"},"importAs":"@valtimo/swagger"}