-
فیلدهای سفارشی
-
diff --git a/apps/web/src/components/EntityTimeline.vue b/apps/web/src/components/EntityTimeline.vue
index 6fad0f3..f3d3d1e 100644
--- a/apps/web/src/components/EntityTimeline.vue
+++ b/apps/web/src/components/EntityTimeline.vue
@@ -289,7 +289,7 @@ onMounted(load);
.composer input {
width: 100%;
border: 1px solid var(--line);
- border-radius: 12px;
+ border-radius: var(--radius);
padding: 0.7rem 0.85rem;
background: #fff;
}
@@ -316,7 +316,7 @@ onMounted(load);
gap: 0.75rem;
align-items: flex-start;
border: 1px solid var(--line);
- border-radius: 12px;
+ border-radius: var(--radius);
padding: 0.75rem 0.85rem;
background: #fbfcfb;
}
diff --git a/apps/web/src/components/JalaliDateInput.vue b/apps/web/src/components/JalaliDateInput.vue
index 8733049..cef3806 100644
--- a/apps/web/src/components/JalaliDateInput.vue
+++ b/apps/web/src/components/JalaliDateInput.vue
@@ -675,7 +675,7 @@ onBeforeUnmount(() => {
justify-content: flex-start;
gap: 0.8rem;
min-height: 52px;
- border-radius: 16px;
+ border-radius: var(--radius);
padding: 0.45rem 0.85rem 0.45rem 0.45rem;
background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
}
@@ -698,7 +698,7 @@ onBeforeUnmount(() => {
left: 50%;
bottom: 50%;
transform-origin: center bottom;
- border-radius: 99px;
+ border-radius: var(--radius);
background: #0f766e;
}
@@ -726,7 +726,7 @@ onBeforeUnmount(() => {
}
.clock-text {
- font-weight: 800;
+ font-weight: 600;
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
font-size: 1.05rem;
@@ -768,7 +768,7 @@ onBeforeUnmount(() => {
max-height: calc(100vh - 16px);
overflow: auto;
background: #fff;
- border-radius: 16px;
+ border-radius: var(--radius);
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
padding: 0.75rem 0.8rem 0.7rem;
font-family: IRANSans, Tahoma, sans-serif;
@@ -797,7 +797,7 @@ onBeforeUnmount(() => {
width: 32px;
height: 32px;
border: 0;
- border-radius: 8px;
+ border-radius: var(--radius);
background: #f1f5f9;
color: #0f766e;
display: grid;
@@ -826,7 +826,7 @@ onBeforeUnmount(() => {
.day {
height: 34px;
border: 0;
- border-radius: 9px;
+ border-radius: var(--radius);
background: none;
color: #0f172a;
font: inherit;
@@ -881,12 +881,12 @@ onBeforeUnmount(() => {
min-width: 5.1rem;
height: 4.1rem;
border: 0;
- border-radius: 14px;
+ border-radius: var(--radius);
background: #f1f5f9;
color: #0f172a;
font: inherit;
font-size: 2.35rem;
- font-weight: 800;
+ font-weight: 600;
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
cursor: pointer;
@@ -900,7 +900,7 @@ onBeforeUnmount(() => {
.md-colon {
font-size: 2.2rem;
- font-weight: 800;
+ font-weight: 600;
color: #0f172a;
line-height: 1;
padding-bottom: 0.15rem;
@@ -1005,7 +1005,7 @@ onBeforeUnmount(() => {
margin: 0;
text-align: center;
font-size: 1.2rem;
- font-weight: 800;
+ font-weight: 600;
color: #0f766e;
letter-spacing: 0.04em;
}
@@ -1033,7 +1033,7 @@ onBeforeUnmount(() => {
height: 220px;
overflow: auto;
border: 1px solid #e2e8f0;
- border-radius: 12px;
+ border-radius: var(--radius);
background: #f8fafc;
padding: 0.25rem;
scrollbar-width: thin;
@@ -1044,7 +1044,7 @@ onBeforeUnmount(() => {
width: 100%;
height: 36px;
border: 0;
- border-radius: 8px;
+ border-radius: var(--radius);
background: transparent;
color: #334155;
font: inherit;
@@ -1087,9 +1087,9 @@ onBeforeUnmount(() => {
margin-inline-start: auto;
background: #14b8a6;
color: #fff;
- border-radius: 10px;
+ border-radius: var(--radius);
padding: 0.4rem 0.8rem;
- font-weight: 800;
+ font-weight: 600;
font-size: 0.8rem;
}
diff --git a/apps/web/src/components/MentoMemoryPanel.vue b/apps/web/src/components/MentoMemoryPanel.vue
index 8ae678d..3a60c49 100644
--- a/apps/web/src/components/MentoMemoryPanel.vue
+++ b/apps/web/src/components/MentoMemoryPanel.vue
@@ -203,7 +203,7 @@ h2 {
textarea {
border: 1px solid var(--line);
- border-radius: 12px;
+ border-radius: var(--radius);
padding: 0.75rem 0.9rem;
background: #fff;
font: inherit;
@@ -221,7 +221,7 @@ textarea {
.items li {
border: 1px solid var(--line);
- border-radius: 12px;
+ border-radius: var(--radius);
padding: 0.75rem 0.85rem;
background: #fff;
}
diff --git a/apps/web/src/components/NoteAiSuggestionPanel.vue b/apps/web/src/components/NoteAiSuggestionPanel.vue
index 1c07e7c..bb07b73 100644
--- a/apps/web/src/components/NoteAiSuggestionPanel.vue
+++ b/apps/web/src/components/NoteAiSuggestionPanel.vue
@@ -231,7 +231,7 @@ function formatPayloadSummary(value: NoteAiPayloadDto | null) {
margin-top: 0.75rem;
padding: 0.75rem 0.85rem;
border: 1px dashed var(--accent);
- border-radius: 12px;
+ border-radius: var(--radius);
background: rgba(255, 255, 255, 0.65);
display: grid;
gap: 0.6rem;
@@ -281,7 +281,7 @@ header {
input[type='text'],
textarea {
border: 1px solid var(--line);
- border-radius: 10px;
+ border-radius: var(--radius);
padding: 0.55rem 0.7rem;
font: inherit;
width: 100%;
diff --git a/apps/web/src/components/QuickCreate.vue b/apps/web/src/components/QuickCreate.vue
index 73ef15f..fb7a866 100644
--- a/apps/web/src/components/QuickCreate.vue
+++ b/apps/web/src/components/QuickCreate.vue
@@ -5,8 +5,9 @@ import type { RouteLocationRaw } from 'vue-router';
import UiIcon from '@/components/UiIcon.vue';
const FAB_SIZE = 36;
-const FAB_MARGIN = 20;
-const POS_KEY = 'mento.quickCreateFab';
+const FAB_MARGIN_BOTTOM = 24;
+const FAB_MARGIN_LEFT = 24;
+const POS_KEY = 'mento.quickCreateFab_v2';
type FabPos = { left: number; top: number };
@@ -67,7 +68,10 @@ const router = useRouter();
const hidden = computed(() => route.name === 'person-detail');
const isQuickCreateOpen = ref(false);
const ready = ref(false);
-const fabPos = ref
({ left: FAB_MARGIN, top: FAB_MARGIN });
+const fabPos = ref({
+ left: FAB_MARGIN_LEFT,
+ top: typeof window !== 'undefined' ? window.innerHeight - FAB_MARGIN_BOTTOM - FAB_SIZE : 600,
+});
const viewport = ref({ w: 1280, h: 800 });
const dragging = ref(false);
let dragMoved = false;
@@ -75,10 +79,10 @@ let dragOffsetX = 0;
let dragOffsetY = 0;
function defaultPos(): FabPos {
- const bottomGap = viewport.value.w <= 900 ? FAB_MARGIN + 64 : FAB_MARGIN;
+ const extra = viewport.value.w <= 900 ? 64 : 0;
return {
- left: FAB_MARGIN,
- top: Math.max(FAB_MARGIN, viewport.value.h - bottomGap - FAB_SIZE),
+ left: FAB_MARGIN_LEFT,
+ top: Math.max(8, viewport.value.h - FAB_MARGIN_BOTTOM - extra - FAB_SIZE),
};
}
@@ -171,7 +175,7 @@ const fabStyle = computed(() => ({
const panelStyle = computed(() => {
const gap = 12;
const edge = 16;
- const width = Math.min(390, viewport.value.w - 32);
+ const width = Math.min(300, viewport.value.w - 32);
let left = fabPos.value.left;
left = Math.min(left, viewport.value.w - width - edge);
left = Math.max(edge, left);
@@ -278,7 +282,7 @@ onBeforeUnmount(() => {
@click="go(item.to)"
>
-
+
{{ item.title }}
@@ -303,7 +307,7 @@ onBeforeUnmount(() => {
@pointercancel="onFabPointerUp"
>
-
+
@@ -328,25 +332,26 @@ onBeforeUnmount(() => {
.panel {
position: fixed;
z-index: 92;
- width: 390px;
- max-height: min(540px, calc(100dvh - 80px));
+ width: 300px;
+ max-height: min(480px, calc(100dvh - 80px));
box-sizing: border-box;
display: flex;
flex-direction: column;
background: #fff;
- border-radius: 28px;
- padding: 16px 16px 12px;
- box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ padding: 12px 12px 10px;
+ box-shadow: var(--shadow-lg);
overflow: hidden;
}
.panel h2 {
flex-shrink: 0;
- margin: 0 0 12px;
+ margin: 0 0 10px;
text-align: right;
- font-size: 20px;
- font-weight: 800;
- color: #111827;
+ font-size: var(--fs-md);
+ font-weight: 700;
+ color: var(--ink);
}
.items {
@@ -354,31 +359,37 @@ onBeforeUnmount(() => {
overflow-y: auto;
display: flex;
flex-direction: column;
- gap: 8px;
+ gap: 6px;
padding-left: 2px;
overscroll-behavior: contain;
}
.item {
width: 100%;
- min-height: 68px;
+ min-height: 46px;
display: flex;
align-items: center;
- gap: 14px;
- padding: 10px 14px;
- border: 1px solid #eef1f2;
- border-radius: 16px;
+ gap: 10px;
+ padding: 6px 10px;
+ border: 1px solid var(--line-light);
+ border-radius: var(--radius);
background: #fff;
- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
+ box-shadow: var(--shadow-xs);
font: inherit;
text-align: right;
cursor: pointer;
+ transition: background var(--transition-fast), border-color var(--transition-fast);
+}
+
+.item:hover {
+ background: var(--surface-hover);
+ border-color: var(--line-strong);
}
.item-ico {
- width: 52px;
- height: 52px;
- border-radius: 14px;
+ width: 34px;
+ height: 34px;
+ border-radius: var(--radius);
display: grid;
place-items: center;
color: #fff;
@@ -390,7 +401,7 @@ onBeforeUnmount(() => {
}
.item-ico.company {
- background: #22d3ee;
+ background: #0891b2;
}
.item-ico.deal {
@@ -398,7 +409,7 @@ onBeforeUnmount(() => {
}
.item-ico.activity {
- background: #f97316;
+ background: #ea580c;
}
.item-ico.note {
@@ -407,33 +418,34 @@ onBeforeUnmount(() => {
.copy {
display: grid;
- gap: 4px;
+ gap: 2px;
min-width: 0;
text-align: right;
}
.copy strong {
- font-size: 16px;
+ font-size: var(--fs-sm);
font-weight: 600;
- color: #111827;
+ color: var(--ink);
+ line-height: 1.2;
}
.copy small {
- font-size: 13px;
- color: #94a3b8;
- line-height: 1.5;
+ font-size: var(--fs-xs);
+ color: var(--muted);
+ line-height: 1.3;
}
.fab {
position: fixed;
z-index: 93;
box-sizing: border-box;
- width: 36px;
- height: 36px;
+ width: var(--control-h);
+ height: var(--control-h);
padding: 0;
margin: 0;
border: 0;
- border-radius: 10px;
+ border-radius: var(--radius);
overflow: hidden;
background: linear-gradient(145deg, #0f766e 0%, #14b8a6 100%);
color: #fff;
@@ -442,7 +454,7 @@ onBeforeUnmount(() => {
line-height: 0;
direction: ltr;
box-shadow:
- 0 8px 22px rgba(13, 148, 136, 0.4),
+ 0 4px 14px rgba(13, 148, 136, 0.35),
inset 0 1px 0 rgba(255, 255, 255, 0.22);
cursor: grab;
touch-action: none;
@@ -463,29 +475,28 @@ onBeforeUnmount(() => {
.fab :deep(.ico) {
display: block;
- width: 28px;
- height: 28px;
- max-width: 28px;
- max-height: 28px;
+ width: 20px;
+ height: 20px;
+ max-width: 20px;
+ max-height: 20px;
stroke-width: 1.7;
- filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
.fab:hover {
filter: brightness(1.06);
box-shadow:
- 0 10px 26px rgba(13, 148, 136, 0.48),
+ 0 6px 18px rgba(13, 148, 136, 0.42),
inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.fab.open {
background: linear-gradient(145deg, #115e59 0%, #0d9488 100%);
- box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
+ box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}
.fab.dragging {
cursor: grabbing;
transform: scale(1.05);
- box-shadow: 0 12px 28px rgba(13, 148, 136, 0.5);
+ box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
}
diff --git a/apps/web/src/components/UiIcon.vue b/apps/web/src/components/UiIcon.vue
index e161b32..a9d50b0 100644
--- a/apps/web/src/components/UiIcon.vue
+++ b/apps/web/src/components/UiIcon.vue
@@ -64,7 +64,13 @@ defineProps<{
| 'logout'
| 'pulse'
| 'sliders'
- | 'camera';
+ | 'camera'
+ | 'arrow-right'
+ | 'arrow-left'
+ | 'chevron-right'
+ | 'chevron-left'
+ | 'chevrons-right'
+ | 'chevrons-left';
size?: number;
}>();
@@ -218,9 +224,24 @@ defineProps<{
-
-
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
diff --git a/apps/web/src/components/ui/UiChart.vue b/apps/web/src/components/ui/UiChart.vue
index 2fc080a..97c5994 100644
--- a/apps/web/src/components/ui/UiChart.vue
+++ b/apps/web/src/components/ui/UiChart.vue
@@ -1,54 +1,114 @@
-
+
+
-
+
diff --git a/apps/web/src/components/ui/UiEmptyState.vue b/apps/web/src/components/ui/UiEmptyState.vue
new file mode 100644
index 0000000..2acff19
--- /dev/null
+++ b/apps/web/src/components/ui/UiEmptyState.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
{{ title }}
+
{{ description }}
+
+
+
+
+
+
+
+
diff --git a/apps/web/src/components/ui/UiField.vue b/apps/web/src/components/ui/UiField.vue
new file mode 100644
index 0000000..e758cfb
--- /dev/null
+++ b/apps/web/src/components/ui/UiField.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ error }}
+
+
+ {{ hint }}
+
+
+
+
+
+
diff --git a/apps/web/src/components/ui/UiFilterBar.vue b/apps/web/src/components/ui/UiFilterBar.vue
index acb7a68..8963879 100644
--- a/apps/web/src/components/ui/UiFilterBar.vue
+++ b/apps/web/src/components/ui/UiFilterBar.vue
@@ -21,7 +21,7 @@ const open = ref(false);
-
+
فیلترها
@@ -54,9 +54,10 @@ const open = ref(false);
display: grid;
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
gap: 0.65rem;
- padding: var(--pad-modal);
+ padding: var(--sp-4);
background: #fff;
border: 1px solid var(--line);
border-radius: var(--radius);
+ box-shadow: var(--shadow-sm);
}
diff --git a/apps/web/src/components/ui/UiInput.vue b/apps/web/src/components/ui/UiInput.vue
index b2e05a6..03c6d68 100644
--- a/apps/web/src/components/ui/UiInput.vue
+++ b/apps/web/src/components/ui/UiInput.vue
@@ -4,48 +4,122 @@ withDefaults(
type?: string;
placeholder?: string;
disabled?: boolean;
+ readonly?: boolean;
required?: boolean;
- maxlength?: number;
- minlength?: number;
+ error?: boolean | string;
+ size?: 'sm' | 'md' | 'lg';
+ maxlength?: number | string;
+ minlength?: number | string;
+ id?: string;
+ autocomplete?: string;
}>(),
- { type: 'text' },
+ {
+ type: 'text',
+ size: 'md',
+ disabled: false,
+ readonly: false,
+ required: false,
+ },
);
-const model = defineModel({ default: '' });
+const model = defineModel({ default: '' });
-
+
+
+
+
+
diff --git a/apps/web/src/components/ui/UiModal.vue b/apps/web/src/components/ui/UiModal.vue
index 57b02f0..1c32e33 100644
--- a/apps/web/src/components/ui/UiModal.vue
+++ b/apps/web/src/components/ui/UiModal.vue
@@ -61,7 +61,7 @@ function onBackdrop(event: MouseEvent) {
z-index: 80;
display: grid;
place-items: center;
- padding: 1.25rem;
+ padding: 16px;
background: rgba(15, 23, 42, 0.35);
}
@@ -72,55 +72,122 @@ function onBackdrop(event: MouseEvent) {
flex-direction: column;
background: #fff;
border: 1px solid var(--line);
- border-radius: var(--radius);
+ border-radius: var(--radius, 10px);
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
overflow: hidden;
}
-.head,
-.body,
-.foot {
- padding: var(--pad-modal);
-}
-
.head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
- padding-bottom: 0;
+ padding: 16px;
+ border-bottom: 1px solid var(--line);
+ flex-shrink: 0;
+ background: #fff;
+ z-index: 10;
}
.head h2 {
margin: 0;
- font-size: 1.05rem;
- font-weight: 800;
+ font-size: 16px;
+ font-weight: 500;
+ color: var(--ink);
+ line-height: 1.4;
}
.close {
- width: var(--control-h);
- height: var(--control-h);
+ width: 36px;
+ height: 36px;
border: 1px solid var(--line);
- border-radius: var(--radius);
+ border-radius: var(--radius, 10px);
background: #fff;
color: var(--muted);
display: grid;
place-items: center;
cursor: pointer;
+ transition: all var(--transition-fast);
+}
+
+.close:hover {
+ background: var(--surface-subtle);
+ color: var(--ink);
+ border-color: var(--line-strong);
}
.body {
- overflow: auto;
+ flex: 1 1 auto;
min-height: 0;
- padding-top: 1rem;
+ overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ padding: 16px;
+ box-sizing: border-box;
+}
+
+.body :deep(.crm-page.embedded),
+.body :deep(.page.embedded),
+.body :deep(.product-form-page.embedded),
+.body :deep(.company-form-page.embedded) {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ min-height: 100%;
+}
+
+.body :deep(.page.embedded > .form),
+.body :deep(.page.embedded > form),
+.body :deep(.crm-page.embedded > .form),
+.body :deep(.crm-page.embedded > form),
+.body :deep(.crm-page.embedded > .crm-form) {
+ flex: 1 1 auto;
+ min-height: 0;
+}
+
+.body :deep(.embed-actions),
+.body :deep(.embedded-actions),
+.body :deep(.form-bottom-actions),
+.body :deep(.form-footer-actions) {
+ order: 99;
+ flex-shrink: 0;
+ position: sticky;
+ bottom: -16px;
+ margin-top: auto;
+ margin-inline: -16px;
+ margin-bottom: -16px;
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 12px;
+ padding: 16px;
+ background: #fff;
+ border-top: 1px solid var(--line);
+ z-index: 10;
+ box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.05);
+}
+
+.body :deep(.embed-actions .btn),
+.body :deep(.embedded-actions .btn),
+.body :deep(.embed-actions .ui-btn),
+.body :deep(.embedded-actions .ui-btn),
+.body :deep(.form-bottom-actions .btn),
+.body :deep(.form-bottom-actions .ui-btn),
+.body :deep(.form-footer-actions .btn),
+.body :deep(.form-footer-actions .ui-btn) {
+ border-radius: var(--radius, 10px);
}
.foot {
display: flex;
+ align-items: center;
justify-content: flex-start;
- gap: 0.5rem;
- padding-top: 0;
- border-top: 1px solid #f1f5f9;
+ gap: 12px;
+ padding: 16px;
+ border-top: 1px solid var(--line);
+ flex-shrink: 0;
+ background: #fff;
+ z-index: 10;
}
@media (max-width: 900px) {
@@ -138,62 +205,15 @@ function onBackdrop(event: MouseEvent) {
}
.head {
- flex-shrink: 0;
- padding: 0.75rem 1rem 0;
+ padding: 16px;
}
.body {
- flex: 1;
- min-height: 0;
- overflow: auto;
- display: flex;
- flex-direction: column;
- padding: 0.75rem 1rem;
- }
-
- .body:has(.page.embedded) {
- overflow: hidden;
- padding-bottom: 0;
- }
-
- .body :deep(.page.embedded) {
- display: flex;
- flex-direction: column;
- flex: 1;
- min-height: 0;
- gap: 0.75rem;
- }
-
- .body :deep(.page.embedded > .form),
- .body :deep(.page.embedded > form) {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
-
- .body :deep(.embed-actions) {
- order: 20;
- flex: 0 0 auto;
- position: sticky;
- bottom: 0;
- margin-top: auto;
- margin-inline: -1rem;
- display: flex;
- gap: 0.5rem;
- padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
- background: #fff;
- border-top: 1px solid #f1f5f9;
- z-index: 3;
- }
-
- .body :deep(.embed-actions .btn) {
- flex: 1;
- min-width: 0;
+ padding: 16px;
}
.foot {
- flex-shrink: 0;
- padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
+ padding: 16px calc(16px + env(safe-area-inset-bottom));
}
}
diff --git a/apps/web/src/components/ui/UiPageHeader.vue b/apps/web/src/components/ui/UiPageHeader.vue
new file mode 100644
index 0000000..4b0a157
--- /dev/null
+++ b/apps/web/src/components/ui/UiPageHeader.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
diff --git a/apps/web/src/components/ui/UiPagination.vue b/apps/web/src/components/ui/UiPagination.vue
new file mode 100644
index 0000000..92f3c10
--- /dev/null
+++ b/apps/web/src/components/ui/UiPagination.vue
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
diff --git a/apps/web/src/components/ui/UiSearch.vue b/apps/web/src/components/ui/UiSearch.vue
index 2307cf1..78b0988 100644
--- a/apps/web/src/components/ui/UiSearch.vue
+++ b/apps/web/src/components/ui/UiSearch.vue
@@ -29,12 +29,15 @@ const model = defineModel({ default: '' });
align-items: center;
gap: 0.45rem;
min-width: 0;
+ height: var(--control-h);
min-height: var(--control-h);
padding: 0 0.75rem;
- background: #fff;
+ background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
color: var(--muted);
+ box-sizing: border-box;
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.ui-search input {
@@ -45,11 +48,14 @@ const model = defineModel({ default: '' });
background: transparent;
color: var(--ink);
font: inherit;
+ font-size: var(--fs-sm);
+ padding: 0;
}
.ui-search:focus-within {
- outline: 2px solid var(--accent-soft);
+ outline: none;
border-color: var(--accent);
+ box-shadow: 0 0 0 2px var(--accent-soft);
}
.sr {
diff --git a/apps/web/src/components/ui/UiSelect.vue b/apps/web/src/components/ui/UiSelect.vue
index 6d54614..44613b6 100644
--- a/apps/web/src/components/ui/UiSelect.vue
+++ b/apps/web/src/components/ui/UiSelect.vue
@@ -1,19 +1,30 @@
-
@@ -22,20 +33,45 @@ const model = defineModel({ default: '' });
position: relative;
display: block;
min-width: 0;
+ width: 100%;
}
.ui-select select {
appearance: none;
width: 100%;
- min-height: var(--control-h);
- padding: 0 2rem 0 0.85rem;
+ min-height: var(--control-h-md);
+ padding: 0 2rem 0 var(--sp-3);
border: 1px solid var(--line);
border-radius: var(--radius);
- background: #fff;
+ background: var(--surface);
color: var(--ink);
font: inherit;
- font-weight: 600;
+ font-weight: var(--fw-medium);
+ font-size: var(--fs-base);
cursor: pointer;
+ box-sizing: border-box;
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
+}
+
+.ui-select.sm select {
+ min-height: var(--control-h-sm);
+ padding: 0 1.75rem 0 var(--sp-2);
+ border-radius: var(--radius-sm);
+ font-size: var(--fs-xs);
+}
+
+.ui-select.md select {
+ min-height: var(--control-h-md);
+ padding: 0 2rem 0 var(--sp-3);
+ border-radius: var(--radius);
+ font-size: var(--fs-base);
+}
+
+.ui-select.lg select {
+ min-height: var(--control-h-lg);
+ padding: 0 2.25rem 0 var(--sp-4);
+ border-radius: var(--radius-md);
+ font-size: var(--fs-md);
}
.ui-select select:focus {
@@ -43,6 +79,21 @@ const model = defineModel({ default: '' });
border-color: var(--accent);
}
+.ui-select.hasError select {
+ border-color: var(--danger);
+}
+
+.ui-select.hasError select:focus {
+ outline: 2px solid var(--danger-soft);
+ border-color: var(--danger);
+}
+
+.ui-select.disabled select {
+ background: var(--surface-subtle);
+ opacity: 0.65;
+ cursor: not-allowed;
+}
+
.chev {
position: absolute;
left: 0.65rem;
diff --git a/apps/web/src/components/ui/UiTextarea.vue b/apps/web/src/components/ui/UiTextarea.vue
new file mode 100644
index 0000000..f839a6b
--- /dev/null
+++ b/apps/web/src/components/ui/UiTextarea.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
diff --git a/apps/web/src/components/ui/index.ts b/apps/web/src/components/ui/index.ts
new file mode 100644
index 0000000..45029d7
--- /dev/null
+++ b/apps/web/src/components/ui/index.ts
@@ -0,0 +1,15 @@
+export { default as UiButton } from './UiButton.vue';
+export { default as UiInput } from './UiInput.vue';
+export { default as UiTextarea } from './UiTextarea.vue';
+export { default as UiSelect } from './UiSelect.vue';
+export { default as UiField } from './UiField.vue';
+export { default as UiCard } from './UiCard.vue';
+export { default as UiModal } from './UiModal.vue';
+export { default as UiPageHeader } from './UiPageHeader.vue';
+export { default as UiBadge } from './UiBadge.vue';
+export { default as UiPagination } from './UiPagination.vue';
+export { default as UiEmptyState } from './UiEmptyState.vue';
+export { default as UiSearch } from './UiSearch.vue';
+export { default as UiFilterBar } from './UiFilterBar.vue';
+export { default as UiSegmented } from './UiSegmented.vue';
+export { default as UiChart, CHART_PALETTE, type UiChartOption } from './UiChart.vue';
diff --git a/apps/web/src/styles/fonts.css b/apps/web/src/styles/fonts.css
index dc01064..4c10fe7 100644
--- a/apps/web/src/styles/fonts.css
+++ b/apps/web/src/styles/fonts.css
@@ -70,12 +70,12 @@
font-display: swap;
}
-/* map 800 → Black */
+/* map 800 → Bold (avoid oversized heavy Black in UI) */
@font-face {
font-family: "IRANSans";
src:
- url("../assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_Black.woff2") format("woff2"),
- url("../assets/fonts/iranSans/woff/IRANSansWeb(FaNum)_Black.woff") format("woff");
+ url("../assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
+ url("../assets/fonts/iranSans/woff/IRANSansWeb(FaNum)_Bold.woff") format("woff");
font-weight: 800;
font-style: normal;
font-display: swap;
diff --git a/apps/web/src/styles/main.css b/apps/web/src/styles/main.css
index cb5c1be..1f0b260 100644
--- a/apps/web/src/styles/main.css
+++ b/apps/web/src/styles/main.css
@@ -1,20 +1,131 @@
@import "./fonts.css";
+@import "./tokens.css";
:root {
+ /* Surface & Background */
--bg: #f8fafc;
--surface: #ffffff;
+ --surface-subtle: #f1f5f9;
+ --surface-hover: #f8fafc;
+
+ /* Typography & Foreground */
+ --font: "IRANSans", Tahoma, sans-serif;
--ink: #0f172a;
+ --ink-secondary: #334155;
--muted: #64748b;
+ --muted-light: #94a3b8;
--line: #e2e8f0;
+ --line-light: #f1f5f9;
+ --line-strong: #cbd5e1;
+
+ /* Accent / Primary (Teal) */
--accent: #14b8a6;
+ --accent-hover: #0d9488;
--accent-deep: #0f766e;
--accent-soft: #ccfbf1;
+ --accent-subtle: #f0fdfa;
+ --accent-contrast: #ffffff;
+
+ /* Semantics */
--danger: #b42318;
- --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
+ --danger-hover: #991b1b;
+ --danger-soft: #fee2e2;
+ --danger-deep: #7f1d1d;
+
+ --success: #10b981;
+ --success-soft: #d1fae5;
+ --success-deep: #047857;
+
+ --warning: #f59e0b;
+ --warning-soft: #fef3c7;
+ --warning-deep: #b45309;
+
+ --info: #0284c7;
+ --info-soft: #e0f2fe;
+ --info-deep: #0369a1;
+
+ /* Typography Scale */
+ --fs-xs: 0.75rem; /* 12px */
+ --fs-sm: 0.8125rem; /* 13px */
+ --fs-base: 0.875rem; /* 14px */
+ --fs-md: 0.9375rem; /* 15px */
+ --fs-lg: 1.0625rem; /* 17px */
+ --fs-xl: 1.25rem; /* 20px */
+ --fs-2xl: 1.5rem; /* 24px */
+ --fs-3xl: 1.75rem; /* 28px */
+
+ --fw-normal: 400;
+ --fw-medium: 500;
+ --fw-semibold: 600;
+ --fw-bold: 700;
+ --fw-extrabold: 700;
+
+ --lh-tight: 1.25;
+ --lh-normal: 1.5;
+ --lh-relaxed: 1.625;
+
+ /* Spacing Scale */
+ --sp-1: 0.25rem; /* 4px */
+ --sp-2: 0.5rem; /* 8px */
+ --sp-3: 0.75rem; /* 12px */
+ --sp-4: 1rem; /* 16px */
+ --sp-5: 1.25rem; /* 20px */
+ --sp-6: 1.5rem; /* 24px */
+ --sp-8: 2rem; /* 32px */
+ --sp-10: 2.5rem; /* 40px */
+
+ /* Radius - Single Source of Truth (Globally 10px as requested) */
--radius: 10px;
+ --radius-xs: var(--radius);
+ --radius-sm: var(--radius);
+ --radius-md: var(--radius);
+ --radius-lg: var(--radius);
+ --radius-xl: var(--radius);
+ --radius-2xl: var(--radius);
+ --radius-full: 9999px;
+
+ /* Control Dimensions */
+ --control-h-sm: 30px;
--control-h: 36px;
- --pad-modal: 24px;
- --font: "IRANSans", Tahoma, sans-serif;
+ --control-h-md: 36px;
+ --control-h-lg: 42px;
+ --pad-modal: 16px;
+
+ /* Shadows */
+ --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
+ --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
+ --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
+ --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
+ --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
+ --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.16);
+
+ /* Transitions */
+ --transition-fast: 150ms ease;
+ --transition-normal: 200ms ease;
+
+ /* Z-index */
+ --z-dropdown: 50;
+ --z-sticky: 60;
+ --z-modal-backdrop: 80;
+ --z-modal: 90;
+ --z-toast: 100;
+ /* Compatibility aliases for legacy views */
+ --color-border: var(--line);
+ --color-border-light: var(--line-light);
+ --color-text: var(--ink);
+ --color-text-primary: var(--ink);
+ --color-text-secondary: var(--ink-secondary);
+ --color-text-muted: var(--muted);
+ --color-text-emphasis: var(--ink);
+ --color-surface: var(--surface);
+ --color-surface-sunken: var(--surface-subtle);
+ --color-primary: var(--accent);
+ --color-primary-dark: var(--accent-deep);
+ --color-primary-light: var(--accent-soft);
+ --color-primary-surface: var(--accent-subtle);
+ --color-danger: var(--danger);
+ --color-danger-surface: var(--danger-soft);
+ --color-warning: var(--warning);
}
* {
@@ -64,16 +175,20 @@ textarea {
.btn {
border: 0;
border-radius: var(--radius);
+ height: var(--control-h);
min-height: var(--control-h);
- padding: 0 1rem;
+ padding: 0 0.85rem;
cursor: pointer;
background: var(--accent);
color: white;
font-weight: 600;
+ font-size: var(--fs-sm);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.35rem;
+ box-sizing: border-box;
+ transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}
.btn:disabled {
diff --git a/apps/web/src/styles/tokens.css b/apps/web/src/styles/tokens.css
new file mode 100644
index 0000000..8b25b89
--- /dev/null
+++ b/apps/web/src/styles/tokens.css
@@ -0,0 +1,496 @@
+/**
+ * Montact CRM (منتکت) Design System - Core Tokens & Utilities
+ * RTL-first, IRANSans typography, unified spacing, controls & surfaces.
+ */
+
+/* ==========================================================================
+ Page Layout
+ ========================================================================== */
+.crm-page,
+.page,
+.dashboard,
+.profile,
+.notes-page {
+ display: flex;
+ flex-direction: column;
+ gap: var(--sp-5);
+ padding: 0;
+ margin: 0;
+ max-width: 100%;
+ width: 100%;
+ min-width: 0;
+ box-sizing: border-box;
+}
+
+.crm-page.narrow,
+.crm-page.wide,
+.crm-page.full {
+ max-width: 100%;
+}
+
+.crm-page.embedded {
+ padding: 0;
+ gap: var(--sp-4);
+}
+
+/* ==========================================================================
+ Page Header
+ ========================================================================== */
+.crm-page-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ gap: var(--sp-4);
+ min-width: 0;
+}
+
+.crm-page-header-titles {
+ display: flex;
+ flex-direction: column;
+ gap: var(--sp-1);
+ min-width: 0;
+}
+
+.crm-page-title {
+ margin: 0;
+ font-size: var(--fs-xl);
+ font-weight: var(--fw-bold);
+ color: var(--ink);
+ line-height: var(--lh-tight);
+}
+
+.crm-page-lead {
+ margin: 0;
+ font-size: var(--fs-sm);
+ color: var(--muted);
+ line-height: var(--lh-normal);
+}
+
+.crm-header-actions {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: var(--sp-2);
+}
+
+/* ==========================================================================
+ Toolbar & Filter Bar
+ ========================================================================== */
+.crm-toolbar {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: var(--sp-3);
+ min-width: 0;
+ width: 100%;
+}
+
+.crm-toolbar-stretch,
+.crm-toolbar .toolbar-search,
+.crm-toolbar .search-box,
+.crm-toolbar .crm-search {
+ flex: 1 1 200px;
+ min-width: 180px;
+ max-width: 380px;
+}
+
+.crm-toolbar .toolbar-select,
+.crm-toolbar .ui-select:not(.block) {
+ width: auto;
+ min-width: 130px;
+ max-width: 220px;
+}
+
+.crm-toolbar .ui-btn,
+.crm-toolbar .btn {
+ flex-shrink: 0;
+}
+
+/* ==========================================================================
+ Card & Container Surfaces
+ ========================================================================== */
+.crm-card {
+ background: var(--surface);
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ box-shadow: var(--shadow-xs);
+ padding: var(--sp-5);
+ box-sizing: border-box;
+ transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
+}
+
+.crm-card-sm {
+ padding: var(--sp-3);
+}
+
+.crm-card-lg {
+ padding: var(--sp-6);
+}
+
+.crm-card-interactive:hover {
+ border-color: var(--line-strong);
+ box-shadow: var(--shadow-sm);
+}
+
+.crm-card-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--sp-3);
+ padding-bottom: var(--sp-3);
+ margin-bottom: var(--sp-4);
+ border-bottom: 1px solid var(--line-light);
+}
+
+.crm-card-title {
+ margin: 0;
+ font-size: var(--fs-md);
+ font-weight: var(--fw-semibold);
+ color: var(--ink);
+}
+
+.crm-card-actions {
+ display: flex;
+ align-items: center;
+ gap: var(--sp-2);
+}
+
+/* ==========================================================================
+ Forms & Field Layouts
+ ========================================================================== */
+.crm-form {
+ display: flex;
+ flex-direction: column;
+ gap: var(--sp-5);
+ width: 100%;
+}
+
+.crm-form-section {
+ display: flex;
+ flex-direction: column;
+ gap: var(--sp-3);
+}
+
+.crm-form-section-title {
+ margin: 0;
+ font-size: var(--fs-md);
+ font-weight: var(--fw-semibold);
+ color: var(--ink);
+ padding-bottom: var(--sp-2);
+ border-bottom: 1px solid var(--line-light);
+}
+
+.crm-form-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
+ gap: var(--sp-4);
+ width: 100%;
+}
+
+.crm-form-grid-2 {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: var(--sp-4);
+ width: 100%;
+}
+
+.crm-form-grid-3 {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: var(--sp-4);
+ width: 100%;
+}
+
+.crm-form-grid-4 {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: var(--sp-4);
+ width: 100%;
+}
+
+.crm-col-span-2 {
+ grid-column: span 2;
+}
+
+.crm-col-span-full {
+ grid-column: 1 / -1;
+}
+
+.crm-field {
+ display: flex;
+ flex-direction: column;
+ gap: var(--sp-1);
+ min-width: 0;
+}
+
+.crm-label {
+ display: flex;
+ align-items: center;
+ gap: var(--sp-1);
+ font-size: var(--fs-sm);
+ font-weight: var(--fw-medium);
+ color: var(--ink-secondary);
+}
+
+.crm-required-indicator {
+ color: var(--danger);
+}
+
+.crm-hint {
+ font-size: var(--fs-xs);
+ color: var(--muted);
+ line-height: var(--lh-normal);
+}
+
+.crm-field-error {
+ font-size: var(--fs-xs);
+ color: var(--danger);
+ font-weight: var(--fw-medium);
+ display: flex;
+ align-items: center;
+ gap: var(--sp-1);
+}
+
+.crm-form-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+ gap: var(--sp-3);
+ padding-top: var(--sp-4);
+ margin-top: var(--sp-2);
+ border-top: 1px solid var(--line-light);
+ flex-wrap: wrap;
+}
+
+/* ==========================================================================
+ Data Table
+ ========================================================================== */
+.crm-table-container {
+ width: 100%;
+ overflow-x: auto;
+ background: var(--surface);
+ border: 1px solid var(--line);
+ border-radius: var(--radius);
+ box-shadow: var(--shadow-xs);
+ -webkit-overflow-scrolling: touch;
+}
+
+.crm-table {
+ width: 100%;
+ border-collapse: collapse;
+ text-align: right;
+ font-size: var(--fs-sm);
+}
+
+.crm-table th {
+ background: var(--surface-subtle);
+ color: var(--muted);
+ font-weight: var(--fw-semibold);
+ padding: var(--sp-3) var(--sp-4);
+ border-bottom: 1px solid var(--line);
+ white-space: nowrap;
+}
+
+.crm-table td {
+ padding: var(--sp-3) var(--sp-4);
+ border-bottom: 1px solid var(--line-light);
+ color: var(--ink);
+ vertical-align: middle;
+}
+
+.crm-table tbody tr:last-child td {
+ border-bottom: none;
+}
+
+.crm-table tbody tr:hover td {
+ background: var(--surface-hover);
+}
+
+.crm-table-actions {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--sp-1);
+ white-space: nowrap;
+}
+
+/* ==========================================================================
+ Badges & Status Indicators
+ ========================================================================== */
+.crm-badge {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.35rem;
+ padding: 0.2rem 0.6rem;
+ border-radius: var(--radius-full);
+ font-size: var(--fs-xs);
+ font-weight: var(--fw-semibold);
+ line-height: 1.2;
+ white-space: nowrap;
+ border: 1px solid transparent;
+}
+
+.crm-badge-sm {
+ padding: 0.1rem 0.45rem;
+ font-size: 0.7rem;
+}
+
+.crm-badge-neutral {
+ background: var(--surface-subtle);
+ color: var(--ink-secondary);
+ border-color: var(--line);
+}
+
+.crm-badge-accent,
+.crm-badge-primary {
+ background: var(--accent-soft);
+ color: var(--accent-deep);
+ border-color: color-mix(in srgb, var(--accent) 30%, transparent);
+}
+
+.crm-badge-success {
+ background: var(--success-soft);
+ color: var(--success-deep);
+ border-color: color-mix(in srgb, var(--success) 30%, transparent);
+}
+
+.crm-badge-warning {
+ background: var(--warning-soft);
+ color: var(--warning-deep);
+ border-color: color-mix(in srgb, var(--warning) 30%, transparent);
+}
+
+.crm-badge-danger {
+ background: var(--danger-soft);
+ color: var(--danger);
+ border-color: color-mix(in srgb, var(--danger) 30%, transparent);
+}
+
+.crm-badge-info {
+ background: var(--info-soft);
+ color: var(--info-deep);
+ border-color: color-mix(in srgb, var(--info) 30%, transparent);
+}
+
+/* ==========================================================================
+ Pagination
+ ========================================================================== */
+.crm-pagination {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ gap: var(--sp-3);
+ padding-top: var(--sp-3);
+}
+
+.crm-pagination-info {
+ font-size: var(--fs-sm);
+ color: var(--muted);
+}
+
+.crm-pagination-nav {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--sp-1);
+}
+
+/* ==========================================================================
+ Empty States
+ ========================================================================== */
+.crm-empty-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ padding: var(--sp-10) var(--sp-6);
+ gap: var(--sp-3);
+ color: var(--muted);
+ background: var(--surface);
+ border: 1px dashed var(--line-strong);
+ border-radius: var(--radius);
+}
+
+.crm-empty-title {
+ margin: 0;
+ font-size: var(--fs-md);
+ font-weight: var(--fw-semibold);
+ color: var(--ink);
+}
+
+.crm-empty-desc {
+ margin: 0;
+ font-size: var(--fs-sm);
+ max-width: 360px;
+ line-height: var(--lh-relaxed);
+}
+
+/* ==========================================================================
+ Typography Utilities
+ ========================================================================== */
+.crm-text-xs { font-size: var(--fs-xs); }
+.crm-text-sm { font-size: var(--fs-sm); }
+.crm-text-base { font-size: var(--fs-base); }
+.crm-text-md { font-size: var(--fs-md); }
+.crm-text-lg { font-size: var(--fs-lg); }
+.crm-text-xl { font-size: var(--fs-xl); }
+.crm-text-2xl { font-size: var(--fs-2xl); }
+
+.crm-font-normal { font-weight: var(--fw-normal); }
+.crm-font-medium { font-weight: var(--fw-medium); }
+.crm-font-semibold { font-weight: var(--fw-semibold); }
+.crm-font-bold { font-weight: var(--fw-bold); }
+.crm-font-extrabold { font-weight: var(--fw-extrabold); }
+
+.crm-text-ink { color: var(--ink); }
+.crm-text-secondary { color: var(--ink-secondary); }
+.crm-text-muted { color: var(--muted); }
+.crm-text-accent { color: var(--accent); }
+.crm-text-danger { color: var(--danger); }
+.crm-text-success { color: var(--success); }
+.crm-text-warning { color: var(--warning); }
+
+/* ==========================================================================
+ Responsive Breakpoints
+ ========================================================================== */
+@media (max-width: 900px) {
+ .crm-page {
+ padding: 0;
+ gap: var(--sp-4);
+ }
+
+ .crm-page-title {
+ font-size: var(--fs-xl);
+ }
+
+ .crm-page-header {
+ flex-direction: column;
+ align-items: stretch;
+ gap: var(--sp-3);
+ }
+
+ .crm-header-actions {
+ justify-content: stretch;
+ }
+
+ .crm-header-actions > * {
+ flex: 1 1 auto;
+ }
+
+ .crm-form-grid-2,
+ .crm-form-grid-3,
+ .crm-form-grid-4 {
+ grid-template-columns: 1fr;
+ }
+
+ .crm-col-span-2 {
+ grid-column: auto;
+ }
+
+ .crm-pagination {
+ flex-direction: column;
+ align-items: center;
+ }
+}
diff --git a/apps/web/src/views/ActivitiesCalendarView.vue b/apps/web/src/views/ActivitiesCalendarView.vue
index 29d1c9d..f1e06d3 100644
--- a/apps/web/src/views/ActivitiesCalendarView.vue
+++ b/apps/web/src/views/ActivitiesCalendarView.vue
@@ -405,7 +405,7 @@ onMounted(() => {
h1 {
margin: 0 0 0.3rem;
font-size: clamp(1.45rem, 2.5vw, 1.85rem);
- font-weight: 800;
+ font-weight: 600;
}
h2 {
@@ -461,7 +461,7 @@ h2 {
gap: 0.75rem;
flex-wrap: wrap;
background: #fff;
- border-radius: 18px;
+ border-radius: var(--radius);
padding: 0.75rem 0.95rem;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
@@ -493,7 +493,7 @@ h2 {
.calendar {
background: #fff;
- border-radius: 18px;
+ border-radius: var(--radius);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
padding: 0.85rem;
min-width: 0;
@@ -519,7 +519,7 @@ h2 {
.day {
min-height: 92px;
border: 1px solid #e2e8f0;
- border-radius: 14px;
+ border-radius: var(--radius);
background: #f8fafc;
padding: 0.45rem;
text-align: right;
@@ -553,7 +553,7 @@ h2 {
}
.day.has .num {
- font-weight: 800;
+ font-weight: 600;
color: #0f766e;
}
@@ -594,7 +594,7 @@ h2 {
.day-panel {
background: #fff;
- border-radius: 18px;
+ border-radius: var(--radius);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
padding: 1rem;
display: grid;
@@ -623,7 +623,7 @@ h2 {
gap: 0.15rem;
padding: 0.75rem 0.85rem;
border: 1px solid #f1f5f9;
- border-radius: 14px;
+ border-radius: var(--radius);
background: #f8fafc;
text-decoration: none;
color: inherit;
diff --git a/apps/web/src/views/ActivitiesView.vue b/apps/web/src/views/ActivitiesView.vue
index e8dfc45..be7664c 100644
--- a/apps/web/src/views/ActivitiesView.vue
+++ b/apps/web/src/views/ActivitiesView.vue
@@ -10,8 +10,12 @@ import {
startOfLocalDay,
toFaDigits,
} from '@/lib/jalali';
-import UiButton from '@/components/ui/UiButton.vue';
-import UiModal from '@/components/ui/UiModal.vue';
+import {
+ UiButton,
+ UiModal,
+ UiPageHeader,
+ UiPagination,
+} from '@/components/ui';
import UiIcon from '@/components/UiIcon.vue';
import ActivityFormView from '@/views/ActivityFormView.vue';
import type {
@@ -124,8 +128,6 @@ const pageCount = computed(() => Math.max(1, Math.ceil(total.value / PAGE_SIZE))
const filterLabel = computed(() => TABS.find((t) => t.key === filter.value)?.label ?? 'امروز');
const trulyEmpty = computed(() => !loading.value && counts.value.all === 0 && !q.value.trim());
const listEmpty = computed(() => !loading.value && !items.value.length);
-const rangeFrom = computed(() => (total.value ? (page.value - 1) * PAGE_SIZE + 1 : 0));
-const rangeTo = computed(() => Math.min(page.value * PAGE_SIZE, total.value));
function isLastItem(id: string) {
const rows = items.value;
@@ -346,21 +348,19 @@ onMounted(() => {
فعالیتها
-
-
-
پیگیری
-
فعالیتها
-
تماس، جلسه و وظیفه — امروز و عقبافتادهها یکجا.
-
-
-
-
+
{
hidden
@change="onImportFile"
/>
-
+
فعالیت جدید
-
-
- تقویم
+
+
+
+ تقویم
+
-
-
+
+
-
+
.page {
- max-width: 640px;
width: 100%;
+ max-width: 100%;
min-width: 0;
- margin: 0 auto;
+ margin: 0;
display: grid;
gap: 0.9rem;
- padding-bottom: 5.8rem;
}
.nav {
@@ -331,7 +330,7 @@ onMounted(load);
}
.brand {
- font-weight: 800;
+ font-weight: 600;
color: #0f766e;
letter-spacing: -0.04em;
}
@@ -341,7 +340,7 @@ onMounted(load);
height: 38px;
border: 0;
background: #fff;
- border-radius: 12px;
+ border-radius: var(--radius);
display: grid;
place-items: center;
color: #334155;
@@ -362,7 +361,7 @@ onMounted(load);
inset-inline-end: 0;
min-width: 10rem;
background: #fff;
- border-radius: 12px;
+ border-radius: var(--radius);
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
padding: 0.35rem;
display: grid;
@@ -377,7 +376,7 @@ onMounted(load);
border: 0;
background: none;
padding: 0.62rem 0.75rem;
- border-radius: 8px;
+ border-radius: var(--radius);
font: inherit;
cursor: pointer;
color: #0f172a;
@@ -407,7 +406,7 @@ h1 {
.card {
background: #fff;
- border-radius: 20px;
+ border-radius: var(--radius);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
padding: 1rem 1.05rem;
}
diff --git a/apps/web/src/views/ActivityFormView.vue b/apps/web/src/views/ActivityFormView.vue
index 9cb1312..9e4f5f7 100644
--- a/apps/web/src/views/ActivityFormView.vue
+++ b/apps/web/src/views/ActivityFormView.vue
@@ -17,6 +17,13 @@ import { appendSpokenText } from '@/lib/spoken-text';
import UiIcon from '@/components/UiIcon.vue';
import { brand } from '@mento/shared';
import UserAvatar from '@/components/UserAvatar.vue';
+import {
+ UiBadge,
+ UiButton,
+ UiInput,
+ UiPageHeader,
+ UiTextarea,
+} from '@/components/ui';
import type {
ActivityDto,
ActivityPriority,
@@ -338,44 +345,44 @@ watch([id, isNew], () => void load(), { immediate: true });
-
-
-
-
-
-
-
- فعالیتها
- ‹
- {{ pageTitle }}
-
-
-
-
-
-
-
-
-
-
- {{ pageTitle }}
-
-
+
+
+
عنوان فعالیت *
- void load(), { immediate: true });
@transcript="(text) => (description = appendSpokenText(description, text))"
/>
-
@@ -603,114 +610,108 @@ watch([id, isNew], () => void load(), { immediate: true });
وضعیت انجام
- {{ statusText }}
+
+
+ {{ statusText }}
+
+
اولویت
- {{ priorityText }}
+
+
+ {{ priorityText }}
+
+
+
+
+
+
+
+ {{ saving ? 'در حال ذخیره…' : 'ذخیره فعالیت' }}
+
+ انصراف
+
diff --git a/apps/web/src/views/CompanyFormView.vue b/apps/web/src/views/CompanyFormView.vue
index c44526a..c1fb701 100644
--- a/apps/web/src/views/CompanyFormView.vue
+++ b/apps/web/src/views/CompanyFormView.vue
@@ -6,6 +6,14 @@ import { api } from '@/lib/api';
import type { CompanyDto, CreateCompanyRequest } from '@mento/shared';
import CustomFieldsSection from '@/components/CustomFieldsSection.vue';
import EntityTimeline from '@/components/EntityTimeline.vue';
+import {
+ UiButton,
+ UiCard,
+ UiField,
+ UiInput,
+ UiPageHeader,
+ UiTextarea,
+} from '@/components/ui';
import UiIcon from '@/components/UiIcon.vue';
const props = withDefaults(
@@ -134,301 +142,187 @@ onMounted(load);