4246 Commits

Author SHA1 Message Date
Victor Woeltjen
f06f714bdc [API] Document some public fields 2016-09-02 15:02:18 -07:00
Victor Woeltjen
d592bd1035 [API] Give up on borrows-style documentation 2016-09-02 14:58:06 -07:00
Victor Woeltjen
b5f62541ce [API] Add watch for API docs 2016-09-02 14:54:27 -07:00
Victor Woeltjen
33ced4bccf [API] Expose MCT on openmct 2016-09-01 15:51:25 -07:00
Victor Woeltjen
e37510dbab [API] Ignore internal API after processing 2016-09-01 15:13:52 -07:00
Victor Woeltjen
f27c41014d [API] JSDoc for openmct.start() 2016-09-01 14:50:18 -07:00
Victor Woeltjen
bd796f2beb [API] Simple constructor documentation 2016-09-01 14:44:24 -07:00
Victor Woeltjen
bcc32c76d0 [API] Module-level JSDoc 2016-09-01 14:42:55 -07:00
Victor Woeltjen
ff2ec6690a [API] Rename module to openmct 2016-09-01 14:35:52 -07:00
Victor Woeltjen
1e0fb3611d [API] Render API docs to HTML 2016-09-01 12:34:54 -07:00
Victor Woeltjen
1d4f36a7d9 [API] Include JSDoc for mct namespace only 2016-08-26 11:48:27 -07:00
Victor Woeltjen
0f96fbdd62 [API] Treat mct as a namespace 2016-08-26 11:31:56 -07:00
Victor Woeltjen
e05fb57fe4 [API] Quasi-sensible JSDoc starting point 2016-08-26 09:47:50 -07:00
Victor Woeltjen
185cdcab08 [API] Begin adding mct.js
...which will provide an instance of OpenMCT at startup,
as well as house documentation for entry point to public API.
2016-08-26 09:31:12 -07:00
Victor Woeltjen
50ccad5aaa [API] Rename MCT to OpenMCT 2016-08-26 09:26:12 -07:00
Victor Woeltjen
6a23df9454 [API] Add JSDoc for MCT 2016-08-25 14:54:07 -07:00
Victor Woeltjen
ab5b1d3754 [API] Add JSDoc task 2016-08-25 13:49:21 -07:00
Victor Woeltjen
b309f26b56 [API] Add gulp-jsdoc-to-markdown dep
...to aid in generating API docs as a measure of API completeness
and consistency, for #1110 and #1111
2016-08-25 13:38:44 -07:00
Victor Woeltjen
b4dc50295c Merge pull request #1131 from nasa/open1094
Resolve synchronization issues with MutableObject
2016-08-25 13:26:50 -07:00
Victor Woeltjen
382dde300a Merge remote-tracking branch 'origin/api-tutorials' into open1094
Conflicts:
	index.html
	tutorials/todo/todo.js
2016-08-25 13:25:54 -07:00
Victor Woeltjen
02aa08a3ef Merge pull request #1121 from nasa/api-containment
[API] Containment
2016-08-25 13:19:14 -07:00
Victor Woeltjen
c95d9c7956 Merge pull request #1107 from nasa/api-type-forms
[API] Handle forms with a "properties" region
2016-08-25 13:17:26 -07:00
Andrew Henry
b1b8df4d87 Use MutationCapability 2016-08-23 13:57:12 +01:00
Andrew Henry
bd3c6665fb Added bridge between old and new event models 2016-08-22 16:14:01 +01:00
Pete Richards
10e90519c0 Tidy todo views, remove unnecessary code 2016-08-22 16:10:45 +01:00
Pete Richards
d341a8be97 Selection changes include new selection 2016-08-22 16:10:45 +01:00
Andrew Henry
8c439d8109 Adding compatibility between old and new style mutation events 2016-08-22 07:59:17 +01:00
Henry
9c88b7ce1d Removed setters from MutableObject and fixed non-working todo list tutorial
Refactoring MutableObject

Fixed non-working todo example
2016-08-19 13:39:23 -07:00
Victor Woeltjen
2463e4d59f [API] Update Dialog API usage 2016-08-12 12:54:39 -07:00
Victor Woeltjen
d73c505bea [API] Fix typo, add missing this 2016-08-12 11:17:00 -07:00
Victor Woeltjen
831ecc59d9 [API] Wire in canContain via policy 2016-08-12 10:24:59 -07:00
Victor Woeltjen
1de26d3c5d [API] Throw error on containment violation 2016-08-12 09:30:02 -07:00
Victor Woeltjen
11409ce509 [API] Add containment methods 2016-08-12 09:27:46 -07:00
Victor Woeltjen
93872ce074 [API] Expose Dialog as constructor
...and use it that way from todo plugin
2016-08-11 16:04:26 -07:00
Victor Woeltjen
8861644f2d [API] Adjust Dialog API
...to allow OK button to be enabled/disabled.
2016-08-11 16:02:04 -07:00
Victor Woeltjen
d4948f771b Merge branch 'api-todo-update' into api-type-forms 2016-08-11 15:31:11 -07:00
Victor Woeltjen
8295a0bed1 [API] Update todo tutorial
...to expect new domain object API (instead of explicitly
wrapping it.)
2016-08-11 15:29:46 -07:00
Victor Woeltjen
0656a298da [API] Remove test usage of properties region 2016-08-04 14:00:48 -07:00
Victor Woeltjen
fe2ce91d50 [API] Show a custom view in dialog 2016-07-28 16:16:23 -07:00
Victor Woeltjen
14f30b2489 [API] Restrict dialog overrides
...to those domain objects which have some view for the
properties region registered.
2016-07-28 16:05:02 -07:00
Victor Woeltjen
62d90a8114 [API] Show dialog via mct 2016-07-28 15:57:15 -07:00
Victor Woeltjen
87682607a5 [API] Rename dependency in adapter layer 2016-07-28 15:53:07 -07:00
Victor Woeltjen
7bf265b478 [API] Move mct service up 2016-07-28 15:52:52 -07:00
Victor Woeltjen
1d31fe8d02 [API] Override dialogService in actions
An ugly hack to allow dialogs to be shown for Save As
and Edit Properties, without requiring form generation.
This will permit views to be shown instead in certain
cases, https://github.com/nasa/openmct/pull/999#issuecomment-236045158
2016-07-28 15:48:30 -07:00
Victor Woeltjen
bfdbc71e40 [API] Define a properties region 2016-07-28 15:34:03 -07:00
Pete Richards
1147f3aa47 tutorials: support arbitrary hosting directory (#1097)
* Include all bundles in artifact

change bundle registry such that all bundles are immediately registered,
but must be specifically enabled.  A default registry class enables bundles
that make sense for demonstration purposes.

Added methods to the registry to allow enabling and disabling of bundles
without having to load additional files.

* support alternate asset/worker paths

Change the gulp glob for assets to copy over a more minimal
set of files-- only css, fonts, and images.  Results in a
smaller distributable archive.

Update stylesheet loader to use a constant for the assets path.

This can be customized at run time via MCT.setAssetPath() to
allow MCT to be hosted in various locations.

Update worker loader to support loading workers from blobs to
support packaging as standalone file.

* Load templates via requirejs

* [gulp] lazy-require where reasonable

Require things right before starting tasks to reduce gulp start up time.

* document setAssetPath
2016-07-25 14:38:44 -07:00
Victor Woeltjen
719f9f45e8 [API] Add documentation for selection state (#1096) 2016-07-22 14:09:31 -07:00
Victor Woeltjen
95ef70a24c [API] Use selection state from toolbar (#1070)
* [API] Allow selection

* [API] Keep in sync using model

* [API] Add selection as EventEmitter

* [API] Use selection from ToDo tutorial

* [API] Restore selection functionality
2016-07-22 13:56:45 -07:00
Pete Richards
d5aa998b4c [API] Draft Composition API (#1068)
* [Objects] util for equality checking

Add a method for checking object equality, useful for other services.

* [Composition] Draft Composition API

Draft composition API.  Composition collections provide an observable
for watching and mutating the composition of an object.

Composition providers implement the loading and modification of composition.

The default composition provider uses the composition attribute of
domain objects, while allowing other providers to implement their
own loading and mutation behavior.

* add todo about event listener bindings

* [Type] Add form property for defining form fields

* [tutorial] Add Composition tutorial

* provider doesn't have to implement events, load returns array of children

* use new composition in old api

* correct key name

* Override instantiate to provide model ids

Override instantiate in public API adapter to prevent making changes to
platform code.  Instantiate now passes the id of the domain object with the
model so that capabilities can convert to a new-style domain object and use
that to detect functionality.

* Implement mutation capability with decorator

Implementation mutation capability override with decorator to adapter code
outside of platform.  Capability override ensures that models are kept in
sync even though they are no longer shared objects.

* override composition cleanly

Override composition capability without making changes inside platform.

* cleanup after temporary collections

* remove unused try/catch
2016-07-22 13:53:03 -07:00
Pete Richards
7890fcae69 tutorial consistency . (#1079)
* [API] use new-style objects consistently

* rewrite todo tutorial in test-api.html

* [API] Add API doc, update object API

* [Tutorials] Rename tutorials, remove old

* Fix Links

* updates

* initial

* hope this works

* Object Utils always return new objects instead of mutating existing objects

* keep domain object model in-sync when listening

Keep the domain object model in sync with the latest version when
listening for mutation events.

* Remove old-style plugins

* Update views to use new API

* Tidy Code

* Update API Docs

* Add Plugin API and Example
2016-07-21 14:39:02 -07:00