@sme.up/ketchup2 1.0.1 → 1.1.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.
Files changed (126) hide show
  1. package/dist/assets/layoutAssets.d.ts +7 -0
  2. package/dist/assets/layoutAssets.d.ts.map +1 -0
  3. package/dist/assets/svg/arrow_left.svg +1 -0
  4. package/dist/assets/svg/chevron-right.svg +1 -0
  5. package/dist/assets/svg/drag_indicator_horizontal.svg +11 -0
  6. package/dist/assets/svg/drag_indicator_vertical.svg +1 -0
  7. package/dist/assets/svg/groups.svg +1 -0
  8. package/dist/assets/svg/menu.svg +1 -0
  9. package/dist/assets/svg/menu_close.svg +1 -0
  10. package/dist/assets/svg/power_settings_new.svg +1 -0
  11. package/dist/assets/svg/refresh.svg +1 -0
  12. package/dist/assets/testAsset.d.ts +158 -0
  13. package/dist/assets/testAsset.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +34 -9
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button/button-utils.d.ts +14 -0
  17. package/dist/basic-components/button/button-utils.d.ts.map +1 -0
  18. package/dist/basic-components/button/button.d.ts.map +1 -1
  19. package/dist/basic-components/cell/cell-types.d.ts +9 -3
  20. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  21. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  22. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  23. package/dist/basic-components/cell/stories/utils.d.ts +1 -1
  24. package/dist/basic-components/cell/stories/utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
  26. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  27. package/dist/basic-components/chips/chips-types.d.ts +16 -0
  28. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  29. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  30. package/dist/basic-components/combobox/combobox.d.ts.map +1 -1
  31. package/dist/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts.map +1 -1
  32. package/dist/basic-components/icon/icon-types.d.ts +39 -1
  33. package/dist/basic-components/icon/icon-types.d.ts.map +1 -1
  34. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  35. package/dist/basic-components/list/list.d.ts.map +1 -1
  36. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  37. package/dist/basic-components/password/password.d.ts.map +1 -1
  38. package/dist/basic-components/searchbar/search-bar-types.d.ts +3 -0
  39. package/dist/basic-components/searchbar/search-bar-types.d.ts.map +1 -0
  40. package/dist/basic-components/searchbar/search-bar.d.ts +3 -0
  41. package/dist/basic-components/searchbar/search-bar.d.ts.map +1 -0
  42. package/dist/basic-components/textfield/textfield-types.d.ts +14 -0
  43. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  44. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  45. package/dist/basic-components/typography/typography-types.d.ts +4 -0
  46. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  47. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  48. package/dist/components/app-bar/app-bar-types.d.ts +20 -0
  49. package/dist/components/app-bar/app-bar-types.d.ts.map +1 -0
  50. package/dist/components/app-bar/app-bar.d.ts +3 -0
  51. package/dist/components/app-bar/app-bar.d.ts.map +1 -0
  52. package/dist/components/app-bar/app-bar.data.d.ts +155 -0
  53. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -0
  54. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  55. package/dist/components/data-table/assets/data-table-group.d.ts +49 -0
  56. package/dist/components/data-table/assets/data-table-group.d.ts.map +1 -0
  57. package/dist/components/data-table/assets/data-table-shapes.d.ts +168 -0
  58. package/dist/components/data-table/assets/data-table-shapes.d.ts.map +1 -0
  59. package/dist/components/data-table/data-table-types.d.ts +80 -0
  60. package/dist/components/data-table/data-table-types.d.ts.map +1 -0
  61. package/dist/components/data-table/data-table-utils.d.ts +24 -0
  62. package/dist/components/data-table/data-table-utils.d.ts.map +1 -0
  63. package/dist/components/data-table/data-table.d.ts +4 -0
  64. package/dist/components/data-table/data-table.d.ts.map +1 -0
  65. package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts +21 -0
  66. package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts.map +1 -0
  67. package/dist/components/drawer/drawer-types.d.ts +43 -0
  68. package/dist/components/drawer/drawer-types.d.ts.map +1 -0
  69. package/dist/components/drawer/drawer.d.ts +3 -0
  70. package/dist/components/drawer/drawer.d.ts.map +1 -0
  71. package/dist/components/drawer/drawer.data.d.ts +6 -0
  72. package/dist/components/drawer/drawer.data.d.ts.map +1 -0
  73. package/dist/components/field/field-types.d.ts +7 -8
  74. package/dist/components/field/field-types.d.ts.map +1 -1
  75. package/dist/components/field/field.d.ts.map +1 -1
  76. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  77. package/dist/components/spotlight/spotlight-types.d.ts +8 -0
  78. package/dist/components/spotlight/spotlight-types.d.ts.map +1 -0
  79. package/dist/components/spotlight/spotlight.d.ts +3 -0
  80. package/dist/components/spotlight/spotlight.d.ts.map +1 -0
  81. package/dist/config/paths.d.ts.map +1 -1
  82. package/dist/functional-components/group-bar/group-bar-types.d.ts +36 -0
  83. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -0
  84. package/dist/functional-components/group-bar/group-bar.d.ts +4 -0
  85. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -0
  86. package/dist/functional-components/group-row/group-row-types.d.ts +36 -0
  87. package/dist/functional-components/group-row/group-row-types.d.ts.map +1 -0
  88. package/dist/functional-components/group-row/group-row.d.ts +4 -0
  89. package/dist/functional-components/group-row/group-row.d.ts.map +1 -0
  90. package/dist/functional-components/helper-text/helper-text.d.ts.map +1 -1
  91. package/dist/functional-components/label/label.d.ts.map +1 -1
  92. package/dist/functional-components/layout/layout-utils.d.ts +25 -0
  93. package/dist/functional-components/layout/layout-utils.d.ts.map +1 -0
  94. package/dist/functional-components/layout/layout.d.ts.map +1 -1
  95. package/dist/functional-components/row/row-assets.d.ts +5 -0
  96. package/dist/functional-components/row/row-assets.d.ts.map +1 -0
  97. package/dist/functional-components/row/row-types.d.ts +19 -0
  98. package/dist/functional-components/row/row-types.d.ts.map +1 -0
  99. package/dist/functional-components/row/row.d.ts +3 -0
  100. package/dist/functional-components/row/row.d.ts.map +1 -0
  101. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  102. package/dist/hooks/useDebounce.d.ts.map +1 -1
  103. package/dist/index.d.ts +6 -0
  104. package/dist/index.d.ts.map +1 -1
  105. package/dist/ketchup2.cjs.js +21 -21
  106. package/dist/ketchup2.css +1 -1
  107. package/dist/ketchup2.es.js +4019 -3675
  108. package/dist/locale/en/translation.json.d.ts +2 -1
  109. package/dist/locale/it/translation.json.d.ts +2 -1
  110. package/dist/types/data-structures.d.ts +28 -3
  111. package/dist/types/data-structures.d.ts.map +1 -1
  112. package/dist/types/global.d.ts +1 -1
  113. package/dist/types/global.d.ts.map +1 -1
  114. package/dist/types/legacy.d.ts +1 -0
  115. package/dist/types/legacy.d.ts.map +1 -1
  116. package/dist/types/translation.d.ts +2 -1
  117. package/dist/types/translation.d.ts.map +1 -1
  118. package/dist/utils/array.d.ts +8 -0
  119. package/dist/utils/array.d.ts.map +1 -0
  120. package/dist/utils/display-value.d.ts.map +1 -1
  121. package/dist/utils/hash.d.ts +7 -0
  122. package/dist/utils/hash.d.ts.map +1 -0
  123. package/dist/utils/legacy.d.ts.map +1 -1
  124. package/dist/utils/objects.d.ts.map +1 -1
  125. package/dist/utils/translation.d.ts.map +1 -1
  126. package/package.json +41 -41
@@ -0,0 +1,20 @@
1
+ import { CellProps } from '../../basic-components/cell/cell-types';
2
+ import { DataCell, DataTable } from '../../types/data-structures';
3
+ export interface AppBarProps {
4
+ /**
5
+ * Data table with grid appbar data
6
+ */
7
+ data: DataTable;
8
+ /**
9
+ * onClick function on appbar
10
+ */
11
+ onClick?: (data: DataCell) => void;
12
+ /**
13
+ * onEnter function on appbar due to spotlight shape
14
+ */
15
+ onEnter?: (data: DataCell) => void;
16
+ }
17
+ export interface AppBarState {
18
+ [cellId: string]: CellProps;
19
+ }
20
+ //# sourceMappingURL=app-bar-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-bar-types.d.ts","sourceRoot":"","sources":["../../../src/components/app-bar/app-bar-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAA;AAClE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAEjE,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAEhC;;KAEC;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B"}
@@ -0,0 +1,3 @@
1
+ import { AppBarProps } from './app-bar-types';
2
+ export declare const AppBar: React.FC<AppBarProps>;
3
+ //# sourceMappingURL=app-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-bar.d.ts","sourceRoot":"","sources":["../../../src/components/app-bar/app-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAe,MAAM,iBAAiB,CAAA;AAG1D,OAAO,eAAe,CAAA;AAEtB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmExC,CAAA"}
@@ -0,0 +1,155 @@
1
+ /**
2
+ * AppBar JSON to be used inside appbar stories and cabled webup
3
+ */
4
+ export declare const appBarData: {
5
+ columns: {
6
+ name: string;
7
+ title: string;
8
+ visible: boolean;
9
+ }[];
10
+ rows: {
11
+ id: string;
12
+ cells: {
13
+ MENU: {
14
+ obj: {
15
+ t: string;
16
+ p: string;
17
+ k: string;
18
+ };
19
+ fun: string;
20
+ icon: string;
21
+ data: {
22
+ variant: string;
23
+ appearance: string;
24
+ sizing: string;
25
+ };
26
+ shape: "BTN";
27
+ };
28
+ BACK: {
29
+ obj: {
30
+ t: string;
31
+ p: string;
32
+ k: string;
33
+ };
34
+ fun: string;
35
+ icon: string;
36
+ data: {
37
+ variant: string;
38
+ appearance: string;
39
+ sizing: string;
40
+ };
41
+ shape: "BTN";
42
+ };
43
+ REFRESH: {
44
+ obj: {
45
+ t: string;
46
+ p: string;
47
+ k: string;
48
+ };
49
+ fun: string;
50
+ icon: string;
51
+ data: {
52
+ variant: string;
53
+ appearance: string;
54
+ sizing: string;
55
+ };
56
+ shape: "BTN";
57
+ };
58
+ LOGO: {
59
+ obj: {
60
+ t: string;
61
+ p: string;
62
+ k: string;
63
+ };
64
+ fun: string;
65
+ icon: string;
66
+ data: {
67
+ width: string;
68
+ };
69
+ shape: "ICO";
70
+ };
71
+ SPOTLIGHT: {
72
+ obj: {
73
+ t: string;
74
+ p: string;
75
+ k: string;
76
+ };
77
+ data: {
78
+ sizing: string;
79
+ appearance: string;
80
+ };
81
+ fun: string;
82
+ icon: string;
83
+ shape: "SPL";
84
+ };
85
+ COMPANYICON: {
86
+ obj: {
87
+ t: string;
88
+ p: string;
89
+ k: string;
90
+ };
91
+ fun: string;
92
+ icon: string;
93
+ shape: "ICO";
94
+ };
95
+ COMPANYCHIP: {
96
+ obj: {
97
+ t: string;
98
+ p: string;
99
+ k: string;
100
+ };
101
+ fun: string;
102
+ icon: string;
103
+ shape: "CHI";
104
+ };
105
+ LOGOUT: {
106
+ obj: {
107
+ t: string;
108
+ p: string;
109
+ k: string;
110
+ };
111
+ data: {
112
+ variant: string;
113
+ appearance: string;
114
+ sizing: string;
115
+ };
116
+ shape: "BTN";
117
+ icon: string;
118
+ };
119
+ };
120
+ layout: {
121
+ horizontal: boolean;
122
+ sections: {
123
+ id: string;
124
+ horizontal: boolean;
125
+ hdsp: string;
126
+ sections: ({
127
+ id: string;
128
+ horizontal: boolean;
129
+ sections: {
130
+ id: string;
131
+ sections: never[];
132
+ vdsp: string;
133
+ horizontal: boolean;
134
+ content: {
135
+ id: string;
136
+ }[];
137
+ }[];
138
+ hdsp?: undefined;
139
+ vdsp?: undefined;
140
+ content?: undefined;
141
+ } | {
142
+ id: string;
143
+ horizontal: boolean;
144
+ sections: never[];
145
+ hdsp: string;
146
+ vdsp: string;
147
+ content: {
148
+ id: string;
149
+ }[];
150
+ })[];
151
+ }[];
152
+ };
153
+ }[];
154
+ };
155
+ //# sourceMappingURL=app-bar.data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-bar.data.d.ts","sourceRoot":"","sources":["../../../src/components/app-bar/app-bar.data.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwNlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"dash-list.d.ts","sourceRoot":"","sources":["../../../src/components/dash-list/dash-list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAU,MAAM,mBAAmB,CAAA;AAKzD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2P5C,CAAA"}
1
+ {"version":3,"file":"dash-list.d.ts","sourceRoot":"","sources":["../../../src/components/dash-list/dash-list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAU,MAAM,mBAAmB,CAAA;AAGzD,OAAO,iBAAiB,CAAA;AAExB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2P5C,CAAA"}
@@ -0,0 +1,49 @@
1
+ export declare const groupData: {
2
+ type: string;
3
+ columns: {
4
+ name: string;
5
+ title: string;
6
+ visible: boolean;
7
+ }[];
8
+ rows: {
9
+ cells: {
10
+ COD: {
11
+ value: string;
12
+ obj: {
13
+ t: string;
14
+ p: string;
15
+ k: string;
16
+ };
17
+ options: never[];
18
+ decode: string;
19
+ isEditable: boolean;
20
+ shape: "ACP";
21
+ };
22
+ DES: {
23
+ value: string;
24
+ obj: {
25
+ t: string;
26
+ p: string;
27
+ k: string;
28
+ };
29
+ isEditable: boolean;
30
+ decode: string;
31
+ options: never[];
32
+ shape: "ACP";
33
+ };
34
+ THIRD: {
35
+ value: string;
36
+ obj: {
37
+ t: string;
38
+ p: string;
39
+ k: string;
40
+ };
41
+ isEditable: boolean;
42
+ decode: string;
43
+ options: never[];
44
+ shape: "ACP";
45
+ };
46
+ };
47
+ }[];
48
+ };
49
+ //# sourceMappingURL=data-table-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-group.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/assets/data-table-group.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IrB,CAAA"}
@@ -0,0 +1,168 @@
1
+ export declare const shapesData: {
2
+ type: string;
3
+ columns: {
4
+ name: string;
5
+ title: string;
6
+ visible: boolean;
7
+ isEditable: null;
8
+ }[];
9
+ rows: {
10
+ layout: {};
11
+ rowId: string;
12
+ error: null;
13
+ cells: {
14
+ ACP: {
15
+ decode: string;
16
+ obj: {
17
+ t: string;
18
+ p: string;
19
+ k: string;
20
+ };
21
+ tooltip: boolean;
22
+ data: {
23
+ size: number;
24
+ maxLength: number;
25
+ displayMode: string;
26
+ };
27
+ isEditable: boolean;
28
+ shape: "ACP";
29
+ };
30
+ AML: {
31
+ decode: string;
32
+ obj: {
33
+ t: string;
34
+ p: string;
35
+ k: string;
36
+ };
37
+ data: {
38
+ displayMode: string;
39
+ };
40
+ isEditable: boolean;
41
+ shape: "AML";
42
+ };
43
+ CMB: {
44
+ decode: string;
45
+ obj: {
46
+ t: string;
47
+ p: string;
48
+ k: string;
49
+ };
50
+ tooltip: boolean;
51
+ data: {
52
+ size: number;
53
+ maxLength: number;
54
+ displayMode: string;
55
+ };
56
+ isEditable: boolean;
57
+ shape: "CMB";
58
+ };
59
+ BTN_1: {
60
+ decode: string;
61
+ obj: {
62
+ k: string;
63
+ p: string;
64
+ t: string;
65
+ };
66
+ data: {
67
+ label: string;
68
+ };
69
+ icon: string;
70
+ fun: string;
71
+ isEditable: boolean;
72
+ shape: "BTN";
73
+ };
74
+ BTN_2: {
75
+ decode: string;
76
+ obj: {
77
+ k: string;
78
+ p: string;
79
+ t: string;
80
+ };
81
+ icon: string;
82
+ fun: string;
83
+ isEditable: boolean;
84
+ shape: "BTN";
85
+ };
86
+ CHK: {
87
+ obj: {
88
+ k: string;
89
+ p: string;
90
+ t: string;
91
+ };
92
+ data: {
93
+ checked: boolean;
94
+ label: string;
95
+ };
96
+ decode: string;
97
+ shape: "CHK";
98
+ isEditable: boolean;
99
+ };
100
+ CHI: {
101
+ data: {
102
+ data: ({
103
+ id: string;
104
+ decode: string;
105
+ icon?: undefined;
106
+ } | {
107
+ icon: string;
108
+ id: string;
109
+ decode: string;
110
+ })[];
111
+ };
112
+ obj: {
113
+ t: string;
114
+ p: string;
115
+ k: string;
116
+ };
117
+ decode: string;
118
+ shape: "CHI";
119
+ isEditable: boolean;
120
+ };
121
+ CAL: {
122
+ decode: string;
123
+ obj: {
124
+ t: string;
125
+ p: string;
126
+ k: string;
127
+ };
128
+ shape: "CAL";
129
+ isEditable: boolean;
130
+ };
131
+ ITX: {
132
+ decode: string;
133
+ obj: {
134
+ t: string;
135
+ p: string;
136
+ k: string;
137
+ };
138
+ isEditable: boolean;
139
+ shape: "ITX";
140
+ };
141
+ ICO: {
142
+ decode: string;
143
+ obj: {
144
+ t: string;
145
+ p: string;
146
+ k: string;
147
+ };
148
+ icon: string;
149
+ shape: "ICO";
150
+ isEditable: boolean;
151
+ };
152
+ IMG: {
153
+ decode: string;
154
+ obj: {
155
+ t: string;
156
+ p: string;
157
+ k: string;
158
+ };
159
+ icon: string;
160
+ shape: "IMG";
161
+ data: {
162
+ sizeX: string;
163
+ };
164
+ };
165
+ };
166
+ }[];
167
+ };
168
+ //# sourceMappingURL=data-table-shapes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-shapes.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/assets/data-table-shapes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEtB,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { DataCells, DataColumn, DataLayout, DataRow, DataTable, smeupGroup } from '../../types/data-structures';
2
+ /**
3
+ * @interface DataTableProps
4
+ * @description Defines the props for the DataTable component.
5
+ */
6
+ export interface DataTableProps {
7
+ /**
8
+ * @description The data to be displayed in the table.
9
+ */
10
+ readonly data: DataTable;
11
+ /**
12
+ * @description The height of each line in the table.
13
+ */
14
+ readonly lineHeight: number;
15
+ /**
16
+ * @description The total height of the table.
17
+ */
18
+ readonly TableHeight: number;
19
+ /**
20
+ * @description Optional grouping configuration for the table rows.
21
+ */
22
+ readonly groups?: smeupGroup[];
23
+ }
24
+ /**
25
+ * @interface InternalDataTable
26
+ * @description Represents the internal structure of the data table.
27
+ */
28
+ export interface InternalDataTable {
29
+ /**
30
+ * @description The columns of the data table.
31
+ */
32
+ columns: DataColumn[];
33
+ /**
34
+ * @description The rows of the data table, adapted for internal processing.
35
+ */
36
+ rows: internalRows[];
37
+ }
38
+ /**
39
+ * @interface internalRows
40
+ * @description Defines the structure of a row within the internal data table representation.
41
+ */
42
+ export interface internalRows {
43
+ /**
44
+ * @description An optional unique identifier for the row.
45
+ */
46
+ rowId?: string;
47
+ /**
48
+ * @description The cells that make up this row.
49
+ */
50
+ cells: DataCells;
51
+ /**
52
+ * @description An optional layout configuration for this row.
53
+ */
54
+ layout?: DataLayout;
55
+ /**
56
+ * @description Indicates whether this row represents a group header.
57
+ */
58
+ isGroup?: boolean;
59
+ /**
60
+ * @description The value of the group if the row is a group header.
61
+ */
62
+ value?: string;
63
+ /**
64
+ * @description The nesting level of the group.
65
+ */
66
+ level?: number;
67
+ /**
68
+ * @description The expanded or collapsed state of the group.
69
+ */
70
+ isExpanded?: boolean;
71
+ /**
72
+ * @description The child rows for expandable/collapsible groups.
73
+ */
74
+ children?: internalRows[];
75
+ /**
76
+ * @description The original data rows associated with this internal row, particularly for groups.
77
+ */
78
+ rows?: DataRow[];
79
+ }
80
+ //# sourceMappingURL=data-table-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-types.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACX,MAAM,6BAA6B,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAA;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,UAAU,EAAE,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;CACjB"}
@@ -0,0 +1,24 @@
1
+ import { ArrayElementBindProps } from '../../basic-components/cell/cell-types';
2
+ import { smeupGroup } from '../../types/data-structures';
3
+ /**
4
+ * Toggles the expansion state of a group in a Set of expanded group IDs.
5
+ *
6
+ * If the groupId is already in the set, it will be removed (collapsed).
7
+ * If the groupId is not in the set, it will be added (expanded).
8
+ *
9
+ * This function returns a new Set instance with the updated state,
10
+ * suitable for use in React state updates to maintain immutability.
11
+ *
12
+ * @param {Set<string>} expandedGroups - The current set of expanded group IDs.
13
+ * @param {string} groupId - The unique identifier of the group to toggle.
14
+ * @returns {Set<string>} A new set of expanded group IDs reflecting the toggle.
15
+ */
16
+ export declare function toggleGroup(expandedGroups: Set<string>, groupId: string): Set<string>;
17
+ /**
18
+ * Converts ArrayElementBindProps[] to smeupGroup[] while preserving visibility if possible.
19
+ * @param newElements - New chips data.
20
+ * @param previousGroups - Current smeupGroup[] to preserve visibility values.
21
+ * @returns Updated smeupGroup[]
22
+ */
23
+ export declare function mapChipsToGroups(newElements: ArrayElementBindProps[], previousGroups: smeupGroup[]): smeupGroup[];
24
+ //# sourceMappingURL=data-table-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-utils.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CACzB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,EAC3B,OAAO,EAAE,MAAM,GACd,GAAG,CAAC,MAAM,CAAC,CAQb;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,qBAAqB,EAAE,EACpC,cAAc,EAAE,UAAU,EAAE,GAC3B,UAAU,EAAE,CAQd"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { DataTableProps } from './data-table-types';
3
+ export declare const DataTableComponent: React.FC<DataTableProps>;
4
+ //# sourceMappingURL=data-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAUlD,OAAO,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAA;AAEtE,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAsMvD,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { DataRow } from '../../../types/data-structures';
2
+ import { internalRows } from '../data-table-types';
3
+ export type GroupDefinition = {
4
+ column: string;
5
+ visible: boolean;
6
+ };
7
+ /**
8
+ * Builds a flat list of grouped rows from a flat data array based on the provided group definitions.
9
+ * The grouping is applied recursively, and only expanded groups are traversed further.
10
+ *
11
+ * @param {DataRow[]} rows - The flat data rows to be grouped.
12
+ * @param {GroupDefinition[]} groups - Definitions of columns to group by and their visibility.
13
+ * @param {number} lineHeight - The height of each row (used for calculating total offset).
14
+ * @param {Set<string>} expandedGroups - A set of group IDs indicating which groups are expanded.
15
+ * @returns {{ flatRows: internalRows[]; offset: number }} An object containing the flattened rows and the total offset.
16
+ */
17
+ export declare function buildFlatGroupedRows(rows: DataRow[], groups: GroupDefinition[], lineHeight: number, expandedGroups: Set<string>): {
18
+ flatRows: internalRows[];
19
+ offset: number;
20
+ };
21
+ //# sourceMappingURL=buildFlatGroupedRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildFlatGroupedRows.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/utils/buildFlatGroupedRows.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAA;AAElE;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EAAE,EACf,MAAM,EAAE,eAAe,EAAE,EACzB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,GAC1B;IAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CA+G9C"}
@@ -0,0 +1,43 @@
1
+ import { CellProps } from '../../basic-components/cell/cell-types';
2
+ import { DataCell, DataTable } from '../../types/data-structures';
3
+ export interface DrawerProps {
4
+ /**
5
+ * Data table with grid drawer data
6
+ */
7
+ data: DataTable;
8
+ /**
9
+ * Icon name or url for the company logo
10
+ */
11
+ logo?: string;
12
+ /**
13
+ * Boolean value to set drawer state
14
+ */
15
+ open?: boolean;
16
+ /**
17
+ * Determines whether the drawer stays partially visible (minified) when closed.
18
+ * Set to `false` to fully collapse and hide the drawer.
19
+ * @default true
20
+ */
21
+ minifiedOnClose?: boolean;
22
+ /**
23
+ * Custom Drawer height
24
+ * @default '100vh'
25
+ */
26
+ customHeight?: string;
27
+ /**
28
+ * onClick function on drawer
29
+ */
30
+ onClick?: (data: DataCell) => void;
31
+ /**
32
+ * onEnter function on drawer due to spotlight shape
33
+ */
34
+ onEnter?: (data: DataCell) => void;
35
+ /**
36
+ * onClose function to close the drawer from outside
37
+ */
38
+ onClose?: () => void;
39
+ }
40
+ export interface DrawerState {
41
+ [cellId: string]: CellProps;
42
+ }
43
+ //# sourceMappingURL=drawer-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-types.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAA;AAClE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAEjE,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B"}
@@ -0,0 +1,3 @@
1
+ import { DrawerProps } from './drawer-types';
2
+ export declare const Drawer: React.FC<DrawerProps>;
3
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAe,MAAM,gBAAgB,CAAA;AAEzD,OAAO,cAAc,CAAA;AAErB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoMxC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { DataTable } from '../../types/data-structures';
2
+ /**
3
+ * Drawer JSON to be used inside drawer stories and cabled webup
4
+ */
5
+ export declare const drawerData: DataTable;
6
+ //# sourceMappingURL=drawer.data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.data.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,SAkIxB,CAAA"}
@@ -1,16 +1,15 @@
1
1
  import { DataCell, DataCellShapes } from '../../types/data-structures';
2
2
  import { OptionsRequest } from '../../types/generic';
3
- import { Position } from '../../types/global';
4
- import { BooleanValue } from '../../types/legacy';
3
+ import { BooleanValue, LegacyPosition } from '../../types/legacy';
5
4
  export interface FieldProps {
6
5
  data: DataCell;
7
- type?: DataCellShapes;
8
- showSubmit?: BooleanValue;
9
- submitPosition?: Position;
10
- label?: string;
11
- labelPosition?: Position;
6
+ Type?: DataCellShapes;
7
+ ShowSubmit?: BooleanValue;
8
+ SubmitPosition?: LegacyPosition;
9
+ Label?: string;
10
+ LabelPosition?: LegacyPosition;
12
11
  /** T;P;K */
13
- defaultValue?: string;
12
+ DefaultValue?: string;
14
13
  onBlur?: (data: DataCell) => void;
15
14
  onClick?: (data: DataCell) => void;
16
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"field-types.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,UAAU,CAAC,EAAE,YAAY,CAAA;IACzB,cAAc,CAAC,EAAE,QAAQ,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,QAAQ,CAAA;IACxB,YAAY;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,cAAc,CAAA;CAClC"}
1
+ {"version":3,"file":"field-types.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEjE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,UAAU,CAAC,EAAE,YAAY,CAAA;IACzB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,YAAY;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,cAAc,CAAA;CAClC"}