diff --git a/src/app/pages/catalogs/catalogs.component.html b/src/app/pages/catalogs/catalogs.component.html index 711cf968..37af1d5c 100644 --- a/src/app/pages/catalogs/catalogs.component.html +++ b/src/app/pages/catalogs/catalogs.component.html @@ -35,7 +35,10 @@
{{ data.name }}
-{{ data.postalAddress.street }}, {{ data.postalAddress.postCode }}, {{ data.postalAddress.city}}, {{ data.postalAddress.stateOrProvince }}, {{ data.postalAddress.country }}
+{{ data.name }}
+{{ data.postalAddress.street }}, {{ data.postalAddress.postCode }}, {{ data.postalAddress.city}}, {{ data.postalAddress.stateOrProvince }}, {{ data.postalAddress.country }}
| + | {{serv.name}} |
@@ -400,7 +430,10 @@ {{res.id}} |
- + | {{res.name}} |
diff --git a/src/app/pages/product-inventory/inventory-items/inventory-products/inventory-products.component.ts b/src/app/pages/product-inventory/inventory-items/inventory-products/inventory-products.component.ts
index bbe5f6a8..c9422627 100644
--- a/src/app/pages/product-inventory/inventory-items/inventory-products/inventory-products.component.ts
+++ b/src/app/pages/product-inventory/inventory-items/inventory-products/inventory-products.component.ts
@@ -306,4 +306,12 @@ export class InventoryProductsComponent implements OnInit {
this.eventMessage.emitOpenResourceDetails({resourceId: id, prodId: this.selectedProduct.id});
}
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
+
}
diff --git a/src/app/pages/product-inventory/inventory-items/product-inv-detail/product-inv-detail.component.html b/src/app/pages/product-inventory/inventory-items/product-inv-detail/product-inv-detail.component.html
index 96d27c29..6ecb9aae 100644
--- a/src/app/pages/product-inventory/inventory-items/product-inv-detail/product-inv-detail.component.html
+++ b/src/app/pages/product-inventory/inventory-items/product-inv-detail/product-inv-detail.component.html
@@ -36,7 +36,10 @@
-
{{ 'PRODUCT_DETAILS._service_spec' | translate }}:@for(service of serviceSpecs; track service.id){ -{{service.name}}: {{service.name}}: | {{res.id}} | -+ | {{res.name}} |
@@ -226,7 +229,10 @@ {{ 'OFFERINGS._order_by' | translate }}{{selectedRes.name}}-{{ 'PRODUCT_INVENTORY._res_details' | translate }}diff --git a/src/app/pages/product-inventory/inventory-resources/inventory-resources.component.ts b/src/app/pages/product-inventory/inventory-resources/inventory-resources.component.ts index c302f18d..04f4c9c6 100644 --- a/src/app/pages/product-inventory/inventory-resources/inventory-resources.component.ts +++ b/src/app/pages/product-inventory/inventory-resources/inventory-resources.component.ts @@ -134,4 +134,12 @@ export class InventoryResourcesComponent implements OnInit { this.getInventory(false); } + hasLongWord(str: string | undefined, threshold = 20) { + if(str){ + return str.split(/\s+/).some(word => word.length > threshold); + } else { + return false + } + } + } diff --git a/src/app/pages/product-inventory/inventory-services/inventory-services.component.html b/src/app/pages/product-inventory/inventory-services/inventory-services.component.html index 8579dd6e..db1e85e5 100644 --- a/src/app/pages/product-inventory/inventory-services/inventory-services.component.html +++ b/src/app/pages/product-inventory/inventory-services/inventory-services.component.html @@ -150,7 +150,10 @@{{ 'OFFERINGS._order_by' | translate }}
{{serv.id}}
|
-
+ |
{{serv.name}}
|
@@ -226,7 +229,10 @@ | {{ 'OFFERINGS._order_by' | translate }}{{selectedServ.name}}-{{ 'PRODUCT_INVENTORY._serv_chars' | translate }}diff --git a/src/app/pages/product-inventory/inventory-services/inventory-services.component.ts b/src/app/pages/product-inventory/inventory-services/inventory-services.component.ts index ff29cacb..68a0958e 100644 --- a/src/app/pages/product-inventory/inventory-services/inventory-services.component.ts +++ b/src/app/pages/product-inventory/inventory-services/inventory-services.component.ts @@ -130,4 +130,12 @@ export class InventoryServicesComponent implements OnInit { this.getInventory(false); } + hasLongWord(str: string | undefined, threshold = 20) { + if(str){ + return str.split(/\s+/).some(word => word.length > threshold); + } else { + return false + } + } + } diff --git a/src/app/pages/search-catalog/search-catalog.component.html b/src/app/pages/search-catalog/search-catalog.component.html index e10555b5..766754c7 100644 --- a/src/app/pages/search-catalog/search-catalog.component.html +++ b/src/app/pages/search-catalog/search-catalog.component.html @@ -17,7 +17,10 @@ - {{ catalog.name }} + {{ catalog.name }}{{ 'CREATE_
} @else {
-
}
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-catalogs/create-catalog/create-catalog.component.ts b/src/app/pages/seller-offerings/offerings/seller-catalogs/create-catalog/create-catalog.component.ts
index ea18e8bd..f80dab4b 100644
--- a/src/app/pages/seller-offerings/offerings/seller-catalogs/create-catalog/create-catalog.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-catalogs/create-catalog/create-catalog.component.ts
@@ -281,4 +281,12 @@ export class CreateCatalogComponent implements OnInit {
this.description=''
}
}
+
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.html b/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.html
index 0023d951..e022482e 100644
--- a/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.html
@@ -151,7 +151,10 @@ {{ 'OFFERINGS._order_by' | translate }}@for (cat of catalogs; track cat.id) {
+ |
{{cat.name}}
|
diff --git a/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.ts b/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.ts
index abbc06db..8bea053f 100644
--- a/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-catalogs/seller-catalogs.component.ts
@@ -141,4 +141,12 @@ export class SellerCatalogsComponent {
this.nextCatalogs=[];
this.getCatalogs(false);
}
+
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.html b/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.html
index a9747134..fa2b7615 100644
--- a/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.html
@@ -168,7 +168,10 @@ | {{ 'UPDATE_
} @else {
-
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.ts b/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.ts
index 474215ef..e85f50bf 100644
--- a/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.ts
@@ -289,5 +289,13 @@ export class UpdateCatalogComponent implements OnInit {
this.description=''
}
}
+
+ hasLongWord(str: string | undefined | null, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.html b/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.html
index 7805d1cc..8447fbab 100644
--- a/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.html
@@ -170,7 +170,10 @@ New price c
Product characteristic
Price profile@for (price of createdPriceComponents; track price;) {
+ |
{{price.name}}
|
-
+ |
{{price.description}}
|
{{price.price.value}} {{price.price.unit}}
|
-
+ |
{{price.priceType}}
|
diff --git a/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.ts b/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.ts
index f7c321af..764e1cd5 100644
--- a/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-offer/new-price-plan/new-price-plan.component.ts
@@ -718,4 +718,12 @@ export class NewPricePlanComponent implements OnInit {
initFlowbite();
}
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
+
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.html b/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.html
index 9956ea50..10577307 100644
--- a/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.html
@@ -154,7 +154,10 @@ | {{ 'OFFERINGS._order_by' | translate }}
+ |
{{offer.name}}
|
diff --git a/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.ts b/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.ts
index b04645ce..1cb5b7ac 100644
--- a/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-offer/seller-offer.component.ts
@@ -160,4 +160,12 @@ export class SellerOfferComponent implements OnInit{
}
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
+
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.html b/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.html
index 4a73a269..10d7ce91 100644
--- a/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.html
@@ -171,7 +171,10 @@ | New price c
Product characteristic
Price profile@for (price of createdPriceComponents; track price;) {
+ |
{{price.name}}
|
-
+ |
{{price.description}}
|
{{price.price.value}} {{price.price.unit}}
|
-
+ |
{{price.priceType}}
|
diff --git a/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.ts b/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.ts
index ebdbf177..f73fe17a 100644
--- a/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-offer/update-price-plan/update-price-plan.component.ts
@@ -752,5 +752,13 @@ export class UpdatePricePlanComponent implements OnInit {
initFlowbite();
}
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
+
}
diff --git a/src/app/pages/seller-offerings/offerings/seller-product-spec/create-product-spec/create-product-spec.component.html b/src/app/pages/seller-offerings/offerings/seller-product-spec/create-product-spec/create-product-spec.component.html
index 61ff6d89..e97e1c51 100644
--- a/src/app/pages/seller-offerings/offerings/seller-product-spec/create-product-spec/create-product-spec.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-product-spec/create-product-spec/create-product-spec.component.html
@@ -238,7 +238,10 @@ | {{ 'CREATE_
@for (prod of prodSpecs; track prod.id) {
+ |
{{prod.name}}
|
@@ -377,7 +380,10 @@ |
@for (sel of selectedISOS; track sel.name; let idx = $index) {
+ |
{{sel.name}}
|
@@ -482,10 +488,16 @@ | {{ 'CREATE_
@for (prod of prodChars; track prod;) {
+ |
{{prod.name}}
|
-
+ |
{{prod.description}}
|
@@ -751,7 +763,10 @@ | {{ 'CREATE_
@for (res of resourceSpecs; track res.id) {
+ |
{{res.name}}
|
@@ -851,7 +866,10 @@ | {{ 'CREATE_
@for (serv of serviceSpecs; track serv.id) {
+ |
{{serv.name}}
|
@@ -1018,7 +1036,10 @@ | {{ 'CREATE_PROD_SPEC._add_att
@for (att of prodAttachments; track att) {
+ |
{{att.name}}
|
@@ -1149,7 +1170,10 @@ | {{ 'CREATE_
{{ 'CREATE_
@for (rel of prodSpecRels; track rel) {
+ |
{{rel.name}}
|
@@ -1311,7 +1338,10 @@ | {{ 'CREATE_
{{ 'CREATE_{{ 'CREATE_
@if(productSpecToCreate?.description !=''){
+ |
{{bun.name}}
|
@@ -1418,10 +1457,16 @@ | {{ 'CREATE_
@for (prod of productSpecToCreate?.productSpecCharacteristic; track prod;) {
+ |
{{prod.name}}
|
-
+ |
{{prod.description}}
|
@@ -1470,7 +1515,10 @@ | {{ 'CREATE_
@for (res of selectedResourceSpecs; track res) {
+ |
{{res.name}}
|
+ |
{{serv.name}}
|
{{ 'CREATE_
@for (att of productSpecToCreate?.attachment; track att) {
+ |
{{att.name}}
|
@@ -1560,7 +1614,10 @@ | {{ 'CREATE_
{{ 'OFFERINGS._order_by' | translate }}
+ |
{{prod.name}}
|
diff --git a/src/app/pages/seller-offerings/offerings/seller-product-spec/seller-product-spec.component.ts b/src/app/pages/seller-offerings/offerings/seller-product-spec/seller-product-spec.component.ts
index af8a27e3..bac99853 100644
--- a/src/app/pages/seller-offerings/offerings/seller-product-spec/seller-product-spec.component.ts
+++ b/src/app/pages/seller-offerings/offerings/seller-product-spec/seller-product-spec.component.ts
@@ -160,4 +160,12 @@ export class SellerProductSpecComponent implements OnInit{
}
this.getProdSpecs(false);
}
+
+ hasLongWord(str: string | undefined, threshold = 20) {
+ if(str){
+ return str.split(/\s+/).some(word => word.length > threshold);
+ } else {
+ return false
+ }
+ }
}
\ No newline at end of file
diff --git a/src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.html b/src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.html
index b8aaf27b..1719eb19 100644
--- a/src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.html
+++ b/src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.html
@@ -301,7 +301,10 @@ | {{ 'UPDATE_
@for (prod of prodSpecs; track prod.id) {
+ |
{{prod.name}}
|
@@ -466,7 +469,10 @@ | {{ 'UPDATE_PROD_SPEC._ho
@for (sel of selectedISOS; track sel.name; let idx = $index) {
+ |
{{sel.name}}
|
@@ -585,10 +591,16 @@ | {{ 'UPDATE_
@for (prod of prodChars; track prod;) {
+ |
{{prod.name}}
|
-
+ |
{{prod.description}}
|
@@ -862,7 +874,10 @@ | {{ 'UPDATE_
@for (res of resourceSpecs; track res.id) {
+ |
{{res.name}}
|
@@ -962,7 +977,10 @@ | {{ 'UPDATE_
@for (serv of serviceSpecs; track serv.id) {
+ |
{{serv.name}}
|
@@ -1128,7 +1146,10 @@ | {{ 'UPDATE_PROD_SPEC._add_att
@for (att of prodAttachments; track att) {
+ |
{{att.name}}
|
@@ -1253,7 +1274,10 @@ | {{ 'UPDATE_
{{ 'UPDATE_
@for (rel of prodSpecRels; track rel) {
+ |
{{rel.name}}
|
@@ -1401,7 +1428,10 @@ | {{ 'UPDATE_
{{ 'UPDATE_{{ 'UPDATE_
@if(productSpecToUpdate?.description !=''){
+ |
{{bun.name}}
|
@@ -1508,10 +1547,16 @@ | {{ 'UPDATE_
@for (prod of productSpecToUpdate?.productSpecCharacteristic; track prod;) {
+ |
{{prod.name}}
|
-
+ |
{{prod.description}}
|
@@ -1560,7 +1605,10 @@ | {{ 'UPDATE_
@for (res of selectedResourceSpecs; track res) {
+ |
{{res.name}}
|
+ |
{{serv.name}}
|
{{ 'UPDATE_
@for (att of productSpecToUpdate?.attachment; track att) {
+ |
{{att.name}}
|
@@ -1644,7 +1698,10 @@ | {{ 'UPDATE_
|
{{resource.name}}:
{{resource.name}}: