@fctc/sme-widget-ui 2.3.7 → 2.3.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/dist/index.js +13 -5
- package/dist/index.mjs +13 -5
- package/dist/widgets.d.mts +3 -0
- package/dist/widgets.d.ts +3 -0
- package/dist/widgets.js +13 -5
- package/dist/widgets.mjs +13 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17145,14 +17145,19 @@ var typeStyles = {
|
|
|
17145
17145
|
border: "1px solid #F6B51E"
|
|
17146
17146
|
},
|
|
17147
17147
|
default: {
|
|
17148
|
-
backgroundColor: "#
|
|
17149
|
-
color: "#
|
|
17150
|
-
border: "1px solid #
|
|
17148
|
+
backgroundColor: "#FFFFFF",
|
|
17149
|
+
color: "#666",
|
|
17150
|
+
border: "1px solid #AEAEAE"
|
|
17151
17151
|
},
|
|
17152
17152
|
light: {
|
|
17153
17153
|
backgroundColor: "#fff",
|
|
17154
17154
|
color: "#1f2937",
|
|
17155
17155
|
border: "1px solid #1f2937"
|
|
17156
|
+
},
|
|
17157
|
+
purpled: {
|
|
17158
|
+
backgroundColor: "#DCD5FF",
|
|
17159
|
+
color: "#5946F9",
|
|
17160
|
+
border: "1px solid #5946F9"
|
|
17156
17161
|
}
|
|
17157
17162
|
};
|
|
17158
17163
|
var baseStyle = {
|
|
@@ -17167,16 +17172,19 @@ var baseStyle = {
|
|
|
17167
17172
|
height: "fit-content"
|
|
17168
17173
|
};
|
|
17169
17174
|
var ButtonBadgeField = (props) => {
|
|
17170
|
-
const { defaultValue, selection, value, formValues, domainHelper, type } = props;
|
|
17175
|
+
const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
|
|
17171
17176
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
17172
17177
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
17173
17178
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
17174
17179
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
17180
|
+
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
17181
|
+
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
17175
17182
|
const getType = () => {
|
|
17176
17183
|
if (decorationInfo) return typeStyles["info"];
|
|
17177
17184
|
if (decorationSuccess) return typeStyles["success"];
|
|
17178
17185
|
if (decorationDanger) return typeStyles["danger"];
|
|
17179
|
-
if (decorationWarning) return typeStyles["warning"];
|
|
17186
|
+
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
17187
|
+
if (decorationPurpled) return typeStyles["purpled"];
|
|
17180
17188
|
return typeStyles["default"];
|
|
17181
17189
|
};
|
|
17182
17190
|
const getLabel = (value2) => {
|
package/dist/index.mjs
CHANGED
|
@@ -17018,14 +17018,19 @@ var typeStyles = {
|
|
|
17018
17018
|
border: "1px solid #F6B51E"
|
|
17019
17019
|
},
|
|
17020
17020
|
default: {
|
|
17021
|
-
backgroundColor: "#
|
|
17022
|
-
color: "#
|
|
17023
|
-
border: "1px solid #
|
|
17021
|
+
backgroundColor: "#FFFFFF",
|
|
17022
|
+
color: "#666",
|
|
17023
|
+
border: "1px solid #AEAEAE"
|
|
17024
17024
|
},
|
|
17025
17025
|
light: {
|
|
17026
17026
|
backgroundColor: "#fff",
|
|
17027
17027
|
color: "#1f2937",
|
|
17028
17028
|
border: "1px solid #1f2937"
|
|
17029
|
+
},
|
|
17030
|
+
purpled: {
|
|
17031
|
+
backgroundColor: "#DCD5FF",
|
|
17032
|
+
color: "#5946F9",
|
|
17033
|
+
border: "1px solid #5946F9"
|
|
17029
17034
|
}
|
|
17030
17035
|
};
|
|
17031
17036
|
var baseStyle = {
|
|
@@ -17040,16 +17045,19 @@ var baseStyle = {
|
|
|
17040
17045
|
height: "fit-content"
|
|
17041
17046
|
};
|
|
17042
17047
|
var ButtonBadgeField = (props) => {
|
|
17043
|
-
const { defaultValue, selection, value, formValues, domainHelper, type } = props;
|
|
17048
|
+
const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
|
|
17044
17049
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
17045
17050
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
17046
17051
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
17047
17052
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
17053
|
+
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
17054
|
+
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
17048
17055
|
const getType = () => {
|
|
17049
17056
|
if (decorationInfo) return typeStyles["info"];
|
|
17050
17057
|
if (decorationSuccess) return typeStyles["success"];
|
|
17051
17058
|
if (decorationDanger) return typeStyles["danger"];
|
|
17052
|
-
if (decorationWarning) return typeStyles["warning"];
|
|
17059
|
+
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
17060
|
+
if (decorationPurpled) return typeStyles["purpled"];
|
|
17053
17061
|
return typeStyles["default"];
|
|
17054
17062
|
};
|
|
17055
17063
|
const getLabel = (value2) => {
|
package/dist/widgets.d.mts
CHANGED
|
@@ -177,7 +177,10 @@ interface IButtonBadgeProps extends IInputFieldProps {
|
|
|
177
177
|
'decoration-info'?: any;
|
|
178
178
|
'decoration-danger'?: any;
|
|
179
179
|
'decoration-warning'?: any;
|
|
180
|
+
'decoration-purpled'?: any;
|
|
181
|
+
'decoration-oranged'?: any;
|
|
180
182
|
domainHelper?: any;
|
|
183
|
+
class?: string;
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
|
package/dist/widgets.d.ts
CHANGED
|
@@ -177,7 +177,10 @@ interface IButtonBadgeProps extends IInputFieldProps {
|
|
|
177
177
|
'decoration-info'?: any;
|
|
178
178
|
'decoration-danger'?: any;
|
|
179
179
|
'decoration-warning'?: any;
|
|
180
|
+
'decoration-purpled'?: any;
|
|
181
|
+
'decoration-oranged'?: any;
|
|
180
182
|
domainHelper?: any;
|
|
183
|
+
class?: string;
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
|
package/dist/widgets.js
CHANGED
|
@@ -16394,14 +16394,19 @@ var typeStyles = {
|
|
|
16394
16394
|
border: "1px solid #F6B51E"
|
|
16395
16395
|
},
|
|
16396
16396
|
default: {
|
|
16397
|
-
backgroundColor: "#
|
|
16398
|
-
color: "#
|
|
16399
|
-
border: "1px solid #
|
|
16397
|
+
backgroundColor: "#FFFFFF",
|
|
16398
|
+
color: "#666",
|
|
16399
|
+
border: "1px solid #AEAEAE"
|
|
16400
16400
|
},
|
|
16401
16401
|
light: {
|
|
16402
16402
|
backgroundColor: "#fff",
|
|
16403
16403
|
color: "#1f2937",
|
|
16404
16404
|
border: "1px solid #1f2937"
|
|
16405
|
+
},
|
|
16406
|
+
purpled: {
|
|
16407
|
+
backgroundColor: "#DCD5FF",
|
|
16408
|
+
color: "#5946F9",
|
|
16409
|
+
border: "1px solid #5946F9"
|
|
16405
16410
|
}
|
|
16406
16411
|
};
|
|
16407
16412
|
var baseStyle = {
|
|
@@ -16416,16 +16421,19 @@ var baseStyle = {
|
|
|
16416
16421
|
height: "fit-content"
|
|
16417
16422
|
};
|
|
16418
16423
|
var ButtonBadgeField = (props) => {
|
|
16419
|
-
const { defaultValue, selection, value, formValues, domainHelper, type } = props;
|
|
16424
|
+
const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
|
|
16420
16425
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
16421
16426
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
16422
16427
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
16423
16428
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
16429
|
+
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
16430
|
+
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
16424
16431
|
const getType = () => {
|
|
16425
16432
|
if (decorationInfo) return typeStyles["info"];
|
|
16426
16433
|
if (decorationSuccess) return typeStyles["success"];
|
|
16427
16434
|
if (decorationDanger) return typeStyles["danger"];
|
|
16428
|
-
if (decorationWarning) return typeStyles["warning"];
|
|
16435
|
+
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
16436
|
+
if (decorationPurpled) return typeStyles["purpled"];
|
|
16429
16437
|
return typeStyles["default"];
|
|
16430
16438
|
};
|
|
16431
16439
|
const getLabel = (value2) => {
|
package/dist/widgets.mjs
CHANGED
|
@@ -16331,14 +16331,19 @@ var typeStyles = {
|
|
|
16331
16331
|
border: "1px solid #F6B51E"
|
|
16332
16332
|
},
|
|
16333
16333
|
default: {
|
|
16334
|
-
backgroundColor: "#
|
|
16335
|
-
color: "#
|
|
16336
|
-
border: "1px solid #
|
|
16334
|
+
backgroundColor: "#FFFFFF",
|
|
16335
|
+
color: "#666",
|
|
16336
|
+
border: "1px solid #AEAEAE"
|
|
16337
16337
|
},
|
|
16338
16338
|
light: {
|
|
16339
16339
|
backgroundColor: "#fff",
|
|
16340
16340
|
color: "#1f2937",
|
|
16341
16341
|
border: "1px solid #1f2937"
|
|
16342
|
+
},
|
|
16343
|
+
purpled: {
|
|
16344
|
+
backgroundColor: "#DCD5FF",
|
|
16345
|
+
color: "#5946F9",
|
|
16346
|
+
border: "1px solid #5946F9"
|
|
16342
16347
|
}
|
|
16343
16348
|
};
|
|
16344
16349
|
var baseStyle = {
|
|
@@ -16353,16 +16358,19 @@ var baseStyle = {
|
|
|
16353
16358
|
height: "fit-content"
|
|
16354
16359
|
};
|
|
16355
16360
|
var ButtonBadgeField = (props) => {
|
|
16356
|
-
const { defaultValue, selection, value, formValues, domainHelper, type } = props;
|
|
16361
|
+
const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
|
|
16357
16362
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
16358
16363
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
16359
16364
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
16360
16365
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
16366
|
+
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
16367
|
+
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
16361
16368
|
const getType = () => {
|
|
16362
16369
|
if (decorationInfo) return typeStyles["info"];
|
|
16363
16370
|
if (decorationSuccess) return typeStyles["success"];
|
|
16364
16371
|
if (decorationDanger) return typeStyles["danger"];
|
|
16365
|
-
if (decorationWarning) return typeStyles["warning"];
|
|
16372
|
+
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
16373
|
+
if (decorationPurpled) return typeStyles["purpled"];
|
|
16366
16374
|
return typeStyles["default"];
|
|
16367
16375
|
};
|
|
16368
16376
|
const getLabel = (value2) => {
|