chore: add Tailwind CSS configuration file. ux writing update
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
<shared-dialog
|
||||
header="ایجاد فعالیت اقتصادی"
|
||||
header="افزودن فعالیت اقتصادی"
|
||||
[(visible)]="visible"
|
||||
[modal]="true"
|
||||
[style]="{ width: '520px' }"
|
||||
@@ -9,8 +9,8 @@
|
||||
<p-stepper [value]="activeStep()" [linear]="true">
|
||||
<p-step-list>
|
||||
<p-step [value]="1">فعالیت اقتصادی</p-step>
|
||||
<p-step [value]="2" [disabled]="!businessActivity()">فروشگاه</p-step>
|
||||
<p-step [value]="3" [disabled]="!complex()">پایانهی فروشگاهی</p-step>
|
||||
<p-step [value]="2" [disabled]="!businessActivity()">شعبه</p-step>
|
||||
<p-step [value]="3" [disabled]="!complex()">پایانه فروشگاهی</p-step>
|
||||
</p-step-list>
|
||||
</p-stepper>
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { AbstractDialog } from '@/shared/abstractClasses/abstract-dialog';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { IBusinessActivityResponse } from '../../models';
|
||||
import { ConsumerBusinessActivitiesFormComponent } from './form.component';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'partner-consumer-businessActivities-form',
|
||||
@@ -18,7 +18,7 @@ export class ConsumerBusinessActivitiesFormDialogComponent extends AbstractDialo
|
||||
@Input() businessActivityId!: string;
|
||||
|
||||
get preparedTitle() {
|
||||
return `${this.editMode ? 'ویرایش' : 'ایجاد'} فعالیت اقتصادی`;
|
||||
return `${this.editMode ? 'ویرایش' : 'افزودن'} فعالیت اقتصادی`;
|
||||
}
|
||||
|
||||
onFormSubmit(response: IBusinessActivityResponse) {
|
||||
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
<form [formGroup]="form" (submit)="submit()" class="flex flex-col gap-4">
|
||||
<field-name [control]="$any(form).controls.name" />
|
||||
<field-economic-code [control]="$any(form).controls.economic_code" />
|
||||
<field-fiscal-code [control]="$any(form).controls.fiscal_id" />
|
||||
<field-partner-token [control]="$any(form).controls.partner_token" />
|
||||
<field-guild-id [control]="$any(form).controls.guild_id" />
|
||||
<field-name [control]="form.controls.name" />
|
||||
<field-economic-code [control]="form.controls.economic_code" />
|
||||
<field-fiscal-code [control]="form.controls.fiscal_id" />
|
||||
<field-partner-token [control]="form.controls.partner_token" />
|
||||
<field-guild-id [control]="form.controls.guild_id" />
|
||||
|
||||
@if (!editMode) {
|
||||
<p-divider align="center"> اطلاعات لایسنس </p-divider>
|
||||
<field-license-starts-at [control]="$any(form).controls.license_starts_at" />
|
||||
<field-license-starts-at [control]="form.controls.license_starts_at" />
|
||||
}
|
||||
|
||||
<app-form-footer-actions [submitLabel]="'ذخیره'" [loading]="submitLoading()" (onCancel)="close()" />
|
||||
|
||||
+1
@@ -73,6 +73,7 @@ export class ConsumerBusinessActivitiesFormComponent extends AbstractForm<
|
||||
|
||||
submitForm() {
|
||||
const formValue = this.form.value as IBusinessActivityRequest;
|
||||
formValue.economic_code = String(formValue.economic_code);
|
||||
if (this.editMode) {
|
||||
return this.service.update(this.consumerId, this.businessActivityId, formValue);
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
<app-page-data-list
|
||||
pageTitle="مدیریت فعالیتهای اقتصادی"
|
||||
[addNewCtaLabel]="'افزودن فعالیت اقتصادی جدید'"
|
||||
[addNewCtaLabel]="'افزودن فعالیت اقتصادی'"
|
||||
[columns]="columns"
|
||||
[showAdd]="true"
|
||||
emptyPlaceholderTitle="فعالیت اقتصادیای یافت نشد."
|
||||
emptyPlaceholderDescription="برای افزودن فعالیت اقتصادی جدید، روی دکمهٔ بالا کلیک کنید."
|
||||
emptyPlaceholderDescription="برای افزودن فعالیت اقتصادی، روی دکمهٔ بالا کلیک کنید."
|
||||
[items]="items()"
|
||||
[loading]="loading()"
|
||||
[showDetails]="true"
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
<shared-dialog
|
||||
header="ایجاد فروشگاه"
|
||||
header="افزودن شعبه"
|
||||
[(visible)]="visible"
|
||||
[modal]="true"
|
||||
[style]="{ width: '400px' }"
|
||||
@@ -8,8 +8,8 @@
|
||||
>
|
||||
<p-stepper [value]="activeStep()" [linear]="true">
|
||||
<p-step-list>
|
||||
<p-step [value]="1">فروشگاه</p-step>
|
||||
<p-step [value]="2" [disabled]="!complex()">پایانهی روشگاهی</p-step>
|
||||
<p-step [value]="1">شعبه</p-step>
|
||||
<p-step [value]="2" [disabled]="!complex()">پایانه فروشگاهی</p-step>
|
||||
</p-step-list>
|
||||
</p-stepper>
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { AbstractDialog } from '@/shared/abstractClasses/abstract-dialog';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { IComplexResponse } from '../../models';
|
||||
import { ConsumerComplexFormContentComponent } from './form.component';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'partner-consumer-complex-form',
|
||||
@@ -19,7 +19,7 @@ export class ConsumerComplexFormDialogComponent extends AbstractDialog {
|
||||
@Input() complexId!: string;
|
||||
|
||||
get preparedTitle() {
|
||||
return `${this.editMode ? 'ویرایش' : 'ایجاد'} شعبه`;
|
||||
return `${this.editMode ? 'ویرایش' : 'افزودن'} شعبه`;
|
||||
}
|
||||
|
||||
onFormSubmit(response: IComplexResponse) {
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
// import { CatalogRolesComponent } from '@/shared/catalog/roles';
|
||||
import { AbstractForm } from '@/shared/abstractClasses';
|
||||
import {
|
||||
NameComponent,
|
||||
AddressComponent,
|
||||
BranchCodeComponent,
|
||||
} from '@/shared/components';
|
||||
import { fieldControl } from '@/shared/constants/fields';
|
||||
import { AddressComponent, BranchCodeComponent, NameComponent } from '@/shared/components';
|
||||
import { FormFooterActionsComponent } from '@/shared/components/formFooterActions/form-footer-actions.component';
|
||||
import { fieldControl } from '@/shared/constants/fields';
|
||||
import { Component, inject, Input } from '@angular/core';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { IComplexRequest, IComplexResponse } from '../../models';
|
||||
@@ -44,7 +40,7 @@ export class ConsumerComplexFormContentComponent extends AbstractForm<
|
||||
form = this.initForm();
|
||||
|
||||
get preparedTitle() {
|
||||
return `${this.editMode ? 'ویرایش' : 'ایجاد'} شعبه`;
|
||||
return `${this.editMode ? 'ویرایش' : 'افزودن'} شعبه`;
|
||||
}
|
||||
|
||||
override ngOnChanges(): void {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<app-page-data-list
|
||||
pageTitle="مدیریت شعب"
|
||||
[addNewCtaLabel]="'افزودن شعبه جدید'"
|
||||
[addNewCtaLabel]="'افزودن شعبه'"
|
||||
[columns]="columns"
|
||||
[showAdd]="true"
|
||||
emptyPlaceholderTitle="شعبهای یافت نشد."
|
||||
emptyPlaceholderDescription="برای افزودن شعبه جدید، روی دکمهٔ بالا کلیک کنید."
|
||||
emptyPlaceholderDescription="برای افزودن شعبه، روی دکمهٔ بالا کلیک کنید."
|
||||
[items]="items()"
|
||||
[loading]="loading()"
|
||||
[showDetails]="true"
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
<shared-dialog
|
||||
header="ایجاد مشتری جدید"
|
||||
header="افزودن مشتری"
|
||||
[(visible)]="visible"
|
||||
[modal]="true"
|
||||
[style]="{ width: '640px' }"
|
||||
@@ -10,8 +10,8 @@
|
||||
<p-step-list>
|
||||
<p-step [value]="1">اطلاعات اولیه</p-step>
|
||||
<p-step [value]="2" [disabled]="!consumer()">فعالیت اقتصادی</p-step>
|
||||
<p-step [value]="3" [disabled]="!businessActivity()">فروشگاه</p-step>
|
||||
<p-step [value]="4" [disabled]="!complex()">پایانهی فروشگاهی</p-step>
|
||||
<p-step [value]="3" [disabled]="!businessActivity()">شعبه</p-step>
|
||||
<p-step [value]="4" [disabled]="!complex()">پایانه فروشگاهی</p-step>
|
||||
</p-step-list>
|
||||
</p-stepper>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { AbstractDialog } from '@/shared/abstractClasses/abstract-dialog';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { IPartnerConsumerResponse } from '../models';
|
||||
import { ConsumerUserFormContentComponent } from './form.component';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'partner-consumer-form',
|
||||
@@ -17,7 +17,7 @@ export class ConsumerUserFormDialogComponent extends AbstractDialog {
|
||||
@Input() consumerId?: string;
|
||||
|
||||
get preparedTitle() {
|
||||
return `${this.editMode ? 'ویرایش' : 'ایجاد'} مشتری`;
|
||||
return `${this.editMode ? 'ویرایش' : 'افزودن'} مشتری`;
|
||||
}
|
||||
|
||||
onFormSubmit(response: IPartnerConsumerResponse) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { AbstractFormDialog } from '@/shared/abstractClasses';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
import { FormFooterActionsComponent } from '@/shared/components/formFooterActions/form-footer-actions.component';
|
||||
import { UikitFlatpickrJalaliComponent } from '@/uikit';
|
||||
import { Component, computed, inject, Input } from '@angular/core';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { ILicenseRequest, ILicenseResponse } from '../../models';
|
||||
import { LicensesService } from '../../services/licenses.service';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'partner-consumer-license-form',
|
||||
@@ -25,7 +25,7 @@ export class ConsumerLicenseFormComponent extends AbstractFormDialog<
|
||||
@Input() licenseId?: string;
|
||||
private service = inject(LicensesService);
|
||||
|
||||
preparedTitle = computed(() => `${this.editMode ? 'ویرایش' : 'ایجاد'} لایسنس`);
|
||||
preparedTitle = computed(() => `${this.editMode ? 'ویرایش' : 'افزودن'} لایسنس`);
|
||||
|
||||
initForm = () => {
|
||||
const form = this.fb.group({
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { AbstractDialog } from '@/shared/abstractClasses/abstract-dialog';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { IPosResponse } from '../../models';
|
||||
import { ConsumerPosFormContentComponent } from './form.component';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'partner-consumer-pos-form',
|
||||
@@ -20,7 +20,7 @@ export class ConsumerPosFormDialogComponent extends AbstractDialog {
|
||||
@Input() posId!: string;
|
||||
|
||||
get preparedTitle() {
|
||||
return `${this.editMode ? 'ویرایش' : 'ایجاد'} پایانه فروش`;
|
||||
return `${this.editMode ? 'ویرایش' : 'افزودن'} پایانه فروش`;
|
||||
}
|
||||
|
||||
onFormSubmit(response: IPosResponse) {
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
import { MustMatch } from '@/core/validators';
|
||||
import { AbstractForm } from '@/shared/abstractClasses';
|
||||
import {
|
||||
NameComponent,
|
||||
SharedPasswordInputComponent,
|
||||
DeviceIdComponent,
|
||||
NameComponent,
|
||||
PosTypeComponent,
|
||||
ProviderIdComponent,
|
||||
SerialNumberComponent,
|
||||
PosTypeComponent,
|
||||
SharedPasswordInputComponent,
|
||||
UsernameComponent,
|
||||
} from '@/shared/components';
|
||||
import { fieldControl } from '@/shared/constants/fields';
|
||||
import { FormFooterActionsComponent } from '@/shared/components/formFooterActions/form-footer-actions.component';
|
||||
import { fieldControl } from '@/shared/constants/fields';
|
||||
import { Component, inject, Input } from '@angular/core';
|
||||
import { ReactiveFormsModule, Validators } from '@angular/forms';
|
||||
import { Divider } from 'primeng/divider';
|
||||
@@ -122,7 +122,7 @@ export class ConsumerPosFormContentComponent extends AbstractForm<IPosRequest, I
|
||||
form = this.initForm();
|
||||
|
||||
get preparedTitle() {
|
||||
return `${this.editMode ? 'ویرایش' : 'ایجاد'} پایانه فروش`;
|
||||
return `${this.editMode ? 'ویرایش' : 'افزودن'} پایانه فروش`;
|
||||
}
|
||||
|
||||
override ngOnChanges(): void {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<app-page-data-list
|
||||
pageTitle="مدیریت پایانههای فروش"
|
||||
[addNewCtaLabel]="'افزودن پایانهی فروش جدید'"
|
||||
[addNewCtaLabel]="'افزودن پایانه فروش'"
|
||||
[columns]="columns"
|
||||
emptyPlaceholderTitle="پایانهی فروشی یافت نشد."
|
||||
emptyPlaceholderDescription="برای افزودن پایانهی فروش جدید، روی دکمهٔ بالا کلیک کنید."
|
||||
emptyPlaceholderTitle="پایانه فروشی یافت نشد."
|
||||
emptyPlaceholderDescription="برای افزودن پایانه فروش، روی دکمهٔ بالا کلیک کنید."
|
||||
[items]="items()"
|
||||
[loading]="loading()"
|
||||
[showAdd]="true"
|
||||
|
||||
@@ -24,7 +24,7 @@ export const partnerConsumerPosesNamedRoutes: NamedRoutes<TPosesRouteNames> = {
|
||||
import('../../views/poses/single.component').then((m) => m.PartnerUserPosComponent),
|
||||
// @ts-ignore
|
||||
meta: {
|
||||
title: 'پایانهی فروش',
|
||||
title: 'پایانه فروش',
|
||||
pagePath: (consumerId: string, businessId: string, complexId: string, posId: string) =>
|
||||
`${baseUrl(consumerId, businessId, complexId)}/${posId}`,
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<div class="flex flex-col gap-6">
|
||||
<app-card-data cardTitle="اطلاعات فعالیت اقتصادی" [editable]="true" [(editMode)]="editMode">
|
||||
<ng-template #moreActions>
|
||||
<button pButton outlined (click)="showAccountsChargeDialog()">شارژ کاربر</button>
|
||||
<button pButton outlined size="small" (click)="showAccountsChargeDialog()">شارژ کاربر</button>
|
||||
</ng-template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="listKeyValue">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<app-page-data-list
|
||||
pageTitle="لیست مشتریها"
|
||||
[addNewCtaLabel]="'افزودن مشتری جدید'"
|
||||
[addNewCtaLabel]="'افزودن مشتری'"
|
||||
[columns]="columns"
|
||||
[showAdd]="true"
|
||||
emptyPlaceholderTitle="مشتریای یافت نشد"
|
||||
emptyPlaceholderDescription="برای افزودن مشتری جدید، روی دکمهٔ بالا کلیک کنید."
|
||||
emptyPlaceholderTitle="مشتری یافت نشد"
|
||||
emptyPlaceholderDescription="برای افزودن مشتری، روی دکمهٔ بالا کلیک کنید."
|
||||
[items]="items()"
|
||||
[loading]="loading()"
|
||||
[showDetails]="true"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<app-page-data-list
|
||||
[pageTitle]="'لیست مشتریها'"
|
||||
[columns]="columns"
|
||||
emptyPlaceholderTitle="مشتریای یافت نشد"
|
||||
emptyPlaceholderTitle="مشتری یافت نشد"
|
||||
[items]="items()"
|
||||
[loading]="loading()"
|
||||
[showEdit]="true"
|
||||
|
||||
Reference in New Issue
Block a user