mountain-ui 1.0.131 → 1.0.133
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 +1 -1
- package/src/lib/registry/fieldTypeRegistry/createFieldType.js +3 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListCheckbox/index.js +38 -22
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListRadio/index.js +15 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeCreatedAt/index.js +26 -22
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDate/index.js +27 -22
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDatetime/index.js +27 -23
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonthOfYear/index.js +26 -22
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeUpdatedAt/index.js +26 -22
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.133",
|
|
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",
|
|
@@ -8,34 +8,50 @@ import TableView from './TableView.svelte';
|
|
|
8
8
|
import View from './View.svelte';
|
|
9
9
|
|
|
10
10
|
export default createFieldType({
|
|
11
|
-
|
|
11
|
+
type: 'list-checkbox',
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
category_path: 'list',
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
label: 'Case à cocher',
|
|
16
|
+
description: 'Sélection multiple à l’aide de cases à cocher.',
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
is_hidden: false,
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
defaultProps: {},
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
can_be_required: true,
|
|
23
|
+
can_be_unique: true,
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
components: {
|
|
26
|
+
icon: Icon,
|
|
27
|
+
button: Button,
|
|
28
|
+
card: Card,
|
|
29
|
+
input: Input,
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
32
|
+
filter: null,
|
|
33
|
+
properties: null
|
|
34
|
+
},
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
tableAttributes: (props) => {
|
|
37
|
+
let data = {
|
|
38
|
+
searchChoices: []
|
|
39
|
+
}
|
|
40
|
+
for (const choice of props.choices) {
|
|
41
|
+
data.searchChoices.push({
|
|
42
|
+
value: choice.value,
|
|
43
|
+
label: choice.value,
|
|
44
|
+
})
|
|
45
|
+
}
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
return data
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
allowBindings: ["list-checkbox"],
|
|
53
|
+
formatter: (value) => value,
|
|
54
|
+
parser: (value) => value,
|
|
55
|
+
|
|
56
|
+
validate: () => true
|
|
41
57
|
});
|
|
@@ -40,6 +40,21 @@ export default createFieldType({
|
|
|
40
40
|
properties: null
|
|
41
41
|
},
|
|
42
42
|
|
|
43
|
+
tableAttributes: (props) => {
|
|
44
|
+
let data = {
|
|
45
|
+
searchChoices: []
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
for (const choice of props.choices) {
|
|
49
|
+
data.searchChoices.push({
|
|
50
|
+
value: choice.value,
|
|
51
|
+
label: choice.value,
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return data
|
|
56
|
+
},
|
|
57
|
+
|
|
43
58
|
allowBindings:["text", "list-radio"],
|
|
44
59
|
formatter: (value) => value,
|
|
45
60
|
parser: (value) => value,
|
|
@@ -7,34 +7,38 @@ import TableView from './TableView.svelte';
|
|
|
7
7
|
import View from './View.svelte';
|
|
8
8
|
|
|
9
9
|
export default createFieldType({
|
|
10
|
-
|
|
10
|
+
type: 'time-created_at',
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
category_path: 'time',
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
label: 'Créé le',
|
|
15
|
+
description: 'Horodatage de création automatique.',
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
is_hidden: false,
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
defaultProps: {},
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
can_be_required: false,
|
|
22
|
+
can_be_unique: false,
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
components: {
|
|
25
|
+
icon: Icon,
|
|
26
|
+
button: Button,
|
|
27
|
+
card: Card,
|
|
28
|
+
input: null,
|
|
29
|
+
tableView: TableView,
|
|
30
|
+
view: View,
|
|
31
|
+
filter: null,
|
|
32
|
+
properties: null
|
|
33
|
+
},
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
tableAttributes: {
|
|
36
|
+
datePicker: true
|
|
37
|
+
},
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
allowBindings: ["time-datetime"],
|
|
40
|
+
formatter: (value) => value,
|
|
41
|
+
parser: (value) => value,
|
|
42
|
+
|
|
43
|
+
validate: () => true
|
|
40
44
|
});
|
|
@@ -8,34 +8,39 @@ import TableView from './TableView.svelte';
|
|
|
8
8
|
import View from './View.svelte';
|
|
9
9
|
|
|
10
10
|
export default createFieldType({
|
|
11
|
-
|
|
11
|
+
type: 'time-date',
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
category_path: 'time',
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
label: 'Date',
|
|
16
|
+
description: 'Date simple (jour, mois, année).',
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
is_hidden: false,
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
defaultProps: {},
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
can_be_required: true,
|
|
23
|
+
can_be_unique: true,
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
allowBindings:["time-date"],
|
|
25
|
+
components: {
|
|
26
|
+
icon: Icon,
|
|
27
|
+
button: Button,
|
|
28
|
+
card: Card,
|
|
29
|
+
input: Input,
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
32
|
+
filter: null,
|
|
33
|
+
properties: null
|
|
34
|
+
},
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
tableAttributes: {
|
|
37
|
+
datePicker: true
|
|
38
|
+
},
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
allowBindings: ["time-date"],
|
|
41
|
+
|
|
42
|
+
formatter: (value) => value,
|
|
43
|
+
parser: (value) => value,
|
|
44
|
+
|
|
45
|
+
validate: () => true
|
|
41
46
|
});
|
|
@@ -8,34 +8,38 @@ import TableView from './TableView.svelte';
|
|
|
8
8
|
import View from './View.svelte';
|
|
9
9
|
|
|
10
10
|
export default createFieldType({
|
|
11
|
-
|
|
11
|
+
type: 'time-datetime',
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
category_path: 'time',
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
label: 'Date et heure',
|
|
16
|
+
description: 'Date et heure combinées.',
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
is_hidden: false,
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
defaultProps: {},
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
can_be_required: true,
|
|
23
|
+
can_be_unique: true,
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
allowBindings:["time-datetime"],
|
|
37
|
-
formatter: (value) => value,
|
|
38
|
-
parser: (value) => value,
|
|
25
|
+
components: {
|
|
26
|
+
icon: Icon,
|
|
27
|
+
button: Button,
|
|
28
|
+
card: Card,
|
|
29
|
+
input: Input,
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
32
|
+
filter: null,
|
|
33
|
+
properties: null
|
|
34
|
+
},
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
tableAttributes: {
|
|
37
|
+
datePicker: true
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
allowBindings: ["time-datetime"],
|
|
41
|
+
formatter: (value) => value,
|
|
42
|
+
parser: (value) => value,
|
|
43
|
+
|
|
44
|
+
validate: () => true
|
|
41
45
|
});
|
|
@@ -8,34 +8,38 @@ import TableView from './TableView.svelte';
|
|
|
8
8
|
import View from './View.svelte';
|
|
9
9
|
|
|
10
10
|
export default createFieldType({
|
|
11
|
-
|
|
11
|
+
type: 'time-month_of_year',
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
category_path: 'time',
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
label: "Mois d'une année",
|
|
16
|
+
description: "Mois d'une année en particulier.",
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
is_hidden: false,
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
defaultProps: {},
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
can_be_required: true,
|
|
23
|
+
can_be_unique: true,
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
components: {
|
|
26
|
+
icon: Icon,
|
|
27
|
+
button: Button,
|
|
28
|
+
card: Card,
|
|
29
|
+
input: Input,
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
32
|
+
filter: null,
|
|
33
|
+
properties: null
|
|
34
|
+
},
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
tableAttributes: {
|
|
37
|
+
monthPicker: true
|
|
38
|
+
},
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
allowBindings: ["time-month_of_year"],
|
|
41
|
+
formatter: (value) => value,
|
|
42
|
+
parser: (value) => value,
|
|
43
|
+
|
|
44
|
+
validate: () => true
|
|
41
45
|
});
|
|
@@ -7,34 +7,38 @@ import TableView from './TableView.svelte';
|
|
|
7
7
|
import View from './View.svelte';
|
|
8
8
|
|
|
9
9
|
export default createFieldType({
|
|
10
|
-
|
|
10
|
+
type: 'time-updated_at',
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
category_path: 'time',
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
label: 'Mis à jour le',
|
|
15
|
+
description: 'Horodatage de la dernière mise à jour automatique.',
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
is_hidden: false,
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
defaultProps: {},
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
can_be_required: false,
|
|
22
|
+
can_be_unique: false,
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
components: {
|
|
25
|
+
icon: Icon,
|
|
26
|
+
button: Button,
|
|
27
|
+
card: Card,
|
|
28
|
+
input: null,
|
|
29
|
+
tableView: TableView,
|
|
30
|
+
view: View,
|
|
31
|
+
filter: null,
|
|
32
|
+
properties: null
|
|
33
|
+
},
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
tableAttributes: {
|
|
36
|
+
datePicker: true
|
|
37
|
+
},
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
allowBindings: ["time-datetime"],
|
|
40
|
+
formatter: (value) => value,
|
|
41
|
+
parser: (value) => value,
|
|
42
|
+
|
|
43
|
+
validate: () => true
|
|
40
44
|
});
|