Deleted search bar

This commit is contained in:
2026-05-26 14:09:09 +01:00
parent 6e9daf3e60
commit f233c46853
19 changed files with 7 additions and 150 deletions
+1 -5
View File
@@ -8,12 +8,8 @@
<app-deliverer-form #delivererForm></app-deliverer-form>
</app-modal-button>
<div class="ml-95 w-150">
<app-search class="w-full"></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-4">
<app-deliverer-table #delivererTable></app-deliverer-table>
</div>
-2
View File
@@ -2,7 +2,6 @@ import {Component, inject, viewChild} from '@angular/core';
import {ModalButton} from "../../components/modal-button/modal-button";
import {DelivererTable} from "../../components/deliverer-table/deliverer-table";
import {DelivererForm} from "../../components/deliverer-form/deliverer-form";
import {Search} from "../../components/search/search";
import {DeliverersService} from "../../services/api";
import {NzNotificationService} from "ng-zorro-antd/notification";
import {firstValueFrom} from "rxjs";
@@ -13,7 +12,6 @@ import {firstValueFrom} from "rxjs";
ModalButton,
DelivererTable,
DelivererForm,
Search
],
templateUrl: './deliverer.html',
styleUrl: './deliverer.css',
@@ -1,9 +1,3 @@
<div class="flex mt-2">
<div class="ml-95 w-150">
<app-search></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-2">
<app-deliverery-note-table></app-deliverery-note-table>
</div>
@@ -1,14 +1,10 @@
import {Component} from '@angular/core';
import {DelivereryNoteTable} from "../../components/deliverery-note-table/deliverery-note-table";
import {ModalButton} from "../../components/modal-button/modal-button";
import {DelivereryNoteForm} from "../../components/deliverery-note-form/deliverery-note-form";
import {Search} from "../../components/search/search";
@Component({
selector: 'app-delivery-note',
imports: [
DelivereryNoteTable,
Search
],
templateUrl: './delivery-note.html',
styleUrl: './delivery-note.css',
@@ -1,10 +1,4 @@
<div class="flex mt-2">
<div class="ml-95 w-150">
<app-search></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-2">
<app-purchase-order-table></app-purchase-order-table>
</div>
@@ -1,11 +1,9 @@
import {Component} from '@angular/core';
import {Search} from "../../components/search/search";
import {PurchaseOrderTable} from "../../components/purchase-order-table/purchase-order-table";
@Component({
selector: 'app-purchase-order',
imports: [
Search,
PurchaseOrderTable,
],
templateUrl: './purchase-order.html',
+1 -7
View File
@@ -1,9 +1,3 @@
<div class="flex mt-2">
<div class="ml-95 w-150">
<app-search></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-2">
<app-quotation-table></app-quotation-table>
</div>
-2
View File
@@ -1,11 +1,9 @@
import {Component} from '@angular/core';
import {Search} from "../../components/search/search";
import {QuotationTable} from "../../components/quotation-table/quotation-table";
@Component({
selector: 'app-quotation',
imports: [
Search,
QuotationTable
],
templateUrl: './quotation.html',
+1 -6
View File
@@ -22,13 +22,8 @@
<app-create-quotation-form #quotationForm></app-create-quotation-form>
</app-modal-button>
}
<div class="ml-95 w-150">
<app-search (searchEvent)="onProductSearch($event)"></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-4">
<app-stock-table #stockTable (selectionChange)="onSelectionChange($event)"></app-stock-table>
</div>
-6
View File
@@ -1,6 +1,5 @@
import {Component, inject, viewChild} from '@angular/core';
import {StockTable} from "../../components/stock-table/stock-table";
import {Search} from "../../components/search/search";
import {ModalButton} from "../../components/modal-button/modal-button";
import {PurchaseordersService, QuotationsService} from "../../services/api";
import {NzNotificationService} from "ng-zorro-antd/notification";
@@ -12,7 +11,6 @@ import {CreateQuotationForm} from "../../components/create-quotation-form/create
selector: 'app-stock',
imports: [
StockTable,
Search,
ModalButton,
CreatePurchaseorderForm,
CreateQuotationForm,
@@ -37,10 +35,6 @@ export class Stock {
this.hasSelection = value;
}
onProductSearch(query: string) {
this.productTable().applySearch(query);
}
async addPurchaseOrder() {
const form = this.createPurchaseOrder().createPurchaseOrderForm;
if (form.invalid) {
+1 -4
View File
@@ -8,11 +8,8 @@
<app-supplier-form #supplierForm></app-supplier-form>
</app-modal-button>
<div class="ml-95 w-150">
<app-search (searchEvent)="onSupplierSearch($event)"></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-4">
<app-supplier-table #supplierTable></app-supplier-table>
</div>
-6
View File
@@ -1,5 +1,4 @@
import {Component, inject, viewChild} from '@angular/core';
import {Search} from "../../components/search/search";
import {ModalButton} from "../../components/modal-button/modal-button";
import {SupplierTable} from "../../components/supplier-table/supplier-table";
import {SupplierForm} from "../../components/supplier-form/supplier-form";
@@ -10,7 +9,6 @@ import {firstValueFrom} from "rxjs";
@Component({
selector: 'app-supplier',
imports: [
Search,
SupplierForm,
SupplierTable,
ModalButton
@@ -36,10 +34,6 @@ export class Supplier {
this.modal().isVisible = false;
}
onSupplierSearch(query: string) {
this.supplierTable().applySearch(query);
}
async addSupplier() {
if (this.createSupplier().supplierForm.invalid) {
this.notificationService.error(
+1 -5
View File
@@ -8,12 +8,8 @@
<app-profil-form #profilForm></app-profil-form>
</app-modal-button>
<div class="ml-95 w-150">
<app-search></app-search>
</div>
</div>
<div class="mt-1">
<div class="mt-4">
<app-user-table #userTable></app-user-table>
</div>
-2
View File
@@ -2,7 +2,6 @@ import {Component, inject, viewChild} from '@angular/core';
import {UserTable} from "../../components/user-table/user-table";
import {ModalButton} from "../../components/modal-button/modal-button";
import {ProfilForm} from "../../components/profil-form/profil-form";
import {Search} from "../../components/search/search";
import {UsersService} from "../../services/api";
import {NzNotificationService} from "ng-zorro-antd/notification";
import {firstValueFrom} from "rxjs";
@@ -13,7 +12,6 @@ import {firstValueFrom} from "rxjs";
UserTable,
ModalButton,
ProfilForm,
Search
],
templateUrl: './user.html',
styleUrl: './user.css',