@beinformed/ui 1.24.1-beta.1 → 1.24.1-beta.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.
Files changed (185) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +3 -2
  3. package/types/constants/Constants.d.ts +151 -0
  4. package/types/constants/LayoutHintConfig.d.ts +241 -0
  5. package/types/constants/LayoutHints.d.ts +78 -0
  6. package/types/constants/Settings.d.ts +16 -0
  7. package/types/constants/index.d.ts +3 -0
  8. package/types/exceptions/ConfigurationException.d.ts +6 -0
  9. package/types/exceptions/FetchException.d.ts +31 -0
  10. package/types/exceptions/IllegalArgumentException.d.ts +6 -0
  11. package/types/exceptions/IllegalReturnException.d.ts +5 -0
  12. package/types/exceptions/IllegalStateException.d.ts +6 -0
  13. package/types/exceptions/JsonParseException.d.ts +6 -0
  14. package/types/exceptions/MissingPropertyException.d.ts +6 -0
  15. package/types/exceptions/NetworkException.d.ts +9 -0
  16. package/types/exceptions/NotAllowedUriException.d.ts +6 -0
  17. package/types/exceptions/NotFoundException.d.ts +10 -0
  18. package/types/exceptions/ServerRequestException.d.ts +6 -0
  19. package/types/exceptions/ThemePropertyException.d.ts +6 -0
  20. package/types/exceptions/TimeoutException.d.ts +7 -0
  21. package/types/exceptions/UnauthorizedException.d.ts +11 -0
  22. package/types/exceptions/UnsupportedOperationException.d.ts +6 -0
  23. package/types/exceptions/index.d.ts +15 -0
  24. package/types/hooks/useI18n.d.ts +9 -0
  25. package/types/i18n/Locale.d.ts +53 -0
  26. package/types/i18n/Locales.d.ts +55 -0
  27. package/types/i18n/Message.d.ts +6 -0
  28. package/types/i18n/index.d.ts +5 -0
  29. package/types/i18n/languages.d.ts +215 -0
  30. package/types/i18n/translations/beinformed_error_messages_en.nl.d.ts +97 -0
  31. package/types/i18n/translations/beinformed_error_messages_nl.nl.d.ts +97 -0
  32. package/types/i18n/types.d.ts +11 -0
  33. package/types/i18n/withMessage.d.ts +3 -0
  34. package/types/index.d.ts +6 -0
  35. package/types/models/actions/ActionCollection.d.ts +29 -0
  36. package/types/models/actions/ActionModel.d.ts +84 -0
  37. package/types/models/application/ApplicationModel.d.ts +41 -0
  38. package/types/models/attributes/AttributeCollection.d.ts +96 -0
  39. package/types/models/attributes/AttributeContent.d.ts +64 -0
  40. package/types/models/attributes/AttributeDataHelper.d.ts +67 -0
  41. package/types/models/attributes/AttributeModel.d.ts +395 -0
  42. package/types/models/attributes/AttributeSetModel.d.ts +28 -0
  43. package/types/models/attributes/BooleanAttributeModel.d.ts +65 -0
  44. package/types/models/attributes/CaptchaAttributeModel.d.ts +10 -0
  45. package/types/models/attributes/ChoiceAttributeModel.d.ts +76 -0
  46. package/types/models/attributes/ChoiceAttributeOptionCollection.d.ts +82 -0
  47. package/types/models/attributes/ChoiceAttributeOptionModel.d.ts +133 -0
  48. package/types/models/attributes/CompositeAttributeChildCollection.d.ts +56 -0
  49. package/types/models/attributes/CompositeAttributeModel.d.ts +44 -0
  50. package/types/models/attributes/DatetimeAttributeModel.d.ts +111 -0
  51. package/types/models/attributes/HelptextAttributeModel.d.ts +16 -0
  52. package/types/models/attributes/LabelAttributeModel.d.ts +12 -0
  53. package/types/models/attributes/MemoAttributeModel.d.ts +14 -0
  54. package/types/models/attributes/MoneyAttributeModel.d.ts +14 -0
  55. package/types/models/attributes/NumberAttributeModel.d.ts +49 -0
  56. package/types/models/attributes/PasswordAttributeModel.d.ts +62 -0
  57. package/types/models/attributes/StringAttributeModel.d.ts +62 -0
  58. package/types/models/attributes/UploadAttributeModel.d.ts +54 -0
  59. package/types/models/attributes/XMLAttributeModel.d.ts +10 -0
  60. package/types/models/attributes/_createAttribute.d.ts +6 -0
  61. package/types/models/attributes/input-constraints/BSNConstraint.d.ts +26 -0
  62. package/types/models/attributes/input-constraints/ConstraintCollection.d.ts +24 -0
  63. package/types/models/attributes/input-constraints/ConstraintModel.d.ts +34 -0
  64. package/types/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +109 -0
  65. package/types/models/attributes/input-constraints/DateTimeDateFormatConstraint.d.ts +36 -0
  66. package/types/models/attributes/input-constraints/DateTimeTimeFormatConstraint.d.ts +36 -0
  67. package/types/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +92 -0
  68. package/types/models/attributes/input-constraints/FileExtensionConstraint.d.ts +33 -0
  69. package/types/models/attributes/input-constraints/FileSizeConstraint.d.ts +42 -0
  70. package/types/models/attributes/input-constraints/IBANConstraint.d.ts +23 -0
  71. package/types/models/attributes/input-constraints/MandatoryConstraint.d.ts +23 -0
  72. package/types/models/attributes/input-constraints/MandatoryRangeConstraint.d.ts +36 -0
  73. package/types/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +61 -0
  74. package/types/models/attributes/input-constraints/NumberFormatConstraint.d.ts +52 -0
  75. package/types/models/attributes/input-constraints/NumberGroupingConstraint.d.ts +46 -0
  76. package/types/models/attributes/input-constraints/PasswordConfirmConstraint.d.ts +36 -0
  77. package/types/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.d.ts +23 -0
  78. package/types/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.d.ts +32 -0
  79. package/types/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.d.ts +32 -0
  80. package/types/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.ts +35 -0
  81. package/types/models/attributes/input-constraints/RangeConstraint.d.ts +97 -0
  82. package/types/models/attributes/input-constraints/RegexConstraint.d.ts +37 -0
  83. package/types/models/attributes/input-constraints/StringLengthConstraint.d.ts +46 -0
  84. package/types/models/attributes/input-constraints/XMLConstraint.d.ts +26 -0
  85. package/types/models/attributes/layouthint-rules/BaseLayoutHintRule.d.ts +46 -0
  86. package/types/models/attributes/layouthint-rules/DependentAttribute.d.ts +57 -0
  87. package/types/models/attributes/layouthint-rules/LayoutHintRuleCollection.d.ts +27 -0
  88. package/types/models/attributes/layouthint-rules/RemainingTotalUploadSize.d.ts +17 -0
  89. package/types/models/base/BaseCollection.d.ts +89 -0
  90. package/types/models/base/BaseModel.d.ts +58 -0
  91. package/types/models/base/ResourceCollection.d.ts +19 -0
  92. package/types/models/base/ResourceModel.d.ts +93 -0
  93. package/types/models/caseview/CaseViewModel.d.ts +45 -0
  94. package/types/models/concepts/BusinessScenarioModel.d.ts +20 -0
  95. package/types/models/concepts/ConceptDetailModel.d.ts +69 -0
  96. package/types/models/concepts/ConceptIndexModel.d.ts +36 -0
  97. package/types/models/concepts/ConceptLinkModel.d.ts +65 -0
  98. package/types/models/concepts/ConceptRelationCollection.d.ts +34 -0
  99. package/types/models/concepts/ConceptRelationModel.d.ts +43 -0
  100. package/types/models/concepts/ConceptTypeDetailModel.d.ts +39 -0
  101. package/types/models/concepts/SourceReferenceCollection.d.ts +13 -0
  102. package/types/models/concepts/SourceReferenceModel.d.ts +30 -0
  103. package/types/models/content/ContentIndexModel.d.ts +34 -0
  104. package/types/models/content/ContentLinkModel.d.ts +81 -0
  105. package/types/models/content/ContentModel.d.ts +74 -0
  106. package/types/models/content/ContentTOCModel.d.ts +37 -0
  107. package/types/models/content/ContentTypeModel.d.ts +26 -0
  108. package/types/models/content/SectionModel.d.ts +75 -0
  109. package/types/models/content/SubSectionModel.d.ts +64 -0
  110. package/types/models/contentconfiguration/ContentConfiguration.d.ts +28 -0
  111. package/types/models/contentconfiguration/ContentConfigurationElements.d.ts +47 -0
  112. package/types/models/contentconfiguration/ContentConfigurationEndResults.d.ts +16 -0
  113. package/types/models/contentconfiguration/ContentConfigurationQuestions.d.ts +22 -0
  114. package/types/models/contentconfiguration/ContentConfigurationResults.d.ts +39 -0
  115. package/types/models/detail/DetailModel.d.ts +72 -0
  116. package/types/models/error/ErrorCollection.d.ts +51 -0
  117. package/types/models/error/ErrorModel.d.ts +36 -0
  118. package/types/models/error/ErrorResponse.d.ts +148 -0
  119. package/types/models/filters/AssignmentFilterModel.d.ts +35 -0
  120. package/types/models/filters/BaseFilterModel.d.ts +85 -0
  121. package/types/models/filters/ConceptIndexFilterModel.d.ts +6 -0
  122. package/types/models/filters/FilterCollection.d.ts +48 -0
  123. package/types/models/filters/FilterModel.d.ts +5 -0
  124. package/types/models/filters/RangeFilterModel.d.ts +6 -0
  125. package/types/models/form/FormModel.d.ts +309 -0
  126. package/types/models/form/FormObjectModel.d.ts +168 -0
  127. package/types/models/grouping/GroupingModel.d.ts +85 -0
  128. package/types/models/href/Href.d.ts +17 -0
  129. package/types/models/href/ListHref.d.ts +64 -0
  130. package/types/models/index.d.ts +94 -0
  131. package/types/models/layouthint/LayoutHintCollection.d.ts +43 -0
  132. package/types/models/links/LinkCollection.d.ts +62 -0
  133. package/types/models/links/LinkModel.d.ts +92 -0
  134. package/types/models/links/normalizeLinkJSON.d.ts +9 -0
  135. package/types/models/list/ListDetailModel.d.ts +69 -0
  136. package/types/models/list/ListHeaderModel.d.ts +64 -0
  137. package/types/models/list/ListItemCollection.d.ts +21 -0
  138. package/types/models/list/ListItemModel.d.ts +34 -0
  139. package/types/models/list/ListModel.d.ts +135 -0
  140. package/types/models/lookup/LookupOptionCollection.d.ts +11 -0
  141. package/types/models/lookup/LookupOptionsModel.d.ts +19 -0
  142. package/types/models/modelcatalog/ModelCatalogModel.d.ts +18 -0
  143. package/types/models/paging/PagesizeModel.d.ts +25 -0
  144. package/types/models/paging/PagingModel.d.ts +49 -0
  145. package/types/models/panels/GroupingPanelModel.d.ts +39 -0
  146. package/types/models/parameter/Parameter.d.ts +40 -0
  147. package/types/models/process/ProcessStatusSettingsModel.d.ts +38 -0
  148. package/types/models/resolveModel.d.ts +7 -0
  149. package/types/models/search/CaseSearchModel.d.ts +14 -0
  150. package/types/models/sorting/SortOptionModel.d.ts +48 -0
  151. package/types/models/sorting/SortingModel.d.ts +42 -0
  152. package/types/models/tab/TabModel.d.ts +44 -0
  153. package/types/models/taskgroup/TaskGroupCollection.d.ts +12 -0
  154. package/types/models/taskgroup/TaskGroupModel.d.ts +15 -0
  155. package/types/models/types.d.ts +147 -0
  156. package/types/models/user/UserModel.d.ts +14 -0
  157. package/types/models/user/UserProfileModel.d.ts +12 -0
  158. package/types/models/user/UserServicesModel.d.ts +28 -0
  159. package/types/modularui/Authenticate.d.ts +42 -0
  160. package/types/modularui/ModularUIError.d.ts +10 -0
  161. package/types/modularui/ModularUIRequest.d.ts +170 -0
  162. package/types/modularui/ModularUIResponse.d.ts +56 -0
  163. package/types/modularui/index.d.ts +3 -0
  164. package/types/redux/_i18n/types.d.ts +13 -0
  165. package/types/redux/_modularui/types.d.ts +49 -0
  166. package/types/redux/_router/types.d.ts +35 -0
  167. package/types/redux/selectors/i18n.d.ts +4 -0
  168. package/types/redux/types.d.ts +105 -0
  169. package/types/utils/browser/Cache.d.ts +45 -0
  170. package/types/utils/browser/Cookies.d.ts +15 -0
  171. package/types/utils/datetime/DateTimeUtil.d.ts +164 -0
  172. package/types/utils/fetch/serverFetch.d.ts +5 -0
  173. package/types/utils/fetch/types.d.ts +38 -0
  174. package/types/utils/fetch/universalFetch.d.ts +7 -0
  175. package/types/utils/fetch/xhr.d.ts +5 -0
  176. package/types/utils/helpers/checkResource.d.ts +3 -0
  177. package/types/utils/helpers/createHash.d.ts +8 -0
  178. package/types/utils/helpers/createUUID.d.ts +4 -0
  179. package/types/utils/helpers/objects.d.ts +3 -0
  180. package/types/utils/helpers/sanitizeHtml.d.ts +9 -0
  181. package/types/utils/helpers/text.d.ts +7 -0
  182. package/types/utils/index.d.ts +16 -0
  183. package/types/utils/number/DecimalFormat.d.ts +90 -0
  184. package/types/utils/number/formatValue.d.ts +4 -0
  185. package/types/utils/number/parseNumbers.d.ts +9 -0
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Group information model
3
+ * Put GroupModel here because of possible circular dependency with GroupingModel below
4
+ */
5
+ export class GroupModel {
6
+ /**
7
+ */
8
+ constructor(group: Object, context: Object, contributions: Array<Object>);
9
+ _group: Object;
10
+ _context: Object;
11
+ _attributeCollection: AttributeCollection;
12
+ _grouping: GroupingModel | null;
13
+ /**
14
+ */
15
+ get type(): string;
16
+ /**
17
+ */
18
+ get id(): string;
19
+ /**
20
+ */
21
+ get label(): string;
22
+ /**
23
+ */
24
+ get attributeCollection(): AttributeCollection;
25
+ /**
26
+ */
27
+ get grouping(): GroupingModel;
28
+ /**
29
+ * Retrieve array of reference id's
30
+ */
31
+ get reference(): number[];
32
+ /**
33
+ */
34
+ hasAttributeByKey(key: string): boolean;
35
+ /**
36
+ */
37
+ getAttributeByKey(key: string): AttributeType | null;
38
+ }
39
+ /**
40
+ * Grouping model to group lists
41
+ */
42
+ export default class GroupingModel {
43
+ /**
44
+ */
45
+ constructor(data: Object, contexts: Array<Context>);
46
+ _prefix: string | null;
47
+ _groups: Array<GroupModel>;
48
+ /**
49
+ */
50
+ createGroup(data: Object, contributions: Array<Context>): Array<Object>;
51
+ /**
52
+ * add grouped prefix to the dynamicschema
53
+ */
54
+ getDynamicSchema(group: Object, dynamicschema: Object): Object;
55
+ /**
56
+ * Retrieve groups of grouping
57
+ */
58
+ get groups(): GroupModel[];
59
+ /**
60
+ * Inidicates if Grouping has one or more groups
61
+ */
62
+ hasGroups(): boolean;
63
+ /**
64
+ * Get context of grouping
65
+ */
66
+ getContextFromContributionsByPrefix(contexts: Array<Object>, prefix: string | null): Object;
67
+ /**
68
+ */
69
+ hasAttributeByKey(key: string): boolean;
70
+ /**
71
+ */
72
+ getAttributeByKey(key: string): AttributeType | null;
73
+ /**
74
+ */
75
+ getGroupByAttributeKey(key: string): GroupModel | null;
76
+ }
77
+ import AttributeCollection from "../attributes/AttributeCollection";
78
+ import { AttributeType } from "../types";
79
+ type Context = {
80
+ prefix: string;
81
+ label: string;
82
+ metadata: Object;
83
+ attributes: Object[];
84
+ };
85
+ export {};
@@ -0,0 +1,17 @@
1
+ type HrefInput = any;
2
+ export default Href;
3
+ /**
4
+ * Defines a Href with the parameters
5
+ */
6
+ declare class Href {
7
+ _path: string;
8
+ _hash: string;
9
+ _parameters: Array<Parameter>;
10
+ _resourcetype: string;
11
+ _method: $Keys<{
12
+ POST: string;
13
+ GET: string;
14
+ }>;
15
+ _state: {} | null;
16
+ }
17
+ import Parameter from "../parameter/Parameter";
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Class representing the href of a list. It adds paging, sorting and filter parameters where necessary
3
+ *
4
+ * @augments Href
5
+ */
6
+ export default class ListHref extends Href {
7
+ /**
8
+ * Create a ListHref
9
+ */
10
+ constructor(href?: HrefInput, list?: ListModel, isPrefixed?: boolean);
11
+ _isPrefixed: boolean;
12
+ _prefix: string | null;
13
+ _pagingName: string;
14
+ _pagesizeName: string;
15
+ _sortingName: string;
16
+ /**
17
+ * Retrieve parameter names from Href
18
+ */
19
+ setParameterNamesFromHref(href: ListHref): void;
20
+ /**
21
+ * Retrieve parameter names and settings from List model
22
+ */
23
+ setParameterNamesFromListModel(list: ListModel): void;
24
+ /**
25
+ * Setting the current page
26
+ */
27
+ set page(arg: Parameter);
28
+ /**
29
+ */
30
+ get page(): Parameter;
31
+ /**
32
+ * Setting the page size
33
+ */
34
+ set pagesize(arg: number);
35
+ /**
36
+ * Setting the sort value
37
+ */
38
+ set sort(arg: string);
39
+ /**
40
+ * Add filter parameters to the parameter collection
41
+ */
42
+ set filterCollection(arg: FilterCollection);
43
+ /**
44
+ * Getting prefix
45
+ */
46
+ get prefix(): string;
47
+ /**
48
+ * Getting paging name
49
+ */
50
+ get pagingName(): string;
51
+ /**
52
+ * Getting pagesize name
53
+ */
54
+ get pagesizeName(): string;
55
+ /**
56
+ * Getting sorting name
57
+ */
58
+ get sortingName(): string;
59
+ }
60
+ import Href from "./Href";
61
+ import ListModel from "../list/ListModel";
62
+ import Parameter from "../parameter/Parameter";
63
+ import FilterCollection from "../filters/FilterCollection";
64
+ import { HrefInput } from "./Href";
@@ -0,0 +1,94 @@
1
+ export { default as resolveModel } from "./resolveModel";
2
+ export { default as BaseCollection } from "./base/BaseCollection";
3
+ export { default as ActionCollection } from "./actions/ActionCollection";
4
+ export { default as ActionModel } from "./actions/ActionModel";
5
+ export { default as AttributeCollection } from "./attributes/AttributeCollection";
6
+ export { default as AttributeSetModel } from "./attributes/AttributeSetModel";
7
+ export { default as AttributeModel } from "./attributes/AttributeModel";
8
+ export { default as ChoiceAttributeOptionCollection } from "./attributes/ChoiceAttributeOptionCollection";
9
+ export { default as ChoiceAttributeOptionModel } from "./attributes/ChoiceAttributeOptionModel";
10
+ export { default as CompositeAttributeChildCollection } from "./attributes/CompositeAttributeChildCollection";
11
+ export { default as AttributeContent } from "./attributes/AttributeContent";
12
+ export { default as BaseLayoutHintRule } from "./attributes/layouthint-rules/BaseLayoutHintRule";
13
+ export { default as DependentAttribute } from "./attributes/layouthint-rules/DependentAttribute";
14
+ export { default as RemainingTotalUploadSize } from "./attributes/layouthint-rules/RemainingTotalUploadSize";
15
+ export { default as ConceptLinkModel } from "./concepts/ConceptLinkModel";
16
+ export { default as ConceptRelationCollection } from "./concepts/ConceptRelationCollection";
17
+ export { default as ConceptRelationModel } from "./concepts/ConceptRelationModel";
18
+ export { default as SourceReferenceCollection } from "./concepts/SourceReferenceCollection";
19
+ export { default as SourceReferenceModel } from "./concepts/SourceReferenceModel";
20
+ export { default as ConstraintCollection } from "./attributes/input-constraints/ConstraintCollection";
21
+ export { default as ConstraintModel } from "./attributes/input-constraints/ConstraintModel";
22
+ export { default as ContentLinkModel } from "./content/ContentLinkModel";
23
+ export { default as SectionModel } from "./content/SectionModel";
24
+ export { default as SubSectionModel } from "./content/SubSectionModel";
25
+ export { default as ContentConfiguration } from "./contentconfiguration/ContentConfiguration";
26
+ export { default as ContentConfigurationElements } from "./contentconfiguration/ContentConfigurationElements";
27
+ export { default as ContentConfigurationEndResults } from "./contentconfiguration/ContentConfigurationEndResults";
28
+ export { default as ContentConfigurationQuestions } from "./contentconfiguration/ContentConfigurationQuestions";
29
+ export { default as ContentConfigurationResults } from "./contentconfiguration/ContentConfigurationResults";
30
+ export { default as ErrorCollection } from "./error/ErrorCollection";
31
+ export { default as ErrorModel } from "./error/ErrorModel";
32
+ export { default as ErrorResponse } from "./error/ErrorResponse";
33
+ export { default as FilterCollection } from "./filters/FilterCollection";
34
+ export { default as FormObjectModel } from "./form/FormObjectModel";
35
+ export { default as Href } from "./href/Href";
36
+ export { default as ListHref } from "./href/ListHref";
37
+ export { default as LinkCollection } from "./links/LinkCollection";
38
+ export { default as LinkModel } from "./links/LinkModel";
39
+ export { default as ListHeaderModel } from "./list/ListHeaderModel";
40
+ export { default as ListItemCollection } from "./list/ListItemCollection";
41
+ export { default as ListItemModel } from "./list/ListItemModel";
42
+ export { default as LookupOptionsModel } from "./lookup/LookupOptionsModel";
43
+ export { default as LookupOptionCollection } from "./lookup/LookupOptionCollection";
44
+ export { default as ProcessStatusSettingsModel } from "./process/ProcessStatusSettingsModel";
45
+ export { default as PagesizeModel } from "./paging/PagesizeModel";
46
+ export { default as PagingModel } from "./paging/PagingModel";
47
+ export { default as Parameter } from "./parameter/Parameter";
48
+ export { default as SortingModel } from "./sorting/SortingModel";
49
+ export { default as SortOptionModel } from "./sorting/SortOptionModel";
50
+ export { default as TaskGroupCollection } from "./taskgroup/TaskGroupCollection";
51
+ export * from "./types";
52
+ import { default as ApplicationModel } from "./application/ApplicationModel";
53
+ import { default as CaseSearchModel } from "./search/CaseSearchModel";
54
+ import { default as CaseViewModel } from "./caseview/CaseViewModel";
55
+ import { default as ListDetailModel } from "./list/ListDetailModel";
56
+ import { default as DetailModel } from "./detail/DetailModel";
57
+ import { default as FormModel } from "./form/FormModel";
58
+ import { default as GroupingPanelModel } from "./panels/GroupingPanelModel";
59
+ import { default as ListModel } from "./list/ListModel";
60
+ import { default as TabModel } from "./tab/TabModel";
61
+ import { default as TaskGroupModel } from "./taskgroup/TaskGroupModel";
62
+ import { default as UserModel } from "./user/UserModel";
63
+ import { default as UserProfileModel } from "./user/UserProfileModel";
64
+ import { default as UserServicesModel } from "./user/UserServicesModel";
65
+ import { default as ModelCatalogModel } from "./modelcatalog/ModelCatalogModel";
66
+ import { default as ConceptIndexModel } from "./concepts/ConceptIndexModel";
67
+ import { default as ConceptDetailModel } from "./concepts/ConceptDetailModel";
68
+ import { default as BusinessScenarioModel } from "./concepts/BusinessScenarioModel";
69
+ import { default as ConceptTypeDetailModel } from "./concepts/ConceptTypeDetailModel";
70
+ import { default as ContentIndexModel } from "./content/ContentIndexModel";
71
+ import { default as ContentTOCModel } from "./content/ContentTOCModel";
72
+ import { default as ContentModel } from "./content/ContentModel";
73
+ import { default as ContentTypeModel } from "./content/ContentTypeModel";
74
+ import { default as BooleanAttributeModel } from "./attributes/BooleanAttributeModel";
75
+ import { default as CaptchaAttributeModel } from "./attributes/CaptchaAttributeModel";
76
+ import { default as ChoiceAttributeModel } from "./attributes/ChoiceAttributeModel";
77
+ import { default as DatetimeAttributeModel } from "./attributes/DatetimeAttributeModel";
78
+ import { default as HelptextAttributeModel } from "./attributes/HelptextAttributeModel";
79
+ import { default as LabelAttributeModel } from "./attributes/LabelAttributeModel";
80
+ import { default as MemoAttributeModel } from "./attributes/MemoAttributeModel";
81
+ import { default as MoneyAttributeModel } from "./attributes/MoneyAttributeModel";
82
+ import { default as NumberAttributeModel } from "./attributes/NumberAttributeModel";
83
+ import { default as PasswordAttributeModel } from "./attributes/PasswordAttributeModel";
84
+ import { default as CompositeAttributeModel } from "./attributes/CompositeAttributeModel";
85
+ import { default as StringAttributeModel } from "./attributes/StringAttributeModel";
86
+ import { default as UploadAttributeModel } from "./attributes/UploadAttributeModel";
87
+ import { default as XMLAttributeModel } from "./attributes/XMLAttributeModel";
88
+ import { default as AssignmentFilterModel } from "./filters/AssignmentFilterModel";
89
+ import { default as FilterModel } from "./filters/FilterModel";
90
+ import { default as RangeFilterModel } from "./filters/RangeFilterModel";
91
+ import { default as ConceptIndexFilterModel } from "./filters/ConceptIndexFilterModel";
92
+ export { ApplicationModel, CaseSearchModel, CaseViewModel, ListDetailModel, DetailModel, FormModel, GroupingPanelModel, ListModel, TabModel, TaskGroupModel, UserModel, UserProfileModel, UserServicesModel, ModelCatalogModel, ConceptIndexModel, ConceptDetailModel, BusinessScenarioModel, ConceptTypeDetailModel, ContentIndexModel, ContentTOCModel, ContentModel, ContentTypeModel, BooleanAttributeModel, CaptchaAttributeModel, ChoiceAttributeModel, DatetimeAttributeModel, HelptextAttributeModel, LabelAttributeModel, MemoAttributeModel, MoneyAttributeModel, NumberAttributeModel, PasswordAttributeModel, CompositeAttributeModel, StringAttributeModel, UploadAttributeModel, XMLAttributeModel, AssignmentFilterModel, FilterModel, RangeFilterModel, ConceptIndexFilterModel };
93
+ export { default as LayoutHintRuleCollection, addLayoutHintRule, updateLayoutHintRules } from "./attributes/layouthint-rules/LayoutHintRuleCollection";
94
+ export { default as GroupingModel, GroupModel } from "./grouping/GroupingModel";
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Collection of layouthint
3
+ */
4
+ export default class LayoutHintCollection extends BaseCollection<string> {
5
+ /**
6
+ * Constructs the layouthint collection
7
+ */
8
+ constructor(layouthint?: Array<string>);
9
+ /**
10
+ * Retrieve layout hints
11
+ */
12
+ get layouthint(): string[];
13
+ /**
14
+ * Checks if a specific layouthint exists in the component configuration
15
+ * This method matches all exact matches and hints starting with. For example
16
+ * when calling layouth.has("hide"), this will return true for both "hide" and "hide-when-empty".
17
+ * If only exact matches are required, use the method {@link hasExact}.
18
+ */
19
+ has(...hints: Array<string>): boolean;
20
+ /**
21
+ * Checks if a specific layouthint exists in the component configuration,
22
+ * only checks on exact matches.
23
+ * If layouthints that start with the given hint should also match, use {@link has}.
24
+ * @param hints
25
+ * @returns {boolean}
26
+ */
27
+ hasExact(...hints: Array<string>): boolean;
28
+ /**
29
+ * Retrieve the first layouthint starting with hint
30
+ */
31
+ getByLayoutHint(hint: Function | string): null | string;
32
+ /**
33
+ * Get the value of a specific hint
34
+ * Format: hint=value
35
+ */
36
+ getLayoutHintValue(hint: string): string | null;
37
+ /**
38
+ * Get an array of multiple values from a specific hint
39
+ * Format: hint=value1;value2;value3
40
+ */
41
+ getLayoutHintValues(hint: string): Array<string> | null;
42
+ }
43
+ import BaseCollection from "../base/BaseCollection";
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Collection of links
3
+ *
4
+ * @see {LinkModel}
5
+ */
6
+ export default class LinkCollection extends BaseCollection<LinkModel> {
7
+ /**
8
+ * Constructs the link collection
9
+ */
10
+ constructor(linkData?: Object, linkContributions?: Object);
11
+ /**
12
+ * Set Link collection
13
+ */
14
+ set links(arg: LinkModel[]);
15
+ /**
16
+ * Getting links
17
+ */
18
+ get links(): LinkModel[];
19
+ /**
20
+ * Get a link by it's key, handy for getting the self link
21
+ */
22
+ getLinkByKey(key: string): LinkModel | null;
23
+ /**
24
+ * Get a link by it's Href
25
+ */
26
+ getLinkByHref(href: Href | string): LinkModel | null;
27
+ /**
28
+ * Getting the links by group key. For instance getting all 'tab' links of the web application.
29
+ */
30
+ getLinksByGroup(...args: Array<string>): LinkCollection;
31
+ /**
32
+ * Retrieve links by resource type
33
+ */
34
+ getLinkByResourceType(resourceType: string): LinkCollection;
35
+ /**
36
+ * Retrieve links including a layout hint
37
+ */
38
+ getLinksByLayoutHint(hint: string): LinkCollection;
39
+ /**
40
+ * Indicates if a link with layout hint exists
41
+ */
42
+ hasLinksByLayoutHint(hint: string): boolean;
43
+ /**
44
+ * Get all href of links in collection in an array of Href's
45
+ */
46
+ toHrefArray(): Array<Href>;
47
+ /**
48
+ * Check if link exists in collection
49
+ */
50
+ hasLink(link: LinkModel): boolean;
51
+ /**
52
+ * Updates the collection with a new link, when the link to update does not exist, it is added to the collection
53
+ */
54
+ update(newLink: LinkModel): LinkCollection;
55
+ /**
56
+ * Use as path regex for react router routes
57
+ */
58
+ get routePath(): string;
59
+ }
60
+ import LinkModel from "./LinkModel";
61
+ import BaseCollection from "../base/BaseCollection";
62
+ import Href from "../href/Href";
@@ -0,0 +1,92 @@
1
+ export default LinkModel;
2
+ /**
3
+ * Defines a Link. For instance below example of a link to the tab 'books'
4
+ * <br/>
5
+ * "Books": {
6
+ * "href": "/books",
7
+ * "profile": "/profiles/tab"
8
+ * }
9
+ */
10
+ declare class LinkModel extends BaseModel {
11
+ /**
12
+ * Create a simple Link Model
13
+ */
14
+ static create(name: string, href: string | Href, label: string): LinkModel;
15
+ _href: Href;
16
+ _isCacheable: boolean;
17
+ _icon: string;
18
+ _targetModel: Class<ModularUIModel>;
19
+ /**
20
+ */
21
+ createHref(): void;
22
+ /**
23
+ * Set the href of the Link
24
+ */
25
+ set href(arg: Href);
26
+ /**
27
+ * Retrieve the href of the link
28
+ */
29
+ get href(): Href;
30
+ /**
31
+ * Handle initial filter hints
32
+ * @param href
33
+ */
34
+ handleInitialFilters(href: Href): void;
35
+ /**
36
+ * Getting link group
37
+ */
38
+ get group(): string;
39
+ /**
40
+ * Getting the key/name of this link
41
+ */
42
+ get key(): string;
43
+ /**
44
+ * Getting the label of the link
45
+ */
46
+ get label(): string;
47
+ /**
48
+ * Getting the type of the link
49
+ */
50
+ get resourcetype(): string;
51
+ /**
52
+ */
53
+ get links(): LinkCollection;
54
+ /**
55
+ * Check if the href startswith the URI of the given href
56
+ */
57
+ isActive(link: LinkModel | null): boolean;
58
+ /**
59
+ * Setter for icon of LinkModel
60
+ */
61
+ set icon(arg: string);
62
+ /**
63
+ * Retrieve icon of LinkModel
64
+ */
65
+ get icon(): string;
66
+ /**
67
+ */
68
+ set targetModel(arg: Class<ModularUIModel>);
69
+ /**
70
+ */
71
+ get targetModel(): Class<ModularUIModel>;
72
+ /**
73
+ */
74
+ set isCacheable(arg: boolean);
75
+ /**
76
+ */
77
+ get isCacheable(): boolean;
78
+ /**
79
+ */
80
+ get filterName(): string;
81
+ /**
82
+ */
83
+ get hasProcessStatusSettings(): boolean;
84
+ /**
85
+ */
86
+ get processStatus(): ProcessStatusSettingsModel;
87
+ }
88
+ import BaseModel from "../base/BaseModel";
89
+ import Href from "../href/Href";
90
+ import { ModularUIModel } from "../types";
91
+ import LinkCollection from "../links/LinkCollection";
92
+ import ProcessStatusSettingsModel from "../process/ProcessStatusSettingsModel";
@@ -0,0 +1,9 @@
1
+ export default normalizeLinkJSON;
2
+ /**
3
+ * Normalize various link formats from services into a concistent format
4
+ * @private
5
+ */
6
+ declare function normalizeLinkJSON(data: Object, contributions: Object): {
7
+ data: any;
8
+ contributions: any;
9
+ }[];
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Detail of a list item
3
+ */
4
+ export default class ListDetailModel extends DetailModel {
5
+ _contentConfiguration: ContentConfiguration;
6
+ _listitem: ListItemModel;
7
+ _givenAnswers: CompositeAttributeModel | null;
8
+ _results: CompositeAttributeModel | null;
9
+ _eventdata: Array<AttributeSetModel>;
10
+ /**
11
+ * Set listitem of this listdetail and transfer listitem actions to listdetail actions
12
+ */
13
+ set listitem(arg: ListItemModel);
14
+ /**
15
+ * Get listitem
16
+ */
17
+ get listitem(): ListItemModel;
18
+ /**
19
+ * Getting panel links
20
+ */
21
+ get panelLinks(): LinkCollection;
22
+ /**
23
+ */
24
+ set contentConfiguration(arg: ContentConfiguration);
25
+ /**
26
+ * Getting the contentConfiguration
27
+ */
28
+ get contentConfiguration(): ContentConfiguration;
29
+ /**
30
+ * Getting the introduction text configured on the case view
31
+ */
32
+ get introtext(): string;
33
+ /**
34
+ */
35
+ setResultSection(): void;
36
+ /**
37
+ */
38
+ setResults(): void;
39
+ /**
40
+ */
41
+ setGivenAnswers(): void;
42
+ /**
43
+ */
44
+ get givenAnswers(): CompositeAttributeModel;
45
+ /**
46
+ */
47
+ get hasResults(): boolean;
48
+ /**
49
+ */
50
+ get results(): CompositeAttributeModel;
51
+ /**
52
+ */
53
+ get hasEventData(): boolean;
54
+ /**
55
+ */
56
+ addAttributes(key: string, eventData: Object, eventContributions: Object): void;
57
+ /**
58
+ */
59
+ setEventData(): void;
60
+ /**
61
+ */
62
+ get eventdata(): AttributeSetModel[];
63
+ }
64
+ import DetailModel from "../detail/DetailModel";
65
+ import ContentConfiguration from "../contentconfiguration/ContentConfiguration";
66
+ import ListItemModel from "../list/ListItemModel";
67
+ import CompositeAttributeModel from "../attributes/CompositeAttributeModel";
68
+ import AttributeSetModel from "../attributes/AttributeSetModel";
69
+ import LinkCollection from "../links/LinkCollection";
@@ -0,0 +1,64 @@
1
+ /**
2
+ * One header item of the list
3
+ */
4
+ export default class ListHeaderModel {
5
+ /**
6
+ * constructor
7
+ */
8
+ constructor(header: Object, sorting?: SortingModel);
9
+ _key: string;
10
+ _header: {
11
+ label: string;
12
+ type: string;
13
+ layouthint: Array<string>;
14
+ };
15
+ _sortOption: SortOptionModel | null;
16
+ _readonlyWidth: $Keys<{
17
+ EXTRA_SMALL: string;
18
+ SMALL: string;
19
+ MEDIUM: string;
20
+ LARGE: string;
21
+ EXTRA_LARGE: string;
22
+ }>;
23
+ /**
24
+ * Get key
25
+ */
26
+ get key(): string;
27
+ /**
28
+ * Getting the label of this header item
29
+ */
30
+ get label(): string;
31
+ /**
32
+ * Getting the type of this header item. For instance string, date, etc.
33
+ */
34
+ get type(): string;
35
+ /**
36
+ * Getting the layout hints of this header item
37
+ */
38
+ get layouthint(): LayoutHintCollection;
39
+ /**
40
+ * Get alignment of header label
41
+ */
42
+ get alignment(): string;
43
+ /**
44
+ */
45
+ get readonlyWidth(): $Keys<{
46
+ EXTRA_SMALL: string;
47
+ SMALL: string;
48
+ MEDIUM: string;
49
+ LARGE: string;
50
+ EXTRA_LARGE: string;
51
+ }>;
52
+ /**
53
+ */
54
+ equals(listHeader: ListHeaderModel): boolean;
55
+ /**
56
+ */
57
+ get sortOption(): SortOptionModel;
58
+ /**
59
+ */
60
+ hasSorting(): boolean;
61
+ }
62
+ import SortOptionModel from "../sorting/SortOptionModel";
63
+ import LayoutHintCollection from "../layouthint/LayoutHintCollection";
64
+ import SortingModel from "../sorting/SortingModel";
@@ -0,0 +1,21 @@
1
+ export default ListItemCollection;
2
+ /**
3
+ * Collection of list items
4
+ */
5
+ declare class ListItemCollection extends BaseCollection<ListItemModel> {
6
+ /**
7
+ * Create a list item collection from the given list
8
+ */
9
+ static createFromList(list: ListModel): ListItemCollection;
10
+ constructor(initCollection?: ListItemModel[]);
11
+ /**
12
+ */
13
+ get additionalDetailRoutePath(): string;
14
+ /**
15
+ */
16
+ get actionCollection(): ActionCollection;
17
+ }
18
+ import ListItemModel from "../list/ListItemModel";
19
+ import BaseCollection from "../base/BaseCollection";
20
+ import ActionCollection from "../actions/ActionCollection";
21
+ import ListModel from "../list/ListModel";
@@ -0,0 +1,34 @@
1
+ /**
2
+ * List Item
3
+ */
4
+ export default class ListItemModel extends DetailModel {
5
+ /**
6
+ */
7
+ static createFromListResult(key: string, data: Object, contributions: Object): ListItemModel;
8
+ /**
9
+ */
10
+ static createFromChoiceAttributeOption(option: ChoiceAttributeOptionModel): ListItemModel;
11
+ /**
12
+ */
13
+ get caseviewHref(): Href;
14
+ /**
15
+ * Getting panel links
16
+ */
17
+ get panelLinks(): LinkCollection;
18
+ /**
19
+ * Check if list item has panel links
20
+ */
21
+ hasPanelLinks(): boolean;
22
+ /**
23
+ * Retrieve all actions by type
24
+ */
25
+ getActionsByType(actionType: string): ActionCollection;
26
+ /**
27
+ */
28
+ get additionalDetailRoutePath(): string;
29
+ }
30
+ import DetailModel from "../detail/DetailModel";
31
+ import Href from "../href/Href";
32
+ import LinkCollection from "../links/LinkCollection";
33
+ import ActionCollection from "../actions/ActionCollection";
34
+ import ChoiceAttributeOptionModel from "../attributes/ChoiceAttributeOptionModel";