@ohioepa/oepa-ui-lib 1.2.10 → 1.2.12
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.
- package/esm2022/lib/oepa-user-account/oepa-user-account.service.mjs +21 -13
- package/esm2022/lib/table/table.component.mjs +14 -4
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ohioepa-oepa-ui-lib.mjs +34 -16
- package/fesm2022/ohioepa-oepa-ui-lib.mjs.map +1 -1
- package/lib/oepa-user-account/oepa-user-account.service.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/ohioepa-oepa-ui-lib-1.2.10.tgz +0 -0
|
@@ -1750,6 +1750,8 @@ class TableComponent {
|
|
|
1750
1750
|
const sortedData = this.sortData(filteredData);
|
|
1751
1751
|
this.rows = this.changePage(sortedData);
|
|
1752
1752
|
this.pageInfo.length = sortedData.length;
|
|
1753
|
+
this.allRowsSelected = false;
|
|
1754
|
+
this.rowSelected.emit([]);
|
|
1753
1755
|
this.dataHasDetails = this.checkForDetails(this.rows);
|
|
1754
1756
|
}
|
|
1755
1757
|
updatePage() {
|
|
@@ -1892,7 +1894,12 @@ class TableComponent {
|
|
|
1892
1894
|
toggleAllRowsSelection() {
|
|
1893
1895
|
const selectedRows = [];
|
|
1894
1896
|
this.allRowsSelected = !this.allRowsSelected;
|
|
1897
|
+
// deselect all rows
|
|
1895
1898
|
this._data.forEach((r) => {
|
|
1899
|
+
r.selected = false;
|
|
1900
|
+
});
|
|
1901
|
+
// select only visible rows
|
|
1902
|
+
this.rows.forEach((r) => {
|
|
1896
1903
|
if (r.selectable) {
|
|
1897
1904
|
r.selected = this.allRowsSelected;
|
|
1898
1905
|
}
|
|
@@ -1900,7 +1907,8 @@ class TableComponent {
|
|
|
1900
1907
|
selectedRows.push(r);
|
|
1901
1908
|
}
|
|
1902
1909
|
});
|
|
1903
|
-
this.
|
|
1910
|
+
this.rows.slice();
|
|
1911
|
+
// this.updateTable();
|
|
1904
1912
|
this.rowSelected.emit(selectedRows);
|
|
1905
1913
|
}
|
|
1906
1914
|
toggleRowSelection(row) {
|
|
@@ -1917,7 +1925,8 @@ class TableComponent {
|
|
|
1917
1925
|
this.allRowsSelected = false;
|
|
1918
1926
|
}
|
|
1919
1927
|
});
|
|
1920
|
-
this.
|
|
1928
|
+
this.rows.slice();
|
|
1929
|
+
// this.updateTable();
|
|
1921
1930
|
this.rowSelected.emit(selectedRows);
|
|
1922
1931
|
}
|
|
1923
1932
|
singleRowSelection(row) {
|
|
@@ -1936,7 +1945,8 @@ class TableComponent {
|
|
|
1936
1945
|
dr.selected = false;
|
|
1937
1946
|
}
|
|
1938
1947
|
});
|
|
1939
|
-
this.
|
|
1948
|
+
this.rows.slice();
|
|
1949
|
+
// this.updateTable();
|
|
1940
1950
|
this.rowSelected.emit(selectedRows);
|
|
1941
1951
|
}
|
|
1942
1952
|
prepareRowsForExport(rows) {
|
|
@@ -7177,13 +7187,14 @@ class OepaUserAccountService {
|
|
|
7177
7187
|
http;
|
|
7178
7188
|
ebizRootURL;
|
|
7179
7189
|
hostUrl = '/ebiz';
|
|
7180
|
-
accountsUrl = '/api/v1/
|
|
7190
|
+
accountsUrl = '/api/v1/user-accounts';
|
|
7181
7191
|
ebizAccountsUrl = '/api/v1/accounts';
|
|
7182
7192
|
ebizSessionUrl = '/api/v1/session';
|
|
7183
7193
|
account;
|
|
7184
7194
|
personID = '';
|
|
7185
7195
|
sessionID = '';
|
|
7186
7196
|
webappsRootURL = '';
|
|
7197
|
+
ebizVersion = '';
|
|
7187
7198
|
logoutPath = '';
|
|
7188
7199
|
idleTimerRunning = false;
|
|
7189
7200
|
idleTime = 0;
|
|
@@ -7195,7 +7206,7 @@ class OepaUserAccountService {
|
|
|
7195
7206
|
constructor(http, ebizRootURL) {
|
|
7196
7207
|
this.http = http;
|
|
7197
7208
|
this.ebizRootURL = ebizRootURL;
|
|
7198
|
-
this.hostUrl = ebizRootURL + this.hostUrl;
|
|
7209
|
+
this.hostUrl = this.ebizRootURL + this.hostUrl;
|
|
7199
7210
|
this.logoutPath = '/jsp/logout.jsp';
|
|
7200
7211
|
}
|
|
7201
7212
|
/**
|
|
@@ -7207,18 +7218,19 @@ class OepaUserAccountService {
|
|
|
7207
7218
|
}
|
|
7208
7219
|
retrieveAccountByOHID(ohid, app) {
|
|
7209
7220
|
console.log('retrieve account for: ' + ohid);
|
|
7210
|
-
const url = this.hostUrl + '/
|
|
7221
|
+
const url = this.hostUrl + this.accountsUrl + '/ohid/' + ohid;
|
|
7211
7222
|
return this.http.get(url, { params: { 'app': app } }).pipe(map((userAccount) => {
|
|
7212
7223
|
this.userAccount$.next(userAccount);
|
|
7213
7224
|
return userAccount;
|
|
7214
7225
|
}));
|
|
7215
7226
|
}
|
|
7216
7227
|
/**
|
|
7228
|
+
* @deprecated Should not use session user ID for Amplify apps
|
|
7217
7229
|
* Retrieve the user account for the currently logged in user.
|
|
7218
7230
|
* @returns Observable<OepaUserAccount>
|
|
7219
7231
|
*/
|
|
7220
7232
|
retrieveAccountForCurrentUser() {
|
|
7221
|
-
return this.http.get(this.hostUrl +
|
|
7233
|
+
return this.http.get(this.hostUrl + '/api/v1/userAccounts/login').pipe(map((account) => {
|
|
7222
7234
|
if (!account) {
|
|
7223
7235
|
if (this.personID && this.sessionID) {
|
|
7224
7236
|
this.retrieveAccountForInternalSession(this.personID, this.sessionID).subscribe({
|
|
@@ -7262,12 +7274,13 @@ class OepaUserAccountService {
|
|
|
7262
7274
|
}
|
|
7263
7275
|
/**
|
|
7264
7276
|
* Retrieve the user account for the currently logged in user.
|
|
7277
|
+
* @deprecated should retrieve account by OHID instead
|
|
7265
7278
|
* @param sessionID person ID for internal user
|
|
7266
7279
|
* @returns Observable<OepaUserAccount>
|
|
7267
7280
|
*/
|
|
7268
7281
|
retrieveAccountForInternalSession(personID, sessionID) {
|
|
7269
7282
|
this.account = {};
|
|
7270
|
-
const url = this.hostUrl +
|
|
7283
|
+
const url = this.hostUrl + '/api/v1/userAccounts/internal/personID/' + personID + '/sessionID/' + sessionID;
|
|
7271
7284
|
console.log('retrieveAccountForInternalSession: ' + url);
|
|
7272
7285
|
return this.http.get(url).pipe(map((account) => {
|
|
7273
7286
|
this.account = account;
|
|
@@ -7363,16 +7376,16 @@ class OepaUserAccountService {
|
|
|
7363
7376
|
}
|
|
7364
7377
|
}
|
|
7365
7378
|
getEBizVersion() {
|
|
7366
|
-
if (this.
|
|
7367
|
-
return of(this.
|
|
7379
|
+
if (this.ebizVersion) {
|
|
7380
|
+
return of(this.ebizVersion);
|
|
7368
7381
|
}
|
|
7369
7382
|
else {
|
|
7370
7383
|
const url = this.hostUrl + '/api/v1/gateway/gatewayConfig';
|
|
7371
7384
|
return this.http.get(url).pipe(map((gatewayConfig) => {
|
|
7372
7385
|
if (gatewayConfig) {
|
|
7373
|
-
this.
|
|
7386
|
+
this.ebizVersion = gatewayConfig.versionNumber;
|
|
7374
7387
|
}
|
|
7375
|
-
return this.
|
|
7388
|
+
return this.ebizVersion;
|
|
7376
7389
|
}));
|
|
7377
7390
|
}
|
|
7378
7391
|
}
|
|
@@ -7481,21 +7494,26 @@ class OepaUserAccountService {
|
|
|
7481
7494
|
getIdleTimeout() {
|
|
7482
7495
|
return this.idleSubject.asObservable();
|
|
7483
7496
|
}
|
|
7497
|
+
/**
|
|
7498
|
+
* @deprecated We probably don't want to support this going forward
|
|
7499
|
+
* @param message
|
|
7500
|
+
* @returns
|
|
7501
|
+
*/
|
|
7484
7502
|
logMessageOnServer(message) {
|
|
7485
7503
|
const messageResponse = {
|
|
7486
7504
|
response: message
|
|
7487
7505
|
};
|
|
7488
|
-
const url = this.hostUrl +
|
|
7506
|
+
const url = this.hostUrl + '/api/v1/userAccounts/logs/message';
|
|
7489
7507
|
return this.http.post(url, messageResponse);
|
|
7490
7508
|
}
|
|
7491
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaUserAccountService, deps: [{ token: i1.HttpClient }, { token: '
|
|
7509
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaUserAccountService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7492
7510
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaUserAccountService });
|
|
7493
7511
|
}
|
|
7494
7512
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaUserAccountService, decorators: [{
|
|
7495
7513
|
type: Injectable
|
|
7496
7514
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
7497
7515
|
type: Inject,
|
|
7498
|
-
args: ['
|
|
7516
|
+
args: ['ebizRootURL']
|
|
7499
7517
|
}] }] });
|
|
7500
7518
|
|
|
7501
7519
|
class OepaPinService {
|
|
@@ -9527,5 +9545,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9527
9545
|
* Generated bundle index. Do not edit.
|
|
9528
9546
|
*/
|
|
9529
9547
|
|
|
9530
|
-
export { AccountSearchInputComponent, AccountSearchModalComponent, AccountService, ActionBtnComponent, ActionBtnModalComponent, AddressComponent, ArrayFilterPipe, ArraySortPipe, BlankComponent, CATALOG_IMG, CAUTION_IMG, CE_IMG, CHARGE_CO_IMG, CHECK_IMG, CheckboxComponent, CheckboxInputComponent, CommentModalComponent, CommonFormsModule, ConfirmationModalComponent, ContactComponent, CustomEncoder, DEFINITIONS_IMG, DELETE_IMG, DIALOG_IMG, DOWNLOAD_IMG, DateInputComponent, DateInputModalComponent, DatepickerComponent, DaterangepickerComponent, DualListBoxComponent, ERROR_IMG, EU_CAUTION_IMG, EU_IMG, EXCLUDED_EU, EbizAddressComponent, EdocAttachmentComponent, EdocAttachmentService, EntityService, FACILITY_IMG, FOLDER_CLOSED_IMG, FOLDER_OPEN_IMG, FileUploadComponent, GLOBAL_HELP_IMG, GREEN_CHECK_IMG, GREEN_DOT_IMG, ICON_DOC_IMG, ICON_DWG_IMG, ICON_PDF_IMG, ICON_TXT_IMG, ICON_XLS_IMG, INACTIVE_USER_IMG, INSIGNIFICANT_EU_CAUTION_IMG, INSIGNIFICANT_EU_IMG, INSIGNIGICANT_EU_NO_APP_REQS_CAUTION_IMG, INSIGNIGICANT_EU_NO_APP_REQS_IMG, LOCK_ICON1_IMG, LOCK_ICON1_PARTIAL_IMG, LynxImageUploadComponent, LynxService, MessageComponent, MessageListComponent, MultiFileUploadComponent, NOT_INCLUDEABLE_EU_IMG, NotesModalComponent, NumericInputComponent, NumericInputDirective, OEPAErrorMessageComponent, OEPAWaitMessageComponent, OepaAddressService, OepaFileUtilService, OepaFormsService, OepaHttpInterceptor, OepaMessage, OepaMessageType, OepaPinService, OepaReferenceService, OepaTableCellClassnamePipe, OepaTableCellColSpanPipe, OepaTableCellIconClassnamePipe, OepaTableCellImgSrcPipe, OepaTableCellInnerHtmlPipe, OepaTableCellValuePipe, OepaTableFilteringDirective, OepaTableSortingDirective, OepaUserAccountService, OrganizationCreateModalComponent, OrganizationSearchInputComponent, OrganizationSearchModalComponent, PDF_IMG, PERMIT_EU_GROUP_IMG, PERMIT_EU_IMG, PERMIT_IMG, PROCESS_IMG, PTableComponent, ParameterService, ParamsHelpButtonComponent, PersonCreateModalComponent, PersonSearchInputComponent, PersonSearchModalComponent, PhoneNumberComponent, PinModalComponent, PlaceCreateModalComponent, PlaceSearchInputComponent, PlaceSearchModalComponent, RED_DOT_IMG, REPORT_EU_GROUP_CAUTION_IMG, REPORT_EU_GROUP_IMG, REPORT_IMG, REPORT_PERIOD_CAUTION_IMG, REPORT_PERIOD_IMG, SCENARIO_IMG, SHUTDOWN_EU_IMG, SHUTDOWN_FACILITY_IMG, STACK_IMG, SelectInputComponent, ServerTimeoutModalComponent, ShoppingCartService, ShoppingCartSummaryComponent, ShoppingCartViewComponent, SortOptions, StartEndTimepickerComponent, TOWER_IMG, TRIVIAL_EU_CAUTION_IMG, TRIVIAL_EU_IMG, TV_APP_EU_GROUP_IMG, TableComponent, TableExportService, TableService, TemplateConfirmationModalComponent, TextAreaInputComponent, TextInputComponent, TimeoutModalComponent, TimepickerComponent, USER_IMG, V_ELLIPSIS_IMG, ValidationService, YesNoBooleanComponent, YesNoComponent, YesNoOtherInputComponent, ZipCodeComponent, oepaCreateIntegerMask };
|
|
9548
|
+
export { AccountSearchInputComponent, AccountSearchModalComponent, AccountSearchService, AccountService, ActionBtnComponent, ActionBtnModalComponent, AddressComponent, ArrayFilterPipe, ArraySortPipe, BlankComponent, CATALOG_IMG, CAUTION_IMG, CE_IMG, CHARGE_CO_IMG, CHECK_IMG, CheckboxComponent, CheckboxInputComponent, CommentModalComponent, CommonFormsModule, ConfirmationModalComponent, ContactComponent, CustomEncoder, DEFINITIONS_IMG, DELETE_IMG, DIALOG_IMG, DOWNLOAD_IMG, DateInputComponent, DateInputModalComponent, DatepickerComponent, DaterangepickerComponent, DualListBoxComponent, ERROR_IMG, EU_CAUTION_IMG, EU_IMG, EXCLUDED_EU, EbizAddressComponent, EdocAttachmentComponent, EdocAttachmentService, EntityService, FACILITY_IMG, FOLDER_CLOSED_IMG, FOLDER_OPEN_IMG, FileUploadComponent, GLOBAL_HELP_IMG, GREEN_CHECK_IMG, GREEN_DOT_IMG, ICON_DOC_IMG, ICON_DWG_IMG, ICON_PDF_IMG, ICON_TXT_IMG, ICON_XLS_IMG, INACTIVE_USER_IMG, INSIGNIFICANT_EU_CAUTION_IMG, INSIGNIFICANT_EU_IMG, INSIGNIGICANT_EU_NO_APP_REQS_CAUTION_IMG, INSIGNIGICANT_EU_NO_APP_REQS_IMG, LOCK_ICON1_IMG, LOCK_ICON1_PARTIAL_IMG, LynxImageUploadComponent, LynxService, MessageComponent, MessageListComponent, MultiFileUploadComponent, NOT_INCLUDEABLE_EU_IMG, NotesModalComponent, NumericInputComponent, NumericInputDirective, OEPAErrorMessageComponent, OEPAWaitMessageComponent, OepaAddressService, OepaFileUtilService, OepaFormsService, OepaHttpInterceptor, OepaMessage, OepaMessageType, OepaPinService, OepaReferenceService, OepaTableCellClassnamePipe, OepaTableCellColSpanPipe, OepaTableCellIconClassnamePipe, OepaTableCellImgSrcPipe, OepaTableCellInnerHtmlPipe, OepaTableCellValuePipe, OepaTableFilteringDirective, OepaTableSortingDirective, OepaUserAccountService, OrganizationCreateModalComponent, OrganizationSearchInputComponent, OrganizationSearchModalComponent, PDF_IMG, PERMIT_EU_GROUP_IMG, PERMIT_EU_IMG, PERMIT_IMG, PROCESS_IMG, PTableComponent, ParameterService, ParamsHelpButtonComponent, ParamsHelpService, PersonCreateModalComponent, PersonSearchInputComponent, PersonSearchModalComponent, PhoneNumberComponent, PinModalComponent, PlaceCreateModalComponent, PlaceSearchInputComponent, PlaceSearchModalComponent, RED_DOT_IMG, REPORT_EU_GROUP_CAUTION_IMG, REPORT_EU_GROUP_IMG, REPORT_IMG, REPORT_PERIOD_CAUTION_IMG, REPORT_PERIOD_IMG, SCENARIO_IMG, SHUTDOWN_EU_IMG, SHUTDOWN_FACILITY_IMG, STACK_IMG, SelectInputComponent, ServerTimeoutModalComponent, ShoppingCartService, ShoppingCartSummaryComponent, ShoppingCartViewComponent, SortOptions, StartEndTimepickerComponent, TOWER_IMG, TRIVIAL_EU_CAUTION_IMG, TRIVIAL_EU_IMG, TV_APP_EU_GROUP_IMG, TableComponent, TableExportService, TableService, TemplateConfirmationModalComponent, TextAreaInputComponent, TextInputComponent, TimeoutModalComponent, TimepickerComponent, USER_IMG, V_ELLIPSIS_IMG, ValidationService, YesNoBooleanComponent, YesNoComponent, YesNoOtherInputComponent, ZipCodeComponent, oepaCreateIntegerMask };
|
|
9531
9549
|
//# sourceMappingURL=ohioepa-oepa-ui-lib.mjs.map
|