Skip to content

Commit

Permalink
fix: transfer document from start to aas
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Feb 10, 2024
1 parent d8e6180 commit 9110142
Show file tree
Hide file tree
Showing 121 changed files with 140 additions and 126 deletions.
5 changes: 3 additions & 2 deletions projects/aas-lib/src/lib/aas-lib.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { messageTableReducer } from './message-table/massage-table.reducer';
import { MessageTableComponent } from './message-table/message-table.component';
import { SecuredImageComponent } from './secured-image/secured-image.component';
import { AASTableEffects } from './aas-table/aas-table.effects';
import { ClipboardService } from './clipboard.service';

@NgModule({
declarations: [
Expand Down Expand Up @@ -92,6 +93,6 @@ import { AASTableEffects } from './aas-table/aas-table.effects';
MessageTableComponent,
SecuredImageComponent,
],
providers: [],
providers: [ClipboardService],
})
export class AASLibModule {}
export class AASLibModule {}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-table/aas-table.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export const setSelections = createAction(AASTableActionType.SET_SELECTIONS, pro

export const expandRow = createAction(AASTableActionType.EXPAND, props<{ row: AASTableRow }>());

export const collapseRow = createAction(AASTableActionType.COLLAPSE, props<{ row: AASTableRow }>());
export const collapseRow = createAction(AASTableActionType.COLLAPSE, props<{ row: AASTableRow }>());
3 changes: 2 additions & 1 deletion projects/aas-lib/src/lib/aas-table/aas-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class AASTableComponent implements OnInit, OnChanges, OnDestroy {
const query: AASQuery = {
id: row.id,
name: row.endpoint,
document: row.document,
};

this.clipboard.set('AASQuery', query);
Expand Down Expand Up @@ -155,4 +156,4 @@ export class AASTableComponent implements OnInit, OnChanges, OnDestroy {
this.shiftKey = event.shiftKey;
this.altKey = event.altKey;
};
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-table/aas-table.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ export class AASTableEffects {
row.nextSibling,
);
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-table/aas-table.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ function collapseRow(state: AASTableState, row: AASTableRow): AASTableState {
rows[index] = new AASTableRow(row.document, false, false, row.isLeaf, row.level, row.firstChild, row.nextSibling);

return { ...state, rows };
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-table/aas-table.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export const selectEverySelected = createSelector(getRows, (rows: AASTableRow[])

export const selectRows = createSelector(getState, state => {
return state.rows;
});
});
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-table/aas-table.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ export interface AASTableState {

export interface AASTableFeatureState {
aasTable: AASTableState;
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-tree/aas-tree-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ export class AASTreeApiService {
});
});
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-tree/aas-tree-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,4 @@ export class AASTreeSearch {
return false;
}
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-tree/aas-tree.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export const setMatchIndex = createAction(AASTreeActionType.SET_MATCH_INDEX, pro
export const setSelectedElements = createAction(
AASTreeActionType.SET_SELECTED_ELEMENTS,
props<{ elements: aas.Referable[] }>(),
);
);
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/aas-tree/aas-tree.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export const selectSomeSelected = createSelector(

export const selectEverySelected = createSelector(getRows, rows => rows.length > 0 && rows.every(row => row.selected));

export const selectSelectedRows = createSelector(getRows, rows => rows.filter(row => row.selected));
export const selectSelectedRows = createSelector(getRows, rows => rows.filter(row => row.selected));
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ export class OperationCallFormComponent {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export class ShowImageFormComponent {
public close(): void {
this._modal.close();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export class ShowVideoFormComponent {
public close(): void {
this._modal.close();
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/auth/auth-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ export class AuthApiService {
public deleteCookie(id: string, name: string): Observable<void> {
return this.http.delete<void>(`/api/v1/users/${encodeBase64Url(id)}/cookies/${name}`);
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/auth/auth.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export class AuthComponent {
public updateUserProfile(): void {
this.auth.updateUserProfile().subscribe({ error: error => this.notify.error(error) });
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/auth/auth.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export class AuthInterceptor implements HttpInterceptor {
return next.handle(req);
}
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ export class AuthService {
});
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ export class LoginFormComponent {
private clearMessages(): void {
this.messages = [];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ export class ProfileFormComponent {
private clearMessages(): void {
this.messages = [];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ export class RegisterFormComponent {
private clearMessages(): void {
this.messages = [];
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/clipboard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ export class ClipboardService {
this.data.clear();
}
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ export function convertBlobToBase64Async(blob: Blob): Promise<string> {
reader.onerror = reject;
reader.readAsDataURL(blob);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export const initialize = createAction(
items: GeneralItem[];
feedbacks: FeedbackItem[];
}>(),
);
);
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@ export class CustomerFeedbackComponent implements SubmodelTemplate, OnInit, OnCh
private findProperty(element: aas.SubmodelElementCollection, name: string): aas.Property | undefined {
return element.value?.find(child => child.modelType === 'Property' && child.idShort === name) as aas.Property;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ function initialize(
feedbacks: feedbacks,
error: null,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ import { CustomerFeedbackFeatureState } from './customer-feedback.state';

const getCustomerFeedback = (state: CustomerFeedbackFeatureState) => state.customerFeedback;

export const selectCustomerFeedback = createSelector(getCustomerFeedback, customerFeedback => customerFeedback);
export const selectCustomerFeedback = createSelector(getCustomerFeedback, customerFeedback => customerFeedback);
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export interface CustomerFeedbackState {

export interface CustomerFeedbackFeatureState {
customerFeedback: CustomerFeedbackState;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ export class DigitalNameplateComponent implements SubmodelTemplate, OnChanges {

return '';
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/document.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export class DocumentService {
public createElement(tagName: string, options?: ElementCreationOptions): HTMLElement {
return document.createElement(tagName, options);
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/download.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ export class DownloadService {
observe: 'events',
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export class LibraryTableComponent implements OnChanges {
this.libraries = this.collection.map((library, i) => ({ id: i + 1, ...library }));
}
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/localize/culture-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
export interface CultureInfo {
localeId: string;
name: string;
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/localize/localize.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ export class LocalizeComponent implements OnInit, OnChanges, OnDestroy {
localeId = localeId?.toLocaleLowerCase();
return cultures.find(item => item.localeId.toLocaleLowerCase() === localeId);
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/max-length.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export class MaxLengthPipe implements PipeTransform {
const end = value.slice(value.length - m2 + 2);
return start + '...' + end;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ function toggleShowInfo(state: MessageTableState): MessageTableState {

function toggleShowWarning(state: MessageTableState): MessageTableState {
return { ...state, showWarning: !state.showWarning };
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export const toggleShowInfo = createAction(MessageTableActionType.TOGGLE_SHOW_IN

export const toggleShowWarning = createAction(MessageTableActionType.TOGGLE_SHOW_WARNING);

export const toggleShowError = createAction(MessageTableActionType.TOGGLE_SHOW_ERROR);
export const toggleShowError = createAction(MessageTableActionType.TOGGLE_SHOW_ERROR);
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ export class MessageTableComponent implements OnInit, OnChanges, OnDestroy {
return 0;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ import { MessageTableFeatureState } from './message-table.state';

const getState = (state: MessageTableFeatureState) => state.messageTable;

export const selectState = createSelector(getState, state => state);
export const selectState = createSelector(getState, state => state);
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export interface MessageTableState {

export interface MessageTableFeatureState {
messageTable: MessageTableState;
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/notify/notify.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export class NotifyComponent implements OnInit {
public ngOnInit(): void {
this.notify.clear();
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/notify/notify.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ export class NotifyService {
}
}
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/score/score.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export class ScoreComponent implements OnChanges {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export class SecuredImageComponent implements OnChanges {
.get(url, { responseType: 'blob' })
.pipe(map(e => this.domSanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(e))));
}
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/sortable-header.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ export class SortableHeaderDirective {
this.direction = rotate[this.direction];
this.sort.emit({ column: this.sortable, direction: this.direction });
}
}
}
5 changes: 4 additions & 1 deletion projects/aas-lib/src/lib/types/aas-query-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*
*****************************************************************************/

import { AASDocument } from 'common';

export interface AASQueryParams {
format?: string;
id?: string;
Expand All @@ -15,4 +17,5 @@ export interface AASQuery {
id: string;
name?: string;
search?: string;
}
document?: AASDocument;
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export interface Environment {
version: string;
homepage: string;
author: string;
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const ERRORS = {
PASSWORDS_NOT_EQUAL: 'ERROR_PASSWORDS_NOT_EQUAL',
DASHBOARD_PAGE_ALREADY_EXISTS: 'ERROR_DASHBOARD_PAGE_ALREADY_EXISTS',
UNAUTHORIZED_ACCESS: 'ERROR_UNAUTHORIZED_ACCESS',
};
};
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

export const INFO = {
NEW_PASSWORD_SENT: 'INFO_NEW_PASSWORD_SENT',
};
};
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/message-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export interface MessageEntry {
delay: number;
autohide: boolean;
classname?: string;
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/online-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
*
*****************************************************************************/

export type OnlineState = 'offline' | 'online';
export type OnlineState = 'offline' | 'online';
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/view-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export enum ViewMode {
Undefined = '',
List = 'list',
Tree = 'tree',
}
}
2 changes: 1 addition & 1 deletion projects/aas-lib/src/lib/types/view-query-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export interface ViewQueryParams {

export interface ViewQuery {
descriptor: SubmodelViewDescriptor;
}
}
Loading

0 comments on commit 9110142

Please sign in to comment.