@parto-system-design/ui 1.1.17 → 1.1.18
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.
- package/AGENTS.md +2 -2
- package/README.md +1 -1
- package/dist/components/brand/parto-logo.cjs +0 -2
- package/dist/components/brand/parto-logo.js +0 -2
- package/dist/components/charts/PartoAreaChart.cjs +2 -4
- package/dist/components/charts/PartoAreaChart.d.cts +1 -1
- package/dist/components/charts/PartoAreaChart.d.ts +1 -1
- package/dist/components/charts/PartoAreaChart.js +2 -4
- package/dist/components/charts/PartoBarChart.cjs +2 -4
- package/dist/components/charts/PartoBarChart.d.cts +1 -1
- package/dist/components/charts/PartoBarChart.d.ts +1 -1
- package/dist/components/charts/PartoBarChart.js +2 -4
- package/dist/components/charts/PartoLineChart.cjs +2 -4
- package/dist/components/charts/PartoLineChart.d.cts +1 -1
- package/dist/components/charts/PartoLineChart.d.ts +1 -1
- package/dist/components/charts/PartoLineChart.js +2 -4
- package/dist/components/charts/PartoPieChart.cjs +2 -4
- package/dist/components/charts/PartoPieChart.d.cts +1 -1
- package/dist/components/charts/PartoPieChart.d.ts +1 -1
- package/dist/components/charts/PartoPieChart.js +2 -4
- package/dist/components/ui/accordion.cjs +0 -2
- package/dist/components/ui/accordion.d.cts +4 -5
- package/dist/components/ui/accordion.d.ts +4 -5
- package/dist/components/ui/accordion.js +0 -2
- package/dist/components/ui/alert-dialog.cjs +0 -2
- package/dist/components/ui/alert-dialog.d.cts +9 -10
- package/dist/components/ui/alert-dialog.d.ts +9 -10
- package/dist/components/ui/alert-dialog.js +1 -3
- package/dist/components/ui/alert-rule-card.cjs +149 -12
- package/dist/components/ui/alert-rule-card.d.cts +2 -2
- package/dist/components/ui/alert-rule-card.d.ts +2 -2
- package/dist/components/ui/alert-rule-card.js +149 -12
- package/dist/components/ui/alert.cjs +3 -5
- package/dist/components/ui/alert.js +3 -5
- package/dist/components/ui/app-bar.cjs +0 -2
- package/dist/components/ui/app-bar.js +0 -2
- package/dist/components/ui/avatar.cjs +0 -2
- package/dist/components/ui/avatar.d.cts +3 -4
- package/dist/components/ui/avatar.d.ts +3 -4
- package/dist/components/ui/avatar.js +0 -2
- package/dist/components/ui/badge.cjs +0 -2
- package/dist/components/ui/badge.d.cts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +0 -2
- package/dist/components/ui/breadcrumb.cjs +0 -2
- package/dist/components/ui/breadcrumb.d.cts +7 -8
- package/dist/components/ui/breadcrumb.d.ts +7 -8
- package/dist/components/ui/breadcrumb.js +0 -2
- package/dist/components/ui/button.cjs +0 -2
- package/dist/components/ui/button.d.cts +2 -2
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +1 -3
- package/dist/components/ui/calendar.cjs +0 -2
- package/dist/components/ui/calendar.d.cts +1 -2
- package/dist/components/ui/calendar.d.ts +1 -2
- package/dist/components/ui/calendar.js +1 -3
- package/dist/components/ui/card.cjs +0 -2
- package/dist/components/ui/card.js +0 -2
- package/dist/components/ui/checkbox.cjs +0 -2
- package/dist/components/ui/checkbox.js +0 -2
- package/dist/components/ui/concept-card.cjs +179 -61
- package/dist/components/ui/concept-card.d.cts +3 -3
- package/dist/components/ui/concept-card.d.ts +3 -3
- package/dist/components/ui/concept-card.js +179 -61
- package/dist/components/ui/data-table.cjs +129 -3
- package/dist/components/ui/data-table.d.cts +1 -1
- package/dist/components/ui/data-table.d.ts +1 -1
- package/dist/components/ui/data-table.js +130 -4
- package/dist/components/ui/dialog.cjs +0 -2
- package/dist/components/ui/dialog.d.cts +2 -3
- package/dist/components/ui/dialog.d.ts +2 -3
- package/dist/components/ui/dialog.js +0 -2
- package/dist/components/ui/dropdown-menu.cjs +0 -2
- package/dist/components/ui/dropdown-menu.d.cts +15 -16
- package/dist/components/ui/dropdown-menu.d.ts +15 -16
- package/dist/components/ui/dropdown-menu.js +0 -2
- package/dist/components/ui/filter-provider.cjs +0 -2
- package/dist/components/ui/filter-provider.d.cts +1 -2
- package/dist/components/ui/filter-provider.d.ts +1 -2
- package/dist/components/ui/filter-provider.js +0 -2
- package/dist/components/ui/form.cjs +0 -2
- package/dist/components/ui/form.d.cts +7 -8
- package/dist/components/ui/form.d.ts +7 -8
- package/dist/components/ui/form.js +0 -2
- package/dist/components/ui/input.cjs +0 -2
- package/dist/components/ui/input.js +0 -2
- package/dist/components/ui/iran-province-heat.cjs +1 -3
- package/dist/components/ui/iran-province-heat.d.cts +1 -1
- package/dist/components/ui/iran-province-heat.d.ts +1 -1
- package/dist/components/ui/iran-province-heat.js +1 -3
- package/dist/components/ui/label.cjs +0 -2
- package/dist/components/ui/label.d.cts +1 -2
- package/dist/components/ui/label.d.ts +1 -2
- package/dist/components/ui/label.js +0 -2
- package/dist/components/ui/page-card.cjs +170 -33
- package/dist/components/ui/page-card.d.cts +3 -3
- package/dist/components/ui/page-card.d.ts +3 -3
- package/dist/components/ui/page-card.js +170 -33
- package/dist/components/ui/page-header.cjs +128 -2
- package/dist/components/ui/page-header.d.cts +1 -1
- package/dist/components/ui/page-header.d.ts +1 -1
- package/dist/components/ui/page-header.js +128 -2
- package/dist/components/ui/password-input.cjs +0 -2
- package/dist/components/ui/password-input.js +0 -2
- package/dist/components/ui/popover.cjs +0 -2
- package/dist/components/ui/popover.js +0 -2
- package/dist/components/ui/progress.cjs +1 -3
- package/dist/components/ui/progress.js +1 -3
- package/dist/components/ui/radio-card.cjs +0 -2
- package/dist/components/ui/radio-card.js +0 -2
- package/dist/components/ui/radio-group.cjs +0 -2
- package/dist/components/ui/radio-group.js +0 -2
- package/dist/components/ui/saved-query-card.cjs +0 -2
- package/dist/components/ui/saved-query-card.d.cts +1 -1
- package/dist/components/ui/saved-query-card.d.ts +1 -1
- package/dist/components/ui/saved-query-card.js +1 -3
- package/dist/components/ui/scroll-area.cjs +0 -2
- package/dist/components/ui/scroll-area.d.cts +2 -3
- package/dist/components/ui/scroll-area.d.ts +2 -3
- package/dist/components/ui/scroll-area.js +0 -2
- package/dist/components/ui/select.cjs +0 -2
- package/dist/components/ui/select.d.cts +1 -2
- package/dist/components/ui/select.d.ts +1 -2
- package/dist/components/ui/select.js +0 -2
- package/dist/components/ui/separator.cjs +0 -2
- package/dist/components/ui/separator.js +0 -2
- package/dist/components/ui/sheet.cjs +0 -2
- package/dist/components/ui/sheet.d.cts +9 -10
- package/dist/components/ui/sheet.d.ts +9 -10
- package/dist/components/ui/sheet.js +0 -2
- package/dist/components/ui/skeleton.cjs +0 -2
- package/dist/components/ui/skeleton.d.cts +8 -9
- package/dist/components/ui/skeleton.d.ts +8 -9
- package/dist/components/ui/skeleton.js +0 -2
- package/dist/components/ui/slider.cjs +0 -2
- package/dist/components/ui/slider.d.cts +1 -2
- package/dist/components/ui/slider.d.ts +1 -2
- package/dist/components/ui/slider.js +0 -2
- package/dist/components/ui/social-platform-badge.cjs +0 -2
- package/dist/components/ui/social-platform-badge.js +1 -3
- package/dist/components/ui/sonner.cjs +4 -6
- package/dist/components/ui/sonner.d.cts +2 -2
- package/dist/components/ui/sonner.d.ts +2 -2
- package/dist/components/ui/sonner.js +4 -6
- package/dist/components/ui/sparkline.cjs +3 -5
- package/dist/components/ui/sparkline.d.cts +1 -1
- package/dist/components/ui/sparkline.d.ts +1 -1
- package/dist/components/ui/sparkline.js +3 -5
- package/dist/components/ui/switch.cjs +0 -2
- package/dist/components/ui/switch.d.cts +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.js +0 -2
- package/dist/components/ui/table.cjs +0 -2
- package/dist/components/ui/table.d.cts +9 -10
- package/dist/components/ui/table.d.ts +9 -10
- package/dist/components/ui/table.js +0 -2
- package/dist/components/ui/tabs.cjs +0 -2
- package/dist/components/ui/tabs.js +0 -2
- package/dist/components/ui/textarea.cjs +0 -2
- package/dist/components/ui/textarea.js +0 -2
- package/dist/components/ui/toggle-group.cjs +0 -2
- package/dist/components/ui/toggle-group.d.cts +1 -2
- package/dist/components/ui/toggle-group.d.ts +1 -2
- package/dist/components/ui/toggle-group.js +0 -2
- package/dist/components/ui/tooltip.cjs +0 -2
- package/dist/components/ui/tooltip.js +0 -2
- package/dist/{concept-card-BoJ5gIJD.d.ts → concept-card-BU8JL-gj.d.cts} +5 -5
- package/dist/{concept-card-BXra9mr0.d.cts → concept-card-D7PfDkNR.d.ts} +5 -5
- package/dist/hooks/use-hotkey-registry.cjs +0 -2
- package/dist/hooks/use-hotkey-registry.d.cts +1 -2
- package/dist/hooks/use-hotkey-registry.d.ts +1 -2
- package/dist/hooks/use-hotkey-registry.js +0 -2
- package/dist/hooks/use-hotkeys.cjs +0 -2
- package/dist/hooks/use-hotkeys.js +0 -2
- package/dist/{i18n-BfRhV5aw.d.cts → i18n-DD3DMY8O.d.cts} +94 -5
- package/dist/{i18n-ewyqbKM-.d.ts → i18n-UEClNsBy.d.ts} +94 -5
- package/dist/index.cjs +1242 -1173
- package/dist/index.css +8010 -5459
- package/dist/index.d.cts +212 -991
- package/dist/index.d.ts +212 -991
- package/dist/index.js +1208 -1153
- package/dist/{page-card-C9XXXOVr.d.cts → page-card-DjztZrFM.d.cts} +4 -4
- package/dist/{page-card-DAnbez_f.d.ts → page-card-sIE4lvnb.d.ts} +4 -4
- package/dist/server-FTUA8opZ.d.cts +829 -0
- package/dist/server-m6tiB6DB.d.ts +829 -0
- package/dist/server.cjs +1565 -0
- package/dist/server.d.cts +8 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.js +1483 -0
- package/dist/theme.css +50 -0
- package/dist/{toggle-group-B8r4LOQw.d.cts → toggle-group-Bis6suuR.d.cts} +3 -4
- package/dist/{toggle-group-B8r4LOQw.d.ts → toggle-group-Bis6suuR.d.ts} +3 -4
- package/dist/{utils-DlXWmDZ-.d.cts → utils-Czyp5Ned.d.cts} +1 -1
- package/dist/{utils-DlXWmDZ-.d.ts → utils-Czyp5Ned.d.ts} +1 -1
- package/package.json +455 -187
- package/tailwind.config.ts +184 -183
- package/dist/components/brand/parto-logo.cjs.map +0 -1
- package/dist/components/brand/parto-logo.js.map +0 -1
- package/dist/components/charts/PartoAreaChart.cjs.map +0 -1
- package/dist/components/charts/PartoAreaChart.js.map +0 -1
- package/dist/components/charts/PartoBarChart.cjs.map +0 -1
- package/dist/components/charts/PartoBarChart.js.map +0 -1
- package/dist/components/charts/PartoLineChart.cjs.map +0 -1
- package/dist/components/charts/PartoLineChart.js.map +0 -1
- package/dist/components/charts/PartoPieChart.cjs.map +0 -1
- package/dist/components/charts/PartoPieChart.js.map +0 -1
- package/dist/components/ui/accordion.cjs.map +0 -1
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/alert-dialog.cjs.map +0 -1
- package/dist/components/ui/alert-dialog.js.map +0 -1
- package/dist/components/ui/alert-rule-card.cjs.map +0 -1
- package/dist/components/ui/alert-rule-card.js.map +0 -1
- package/dist/components/ui/alert.cjs.map +0 -1
- package/dist/components/ui/alert.js.map +0 -1
- package/dist/components/ui/app-bar.cjs.map +0 -1
- package/dist/components/ui/app-bar.js.map +0 -1
- package/dist/components/ui/avatar.cjs.map +0 -1
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.cjs.map +0 -1
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/breadcrumb.cjs.map +0 -1
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button.cjs.map +0 -1
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/calendar.cjs.map +0 -1
- package/dist/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/card.cjs.map +0 -1
- package/dist/components/ui/card.js.map +0 -1
- package/dist/components/ui/checkbox.cjs.map +0 -1
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/concept-card.cjs.map +0 -1
- package/dist/components/ui/concept-card.js.map +0 -1
- package/dist/components/ui/data-table.cjs.map +0 -1
- package/dist/components/ui/data-table.js.map +0 -1
- package/dist/components/ui/dialog.cjs.map +0 -1
- package/dist/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/dropdown-menu.cjs.map +0 -1
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/filter-provider.cjs.map +0 -1
- package/dist/components/ui/filter-provider.js.map +0 -1
- package/dist/components/ui/form.cjs.map +0 -1
- package/dist/components/ui/form.js.map +0 -1
- package/dist/components/ui/input.cjs.map +0 -1
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/iran-province-heat.cjs.map +0 -1
- package/dist/components/ui/iran-province-heat.js.map +0 -1
- package/dist/components/ui/label.cjs.map +0 -1
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/page-card.cjs.map +0 -1
- package/dist/components/ui/page-card.js.map +0 -1
- package/dist/components/ui/page-header.cjs.map +0 -1
- package/dist/components/ui/page-header.js.map +0 -1
- package/dist/components/ui/password-input.cjs.map +0 -1
- package/dist/components/ui/password-input.js.map +0 -1
- package/dist/components/ui/popover.cjs.map +0 -1
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/progress.cjs.map +0 -1
- package/dist/components/ui/progress.js.map +0 -1
- package/dist/components/ui/radio-card.cjs.map +0 -1
- package/dist/components/ui/radio-card.js.map +0 -1
- package/dist/components/ui/radio-group.cjs.map +0 -1
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/saved-query-card.cjs.map +0 -1
- package/dist/components/ui/saved-query-card.js.map +0 -1
- package/dist/components/ui/scroll-area.cjs.map +0 -1
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/select.cjs.map +0 -1
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/separator.cjs.map +0 -1
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/sheet.cjs.map +0 -1
- package/dist/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/skeleton.cjs.map +0 -1
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/slider.cjs.map +0 -1
- package/dist/components/ui/slider.js.map +0 -1
- package/dist/components/ui/social-platform-badge.cjs.map +0 -1
- package/dist/components/ui/social-platform-badge.js.map +0 -1
- package/dist/components/ui/sonner.cjs.map +0 -1
- package/dist/components/ui/sonner.js.map +0 -1
- package/dist/components/ui/sparkline.cjs.map +0 -1
- package/dist/components/ui/sparkline.js.map +0 -1
- package/dist/components/ui/switch.cjs.map +0 -1
- package/dist/components/ui/switch.js.map +0 -1
- package/dist/components/ui/table.cjs.map +0 -1
- package/dist/components/ui/table.js.map +0 -1
- package/dist/components/ui/tabs.cjs.map +0 -1
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/textarea.cjs.map +0 -1
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/toggle-group.cjs.map +0 -1
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/tooltip.cjs.map +0 -1
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/hooks/use-hotkey-registry.cjs.map +0 -1
- package/dist/hooks/use-hotkey-registry.js.map +0 -1
- package/dist/hooks/use-hotkeys.cjs.map +0 -1
- package/dist/hooks/use-hotkeys.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -18,6 +18,62 @@ function convertToLocalNumbers(text, locale) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// src/lib/i18n.ts
|
|
21
|
+
var EMOTION_KEYS = [
|
|
22
|
+
"anger",
|
|
23
|
+
"anticipation",
|
|
24
|
+
"joy",
|
|
25
|
+
"trust",
|
|
26
|
+
"fear",
|
|
27
|
+
"surprise",
|
|
28
|
+
"sadness",
|
|
29
|
+
"disgust",
|
|
30
|
+
"neutral"
|
|
31
|
+
];
|
|
32
|
+
var emotionLabels = {
|
|
33
|
+
fa: {
|
|
34
|
+
anger: "\u062E\u0634\u0645",
|
|
35
|
+
anticipation: "\u0627\u0646\u062A\u0638\u0627\u0631",
|
|
36
|
+
joy: "\u0634\u0627\u062F\u06CC",
|
|
37
|
+
trust: "\u0627\u0639\u062A\u0645\u0627\u062F",
|
|
38
|
+
fear: "\u062A\u0631\u0633",
|
|
39
|
+
surprise: "\u0634\u06AF\u0641\u062A\u06CC",
|
|
40
|
+
sadness: "\u063A\u0645",
|
|
41
|
+
disgust: "\u0627\u0646\u0632\u062C\u0627\u0631",
|
|
42
|
+
neutral: "\u062E\u0646\u062B\u06CC"
|
|
43
|
+
},
|
|
44
|
+
ar: {
|
|
45
|
+
anger: "\u063A\u0636\u0628",
|
|
46
|
+
anticipation: "\u062A\u0631\u0642\u0651\u0628",
|
|
47
|
+
joy: "\u0641\u0631\u062D",
|
|
48
|
+
trust: "\u062B\u0642\u0629",
|
|
49
|
+
fear: "\u062E\u0648\u0641",
|
|
50
|
+
surprise: "\u062F\u0647\u0634\u0629",
|
|
51
|
+
sadness: "\u062D\u0632\u0646",
|
|
52
|
+
disgust: "\u0627\u0634\u0645\u0626\u0632\u0627\u0632",
|
|
53
|
+
neutral: "\u0645\u062D\u0627\u064A\u062F"
|
|
54
|
+
},
|
|
55
|
+
en: {
|
|
56
|
+
anger: "Anger",
|
|
57
|
+
anticipation: "Anticipation",
|
|
58
|
+
joy: "Joy",
|
|
59
|
+
trust: "Trust",
|
|
60
|
+
fear: "Fear",
|
|
61
|
+
surprise: "Surprise",
|
|
62
|
+
sadness: "Sadness",
|
|
63
|
+
disgust: "Disgust",
|
|
64
|
+
neutral: "Neutral"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
(() => {
|
|
68
|
+
const map = {};
|
|
69
|
+
for (const key of EMOTION_KEYS) map[key] = key;
|
|
70
|
+
for (const locale of Object.keys(emotionLabels)) {
|
|
71
|
+
for (const key of EMOTION_KEYS) {
|
|
72
|
+
map[emotionLabels[locale][key].toLowerCase()] = key;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return map;
|
|
76
|
+
})();
|
|
21
77
|
var FLOW_KEYS = [
|
|
22
78
|
"pro-gov",
|
|
23
79
|
"internal-critic",
|
|
@@ -27,37 +83,97 @@ var FLOW_KEYS = [
|
|
|
27
83
|
];
|
|
28
84
|
var flowLabels = {
|
|
29
85
|
fa: {
|
|
30
|
-
"pro-gov": "\u062D\u0627\u0645\u06CC",
|
|
31
|
-
"internal-critic": "\u0645\u0646\u062A\u0642\u062F \
|
|
32
|
-
"internal-opponent": "\u0645\u062E\u0627\u0644\u0641",
|
|
33
|
-
"external-opponent": "\u0645\u062E\u0627\u0644\u0641 \u062C\
|
|
34
|
-
grey: "\u062E\
|
|
86
|
+
"pro-gov": "\u062D\u0627\u0645\u06CC\u0627\u0646 \u062D\u06A9\u0648\u0645\u062A",
|
|
87
|
+
"internal-critic": "\u0645\u0646\u062A\u0642\u062F\u0627\u0646 \u062F\u0627\u062E\u0644\u06CC",
|
|
88
|
+
"internal-opponent": "\u0645\u062E\u0627\u0644\u0641\u0627\u0646 \u062F\u0627\u062E\u0644\u06CC",
|
|
89
|
+
"external-opponent": "\u0645\u062E\u0627\u0644\u0641\u0627\u0646 \u062E\u0627\u0631\u062C\u06CC",
|
|
90
|
+
grey: "\u0642\u0634\u0631 \u062E\u0627\u06A9\u0633\u062A\u0631\u06CC"
|
|
35
91
|
},
|
|
36
92
|
ar: {
|
|
37
|
-
"pro-gov": "\u0645\u0624\u064A\u062F",
|
|
38
|
-
"internal-critic": "\u0645\u0646\u062A\u0642\u062F
|
|
39
|
-
"internal-opponent": "\u0645\u0639\u0627\u0631\u0636",
|
|
40
|
-
"external-opponent": "\u0645\u0639\u0627\u0631\u0636 \
|
|
41
|
-
grey: "\
|
|
93
|
+
"pro-gov": "\u0645\u0624\u064A\u062F\u0648 \u0627\u0644\u062D\u0643\u0648\u0645\u0629",
|
|
94
|
+
"internal-critic": "\u0645\u0646\u062A\u0642\u062F\u0648\u0646 \u062F\u0627\u062E\u0644\u064A\u0648\u0646",
|
|
95
|
+
"internal-opponent": "\u0645\u0639\u0627\u0631\u0636\u0648\u0646 \u062F\u0627\u062E\u0644\u064A\u0648\u0646",
|
|
96
|
+
"external-opponent": "\u0645\u0639\u0627\u0631\u0636\u0648\u0646 \u062E\u0627\u0631\u062C\u064A\u0648\u0646",
|
|
97
|
+
grey: "\u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0631\u0645\u0627\u062F\u064A\u0629"
|
|
42
98
|
},
|
|
43
99
|
en: {
|
|
44
|
-
"pro-gov": "
|
|
45
|
-
"internal-critic": "
|
|
46
|
-
"internal-opponent": "
|
|
47
|
-
"external-opponent": "
|
|
48
|
-
grey: "
|
|
100
|
+
"pro-gov": "Pro-Government",
|
|
101
|
+
"internal-critic": "Internal Critic",
|
|
102
|
+
"internal-opponent": "Internal Opponent",
|
|
103
|
+
"external-opponent": "External Opponent",
|
|
104
|
+
grey: "Grey"
|
|
49
105
|
}
|
|
50
106
|
};
|
|
107
|
+
(() => {
|
|
108
|
+
const map = {};
|
|
109
|
+
for (const key of FLOW_KEYS) map[key] = key;
|
|
110
|
+
for (const locale of Object.keys(flowLabels)) {
|
|
111
|
+
for (const key of FLOW_KEYS) {
|
|
112
|
+
map[flowLabels[locale][key].toLowerCase()] = key;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return map;
|
|
116
|
+
})();
|
|
117
|
+
var STATUS_KEYS = ["critical", "warning", "middle", "low"];
|
|
51
118
|
var statusLabels = {
|
|
52
|
-
fa: { critical: "\u0628\u062D\u0631\u0627\u0646\u06CC", warning: "\u0647\u0634\u062F\u0627\u0631",
|
|
53
|
-
ar: { critical: "\u062D\u0631\u062C", warning: "\u062A\u062D\u0630\u064A\u0631",
|
|
54
|
-
en: { critical: "Critical", warning: "Warning",
|
|
119
|
+
fa: { critical: "\u0628\u062D\u0631\u0627\u0646\u06CC", warning: "\u0647\u0634\u062F\u0627\u0631", middle: "\u0645\u062A\u0648\u0633\u0637", low: "\u067E\u0627\u06CC\u06CC\u0646" },
|
|
120
|
+
ar: { critical: "\u062D\u0631\u062C", warning: "\u062A\u062D\u0630\u064A\u0631", middle: "\u0645\u062A\u0648\u0633\u0637", low: "\u0645\u0646\u062E\u0641\u0636" },
|
|
121
|
+
en: { critical: "Critical", warning: "Warning", middle: "Middle", low: "Low" }
|
|
122
|
+
};
|
|
123
|
+
var STATUS_VALUE_MAP = {
|
|
124
|
+
1: "critical",
|
|
125
|
+
2: "warning",
|
|
126
|
+
3: "middle",
|
|
127
|
+
4: "low"
|
|
55
128
|
};
|
|
129
|
+
var STATUS_LABEL_LOOKUP = (() => {
|
|
130
|
+
const map = { normal: "low" };
|
|
131
|
+
for (const key of STATUS_KEYS) map[key] = key;
|
|
132
|
+
for (const locale of Object.keys(statusLabels)) {
|
|
133
|
+
for (const key of STATUS_KEYS) {
|
|
134
|
+
map[statusLabels[locale][key].toLowerCase()] = key;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return map;
|
|
138
|
+
})();
|
|
139
|
+
function resolveStatus(input) {
|
|
140
|
+
if (input == null) return null;
|
|
141
|
+
if (typeof input === "number") return STATUS_VALUE_MAP[input] ?? null;
|
|
142
|
+
const raw = String(input).trim();
|
|
143
|
+
if (raw === "") return null;
|
|
144
|
+
if (/^\d+$/.test(raw)) return STATUS_VALUE_MAP[Number(raw)] ?? null;
|
|
145
|
+
return STATUS_LABEL_LOOKUP[raw.toLowerCase()] ?? null;
|
|
146
|
+
}
|
|
147
|
+
var SEVERITY_KEYS = ["urgent", "high", "medium", "low"];
|
|
56
148
|
var severityLabels = {
|
|
57
149
|
fa: { urgent: "\u0641\u0648\u0631\u06CC", high: "\u0628\u0627\u0644\u0627", medium: "\u0645\u062A\u0648\u0633\u0637", low: "\u067E\u0627\u06CC\u06CC\u0646" },
|
|
58
150
|
ar: { urgent: "\u0639\u0627\u062C\u0644", high: "\u0645\u0631\u062A\u0641\u0639", medium: "\u0645\u062A\u0648\u0633\u0637", low: "\u0645\u0646\u062E\u0641\u0636" },
|
|
59
151
|
en: { urgent: "Urgent", high: "High", medium: "Medium", low: "Low" }
|
|
60
152
|
};
|
|
153
|
+
var SEVERITY_VALUE_MAP = {
|
|
154
|
+
1: "urgent",
|
|
155
|
+
2: "high",
|
|
156
|
+
3: "medium",
|
|
157
|
+
4: "low"
|
|
158
|
+
};
|
|
159
|
+
var SEVERITY_LABEL_LOOKUP = (() => {
|
|
160
|
+
const map = {};
|
|
161
|
+
for (const key of SEVERITY_KEYS) map[key] = key;
|
|
162
|
+
for (const locale of Object.keys(severityLabels)) {
|
|
163
|
+
for (const key of SEVERITY_KEYS) {
|
|
164
|
+
map[severityLabels[locale][key].toLowerCase()] = key;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return map;
|
|
168
|
+
})();
|
|
169
|
+
function resolveSeverity(input) {
|
|
170
|
+
if (input == null) return null;
|
|
171
|
+
if (typeof input === "number") return SEVERITY_VALUE_MAP[input] ?? null;
|
|
172
|
+
const raw = String(input).trim();
|
|
173
|
+
if (raw === "") return null;
|
|
174
|
+
if (/^\d+$/.test(raw)) return SEVERITY_VALUE_MAP[Number(raw)] ?? null;
|
|
175
|
+
return SEVERITY_LABEL_LOOKUP[raw.toLowerCase()] ?? null;
|
|
176
|
+
}
|
|
61
177
|
var SIZE_CLASSES = {
|
|
62
178
|
sm: { badge: "h-6 text-xs px-2 gap-1.5", dot: "size-1.5" },
|
|
63
179
|
md: { badge: "h-7 text-sm px-2.5 gap-2", dot: "size-2" }
|
|
@@ -67,15 +183,17 @@ function tokenVar(status) {
|
|
|
67
183
|
}
|
|
68
184
|
var StatusBadge = React.forwardRef(
|
|
69
185
|
({ className, status, size = "md", showLabel = true, locale = "fa", animated, ...props }, ref) => {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
const
|
|
186
|
+
const resolved = resolveStatus(status);
|
|
187
|
+
if (!resolved) return null;
|
|
188
|
+
const label = statusLabels[locale]?.[resolved] ?? statusLabels.fa[resolved];
|
|
189
|
+
const shouldPulse = animated ?? resolved === "critical";
|
|
190
|
+
const token = tokenVar(resolved);
|
|
73
191
|
return /* @__PURE__ */ jsxs(
|
|
74
192
|
"span",
|
|
75
193
|
{
|
|
76
194
|
ref,
|
|
77
195
|
"data-slot": "status-badge",
|
|
78
|
-
"data-status":
|
|
196
|
+
"data-status": resolved,
|
|
79
197
|
"aria-label": showLabel ? void 0 : label,
|
|
80
198
|
className: cn(
|
|
81
199
|
"inline-flex items-center rounded-full border font-medium transition-colors duration-150",
|
|
@@ -83,9 +201,9 @@ var StatusBadge = React.forwardRef(
|
|
|
83
201
|
className
|
|
84
202
|
),
|
|
85
203
|
style: {
|
|
86
|
-
backgroundColor: `
|
|
87
|
-
borderColor: `
|
|
88
|
-
color: `
|
|
204
|
+
backgroundColor: `color-mix(in srgb, var(${token}) 10%, transparent)`,
|
|
205
|
+
borderColor: `color-mix(in srgb, var(${token}) 30%, transparent)`,
|
|
206
|
+
color: `var(${token})`
|
|
89
207
|
},
|
|
90
208
|
...props,
|
|
91
209
|
children: [
|
|
@@ -94,7 +212,7 @@ var StatusBadge = React.forwardRef(
|
|
|
94
212
|
"span",
|
|
95
213
|
{
|
|
96
214
|
className: "absolute inset-0 rounded-full animate-pulse-subtle",
|
|
97
|
-
style: { backgroundColor: `
|
|
215
|
+
style: { backgroundColor: `color-mix(in srgb, var(${token}) 50%, transparent)` },
|
|
98
216
|
"aria-hidden": "true"
|
|
99
217
|
}
|
|
100
218
|
),
|
|
@@ -102,7 +220,7 @@ var StatusBadge = React.forwardRef(
|
|
|
102
220
|
"span",
|
|
103
221
|
{
|
|
104
222
|
className: cn("relative inline-block rounded-full", SIZE_CLASSES[size].dot),
|
|
105
|
-
style: { backgroundColor: `
|
|
223
|
+
style: { backgroundColor: `var(${token})` },
|
|
106
224
|
"aria-hidden": "true"
|
|
107
225
|
}
|
|
108
226
|
)
|
|
@@ -129,25 +247,27 @@ function tokenVar2(severity) {
|
|
|
129
247
|
}
|
|
130
248
|
var SeverityBadge = React.forwardRef(
|
|
131
249
|
({ className, severity, size = "md", showLabel = true, variant = "soft", locale = "fa", ...props }, ref) => {
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
const
|
|
250
|
+
const resolved = resolveSeverity(severity);
|
|
251
|
+
if (!resolved) return null;
|
|
252
|
+
const label = severityLabels[locale]?.[resolved] ?? severityLabels.fa[resolved];
|
|
253
|
+
const Icon = SEVERITY_ICON[resolved];
|
|
254
|
+
const token = tokenVar2(resolved);
|
|
135
255
|
const softStyle = {
|
|
136
|
-
backgroundColor: `
|
|
137
|
-
borderColor: `
|
|
138
|
-
color: `
|
|
256
|
+
backgroundColor: `color-mix(in srgb, var(${token}) 10%, transparent)`,
|
|
257
|
+
borderColor: `color-mix(in srgb, var(${token}) 30%, transparent)`,
|
|
258
|
+
color: `var(${token})`
|
|
139
259
|
};
|
|
140
260
|
const solidStyle = {
|
|
141
|
-
backgroundColor: `
|
|
142
|
-
borderColor: `
|
|
143
|
-
color: "
|
|
261
|
+
backgroundColor: `var(${token})`,
|
|
262
|
+
borderColor: `var(${token})`,
|
|
263
|
+
color: "var(--foreground-contrast)"
|
|
144
264
|
};
|
|
145
265
|
return /* @__PURE__ */ jsxs(
|
|
146
266
|
"span",
|
|
147
267
|
{
|
|
148
268
|
ref,
|
|
149
269
|
"data-slot": "severity-badge",
|
|
150
|
-
"data-severity":
|
|
270
|
+
"data-severity": resolved,
|
|
151
271
|
"data-variant": variant,
|
|
152
272
|
"aria-label": showLabel ? void 0 : label,
|
|
153
273
|
className: cn(
|
|
@@ -219,7 +339,7 @@ var FlowDistribution = React.forwardRef(
|
|
|
219
339
|
"div",
|
|
220
340
|
{
|
|
221
341
|
className: "transition-all duration-500",
|
|
222
|
-
style: { width: `${percents[k]}%`, backgroundColor: `
|
|
342
|
+
style: { width: `${percents[k]}%`, backgroundColor: `var(${tokenVar3(k)})` }
|
|
223
343
|
},
|
|
224
344
|
k
|
|
225
345
|
)) }),
|
|
@@ -228,11 +348,11 @@ var FlowDistribution = React.forwardRef(
|
|
|
228
348
|
"span",
|
|
229
349
|
{
|
|
230
350
|
className: "inline-block h-2 w-2 rounded-full",
|
|
231
|
-
style: { backgroundColor: `
|
|
351
|
+
style: { backgroundColor: `var(${tokenVar3(k)})` }
|
|
232
352
|
}
|
|
233
353
|
),
|
|
234
354
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-foreground-light", children: labels[k] }),
|
|
235
|
-
showPercent && /* @__PURE__ */ jsxs("span", { className: "text-xs font-medium tabular-nums", style: { color: `
|
|
355
|
+
showPercent && /* @__PURE__ */ jsxs("span", { className: "text-xs font-medium tabular-nums", style: { color: `var(${tokenVar3(k)})` }, children: [
|
|
236
356
|
convertToLocalNumbers(percents[k], locale),
|
|
237
357
|
percentSign
|
|
238
358
|
] }),
|
|
@@ -258,8 +378,8 @@ var FlowDistribution = React.forwardRef(
|
|
|
258
378
|
{
|
|
259
379
|
className: "inline-flex items-center gap-1 rounded-full px-2 py-0.5",
|
|
260
380
|
style: {
|
|
261
|
-
backgroundColor: `
|
|
262
|
-
color: `
|
|
381
|
+
backgroundColor: `color-mix(in srgb, var(${tokenVar3(k)}) 12%, transparent)`,
|
|
382
|
+
color: `var(${tokenVar3(k)})`
|
|
263
383
|
},
|
|
264
384
|
children: [
|
|
265
385
|
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: labels[k] }),
|
|
@@ -288,7 +408,7 @@ var FlowDistribution = React.forwardRef(
|
|
|
288
408
|
className: "absolute inset-y-0 start-0 rounded-full transition-all duration-500",
|
|
289
409
|
style: {
|
|
290
410
|
width: `${percents[k]}%`,
|
|
291
|
-
backgroundColor: `
|
|
411
|
+
backgroundColor: `var(${tokenVar3(k)})`
|
|
292
412
|
},
|
|
293
413
|
role: "progressbar",
|
|
294
414
|
"aria-valuenow": percents[k],
|
|
@@ -301,7 +421,7 @@ var FlowDistribution = React.forwardRef(
|
|
|
301
421
|
"span",
|
|
302
422
|
{
|
|
303
423
|
className: "w-12 shrink-0 text-xs font-medium tabular-nums text-start",
|
|
304
|
-
style: { color: `
|
|
424
|
+
style: { color: `var(${tokenVar3(k)})` },
|
|
305
425
|
children: showCounts ? convertToLocalNumbers((data[k] ?? 0).toLocaleString(), locale) : `${convertToLocalNumbers(percents[k], locale)}${percentSign}`
|
|
306
426
|
}
|
|
307
427
|
)
|
|
@@ -316,24 +436,24 @@ var LABELS = {
|
|
|
316
436
|
};
|
|
317
437
|
var SENTIMENT_STYLES = {
|
|
318
438
|
positive: {
|
|
319
|
-
bar: "bg-[
|
|
320
|
-
text: "text-[
|
|
321
|
-
bg: "bg-[
|
|
439
|
+
bar: "bg-[var(--sentiment-positive)]",
|
|
440
|
+
text: "text-[var(--sentiment-positive)]",
|
|
441
|
+
bg: "bg-[color-mix(in_srgb,var(--sentiment-positive)_12%,transparent)]"
|
|
322
442
|
},
|
|
323
443
|
negative: {
|
|
324
|
-
bar: "bg-[
|
|
325
|
-
text: "text-[
|
|
326
|
-
bg: "bg-[
|
|
444
|
+
bar: "bg-[var(--sentiment-negative)]",
|
|
445
|
+
text: "text-[var(--sentiment-negative)]",
|
|
446
|
+
bg: "bg-[color-mix(in_srgb,var(--sentiment-negative)_12%,transparent)]"
|
|
327
447
|
},
|
|
328
448
|
neutral: {
|
|
329
|
-
bar: "bg-[
|
|
330
|
-
text: "text-[
|
|
331
|
-
bg: "bg-[
|
|
449
|
+
bar: "bg-[var(--sentiment-neutral)]",
|
|
450
|
+
text: "text-[var(--sentiment-neutral)]",
|
|
451
|
+
bg: "bg-[color-mix(in_srgb,var(--sentiment-neutral)_12%,transparent)]"
|
|
332
452
|
},
|
|
333
453
|
mixed: {
|
|
334
|
-
bar: "bg-[
|
|
335
|
-
text: "text-[
|
|
336
|
-
bg: "bg-[
|
|
454
|
+
bar: "bg-[var(--sentiment-mixed)]",
|
|
455
|
+
text: "text-[var(--sentiment-mixed)]",
|
|
456
|
+
bg: "bg-[color-mix(in_srgb,var(--sentiment-mixed)_12%,transparent)]"
|
|
337
457
|
}
|
|
338
458
|
};
|
|
339
459
|
function calcPercents2(data) {
|
|
@@ -463,9 +583,9 @@ var SentimentDistribution = React.forwardRef(
|
|
|
463
583
|
);
|
|
464
584
|
SentimentDistribution.displayName = "SentimentDistribution";
|
|
465
585
|
var TREND_CLASSES = {
|
|
466
|
-
up: "text-[
|
|
467
|
-
down: "text-[
|
|
468
|
-
neutral: "text-[
|
|
586
|
+
up: "text-[var(--sentiment-positive)]",
|
|
587
|
+
down: "text-[var(--sentiment-negative)]",
|
|
588
|
+
neutral: "text-[var(--sentiment-neutral)]"
|
|
469
589
|
};
|
|
470
590
|
function resolveTrend(data, trend) {
|
|
471
591
|
if (trend !== "auto") return trend;
|
|
@@ -708,5 +828,3 @@ var ConceptCard = React.forwardRef(
|
|
|
708
828
|
ConceptCard.displayName = "ConceptCard";
|
|
709
829
|
|
|
710
830
|
export { ConceptCard };
|
|
711
|
-
//# sourceMappingURL=concept-card.js.map
|
|
712
|
-
//# sourceMappingURL=concept-card.js.map
|
|
@@ -46,6 +46,134 @@ function convertToLocalNumbers(text, locale) {
|
|
|
46
46
|
function isRTL(locale) {
|
|
47
47
|
return locale === "fa" || locale === "ar";
|
|
48
48
|
}
|
|
49
|
+
var EMOTION_KEYS = [
|
|
50
|
+
"anger",
|
|
51
|
+
"anticipation",
|
|
52
|
+
"joy",
|
|
53
|
+
"trust",
|
|
54
|
+
"fear",
|
|
55
|
+
"surprise",
|
|
56
|
+
"sadness",
|
|
57
|
+
"disgust",
|
|
58
|
+
"neutral"
|
|
59
|
+
];
|
|
60
|
+
var emotionLabels = {
|
|
61
|
+
fa: {
|
|
62
|
+
anger: "\u062E\u0634\u0645",
|
|
63
|
+
anticipation: "\u0627\u0646\u062A\u0638\u0627\u0631",
|
|
64
|
+
joy: "\u0634\u0627\u062F\u06CC",
|
|
65
|
+
trust: "\u0627\u0639\u062A\u0645\u0627\u062F",
|
|
66
|
+
fear: "\u062A\u0631\u0633",
|
|
67
|
+
surprise: "\u0634\u06AF\u0641\u062A\u06CC",
|
|
68
|
+
sadness: "\u063A\u0645",
|
|
69
|
+
disgust: "\u0627\u0646\u0632\u062C\u0627\u0631",
|
|
70
|
+
neutral: "\u062E\u0646\u062B\u06CC"
|
|
71
|
+
},
|
|
72
|
+
ar: {
|
|
73
|
+
anger: "\u063A\u0636\u0628",
|
|
74
|
+
anticipation: "\u062A\u0631\u0642\u0651\u0628",
|
|
75
|
+
joy: "\u0641\u0631\u062D",
|
|
76
|
+
trust: "\u062B\u0642\u0629",
|
|
77
|
+
fear: "\u062E\u0648\u0641",
|
|
78
|
+
surprise: "\u062F\u0647\u0634\u0629",
|
|
79
|
+
sadness: "\u062D\u0632\u0646",
|
|
80
|
+
disgust: "\u0627\u0634\u0645\u0626\u0632\u0627\u0632",
|
|
81
|
+
neutral: "\u0645\u062D\u0627\u064A\u062F"
|
|
82
|
+
},
|
|
83
|
+
en: {
|
|
84
|
+
anger: "Anger",
|
|
85
|
+
anticipation: "Anticipation",
|
|
86
|
+
joy: "Joy",
|
|
87
|
+
trust: "Trust",
|
|
88
|
+
fear: "Fear",
|
|
89
|
+
surprise: "Surprise",
|
|
90
|
+
sadness: "Sadness",
|
|
91
|
+
disgust: "Disgust",
|
|
92
|
+
neutral: "Neutral"
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
(() => {
|
|
96
|
+
const map = {};
|
|
97
|
+
for (const key of EMOTION_KEYS) map[key] = key;
|
|
98
|
+
for (const locale of Object.keys(emotionLabels)) {
|
|
99
|
+
for (const key of EMOTION_KEYS) {
|
|
100
|
+
map[emotionLabels[locale][key].toLowerCase()] = key;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return map;
|
|
104
|
+
})();
|
|
105
|
+
var FLOW_KEYS = [
|
|
106
|
+
"pro-gov",
|
|
107
|
+
"internal-critic",
|
|
108
|
+
"internal-opponent",
|
|
109
|
+
"external-opponent",
|
|
110
|
+
"grey"
|
|
111
|
+
];
|
|
112
|
+
var flowLabels = {
|
|
113
|
+
fa: {
|
|
114
|
+
"pro-gov": "\u062D\u0627\u0645\u06CC\u0627\u0646 \u062D\u06A9\u0648\u0645\u062A",
|
|
115
|
+
"internal-critic": "\u0645\u0646\u062A\u0642\u062F\u0627\u0646 \u062F\u0627\u062E\u0644\u06CC",
|
|
116
|
+
"internal-opponent": "\u0645\u062E\u0627\u0644\u0641\u0627\u0646 \u062F\u0627\u062E\u0644\u06CC",
|
|
117
|
+
"external-opponent": "\u0645\u062E\u0627\u0644\u0641\u0627\u0646 \u062E\u0627\u0631\u062C\u06CC",
|
|
118
|
+
grey: "\u0642\u0634\u0631 \u062E\u0627\u06A9\u0633\u062A\u0631\u06CC"
|
|
119
|
+
},
|
|
120
|
+
ar: {
|
|
121
|
+
"pro-gov": "\u0645\u0624\u064A\u062F\u0648 \u0627\u0644\u062D\u0643\u0648\u0645\u0629",
|
|
122
|
+
"internal-critic": "\u0645\u0646\u062A\u0642\u062F\u0648\u0646 \u062F\u0627\u062E\u0644\u064A\u0648\u0646",
|
|
123
|
+
"internal-opponent": "\u0645\u0639\u0627\u0631\u0636\u0648\u0646 \u062F\u0627\u062E\u0644\u064A\u0648\u0646",
|
|
124
|
+
"external-opponent": "\u0645\u0639\u0627\u0631\u0636\u0648\u0646 \u062E\u0627\u0631\u062C\u064A\u0648\u0646",
|
|
125
|
+
grey: "\u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0631\u0645\u0627\u062F\u064A\u0629"
|
|
126
|
+
},
|
|
127
|
+
en: {
|
|
128
|
+
"pro-gov": "Pro-Government",
|
|
129
|
+
"internal-critic": "Internal Critic",
|
|
130
|
+
"internal-opponent": "Internal Opponent",
|
|
131
|
+
"external-opponent": "External Opponent",
|
|
132
|
+
grey: "Grey"
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
(() => {
|
|
136
|
+
const map = {};
|
|
137
|
+
for (const key of FLOW_KEYS) map[key] = key;
|
|
138
|
+
for (const locale of Object.keys(flowLabels)) {
|
|
139
|
+
for (const key of FLOW_KEYS) {
|
|
140
|
+
map[flowLabels[locale][key].toLowerCase()] = key;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return map;
|
|
144
|
+
})();
|
|
145
|
+
var STATUS_KEYS = ["critical", "warning", "middle", "low"];
|
|
146
|
+
var statusLabels = {
|
|
147
|
+
fa: { critical: "\u0628\u062D\u0631\u0627\u0646\u06CC", warning: "\u0647\u0634\u062F\u0627\u0631", middle: "\u0645\u062A\u0648\u0633\u0637", low: "\u067E\u0627\u06CC\u06CC\u0646" },
|
|
148
|
+
ar: { critical: "\u062D\u0631\u062C", warning: "\u062A\u062D\u0630\u064A\u0631", middle: "\u0645\u062A\u0648\u0633\u0637", low: "\u0645\u0646\u062E\u0641\u0636" },
|
|
149
|
+
en: { critical: "Critical", warning: "Warning", middle: "Middle", low: "Low" }
|
|
150
|
+
};
|
|
151
|
+
(() => {
|
|
152
|
+
const map = { normal: "low" };
|
|
153
|
+
for (const key of STATUS_KEYS) map[key] = key;
|
|
154
|
+
for (const locale of Object.keys(statusLabels)) {
|
|
155
|
+
for (const key of STATUS_KEYS) {
|
|
156
|
+
map[statusLabels[locale][key].toLowerCase()] = key;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return map;
|
|
160
|
+
})();
|
|
161
|
+
var SEVERITY_KEYS = ["urgent", "high", "medium", "low"];
|
|
162
|
+
var severityLabels = {
|
|
163
|
+
fa: { urgent: "\u0641\u0648\u0631\u06CC", high: "\u0628\u0627\u0644\u0627", medium: "\u0645\u062A\u0648\u0633\u0637", low: "\u067E\u0627\u06CC\u06CC\u0646" },
|
|
164
|
+
ar: { urgent: "\u0639\u0627\u062C\u0644", high: "\u0645\u0631\u062A\u0641\u0639", medium: "\u0645\u062A\u0648\u0633\u0637", low: "\u0645\u0646\u062E\u0641\u0636" },
|
|
165
|
+
en: { urgent: "Urgent", high: "High", medium: "Medium", low: "Low" }
|
|
166
|
+
};
|
|
167
|
+
(() => {
|
|
168
|
+
const map = {};
|
|
169
|
+
for (const key of SEVERITY_KEYS) map[key] = key;
|
|
170
|
+
for (const locale of Object.keys(severityLabels)) {
|
|
171
|
+
for (const key of SEVERITY_KEYS) {
|
|
172
|
+
map[severityLabels[locale][key].toLowerCase()] = key;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return map;
|
|
176
|
+
})();
|
|
49
177
|
var UI_STRINGS = {
|
|
50
178
|
fa: {
|
|
51
179
|
// Autocomplete
|
|
@@ -1390,7 +1518,7 @@ function DataTableInner({
|
|
|
1390
1518
|
"span",
|
|
1391
1519
|
{
|
|
1392
1520
|
"data-slot": "data-table-sort-priority",
|
|
1393
|
-
className: "inline-flex h-4 min-w-4 items-center justify-center rounded bg-overlay-
|
|
1521
|
+
className: "inline-flex h-4 min-w-4 items-center justify-center rounded bg-overlay-hover px-1 text-[10px] font-medium tabular-nums text-foreground-light",
|
|
1394
1522
|
"aria-label": `\u0627\u0648\u0644\u0648\u06CC\u062A \u0645\u0631\u062A\u0628\u200C\u0633\u0627\u0632\u06CC ${priority}`,
|
|
1395
1523
|
children: priority
|
|
1396
1524
|
}
|
|
@@ -1557,5 +1685,3 @@ var DataTable = React6__namespace.forwardRef(DataTableInner);
|
|
|
1557
1685
|
DataTable.displayName = "DataTable";
|
|
1558
1686
|
|
|
1559
1687
|
exports.DataTable = DataTable;
|
|
1560
|
-
//# sourceMappingURL=data-table.cjs.map
|
|
1561
|
-
//# sourceMappingURL=data-table.cjs.map
|