@zohodesk/library-platform 1.1.11 → 1.1.12-exp.2
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/index.js +0 -1
- 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/fields/lookup/Properties.js +10 -26
- package/es/cc/radio-dropdown/Constants.js +6 -0
- package/es/cc/radio-dropdown/Data.js +1 -0
- package/es/cc/radio-dropdown/Events.js +42 -0
- package/es/cc/radio-dropdown/Properties.js +142 -0
- package/es/cc/radio-dropdown/index.js +4 -0
- package/es/cc/table-column-filter/Properties.js +9 -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 +0 -1
- package/es/cc/table-list/Events.js +0 -2
- package/es/cc/table-list/Properties.js +0 -3
- package/es/cc/tag/Constants.js +6 -0
- package/es/cc/tag/Data.js +14 -0
- package/es/cc/tag/EventHandlers.js +1 -0
- package/es/cc/tag/Events.js +26 -0
- package/es/cc/tag/Model.js +30 -0
- package/es/cc/tag/Properties.js +104 -0
- package/es/cc/tag/index.js +6 -0
- package/es/cc/tags-list-dropdown/Constants.js +5 -0
- package/es/cc/tags-list-dropdown/Data.js +1 -0
- package/es/cc/tags-list-dropdown/Events.js +14 -0
- package/es/cc/tags-list-dropdown/Properties.js +96 -0
- package/es/cc/tags-list-dropdown/index.js +4 -0
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.js +56 -0
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
- package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
- 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/css/TableList.module.css +21 -21
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdown.js +12 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +124 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +23 -0
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +2 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarFieldView.js +22 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkFieldView.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +32 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownField.js +32 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownFieldView.js +43 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +3 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagFieldView.js +34 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsFieldView.js +18 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownField.js +12 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownFieldView.js +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextFieldView.js +20 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.js +11 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.module.css +8 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/TagView.js +96 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagContractAdapter.js +24 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdown.js +12 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdownView.js +42 -0
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +5 -5
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +169 -8
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +11 -2
- package/es/platform/data-source/http-template/fetchLookupFields.js +0 -6
- package/es/platform/data-source/http-template/getComponentMapping.js +17 -0
- package/es/platform/data-source/http-template/getRecords.js +1 -0
- package/es/platform/zform/adapters/gateway/FormRepository.js +3 -1
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +12 -11
- package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +9 -10
- package/es/platform/zform/domain/ZForm.js +2 -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 +9 -6
- package/es/platform/zlist/adapters/presenters/translators/FieldVariations.js +25 -0
- 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/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/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/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/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 +2 -2
package/es/bc/index.js
CHANGED
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
|
+
};
|
|
@@ -9,36 +9,20 @@ export default { ...FieldProperties,
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
+
//schema is not defiend properly from server so handled like this
|
|
12
13
|
value: {
|
|
13
|
-
required:
|
|
14
|
+
required: false,
|
|
15
|
+
defaultValue: null,
|
|
16
|
+
typeMetadata: {
|
|
17
|
+
schema: {}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
maxLength: {
|
|
21
|
+
required: false,
|
|
14
22
|
defaultValue: '',
|
|
15
23
|
typeMetadata: {
|
|
16
24
|
schema: {
|
|
17
|
-
|
|
18
|
-
anyOf: [{
|
|
19
|
-
// NOTE: object type is used in Table Lookup field translator
|
|
20
|
-
type: 'object',
|
|
21
|
-
properties: {
|
|
22
|
-
id: {
|
|
23
|
-
type: 'string'
|
|
24
|
-
},
|
|
25
|
-
name: {
|
|
26
|
-
type: 'string'
|
|
27
|
-
},
|
|
28
|
-
photoURL: {
|
|
29
|
-
type: ['string', 'null']
|
|
30
|
-
},
|
|
31
|
-
url: {
|
|
32
|
-
type: ['string', 'null']
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
required: ['id', 'name'],
|
|
36
|
-
additionalProperties: true
|
|
37
|
-
}, {
|
|
38
|
-
// NOTE: string type is used in Form Lookup field translator
|
|
39
|
-
type: 'string' // Allowing string type for backward compatibility or alternative usage
|
|
40
|
-
|
|
41
|
-
}]
|
|
25
|
+
type: 'number'
|
|
42
26
|
}
|
|
43
27
|
}
|
|
44
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Constants from "./Constants";
|
|
2
|
+
export default [{
|
|
3
|
+
type: Constants.RADIO_DROPDOWN_VALUE_CHANGED,
|
|
4
|
+
payload: {
|
|
5
|
+
id: {
|
|
6
|
+
name: 'id',
|
|
7
|
+
typeMetadata: {
|
|
8
|
+
schema: {
|
|
9
|
+
type: 'string'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
value: {
|
|
14
|
+
name: 'value',
|
|
15
|
+
typeMetadata: {
|
|
16
|
+
schema: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
secondaryValue: {
|
|
22
|
+
name: 'secondaryValue',
|
|
23
|
+
typeMetadata: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'string'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
type: Constants.RADIO_DROPDOWN_SEARCHED,
|
|
32
|
+
payload: {
|
|
33
|
+
value: {
|
|
34
|
+
name: 'value',
|
|
35
|
+
typeMetadata: {
|
|
36
|
+
schema: {
|
|
37
|
+
type: 'string'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}];
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
const TagProperties = {
|
|
2
|
+
options: {
|
|
3
|
+
required: false,
|
|
4
|
+
defaultValue: [],
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'array',
|
|
8
|
+
items: {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
id: {
|
|
12
|
+
type: 'string'
|
|
13
|
+
},
|
|
14
|
+
value: {
|
|
15
|
+
type: 'string'
|
|
16
|
+
},
|
|
17
|
+
secondaryValue: {
|
|
18
|
+
type: 'string'
|
|
19
|
+
},
|
|
20
|
+
isDisabled: {
|
|
21
|
+
type: 'boolean'
|
|
22
|
+
},
|
|
23
|
+
tooltip: {
|
|
24
|
+
type: 'string'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
color: {
|
|
32
|
+
required: false,
|
|
33
|
+
defaultValue: 'none',
|
|
34
|
+
typeMetadata: {
|
|
35
|
+
schema: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
enum: ['none', 'grey', 'red', 'orange', 'green', 'blue']
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
isDotted: {
|
|
42
|
+
required: false,
|
|
43
|
+
defaultValue: true,
|
|
44
|
+
typeMetadata: {
|
|
45
|
+
schema: {
|
|
46
|
+
type: 'boolean'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
weight: {
|
|
51
|
+
required: false,
|
|
52
|
+
typeMetadata: {
|
|
53
|
+
schema: {
|
|
54
|
+
type: "string",
|
|
55
|
+
enum: ["light", "regular", "semibold", "bold"]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
hoverVariant: {
|
|
60
|
+
required: false,
|
|
61
|
+
defaultValue: 'default',
|
|
62
|
+
typeMetadata: {
|
|
63
|
+
schema: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
enum: ['default', 'border', 'bg']
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
selectedId: {
|
|
70
|
+
required: false,
|
|
71
|
+
defaultValue: '',
|
|
72
|
+
typeMetadata: {
|
|
73
|
+
schema: {
|
|
74
|
+
type: 'string'
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
selectedValue: {
|
|
79
|
+
required: false,
|
|
80
|
+
defaultValue: '',
|
|
81
|
+
typeMetadata: {
|
|
82
|
+
schema: {
|
|
83
|
+
type: 'string'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
dropdownHeading: {
|
|
88
|
+
required: false,
|
|
89
|
+
defaultValue: '',
|
|
90
|
+
typeMetadata: {
|
|
91
|
+
schema: {
|
|
92
|
+
type: 'string'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
hasSearch: {
|
|
97
|
+
required: false,
|
|
98
|
+
defaultValue: false,
|
|
99
|
+
typeMetadata: {
|
|
100
|
+
schema: {
|
|
101
|
+
type: 'boolean'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
searchPlaceholder: {
|
|
106
|
+
required: false,
|
|
107
|
+
defaultValue: 'Search',
|
|
108
|
+
typeMetadata: {
|
|
109
|
+
schema: {
|
|
110
|
+
type: 'string'
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
emptyStateTitle: {
|
|
115
|
+
required: false,
|
|
116
|
+
defaultValue: 'No Results Found!',
|
|
117
|
+
typeMetadata: {
|
|
118
|
+
schema: {
|
|
119
|
+
type: 'string'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
isDisabled: {
|
|
124
|
+
required: false,
|
|
125
|
+
defaultValue: false,
|
|
126
|
+
typeMetadata: {
|
|
127
|
+
schema: {
|
|
128
|
+
type: 'boolean'
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
isReadOnly: {
|
|
133
|
+
required: false,
|
|
134
|
+
defaultValue: false,
|
|
135
|
+
typeMetadata: {
|
|
136
|
+
schema: {
|
|
137
|
+
type: 'boolean'
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
export default TagProperties;
|
|
@@ -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';
|
|
@@ -7,7 +7,6 @@ class Constants {
|
|
|
7
7
|
static TABLE_LIST_SCROLLED = 'TABLE_LIST#SCROLLED';
|
|
8
8
|
static TABLE_LIST_TOGGLE_ITEM_SELECTION = 'TABLE_LIST#ITEM_SELECTED';
|
|
9
9
|
static TABLE_LIST_TOGGLE_ALL_SELECTION = 'TABLE_LIST#ALL_SELECT_TOGGLED';
|
|
10
|
-
static TABLE_LIST_SORTED = 'TABLE_LIST#SORTED';
|
|
11
10
|
static TABLE_LIST_FIELD_CLICKED = 'TABLE_LIST#FIELD_CLICKED';
|
|
12
11
|
static TABLE_LIST_FIELD_CHANGED = 'TABLE_LIST#FIELD_CHANGED';
|
|
13
12
|
static TABLE_LIST_ROW_CLICKED = 'TABLE_LIST#ROW_CLICKED';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var Size = /*#__PURE__*/function (Size) {
|
|
2
|
+
Size["Small"] = "small";
|
|
3
|
+
Size["Medium"] = "medium";
|
|
4
|
+
return Size;
|
|
5
|
+
}(Size || {});
|
|
6
|
+
|
|
7
|
+
var Cursor = /*#__PURE__*/function (Cursor) {
|
|
8
|
+
Cursor["Pointer"] = "pointer";
|
|
9
|
+
Cursor["Default"] = "default";
|
|
10
|
+
return Cursor;
|
|
11
|
+
}(Cursor || {});
|
|
12
|
+
|
|
13
|
+
;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Constants from "./Constants";
|
|
2
|
+
export default [{
|
|
3
|
+
type: Constants.TAG_CLICKED,
|
|
4
|
+
payload: {
|
|
5
|
+
id: {
|
|
6
|
+
name: 'id',
|
|
7
|
+
typeMetadata: {
|
|
8
|
+
schema: {
|
|
9
|
+
type: 'string'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
type: Constants.TAG_REMOVED,
|
|
16
|
+
payload: {
|
|
17
|
+
id: {
|
|
18
|
+
name: 'id',
|
|
19
|
+
typeMetadata: {
|
|
20
|
+
schema: {
|
|
21
|
+
type: 'string'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function TagModel(_ref) {
|
|
2
|
+
let {
|
|
3
|
+
id,
|
|
4
|
+
label,
|
|
5
|
+
color,
|
|
6
|
+
imageSrc,
|
|
7
|
+
imageAltText,
|
|
8
|
+
iconName,
|
|
9
|
+
isRemovable,
|
|
10
|
+
isDisabled,
|
|
11
|
+
cursor,
|
|
12
|
+
size,
|
|
13
|
+
tooltip
|
|
14
|
+
} = _ref;
|
|
15
|
+
return {
|
|
16
|
+
id,
|
|
17
|
+
label,
|
|
18
|
+
color,
|
|
19
|
+
imageSrc,
|
|
20
|
+
imageAltText,
|
|
21
|
+
iconName,
|
|
22
|
+
isRemovable,
|
|
23
|
+
isDisabled,
|
|
24
|
+
cursor,
|
|
25
|
+
size,
|
|
26
|
+
tooltip
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default TagModel;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const TagProperties = {
|
|
2
|
+
id: {
|
|
3
|
+
required: false,
|
|
4
|
+
defaultValue: '',
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'string'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
label: {
|
|
12
|
+
required: true,
|
|
13
|
+
defaultValue: '',
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'string'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
required: false,
|
|
22
|
+
defaultValue: '',
|
|
23
|
+
typeMetadata: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'string'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
imageSrc: {
|
|
30
|
+
required: false,
|
|
31
|
+
defaultValue: '',
|
|
32
|
+
typeMetadata: {
|
|
33
|
+
schema: {
|
|
34
|
+
type: 'string'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
imageAltText: {
|
|
39
|
+
required: false,
|
|
40
|
+
defaultValue: '',
|
|
41
|
+
typeMetadata: {
|
|
42
|
+
schema: {
|
|
43
|
+
type: 'string'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
iconName: {
|
|
48
|
+
required: false,
|
|
49
|
+
defaultValue: '',
|
|
50
|
+
typeMetadata: {
|
|
51
|
+
schema: {
|
|
52
|
+
type: 'string'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
isDisabled: {
|
|
57
|
+
required: false,
|
|
58
|
+
defaultValue: false,
|
|
59
|
+
typeMetadata: {
|
|
60
|
+
schema: {
|
|
61
|
+
type: 'boolean'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
isRemovable: {
|
|
66
|
+
required: false,
|
|
67
|
+
defaultValue: false,
|
|
68
|
+
typeMetadata: {
|
|
69
|
+
schema: {
|
|
70
|
+
type: 'boolean'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
cursor: {
|
|
75
|
+
required: false,
|
|
76
|
+
defaultValue: 'default',
|
|
77
|
+
typeMetadata: {
|
|
78
|
+
schema: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
enum: ['pointer', 'default']
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
size: {
|
|
85
|
+
required: false,
|
|
86
|
+
defaultValue: 'medium',
|
|
87
|
+
typeMetadata: {
|
|
88
|
+
schema: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
enum: ['small', 'medium']
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
tooltip: {
|
|
95
|
+
required: false,
|
|
96
|
+
defaultValue: '',
|
|
97
|
+
typeMetadata: {
|
|
98
|
+
schema: {
|
|
99
|
+
type: 'string'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export default TagProperties;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as TagProperties } from "./Properties";
|
|
2
|
+
export { default as TagModel } from "./Model";
|
|
3
|
+
export { default as TagEvents } from "./Events";
|
|
4
|
+
export { default as TagEventHandlers } from "./EventHandlers";
|
|
5
|
+
export { default as TagConstants } from "./Constants";
|
|
6
|
+
export { default as TagDataType } from "./Data";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|