@ticatec/uniface-element 0.1.24 → 0.1.31
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/dist/accordion/Accordion.svelte +9 -1
- package/dist/accordion/AccordionItemView.svelte +14 -4
- package/dist/accordion/AccordionItemView.svelte.d.ts +1 -0
- package/dist/app-top-bar/AppTopBar.svelte +9 -13
- package/dist/app-top-bar/AppTopBar.svelte.d.ts +1 -1
- package/dist/breadcrumbs/Breadcrumb.d.ts +4 -0
- package/dist/breadcrumbs/Breadcrumbs.svelte +21 -0
- package/dist/breadcrumbs/Breadcrumbs.svelte.d.ts +24 -0
- package/dist/breadcrumbs/index.d.ts +4 -0
- package/dist/breadcrumbs/index.js +2 -0
- package/dist/button/Button.svelte +2 -2
- package/dist/card/Card.svelte +3 -1
- package/dist/card/Card.svelte.d.ts +1 -0
- package/dist/card/CommonCardActionBar.svelte +4 -2
- package/dist/card/CommonCardActionBar.svelte.d.ts +1 -0
- package/dist/color-picker/ColorPicker.svelte +59 -0
- package/dist/color-picker/ColorPicker.svelte.d.ts +29 -0
- package/dist/color-picker/ColorPickerPanel.svelte +179 -0
- package/dist/color-picker/ColorPickerPanel.svelte.d.ts +23 -0
- package/dist/color-picker/index.d.ts +2 -0
- package/dist/color-picker/index.js +2 -0
- package/dist/common/CommonPicker.svelte +6 -3
- package/dist/common/Popover.svelte +9 -2
- package/dist/common-editor/CommonEditor.svelte +8 -7
- package/dist/common-range-editor/CommonRangeEditor.svelte +1 -5
- package/dist/data-table/DataTable.svelte +2 -1
- package/dist/data-table/DataTable.svelte.d.ts +1 -0
- package/dist/data-table/lib/ActionsColumn.d.ts +4 -0
- package/dist/data-table/parts/ActionsPanel.svelte +1 -1
- package/dist/data-table/parts/ActionsRow.svelte +4 -3
- package/dist/data-table/parts/ActionsRow.svelte.d.ts +1 -0
- package/dist/date-picker/DatePicker.svelte +2 -2
- package/dist/date-picker/DateTimePicker.svelte +1 -1
- package/dist/date-range/DateRangeEditor.svelte +1 -1
- package/dist/drawer/Drawer.svelte +9 -17
- package/dist/drawer/Drawer.svelte.d.ts +3 -7
- package/dist/i18n_resources/uniface_cn_resource.d.ts +1 -0
- package/dist/i18n_resources/uniface_cn_resource.js +2 -1
- package/dist/i18n_resources/uniface_en_resource.d.ts +2 -0
- package/dist/i18n_resources/uniface_en_resource.js +3 -1
- package/dist/memo-editor/MemoEditor.svelte +1 -1
- package/dist/nav-menu/MenuItem.d.ts +1 -1
- package/dist/options-multi-select/OptionsMultiSelect.svelte +1 -1
- package/dist/options-select/OptionsSelect.svelte +2 -2
- package/dist/prompts-text-editor/PromptsTextEditor.svelte +9 -9
- package/dist/tabs/Tabs.svelte +2 -2
- package/dist/tag/Tag.svelte +1 -1
- package/dist/ticatec-uniface-web.css +178 -93
- package/dist/unit-number-editor/UnitNumberEditor.svelte +6 -5
- package/package.json +6 -2
- package/dist/data-table/lib/AdvColumn.d.ts +0 -36
- /package/dist/{data-table/lib/AdvColumn.js → breadcrumbs/Breadcrumb.js} +0 -0
|
@@ -44,38 +44,6 @@
|
|
|
44
44
|
--uniface-button-common-reverse-color: #ffffff;
|
|
45
45
|
--uniface-button-plain-disabled-color: #B3BCCA;
|
|
46
46
|
--uniface-text-button-plain-hover-color: #374151B0;
|
|
47
|
-
--uniface-button-plain-background-color: #f0f0f0;
|
|
48
|
-
--uniface-button-plain-border-color: #f0f0f0;
|
|
49
|
-
--uniface-button-plain-text-color: #374151;
|
|
50
|
-
--uniface-button-plain-hover-color: #f0f0f0B0;
|
|
51
|
-
--uniface-button-plainy-active-color: #f0f0f0;
|
|
52
|
-
--uniface-button-primary-background-color: #42A5F5;
|
|
53
|
-
--uniface-button-primary-border-color: #42B5DB;
|
|
54
|
-
--uniface-button-primary-text-color: #ffffff;
|
|
55
|
-
--uniface-button-primary-hover-color: #42A5F5B0;
|
|
56
|
-
--uniface-button-primary-active-color: #42A5F5;
|
|
57
|
-
--uniface-text-button-primary-hover-color: #42A5F5B0;
|
|
58
|
-
--uniface-button-secondary-background-color: #FF685B;
|
|
59
|
-
--uniface-button-secondary-border-color: #FF7875;
|
|
60
|
-
--uniface-button-secondary-text-color: #ffffff;
|
|
61
|
-
--uniface-button-secondary-hover-color: #FF685BB0;
|
|
62
|
-
--uniface-button-secondary-active-color: #FF4D4F;
|
|
63
|
-
--uniface-text-button-secondary-hover-color: #D32F2FB0;
|
|
64
|
-
--uniface-button-third-background-color: #2DC071;
|
|
65
|
-
--uniface-button-third-border-color: #2DD08B;
|
|
66
|
-
--uniface-button-third-text-color: #ffffff;
|
|
67
|
-
--uniface-button-third-hover-color: #2DD057B0;
|
|
68
|
-
--uniface-button-third-active-color: #2DC071;
|
|
69
|
-
--uniface-text-button-third-hover-color: #2DC071B0;
|
|
70
|
-
--uniface-button-forth-background-color: #FAD85D;
|
|
71
|
-
--uniface-button-forth-border-color: #FAE877;
|
|
72
|
-
--uniface-button-forth-text-color: #374151;
|
|
73
|
-
--uniface-button-forth-hover-color: #FAD85DB0;
|
|
74
|
-
--uniface-button-forth-active-color: #FAD85D;
|
|
75
|
-
--uniface-text-button-forth-hover-color: #FAD85DB0;
|
|
76
|
-
--uniface-disabled-button-color: #F1F5F9;
|
|
77
|
-
--uniface-disabled-button-border-color: #E2E8F0;
|
|
78
|
-
--uniface-disabled-button-text-color: #B3BCCA;
|
|
79
47
|
--uniface-text-button-color: #42A5F5;
|
|
80
48
|
--uniface-text-button-hover-color: #1e648d;
|
|
81
49
|
--uniface-active-border-color: #42A5F5;
|
|
@@ -430,10 +398,11 @@
|
|
|
430
398
|
display: block;
|
|
431
399
|
visibility: hidden;
|
|
432
400
|
box-sizing: border-box;
|
|
433
|
-
font-size: 18px;
|
|
434
401
|
color: var(--uniface-editor-text-color, #374151);
|
|
435
402
|
align-self: center;
|
|
436
403
|
cursor: pointer;
|
|
404
|
+
font-size: 22px;
|
|
405
|
+
line-height: 1;
|
|
437
406
|
}
|
|
438
407
|
.uniface-common-picker .action-icon:active {
|
|
439
408
|
color: var(--uniface-active-dropdown-color, #9d9d9d);
|
|
@@ -526,6 +495,7 @@
|
|
|
526
495
|
:root {
|
|
527
496
|
--uniface-editor-clean-icon-bg: #B3BCCA;
|
|
528
497
|
--uniface-editor-clean-icon-color: #ffffff;
|
|
498
|
+
--uniface-embed-icon-color: #6B7280;
|
|
529
499
|
--uniface-editor-text-color: #374151;
|
|
530
500
|
--uniface-editor-line-height: 16px;
|
|
531
501
|
--uniface-editor-padding: 0 8px;
|
|
@@ -544,6 +514,18 @@
|
|
|
544
514
|
--uniface-editor-inline-action-icon-hover-bg: #42A5F51A;
|
|
545
515
|
}
|
|
546
516
|
|
|
517
|
+
.uniface-display-field {
|
|
518
|
+
height: 24px;
|
|
519
|
+
position: relative;
|
|
520
|
+
line-height: 1.25em;
|
|
521
|
+
border-bottom: 1px solid var(--uniface-editor-border-color);
|
|
522
|
+
}
|
|
523
|
+
.uniface-display-field .content {
|
|
524
|
+
position: relative;
|
|
525
|
+
top: 50%;
|
|
526
|
+
transform: translateY(-50%);
|
|
527
|
+
}
|
|
528
|
+
|
|
547
529
|
/*输入框中的清除按钮*/
|
|
548
530
|
.uniface-editor-clean-icon {
|
|
549
531
|
position: absolute;
|
|
@@ -581,12 +563,15 @@
|
|
|
581
563
|
width: 100%;
|
|
582
564
|
position: relative;
|
|
583
565
|
height: 38px;
|
|
584
|
-
line-height: var(--uniface-editor-line-height, 16px);
|
|
585
566
|
display: inline-flex;
|
|
586
567
|
flex-direction: row;
|
|
587
568
|
align-items: center;
|
|
588
569
|
gap: 8px;
|
|
589
570
|
}
|
|
571
|
+
.uniface-common-editor .editor-embed-icon {
|
|
572
|
+
font-size: 20px;
|
|
573
|
+
color: var(--uniface-embed-icon-color);
|
|
574
|
+
}
|
|
590
575
|
.uniface-common-editor .editor-embed-icon img {
|
|
591
576
|
width: 28px;
|
|
592
577
|
height: 28px;
|
|
@@ -768,6 +753,7 @@
|
|
|
768
753
|
.uniface-filter-field.horizontal .field-container {
|
|
769
754
|
grid-template-columns: auto 1fr;
|
|
770
755
|
align-items: center;
|
|
756
|
+
gap: 8px;
|
|
771
757
|
}
|
|
772
758
|
.uniface-filter-field.horizontal .field-label {
|
|
773
759
|
text-align: var(--uniface-criteria-field-label-alignment);
|
|
@@ -894,7 +880,6 @@
|
|
|
894
880
|
.uniface-form-field .field-hint {
|
|
895
881
|
width: 100%;
|
|
896
882
|
box-sizing: border-box;
|
|
897
|
-
padding: 4px 0;
|
|
898
883
|
font-size: 0.9em;
|
|
899
884
|
font-style: italic;
|
|
900
885
|
color: var(--uniface-form-field-invalid-message-color);
|
|
@@ -922,7 +907,7 @@
|
|
|
922
907
|
.uniface-form-field .form-content {
|
|
923
908
|
width: 100%;
|
|
924
909
|
display: grid;
|
|
925
|
-
gap:
|
|
910
|
+
gap: 8px;
|
|
926
911
|
}
|
|
927
912
|
.uniface-form-field.vertical .form-content {
|
|
928
913
|
grid-template-columns: 1fr;
|
|
@@ -939,6 +924,7 @@
|
|
|
939
924
|
}
|
|
940
925
|
.uniface-form-field.horizontal .form-content {
|
|
941
926
|
grid-template-columns: auto 1fr;
|
|
927
|
+
gap: 8px;
|
|
942
928
|
grid-template-areas: "label field" "empty hint";
|
|
943
929
|
}
|
|
944
930
|
.uniface-form-field.horizontal .form-content .field-label {
|
|
@@ -986,9 +972,11 @@
|
|
|
986
972
|
line-height: 1.5em;
|
|
987
973
|
color: var(--uniface-default-text-color, #374151);
|
|
988
974
|
padding: var(--uniface-memo-padding, 6px 8px);
|
|
975
|
+
border-bottom: 1px solid var(--uniface-editor-border-color, #E2E8F0);
|
|
989
976
|
}
|
|
990
977
|
.uniface-memo-editor:focus {
|
|
991
978
|
outline: none;
|
|
979
|
+
border-bottom-color: var(--uniface-editor-outlined-active-border-color, #298DFF);
|
|
992
980
|
}
|
|
993
981
|
.uniface-memo-editor.plain {
|
|
994
982
|
border: none;
|
|
@@ -1275,9 +1263,47 @@
|
|
|
1275
1263
|
border-top: 1px solid var(--uniface-dialog-divider-color, #F0F0F0);
|
|
1276
1264
|
}
|
|
1277
1265
|
|
|
1266
|
+
:root {
|
|
1267
|
+
--uniface-button-min-width: 80px;
|
|
1268
|
+
--uniface-button-plain-background-color: #f0f0f0;
|
|
1269
|
+
--uniface-button-plain-border-color: #f0f0f0;
|
|
1270
|
+
--uniface-button-plain-text-color: #374151;
|
|
1271
|
+
--uniface-button-plain-hover-color: #f0f0f0B0;
|
|
1272
|
+
--uniface-button-plainy-active-color: #f0f0f0;
|
|
1273
|
+
--uniface-button-primary-background-color: #42A5F5;
|
|
1274
|
+
--uniface-button-primary-border-color: #42B5DB;
|
|
1275
|
+
--uniface-button-primary-text-color: #ffffff;
|
|
1276
|
+
--uniface-button-primary-hover-color: #42A5F5B0;
|
|
1277
|
+
--uniface-button-primary-active-color: #42A5F5;
|
|
1278
|
+
--uniface-text-button-primary-hover-color: #42A5F5B0;
|
|
1279
|
+
--uniface-button-secondary-background-color: #FF685B;
|
|
1280
|
+
--uniface-button-secondary-border-color: #FF7875;
|
|
1281
|
+
--uniface-button-secondary-text-color: #ffffff;
|
|
1282
|
+
--uniface-button-secondary-hover-color: #FF685BB0;
|
|
1283
|
+
--uniface-button-secondary-active-color: #FF4D4F;
|
|
1284
|
+
--uniface-text-button-secondary-hover-color: #D32F2FB0;
|
|
1285
|
+
--uniface-button-third-background-color: #2DC071;
|
|
1286
|
+
--uniface-button-third-border-color: #2DD08B;
|
|
1287
|
+
--uniface-button-third-text-color: #ffffff;
|
|
1288
|
+
--uniface-button-third-hover-color: #2DD057B0;
|
|
1289
|
+
--uniface-button-third-active-color: #2DC071;
|
|
1290
|
+
--uniface-text-button-third-hover-color: #2DC071B0;
|
|
1291
|
+
--uniface-button-forth-background-color: #FAD85D;
|
|
1292
|
+
--uniface-button-forth-border-color: #FAE877;
|
|
1293
|
+
--uniface-button-forth-text-color: #374151;
|
|
1294
|
+
--uniface-button-forth-hover-color: #FAD85DB0;
|
|
1295
|
+
--uniface-button-forth-active-color: #FAD85D;
|
|
1296
|
+
--uniface-text-button-forth-hover-color: #FAD85DB0;
|
|
1297
|
+
--uniface-disabled-button-color: #F1F5F9;
|
|
1298
|
+
--uniface-disabled-button-border-color: #E2E8F0;
|
|
1299
|
+
--uniface-disabled-button-text-color: #B3BCCA;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1278
1302
|
/*通用按钮设置*/
|
|
1279
1303
|
.uniface-button {
|
|
1280
|
-
display: inline-
|
|
1304
|
+
display: inline-flex;
|
|
1305
|
+
flex-direction: row;
|
|
1306
|
+
align-items: center;
|
|
1281
1307
|
box-sizing: border-box;
|
|
1282
1308
|
cursor: pointer;
|
|
1283
1309
|
text-align: center;
|
|
@@ -1285,6 +1311,9 @@
|
|
|
1285
1311
|
-moz-user-select: none;
|
|
1286
1312
|
-ms-user-select: none;
|
|
1287
1313
|
user-select: none;
|
|
1314
|
+
min-width: var(--uniface-button-min-width);
|
|
1315
|
+
height: 28px;
|
|
1316
|
+
gap: 8px;
|
|
1288
1317
|
font-size: 12px;
|
|
1289
1318
|
letter-spacing: 1px;
|
|
1290
1319
|
transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
|
|
@@ -1363,18 +1392,18 @@
|
|
|
1363
1392
|
color: var(--uniface-disabled-button-text-color, #B3BCCA);
|
|
1364
1393
|
}
|
|
1365
1394
|
.uniface-button.common-button {
|
|
1366
|
-
padding:
|
|
1395
|
+
padding: 0 16px;
|
|
1367
1396
|
border-radius: 4px;
|
|
1368
1397
|
}
|
|
1369
|
-
.uniface-button.common-button
|
|
1370
|
-
|
|
1398
|
+
.uniface-button.common-button i {
|
|
1399
|
+
font-size: 1.5em;
|
|
1371
1400
|
}
|
|
1372
1401
|
.uniface-button.common-button.big {
|
|
1373
|
-
|
|
1402
|
+
height: 32px;
|
|
1374
1403
|
font-size: 1.1em;
|
|
1375
1404
|
}
|
|
1376
1405
|
.uniface-button.common-button.mini {
|
|
1377
|
-
|
|
1406
|
+
height: 24px;
|
|
1378
1407
|
font-size: 0.9em;
|
|
1379
1408
|
}
|
|
1380
1409
|
.uniface-button.common-button.plain {
|
|
@@ -1390,40 +1419,37 @@
|
|
|
1390
1419
|
border-radius: 12px;
|
|
1391
1420
|
}
|
|
1392
1421
|
.uniface-button.icon-button {
|
|
1393
|
-
width:
|
|
1394
|
-
height:
|
|
1395
|
-
padding: 2px;
|
|
1422
|
+
width: 28px;
|
|
1423
|
+
height: 28px;
|
|
1396
1424
|
border-radius: 50%;
|
|
1425
|
+
min-width: unset;
|
|
1426
|
+
justify-content: center;
|
|
1397
1427
|
}
|
|
1398
1428
|
.uniface-button.icon-button i {
|
|
1399
|
-
|
|
1400
|
-
font-size: 16px;
|
|
1429
|
+
font-size: 18px;
|
|
1401
1430
|
}
|
|
1402
1431
|
.uniface-button.icon-button.big {
|
|
1403
|
-
width:
|
|
1404
|
-
height:
|
|
1405
|
-
padding: 4px;
|
|
1432
|
+
width: 32px;
|
|
1433
|
+
height: 32px;
|
|
1406
1434
|
}
|
|
1407
1435
|
.uniface-button.icon-button.big i {
|
|
1408
|
-
|
|
1409
|
-
font-size: 24px;
|
|
1436
|
+
font-size: 22px;
|
|
1410
1437
|
}
|
|
1411
1438
|
.uniface-button.icon-button.mini {
|
|
1412
1439
|
width: 24px;
|
|
1413
1440
|
height: 24px;
|
|
1414
|
-
padding: 2px;
|
|
1415
1441
|
}
|
|
1416
1442
|
.uniface-button.icon-button.mini i {
|
|
1417
|
-
|
|
1418
|
-
font-size: 12px;
|
|
1443
|
+
font-size: 16px;
|
|
1419
1444
|
}
|
|
1420
1445
|
.uniface-button.text-button {
|
|
1421
1446
|
padding: 3px 6px;
|
|
1422
1447
|
cursor: pointer;
|
|
1423
1448
|
text-align: center;
|
|
1424
1449
|
background-color: transparent;
|
|
1425
|
-
color: var(--uniface-button-plain-text-color
|
|
1450
|
+
color: var(--uniface-button-plain-text-color);
|
|
1426
1451
|
user-select: none;
|
|
1452
|
+
min-width: unset;
|
|
1427
1453
|
}
|
|
1428
1454
|
.uniface-button.text-button.big {
|
|
1429
1455
|
font-size: 1.2em;
|
|
@@ -1686,12 +1712,13 @@
|
|
|
1686
1712
|
border-color: var(--uniface-card-divid-border-color, rgba(66, 165, 245, 0.4392156863));
|
|
1687
1713
|
}
|
|
1688
1714
|
.uniface-card > div .card-header {
|
|
1689
|
-
height: var(--uniface-card-header-height, 54px);
|
|
1690
|
-
border-bottom: 1px solid var(--uniface-card-inside-border-color, #E2E8F0);
|
|
1691
1715
|
box-sizing: border-box;
|
|
1692
1716
|
font-weight: 600;
|
|
1717
|
+
position: relative;
|
|
1693
1718
|
}
|
|
1694
1719
|
.uniface-card > div .card-header.simple {
|
|
1720
|
+
height: var(--uniface-card-header-height, 54px);
|
|
1721
|
+
border-bottom: 1px solid var(--uniface-card-inside-border-color, #E2E8F0);
|
|
1695
1722
|
line-height: var(--uniface-card-header-height, 54px);
|
|
1696
1723
|
padding: var(--uniface-card-header-padding, 0 24px);
|
|
1697
1724
|
width: 100%;
|
|
@@ -1746,7 +1773,6 @@
|
|
|
1746
1773
|
}
|
|
1747
1774
|
.uniface-card > div .card-action-bar.simple .action-item i {
|
|
1748
1775
|
cursor: pointer;
|
|
1749
|
-
color: var(--uniface-card-primary-text-color, #374151);
|
|
1750
1776
|
}
|
|
1751
1777
|
.uniface-card > div .card-action-bar.simple .action-item i:hover {
|
|
1752
1778
|
font-size: var(--uniface-action-image-hover-size);
|
|
@@ -2191,49 +2217,58 @@
|
|
|
2191
2217
|
line-height: 3em;
|
|
2192
2218
|
}
|
|
2193
2219
|
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2220
|
+
:root {
|
|
2221
|
+
--uniface-top-bar-background-color: #0061FF;
|
|
2222
|
+
--uniface-top-bar-color: #f0f0f0;
|
|
2223
|
+
--uniface-top-bar-height: 48px;
|
|
2224
|
+
--uniface-top-bar-font-szie: 24px;
|
|
2225
|
+
--uniface-top-bar-margin: 12px;
|
|
2226
|
+
--uniface-avatar-size: 40px;
|
|
2227
|
+
--uniface-avatar-radius: 50%;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
.uniface-top-bar {
|
|
2231
|
+
background-color: var(--uniface-top-bar-background-color);
|
|
2232
|
+
color: var(--uniface-top-bar-color);
|
|
2197
2233
|
text-align: center;
|
|
2198
2234
|
width: 100%;
|
|
2235
|
+
height: var(--uniface-top-bar-height);
|
|
2236
|
+
font-size: var(--uniface-top-bar-font-szie);
|
|
2199
2237
|
display: flex;
|
|
2200
2238
|
flex-direction: row;
|
|
2201
2239
|
box-sizing: border-box;
|
|
2202
2240
|
justify-items: center;
|
|
2203
|
-
|
|
2241
|
+
align-items: center;
|
|
2242
|
+
padding: 0 var(--uniface-top-bar-margin);
|
|
2243
|
+
gap: 8px;
|
|
2204
2244
|
}
|
|
2205
|
-
.uniface-
|
|
2245
|
+
.uniface-top-bar > div {
|
|
2206
2246
|
flex: 0 0 auto;
|
|
2207
|
-
align-self: center;
|
|
2208
2247
|
}
|
|
2209
|
-
.uniface-
|
|
2210
|
-
display: flex;
|
|
2248
|
+
.uniface-top-bar .bar-home {
|
|
2211
2249
|
position: relative;
|
|
2212
|
-
|
|
2213
|
-
height: 32px;
|
|
2214
|
-
border-radius: 50%;
|
|
2215
|
-
border: 1px solid transparent;
|
|
2216
|
-
overflow: hidden;
|
|
2217
|
-
box-sizing: border-box;
|
|
2218
|
-
flex-direction: column;
|
|
2219
|
-
justify-content: center;
|
|
2220
|
-
text-align: center;
|
|
2221
|
-
font-size: 22px;
|
|
2222
|
-
}
|
|
2223
|
-
.uniface-header .bar-home:hover {
|
|
2224
|
-
border-color: #ffffff;
|
|
2250
|
+
cursor: pointer;
|
|
2225
2251
|
}
|
|
2226
|
-
.uniface-
|
|
2252
|
+
.uniface-top-bar .bar-home:active {
|
|
2227
2253
|
top: 1px;
|
|
2228
2254
|
}
|
|
2229
|
-
.uniface-
|
|
2255
|
+
.uniface-top-bar .main-content {
|
|
2230
2256
|
flex: 1 1 auto;
|
|
2231
|
-
|
|
2232
|
-
align-self: center;
|
|
2257
|
+
text-align: left;
|
|
2233
2258
|
}
|
|
2234
|
-
.uniface-
|
|
2235
|
-
|
|
2236
|
-
|
|
2259
|
+
.uniface-top-bar .avatar {
|
|
2260
|
+
height: var(--uniface-avatar-size);
|
|
2261
|
+
}
|
|
2262
|
+
.uniface-top-bar .avatar img {
|
|
2263
|
+
position: relative;
|
|
2264
|
+
width: var(--uniface-avatar-size);
|
|
2265
|
+
height: var(--uniface-avatar-size);
|
|
2266
|
+
border-radius: var(--uniface-avatar-radius);
|
|
2267
|
+
object-fit: cover;
|
|
2268
|
+
cursor: pointer;
|
|
2269
|
+
}
|
|
2270
|
+
.uniface-top-bar .avatar img:active {
|
|
2271
|
+
top: 1px;
|
|
2237
2272
|
}
|
|
2238
2273
|
|
|
2239
2274
|
.uniface-lookup-editor {
|
|
@@ -2612,13 +2647,20 @@
|
|
|
2612
2647
|
flex: 0 0 auto;
|
|
2613
2648
|
}
|
|
2614
2649
|
|
|
2650
|
+
:root {
|
|
2651
|
+
--uniface-navigator-menu-background-color: #ffffff;
|
|
2652
|
+
--uniface-navigator-menu-color: #374151;
|
|
2653
|
+
--uniface-navigator-menu-hover-background-color: #81D4FA;
|
|
2654
|
+
--uniface-navigator-menu-hover-color: #374151;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2615
2657
|
.uniface-navigator-menu-panel {
|
|
2616
2658
|
display: block;
|
|
2617
2659
|
width: 100%;
|
|
2618
2660
|
height: 100%;
|
|
2619
2661
|
user-select: none;
|
|
2620
|
-
background-color: var(--uniface-
|
|
2621
|
-
color: var(--uniface-
|
|
2662
|
+
background-color: var(--uniface-navigator-menu-background-color);
|
|
2663
|
+
color: var(--uniface-navigator-menu-color);
|
|
2622
2664
|
position: relative;
|
|
2623
2665
|
overflow-x: hidden;
|
|
2624
2666
|
overflow-y: auto;
|
|
@@ -2649,7 +2691,7 @@
|
|
|
2649
2691
|
}
|
|
2650
2692
|
.uniface-navigator-menu-panelul li span:hover, .uniface-navigator-menu-panel ul li span:hover {
|
|
2651
2693
|
background-color: var(--uniface-navigator-menu-hover-background-color, #81D4FA);
|
|
2652
|
-
color: var(--uniface-
|
|
2694
|
+
color: var(--uniface-navigator-menu-hover-color);
|
|
2653
2695
|
border-radius: 4px;
|
|
2654
2696
|
}
|
|
2655
2697
|
.uniface-navigator-menu-panelul li.expandable > span:hover::after, .uniface-navigator-menu-panel ul li.expandable > span:hover::after {
|
|
@@ -2658,7 +2700,7 @@
|
|
|
2658
2700
|
font-size: 0.9em;
|
|
2659
2701
|
position: absolute;
|
|
2660
2702
|
right: 8px;
|
|
2661
|
-
color: var(--uniface-
|
|
2703
|
+
color: var(--uniface-navigator-menu-color);
|
|
2662
2704
|
}
|
|
2663
2705
|
.uniface-navigator-menu-panelul li.expandable.fold ul, .uniface-navigator-menu-panel ul li.expandable.fold ul {
|
|
2664
2706
|
display: none;
|
|
@@ -3565,11 +3607,13 @@
|
|
|
3565
3607
|
}
|
|
3566
3608
|
.uniface-accordion-panel .accordion .header {
|
|
3567
3609
|
background-color: var(--uniface-accordion-title-bg, #F8FAFC);
|
|
3568
|
-
padding: 12px
|
|
3610
|
+
padding: 8px 12px;
|
|
3569
3611
|
width: 100%;
|
|
3570
3612
|
box-sizing: border-box;
|
|
3571
3613
|
cursor: pointer;
|
|
3572
3614
|
display: flex;
|
|
3615
|
+
gap: 8px;
|
|
3616
|
+
flex-direction: row;
|
|
3573
3617
|
align-items: center;
|
|
3574
3618
|
}
|
|
3575
3619
|
.uniface-accordion-panel .accordion .header:hover {
|
|
@@ -3583,7 +3627,7 @@
|
|
|
3583
3627
|
transition: height 0.3s ease-out;
|
|
3584
3628
|
}
|
|
3585
3629
|
.uniface-accordion-panel.compact .accordion .header {
|
|
3586
|
-
padding:
|
|
3630
|
+
padding: 4px 8px;
|
|
3587
3631
|
}
|
|
3588
3632
|
.uniface-accordion-panel.compact .accordion .content {
|
|
3589
3633
|
padding: 8px;
|
|
@@ -4105,6 +4149,47 @@
|
|
|
4105
4149
|
overflow-y: hidden;
|
|
4106
4150
|
}
|
|
4107
4151
|
|
|
4152
|
+
:root {
|
|
4153
|
+
--breadcrumbs-gap: 8px;
|
|
4154
|
+
--breadcrumbs-color: var(--uniface-primary-text-color, #374151);
|
|
4155
|
+
--breadcrumbs-hover-color: var(--uniface-primary-hover-color, #298DEF);
|
|
4156
|
+
--breadcrumbs-active-color: var(--uniface-primary-hover-color, #298DEF);
|
|
4157
|
+
--breadcrumbs-active-weight: 600;
|
|
4158
|
+
--breadcrumbs-padding: 8px 12px;
|
|
4159
|
+
}
|
|
4160
|
+
|
|
4161
|
+
.uniface-breadcrumbs {
|
|
4162
|
+
width: 100%;
|
|
4163
|
+
display: flex;
|
|
4164
|
+
flex-direction: row;
|
|
4165
|
+
flex-wrap: nowrap;
|
|
4166
|
+
overflow: hidden;
|
|
4167
|
+
color: var(--breadcrumbs-color);
|
|
4168
|
+
gap: var(--breadcrumbs-gap);
|
|
4169
|
+
padding: var(--breadcrumbs-padding);
|
|
4170
|
+
}
|
|
4171
|
+
.uniface-breadcrumbs .breadcrumb {
|
|
4172
|
+
margin: 0 6px;
|
|
4173
|
+
cursor: pointer;
|
|
4174
|
+
}
|
|
4175
|
+
.uniface-breadcrumbs .breadcrumb:hover {
|
|
4176
|
+
color: var(--breadcrumbs-hover-color);
|
|
4177
|
+
}
|
|
4178
|
+
.uniface-breadcrumbs .breadcrumb:active {
|
|
4179
|
+
color: var(--breadcrumbs-active-color);
|
|
4180
|
+
font-weight: var(--breadcrumbs-active-weight);
|
|
4181
|
+
}
|
|
4182
|
+
.uniface-breadcrumbs > div:last-child .breadcrumb {
|
|
4183
|
+
cursor: default;
|
|
4184
|
+
}
|
|
4185
|
+
.uniface-breadcrumbs > div:last-child .breadcrumb:hover {
|
|
4186
|
+
color: var(--uniface-primary-text-color);
|
|
4187
|
+
}
|
|
4188
|
+
.uniface-breadcrumbs > div:last-child .breadcrumb:active {
|
|
4189
|
+
color: var(--uniface-primary-text-color);
|
|
4190
|
+
font-weight: unset;
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4108
4193
|
html {
|
|
4109
4194
|
box-sizing: border-box;
|
|
4110
4195
|
}
|
|
@@ -82,8 +82,9 @@
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
onMount(async () => {
|
|
85
|
-
unit = units.find(item => item.code == unitCode) ?? units[0];
|
|
86
85
|
standardUnit = units.find(item => item.ratio == 1);
|
|
86
|
+
unit = units.find(item => item.code == unitCode) ?? standardUnit ?? units[0];
|
|
87
|
+
unitCode = unit.code;
|
|
87
88
|
calculateUnitValue();
|
|
88
89
|
})
|
|
89
90
|
|
|
@@ -110,18 +111,18 @@
|
|
|
110
111
|
<NumberInput bind:this={editor} style="flex: 1 1 auto" {disabled} {placeholder} bind:value={unitValue} precision={unit?.precision}
|
|
111
112
|
{allowNegative}
|
|
112
113
|
max={unit?.max} min={unit?.min} {readonly} onChange={handleValueChange}/>
|
|
113
|
-
<
|
|
114
|
+
<svelte:fragment slot="trailing-icon">
|
|
114
115
|
{#if !disabled && !readonly}
|
|
115
|
-
<i class="option-dropdown
|
|
116
|
+
<i style="font-size: 22px" class="option-dropdown icon_google_arrow_drop_down" aria-hidden="true" on:click={openPopup}></i>
|
|
116
117
|
{/if}
|
|
117
|
-
</
|
|
118
|
+
</svelte:fragment>
|
|
118
119
|
</CommonEditor>
|
|
119
120
|
|
|
120
121
|
{#if showPopup}
|
|
121
122
|
<Popover target={divPanel} autoFit={false} align="right" on:close={()=>{showPopup=false}}>
|
|
122
123
|
<div class="options-popover" style="min-width: 90px; box-sizing: border-box; text-align: center; {mh}" >
|
|
123
124
|
{#each units as op}
|
|
124
|
-
<div style="padding-left: 12px; padding-right: 12px" on:click={handleUnitClick(op)} aria-hidden="true">
|
|
125
|
+
<div class="option-item" style="padding-left: 12px; padding-right: 12px" on:click={handleUnitClick(op)} aria-hidden="true">
|
|
125
126
|
<span>{op.text ?? op.code}</span>
|
|
126
127
|
</div>
|
|
127
128
|
{/each}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/uniface-element",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "uniface web elements",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"types": "./dist/attachment-files/index.d.ts",
|
|
76
76
|
"import": "./dist/attachment-files/index.js"
|
|
77
77
|
},
|
|
78
|
+
"./Breadcrumbs": {
|
|
79
|
+
"types": "./dist/breadcrumbs/index.d.ts",
|
|
80
|
+
"import": "./dist/breadcrumbs/index.js"
|
|
81
|
+
},
|
|
78
82
|
"./Box": {
|
|
79
83
|
"types": "./dist/box/index.d.ts",
|
|
80
84
|
"svelte": "./dist/box/Box.svelte",
|
|
@@ -321,7 +325,7 @@
|
|
|
321
325
|
"@sveltejs/kit": "^2.0.0",
|
|
322
326
|
"@sveltejs/package": "^2.0.0",
|
|
323
327
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
324
|
-
"@ticatec/uniface-icons": "^0.
|
|
328
|
+
"@ticatec/uniface-google-material-icons": "^0.1.1",
|
|
325
329
|
"dayjs": "^1.11.10",
|
|
326
330
|
"publint": "^0.3.2",
|
|
327
331
|
"sass": "^1.57.1",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { HrefBuilder } from "./HrefLink";
|
|
2
|
-
import type { CellHint, FormatCell } from "./FormatCell";
|
|
3
|
-
export default interface AdvColumn {
|
|
4
|
-
/**
|
|
5
|
-
* 对齐方式,文本,可以取值:left, center, right
|
|
6
|
-
*/
|
|
7
|
-
align: string;
|
|
8
|
-
/**
|
|
9
|
-
* 对应的字段/属性名
|
|
10
|
-
*/
|
|
11
|
-
field?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 超链接设置
|
|
14
|
-
*/
|
|
15
|
-
href?: HrefBuilder | null;
|
|
16
|
-
/**
|
|
17
|
-
* 单元格转换函数
|
|
18
|
-
*/
|
|
19
|
-
formatter?: FormatCell;
|
|
20
|
-
/**
|
|
21
|
-
* 是否忽略html的转义符
|
|
22
|
-
*/
|
|
23
|
-
escapeHTML: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* 待显示的提示
|
|
26
|
-
*/
|
|
27
|
-
hint?: CellHint;
|
|
28
|
-
/**
|
|
29
|
-
* 渲染器
|
|
30
|
-
*/
|
|
31
|
-
render?: any;
|
|
32
|
-
/**
|
|
33
|
-
* 宽度
|
|
34
|
-
*/
|
|
35
|
-
width: number;
|
|
36
|
-
}
|
|
File without changes
|