@clickview/curator 1.0.24 → 1.0.25-rc.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/.eslintrc.json +3 -0
- package/dist/curator-app.css +3 -3
- package/dist/curator-app.js +3 -3
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +10 -3
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +6 -2
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -0
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +1 -1
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
- package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +5 -1
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
- package/dist/libs/common/src/react/utils/TimeHelper.d.ts +1 -0
- package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +5 -2
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
- package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
- package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
- package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
- package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
- package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
- package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +34 -0
- package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +8 -3
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +2 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +2 -0
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +5 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +10 -1
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +9 -1
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/libs/shared/src/utils/StateHelper.d.ts +10 -9
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/projects/curator/src/apps/series/interfaces/data-requests/Series.d.ts +1 -2
- package/dist/projects/curator/src/apps/videos/interfaces/data-requests/UpdateVideoRequest.d.ts +1 -2
- package/dist/projects/curator/src/index.d.ts +21 -0
- package/dist/projects/curator/src/shared/components/forms/image-select/ImageSelect.d.ts +4 -3
- package/dist/projects/curator/src/shared/components/forms/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/components/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/components/rating-select/RatingSelect.d.ts +4 -4
- package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
- package/dist/projects/curator/src/shared/constants/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/interfaces/data-requests/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/layouts/curator-layout/CuratorLayoutView.d.ts +1 -1
- package/dist/projects/curator/src/shared/layouts/primitives/LayoutComponent.d.ts +1 -1
- package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/utils/PropHelper.d.ts +2 -1
- package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
- package/package.json +48 -47
- package/dist/curator-app.css.map +0 -1
- package/dist/curator-app.js.map +0 -1
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/Interactive.d.ts +0 -9
- package/dist/projects/curator/src/shared/components/forms/file-select/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/components/image-cropper/ImageCropper.d.ts +0 -10
- package/dist/projects/curator/src/shared/components/image-cropper/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/constants/FileExtensions.d.ts +0 -3
- package/dist/projects/curator/src/shared/context/ImageStorageContext.d.ts +0 -45
- package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/flight-requests/RatingRequests.d.ts +0 -4
- package/dist/projects/curator/src/shared/interfaces/data-requests/UpdateObjectRating.d.ts +0 -3
- package/dist/projects/curator/src/shared/services/ImageUploadDataService.d.ts +0 -8
- package/dist/projects/curator/src/shared/utils/ImageSelectHelper.d.ts +0 -6
- package/dist/projects/curator/src/shared/views/image-upload/ImageUploadView.d.ts +0 -8
- package/dist/projects/curator/src/shared/views/image-upload/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/views/index.d.ts +0 -1
package/dist/en.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","
|
|
1
|
+
{"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"audienceFilter":{"clear":"Clear"},"comingSoon":{"comingSoon":"Coming Soon","info1":"We are currently building this topic.","info2":"In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips","heading":"Featured video"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>New Playlist</strong> above to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos","lastUpdated":"Last updated: %{timeAgo}","notUpdatedRecently":"Last updated over a month ago"},"playlistSortSelect":{"recentlyUpdated":"Recently updated","atoz":"A to Z","ztoa":"Z to A","newest":"Newest","oldest":"Oldest"},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}},"shared":{"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"badges":{"interactive":"Interactive","resources":"Resources"},"channelFormField":{"channel":"Channel","placeholder":"Search for a channel..."},"confirmationPopup":{"confirm":"Confirm","cancel":"Cancel"},"curriculumLinks":{"curriculumLinks":"Curriculum Links","seeLess":"See less"},"editLink":{"linkNameExceeds":"Please provide a shorter name","linkNameRequired":"Please provide a name for your resource","linkUrlRequired":"Please provide a valid URL for your resource. e.g. https://example.com","linkUrlExceeds":"Please provide a shorter URL","urlLabel":"URL","urlPlaceholder":"Paste the URL to a resource here","nameLabel":"Name","namePlaceholder":"Display name","cancel":"Cancel"},"editResource":{"name":"Name","namePlaceholder":"Enter a name for this resource","nameTooLong":"Name is too long","nameRequired":"Name is required","cancel":"Cancel"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"editVideoLinks":{"heading":"Resource Links","description":"You may attach links to other learning resources related to this video.","attach":"Attach","limit":"There is a resource link limit of %{limit} links. To add another link please first remove one."},"editVideoResources":{"resourcesLimit":"There is a resource limit of %{limit} resources. To add another resource please first remove one.","customerResources":"My School's Learning Resources","clickViewResources":"Learning Resources by ClickView","resources":"Learning Resources","resourcesDescription":"Maximum file size 10MB. <span class='text-muted'>(Word, Excel, PowerPoint, pdf, text and images are supported.)</span>","resourcesAlternative":"or Drag and drop learning resources(s) to upload","clickViewResourcesEmpty":"There are no ClickView resources for this video"},"editVideoSubtitles":{"subtitlesLimit":"There is a subtitle limit of %{limit} subtitles. To add another subtitle please first remove one.","customerSubtitles":"My School's Subtitles","subtitles":"Subtitles","subtitlesDescription":"You can upload up to %{limit} subtitles. <span class='text-muted'>(.srt files are supported.)</span>","subtitlesAlternative":"or Drag and drop a subtitle file (*.srt) to upload","clickViewSubtitles":"Subtitles by ClickView","clickViewSubtitlesEmpty":"There are no ClickView subtitles for this video"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"imageSelect":{"minDimensions":"(Minimum dimensions are %{width}px x %{height}px)","uploadAThumbnail":"Upload a thumbnail"},"languageSelect":{"heading":"Select a language for your subtitle","placeholder":"Select a language","close":"Close","submit":"Submit","label":"Language"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","relatedTopics":"Related Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"interactiveWidgetItem":{"previewQuestions":"Preview Questions"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Topics","all":"Explore all topics"},"behaviors":{"fileDrop":{"fileDrop":"Drop files here to begin uploading"}},"_fileSelect":{"browse":"Browse for a file","drop":"Drop files here to begin uploading"},"_pagination":{"next":"Next","previous":"Previous"},"tooManyFiles":{"title":"Uploading many files","heading":"Many files selected","body":"Please only upload file at a time.","okay":"Okay"},"errors":{"tooManyResources":{"heading":"Too many resources.","body":"Cannot add more than %{resourceLimit} resource files to a video. Please remove some resources if you would like to add more.","okay":"Okay"},"tooManySubtitles":{"heading":"Too many subtitles","body":"Cannot add more than %{subtitleLimit} subtitle files to a video. Please remove some subtitles if you would like to add more.","okay":"Okay"}},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large","exchange":"Exchange","workspace":"Workspace","file":"File","zipArchive":"Zip archive","presentation":"Presentation","spreadsheet":"Spreadsheet","document":"Document","pdf":"PDF","image":"Image","autoGeneratedSubtitle":"%{name} (auto-generated)"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"},"deleteLinkView":{"heading":"Remove link?","body":"Are you sure you want to remove <strong>%{name}</strong>?","remove":"Remove","success":"Successfully removed link","error":"Failed to remove link. Please try again later."},"deleteResourceView":{"heading":"Remove learning resource?","body":"Are you sure you want to remove <strong>%{name}</strong>?","remove":"Remove","success":"Successfully removed resource","error":"Failed to remove resource. Please try again later."},"deleteSubtitleView":{"heading":"Remove subtitle?","body":"Are you sure you want to remove these subtitles: <strong>%{language}</strong>?","remove":"Remove","success":"Successfully removed subtitle","error":"Failed to remove subtitle. Please try again later."},"editLinkView":{"heading":"Edit link","success":"Successfully saved link","error":"Failed to save link. Please try again later."},"editResourceView":{"heading":"Edit learning resource","success":"Successfully updated resource","error":"Failed to update resource. Please try again later."}},"workspace":{"ratingSelect":{"rating":"Rating","removeRating":"Remove rating","removeRatingTitle":"Without a rating, this video will be viewable by all staff and students"}}}
|
|
@@ -60,6 +60,9 @@ export declare enum UserAction {
|
|
|
60
60
|
Favourite = "cv_product_favourite",
|
|
61
61
|
Follow = "cv_product_follow",
|
|
62
62
|
Prefer = "cv_product_prefer",
|
|
63
|
+
Print = "cv_product_print",
|
|
64
|
+
Copy = "cv_product_copy",
|
|
65
|
+
Activate = "cv_product_activate",
|
|
63
66
|
SetAccess = "cv_product_set_access",
|
|
64
67
|
AddToLocalCache = "cv_product_add_to_lc",
|
|
65
68
|
/**
|
|
@@ -117,6 +120,7 @@ export declare enum LocationContext {
|
|
|
117
120
|
VideoListItem = "video_list_item",
|
|
118
121
|
VideoListHeader = "video_header",
|
|
119
122
|
VideoThumbnail = "video_thumbnail",
|
|
123
|
+
ExpandableVideoThumbnail = "expandable_video_thumbnail",
|
|
120
124
|
VideoItemPreview = "video_item_preview",
|
|
121
125
|
VideoDetails = "video_details",
|
|
122
126
|
VideoDetailsHeader = "video_details_header",
|
|
@@ -139,8 +143,8 @@ export declare enum LocationContext {
|
|
|
139
143
|
MigrationWarnings = "migration_warnings",
|
|
140
144
|
PlaylistListHeader = "playlist_list_header",
|
|
141
145
|
PlaylistListItem = "playlist_list_item",
|
|
142
|
-
|
|
143
|
-
|
|
146
|
+
StaffManager = "staff_manager",
|
|
147
|
+
StaffManagerListItem = "staff_manager_list_item",
|
|
144
148
|
StudentManager = "student_manager",
|
|
145
149
|
StudentManagerListItem = "student_manager_list_item",
|
|
146
150
|
ClassroomsList = "classrooms_list",
|
|
@@ -152,6 +156,7 @@ export declare enum LocationContext {
|
|
|
152
156
|
ManageClassroomGroups = "manage_classroom_groups",
|
|
153
157
|
ManageClassroomGroupListItem = "manage_classroom_group_list_item",
|
|
154
158
|
PlayPage = "play_page",
|
|
159
|
+
Player = "player",
|
|
155
160
|
FloatingPlayer = "floating_player",
|
|
156
161
|
InteractivePlayer = "interactive_player",
|
|
157
162
|
EmbeddedPlayer = "embedded_player",
|
|
@@ -163,6 +168,7 @@ export declare enum LocationContext {
|
|
|
163
168
|
SlidingListItem = "sliding_list_item",
|
|
164
169
|
ClassificationListItem = "classification_list_item",
|
|
165
170
|
ClassificationComingSoon = "classification_coming_soon",
|
|
171
|
+
ClassificationHero = "classification_hero",
|
|
166
172
|
Dashboard = "dashboard"
|
|
167
173
|
}
|
|
168
174
|
export declare enum WorkflowPhase {
|
|
@@ -277,7 +283,8 @@ export declare enum SuggestionDescriptor {
|
|
|
277
283
|
export declare enum AssocDescriptor {
|
|
278
284
|
Image = "image",
|
|
279
285
|
User = "user",
|
|
280
|
-
Playlist = "playlist"
|
|
286
|
+
Playlist = "playlist",
|
|
287
|
+
Link = "link"
|
|
281
288
|
}
|
|
282
289
|
export declare enum ToggleDescriptor {
|
|
283
290
|
On = "on",
|
|
@@ -7,6 +7,10 @@ import { MiddlewareFunction } from './Middleware';
|
|
|
7
7
|
export interface ExecuteRouteOptions {
|
|
8
8
|
isAppRoute: boolean;
|
|
9
9
|
}
|
|
10
|
+
export interface FilterOptions {
|
|
11
|
+
appLink: AppLink;
|
|
12
|
+
shell: Shell;
|
|
13
|
+
}
|
|
10
14
|
/**
|
|
11
15
|
* This should only ever be used by the shell
|
|
12
16
|
* creating a new instance of the AppRoute
|
|
@@ -46,7 +50,7 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
|
|
|
46
50
|
* They can be used to prevent access to a router using
|
|
47
51
|
* asyncronous code.
|
|
48
52
|
*/
|
|
49
|
-
protected filters: MiddlewareFunction<
|
|
53
|
+
protected filters: MiddlewareFunction<FilterOptions>[];
|
|
50
54
|
/**
|
|
51
55
|
* See BaseAppRouterOptions above.
|
|
52
56
|
*/
|
|
@@ -95,5 +99,5 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
|
|
|
95
99
|
private toMethodName;
|
|
96
100
|
private validateAppLink;
|
|
97
101
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
98
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
102
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
99
103
|
}
|
|
@@ -72,5 +72,5 @@ export declare class BaseApplication extends Marionette.Application {
|
|
|
72
72
|
protected setDefaultQueryParams(params: ObjectHash): void;
|
|
73
73
|
getAndClearDefaultQueryParams(): ObjectHash;
|
|
74
74
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
75
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
75
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
76
76
|
}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import * as Marionette from 'backbone.marionette';
|
|
3
3
|
export declare class BaseBehavior extends Marionette.Behavior {
|
|
4
4
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
5
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
5
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
6
6
|
}
|
|
@@ -3,5 +3,5 @@ import { BaseModel } from './BaseModel';
|
|
|
3
3
|
export declare class BaseCollection<TModel extends BaseModel = BaseModel> extends Backbone.Collection<TModel> {
|
|
4
4
|
parent?: BaseModel | BaseCollection;
|
|
5
5
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
6
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
6
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
7
7
|
}
|
|
@@ -12,5 +12,5 @@ export declare class BaseCollectionView<TModel extends BaseModel = BaseModel, TV
|
|
|
12
12
|
serializeModel(): any;
|
|
13
13
|
serializeCollection(): any[];
|
|
14
14
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
15
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
15
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
16
16
|
}
|
|
@@ -6,6 +6,6 @@ export interface BaseLayoutViewOptions extends BaseViewOptions {
|
|
|
6
6
|
export declare class BaseLayoutView extends BaseView {
|
|
7
7
|
protected options: BaseLayoutViewOptions;
|
|
8
8
|
constructor(options: BaseLayoutViewOptions);
|
|
9
|
-
static getCacheKey(options
|
|
9
|
+
static getCacheKey(options?: BaseLayoutViewOptions): string;
|
|
10
10
|
unmountRegion(regionName: string): void;
|
|
11
11
|
}
|
|
@@ -23,5 +23,5 @@ export declare class BaseModel extends Backbone.Model {
|
|
|
23
23
|
preValidate: (attr: any, value: any) => any;
|
|
24
24
|
validate(attributes?: any, options?: any): any;
|
|
25
25
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
26
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
26
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
27
27
|
}
|
|
@@ -12,7 +12,7 @@ export declare class BaseNestedModel extends BaseModel {
|
|
|
12
12
|
protected associations: {
|
|
13
13
|
[name: string]: Association;
|
|
14
14
|
};
|
|
15
|
-
set(key: string |
|
|
15
|
+
set(key: string | ObjectHash, value?: any | ModelSetOptions, options?: BaseNestedModelOptions): BaseNestedModel;
|
|
16
16
|
get(attributeName: string): any;
|
|
17
17
|
setAssociation(key: string, value: any, options: BaseNestedModelOptions): BaseModel | BaseCollection<BaseModel>;
|
|
18
18
|
toJSON(...args: any[]): ObjectHash;
|
|
@@ -6,5 +6,5 @@ export declare class BaseService extends Marionette.Object {
|
|
|
6
6
|
name: string;
|
|
7
7
|
constructor(options?: BaseServiceOptions);
|
|
8
8
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
9
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
9
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
10
10
|
}
|
|
@@ -74,7 +74,7 @@ export declare class CoreView<TModel extends BaseModel = BaseModel> extends Mari
|
|
|
74
74
|
constructor(options?: BaseViewOptions<TModel>);
|
|
75
75
|
appLinks: AppLinkHash;
|
|
76
76
|
normalizeUIKeys: (hash: UIHash) => UIHash;
|
|
77
|
-
static AddViewDataExtension(ext:
|
|
77
|
+
static AddViewDataExtension(ext: (...args: any) => any | Backbone.ObjectHash): void;
|
|
78
78
|
serializeModel(): any;
|
|
79
79
|
serializeCollection(): any[];
|
|
80
80
|
/**
|
|
@@ -99,7 +99,7 @@ export declare class CoreView<TModel extends BaseModel = BaseModel> extends Mari
|
|
|
99
99
|
private hasPartialLoadingRegions;
|
|
100
100
|
protected renderPartialLoading(region?: string): void;
|
|
101
101
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
102
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
102
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
103
103
|
render(): CoreView<TModel>;
|
|
104
104
|
/** backbone.stickit stuff that is mixed in at run time.
|
|
105
105
|
*
|
|
@@ -27,5 +27,5 @@ export declare class LayoutService extends Marionette.Object {
|
|
|
27
27
|
*/
|
|
28
28
|
private checkRequiredRegions;
|
|
29
29
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
30
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
30
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
31
31
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="backbone" />
|
|
2
|
-
declare function ListenToRadio(obj: string | Backbone.Events, events: string, callback:
|
|
2
|
+
declare function ListenToRadio(obj: string | Backbone.Events, events: string, callback: (...args: any) => any, originalListenTo: (...args: any) => any): any;
|
|
3
3
|
export { ListenToRadio };
|
|
@@ -74,6 +74,6 @@ export declare class Shell extends Marionette.Application {
|
|
|
74
74
|
store: Store;
|
|
75
75
|
registerStore(store: Store): void;
|
|
76
76
|
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
77
|
-
listenTo(obj: string | Backbone.Events, events: string, callback:
|
|
77
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
78
78
|
}
|
|
79
79
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AppLink, AppLinkOptions, AppLinkHash, AppLinkHelper, AppLinkUtility } from './AppLink';
|
|
2
2
|
export { BaseApplication as Application } from './BaseApplication';
|
|
3
|
-
export { BaseAppRouter as AppRouter, ExecuteRouteOptions } from './BaseAppRouter';
|
|
3
|
+
export { BaseAppRouter as AppRouter, ExecuteRouteOptions, FilterOptions } from './BaseAppRouter';
|
|
4
4
|
export { BaseBehavior as Behavior } from './BaseBehavior';
|
|
5
5
|
export { BaseCollection as Collection } from './BaseCollection';
|
|
6
6
|
export { BaseCollectionView as CollectionView, BaseCollectionViewOptions as CollectionViewOptions, BaseCollectionView as ComponentCollection, BaseCollectionViewOptions as ComponentCollectionOptions, } from './BaseCollectionView';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { HashObject } from "../../react/interfaces";
|
|
2
3
|
export interface BaseCollectionIdentifierOptions<T> {
|
|
3
4
|
collectionPrefix?: string;
|
|
4
5
|
id?: string;
|
|
5
6
|
sort?: T;
|
|
6
7
|
cursor?: string;
|
|
7
8
|
}
|
|
8
|
-
export declare class BaseCollectionIdentifier<T =
|
|
9
|
+
export declare class BaseCollectionIdentifier<T = HashObject> {
|
|
9
10
|
id: string;
|
|
10
11
|
sort: T;
|
|
11
12
|
cursor: string;
|
|
@@ -9,7 +9,7 @@ export interface DataProviderResponseOptions {
|
|
|
9
9
|
export interface DataProvider extends Marionette.Object {
|
|
10
10
|
parseError(...args: any[]): DataServiceError;
|
|
11
11
|
create<T>(resource: string, obj: T, options: DataProviderResponseOptions): void;
|
|
12
|
-
read
|
|
12
|
+
read(resource: string, options: DataProviderResponseOptions): void;
|
|
13
13
|
update<T>(resource: string, obj: T, options: DataProviderResponseOptions): void;
|
|
14
14
|
delete(resource: string, options: DataProviderResponseOptions): void;
|
|
15
15
|
}
|
|
@@ -16,7 +16,7 @@ declare class StaticLanguageService extends BaseService {
|
|
|
16
16
|
get name(): string;
|
|
17
17
|
setConfig(config: LanguageConfig): void;
|
|
18
18
|
getPhrase(namespace: string, phraseKey: string, options?: LanguageInterpolationOptions): string;
|
|
19
|
-
encloseNamespace(namespace: string):
|
|
19
|
+
encloseNamespace(namespace: string): (phraseKey: string, options?: LanguageInterpolationOptions) => string;
|
|
20
20
|
}
|
|
21
21
|
export declare const LanguageService: StaticLanguageService;
|
|
22
22
|
export {};
|
|
@@ -26,6 +26,6 @@ export declare class AjaxDataProvider extends Marionette.Object implements DataP
|
|
|
26
26
|
delete(resource: string, options: DataProviderResponseOptions): void;
|
|
27
27
|
useMiddleware(name: string, callback: MiddlewareCallback): void;
|
|
28
28
|
useErrorMiddleware(name: string, callback: MiddlewareCallback): void;
|
|
29
|
-
parseError(jqXHR: JQuery.jqXHR
|
|
29
|
+
parseError(jqXHR: JQuery.jqXHR): DataServiceError;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _ from 'underscore';
|
|
2
2
|
export declare const FunctionHelper: {
|
|
3
|
-
debounce<T extends
|
|
4
|
-
throttle<T_1 extends
|
|
3
|
+
debounce<T extends (...args: any) => any>(fn: T, wait: number, immediate?: boolean): T & _.Cancelable;
|
|
4
|
+
throttle<T_1 extends (...args: any) => any>(fn: T_1, wait: number, options?: _.ThrottleSettings): T_1 & _.Cancelable;
|
|
5
5
|
isFunction(object: any): object is Function;
|
|
6
6
|
useIdentity<T_2>(): (...args: any[]) => T_2;
|
|
7
|
-
memoize<T_3 =
|
|
7
|
+
memoize<T_3 = (...args: any) => any>(fn: T_3, hashFn?: (...args: any[]) => string): T_3;
|
|
8
8
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare enum StorageType {
|
|
2
|
+
LocalStorage = "localStorage",
|
|
3
|
+
SessionStorage = "sessionStorage"
|
|
4
|
+
}
|
|
5
|
+
export interface StorageHelper {
|
|
6
|
+
get(key: string): any;
|
|
7
|
+
set(key: string, data: any): boolean;
|
|
8
|
+
remove(key: string): any;
|
|
9
|
+
length(): number;
|
|
10
|
+
clear(): any;
|
|
11
|
+
cacheSet(key: string, data: any, expire?: number): any;
|
|
12
|
+
cacheGet(key: string): any;
|
|
13
|
+
cacheExists(key: string): boolean;
|
|
14
|
+
cacheRemove(key: string): any;
|
|
15
|
+
cacheFlush(): void;
|
|
16
|
+
}
|
|
17
|
+
interface StaticBaseStorageHelperOptions {
|
|
18
|
+
type: StorageType;
|
|
19
|
+
}
|
|
20
|
+
declare abstract class StaticBaseStorageHelper implements StorageHelper {
|
|
21
|
+
private cachePrefix;
|
|
22
|
+
private expireTime;
|
|
23
|
+
private hasSupport;
|
|
24
|
+
private storage;
|
|
25
|
+
protected type: StorageType;
|
|
26
|
+
protected constructor(options: StaticBaseStorageHelperOptions);
|
|
27
|
+
get(key: string): any;
|
|
28
|
+
set(key: string, data: any): boolean;
|
|
29
|
+
remove(key: string): void;
|
|
30
|
+
length(): number;
|
|
31
|
+
clear(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Caching Ops
|
|
34
|
+
*/
|
|
35
|
+
cacheSet(key: string, data: any, expire?: number): boolean;
|
|
36
|
+
cacheGet(key: string): any;
|
|
37
|
+
cacheExists(key: string): boolean;
|
|
38
|
+
cacheRemove(key: string): void;
|
|
39
|
+
cacheFlush(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Privates
|
|
42
|
+
*/
|
|
43
|
+
private cacheClean;
|
|
44
|
+
private isExpired;
|
|
45
|
+
private getCurrentTime;
|
|
46
|
+
private hasBrowserSupport;
|
|
47
|
+
}
|
|
48
|
+
declare class StaticLocalStorageHelper extends StaticBaseStorageHelper {
|
|
49
|
+
protected static instance: StaticLocalStorageHelper;
|
|
50
|
+
static get Instance(): StaticLocalStorageHelper;
|
|
51
|
+
}
|
|
52
|
+
declare class StaticSessionStorageHelper extends StaticBaseStorageHelper {
|
|
53
|
+
protected static instance: StaticSessionStorageHelper;
|
|
54
|
+
static get Instance(): StaticSessionStorageHelper;
|
|
55
|
+
}
|
|
56
|
+
export declare const LocalStorageHelper: StaticLocalStorageHelper;
|
|
57
|
+
export declare const SessionStorageHelper: StaticSessionStorageHelper;
|
|
58
|
+
export {};
|
|
@@ -4,7 +4,7 @@ export declare function emptyResponse<T>(): Response<T>;
|
|
|
4
4
|
export declare function getResponse<T>(state: ApplicationState, key: string): Response<T>;
|
|
5
5
|
export declare function getFetch(dispatch: Dispatch, request: Request): () => void;
|
|
6
6
|
export declare function fetch(dispatch: Dispatch, request: Request): void;
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function hooklessFetch(dispatch: Dispatch, state: ApplicationState, request: Request): void;
|
|
8
8
|
export declare function useGetFetch(request: Request): () => void;
|
|
9
9
|
interface GetResponseOptions {
|
|
10
10
|
optimize: boolean;
|
|
@@ -7,5 +7,5 @@ interface MiddlewareOptions {
|
|
|
7
7
|
bootstrappedData?: HashObject;
|
|
8
8
|
defaultExpiryTime?: number;
|
|
9
9
|
}
|
|
10
|
-
export declare function createMiddleware(options: MiddlewareOptions): Middleware<
|
|
10
|
+
export declare function createMiddleware(options: MiddlewareOptions): Middleware<HashObject, ApplicationState, Dispatch<AnyAction>>;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { StorageType } from "../../backbone/utils/LocalStorageHelper";
|
|
1
2
|
declare type IUseViewModel<T> = [T, // State
|
|
2
3
|
(dataOrKey: T | keyof T, keyData?: any) => void];
|
|
3
|
-
|
|
4
|
+
interface ViewModelOptions {
|
|
5
|
+
storage?: StorageType;
|
|
6
|
+
}
|
|
7
|
+
export declare const useViewModel: <T = any>(viewModelKey: string, initialState?: T, options?: ViewModelOptions) => IUseViewModel<T>;
|
|
4
8
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as _ from 'underscore';
|
|
3
|
+
import { HashObject } from '../interfaces';
|
|
3
4
|
declare type Iterator<T, TResult = T> = (value: T, index: number, list: T[]) => TResult;
|
|
4
5
|
export declare const ArrayHelper: {
|
|
5
6
|
first<T>(arr: T[]): T;
|
|
@@ -11,8 +12,8 @@ export declare const ArrayHelper: {
|
|
|
11
12
|
moveItem<T_6>(arr: T_6[], fromIdx: number, toIdx: number): T_6[];
|
|
12
13
|
isEmpty<T_7>(arr: T_7[]): boolean;
|
|
13
14
|
findIndex<T_8>(arr: T_8[], predicate: (item: T_8) => boolean): number;
|
|
14
|
-
findWhere<T_9, U extends
|
|
15
|
-
where<T_10, U_1 extends
|
|
15
|
+
findWhere<T_9, U extends HashObject<any>>(arr: T_9[], properties: U): T_9;
|
|
16
|
+
where<T_10, U_1 extends HashObject<any>>(arr: T_10[], properties: U_1): T_10[];
|
|
16
17
|
groupBy<T_11>(arr: T_11[], property: string): {
|
|
17
18
|
[index: string]: T_11[];
|
|
18
19
|
};
|
|
@@ -37,7 +38,7 @@ export declare const ArrayHelper: {
|
|
|
37
38
|
* @param arr array of values
|
|
38
39
|
* @param iteratee an iterator function or a string name of the property to sort by.
|
|
39
40
|
*/
|
|
40
|
-
sortBy<T_16 extends
|
|
41
|
+
sortBy<T_16 extends HashObject<any>, TSort = T_16>(arr: T_16[], iteratee?: Iterator<T_16, TSort> | keyof T_16): T_16[];
|
|
41
42
|
chunk<T_17>(array: _.Collection<T_17>, count: number): T_17[][];
|
|
42
43
|
uniq<T_18>(array: _.List<T_18>): T_18[];
|
|
43
44
|
};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ButtonProps } from 'react-bootstrap';
|
|
2
3
|
import { PopupViewProps } from "../../interfaces";
|
|
3
4
|
interface ConfirmationPopupProps {
|
|
4
5
|
title: string;
|
|
5
6
|
onClickConfirm: () => void;
|
|
6
7
|
confirmButtonText?: string;
|
|
7
8
|
cancelButtonText?: string;
|
|
9
|
+
confirmButtonVariant?: ButtonProps['variant'];
|
|
10
|
+
cancelButtonVariant?: ButtonProps['variant'];
|
|
8
11
|
}
|
|
9
12
|
declare type PropTypes = React.PropsWithChildren<ConfirmationPopupProps & PopupViewProps>;
|
|
10
13
|
export declare function ConfirmationPopup(props: PropTypes): React.ReactElement;
|
|
11
14
|
export declare namespace ConfirmationPopup {
|
|
12
15
|
var defaultProps: {
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
confirmButtonVariant: string;
|
|
17
|
+
cancelButtonVariant: string;
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from 'react-bootstrap';
|
|
3
|
+
import { HashObject } from "../../../../../common/src/react/interfaces";
|
|
3
4
|
interface FormButtonsProps {
|
|
4
5
|
isNew: boolean;
|
|
5
6
|
hasNext?: boolean;
|
|
6
7
|
submitText?: string;
|
|
7
8
|
variant?: ButtonProps['variant'];
|
|
8
9
|
}
|
|
9
|
-
export declare function FormButtons<Values extends
|
|
10
|
+
export declare function FormButtons<Values extends HashObject>(props: FormButtonsProps): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -4,4 +4,4 @@ import { FormFieldProps } from '../form-field/FormField';
|
|
|
4
4
|
/**
|
|
5
5
|
* Use this checkbox within Formik contexts
|
|
6
6
|
*/
|
|
7
|
-
export declare function FormCheckbox
|
|
7
|
+
export declare function FormCheckbox(props: FieldAttributes<FormFieldProps>): JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { HashObject } from "../../../../../common/src/react/interfaces";
|
|
3
|
+
interface CharacterCounterProps<Values extends HashObject> {
|
|
3
4
|
fieldName: keyof Values;
|
|
4
5
|
limit: number;
|
|
5
6
|
}
|
|
6
|
-
export declare function CharacterCounter<Values extends
|
|
7
|
+
export declare function CharacterCounter<Values extends HashObject>(props: CharacterCounterProps<Values>): JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FieldAttributes, FieldProps } from 'formik';
|
|
3
|
-
|
|
3
|
+
import { HashObject } from "../../../../../common/src/react/interfaces";
|
|
4
|
+
export interface FormFieldProps {
|
|
4
5
|
/**
|
|
5
6
|
* The name prop MUST be the same as the attribute
|
|
6
7
|
* name of the value that the field is bound to.
|
|
@@ -10,7 +11,7 @@ export interface FormFieldProps<Values extends object> {
|
|
|
10
11
|
children?: ((props: FieldProps) => React.ReactNode) | React.ReactNode;
|
|
11
12
|
showCharacterCounter?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare function FieldWrapper
|
|
14
|
+
export declare function FieldWrapper(props: FieldAttributes<FormFieldProps> & {
|
|
14
15
|
className: string;
|
|
15
16
|
}): React.ReactElement;
|
|
16
|
-
export declare function FormField<Values extends
|
|
17
|
+
export declare function FormField<Values extends HashObject>(props: FieldAttributes<FormFieldProps>): React.ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormikValues, FormikConfig, FormikContextType } from 'formik';
|
|
3
|
+
import { HashObject } from "../../../../../common/src/react/interfaces";
|
|
3
4
|
declare type ModifiedFormikConfig<Values extends FormikValues> = Omit<FormikConfig<Values>, 'initialValues' | 'onSubmit'>;
|
|
4
5
|
interface FormWrapperProps<FormValues extends FormikValues, ApiValues extends FormikValues> {
|
|
5
6
|
initialValues: FormValues | ApiValues;
|
|
@@ -9,7 +10,7 @@ interface FormWrapperProps<FormValues extends FormikValues, ApiValues extends Fo
|
|
|
9
10
|
allowInitialSubmit?: boolean;
|
|
10
11
|
resetOnSubmit?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare function FormWrapper<FormValues extends FormikValues = FormikValues, ApiValues extends FormikValues = FormikValues, ExtraProps =
|
|
13
|
+
export declare function FormWrapper<FormValues extends FormikValues = FormikValues, ApiValues extends FormikValues = FormikValues, ExtraProps = HashObject>(props: ModifiedFormikConfig<FormValues> & ExtraProps & FormWrapperProps<FormValues, ApiValues>): JSX.Element;
|
|
13
14
|
export declare namespace FormWrapper {
|
|
14
15
|
var defaultProps: {
|
|
15
16
|
castInitialValues: boolean;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { HashObject } from "../../../../common/src/react/interfaces";
|
|
3
|
+
import { Core } from "../../../../common/src/backbone";
|
|
4
|
+
import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
|
|
5
|
+
export interface HeaderButton {
|
|
6
|
+
appLink?: Core.AppLink;
|
|
7
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
8
|
+
svgName?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
showSpinner?: boolean;
|
|
12
|
+
analyticsData?: HashObject;
|
|
13
|
+
analyticsOptions?: AnalyticsOptions;
|
|
14
|
+
}
|
|
2
15
|
interface PopupProps {
|
|
3
16
|
title?: string;
|
|
4
17
|
closeButton?: boolean;
|
|
@@ -6,6 +19,7 @@ interface PopupProps {
|
|
|
6
19
|
onEntered?: () => void;
|
|
7
20
|
size?: 'sm' | 'lg' | 'xl';
|
|
8
21
|
showLoadingSpinner?: boolean;
|
|
22
|
+
headerButtons?: HeaderButton[];
|
|
9
23
|
}
|
|
10
24
|
export declare function Popup(props: React.PropsWithChildren<PopupProps>): React.ReactElement;
|
|
11
25
|
export declare namespace Popup {
|