@fctc/sme-widget-ui 2.3.8 → 2.4.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.js +17 -8
- package/dist/index.mjs +17 -8
- package/dist/widgets.d.mts +1 -0
- package/dist/widgets.d.ts +1 -0
- package/dist/widgets.js +17 -8
- package/dist/widgets.mjs +17 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17158,6 +17158,11 @@ var typeStyles = {
|
|
|
17158
17158
|
backgroundColor: "#DCD5FF",
|
|
17159
17159
|
color: "#5946F9",
|
|
17160
17160
|
border: "1px solid #5946F9"
|
|
17161
|
+
},
|
|
17162
|
+
blue_light: {
|
|
17163
|
+
backgroundColor: "#EEFEFF",
|
|
17164
|
+
color: "#23A9AE",
|
|
17165
|
+
border: "1px solid #23A9AE"
|
|
17161
17166
|
}
|
|
17162
17167
|
};
|
|
17163
17168
|
var baseStyle = {
|
|
@@ -17172,19 +17177,29 @@ var baseStyle = {
|
|
|
17172
17177
|
height: "fit-content"
|
|
17173
17178
|
};
|
|
17174
17179
|
var ButtonBadgeField = (props) => {
|
|
17175
|
-
const {
|
|
17180
|
+
const {
|
|
17181
|
+
defaultValue,
|
|
17182
|
+
selection,
|
|
17183
|
+
value,
|
|
17184
|
+
formValues,
|
|
17185
|
+
domainHelper,
|
|
17186
|
+
type,
|
|
17187
|
+
class: classField
|
|
17188
|
+
} = props;
|
|
17176
17189
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
17177
17190
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
17178
17191
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
17179
17192
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
17180
17193
|
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
17181
17194
|
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
17195
|
+
const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
|
|
17182
17196
|
const getType = () => {
|
|
17183
17197
|
if (decorationInfo) return typeStyles["info"];
|
|
17184
17198
|
if (decorationSuccess) return typeStyles["success"];
|
|
17185
17199
|
if (decorationDanger) return typeStyles["danger"];
|
|
17186
17200
|
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
17187
17201
|
if (decorationPurpled) return typeStyles["purpled"];
|
|
17202
|
+
if (decorationInforLight) return typeStyles["blue_light"];
|
|
17188
17203
|
return typeStyles["default"];
|
|
17189
17204
|
};
|
|
17190
17205
|
const getLabel = (value2) => {
|
|
@@ -32820,15 +32835,9 @@ var MonetaryField = (props) => {
|
|
|
32820
32835
|
] });
|
|
32821
32836
|
}
|
|
32822
32837
|
if (!isForm) {
|
|
32823
|
-
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
|
|
32824
|
-
if (widget === "monetary" && !formValues?.currency_id) {
|
|
32825
|
-
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: `${formatNumberOnly(
|
|
32826
|
-
parseFloat(String(value ?? defaultValue))
|
|
32827
|
-
)} ${symbol}` });
|
|
32828
|
-
}
|
|
32829
32838
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: `${formatNumberOnly(
|
|
32830
32839
|
parseFloat(value ?? defaultValue)
|
|
32831
|
-
)} ${
|
|
32840
|
+
)} ${symbol}` });
|
|
32832
32841
|
}
|
|
32833
32842
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
32834
32843
|
Controller,
|
package/dist/index.mjs
CHANGED
|
@@ -17031,6 +17031,11 @@ var typeStyles = {
|
|
|
17031
17031
|
backgroundColor: "#DCD5FF",
|
|
17032
17032
|
color: "#5946F9",
|
|
17033
17033
|
border: "1px solid #5946F9"
|
|
17034
|
+
},
|
|
17035
|
+
blue_light: {
|
|
17036
|
+
backgroundColor: "#EEFEFF",
|
|
17037
|
+
color: "#23A9AE",
|
|
17038
|
+
border: "1px solid #23A9AE"
|
|
17034
17039
|
}
|
|
17035
17040
|
};
|
|
17036
17041
|
var baseStyle = {
|
|
@@ -17045,19 +17050,29 @@ var baseStyle = {
|
|
|
17045
17050
|
height: "fit-content"
|
|
17046
17051
|
};
|
|
17047
17052
|
var ButtonBadgeField = (props) => {
|
|
17048
|
-
const {
|
|
17053
|
+
const {
|
|
17054
|
+
defaultValue,
|
|
17055
|
+
selection,
|
|
17056
|
+
value,
|
|
17057
|
+
formValues,
|
|
17058
|
+
domainHelper,
|
|
17059
|
+
type,
|
|
17060
|
+
class: classField
|
|
17061
|
+
} = props;
|
|
17049
17062
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
17050
17063
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
17051
17064
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
17052
17065
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
17053
17066
|
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
17054
17067
|
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
17068
|
+
const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
|
|
17055
17069
|
const getType = () => {
|
|
17056
17070
|
if (decorationInfo) return typeStyles["info"];
|
|
17057
17071
|
if (decorationSuccess) return typeStyles["success"];
|
|
17058
17072
|
if (decorationDanger) return typeStyles["danger"];
|
|
17059
17073
|
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
17060
17074
|
if (decorationPurpled) return typeStyles["purpled"];
|
|
17075
|
+
if (decorationInforLight) return typeStyles["blue_light"];
|
|
17061
17076
|
return typeStyles["default"];
|
|
17062
17077
|
};
|
|
17063
17078
|
const getLabel = (value2) => {
|
|
@@ -32693,15 +32708,9 @@ var MonetaryField = (props) => {
|
|
|
32693
32708
|
] });
|
|
32694
32709
|
}
|
|
32695
32710
|
if (!isForm) {
|
|
32696
|
-
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
|
|
32697
|
-
if (widget === "monetary" && !formValues?.currency_id) {
|
|
32698
|
-
return /* @__PURE__ */ jsx100("span", { children: `${formatNumberOnly(
|
|
32699
|
-
parseFloat(String(value ?? defaultValue))
|
|
32700
|
-
)} ${symbol}` });
|
|
32701
|
-
}
|
|
32702
32711
|
return /* @__PURE__ */ jsx100("span", { children: `${formatNumberOnly(
|
|
32703
32712
|
parseFloat(value ?? defaultValue)
|
|
32704
|
-
)} ${
|
|
32713
|
+
)} ${symbol}` });
|
|
32705
32714
|
}
|
|
32706
32715
|
return /* @__PURE__ */ jsx100(
|
|
32707
32716
|
Controller,
|
package/dist/widgets.d.mts
CHANGED
package/dist/widgets.d.ts
CHANGED
package/dist/widgets.js
CHANGED
|
@@ -16407,6 +16407,11 @@ var typeStyles = {
|
|
|
16407
16407
|
backgroundColor: "#DCD5FF",
|
|
16408
16408
|
color: "#5946F9",
|
|
16409
16409
|
border: "1px solid #5946F9"
|
|
16410
|
+
},
|
|
16411
|
+
blue_light: {
|
|
16412
|
+
backgroundColor: "#EEFEFF",
|
|
16413
|
+
color: "#23A9AE",
|
|
16414
|
+
border: "1px solid #23A9AE"
|
|
16410
16415
|
}
|
|
16411
16416
|
};
|
|
16412
16417
|
var baseStyle = {
|
|
@@ -16421,19 +16426,29 @@ var baseStyle = {
|
|
|
16421
16426
|
height: "fit-content"
|
|
16422
16427
|
};
|
|
16423
16428
|
var ButtonBadgeField = (props) => {
|
|
16424
|
-
const {
|
|
16429
|
+
const {
|
|
16430
|
+
defaultValue,
|
|
16431
|
+
selection,
|
|
16432
|
+
value,
|
|
16433
|
+
formValues,
|
|
16434
|
+
domainHelper,
|
|
16435
|
+
type,
|
|
16436
|
+
class: classField
|
|
16437
|
+
} = props;
|
|
16425
16438
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
16426
16439
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
16427
16440
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
16428
16441
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
16429
16442
|
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
16430
16443
|
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
16444
|
+
const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
|
|
16431
16445
|
const getType = () => {
|
|
16432
16446
|
if (decorationInfo) return typeStyles["info"];
|
|
16433
16447
|
if (decorationSuccess) return typeStyles["success"];
|
|
16434
16448
|
if (decorationDanger) return typeStyles["danger"];
|
|
16435
16449
|
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
16436
16450
|
if (decorationPurpled) return typeStyles["purpled"];
|
|
16451
|
+
if (decorationInforLight) return typeStyles["blue_light"];
|
|
16437
16452
|
return typeStyles["default"];
|
|
16438
16453
|
};
|
|
16439
16454
|
const getLabel = (value2) => {
|
|
@@ -32069,15 +32084,9 @@ var MonetaryField = (props) => {
|
|
|
32069
32084
|
] });
|
|
32070
32085
|
}
|
|
32071
32086
|
if (!isForm) {
|
|
32072
|
-
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
|
|
32073
|
-
if (widget === "monetary" && !formValues?.currency_id) {
|
|
32074
|
-
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: `${formatNumberOnly(
|
|
32075
|
-
parseFloat(String(value ?? defaultValue))
|
|
32076
|
-
)} ${symbol}` });
|
|
32077
|
-
}
|
|
32078
32087
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: `${formatNumberOnly(
|
|
32079
32088
|
parseFloat(value ?? defaultValue)
|
|
32080
|
-
)} ${
|
|
32089
|
+
)} ${symbol}` });
|
|
32081
32090
|
}
|
|
32082
32091
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
32083
32092
|
Controller,
|
package/dist/widgets.mjs
CHANGED
|
@@ -16344,6 +16344,11 @@ var typeStyles = {
|
|
|
16344
16344
|
backgroundColor: "#DCD5FF",
|
|
16345
16345
|
color: "#5946F9",
|
|
16346
16346
|
border: "1px solid #5946F9"
|
|
16347
|
+
},
|
|
16348
|
+
blue_light: {
|
|
16349
|
+
backgroundColor: "#EEFEFF",
|
|
16350
|
+
color: "#23A9AE",
|
|
16351
|
+
border: "1px solid #23A9AE"
|
|
16347
16352
|
}
|
|
16348
16353
|
};
|
|
16349
16354
|
var baseStyle = {
|
|
@@ -16358,19 +16363,29 @@ var baseStyle = {
|
|
|
16358
16363
|
height: "fit-content"
|
|
16359
16364
|
};
|
|
16360
16365
|
var ButtonBadgeField = (props) => {
|
|
16361
|
-
const {
|
|
16366
|
+
const {
|
|
16367
|
+
defaultValue,
|
|
16368
|
+
selection,
|
|
16369
|
+
value,
|
|
16370
|
+
formValues,
|
|
16371
|
+
domainHelper,
|
|
16372
|
+
type,
|
|
16373
|
+
class: classField
|
|
16374
|
+
} = props;
|
|
16362
16375
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
16363
16376
|
const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
|
|
16364
16377
|
const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
|
|
16365
16378
|
const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
|
|
16366
16379
|
const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
|
|
16367
16380
|
const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
|
|
16381
|
+
const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
|
|
16368
16382
|
const getType = () => {
|
|
16369
16383
|
if (decorationInfo) return typeStyles["info"];
|
|
16370
16384
|
if (decorationSuccess) return typeStyles["success"];
|
|
16371
16385
|
if (decorationDanger) return typeStyles["danger"];
|
|
16372
16386
|
if (decorationWarning || decorationOrange) return typeStyles["warning"];
|
|
16373
16387
|
if (decorationPurpled) return typeStyles["purpled"];
|
|
16388
|
+
if (decorationInforLight) return typeStyles["blue_light"];
|
|
16374
16389
|
return typeStyles["default"];
|
|
16375
16390
|
};
|
|
16376
16391
|
const getLabel = (value2) => {
|
|
@@ -32006,15 +32021,9 @@ var MonetaryField = (props) => {
|
|
|
32006
32021
|
] });
|
|
32007
32022
|
}
|
|
32008
32023
|
if (!isForm) {
|
|
32009
|
-
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
|
|
32010
|
-
if (widget === "monetary" && !formValues?.currency_id) {
|
|
32011
|
-
return /* @__PURE__ */ jsx100("span", { children: `${formatNumberOnly(
|
|
32012
|
-
parseFloat(String(value ?? defaultValue))
|
|
32013
|
-
)} ${symbol}` });
|
|
32014
|
-
}
|
|
32015
32024
|
return /* @__PURE__ */ jsx100("span", { children: `${formatNumberOnly(
|
|
32016
32025
|
parseFloat(value ?? defaultValue)
|
|
32017
|
-
)} ${
|
|
32026
|
+
)} ${symbol}` });
|
|
32018
32027
|
}
|
|
32019
32028
|
return /* @__PURE__ */ jsx100(
|
|
32020
32029
|
Controller,
|