@zohodesk/library-platform 1.1.12-exp.1 → 1.1.12-exp.3
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/es/bc/app-context/Properties.js +19 -0
- package/es/bc/float-pagination/ActionHandlers.js +1 -0
- package/es/bc/float-pagination/Constants.js +4 -0
- package/es/bc/float-pagination/Properties.js +18 -0
- package/es/bc/float-pagination/index.js +2 -0
- package/es/bc/index.js +0 -1
- package/es/bc/search/Constants.js +3 -0
- package/es/bc/search/EventHandlers.js +1 -0
- package/es/bc/search/Properties.js +11 -0
- package/es/bc/search/index.js +2 -0
- package/es/bc/zlist/Constants.js +0 -1
- package/es/bc/zlist/Types.js +10 -0
- package/es/bc/zrecord/Constants.js +1 -0
- package/es/bc/zrecord/Schemas.js +29 -0
- package/es/bc/zrecord/Types.js +45 -0
- package/es/cc/action-icon/Properties.js +20 -1
- package/es/cc/floating-pagination/Constants.js +6 -0
- package/es/cc/floating-pagination/Events.js +8 -0
- package/es/cc/floating-pagination/Properties.js +56 -0
- package/es/cc/floating-pagination/index.js +3 -0
- package/es/cc/ribbon/Properties.js +59 -0
- package/es/cc/ribbon/index.js +1 -0
- package/es/cc/table-connected/Properties.js +16 -0
- package/es/cc/table-connected/SdkContract.js +21 -0
- package/es/cc/table-connected/constants/Events.js +2 -0
- package/es/cc/table-list/Actions.js +0 -2
- package/es/cc/table-list/Constants.js +1 -1
- package/es/cc/table-list/Events.js +0 -2
- package/es/cc/table-list/Properties.js +34 -3
- package/es/library/behaviours/float-pagination/adapters/controllers/DestructController.js +18 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/FloatPaginationController.js +25 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/InitializeController.js +18 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/ScrollBottomController.js +23 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/ScrollTopController.js +23 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/UpdateIndexController.js +30 -0
- package/es/library/behaviours/float-pagination/adapters/gateway/Repository.js +27 -0
- package/es/library/behaviours/float-pagination/adapters/gateway/Service.js +20 -0
- package/es/library/behaviours/float-pagination/adapters/presenter/Presenter.js +16 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/ScrollTopInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/ScrollbottomInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/UpdateIndexInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/output/FloatPaginationOutputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/output/IPresenter.js +1 -0
- package/es/library/behaviours/float-pagination/applications/usecases/DestructUsecase.js +15 -0
- package/es/library/behaviours/float-pagination/applications/usecases/FloatPaginationUseCase.js +31 -0
- package/es/library/behaviours/float-pagination/applications/usecases/InitializeUsecase.js +16 -0
- package/es/library/behaviours/float-pagination/applications/usecases/ScrollBottomUseCase.js +23 -0
- package/es/library/behaviours/float-pagination/applications/usecases/ScrollTopUseCase.js +23 -0
- package/es/library/behaviours/float-pagination/applications/usecases/UpdateIndexUseCase.js +28 -0
- package/es/library/behaviours/float-pagination/domain/entities/FloatPagination.js +28 -0
- package/es/library/behaviours/float-pagination/domain/entities/interfaces/IFloatPagination.js +1 -0
- package/es/library/behaviours/float-pagination/frameworks/ui/ActionsHandlerFactory.js +37 -0
- package/es/library/behaviours/float-pagination/frameworks/ui/FloatPaginationBehaviourFactory.js +21 -0
- package/es/library/behaviours/float-pagination/frameworks/utils.js +70 -0
- package/es/library/behaviours/keyboard-controls/adapters/gateways/Repository.js +2 -1
- package/es/library/behaviours/keyboard-controls/applications/usecases/SpacePress.js +1 -1
- package/es/library/behaviours/keyboard-controls/domain/entities/KeyboardControls.js +6 -1
- package/es/library/behaviours/list-selection/domain/entities/ListItemSelection.js +21 -18
- package/es/library/behaviours/search/adapters/controllers/AbstractController.js +9 -0
- package/es/library/behaviours/search/adapters/controllers/SearchController.js +26 -0
- package/es/library/behaviours/search/adapters/controllers/UpdatePropertiesController.js +27 -0
- package/es/library/behaviours/search/adapters/gateway/Repository.js +20 -0
- package/es/library/behaviours/search/adapters/gateway/Service.js +12 -0
- package/es/library/behaviours/{sort-by → search}/adapters/presenter/Presenter.js +2 -2
- package/es/library/behaviours/search/adapters/presenter/SearchTranslator.js +6 -0
- package/es/library/behaviours/search/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/gateways/IService.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/input/SearchInputModel.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/input/UpdatePropertiesInputModel.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/output/IPresenter.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/output/SearchOutputModel.js +1 -0
- package/es/library/behaviours/search/applications/usecases/AbstractUseCase.js +17 -0
- package/es/library/behaviours/search/applications/usecases/SearchUseCase.js +28 -0
- package/es/library/behaviours/search/applications/usecases/UpdatePropertiesUsecase.js +25 -0
- package/es/library/behaviours/search/domain/entities/Search.js +23 -0
- package/es/library/behaviours/search/domain/entities/interfaces/ISearch.js +1 -0
- package/es/library/behaviours/search/frameworks/ui/EventHandlerFactory.js +25 -0
- package/es/library/behaviours/search/frameworks/ui/SearchStringStoreBehaviourFactory.js +26 -0
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +5 -0
- package/es/library/custom-component/domain/entities/ComponentProperties.js +1 -1
- package/es/library/custom-component/domain/entities/Logger.js +3 -3
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +3 -1
- package/es/library/dot/components/table-list/adapters/controllers/ScrollController.js +2 -2
- package/es/library/dot/components/table-list/adapters/controllers/index.js +0 -2
- package/es/library/dot/components/table-list/frameworks/ui/EventHandlersFactory.js +1 -2
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +24 -1
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +19 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +1 -5
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.js +5 -1
- package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPagination.js +10 -0
- package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPaginationView.js +47 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +1 -0
- package/es/library/dot/legacy-to-new-arch/ribbon/frameworks/ui/Ribbon.js +10 -0
- package/es/library/dot/legacy-to-new-arch/ribbon/frameworks/ui/RibbonView.js +37 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +14 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownField.js +17 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownField.js +33 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownFieldView.js +1 -1
- package/es/platform/components/table-connected/adapters/controllers/ScrollController.js +29 -8
- package/es/platform/components/table-connected/adapters/controllers/ScrollEndReachedController.js +23 -0
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +169 -8
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +37 -6
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +2 -1
- package/es/platform/components/table-connected/frameworks/TableConnectedView.js +2 -0
- package/es/platform/data-source/http-template/getComponentMapping.js +1 -1
- package/es/platform/data-source/http-template/getRecords.js +1 -0
- package/es/platform/data-source/http-template/getSingleRecord.js +51 -0
- package/es/platform/zform/adapters/controllers/GetInitialRecordSuccessController.js +31 -0
- package/es/platform/zform/applications/interfaces/input/GetInitialRecordSuccessUseCaseInputModel.js +1 -0
- package/es/platform/zform/applications/usecases/GetInitialRecordSuccessUseCase.js +132 -0
- package/es/platform/zlist/adapters/controllers/RefreshRecordsRequestedController.js +21 -0
- package/es/platform/zlist/adapters/controllers/SortController.js +2 -2
- package/es/platform/zlist/adapters/gateways/Repository.js +6 -11
- package/es/platform/zlist/adapters/gateways/Service.js +2 -0
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +41 -13
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +15 -3
- package/es/platform/zlist/adapters/presenters/translators/Header.js +29 -21
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +3 -3
- package/es/platform/zlist/adapters/presenters/translators/Row.js +14 -1
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +21 -3
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +21 -3
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +17 -1
- package/es/platform/zlist/adapters/presenters/utils/DateAndTimeFormat.js +25 -0
- package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +7 -4
- package/es/platform/zlist/applications/entities-factory/ListFactory.js +2 -2
- package/es/platform/zlist/applications/interfaces/input/GetSortConfigUseCaseInputModel.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/RefreshRecordsRequestedUseCaseInputModel.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/SetSortConfigUseCaseInputModel.js +1 -0
- package/es/platform/zlist/applications/usecases/GetSortConfigUseCase.js +17 -0
- package/es/platform/zlist/applications/usecases/RecordSuccessCallbackUsecase.js +1 -1
- package/es/platform/zlist/applications/usecases/RefreshRecordsRequestedUseCase.js +17 -0
- package/es/platform/zlist/applications/usecases/SetSortConfigUseCase.js +26 -0
- package/es/platform/zlist/applications/usecases/SortUseCase.js +6 -6
- package/es/platform/zlist/domain/entities/List.js +27 -15
- package/es/platform/zlist/domain/entities/interfaces/Properties.js +5 -5
- package/es/platform/zlist/frameworks/EventHandlersFactory.js +3 -4
- package/es/platform/zlist/frameworks/ZListBehaviourFactory.js +2 -5
- package/es/platform/zrecord/adapters/controllers/UpdateRecordController.js +30 -0
- package/es/platform/zrecord/adapters/gateways/Repository.js +5 -2
- package/es/platform/zrecord/applications/entities-factory/RecordsManagerFactory.js +2 -2
- package/es/platform/zrecord/applications/interfaces/input/ClearAllFiltersUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/GetFilterConditionUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/GetFilterConfigUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/RefreshRecordsUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/SetFilterUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/UpdateRecordInputModel.js +0 -0
- package/es/platform/zrecord/applications/usecases/ClearAllFiltersUseCase.js +24 -0
- package/es/platform/zrecord/applications/usecases/GetFilterConditionUseCase.js +15 -0
- package/es/platform/zrecord/applications/usecases/GetFilterConfigUseCase.js +15 -0
- package/es/platform/zrecord/applications/usecases/RefreshRecordsUseCase.js +14 -0
- package/es/platform/zrecord/applications/usecases/SetFilterUseCase.js +24 -0
- package/es/platform/zrecord/applications/usecases/UpdateRecordUseCase.js +30 -0
- package/es/platform/zrecord/domain/entities/Filter.js +247 -0
- package/es/platform/zrecord/domain/entities/RecordsManager.js +19 -1
- package/es/platform/zrecord/domain/entities/interfaces/IFilter.js +1 -0
- package/es/platform/zrecord/frameworks/RecordBehaviourFactory.js +11 -1
- package/package.json +20 -20
- package/es/bc/sort-by/ActionHandlers.js +0 -1
- package/es/bc/sort-by/Constants.js +0 -2
- package/es/bc/sort-by/Properties.js +0 -26
- package/es/bc/sort-by/SortOrderEnum.js +0 -8
- package/es/bc/sort-by/index.js +0 -2
- package/es/library/behaviours/sort-by/adapters/controllers/SortBy.js +0 -28
- package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +0 -19
- package/es/library/behaviours/sort-by/adapters/gateway/Service.js +0 -10
- package/es/library/behaviours/sort-by/applications/usecases/SortBy.js +0 -28
- package/es/library/behaviours/sort-by/domain/entities/SortBy.js +0 -42
- package/es/library/behaviours/sort-by/frameworks/ui/ActionsHandlerFactory.js +0 -23
- package/es/library/behaviours/sort-by/frameworks/ui/DemoBehaviour.js +0 -20
- package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +0 -24
- package/es/library/dot/components/table-list/adapters/controllers/SortByController.js +0 -25
- package/es/library/dot/components/table-list/adapters/controllers/SortedController.js +0 -18
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleSortClick.js +0 -12
- package/es/platform/zlist/adapters/gateways/SortBy.js +0 -38
- package/es/platform/zlist/domain/entities/SortBy.js +0 -58
- /package/es/{library/behaviours/sort-by/applications/interfaces/UseCaseDependencies.js → bc/float-pagination/types/FloatPaginationBehaviourState.js} +0 -0
- /package/es/{library/behaviours/sort-by/applications/interfaces/gateways/IRepository.js → bc/list-selection/Types.js} +0 -0
- /package/es/{library/behaviours/sort-by/applications/interfaces/gateways/IService.js → cc/table-list/data-types/FloatPaginationConfig.js} +0 -0
- /package/es/library/behaviours/{sort-by → float-pagination}/adapters/controllers/AbstractController.js +0 -0
- /package/es/library/behaviours/{sort-by/applications/interfaces/input/SortByInputModel.js → float-pagination/applications/interfaces/UseCaseDependencies.js} +0 -0
- /package/es/library/behaviours/{sort-by/applications/interfaces/output/IPresenter.js → float-pagination/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/library/behaviours/{sort-by/applications/interfaces/output/SortByOutputModel.js → float-pagination/applications/interfaces/gateways/IService.js} +0 -0
- /package/es/library/behaviours/{sort-by/domain/entities/interfaces/ISortBy.js → float-pagination/applications/interfaces/input/DestructInputModel.js} +0 -0
- /package/es/{platform/zlist/applications/interfaces/gateways/ISortBy.js → library/behaviours/float-pagination/applications/interfaces/input/FloatPaginationInputModel.js} +0 -0
- /package/es/{platform/zlist/domain/entities/interfaces/ISortBy.js → library/behaviours/float-pagination/applications/interfaces/input/InitializeInputModel.js} +0 -0
- /package/es/library/behaviours/{sort-by → float-pagination}/applications/usecases/AbstractUseCase.js +0 -0
|
@@ -25,6 +25,25 @@ export default {
|
|
|
25
25
|
type: 'string'
|
|
26
26
|
},
|
|
27
27
|
// zlist, zform
|
|
28
|
+
dateTimeFormat: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
dateFormat: {
|
|
32
|
+
type: 'string'
|
|
33
|
+
},
|
|
34
|
+
timeFormat: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
enum: ['12-hour', '24-hour']
|
|
37
|
+
},
|
|
38
|
+
delimiter: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
enum: ['space', 'dot', 'hyphen', 'slash']
|
|
41
|
+
},
|
|
42
|
+
isShortenDateTimeInfo: {
|
|
43
|
+
type: 'boolean'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
28
47
|
modules: {
|
|
29
48
|
// zlist
|
|
30
49
|
type: 'array',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { FLOAT_PAGINATION_BEHAVIOUR_UPDATE_REQUESTED } from "./Constants"; // import { } from './Constants';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const FLOAT_PAGINATION_BEHAVIOUR_UPDATE_REQUESTED = 'FLOAT_PAGINATION_BEHAVIOUR#UPDATE_REQUESTED';
|
|
2
|
+
export const FLOAT_PAGINATION_BEHAVIOUR_TOP_UPDATED = 'FLOAT_PAGINATION_BEHAVIOUR#TOP_UPDATED';
|
|
3
|
+
export const FLOAT_PAGINATION_BEHAVIOUR_BOTTOM_UPDATED = 'FLOAT_PAGINATION_BEHAVIOUR#BOTTOM_UPDATED';
|
|
4
|
+
export const FLOAT_PAGINATION_BEHAVIOUR_INDEX_UPDATED = 'FLOAT_PAGINATION_BEHAVIOUR#INDEX_UPDATED';
|
package/es/bc/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { SEARCH_REQUESTED } from "./Constants";
|
package/es/bc/zlist/Constants.js
CHANGED
|
@@ -3,7 +3,6 @@ export const ZLIST_DELETE_RECORD = 'ZLIST#DELETE_RECORD';
|
|
|
3
3
|
export const ZLIST_RECORD_UPDATE = 'ZLIST#RECORD_UPDATE';
|
|
4
4
|
export const ZLIST_FETCH_MORE = 'ZLIST#FETCH_MORE';
|
|
5
5
|
export const ZLIST_SORT = 'ZLIST#SORT';
|
|
6
|
-
export const ZLIST_FETCH_SORTED = 'ZLIST#FETCH_SORTED';
|
|
7
6
|
export const ZLIST_RECORD_UPDATE_SUCCEEDED = 'ZLIST#RECORD_UPDATE_SUCCEEDED';
|
|
8
7
|
export const ZLIST_RECORD_UPDATE_FAILED = 'ZLIST#RECORD_UPDATE_FAILED';
|
|
9
8
|
export const ZLIST_RECORD_DELETE_SUCCEEDED = 'ZLIST#RECORD_DELETE_SUCCEEDED';
|
|
@@ -11,6 +11,7 @@ export const RECORD_FIELD_CHANGE = 'RECORD#FIELD_CHANGE';
|
|
|
11
11
|
export const RECORD_LOCAL_UPDATE = 'RECORD#LOCAL_UPDATE';
|
|
12
12
|
export const RECORD_LOCAL_MULTIPLE_DELETE = 'RECORD#LOCAL_MULTIPLE_DELETE';
|
|
13
13
|
export const APPEND_RECORDS = 'RECORD#APPEND_RECORDS';
|
|
14
|
+
export const REFRESH_RECORDS_REQUESTED = 'RECORD#REFRESH_RECORDS_REQUESTED';
|
|
14
15
|
export const SET_RECORDS = 'RECORD#SET_RECORDS';
|
|
15
16
|
export const SET_RECORDS_SUCCESS = 'RECORD#SET_RECORDS_SUCCESS';
|
|
16
17
|
export const CREATE_RECORD = 'RECORD#CREATE_RECORD';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CommonComparators, TextComparators, NumberComparators, DateComparators } from "./Types";
|
|
2
|
+
export const filterConfigSchema = {
|
|
3
|
+
type: "object",
|
|
4
|
+
properties: {
|
|
5
|
+
conditions: {
|
|
6
|
+
type: "array",
|
|
7
|
+
items: {
|
|
8
|
+
type: "object",
|
|
9
|
+
properties: {
|
|
10
|
+
fieldName: {
|
|
11
|
+
type: "string"
|
|
12
|
+
},
|
|
13
|
+
condition: {
|
|
14
|
+
type: "string",
|
|
15
|
+
enum: [...Object.values(CommonComparators), ...Object.values(TextComparators), ...Object.values(NumberComparators), ...Object.values(DateComparators)]
|
|
16
|
+
},
|
|
17
|
+
value: {// Can be any type
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
required: ["fieldName", "condition", "value"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
pattern: {
|
|
24
|
+
type: "string",
|
|
25
|
+
description: "Pattern representing logical combination, e.g., '(1and(2or3))'"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
required: ["conditions", "pattern"]
|
|
29
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// ---------------- ENUMS ----------------
|
|
2
|
+
export let CommonComparators = /*#__PURE__*/function (CommonComparators) {
|
|
3
|
+
CommonComparators["ISEMPTY"] = "is empty";
|
|
4
|
+
CommonComparators["ISNOTEMPTY"] = "is not empty";
|
|
5
|
+
return CommonComparators;
|
|
6
|
+
}({});
|
|
7
|
+
export let TextComparators = /*#__PURE__*/function (TextComparators) {
|
|
8
|
+
TextComparators["IS"] = "is";
|
|
9
|
+
TextComparators["ISNT"] = "isn't";
|
|
10
|
+
TextComparators["STARTSWITH"] = "starts with";
|
|
11
|
+
TextComparators["ENDSWITH"] = "ends with";
|
|
12
|
+
TextComparators["CONTAINS"] = "contains";
|
|
13
|
+
TextComparators["DOESNTCONTAIN"] = "doesn't contain";
|
|
14
|
+
return TextComparators;
|
|
15
|
+
}({});
|
|
16
|
+
export let NumberComparators = /*#__PURE__*/function (NumberComparators) {
|
|
17
|
+
NumberComparators["EQUAL"] = "=";
|
|
18
|
+
NumberComparators["NOTEQUAL"] = "<>";
|
|
19
|
+
NumberComparators["LESSTHAN"] = "<";
|
|
20
|
+
NumberComparators["LESSTHANEQUAL"] = "<=";
|
|
21
|
+
NumberComparators["GREATERTHAN"] = ">";
|
|
22
|
+
NumberComparators["GREATERTHANEQUAL"] = ">=";
|
|
23
|
+
return NumberComparators;
|
|
24
|
+
}({});
|
|
25
|
+
export let DateComparators = /*#__PURE__*/function (DateComparators) {
|
|
26
|
+
DateComparators["ISAFTER"] = "is after";
|
|
27
|
+
DateComparators["ISBEFORE"] = "is before";
|
|
28
|
+
DateComparators["BETWEEN"] = "between";
|
|
29
|
+
DateComparators["NOTBETWEEN"] = "not between";
|
|
30
|
+
return DateComparators;
|
|
31
|
+
}({}); // Union type of all comparators
|
|
32
|
+
|
|
33
|
+
export let ConditionTokens = /*#__PURE__*/function (ConditionTokens) {
|
|
34
|
+
ConditionTokens["CONDITION"] = "CONDITION";
|
|
35
|
+
ConditionTokens["OPEN"] = "(";
|
|
36
|
+
ConditionTokens["CLOSE"] = ")";
|
|
37
|
+
ConditionTokens["AND"] = "AND";
|
|
38
|
+
ConditionTokens["OR"] = "OR";
|
|
39
|
+
ConditionTokens["NOT"] = "NOT";
|
|
40
|
+
return ConditionTokens;
|
|
41
|
+
}({});
|
|
42
|
+
export const initialFilterConfig = {
|
|
43
|
+
conditions: [],
|
|
44
|
+
pattern: ''
|
|
45
|
+
};
|
|
@@ -15,13 +15,32 @@ export default {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
colorVariant: {
|
|
19
|
+
required: false,
|
|
20
|
+
defaultValue: 'default',
|
|
21
|
+
typeMetadata: {
|
|
22
|
+
schema: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
enum: ['primary', 'danger', 'success', 'warning', 'default']
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
isHoverable: {
|
|
29
|
+
required: false,
|
|
30
|
+
defaultValue: true,
|
|
31
|
+
typeMetadata: {
|
|
32
|
+
schema: {
|
|
33
|
+
type: 'boolean'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
18
37
|
hoverVariant: {
|
|
19
38
|
required: false,
|
|
20
39
|
defaultValue: 'primary',
|
|
21
40
|
typeMetadata: {
|
|
22
41
|
schema: {
|
|
23
42
|
type: 'string',
|
|
24
|
-
enum: ['primary', 'danger', 'default']
|
|
43
|
+
enum: ['primary', 'danger', 'success', 'warning', 'default']
|
|
25
44
|
}
|
|
26
45
|
}
|
|
27
46
|
},
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
text: {
|
|
3
|
+
defaultValue: '',
|
|
4
|
+
required: false,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'string'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
hasScrollControls: {
|
|
12
|
+
defaultValue: true,
|
|
13
|
+
required: false,
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'boolean'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
scrollToUpTooltip: {
|
|
21
|
+
defaultValue: 'Go to top',
|
|
22
|
+
required: false,
|
|
23
|
+
typeMetadata: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'string'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
scrollToDownTooltip: {
|
|
30
|
+
defaultValue: 'Go to bottom',
|
|
31
|
+
required: false,
|
|
32
|
+
typeMetadata: {
|
|
33
|
+
schema: {
|
|
34
|
+
type: 'string'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
isScrollToUpDisabled: {
|
|
39
|
+
defaultValue: false,
|
|
40
|
+
required: false,
|
|
41
|
+
typeMetadata: {
|
|
42
|
+
schema: {
|
|
43
|
+
type: 'boolean'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
isScrollToDownDisabled: {
|
|
48
|
+
defaultValue: false,
|
|
49
|
+
required: false,
|
|
50
|
+
typeMetadata: {
|
|
51
|
+
schema: {
|
|
52
|
+
type: 'boolean'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
text: {
|
|
3
|
+
defaultValue: '',
|
|
4
|
+
required: false,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'string'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
palette: {
|
|
12
|
+
defaultValue: 'primary',
|
|
13
|
+
required: false,
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
enum: ['primary', 'secondary', 'danger', 'success', 'warning']
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
iconName: {
|
|
22
|
+
defaultValue: '',
|
|
23
|
+
required: false,
|
|
24
|
+
typeMetadata: {
|
|
25
|
+
schema: {
|
|
26
|
+
type: 'string'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
iconSize: {
|
|
31
|
+
defaultValue: '8',
|
|
32
|
+
required: false,
|
|
33
|
+
typeMetadata: {
|
|
34
|
+
schema: {
|
|
35
|
+
type: 'string'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
defaultValue: 'small',
|
|
41
|
+
required: false,
|
|
42
|
+
typeMetadata: {
|
|
43
|
+
schema: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
enum: ['small', 'medium']
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
flagPlacement: {
|
|
50
|
+
defaultValue: 'right',
|
|
51
|
+
required: false,
|
|
52
|
+
typeMetadata: {
|
|
53
|
+
schema: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
enum: ['left', 'right']
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RibbonProperties } from "./Properties";
|
|
@@ -109,6 +109,22 @@ export default {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
+
floatPaginationConfig: {
|
|
113
|
+
required: false,
|
|
114
|
+
defaultValue: {
|
|
115
|
+
isEnabled: false
|
|
116
|
+
},
|
|
117
|
+
typeMetadata: {
|
|
118
|
+
schema: {
|
|
119
|
+
type: 'object',
|
|
120
|
+
properties: {
|
|
121
|
+
isEnabled: {
|
|
122
|
+
type: 'boolean'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
112
128
|
reOrderConfig: {
|
|
113
129
|
required: false,
|
|
114
130
|
defaultValue: {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { SortOrder } from "../../bc/zlist/Types";
|
|
2
|
+
import { filterConfigSchema } from "../../bc/zrecord/Schemas";
|
|
1
3
|
export const SdkContracts = {
|
|
2
4
|
getRecordInputMeta: {
|
|
3
5
|
type: 'object',
|
|
@@ -107,6 +109,13 @@ export const SdkContracts = {
|
|
|
107
109
|
},
|
|
108
110
|
required: ['recordsMap']
|
|
109
111
|
},
|
|
112
|
+
setFilterInputMeta: {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
filterConfig: filterConfigSchema
|
|
116
|
+
},
|
|
117
|
+
required: ['filterConfig']
|
|
118
|
+
},
|
|
110
119
|
selectRecordsInputMeta: {
|
|
111
120
|
type: 'object',
|
|
112
121
|
properties: {
|
|
@@ -147,6 +156,18 @@ export const SdkContracts = {
|
|
|
147
156
|
},
|
|
148
157
|
required: ['ids']
|
|
149
158
|
},
|
|
159
|
+
setSortConfigInputMeta: {
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
fieldName: {
|
|
163
|
+
type: 'string'
|
|
164
|
+
},
|
|
165
|
+
order: {
|
|
166
|
+
type: 'string',
|
|
167
|
+
enum: [SortOrder.ASC, SortOrder.DES, SortOrder.NONE]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
150
171
|
sortByInputMeta: {
|
|
151
172
|
type: 'object',
|
|
152
173
|
properties: {
|
|
@@ -5,5 +5,7 @@ export default {
|
|
|
5
5
|
SORTED: 'SMART_TABLE#SORTED',
|
|
6
6
|
ERROR_OCCURRED
|
|
7
7
|
};
|
|
8
|
+
export const SMART_TABLE_SORT_BY_REQUESTED = 'SMART_TABLE#SORT_BY_REQUESTED';
|
|
9
|
+
export const SMART_TABLE_SORTED = 'SMART_TABLE#SORTED';
|
|
8
10
|
export const SMART_TABLE_SELECTION_TOGGLED = 'SMART_TABLE#SELECTION_TOGGLED';
|
|
9
11
|
export const SMART_TABLE_ACTION_TRIGGERED = 'SMART_TABLE#ACTION_TRIGGERED';
|
|
@@ -5,9 +5,9 @@ class Constants {
|
|
|
5
5
|
static TABLE_LIST_RESIZE_MOVE_REQUESTED = 'TABLE_LIST#RESIZE_MOVE_REQUESTED';
|
|
6
6
|
static TABLE_LIST_RESIZE_END_REQUESTED = 'TABLE_LIST#RESIZE_END_REQUESTED';
|
|
7
7
|
static TABLE_LIST_SCROLLED = 'TABLE_LIST#SCROLLED';
|
|
8
|
+
static TABLE_LIST_SCROLL_END_REACHED = 'TABLE_LIST#SCROLL_END_REACHED';
|
|
8
9
|
static TABLE_LIST_TOGGLE_ITEM_SELECTION = 'TABLE_LIST#ITEM_SELECTED';
|
|
9
10
|
static TABLE_LIST_TOGGLE_ALL_SELECTION = 'TABLE_LIST#ALL_SELECT_TOGGLED';
|
|
10
|
-
static TABLE_LIST_SORTED = 'TABLE_LIST#SORTED';
|
|
11
11
|
static TABLE_LIST_FIELD_CLICKED = 'TABLE_LIST#FIELD_CLICKED';
|
|
12
12
|
static TABLE_LIST_FIELD_CHANGED = 'TABLE_LIST#FIELD_CHANGED';
|
|
13
13
|
static TABLE_LIST_ROW_CLICKED = 'TABLE_LIST#ROW_CLICKED';
|
|
@@ -51,9 +51,6 @@ const TableListProperties = {
|
|
|
51
51
|
},
|
|
52
52
|
name: {
|
|
53
53
|
type: 'string'
|
|
54
|
-
},
|
|
55
|
-
id: {
|
|
56
|
-
type: 'string'
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
}
|
|
@@ -289,6 +286,40 @@ const TableListProperties = {
|
|
|
289
286
|
}
|
|
290
287
|
}
|
|
291
288
|
},
|
|
289
|
+
floatPaginationConfig: {
|
|
290
|
+
required: false,
|
|
291
|
+
defaultValue: {
|
|
292
|
+
isEnabled: false
|
|
293
|
+
},
|
|
294
|
+
typeMetadata: {
|
|
295
|
+
schema: {
|
|
296
|
+
type: 'object',
|
|
297
|
+
properties: {
|
|
298
|
+
isEnabled: {
|
|
299
|
+
type: 'boolean'
|
|
300
|
+
},
|
|
301
|
+
scrollCount: {
|
|
302
|
+
type: 'number'
|
|
303
|
+
},
|
|
304
|
+
totalCount: {
|
|
305
|
+
type: 'number'
|
|
306
|
+
},
|
|
307
|
+
scrollToUpTooltip: {
|
|
308
|
+
type: 'string'
|
|
309
|
+
},
|
|
310
|
+
isTopReached: {
|
|
311
|
+
type: 'boolean'
|
|
312
|
+
},
|
|
313
|
+
isBottomReached: {
|
|
314
|
+
type: 'boolean'
|
|
315
|
+
},
|
|
316
|
+
scrollToDownTooltip: {
|
|
317
|
+
type: 'string'
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
292
323
|
keyboardControlsConfig: {
|
|
293
324
|
required: false,
|
|
294
325
|
defaultValue: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class DestructController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
state,
|
|
7
|
+
updateState
|
|
8
|
+
} = event;
|
|
9
|
+
const {
|
|
10
|
+
DestructUsecase
|
|
11
|
+
} = this.service;
|
|
12
|
+
DestructUsecase.updateDependencies(state, updateState);
|
|
13
|
+
DestructUsecase.execute();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default DestructController;
|
package/es/library/behaviours/float-pagination/adapters/controllers/FloatPaginationController.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class FloatPaginationController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
floatPaginationUseCase
|
|
7
|
+
} = this.service;
|
|
8
|
+
let {
|
|
9
|
+
state,
|
|
10
|
+
updateState,
|
|
11
|
+
dispatch,
|
|
12
|
+
host
|
|
13
|
+
} = event;
|
|
14
|
+
let selector = 'tr';
|
|
15
|
+
floatPaginationUseCase.updateDependencies(state, updateState);
|
|
16
|
+
floatPaginationUseCase.execute({
|
|
17
|
+
dispatch,
|
|
18
|
+
host,
|
|
19
|
+
selector
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default FloatPaginationController;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class InitializeController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
state,
|
|
7
|
+
updateState
|
|
8
|
+
} = event;
|
|
9
|
+
const {
|
|
10
|
+
InitializeUsecase
|
|
11
|
+
} = this.service;
|
|
12
|
+
InitializeUsecase.updateDependencies(state, updateState);
|
|
13
|
+
InitializeUsecase.execute();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default InitializeController;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class ScrollBottomController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
scrollBottomUseCase
|
|
7
|
+
} = this.service;
|
|
8
|
+
let {
|
|
9
|
+
state,
|
|
10
|
+
updateState,
|
|
11
|
+
dispatch,
|
|
12
|
+
host
|
|
13
|
+
} = event;
|
|
14
|
+
scrollBottomUseCase.updateDependencies(state, updateState);
|
|
15
|
+
scrollBottomUseCase.execute({
|
|
16
|
+
dispatch,
|
|
17
|
+
host
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default ScrollBottomController;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class ScrollTopController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
scrollTopUseCase
|
|
7
|
+
} = this.service;
|
|
8
|
+
let {
|
|
9
|
+
state,
|
|
10
|
+
updateState,
|
|
11
|
+
dispatch,
|
|
12
|
+
host
|
|
13
|
+
} = event;
|
|
14
|
+
scrollTopUseCase.updateDependencies(state, updateState);
|
|
15
|
+
scrollTopUseCase.execute({
|
|
16
|
+
dispatch,
|
|
17
|
+
host
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default ScrollTopController;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class UpdateIndexController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
updateIndexUseCase
|
|
7
|
+
} = this.service;
|
|
8
|
+
let {
|
|
9
|
+
state,
|
|
10
|
+
updateState,
|
|
11
|
+
action,
|
|
12
|
+
dispatch,
|
|
13
|
+
host
|
|
14
|
+
} = event;
|
|
15
|
+
const {
|
|
16
|
+
currentIndex
|
|
17
|
+
} = action.payload;
|
|
18
|
+
let selector = 'tr';
|
|
19
|
+
updateIndexUseCase.updateDependencies(state, updateState);
|
|
20
|
+
updateIndexUseCase.execute({
|
|
21
|
+
dispatch,
|
|
22
|
+
host,
|
|
23
|
+
selector,
|
|
24
|
+
currentIndex
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default UpdateIndexController;
|