@sme.up/ketchup2 2.0.0-SNAPSHOT-20250626094558 → 2.0.0-SNAPSHOT-20250626151844
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/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +11 -3
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +8 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/hooks/useFloating.d.ts +0 -2
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +13 -13
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +2298 -2279
- package/dist/locale/en/translation.json.d.ts +3 -1
- package/dist/locale/it/translation.json.d.ts +3 -1
- package/dist/types/translation.d.ts +3 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/wrapper-types/number.d.ts +24 -24
- package/dist/utils/wrapper-types/number.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -46,7 +46,9 @@ declare const _default: {
|
|
|
46
46
|
"CalendarFor": "Calendar for",
|
|
47
47
|
"Close": "Close",
|
|
48
48
|
"SpotlightDefaultPlaceholder": "Execute Command",
|
|
49
|
-
"CheckObjectWrongValidation": "Object not valid"
|
|
49
|
+
"CheckObjectWrongValidation": "Object not valid",
|
|
50
|
+
"ConfirmButton": "Confirm",
|
|
51
|
+
"AutocompleteDefaultPlaceholder": "Type code or description"
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
;
|
|
@@ -46,7 +46,9 @@ declare const _default: {
|
|
|
46
46
|
"CalendarFor": "Calendario per",
|
|
47
47
|
"Close": "Chiudi",
|
|
48
48
|
"SpotlightDefaultPlaceholder": "Esegui Comando",
|
|
49
|
-
"CheckObjectWrongValidation": "Oggetto non valido"
|
|
49
|
+
"CheckObjectWrongValidation": "Oggetto non valido",
|
|
50
|
+
"ConfirmButton": "Conferma",
|
|
51
|
+
"AutocompleteDefaultPlaceholder": "Inserisci codice o descrizione"
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
;
|
|
@@ -8,7 +8,9 @@ export declare enum GenericMessages {
|
|
|
8
8
|
CALENDAR_FOR = "Date.CalendarFor",
|
|
9
9
|
CLOSE = "Generic.Close",
|
|
10
10
|
SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder",
|
|
11
|
-
CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation"
|
|
11
|
+
CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation",
|
|
12
|
+
CONFIRM_BUTTON = "Generic.ConfirmButton",
|
|
13
|
+
AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder"
|
|
12
14
|
}
|
|
13
15
|
export declare enum DayMessages {
|
|
14
16
|
MONDAY = "Day.Monday",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/types/translation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAChB,YAAY,GACZ,WAAW,GACX,eAAe,GACf,aAAa,CAAA;AAEjB,oBAAY,eAAe;IAEzB,YAAY,qBAAqB;IACjC,KAAK,kBAAkB;IAGvB,6BAA6B,wCAAwC;IAGrE,6BAA6B,uCAAuC;
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/types/translation.ts"],"names":[],"mappings":"AAAA;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AM,GAAG,MAAM,CAAC,CAClC,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;CACzB"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { DataObj, DataObjClass } from '../../types/data-structures';
|
|
2
2
|
import { IWrapperType } from '../../types/generic';
|
|
3
3
|
/**
|
|
4
|
-
* A class for handling Smeup number formatting and conversion between different formats.
|
|
5
|
-
* Implements IWrapperType<number> to provide consistent number handling interface.
|
|
6
|
-
*/
|
|
7
|
-
declare class SmeupNumber implements IWrapperType<number> {
|
|
4
|
+
* A class for handling Smeup number formatting and conversion between different formats.
|
|
5
|
+
* Implements IWrapperType<number> to provide consistent number handling interface.
|
|
6
|
+
*/
|
|
7
|
+
declare class SmeupNumber implements IWrapperType<number | undefined> {
|
|
8
8
|
private class;
|
|
9
9
|
private value;
|
|
10
10
|
private decimalSeparator;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
constructor(objClass: DataObjClass, value: number, decimalSeparator?: string);
|
|
12
|
+
* Creates a new SmeupNumber instance
|
|
13
|
+
* @param {DataObjClass} objClass - The class/type information of the number
|
|
14
|
+
* @param {number} value - The numeric value in ISO format (using '.' as decimal separator)
|
|
15
|
+
* @param {string} [decimalSeparator='.'] - The desired decimal separator for legacy format
|
|
16
|
+
*/
|
|
17
|
+
constructor(objClass: DataObjClass, value: number | undefined, decimalSeparator?: string);
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
* Creates a SmeupNumber instance from a DataObj
|
|
20
|
+
* @param {DataObj} obj - The source data object containing the number
|
|
21
|
+
* @param {string} decimalSeparator - The decimal separator to use in legacy format
|
|
22
|
+
* @returns {SmeupNumber} A new SmeupNumber instance
|
|
23
|
+
* @throws {Error} When number creation for the given type is not implemented
|
|
24
|
+
*/
|
|
25
25
|
static fromDataObj(obj: DataObj, decimalSeparator: string): SmeupNumber;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
* Gets the value in legacy format (with configured decimal separator)
|
|
28
|
+
* @returns {string} The formatted number string
|
|
29
|
+
* @throws {Error} When the number format is not implemented for this type
|
|
30
|
+
*/
|
|
31
31
|
getLegacyValue(): string;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
getValue(): number;
|
|
33
|
+
* Gets the numeric value
|
|
34
|
+
* @returns {number} The parsed numeric value
|
|
35
|
+
*/
|
|
36
|
+
getValue(): number | undefined;
|
|
37
37
|
}
|
|
38
38
|
export default SmeupNumber;
|
|
39
39
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../src/utils/wrapper-types/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD;;;
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../src/utils/wrapper-types/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD;;;GAGG;AACH,cAAM,WAAY,YAAW,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC;IAC3D,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,gBAAgB,CAAQ;IAEhC;;;;;OAKG;gBAED,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,gBAAgB,GAAE,MAAY;IAOhC;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,WAAW;IAWvE;;;;OAIG;IACH,cAAc,IAAI,MAAM;IAQxB;;;OAGG;IACH,QAAQ,IAAI,MAAM,GAAG,SAAS;CAG/B;AAED,eAAe,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup2",
|
|
3
|
-
"version": "2.0.0-SNAPSHOT-
|
|
3
|
+
"version": "2.0.0-SNAPSHOT-20250626151844",
|
|
4
4
|
"description": "Sme.UP web components library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Smeup LAB <info@smeup.com> (https://www.smeup.com/)",
|
|
@@ -31,46 +31,46 @@
|
|
|
31
31
|
"react-svg": "^16.3.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@eslint/js": "^9.
|
|
35
|
-
"@storybook/addon-a11y": "^9.0.
|
|
36
|
-
"@storybook/addon-docs": "^9.0.
|
|
37
|
-
"@storybook/react-vite": "^9.0.
|
|
34
|
+
"@eslint/js": "^9.29.0",
|
|
35
|
+
"@storybook/addon-a11y": "^9.0.13",
|
|
36
|
+
"@storybook/addon-docs": "^9.0.13",
|
|
37
|
+
"@storybook/react-vite": "^9.0.13",
|
|
38
38
|
"@testing-library/jest-dom": "^6.6.3",
|
|
39
39
|
"@testing-library/react": "^16.3.0",
|
|
40
40
|
"@types/css-modules": "^1.0.5",
|
|
41
41
|
"@types/react": "^19.1.8",
|
|
42
42
|
"@types/react-dom": "^19.1.6",
|
|
43
|
-
"@vitejs/plugin-react": "^4.
|
|
44
|
-
"@vitest/browser": "^3.
|
|
45
|
-
"@vitest/coverage-v8": "^3.
|
|
43
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
44
|
+
"@vitest/browser": "^3.2.4",
|
|
45
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
46
46
|
"eslint": "^9.29.0",
|
|
47
47
|
"eslint-config-prettier": "^10.1.5",
|
|
48
48
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
49
|
-
"eslint-plugin-prettier": "^5.
|
|
49
|
+
"eslint-plugin-prettier": "^5.5.1",
|
|
50
50
|
"eslint-plugin-react": "^7.37.5",
|
|
51
51
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
52
52
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
53
|
-
"eslint-plugin-storybook": "^9.0.
|
|
53
|
+
"eslint-plugin-storybook": "^9.0.13",
|
|
54
54
|
"globals": "^16.2.0",
|
|
55
|
-
"i18next": "^25",
|
|
55
|
+
"i18next": "^25.2.1",
|
|
56
56
|
"jsdom": "^26.1.0",
|
|
57
|
-
"playwright": "^1.53.
|
|
57
|
+
"playwright": "^1.53.1",
|
|
58
58
|
"postcss": "^8.5.6",
|
|
59
59
|
"postcss-preset-env": "^10.2.3",
|
|
60
|
-
"prettier": "^3.
|
|
60
|
+
"prettier": "^3.6.1",
|
|
61
61
|
"rimraf": "^6.0.1",
|
|
62
|
-
"storybook": "^9.0.
|
|
63
|
-
"stylelint": "^16.
|
|
62
|
+
"storybook": "^9.0.13",
|
|
63
|
+
"stylelint": "^16.21.0",
|
|
64
64
|
"stylelint-config-standard": "^38.0.0",
|
|
65
65
|
"stylelint-order": "^7.0.0",
|
|
66
66
|
"typescript": "^5.8.3",
|
|
67
|
-
"typescript-eslint": "^8.
|
|
67
|
+
"typescript-eslint": "^8.35.0",
|
|
68
68
|
"vite": "^6.3.5",
|
|
69
69
|
"vite-plugin-dts": "^4.5.4",
|
|
70
|
-
"vitest": "^3.
|
|
70
|
+
"vitest": "^3.2.4"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"i18next": "^25",
|
|
73
|
+
"i18next": "^25.2.1",
|
|
74
74
|
"react": "^19.1.0",
|
|
75
75
|
"react-dom": "^19.1.0"
|
|
76
76
|
},
|