Skip to content

Commit

Permalink
Auto-generated commit [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
JinkiJung committed Jun 29, 2024
1 parent 58543f4 commit 1995815
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 41 deletions.
77 changes: 62 additions & 15 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12292,6 +12292,7 @@ __webpack_require__.r(__webpack_exports__);



const msrDtForm = __webpack_require__(/*! ../../../util/msrDtForm.json */ 27461);
class InstanceControllerService {
constructor(httpClient, basePath, configuration) {
this.httpClient = httpClient;
Expand Down Expand Up @@ -12439,6 +12440,36 @@ class InstanceControllerService {
reportProgress: reportProgress
});
}
getInstancesDt(page, size, sort, observe = 'body', reportProgress = false) {
let queryParameters = new _angular_common_http__WEBPACK_IMPORTED_MODULE_4__.HttpParams({
encoder: new _encoder__WEBPACK_IMPORTED_MODULE_0__.CustomHttpUrlEncodingCodec()
});
if (page !== undefined && page !== null) {
queryParameters = queryParameters.set('page', page);
}
if (size !== undefined && size !== null) {
queryParameters = queryParameters.set('size', size);
}
if (sort) {
sort.forEach(element => {
queryParameters = queryParameters.append('sort', element);
});
}
let headers = this.defaultHeaders;
// to determine the Accept header
let httpHeaderAccepts = ['application/json'];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request('post', `${this.basePath}/api/instances/dt`, {
body: msrDtForm,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getInstancesByMRN(mrn, observe = 'body', reportProgress = false) {
if (mrn === null || mrn === undefined) {
throw new Error('Required parameter mrn was null or undefined when calling getInstancesByMRN.');
Expand Down Expand Up @@ -16285,7 +16316,7 @@ class EditableFormComponent {
* @returns whether the resource type requires short ID or not
*/
this.hasDefaultValueForMrn = resourceType => {
return resourceType === _models_menuType__WEBPACK_IMPORTED_MODULE_5__.MrnAttributeInMSR.Instance || resourceType === _models_menuType__WEBPACK_IMPORTED_MODULE_5__.MrnAttributeInMSR.Design;
return resourceType === _models_menuType__WEBPACK_IMPORTED_MODULE_5__.MrnAttributeInMSR.Instance;
};
/**
* a function fetching its short ID
Expand Down Expand Up @@ -17642,21 +17673,25 @@ class InputGeometryComponent {
} else {
this.responseFeatureGroup = new leaflet__WEBPACK_IMPORTED_MODULE_1__.FeatureGroup();
}
let geomAdded = false;
this.geometries.forEach((geometry, i) => {
const geomLayer = leaflet__WEBPACK_IMPORTED_MODULE_1__.geoJSON(geometry);
(0,_util_mapToGeometry__WEBPACK_IMPORTED_MODULE_3__.addNonGroupLayers)(geomLayer, this.responseFeatureGroup);
// assign name plate to the region
if (this.geometryNames && this.geometryNames.length > 0 && this.geometryNames[i]) {
if (geometry.type === 'Point') {
const coordinate = geometry.coordinates;
this.setToolTip(this.geometryNames[i], coordinate[1], coordinate[0]);
} else {
const coordinate = geomLayer.getBounds().getCenter();
this.setToolTip(this.geometryNames[i], coordinate.lat, coordinate.lng);
if (geometry && geometry.coordinates && geometry.coordinates.length > 0) {
const geomLayer = leaflet__WEBPACK_IMPORTED_MODULE_1__.geoJSON(geometry);
(0,_util_mapToGeometry__WEBPACK_IMPORTED_MODULE_3__.addNonGroupLayers)(geomLayer, this.responseFeatureGroup);
// assign name plate to the region
if (this.geometryNames && this.geometryNames.length > 0 && this.geometryNames[i]) {
if (geometry.type === 'Point') {
const coordinate = geometry.coordinates;
this.setToolTip(this.geometryNames[i], coordinate[1], coordinate[0]);
} else {
const coordinate = geomLayer.getBounds().getCenter();
this.setToolTip(this.geometryNames[i], coordinate.lat, coordinate.lng);
}
}
geomAdded = true;
}
});
if (this.map) {
if (this.map && geomAdded) {
this.map.fitBounds(this.responseFeatureGroup.getBounds());
}
};
Expand Down Expand Up @@ -19598,6 +19633,7 @@ const ColumnForResource = {
title: 'Instance ID',
type: 'string',
description: 'MCP MRN as unique identifer',
placeholder: 'urn:mrn:',
visibleFrom: ['detail'],
required: true
},
Expand Down Expand Up @@ -19813,6 +19849,7 @@ const ColumnForResource = {
title: 'Technical design ID',
type: 'string',
description: 'MCP MRN as unique identifer',
placeholder: 'urn:mrn:',
visibleFrom: ['detail']
},
implementsServiceDesignVersion: {
Expand Down Expand Up @@ -22101,7 +22138,7 @@ const getReasonOptionFromRevocationReason = revocationReason => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "formatData": () => (/* binding */ formatData),
/* harmony export */ "formatServiceData": () => (/* binding */ formatServiceData),
/* harmony export */ "formatInstanceData": () => (/* binding */ formatInstanceData),
/* harmony export */ "formatVesselToUpload": () => (/* binding */ formatVesselToUpload)
/* harmony export */ });
/* harmony import */ var _backend_api_identity_registry_model_vesselAttribute__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../backend-api/identity-registry/model/vesselAttribute */ 92057);
Expand Down Expand Up @@ -22138,7 +22175,7 @@ const formatData = data => {
}
return menuData;
};
const formatServiceData = data => {
const formatInstanceData = data => {
const menuData = {};
for (const key in data) {
menuData[key] = data[key];
Expand Down Expand Up @@ -22685,7 +22722,17 @@ _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__.platformBrowser().bootstr
\**********************/
/***/ ((module) => {

module.exports = JSON.parse('{"name":"management-portal","version":"0.5.0","license":"Apache license 2.0","repository":{"type":"git","url":"git+https://github.com/maritimeconnectivity/ManagementPortal.git"},"bugs":{"url":"https://github.com/maritimeconnectivity/ManagementPortal/issues"},"scripts":{"ng":"ng","conventional-changelog":"conventional-changelog","start":"ng serve","build":"ng build","build:prod":"npm run build -- --configuration production --aot","test":"ng test","test:coverage":"rimraf coverage && npm run test -- --code-coverage","lint":"ng lint","lint:fix":"ng lint management-portal --fix","lint:styles":"stylelint ./src/**/*.scss","lint:ci":"npm run lint && npm run lint:styles","pree2e":"webdriver-manager update --standalone false --gecko false","e2e":"ng e2e","docs":"compodoc -p src/tsconfig.app.json -d docs","docs:serve":"compodoc -p src/tsconfig.app.json -d docs -s","prepush":"npm run lint:ci","release:changelog":"npm run conventional-changelog -- -p angular -i CHANGELOG.md -s","postinstall":"ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points --tsconfig \\"./src/tsconfig.app.json\\""},"dependencies":{"@angular/animations":"^15.2.10","@angular/cdk":"^15.2.9","@angular/common":"^15.2.10","@angular/compiler":"^15.2.10","@angular/core":"^15.2.10","@angular/forms":"^15.2.10","@angular/google-maps":"^12.2.13","@angular/platform-browser":"^15.2.10","@angular/platform-browser-dynamic":"^15.2.10","@angular/router":"^15.2.10","@asymmetrik/ngx-leaflet":"3.0.1","@nebular/auth":"11.0.1","@nebular/eva-icons":"11.0.1","@nebular/security":"11.0.1","@nebular/theme":"11.0.1","@swimlane/ngx-charts":"^14.0.0","@terraformer/spatial":"^2.1.2","@terraformer/wkt":"^2.1.2","angular2-chartjs":"0.4.1","bootstrap":"4.3.1","chart.js":"2.7.1","ckeditor":"4.7.3","classlist.js":"1.1.20150312","core-js":"2.5.1","echarts":"^4.9.0","eva-icons":"^1.1.3","file-saver":"^2.0.5","intl":"1.2.5","ionicons":"2.0.1","keycloak-angular":"13.1.0","keycloak-js":"18.0.1","leaflet":"1.2.0","leaflet-draw":"^1.0.4","lucene-query-string-builder":"^1.0.8","nebular-icons":"1.1.0","ng2-ckeditor":"~1.2.9","ng2-completer":"^9.0.1","ng2-smart-table":"^1.6.0","ngx-autosize-input":"^15.0.4","ngx-echarts":"^4.2.2","node-sass":"^4.14.1","normalize.css":"6.0.0","pace-js":"1.0.2","pkijs":"^3.0.14","pvtsutils":"^1.3.2","roboto-fontface":"0.8.0","rxjs":"6.6.2","rxjs-compat":"6.3.0","shelljs":"^0.8.5","socicon":"3.0.5","style-loader":"^1.3.0","tinymce":"7.0.0","tslib":"^2.3.1","typeface-exo":"0.0.22","url-parse":"^1.5.10","web-animations-js":"^2.3.2","web3":"^1.8.2","zone.js":"~0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^15.2.10","@angular-eslint/builder":"15.2.1","@angular-eslint/eslint-plugin":"15.2.1","@angular-eslint/eslint-plugin-template":"15.2.1","@angular-eslint/schematics":"15.2.1","@angular-eslint/template-parser":"15.2.1","@angular/cli":"^15.2.10","@angular/compiler-cli":"^15.2.10","@angular/language-service":"15.2.10","@compodoc/compodoc":"1.0.1","@fortawesome/fontawesome-free":"^5.2.0","@ngx-translate/core":"^14.0.0","@ngx-translate/http-loader":"^7.0.0","@types/d3-color":"1.0.5","@types/jasmine":"~3.3.0","@types/jasminewd2":"2.0.3","@types/leaflet":"1.2.3","@types/leaflet-draw":"^1.0.11","@types/node":"^12.12.70","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","angular-cli-ghpages":"^1.0.5","angular-notifier":"^13.0.0","codelyzer":"^6.0.2","conventional-changelog-cli":"1.3.4","eslint":"^8.28.0","husky":"0.13.3","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~6.3.19","karma-chrome-launcher":"~3.1.1","karma-cli":"1.0.1","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.2","karma-jasmine-html-reporter":"^1.7.0","npm-run-all":"4.0.2","protractor":"~7.0.0","rimraf":"2.6.1","stylelint":"7.13.0","ts-node":"3.2.2","tslint":"~6.1.0","tslint-language-service":"^0.9.9","typescript":"~4.9.5"}}');
module.exports = JSON.parse('{"name":"management-portal","version":"0.5.0","license":"Apache license 2.0","repository":{"type":"git","url":"git+https://github.com/maritimeconnectivity/ManagementPortal.git"},"bugs":{"url":"https://github.com/maritimeconnectivity/ManagementPortal/issues"},"scripts":{"ng":"ng","conventional-changelog":"conventional-changelog","start":"ng serve","build":"ng build","build:prod":"npm run build -- --configuration production --aot","test":"ng test","test:coverage":"rimraf coverage && npm run test -- --code-coverage","lint":"ng lint","lint:fix":"ng lint management-portal --fix","lint:styles":"stylelint ./src/**/*.scss","lint:ci":"npm run lint && npm run lint:styles","pree2e":"webdriver-manager update --standalone false --gecko false","e2e":"ng e2e","docs":"compodoc -p src/tsconfig.app.json -d docs","docs:serve":"compodoc -p src/tsconfig.app.json -d docs -s","prepush":"npm run lint:ci","release:changelog":"npm run conventional-changelog -- -p angular -i CHANGELOG.md -s","postinstall":"ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points --tsconfig \\"./src/tsconfig.app.json\\""},"dependencies":{"@angular/animations":"^15.2.10","@angular/cdk":"^15.2.9","@angular/common":"^15.2.10","@angular/compiler":"^15.2.10","@angular/core":"^15.2.10","@angular/forms":"^15.2.10","@angular/google-maps":"^12.2.13","@angular/platform-browser":"^15.2.10","@angular/platform-browser-dynamic":"^15.2.10","@angular/router":"^15.2.10","@asymmetrik/ngx-leaflet":"3.0.1","@nebular/auth":"11.0.1","@nebular/eva-icons":"11.0.1","@nebular/security":"11.0.1","@nebular/theme":"11.0.1","@swimlane/ngx-charts":"^14.0.0","@terraformer/spatial":"^2.1.2","@terraformer/wkt":"^2.1.2","angular2-chartjs":"0.4.1","bootstrap":"4.3.1","chart.js":"2.7.1","ckeditor":"4.7.3","classlist.js":"1.1.20150312","core-js":"2.5.1","echarts":"^4.9.0","eva-icons":"^1.1.3","file-saver":"^2.0.5","intl":"1.2.5","ionicons":"2.0.1","keycloak-angular":"13.1.0","keycloak-js":"18.0.1","leaflet":"1.2.0","leaflet-draw":"^1.0.4","lucene-query-string-builder":"^1.0.8","nebular-icons":"1.1.0","ng2-ckeditor":"~1.2.9","ng2-completer":"^9.0.1","ng2-smart-table":"^1.6.0","ngx-autosize-input":"^15.0.4","ngx-echarts":"^4.2.2","node-sass":"^4.14.1","normalize.css":"6.0.0","pace-js":"1.0.2","pkijs":"^3.0.14","pvtsutils":"^1.3.2","roboto-fontface":"0.8.0","rxjs":"6.6.2","rxjs-compat":"6.3.0","shelljs":"^0.8.5","socicon":"3.0.5","style-loader":"^1.3.0","tinymce":"7.2.0","tslib":"^2.3.1","typeface-exo":"0.0.22","url-parse":"^1.5.10","web-animations-js":"^2.3.2","web3":"^1.8.2","zone.js":"~0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^15.2.10","@angular-eslint/builder":"15.2.1","@angular-eslint/eslint-plugin":"15.2.1","@angular-eslint/eslint-plugin-template":"15.2.1","@angular-eslint/schematics":"15.2.1","@angular-eslint/template-parser":"15.2.1","@angular/cli":"^15.2.10","@angular/compiler-cli":"^15.2.10","@angular/language-service":"15.2.10","@compodoc/compodoc":"1.0.1","@fortawesome/fontawesome-free":"^5.2.0","@ngx-translate/core":"^14.0.0","@ngx-translate/http-loader":"^7.0.0","@types/d3-color":"1.0.5","@types/jasmine":"~3.3.0","@types/jasminewd2":"2.0.3","@types/leaflet":"1.2.3","@types/leaflet-draw":"^1.0.11","@types/node":"^12.12.70","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","angular-cli-ghpages":"^1.0.5","angular-notifier":"^13.0.0","codelyzer":"^6.0.2","conventional-changelog-cli":"1.3.4","eslint":"^8.28.0","husky":"0.13.3","ip":"^2.0.1","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~6.3.19","karma-chrome-launcher":"~3.1.1","karma-cli":"1.0.1","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.2","karma-jasmine-html-reporter":"^1.7.0","npm-run-all":"4.0.2","protractor":"~7.0.0","rimraf":"2.6.1","stylelint":"7.13.0","ts-node":"3.2.2","tslint":"~6.1.0","tslint-language-service":"^0.9.9","typescript":"~4.9.5"}}');

/***/ }),

/***/ 27461:
/*!*************************************!*\
!*** ./src/app/util/msrDtForm.json ***!
\*************************************/
/***/ ((module) => {

module.exports = JSON.parse('{"draw":1,"columns":[{"data":"id","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"name","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"version","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"serviceType","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"dataProductType","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"status","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"endpointUri","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"organizationId","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"keywords","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"instanceId","name":"","searchable":true,"orderable":true,"search":{"value":"","regex":false}},{"data":"lastUpdatedAt","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"publishedAt","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"comment","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"geometry","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"unlocode","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"mmsi","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"imo","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"endpointType","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"ledgerRequestId","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"ledgerRequestStatus","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"instanceAsDocId","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"implementsServiceDesign","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}},{"data":"implementsServiceDesignVersion","name":"","searchable":false,"orderable":true,"search":{"value":"","regex":false}}],"order":[{"column":0,"dir":"asc"}],"start":0,"length":10,"search":{"value":"","regex":false}}');

/***/ })

Expand Down
2 changes: 1 addition & 1 deletion main.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 1995815

Please sign in to comment.