mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 07:00:49 +00:00
[Timelines] Change namespacing for directives
WTD-1239
This commit is contained in:
parent
8159c365b5
commit
19ad4c8174
@ -335,12 +335,12 @@
|
|||||||
"directives": [
|
"directives": [
|
||||||
{
|
{
|
||||||
"key": "mctSwimlaneDrop",
|
"key": "mctSwimlaneDrop",
|
||||||
"implementation": "directives/WARPSwimlaneDrop.js",
|
"implementation": "directives/MCTSwimlaneDrop.js",
|
||||||
"depends": [ "dndService" ]
|
"depends": [ "dndService" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "mctSwimlaneDrag",
|
"key": "mctSwimlaneDrag",
|
||||||
"implementation": "directives/WARPSwimlaneDrag.js",
|
"implementation": "directives/MCTSwimlaneDrag.js",
|
||||||
"depends": [ "dndService" ]
|
"depends": [ "dndService" ]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -6,14 +6,14 @@ define(
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the `warp-swimlane-drag` directive. When a drag is initiated
|
* Defines the `mct-swimlane-drag` directive. When a drag is initiated
|
||||||
* form an element with this attribute, the swimlane being dragged
|
* form an element with this attribute, the swimlane being dragged
|
||||||
* (identified by the value of this attribute, as an Angular expression)
|
* (identified by the value of this attribute, as an Angular expression)
|
||||||
* will be exported to the `dndService` as part of the active drag-drop
|
* will be exported to the `dndService` as part of the active drag-drop
|
||||||
* state.
|
* state.
|
||||||
* @param {DndService} dndService drag-and-drop service
|
* @param {DndService} dndService drag-and-drop service
|
||||||
*/
|
*/
|
||||||
function WARPSwimlaneDrag(dndService) {
|
function MCTSwimlaneDrag(dndService) {
|
||||||
function link(scope, element, attrs) {
|
function link(scope, element, attrs) {
|
||||||
// Look up the swimlane from the provided expression
|
// Look up the swimlane from the provided expression
|
||||||
function swimlane() {
|
function swimlane() {
|
||||||
@ -42,6 +42,6 @@ define(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return WARPSwimlaneDrag;
|
return MCTSwimlaneDrag;
|
||||||
}
|
}
|
||||||
);
|
);
|
@ -6,14 +6,14 @@ define(
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the `warp-swimlane-drop` directive. When a drop occurs
|
* Defines the `mct-swimlane-drop` directive. When a drop occurs
|
||||||
* on an element with this attribute, the swimlane targeted by the drop
|
* on an element with this attribute, the swimlane targeted by the drop
|
||||||
* (identified by the value of this attribute, as an Angular expression)
|
* (identified by the value of this attribute, as an Angular expression)
|
||||||
* will receive the dropped domain object (at which point it can handle
|
* will receive the dropped domain object (at which point it can handle
|
||||||
* the drop, typically by inserting/reordering.)
|
* the drop, typically by inserting/reordering.)
|
||||||
* @param {DndService} dndService drag-and-drop service
|
* @param {DndService} dndService drag-and-drop service
|
||||||
*/
|
*/
|
||||||
function WARPSwimlaneDrop(dndService) {
|
function MCTSwimlaneDrop(dndService) {
|
||||||
|
|
||||||
// Handle dragover events
|
// Handle dragover events
|
||||||
function dragOver(e, element, swimlane) {
|
function dragOver(e, element, swimlane) {
|
||||||
@ -60,7 +60,7 @@ define(
|
|||||||
SwimlaneDragConstants.MCT_DRAG_TYPE
|
SwimlaneDragConstants.MCT_DRAG_TYPE
|
||||||
),
|
),
|
||||||
draggedSwimlane = dndService.getData(
|
draggedSwimlane = dndService.getData(
|
||||||
SwimlaneDragConstants.WARP_SWIMLANE_DRAG_TYPE
|
SwimlaneDragConstants.TIMELINE_SWIMLANE_DRAG_TYPE
|
||||||
);
|
);
|
||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
@ -76,7 +76,7 @@ define(
|
|||||||
function link(scope, element, attrs) {
|
function link(scope, element, attrs) {
|
||||||
// Lookup swimlane by evaluating this attribute
|
// Lookup swimlane by evaluating this attribute
|
||||||
function swimlane() {
|
function swimlane() {
|
||||||
return scope.$eval(attrs.warpSwimlaneDrop);
|
return scope.$eval(attrs.mctSwimlaneDrop);
|
||||||
}
|
}
|
||||||
// Handle dragover
|
// Handle dragover
|
||||||
element.on('dragover', function (e) {
|
element.on('dragover', function (e) {
|
||||||
@ -101,6 +101,6 @@ define(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return WARPSwimlaneDrop;
|
return MCTSwimlaneDrop;
|
||||||
}
|
}
|
||||||
);
|
);
|
Loading…
x
Reference in New Issue
Block a user