@bagelink/vue 0.0.168 → 0.0.172
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/components/DataPreview.vue.d.ts +3 -19
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/FormSchema.vue.d.ts +3 -19
- package/dist/components/FormSchema.vue.d.ts.map +1 -1
- package/dist/components/PersonPreview.vue.d.ts +1 -1
- package/dist/components/PersonPreview.vue.d.ts.map +1 -1
- package/dist/components/formkit/FileUploader.vue.d.ts +5 -0
- package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
- package/dist/components/formkit/index.d.ts +10 -8
- package/dist/components/formkit/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +221 -363
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +221 -363
- package/dist/plugins/bagel.d.ts +3 -0
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/style.css +140 -273
- package/package.json +1 -1
- package/src/components/DataPreview.vue +5 -6
- package/src/components/FormSchema.vue +7 -10
- package/src/components/PersonPreview.vue +147 -123
- package/src/components/formkit/FileUploader.vue +267 -254
- package/src/components/formkit/index.ts +10 -10
- package/src/components/index.ts +0 -1
- package/src/index.ts +1 -1
- package/src/plugins/bagel.ts +17 -1
- package/src/components/FileUploader.vue +0 -353
package/dist/plugins/bagel.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { InjectionKey, Plugin } from 'vue';
|
|
2
2
|
import { Bagel } from '@bagelink/sdk';
|
|
3
3
|
export declare const bagelInjectionKey: InjectionKey<Bagel>;
|
|
4
|
+
export declare const i18nTInjectionKey: InjectionKey<(key: string) => string>;
|
|
4
5
|
export declare function useBagel(): Bagel;
|
|
6
|
+
export declare function useI18nT(): (key: string) => string;
|
|
5
7
|
export interface BagelOptions {
|
|
6
8
|
host: string;
|
|
7
9
|
onError?: (err: Error) => void;
|
|
10
|
+
i18nT?: (key: string) => string;
|
|
8
11
|
}
|
|
9
12
|
export declare const BagelVue: Plugin;
|
|
10
13
|
//# sourceMappingURL=bagel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bagel.d.ts","sourceRoot":"","sources":["../../src/plugins/bagel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,eAAO,MAAM,iBAAiB,qBAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"bagel.d.ts","sourceRoot":"","sources":["../../src/plugins/bagel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,eAAO,MAAM,iBAAiB,qBAAyC,CAAC;AACxE,eAAO,MAAM,iBAAiB,qBAEvB,MAAM,KAAK,MAAM,CACvB,CAAC;AAEF,wBAAgB,QAAQ,UAKvB;AAED,wBAAgB,QAAQ,4BAKvB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IAEZ,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAEhC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;CAC/B;AAED,eAAO,MAAM,QAAQ,EAAE,MAStB,CAAC"}
|
package/dist/style.css
CHANGED
|
@@ -860,90 +860,90 @@ th[data-v-fb5b163a] {
|
|
|
860
860
|
}
|
|
861
861
|
|
|
862
862
|
.person-card {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
863
|
+
border: 1.1px solid var(--border-color);
|
|
864
|
+
/* background: var(--input-bg); */
|
|
865
|
+
border-radius: var(--card-border-radius);
|
|
866
|
+
padding: 1rem;
|
|
867
|
+
margin-bottom: 0.5rem;
|
|
868
|
+
font-size: 1rem;
|
|
869
|
+
position: relative;
|
|
870
870
|
}
|
|
871
871
|
.person-card p {
|
|
872
|
-
|
|
872
|
+
margin: 0;
|
|
873
873
|
}
|
|
874
874
|
.person-card-details {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
875
|
+
font-size: 14px;
|
|
876
|
+
margin-bottom: 2px;
|
|
877
|
+
line-height: 1.3;
|
|
878
|
+
display: flex;
|
|
879
879
|
}
|
|
880
880
|
.person-card-details p {
|
|
881
|
-
|
|
882
|
-
|
|
881
|
+
color: var(--input-color);
|
|
882
|
+
opacity: 0.6;
|
|
883
883
|
}
|
|
884
884
|
.person-card-details.badge p {
|
|
885
|
-
|
|
885
|
+
opacity: 1;
|
|
886
886
|
}
|
|
887
887
|
.person-card-details p:nth-child(2) {
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
opacity: 1;
|
|
889
|
+
padding-inline-end: 0.5rem;
|
|
890
890
|
}
|
|
891
891
|
.person-card-details .icon-font {
|
|
892
|
-
|
|
893
|
-
|
|
892
|
+
color: var(--bgl-primary);
|
|
893
|
+
padding-inline-end: 0.25rem;
|
|
894
894
|
}
|
|
895
895
|
.person-card-edit {
|
|
896
|
-
|
|
897
|
-
|
|
896
|
+
position: absolute;
|
|
897
|
+
inset-inline-end: 1rem;
|
|
898
898
|
}
|
|
899
899
|
.person-card-details-wrap {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
900
|
+
display: flex;
|
|
901
|
+
gap: 0.5rem;
|
|
902
|
+
flex-wrap: wrap;
|
|
903
903
|
}
|
|
904
904
|
.person-card-icon {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
905
|
+
background: var(--bgl-gray);
|
|
906
|
+
height: 30px;
|
|
907
|
+
width: 30px;
|
|
908
|
+
border-radius: 100%;
|
|
909
|
+
text-transform: uppercase;
|
|
910
|
+
display: flex;
|
|
911
|
+
justify-content: center;
|
|
912
|
+
align-items: center;
|
|
913
|
+
color: white;
|
|
914
|
+
font-size: 12px;
|
|
915
915
|
}
|
|
916
916
|
.person-card-icon-wrap {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
917
|
+
display: flex;
|
|
918
|
+
gap: 0.5rem;
|
|
919
|
+
align-items: center;
|
|
920
|
+
padding-bottom: 0.75rem;
|
|
921
921
|
}
|
|
922
922
|
@media screen and (max-width: 910px) {
|
|
923
923
|
.person-card-icon-wrap {
|
|
924
|
-
|
|
924
|
+
padding-bottom: 0.5rem;
|
|
925
925
|
}
|
|
926
926
|
.person-card {
|
|
927
|
-
|
|
928
|
-
|
|
927
|
+
padding: 0.75rem;
|
|
928
|
+
position: relative;
|
|
929
929
|
}
|
|
930
930
|
.person-card-edit {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
931
|
+
/* position: relative; */
|
|
932
|
+
inset-inline-end: 0.5rem;
|
|
933
|
+
margin-bottom: 1rem;
|
|
934
|
+
justify-content: flex-end;
|
|
935
935
|
}
|
|
936
936
|
.person-card-name {
|
|
937
|
-
|
|
937
|
+
max-width: calc(100% - 170px);
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
.data[data-v-
|
|
941
|
+
.data[data-v-86e783b9] {
|
|
942
942
|
border: 1.1px solid var(--border-color);
|
|
943
943
|
padding: 20px;
|
|
944
944
|
border-radius: var(--input-border-radius);
|
|
945
945
|
}
|
|
946
|
-
.data-row[data-v-
|
|
946
|
+
.data-row[data-v-86e783b9] {
|
|
947
947
|
display: flex;
|
|
948
948
|
justify-content: space-between;
|
|
949
949
|
padding-bottom: 0.5rem;
|
|
@@ -951,7 +951,7 @@ th[data-v-fb5b163a] {
|
|
|
951
951
|
opacity: 0.8;
|
|
952
952
|
border-bottom: 1px solid var(--border-color);
|
|
953
953
|
}
|
|
954
|
-
.data-link[data-v-
|
|
954
|
+
.data-link[data-v-86e783b9] {
|
|
955
955
|
display: block;
|
|
956
956
|
font-size: var(--input-font-size);
|
|
957
957
|
margin-bottom: 2px;
|
|
@@ -959,135 +959,6 @@ th[data-v-fb5b163a] {
|
|
|
959
959
|
color: var(--input-color);
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
/* .uploading-wrap {
|
|
963
|
-
width: 100%;
|
|
964
|
-
} */
|
|
965
|
-
|
|
966
|
-
/* .uploading {
|
|
967
|
-
margin: 0.5rem;
|
|
968
|
-
} */
|
|
969
|
-
|
|
970
|
-
/* .img-label .icon-font {
|
|
971
|
-
font-size: 30px;
|
|
972
|
-
margin-bottom: 10px;
|
|
973
|
-
} */
|
|
974
|
-
|
|
975
|
-
/* .img-label span {
|
|
976
|
-
text-decoration: underline;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
.file-input {
|
|
980
|
-
display: none;
|
|
981
|
-
} */
|
|
982
|
-
.files-wrapper {
|
|
983
|
-
/* flex-direction: column;
|
|
984
|
-
border-radius: 10px; */
|
|
985
|
-
/*overflow: hidden;*/
|
|
986
|
-
/* min-height: 100px;
|
|
987
|
-
font-size: var(--input-font-size); */
|
|
988
|
-
}
|
|
989
|
-
.drop-zone {
|
|
990
|
-
/* background-color: var(--bgl-bg);
|
|
991
|
-
height: 100%;
|
|
992
|
-
width: 100%;
|
|
993
|
-
flex-grow: 1;
|
|
994
|
-
position: relative;
|
|
995
|
-
overflow: hidden;
|
|
996
|
-
cursor: pointer;
|
|
997
|
-
transition: var(--bgl-transition);
|
|
998
|
-
outline: dashed 1px var(--bgl-black-tint);
|
|
999
|
-
border-radius: 10px;
|
|
1000
|
-
padding: 1px;
|
|
1001
|
-
display: flex;
|
|
1002
|
-
flex-direction: column;
|
|
1003
|
-
align-items: center;
|
|
1004
|
-
justify-content: center;
|
|
1005
|
-
color: var(--input-color); */
|
|
1006
|
-
}
|
|
1007
|
-
.drop-zone:hover {
|
|
1008
|
-
/* color: var(--bgl-primary);
|
|
1009
|
-
outline: dashed 1px var(--bgl-primary-tint); */
|
|
1010
|
-
}
|
|
1011
|
-
.drop-circle {
|
|
1012
|
-
/* pointer-events: none;
|
|
1013
|
-
position: absolute;
|
|
1014
|
-
width: 100px;
|
|
1015
|
-
height: 100px;
|
|
1016
|
-
border-radius: 50%;
|
|
1017
|
-
background-color: var(--bgl-primary-tint);
|
|
1018
|
-
display: flex;
|
|
1019
|
-
top: v-bind(circleTop);
|
|
1020
|
-
left: v-bind(circleLeft);
|
|
1021
|
-
transform: translate(-50%, -50%) scale(1);
|
|
1022
|
-
transform-origin: left top; */
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
/* .drop-circle.active {
|
|
1026
|
-
color: red;
|
|
1027
|
-
background-color: black;
|
|
1028
|
-
transform: translate(-50%, -50%) scale(1);
|
|
1029
|
-
transition: transform 0.2s ease-in-out;
|
|
1030
|
-
} */
|
|
1031
|
-
.load-file-bar {
|
|
1032
|
-
/* display: flex;
|
|
1033
|
-
align-items: center;
|
|
1034
|
-
justify-content: space-between;
|
|
1035
|
-
background: var(--bgl-white);
|
|
1036
|
-
border-radius: var(--btn-border-radius);
|
|
1037
|
-
width: 100%;
|
|
1038
|
-
color: var(--input-color);
|
|
1039
|
-
height: var(--btn-height);
|
|
1040
|
-
padding: 0.5rem;
|
|
1041
|
-
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
1042
|
-
white-space: nowrap; */
|
|
1043
|
-
}
|
|
1044
|
-
.load-file-bar p {
|
|
1045
|
-
/* width: calc(100% - 40px);
|
|
1046
|
-
overflow: hidden;
|
|
1047
|
-
text-overflow: ellipsis; */
|
|
1048
|
-
}
|
|
1049
|
-
.load-file-bar span {
|
|
1050
|
-
/* font-size: 10px; */
|
|
1051
|
-
}
|
|
1052
|
-
.pie {
|
|
1053
|
-
/* width: 30px;
|
|
1054
|
-
height: 30px;
|
|
1055
|
-
position: relative;
|
|
1056
|
-
display: flex;
|
|
1057
|
-
align-items: center;
|
|
1058
|
-
justify-content: center; */
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
/* .pie:before {
|
|
1062
|
-
content: '';
|
|
1063
|
-
position: absolute;
|
|
1064
|
-
border-radius: 50%;
|
|
1065
|
-
inset: 0;
|
|
1066
|
-
background: conic-gradient(var(--bgl-primary) calc(var(--p) * 1%), #0000 0);
|
|
1067
|
-
-webkit-mask: radial-gradient(
|
|
1068
|
-
farthest-side,
|
|
1069
|
-
#0000 calc(99% - var(--b)),
|
|
1070
|
-
#000 calc(100% - var(--b))
|
|
1071
|
-
);
|
|
1072
|
-
mask: radial-gradient(
|
|
1073
|
-
farthest-side,
|
|
1074
|
-
#0000 calc(99% - var(--b)),
|
|
1075
|
-
#000 calc(100% - var(--b))
|
|
1076
|
-
);
|
|
1077
|
-
} */
|
|
1078
|
-
|
|
1079
|
-
/* .pop-enter-active {
|
|
1080
|
-
transition: scale 0.2s cubic-bezier(0.55, 0, 0.1, 1);
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
.pop-leave-active {
|
|
1084
|
-
transition: scale 0.2s cubic-bezier(0.55, 0, 0.1, 1);
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
.pop-enter-from,
|
|
1088
|
-
.pop-leave-to {
|
|
1089
|
-
scale: 0;
|
|
1090
|
-
} */
|
|
1091
962
|
/* .group-wrap * {
|
|
1092
963
|
outline: 1px solid red;
|
|
1093
964
|
} */
|
|
@@ -1624,154 +1495,150 @@ input:checked + .slider[data-v-d0543d4b]:before {
|
|
|
1624
1495
|
}
|
|
1625
1496
|
|
|
1626
1497
|
.uploading-wrap {
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1498
|
+
width: 100%;
|
|
1499
|
+
padding-right: 5px;
|
|
1500
|
+
padding-left: 5px;
|
|
1630
1501
|
}
|
|
1631
1502
|
|
|
1632
1503
|
/*
|
|
1633
1504
|
.uploading {}
|
|
1634
1505
|
*/
|
|
1635
1506
|
.img-label .icon-font {
|
|
1636
|
-
|
|
1637
|
-
|
|
1507
|
+
font-size: 30px;
|
|
1508
|
+
margin-bottom: 10px;
|
|
1638
1509
|
}
|
|
1639
1510
|
.img-label span {
|
|
1640
|
-
|
|
1511
|
+
text-decoration: underline;
|
|
1641
1512
|
}
|
|
1642
1513
|
.file-input {
|
|
1643
|
-
|
|
1514
|
+
display: none;
|
|
1644
1515
|
}
|
|
1645
1516
|
.files-wrapper {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1517
|
+
flex-direction: column;
|
|
1518
|
+
border-radius: 10px;
|
|
1519
|
+
/*overflow: hidden;*/
|
|
1520
|
+
min-height: calc(var(--input-height) * 1.5);
|
|
1650
1521
|
|
|
1651
|
-
|
|
1522
|
+
font-size: var(--input-font-size);
|
|
1652
1523
|
}
|
|
1653
1524
|
.drop-zone {
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1525
|
+
background-color: var(--input-bg);
|
|
1526
|
+
height: 100%;
|
|
1527
|
+
width: 100%;
|
|
1528
|
+
flex-grow: 1;
|
|
1529
|
+
position: relative;
|
|
1530
|
+
overflow: hidden;
|
|
1531
|
+
cursor: pointer;
|
|
1532
|
+
transition: var(--bgl-transition);
|
|
1533
|
+
outline: dashed 1px var(--border-color);
|
|
1534
|
+
border-radius: 10px;
|
|
1535
|
+
padding: 1px;
|
|
1536
|
+
display: flex;
|
|
1537
|
+
flex-direction: column;
|
|
1538
|
+
align-items: center;
|
|
1539
|
+
justify-content: center;
|
|
1540
|
+
color: var(--input-color);
|
|
1670
1541
|
}
|
|
1671
1542
|
.drop-zone:hover {
|
|
1672
|
-
|
|
1673
|
-
|
|
1543
|
+
color: var(--bgl-primary);
|
|
1544
|
+
outline: dashed 1px var(--bgl-primary-tint);
|
|
1674
1545
|
}
|
|
1675
1546
|
.drop-circle {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1547
|
+
pointer-events: none;
|
|
1548
|
+
position: absolute;
|
|
1549
|
+
width: 100px;
|
|
1550
|
+
height: 100px;
|
|
1551
|
+
border-radius: 50%;
|
|
1552
|
+
background-color: var(--bgl-primary-tint);
|
|
1553
|
+
display: flex;
|
|
1554
|
+
transform: translate(-50%, -50%) scale(1);
|
|
1555
|
+
transform-origin: left top;
|
|
1685
1556
|
}
|
|
1686
1557
|
.load-file-bar {
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1558
|
+
display: flex;
|
|
1559
|
+
align-items: center;
|
|
1560
|
+
justify-content: space-between;
|
|
1561
|
+
background: var(--bgl-white);
|
|
1562
|
+
border-radius: var(--btn-border-radius);
|
|
1563
|
+
width: 100%;
|
|
1564
|
+
color: var(--input-color);
|
|
1565
|
+
height: var(--btn-height);
|
|
1566
|
+
padding: 0.5rem;
|
|
1567
|
+
height: 46px;
|
|
1568
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
1569
|
+
white-space: nowrap;
|
|
1699
1570
|
}
|
|
1700
1571
|
.load-file-bar p {
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1572
|
+
width: calc(100% - 40px);
|
|
1573
|
+
overflow: hidden;
|
|
1574
|
+
text-overflow: ellipsis;
|
|
1704
1575
|
}
|
|
1705
1576
|
.load-file-bar span {
|
|
1706
|
-
|
|
1577
|
+
font-size: 10px;
|
|
1707
1578
|
}
|
|
1708
1579
|
.pie {
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1580
|
+
width: 30px;
|
|
1581
|
+
height: 30px;
|
|
1582
|
+
position: relative;
|
|
1583
|
+
display: flex;
|
|
1584
|
+
align-items: center;
|
|
1585
|
+
justify-content: center;
|
|
1715
1586
|
}
|
|
1716
1587
|
.pie:before {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
farthest-side,
|
|
1730
|
-
#0000 calc(99% - var(--b)),
|
|
1731
|
-
#000 calc(100% - var(--b))
|
|
1732
|
-
);
|
|
1588
|
+
content: "";
|
|
1589
|
+
position: absolute;
|
|
1590
|
+
border-radius: 50%;
|
|
1591
|
+
inset: 0;
|
|
1592
|
+
transition: all 0.2s ease-in-out;
|
|
1593
|
+
background: conic-gradient(var(--bgl-primary) calc(var(--p) * 1%), #0000 0);
|
|
1594
|
+
-webkit-mask: radial-gradient(farthest-side,
|
|
1595
|
+
#0000 calc(99% - var(--b)),
|
|
1596
|
+
#000 calc(100% - var(--b)));
|
|
1597
|
+
mask: radial-gradient(farthest-side,
|
|
1598
|
+
#0000 calc(99% - var(--b)),
|
|
1599
|
+
#000 calc(100% - var(--b)));
|
|
1733
1600
|
}
|
|
1734
1601
|
.pie .success {
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1602
|
+
transform: scale(0);
|
|
1603
|
+
opacity: 0;
|
|
1604
|
+
transition: all 0.3s ease-in-out;
|
|
1738
1605
|
}
|
|
1739
1606
|
.pie .progress {
|
|
1740
|
-
|
|
1741
|
-
|
|
1607
|
+
position: absolute;
|
|
1608
|
+
font-size: 10px;
|
|
1742
1609
|
}
|
|
1743
1610
|
.pie.complete .progress {
|
|
1744
|
-
|
|
1611
|
+
display: none;
|
|
1745
1612
|
}
|
|
1746
1613
|
.pie.complete .success {
|
|
1747
|
-
|
|
1748
|
-
|
|
1614
|
+
transform: scale(1.3);
|
|
1615
|
+
opacity: 1;
|
|
1749
1616
|
}
|
|
1750
1617
|
.pie.complete:before {
|
|
1751
|
-
|
|
1618
|
+
background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
|
|
1752
1619
|
}
|
|
1753
1620
|
.pie.complete {
|
|
1754
|
-
|
|
1621
|
+
color: var(--bgl-green);
|
|
1755
1622
|
}
|
|
1756
1623
|
|
|
1757
1624
|
.pop-enter-active {
|
|
1758
|
-
|
|
1625
|
+
transition: scale 0.2s cubic-bezier(0.55, 0, 0.1, 1);
|
|
1759
1626
|
}
|
|
1760
1627
|
.pop-leave-active {
|
|
1761
|
-
|
|
1628
|
+
transition: scale 0.2s cubic-bezier(0.55, 0, 0.1, 1);
|
|
1762
1629
|
}
|
|
1763
1630
|
.pop-enter-from,
|
|
1764
1631
|
.pop-leave-to {
|
|
1765
|
-
|
|
1632
|
+
scale: 0;
|
|
1766
1633
|
}
|
|
1767
1634
|
.delete-btn {
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1635
|
+
margin-inline-end: -30px;
|
|
1636
|
+
opacity: 0;
|
|
1637
|
+
margin-inline-start: 10px;
|
|
1771
1638
|
}
|
|
1772
1639
|
.uploading-wrap:hover .delete-btn {
|
|
1773
|
-
|
|
1774
|
-
|
|
1640
|
+
opacity: 1;
|
|
1641
|
+
margin-inline-end: 0;
|
|
1775
1642
|
}
|
|
1776
1643
|
|
|
1777
1644
|
.person-card {
|
package/package.json
CHANGED
|
@@ -45,19 +45,18 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script lang="ts" setup>
|
|
48
|
-
import { keyToLabel } from '@bagelink/vue';
|
|
48
|
+
import { keyToLabel, useI18nT } from '@bagelink/vue';
|
|
49
|
+
|
|
50
|
+
const i18nT = useI18nT();
|
|
49
51
|
|
|
50
52
|
const keysToIgnore = ['id', 'person_id', 'person', 'created_at', 'updated_at'];
|
|
51
53
|
|
|
52
54
|
// const props =
|
|
53
|
-
|
|
55
|
+
defineProps<{
|
|
54
56
|
data: Record<string, any>,
|
|
55
57
|
schema?: Record<string, any>[],
|
|
56
58
|
title?: string,
|
|
57
|
-
|
|
58
|
-
}>(), {
|
|
59
|
-
i18nT: (str: string) => str,
|
|
60
|
-
});
|
|
59
|
+
}>();
|
|
61
60
|
</script>
|
|
62
61
|
|
|
63
62
|
<style scoped>
|
|
@@ -30,34 +30,31 @@ import { reactive } from 'vue';
|
|
|
30
30
|
import { type FormKitSchemaDefinition } from '@formkit/core';
|
|
31
31
|
|
|
32
32
|
import { Btn } from '@bagelink/vue';
|
|
33
|
-
import { useModal } from '..';
|
|
33
|
+
import { useModal, useI18nT } from '..';
|
|
34
34
|
|
|
35
35
|
const { showModal } = useModal();
|
|
36
|
+
const i18nT = useI18nT();
|
|
36
37
|
const emits = defineEmits(['update:modelValue', 'submit']);
|
|
37
38
|
const handleEmit = (val: any) => emits('update:modelValue', val);
|
|
38
39
|
const runSubmit = (val: any) => emits('submit', val);
|
|
39
40
|
|
|
40
|
-
const props =
|
|
41
|
+
const props = defineProps<{
|
|
41
42
|
modelValue?: any;
|
|
42
43
|
schema: FormKitSchemaDefinition;
|
|
43
44
|
// eslint-disable-next-line no-unused-vars
|
|
44
45
|
onDelete?: ((id: string) => void);
|
|
45
|
-
|
|
46
|
-
i18nT?: (key: string) => string;
|
|
47
|
-
}>(), {
|
|
48
|
-
i18nT: (key: string) => key,
|
|
49
|
-
});
|
|
46
|
+
}>();
|
|
50
47
|
|
|
51
48
|
const data = reactive({
|
|
52
49
|
...props.modelValue,
|
|
53
|
-
t: (val: string) =>
|
|
50
|
+
t: (val: string) => i18nT?.(val) || val,
|
|
54
51
|
});
|
|
55
52
|
|
|
56
53
|
const runDelete = () => {
|
|
57
54
|
showModal(
|
|
58
55
|
{
|
|
59
56
|
class: 'small-modal',
|
|
60
|
-
title:
|
|
57
|
+
title: i18nT('Are you sure?'),
|
|
61
58
|
actions: [
|
|
62
59
|
{
|
|
63
60
|
value: 'Confirm',
|
|
@@ -67,7 +64,7 @@ const runDelete = () => {
|
|
|
67
64
|
{ value: 'Cancel', color: 'gray' },
|
|
68
65
|
],
|
|
69
66
|
},
|
|
70
|
-
{ default:
|
|
67
|
+
{ default: i18nT('form.deleteMessage') },
|
|
71
68
|
);
|
|
72
69
|
};
|
|
73
70
|
</script>
|