gt-react 2.0.185 → 2.0.186
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/client.d.ts +3 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -5
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/next.d.ts +2 -2
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +3 -3
- package/dist/next.js.map +1 -1
- package/dist/primitives/value/client/RenderClientVariable.js +2 -2
- package/dist/primitives/value/client/RenderClientVariable.js.map +1 -1
- package/dist/primitives/value/renderVariable.d.ts.map +1 -1
- package/dist/primitives/value/renderVariable.js +5 -4
- package/dist/primitives/value/renderVariable.js.map +1 -1
- package/dist/primitives/variable/currency/ClientCurrencyVariable.d.ts +36 -0
- package/dist/primitives/variable/currency/ClientCurrencyVariable.d.ts.map +1 -0
- package/dist/primitives/variable/currency/ClientCurrencyVariable.js +33 -0
- package/dist/primitives/variable/currency/ClientCurrencyVariable.js.map +1 -0
- package/dist/primitives/variable/currency/CurrencyVariable.d.ts +38 -0
- package/dist/primitives/variable/currency/CurrencyVariable.d.ts.map +1 -0
- package/dist/primitives/variable/currency/CurrencyVariable.js +48 -0
- package/dist/primitives/variable/currency/CurrencyVariable.js.map +1 -0
- package/dist/primitives/variable/date/ClientDateVariable.d.ts +13 -2
- package/dist/primitives/variable/date/ClientDateVariable.d.ts.map +1 -1
- package/dist/primitives/variable/date/ClientDateVariable.js +22 -2
- package/dist/primitives/variable/date/ClientDateVariable.js.map +1 -1
- package/dist/primitives/variable/date/DateVariable.d.ts +13 -2
- package/dist/primitives/variable/date/DateVariable.d.ts.map +1 -1
- package/dist/primitives/variable/date/DateVariable.js +18 -2
- package/dist/primitives/variable/date/DateVariable.js.map +1 -1
- package/dist/primitives/variable/defaultVariableNames.d.ts +3 -0
- package/dist/primitives/variable/defaultVariableNames.d.ts.map +1 -0
- package/dist/primitives/variable/defaultVariableNames.js +10 -0
- package/dist/primitives/variable/defaultVariableNames.js.map +1 -0
- package/dist/primitives/variable/number/ClientNumberVariable.d.ts +14 -2
- package/dist/primitives/variable/number/ClientNumberVariable.d.ts.map +1 -1
- package/dist/primitives/variable/number/ClientNumberVariable.js +22 -4
- package/dist/primitives/variable/number/ClientNumberVariable.js.map +1 -1
- package/dist/primitives/variable/number/NumberVariable.d.ts +14 -2
- package/dist/primitives/variable/number/NumberVariable.d.ts.map +1 -1
- package/dist/primitives/variable/number/NumberVariable.js +20 -6
- package/dist/primitives/variable/number/NumberVariable.js.map +1 -1
- package/dist/primitives/variable/variable/ClientVariable.d.ts +10 -0
- package/dist/primitives/variable/variable/ClientVariable.d.ts.map +1 -1
- package/dist/primitives/variable/variable/ClientVariable.js +10 -0
- package/dist/primitives/variable/variable/ClientVariable.js.map +1 -1
- package/dist/primitives/variable/variable/Variable.d.ts +10 -0
- package/dist/primitives/variable/variable/Variable.d.ts.map +1 -1
- package/dist/primitives/variable/variable/Variable.js +10 -0
- package/dist/primitives/variable/variable/Variable.js.map +1 -1
- package/dist/server/helpers/addGTIdentifier.d.ts.map +1 -1
- package/dist/server/helpers/addGTIdentifier.js.map +1 -1
- package/dist/server/helpers/writeChildrenAsObjects.d.ts.map +1 -1
- package/dist/server/helpers/writeChildrenAsObjects.js +3 -3
- package/dist/server/helpers/writeChildrenAsObjects.js.map +1 -1
- package/dist/server/renderChildren.d.ts.map +1 -1
- package/dist/server/renderChildren.js +28 -11
- package/dist/server/renderChildren.js.map +1 -1
- package/package.json +1 -1
- package/dist/primitives/variable/currency/ClientCurrency.d.ts +0 -13
- package/dist/primitives/variable/currency/ClientCurrency.d.ts.map +0 -1
- package/dist/primitives/variable/currency/ClientCurrency.js +0 -17
- package/dist/primitives/variable/currency/ClientCurrency.js.map +0 -1
- package/dist/primitives/variable/currency/Currency.d.ts +0 -14
- package/dist/primitives/variable/currency/Currency.d.ts.map +0 -1
- package/dist/primitives/variable/currency/Currency.js +0 -31
- package/dist/primitives/variable/currency/Currency.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const defaultVariableNames = {
|
|
4
|
+
"variable": "value",
|
|
5
|
+
"number": "n",
|
|
6
|
+
"date": "date",
|
|
7
|
+
"currency": "cost"
|
|
8
|
+
};
|
|
9
|
+
exports.default = defaultVariableNames;
|
|
10
|
+
//# sourceMappingURL=defaultVariableNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultVariableNames.js","sourceRoot":"","sources":["../../../src/primitives/variable/defaultVariableNames.ts"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAA2B;IACjD,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,GAAG;IACb,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM;CACrB,CAAA;AACD,kBAAe,oBAAoB,CAAC"}
|
|
@@ -2,10 +2,22 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
type VariableProps = {
|
|
3
3
|
children?: any;
|
|
4
4
|
name: string;
|
|
5
|
-
defaultValue?:
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
options?: Record<string, any>;
|
|
6
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* NumberVariable component formats and displays a number based on the current language settings.
|
|
10
|
+
* It attempts a number conversion and defaults to returning defaultValue if provided.
|
|
11
|
+
*
|
|
12
|
+
* @param {VariableProps} props - The properties passed to the component
|
|
13
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
14
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
15
|
+
* @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
16
|
+
* @param {Record<string, any>} [props.options] - Options for number formatting.
|
|
17
|
+
* @returns {ReactNode} A span element containing the formatted number with specific data attributes
|
|
18
|
+
*/
|
|
7
19
|
declare const ClientNumberVariable: {
|
|
8
|
-
({ children, name, defaultValue }
|
|
20
|
+
({ children, name, defaultValue, options }?: VariableProps): ReactNode;
|
|
9
21
|
gtTransformation: string;
|
|
10
22
|
};
|
|
11
23
|
export default ClientNumberVariable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientNumberVariable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/number/ClientNumberVariable.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAIlD,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ClientNumberVariable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/number/ClientNumberVariable.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAIlD,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,oBAAoB;iDAA0D,aAAa,GAAmB,SAAS;;CAqB5H,CAAC;AAKF,eAAe,oBAAoB,CAAC"}
|
|
@@ -4,14 +4,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const client_1 = require("../../../client");
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* NumberVariable component formats and displays a number based on the current language settings.
|
|
9
|
+
* It attempts a number conversion and defaults to returning defaultValue if provided.
|
|
10
|
+
*
|
|
11
|
+
* @param {VariableProps} props - The properties passed to the component
|
|
12
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
13
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
14
|
+
* @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
15
|
+
* @param {Record<string, any>} [props.options] - Options for number formatting.
|
|
16
|
+
* @returns {ReactNode} A span element containing the formatted number with specific data attributes
|
|
17
|
+
*/
|
|
18
|
+
const ClientNumberVariable = ({ children, name = "n", defaultValue, options = {} } = { name: "n" }) => {
|
|
19
|
+
// Get the current language from the custom hook useCurrentLanguage
|
|
8
20
|
const currentLanguage = (0, client_1.useCurrentLanguage)();
|
|
21
|
+
// Memoize the formatted value to optimize rendering performance
|
|
9
22
|
const formattedValue = (0, react_1.useMemo)(() => {
|
|
23
|
+
// Determine the value to be formatted
|
|
10
24
|
let value = (typeof children !== 'undefined' && typeof defaultValue === 'undefined') ? children : defaultValue;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
25
|
+
value = (typeof value === 'string') ? parseFloat(value) : value;
|
|
26
|
+
// Format the value using Intl.NumberFormat based on the current language and provided options
|
|
27
|
+
return typeof value === 'number' ? new Intl.NumberFormat(currentLanguage, options).format(value) : value;
|
|
28
|
+
}, [children, defaultValue, currentLanguage, options]);
|
|
29
|
+
// Return a span element with data attributes and the formatted number
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)("span", { "data-gt-variable-name": name, "data-gt-variable-type": "number", "data-gt-variable-options": options, children: formattedValue }));
|
|
14
31
|
};
|
|
32
|
+
// Assign a static property to the component for transformation identification
|
|
15
33
|
ClientNumberVariable.gtTransformation = "variable-number";
|
|
16
34
|
exports.default = ClientNumberVariable;
|
|
17
35
|
//# sourceMappingURL=ClientNumberVariable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientNumberVariable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/number/ClientNumberVariable.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;AAEZ,iCAAkD;AAClD,4CAAqD;
|
|
1
|
+
{"version":3,"file":"ClientNumberVariable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/number/ClientNumberVariable.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;AAEZ,iCAAkD;AAClD,4CAAqD;AAUrD;;;;;;;;;;GAUG;AACH,MAAM,oBAAoB,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,GAAG,EAAE,YAAY,EAAE,OAAO,GAAG,EAAE,KAAoB,EAAE,IAAI,EAAE,GAAG,EAAE,EAAa,EAAE;IAE5H,mEAAmE;IACnE,MAAM,eAAe,GAAG,IAAA,2BAAkB,GAAE,CAAC;IAE7C,gEAAgE;IAChE,MAAM,cAAc,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAChC,sCAAsC;QACtC,IAAI,KAAK,GAAG,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;QAC/G,KAAK,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAChE,8FAA8F;QAC9F,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7G,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC,CAAA;IAEtD,sEAAsE;IACtE,OAAO,CACH,0DAA6B,IAAI,2BAAyB,QAAQ,8BAA4B,OAAO,YAChG,cAAc,GACZ,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,8EAA8E;AAC9E,oBAAoB,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;AAE1D,kBAAe,oBAAoB,CAAC"}
|
|
@@ -2,11 +2,23 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
type VariableProps = {
|
|
3
3
|
children?: any;
|
|
4
4
|
name: string;
|
|
5
|
-
defaultValue?:
|
|
5
|
+
defaultValue?: any;
|
|
6
6
|
"data-generaltranslation"?: Record<string, any> | undefined;
|
|
7
|
+
options?: Record<string, any>;
|
|
7
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* NumberVariable component formats and displays a number based on the current language settings.
|
|
11
|
+
* It attempts a number conversion and defaults to returning defaultValue if provided.
|
|
12
|
+
*
|
|
13
|
+
* @param {VariableProps} props - The properties passed to the component
|
|
14
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
15
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
16
|
+
* @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
17
|
+
* @param {Record<string, any>} [props.options] - Options for number formatting.
|
|
18
|
+
* @returns {ReactNode} A span element containing the formatted number with specific data attributes
|
|
19
|
+
*/
|
|
8
20
|
declare const NumberVariable: {
|
|
9
|
-
({ children, name, defaultValue, ...props }
|
|
21
|
+
({ children, name, defaultValue, options, ...props }?: VariableProps): ReactNode;
|
|
10
22
|
gtTransformation: string;
|
|
11
23
|
};
|
|
12
24
|
export default NumberVariable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberVariable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/number/NumberVariable.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"NumberVariable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/number/NumberVariable.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,cAAc;2DAAoE,aAAa,GAAmB,SAAS;;CAyBhI,CAAC;AAKF,eAAe,cAAc,CAAC"}
|
|
@@ -16,16 +16,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
const I18NConfig_1 = __importDefault(require("../../../config/I18NConfig"));
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* NumberVariable component formats and displays a number based on the current language settings.
|
|
21
|
+
* It attempts a number conversion and defaults to returning defaultValue if provided.
|
|
22
|
+
*
|
|
23
|
+
* @param {VariableProps} props - The properties passed to the component
|
|
24
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
25
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
26
|
+
* @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
27
|
+
* @param {Record<string, any>} [props.options] - Options for number formatting.
|
|
28
|
+
* @returns {ReactNode} A span element containing the formatted number with specific data attributes
|
|
29
|
+
*/
|
|
30
|
+
const NumberVariable = (_a = { name: "n" }) => {
|
|
31
|
+
var { children, name = "n", defaultValue, options = {} } = _a, props = __rest(_a, ["children", "name", "defaultValue", "options"]);
|
|
21
32
|
const { "data-generaltranslation": generaltranslation } = props;
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
// Determine the value to be used
|
|
34
|
+
let value = (typeof children !== 'undefined' && typeof defaultValue === 'undefined') ? children : defaultValue;
|
|
35
|
+
value = (typeof value === 'string') ? parseFloat(value) : value;
|
|
36
|
+
// Get the current language from the I18NConfig
|
|
24
37
|
const currentLanguage = I18NConfig_1.default.getCurrentLanguage();
|
|
25
38
|
// Format the number according to the locale
|
|
26
|
-
const formattedValue = (typeof
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)("span", { "data-generaltranslation": generaltranslation, "data-gt-variable-name": name, "data-gt-variable-type": "number", children: formattedValue }));
|
|
39
|
+
const formattedValue = (typeof value === 'number') ? new Intl.NumberFormat(currentLanguage, options).format(value) : defaultValue;
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)("span", { "data-generaltranslation": generaltranslation, "data-gt-variable-name": name, "data-gt-variable-type": "number", "data-gt-variable-options": options, children: formattedValue }));
|
|
28
41
|
};
|
|
42
|
+
// Assign a static property to the component for transformation identification
|
|
29
43
|
NumberVariable.gtTransformation = "variable-number";
|
|
30
44
|
exports.default = NumberVariable;
|
|
31
45
|
//# sourceMappingURL=NumberVariable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberVariable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/number/NumberVariable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4EAAoD;
|
|
1
|
+
{"version":3,"file":"NumberVariable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/number/NumberVariable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4EAAoD;AAWpD;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,CAAC,KAAgF,EAAE,IAAI,EAAE,GAAG,EAAE,EAAa,EAAE;QAA5G,EAAE,QAAQ,EAAE,IAAI,GAAG,GAAG,EAAE,YAAY,EAAE,OAAO,GAAG,EAAE,OAA2C,EAAtC,KAAK,cAA5D,+CAA8D,CAAF;IAEhF,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,iCAAiC;IACjC,IAAI,KAAK,GAAG,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;IAC/G,KAAK,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEhE,+CAA+C;IAC/C,MAAM,eAAe,GAAG,oBAAU,CAAC,kBAAkB,EAAE,CAAC;IAExD,4CAA4C;IAC5C,MAAM,cAAc,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IAElI,OAAO,CACH,4DAC6B,kBAAkB,2BACpB,IAAI,2BACJ,QAAQ,8BACL,OAAO,YAEhC,cAAc,GACZ,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,8EAA8E;AAC9E,cAAc,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;AAEpD,kBAAe,cAAc,CAAC"}
|
|
@@ -4,6 +4,16 @@ type VariableProps = {
|
|
|
4
4
|
name: string;
|
|
5
5
|
defaultValue?: any;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Variable component to conditionally render either children or a default value.
|
|
9
|
+
* It also attaches data attributes for variable name and type.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} props - The props for the component.
|
|
12
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
13
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
14
|
+
* @param {any} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
15
|
+
* @returns {ReactNode} The rendered output.
|
|
16
|
+
*/
|
|
7
17
|
declare const Variable: {
|
|
8
18
|
({ children, name, defaultValue }: VariableProps): ReactNode;
|
|
9
19
|
gtTransformation: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientVariable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/ClientVariable.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAW,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlD,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB,CAAA;AAED,QAAA,MAAM,QAAQ;uCAAsC,aAAa,GAAG,SAAS;;CAa5E,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"ClientVariable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/ClientVariable.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAW,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlD,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB,CAAA;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ;uCAAsC,aAAa,GAAG,SAAS;;CAa5E,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
/**
|
|
7
|
+
* Variable component to conditionally render either children or a default value.
|
|
8
|
+
* It also attaches data attributes for variable name and type.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} props - The props for the component.
|
|
11
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
12
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
13
|
+
* @param {any} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
14
|
+
* @returns {ReactNode} The rendered output.
|
|
15
|
+
*/
|
|
6
16
|
const Variable = ({ children, name, defaultValue }) => {
|
|
7
17
|
const renderedValue = (0, react_1.useMemo)(() => {
|
|
8
18
|
if ((typeof children !== 'undefined' && typeof defaultValue === 'undefined'))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientVariable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/ClientVariable.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;AAEZ,iCAAkD;AASlD,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAiB,EAAa,EAAE;IAE5E,MAAM,aAAa,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC/B,IAAI,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC;YAAE,OAAO,QAAQ,CAAC;QAC9F,OAAO,YAAY,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA;IAE5B,OAAO,CACH,0DAA6B,IAAI,2BAAyB,UAAU,YAC/D,aAAa,GACX,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,kBAAe,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"ClientVariable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/ClientVariable.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;AAEZ,iCAAkD;AASlD;;;;;;;;;GASG;AACH,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAiB,EAAa,EAAE;IAE5E,MAAM,aAAa,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC/B,IAAI,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC;YAAE,OAAO,QAAQ,CAAC;QAC9F,OAAO,YAAY,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA;IAE5B,OAAO,CACH,0DAA6B,IAAI,2BAAyB,UAAU,YAC/D,aAAa,GACX,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,kBAAe,QAAQ,CAAC"}
|
|
@@ -5,6 +5,16 @@ type VariableProps = {
|
|
|
5
5
|
defaultValue?: any;
|
|
6
6
|
"data-generaltranslation"?: Record<string, any> | undefined;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Variable component to conditionally render either children or a default value.
|
|
10
|
+
* It also attaches data attributes for variable name and type.
|
|
11
|
+
*
|
|
12
|
+
* @param {Object} props - The props for the component.
|
|
13
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
14
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
15
|
+
* @param {any} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
16
|
+
* @returns {ReactNode} The rendered output.
|
|
17
|
+
*/
|
|
8
18
|
declare const Variable: {
|
|
9
19
|
({ children, name, defaultValue, ...props }: VariableProps): ReactNode;
|
|
10
20
|
gtTransformation: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/Variable.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;CAC9D,CAAA;AAED,QAAA,MAAM,QAAQ;iDAAgD,aAAa,GAAG,SAAS;;
|
|
1
|
+
{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/Variable.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;CAC9D,CAAA;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ;iDAAgD,aAAa,GAAG,SAAS;;CAgBtF,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -12,6 +12,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
/**
|
|
16
|
+
* Variable component to conditionally render either children or a default value.
|
|
17
|
+
* It also attaches data attributes for variable name and type.
|
|
18
|
+
*
|
|
19
|
+
* @param {Object} props - The props for the component.
|
|
20
|
+
* @param {ReactNode} [props.children] - The child elements to be rendered if provided.
|
|
21
|
+
* @param {string} props.name - The name attribute for the variable.
|
|
22
|
+
* @param {any} [props.defaultValue] - The default value to be rendered if children is not provided.
|
|
23
|
+
* @returns {ReactNode} The rendered output.
|
|
24
|
+
*/
|
|
15
25
|
const Variable = (_a) => {
|
|
16
26
|
var { children, name, defaultValue } = _a, props = __rest(_a, ["children", "name", "defaultValue"]);
|
|
17
27
|
const { "data-generaltranslation": generaltranslation } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/Variable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,QAAQ,GAAG,CAAC,EAAyD,EAAa,EAAE;QAAxE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,OAA2B,EAAtB,KAAK,cAAxC,oCAA0C,CAAF;IAEtD,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW;QAAE,YAAY,GAAG,QAAQ,CAAC;IAEpG,OAAO,CACH,
|
|
1
|
+
{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../../../src/primitives/variable/variable/Variable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA;;;;;;;;;GASG;AACH,MAAM,QAAQ,GAAG,CAAC,EAAyD,EAAa,EAAE;QAAxE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,OAA2B,EAAtB,KAAK,cAAxC,oCAA0C,CAAF;IAEtD,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW;QAAE,YAAY,GAAG,QAAQ,CAAC;IAEpG,OAAO,CACH,4DAC6B,kBAAkB,2BACpB,IAAI,2BACJ,UAAU,YAEhC,YAAY,GACV,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addGTIdentifier.d.ts","sourceRoot":"","sources":["../../../src/server/helpers/addGTIdentifier.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAA;AAGtD,KAAK,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC7C,KAAK,QAAQ,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;AAkBhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"addGTIdentifier.d.ts","sourceRoot":"","sources":["../../../src/server/helpers/addGTIdentifier.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAA;AAGtD,KAAK,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC7C,KAAK,QAAQ,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;AAkBhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,QAAQ,EAAE,QAAQ,iVAgJzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addGTIdentifier.js","sourceRoot":"","sources":["../../../src/server/helpers/addGTIdentifier.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2BA,
|
|
1
|
+
{"version":3,"file":"addGTIdentifier.js","sourceRoot":"","sources":["../../../src/server/helpers/addGTIdentifier.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2BA,kCAgJC;AA3KD,kDAAsD;AACtD,6FAAqE;AAUrE;;;GAGG;AACH,MAAM,aAAa,GAAG,CAAC,KAA0B,EAAQ,EAAE;IACvD,IAAI,KAAK,IAAI,KAAK,CAAC,yBAAyB,CAAC,IAAI,OAAO,KAAK,CAAC,yBAAyB,CAAC,CAAC,EAAE,KAAK,QAAQ,EAAE,CAAC;QACvG,MAAM,IAAI,KAAK,CAAC;8CACsB,KAAK,CAAC,yBAAyB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;AACL,CAAC,CAAA;AAED;;;;GAIG;AACH,SAAwB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mC;QACnC,IAAI,CAAC,cAAc,EAAE,CAAC;YAClB,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACjB,QAAQ,CAAC,QAAQ,GAAG,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACjE,CAAC;QACL,CAAC;QAED,oCAAoC;QACpC,OAAO,eAAK,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAA;IAED;;;;OAIG;IACH,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE;QACvC,IAAI,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC;YAAE,OAAO,uBAAuB,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,KAAK,CAAC;IACjB,CAAC,CAAA;IAED;;;;OAIG;IACH,MAAM,wBAAwB,GAAG,CAAC,QAAa,EAAE,EAAE;QAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1B,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAA;QAC1D,CAAC;QACD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,CAAA;IAED,OAAO,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAE9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeChildrenAsObjects.d.ts","sourceRoot":"","sources":["../../../src/server/helpers/writeChildrenAsObjects.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"writeChildrenAsObjects.d.ts","sourceRoot":"","sources":["../../../src/server/helpers/writeChildrenAsObjects.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAA;AAItD,KAAK,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC7C,KAAK,QAAQ,GAAG,KAAK,GAAG,KAAK,EAAE,CAAC;AA2GhC;;;;EAIE;AACF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,GAAG,GAAG,CAKtE"}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.default = writeChildrenAsObjects;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
19
|
const processBranches_1 = __importDefault(require("../../primitives/value/processBranches"));
|
|
20
|
+
const defaultVariableNames_1 = __importDefault(require("../../primitives/variable/defaultVariableNames"));
|
|
20
21
|
/**
|
|
21
22
|
* Checks if the props indicate that the component should be not be processed.
|
|
22
23
|
* @param {Record<string, any>} props - The props to check.
|
|
@@ -64,9 +65,8 @@ const handleValidReactElement = (child) => {
|
|
|
64
65
|
const generaltranslation = props['data-generaltranslation'];
|
|
65
66
|
let result = Object.assign({}, generaltranslation);
|
|
66
67
|
if (generaltranslation.transformation && generaltranslation.transformation === "variable") {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
68
|
+
const variableName = props.name || props['data-gt-variable-name'] || defaultVariableNames_1.default[generaltranslation.variableType] || "value";
|
|
69
|
+
return { variable: generaltranslation.variableType || "variable", key: variableName };
|
|
70
70
|
}
|
|
71
71
|
// Write all the branches as objects
|
|
72
72
|
if (generaltranslation.transformation && generaltranslation.branches) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeChildrenAsObjects.js","sourceRoot":"","sources":["../../../src/server/helpers/writeChildrenAsObjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqHA,yCAKC;AA1HD,kDAAsD;AACtD,6FAAqE;
|
|
1
|
+
{"version":3,"file":"writeChildrenAsObjects.js","sourceRoot":"","sources":["../../../src/server/helpers/writeChildrenAsObjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqHA,y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CAAA;AAED;;;;EAIE;AACF,SAAwB,sBAAsB,CAAC,QAAkB;IAC7D,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1B,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAA;IAC1D,CAAC;IACD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAA;AACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderChildren.d.ts","sourceRoot":"","sources":["../../src/server/renderChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"renderChildren.d.ts","sourceRoot":"","sources":["../../src/server/renderChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAWtD,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACzC,KAAK,WAAW,GAAG,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AACtE,KAAK,MAAM,GAAG,WAAW,GAAG,WAAW,EAAE,CAAC;AAE1C,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACnD,KAAK,MAAM,GAAG,WAAW,GAAG,WAAW,EAAE,CAAC;AA4E1C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAC9B,EAAE;IACC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB,GAAG,SAAS,CAmGZ"}
|
|
@@ -23,8 +23,9 @@ const isValidReactNode_1 = __importDefault(require("../primitives/value/isValidR
|
|
|
23
23
|
const Variable_1 = __importDefault(require("../primitives/variable/variable/Variable"));
|
|
24
24
|
const I18NConfig_1 = __importDefault(require("../config/I18NConfig"));
|
|
25
25
|
const DateVariable_1 = __importDefault(require("../primitives/variable/date/DateVariable"));
|
|
26
|
-
const
|
|
27
|
-
const
|
|
26
|
+
const NumberVariable_1 = __importDefault(require("../primitives/variable/number/NumberVariable"));
|
|
27
|
+
const CurrencyVariable_1 = __importDefault(require("../primitives/variable/currency/CurrencyVariable"));
|
|
28
|
+
const defaultVariableNames_1 = __importDefault(require("../primitives/variable/defaultVariableNames"));
|
|
28
29
|
/**
|
|
29
30
|
* Renders a React element based on the provided source and target elements.
|
|
30
31
|
* Handles transformation and variable branching if necessary.
|
|
@@ -85,6 +86,7 @@ const renderElement = (_a) => {
|
|
|
85
86
|
* @returns {ReactNode} The rendered children elements.
|
|
86
87
|
*/
|
|
87
88
|
function renderChildren(_a) {
|
|
89
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
88
90
|
var { source, target } = _a, metadata = __rest(_a, ["source", "target"]);
|
|
89
91
|
// Most straightforward case, return a valid React node
|
|
90
92
|
if ((target === null || typeof target === 'undefined') && (0, isValidReactNode_1.default)(source))
|
|
@@ -96,11 +98,26 @@ function renderChildren(_a) {
|
|
|
96
98
|
// Filter for variables and valid source children
|
|
97
99
|
let validSourceElements = [];
|
|
98
100
|
for (const sourceChild of source) {
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
+
if (((_c = (_b = sourceChild === null || sourceChild === void 0 ? void 0 : sourceChild.props) === null || _b === void 0 ? void 0 : _b['data-generaltranslation']) === null || _c === void 0 ? void 0 : _c.transformation) === "variable") {
|
|
102
|
+
const variableName = sourceChild.props.name || defaultVariableNames_1.default[(_e = (_d = sourceChild === null || sourceChild === void 0 ? void 0 : sourceChild.props) === null || _d === void 0 ? void 0 : _d['data-generaltranslation']) === null || _e === void 0 ? void 0 : _e.variableType];
|
|
103
|
+
const variableValue = sourceChild.props.defaultValue || sourceChild.props.children;
|
|
104
|
+
if (variableName && variableValue && typeof ((_f = metadata === null || metadata === void 0 ? void 0 : metadata.variables) === null || _f === void 0 ? void 0 : _f[variableName]) === 'undefined') {
|
|
105
|
+
metadata.variables = Object.assign(Object.assign({}, metadata.variables), { [variableName]: variableValue });
|
|
106
|
+
}
|
|
107
|
+
const variableType = ((_h = (_g = sourceChild === null || sourceChild === void 0 ? void 0 : sourceChild.props) === null || _g === void 0 ? void 0 : _g['data-generaltranslation']) === null || _h === void 0 ? void 0 : _h.variableType) || "variable";
|
|
108
|
+
if (variableType === "number" || variableType === "currency" || variableType === "date") {
|
|
109
|
+
const variableOptions = (_j = sourceChild === null || sourceChild === void 0 ? void 0 : sourceChild.props) === null || _j === void 0 ? void 0 : _j.options;
|
|
110
|
+
if (variableOptions)
|
|
111
|
+
metadata.variableOptions = Object.assign(Object.assign({}, metadata.variableOptions), { [variableName]: Object.assign({}, variableOptions) });
|
|
112
|
+
}
|
|
113
|
+
if (variableType === "currency") {
|
|
114
|
+
const variableCurrency = (_k = sourceChild === null || sourceChild === void 0 ? void 0 : sourceChild.props) === null || _k === void 0 ? void 0 : _k.currency;
|
|
115
|
+
if (variableCurrency)
|
|
116
|
+
metadata.variableOptions = Object.assign(Object.assign({}, metadata.variableOptions), { [variableName]: Object.assign({ currency: variableCurrency }, (_l = metadata.variableOptions) === null || _l === void 0 ? void 0 : _l[variableName]) });
|
|
117
|
+
}
|
|
101
118
|
}
|
|
102
|
-
else if (
|
|
103
|
-
|
|
119
|
+
else if (react_1.default.isValidElement(sourceChild)) {
|
|
120
|
+
validSourceElements.push(sourceChild);
|
|
104
121
|
}
|
|
105
122
|
}
|
|
106
123
|
// Find matching source elements based on ID
|
|
@@ -118,7 +135,7 @@ function renderChildren(_a) {
|
|
|
118
135
|
};
|
|
119
136
|
// Return targets
|
|
120
137
|
return target.map((targetChild, index) => {
|
|
121
|
-
var _a, _b;
|
|
138
|
+
var _a, _b, _c, _d, _e;
|
|
122
139
|
// Most straightforward case, return a valid React node
|
|
123
140
|
if ((0, isValidReactNode_1.default)(targetChild)) {
|
|
124
141
|
return (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: targetChild }, `string_${index}`);
|
|
@@ -131,15 +148,15 @@ function renderChildren(_a) {
|
|
|
131
148
|
value = metadata.variables[key];
|
|
132
149
|
}
|
|
133
150
|
if (targetChild.variable === "number") {
|
|
134
|
-
return (0, jsx_runtime_1.jsx)(
|
|
151
|
+
return (0, jsx_runtime_1.jsx)(NumberVariable_1.default, { defaultValue: value, name: key, options: Object.assign({}, (_a = metadata === null || metadata === void 0 ? void 0 : metadata.variableOptions) === null || _a === void 0 ? void 0 : _a[key]) }, `var_${index}`);
|
|
135
152
|
}
|
|
136
153
|
if (targetChild.variable === "date") {
|
|
137
|
-
return (0, jsx_runtime_1.jsx)(DateVariable_1.default, { defaultValue: value
|
|
154
|
+
return (0, jsx_runtime_1.jsx)(DateVariable_1.default, { defaultValue: value, name: key, options: Object.assign({}, (_b = metadata === null || metadata === void 0 ? void 0 : metadata.variableOptions) === null || _b === void 0 ? void 0 : _b[key]) }, `var_${index}`);
|
|
138
155
|
}
|
|
139
156
|
if (targetChild.variable === "currency") {
|
|
140
|
-
return (0, jsx_runtime_1.jsx)(
|
|
157
|
+
return (0, jsx_runtime_1.jsx)(CurrencyVariable_1.default, { defaultValue: value, name: key, currency: ((_d = (_c = metadata === null || metadata === void 0 ? void 0 : metadata.variableOptions) === null || _c === void 0 ? void 0 : _c[key]) === null || _d === void 0 ? void 0 : _d.currency) || undefined, options: Object.assign({}, (_e = metadata === null || metadata === void 0 ? void 0 : metadata.variableOptions) === null || _e === void 0 ? void 0 : _e[key]) }, `var_${index}`);
|
|
141
158
|
}
|
|
142
|
-
return (0, jsx_runtime_1.jsx)(Variable_1.default, { defaultValue: (0, isValidReactNode_1.default)(value) ? value : undefined, name: key });
|
|
159
|
+
return (0, jsx_runtime_1.jsx)(Variable_1.default, { defaultValue: (0, isValidReactNode_1.default)(value) ? value : undefined, name: key }, `var_${index}`);
|
|
143
160
|
}
|
|
144
161
|
// If target is a normal ReactElement
|
|
145
162
|
const matchingSource = findMatchingSource(targetChild);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderChildren.js","sourceRoot":"","sources":["../../src/server/renderChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"renderChildren.js","sourceRoot":"","sources":["../../src/server/renderChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAsGA,iCA0GC;;AAhND,kDAAsD;AACtD,8FAAsE;AACtE,wFAAgE;AAChE,4FAAoE;AACpE,wFAA+D;AAC/D,sEAA8C;AAC9C,4FAAoE;AACpE,kGAA0E;AAC1E,wGAAgF;AAChF,uGAA+E;AAS/E;;;;;;;;;GASG;AACH,MAAM,aAAa,GAAG,CAAC,EAA4M,EAAgB,EAAE;;QAA9N,EAAE,aAAa,EAAE,aAAa,OAA8K,EAAzK,QAAQ,cAA3C,kCAA6C,CAAF;IAE9D,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC;IAEhC,IAAI,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,yBAAyB,CAAC,0CAAE,cAAc,MAAK,SAAS,EAAE,CAAC;QACnE,OAAO,aAAa,CAAC;IACzB,CAAC;IAED,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QAEjB,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;QAChE,MAAM,WAAW,GAA+B,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,KAAK,CAAC;QACrE,MAAM,cAAc,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,CAAC;QAC7C,MAAM,cAAc,GAAG,MAAA,WAA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F,CAAC;QACD,IAAI,CAAC,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,QAAQ,MAAK,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,IAAI,CAAA,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACtG,KAAK,MAAM,GAAG,IAAK,MAAc,CAAC,IAAI,EAAE,CAAC;gBACrC,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC7B,OAAQ,MAAc,CAAC,GAAG,CAAC,CAAC;gBAChC,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type VariableProps = {
|
|
3
|
-
children?: any;
|
|
4
|
-
name: string;
|
|
5
|
-
defaultValue?: number;
|
|
6
|
-
currency?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const ClientCurrency: {
|
|
9
|
-
({ children, name, defaultValue, currency }: VariableProps): ReactNode;
|
|
10
|
-
gtTransformation: string;
|
|
11
|
-
};
|
|
12
|
-
export default ClientCurrency;
|
|
13
|
-
//# sourceMappingURL=ClientCurrency.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCurrency.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/currency/ClientCurrency.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAIlD,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,QAAA,MAAM,cAAc;iDAAiE,aAAa,GAAG,SAAS;;CAe7G,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const client_1 = require("../../../client");
|
|
7
|
-
const ClientCurrency = ({ children, name = "cost", defaultValue, currency = "USD" }) => {
|
|
8
|
-
const currentLanguage = (0, client_1.useCurrentLanguage)();
|
|
9
|
-
const formattedValue = (0, react_1.useMemo)(() => {
|
|
10
|
-
let value = (typeof children !== 'undefined' && typeof defaultValue === 'undefined') ? children : defaultValue;
|
|
11
|
-
return typeof value !== 'undefined' ? new Intl.NumberFormat(currentLanguage, { style: 'currency', currency }).format(value) : '';
|
|
12
|
-
}, [children, defaultValue, currentLanguage, currency]);
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("span", { "data-gt-variable-name": name, "data-gt-variable-type": "currency", "data-gt-variable-currency": currency, children: formattedValue }));
|
|
14
|
-
};
|
|
15
|
-
ClientCurrency.gtTransformation = "variable-currency";
|
|
16
|
-
exports.default = ClientCurrency;
|
|
17
|
-
//# sourceMappingURL=ClientCurrency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCurrency.js","sourceRoot":"","sources":["../../../../src/primitives/variable/currency/ClientCurrency.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;AAEZ,iCAAkD;AAClD,4CAAqD;AAUrD,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,YAAY,EAAE,QAAQ,GAAG,KAAK,EAAiB,EAAa,EAAE;IAE7G,MAAM,eAAe,GAAG,IAAA,2BAAkB,GAAE,CAAC;IAE7C,MAAM,cAAc,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAChC,IAAI,KAAK,GAAG,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;QAC/G,OAAO,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACrI,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC;IAExD,OAAO,CACH,0DAA6B,IAAI,2BAAyB,UAAU,+BAA6B,QAAQ,YACpG,cAAc,GACZ,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,cAAc,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEtD,kBAAe,cAAc,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type VariableProps = {
|
|
3
|
-
children?: any;
|
|
4
|
-
name: string;
|
|
5
|
-
defaultValue?: number;
|
|
6
|
-
currency?: string;
|
|
7
|
-
"data-generaltranslation"?: Record<string, any> | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const Currency: {
|
|
10
|
-
({ children, name, defaultValue, currency, ...props }: VariableProps): ReactNode;
|
|
11
|
-
gtTransformation: string;
|
|
12
|
-
};
|
|
13
|
-
export default Currency;
|
|
14
|
-
//# sourceMappingURL=Currency.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/primitives/variable/currency/Currency.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAA;AAED,QAAA,MAAM,QAAQ;2DAA2E,aAAa,GAAG,SAAS;;CAiBjH,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
const I18NConfig_1 = __importDefault(require("../../../config/I18NConfig"));
|
|
19
|
-
const Currency = (_a) => {
|
|
20
|
-
var { children, name = "cost", defaultValue, currency = "USD" } = _a, props = __rest(_a, ["children", "name", "defaultValue", "currency"]);
|
|
21
|
-
const { "data-generaltranslation": generaltranslation } = props;
|
|
22
|
-
if (typeof children !== 'undefined' && typeof defaultValue === 'undefined')
|
|
23
|
-
defaultValue = children;
|
|
24
|
-
const currentLanguage = I18NConfig_1.default.getCurrentLanguage();
|
|
25
|
-
// Format the number as currency according to the locale
|
|
26
|
-
const formattedValue = (typeof defaultValue !== 'undefined') ? new Intl.NumberFormat(currentLanguage, { style: 'currency', currency }).format(defaultValue) : '';
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)("span", { "data-generaltranslation": generaltranslation, "data-gt-variable-name": name, "data-gt-variable-type": "currency", "data-gt-variable-currency": currency, children: formattedValue }));
|
|
28
|
-
};
|
|
29
|
-
Currency.gtTransformation = "variable-currency";
|
|
30
|
-
exports.default = Currency;
|
|
31
|
-
//# sourceMappingURL=Currency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../../../src/primitives/variable/currency/Currency.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4EAAoD;AAWpD,MAAM,QAAQ,GAAG,CAAC,EAAoF,EAAa,EAAE;QAAnG,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,YAAY,EAAE,QAAQ,GAAG,KAAK,OAA2B,EAAtB,KAAK,cAAnE,gDAAqE,CAAF;IAEjF,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW;QAAE,YAAY,GAAG,QAAQ,CAAC;IAEpG,MAAM,eAAe,GAAG,oBAAU,CAAC,kBAAkB,EAAE,CAAC;IAExD,wDAAwD;IACxD,MAAM,cAAc,GAAG,CAAC,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjK,OAAO,CACH,4DAA+B,kBAAkB,2BAAyB,IAAI,2BAAyB,UAAU,+BAA6B,QAAQ,YACjJ,cAAc,GACZ,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,kBAAe,QAAQ,CAAC"}
|