yukit-web 0.8.6 → 0.8.8
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/fesm2022/yukit-web.mjs
CHANGED
|
@@ -4843,11 +4843,15 @@ function buildYuwActionsColumn(label, onEdit, cellClass = 'w-12', header = '') {
|
|
|
4843
4843
|
const YUW_TABLE_SHARE_FORMATS = ['copy', 'print', 'pdf', 'excel', 'csv'];
|
|
4844
4844
|
|
|
4845
4845
|
const UNSAFE_FILE_NAME_CHARACTERS = /[\\/:*?"<>|]+/g;
|
|
4846
|
-
const PRINT_STYLE = 'body{font-family:system-ui,sans-serif;font-size:
|
|
4847
|
-
'
|
|
4848
|
-
'
|
|
4849
|
-
'
|
|
4850
|
-
'.header
|
|
4846
|
+
const PRINT_STYLE = 'body{font-family:system-ui,sans-serif;font-size:9px;margin:8px 0}' +
|
|
4847
|
+
'table{width:100%;border-collapse:collapse;font-size:9px}' +
|
|
4848
|
+
'th,td{border:0;border-bottom:1px solid #eee;padding:3px 4px;text-align:left}' +
|
|
4849
|
+
'th{background:#f7f7f7;border-bottom-color:#ddd;font-weight:600}' +
|
|
4850
|
+
'.header{display:grid;grid-template-columns:1fr 3fr 1fr;gap:16px;padding:0 12px;margin-bottom:12px;line-height:1.35}' +
|
|
4851
|
+
'.header p{margin:0;white-space:pre-line}.header strong{font-weight:600}' +
|
|
4852
|
+
'.header>div:nth-child(3){justify-self:end}' +
|
|
4853
|
+
'.header>div:nth-child(2)>p:first-of-type{font-size:16px;font-weight:600;line-height:1.2;margin-bottom:6px}' +
|
|
4854
|
+
'.header img{display:block;max-width:90px;max-height:36px;margin-bottom:4px}';
|
|
4851
4855
|
function fileName({ title }, extension) {
|
|
4852
4856
|
const base = title?.replace(UNSAFE_FILE_NAME_CHARACTERS, ' ').trim() || 'export';
|
|
4853
4857
|
return `${base} ${new Date().toISOString().slice(0, 10)}.${extension}`;
|