@masterteam/components 0.0.242 → 0.0.244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,200 @@
1
+ /* ==========================================================================
2
+ Tabs — transcribed from DS `Tabs/Tabs.module.css` (Figma node 4747:83313)
3
+ --------------------------------------------------------------------------
4
+ Horizontal (medium): 44px tall · 12px/16px padding · 3px bottom bar #1849A9
5
+ list divider 3px #D2D6DB · text always 14px
6
+ weight 500 unselected → 700 selected · colour #000B36
7
+ hover bg #E5E7EB · pressed #D2D6DB · disabled #6C7C96
8
+ Vertical (medium): 44px tall · 12px padding · 3px pill-rounded left bar
9
+ weight 400 unselected → 600 selected
10
+
11
+ Two targets, because the library has two tab implementations: `mt-tabs`
12
+ (hand-rolled with Tailwind utilities) and PrimeNG `p-tabs`. Unlayered rules
13
+ outrank both `@layer utilities` and `@layer primeng`, so neither needs a
14
+ template change.
15
+ ========================================================================== */
16
+
17
+ /* ══ mt-tabs — underline (horizontal) mode ══════════════════════════════ */
18
+
19
+ html.mt-ds mt-tabs [role="tablist"][aria-orientation="horizontal"] > div {
20
+ border-bottom: 3px solid #d2d6db;
21
+ gap: 0;
22
+ }
23
+
24
+ html.mt-ds
25
+ mt-tabs
26
+ [role="tablist"][aria-orientation="horizontal"]
27
+ [role="tab"] {
28
+ height: 44px;
29
+ padding: 12px 16px;
30
+ margin-bottom: -3px;
31
+ border-bottom: 3px solid transparent;
32
+ border-radius: 0;
33
+ font-family: var(--ds-font-sans);
34
+ font-size: 14px;
35
+ font-weight: 500;
36
+ line-height: 20px;
37
+ color: #000b36;
38
+ transition:
39
+ background-color var(--ds-transition-fast),
40
+ border-color var(--ds-transition-fast);
41
+ }
42
+
43
+ html.mt-ds
44
+ mt-tabs
45
+ [role="tablist"][aria-orientation="horizontal"]
46
+ [role="tab"]:not([aria-selected="true"], :disabled):hover {
47
+ background: #e5e7eb;
48
+ color: #000b36;
49
+ }
50
+
51
+ html.mt-ds
52
+ mt-tabs
53
+ [role="tablist"][aria-orientation="horizontal"]
54
+ [role="tab"]:not([aria-selected="true"], :disabled):active {
55
+ background: #d2d6db;
56
+ }
57
+
58
+ html.mt-ds
59
+ mt-tabs
60
+ [role="tablist"][aria-orientation="horizontal"]
61
+ [role="tab"][aria-selected="true"] {
62
+ border-bottom-color: #1849a9;
63
+ color: #000b36;
64
+ font-weight: 700;
65
+ background: transparent;
66
+ }
67
+
68
+ html.mt-ds
69
+ mt-tabs
70
+ [role="tablist"][aria-orientation="horizontal"]
71
+ [role="tab"]:disabled {
72
+ color: #6c7c96;
73
+ background: transparent;
74
+ opacity: 1;
75
+ }
76
+
77
+ html.mt-ds
78
+ mt-tabs
79
+ [role="tablist"][aria-orientation="horizontal"]
80
+ [role="tab"][aria-selected="true"]:disabled {
81
+ border-bottom-color: #6c7c96;
82
+ }
83
+
84
+ /* ══ mt-tabs — vertical mode ════════════════════════════════════════════ */
85
+
86
+ html.mt-ds mt-tabs [role="tablist"][aria-orientation="vertical"] {
87
+ width: 150px;
88
+ gap: 0;
89
+ padding: 0;
90
+ border: none;
91
+ border-radius: 0;
92
+ background: transparent;
93
+ }
94
+
95
+ html.mt-ds mt-tabs [role="tablist"][aria-orientation="vertical"] [role="tab"] {
96
+ position: relative;
97
+ height: 44px;
98
+ padding: 12px;
99
+ border-radius: 0;
100
+ font-family: var(--ds-font-sans);
101
+ font-size: 14px;
102
+ font-weight: 400;
103
+ color: #000b36;
104
+ background: transparent;
105
+ }
106
+
107
+ html.mt-ds
108
+ mt-tabs
109
+ [role="tablist"][aria-orientation="vertical"]
110
+ [role="tab"]::before {
111
+ content: "";
112
+ position: absolute;
113
+ inset-inline-start: 0;
114
+ inset-block: 0;
115
+ width: 3px;
116
+ border-radius: 9999px;
117
+ background: transparent;
118
+ transition: background-color var(--ds-transition-fast);
119
+ }
120
+
121
+ html.mt-ds
122
+ mt-tabs
123
+ [role="tablist"][aria-orientation="vertical"]
124
+ [role="tab"]:not([aria-selected="true"], :disabled):hover {
125
+ background: #e5e7eb;
126
+ }
127
+
128
+ html.mt-ds
129
+ mt-tabs
130
+ [role="tablist"][aria-orientation="vertical"]
131
+ [role="tab"]:not([aria-selected="true"], :disabled):hover::before {
132
+ background: #1f2a37;
133
+ }
134
+
135
+ html.mt-ds
136
+ mt-tabs
137
+ [role="tablist"][aria-orientation="vertical"]
138
+ [role="tab"][aria-selected="true"] {
139
+ background: transparent;
140
+ color: #000b36;
141
+ font-weight: 600;
142
+ }
143
+
144
+ html.mt-ds
145
+ mt-tabs
146
+ [role="tablist"][aria-orientation="vertical"]
147
+ [role="tab"][aria-selected="true"]::before {
148
+ background: #1849a9;
149
+ }
150
+
151
+ html.mt-ds
152
+ mt-tabs
153
+ [role="tablist"][aria-orientation="vertical"]
154
+ [role="tab"][aria-selected="true"]:disabled::before {
155
+ background: #d2d6db;
156
+ }
157
+
158
+ /* ── Shared: focus ring ────────────────────────────────────────────────── */
159
+
160
+ html.mt-ds mt-tabs [role="tab"]:focus-visible {
161
+ outline: 2px solid #1849a9;
162
+ outline-offset: 2px;
163
+ box-shadow: none;
164
+ }
165
+
166
+ /* ══ PrimeNG p-tabs ═════════════════════════════════════════════════════ */
167
+
168
+ html.mt-ds .p-tablist {
169
+ border-bottom: 3px solid #d2d6db;
170
+ }
171
+
172
+ html.mt-ds .p-tab {
173
+ height: 44px;
174
+ padding: 12px 16px;
175
+ border-width: 0 0 3px 0;
176
+ border-color: transparent;
177
+ font-family: var(--ds-font-sans);
178
+ font-size: 14px;
179
+ font-weight: 500;
180
+ color: #000b36;
181
+ margin-bottom: -3px;
182
+ }
183
+
184
+ html.mt-ds .p-tab:not(.p-tab-active, .p-disabled):hover {
185
+ background: #e5e7eb;
186
+ color: #000b36;
187
+ border-color: transparent;
188
+ }
189
+
190
+ html.mt-ds .p-tab-active {
191
+ color: #000b36;
192
+ font-weight: 700;
193
+ border-color: #1849a9;
194
+ }
195
+
196
+ html.mt-ds .p-tablist-active-bar {
197
+ height: 3px;
198
+ bottom: -3px;
199
+ background: #1849a9;
200
+ }
@@ -0,0 +1,275 @@
1
+ /* ==========================================================================
2
+ Masterteam Design System — EXPERIMENTAL design identity
3
+ --------------------------------------------------------------------------
4
+ Source of truth : Figma WTmRAkJVvw0IvZMA7wBdTC · DsMasterteam (Storybook)
5
+ Angular port : @masterteam/components
6
+
7
+ This file has two parts:
8
+
9
+ 1. `--ds-*` raw tokens on :root. Definitions only — declaring a custom
10
+ property paints nothing, so this part is always safe to ship.
11
+ 2. Everything under `html.mt-ds`. This is where the identity is actually
12
+ applied. Nothing here renders until the host opts in with
13
+ `provideMTComponents({ designIdentity: 'experimental' })` or
14
+ `setMTDesignIdentity('experimental')`.
15
+
16
+ Three layers make up the identity:
17
+
18
+ 1. The PrimeUIX preset (`src/lib/config/ds-identity.preset.ts`) — the
19
+ palette and the coarse geometry, reaching every component at once.
20
+ 2. `ds-components/*.css` — per-component specs transcribed from the DS
21
+ modules: exact heights, per-state borders, variant colours, focus
22
+ rings. These are what make an `mt-*` component read as its DS
23
+ counterpart rather than merely share its palette.
24
+ 3. This file — the cross-cutting remainder: font, type, the animated
25
+ input underline, tooltip, charts.
26
+
27
+ Layers 2 and 3 are deliberately **unlayered** CSS. Tailwind utilities live
28
+ in `@layer utilities` and the PrimeNG theme in `@layer primeng`, and
29
+ unlayered rules outrank both — so the DS look lands on hand-rolled Tailwind
30
+ components and PrimeNG wrappers alike, with no `!important` and no template
31
+ changes.
32
+ ========================================================================== */
33
+
34
+ @import "./ibm-plex-sans-arabic.css";
35
+
36
+ /* Per-component DS specs. Order matters: later files win ties. */
37
+ @import "./ds-components/button.css";
38
+ @import "./ds-components/field.css";
39
+ @import "./ds-components/selection-controls.css";
40
+ @import "./ds-components/tabs.css";
41
+ @import "./ds-components/content-switcher.css";
42
+ @import "./ds-components/table.css";
43
+ @import "./ds-components/surfaces.css";
44
+ @import "./ds-components/overlay.css";
45
+ @import "./ds-components/feedback.css";
46
+ @import "./ds-components/pagination.css";
47
+ @import "./ds-components/misc.css";
48
+
49
+ :root {
50
+ /* ── Typography ─────────────────────────────────────────────── */
51
+ --ds-font-sans: "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
52
+ --ds-font-weight-regular: 400;
53
+ --ds-font-weight-medium: 500;
54
+ --ds-font-weight-semibold: 600;
55
+ --ds-font-weight-bold: 700;
56
+
57
+ /* Type scale — size / line-height pairs (Figma Typography / Desktop) */
58
+ --ds-text-xs: 0.75rem; /* 12px */
59
+ --ds-text-xs-lh: 1.125rem; /* 18px */
60
+ --ds-text-sm: 0.875rem; /* 14px */
61
+ --ds-text-sm-lh: 1.25rem; /* 20px */
62
+ --ds-text-md: 1rem; /* 16px */
63
+ --ds-text-md-lh: 1.5rem; /* 24px */
64
+ --ds-text-lg: 1.125rem; /* 18px */
65
+ --ds-text-lg-lh: 1.75rem; /* 28px */
66
+ --ds-text-xl: 1.25rem; /* 20px */
67
+ --ds-text-xl-lh: 1.875rem; /* 30px */
68
+ --ds-display-xs: 1.5rem; /* 24px */
69
+ --ds-display-xs-lh: 2rem; /* 32px */
70
+ --ds-display-sm: 1.875rem; /* 30px */
71
+ --ds-display-sm-lh: 2.375rem; /* 38px */
72
+ --ds-display-md: 2.25rem; /* 36px */
73
+ --ds-display-md-lh: 2.75rem; /* 44px */
74
+
75
+ /* ── Spacing (4px grid) ─────────────────────────────────────── */
76
+ --ds-space-xxs: 2px;
77
+ --ds-space-xs: 4px;
78
+ --ds-space-sm: 6px;
79
+ --ds-space-md: 8px;
80
+ --ds-space-lg: 12px;
81
+ --ds-space-xl: 16px;
82
+ --ds-space-2xl: 20px;
83
+ --ds-space-3xl: 24px;
84
+ --ds-space-4xl: 32px;
85
+ --ds-space-5xl: 40px;
86
+ --ds-space-6xl: 48px;
87
+
88
+ /* ── Radius ─────────────────────────────────────────────────── */
89
+ --ds-radius-xs: 2px;
90
+ --ds-radius-sm: 4px; /* default — buttons, inputs, dropdowns */
91
+ --ds-radius-md: 8px; /* cards, tooltips, popovers */
92
+ --ds-radius-lg: 16px; /* modals, drawers */
93
+ --ds-radius-xl: 24px;
94
+ --ds-radius-full: 9999px;
95
+
96
+ /* ── Elevation (Figma effect styles — do not invent new ones) ─ */
97
+ --ds-shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
98
+ --ds-shadow-sm:
99
+ 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
100
+ --ds-shadow-md:
101
+ 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
102
+ --ds-shadow-lg:
103
+ 0 12px 16px -6px rgba(16, 24, 40, 0.08),
104
+ 0 4px 6px -2px rgba(16, 24, 40, 0.03);
105
+ --ds-shadow-xl:
106
+ 0 20px 24px -4px rgba(16, 24, 40, 0.08),
107
+ 0 8px 8px -4px rgba(16, 24, 40, 0.03);
108
+ --ds-shadow-2xl: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
109
+ --ds-shadow-3xl: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
110
+
111
+ /* ── Motion ─────────────────────────────────────────────────── */
112
+ --ds-transition-fast: 120ms ease;
113
+ --ds-transition-base: 200ms ease;
114
+
115
+ /* ── Field density ──────────────────────────────────────────────
116
+ The DS publishes two field sizes, medium (32/14/8) and large (40/16/12).
117
+ Large is the default here; switch these four values to move the whole
118
+ form scale back to medium in one place. */
119
+ --ds-field-height: 40px;
120
+ --ds-field-font: 16px;
121
+ --ds-field-line: 24px;
122
+ --ds-field-pad-x: 12px;
123
+
124
+ /* ── Control heights ────────────────────────────────────────── */
125
+ --ds-control-height-sm: 24px;
126
+ --ds-control-height-md: 32px;
127
+ --ds-control-height-lg: 40px;
128
+
129
+ /* ── Focus ring (double ring — inner primary, outer white) ──── */
130
+ --ds-focus-ring-color: #1849a9;
131
+ --ds-focus-outline-color: #ffffff;
132
+
133
+ /* ── Colours that no PrimeUIX token covers ──────────────────── */
134
+ --ds-text-strong: #000b36; /* default label / body text */
135
+ --ds-text-secondary: #3c5073;
136
+ --ds-text-placeholder: #b6bdca;
137
+ --ds-disabled-bg: #d2d6db;
138
+ --ds-disabled-text: #6c7c96;
139
+ --ds-input-border: #d2d6db;
140
+ --ds-input-border-hover: #1f2a37;
141
+ --ds-input-border-readonly: #ced3dc;
142
+ --ds-danger: #a30000;
143
+
144
+ /* ── Chart palette (max 6 series — never add a 7th) ─────────── */
145
+ --ds-chart-series-1: #1849a9;
146
+ --ds-chart-series-2: #175cd3;
147
+ --ds-chart-series-3: #2e90fa;
148
+ --ds-chart-series-4: #53b1fd;
149
+ --ds-chart-series-5: #b2ddff;
150
+ --ds-chart-series-6: #d1e9ff;
151
+ --ds-chart-null: #d2d6db;
152
+ --ds-chart-skeleton: #e7e9ed;
153
+ --ds-chart-grid: #f3f4f6;
154
+ --ds-chart-title: #000b36;
155
+ --ds-chart-subtitle: #3c5073;
156
+ --ds-chart-axis-label: #6c7c96;
157
+ --ds-chart-tooltip-bg: #1a2236;
158
+ --ds-chart-kpi-positive: #006121;
159
+ --ds-chart-kpi-bg: rgba(0, 97, 33, 0.1);
160
+ }
161
+
162
+ /* ==========================================================================
163
+ Opt-in layer — everything below requires `html.mt-ds`
164
+ ========================================================================== */
165
+
166
+ html.mt-ds {
167
+ /* One font for LTR and RTL alike; the DS has no per-language stack. */
168
+ --default-font-family: var(--ds-font-sans);
169
+ font-size: 16px;
170
+ }
171
+
172
+ /* The base stylesheet swaps in Cairo for Arabic. The DS deliberately does not:
173
+ IBM Plex Sans Arabic covers both scripts, and swapping breaks the rhythm. */
174
+ html.mt-ds:lang(ar) {
175
+ --default-font-family: var(--ds-font-sans);
176
+ }
177
+
178
+ @supports (font-variation-settings: normal) {
179
+ html.mt-ds,
180
+ html.mt-ds:lang(ar) {
181
+ --default-font-family: var(--ds-font-sans);
182
+ }
183
+ }
184
+
185
+ html.mt-ds body {
186
+ font-size: var(--ds-text-sm);
187
+ line-height: var(--ds-text-sm-lh);
188
+ font-weight: var(--ds-font-weight-regular);
189
+ }
190
+
191
+ /* ── Input underline ───────────────────────────────────────────
192
+ Distinctive DS behaviour: the field grows a 2px primary bar along its bottom
193
+ edge — one third wide while pressed, full width once focused. Implemented as
194
+ an animated background layer so it works on the bare <input> element without
195
+ a wrapper. These rules sit outside @layer primeng, so the per-property
196
+ cascade keeps `background-image` even though PrimeNG sets the `background`
197
+ shorthand. */
198
+ html.mt-ds
199
+ :is(
200
+ .p-inputtext,
201
+ .p-textarea,
202
+ .p-select,
203
+ .p-multiselect,
204
+ .p-datepicker-input
205
+ ) {
206
+ background-image: linear-gradient(
207
+ to right,
208
+ var(--p-primary-color),
209
+ var(--p-primary-color)
210
+ );
211
+ background-repeat: no-repeat;
212
+ background-position: bottom center;
213
+ background-size: 0% 2px;
214
+ transition:
215
+ background-size 150ms ease,
216
+ border-color var(--ds-transition-fast),
217
+ background-color var(--ds-transition-fast);
218
+ }
219
+
220
+ html.mt-ds :is(.p-inputtext, .p-textarea):active:not(:focus) {
221
+ background-size: 33% 2px;
222
+ }
223
+
224
+ html.mt-ds :is(.p-inputtext, .p-textarea):focus,
225
+ html.mt-ds
226
+ :is(.p-select, .p-multiselect, .p-datepicker):is(
227
+ .p-focus,
228
+ .p-inputwrapper-focus
229
+ )
230
+ > :is(.p-select-label, .p-multiselect-label-container, .p-datepicker-input),
231
+ html.mt-ds :is(.p-select, .p-multiselect).p-focus {
232
+ background-size: 100% 2px;
233
+ }
234
+
235
+ /* Error fields flip the bar to the DS danger red. */
236
+ html.mt-ds
237
+ :is(
238
+ .p-inputtext,
239
+ .p-textarea,
240
+ .p-select,
241
+ .p-multiselect
242
+ ).ng-invalid.ng-touched,
243
+ html.mt-ds :is(.p-inputtext, .p-textarea, .p-select, .p-multiselect).p-invalid {
244
+ background-image: linear-gradient(
245
+ to right,
246
+ var(--ds-danger),
247
+ var(--ds-danger)
248
+ );
249
+ }
250
+
251
+ /* ── Disabled ──────────────────────────────────────────────────
252
+ Hard DS rule: disabled state is a colour swap, never an opacity fade. The
253
+ preset zeroes `disabledOpacity`; this catches the components that dim
254
+ themselves in component CSS rather than through the token. */
255
+ html.mt-ds .p-disabled,
256
+ html.mt-ds .p-component:disabled {
257
+ opacity: 1;
258
+ }
259
+
260
+ /* Elevation, tooltip and toast live with their components in ds-components/. */
261
+
262
+ /* ── Charts ────────────────────────────────────────────────────
263
+ Series colours are consumed by @masterteam/dashboard-builder through these
264
+ variables, so a chart re-themes with the rest of the identity. */
265
+ html.mt-ds {
266
+ --mt-chart-series-1: var(--ds-chart-series-1);
267
+ --mt-chart-series-2: var(--ds-chart-series-2);
268
+ --mt-chart-series-3: var(--ds-chart-series-3);
269
+ --mt-chart-series-4: var(--ds-chart-series-4);
270
+ --mt-chart-series-5: var(--ds-chart-series-5);
271
+ --mt-chart-series-6: var(--ds-chart-series-6);
272
+ --mt-chart-grid: var(--ds-chart-grid);
273
+ --mt-chart-title: var(--ds-chart-title);
274
+ --mt-chart-subtitle: var(--ds-chart-subtitle);
275
+ }
@@ -0,0 +1,100 @@
1
+ /* IBM Plex Sans Arabic — the single font family of the Masterteam Design System.
2
+ Self-hosted (latin + arabic subsets, weights 400/500/600/700) so the identity
3
+ works offline and under strict CSP, matching how Inter/Cairo are shipped.
4
+ Only consumed by the experimental DS identity (see ds-identity.css). */
5
+
6
+ /* ── 400 Regular ─────────────────────────────────────────────── */
7
+ @font-face {
8
+ font-family: "IBM Plex Sans Arabic";
9
+ font-style: normal;
10
+ font-weight: 400;
11
+ font-display: swap;
12
+ src: url("fonts/IBMPlexSansArabic-400-latin.woff2") format("woff2");
13
+ unicode-range:
14
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
15
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
16
+ U+2215, U+FEFF, U+FFFD;
17
+ }
18
+ @font-face {
19
+ font-family: "IBM Plex Sans Arabic";
20
+ font-style: normal;
21
+ font-weight: 400;
22
+ font-display: swap;
23
+ src: url("fonts/IBMPlexSansArabic-400-arabic.woff2") format("woff2");
24
+ unicode-range:
25
+ U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
26
+ U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
27
+ U+FE70-FE74, U+FE76-FEFC;
28
+ }
29
+
30
+ /* ── 500 Medium ──────────────────────────────────────────────── */
31
+ @font-face {
32
+ font-family: "IBM Plex Sans Arabic";
33
+ font-style: normal;
34
+ font-weight: 500;
35
+ font-display: swap;
36
+ src: url("fonts/IBMPlexSansArabic-500-latin.woff2") format("woff2");
37
+ unicode-range:
38
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
39
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
40
+ U+2215, U+FEFF, U+FFFD;
41
+ }
42
+ @font-face {
43
+ font-family: "IBM Plex Sans Arabic";
44
+ font-style: normal;
45
+ font-weight: 500;
46
+ font-display: swap;
47
+ src: url("fonts/IBMPlexSansArabic-500-arabic.woff2") format("woff2");
48
+ unicode-range:
49
+ U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
50
+ U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
51
+ U+FE70-FE74, U+FE76-FEFC;
52
+ }
53
+
54
+ /* ── 600 Semibold ────────────────────────────────────────────── */
55
+ @font-face {
56
+ font-family: "IBM Plex Sans Arabic";
57
+ font-style: normal;
58
+ font-weight: 600;
59
+ font-display: swap;
60
+ src: url("fonts/IBMPlexSansArabic-600-latin.woff2") format("woff2");
61
+ unicode-range:
62
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
63
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
64
+ U+2215, U+FEFF, U+FFFD;
65
+ }
66
+ @font-face {
67
+ font-family: "IBM Plex Sans Arabic";
68
+ font-style: normal;
69
+ font-weight: 600;
70
+ font-display: swap;
71
+ src: url("fonts/IBMPlexSansArabic-600-arabic.woff2") format("woff2");
72
+ unicode-range:
73
+ U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
74
+ U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
75
+ U+FE70-FE74, U+FE76-FEFC;
76
+ }
77
+
78
+ /* ── 700 Bold ────────────────────────────────────────────────── */
79
+ @font-face {
80
+ font-family: "IBM Plex Sans Arabic";
81
+ font-style: normal;
82
+ font-weight: 700;
83
+ font-display: swap;
84
+ src: url("fonts/IBMPlexSansArabic-700-latin.woff2") format("woff2");
85
+ unicode-range:
86
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
87
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
88
+ U+2215, U+FEFF, U+FFFD;
89
+ }
90
+ @font-face {
91
+ font-family: "IBM Plex Sans Arabic";
92
+ font-style: normal;
93
+ font-weight: 700;
94
+ font-display: swap;
95
+ src: url("fonts/IBMPlexSansArabic-700-arabic.woff2") format("woff2");
96
+ unicode-range:
97
+ U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
98
+ U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
99
+ U+FE70-FE74, U+FE76-FEFC;
100
+ }
@@ -139,11 +139,11 @@ class TableActionsMenu {
139
139
  this.menu()?.toggle(event);
140
140
  }
141
141
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: TableActionsMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
142
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: TableActionsMenu, isStandalone: true, selector: "mt-table-actions-menu", inputs: { exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, printable: { classPropertyName: "printable", publicName: "printable", isSignal: true, isRequired: false, transformFunction: null }, groupable: { classPropertyName: "groupable", publicName: "groupable", isSignal: true, isRequired: false, transformFunction: null }, groupColumns: { classPropertyName: "groupColumns", publicName: "groupColumns", isSignal: true, isRequired: false, transformFunction: null }, activeGroup: { classPropertyName: "activeGroup", publicName: "activeGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { exportRequested: "exportRequested", printRequested: "printRequested", groupChange: "groupChange" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (isFlat()) {\r\n @for (item of items(); track item.labelKey ?? item.rawLabel) {\r\n <mt-button\r\n (click)=\"activate($event, item)\"\r\n [icon]=\"item.iconKey\"\r\n [label]=\"item.badge\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"\r\n item.labelKey ? (item.labelKey | transloco) : (item.rawLabel ?? '')\r\n \"\r\n />\r\n }\r\n} @else {\r\n <mt-button\r\n (click)=\"toggle($event)\"\r\n icon=\"general.dots-horizontal\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"'components.table.actions' | transloco\"\r\n />\r\n}\r\n\r\n<p-tieredMenu\r\n #menu\r\n [model]=\"menuModel()\"\r\n [popup]=\"true\"\r\n appendTo=\"body\"\r\n styleClass=\"mt-table-actions-menu\"\r\n>\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <button\r\n type=\"button\"\r\n class=\"flex items-center gap-2.5 w-full px-2.5 py-2 text-sm cursor-pointer text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-surface-700 transition-colors\"\r\n [class.bg-primary-50]=\"item.selected\"\r\n [class.dark:bg-primary-950]=\"item.selected\"\r\n [class.text-primary-700]=\"item.selected\"\r\n >\r\n @if (item.iconKey) {\r\n @if (item.useAvatar) {\r\n <mt-avatar [icon]=\"item.iconKey\" shape=\"circle\" />\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center justify-center w-7 h-7 rounded-full shrink-0\"\r\n [class]=\"toneClass[item.iconTone ?? 'secondary']\"\r\n >\r\n <mt-icon [icon]=\"item.iconKey\" class=\"text-sm\" />\r\n </span>\r\n }\r\n }\r\n <span class=\"flex-1 text-start truncate\">\r\n @if (item.labelKey) {\r\n {{ item.labelKey | transloco }}\r\n } @else {\r\n {{ item.rawLabel }}\r\n }\r\n </span>\r\n @if (item.badge) {\r\n <span\r\n class=\"text-xs px-1.5 py-0.5 rounded-full bg-primary-50 text-primary-700 dark:bg-primary-950 dark:text-primary-300 shrink-0\"\r\n >\r\n {{ item.badge }}\r\n </span>\r\n }\r\n @if (hasSubmenu) {\r\n <mt-icon\r\n icon=\"arrow.chevron-right\"\r\n class=\"text-xs text-gray-400 shrink-0\"\r\n />\r\n }\r\n </button>\r\n </ng-template>\r\n</p-tieredMenu>\r\n", dependencies: [{ kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "ngmodule", type: TieredMenuModule }, { kind: "component", type: i1.TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "pipe", type: i2.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
142
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: TableActionsMenu, isStandalone: true, selector: "mt-table-actions-menu", inputs: { exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, printable: { classPropertyName: "printable", publicName: "printable", isSignal: true, isRequired: false, transformFunction: null }, groupable: { classPropertyName: "groupable", publicName: "groupable", isSignal: true, isRequired: false, transformFunction: null }, groupColumns: { classPropertyName: "groupColumns", publicName: "groupColumns", isSignal: true, isRequired: false, transformFunction: null }, activeGroup: { classPropertyName: "activeGroup", publicName: "activeGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { exportRequested: "exportRequested", printRequested: "printRequested", groupChange: "groupChange" }, host: { classAttribute: "flex items-center gap-2" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (isFlat()) {\r\n @for (item of items(); track item.labelKey ?? item.rawLabel) {\r\n <mt-button\r\n (click)=\"activate($event, item)\"\r\n [icon]=\"item.iconKey\"\r\n [label]=\"item.badge\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"\r\n item.labelKey ? (item.labelKey | transloco) : (item.rawLabel ?? '')\r\n \"\r\n />\r\n }\r\n} @else {\r\n <mt-button\r\n (click)=\"toggle($event)\"\r\n icon=\"general.dots-horizontal\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"'components.table.actions' | transloco\"\r\n />\r\n}\r\n\r\n<p-tieredMenu\r\n #menu\r\n [model]=\"menuModel()\"\r\n [popup]=\"true\"\r\n appendTo=\"body\"\r\n styleClass=\"mt-table-actions-menu\"\r\n>\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <button\r\n type=\"button\"\r\n class=\"flex items-center gap-2.5 w-full px-2.5 py-2 text-sm cursor-pointer text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-surface-700 transition-colors\"\r\n [class.bg-primary-50]=\"item.selected\"\r\n [class.dark:bg-primary-950]=\"item.selected\"\r\n [class.text-primary-700]=\"item.selected\"\r\n >\r\n @if (item.iconKey) {\r\n @if (item.useAvatar) {\r\n <mt-avatar [icon]=\"item.iconKey\" shape=\"circle\" />\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center justify-center w-7 h-7 rounded-full shrink-0\"\r\n [class]=\"toneClass[item.iconTone ?? 'secondary']\"\r\n >\r\n <mt-icon [icon]=\"item.iconKey\" class=\"text-sm\" />\r\n </span>\r\n }\r\n }\r\n <span class=\"flex-1 text-start truncate\">\r\n @if (item.labelKey) {\r\n {{ item.labelKey | transloco }}\r\n } @else {\r\n {{ item.rawLabel }}\r\n }\r\n </span>\r\n @if (item.badge) {\r\n <span\r\n class=\"text-xs px-1.5 py-0.5 rounded-full bg-primary-50 text-primary-700 dark:bg-primary-950 dark:text-primary-300 shrink-0\"\r\n >\r\n {{ item.badge }}\r\n </span>\r\n }\r\n @if (hasSubmenu) {\r\n <mt-icon\r\n icon=\"arrow.chevron-right\"\r\n class=\"text-xs text-gray-400 shrink-0\"\r\n />\r\n }\r\n </button>\r\n </ng-template>\r\n</p-tieredMenu>\r\n", dependencies: [{ kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "ngmodule", type: TieredMenuModule }, { kind: "component", type: i1.TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "pipe", type: i2.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
143
143
  }
144
144
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: TableActionsMenu, decorators: [{
145
145
  type: Component,
146
- args: [{ selector: 'mt-table-actions-menu', standalone: true, imports: [Avatar, Button, Icon, TieredMenuModule, TranslocoModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (isFlat()) {\r\n @for (item of items(); track item.labelKey ?? item.rawLabel) {\r\n <mt-button\r\n (click)=\"activate($event, item)\"\r\n [icon]=\"item.iconKey\"\r\n [label]=\"item.badge\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"\r\n item.labelKey ? (item.labelKey | transloco) : (item.rawLabel ?? '')\r\n \"\r\n />\r\n }\r\n} @else {\r\n <mt-button\r\n (click)=\"toggle($event)\"\r\n icon=\"general.dots-horizontal\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"'components.table.actions' | transloco\"\r\n />\r\n}\r\n\r\n<p-tieredMenu\r\n #menu\r\n [model]=\"menuModel()\"\r\n [popup]=\"true\"\r\n appendTo=\"body\"\r\n styleClass=\"mt-table-actions-menu\"\r\n>\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <button\r\n type=\"button\"\r\n class=\"flex items-center gap-2.5 w-full px-2.5 py-2 text-sm cursor-pointer text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-surface-700 transition-colors\"\r\n [class.bg-primary-50]=\"item.selected\"\r\n [class.dark:bg-primary-950]=\"item.selected\"\r\n [class.text-primary-700]=\"item.selected\"\r\n >\r\n @if (item.iconKey) {\r\n @if (item.useAvatar) {\r\n <mt-avatar [icon]=\"item.iconKey\" shape=\"circle\" />\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center justify-center w-7 h-7 rounded-full shrink-0\"\r\n [class]=\"toneClass[item.iconTone ?? 'secondary']\"\r\n >\r\n <mt-icon [icon]=\"item.iconKey\" class=\"text-sm\" />\r\n </span>\r\n }\r\n }\r\n <span class=\"flex-1 text-start truncate\">\r\n @if (item.labelKey) {\r\n {{ item.labelKey | transloco }}\r\n } @else {\r\n {{ item.rawLabel }}\r\n }\r\n </span>\r\n @if (item.badge) {\r\n <span\r\n class=\"text-xs px-1.5 py-0.5 rounded-full bg-primary-50 text-primary-700 dark:bg-primary-950 dark:text-primary-300 shrink-0\"\r\n >\r\n {{ item.badge }}\r\n </span>\r\n }\r\n @if (hasSubmenu) {\r\n <mt-icon\r\n icon=\"arrow.chevron-right\"\r\n class=\"text-xs text-gray-400 shrink-0\"\r\n />\r\n }\r\n </button>\r\n </ng-template>\r\n</p-tieredMenu>\r\n" }]
146
+ args: [{ selector: 'mt-table-actions-menu', standalone: true, imports: [Avatar, Button, Icon, TieredMenuModule, TranslocoModule], host: { class: 'flex items-center gap-2' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (isFlat()) {\r\n @for (item of items(); track item.labelKey ?? item.rawLabel) {\r\n <mt-button\r\n (click)=\"activate($event, item)\"\r\n [icon]=\"item.iconKey\"\r\n [label]=\"item.badge\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"\r\n item.labelKey ? (item.labelKey | transloco) : (item.rawLabel ?? '')\r\n \"\r\n />\r\n }\r\n} @else {\r\n <mt-button\r\n (click)=\"toggle($event)\"\r\n icon=\"general.dots-horizontal\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [tooltip]=\"'components.table.actions' | transloco\"\r\n />\r\n}\r\n\r\n<p-tieredMenu\r\n #menu\r\n [model]=\"menuModel()\"\r\n [popup]=\"true\"\r\n appendTo=\"body\"\r\n styleClass=\"mt-table-actions-menu\"\r\n>\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <button\r\n type=\"button\"\r\n class=\"flex items-center gap-2.5 w-full px-2.5 py-2 text-sm cursor-pointer text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-surface-700 transition-colors\"\r\n [class.bg-primary-50]=\"item.selected\"\r\n [class.dark:bg-primary-950]=\"item.selected\"\r\n [class.text-primary-700]=\"item.selected\"\r\n >\r\n @if (item.iconKey) {\r\n @if (item.useAvatar) {\r\n <mt-avatar [icon]=\"item.iconKey\" shape=\"circle\" />\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center justify-center w-7 h-7 rounded-full shrink-0\"\r\n [class]=\"toneClass[item.iconTone ?? 'secondary']\"\r\n >\r\n <mt-icon [icon]=\"item.iconKey\" class=\"text-sm\" />\r\n </span>\r\n }\r\n }\r\n <span class=\"flex-1 text-start truncate\">\r\n @if (item.labelKey) {\r\n {{ item.labelKey | transloco }}\r\n } @else {\r\n {{ item.rawLabel }}\r\n }\r\n </span>\r\n @if (item.badge) {\r\n <span\r\n class=\"text-xs px-1.5 py-0.5 rounded-full bg-primary-50 text-primary-700 dark:bg-primary-950 dark:text-primary-300 shrink-0\"\r\n >\r\n {{ item.badge }}\r\n </span>\r\n }\r\n @if (hasSubmenu) {\r\n <mt-icon\r\n icon=\"arrow.chevron-right\"\r\n class=\"text-xs text-gray-400 shrink-0\"\r\n />\r\n }\r\n </button>\r\n </ng-template>\r\n</p-tieredMenu>\r\n" }]
147
147
  }], propDecorators: { exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", required: false }] }], printable: [{ type: i0.Input, args: [{ isSignal: true, alias: "printable", required: false }] }], groupable: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupable", required: false }] }], groupColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupColumns", required: false }] }], activeGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeGroup", required: false }] }], exportRequested: [{ type: i0.Output, args: ["exportRequested"] }], printRequested: [{ type: i0.Output, args: ["printRequested"] }], groupChange: [{ type: i0.Output, args: ["groupChange"] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
148
148
 
149
149
  class TableValueResolver {