@topconsultnpm/sdkui-react-beta 6.10.23 → 6.10.25
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/lib/components/base/TMDataGrid.d.ts +12 -0
- package/lib/helper/SDKUI_Localizator.d.ts +2 -0
- package/lib/helper/SDKUI_Localizator.js +20 -0
- package/lib/hooks/useForm.js +4 -0
- package/lib/stories/TMDataGrid.stories.d.ts +1 -1
- package/lib/stories/TMDataGrid.stories.js +1 -1
- package/package.json +1 -1
|
@@ -18,17 +18,29 @@ export declare enum TMDataGridPageSize {
|
|
|
18
18
|
Large = 100
|
|
19
19
|
}
|
|
20
20
|
export interface TMDataGridProps<T> extends IDataGridOptions {
|
|
21
|
+
/** An array of grid columns */
|
|
21
22
|
dataColumns: Array<IColumnProps>;
|
|
23
|
+
/** Specifies initially or currently focused grid row's key */
|
|
22
24
|
focusedRowKey: number | undefined;
|
|
25
|
+
/** Allows you to select rows or determine which rows are selected. Applies only if selection.deferred is false */
|
|
23
26
|
selectedRowKeys?: Array<number>;
|
|
27
|
+
/** Defines the number of rows per page in the data grid (Small = 30 rows, Medium = 50 rows, Large = 100 rows) */
|
|
24
28
|
pageSize?: TMDataGridPageSize;
|
|
29
|
+
/** Configures the search panel position in the toolbar */
|
|
25
30
|
searchPanelToolbarPosition?: 'before' | 'default';
|
|
31
|
+
/** Show the header filter */
|
|
26
32
|
showHeaderFilter?: boolean;
|
|
33
|
+
/** Show the filter panel */
|
|
27
34
|
showFilterPanel?: boolean;
|
|
35
|
+
/** Show the load panel */
|
|
28
36
|
showLoadPanel?: boolean;
|
|
37
|
+
/** Show the column chooser */
|
|
29
38
|
showColumnChooser?: boolean;
|
|
39
|
+
/** Show the search panel */
|
|
30
40
|
showSearchPanel?: boolean;
|
|
41
|
+
/** Show the group panel */
|
|
31
42
|
showGroupPanel?: boolean;
|
|
43
|
+
/** Counter configuration */
|
|
32
44
|
counterConfig?: ITMCounterContainerProps;
|
|
33
45
|
}
|
|
34
46
|
declare const TMDataGrid: React.ForwardRefExoticComponent<TMDataGridProps<unknown> & React.RefAttributes<dxDataGrid<any, any>>>;
|
|
@@ -214,6 +214,7 @@ export declare class SDKUI_Localizator {
|
|
|
214
214
|
static get PhysDelete(): "Physische Stornierung" | "Physical delete" | "Cancelación física" | "Supression" | "Cancelamento física" | "Cancellazione fisica";
|
|
215
215
|
static get Previous(): "Vorherige" | "Previous" | "Anterior" | "Précédent" | "Precedente";
|
|
216
216
|
static get ProcessedItems(): "Durchdachte Elemente" | "Processed items" | "Elementos elaborados" | "Items traités" | "Itens processados" | "Elementi elaborati";
|
|
217
|
+
static get Properties(): "Eigenschaften" | "Properties" | "Propiedades" | "Propriétés" | "Propriedades" | "Proprietà";
|
|
217
218
|
static get QueryClear(): "Query bereinigen" | "Clear query" | "Limpiar consulta" | "Efface query" | "Limpar query" | "Pulisci query";
|
|
218
219
|
static get QueryCount(): "Zählanfragen" | "Query count" | "Contar consulta" | "Compte query" | "Count query" | "Conta query";
|
|
219
220
|
static get QueryDefine(): "Abfrage definieren" | "Query define" | "Definir consulta" | "Défine query" | "Definir query" | "Definisci query";
|
|
@@ -277,6 +278,7 @@ export declare class SDKUI_Localizator {
|
|
|
277
278
|
static get Template(): "Modell des Autos" | "Template" | "Modelo" | "Modèle" | "Modello";
|
|
278
279
|
static get ToTime(): "zu" | "to" | "a" | "à" | "al";
|
|
279
280
|
static get Time(): "Jetzt" | "Time" | "Ahora" | "Maintenant" | "Agora" | "Ora";
|
|
281
|
+
static get Type(): "Typ" | "Type" | "Tipo";
|
|
280
282
|
static get Tracing(): "Trassierung" | "Tracing" | "Trazado" | "Marquage" | "Marcação" | "Tracciatura";
|
|
281
283
|
static get UBLViewFormats_ER_HTML(): "ER Style Sheet (HTML)" | "Hoja de estilo ER (HTML)" | "Feuille de style ER (HTML)" | "Folha de estilo ER (HTML)" | "Foglio di stile ER (HTML)";
|
|
282
284
|
static get UBLViewFormats_ER_PDF(): "ER Style Sheet (PDF)" | "Hoja de estilo ER (PDF)" | "Feuille de style ER (PDF)" | "Folha de estilo ER (PDF)" | "Foglio di stile ER (PDF)";
|
|
@@ -2091,6 +2091,16 @@ export class SDKUI_Localizator {
|
|
|
2091
2091
|
default: return "Elementi elaborati";
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
|
+
static get Properties() {
|
|
2095
|
+
switch (this._cultureID) {
|
|
2096
|
+
case CultureIDs.De_DE: return "Eigenschaften";
|
|
2097
|
+
case CultureIDs.En_US: return "Properties";
|
|
2098
|
+
case CultureIDs.Es_ES: return "Propiedades";
|
|
2099
|
+
case CultureIDs.Fr_FR: return "Propriétés";
|
|
2100
|
+
case CultureIDs.Pt_PT: return "Propriedades";
|
|
2101
|
+
default: return "Proprietà";
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2094
2104
|
static get QueryClear() {
|
|
2095
2105
|
switch (this._cultureID) {
|
|
2096
2106
|
case CultureIDs.De_DE: return "Query bereinigen";
|
|
@@ -2728,6 +2738,16 @@ export class SDKUI_Localizator {
|
|
|
2728
2738
|
default: return "Ora";
|
|
2729
2739
|
}
|
|
2730
2740
|
}
|
|
2741
|
+
static get Type() {
|
|
2742
|
+
switch (this._cultureID) {
|
|
2743
|
+
case CultureIDs.De_DE: return "Typ";
|
|
2744
|
+
case CultureIDs.En_US: return "Type";
|
|
2745
|
+
case CultureIDs.Es_ES: return "Tipo";
|
|
2746
|
+
case CultureIDs.Fr_FR: return "Type";
|
|
2747
|
+
case CultureIDs.Pt_PT: return "Type";
|
|
2748
|
+
default: return "Tipo";
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2731
2751
|
static get Tracing() {
|
|
2732
2752
|
switch (this._cultureID) {
|
|
2733
2753
|
case CultureIDs.De_DE: return "Trassierung";
|
package/lib/hooks/useForm.js
CHANGED
|
@@ -32,6 +32,10 @@ export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChang
|
|
|
32
32
|
d.level = UserLevels.Member;
|
|
33
33
|
d.type = UserTypes.TopMedia;
|
|
34
34
|
d.secureAuth = 1;
|
|
35
|
+
d.canDST = 0;
|
|
36
|
+
d.disabled = false;
|
|
37
|
+
d.neutralNames = 0;
|
|
38
|
+
d.onlyOnBehalfOf = 0;
|
|
35
39
|
return d;
|
|
36
40
|
}
|
|
37
41
|
// #endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
import 'devextreme/dist/css/dx.
|
|
4
|
+
import 'devextreme/dist/css/dx.fluent.blue.light.compact.css';
|
|
5
5
|
import '/lib/css/tm-sdkui.css';
|
|
6
6
|
export declare const DefaultTMDatagrid: any;
|
|
7
7
|
/******* 2. Default Template and Datagrid with Search Panel to Right *******/
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
279
279
|
}),
|
|
280
280
|
};
|
|
281
281
|
// Importing the DevExtreme library's Material Design theme in light blue color scheme
|
|
282
|
-
import 'devextreme/dist/css/dx.
|
|
282
|
+
import 'devextreme/dist/css/dx.fluent.blue.light.compact.css';
|
|
283
283
|
// Importing custom styles for the tm-sdkui library
|
|
284
284
|
import '/lib/css/tm-sdkui.css';
|
|
285
285
|
import { sortArgTypes } from './TMStoriesUtils';
|