0.3.3 • Published 7 years ago

fh-wfm-workorder-angular v0.3.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Raincatcher Workorder Angular User Interface

This module is an Angular JS implementation of Workorders for the Raincatcher project.

Setup

This module is packaged in a CommonJS format, exporting the name of the Angular namespace. The module can be included in an angular.js as follows:

var config = {
  mode: 'admin',
  listColumnViewId: 'listColumnView',
  detailColumnViewId: 'detailColumnView'
};

angular.module('app', [
...
, require('fh-wfm-workorder-angular')(config)
...
])

Configuration Options

The following configuration options are available for this module:

Mode

The module can have two modes: admin and user. These modes affect what options are presented to the user in the directives.

E.g. If the module is in user mode, the user will not have the option to edit / delete workorders when viewing the workorder details.

mainColumnViewId (Required)

This is the identifier for the Angular view where the main Workorder views will be rendered.

listColumnViewId (Optional)

This is the identifier for the Angular view where the list of Workorders will be rendered into. This is useful for organising where the lists will be rendered on-screen. If not specified, the lists will be rendered into the mainColumnViewId.

Workorder directives

NameDescription
workorder-listListing all of the Workorders with their current status
workorderListing the detail for a single Workorder
workorder-summaryListing the detail for the workorder, along with the result, if completed.
workorder-formA form for updating and deleting Workorders

Topics

As part of rendering Workorders, this module publishes and subscribes to several topics. These topics can be implemented in your application or you can use the fh-wfm-workorder module that already has implementations for these topics.

Published Topics

Each of the following topics subscribes to the error and done topics. If the parameter includes a topicUid, the error topic should have the topicUid appended to the done or error topic.

TopicParameters
wfm:workorders:listNONE
wfm:workorders:read{id: "IDOFWORKORDER", topicUID: "IDOFWORKORDER}
wfm:workorders:create{ workorderToCreate: workorderToCreate, topicUid: topicUid}
wfm:workorders:update{ workorderToUpdate: workorderToCreate, topicUid: topicUid}
wfm:workorders:remove{ id: "IDOFWORKORDER, topicUid: "IDOFWORKORDER"}
wfm:workflows:listNONE
wfm:workflows:read{id: workflowId, topicUid: workflowId}
wfm:results:listNONE
wfm:users:listNONE
wfm:users:read{id: userId, topicUid: userId}
1.0.0-pre.1

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.5-pre.1

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.2-0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2-alpha.1

7 years ago

0.2.0-alpha.3

7 years ago

0.2.0-alpha.2

7 years ago

0.2.0-alpha.1

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.2.0-2

7 years ago

0.2.0-1

7 years ago

0.2.0-0

7 years ago