Compare commits

...

4 Commits

803 changed files with 63055 additions and 51582 deletions

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/EventTelemetryProvider" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
EventTelemetryProvider * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventTelemetryProvider from './src/EventTelemetryProvider';
"use strict"; "use strict";
return { export default {
name: "example/eventGenerator", name: "example/eventGenerator",
definition: { definition: {
"name": "Event Message Generator", "name": "Event Message Generator",
@ -77,4 +96,3 @@ define([
} }
} }
}; };
});

View File

@ -25,9 +25,35 @@
* Created by chacskaylo on 06/18/2015. * Created by chacskaylo on 06/18/2015.
* Modified by shale on 06/23/2015. * Modified by shale on 06/23/2015.
*/ */
define( /*****************************************************************************
['../data/transcript.json'], * Open MCT, Copyright (c) 2014-2021, United States Government
function (messages) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Module defining EventTelemetry.
* Created by chacskaylo on 06/18/2015.
* Modified by shale on 06/23/2015.
*/
import messages from '../data/transcript.json';
"use strict"; "use strict";
var firstObservedTime = Date.now(); var firstObservedTime = Date.now();
@ -57,6 +83,4 @@ define(
return generatorData; return generatorData;
} }
return EventTelemetry; export default EventTelemetry;
}
);

View File

@ -23,9 +23,33 @@
/** /**
* Module defining EventTelemetryProvider. Created by chacskaylo on 06/18/2015. * Module defining EventTelemetryProvider. Created by chacskaylo on 06/18/2015.
*/ */
define( /*****************************************************************************
["./EventTelemetry"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (EventTelemetry) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Module defining EventTelemetryProvider. Created by chacskaylo on 06/18/2015.
*/
import EventTelemetry from './EventTelemetry';
"use strict"; "use strict";
/** /**
@ -113,6 +137,4 @@ define(
}; };
} }
return EventTelemetryProvider; export default EventTelemetryProvider;
}
);

View File

@ -20,7 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([], function () { /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
'use strict'; 'use strict';
/** /**
@ -85,5 +106,4 @@ define([], function () {
&& context.domainObject.hasCapability("telemetry"); && context.domainObject.hasCapability("telemetry");
}; };
return ExportTelemetryAsCSVAction; export default ExportTelemetryAsCSVAction;
});

View File

@ -20,12 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
'./ExportTelemetryAsCSVAction' * Open MCT, Copyright (c) 2014-2021, United States Government
], function (ExportTelemetryAsCSVAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import ExportTelemetryAsCSVAction from './ExportTelemetryAsCSVAction';
"use strict"; "use strict";
return { export default {
name: "example/export", name: "example/export",
definition: { definition: {
"name": "Example of using CSV Export", "name": "Example of using CSV Export",
@ -43,4 +64,3 @@ define([
} }
} }
}; };
});

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/ExampleFormController" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
ExampleFormController * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import ExampleFormController from './src/ExampleFormController';
"use strict"; "use strict";
return { export default {
name: "example/forms", name: "example/forms",
definition: { definition: {
"name": "Declarative Forms example", "name": "Declarative Forms example",
@ -50,4 +69,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
function ExampleFormController($scope) { function ExampleFormController($scope) {
@ -200,6 +219,4 @@ define(
}; };
} }
return ExampleFormController; export default ExampleFormController;
}
);

View File

@ -1,8 +1,4 @@
define([ import _ from 'lodash';
'lodash'
], function (
_
) {
var METADATA_BY_TYPE = { var METADATA_BY_TYPE = {
'generator': { 'generator': {
@ -137,6 +133,4 @@ define([
); );
}; };
return GeneratorMetadataProvider; export default GeneratorMetadataProvider;
});

View File

@ -20,11 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
'./WorkerInterface' * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
WorkerInterface * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import WorkerInterface from './WorkerInterface';
var REQUEST_DEFAULTS = { var REQUEST_DEFAULTS = {
amplitude: 1, amplitude: 1,
@ -96,5 +114,4 @@ define([
return this.workerInterface.subscribe(workerRequest, callback); return this.workerInterface.subscribe(workerRequest, callback);
}; };
return GeneratorProvider; export default GeneratorProvider;
});

View File

@ -20,11 +20,27 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
var PURPLE = { var PURPLE = {
sin: 2.2, sin: 2.2,
@ -170,5 +186,4 @@ define([
}; };
}; };
return SinewaveLimitProvider; export default SinewaveLimitProvider;
});

View File

@ -20,11 +20,27 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
function StateGeneratorProvider() { function StateGeneratorProvider() {
@ -78,6 +94,4 @@ define([
return Promise.resolve(data); return Promise.resolve(data);
}; };
return StateGeneratorProvider; export default StateGeneratorProvider;
});

View File

@ -20,13 +20,31 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
'raw-loader!./generatorWorker.js', * Open MCT, Copyright (c) 2014-2021, United States Government
'uuid' * as represented by the Administrator of the National Aeronautics and Space
], function ( * Administration. All rights reserved.
workerText, *
uuid * Open MCT is licensed under the Apache License, Version 2.0 (the
) { * "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import workerText from 'raw-loader!./generatorWorker.js';
import uuid from 'uuid';
var workerBlob = new Blob( var workerBlob = new Blob(
[workerText], [workerText],
@ -104,5 +122,4 @@ define([
}.bind(this); }.bind(this);
}; };
return WorkerInterface; export default WorkerInterface;
});

View File

@ -20,6 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
(function () { (function () {
var FIFTEEN_MINUTES = 15 * 60 * 1000; var FIFTEEN_MINUTES = 15 * 60 * 1000;

View File

@ -20,19 +20,35 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./GeneratorProvider", * Open MCT, Copyright (c) 2014-2021, United States Government
"./SinewaveLimitProvider", * as represented by the Administrator of the National Aeronautics and Space
"./StateGeneratorProvider", * Administration. All rights reserved.
"./GeneratorMetadataProvider" *
], function ( * Open MCT is licensed under the Apache License, Version 2.0 (the
GeneratorProvider, * "License"); you may not use this file except in compliance with the License.
SinewaveLimitProvider, * You may obtain a copy of the License at
StateGeneratorProvider, * http://www.apache.org/licenses/LICENSE-2.0.
GeneratorMetadataProvider *
) { * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
return function (openmct) { import GeneratorProvider from './GeneratorProvider';
import SinewaveLimitProvider from './SinewaveLimitProvider';
import StateGeneratorProvider from './StateGeneratorProvider';
import GeneratorMetadataProvider from './GeneratorMetadataProvider';
export default function (openmct) {
openmct.types.addType("example.state-generator", { openmct.types.addType("example.state-generator", {
name: "State Generator", name: "State Generator",
@ -150,5 +166,3 @@ define([
openmct.telemetry.addProvider(new GeneratorMetadataProvider()); openmct.telemetry.addProvider(new GeneratorMetadataProvider());
openmct.telemetry.addProvider(new SinewaveLimitProvider()); openmct.telemetry.addProvider(new SinewaveLimitProvider());
}; };
});

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/ExampleIdentityService" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
ExampleIdentityService * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import ExampleIdentityService from './src/ExampleIdentityService';
"use strict"; "use strict";
return { export default {
name: "example/identity", name: "example/identity",
definition: { definition: {
"extensions": { "extensions": {
@ -45,4 +64,3 @@ define([
} }
} }
}; };
});

View File

@ -20,8 +20,6 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define(
function () {
"use strict"; "use strict";
var DEFAULT_IDENTITY = { var DEFAULT_IDENTITY = {
@ -89,6 +87,4 @@ define(
return undefined; return undefined;
}; };
return ExampleIdentityProvider; export default ExampleIdentityProvider;
}
);

View File

@ -20,6 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
const DEFAULT_IMAGE_SAMPLES = [ const DEFAULT_IMAGE_SAMPLES = [
"https://www.hq.nasa.gov/alsj/a16/AS16-117-18731.jpg", "https://www.hq.nasa.gov/alsj/a16/AS16-117-18731.jpg",
"https://www.hq.nasa.gov/alsj/a16/AS16-117-18732.jpg", "https://www.hq.nasa.gov/alsj/a16/AS16-117-18732.jpg",

View File

@ -20,10 +20,31 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([], function () { /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
return { export default {
name: "example/mobile", name: "example/mobile",
definition: { definition: {
"name": "Mobile", "name": "Mobile",
@ -38,4 +59,3 @@ define([], function () {
} }
} }
}; };
});

View File

@ -20,18 +20,35 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/RemsTelemetryServerAdapter", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/RemsTelemetryModelProvider", * as represented by the Administrator of the National Aeronautics and Space
"./src/RemsTelemetryProvider" * Administration. All rights reserved.
], function ( *
RemsTelemetryServerAdapter, * Open MCT is licensed under the Apache License, Version 2.0 (the
RemsTelemetryModelProvider, * "License"); you may not use this file except in compliance with the License.
RemsTelemetryProvider * You may obtain a copy of the License at
) { * http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import RemsTelemetryServerAdapter from './src/RemsTelemetryServerAdapter';
import RemsTelemetryModelProvider from './src/RemsTelemetryModelProvider';
import RemsTelemetryProvider from './src/RemsTelemetryProvider';
"use strict"; "use strict";
return { export default {
name: "example/msl", name: "example/msl",
definition: { definition: {
"name": "Mars Science Laboratory Data Adapter", "name": "Mars Science Laboratory Data Adapter",
@ -111,5 +128,3 @@ define([
} }
} }
}; };
});

View File

@ -20,19 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( export default {
[],
/**
* A data dictionary describes the telemetry available from a data
* source and its data types. The data dictionary will be parsed by a custom
* server provider for this data source (in this case
* {@link RemsTelemetryServerAdapter}).
*
* Typically a data dictionary would be made available alongside the
* telemetry data source itself.
*/
function () {
return {
"name": "Mars Science Laboratory", "name": "Mars Science Laboratory",
"identifier": "msl", "identifier": "msl",
"instruments": [ "instruments": [
@ -74,5 +62,3 @@ define(
} }
] ]
}; };
}
);

View File

@ -20,8 +20,6 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define(
function () {
"use strict"; "use strict";
var PREFIX = "msl_tlm:", var PREFIX = "msl_tlm:",
@ -91,6 +89,4 @@ define(
}; };
} }
return RemsTelemetryModelProvider; export default RemsTelemetryModelProvider;
}
);

View File

@ -19,9 +19,29 @@
* this source code distribution or the Licensing information page available * this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define ( /*****************************************************************************
['./RemsTelemetrySeries'], * Open MCT, Copyright (c) 2014-2021, United States Government
function (RemsTelemetrySeries) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import RemsTelemetrySeries from './RemsTelemetrySeries';
"use strict"; "use strict";
var SOURCE = "rems.source"; var SOURCE = "rems.source";
@ -78,6 +98,4 @@ define (
return function () {}; return function () {};
}; };
return RemsTelemetryProvider; export default RemsTelemetryProvider;
}
);

View File

@ -19,8 +19,6 @@
* this source code distribution or the Licensing information page available * this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define(
function () {
"use strict"; "use strict";
/** /**
@ -79,6 +77,4 @@ define(
return this.data[index].value; return this.data[index].value;
}; };
return RemsTelemetrySeries; export default RemsTelemetrySeries;
}
);

View File

@ -21,12 +21,32 @@
*****************************************************************************/ *****************************************************************************/
/*jslint es5: true */ /*jslint es5: true */
define( /*****************************************************************************
[ * Open MCT, Copyright (c) 2014-2021, United States Government
"./MSLDataDictionary", * as represented by the Administrator of the National Aeronautics and Space
"module" * Administration. All rights reserved.
], *
function (MSLDataDictionary, module) { * Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/*jslint es5: true */
import MSLDataDictionary from './MSLDataDictionary';
import module from 'module';
"use strict"; "use strict";
var TERRESTRIAL_DATE = "terrestrial_date", var TERRESTRIAL_DATE = "terrestrial_date",
@ -139,7 +159,4 @@ define(
return this.requestHistory(request); return this.requestHistory(request);
}; };
return RemsTelemetryServerAdapter; export default RemsTelemetryServerAdapter;
}
);

View File

@ -20,24 +20,38 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/DialogLaunchController", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/NotificationLaunchController", * as represented by the Administrator of the National Aeronautics and Space
"./src/DialogLaunchIndicator", * Administration. All rights reserved.
"./src/NotificationLaunchIndicator", *
"./res/dialog-launch.html", * Open MCT is licensed under the Apache License, Version 2.0 (the
"./res/notification-launch.html" * "License"); you may not use this file except in compliance with the License.
], function ( * You may obtain a copy of the License at
DialogLaunchController, * http://www.apache.org/licenses/LICENSE-2.0.
NotificationLaunchController, *
DialogLaunchIndicator, * Unless required by applicable law or agreed to in writing, software
NotificationLaunchIndicator, * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
DialogLaunch, * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
NotificationLaunch * License for the specific language governing permissions and limitations
) { * under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import DialogLaunchController from './src/DialogLaunchController';
import NotificationLaunchController from './src/NotificationLaunchController';
import DialogLaunchIndicator from './src/DialogLaunchIndicator';
import NotificationLaunchIndicator from './src/NotificationLaunchIndicator';
import DialogLaunch from './res/dialog-launch.html';
import NotificationLaunch from './res/notification-launch.html';
"use strict"; "use strict";
return { export default {
name: "example/notifications", name: "example/notifications",
definition: { definition: {
"extensions": { "extensions": {
@ -87,4 +101,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
/** /**
@ -152,6 +171,4 @@ define(
} }
return DialogLaunchController; export default DialogLaunchController;
}
);

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
/** /**
@ -50,6 +69,4 @@ define(
return "Launch test dialog"; return "Launch test dialog";
}; };
return DialogLaunchIndicator; export default DialogLaunchIndicator;
}
);

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
/** /**
@ -121,6 +140,4 @@ define(
} }
return NotificationLaunchController; export default NotificationLaunchController;
}
);

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
/** /**
@ -50,6 +69,4 @@ define(
return "Launch notification"; return "Launch notification";
}; };
return NotificationLaunchIndicator; export default NotificationLaunchIndicator;
}
);

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/BrowserPersistenceProvider" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
BrowserPersistenceProvider * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import BrowserPersistenceProvider from './src/BrowserPersistenceProvider';
"use strict"; "use strict";
return { export default {
name: "example/persistence", name: "example/persistence",
definition: { definition: {
"extensions": { "extensions": {
@ -51,4 +70,3 @@ define([
} }
} }
}; };
});

View File

@ -24,9 +24,32 @@
* Stubbed implementation of a persistence provider, * Stubbed implementation of a persistence provider,
* to permit objects to be created, saved, etc. * to permit objects to be created, saved, etc.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Stubbed implementation of a persistence provider,
* to permit objects to be created, saved, etc.
*/
'use strict'; 'use strict';
function BrowserPersistenceProvider($q, SPACE) { function BrowserPersistenceProvider($q, SPACE) {
@ -97,6 +120,4 @@ define(
} }
return BrowserPersistenceProvider; export default BrowserPersistenceProvider;
}
);

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/ExamplePolicy" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
ExamplePolicy * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import ExamplePolicy from './src/ExamplePolicy';
"use strict"; "use strict";
return { export default {
name: "example/policy", name: "example/policy",
definition: { definition: {
"name": "Example Policy", "name": "Example Policy",
@ -42,4 +61,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
function ExamplePolicy() { function ExamplePolicy() {
@ -42,6 +61,4 @@ define(
}; };
} }
return ExamplePolicy; export default ExamplePolicy;
}
);

View File

@ -20,16 +20,34 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/WatchIndicator", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/DigestIndicator" * as represented by the Administrator of the National Aeronautics and Space
], function ( * Administration. All rights reserved.
WatchIndicator, *
DigestIndicator * Open MCT is licensed under the Apache License, Version 2.0 (the
) { * "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import WatchIndicator from './src/WatchIndicator';
import DigestIndicator from './src/DigestIndicator';
"use strict"; "use strict";
return { export default {
name: "example/profiling", name: "example/profiling",
definition: { definition: {
"extensions": { "extensions": {
@ -52,4 +70,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
/** /**
@ -76,7 +95,4 @@ define(
}; };
} }
return DigestIndicator; export default DigestIndicator;
}
);

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
/** /**
@ -80,7 +99,4 @@ define(
}; };
} }
return WatchIndicator; export default WatchIndicator;
}
);

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/ScratchPersistenceProvider" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
ScratchPersistenceProvider * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import ScratchPersistenceProvider from './src/ScratchPersistenceProvider';
"use strict"; "use strict";
return { export default {
name: "example/scratchpad", name: "example/scratchpad",
definition: { definition: {
"extensions": { "extensions": {
@ -60,4 +79,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
'use strict'; 'use strict';
/** /**
@ -74,6 +93,4 @@ define(
ScratchPersistenceProvider.prototype.updateObject = ScratchPersistenceProvider.prototype.updateObject =
ScratchPersistenceProvider.prototype.createObject; ScratchPersistenceProvider.prototype.createObject;
return ScratchPersistenceProvider; export default ScratchPersistenceProvider;
}
);

View File

@ -1,27 +1,15 @@
define([ import ExampleStyleGuideModelProvider from './src/ExampleStyleGuideModelProvider';
"./src/ExampleStyleGuideModelProvider", import MCTExample from './src/MCTExample';
"./src/MCTExample", import introTemplate from './res/templates/intro.html';
"./res/templates/intro.html", import standardsTemplate from './res/templates/standards.html';
"./res/templates/standards.html", import colorsTemplate from './res/templates/colors.html';
"./res/templates/colors.html", import statusTemplate from './res/templates/status.html';
"./res/templates/status.html", import glyphsTemplate from './res/templates/glyphs.html';
"./res/templates/glyphs.html", import controlsTemplate from './res/templates/controls.html';
"./res/templates/controls.html", import inputTemplate from './res/templates/input.html';
"./res/templates/input.html", import menusTemplate from './res/templates/menus.html';
"./res/templates/menus.html"
], function ( export default {
ExampleStyleGuideModelProvider,
MCTExample,
introTemplate,
standardsTemplate,
colorsTemplate,
statusTemplate,
glyphsTemplate,
controlsTemplate,
inputTemplate,
menusTemplate
) {
return {
name: "example/styleguide", name: "example/styleguide",
definition: { definition: {
"name": "Open MCT Style Guide", "name": "Open MCT Style Guide",
@ -185,4 +173,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2016, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
"use strict"; "use strict";
function ExampleStyleGuideModelProvider($q) { function ExampleStyleGuideModelProvider($q) {
@ -77,6 +96,4 @@ define(
}; };
} }
return ExampleStyleGuideModelProvider; export default ExampleStyleGuideModelProvider;
}
);

View File

@ -1,8 +1,4 @@
define([ import MCTExampleTemplate from '../res/templates/mct-example.html';
'../res/templates/mct-example.html'
], function (
MCTExampleTemplate
) {
function MCTExample() { function MCTExample() {
function link($scope, $element, $attrs, controller, $transclude) { function link($scope, $element, $attrs, controller, $transclude) {
@ -26,5 +22,4 @@ define([
}; };
} }
return MCTExample; export default MCTExample;
});

View File

@ -7,6 +7,7 @@
"@percy/cli": "^1.0.0-beta.70", "@percy/cli": "^1.0.0-beta.70",
"@percy/playwright": "^1.0.1", "@percy/playwright": "^1.0.1",
"@playwright/test": "^1.16.3", "@playwright/test": "^1.16.3",
"5to6-codemod": "^1.8.0",
"allure-playwright": "^2.0.0-beta.14", "allure-playwright": "^2.0.0-beta.14",
"angular": ">=1.8.0", "angular": ">=1.8.0",
"angular-route": "1.4.14", "angular-route": "1.4.14",
@ -36,6 +37,7 @@
"imports-loader": "^0.8.0", "imports-loader": "^0.8.0",
"istanbul-instrumenter-loader": "^3.0.1", "istanbul-instrumenter-loader": "^3.0.1",
"jasmine-core": "^3.7.1", "jasmine-core": "^3.7.1",
"jscodeshift": "^0.13.0",
"jsdoc": "^3.3.2", "jsdoc": "^3.3.2",
"karma": "6.3.9", "karma": "6.3.9",
"karma-chrome-launcher": "3.1.0", "karma-chrome-launcher": "3.1.0",

View File

@ -20,33 +20,42 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/navigation/NavigationService", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/navigation/NavigateAction", * as represented by the Administrator of the National Aeronautics and Space
"./src/navigation/OrphanNavigationHandler", * Administration. All rights reserved.
"./res/templates/browse.html", *
"./res/templates/browse-object.html", * Open MCT is licensed under the Apache License, Version 2.0 (the
"./res/templates/browse/object-header.html", * "License"); you may not use this file except in compliance with the License.
"./res/templates/browse/object-header-frame.html", * You may obtain a copy of the License at
"./res/templates/menu-arrow.html", * http://www.apache.org/licenses/LICENSE-2.0.
"./res/templates/back-arrow.html", *
"./res/templates/browse/object-properties.html", * Unless required by applicable law or agreed to in writing, software
"./res/templates/browse/inspector-region.html" * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
], function ( * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
NavigationService, * License for the specific language governing permissions and limitations
NavigateAction, * under the License.
OrphanNavigationHandler, *
browseTemplate, * Open MCT includes source code licensed under additional open source
browseObjectTemplate, * licenses. See the Open Source Licenses file (LICENSES.md) included with
objectHeaderTemplate, * this source code distribution or the Licensing information page available
objectHeaderFrameTemplate, * at runtime from the About dialog for additional information.
menuArrowTemplate, *****************************************************************************/
backArrowTemplate,
objectPropertiesTemplate,
inspectorRegionTemplate
) {
return { import NavigationService from './src/navigation/NavigationService';
import NavigateAction from './src/navigation/NavigateAction';
import OrphanNavigationHandler from './src/navigation/OrphanNavigationHandler';
import browseTemplate from './res/templates/browse.html';
import browseObjectTemplate from './res/templates/browse-object.html';
import objectHeaderTemplate from './res/templates/browse/object-header.html';
import objectHeaderFrameTemplate from './res/templates/browse/object-header-frame.html';
import menuArrowTemplate from './res/templates/menu-arrow.html';
import backArrowTemplate from './res/templates/back-arrow.html';
import objectPropertiesTemplate from './res/templates/browse/object-properties.html';
import inspectorRegionTemplate from './res/templates/browse/inspector-region.html';
export default {
name: "platform/commonUI/browse", name: "platform/commonUI/browse",
definition: { definition: {
"extensions": { "extensions": {
@ -155,4 +164,3 @@ define([
} }
} }
}; };
});

View File

@ -20,11 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[ * Open MCT, Copyright (c) 2014-2021, United States Government
'../../regions/src/Region' * as represented by the Administrator of the National Aeronautics and Space
], * Administration. All rights reserved.
function (Region) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import Region from '../../regions/src/Region';
/** /**
* Defines the a default Inspector region. Captured in a class to * Defines the a default Inspector region. Captured in a class to
@ -62,6 +80,4 @@ define(
this.addRegion(new Region(metadataRegion), 0); this.addRegion(new Region(metadataRegion), 0);
}; };
return InspectorRegion; export default InspectorRegion;
}
);

View File

@ -23,15 +23,30 @@
/** /**
* Module defining NavigateAction. Created by vwoeltje on 11/10/14. * Module defining NavigateAction. Created by vwoeltje on 11/10/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The navigate action navigates to a specific domain object. * Module defining NavigateAction. Created by vwoeltje on 11/10/14.
* @memberof platform/commonUI/browse
* @constructor
* @implements {Action}
*/ */
function NavigateAction(navigationService, context) { function NavigateAction(navigationService, context) {
this.domainObject = context.domainObject; this.domainObject = context.domainObject;
@ -64,6 +79,4 @@ define(
return context.domainObject !== undefined; return context.domainObject !== undefined;
}; };
return NavigateAction; export default NavigateAction;
}
);

View File

@ -23,16 +23,30 @@
/** /**
* Module defining NavigationService. Created by vwoeltje on 11/10/14. * Module defining NavigationService. Created by vwoeltje on 11/10/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The navigation service maintains the application's current * Module defining NavigationService. Created by vwoeltje on 11/10/14.
* navigation state, and allows listening for changes thereto.
*
* @memberof platform/commonUI/browse
* @constructor
*/ */
function NavigationService($window) { function NavigationService($window) {
this.navigated = undefined; this.navigated = undefined;
@ -198,6 +212,4 @@ define(
} }
}; };
return NavigationService; export default NavigationService;
}
);

View File

@ -20,21 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([], function () { /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Navigates away from orphan objects whenever they are detected.
*
* An orphan object is an object whose apparent parent does not
* actually contain it. This may occur in certain circumstances, such
* as when persistence succeeds for a newly-created object but fails
* for its parent.
*
* @param throttle the `throttle` service
* @param topic the `topic` service
* @param navigationService the `navigationService`
* @constructor
*/
function OrphanNavigationHandler(throttle, topic, navigationService) { function OrphanNavigationHandler(throttle, topic, navigationService) {
var throttledCheckNavigation; var throttledCheckNavigation;
@ -72,5 +79,4 @@ define([], function () {
topic('mutation').listen(throttledCheckNavigation); topic('mutation').listen(throttledCheckNavigation);
} }
return OrphanNavigationHandler; export default OrphanNavigationHandler;
});

View File

@ -23,9 +23,32 @@
/** /**
* MCTIncudeSpec. Created by vwoeltje on 11/6/14. * MCTIncudeSpec. Created by vwoeltje on 11/6/14.
*/ */
define( /*****************************************************************************
["../src/InspectorRegion"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (InspectorRegion) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* MCTIncudeSpec. Created by vwoeltje on 11/6/14.
*/
import InspectorRegion from '../src/InspectorRegion';
describe("The inspector region", function () { describe("The inspector region", function () {
var inspectorRegion; var inspectorRegion;
@ -39,5 +62,3 @@ define(
}); });
}); });
}
);

View File

@ -23,11 +23,32 @@
/** /**
* MCTRepresentationSpec. Created by vwoeltje on 11/6/14. * MCTRepresentationSpec. Created by vwoeltje on 11/6/14.
*/ */
define([ /*****************************************************************************
"../../src/navigation/NavigateAction" * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
NavigateAction * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* MCTRepresentationSpec. Created by vwoeltje on 11/6/14.
*/
import NavigateAction from '../../src/navigation/NavigateAction';
describe("The navigate action", function () { describe("The navigate action", function () {
var mockNavigationService, var mockNavigationService,
@ -82,4 +103,3 @@ define([
}); });
}); });
});

View File

@ -23,9 +23,32 @@
/** /**
* MCTRepresentationSpec. Created by vwoeltje on 11/6/14. * MCTRepresentationSpec. Created by vwoeltje on 11/6/14.
*/ */
define( /*****************************************************************************
["../../src/navigation/NavigationService"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (NavigationService) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* MCTRepresentationSpec. Created by vwoeltje on 11/6/14.
*/
import NavigationService from '../../src/navigation/NavigationService';
describe("The navigation service", function () { describe("The navigation service", function () {
var $window, var $window,
@ -84,5 +107,3 @@ define(
}); });
}); });
}
);

View File

@ -20,9 +20,30 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
'../../src/navigation/OrphanNavigationHandler' * Open MCT, Copyright (c) 2014-2021, United States Government
], function (OrphanNavigationHandler) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import OrphanNavigationHandler from '../../src/navigation/OrphanNavigationHandler';
describe("OrphanNavigationHandler", function () { describe("OrphanNavigationHandler", function () {
var mockTopic, var mockTopic,
mockThrottle, mockThrottle,
@ -178,5 +199,3 @@ define([
}); });
}); });
});

View File

@ -20,31 +20,41 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/DialogService", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/OverlayService", * as represented by the Administrator of the National Aeronautics and Space
"./res/templates/overlay-dialog.html", * Administration. All rights reserved.
"./res/templates/overlay-options.html", *
"./res/templates/dialog.html", * Open MCT is licensed under the Apache License, Version 2.0 (the
"./res/templates/overlay-blocking-message.html", * "License"); you may not use this file except in compliance with the License.
"./res/templates/message.html", * You may obtain a copy of the License at
"./res/templates/notification-message.html", * http://www.apache.org/licenses/LICENSE-2.0.
"./res/templates/overlay-message-list.html", *
"./res/templates/overlay.html" * Unless required by applicable law or agreed to in writing, software
], function ( * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
DialogService, * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
OverlayService, * License for the specific language governing permissions and limitations
overlayDialogTemplate, * under the License.
overlayOptionsTemplate, *
dialogTemplate, * Open MCT includes source code licensed under additional open source
overlayBlockingMessageTemplate, * licenses. See the Open Source Licenses file (LICENSES.md) included with
messageTemplate, * this source code distribution or the Licensing information page available
notificationMessageTemplate, * at runtime from the About dialog for additional information.
overlayMessageListTemplate, *****************************************************************************/
overlayTemplate
) {
return { import DialogService from './src/DialogService';
import OverlayService from './src/OverlayService';
import overlayDialogTemplate from './res/templates/overlay-dialog.html';
import overlayOptionsTemplate from './res/templates/overlay-options.html';
import dialogTemplate from './res/templates/dialog.html';
import overlayBlockingMessageTemplate from './res/templates/overlay-blocking-message.html';
import messageTemplate from './res/templates/message.html';
import notificationMessageTemplate from './res/templates/notification-message.html';
import overlayMessageListTemplate from './res/templates/overlay-message-list.html';
import overlayTemplate from './res/templates/overlay.html';
export default {
name: "platform/commonUI/dialog", name: "platform/commonUI/dialog",
definition: { definition: {
"extensions": { "extensions": {
@ -109,4 +119,3 @@ define([
} }
} }
}; };
});

View File

@ -25,15 +25,32 @@
* launch dialogs for user input & notifications. * launch dialogs for user input & notifications.
* @namespace platform/commonUI/dialog * @namespace platform/commonUI/dialog
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The dialog service is responsible for handling window-modal * This bundle implements the dialog service, which can be used to
* communication with the user, such as displaying forms for user * launch dialogs for user input & notifications.
* input. * @namespace platform/commonUI/dialog
* @memberof platform/commonUI/dialog
* @constructor
*/ */
function DialogService(overlayService, $q, $log, $document) { function DialogService(overlayService, $q, $log, $document) {
this.overlayService = overlayService; this.overlayService = overlayService;
@ -266,6 +283,4 @@ define(
} }
}; };
return DialogService; export default DialogService;
}
);

View File

@ -20,12 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
// Template to inject into the DOM to show the dialog; really just points to
// the a specific template that can be included via mct-include
var TEMPLATE = '<mct-include ng-model="overlay" key="key" ng-class="typeClass"></mct-include>'; var TEMPLATE = '<mct-include ng-model="overlay" key="key" ng-class="typeClass"></mct-include>';
/** /**
@ -108,6 +124,4 @@ define(
}; };
}; };
return OverlayService; export default OverlayService;
}
);

View File

@ -23,9 +23,32 @@
/** /**
* MCTIncudeSpec. Created by vwoeltje on 11/6/14. * MCTIncudeSpec. Created by vwoeltje on 11/6/14.
*/ */
define( /*****************************************************************************
["../src/DialogService"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (DialogService) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* MCTIncudeSpec. Created by vwoeltje on 11/6/14.
*/
import DialogService from '../src/DialogService';
describe("The dialog service", function () { describe("The dialog service", function () {
var mockOverlayService, var mockOverlayService,
@ -210,5 +233,3 @@ define(
}); });
}); });
}
);

View File

@ -23,9 +23,32 @@
/** /**
* MCTIncudeSpec. Created by vwoeltje on 11/6/14. * MCTIncudeSpec. Created by vwoeltje on 11/6/14.
*/ */
define( /*****************************************************************************
["../src/OverlayService"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (OverlayService) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* MCTIncudeSpec. Created by vwoeltje on 11/6/14.
*/
import OverlayService from '../src/OverlayService';
describe("The overlay service", function () { describe("The overlay service", function () {
var mockDocument, var mockDocument,
@ -100,5 +123,3 @@ define(
}); });
}); });
}
);

View File

@ -20,40 +20,46 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/controllers/EditActionController", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/controllers/EditPanesController", * as represented by the Administrator of the National Aeronautics and Space
"./src/controllers/EditObjectController", * Administration. All rights reserved.
"./src/actions/EditAndComposeAction", *
"./src/actions/EditAction", * Open MCT is licensed under the Apache License, Version 2.0 (the
"./src/actions/SaveAction", * "License"); you may not use this file except in compliance with the License.
"./src/actions/SaveAndStopEditingAction", * You may obtain a copy of the License at
"./src/actions/CancelAction", * http://www.apache.org/licenses/LICENSE-2.0.
"./src/policies/EditPersistableObjectsPolicy", *
"./src/representers/EditRepresenter", * Unless required by applicable law or agreed to in writing, software
"./src/capabilities/EditorCapability", * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
"./res/templates/library.html", * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
"./res/templates/edit-object.html", * License for the specific language governing permissions and limitations
"./res/templates/edit-action-buttons.html", * under the License.
"./res/templates/topbar-edit.html" *
], function ( * Open MCT includes source code licensed under additional open source
EditActionController, * licenses. See the Open Source Licenses file (LICENSES.md) included with
EditPanesController, * this source code distribution or the Licensing information page available
EditObjectController, * at runtime from the About dialog for additional information.
EditAndComposeAction, *****************************************************************************/
EditAction,
SaveAction, import EditActionController from './src/controllers/EditActionController';
SaveAndStopEditingAction,
CancelAction, import EditPanesController from './src/controllers/EditPanesController';
EditPersistableObjectsPolicy, import EditObjectController from './src/controllers/EditObjectController';
EditRepresenter, import EditAndComposeAction from './src/actions/EditAndComposeAction';
EditorCapability, import EditAction from './src/actions/EditAction';
libraryTemplate, import SaveAction from './src/actions/SaveAction';
editObjectTemplate, import SaveAndStopEditingAction from './src/actions/SaveAndStopEditingAction';
editActionButtonsTemplate, import CancelAction from './src/actions/CancelAction';
topbarEditTemplate import EditPersistableObjectsPolicy from './src/policies/EditPersistableObjectsPolicy';
) { import EditRepresenter from './src/representers/EditRepresenter';
return { import EditorCapability from './src/capabilities/EditorCapability';
import libraryTemplate from './res/templates/library.html';
import editObjectTemplate from './res/templates/edit-object.html';
import editActionButtonsTemplate from './res/templates/edit-action-buttons.html';
import topbarEditTemplate from './res/templates/topbar-edit.html';
export default {
name: "platform/commonUI/edit", name: "platform/commonUI/edit",
definition: { definition: {
"extensions": { "extensions": {
@ -206,4 +212,3 @@ define([
} }
} }
}; };
});

View File

@ -20,9 +20,6 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define(
function () {
/** /**
* The "Cancel" action; the action triggered by clicking Cancel from * The "Cancel" action; the action triggered by clicking Cancel from
* Edit Mode. Exits the editing user interface and invokes object * Edit Mode. Exits the editing user interface and invokes object
@ -85,6 +82,4 @@ define(
&& domainObject.getCapability('editor').isEditContextRoot(); && domainObject.getCapability('editor').isEditContextRoot();
}; };
return CancelAction; export default CancelAction;
}
);

View File

@ -23,12 +23,31 @@
/** /**
* Module defining EditAction. Created by vwoeltje on 11/14/14. * Module defining EditAction. Created by vwoeltje on 11/14/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
// A no-op action to return in the event that the action cannot /**
// be completed. * Module defining EditAction. Created by vwoeltje on 11/14/14.
*/
var NULL_ACTION = { var NULL_ACTION = {
perform: function () { perform: function () {
return undefined; return undefined;
@ -96,6 +115,4 @@ define(
&& !domainObject.getCapability('editor').isEditContextRoot(); && !domainObject.getCapability('editor').isEditContextRoot();
}; };
return EditAction; export default EditAction;
}
);

View File

@ -20,16 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Add one domain object to another's composition.
* @constructor
* @memberof platform/commonUI/edit
* @implements {Action}
*/
function EditAndComposeAction(context) { function EditAndComposeAction(context) {
this.domainObject = (context || {}).domainObject; this.domainObject = (context || {}).domainObject;
this.selectedObject = (context || {}).selectedObject; this.selectedObject = (context || {}).selectedObject;
@ -54,6 +66,4 @@ define(
return this.selectedObject && doLink(); return this.selectedObject && doLink();
}; };
return EditAndComposeAction; export default EditAndComposeAction;
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
['./SaveInProgressDialog'], * Open MCT, Copyright (c) 2014-2021, United States Government
function (SaveInProgressDialog) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import SaveInProgressDialog from './SaveInProgressDialog';
/** /**
* The "Save" action; it invokes object capabilities to persist * The "Save" action; it invokes object capabilities to persist
@ -93,6 +113,4 @@ define(
&& domainObject.getModel().persisted !== undefined; && domainObject.getModel().persisted !== undefined;
}; };
return SaveAction; export default SaveAction;
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["./SaveAction"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (SaveAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import SaveAction from './SaveAction';
/** /**
* The "Save and Stop Editing" action performs a [Save action]{@link SaveAction} * The "Save and Stop Editing" action performs a [Save action]{@link SaveAction}
@ -70,6 +90,4 @@ define(
*/ */
SaveAndStopEditingAction.appliesTo = SaveAction.appliesTo; SaveAndStopEditingAction.appliesTo = SaveAction.appliesTo;
return SaveAndStopEditingAction; export default SaveAndStopEditingAction;
}
);

View File

@ -1,4 +1,3 @@
define([], function () {
function SaveInProgressDialog(dialogService) { function SaveInProgressDialog(dialogService) {
this.dialogService = dialogService; this.dialogService = dialogService;
this.dialog = undefined; this.dialog = undefined;
@ -20,5 +19,4 @@ define([], function () {
} }
}; };
return SaveInProgressDialog; export default SaveInProgressDialog;
});

View File

@ -20,19 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* A capability that implements an editing 'session' for a domain
* object. An editing session is initiated via a call to .edit().
* Once initiated, any persist operations will be queued pending a
* subsequent call to [.save()](@link #save) or [.finish()](@link
* #finish).
* @param domainObject
* @constructor
*/
function EditorCapability( function EditorCapability(
openmct, openmct,
domainObject domainObject
@ -59,6 +68,4 @@ define(
return this.openmct.editor.isEditing(); return this.openmct.editor.isEditing();
}; };
return EditorCapability; export default EditorCapability;
}
);

View File

@ -23,10 +23,31 @@
/** /**
* Module defining EditActionController. Created by vwoeltje on 11/17/14. * Module defining EditActionController. Created by vwoeltje on 11/17/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Module defining EditActionController. Created by vwoeltje on 11/17/14.
*/
var SAVE_ACTION_CONTEXT = { category: 'save' }; var SAVE_ACTION_CONTEXT = { category: 'save' };
var OTHERS_ACTION_CONTEXT = { category: 'conclude-editing' }; var OTHERS_ACTION_CONTEXT = { category: 'conclude-editing' };
@ -74,6 +95,4 @@ define(
$scope.$watch("action", updateActions); $scope.$watch("action", updateActions);
} }
return EditActionController; export default EditActionController;
}
);

View File

@ -24,10 +24,32 @@
* This bundle implements Edit mode. * This bundle implements Edit mode.
* @namespace platform/commonUI/edit * @namespace platform/commonUI/edit
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* This bundle implements Edit mode.
* @namespace platform/commonUI/edit
*/
function cancelEditing(domainObject) { function cancelEditing(domainObject) {
var navigatedObject = domainObject, var navigatedObject = domainObject,
editorCapability = navigatedObject editorCapability = navigatedObject
@ -81,6 +103,4 @@ define(
}; };
} }
return EditObjectController; export default EditObjectController;
}
);

View File

@ -20,15 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Supports the Library and Elements panes in Edit mode.
* @memberof platform/commonUI/edit
* @constructor
*/
function EditPanesController($scope) { function EditPanesController($scope) {
var self = this; var self = this;
@ -61,6 +74,4 @@ define(
return this.rootDomainObject; return this.rootDomainObject;
}; };
return EditPanesController; export default EditPanesController;
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
['objectUtils'], * Open MCT, Copyright (c) 2014-2016, United States Government
function (objectUtils) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import objectUtils from 'objectUtils';
/** /**
* Policy that prevents editing of any object from a provider that does not * Policy that prevents editing of any object from a provider that does not
@ -52,6 +72,4 @@ define(
return true; return true;
}; };
return EditPersistableObjectsPolicy; export default EditPersistableObjectsPolicy;
}
);

View File

@ -20,29 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* The EditRepresenter is responsible for implementing
* representation-level behavior relevant to Edit mode.
* Specifically, this listens for changes to view configuration
* or to domain object models, and triggers persistence when
* these are detected.
*
* This is exposed as an extension of category `representers`,
* which mct-representation will utilize to add additional
* behavior to each representation.
*
* This will be called once per mct-representation directive,
* and may be reused for different domain objects and/or
* representations resulting from changes there.
*
* @memberof platform/commonUI/edit
* @implements {Representer}
* @constructor
*/
function EditRepresenter($log, $scope) { function EditRepresenter($log, $scope) {
this.$log = $log; this.$log = $log;
this.$scope = $scope; this.$scope = $scope;
@ -94,6 +93,4 @@ define(
// Respond to the destruction of the current representation. // Respond to the destruction of the current representation.
EditRepresenter.prototype.destroy = function () {}; EditRepresenter.prototype.destroy = function () {};
return EditRepresenter; export default EditRepresenter;
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/actions/CancelAction"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (CancelAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import CancelAction from '../../src/actions/CancelAction';
describe("The Cancel action", function () { describe("The Cancel action", function () {
var mockDomainObject, var mockDomainObject,
@ -151,5 +171,3 @@ define(
expect(parentCapabilities.action.perform).toHaveBeenCalledWith("navigate"); expect(parentCapabilities.action.perform).toHaveBeenCalledWith("navigate");
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/actions/EditAction"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (EditAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditAction from '../../src/actions/EditAction';
describe("The Edit action", function () { describe("The Edit action", function () {
var mockLocation, var mockLocation,
@ -104,5 +124,3 @@ define(
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/actions/EditAndComposeAction"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (EditAndComposeAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditAndComposeAction from '../../src/actions/EditAndComposeAction';
describe("The Link action", function () { describe("The Link action", function () {
var mockDomainObject, var mockDomainObject,
@ -115,5 +135,3 @@ define(
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/actions/SaveAction"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (SaveAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import SaveAction from '../../src/actions/SaveAction';
describe("The Save action", function () { describe("The Save action", function () {
var mockDomainObject, var mockDomainObject,
@ -155,5 +175,3 @@ define(
}); });
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/actions/SaveAndStopEditingAction"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (SaveAndStopEditingAction) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import SaveAndStopEditingAction from '../../src/actions/SaveAndStopEditingAction';
describe("The Save and Stop Editing action", function () { describe("The Save and Stop Editing action", function () {
@ -124,5 +144,3 @@ define(
expect(mockEditorCapability.finish).toHaveBeenCalled(); expect(mockEditorCapability.finish).toHaveBeenCalled();
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/controllers/EditActionController"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (EditActionController) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditActionController from '../../src/controllers/EditActionController';
describe("The Edit Action controller", function () { describe("The Edit Action controller", function () {
var mockSaveActionMetadata = { var mockSaveActionMetadata = {
@ -102,5 +122,3 @@ define(
expect(mockScope.otherEditActions).toEqual(["a", "b", "c"]); expect(mockScope.otherEditActions).toEqual(["a", "b", "c"]);
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/controllers/EditObjectController"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (EditObjectController) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditObjectController from '../../src/controllers/EditObjectController';
describe("The Edit Object controller", function () { describe("The Edit Object controller", function () {
var mockScope, var mockScope,
@ -134,5 +154,3 @@ define(
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/controllers/EditPanesController"], * Open MCT, Copyright (c) 2014-2021, United States Government
function (EditPanesController) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditPanesController from '../../src/controllers/EditPanesController';
describe("The Edit Panes controller", function () { describe("The Edit Panes controller", function () {
var mockScope, var mockScope,
@ -110,5 +130,3 @@ define(
expect(controller.getRoot().getId()).toEqual('other-root-id'); expect(controller.getRoot().getId()).toEqual('other-root-id');
}); });
}); });
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
["../../src/policies/EditPersistableObjectsPolicy"], * Open MCT, Copyright (c) 2014-2016, United States Government
function (EditPersistableObjectsPolicy) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditPersistableObjectsPolicy from '../../src/policies/EditPersistableObjectsPolicy';
describe("The Edit persistable objects policy", function () { describe("The Edit persistable objects policy", function () {
var mockDomainObject, var mockDomainObject,
@ -98,5 +118,3 @@ define(
expect(policy.allow(mockEditAction, testContext)).toBe(true); expect(policy.allow(mockEditAction, testContext)).toBe(true);
}); });
}); });
}
);

View File

@ -20,11 +20,30 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
'../../src/representers/EditRepresenter' * Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
EditRepresenter * Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EditRepresenter from '../../src/representers/EditRepresenter';
describe('EditRepresenter', function () { describe('EditRepresenter', function () {
var $log, var $log,
$scope, $scope,
@ -84,4 +103,3 @@ define([
}); });
}); });
});

View File

@ -20,14 +20,33 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/FormatProvider", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/DurationFormat" * as represented by the Administrator of the National Aeronautics and Space
], function ( * Administration. All rights reserved.
FormatProvider, *
DurationFormat * Open MCT is licensed under the Apache License, Version 2.0 (the
) { * "License"); you may not use this file except in compliance with the License.
return { * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import FormatProvider from './src/FormatProvider';
import DurationFormat from './src/DurationFormat';
export default {
name: "platform/commonUI/formats", name: "platform/commonUI/formats",
definition: { definition: {
"name": "Format Registry", "name": "Format Registry",
@ -69,4 +88,3 @@ define([
} }
} }
}; };
});

View File

@ -20,11 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
'moment' * Open MCT Web, Copyright (c) 2014-2015, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
moment * Administration. All rights reserved.
) { *
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT Web includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import moment from 'moment';
var DATE_FORMAT = "HH:mm:ss", var DATE_FORMAT = "HH:mm:ss",
DATE_FORMATS = [ DATE_FORMATS = [
@ -58,5 +76,4 @@ define([
return moment.utc(text, DATE_FORMATS, true).isValid(); return moment.utc(text, DATE_FORMATS, true).isValid();
}; };
return DurationFormat; export default DurationFormat;
});

View File

@ -20,81 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
], function (
) {
/**
* An object used to convert between numeric values and text values,
* typically used to display these values to the user and to convert
* user input to a numeric format, particularly for time formats.
* @interface Format
*/
/**
* Parse text (typically user input) to a numeric value.
* Behavior is undefined when the text cannot be parsed;
* `validate` should be called first if the text may be invalid.
* @method Format#parse
* @memberof Format#
* @param {string} text the text to parse
* @returns {number} the parsed numeric value
*/
/**
* @property {string} key A unique identifier for this formatter.
* @memberof Format#
*/
/**
* Determine whether or not some text (typically user input) can
* be parsed to a numeric value by this format.
* @method validate
* @memberof Format#
* @param {string} text the text to parse
* @returns {boolean} true if the text can be parsed
*/
/**
* Convert a numeric value to a text value for display using
* this format.
* @method format
* @memberof Format#
* @param {number} value the numeric value to format
* @param {number} [minValue] Contextual information for scaled formatting used in linear scales such as conductor
* and plot axes. Specifies the smallest number on the scale.
* @param {number} [maxValue] Contextual information for scaled formatting used in linear scales such as conductor
* and plot axes. Specifies the largest number on the scale
* @param {number} [count] Contextual information for scaled formatting used in linear scales such as conductor
* and plot axes. The number of labels on the scale.
* @returns {string} the text representation of the value
*/
/**
* Provides access to `Format` objects which can be used to
* convert values between human-readable text and numeric
* representations.
* @interface FormatService
*/
/**
* Look up a format by its symbolic identifier.
* @method getFormat
* @memberof FormatService#
* @param {string} key the identifier for this format
* @returns {Format} the format
* @throws {Error} errors when the requested format is unrecognized
*/
/**
* Provides formats from the `formats` extension category.
* @constructor
* @implements {FormatService}
* @memberof platform/commonUI/formats
* @param {Array.<function(new : Format)>} format constructors,
* from the `formats` extension category.
*/
function FormatProvider(formats) { function FormatProvider(formats) {
var formatMap = {}; var formatMap = {};
@ -118,6 +65,4 @@ define([
return format; return format;
}; };
return FormatProvider; export default FormatProvider;
});

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
['../src/FormatProvider'], * Open MCT, Copyright (c) 2014-2021, United States Government
function (FormatProvider) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import FormatProvider from '../src/FormatProvider';
var KEYS = ['a', 'b', 'c']; var KEYS = ['a', 'b', 'c'];
@ -65,5 +85,3 @@ define(
}); });
}); });
}
);

View File

@ -20,103 +20,77 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
"./src/services/UrlService", * Open MCT, Copyright (c) 2014-2021, United States Government
"./src/services/PopupService", * as represented by the Administrator of the National Aeronautics and Space
"./src/SplashScreenManager", * Administration. All rights reserved.
"./src/StyleSheetLoader", *
"./src/controllers/TimeRangeController", * Open MCT is licensed under the Apache License, Version 2.0 (the
"./src/controllers/DateTimePickerController", * "License"); you may not use this file except in compliance with the License.
"./src/controllers/DateTimeFieldController", * You may obtain a copy of the License at
"./src/controllers/TreeNodeController", * http://www.apache.org/licenses/LICENSE-2.0.
"./src/controllers/ActionGroupController", *
"./src/controllers/ToggleController", * Unless required by applicable law or agreed to in writing, software
"./src/controllers/ClickAwayController", * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
"./src/controllers/ViewSwitcherController", * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
"./src/controllers/GetterSetterController", * License for the specific language governing permissions and limitations
"./src/controllers/SelectorController", * under the License.
"./src/controllers/ObjectInspectorController", *
"./src/controllers/BannerController", * Open MCT includes source code licensed under additional open source
"./src/directives/MCTContainer", * licenses. See the Open Source Licenses file (LICENSES.md) included with
"./src/directives/MCTDrag", * this source code distribution or the Licensing information page available
"./src/directives/MCTSelectable", * at runtime from the About dialog for additional information.
"./src/directives/MCTClickElsewhere", *****************************************************************************/
"./src/directives/MCTResize",
"./src/directives/MCTPopup",
"./src/directives/MCTScroll",
"./src/directives/MCTSplitPane",
"./src/directives/MCTSplitter",
"./src/directives/MCTTree",
"./src/directives/MCTIndicators",
"./src/filters/ReverseFilter",
"./res/templates/bottombar.html",
"./res/templates/controls/action-button.html",
"./res/templates/controls/input-filter.html",
"./res/templates/angular-indicator.html",
"./res/templates/message-banner.html",
"./res/templates/progress-bar.html",
"./res/templates/controls/time-controller.html",
"./res/templates/containers/accordion.html",
"./res/templates/subtree.html",
"./res/templates/tree.html",
"./res/templates/tree-node.html",
"./res/templates/label.html",
"./res/templates/controls/action-group.html",
"./res/templates/controls/switcher.html",
"./res/templates/object-inspector.html",
"./res/templates/controls/selector.html",
"./res/templates/controls/datetime-picker.html",
"./res/templates/controls/datetime-field.html"
], function (
UrlService,
PopupService,
SplashScreenManager,
StyleSheetLoader,
TimeRangeController,
DateTimePickerController,
DateTimeFieldController,
TreeNodeController,
ActionGroupController,
ToggleController,
ClickAwayController,
ViewSwitcherController,
GetterSetterController,
SelectorController,
ObjectInspectorController,
BannerController,
MCTContainer,
MCTDrag,
MCTSelectable,
MCTClickElsewhere,
MCTResize,
MCTPopup,
MCTScroll,
MCTSplitPane,
MCTSplitter,
MCTTree,
MCTIndicators,
ReverseFilter,
bottombarTemplate,
actionButtonTemplate,
inputFilterTemplate,
indicatorTemplate,
messageBannerTemplate,
progressBarTemplate,
timeControllerTemplate,
accordionTemplate,
subtreeTemplate,
treeTemplate,
treeNodeTemplate,
labelTemplate,
actionGroupTemplate,
switcherTemplate,
objectInspectorTemplate,
selectorTemplate,
datetimePickerTemplate,
datetimeFieldTemplate
) {
return { import UrlService from './src/services/UrlService';
import PopupService from './src/services/PopupService';
import SplashScreenManager from './src/SplashScreenManager';
import StyleSheetLoader from './src/StyleSheetLoader';
import TimeRangeController from './src/controllers/TimeRangeController';
import DateTimePickerController from './src/controllers/DateTimePickerController';
import DateTimeFieldController from './src/controllers/DateTimeFieldController';
import TreeNodeController from './src/controllers/TreeNodeController';
import ActionGroupController from './src/controllers/ActionGroupController';
import ToggleController from './src/controllers/ToggleController';
import ClickAwayController from './src/controllers/ClickAwayController';
import ViewSwitcherController from './src/controllers/ViewSwitcherController';
import GetterSetterController from './src/controllers/GetterSetterController';
import SelectorController from './src/controllers/SelectorController';
import ObjectInspectorController from './src/controllers/ObjectInspectorController';
import BannerController from './src/controllers/BannerController';
import MCTContainer from './src/directives/MCTContainer';
import MCTDrag from './src/directives/MCTDrag';
import MCTSelectable from './src/directives/MCTSelectable';
import MCTClickElsewhere from './src/directives/MCTClickElsewhere';
import MCTResize from './src/directives/MCTResize';
import MCTPopup from './src/directives/MCTPopup';
import MCTScroll from './src/directives/MCTScroll';
import MCTSplitPane from './src/directives/MCTSplitPane';
import MCTSplitter from './src/directives/MCTSplitter';
import MCTTree from './src/directives/MCTTree';
import MCTIndicators from './src/directives/MCTIndicators';
import ReverseFilter from './src/filters/ReverseFilter';
import bottombarTemplate from './res/templates/bottombar.html';
import actionButtonTemplate from './res/templates/controls/action-button.html';
import inputFilterTemplate from './res/templates/controls/input-filter.html';
import indicatorTemplate from './res/templates/angular-indicator.html';
import messageBannerTemplate from './res/templates/message-banner.html';
import progressBarTemplate from './res/templates/progress-bar.html';
import timeControllerTemplate from './res/templates/controls/time-controller.html';
import accordionTemplate from './res/templates/containers/accordion.html';
import subtreeTemplate from './res/templates/subtree.html';
import treeTemplate from './res/templates/tree.html';
import treeNodeTemplate from './res/templates/tree-node.html';
import labelTemplate from './res/templates/label.html';
import actionGroupTemplate from './res/templates/controls/action-group.html';
import switcherTemplate from './res/templates/controls/switcher.html';
import objectInspectorTemplate from './res/templates/object-inspector.html';
import selectorTemplate from './res/templates/controls/selector.html';
import datetimePickerTemplate from './res/templates/controls/datetime-picker.html';
import datetimeFieldTemplate from './res/templates/controls/datetime-field.html';
export default {
name: "platform/commonUI/general", name: "platform/commonUI/general",
definition: { definition: {
"name": "General UI elements", "name": "General UI elements",
@ -526,4 +500,3 @@ define([
} }
} }
}; };
});

View File

@ -20,11 +20,27 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
], function ( * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
) { *
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
function SplashScreenManager($document) { function SplashScreenManager($document) {
var splash; var splash;
@ -40,5 +56,4 @@ define([
}); });
} }
return SplashScreenManager; export default SplashScreenManager;
});

View File

@ -25,20 +25,32 @@
* platform styling. * platform styling.
* @namespace platform/commonUI/general * @namespace platform/commonUI/general
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The StyleSheetLoader adds links to style sheets exposed from * This bundle provides various general-purpose UI elements, including
* various bundles as extensions of category `stylesheets`. * platform styling.
* @memberof platform/commonUI/general * @namespace platform/commonUI/general
* @constructor
* @param {object[]} stylesheets stylesheet extension definitions
* @param $document Angular's jqLite-wrapped document element
* @param {string} activeTheme the theme in use
* @param {string} [assetPath] the directory relative to which
* stylesheets will be found
*/ */
function StyleSheetLoader(stylesheets, $document, activeTheme, assetPath) { function StyleSheetLoader(stylesheets, $document, activeTheme, assetPath) {
var head = $document.find('head'), var head = $document.find('head'),
@ -77,6 +89,4 @@ define(
stylesheets.filter(matchesTheme).forEach(addStyleSheet); stylesheets.filter(matchesTheme).forEach(addStyleSheet);
} }
return StyleSheetLoader; export default StyleSheetLoader;
}
);

View File

@ -23,25 +23,30 @@
/** /**
* Module defining ActionGroupController. Created by vwoeltje on 11/14/14. * Module defining ActionGroupController. Created by vwoeltje on 11/14/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* Controller which keeps an up-to-date list of actions of * Module defining ActionGroupController. Created by vwoeltje on 11/14/14.
* a certain category, and additionally bins them into
* groups as described by their metadata. Used specifically
* to support button groups.
*
* This will maintain two fields in the scope:
* * `groups`: An array of arrays. Each element in the outer
* array corresponds to a group; the inner array contains
* the actions which are in that group.
* * `ungrouped`: All actions which did not have a defined
* group.
*
* @memberof platform/commonUI/general
* @constructor
*/ */
function ActionGroupController($scope) { function ActionGroupController($scope) {
@ -99,6 +104,4 @@ define(
$scope.groups = []; $scope.groups = [];
} }
return ActionGroupController; export default ActionGroupController;
}
);

View File

@ -20,23 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
/**
* A controller for banner notifications. Banner notifications are a
* non-blocking way of drawing the user's attention to an event such
* as system errors, or the progress or successful completion of an
* ongoing task. This controller provides scoped functions for
* dismissing and 'maximizing' notifications. See {@link NotificationService}
* for more details on Notifications.
* *
* @param $scope * Open MCT is licensed under the Apache License, Version 2.0 (the
* @param notificationService * "License"); you may not use this file except in compliance with the License.
* @param dialogService * You may obtain a copy of the License at
* @constructor * http://www.apache.org/licenses/LICENSE-2.0.
*/ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
function BannerController($scope, notificationService, dialogService) { function BannerController($scope, notificationService, dialogService) {
$scope.active = notificationService.active; $scope.active = notificationService.active;
@ -73,5 +78,4 @@ define(
}; };
} }
return BannerController; export default BannerController;
});

View File

@ -20,20 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
/**
* A ClickAwayController is used to toggle things (such as context
* menus) where clicking elsewhere in the document while the toggle
* is in an active state is intended to dismiss the toggle.
* *
* @memberof platform/commonUI/general * Open MCT is licensed under the Apache License, Version 2.0 (the
* @constructor * "License"); you may not use this file except in compliance with the License.
* @param $scope the scope in which this controller is active * You may obtain a copy of the License at
* @param $document the document element, injected by Angular * http://www.apache.org/licenses/LICENSE-2.0.
*/ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
function ClickAwayController($document, $timeout) { function ClickAwayController($document, $timeout) {
var self = this; var self = this;
@ -92,6 +100,4 @@ define(
} }
}; };
return ClickAwayController; export default ClickAwayController;
}
);

View File

@ -20,27 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* Controller to support the date-time entry field.
*
* Accepts a `format` property in the `structure` attribute
* which allows a date/time to be specified via its symbolic
* key (as will be used to look up said format from the
* `formatService`.)
*
* {@see FormatService}
* @constructor
* @memberof platform/commonUI/general
* @param $scope the Angular scope for this controller
* @param {FormatService} formatService the service to user to format
* domain values
* @param {string} defaultFormat the format to request when no
* format has been otherwise specified
*/
function DateTimeFieldController($scope, formatService, defaultFormat) { function DateTimeFieldController($scope, formatService, defaultFormat) {
var formatter = formatService.getFormat(defaultFormat); var formatter = formatService.getFormat(defaultFormat);
@ -107,6 +108,4 @@ define(
$scope.$watch('textValue', updateFromView); $scope.$watch('textValue', updateFromView);
} }
return DateTimeFieldController; export default DateTimeFieldController;
}
);

View File

@ -20,9 +20,29 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
['moment'], * Open MCT, Copyright (c) 2014-2021, United States Government
function (moment) { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import moment from 'moment';
var TIME_NAMES = { var TIME_NAMES = {
'hours': "Hour", 'hours': "Hour",
@ -202,6 +222,4 @@ define(
$scope.$watchCollection('time', updateFromView); $scope.$watchCollection('time', updateFromView);
} }
return DateTimePickerController; export default DateTimePickerController;
}
);

View File

@ -20,42 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* This controller acts as an adapter to permit getter-setter
* functions to be used as ng-model arguments to controls,
* such as the input-filter. This is supported natively in
* Angular 1.3+ via `ng-model-options`, so this controller
* should be made obsolete after any upgrade to Angular 1.3.
*
* It expects to find in scope a value `ngModel` which is a
* function which, when called with no arguments, acts as a
* getter, and when called with one argument, acts as a setter.
*
* It also publishes into the scope a value `getterSetter.value`
* which is meant to be used as an assignable expression.
*
* This controller watches both of these; when one changes,
* it will update the other's value to match. Because of this,
* the `ngModel` function should be both stable and computationally
* inexpensive, as it will be invoked often.
*
* Getter-setter style models can be preferable when there
* is significant indirection between templates; "dotless"
* expressions in `ng-model` can behave unexpectedly due to the
* rules of scope, but dots are lost when passed in via `ng-model`
* (so if a control is internally implemented using regular
* form elements, it can't transparently pass through the `ng-model`
* parameter it received.) Getter-setter functions are never the
* target of a scope assignment and so avoid this problem.
*
* @memberof platform/commonUI/general
* @constructor
* @param {Scope} $scope the controller's scope
*/
function GetterSetterController($scope) { function GetterSetterController($scope) {
// Update internal assignable state based on changes // Update internal assignable state based on changes
@ -83,7 +69,4 @@ define(
} }
return GetterSetterController; export default GetterSetterController;
}
);

View File

@ -23,15 +23,30 @@
/** /**
* Module defining ObjectInspectorController. Created by shale on 08/21/2015. * Module defining ObjectInspectorController. Created by shale on 08/21/2015.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The ObjectInspectorController gets and formats the data for * Module defining ObjectInspectorController. Created by shale on 08/21/2015.
* the inspector display
*
* @constructor
*/ */
function ObjectInspectorController($scope, objectService) { function ObjectInspectorController($scope, objectService) {
$scope.primaryParents = []; $scope.primaryParents = [];
@ -114,6 +129,4 @@ define(
$scope.$on('$destroy', unlisten); $scope.$on('$destroy', unlisten);
} }
return ObjectInspectorController; export default ObjectInspectorController;
}
);

View File

@ -20,9 +20,27 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
var ROOT_ID = "ROOT"; var ROOT_ID = "ROOT";
@ -159,6 +177,4 @@ define(
return this.selectedObjects; return this.selectedObjects;
}; };
return SelectorController; export default SelectorController;
}
);

View File

@ -20,9 +20,27 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define([ /*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
], function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
var TICK_SPACING_PX = 150; var TICK_SPACING_PX = 150;
@ -309,5 +327,4 @@ define([
>= this.$scope.formModel.start + this.outerMinimumSpan; >= this.$scope.formModel.start + this.outerMinimumSpan;
}; };
return TimeRangeController; export default TimeRangeController;
});

View File

@ -20,17 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
/**
* A ToggleController is used to activate/deactivate things.
* A common usage is for "twistie"
* *
* @memberof platform/commonUI/general * Open MCT is licensed under the Apache License, Version 2.0 (the
* @constructor * "License"); you may not use this file except in compliance with the License.
*/ * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
function ToggleController() { function ToggleController() {
this.state = false; this.state = false;
@ -61,6 +72,4 @@ define(
this.state = !this.state; this.state = !this.state;
}; };
return ToggleController; export default ToggleController;
}
);

View File

@ -23,40 +23,30 @@
/** /**
* Module defining TreeNodeController. Created by vwoeltje on 11/10/14. * Module defining TreeNodeController. Created by vwoeltje on 11/10/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The TreeNodeController supports the tree node representation; * Module defining TreeNodeController. Created by vwoeltje on 11/10/14.
* a tree node has a label for the current object as well as a
* subtree which shows (and is not loaded until) the node is
* expanded.
*
* This controller tracks the following, so that the tree node
* template may update its state accordingly:
*
* * Whether or not the tree node has ever been expanded (this
* is used to lazily load, exactly once, the subtree)
* * Whether or not the node is currently the domain object
* of navigation (this gets highlighted differently to
* provide the user with visual feedback.)
*
* Additionally, this controller will automatically trigger
* node expansion when this tree node's _subtree_ will contain
* the navigated object (recursively, this becomes an
* expand-to-show-navigated-object behavior.)
*
* Finally, if a `callback` property is passed in through the
* `parameters` attribute of the `tree-node`, that callback
* will be invoked whenever a user clicks in a manner which
* would result in a selection. This callback is invoked
* even if the selection does not change (if you are only
* interested in changes, watch the `selectedObject` property
* of the object passed in `ng-model` instead.)
*
* @memberof platform/commonUI/general
* @constructor
*/ */
function TreeNodeController($scope, $timeout) { function TreeNodeController($scope, $timeout) {
var self = this, var self = this,
@ -199,6 +189,4 @@ define(
return this.isSelectedFlag; return this.isSelectedFlag;
}; };
return TreeNodeController; export default TreeNodeController;
}
);

View File

@ -23,15 +23,30 @@
/** /**
* Module defining ViewSwitcherController. Created by vwoeltje on 11/7/14. * Module defining ViewSwitcherController. Created by vwoeltje on 11/7/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* Controller for the view switcher; populates and maintains a list * Module defining ViewSwitcherController. Created by vwoeltje on 11/7/14.
* of applicable views for a represented domain object.
* @memberof platform/commonUI/general
* @constructor
*/ */
function ViewSwitcherController($scope, $timeout) { function ViewSwitcherController($scope, $timeout) {
// If the view capability gets refreshed, try to // If the view capability gets refreshed, try to
@ -67,7 +82,4 @@ define(
$scope.$watch("view", updateOptions); $scope.$watch("view", updateOptions);
} }
return ViewSwitcherController; export default ViewSwitcherController;
}
);

View File

@ -20,17 +20,28 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/**
* The `mct-click-elsewhere` directive will evaluate its
* associated expression whenever a `mousedown` occurs anywhere
* outside of the element that has the `mct-click-elsewhere`
* directive attached. This is useful for dismissing popups
* and the like.
*/
function MCTClickElsewhere($document) { function MCTClickElsewhere($document) {
// Link; install event handlers. // Link; install event handlers.
@ -71,7 +82,4 @@ define(
}; };
} }
return MCTClickElsewhere; export default MCTClickElsewhere;
}
);

View File

@ -23,22 +23,30 @@
/** /**
* Module defining MCTContainer. Created by vwoeltje on 11/17/14. * Module defining MCTContainer. Created by vwoeltje on 11/17/14.
*/ */
define( /*****************************************************************************
[], * Open MCT, Copyright (c) 2014-2021, United States Government
function () { * as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/** /**
* The mct-container is similar to the mct-include directive * Module defining MCTContainer. Created by vwoeltje on 11/17/14.
* insofar as it allows templates to be referenced by
* symbolic keys instead of by URL. Unlike mct-include, it
* supports transclusion.
*
* Unlike mct-include, mct-container accepts a key as a
* plain string attribute, instead of as an Angular
* expression.
*
* @memberof platform/commonUI/general
* @constructor
*/ */
function MCTContainer(containers) { function MCTContainer(containers) {
var containerMap = {}; var containerMap = {};
@ -86,6 +94,4 @@ define(
}; };
} }
return MCTContainer; export default MCTContainer;
}
);

Some files were not shown because too many files have changed in this diff Show More