@gct-paas/schema 0.1.4-dev.8 → 0.1.5-dev.0
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/index.esm.min.js +1 -0
- package/es/constants/design.d.ts +26 -0
- package/es/constants/design.mjs +30 -0
- package/es/constants/index.d.ts +28 -0
- package/es/constants/index.mjs +411 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +13 -10
- package/es/interface/common/data-linkage-config.d.ts +17 -0
- package/es/interface/design/i-design-container-node.d.ts +13 -0
- package/es/interface/design/i-design-data.d.ts +44 -0
- package/es/interface/design/i-design-editor-data.d.ts +20 -0
- package/es/interface/design/i-design-editor-node.d.ts +15 -0
- package/es/interface/design/i-design-node-data.d.ts +19 -0
- package/es/interface/design/i-design-node.d.ts +80 -0
- package/es/interface/design/i-design-page-node-data.d.ts +15 -0
- package/es/interface/design/i-design-tree-item.d.ts +26 -0
- package/es/interface/design/i-drag-data-item.d.ts +46 -0
- package/es/interface/design/index.d.ts +9 -0
- package/es/interface/designer.d.ts +8 -7
- package/es/interface/index.d.ts +7 -2
- package/es/interface/modal/i-modal-body.d.ts +1 -1
- package/es/interface/modal/i-modal.d.ts +1 -1
- package/es/interface/relationship-diagram-config/i-relationship-diagram-node.d.ts +82 -0
- package/es/interface/relationship-diagram-config/i-rule-config.d.ts +135 -0
- package/es/interface/relationship-diagram-config/index.d.ts +2 -0
- package/es/interface/schema/index.d.ts +2 -0
- package/es/interface/schema/widget-props/i-button-props.d.ts +170 -0
- package/es/interface/schema/widget-props/i-card-list-props.d.ts +79 -0
- package/es/interface/schema/widget-props/i-display-props.d.ts +48 -0
- package/es/interface/schema/widget-props/i-form-container-props.d.ts +91 -0
- package/es/interface/schema/widget-props/i-form-input-props.d.ts +409 -0
- package/es/interface/schema/widget-props/i-layout-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-search-widget-props.d.ts +132 -0
- package/es/interface/schema/widget-props/i-table-column-props.d.ts +54 -0
- package/es/interface/schema/widget-props/i-table-props.d.ts +384 -0
- package/es/interface/schema/widget-props/index.d.ts +9 -0
- package/es/interface/schema/widget-types.d.ts +399 -0
- package/es/interface/widget/i-common.d.ts +2 -1
- package/es/interface/widget/i-editors.d.ts +3 -2
- package/es/interface/widget/i-events.d.ts +2 -9
- package/es/interface/widget/i-hooks-and-misc.d.ts +1 -0
- package/es/interface/widget/i-props.d.ts +14 -32
- package/es/interface/widget/i-schemas.d.ts +6 -4
- package/es/interface/widget/i-styles.d.ts +2 -1
- package/es/interface/widget/index.d.ts +9 -2
- package/es/interface/widget-info/i-designer-item-hooks.d.ts +21 -0
- package/es/interface/widget-info/i-designer-schema-exports.d.ts +13 -0
- package/es/interface/widget-info/i-widget-info-item.d.ts +78 -0
- package/es/interface/widget-info/i-widget-info.d.ts +19 -0
- package/es/interface/widget-info/index.d.ts +4 -0
- package/es/utils/field-editor-override-registry/field-editor-override-registry.d.ts +36 -0
- package/es/utils/field-editor-override-registry/field-editor-override-registry.mjs +29 -0
- package/es/utils/index.d.ts +4 -2
- package/es/utils/index.mjs +6 -0
- package/es/utils/schema/index.d.ts +38 -1
- package/es/utils/schema/index.mjs +83 -5
- package/es/utils/schema/search.d.ts +9 -0
- package/es/utils/schema/search.mjs +146 -0
- package/es/utils/schema/utils.d.ts +21 -0
- package/es/utils/schema/utils.mjs +182 -0
- package/es/utils/schema-style/index.mjs +203 -127
- package/es/utils/widget-info/widget-info.d.ts +104 -0
- package/es/utils/widget-info/widget-info.mjs +151 -0
- package/package.json +12 -13
- package/dist/index.esm.min.mjs +0 -237
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
- package/es/schema/common-config/common-style.d.ts +0 -3
- package/es/schema/common-config/common-style.mjs +0 -85
- package/es/schema/index.d.ts +0 -1
package/dist/index.esm.min.mjs
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { BorderStyle as i, TagTypeEnum as b, TextDecoration as g } from "@gct-paas/core";
|
|
2
|
-
import { has as m, isEmpty as a, pick as u, isNil as l } from "lodash-es";
|
|
3
|
-
const B = {
|
|
4
|
-
position: "",
|
|
5
|
-
top: "",
|
|
6
|
-
left: "",
|
|
7
|
-
right: "",
|
|
8
|
-
bottom: "",
|
|
9
|
-
width: "",
|
|
10
|
-
height: "",
|
|
11
|
-
backgroundColor: "",
|
|
12
|
-
marginAll: "",
|
|
13
|
-
marginTop: "",
|
|
14
|
-
marginRight: "",
|
|
15
|
-
marginBottom: "",
|
|
16
|
-
marginLeft: "",
|
|
17
|
-
paddingAll: "",
|
|
18
|
-
paddingTop: "",
|
|
19
|
-
paddingRight: "",
|
|
20
|
-
paddingBottom: "",
|
|
21
|
-
paddingLeft: "",
|
|
22
|
-
labelFont: {
|
|
23
|
-
align: "left",
|
|
24
|
-
fontSize: "",
|
|
25
|
-
bold: !1,
|
|
26
|
-
italic: !1,
|
|
27
|
-
textDecoration: g.NONE,
|
|
28
|
-
color: ""
|
|
29
|
-
},
|
|
30
|
-
contentFont: {
|
|
31
|
-
align: "left",
|
|
32
|
-
fontSize: "",
|
|
33
|
-
bold: !1,
|
|
34
|
-
italic: !1,
|
|
35
|
-
textDecoration: g.NONE,
|
|
36
|
-
color: ""
|
|
37
|
-
},
|
|
38
|
-
tagStyle: {
|
|
39
|
-
color: "",
|
|
40
|
-
tagType: b.RADIUS
|
|
41
|
-
},
|
|
42
|
-
tagStyleOpen: !1,
|
|
43
|
-
borderAll: {
|
|
44
|
-
borderStyle: i.NONE,
|
|
45
|
-
borderColor: "#F0F0F0",
|
|
46
|
-
borderWidth: "1"
|
|
47
|
-
},
|
|
48
|
-
borderLeft: {
|
|
49
|
-
borderStyle: i.NONE,
|
|
50
|
-
borderColor: "#F0F0F0",
|
|
51
|
-
borderWidth: "1"
|
|
52
|
-
},
|
|
53
|
-
borderRight: {
|
|
54
|
-
borderStyle: i.NONE,
|
|
55
|
-
borderColor: "#F0F0F0",
|
|
56
|
-
borderWidth: "1"
|
|
57
|
-
},
|
|
58
|
-
borderBottom: {
|
|
59
|
-
borderStyle: i.NONE,
|
|
60
|
-
borderColor: "#F0F0F0",
|
|
61
|
-
borderWidth: "1"
|
|
62
|
-
},
|
|
63
|
-
borderTop: {
|
|
64
|
-
borderStyle: i.NONE,
|
|
65
|
-
borderColor: "#F0F0F0",
|
|
66
|
-
borderWidth: "1"
|
|
67
|
-
},
|
|
68
|
-
borderTopRightRadius: "0",
|
|
69
|
-
borderTopLeftRadius: "0",
|
|
70
|
-
borderBottomRightRadius: "0",
|
|
71
|
-
borderBottomLeftRadius: "0",
|
|
72
|
-
borderAllRadius: "0"
|
|
73
|
-
}, E = [
|
|
74
|
-
"position",
|
|
75
|
-
"backgroundColor",
|
|
76
|
-
"bold",
|
|
77
|
-
"italic",
|
|
78
|
-
"textDecoration",
|
|
79
|
-
"color",
|
|
80
|
-
"borderStyle",
|
|
81
|
-
"borderColor"
|
|
82
|
-
];
|
|
83
|
-
function O(t, r, e) {
|
|
84
|
-
return t.type === e && m(t, "preLocation") && new RegExp(`^${r}_`).test(t.preLocation);
|
|
85
|
-
}
|
|
86
|
-
function h(t) {
|
|
87
|
-
return t + "px";
|
|
88
|
-
}
|
|
89
|
-
function o(t) {
|
|
90
|
-
return a(t) ? "" : `${t}px !important`;
|
|
91
|
-
}
|
|
92
|
-
function f(t) {
|
|
93
|
-
return a(t) ? "" : `${t} !important`;
|
|
94
|
-
}
|
|
95
|
-
function p(t) {
|
|
96
|
-
return !t || a(t.borderWidth) ? "" : `${t.borderWidth}px ${t.borderStyle || "solid"} ${t.borderColor || "transparent"} !important`;
|
|
97
|
-
}
|
|
98
|
-
const s = {
|
|
99
|
-
fontAttrs: [
|
|
100
|
-
"fontWeight",
|
|
101
|
-
"fontSize",
|
|
102
|
-
"color",
|
|
103
|
-
"textDecorationLine",
|
|
104
|
-
"textAlign"
|
|
105
|
-
],
|
|
106
|
-
mapAttrs: {
|
|
107
|
-
bold: {
|
|
108
|
-
attr: "fontWeight",
|
|
109
|
-
callback: (t) => t ? 700 : 400
|
|
110
|
-
},
|
|
111
|
-
italic: {
|
|
112
|
-
attr: "fontStyle",
|
|
113
|
-
callback: (t) => t ? "italic" : "normal"
|
|
114
|
-
},
|
|
115
|
-
textDecoration: {
|
|
116
|
-
attr: "textDecorationLine"
|
|
117
|
-
},
|
|
118
|
-
fontSize: {
|
|
119
|
-
attr: "fontSize",
|
|
120
|
-
callback: (t) => t ? h(t) : ""
|
|
121
|
-
},
|
|
122
|
-
align: {
|
|
123
|
-
attr: "textAlign"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function C(t, r = s) {
|
|
128
|
-
if (!t) return {};
|
|
129
|
-
const e = {};
|
|
130
|
-
return Object.assign(e, u(t, r.fontAttrs)), typeof r.mapAttrs == "object" && Object.keys(r.mapAttrs).forEach((n) => {
|
|
131
|
-
const { attr: d, callback: c } = r.mapAttrs[n];
|
|
132
|
-
e[d] = typeof c == "function" ? c(t[n]) : t[n];
|
|
133
|
-
}), e;
|
|
134
|
-
}
|
|
135
|
-
function D(t = {}) {
|
|
136
|
-
const r = {};
|
|
137
|
-
for (const e in t)
|
|
138
|
-
r[e] = R(e, t[e]);
|
|
139
|
-
return r;
|
|
140
|
-
}
|
|
141
|
-
const S = [
|
|
142
|
-
"opacity",
|
|
143
|
-
"zIndex",
|
|
144
|
-
"fontWeight",
|
|
145
|
-
"lineHeight",
|
|
146
|
-
"letterSpacing",
|
|
147
|
-
"wordSpacing",
|
|
148
|
-
"textAlign",
|
|
149
|
-
"textDecoration",
|
|
150
|
-
"textTransform",
|
|
151
|
-
"fontStyle",
|
|
152
|
-
"textDecorationLine"
|
|
153
|
-
];
|
|
154
|
-
function R(t, r) {
|
|
155
|
-
return l(r) || a(r) ? "" : S.includes(t) ? r + " !important" : r + "px !important";
|
|
156
|
-
}
|
|
157
|
-
const x = {
|
|
158
|
-
left: "flex-start",
|
|
159
|
-
center: "center",
|
|
160
|
-
right: "flex-end",
|
|
161
|
-
justify: "space-between"
|
|
162
|
-
};
|
|
163
|
-
function W(t) {
|
|
164
|
-
return x[t] || t;
|
|
165
|
-
}
|
|
166
|
-
function T(t) {
|
|
167
|
-
return {
|
|
168
|
-
position: f(t.position),
|
|
169
|
-
top: o(t.top),
|
|
170
|
-
left: o(t.left),
|
|
171
|
-
right: o(t.right),
|
|
172
|
-
bottom: o(t.bottom),
|
|
173
|
-
width: o(t.width),
|
|
174
|
-
height: o(t.height)
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function L(t) {
|
|
178
|
-
return {
|
|
179
|
-
backgroundColor: f(t.backgroundColor),
|
|
180
|
-
marginTop: o(t.marginTop),
|
|
181
|
-
marginRight: o(t.marginRight),
|
|
182
|
-
marginBottom: o(t.marginBottom),
|
|
183
|
-
marginLeft: o(t.marginLeft),
|
|
184
|
-
paddingTop: o(t.paddingTop),
|
|
185
|
-
paddingRight: o(t.paddingRight),
|
|
186
|
-
paddingBottom: o(t.paddingBottom),
|
|
187
|
-
paddingLeft: o(t.paddingLeft)
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
function F(t) {
|
|
191
|
-
return {
|
|
192
|
-
borderLeft: p(t.borderLeft),
|
|
193
|
-
borderRight: p(t.borderRight),
|
|
194
|
-
borderBottom: p(t.borderBottom),
|
|
195
|
-
borderTop: p(t.borderTop),
|
|
196
|
-
borderTopRightRadius: o(t.borderTopRightRadius),
|
|
197
|
-
borderTopLeftRadius: o(t.borderTopLeftRadius),
|
|
198
|
-
borderBottomRightRadius: o(t.borderBottomRightRadius),
|
|
199
|
-
borderBottomLeftRadius: o(t.borderBottomLeftRadius)
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
function k(t, r = []) {
|
|
203
|
-
const e = {
|
|
204
|
-
...T(t),
|
|
205
|
-
...L(t),
|
|
206
|
-
...F(t)
|
|
207
|
-
};
|
|
208
|
-
return r.forEach((n) => {
|
|
209
|
-
delete e[n];
|
|
210
|
-
}), Object.keys(e).forEach((n) => {
|
|
211
|
-
const d = e[n];
|
|
212
|
-
(l(d) || a(d)) && delete e[n];
|
|
213
|
-
}), e;
|
|
214
|
-
}
|
|
215
|
-
const _ = {
|
|
216
|
-
install() {
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
export {
|
|
220
|
-
x as ALIGN_TO_FLEX_MAP,
|
|
221
|
-
f as addImportant,
|
|
222
|
-
o as addPxUnit,
|
|
223
|
-
B as commonStyle,
|
|
224
|
-
_ as default,
|
|
225
|
-
C as extractFontStyle,
|
|
226
|
-
p as formatBorder,
|
|
227
|
-
F as generateBorderStyles,
|
|
228
|
-
T as generatePositionStyles,
|
|
229
|
-
L as generateSpacingStyles,
|
|
230
|
-
k as generateWrapperStyle,
|
|
231
|
-
O as getCompPos,
|
|
232
|
-
R as makeStyleProp,
|
|
233
|
-
E as notNeedPxStyle,
|
|
234
|
-
D as propsToStyle,
|
|
235
|
-
h as pxToVw,
|
|
236
|
-
W as transAlign2flex
|
|
237
|
-
};
|
package/dist/index.min.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("@gct-paas/core"),n=require("lodash-es"),S={position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:a.TextDecoration.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:a.TextDecoration.NONE,color:""},tagStyle:{color:"",tagType:a.TagTypeEnum.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"},h=["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"];function x(t,r,e){return t.type===e&&n.has(t,"preLocation")&&new RegExp(`^${r}_`).test(t.preLocation)}function g(t){return t+"px"}function o(t){return n.isEmpty(t)?"":`${t}px !important`}function p(t){return n.isEmpty(t)?"":`${t} !important`}function d(t){return!t||n.isEmpty(t.borderWidth)?"":`${t.borderWidth}px ${t.borderStyle||"solid"} ${t.borderColor||"transparent"} !important`}const T={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:t=>t?700:400},italic:{attr:"fontStyle",callback:t=>t?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:t=>t?g(t):""},align:{attr:"textAlign"}}};function R(t,r=T){if(!t)return{};const e={};return Object.assign(e,n.pick(t,r.fontAttrs)),typeof r.mapAttrs=="object"&&Object.keys(r.mapAttrs).forEach(i=>{const{attr:l,callback:c}=r.mapAttrs[i];e[l]=typeof c=="function"?c(t[i]):t[i]}),e}function y(t={}){const r={};for(const e in t)r[e]=f(e,t[e]);return r}const L=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function f(t,r){return n.isNil(r)||n.isEmpty(r)?"":L.includes(t)?r+" !important":r+"px !important"}const b={left:"flex-start",center:"center",right:"flex-end",justify:"space-between"};function B(t){return b[t]||t}function m(t){return{position:p(t.position),top:o(t.top),left:o(t.left),right:o(t.right),bottom:o(t.bottom),width:o(t.width),height:o(t.height)}}function s(t){return{backgroundColor:p(t.backgroundColor),marginTop:o(t.marginTop),marginRight:o(t.marginRight),marginBottom:o(t.marginBottom),marginLeft:o(t.marginLeft),paddingTop:o(t.paddingTop),paddingRight:o(t.paddingRight),paddingBottom:o(t.paddingBottom),paddingLeft:o(t.paddingLeft)}}function u(t){return{borderLeft:d(t.borderLeft),borderRight:d(t.borderRight),borderBottom:d(t.borderBottom),borderTop:d(t.borderTop),borderTopRightRadius:o(t.borderTopRightRadius),borderTopLeftRadius:o(t.borderTopLeftRadius),borderBottomRightRadius:o(t.borderBottomRightRadius),borderBottomLeftRadius:o(t.borderBottomLeftRadius)}}function E(t,r=[]){const e={...m(t),...s(t),...u(t)};return r.forEach(i=>{delete e[i]}),Object.keys(e).forEach(i=>{const l=e[i];(n.isNil(l)||n.isEmpty(l))&&delete e[i]}),e}const F={install(){}};exports.ALIGN_TO_FLEX_MAP=b;exports.addImportant=p;exports.addPxUnit=o;exports.commonStyle=S;exports.default=F;exports.extractFontStyle=R;exports.formatBorder=d;exports.generateBorderStyles=u;exports.generatePositionStyles=m;exports.generateSpacingStyles=s;exports.generateWrapperStyle=E;exports.getCompPos=x;exports.makeStyleProp=f;exports.notNeedPxStyle=h;exports.propsToStyle=y;exports.pxToVw=g;exports.transAlign2flex=B;
|
package/dist/index.system.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["@gct-paas/core","lodash-es"],(function(c,D){"use strict";var a,m,l,s,d,u,f;return{setters:[n=>{a=n.BorderStyle,m=n.TagTypeEnum,l=n.TextDecoration},n=>{s=n.has,d=n.isEmpty,u=n.pick,f=n.isNil}],execute:(function(){c({addImportant:b,addPxUnit:o,extractFontStyle:y,formatBorder:p,generateBorderStyles:R,generatePositionStyles:T,generateSpacingStyles:x,generateWrapperStyle:C,getCompPos:F,makeStyleProp:S,propsToStyle:A,pxToVw:h,transAlign2flex:O});const n=c("commonStyle",{position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:l.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:l.NONE,color:""},tagStyle:{color:"",tagType:m.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"}),P=c("notNeedPxStyle",["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"]);function F(t,r,e){return t.type===e&&s(t,"preLocation")&&new RegExp(`^${r}_`).test(t.preLocation)}function h(t){return t+"px"}function o(t){return d(t)?"":`${t}px !important`}function b(t){return d(t)?"":`${t} !important`}function p(t){return!t||d(t.borderWidth)?"":`${t.borderWidth}px ${t.borderStyle||"solid"} ${t.borderColor||"transparent"} !important`}const N={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:t=>t?700:400},italic:{attr:"fontStyle",callback:t=>t?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:t=>t?h(t):""},align:{attr:"textAlign"}}};function y(t,r=N){if(!t)return{};const e={};return Object.assign(e,u(t,r.fontAttrs)),typeof r.mapAttrs=="object"&&Object.keys(r.mapAttrs).forEach(i=>{const{attr:g,callback:L}=r.mapAttrs[i];e[g]=typeof L=="function"?L(t[i]):t[i]}),e}function A(t={}){const r={};for(const e in t)r[e]=S(e,t[e]);return r}const B=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function S(t,r){return f(r)||d(r)?"":B.includes(t)?r+" !important":r+"px !important"}const E=c("ALIGN_TO_FLEX_MAP",{left:"flex-start",center:"center",right:"flex-end",justify:"space-between"});function O(t){return E[t]||t}function T(t){return{position:b(t.position),top:o(t.top),left:o(t.left),right:o(t.right),bottom:o(t.bottom),width:o(t.width),height:o(t.height)}}function x(t){return{backgroundColor:b(t.backgroundColor),marginTop:o(t.marginTop),marginRight:o(t.marginRight),marginBottom:o(t.marginBottom),marginLeft:o(t.marginLeft),paddingTop:o(t.paddingTop),paddingRight:o(t.paddingRight),paddingBottom:o(t.paddingBottom),paddingLeft:o(t.paddingLeft)}}function R(t){return{borderLeft:p(t.borderLeft),borderRight:p(t.borderRight),borderBottom:p(t.borderBottom),borderTop:p(t.borderTop),borderTopRightRadius:o(t.borderTopRightRadius),borderTopLeftRadius:o(t.borderTopLeftRadius),borderBottomRightRadius:o(t.borderBottomRightRadius),borderBottomLeftRadius:o(t.borderBottomLeftRadius)}}function C(t,r=[]){const e={...T(t),...x(t),...R(t)};return r.forEach(i=>{delete e[i]}),Object.keys(e).forEach(i=>{const g=e[i];(f(g)||d(g))&&delete e[i]}),e}const W=c("default",{install(){}})})}}));
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { BorderStyle, TagTypeEnum, TextDecoration } from '@gct-paas/core';
|
|
2
|
-
|
|
3
|
-
const commonStyle = {
|
|
4
|
-
position: "",
|
|
5
|
-
top: "",
|
|
6
|
-
left: "",
|
|
7
|
-
right: "",
|
|
8
|
-
bottom: "",
|
|
9
|
-
width: "",
|
|
10
|
-
height: "",
|
|
11
|
-
backgroundColor: "",
|
|
12
|
-
marginAll: "",
|
|
13
|
-
marginTop: "",
|
|
14
|
-
marginRight: "",
|
|
15
|
-
marginBottom: "",
|
|
16
|
-
marginLeft: "",
|
|
17
|
-
paddingAll: "",
|
|
18
|
-
paddingTop: "",
|
|
19
|
-
paddingRight: "",
|
|
20
|
-
paddingBottom: "",
|
|
21
|
-
paddingLeft: "",
|
|
22
|
-
labelFont: {
|
|
23
|
-
align: "left",
|
|
24
|
-
fontSize: "",
|
|
25
|
-
bold: false,
|
|
26
|
-
italic: false,
|
|
27
|
-
textDecoration: TextDecoration.NONE,
|
|
28
|
-
color: ""
|
|
29
|
-
},
|
|
30
|
-
contentFont: {
|
|
31
|
-
align: "left",
|
|
32
|
-
fontSize: "",
|
|
33
|
-
bold: false,
|
|
34
|
-
italic: false,
|
|
35
|
-
textDecoration: TextDecoration.NONE,
|
|
36
|
-
color: ""
|
|
37
|
-
},
|
|
38
|
-
tagStyle: {
|
|
39
|
-
color: "",
|
|
40
|
-
tagType: TagTypeEnum.RADIUS
|
|
41
|
-
},
|
|
42
|
-
tagStyleOpen: false,
|
|
43
|
-
borderAll: {
|
|
44
|
-
borderStyle: BorderStyle.NONE,
|
|
45
|
-
borderColor: "#F0F0F0",
|
|
46
|
-
borderWidth: "1"
|
|
47
|
-
},
|
|
48
|
-
borderLeft: {
|
|
49
|
-
borderStyle: BorderStyle.NONE,
|
|
50
|
-
borderColor: "#F0F0F0",
|
|
51
|
-
borderWidth: "1"
|
|
52
|
-
},
|
|
53
|
-
borderRight: {
|
|
54
|
-
borderStyle: BorderStyle.NONE,
|
|
55
|
-
borderColor: "#F0F0F0",
|
|
56
|
-
borderWidth: "1"
|
|
57
|
-
},
|
|
58
|
-
borderBottom: {
|
|
59
|
-
borderStyle: BorderStyle.NONE,
|
|
60
|
-
borderColor: "#F0F0F0",
|
|
61
|
-
borderWidth: "1"
|
|
62
|
-
},
|
|
63
|
-
borderTop: {
|
|
64
|
-
borderStyle: BorderStyle.NONE,
|
|
65
|
-
borderColor: "#F0F0F0",
|
|
66
|
-
borderWidth: "1"
|
|
67
|
-
},
|
|
68
|
-
borderTopRightRadius: "0",
|
|
69
|
-
borderTopLeftRadius: "0",
|
|
70
|
-
borderBottomRightRadius: "0",
|
|
71
|
-
borderBottomLeftRadius: "0",
|
|
72
|
-
borderAllRadius: "0"
|
|
73
|
-
};
|
|
74
|
-
const notNeedPxStyle = [
|
|
75
|
-
"position",
|
|
76
|
-
"backgroundColor",
|
|
77
|
-
"bold",
|
|
78
|
-
"italic",
|
|
79
|
-
"textDecoration",
|
|
80
|
-
"color",
|
|
81
|
-
"borderStyle",
|
|
82
|
-
"borderColor"
|
|
83
|
-
];
|
|
84
|
-
|
|
85
|
-
export { commonStyle, notNeedPxStyle };
|
package/es/schema/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { commonStyle, notNeedPxStyle } from './common-config/common-style';
|