31 lines
958 B
TypeScript
31 lines
958 B
TypeScript
import React from 'react';
|
|
import { WebComponentProps } from 'oak-frontend-base';
|
|
import { EntityDict } from '../../oak-app-domain';
|
|
type RowItem = {
|
|
aId: string;
|
|
aName: string;
|
|
passports: {
|
|
pId: string;
|
|
apId: string;
|
|
checked: boolean;
|
|
disabled: boolean;
|
|
disabledTip: string;
|
|
}[];
|
|
defaultOptions: {
|
|
label: string;
|
|
value: string;
|
|
}[];
|
|
defaultValue: string;
|
|
};
|
|
export default function render(props: WebComponentProps<EntityDict, 'applicationPassport', true, {
|
|
applicationPassports: EntityDict['applicationPassport']['OpSchema'][];
|
|
systemId: string;
|
|
applications: EntityDict['application']['Schema'][];
|
|
passports: EntityDict['passport']['Schema'][];
|
|
apArray: RowItem[];
|
|
}, {
|
|
onCheckedChange: (apId: string, pId: string, aId: string, checked: boolean) => void;
|
|
checkLastOne: (aId: string, apId: string) => boolean;
|
|
}>): React.JSX.Element;
|
|
export {};
|