mountain-ui 1.0.146 → 1.0.148
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountain-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.148",
|
|
5
5
|
"description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "index.js",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"vitest-browser-svelte": "^2.1.1"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"hamzus-ui": "^0.0.
|
|
79
|
+
"hamzus-ui": "^0.0.264"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=18.0.0"
|
|
@@ -3,7 +3,35 @@
|
|
|
3
3
|
|
|
4
4
|
let { value } = $props();
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const MODES = {
|
|
7
|
+
daily: 'journalier',
|
|
8
|
+
weekly: 'hebdomadaire',
|
|
9
|
+
monthly: 'mensuel',
|
|
10
|
+
quarterly: 'trimestriel',
|
|
11
|
+
semiannually: 'semestriel',
|
|
12
|
+
annually: 'annuel'
|
|
13
|
+
};
|
|
14
|
+
const DAYS = {
|
|
15
|
+
monday: 'lundi',
|
|
16
|
+
tuesday: 'mardi',
|
|
17
|
+
wednesday: 'mercredi',
|
|
18
|
+
thursday: 'jeudi',
|
|
19
|
+
friday: 'vendredi',
|
|
20
|
+
saturday: 'samedi',
|
|
21
|
+
sunday: 'dimanche'
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const ALLOWED_BUSINESS_TYPES = ['quarterly', 'semiannually', 'annually'];
|
|
25
|
+
|
|
26
|
+
function getText(value) {
|
|
27
|
+
if (value === "") {
|
|
28
|
+
return "-"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
let decodedValue = JSON.parse(value)
|
|
32
|
+
|
|
33
|
+
const {frequencyType, weekDays, monthDay, firstBusinessDay} = decodedValue
|
|
34
|
+
|
|
7
35
|
let text = MODES[frequencyType];
|
|
8
36
|
|
|
9
37
|
if (frequencyType === 'weekly') {
|
|
@@ -5,7 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
let { value, compact, unique, secret, label, required } = $props();
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const MODES = {
|
|
9
|
+
daily: 'journalier',
|
|
10
|
+
weekly: 'hebdomadaire',
|
|
11
|
+
monthly: 'mensuel',
|
|
12
|
+
quarterly: 'trimestriel',
|
|
13
|
+
semiannually: 'semestriel',
|
|
14
|
+
annually: 'annuel'
|
|
15
|
+
};
|
|
16
|
+
const DAYS = {
|
|
17
|
+
monday: 'lundi',
|
|
18
|
+
tuesday: 'mardi',
|
|
19
|
+
wednesday: 'mercredi',
|
|
20
|
+
thursday: 'jeudi',
|
|
21
|
+
friday: 'vendredi',
|
|
22
|
+
saturday: 'samedi',
|
|
23
|
+
sunday: 'dimanche'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const ALLOWED_BUSINESS_TYPES = ['quarterly', 'semiannually', 'annually'];
|
|
27
|
+
|
|
28
|
+
function getText(value) {
|
|
29
|
+
if (value === "") {
|
|
30
|
+
return "-"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let decodedValue = JSON.parse(value)
|
|
34
|
+
|
|
35
|
+
const {frequencyType, weekDays, monthDay, firstBusinessDay} = decodedValue
|
|
36
|
+
|
|
9
37
|
let text = MODES[frequencyType];
|
|
10
38
|
|
|
11
39
|
if (frequencyType === 'weekly') {
|