matsen-tool/src/app/layout/two-column/two-column.component.html → matsen-tool/src/app/_components/layout/two-column/two-column.component.htmlZobrazit soubor
matsen-tool/src/app/layout/two-column/two-column.component.scss → matsen-tool/src/app/_components/layout/two-column/two-column.component.scssZobrazit soubor
matsen-tool/src/app/layout/two-column/two-column.component.spec.ts → matsen-tool/src/app/_components/layout/two-column/two-column.component.spec.tsZobrazit soubor
matsen-tool/src/app/layout/two-column/two-column.component.ts → matsen-tool/src/app/_components/layout/two-column/two-column.component.tsZobrazit soubor
+ 32- 0
matsen-tool/src/app/_components/list/list.component.tsZobrazit soubor
@@ -0,0 +1,32 @@
import {PageEvent} from "@angular/material/paginator";
import {error} from "@angular/compiler-cli/src/transformers/util";
export class ListComponent{
protected dataLength: number;
protected pageEvent: PageEvent;
protected pageSize: number;
protected pageIndex: number;
protected pageSizeOptions: number[];
constructor() {
this.dataLength = 0;
this.pageEvent = new PageEvent();
this.pageSize = 10;
this.pageIndex = 0;
this.pageSizeOptions = [10,20.30];
}
getData() {
error('implement in child class');
}
handlePageEvent(e: PageEvent) {
this.pageEvent = e;
this.dataLength = e.length;
this.pageIndex = e.pageIndex.valueOf();
this.pageSize = e.pageSize.valueOf();
this.getData();
}
}
matsen-tool/src/app/account/account-routing.module.ts → matsen-tool/src/app/_views/account/account-routing.module.tsZobrazit soubor
matsen-tool/src/app/account/account.module.ts → matsen-tool/src/app/_views/account/account.module.tsZobrazit soubor
matsen-tool/src/app/account/layout.component.html → matsen-tool/src/app/_views/account/layout.component.htmlZobrazit soubor
matsen-tool/src/app/account/layout.component.ts → matsen-tool/src/app/_views/account/layout.component.tsZobrazit soubor
matsen-tool/src/app/account/login.component.html → matsen-tool/src/app/_views/account/login.component.htmlZobrazit soubor
matsen-tool/src/app/account/login.component.ts → matsen-tool/src/app/_views/account/login.component.tsZobrazit soubor
matsen-tool/src/app/account/register.component.html → matsen-tool/src/app/_views/account/register.component.htmlZobrazit soubor
matsen-tool/src/app/account/register.component.ts → matsen-tool/src/app/_views/account/register.component.tsZobrazit soubor
+ 38- 0
matsen-tool/src/app/_views/contacts/contact-list/contact-list.component.htmlZobrazit soubor
matsen-tool/src/app/contacts/contacts-detail/contacts-detail.component.scss → matsen-tool/src/app/_views/contacts/contact-list/contact-list.component.scssZobrazit soubor
+ 23- 0
matsen-tool/src/app/_views/contacts/contact-list/contact-list.component.spec.tsZobrazit soubor
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ContactListComponent } from './contact-list.component';
describe('ContactsComponent', () => {
let component: ContactListComponent;
let fixture: ComponentFixture<ContactListComponent>;
matsen-tool/src/app/contacts/contacts-detail/contacts-detail.component.html → matsen-tool/src/app/_views/contacts/contacts-detail/contacts-detail.component.htmlZobrazit soubor
matsen-tool/src/app/contacts/contacts.component.scss → matsen-tool/src/app/_views/contacts/contacts-detail/contacts-detail.component.scssZobrazit soubor
matsen-tool/src/app/contacts/contacts-detail/contacts-detail.component.spec.ts → matsen-tool/src/app/_views/contacts/contacts-detail/contacts-detail.component.spec.tsZobrazit soubor
matsen-tool/src/app/contacts/contacts-detail/contacts-detail.component.ts → matsen-tool/src/app/_views/contacts/contacts-detail/contacts-detail.component.tsZobrazit soubor
@@ -4,13 +4,13 @@ import {Subscription} from "rxjs";
import {ActivatedRoute} from "@angular/router";
import {MatPaginator, MatPaginatorIntl, PageEvent} from "@angular/material/paginator";
import {MatTableDataSource} from "@angular/material/table";
import {NewPostingComponent} from "@app/postings/new-posting/new-posting.component";
import {NewPostComponent} from "@app/_views/posts/new-post/new-post.component";
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {NewContactComponent} from "@app/contacts/new-contact/new-contact.component";
import {NewContactComponent} from "@app/_views/contacts/new-contact/new-contact.component";
import {ModalStatus} from "@app/_helpers/modal.states";
import {User} from "@app/_models";
import {AccountService} from "@app/_services";
import {NewCommentComponent} from "@app/postings/new-comment/new-comment.component";
import {NewCommentComponent} from "@app/_views/posts/new-comment/new-comment.component";
import {ApiConverter} from "@app/_helpers/api.converter";
import {constructorParametersDownlevelTransform} from "@angular/compiler-cli";
matsen-tool/src/app/contacts/contacts.component.html → matsen-tool/src/app/_views/contacts/contacts.component.htmlZobrazit soubor
matsen-tool/src/app/contacts/new-contact/new-contact.component.scss → matsen-tool/src/app/_views/contacts/contacts.component.scssZobrazit soubor
matsen-tool/src/app/contacts/contacts.component.spec.ts → matsen-tool/src/app/_views/contacts/contacts.component.spec.tsZobrazit soubor
matsen-tool/src/app/contacts/contacts.component.ts → matsen-tool/src/app/_views/contacts/contacts.component.tsZobrazit soubor
matsen-tool/src/app/contacts/new-contact/new-contact.component.html → matsen-tool/src/app/_views/contacts/new-contact/new-contact.component.htmlZobrazit soubor
matsen-tool/src/app/documents/documents-detail/documents-detail.component.scss → matsen-tool/src/app/_views/contacts/new-contact/new-contact.component.scssZobrazit soubor
matsen-tool/src/app/contacts/new-contact/new-contact.component.spec.ts → matsen-tool/src/app/_views/contacts/new-contact/new-contact.component.spec.tsZobrazit soubor
matsen-tool/src/app/contacts/new-contact/new-contact.component.ts → matsen-tool/src/app/_views/contacts/new-contact/new-contact.component.tsZobrazit soubor
matsen-tool/src/app/documents/documents-detail/documents-detail.component.html → matsen-tool/src/app/_views/documents/documents-detail/documents-detail.component.htmlZobrazit soubor
matsen-tool/src/app/documents/documents.component.scss → matsen-tool/src/app/_views/documents/documents-detail/documents-detail.component.scssZobrazit soubor
matsen-tool/src/app/documents/documents-detail/documents-detail.component.spec.ts → matsen-tool/src/app/_views/documents/documents-detail/documents-detail.component.spec.tsZobrazit soubor
matsen-tool/src/app/documents/documents-detail/documents-detail.component.ts → matsen-tool/src/app/_views/documents/documents-detail/documents-detail.component.tsZobrazit soubor
matsen-tool/src/app/documents/documents.component.html → matsen-tool/src/app/_views/documents/documents.component.htmlZobrazit soubor
matsen-tool/src/app/documents/new-document/new-document.component.scss → matsen-tool/src/app/_views/documents/documents.component.scssZobrazit soubor
matsen-tool/src/app/documents/documents.component.spec.ts → matsen-tool/src/app/_views/documents/documents.component.spec.tsZobrazit soubor
matsen-tool/src/app/documents/documents.component.ts → matsen-tool/src/app/_views/documents/documents.component.tsZobrazit soubor
@@ -8,10 +8,10 @@ import {MatTableDataSource, MatTableModule} from "@angular/material/table";
import {OrderFilter} from "@app/_models/orderFilter";
import {DatePipe, NgIf} from "@angular/common";
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {NewDocumentComponent} from "@app/documents/new-document/new-document.component";
import {NewDocumentComponent} from "@app/_views/documents/new-document/new-document.component";
import {TranslateModule} from "@ngx-translate/core";
import {ModalStatus} from "@app/_helpers/modal.states";
import {NewCommentComponent} from "@app/postings/new-comment/new-comment.component";
import {NewCommentComponent} from "@app/_views/posts/new-comment/new-comment.component";
import {ApiConverter} from "@app/_helpers/api.converter";
@Component({
matsen-tool/src/app/documents/new-document/new-document.component.html → matsen-tool/src/app/_views/documents/new-document/new-document.component.htmlZobrazit soubor
matsen-tool/src/app/partners/new-partner/new-partner.component.scss → matsen-tool/src/app/_views/documents/new-document/new-document.component.scssZobrazit soubor
matsen-tool/src/app/documents/new-document/new-document.component.spec.ts → matsen-tool/src/app/_views/documents/new-document/new-document.component.spec.tsZobrazit soubor
matsen-tool/src/app/documents/new-document/new-document.component.ts → matsen-tool/src/app/_views/documents/new-document/new-document.component.tsZobrazit soubor
matsen-tool/src/app/home/home.component.html → matsen-tool/src/app/_views/home/home.component.htmlZobrazit soubor
matsen-tool/src/app/home/home.component.scss → matsen-tool/src/app/_views/home/home.component.scssZobrazit soubor
matsen-tool/src/app/home/home.component.ts → matsen-tool/src/app/_views/home/home.component.tsZobrazit soubor
@@ -15,9 +15,9 @@ import {
import {MatPaginator, MatPaginatorIntl, PageEvent} from "@angular/material/paginator";
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {MatTableDataSource} from "@angular/material/table";
import {NewTaskComponent} from "@app/tasks/new-task/new-task.component";
import {NewTaskComponent} from "@app/_views/tasks/new-task/new-task.component";
import {ModalStatus} from "@app/_helpers/modal.states";
import {NewTaskNoteComponent} from "@app/tasks/new-task-note/new-task-note.component";
import {NewTaskNoteComponent} from "@app/_views/tasks/new-task-note/new-task-note.component";
import {ApiConverter} from "@app/_helpers/api.converter";
@Component({
matsen-tool/src/app/home/index.ts → matsen-tool/src/app/_views/home/index.tsZobrazit soubor
matsen-tool/src/app/partners/new-partner/new-partner.component.html → matsen-tool/src/app/_views/partners/new-partner/new-partner.component.htmlZobrazit soubor
matsen-tool/src/app/partners/partners-detail/partners-detail.component.scss → matsen-tool/src/app/_views/partners/new-partner/new-partner.component.scssZobrazit soubor
matsen-tool/src/app/partners/new-partner/new-partner.component.spec.ts → matsen-tool/src/app/_views/partners/new-partner/new-partner.component.spec.tsZobrazit soubor
matsen-tool/src/app/partners/new-partner/new-partner.component.ts → matsen-tool/src/app/_views/partners/new-partner/new-partner.component.tsZobrazit soubor
matsen-tool/src/app/partners/partners-detail/partners-detail.component.html → matsen-tool/src/app/_views/partners/partners-detail/partners-detail.component.htmlZobrazit soubor
matsen-tool/src/app/partners/partners.component.scss → matsen-tool/src/app/_views/partners/partners-detail/partners-detail.component.scssZobrazit soubor
matsen-tool/src/app/partners/partners-detail/partners-detail.component.spec.ts → matsen-tool/src/app/_views/partners/partners-detail/partners-detail.component.spec.tsZobrazit soubor
matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts → matsen-tool/src/app/_views/partners/partners-detail/partners-detail.component.tsZobrazit soubor
@@ -1,30 +1,25 @@
import {AfterViewInit, ChangeDetectorRef, Component, OnInit, ViewChild} from '@angular/core';
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {NewContactComponent} from "@app/contacts/new-contact/new-contact.component";
import {ActivatedRoute, Router} from "@angular/router";
matsen-tool/src/app/partners/partners.component.html → matsen-tool/src/app/_views/partners/partners.component.htmlZobrazit soubor
matsen-tool/src/app/postings/new-comment/new-comment.component.scss → matsen-tool/src/app/_views/partners/partners.component.scssZobrazit soubor
matsen-tool/src/app/partners/partners.component.spec.ts → matsen-tool/src/app/_views/partners/partners.component.spec.tsZobrazit soubor
matsen-tool/src/app/partners/partners.component.ts → matsen-tool/src/app/_views/partners/partners.component.tsZobrazit soubor
@@ -9,7 +9,7 @@ import {OrderFilter} from "@app/_models/orderFilter";
import {ApiConverter} from "@app/_helpers/api.converter";
import {NgIf} from "@angular/common";
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {NewPartnerComponent} from "@app/partners/new-partner/new-partner.component";
import {NewPartnerComponent} from "@app/_views/partners/new-partner/new-partner.component";
import {TranslateModule, TranslateService} from "@ngx-translate/core";
import {ModalStatus} from "@app/_helpers/modal.states";
import TypeEnum = PartnerJsonld.PartnerTypeEnum;
matsen-tool/src/app/postings/new-comment/new-comment.component.html → matsen-tool/src/app/_views/posts/new-comment/new-comment.component.htmlZobrazit soubor
matsen-tool/src/app/postings/new-posting/new-posting.component.scss → matsen-tool/src/app/_views/posts/new-comment/new-comment.component.scssZobrazit soubor
matsen-tool/src/app/postings/new-comment/new-comment.component.spec.ts → matsen-tool/src/app/_views/posts/new-comment/new-comment.component.spec.tsZobrazit soubor
matsen-tool/src/app/postings/new-comment/new-comment.component.ts → matsen-tool/src/app/_views/posts/new-comment/new-comment.component.tsZobrazit soubor
matsen-tool/src/app/postings/new-posting/new-posting.component.html → matsen-tool/src/app/_views/posts/new-post/new-post.component.htmlZobrazit soubor
matsen-tool/src/app/postings/postings.component.scss → matsen-tool/src/app/_views/posts/new-post/new-post.component.scssZobrazit soubor
+ 23- 0
matsen-tool/src/app/_views/posts/new-post/new-post.component.spec.tsZobrazit soubor
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NewPostComponent } from './new-post.component';
matsen-tool/src/app/products/new-product/new-product.component.scss → matsen-tool/src/app/_views/posts/post-list/post-list.component.scssZobrazit soubor
+ 23- 0
matsen-tool/src/app/_views/posts/post-list/post-list.component.spec.tsZobrazit soubor
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PostListComponent } from './post-list.component';
matsen-tool/src/app/_views/posts/posts.component.tsZobrazit soubor
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-posts',
templateUrl: './posts.component.html',
styleUrl: './posts.component.scss'
})
export class PostsComponent {
}
matsen-tool/src/app/products/new-product/new-product.component.html → matsen-tool/src/app/_views/products/new-product/new-product.component.htmlZobrazit soubor
matsen-tool/src/app/products/products.component.scss → matsen-tool/src/app/_views/products/new-product/new-product.component.scssZobrazit soubor
matsen-tool/src/app/products/new-product/new-product.component.spec.ts → matsen-tool/src/app/_views/products/new-product/new-product.component.spec.tsZobrazit soubor
matsen-tool/src/app/products/new-product/new-product.component.ts → matsen-tool/src/app/_views/products/new-product/new-product.component.tsZobrazit soubor
matsen-tool/src/app/products/products-detail/products-detail.component.html → matsen-tool/src/app/_views/products/products-detail/products-detail.component.htmlZobrazit soubor
matsen-tool/src/app/profile/profile.component.scss → matsen-tool/src/app/_views/products/products-detail/products-detail.component.scssZobrazit soubor
matsen-tool/src/app/products/products-detail/products-detail.component.spec.ts → matsen-tool/src/app/_views/products/products-detail/products-detail.component.spec.tsZobrazit soubor
matsen-tool/src/app/products/products-detail/products-detail.component.ts → matsen-tool/src/app/_views/products/products-detail/products-detail.component.tsZobrazit soubor
@@ -10,7 +10,7 @@ import {
} from "@app/core/api/v1";
import {ModalStatus} from "@app/_helpers/modal.states";
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {NewProductComponent} from "@app/products/new-product/new-product.component";
import {NewProductComponent} from "@app/_views/products/new-product/new-product.component";
import {User} from "@app/_models";
import {AccountService} from "@app/_services";
import {ApiConverter} from "@app/_helpers/api.converter";
matsen-tool/src/app/products/products.component.html → matsen-tool/src/app/_views/products/products.component.htmlZobrazit soubor
matsen-tool/src/app/sales/new-sale/new-sale.component.scss → matsen-tool/src/app/_views/products/products.component.scssZobrazit soubor
matsen-tool/src/app/products/products.component.spec.ts → matsen-tool/src/app/_views/products/products.component.spec.tsZobrazit soubor
matsen-tool/src/app/products/products.component.ts → matsen-tool/src/app/_views/products/products.component.tsZobrazit soubor
@@ -9,7 +9,7 @@ import {Router, RouterLink, RouterLinkActive} from "@angular/router";
import {NgIf} from "@angular/common";
import {Subscription} from "rxjs";
import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap";
import {NewProductComponent} from "@app/products/new-product/new-product.component";
import {NewProductComponent} from "@app/_views/products/new-product/new-product.component";
import {ModalStatus} from "@app/_helpers/modal.states";
import {TranslateModule} from "@ngx-translate/core";
matsen-tool/src/app/profile/profile.component.html → matsen-tool/src/app/_views/profile/profile.component.htmlZobrazit soubor
@@ -10,4 +10,4 @@
</div>
</div>
</div>
</div>
</div>
matsen-tool/src/app/sales/sales-detail/sales-detail.component.scss → matsen-tool/src/app/_views/profile/profile.component.scssZobrazit soubor
matsen-tool/src/app/profile/profile.component.spec.ts → matsen-tool/src/app/_views/profile/profile.component.spec.tsZobrazit soubor
matsen-tool/src/app/profile/profile.component.ts → matsen-tool/src/app/_views/profile/profile.component.tsZobrazit soubor
matsen-tool/src/app/sales/new-sale/new-sale.component.html → matsen-tool/src/app/_views/sales/new-sale/new-sale.component.htmlZobrazit soubor
matsen-tool/src/app/sales/sales.component.scss → matsen-tool/src/app/_views/sales/new-sale/new-sale.component.scssZobrazit soubor
matsen-tool/src/app/sales/new-sale/new-sale.component.spec.ts → matsen-tool/src/app/_views/sales/new-sale/new-sale.component.spec.tsZobrazit soubor
matsen-tool/src/app/sales/new-sale/new-sale.component.ts → matsen-tool/src/app/_views/sales/new-sale/new-sale.component.tsZobrazit soubor
matsen-tool/src/app/sales/sales-detail/sales-detail.component.html → matsen-tool/src/app/_views/sales/sales-detail/sales-detail.component.htmlZobrazit soubor
matsen-tool/src/app/tasks/new-task-note/new-task-note.component.scss → matsen-tool/src/app/_views/sales/sales-detail/sales-detail.component.scssZobrazit soubor
matsen-tool/src/app/sales/sales-detail/sales-detail.component.spec.ts → matsen-tool/src/app/_views/sales/sales-detail/sales-detail.component.spec.tsZobrazit soubor
matsen-tool/src/app/sales/sales-detail/sales-detail.component.ts → matsen-tool/src/app/_views/sales/sales-detail/sales-detail.component.tsZobrazit soubor