@fto-consult/expo-ui 6.25.2 → 6.25.3
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 +2 -1
- package/src/components/Datagrid/Common/Common.js +155 -129
- package/src/components/Dialog/DialogContent.js +2 -2
- package/src/components/Dropdown/index.js +1 -2
- package/src/components/Label/index.js +12 -4
- package/src/components/List/hooks.js +8 -11
- package/src/components/Table/Header/CellHeader.js +0 -1
- package/src/components/Table/Row/Cell/Content.js +2 -2
- package/src/print/createPDF/index.js +20 -0
- package/src/print/formatText.js +84 -0
- package/src/print/index.js +13 -0
- package/src/print/pdf/formats/defaultFormats.js +28 -0
- package/src/print/pdf/formats/defaultPageFormat.js +1 -0
- package/src/print/pdf/formats/defaultPageOrientation.js +1 -0
- package/src/print/pdf/formats/fields.js +139 -0
- package/src/print/pdf/formats/formats.js +8 -0
- package/src/print/pdf/formats/index.js +10 -0
- package/src/print/pdf/formats/renderItem.js +8 -0
- package/src/print/pdf/index.js +2 -0
- package/src/print/pdf/paperSizes/all.js +1948 -0
- package/src/print/pdf/paperSizes/index.js +4 -0
- package/src/print/pdf/paperSizes/iso.js +493 -0
- package/src/print/qrCode.js +44 -0
- package/src/print/svg/index.js +25 -0
- package/src/print/toPdfMakeObj.js +51 -0
- package/src/print/utils.js +1840 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import formats from "./formats";
|
|
2
|
+
import {isObj,isNonNullString} from "$cutils";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
code : {
|
|
6
|
+
label : 'Code du format',
|
|
7
|
+
primaryKey : true,
|
|
8
|
+
readOnlyOnEditing : true,
|
|
9
|
+
validType : 'required',
|
|
10
|
+
maxLength : 20
|
|
11
|
+
},
|
|
12
|
+
label : {
|
|
13
|
+
text : "Intitulé du format",
|
|
14
|
+
maxLength : 40
|
|
15
|
+
},
|
|
16
|
+
users : {
|
|
17
|
+
type : "selecttabledata",
|
|
18
|
+
text : "Accessible aux utilisateurs",
|
|
19
|
+
multiple : true,
|
|
20
|
+
foreignKeyColumn : 'code',
|
|
21
|
+
foreignKeyTable : "users",
|
|
22
|
+
dbName : "users"
|
|
23
|
+
},
|
|
24
|
+
displayLogo : {
|
|
25
|
+
text : 'Afficher le logo société',
|
|
26
|
+
type : 'switch',
|
|
27
|
+
defaultValue : 1,
|
|
28
|
+
checkedTooltip : 'Oui',
|
|
29
|
+
uncheckedTooltip : 'Non',
|
|
30
|
+
},
|
|
31
|
+
displaySocialReason : {
|
|
32
|
+
text : 'Entêtes société',
|
|
33
|
+
type : 'switch',
|
|
34
|
+
checkedTooltip : 'Oui',
|
|
35
|
+
uncheckedTooltip : 'Non',
|
|
36
|
+
defaultValue : 1,
|
|
37
|
+
},
|
|
38
|
+
displayIdentifier : {
|
|
39
|
+
text : 'Afficher les ID Société',
|
|
40
|
+
type : 'switch',
|
|
41
|
+
checkedTooltip : 'Oui',
|
|
42
|
+
uncheckedTooltip : 'Non',
|
|
43
|
+
defaultValue : 0,
|
|
44
|
+
//checkedTooltip : 'Afficher les identifiants société à l\'instar du registre de commerce et bien d\'autres',
|
|
45
|
+
//uncheckedTooltip : 'Ne pas afficher les identifiants société à l\'instar du registre de commerce et bien d\'autres',
|
|
46
|
+
},
|
|
47
|
+
displayThirdPartiesIdentifier : {
|
|
48
|
+
text : 'Afficher les ID Tiers',
|
|
49
|
+
type : 'switch',
|
|
50
|
+
checkedTooltip : 'Oui',
|
|
51
|
+
uncheckedTooltip : 'Non',
|
|
52
|
+
defaultValue : 0,
|
|
53
|
+
},
|
|
54
|
+
signatories : {
|
|
55
|
+
type : 'selectstructdata',
|
|
56
|
+
table : 'signatories',
|
|
57
|
+
multiple : true,
|
|
58
|
+
text : 'Signataires',
|
|
59
|
+
},
|
|
60
|
+
signatoriesMargin : {
|
|
61
|
+
type : 'number',
|
|
62
|
+
format : 'number',
|
|
63
|
+
validType : 'number',
|
|
64
|
+
text : 'Nbrs sauts de lignes après signataires',
|
|
65
|
+
tooltip : 'Entrez le nombre de sauts de lignes à laisser sur la page après la ligne des signataires',
|
|
66
|
+
defaultValue : 3,
|
|
67
|
+
},
|
|
68
|
+
footerNote : {
|
|
69
|
+
text : 'Note de bas de page',
|
|
70
|
+
format : 'hashtag',
|
|
71
|
+
maxLength : 500,
|
|
72
|
+
},
|
|
73
|
+
footerCopyRight : {
|
|
74
|
+
text : 'Pied de page',
|
|
75
|
+
format : 'hashtag',
|
|
76
|
+
maxLength : 500,
|
|
77
|
+
},
|
|
78
|
+
pageFormat : {
|
|
79
|
+
text : 'Format de la page',
|
|
80
|
+
defaultValue : require("./defaultPageFormat").default,
|
|
81
|
+
type : 'select',
|
|
82
|
+
items : formats,
|
|
83
|
+
required : true,
|
|
84
|
+
multiple : false,
|
|
85
|
+
itemValue : ({item})=>{
|
|
86
|
+
return formats[item] || item;
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
pageWidth : {
|
|
90
|
+
text : 'Largeur de la page en pts(pt)',
|
|
91
|
+
tooltip : 'Spécifiez une valeur de la largeur de la page à imprimer, si cette valeur vaut zéro, la valeur du format de la page sera utilisée',
|
|
92
|
+
defaultValue : 0,
|
|
93
|
+
type : 'number',
|
|
94
|
+
format : 'number',
|
|
95
|
+
validType : 'decimal',
|
|
96
|
+
},
|
|
97
|
+
pageHeight : {
|
|
98
|
+
text : 'Hauteur de la page en pts(pt)',
|
|
99
|
+
tooltip : 'Spécifiez une valeur de la hauteur de la page à imprimer, si cette valeur vaut zéro, la valeur du format de la page sera utilisée',
|
|
100
|
+
defaultValue : 0,
|
|
101
|
+
type : 'number',
|
|
102
|
+
format : 'number',
|
|
103
|
+
validType : 'decimal',
|
|
104
|
+
},
|
|
105
|
+
pageOrientation : {
|
|
106
|
+
text : 'Orientation de la page',
|
|
107
|
+
type : 'select',
|
|
108
|
+
items : [{code:'portrait',label:'Portrait'},{code:'landscape',label:'Paysage'}],
|
|
109
|
+
defaultValue : require("./defaultPageOrientation"),
|
|
110
|
+
required : true,
|
|
111
|
+
},
|
|
112
|
+
leftMargin : {
|
|
113
|
+
type : 'number',
|
|
114
|
+
format : 'number',
|
|
115
|
+
validType : 'number',
|
|
116
|
+
text : 'Marge [Gauche]',
|
|
117
|
+
defaultValue : 20
|
|
118
|
+
},
|
|
119
|
+
topMargin : {
|
|
120
|
+
type : 'number',
|
|
121
|
+
format : 'number',
|
|
122
|
+
validType : 'number',
|
|
123
|
+
text : 'Marge [Haut]',
|
|
124
|
+
defaultValue : 20,
|
|
125
|
+
},
|
|
126
|
+
rightMargin : {
|
|
127
|
+
type : 'number',
|
|
128
|
+
text : 'Marge [Droite]',
|
|
129
|
+
validType : 'number',
|
|
130
|
+
defaultValue : 20
|
|
131
|
+
},
|
|
132
|
+
bottomMargin : {
|
|
133
|
+
type : 'number',
|
|
134
|
+
format : 'number',
|
|
135
|
+
validType : 'number',
|
|
136
|
+
text : 'Marge [Bas]',
|
|
137
|
+
defaultValue : 30
|
|
138
|
+
},
|
|
139
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10','4A0', '2A0', 'A0', 'A1', 'A2', 'A3',
|
|
3
|
+
'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10',
|
|
4
|
+
'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9', 'C10',
|
|
5
|
+
'RA0', 'RA1', 'RA2', 'RA3', 'RA4',
|
|
6
|
+
'SRA0', 'SRA1', 'SRA2', 'SRA3', 'SRA4',
|
|
7
|
+
'EXECUTIVE', 'FOLIO', 'LEGAL', 'LETTER', 'TABLOID'
|
|
8
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
let renderItem = require("./renderItem")
|
|
2
|
+
|
|
3
|
+
export {default as renderItem} from "./renderItem";
|
|
4
|
+
export {default as formats} from "./formats";
|
|
5
|
+
export {default as fields} from "./fields";
|
|
6
|
+
export {default as defaultFormat} from "./defaultFormat";
|
|
7
|
+
export {default as defaultFormats} from "./defaultFormats";
|
|
8
|
+
export {default as pageFormats} from "./defaultFormats";
|
|
9
|
+
export {default as defaultPageOrientation} from "./defaultPageOrientation";
|
|
10
|
+
export {default as defaultPageFormat} from "./defaultPageFormat";
|