This commit is contained in:
parent
4218da91cd
commit
ddc22e5200
@ -366,7 +366,7 @@ export class MultiDatasetComponent implements OnInit {
|
||||
|
||||
// Set height of parsed data to full height of the page content area
|
||||
const contentAreaHeight = this.contentAreaRef.nativeElement.clientHeight
|
||||
const hotHeight = `${contentAreaHeight-160}px`
|
||||
const hotHeight = `${contentAreaHeight - 160}px`
|
||||
|
||||
if (this.activeParsedDataset) {
|
||||
this.hotInstance.updateSettings({
|
||||
|
@ -151,7 +151,8 @@ export class SasStoreService {
|
||||
* @returns All submits
|
||||
*/
|
||||
public async getSubmitts() {
|
||||
return (await this.sasService.request('editors/getsubmits', null)).adapterResponse
|
||||
return (await this.sasService.request('editors/getsubmits', null))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
/**
|
||||
@ -159,7 +160,8 @@ export class SasStoreService {
|
||||
* @returns All libraries
|
||||
*/
|
||||
public async viewLibs() {
|
||||
return (await this.sasService.request('public/viewlibs', null)).adapterResponse
|
||||
return (await this.sasService.request('public/viewlibs', null))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async refreshLibInfo(libref: string) {
|
||||
@ -167,19 +169,22 @@ export class SasStoreService {
|
||||
lib2refresh: [{ libref }]
|
||||
}
|
||||
|
||||
return (await this.sasService.request('public/refreshlibinfo', data)).adapterResponse
|
||||
return (await this.sasService.request('public/refreshlibinfo', data))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async viewTables(lib: any) {
|
||||
let tables = { SASControlTable: [{ MPLIB: lib }] }
|
||||
return (await this.sasService.request('public/viewtables', tables)).adapterResponse
|
||||
return (await this.sasService.request('public/viewtables', tables))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async viewData(libDataset: any, filter_pk: any) {
|
||||
let tables = {
|
||||
SASControlTable: [{ LIBDS: libDataset, FILTER_RK: filter_pk }]
|
||||
}
|
||||
return (await this.sasService.request('public/viewdata', tables)).adapterResponse
|
||||
return (await this.sasService.request('public/viewdata', tables))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async viewDataSearch(
|
||||
@ -201,29 +206,35 @@ export class SasStoreService {
|
||||
]
|
||||
}
|
||||
|
||||
return (await this.sasService.request('public/viewdata', tables)).adapterResponse
|
||||
return (await this.sasService.request('public/viewdata', tables))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async getXLMapRules(id: string) {
|
||||
const tables = {
|
||||
getxlmaps_in: [{ XLMAP_ID: id }]
|
||||
}
|
||||
return (await this.sasService.request('editors/getxlmaps', tables)).adapterResponse
|
||||
return (await this.sasService.request('editors/getxlmaps', tables))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async showDiffs(tableData: any, tableName: string, program: string) {
|
||||
let tables: any = {}
|
||||
tables[tableName] = [tableData]
|
||||
return (await this.sasService.request(program, tables, {
|
||||
useComputeApi: false
|
||||
})).adapterResponse
|
||||
return (
|
||||
await this.sasService.request(program, tables, {
|
||||
useComputeApi: false
|
||||
})
|
||||
).adapterResponse
|
||||
}
|
||||
public async rejecting(tableData: any, tableName: string, program: string) {
|
||||
let tables: any = {}
|
||||
tables[tableName] = [tableData]
|
||||
return (await this.sasService.request(program, tables, {
|
||||
useComputeApi: false
|
||||
})).adapterResponse
|
||||
return (
|
||||
await this.sasService.request(program, tables, {
|
||||
useComputeApi: false
|
||||
})
|
||||
).adapterResponse
|
||||
}
|
||||
|
||||
public async approveTable(
|
||||
@ -252,7 +263,8 @@ export class SasStoreService {
|
||||
public async getChangeInfo(tableId: any) {
|
||||
let obj = { TABLE: tableId }
|
||||
let table = { SASControlTable: [obj] }
|
||||
return (await this.sasService.request('public/getchangeinfo', table)).adapterResponse
|
||||
return (await this.sasService.request('public/getchangeinfo', table))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public async getQueryValues(
|
||||
@ -277,11 +289,13 @@ export class SasStoreService {
|
||||
tables.FILTERQUERY = filterQuery
|
||||
}
|
||||
|
||||
return (await this.sasService
|
||||
.request('public/getcolvals', tables)
|
||||
.catch((er: any) => {
|
||||
throw er
|
||||
})).adapterResponse
|
||||
return (
|
||||
await this.sasService
|
||||
.request('public/getcolvals', tables)
|
||||
.catch((er: any) => {
|
||||
throw er
|
||||
})
|
||||
).adapterResponse
|
||||
}
|
||||
|
||||
public async saveQuery(libds: string, filterQuery: QueryClause[]) {
|
||||
@ -290,10 +304,7 @@ export class SasStoreService {
|
||||
filterquery: filterQuery
|
||||
}
|
||||
|
||||
const res = await this.sasService.request(
|
||||
'public/validatefilter',
|
||||
tables
|
||||
)
|
||||
const res = await this.sasService.request('public/validatefilter', tables)
|
||||
|
||||
this.filter.next(res)
|
||||
|
||||
@ -302,10 +313,8 @@ export class SasStoreService {
|
||||
|
||||
public async openTable(tableId: string) {
|
||||
let tables = { iwant: [{ table_id: tableId }] }
|
||||
return (await this.sasService.request(
|
||||
'auditors/getstagetable',
|
||||
tables
|
||||
)).adapterResponse
|
||||
return (await this.sasService.request('auditors/getstagetable', tables))
|
||||
.adapterResponse
|
||||
}
|
||||
|
||||
public checkOperator(operator: any, value: any, type: string) {
|
||||
|
@ -473,7 +473,9 @@ export class SpreadsheetUtil {
|
||||
}
|
||||
|
||||
if (typeof Worker === 'undefined') {
|
||||
console.info('Not using worker to parse the XLSX - no Worker available in this environment')
|
||||
console.info(
|
||||
'Not using worker to parse the XLSX - no Worker available in this environment'
|
||||
)
|
||||
// Web workers are not supported in this environment.
|
||||
// You should add a fallback so that your program still executes correctly.
|
||||
return resolve(XLSX.read(data, opts))
|
||||
@ -491,9 +493,10 @@ export class SpreadsheetUtil {
|
||||
resolve(data.workbook)
|
||||
} else if (data.error) {
|
||||
reject(data.error)
|
||||
}
|
||||
else {
|
||||
console.info('Worker failed to parse the XLSX - fallback to non worker parsing')
|
||||
} else {
|
||||
console.info(
|
||||
'Worker failed to parse the XLSX - fallback to non worker parsing'
|
||||
)
|
||||
// Fallback to reading without Worker
|
||||
resolve(XLSX.read(data, opts))
|
||||
}
|
||||
|
@ -293,9 +293,7 @@ export class ViewerComponent implements AfterContentInit, AfterViewInit {
|
||||
this.libinfo = null
|
||||
|
||||
this.sasStoreService.refreshLibInfo(this.lib).then(
|
||||
async (
|
||||
res: PublicRefreshlibinfoServiceResponse
|
||||
) => {
|
||||
async (res: PublicRefreshlibinfoServiceResponse) => {
|
||||
this.libinfo = res.libinfo
|
||||
globals.viewer.libinfo = this.libinfo
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user