@talxis/base-controls 1.2410.3 → 1.2410.5
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/README.md +20 -11
- package/dist/components/DatasetControl/DatasetControl.d.ts +3 -0
- package/dist/components/DatasetControl/DatasetControl.js +58 -0
- package/dist/components/DatasetControl/DatasetControl.js.map +1 -0
- package/dist/components/DatasetControl/hooks/useRerender.d.ts +1 -0
- package/dist/components/DatasetControl/hooks/useRerender.js +9 -0
- package/dist/components/DatasetControl/hooks/useRerender.js.map +1 -0
- package/dist/components/DatasetControl/index.d.ts +2 -0
- package/dist/components/DatasetControl/index.js +2 -0
- package/dist/components/DatasetControl/index.js.map +1 -0
- package/dist/components/DatasetControl/interfaces.d.ts +10 -0
- package/dist/components/DatasetControl/styles.d.ts +8 -0
- package/dist/components/DatasetControl/styles.js +17 -0
- package/dist/components/DatasetControl/styles.js.map +1 -0
- package/dist/components/DatasetControl/translations.d.ts +10 -0
- package/dist/components/DatasetControl/translations.js +7 -0
- package/dist/components/DatasetControl/translations.js.map +1 -0
- package/dist/components/Decimal/Decimal.js +1 -1
- package/dist/components/Decimal/Decimal.js.map +1 -1
- package/dist/components/Duration/Duration.js +1 -1
- package/dist/components/Duration/Duration.js.map +1 -1
- package/dist/components/Grid/Grid.js +9 -2
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Grid/constants.d.ts +1 -2
- package/dist/components/Grid/constants.js +2 -2
- package/dist/components/Grid/constants.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js +21 -47
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/controllers/useAgGridController.d.ts +2 -3
- package/dist/components/Grid/core/components/AgGrid/controllers/useAgGridController.js +12 -8
- package/dist/components/Grid/core/components/AgGrid/controllers/useAgGridController.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +1 -2
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +20 -16
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/styles.d.ts +1 -4
- package/dist/components/Grid/core/components/AgGrid/styles.js +6 -9
- package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/Commands/Commands.d.ts +2 -2
- package/dist/components/Grid/core/components/Cell/Commands/Commands.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/Commands/Icon.d.ts +2 -2
- package/dist/components/Grid/core/components/Cell/Commands/Icon.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.d.ts +2 -2
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.js +2 -0
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js +4 -6
- package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.d.ts +11 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js +93 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.d.ts +36 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js +42 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.d.ts +2 -2
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js +106 -29
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.d.ts +2 -2
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js +3 -3
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.d.ts +49 -2
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js +51 -4
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js.map +1 -1
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +1 -1
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +1 -1
- package/dist/components/Grid/core/components/Component/model/Component.js +18 -11
- package/dist/components/Grid/core/components/Component/model/Component.js.map +1 -1
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +1 -1
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/RecordGrids.js +8 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/RecordGrids.js.map +1 -1
- package/dist/components/Grid/core/constants.d.ts +1 -0
- package/dist/components/Grid/core/constants.js +4 -0
- package/dist/components/Grid/core/constants.js.map +1 -0
- package/dist/components/Grid/core/controllers/useGridController.d.ts +0 -2
- package/dist/components/Grid/core/controllers/useGridController.js +1 -17
- package/dist/components/Grid/core/controllers/useGridController.js.map +1 -1
- package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +9 -18
- package/dist/components/Grid/core/model/Grid.d.ts +17 -10
- package/dist/components/Grid/core/model/Grid.js +93 -74
- package/dist/components/Grid/core/model/Grid.js.map +1 -1
- package/dist/components/Grid/core/model/GridDependency.d.ts +1 -1
- package/dist/components/Grid/core/model/Metadata.d.ts +2 -3
- package/dist/components/Grid/core/model/Metadata.js +13 -9
- package/dist/components/Grid/core/model/Metadata.js.map +1 -1
- package/dist/components/Grid/core/services/KeyListener.d.ts +8 -0
- package/dist/components/Grid/core/services/KeyListener.js +22 -0
- package/dist/components/Grid/core/services/KeyListener.js.map +1 -0
- package/dist/components/Grid/core/services/RecordUpdateService/model/RecordUpdateService.d.ts +8 -8
- package/dist/components/Grid/core/services/RecordUpdateService/model/RecordUpdateService.js +22 -26
- package/dist/components/Grid/core/services/RecordUpdateService/model/RecordUpdateService.js.map +1 -1
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +16 -16
- package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js.map +1 -1
- package/dist/components/Grid/filtering/model/Condition.js +7 -3
- package/dist/components/Grid/filtering/model/Condition.js.map +1 -1
- package/dist/components/Grid/filtering/model/Filtering.js +4 -4
- package/dist/components/Grid/filtering/model/Filtering.js.map +1 -1
- package/dist/components/Grid/interfaces.d.ts +5 -14
- package/dist/components/Grid/paging/components/Paging/Paging.js +7 -1
- package/dist/components/Grid/paging/components/Paging/Paging.js.map +1 -1
- package/dist/components/Grid/paging/controllers/usePagingController.d.ts +2 -1
- package/dist/components/Grid/paging/controllers/usePagingController.js +1 -0
- package/dist/components/Grid/paging/controllers/usePagingController.js.map +1 -1
- package/dist/components/Grid/paging/model/Paging.d.ts +2 -1
- package/dist/components/Grid/paging/model/Paging.js +22 -4
- package/dist/components/Grid/paging/model/Paging.js.map +1 -1
- package/dist/components/Grid/selection/controllers/useSelectionController.d.ts +2 -2
- package/dist/components/Grid/selection/controllers/useSelectionController.js +7 -3
- package/dist/components/Grid/selection/controllers/useSelectionController.js.map +1 -1
- package/dist/components/Grid/selection/model/Selection.d.ts +3 -3
- package/dist/components/Grid/selection/model/Selection.js +7 -4
- package/dist/components/Grid/selection/model/Selection.js.map +1 -1
- package/dist/components/Grid/sorting/Sorting.js +5 -6
- package/dist/components/Grid/sorting/Sorting.js.map +1 -1
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +3 -3
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -1
- package/dist/components/Grid/translations.d.ts +8 -0
- package/dist/components/Grid/translations.js +3 -1
- package/dist/components/Grid/translations.js.map +1 -1
- package/dist/components/Grid/validation/controllers/useRecordValidationController.d.ts +2 -2
- package/dist/components/Grid/validation/controllers/useRecordValidationController.js +2 -2
- package/dist/components/Grid/validation/controllers/useRecordValidationController.js.map +1 -1
- package/dist/hooks/useControl.js +1 -1
- package/dist/hooks/useControl.js.map +1 -1
- package/dist/hooks/useThemeOverride.d.ts +1 -0
- package/dist/hooks/useThemeOverride.js +23 -0
- package/dist/hooks/useThemeOverride.js.map +1 -0
- package/dist/index.d.ts +351 -367
- package/dist/index.js +1 -1
- package/dist/interfaces/property.d.ts +0 -29
- package/dist/utils/Theme.js +26 -0
- package/dist/utils/Theme.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +4 -3
- package/dist/components/Grid/core/hooks/useRerender.js +0 -13
- package/dist/components/Grid/core/hooks/useRerender.js.map +0 -1
- package/dist/utils/Numeral.d.ts +0 -6
- package/dist/utils/Numeral.js +0 -64
- package/dist/utils/Numeral.js.map +0 -1
|
@@ -6,7 +6,8 @@ export declare class Paging extends GridDependency {
|
|
|
6
6
|
get hasPreviousPage(): boolean;
|
|
7
7
|
get hasNextPage(): boolean;
|
|
8
8
|
get pageFirstRecordOrder(): number;
|
|
9
|
-
get
|
|
9
|
+
get formattedTotalResultCount(): string;
|
|
10
|
+
get pageLastRecordOrder(): string;
|
|
10
11
|
get isEnabled(): boolean;
|
|
11
12
|
loadNextPage(): void;
|
|
12
13
|
loadPreviousPage(): void;
|
|
@@ -17,14 +17,32 @@ class Paging extends GridDependency {
|
|
|
17
17
|
return this._dataset.paging.hasNextPage;
|
|
18
18
|
}
|
|
19
19
|
get pageFirstRecordOrder() {
|
|
20
|
+
if (this._dataset.sortedRecordIds.length === 0) {
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
20
23
|
return (this.pageNumber - 1) * this.pageSize + (this.totalResultCount === 0 ? 0 : 1);
|
|
21
24
|
}
|
|
25
|
+
get formattedTotalResultCount() {
|
|
26
|
+
if (this.totalResultCount === undefined) {
|
|
27
|
+
return '';
|
|
28
|
+
}
|
|
29
|
+
if (this.totalResultCount === -1) {
|
|
30
|
+
return '5000+';
|
|
31
|
+
}
|
|
32
|
+
return this.totalResultCount.toString();
|
|
33
|
+
}
|
|
22
34
|
get pageLastRecordOrder() {
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
|
|
35
|
+
const count = this.pageNumber * this.pageSize;
|
|
36
|
+
if (this.totalResultCount === undefined) {
|
|
37
|
+
if (this.hasNextPage) {
|
|
38
|
+
return `${count}+`;
|
|
39
|
+
}
|
|
40
|
+
return `${count - this.pageSize + this._dataset.sortedRecordIds.length}`;
|
|
41
|
+
}
|
|
42
|
+
if (count > this.totalResultCount && this.totalResultCount !== -1) {
|
|
43
|
+
return this.totalResultCount.toString();
|
|
26
44
|
}
|
|
27
|
-
return
|
|
45
|
+
return count.toString();
|
|
28
46
|
}
|
|
29
47
|
get isEnabled() {
|
|
30
48
|
return this._grid.parameters.EnablePagination?.raw !== false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paging.js","sources":["../../../../../src/components/Grid/paging/model/Paging.ts"],"sourcesContent":["import { GridDependency } from \"../../core/model/GridDependency\";\n\nexport class Paging extends GridDependency {\n\n public get pageNumber() {\n return this._dataset.paging.pageNumber;\n }\n public get pageSize() {\n return this._dataset.paging.pageSize;\n }\n public get totalResultCount() {\n return this._dataset.paging.totalResultCount;\n }\n public get hasPreviousPage() {\n return this._dataset.paging.hasPreviousPage;\n }\n public get hasNextPage() {\n return this._dataset.paging.hasNextPage;\n }\n public get pageFirstRecordOrder() {\n return (this.pageNumber - 1) * this.pageSize + (this.totalResultCount === 0 ? 0 : 1);\n }\n\n public get pageLastRecordOrder() {\n const
|
|
1
|
+
{"version":3,"file":"Paging.js","sources":["../../../../../src/components/Grid/paging/model/Paging.ts"],"sourcesContent":["import { GridDependency } from \"../../core/model/GridDependency\";\n\nexport class Paging extends GridDependency {\n\n public get pageNumber() {\n return this._dataset.paging.pageNumber;\n }\n public get pageSize() {\n return this._dataset.paging.pageSize;\n }\n public get totalResultCount() {\n return this._dataset.paging.totalResultCount;\n }\n public get hasPreviousPage() {\n return this._dataset.paging.hasPreviousPage;\n }\n public get hasNextPage() {\n return this._dataset.paging.hasNextPage;\n }\n public get pageFirstRecordOrder() {\n if(this._dataset.sortedRecordIds.length === 0) {\n return 0;\n }\n return (this.pageNumber - 1) * this.pageSize + (this.totalResultCount === 0 ? 0 : 1);\n }\n public get formattedTotalResultCount(): string {\n if(this.totalResultCount === undefined) {\n return '';\n }\n if(this.totalResultCount === -1) {\n return '5000+';\n }\n return this.totalResultCount.toString();\n }\n public get pageLastRecordOrder(): string {\n const count = this.pageNumber * this.pageSize;\n if(this.totalResultCount === undefined) {\n if(this.hasNextPage) {\n return `${count}+`;\n }\n return `${count - this.pageSize + this._dataset.sortedRecordIds.length}`\n\n }\n if(count > this.totalResultCount && this.totalResultCount !== -1) {\n return this.totalResultCount.toString();\n } \n return count.toString();\n }\n\n public get isEnabled() {\n return this._grid.parameters.EnablePagination?.raw !== false\n }\n\n public loadNextPage() {\n this.loadExactPage(this.pageNumber + 1)\n }\n public loadPreviousPage() {\n this.loadExactPage(this.pageNumber - 1);\n }\n public loadExactPage(pageNumber: number) {\n this._dataset.paging.loadExactPage(pageNumber);\n }\n public setPageSize(pageSize: number) {\n this._dataset.paging.setPageSize(pageSize);\n this._dataset.refresh();\n //in Power Apps the new page size can sometimes come only after second refresh #smh\n //@ts-ignore - Portal types\n if (!window.TALXIS?.Portal) {\n this._dataset.refresh()\n }\n }\n public reset() {\n this._dataset.paging.reset();\n }\n}"],"names":[],"mappings":";;AAEM,MAAO,MAAO,SAAQ,cAAc,CAAA;AAEtC,IAAA,IAAW,UAAU,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CA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Q,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;KAChC;AACJ;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRecord } from "@talxis/client-libraries";
|
|
2
2
|
interface ISelectionController {
|
|
3
3
|
type: "multiple" | "single" | undefined;
|
|
4
4
|
selectedRecordIds: string[];
|
|
5
5
|
allRecordsSelected: boolean;
|
|
6
|
-
toggle: (record:
|
|
6
|
+
toggle: (record: IRecord, state: boolean) => void;
|
|
7
7
|
clear: () => void;
|
|
8
8
|
selectAll: () => void;
|
|
9
9
|
}
|
|
@@ -3,13 +3,17 @@ import { useGridInstance } from '../../core/hooks/useGridInstance.js';
|
|
|
3
3
|
const useSelectionController = () => {
|
|
4
4
|
const grid = useGridInstance();
|
|
5
5
|
const selection = grid.selection;
|
|
6
|
+
const renderDecorator = async (fn) => {
|
|
7
|
+
await fn();
|
|
8
|
+
grid.pcfContext.factory.requestRender();
|
|
9
|
+
};
|
|
6
10
|
return {
|
|
7
11
|
type: selection.type,
|
|
8
12
|
selectedRecordIds: selection.selectedRecordIds,
|
|
9
13
|
allRecordsSelected: selection.allRecordsSelected,
|
|
10
|
-
toggle: (record, state) => selection.toggle(record, state),
|
|
11
|
-
clear: () => selection.clear(),
|
|
12
|
-
selectAll: () => selection.selectAll()
|
|
14
|
+
toggle: (record, state) => renderDecorator(() => selection.toggle(record, state)),
|
|
15
|
+
clear: () => renderDecorator(() => selection.clear()),
|
|
16
|
+
selectAll: () => renderDecorator(() => selection.selectAll()),
|
|
13
17
|
};
|
|
14
18
|
};
|
|
15
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectionController.js","sources":["../../../../../src/components/Grid/selection/controllers/useSelectionController.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"useSelectionController.js","sources":["../../../../../src/components/Grid/selection/controllers/useSelectionController.ts"],"sourcesContent":["import { IRecord } from \"@talxis/client-libraries\";\nimport { useGridInstance } from \"../../core/hooks/useGridInstance\";\n\ninterface ISelectionController {\n type: \"multiple\" | \"single\" | undefined;\n selectedRecordIds: string[];\n allRecordsSelected: boolean;\n toggle: (record: IRecord, state: boolean) => void;\n clear: () => void;\n selectAll: () => void;\n}\n\nexport const useSelectionController = (): ISelectionController => {\n const grid = useGridInstance();\n const selection = grid.selection;\n\n const renderDecorator = async (fn: () => void | Promise<void>) => {\n await fn();\n grid.pcfContext.factory.requestRender();\n };\n\n return {\n type: selection.type,\n selectedRecordIds: selection.selectedRecordIds,\n allRecordsSelected: selection.allRecordsSelected,\n toggle: (record: IRecord, state: boolean) => renderDecorator(() => selection.toggle(record, state)),\n clear: () => renderDecorator(() => selection.clear()),\n selectAll: () => renderDecorator(() => selection.selectAll()),\n };\n};\n"],"names":[],"mappings":";;AAYO,MAAM,sBAAsB,GAAG,MAA2B;AAC7D,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;AAC/B,IAAA,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;AAEjC,IAAA,MAAM,eAAe,GAAG,OAAO,EAA8B,KAAI;QAC7D,MAAM,EAAE,EAAE,CAAC;AACX,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;AAC5C,KAAC,CAAC;IAEF,OAAO;QACH,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,iBAAiB,EAAE,SAAS,CAAC,iBAAiB;QAC9C,kBAAkB,EAAE,SAAS,CAAC,kBAAkB;QAChD,MAAM,EAAE,CAAC,MAAe,EAAE,KAAc,KAAK,eAAe,CAAC,MAAM,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACnG,QAAA,KAAK,EAAE,MAAM,eAAe,CAAC,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;AACrD,QAAA,SAAS,EAAE,MAAM,eAAe,CAAC,MAAM,SAAS,CAAC,SAAS,EAAE,CAAC;KAChE,CAAC;AACN;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { IRecord } from "@talxis/client-libraries";
|
|
2
2
|
import { GridDependency } from "../../core/model/GridDependency";
|
|
3
3
|
export declare class Selection extends GridDependency {
|
|
4
4
|
private _selectedRecordIdsSet;
|
|
5
5
|
private debounceTimer;
|
|
6
|
-
toggle(record:
|
|
6
|
+
toggle(record: IRecord, newState: boolean, clearExistingSelection?: boolean, disableDebounce?: boolean): Promise<void>;
|
|
7
7
|
get selectedRecordIds(): string[];
|
|
8
8
|
get allRecordsSelected(): boolean;
|
|
9
|
-
get type(): "
|
|
9
|
+
get type(): "multiple" | "single" | undefined;
|
|
10
10
|
clear(): void;
|
|
11
11
|
selectAll(): void;
|
|
12
12
|
private _setSelectedRecords;
|
|
@@ -6,7 +6,7 @@ class Selection extends GridDependency {
|
|
|
6
6
|
this._selectedRecordIdsSet = new Set();
|
|
7
7
|
this.debounceTimer = null;
|
|
8
8
|
}
|
|
9
|
-
toggle(record, newState, clearExistingSelection, disableDebounce) {
|
|
9
|
+
async toggle(record, newState, clearExistingSelection, disableDebounce) {
|
|
10
10
|
const recordId = record.getRecordId();
|
|
11
11
|
if (!this.debounceTimer) {
|
|
12
12
|
this._selectedRecordIdsSet = new Set(this.selectedRecordIds);
|
|
@@ -30,9 +30,12 @@ class Selection extends GridDependency {
|
|
|
30
30
|
this._setSelectedRecords();
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
|
|
33
|
+
return new Promise((resolve) => {
|
|
34
|
+
this.debounceTimer = setTimeout(() => {
|
|
35
|
+
this._setSelectedRecords();
|
|
36
|
+
resolve();
|
|
37
|
+
}, 0);
|
|
38
|
+
});
|
|
36
39
|
}
|
|
37
40
|
get selectedRecordIds() {
|
|
38
41
|
return this._dataset.getSelectedRecordIds();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Selection.js","sources":["../../../../../src/components/Grid/selection/model/Selection.ts"],"sourcesContent":["import { GridDependency } from \"../../core/model/GridDependency\";\n\nexport class Selection extends GridDependency {\n private _selectedRecordIdsSet: Set<string> = new Set<string>();\n private debounceTimer: ReturnType<typeof setTimeout> | null = null;\n\n public toggle(record:
|
|
1
|
+
{"version":3,"file":"Selection.js","sources":["../../../../../src/components/Grid/selection/model/Selection.ts"],"sourcesContent":["import { IRecord } from \"@talxis/client-libraries\";\nimport { GridDependency } from \"../../core/model/GridDependency\";\n\nexport class Selection extends GridDependency {\n private _selectedRecordIdsSet: Set<string> = new Set<string>();\n private debounceTimer: ReturnType<typeof setTimeout> | null = null;\n\n public async toggle(record: IRecord, newState: boolean, clearExistingSelection?: boolean, disableDebounce?: boolean): Promise<void> {\n const recordId = record.getRecordId();\n if(!this.debounceTimer) {\n this._selectedRecordIdsSet = new Set(this.selectedRecordIds);\n }\n if (clearExistingSelection) {\n this._selectedRecordIdsSet.clear();\n }\n if (newState === false) {\n this._selectedRecordIdsSet.delete(recordId);\n }\n else {\n if (this.type === 'single') {\n this._selectedRecordIdsSet.clear();\n }\n this._selectedRecordIdsSet.add(recordId);\n }\n\n if (this.debounceTimer !== null) {\n clearTimeout(this.debounceTimer);\n }\n if(disableDebounce) {\n this._setSelectedRecords();\n return;\n }\n return new Promise((resolve) => {\n this.debounceTimer = setTimeout(() => {\n this._setSelectedRecords();\n resolve();\n }, 0);\n })\n }\n public get selectedRecordIds() {\n return this._dataset.getSelectedRecordIds();\n }\n public get allRecordsSelected() {\n return this.selectedRecordIds.length === this._dataset.sortedRecordIds.length;\n }\n public get type() {\n switch(this._grid.props.parameters.SelectableRows?.raw) {\n case undefined:\n case null: {\n return 'multiple'\n }\n case 'none': {\n return undefined;\n }\n default: return this._grid.props.parameters.SelectableRows?.raw;\n }\n }\n\n public clear() {\n this._grid.dataset.setSelectedRecordIds([]);\n }\n public selectAll() {\n this._grid.dataset.setSelectedRecordIds(this._dataset.sortedRecordIds)\n }\n private _setSelectedRecords() {\n this._grid.dataset.setSelectedRecordIds([...this._selectedRecordIdsSet.values()]);\n this.debounceTimer = null; // Reset debounce timer after execution\n this._selectedRecordIdsSet = new Set();\n }\n}"],"names":[],"mappings":";;AAGM,MAAO,SAAU,SAAQ,cAAc,CAAA;AAA7C,IAAA,WAAA,GAAA;;AACY,QAAA,IAAA,CAAA,qBAAqB,GAAgB,IAAI,GAAG,EAAU,CAAC;QACvD,IAAa,CAAA,aAAA,GAAyC,IAAI,CAAC;KAgEtE;IA9DU,MAAM,MAAM,CAAC,MAAe,EAAE,QAAiB,EAAE,sBAAgC,EAAE,eAAyB,EAAA;AAC/G,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;AACtC,QAAA,IAAG,CAAC,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,qBAAqB,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAChE,SAAA;AACD,QAAA,IAAI,sBAAsB,EAAE;AACxB,YAAA,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;AACtC,SAAA;QACD,IAAI,QAAQ,KAAK,KAAK,EAAE;AACpB,YAAA,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC/C,SAAA;AACI,aAAA;AACD,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;AACxB,gBAAA,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;AACtC,aAAA;AACD,YAAA,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC5C,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,EAAE;AAC7B,YAAA,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACpC,SAAA;AACD,QAAA,IAAG,eAAe,EAAE;YAChB,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,OAAO;AACV,SAAA;AACD,QAAA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ClF,QAAA,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;AAC1B,QAAA,IAAI,CAAC,qBAAqB,GAAG,IAAI,GAAG,EAAE,CAAC;KAC1C;AACJ;;;;"}
|
|
@@ -3,16 +3,15 @@ import { GridDependency } from '../core/model/GridDependency.js';
|
|
|
3
3
|
class Sorting extends GridDependency {
|
|
4
4
|
get(column) {
|
|
5
5
|
return {
|
|
6
|
-
value: this._dataset.sorting.find(x => x.name === column.
|
|
6
|
+
value: this._dataset.sorting.find(x => x.name === column.name),
|
|
7
7
|
sort: (direction) => {
|
|
8
8
|
const sortMap = new Map(this._dataset.sorting.map(x => [x.name, x]));
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
if (window.TALXIS?.Portal) {
|
|
9
|
+
//TODO: have explicit parameter to always do multisort?
|
|
10
|
+
if (this._grid.keyHoldListener.getHeldKey() !== 'Shift') {
|
|
12
11
|
sortMap.clear();
|
|
13
12
|
}
|
|
14
|
-
sortMap.set(column.
|
|
15
|
-
name: column.
|
|
13
|
+
sortMap.set(column.name, {
|
|
14
|
+
name: column.name,
|
|
16
15
|
sortDirection: direction
|
|
17
16
|
});
|
|
18
17
|
//Power Apps only allows setting of sorting like this - https://stackoverflow.com/questions/1232040/how-do-i-empty-an-array-in-javascript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sorting.js","sources":["../../../../src/components/Grid/sorting/Sorting.ts"],"sourcesContent":["import { IGridColumn } from \"../core/interfaces/IGridColumn\";\nimport { GridDependency } from \"../core/model/GridDependency\";\nexport class Sorting extends GridDependency {\n public get(column: IGridColumn) {\n return {\n value: this._dataset.sorting.find(x => x.name === column.
|
|
1
|
+
{"version":3,"file":"Sorting.js","sources":["../../../../src/components/Grid/sorting/Sorting.ts"],"sourcesContent":["import { IGridColumn } from \"../core/interfaces/IGridColumn\";\nimport { GridDependency } from \"../core/model/GridDependency\";\nexport class Sorting extends GridDependency {\n public get(column: IGridColumn) {\n return {\n value: this._dataset.sorting.find(x => x.name === column.name),\n sort: (direction: ComponentFramework.PropertyHelper.DataSetApi.Types.SortDirection) => {\n const sortMap: Map<string, ComponentFramework.PropertyHelper.DataSetApi.SortStatus> = new Map(this._dataset.sorting.map(x => [x.name, x]));\n //TODO: have explicit parameter to always do multisort?\n if(this._grid.keyHoldListener.getHeldKey() !== 'Shift') {\n sortMap.clear();\n }\n sortMap.set(column.name, {\n name: column.name,\n sortDirection: direction\n })\n //Power Apps only allows setting of sorting like this - https://stackoverflow.com/questions/1232040/how-do-i-empty-an-array-in-javascript\n //this is so stupid\n while (this._dataset.sorting.length) {\n this._dataset.sorting.pop()\n }\n for (const sort of sortMap.values()) {\n this._dataset.sorting.push(sort);\n }\n this._dataset.refresh();\n }\n }\n }\n}"],"names":[],"mappings":";;AAEM,MAAO,OAAQ,SAAQ,cAAc,CAAA;AAChC,IAAA,GAAG,CAAC,MAAmB,EAAA;QAC1B,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;AAC9D,YAAA,IAAI,EAAE,CAAC,SAA2E,KAAI;gBAClF,MAAM,OAAO,GAAyE,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;;gBAE3I,IAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,EAAE,KAAK,OAAO,EAAE;oBACpD,OAAO,CAAC,KAAK,EAAE,CAAC;AACnB,iBAAA;AACD,gBAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE;oBACrB,IAAI,EAAE,MAAM,CAAC,IAAI;AACjB,oBAAA,aAAa,EAAE,SAAS;AAC3B,iBAAA,CAAC,CAAA;;;AAGF,gBAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE;AACjC,oBAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,CAAA;AAC9B,iBAAA;AACD,gBAAA,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,EAAE;oBACjC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpC,iBAAA;AACD,gBAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;aAC3B;SACJ,CAAA;KACJ;AACJ;;;;"}
|
package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js
CHANGED
|
@@ -21,7 +21,7 @@ const SortingContextualMenu = (props) => {
|
|
|
21
21
|
})();
|
|
22
22
|
}, [condition]);
|
|
23
23
|
const getTwoOptionsSortLabel = async (isDesc) => {
|
|
24
|
-
const [defaultValue, options] = await grid.metadata.getOptions(column);
|
|
24
|
+
const [defaultValue, options] = await grid.metadata.getOptions(column.name);
|
|
25
25
|
if (!isDesc) {
|
|
26
26
|
return `${options[0].Label} ${labels['filtersortmenu-sorttwooption-joint']()} ${options[1].Label}`;
|
|
27
27
|
}
|
|
@@ -64,7 +64,7 @@ const SortingContextualMenu = (props) => {
|
|
|
64
64
|
{
|
|
65
65
|
key: 'sort_asc',
|
|
66
66
|
checked: column.isSorted && !column.isSortedDescending,
|
|
67
|
-
disabled:
|
|
67
|
+
disabled: column.disableSorting || column.dataType === DataType.MULTI_SELECT_OPTIONSET,
|
|
68
68
|
text: await getLabel(),
|
|
69
69
|
className: styles.item,
|
|
70
70
|
iconProps: {
|
|
@@ -75,7 +75,7 @@ const SortingContextualMenu = (props) => {
|
|
|
75
75
|
{
|
|
76
76
|
key: 'sort_desc',
|
|
77
77
|
checked: column.isSorted && column.isSortedDescending,
|
|
78
|
-
disabled:
|
|
78
|
+
disabled: column.disableSorting || column.dataType === DataType.MULTI_SELECT_OPTIONSET,
|
|
79
79
|
text: await getLabel(true),
|
|
80
80
|
className: styles.item,
|
|
81
81
|
iconProps: {
|
package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortingContextualMenu.js","sources":["../../../../../../src/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { ContextualMenu, ContextualMenuItemType, IContextualMenuItem, IContextualMenuProps, useTheme } from '@fluentui/react';\nimport { IGridColumn } from '../../../core/interfaces/IGridColumn';\nimport { DataType } from '../../../core/enums/DataType';\nimport { getColumnHeaderContextualMenuStyles } from './styles';\nimport { useGridInstance } from '../../../core/hooks/useGridInstance';\nimport { useColumnSortingController } from '../../controllers/useColumnSortingController';\nimport { useColumnFilterConditionController } from '../../../filtering/controller/useColumnFilterConditionController';\n\nexport interface ISortingContextualMenu extends Omit<IContextualMenuProps, 'items'> {\n column: IGridColumn;\n onDismiss: (e?: Event | React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>, dismissAll?: boolean, showFilterCallout?: boolean) => void;\n}\n\nexport const SortingContextualMenu = (props: ISortingContextualMenu) => {\n
|
|
1
|
+
{"version":3,"file":"SortingContextualMenu.js","sources":["../../../../../../src/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { ContextualMenu, ContextualMenuItemType, IContextualMenuItem, IContextualMenuProps, useTheme } from '@fluentui/react';\nimport { IGridColumn } from '../../../core/interfaces/IGridColumn';\nimport { DataType } from '../../../core/enums/DataType';\nimport { getColumnHeaderContextualMenuStyles } from './styles';\nimport { useGridInstance } from '../../../core/hooks/useGridInstance';\nimport { useColumnSortingController } from '../../controllers/useColumnSortingController';\nimport { useColumnFilterConditionController } from '../../../filtering/controller/useColumnFilterConditionController';\n\nexport interface ISortingContextualMenu extends Omit<IContextualMenuProps, 'items'> {\n column: IGridColumn;\n onDismiss: (e?: Event | React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>, dismissAll?: boolean, showFilterCallout?: boolean) => void;\n}\n\nexport const SortingContextualMenu = (props: ISortingContextualMenu) => {\n const grid = useGridInstance();\n const labels = grid.labels;\n const styles = getColumnHeaderContextualMenuStyles(useTheme());\n const {column, onDismiss} = {...props};\n const sorting = useColumnSortingController(column);\n const condition = useColumnFilterConditionController(column);\n const [items, setItems] = useState<IContextualMenuItem[]>([]);\n\n useEffect(() => {\n (async() => {\n setItems(await getItems())\n })();\n }, [condition]);\n\n const getTwoOptionsSortLabel = async (isDesc?: boolean) => {\n const [defaultValue, options] = await grid.metadata.getOptions(column.name);\n if(!isDesc) {\n return `${options[0].Label} ${labels['filtersortmenu-sorttwooption-joint']()} ${options[1].Label}`\n }\n return `${options[1].Label} ${labels['filtersortmenu-sorttwooption-joint']()} ${options[0].Label}`\n }\n const getLabel = async (isDesc?: boolean) => {\n switch (column.dataType) {\n case DataType.WHOLE_NONE:\n case DataType.DECIMAL:\n case DataType.FP:\n case DataType.CURRENCY: {\n if (!isDesc) {\n return labels['filtersortmenu-sortnumber-a-z']()\n }\n return labels['filtersortmenu-sortnumber-z-a']()\n }\n case DataType.DATE_AND_TIME_DATE_AND_TIME:\n case DataType.DATE_AND_TIME_DATE_ONLY: {\n if (!isDesc) {\n return labels['filtersortmenu-sortdate-a-z']()\n }\n return labels['filtersortmenu-sortdate-z-a']()\n }\n case DataType.TWO_OPTIONS: {\n return getTwoOptionsSortLabel(isDesc);\n }\n default: {\n if (!isDesc) {\n return labels['filtersortmenu-sorttext-a-z']()\n }\n return labels['filtersortmenu-sorttext-z-a']()\n }\n }\n }\n\n const getItems = async (): Promise<IContextualMenuItem[]> => {\n if(!condition) {\n return []\n }\n const items: IContextualMenuItem[] = [\n {\n key: 'sort_asc',\n checked: column.isSorted && !column.isSortedDescending,\n disabled: column.disableSorting || column.dataType === DataType.MULTI_SELECT_OPTIONSET,\n text: await getLabel(),\n className: styles.item,\n iconProps: {\n iconName: 'SortUp'\n },\n onClick: () => sorting.sort(0)\n },\n {\n key: 'sort_desc',\n checked: column.isSorted && column.isSortedDescending,\n disabled: column.disableSorting || column.dataType === DataType.MULTI_SELECT_OPTIONSET,\n text: await getLabel(true),\n className: styles.item,\n iconProps: {\n iconName: 'SortDown'\n },\n onClick: () => sorting.sort(1)\n },\n {\n key: 'divider',\n itemType: ContextualMenuItemType.Divider\n },\n {\n key: 'filter',\n className: styles.item,\n disabled: !column.isFilterable,\n text: labels['filtermenu-filterby'](),\n iconProps: {\n iconName: 'Filter'\n },\n onClick: (e) => onDismiss(e, false, true)\n }\n ];\n if (condition.isAppliedToDataset) {\n items.push({\n key: 'clearFilter',\n text: labels['filtersortmenu-clearfilter'](),\n iconProps: {\n iconName: 'ClearFilter'\n },\n onClick: () => {\n condition.remove();\n condition.save();\n }\n });\n }\n return items\n }\n return <ContextualMenu {...props} items={items} />;\n};"],"names":["_jsx"],"mappings":";;;;;;;;;AAca,MAAA,qBAAqB,GAAG,CAAC,KAA6B,KAAI;AACnE,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;AAC/B,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAA,MAAM,MAAM,GAAG,mCAAmC,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAC,MAAM,EAAE,SAAS,EAAC,GAAG,EAAC,GAAG,KAAK,EAAC,CAAC;AACvC,IAAA,MAAM,OAAO,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC;AACnD,IAAA,MAAM,SAAS,GAAG,kCAAkC,CAAC,MAAM,CAAC,CAAC;IAC7D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAwB,EAAE,CAAC,CAAC;IAE9D,SAAS,CAAC,MAAK;QACX,CAAC,YAAU;AACP,YAAA,QAAQ,CAAC,MAAM,QAAQ,EAAE,CAAC,CAAA;SA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
254
|
+
"paging-pages-totalcount": {
|
|
255
|
+
1029: string;
|
|
256
|
+
1033: string;
|
|
257
|
+
};
|
|
254
258
|
norecordsfound: {
|
|
255
259
|
1029: string;
|
|
256
260
|
1033: string;
|
|
@@ -303,4 +307,8 @@ export declare const gridTranslations: {
|
|
|
303
307
|
1029: string;
|
|
304
308
|
1033: string;
|
|
305
309
|
};
|
|
310
|
+
"value-not-editable": {
|
|
311
|
+
1029: string;
|
|
312
|
+
1033: string;
|
|
313
|
+
};
|
|
306
314
|
};
|
|
@@ -61,7 +61,8 @@ const gridTranslations = {
|
|
|
61
61
|
"paging-page": { 1029: "Strana", 1033: "Page" },
|
|
62
62
|
"paging-nextpage": { 1029: "Další", 1033: "Next" },
|
|
63
63
|
"paging-lastpage": { 1029: "Poslední strana", 1033: "Last page" },
|
|
64
|
-
"paging-pages": { 1029: "{{start}} - {{end}}
|
|
64
|
+
"paging-pages": { 1029: "{{start}} - {{end}}", 1033: "{{start}} - {{end}}" },
|
|
65
|
+
"paging-pages-totalcount": { 1029: "z {{recordcount}}", 1033: "of {{recordcount}}" },
|
|
65
66
|
"norecordsfound": { 1029: 'Nenašli jsme nic, co by se zde dalo zobrazit.', 1033: 'No records found.' },
|
|
66
67
|
"saving-changenotification": { 1029: "Počet upravených záznamů: <b>{{numOfChanges}}</b>. Klikněte <u>zde</u> pro jejich zobrazení.", 1033: "Number of updated records: <b>{{numOfChanges}}</b>. Click <u>here</u> to review." },
|
|
67
68
|
"saving-save": { 1029: "Uložit", 1033: "Save" },
|
|
@@ -75,6 +76,7 @@ const gridTranslations = {
|
|
|
75
76
|
"validation-number": { 1029: 'Neplatný formát čísla.', 1033: 'Invalid Number format.' },
|
|
76
77
|
"no-name": { 1029: '(Bez názvu)', 1033: '(No Name)' },
|
|
77
78
|
"download": { 1029: 'Stáhnout', 1033: 'Download' },
|
|
79
|
+
"value-not-editable": { 1029: 'Tuto hodnotu nelze upravit.', 1033: 'This value cannot be edited.' }
|
|
78
80
|
};
|
|
79
81
|
|
|
80
82
|
export { gridTranslations };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","sources":["../../../src/components/Grid/translations.ts"],"sourcesContent":["export const gridTranslations = {\n \"condition-none\": { 1029: \"Žádná\", 1033: \"None\" },\n \"condition-equal\": { 1029: \"Je rovno\", 1033: \"Equals\" },\n \"condition-notequal\": { 1029: \"Není rovno\", 1033: \"Does not equal\" },\n \"condition-greaterthan\": { 1029: \"Větší než\", 1033: \"Greater than\" },\n \"condition-lessthan\": { 1029: \"Menší než\", 1033: \"Less than\" },\n \"condition-greaterequal\": { 1029: \"Větší než nebo rovno\", 1033: \"Greater than or equal to\" },\n \"condition-lessequal\": { 1029: \"Menší než nebo rovno\", 1033: \"Less than or equal to\" },\n \"condition-like\": { 1029: \"Obsahuje\", 1033: \"Contains\" },\n \"condition-notlike\": { 1029: \"Neobsahuje\", 1033: \"Does not contain\" },\n \"condition-null\": { 1029: \"Neobsahuje data\", 1033: \"Does not contain data\" },\n \"condition-notnull\": { 1029: \"Obsahuje data\", 1033: \"Contains data\" },\n \"condition-beginwith\": { 1029: \"Začíná na\", 1033: \"Begins with\" },\n \"condition-doesnotbeginwith\": { 1029: \"Nezačíná na\", 1033: \"Does not begin with\" },\n \"condition-endswith\": { 1029: \"Končí na\", 1033: \"Ends with\" },\n \"condition-doesnotendwith\": { 1029: \"Nekončí na\", 1033: \"Does not end with\" },\n \"condition-yesterday\": { 1029: \"Včera\", 1033: \"Yesterday\" },\n \"condition-today\": { 1029: \"Dneska\", 1033: \"Today\" },\n \"condition-tomorrow\": { 1029: \"Zítra\", 1033: \"Tomorrow\" },\n \"condition-last7days\": { 1029: \"Posledních 7 dnů\", 1033: \"Last 7 days\" },\n \"condition-next7days\": { 1029: \"Příštích 7 dnů\", 1033: \"Next 7 days\" },\n \"condition-lastweek\": { 1029: \"Minulý týden\", 1033: \"Last week\" },\n \"condition-thisweek\": { 1029: \"Tento týden\", 1033: \"This week\" },\n \"condition-lastmonth\": { 1029: \"Minulý měsíc\", 1033: \"Last month\" },\n \"condition-thismonth\": { 1029: \"Tento měsíc\", 1033: \"This month\" },\n \"condition-on\": { 1029: \"V den\", 1033: \"On\" },\n \"condition-onorbefore\": { 1029: \"Před dnem (včetně)\", 1033: \"On or before\" },\n \"condition-onorafter\": { 1029: \"Po dni (včetně)\", 1033: \"On or after\" },\n \"condition-lastyear\": { 1029: \"Poslední rok\", 1033: \"Last year\" },\n \"condition-thisyear\": { 1029: \"Tento rok\", 1033: \"This year\" },\n \"condition-lastxdays\": { 1029: \"Posledních X dnů\", 1033: \"Last X days\" },\n \"condition-nextxdays\": { 1029: \"Příštích X dnů\", 1033: \"Next X days\" },\n \"condition-lastxmonths\": { 1029: \"Posledních X měsíců\", 1033: \"Last X months\" },\n \"condition-nextxmonths\": { 1029: \"Příštích X měsíců\", 1033: \"Next X months\" },\n \"condition-contains\": { 1029: \"Obsahuje\", 1033: \"Contains\" },\n \"condition-infiscalperiodandyear\": { 1029: \"Toto fiskální období a rok\", 1033: \"In fiscal period and year\" },\n \"condition-above\": { 1029: \"Nad\", 1033: \"Above\" },\n \"condition-under\": { 1029: \"Pod\", 1033: \"Under\" },\n \"condition-notunder\": { 1029: \"Není pod\", 1033: \"Not under\" },\n \"condition-aboveorequal\": { 1029: \"Je nad nebo se rovná\", 1033: \"Above or equal\" },\n \"condition-underorequal\": { 1029: \"Je pod nebo se rovná\", 1033: \"Under or equal\" },\n \"condition-containvalues\": { 1029: \"Obsahuje hodnoty\", 1033: \"Contain values\" },\n \"condition-doesnotcontainvalues\": { 1029: \"Neobsahuje hodnoty\", 1033: \"Does not contain values\" },\n \"filtermenu-filterby\": { 1029: \"Filtrovat podle\", 1033: \"Filter By\" },\n \"filtermenu-applybutton\": { 1029: \"Použít\", 1033: \"Apply\" },\n \"filtermenu-clearbutton\": { 1029: \"Vymazat\", 1033: \"Clear\" },\n \"filtersortmenu-sorttext-a-z\": { 1029: \"Seřadit od A do Z\", 1033: \"Sort A to Z\" },\n \"filtersortmenu-sorttext-z-a\": { 1029: \"Seřadit od Z do A\", 1033: \"Sort Z to A\" },\n \"filtersortmenu-sortdate-a-z\": { 1029: \"Seřadit od nejstarších\", 1033: \"Sort older to newer\" },\n \"filtersortmenu-sortdate-z-a\": { 1029: \"Seřadit od nejnovějších\", 1033: \"Sort newer to older\" },\n \"filtersortmenu-sortnumber-a-z\": { 1029: \"Seřadit od nejmenších\", 1033: \"Sort smaller to larger\" },\n \"filtersortmenu-sortnumber-z-a\": { 1029: \"Seřadit od největších\", 1033: \"Sort larger to smaller\" },\n \"filtersortmenu-sorttwooption-a-z\": { 1029: \"Seřadit od nejmenších\", 1033: \"No to Yes\" },\n \"filtersortmenu-sorttwooption-z-a\": { 1029: \"Seřadit od největších\", 1033: \"Yes to No\" },\n \"filtersortmenu-sorttwooption-joint\": { 1029: \"až\", 1033: \"to\" },\n \"filtersortmenu-filterby\": { 1029: \"Filtrovat podle\", 1033: \"Filter by\" },\n \"filtersortmenu-clearfilter\": { 1029: \"Vymazat filtr\", 1033: \"Clear filter\" },\n \"paging-of\": { 1029: \"z\", 1033: \"of\" },\n \"paging-firstpage\": { 1029: \"První strana\", 1033: \"First page\" },\n \"paging-previouspage\": { 1029: \"Předchozí\", 1033: \"Previous\" },\n \"paging-page\": { 1029: \"Strana\", 1033: \"Page\" },\n \"paging-nextpage\": { 1029: \"Další\", 1033: \"Next\" },\n \"paging-lastpage\": { 1029: \"Poslední strana\", 1033: \"Last page\" },\n \"paging-pages\": {1029: \"{{start}} - {{end}} z {{recordcount}}\", 1033: \"{{start}} - {{end}} of {{recordcount}}\"},\n \"norecordsfound\": {1029: 'Nenašli jsme nic, co by se zde dalo zobrazit.', 1033: 'No records found.'},\n \"saving-changenotification\": {1029: \"Počet upravených záznamů: <b>{{numOfChanges}}</b>. Klikněte <u>zde</u> pro jejich zobrazení.\", 1033: \"Number of updated records: <b>{{numOfChanges}}</b>. Click <u>here</u> to review.\"},\n \"saving-save\": {1029: \"Uložit\", 1033: \"Save\"},\n \"saving-saving\": {1029: \"Ukládání...\", 1033: \"Saving...\"},\n \"saving-changepreview-title\": {1033: 'Number of updated rows: {{numOfChanges}}', 1029: 'Počet upravených záznamů: {{numOfChanges}}'},\n \"saving-validation-error\": {1029: 'Pro uložení záznamu je nutné opravit chybové hodnoty následujících sloupců: <b>{{columnDisplayNames}}</b>', 1033: 'Folowing columns have validation errors: <b>{{columnDisplayNames}}</b>'},\n \"validation-input-value\": {1029: 'Zadejte hodnotu', 1033: 'Please enter value.'},\n \"validation-email\": {1029: 'Neplatný formát emailové adresy.', 1033: 'Invalid Email address format.'},\n \"validation-url\": {1029: 'Neplatný formát webové adresy.', 1033: 'Invalid URL format.'},\n \"validation-date\": {1029: 'Neplatný formát datumu.', 1033: 'Invalid Date format.'},\n \"validation-number\": {1029: 'Neplatný formát čísla.', 1033: 'Invalid Number format.'},\n \"no-name\": {1029: '(Bez názvu)', 1033: '(No Name)'},\n \"download\": {1029: 'Stáhnout', 1033: 'Download'},\n};\n \n"],"names":[],"mappings":"AAAa,MAAA,gBAAgB,GAAG;IAC5B,gBAAgB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;IACjD,iBAAiB,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;IACvD,oBAAoB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE;IACpE,uBAAuB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE;IACpE,oBAAoB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE;IAC9D,wBAAwB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,0BAA0B,EAAE;IAC5F,qBAAqB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,uBAAuB,EAAE;IACtF,gBAA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EAAC,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,qBAAqB,EAAC;IACxF,iBAAiB,EAAE,EAAC,IAAI,EAAE,yBAAyB,EAAE,IAAI,EAAE,sBAAsB,EAAC;IAClF,mBAAmB,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,wBAAwB,EAAC;IACrF,SAAS,EAAE,EAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAC;IACnD,UAAU,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAC;;;;;"}
|
|
1
|
+
{"version":3,"file":"translations.js","sources":["../../../src/components/Grid/translations.ts"],"sourcesContent":["export const gridTranslations = {\n \"condition-none\": { 1029: \"Žádná\", 1033: \"None\" },\n \"condition-equal\": { 1029: \"Je rovno\", 1033: \"Equals\" },\n \"condition-notequal\": { 1029: \"Není rovno\", 1033: \"Does not equal\" },\n \"condition-greaterthan\": { 1029: \"Větší než\", 1033: \"Greater than\" },\n \"condition-lessthan\": { 1029: \"Menší než\", 1033: \"Less than\" },\n \"condition-greaterequal\": { 1029: \"Větší než nebo rovno\", 1033: \"Greater than or equal to\" },\n \"condition-lessequal\": { 1029: \"Menší než nebo rovno\", 1033: \"Less than or equal to\" },\n \"condition-like\": { 1029: \"Obsahuje\", 1033: \"Contains\" },\n \"condition-notlike\": { 1029: \"Neobsahuje\", 1033: \"Does not contain\" },\n \"condition-null\": { 1029: \"Neobsahuje data\", 1033: \"Does not contain data\" },\n \"condition-notnull\": { 1029: \"Obsahuje data\", 1033: \"Contains data\" },\n \"condition-beginwith\": { 1029: \"Začíná na\", 1033: \"Begins with\" },\n \"condition-doesnotbeginwith\": { 1029: \"Nezačíná na\", 1033: \"Does not begin with\" },\n \"condition-endswith\": { 1029: \"Končí na\", 1033: \"Ends with\" },\n \"condition-doesnotendwith\": { 1029: \"Nekončí na\", 1033: \"Does not end with\" },\n \"condition-yesterday\": { 1029: \"Včera\", 1033: \"Yesterday\" },\n \"condition-today\": { 1029: \"Dneska\", 1033: \"Today\" },\n \"condition-tomorrow\": { 1029: \"Zítra\", 1033: \"Tomorrow\" },\n \"condition-last7days\": { 1029: \"Posledních 7 dnů\", 1033: \"Last 7 days\" },\n \"condition-next7days\": { 1029: \"Příštích 7 dnů\", 1033: \"Next 7 days\" },\n \"condition-lastweek\": { 1029: \"Minulý týden\", 1033: \"Last week\" },\n \"condition-thisweek\": { 1029: \"Tento týden\", 1033: \"This week\" },\n \"condition-lastmonth\": { 1029: \"Minulý měsíc\", 1033: \"Last month\" },\n \"condition-thismonth\": { 1029: \"Tento měsíc\", 1033: \"This month\" },\n \"condition-on\": { 1029: \"V den\", 1033: \"On\" },\n \"condition-onorbefore\": { 1029: \"Před dnem (včetně)\", 1033: \"On or before\" },\n \"condition-onorafter\": { 1029: \"Po dni (včetně)\", 1033: \"On or after\" },\n \"condition-lastyear\": { 1029: \"Poslední rok\", 1033: \"Last year\" },\n \"condition-thisyear\": { 1029: \"Tento rok\", 1033: \"This year\" },\n \"condition-lastxdays\": { 1029: \"Posledních X dnů\", 1033: \"Last X days\" },\n \"condition-nextxdays\": { 1029: \"Příštích X dnů\", 1033: \"Next X days\" },\n \"condition-lastxmonths\": { 1029: \"Posledních X měsíců\", 1033: \"Last X months\" },\n \"condition-nextxmonths\": { 1029: \"Příštích X měsíců\", 1033: \"Next X months\" },\n \"condition-contains\": { 1029: \"Obsahuje\", 1033: \"Contains\" },\n \"condition-infiscalperiodandyear\": { 1029: \"Toto fiskální období a rok\", 1033: \"In fiscal period and year\" },\n \"condition-above\": { 1029: \"Nad\", 1033: \"Above\" },\n \"condition-under\": { 1029: \"Pod\", 1033: \"Under\" },\n \"condition-notunder\": { 1029: \"Není pod\", 1033: \"Not under\" },\n \"condition-aboveorequal\": { 1029: \"Je nad nebo se rovná\", 1033: \"Above or equal\" },\n \"condition-underorequal\": { 1029: \"Je pod nebo se rovná\", 1033: \"Under or equal\" },\n \"condition-containvalues\": { 1029: \"Obsahuje hodnoty\", 1033: \"Contain values\" },\n \"condition-doesnotcontainvalues\": { 1029: \"Neobsahuje hodnoty\", 1033: \"Does not contain values\" },\n \"filtermenu-filterby\": { 1029: \"Filtrovat podle\", 1033: \"Filter By\" },\n \"filtermenu-applybutton\": { 1029: \"Použít\", 1033: \"Apply\" },\n \"filtermenu-clearbutton\": { 1029: \"Vymazat\", 1033: \"Clear\" },\n \"filtersortmenu-sorttext-a-z\": { 1029: \"Seřadit od A do Z\", 1033: \"Sort A to Z\" },\n \"filtersortmenu-sorttext-z-a\": { 1029: \"Seřadit od Z do A\", 1033: \"Sort Z to A\" },\n \"filtersortmenu-sortdate-a-z\": { 1029: \"Seřadit od nejstarších\", 1033: \"Sort older to newer\" },\n \"filtersortmenu-sortdate-z-a\": { 1029: \"Seřadit od nejnovějších\", 1033: \"Sort newer to older\" },\n \"filtersortmenu-sortnumber-a-z\": { 1029: \"Seřadit od nejmenších\", 1033: \"Sort smaller to larger\" },\n \"filtersortmenu-sortnumber-z-a\": { 1029: \"Seřadit od největších\", 1033: \"Sort larger to smaller\" },\n \"filtersortmenu-sorttwooption-a-z\": { 1029: \"Seřadit od nejmenších\", 1033: \"No to Yes\" },\n \"filtersortmenu-sorttwooption-z-a\": { 1029: \"Seřadit od největších\", 1033: \"Yes to No\" },\n \"filtersortmenu-sorttwooption-joint\": { 1029: \"až\", 1033: \"to\" },\n \"filtersortmenu-filterby\": { 1029: \"Filtrovat podle\", 1033: \"Filter by\" },\n \"filtersortmenu-clearfilter\": { 1029: \"Vymazat filtr\", 1033: \"Clear filter\" },\n \"paging-of\": { 1029: \"z\", 1033: \"of\" },\n \"paging-firstpage\": { 1029: \"První strana\", 1033: \"First page\" },\n \"paging-previouspage\": { 1029: \"Předchozí\", 1033: \"Previous\" },\n \"paging-page\": { 1029: \"Strana\", 1033: \"Page\" },\n \"paging-nextpage\": { 1029: \"Další\", 1033: \"Next\" },\n \"paging-lastpage\": { 1029: \"Poslední strana\", 1033: \"Last page\" },\n \"paging-pages\": {1029: \"{{start}} - {{end}}\", 1033: \"{{start}} - {{end}}\"},\n \"paging-pages-totalcount\": {1029: \"z {{recordcount}}\", 1033: \"of {{recordcount}}\"},\n \"norecordsfound\": {1029: 'Nenašli jsme nic, co by se zde dalo zobrazit.', 1033: 'No records found.'},\n \"saving-changenotification\": {1029: \"Počet upravených záznamů: <b>{{numOfChanges}}</b>. Klikněte <u>zde</u> pro jejich zobrazení.\", 1033: \"Number of updated records: <b>{{numOfChanges}}</b>. Click <u>here</u> to review.\"},\n \"saving-save\": {1029: \"Uložit\", 1033: \"Save\"},\n \"saving-saving\": {1029: \"Ukládání...\", 1033: \"Saving...\"},\n \"saving-changepreview-title\": {1033: 'Number of updated rows: {{numOfChanges}}', 1029: 'Počet upravených záznamů: {{numOfChanges}}'},\n \"saving-validation-error\": {1029: 'Pro uložení záznamu je nutné opravit chybové hodnoty následujících sloupců: <b>{{columnDisplayNames}}</b>', 1033: 'Folowing columns have validation errors: <b>{{columnDisplayNames}}</b>'},\n \"validation-input-value\": {1029: 'Zadejte hodnotu', 1033: 'Please enter value.'},\n \"validation-email\": {1029: 'Neplatný formát emailové adresy.', 1033: 'Invalid Email address format.'},\n \"validation-url\": {1029: 'Neplatný formát webové adresy.', 1033: 'Invalid URL format.'},\n \"validation-date\": {1029: 'Neplatný formát datumu.', 1033: 'Invalid Date format.'},\n \"validation-number\": {1029: 'Neplatný formát čísla.', 1033: 'Invalid Number format.'},\n \"no-name\": {1029: '(Bez názvu)', 1033: '(No Name)'},\n \"download\": {1029: 'Stáhnout', 1033: 'Download'},\n \"value-not-editable\": {1029: 'Tuto hodnotu nelze upravit.', 1033: 'This value cannot be edited.'}\n};\n \n"],"names":[],"mappings":"AAAa,MAAA,gBAAgB,GAAG;IAC5B,gBAAgB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;IACjD,iBAAiB,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,E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F,EAAC;IAC7N,aAAa,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC;IAC7C,eAAe,EAAE,EAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAC;IACzD,4BAA4B,EAAE,EAAC,IAAI,EAAE,0CAA0C,EAAE,IAAI,EAAE,4CAA4C,EAAC;IACpI,yBAAyB,EAAE,EAAC,IAAI,EAAE,2GAA2G,EAAE,IAAI,EAAE,wEAAwE,EAAC;IAC9N,wBAAwB,EAAG,EAAC,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,qBAAqB,EAAC;IACjF,kBAAkB,EAAG,EAAC,IAAI,EAAE,kCAAkC,EAAE,IAAI,EAAE,+BAA+B,EAAC;IACtG,gBAAgB,EAAG,EAAC,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,qBAAqB,EAAC;IACxF,iBAAiB,EAAE,EAAC,IAAI,EAAE,yBAAyB,EAAE,IAAI,EAAE,sBAAsB,EAAC;IAClF,mBAAmB,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,wBAAwB,EAAC;IACrF,SAAS,EAAE,EAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAC;IACnD,UAAU,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAC;IAChD,oBAAoB,EAAE,EAAC,IAAI,EAAE,6BAA6B,EAAE,IAAI,EAAE,8BAA8B,EAAC;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="powerapps-component-framework" />
|
|
2
1
|
import { IGridColumn } from "../../core/interfaces/IGridColumn";
|
|
2
|
+
import { IRecord } from "@talxis/client-libraries";
|
|
3
3
|
interface IRecordValidation {
|
|
4
4
|
column: IGridColumn;
|
|
5
|
-
record:
|
|
5
|
+
record: IRecord;
|
|
6
6
|
}
|
|
7
7
|
export declare const useColumnValidationController: (props: IRecordValidation) => [boolean, string];
|
|
8
8
|
export {};
|
|
@@ -14,10 +14,10 @@ const useColumnValidationController = (props) => {
|
|
|
14
14
|
//we are not doing validation for non-editable columns
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
const [isValid, errorMessage] = columnValidation.validate(record.getValue(column.
|
|
17
|
+
const [isValid, errorMessage] = columnValidation.validate(record.getValue(column.name));
|
|
18
18
|
setIsValid(isValid);
|
|
19
19
|
setErrorMessage(errorMessage);
|
|
20
|
-
}, [record.getValue(column.
|
|
20
|
+
}, [record.getValue(column.name)]);
|
|
21
21
|
return [isValid, errorMessage];
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRecordValidationController.js","sources":["../../../../../src/components/Grid/validation/controllers/useRecordValidationController.ts"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\nimport { useGridInstance } from \"../../core/hooks/useGridInstance\";\nimport { IGridColumn } from \"../../core/interfaces/IGridColumn\";\nimport { ColumnValidation } from \"../model/ColumnValidation\";\n\ninterface IRecordValidation {\n column: IGridColumn;\n record:
|
|
1
|
+
{"version":3,"file":"useRecordValidationController.js","sources":["../../../../../src/components/Grid/validation/controllers/useRecordValidationController.ts"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\nimport { useGridInstance } from \"../../core/hooks/useGridInstance\";\nimport { IGridColumn } from \"../../core/interfaces/IGridColumn\";\nimport { ColumnValidation } from \"../model/ColumnValidation\";\nimport { IRecord } from \"@talxis/client-libraries\";\n\ninterface IRecordValidation {\n column: IGridColumn;\n record: IRecord;\n}\n\nexport const useColumnValidationController = (props: IRecordValidation): [boolean, string] => {\n const grid = useGridInstance();\n const column = props.column;\n const record = props.record;\n const columnValidation = useMemo(() => {return new ColumnValidation(grid, column)}, []);\n\n const [isValid, setIsValid] = useState<boolean>(true);\n const [errorMessage, setErrorMessage] = useState<string>(\"\");\n\n useEffect(() => {\n if(!column.isEditable) {\n //we are not doing validation for non-editable columns\n return;\n }\n const [isValid, errorMessage] = columnValidation.validate(record.getValue(column.name));\n setIsValid(isValid);\n setErrorMessage(errorMessage);\n }, [record.getValue(column.name)]);\n\n return [isValid, errorMessage];\n}"],"names":[],"mappings":";;;;AAWa,MAAA,6BAA6B,GAAG,CAAC,KAAwB,KAAuB;AACzF,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;AAC/B,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;AAC5B,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAK,EAAE,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA,EAAC,EAAE,EAAE,CAAC,CAAC;IAExF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,IAAI,CAAC,CAAC;IACtD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAE7D,SAAS,CAAC,MAAK;AACX,QAAA,IAAG,CAAC,MAAM,CAAC,UAAU,EAAE;;YAEnB,OAAO;AACV,SAAA;AACD,QAAA,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QACxF,UAAU,CAAC,OAAO,CAAC,CAAC;QACpB,eAAe,CAAC,YAAY,CAAC,CAAC;AAClC,KAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEnC,IAAA,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AACnC;;;;"}
|
package/dist/hooks/useControl.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useRef, useMemo, useEffect } from 'react';
|
|
2
|
-
import equal from 'fast-deep-equal/es6';
|
|
3
2
|
import { merge } from 'merge-anything';
|
|
4
3
|
import { Liquid } from 'liquidjs';
|
|
5
4
|
import { useControlTheme } from './useControlTheme.js';
|
|
6
5
|
import { useControlSizing } from './useControlSizing.js';
|
|
6
|
+
import equal from 'fast-deep-equal/es6';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Provides automatic checking if the given outputs are different from the provided inputs. Use the provided method any time you want
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useControl.js","sources":["../../src/hooks/useControl.ts"],"sourcesContent":["import { useEffect, useMemo, useRef } from \"react\";\nimport
|
|
1
|
+
{"version":3,"file":"useControl.js","sources":["../../src/hooks/useControl.ts"],"sourcesContent":["import { useEffect, useMemo, useRef } from \"react\";\nimport { IControl, IOutputs, IParameters } from \"../interfaces\";\nimport { merge } from 'merge-anything';\nimport { Liquid } from \"liquidjs\";\nimport { useControlTheme } from \"./useControlTheme\";\nimport { ITheme } from \"../interfaces/theme\";\nimport { useControlSizing } from \"./useControlSizing\";\nimport deepEqual from 'fast-deep-equal/es6';\n\nexport type ITranslation<T> = {\n [Property in keyof Required<T>]: (variables?: any) => string\n};\n\nexport interface IDefaultTranslations {\n [LCID: number]: string | string[];\n [key: string]: any;\n}\n\n\nexport interface IControlController<TTranslations, TOutputs> {\n labels: Required<ITranslation<TTranslations>>,\n sizing: {\n width?: number,\n height?: number\n },\n theme: ITheme;\n onNotifyOutputChanged: (outputs: TOutputs) => void,\n}\n/**\n * Provides automatic checking if the given outputs are different from the provided inputs. Use the provided method any time you want\n * to notify the framework that you wish to write changes. The hook will notify the framework only if the provided output differs from the current inputs.\n */\nexport const useControl = <TParameters extends IParameters, TOutputs extends IOutputs, TTranslations>(name: string, props: IControl<TParameters, TOutputs, TTranslations, any>, defaultTranslations?: IDefaultTranslations): IControlController<TTranslations, TOutputs> => {\n const parametersRef = useRef<TParameters>(props.parameters);\n const sizing = useControlSizing(props.context.mode);\n const context = props.context;\n const liquid = useMemo(() => new Liquid(), []);\n const labels = useMemo(() => {\n const mergedTranslations = merge(defaultTranslations ?? {}, props.translations ?? {}) as TTranslations;\n return new Proxy(mergedTranslations as any, {\n get(target, key) {\n return (variables: any) => getLabel(key as string, mergedTranslations, variables)\n }\n }) as any;\n }, []);\n\n useEffect(() => {\n parametersRef.current = props.parameters;\n }, [props.parameters]);\n\n const getLabel = (key: string, translations: TTranslations, variables?: any): string | string[] => {\n const strigify = (value: string | string[]) => {\n if (typeof value === 'string') {\n return value;\n }\n return JSON.stringify(value);\n };\n //@ts-ignore\n const translation = translations[key];\n if (!translation) {\n console.error(`Translation for the ${key} label of the ${name} control has not been defined!`);\n return key;\n }\n if (typeof translation === 'string' || Array.isArray(translation)) {\n return strigify(translation);\n }\n let label = translation[props.context.userSettings.languageId];\n if (!label) {\n console.info(`Translation for the ${key} label of the ${name} control has not been found. Using default Czech label instead.`);\n label = translation[1029];\n }\n if (!label) {\n console.error(`Translation for the ${key} label of the ${name} control does not exists neither for Czech language and current LCID.`);\n label = key;\n }\n\n return liquid.parseAndRenderSync(strigify(label), variables);\n };\n\n const onNotifyOutputChanged = (outputs: TOutputs) => {\n let isDirty = false;\n for (let [key, outputValue] of Object.entries(outputs)) {\n let parameterValue = parametersRef.current[key]?.raw;\n if (!deepEqual(parameterValue, outputValue)) {\n if (outputValue === null) {\n outputValue = undefined;\n //@ts-ignore\n outputs[key] = undefined;\n }\n if (outputValue === \"\") {\n outputValue = undefined\n //@ts-ignore\n outputs[key] = undefined;\n }\n if (parameterValue === null) {\n parameterValue = undefined;\n }\n if (parameterValue === outputValue) {\n continue\n }\n isDirty = true;\n break;\n }\n }\n if (!isDirty) {\n return;\n }\n //console.log(`Change detected, triggering notifyOutputChanged on control ${name}.`);\n props.onNotifyOutputChanged?.(outputs);\n };\n return {\n labels,\n sizing,\n theme: useControlTheme(context.fluentDesignLanguage),\n onNotifyOutputChanged\n }\n};\n"],"names":["deepEqual"],"mappings":";;;;;;;AA4BA;;;AA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GAAG,CAAC;AACrD,YAAA,IAAI,CAACA,KAAS,CAAC,cAAc,EAAE,WAAW,CAAC,EAAE;gBACzC,IAAI,WAAW,KAAK,IAAI,EAAE;oBACtB,WAAW,GAAG,SAAS,CAAC;;AAExB,oBAAA,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;AAC5B,iBAAA;gBACD,IAAI,WAAW,KAAK,EAAE,EAAE;oBACpB,WAAW,GAAG,SAAS,CAAA;;AAEvB,oBAAA,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;AAC5B,iBAAA;gBACD,IAAI,cAAc,KAAK,IAAI,EAAE;oBACzB,cAAc,GAAG,SAAS,CAAC;AAC9B,iBAAA;gBACD,IAAI,cAAc,KAAK,WAAW,EAAE;oBAChC,SAAQ;AACX,iBAAA;gBACD,OAAO,GAAG,IAAI,CAAC;gBACf,MAAM;AACT,aAAA;AACJ,SAAA;QACD,IAAI,CAAC,OAAO,EAAE;YACV,OAAO;AACV,SAAA;;AAED,QAAA,KAAK,CAAC,qBAAqB,GAAG,OAAO,CAAC,CAAC;AAC3C,KAAC,CAAC;IACF,OAAO;QACH,MAAM;QACN,MAAM;AACN,QAAA,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,oBAAoB,CAAC;QACpD,qBAAqB;KACxB,CAAA;AACL;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useThemeOverride: (primaryColor: string, backgroundColor: string, textColor: string) => import("../interfaces/theme").ITheme;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createV9Theme, createBrandVariants } from '@fluentui/react-migration-v8-v9';
|
|
2
|
+
import { ThemeDesigner } from '@talxis/react-components/dist/utilities/ThemeDesigner';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { useControlTheme } from './useControlTheme.js';
|
|
5
|
+
|
|
6
|
+
const useThemeOverride = (primaryColor, backgroundColor, textColor) => {
|
|
7
|
+
const overridenFluentDesignLanguage = React__default.useMemo(() => {
|
|
8
|
+
const customV8Theme = ThemeDesigner.generateTheme({
|
|
9
|
+
primaryColor: primaryColor,
|
|
10
|
+
backgroundColor: backgroundColor,
|
|
11
|
+
textColor: textColor
|
|
12
|
+
});
|
|
13
|
+
const customTokenTheme = createV9Theme(customV8Theme);
|
|
14
|
+
return {
|
|
15
|
+
brand: createBrandVariants(customV8Theme.palette),
|
|
16
|
+
tokenTheme: customTokenTheme
|
|
17
|
+
};
|
|
18
|
+
}, []);
|
|
19
|
+
return useControlTheme(overridenFluentDesignLanguage);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { useThemeOverride };
|
|
23
|
+
//# sourceMappingURL=useThemeOverride.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThemeOverride.js","sources":["../../src/hooks/useThemeOverride.ts"],"sourcesContent":["import { createBrandVariants, createV9Theme } from \"@fluentui/react-migration-v8-v9\";\nimport { ThemeDesigner } from \"@talxis/react-components/dist/utilities/ThemeDesigner\";\nimport React from \"react\";\nimport { useControlTheme } from \"./useControlTheme\";\n\nexport const useThemeOverride = (primaryColor: string, backgroundColor: string, textColor: string) => {\n const overridenFluentDesignLanguage = React.useMemo(() => {\n const customV8Theme = ThemeDesigner.generateTheme({\n primaryColor: primaryColor,\n backgroundColor: backgroundColor,\n textColor: textColor\n });\n const customTokenTheme = createV9Theme(customV8Theme);\n return {\n brand: createBrandVariants(customV8Theme.palette),\n tokenTheme: customTokenTheme\n }\n }, []\n );\n return useControlTheme(overridenFluentDesignLanguage);\n}"],"names":["React"],"mappings":";;;;;AAKa,MAAA,gBAAgB,GAAG,CAAC,YAAoB,EAAE,eAAuB,EAAE,SAAiB,KAAI;AACjG,IAAA,MAAM,6BAA6B,GAAGA,cAAK,CAAC,OAAO,CAAC,MAAK;AACrD,QAAA,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC9C,YAAA,YAAY,EAAE,YAAY;AAC1B,YAAA,eAAe,EAAE,eAAe;AAChC,YAAA,SAAS,EAAE,SAAS;AACvB,SAAA,CAAC,CAAC;AACH,QAAA,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;QACtD,OAAO;AACH,YAAA,KAAK,EAAE,mBAAmB,CAAC,aAAa,CAAC,OAAO,CAAC;AACjD,YAAA,UAAU,EAAE,gBAAgB;SAC/B,CAAA;KACJ,EAAE,EAAE,CACJ,CAAC;AACF,IAAA,OAAO,eAAe,CAAC,6BAA6B,CAAC,CAAC;AAC1D;;;;"}
|