@beinformed/ui 1.62.8 → 1.63.0
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/CHANGELOG.md +19 -0
- package/esm/models/attributes/__tests__/AttributeContent.spec.js.flow +1 -1
- package/esm/models/content/SectionModel.js +22 -11
- package/esm/models/content/SectionModel.js.flow +32 -19
- package/esm/models/content/SectionModel.js.map +1 -1
- package/esm/models/content/__tests__/ContentModel.spec.js.flow +35 -0
- package/esm/models/types.js.flow +2 -1
- package/esm/models/types.js.map +1 -1
- package/esm/react-server/__tests__/requestInformation.spec.js.flow +265 -0
- package/esm/react-server/requestInformation.js +6 -3
- package/esm/react-server/requestInformation.js.flow +8 -3
- package/esm/react-server/requestInformation.js.map +1 -1
- package/lib/models/content/SectionModel.js +22 -11
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/types.js.map +1 -1
- package/lib/react-server/requestInformation.js +6 -3
- package/lib/react-server/requestInformation.js.map +1 -1
- package/package.json +3 -3
- package/src/models/attributes/__tests__/AttributeContent.spec.js +1 -1
- package/src/models/content/SectionModel.js +32 -19
- package/src/models/content/__tests__/ContentModel.spec.js +35 -0
- package/src/models/content/__tests__/content-with-sections.json +105 -0
- package/src/models/types.js +2 -1
- package/src/react-server/__tests__/requestInformation.spec.js +265 -0
- package/src/react-server/requestInformation.js +8 -3
- package/esm/builder/index.d.ts +0 -1
- package/esm/builder/mergeLayoutHintConfigurations.d.ts +0 -1
- package/esm/constants/Constants.d.ts +0 -158
- package/esm/constants/LayoutHintConfig.d.ts +0 -267
- package/esm/constants/LayoutHints.d.ts +0 -83
- package/esm/constants/Settings.d.ts +0 -33
- package/esm/constants/index.d.ts +0 -3
- package/esm/exceptions/ConfigurationException.d.ts +0 -7
- package/esm/exceptions/FetchException.d.ts +0 -31
- package/esm/exceptions/IllegalArgumentException.d.ts +0 -7
- package/esm/exceptions/IllegalReturnException.d.ts +0 -6
- package/esm/exceptions/IllegalStateException.d.ts +0 -7
- package/esm/exceptions/JsonParseException.d.ts +0 -7
- package/esm/exceptions/MissingPropertyException.d.ts +0 -7
- package/esm/exceptions/NetworkException.d.ts +0 -9
- package/esm/exceptions/NotAllowedUriException.d.ts +0 -7
- package/esm/exceptions/NotFoundException.d.ts +0 -10
- package/esm/exceptions/ServerRequestException.d.ts +0 -7
- package/esm/exceptions/ThemePropertyException.d.ts +0 -7
- package/esm/exceptions/TimeoutException.d.ts +0 -7
- package/esm/exceptions/UnauthorizedException.d.ts +0 -11
- package/esm/exceptions/UnsupportedOperationException.d.ts +0 -7
- package/esm/exceptions/index.d.ts +0 -15
- package/esm/hooks/index.d.ts +0 -16
- package/esm/hooks/useAllFormsOnModel.d.ts +0 -7
- package/esm/hooks/useAuthentication.d.ts +0 -16
- package/esm/hooks/useContent.d.ts +0 -3
- package/esm/hooks/useDeepCompareEffect.d.ts +0 -6
- package/esm/hooks/useForm.d.ts +0 -21
- package/esm/hooks/useI18n.d.ts +0 -13
- package/esm/hooks/useModal.d.ts +0 -12
- package/esm/hooks/useModelCatalog.d.ts +0 -34
- package/esm/hooks/useModels.d.ts +0 -10
- package/esm/hooks/useModularUI.d.ts +0 -3
- package/esm/hooks/useModularUIBasic.d.ts +0 -9
- package/esm/hooks/useModularUIModel.d.ts +0 -27
- package/esm/hooks/useModularUIRequest.d.ts +0 -4
- package/esm/hooks/useNotification.d.ts +0 -8
- package/esm/hooks/usePreference.d.ts +0 -2
- package/esm/hooks/useProgressIndicator.d.ts +0 -9
- package/esm/hooks/useRouter.d.ts +0 -23
- package/esm/i18n/Locale.d.ts +0 -53
- package/esm/i18n/Locales.d.ts +0 -59
- package/esm/i18n/Message.d.ts +0 -6
- package/esm/i18n/index.d.ts +0 -5
- package/esm/i18n/languages.d.ts +0 -215
- package/esm/i18n/translations/beinformed_error_messages_en.nl.d.ts +0 -97
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.d.ts +0 -97
- package/esm/i18n/types.d.ts +0 -11
- package/esm/i18n/withMessage.d.ts +0 -3
- package/esm/index.d.ts +0 -6
- package/esm/models/actions/ActionCollection.d.ts +0 -30
- package/esm/models/actions/ActionModel.d.ts +0 -82
- package/esm/models/application/ApplicationModel.d.ts +0 -48
- package/esm/models/attributes/AttributeCollection.d.ts +0 -102
- package/esm/models/attributes/AttributeContent.d.ts +0 -64
- package/esm/models/attributes/AttributeDataHelper.d.ts +0 -67
- package/esm/models/attributes/AttributeModel.d.ts +0 -398
- package/esm/models/attributes/AttributeSetModel.d.ts +0 -36
- package/esm/models/attributes/BooleanAttributeModel.d.ts +0 -69
- package/esm/models/attributes/CaptchaAttributeModel.d.ts +0 -19
- package/esm/models/attributes/ChoiceAttributeModel.d.ts +0 -85
- package/esm/models/attributes/ChoiceAttributeOptionCollection.d.ts +0 -87
- package/esm/models/attributes/ChoiceAttributeOptionModel.d.ts +0 -151
- package/esm/models/attributes/CompositeAttributeChildCollection.d.ts +0 -57
- package/esm/models/attributes/CompositeAttributeModel.d.ts +0 -42
- package/esm/models/attributes/DatetimeAttributeModel.d.ts +0 -85
- package/esm/models/attributes/HelptextAttributeModel.d.ts +0 -16
- package/esm/models/attributes/LabelAttributeModel.d.ts +0 -12
- package/esm/models/attributes/MemoAttributeModel.d.ts +0 -14
- package/esm/models/attributes/MoneyAttributeModel.d.ts +0 -14
- package/esm/models/attributes/NumberAttributeModel.d.ts +0 -49
- package/esm/models/attributes/PasswordAttributeModel.d.ts +0 -62
- package/esm/models/attributes/StringAttributeModel.d.ts +0 -65
- package/esm/models/attributes/UploadAttributeModel.d.ts +0 -60
- package/esm/models/attributes/XMLAttributeModel.d.ts +0 -10
- package/esm/models/attributes/_createAttribute.d.ts +0 -7
- package/esm/models/attributes/input-constraints/BSNConstraint.d.ts +0 -26
- package/esm/models/attributes/input-constraints/ConstraintCollection.d.ts +0 -24
- package/esm/models/attributes/input-constraints/ConstraintModel.d.ts +0 -34
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +0 -65
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.d.ts +0 -36
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.d.ts +0 -36
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +0 -50
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.d.ts +0 -33
- package/esm/models/attributes/input-constraints/FileSizeConstraint.d.ts +0 -42
- package/esm/models/attributes/input-constraints/IBANConstraint.d.ts +0 -23
- package/esm/models/attributes/input-constraints/MandatoryConstraint.d.ts +0 -23
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.d.ts +0 -36
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +0 -61
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.d.ts +0 -52
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.d.ts +0 -46
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.d.ts +0 -36
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.d.ts +0 -23
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.d.ts +0 -32
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.d.ts +0 -32
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.ts +0 -35
- package/esm/models/attributes/input-constraints/RangeConstraint.d.ts +0 -51
- package/esm/models/attributes/input-constraints/RegexConstraint.d.ts +0 -37
- package/esm/models/attributes/input-constraints/StringLengthConstraint.d.ts +0 -46
- package/esm/models/attributes/input-constraints/XMLConstraint.d.ts +0 -26
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.d.ts +0 -45
- package/esm/models/attributes/layouthint-rules/DependentAttribute.d.ts +0 -57
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.d.ts +0 -27
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.d.ts +0 -17
- package/esm/models/base/BaseCollection.d.ts +0 -89
- package/esm/models/base/BaseModel.d.ts +0 -78
- package/esm/models/base/ResourceCollection.d.ts +0 -20
- package/esm/models/base/ResourceModel.d.ts +0 -102
- package/esm/models/caseview/CaseViewModel.d.ts +0 -46
- package/esm/models/concepts/BusinessScenarioModel.d.ts +0 -20
- package/esm/models/concepts/ConceptDetailModel.d.ts +0 -86
- package/esm/models/concepts/ConceptIndexModel.d.ts +0 -44
- package/esm/models/concepts/ConceptLinkModel.d.ts +0 -82
- package/esm/models/concepts/ConceptRelationCollection.d.ts +0 -36
- package/esm/models/concepts/ConceptRelationModel.d.ts +0 -61
- package/esm/models/concepts/ConceptTypeDetailModel.d.ts +0 -54
- package/esm/models/concepts/SourceReferenceCollection.d.ts +0 -14
- package/esm/models/concepts/SourceReferenceModel.d.ts +0 -48
- package/esm/models/content/ContentIndexModel.d.ts +0 -41
- package/esm/models/content/ContentLinkModel.d.ts +0 -102
- package/esm/models/content/ContentModel.d.ts +0 -80
- package/esm/models/content/ContentTOCModel.d.ts +0 -56
- package/esm/models/content/ContentTypeModel.d.ts +0 -26
- package/esm/models/content/SectionModel.d.ts +0 -79
- package/esm/models/content/SubSectionModel.d.ts +0 -69
- package/esm/models/contentconfiguration/ContentConfiguration.d.ts +0 -28
- package/esm/models/contentconfiguration/ContentConfigurationElements.d.ts +0 -47
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.d.ts +0 -16
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.d.ts +0 -22
- package/esm/models/contentconfiguration/ContentConfigurationResults.d.ts +0 -39
- package/esm/models/detail/DetailModel.d.ts +0 -80
- package/esm/models/error/ErrorCollection.d.ts +0 -51
- package/esm/models/error/ErrorModel.d.ts +0 -41
- package/esm/models/error/ErrorResponse.d.ts +0 -156
- package/esm/models/filters/AssignmentFilterModel.d.ts +0 -35
- package/esm/models/filters/BaseFilterModel.d.ts +0 -101
- package/esm/models/filters/ConceptIndexFilterModel.d.ts +0 -6
- package/esm/models/filters/FilterCollection.d.ts +0 -49
- package/esm/models/filters/FilterModel.d.ts +0 -5
- package/esm/models/filters/RangeFilterModel.d.ts +0 -6
- package/esm/models/filters/StringFilterModel.d.ts +0 -30
- package/esm/models/form/FormModel.d.ts +0 -350
- package/esm/models/form/FormObjectModel.d.ts +0 -210
- package/esm/models/grouping/GroupingModel.d.ts +0 -86
- package/esm/models/href/Href.d.ts +0 -218
- package/esm/models/href/ListHref.d.ts +0 -64
- package/esm/models/index.d.ts +0 -96
- package/esm/models/layouthint/LayoutHintCollection.d.ts +0 -43
- package/esm/models/links/LinkCollection.d.ts +0 -71
- package/esm/models/links/LinkModel.d.ts +0 -93
- package/esm/models/links/normalizeLinkJSON.d.ts +0 -9
- package/esm/models/list/ListDetailModel.d.ts +0 -69
- package/esm/models/list/ListHeaderModel.d.ts +0 -53
- package/esm/models/list/ListItemCollection.d.ts +0 -21
- package/esm/models/list/ListItemModel.d.ts +0 -35
- package/esm/models/list/ListModel.d.ts +0 -143
- package/esm/models/lookup/LookupOptionCollection.d.ts +0 -15
- package/esm/models/lookup/LookupOptionsModel.d.ts +0 -23
- package/esm/models/modelcatalog/ModelCatalogModel.d.ts +0 -23
- package/esm/models/modelcatalog/ModelCategoryCollection.d.ts +0 -11
- package/esm/models/modelcatalog/ModelCategoryModel.d.ts +0 -39
- package/esm/models/paging/PagesizeModel.d.ts +0 -25
- package/esm/models/paging/PagingModel.d.ts +0 -49
- package/esm/models/panels/GroupingPanelModel.d.ts +0 -49
- package/esm/models/parameter/Parameter.d.ts +0 -40
- package/esm/models/process/ProcessStatusSettingsModel.d.ts +0 -38
- package/esm/models/resolveModel.d.ts +0 -7
- package/esm/models/search/CaseSearchModel.d.ts +0 -14
- package/esm/models/sorting/SortOptionModel.d.ts +0 -48
- package/esm/models/sorting/SortingModel.d.ts +0 -42
- package/esm/models/tab/TabModel.d.ts +0 -53
- package/esm/models/taskgroup/TaskGroupCollection.d.ts +0 -12
- package/esm/models/taskgroup/TaskGroupModel.d.ts +0 -25
- package/esm/models/types.d.ts +0 -171
- package/esm/models/user/UserModel.d.ts +0 -18
- package/esm/models/user/UserProfileModel.d.ts +0 -17
- package/esm/models/user/UserServicesModel.d.ts +0 -39
- package/esm/modularui/Authenticate.d.ts +0 -46
- package/esm/modularui/CaptchaRequest.d.ts +0 -54
- package/esm/modularui/ModularUIError.d.ts +0 -10
- package/esm/modularui/ModularUIRequest.d.ts +0 -207
- package/esm/modularui/ModularUIResponse.d.ts +0 -78
- package/esm/modularui/UploadRequest.d.ts +0 -41
- package/esm/modularui/index.d.ts +0 -5
- package/esm/modularui/types.d.ts +0 -2
- package/esm/react/ErrorBoundary.d.ts +0 -31
- package/esm/react/ErrorBoundaryFallback.d.ts +0 -8
- package/esm/react/index.d.ts +0 -2
- package/esm/react/utils.d.ts +0 -5
- package/esm/react-client/Init.d.ts +0 -6
- package/esm/react-client/client.d.ts +0 -25
- package/esm/react-client/contextPath.d.ts +0 -1
- package/esm/react-client/index.d.ts +0 -3
- package/esm/react-client/rehydrate.d.ts +0 -5
- package/esm/react-server/contextPath.d.ts +0 -1
- package/esm/react-server/createSSRComplete.d.ts +0 -5
- package/esm/react-server/htmlpage.d.ts +0 -11
- package/esm/react-server/index.d.ts +0 -8
- package/esm/react-server/renderSSRComplete.d.ts +0 -13
- package/esm/react-server/renderSSRMinimal.d.ts +0 -11
- package/esm/react-server/requestInformation.d.ts +0 -6
- package/esm/react-server/serverNoSSR.d.ts +0 -15
- package/esm/react-server/serverSSR.d.ts +0 -15
- package/esm/react-server/serverUtil.d.ts +0 -46
- package/esm/react-theme/ThemeProvider.d.ts +0 -8
- package/esm/react-theme/createTheme.d.ts +0 -53
- package/esm/react-theme/index.d.ts +0 -10
- package/esm/react-theme/types.d.ts +0 -13
- package/esm/react-theme/useTheme.d.ts +0 -4
- package/esm/react-theme/utils/background.d.ts +0 -4
- package/esm/react-theme/utils/colors.d.ts +0 -9
- package/esm/react-theme/utils/contrast.d.ts +0 -18
- package/esm/react-theme/utils/corners.d.ts +0 -3
- package/esm/react-theme/utils/spacers.d.ts +0 -9
- package/esm/react-theme/utils/themeProps.d.ts +0 -7
- package/esm/redux/_i18n/I18nActions.d.ts +0 -7
- package/esm/redux/_i18n/I18nReducer.d.ts +0 -7
- package/esm/redux/_i18n/index.d.ts +0 -3
- package/esm/redux/_i18n/types.d.ts +0 -13
- package/esm/redux/_modularui/ModularUIActions.d.ts +0 -26
- package/esm/redux/_modularui/ModularUIConnector.d.ts +0 -7
- package/esm/redux/_modularui/ModularUIMiddleware.d.ts +0 -7
- package/esm/redux/_modularui/ModularUIReducer.d.ts +0 -7
- package/esm/redux/_modularui/ModularUISelectors.d.ts +0 -3
- package/esm/redux/_modularui/ModularUIUtils.d.ts +0 -5
- package/esm/redux/_modularui/index.d.ts +0 -8
- package/esm/redux/_modularui/types.d.ts +0 -84
- package/esm/redux/_modularui/withModularUI.d.ts +0 -3
- package/esm/redux/_router/RouterActions.d.ts +0 -10
- package/esm/redux/_router/RouterConnectors.d.ts +0 -6
- package/esm/redux/_router/RouterMiddleware.d.ts +0 -5
- package/esm/redux/_router/RouterReducer.d.ts +0 -7
- package/esm/redux/_router/index.d.ts +0 -5
- package/esm/redux/_router/types.d.ts +0 -35
- package/esm/redux/actions/Application.d.ts +0 -4
- package/esm/redux/actions/Authorization.d.ts +0 -3
- package/esm/redux/actions/Error.d.ts +0 -7
- package/esm/redux/actions/Form.d.ts +0 -5
- package/esm/redux/actions/FormAttributeSet.d.ts +0 -6
- package/esm/redux/actions/FormAttributeSetRepeatable.d.ts +0 -6
- package/esm/redux/actions/FormAutosave.d.ts +0 -3
- package/esm/redux/actions/FormAutosubmit.d.ts +0 -4
- package/esm/redux/actions/FormAutoupdate.d.ts +0 -4
- package/esm/redux/actions/FormValidations.d.ts +0 -3
- package/esm/redux/actions/Modals.d.ts +0 -4
- package/esm/redux/actions/ModelCatalog.d.ts +0 -2
- package/esm/redux/actions/Notification.d.ts +0 -10
- package/esm/redux/actions/Preferences.d.ts +0 -11
- package/esm/redux/actions/ProgressIndicator.d.ts +0 -8
- package/esm/redux/actions/SignIn.d.ts +0 -10
- package/esm/redux/actions/SignOut.d.ts +0 -4
- package/esm/redux/actions/index.d.ts +0 -16
- package/esm/redux/connectors/Application.d.ts +0 -4
- package/esm/redux/connectors/Breadcrumb.d.ts +0 -3
- package/esm/redux/connectors/CaseView.d.ts +0 -4
- package/esm/redux/connectors/ConceptDetail.d.ts +0 -4
- package/esm/redux/connectors/ContentBrowser.d.ts +0 -4
- package/esm/redux/connectors/ContentDetail.d.ts +0 -4
- package/esm/redux/connectors/ContentDetailSection.d.ts +0 -4
- package/esm/redux/connectors/Form.d.ts +0 -16
- package/esm/redux/connectors/FormAttributeSet.d.ts +0 -5
- package/esm/redux/connectors/ListDetail.d.ts +0 -4
- package/esm/redux/connectors/Modal.d.ts +0 -4
- package/esm/redux/connectors/ModelCatalog.d.ts +0 -4
- package/esm/redux/connectors/Notification.d.ts +0 -4
- package/esm/redux/connectors/PanelRenderer.d.ts +0 -4
- package/esm/redux/connectors/Preferences.d.ts +0 -2
- package/esm/redux/connectors/Progress.d.ts +0 -3
- package/esm/redux/connectors/ProgressIndicator.d.ts +0 -3
- package/esm/redux/connectors/QuickSearch.d.ts +0 -11
- package/esm/redux/connectors/SignIn.d.ts +0 -4
- package/esm/redux/connectors/SignOut.d.ts +0 -4
- package/esm/redux/connectors/Tab.d.ts +0 -4
- package/esm/redux/connectors/index.d.ts +0 -21
- package/esm/redux/index.d.ts +0 -9
- package/esm/redux/reducers/AuthReducer.d.ts +0 -8
- package/esm/redux/reducers/ErrorReducer.d.ts +0 -8
- package/esm/redux/reducers/ModalsReducer.d.ts +0 -8
- package/esm/redux/reducers/ModelCatalogReducer.d.ts +0 -8
- package/esm/redux/reducers/NotificationReducer.d.ts +0 -8
- package/esm/redux/reducers/PreferencesReducer.d.ts +0 -8
- package/esm/redux/reducers/ProgressIndicatorReducer.d.ts +0 -8
- package/esm/redux/reducers/createReducer.d.ts +0 -14
- package/esm/redux/reducers/index.d.ts +0 -8
- package/esm/redux/selectors/i18n.d.ts +0 -4
- package/esm/redux/selectors/index.d.ts +0 -2
- package/esm/redux/selectors/modelcatalog.d.ts +0 -2
- package/esm/redux/store/beforeRenderHooks.d.ts +0 -7
- package/esm/redux/store/configureStore.d.ts +0 -9
- package/esm/redux/types.d.ts +0 -113
- package/esm/utils/browser/Cache.d.ts +0 -45
- package/esm/utils/browser/Cookies.d.ts +0 -9
- package/esm/utils/datetime/DateTimeUtil.d.ts +0 -214
- package/esm/utils/fetch/__mocks__/universalFetch.d.ts +0 -3
- package/esm/utils/fetch/serverFetch.d.ts +0 -5
- package/esm/utils/fetch/types.d.ts +0 -44
- package/esm/utils/fetch/universalFetch.d.ts +0 -7
- package/esm/utils/fetch/xhr.d.ts +0 -5
- package/esm/utils/helpers/checkResource.d.ts +0 -3
- package/esm/utils/helpers/createHash.d.ts +0 -9
- package/esm/utils/helpers/createHref.d.ts +0 -8
- package/esm/utils/helpers/createUUID.d.ts +0 -4
- package/esm/utils/helpers/index.d.ts +0 -8
- package/esm/utils/helpers/objects.d.ts +0 -11
- package/esm/utils/helpers/repositoryResource.d.ts +0 -1
- package/esm/utils/helpers/sanitizeHtml.d.ts +0 -9
- package/esm/utils/helpers/text.d.ts +0 -7
- package/esm/utils/index.d.ts +0 -11
- package/esm/utils/number/DecimalFormat.d.ts +0 -90
- package/esm/utils/number/formatValue.d.ts +0 -4
- package/esm/utils/number/parseNumbers.d.ts +0 -9
- package/lib/builder/index.d.ts +0 -1
- package/lib/builder/mergeLayoutHintConfigurations.d.ts +0 -1
- package/lib/constants/Constants.d.ts +0 -158
- package/lib/constants/LayoutHintConfig.d.ts +0 -267
- package/lib/constants/LayoutHints.d.ts +0 -83
- package/lib/constants/Settings.d.ts +0 -33
- package/lib/constants/index.d.ts +0 -3
- package/lib/exceptions/ConfigurationException.d.ts +0 -7
- package/lib/exceptions/FetchException.d.ts +0 -31
- package/lib/exceptions/IllegalArgumentException.d.ts +0 -7
- package/lib/exceptions/IllegalReturnException.d.ts +0 -6
- package/lib/exceptions/IllegalStateException.d.ts +0 -7
- package/lib/exceptions/JsonParseException.d.ts +0 -7
- package/lib/exceptions/MissingPropertyException.d.ts +0 -7
- package/lib/exceptions/NetworkException.d.ts +0 -9
- package/lib/exceptions/NotAllowedUriException.d.ts +0 -7
- package/lib/exceptions/NotFoundException.d.ts +0 -10
- package/lib/exceptions/ServerRequestException.d.ts +0 -7
- package/lib/exceptions/ThemePropertyException.d.ts +0 -7
- package/lib/exceptions/TimeoutException.d.ts +0 -7
- package/lib/exceptions/UnauthorizedException.d.ts +0 -11
- package/lib/exceptions/UnsupportedOperationException.d.ts +0 -7
- package/lib/exceptions/index.d.ts +0 -15
- package/lib/hooks/index.d.ts +0 -16
- package/lib/hooks/useAllFormsOnModel.d.ts +0 -7
- package/lib/hooks/useAuthentication.d.ts +0 -16
- package/lib/hooks/useContent.d.ts +0 -3
- package/lib/hooks/useDeepCompareEffect.d.ts +0 -6
- package/lib/hooks/useForm.d.ts +0 -21
- package/lib/hooks/useI18n.d.ts +0 -13
- package/lib/hooks/useModal.d.ts +0 -12
- package/lib/hooks/useModelCatalog.d.ts +0 -34
- package/lib/hooks/useModels.d.ts +0 -10
- package/lib/hooks/useModularUI.d.ts +0 -3
- package/lib/hooks/useModularUIBasic.d.ts +0 -9
- package/lib/hooks/useModularUIModel.d.ts +0 -27
- package/lib/hooks/useModularUIRequest.d.ts +0 -4
- package/lib/hooks/useNotification.d.ts +0 -8
- package/lib/hooks/usePreference.d.ts +0 -2
- package/lib/hooks/useProgressIndicator.d.ts +0 -9
- package/lib/hooks/useRouter.d.ts +0 -23
- package/lib/i18n/Locale.d.ts +0 -53
- package/lib/i18n/Locales.d.ts +0 -59
- package/lib/i18n/Message.d.ts +0 -6
- package/lib/i18n/index.d.ts +0 -5
- package/lib/i18n/languages.d.ts +0 -215
- package/lib/i18n/translations/beinformed_error_messages_en.nl.d.ts +0 -97
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.d.ts +0 -97
- package/lib/i18n/types.d.ts +0 -11
- package/lib/i18n/withMessage.d.ts +0 -3
- package/lib/index.d.ts +0 -6
- package/lib/models/actions/ActionCollection.d.ts +0 -30
- package/lib/models/actions/ActionModel.d.ts +0 -82
- package/lib/models/application/ApplicationModel.d.ts +0 -48
- package/lib/models/attributes/AttributeCollection.d.ts +0 -102
- package/lib/models/attributes/AttributeContent.d.ts +0 -64
- package/lib/models/attributes/AttributeDataHelper.d.ts +0 -67
- package/lib/models/attributes/AttributeModel.d.ts +0 -398
- package/lib/models/attributes/AttributeSetModel.d.ts +0 -36
- package/lib/models/attributes/BooleanAttributeModel.d.ts +0 -69
- package/lib/models/attributes/CaptchaAttributeModel.d.ts +0 -19
- package/lib/models/attributes/ChoiceAttributeModel.d.ts +0 -85
- package/lib/models/attributes/ChoiceAttributeOptionCollection.d.ts +0 -87
- package/lib/models/attributes/ChoiceAttributeOptionModel.d.ts +0 -151
- package/lib/models/attributes/CompositeAttributeChildCollection.d.ts +0 -57
- package/lib/models/attributes/CompositeAttributeModel.d.ts +0 -42
- package/lib/models/attributes/DatetimeAttributeModel.d.ts +0 -85
- package/lib/models/attributes/HelptextAttributeModel.d.ts +0 -16
- package/lib/models/attributes/LabelAttributeModel.d.ts +0 -12
- package/lib/models/attributes/MemoAttributeModel.d.ts +0 -14
- package/lib/models/attributes/MoneyAttributeModel.d.ts +0 -14
- package/lib/models/attributes/NumberAttributeModel.d.ts +0 -49
- package/lib/models/attributes/PasswordAttributeModel.d.ts +0 -62
- package/lib/models/attributes/StringAttributeModel.d.ts +0 -65
- package/lib/models/attributes/UploadAttributeModel.d.ts +0 -60
- package/lib/models/attributes/XMLAttributeModel.d.ts +0 -10
- package/lib/models/attributes/_createAttribute.d.ts +0 -7
- package/lib/models/attributes/input-constraints/BSNConstraint.d.ts +0 -26
- package/lib/models/attributes/input-constraints/ConstraintCollection.d.ts +0 -24
- package/lib/models/attributes/input-constraints/ConstraintModel.d.ts +0 -34
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +0 -65
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.d.ts +0 -36
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.d.ts +0 -36
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +0 -50
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.d.ts +0 -33
- package/lib/models/attributes/input-constraints/FileSizeConstraint.d.ts +0 -42
- package/lib/models/attributes/input-constraints/IBANConstraint.d.ts +0 -23
- package/lib/models/attributes/input-constraints/MandatoryConstraint.d.ts +0 -23
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.d.ts +0 -36
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +0 -61
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.d.ts +0 -52
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.d.ts +0 -46
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.d.ts +0 -36
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.d.ts +0 -23
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.d.ts +0 -32
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.d.ts +0 -32
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.ts +0 -35
- package/lib/models/attributes/input-constraints/RangeConstraint.d.ts +0 -51
- package/lib/models/attributes/input-constraints/RegexConstraint.d.ts +0 -37
- package/lib/models/attributes/input-constraints/StringLengthConstraint.d.ts +0 -46
- package/lib/models/attributes/input-constraints/XMLConstraint.d.ts +0 -26
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.d.ts +0 -45
- package/lib/models/attributes/layouthint-rules/DependentAttribute.d.ts +0 -57
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.d.ts +0 -27
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.d.ts +0 -17
- package/lib/models/base/BaseCollection.d.ts +0 -89
- package/lib/models/base/BaseModel.d.ts +0 -78
- package/lib/models/base/ResourceCollection.d.ts +0 -20
- package/lib/models/base/ResourceModel.d.ts +0 -102
- package/lib/models/caseview/CaseViewModel.d.ts +0 -46
- package/lib/models/concepts/BusinessScenarioModel.d.ts +0 -20
- package/lib/models/concepts/ConceptDetailModel.d.ts +0 -86
- package/lib/models/concepts/ConceptIndexModel.d.ts +0 -44
- package/lib/models/concepts/ConceptLinkModel.d.ts +0 -82
- package/lib/models/concepts/ConceptRelationCollection.d.ts +0 -36
- package/lib/models/concepts/ConceptRelationModel.d.ts +0 -61
- package/lib/models/concepts/ConceptTypeDetailModel.d.ts +0 -54
- package/lib/models/concepts/SourceReferenceCollection.d.ts +0 -14
- package/lib/models/concepts/SourceReferenceModel.d.ts +0 -48
- package/lib/models/content/ContentIndexModel.d.ts +0 -41
- package/lib/models/content/ContentLinkModel.d.ts +0 -102
- package/lib/models/content/ContentModel.d.ts +0 -80
- package/lib/models/content/ContentTOCModel.d.ts +0 -56
- package/lib/models/content/ContentTypeModel.d.ts +0 -26
- package/lib/models/content/SectionModel.d.ts +0 -79
- package/lib/models/content/SubSectionModel.d.ts +0 -69
- package/lib/models/contentconfiguration/ContentConfiguration.d.ts +0 -28
- package/lib/models/contentconfiguration/ContentConfigurationElements.d.ts +0 -47
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.d.ts +0 -16
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.d.ts +0 -22
- package/lib/models/contentconfiguration/ContentConfigurationResults.d.ts +0 -39
- package/lib/models/detail/DetailModel.d.ts +0 -80
- package/lib/models/error/ErrorCollection.d.ts +0 -51
- package/lib/models/error/ErrorModel.d.ts +0 -41
- package/lib/models/error/ErrorResponse.d.ts +0 -156
- package/lib/models/filters/AssignmentFilterModel.d.ts +0 -35
- package/lib/models/filters/BaseFilterModel.d.ts +0 -101
- package/lib/models/filters/ConceptIndexFilterModel.d.ts +0 -6
- package/lib/models/filters/FilterCollection.d.ts +0 -49
- package/lib/models/filters/FilterModel.d.ts +0 -5
- package/lib/models/filters/RangeFilterModel.d.ts +0 -6
- package/lib/models/filters/StringFilterModel.d.ts +0 -30
- package/lib/models/form/FormModel.d.ts +0 -350
- package/lib/models/form/FormObjectModel.d.ts +0 -210
- package/lib/models/grouping/GroupingModel.d.ts +0 -86
- package/lib/models/href/Href.d.ts +0 -218
- package/lib/models/href/ListHref.d.ts +0 -64
- package/lib/models/index.d.ts +0 -96
- package/lib/models/layouthint/LayoutHintCollection.d.ts +0 -43
- package/lib/models/links/LinkCollection.d.ts +0 -71
- package/lib/models/links/LinkModel.d.ts +0 -93
- package/lib/models/links/normalizeLinkJSON.d.ts +0 -9
- package/lib/models/list/ListDetailModel.d.ts +0 -69
- package/lib/models/list/ListHeaderModel.d.ts +0 -53
- package/lib/models/list/ListItemCollection.d.ts +0 -21
- package/lib/models/list/ListItemModel.d.ts +0 -35
- package/lib/models/list/ListModel.d.ts +0 -143
- package/lib/models/lookup/LookupOptionCollection.d.ts +0 -15
- package/lib/models/lookup/LookupOptionsModel.d.ts +0 -23
- package/lib/models/modelcatalog/ModelCatalogModel.d.ts +0 -23
- package/lib/models/modelcatalog/ModelCategoryCollection.d.ts +0 -11
- package/lib/models/modelcatalog/ModelCategoryModel.d.ts +0 -39
- package/lib/models/paging/PagesizeModel.d.ts +0 -25
- package/lib/models/paging/PagingModel.d.ts +0 -49
- package/lib/models/panels/GroupingPanelModel.d.ts +0 -49
- package/lib/models/parameter/Parameter.d.ts +0 -40
- package/lib/models/process/ProcessStatusSettingsModel.d.ts +0 -38
- package/lib/models/resolveModel.d.ts +0 -7
- package/lib/models/search/CaseSearchModel.d.ts +0 -14
- package/lib/models/sorting/SortOptionModel.d.ts +0 -48
- package/lib/models/sorting/SortingModel.d.ts +0 -42
- package/lib/models/tab/TabModel.d.ts +0 -53
- package/lib/models/taskgroup/TaskGroupCollection.d.ts +0 -12
- package/lib/models/taskgroup/TaskGroupModel.d.ts +0 -25
- package/lib/models/types.d.ts +0 -171
- package/lib/models/user/UserModel.d.ts +0 -18
- package/lib/models/user/UserProfileModel.d.ts +0 -17
- package/lib/models/user/UserServicesModel.d.ts +0 -39
- package/lib/modularui/Authenticate.d.ts +0 -46
- package/lib/modularui/CaptchaRequest.d.ts +0 -54
- package/lib/modularui/ModularUIError.d.ts +0 -10
- package/lib/modularui/ModularUIRequest.d.ts +0 -207
- package/lib/modularui/ModularUIResponse.d.ts +0 -78
- package/lib/modularui/UploadRequest.d.ts +0 -41
- package/lib/modularui/index.d.ts +0 -5
- package/lib/modularui/types.d.ts +0 -2
- package/lib/react/ErrorBoundary.d.ts +0 -31
- package/lib/react/ErrorBoundaryFallback.d.ts +0 -8
- package/lib/react/index.d.ts +0 -2
- package/lib/react/utils.d.ts +0 -5
- package/lib/react-client/Init.d.ts +0 -6
- package/lib/react-client/client.d.ts +0 -25
- package/lib/react-client/contextPath.d.ts +0 -1
- package/lib/react-client/index.d.ts +0 -3
- package/lib/react-client/rehydrate.d.ts +0 -5
- package/lib/react-server/contextPath.d.ts +0 -1
- package/lib/react-server/createSSRComplete.d.ts +0 -5
- package/lib/react-server/htmlpage.d.ts +0 -11
- package/lib/react-server/index.d.ts +0 -8
- package/lib/react-server/renderSSRComplete.d.ts +0 -13
- package/lib/react-server/renderSSRMinimal.d.ts +0 -11
- package/lib/react-server/requestInformation.d.ts +0 -6
- package/lib/react-server/serverNoSSR.d.ts +0 -15
- package/lib/react-server/serverSSR.d.ts +0 -15
- package/lib/react-server/serverUtil.d.ts +0 -46
- package/lib/react-theme/ThemeProvider.d.ts +0 -8
- package/lib/react-theme/createTheme.d.ts +0 -53
- package/lib/react-theme/index.d.ts +0 -10
- package/lib/react-theme/types.d.ts +0 -13
- package/lib/react-theme/useTheme.d.ts +0 -4
- package/lib/react-theme/utils/background.d.ts +0 -4
- package/lib/react-theme/utils/colors.d.ts +0 -9
- package/lib/react-theme/utils/contrast.d.ts +0 -18
- package/lib/react-theme/utils/corners.d.ts +0 -3
- package/lib/react-theme/utils/spacers.d.ts +0 -9
- package/lib/react-theme/utils/themeProps.d.ts +0 -7
- package/lib/redux/_i18n/I18nActions.d.ts +0 -7
- package/lib/redux/_i18n/I18nReducer.d.ts +0 -7
- package/lib/redux/_i18n/index.d.ts +0 -3
- package/lib/redux/_i18n/types.d.ts +0 -13
- package/lib/redux/_modularui/ModularUIActions.d.ts +0 -26
- package/lib/redux/_modularui/ModularUIConnector.d.ts +0 -7
- package/lib/redux/_modularui/ModularUIMiddleware.d.ts +0 -7
- package/lib/redux/_modularui/ModularUIReducer.d.ts +0 -7
- package/lib/redux/_modularui/ModularUISelectors.d.ts +0 -3
- package/lib/redux/_modularui/ModularUIUtils.d.ts +0 -5
- package/lib/redux/_modularui/index.d.ts +0 -8
- package/lib/redux/_modularui/types.d.ts +0 -84
- package/lib/redux/_modularui/withModularUI.d.ts +0 -3
- package/lib/redux/_router/RouterActions.d.ts +0 -10
- package/lib/redux/_router/RouterConnectors.d.ts +0 -6
- package/lib/redux/_router/RouterMiddleware.d.ts +0 -5
- package/lib/redux/_router/RouterReducer.d.ts +0 -7
- package/lib/redux/_router/index.d.ts +0 -5
- package/lib/redux/_router/types.d.ts +0 -35
- package/lib/redux/actions/Application.d.ts +0 -4
- package/lib/redux/actions/Authorization.d.ts +0 -3
- package/lib/redux/actions/Error.d.ts +0 -7
- package/lib/redux/actions/Form.d.ts +0 -5
- package/lib/redux/actions/FormAttributeSet.d.ts +0 -6
- package/lib/redux/actions/FormAttributeSetRepeatable.d.ts +0 -6
- package/lib/redux/actions/FormAutosave.d.ts +0 -3
- package/lib/redux/actions/FormAutosubmit.d.ts +0 -4
- package/lib/redux/actions/FormAutoupdate.d.ts +0 -4
- package/lib/redux/actions/FormValidations.d.ts +0 -3
- package/lib/redux/actions/Modals.d.ts +0 -4
- package/lib/redux/actions/ModelCatalog.d.ts +0 -2
- package/lib/redux/actions/Notification.d.ts +0 -10
- package/lib/redux/actions/Preferences.d.ts +0 -11
- package/lib/redux/actions/ProgressIndicator.d.ts +0 -8
- package/lib/redux/actions/SignIn.d.ts +0 -10
- package/lib/redux/actions/SignOut.d.ts +0 -4
- package/lib/redux/actions/index.d.ts +0 -16
- package/lib/redux/connectors/Application.d.ts +0 -4
- package/lib/redux/connectors/Breadcrumb.d.ts +0 -3
- package/lib/redux/connectors/CaseView.d.ts +0 -4
- package/lib/redux/connectors/ConceptDetail.d.ts +0 -4
- package/lib/redux/connectors/ContentBrowser.d.ts +0 -4
- package/lib/redux/connectors/ContentDetail.d.ts +0 -4
- package/lib/redux/connectors/ContentDetailSection.d.ts +0 -4
- package/lib/redux/connectors/Form.d.ts +0 -16
- package/lib/redux/connectors/FormAttributeSet.d.ts +0 -5
- package/lib/redux/connectors/ListDetail.d.ts +0 -4
- package/lib/redux/connectors/Modal.d.ts +0 -4
- package/lib/redux/connectors/ModelCatalog.d.ts +0 -4
- package/lib/redux/connectors/Notification.d.ts +0 -4
- package/lib/redux/connectors/PanelRenderer.d.ts +0 -4
- package/lib/redux/connectors/Preferences.d.ts +0 -2
- package/lib/redux/connectors/Progress.d.ts +0 -3
- package/lib/redux/connectors/ProgressIndicator.d.ts +0 -3
- package/lib/redux/connectors/QuickSearch.d.ts +0 -11
- package/lib/redux/connectors/SignIn.d.ts +0 -4
- package/lib/redux/connectors/SignOut.d.ts +0 -4
- package/lib/redux/connectors/Tab.d.ts +0 -4
- package/lib/redux/connectors/index.d.ts +0 -21
- package/lib/redux/index.d.ts +0 -9
- package/lib/redux/reducers/AuthReducer.d.ts +0 -8
- package/lib/redux/reducers/ErrorReducer.d.ts +0 -8
- package/lib/redux/reducers/ModalsReducer.d.ts +0 -8
- package/lib/redux/reducers/ModelCatalogReducer.d.ts +0 -8
- package/lib/redux/reducers/NotificationReducer.d.ts +0 -8
- package/lib/redux/reducers/PreferencesReducer.d.ts +0 -8
- package/lib/redux/reducers/ProgressIndicatorReducer.d.ts +0 -8
- package/lib/redux/reducers/createReducer.d.ts +0 -14
- package/lib/redux/reducers/index.d.ts +0 -8
- package/lib/redux/selectors/i18n.d.ts +0 -4
- package/lib/redux/selectors/index.d.ts +0 -2
- package/lib/redux/selectors/modelcatalog.d.ts +0 -2
- package/lib/redux/store/beforeRenderHooks.d.ts +0 -7
- package/lib/redux/store/configureStore.d.ts +0 -9
- package/lib/redux/types.d.ts +0 -113
- package/lib/utils/browser/Cache.d.ts +0 -45
- package/lib/utils/browser/Cookies.d.ts +0 -9
- package/lib/utils/datetime/DateTimeUtil.d.ts +0 -214
- package/lib/utils/fetch/__mocks__/universalFetch.d.ts +0 -3
- package/lib/utils/fetch/serverFetch.d.ts +0 -5
- package/lib/utils/fetch/types.d.ts +0 -44
- package/lib/utils/fetch/universalFetch.d.ts +0 -7
- package/lib/utils/fetch/xhr.d.ts +0 -5
- package/lib/utils/helpers/checkResource.d.ts +0 -3
- package/lib/utils/helpers/createHash.d.ts +0 -9
- package/lib/utils/helpers/createHref.d.ts +0 -8
- package/lib/utils/helpers/createUUID.d.ts +0 -4
- package/lib/utils/helpers/index.d.ts +0 -8
- package/lib/utils/helpers/objects.d.ts +0 -11
- package/lib/utils/helpers/repositoryResource.d.ts +0 -1
- package/lib/utils/helpers/sanitizeHtml.d.ts +0 -9
- package/lib/utils/helpers/text.d.ts +0 -7
- package/lib/utils/index.d.ts +0 -11
- package/lib/utils/number/DecimalFormat.d.ts +0 -90
- package/lib/utils/number/formatValue.d.ts +0 -4
- package/lib/utils/number/parseNumbers.d.ts +0 -9
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attribute model, base model for all kind of attributes
|
|
3
|
-
*/
|
|
4
|
-
export default class AttributeModel extends BaseModel {
|
|
5
|
-
/**
|
|
6
|
-
*/
|
|
7
|
-
static isApplicableModel(contributions: Object): boolean;
|
|
8
|
-
_label: string;
|
|
9
|
-
_lastModification: number;
|
|
10
|
-
_initvalue: any;
|
|
11
|
-
_inputvalue: string;
|
|
12
|
-
_value: any;
|
|
13
|
-
_errorCollection: ErrorCollection;
|
|
14
|
-
_serverConstraints: ConstraintCollection;
|
|
15
|
-
_useClientsideValidation: boolean;
|
|
16
|
-
_isValid: boolean;
|
|
17
|
-
_validatedValue: string | null;
|
|
18
|
-
_isEditable: boolean;
|
|
19
|
-
_concept: ConceptDetailModel | null;
|
|
20
|
-
_referenceDate: ISO_DATE;
|
|
21
|
-
_isResult: boolean;
|
|
22
|
-
_isHidden: boolean;
|
|
23
|
-
_readonly: boolean;
|
|
24
|
-
_disabled: boolean;
|
|
25
|
-
_mandatory: boolean;
|
|
26
|
-
_links: LinkCollection;
|
|
27
|
-
_parentKey: string | null;
|
|
28
|
-
_hasContentConfiguration: boolean;
|
|
29
|
-
_layoutHintRules: LayoutHintRuleCollection;
|
|
30
|
-
/**
|
|
31
|
-
* Retrieve initial input value
|
|
32
|
-
*/
|
|
33
|
-
getInitialInputValue(value: any): any;
|
|
34
|
-
/**
|
|
35
|
-
*/
|
|
36
|
-
getInitialChildModelLinks(): Array<LinkModel>;
|
|
37
|
-
/**
|
|
38
|
-
*/
|
|
39
|
-
setChildModels(models: Array<ModularUIModel>, errors: Array<ErrorResponse>): void;
|
|
40
|
-
/**
|
|
41
|
-
* Set the concept
|
|
42
|
-
*/
|
|
43
|
-
set concept(concept: ModularUIModel | null);
|
|
44
|
-
/**
|
|
45
|
-
* Get concept information
|
|
46
|
-
*/
|
|
47
|
-
get concept(): ConceptDetailModel | null;
|
|
48
|
-
/**
|
|
49
|
-
* Getting the attribute key
|
|
50
|
-
*/
|
|
51
|
-
get key(): string;
|
|
52
|
-
/**
|
|
53
|
-
*/
|
|
54
|
-
set parentKey(parentKey: string);
|
|
55
|
-
/**
|
|
56
|
-
*/
|
|
57
|
-
get parentKey(): string;
|
|
58
|
-
/**
|
|
59
|
-
* Getting the attribute name
|
|
60
|
-
*/
|
|
61
|
-
get name(): string;
|
|
62
|
-
/**
|
|
63
|
-
* Getting the type of the attribute
|
|
64
|
-
*/
|
|
65
|
-
get type(): string;
|
|
66
|
-
/**
|
|
67
|
-
* Set the label of this attribute
|
|
68
|
-
*/
|
|
69
|
-
set label(label: string);
|
|
70
|
-
/**
|
|
71
|
-
* Getting the label of the attribute
|
|
72
|
-
*/
|
|
73
|
-
get label(): string;
|
|
74
|
-
/**
|
|
75
|
-
*/
|
|
76
|
-
set hasContentConfiguration(hasContentConfiguration: boolean);
|
|
77
|
-
/**
|
|
78
|
-
*/
|
|
79
|
-
get hasContentConfiguration(): boolean;
|
|
80
|
-
/**
|
|
81
|
-
*/
|
|
82
|
-
indicateContentConfiguration(contentConfiguration: ContentConfiguration): void;
|
|
83
|
-
/**
|
|
84
|
-
* Retrieve the first permitted label to render when a concept and contentConfiguration is available
|
|
85
|
-
* Be aware that permission could be in place for labels from a concept.
|
|
86
|
-
*/
|
|
87
|
-
getContentConfiguredLabel(contentConfiguration: ContentConfigurationElements | null): string;
|
|
88
|
-
/**
|
|
89
|
-
*/
|
|
90
|
-
get defaultAlignment(): "left" | "center" | "right";
|
|
91
|
-
/**
|
|
92
|
-
* Handles layout hint align-left, align-center and align-right
|
|
93
|
-
*/
|
|
94
|
-
get alignment(): "left" | "center" | "right";
|
|
95
|
-
/**
|
|
96
|
-
* Retrieve links of attribute
|
|
97
|
-
*/
|
|
98
|
-
get links(): LinkCollection;
|
|
99
|
-
/**
|
|
100
|
-
* Retrieve link of attribute when available
|
|
101
|
-
*/
|
|
102
|
-
get downloadLink(): LinkModel | null;
|
|
103
|
-
/**
|
|
104
|
-
* Retrieve concept link of attribute when available
|
|
105
|
-
*/
|
|
106
|
-
get conceptLink(): LinkModel | null;
|
|
107
|
-
/**
|
|
108
|
-
* Set reference date for concepts and content
|
|
109
|
-
*/
|
|
110
|
-
set referenceDate(date: ISO_DATE);
|
|
111
|
-
/**
|
|
112
|
-
* Retrieve reference date of attribute which can be used as entryDate for content
|
|
113
|
-
* to get information in correct time version
|
|
114
|
-
*/
|
|
115
|
-
get referenceDate(): ISO_DATE;
|
|
116
|
-
/**
|
|
117
|
-
* Initial value received from the modular ui service
|
|
118
|
-
*/
|
|
119
|
-
get initvalue(): any;
|
|
120
|
-
/**
|
|
121
|
-
* Retrieve input value
|
|
122
|
-
*/
|
|
123
|
-
getInputValue(): string;
|
|
124
|
-
/**
|
|
125
|
-
* Sets the input value to the value entered by the user
|
|
126
|
-
*/
|
|
127
|
-
set inputvalue(value: string);
|
|
128
|
-
/**
|
|
129
|
-
* Returns the value as entered by the user. This can differ from the internal iso value that is stored
|
|
130
|
-
*/
|
|
131
|
-
get inputvalue(): string;
|
|
132
|
-
/**
|
|
133
|
-
* Value that is used when retrieving an error collection of this attribute
|
|
134
|
-
* Mostly this is the input value, but sometimes a different value is needed,
|
|
135
|
-
* for example iban and postcode need to validate length without spaces
|
|
136
|
-
*/
|
|
137
|
-
get validateValue(): string;
|
|
138
|
-
/**
|
|
139
|
-
* Setting a value in the element
|
|
140
|
-
*/
|
|
141
|
-
set value(value: string | null);
|
|
142
|
-
/**
|
|
143
|
-
* Getting the value of the attribute
|
|
144
|
-
*/
|
|
145
|
-
get value(): any;
|
|
146
|
-
/**
|
|
147
|
-
*/
|
|
148
|
-
hasValue(): boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Getting the value of the attribute
|
|
151
|
-
*/
|
|
152
|
-
getValue(): any;
|
|
153
|
-
/**
|
|
154
|
-
* Getting data ready to be send to the modular ui
|
|
155
|
-
* Returns null when the attribute should not be send to the server
|
|
156
|
-
*/
|
|
157
|
-
getFormData(): {
|
|
158
|
-
[string]: any;
|
|
159
|
-
} | null;
|
|
160
|
-
/**
|
|
161
|
-
*/
|
|
162
|
-
get formdata(): {
|
|
163
|
-
[string]: any;
|
|
164
|
-
} | null;
|
|
165
|
-
/**
|
|
166
|
-
*/
|
|
167
|
-
getEmptyFormData(): {
|
|
168
|
-
[string]: null;
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
*/
|
|
172
|
-
formatValue(value: string): string;
|
|
173
|
-
/**
|
|
174
|
-
* Getting the readonly value, iso value converted for human reading
|
|
175
|
-
*/
|
|
176
|
-
get readonlyvalue(): string;
|
|
177
|
-
/**
|
|
178
|
-
* Set mandatory status of attribute
|
|
179
|
-
*/
|
|
180
|
-
set mandatory(mandatory: boolean);
|
|
181
|
-
/**
|
|
182
|
-
* Getting mandatory status of attribute
|
|
183
|
-
*/
|
|
184
|
-
get mandatory(): boolean;
|
|
185
|
-
/**
|
|
186
|
-
*/
|
|
187
|
-
get configuredMandatory(): boolean | null;
|
|
188
|
-
/**
|
|
189
|
-
*/
|
|
190
|
-
set readonly(readonly: boolean);
|
|
191
|
-
/**
|
|
192
|
-
*/
|
|
193
|
-
get readonly(): boolean;
|
|
194
|
-
/**
|
|
195
|
-
*/
|
|
196
|
-
set disabled(disabled: boolean);
|
|
197
|
-
/**
|
|
198
|
-
*/
|
|
199
|
-
get disabled(): boolean;
|
|
200
|
-
/**
|
|
201
|
-
*/
|
|
202
|
-
set isResult(isResult: boolean);
|
|
203
|
-
/**
|
|
204
|
-
*/
|
|
205
|
-
get isResult(): boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Getting the display and input format of a attribute
|
|
208
|
-
*/
|
|
209
|
-
get format(): string | null;
|
|
210
|
-
/**
|
|
211
|
-
*/
|
|
212
|
-
get formatLabel(): string;
|
|
213
|
-
/**
|
|
214
|
-
* Get minimum string length
|
|
215
|
-
*/
|
|
216
|
-
get minLength(): number | null;
|
|
217
|
-
/**
|
|
218
|
-
* Get maximum string length
|
|
219
|
-
*/
|
|
220
|
-
get maxLength(): number | null;
|
|
221
|
-
/**
|
|
222
|
-
*/
|
|
223
|
-
get operator(): string;
|
|
224
|
-
/**
|
|
225
|
-
* Get assistant message
|
|
226
|
-
*/
|
|
227
|
-
get assistantMessage(): string | null;
|
|
228
|
-
/**
|
|
229
|
-
* Get valid status
|
|
230
|
-
*/
|
|
231
|
-
get isValid(): boolean;
|
|
232
|
-
/**
|
|
233
|
-
* Retrieve applicable constraint for this attribute
|
|
234
|
-
*/
|
|
235
|
-
get constraintCollection(): ConstraintCollection;
|
|
236
|
-
/**
|
|
237
|
-
* Template method for class extending this model to add extra constraints
|
|
238
|
-
* @abstract
|
|
239
|
-
*/
|
|
240
|
-
addConstraints(): ConstraintCollection;
|
|
241
|
-
/**
|
|
242
|
-
* Used to programmatically overwrite the setting USE_CLIENTSIDE_VALIDATION
|
|
243
|
-
*/
|
|
244
|
-
setUseClientsideValidation(enabled: boolean): void;
|
|
245
|
-
/**
|
|
246
|
-
* Indicates if client side validation is enabled
|
|
247
|
-
* @returns {boolean}
|
|
248
|
-
*/
|
|
249
|
-
useClientsideValidation(): boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Validate input on client side constraint
|
|
252
|
-
*/
|
|
253
|
-
validate(value: string): boolean;
|
|
254
|
-
/**
|
|
255
|
-
* Indicates if attribute is optional and empty
|
|
256
|
-
*/
|
|
257
|
-
isOptionalAndEmpty(value: string): boolean;
|
|
258
|
-
/**
|
|
259
|
-
* Retrieve error messages of this attribute
|
|
260
|
-
*/
|
|
261
|
-
get errorCollection(): ErrorCollection;
|
|
262
|
-
/**
|
|
263
|
-
* Check if attribute is in error
|
|
264
|
-
*/
|
|
265
|
-
inError(): boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Reset static error messages on attribute
|
|
268
|
-
*/
|
|
269
|
-
resetErrors(): void;
|
|
270
|
-
/**
|
|
271
|
-
* Registers an error that was received from a server response
|
|
272
|
-
*/
|
|
273
|
-
addServerError(error: FormErrorAnchor): void;
|
|
274
|
-
/**
|
|
275
|
-
*/
|
|
276
|
-
removeServerError(id: string): void;
|
|
277
|
-
/**
|
|
278
|
-
*/
|
|
279
|
-
hasServerErrors(): boolean;
|
|
280
|
-
/**
|
|
281
|
-
*/
|
|
282
|
-
hasErrors(): boolean;
|
|
283
|
-
/**
|
|
284
|
-
* Registers a missing error that was received from the server
|
|
285
|
-
*/
|
|
286
|
-
addMissingError(receivedAttribute?: AttributeType): void;
|
|
287
|
-
/**
|
|
288
|
-
*/
|
|
289
|
-
removeMissingError(): void;
|
|
290
|
-
/**
|
|
291
|
-
*/
|
|
292
|
-
addServerConstraint(id: string, defaultMessage?: string, parameters?: MessageParameters): void;
|
|
293
|
-
/**
|
|
294
|
-
*/
|
|
295
|
-
formatParameters(parameters: Object): {
|
|
296
|
-
[string]: string | number;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
*/
|
|
300
|
-
get hasDynamicValidationData(): boolean;
|
|
301
|
-
/**
|
|
302
|
-
*/
|
|
303
|
-
updateValidations(errors: Array<Object>): void;
|
|
304
|
-
/**
|
|
305
|
-
* Set last modification to current timestamp
|
|
306
|
-
*/
|
|
307
|
-
updateLastModification(): void;
|
|
308
|
-
/**
|
|
309
|
-
* Inidicates if attribute is changed since a given timestamp (Date.now)
|
|
310
|
-
*/
|
|
311
|
-
isChangedSince(timestamp: number): boolean;
|
|
312
|
-
/**
|
|
313
|
-
* Abstract reset method which should be implemented on each attribute that has this attribute as a base class.
|
|
314
|
-
*
|
|
315
|
-
* @abstract
|
|
316
|
-
*/
|
|
317
|
-
reset(): void;
|
|
318
|
-
/**
|
|
319
|
-
* Merge old attribute with the attribute from the server.
|
|
320
|
-
* Readonly attributes always need to show the value from the server
|
|
321
|
-
*/
|
|
322
|
-
mergeAttribute(oldAttribute: AttributeType): void;
|
|
323
|
-
/**
|
|
324
|
-
* Abstract update method which should be implemented on each attribute that has this attribute as a base class.
|
|
325
|
-
* @abstract
|
|
326
|
-
*/
|
|
327
|
-
update(value: string, changedAttribute?: AttributeType): AttributeType;
|
|
328
|
-
/**
|
|
329
|
-
* Abstract updateByAttribute method which should be implemented on each attribute that has this attribute as a base class.
|
|
330
|
-
* @abstract
|
|
331
|
-
*/
|
|
332
|
-
updateByAttribute(otherAttribute: AttributeType): void;
|
|
333
|
-
/**
|
|
334
|
-
* Indicate if attribute is editable
|
|
335
|
-
*/
|
|
336
|
-
set isEditable(isEditable: boolean);
|
|
337
|
-
/**
|
|
338
|
-
* Retrieve if attribute is editable
|
|
339
|
-
*/
|
|
340
|
-
get isEditable(): boolean;
|
|
341
|
-
/**
|
|
342
|
-
* Indicates if the attribute is visible
|
|
343
|
-
*/
|
|
344
|
-
get isVisible(): boolean;
|
|
345
|
-
/**
|
|
346
|
-
*/
|
|
347
|
-
set isHidden(isHidden: boolean);
|
|
348
|
-
/**
|
|
349
|
-
*/
|
|
350
|
-
get isHidden(): boolean;
|
|
351
|
-
/**
|
|
352
|
-
* Explicitly toggle visibility of this attribute
|
|
353
|
-
*/
|
|
354
|
-
show(): void;
|
|
355
|
-
/**
|
|
356
|
-
*/
|
|
357
|
-
hide(): void;
|
|
358
|
-
/**
|
|
359
|
-
*/
|
|
360
|
-
equals(otherAttribute: AttributeType): boolean;
|
|
361
|
-
/**
|
|
362
|
-
* Readonly attribute width indicates the proposed width of this attribute
|
|
363
|
-
*/
|
|
364
|
-
get readonlyWidth(): $Keys<typeof ATTRIBUTE_WIDTH>;
|
|
365
|
-
/**
|
|
366
|
-
*/
|
|
367
|
-
set layoutHintRules(rules: LayoutHintRuleCollection);
|
|
368
|
-
/**
|
|
369
|
-
*/
|
|
370
|
-
get layoutHintRules(): LayoutHintRuleCollection;
|
|
371
|
-
/**
|
|
372
|
-
*/
|
|
373
|
-
processLayoutHintRules(attributes: AttributeCollection): void;
|
|
374
|
-
/**
|
|
375
|
-
* Indicates if content comes from the data service
|
|
376
|
-
*/
|
|
377
|
-
get hasContentFromData(): boolean;
|
|
378
|
-
/**
|
|
379
|
-
*/
|
|
380
|
-
get content(): AttributeContent;
|
|
381
|
-
}
|
|
382
|
-
import BaseModel from "../base/BaseModel";
|
|
383
|
-
import ErrorCollection from "../error/ErrorCollection";
|
|
384
|
-
import ConstraintCollection from "./input-constraints/ConstraintCollection";
|
|
385
|
-
import ConceptDetailModel from "../concepts/ConceptDetailModel";
|
|
386
|
-
import LinkCollection from "../links/LinkCollection";
|
|
387
|
-
import LayoutHintRuleCollection from "./layouthint-rules/LayoutHintRuleCollection";
|
|
388
|
-
import LinkModel from "../links/LinkModel";
|
|
389
|
-
import { ModularUIModel } from "../types";
|
|
390
|
-
import ErrorResponse from "../error/ErrorResponse";
|
|
391
|
-
import ContentConfiguration from "../contentconfiguration/ContentConfiguration";
|
|
392
|
-
import ContentConfigurationElements from "../contentconfiguration/ContentConfigurationElements";
|
|
393
|
-
import { FormErrorAnchor } from "../types";
|
|
394
|
-
import { AttributeType } from "../types";
|
|
395
|
-
import { MessageParameters } from "../../i18n/types";
|
|
396
|
-
import { ATTRIBUTE_WIDTH } from "../../constants/Constants";
|
|
397
|
-
import AttributeCollection from "./AttributeCollection";
|
|
398
|
-
import AttributeContent from "./AttributeContent";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*/
|
|
3
|
-
export default class AttributeSetModel extends BaseModel {
|
|
4
|
-
/**
|
|
5
|
-
*/
|
|
6
|
-
constructor(key?: string, data?: Object, contributions?: Object, modelOptions?: ModelOptions);
|
|
7
|
-
_key: string;
|
|
8
|
-
_attributeCollection: AttributeCollection;
|
|
9
|
-
/**
|
|
10
|
-
*/
|
|
11
|
-
set key(key: string);
|
|
12
|
-
/**
|
|
13
|
-
*/
|
|
14
|
-
get key(): string;
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
get label(): string | null;
|
|
18
|
-
/**
|
|
19
|
-
* Set the attributes with a new AttributeCollection
|
|
20
|
-
*/
|
|
21
|
-
set attributeCollection(collection: AttributeCollection);
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve attribute collection
|
|
24
|
-
*/
|
|
25
|
-
get attributeCollection(): AttributeCollection;
|
|
26
|
-
/**
|
|
27
|
-
*/
|
|
28
|
-
createChildAttributeSetModel(key: string, dataObject: Object, index?: number): AttributeSetModel;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve child {@code AttributeSetModel}s
|
|
31
|
-
*/
|
|
32
|
-
getChildAttributeSets(): Array<AttributeSetModel>;
|
|
33
|
-
}
|
|
34
|
-
import BaseModel from "../base/BaseModel";
|
|
35
|
-
import AttributeCollection from "./AttributeCollection";
|
|
36
|
-
import { ModelOptions } from "../types";
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model for a boolean attribute
|
|
3
|
-
*/
|
|
4
|
-
export default class BooleanAttributeModel extends AttributeModel {
|
|
5
|
-
_referenceDate: string;
|
|
6
|
-
_options: ChoiceAttributeOptionCollection;
|
|
7
|
-
/**
|
|
8
|
-
* Set reference date for concepts and content
|
|
9
|
-
*/
|
|
10
|
-
set referenceDate(date: string);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve reference date of attribute which can be used as entryDate for content
|
|
13
|
-
*/
|
|
14
|
-
get referenceDate(): string;
|
|
15
|
-
/**
|
|
16
|
-
* Getting the type of choice filter. For instance checkbox, radiobutton, combobox.
|
|
17
|
-
*/
|
|
18
|
-
get choicetype(): "checkbox" | "radiobutton" | "combobox" | "toggle";
|
|
19
|
-
/**
|
|
20
|
-
* Can multiple options be selected
|
|
21
|
-
*/
|
|
22
|
-
get isMultiple(): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Check if options need to be rendered as tree
|
|
25
|
-
*/
|
|
26
|
-
get isTree(): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Get content configuration configured on the attribute.
|
|
29
|
-
* Only applicable for taxonomy element and knowledge codemaps,
|
|
30
|
-
* content configuration for instrument questions is available on the form object
|
|
31
|
-
*/
|
|
32
|
-
get contentConfiguration(): ContentConfigurationElements | null;
|
|
33
|
-
/**
|
|
34
|
-
* Retrieve available choice options
|
|
35
|
-
*/
|
|
36
|
-
get options(): ChoiceAttributeOptionCollection;
|
|
37
|
-
/**
|
|
38
|
-
* Getting all enabled options
|
|
39
|
-
*/
|
|
40
|
-
get selected(): Array<string>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieve list of selected options, joined with comma
|
|
43
|
-
*/
|
|
44
|
-
getValue(): string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Setting an option selected or unselected based on the current state
|
|
47
|
-
*/
|
|
48
|
-
toggleOption(code: string): void;
|
|
49
|
-
/**
|
|
50
|
-
* Enable a option
|
|
51
|
-
*/
|
|
52
|
-
enableOption(code: string): void;
|
|
53
|
-
/**
|
|
54
|
-
* Disable a option
|
|
55
|
-
*/
|
|
56
|
-
disableOption(code: string): void;
|
|
57
|
-
/**
|
|
58
|
-
* Update attribute by name and value
|
|
59
|
-
*/
|
|
60
|
-
update(value: any): BooleanAttributeModel;
|
|
61
|
-
/**
|
|
62
|
-
*/
|
|
63
|
-
getFormData(): {
|
|
64
|
-
[string]: boolean | null;
|
|
65
|
-
} | null;
|
|
66
|
-
}
|
|
67
|
-
import AttributeModel from "./AttributeModel";
|
|
68
|
-
import ChoiceAttributeOptionCollection from "./ChoiceAttributeOptionCollection";
|
|
69
|
-
import ContentConfigurationElements from "../contentconfiguration/ContentConfigurationElements";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Password attribute
|
|
3
|
-
*/
|
|
4
|
-
export default class CaptchaAttributeModel extends AttributeModel {
|
|
5
|
-
_answer: string;
|
|
6
|
-
/**
|
|
7
|
-
* Update the attribute by name and value
|
|
8
|
-
*/
|
|
9
|
-
update(value: string): this;
|
|
10
|
-
/**
|
|
11
|
-
*/
|
|
12
|
-
setAnswer(answer: string): void;
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve the given answer for the captcha
|
|
15
|
-
* The value of this attribute is the token id of the captcha
|
|
16
|
-
*/
|
|
17
|
-
getAnswer(): string;
|
|
18
|
-
}
|
|
19
|
-
import AttributeModel from "./AttributeModel";
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model for a choice attribute
|
|
3
|
-
*/
|
|
4
|
-
export default class ChoiceAttributeModel extends AttributeModel {
|
|
5
|
-
_options: ChoiceAttributeOptionCollection;
|
|
6
|
-
/**
|
|
7
|
-
*/
|
|
8
|
-
get optionType(): string;
|
|
9
|
-
/**
|
|
10
|
-
*/
|
|
11
|
-
get isUser(): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve lookup service link
|
|
14
|
-
*/
|
|
15
|
-
get lookupLink(): LinkModel | null;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieve lookup service as list link
|
|
18
|
-
*/
|
|
19
|
-
get lookupListLink(): LinkModel | null;
|
|
20
|
-
/**
|
|
21
|
-
*/
|
|
22
|
-
get lookupListLabel(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Retrieve available choice options
|
|
25
|
-
*/
|
|
26
|
-
get options(): ChoiceAttributeOptionCollection;
|
|
27
|
-
/**
|
|
28
|
-
* Getting all enabled options
|
|
29
|
-
*/
|
|
30
|
-
get selected(): Array<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieve list of selected options, joined with comma
|
|
33
|
-
*/
|
|
34
|
-
getValue(): string | null;
|
|
35
|
-
/**
|
|
36
|
-
* Setting an option selected or unselected based on the current state
|
|
37
|
-
*/
|
|
38
|
-
toggleOption(code: string): void;
|
|
39
|
-
/**
|
|
40
|
-
* Enable a option
|
|
41
|
-
*/
|
|
42
|
-
enableOption(code: string): void;
|
|
43
|
-
/**
|
|
44
|
-
* Disable a option
|
|
45
|
-
*/
|
|
46
|
-
disableOption(code: string): void;
|
|
47
|
-
/**
|
|
48
|
-
* Add a new option to the collection of lookup options
|
|
49
|
-
*/
|
|
50
|
-
addOption(option: Object): void;
|
|
51
|
-
/**
|
|
52
|
-
* Getting the type of choice filter. For instance checkbox, radiobutton, combobox.
|
|
53
|
-
*/
|
|
54
|
-
get choicetype(): "checkbox" | "radiobutton" | "combobox" | "list" | "listview" | "table" | "longlist" | "toggle";
|
|
55
|
-
/**
|
|
56
|
-
* Can multiple options be selected
|
|
57
|
-
*/
|
|
58
|
-
get isMultiple(): boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Check if options need to be rendered as tree
|
|
61
|
-
*/
|
|
62
|
-
get isTree(): boolean;
|
|
63
|
-
/**
|
|
64
|
-
*/
|
|
65
|
-
mergeAttribute(oldAttribute: AttributeType, addNotExistingOptions?: boolean, removeNotExistingOptions?: boolean): void;
|
|
66
|
-
/**
|
|
67
|
-
* Update attribute by name and value
|
|
68
|
-
*/
|
|
69
|
-
update(value: any): ChoiceAttributeModel;
|
|
70
|
-
/**
|
|
71
|
-
* Get content configuration configured on the attribute.
|
|
72
|
-
* Only applicable for taxonomy element and knowledge codemaps,
|
|
73
|
-
* content configuration for instrument questions is available on the form object
|
|
74
|
-
*/
|
|
75
|
-
get contentConfiguration(): ContentConfigurationElements | null;
|
|
76
|
-
/**
|
|
77
|
-
* Get placeholder text
|
|
78
|
-
*/
|
|
79
|
-
get placeholder(): string;
|
|
80
|
-
}
|
|
81
|
-
import AttributeModel from "./AttributeModel";
|
|
82
|
-
import ChoiceAttributeOptionCollection from "./ChoiceAttributeOptionCollection";
|
|
83
|
-
import LinkModel from "../links/LinkModel";
|
|
84
|
-
import { AttributeType } from "../types";
|
|
85
|
-
import ContentConfigurationElements from "../contentconfiguration/ContentConfigurationElements";
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export default ChoiceAttributeOptionCollection;
|
|
2
|
-
/**
|
|
3
|
-
*/
|
|
4
|
-
declare class ChoiceAttributeOptionCollection extends ResourceCollection<ChoiceAttributeOptionModel, any> {
|
|
5
|
-
/**
|
|
6
|
-
*/
|
|
7
|
-
static create(data?: Object, contributions?: Object, modelOptions?: ChoiceAttributeOptionModelOptions): ChoiceAttributeOptionCollection;
|
|
8
|
-
constructor(modelOptions?: ChoiceAttributeOptionModelOptions);
|
|
9
|
-
_modelOptions: ChoiceAttributeOptionModelOptions;
|
|
10
|
-
_headers: Array<ListHeaderModel>;
|
|
11
|
-
_sortOptions: boolean;
|
|
12
|
-
/**
|
|
13
|
-
*/
|
|
14
|
-
set sortOptions(sortOptions: boolean);
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
get sortOptions(): boolean;
|
|
18
|
-
/**
|
|
19
|
-
*/
|
|
20
|
-
getSelectedOptions(data: Object): Array<string>;
|
|
21
|
-
/**
|
|
22
|
-
*/
|
|
23
|
-
getOptionCount(code: string, options: Array<Object>): number | null;
|
|
24
|
-
/**
|
|
25
|
-
*/
|
|
26
|
-
addOptions(data: Object, contributions: Object): ChoiceAttributeOptionCollection;
|
|
27
|
-
/**
|
|
28
|
-
* Create options based on data and dynamischema
|
|
29
|
-
*/
|
|
30
|
-
addDynamicSchema(data: Object, contributions: Object): ChoiceAttributeOptionCollection;
|
|
31
|
-
/**
|
|
32
|
-
*/
|
|
33
|
-
addBooleanOption(code: "true" | "false", defaultLabel: string, data: string | Array<string>, options?: Array<Object>): void;
|
|
34
|
-
/**
|
|
35
|
-
* Create two static options for true and false,
|
|
36
|
-
* there might be alternative labels configured for each option value
|
|
37
|
-
*/
|
|
38
|
-
addBooleanOptions(value: any, contributions: Object): ChoiceAttributeOptionCollection;
|
|
39
|
-
/**
|
|
40
|
-
*/
|
|
41
|
-
addOption(data: string | Array<string>, contributions: Object): ChoiceAttributeOptionCollection;
|
|
42
|
-
/**
|
|
43
|
-
*/
|
|
44
|
-
getOptionByCode(code: string): ChoiceAttributeOptionModel | void;
|
|
45
|
-
/**
|
|
46
|
-
*/
|
|
47
|
-
hasOptionByCode(code: string): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Get all options that have selected property true
|
|
50
|
-
*/
|
|
51
|
-
get selected(): Array<ChoiceAttributeOptionModel>;
|
|
52
|
-
/**
|
|
53
|
-
* Deselect all options
|
|
54
|
-
*/
|
|
55
|
-
deselectAll(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Select an option by it's code
|
|
58
|
-
*/
|
|
59
|
-
select(optionCode: string): void;
|
|
60
|
-
/**
|
|
61
|
-
* Deselect an option by it's code
|
|
62
|
-
*/
|
|
63
|
-
deselect(optionCode: string): void;
|
|
64
|
-
/**
|
|
65
|
-
* Toggle an option by it's code
|
|
66
|
-
*/
|
|
67
|
-
toggle(optionCode: string, action: "select" | "deselect"): void;
|
|
68
|
-
/**
|
|
69
|
-
*/
|
|
70
|
-
setReferenceDate(date: ISO_DATE): Array<ChoiceAttributeOptionModel>;
|
|
71
|
-
/**
|
|
72
|
-
*/
|
|
73
|
-
set referenceDate(date: ISO_DATE);
|
|
74
|
-
/**
|
|
75
|
-
*/
|
|
76
|
-
addHeaders(headers: Array<Object>): void;
|
|
77
|
-
/**
|
|
78
|
-
*/
|
|
79
|
-
get headers(): Array<ListHeaderModel>;
|
|
80
|
-
/**
|
|
81
|
-
*/
|
|
82
|
-
mergeOptions(withOptions: ChoiceAttributeOptionCollection, addNotExistingOptions?: boolean, removeNotExistingOptions?: boolean): void;
|
|
83
|
-
}
|
|
84
|
-
import ChoiceAttributeOptionModel from "./ChoiceAttributeOptionModel";
|
|
85
|
-
import ResourceCollection from "../base/ResourceCollection";
|
|
86
|
-
import { ChoiceAttributeOptionModelOptions } from "./ChoiceAttributeOptionModel";
|
|
87
|
-
import ListHeaderModel from "../list/ListHeaderModel";
|