first commit
This commit is contained in:
22
WebRoot/node_modules/patternfly-bootstrap-treeview/.gitattributes
generated
vendored
Normal file
22
WebRoot/node_modules/patternfly-bootstrap-treeview/.gitattributes
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
*.sln merge=union
|
||||
*.csproj merge=union
|
||||
*.vbproj merge=union
|
||||
*.fsproj merge=union
|
||||
*.dbproj merge=union
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
||||
14
WebRoot/node_modules/patternfly-bootstrap-treeview/.jshintrc
generated
vendored
Normal file
14
WebRoot/node_modules/patternfly-bootstrap-treeview/.jshintrc
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
// Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
|
||||
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
|
||||
// Documentation: http://www.jshint.com/docs/
|
||||
"browser": true,
|
||||
"esnext": true,
|
||||
"globals": { $: false, jQuery: false, "console": false},
|
||||
"globalstrict": true,
|
||||
"quotmark": "single",
|
||||
"smarttabs": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true
|
||||
}
|
||||
3
WebRoot/node_modules/patternfly-bootstrap-treeview/.npmignore
generated
vendored
Normal file
3
WebRoot/node_modules/patternfly-bootstrap-treeview/.npmignore
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
bower_components
|
||||
.idea
|
||||
15
WebRoot/node_modules/patternfly-bootstrap-treeview/.travis.yml
generated
vendored
Normal file
15
WebRoot/node_modules/patternfly-bootstrap-treeview/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.11"
|
||||
- "0.12"
|
||||
- "4"
|
||||
- "5"
|
||||
- "6"
|
||||
|
||||
before_script:
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
|
||||
script: grunt test --verbose --force
|
||||
91
WebRoot/node_modules/patternfly-bootstrap-treeview/CHANGELOG.md
generated
vendored
Normal file
91
WebRoot/node_modules/patternfly-bootstrap-treeview/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
# Change Log
|
||||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## v1.2.0 - 9th May, 2015
|
||||
|
||||
### New Features
|
||||
|
||||
- Disable nodes, allow a tree node to disabled (not selectable, expandable or checkable)
|
||||
|
||||
- Added node state property `disabled` to set a node initial state
|
||||
|
||||
- Methods `disableAll`, `disableNode`, `enableAll`, `enableNode` and `toggleNodeDisabled` added to control state programmatically
|
||||
|
||||
- Events `nodeDisabled` and `nodeEnabled`
|
||||
|
||||
- Checkable nodes, allows a tree node to be checked or unchecked.
|
||||
|
||||
- Added node state property `checked` to set a node initial state
|
||||
|
||||
- Pass option `{showCheckbox: true}` to initialize tree view with checkboxes
|
||||
|
||||
- Use options `checkedIcon` and `uncheckedIcon` to configure checkbox icons
|
||||
|
||||
- Methods `checkAll`, `checkNode`, `uncheckAll`, `uncheckNode` and `toggleNodeChecked` to control state programmatically
|
||||
|
||||
- Events `nodeChecked` and `nodeUnchecked`
|
||||
|
||||
- New option + node property `selectedIcon` to support displaying different icons when a node is selected.
|
||||
|
||||
- New search option `{ revealResults : true | false }` which when set to true will automatically expand the tree view to reveal matching nodes
|
||||
|
||||
- New method `revealNode` which expands the tree view to reveal a given node
|
||||
|
||||
- New methods to retrieve nodes by state : `getSelected`, `getUnselected`, `getExpanded`, `getCollapsed`, `getChecked`, `getUnchecked`, `getDisabled` and `getEnabled`
|
||||
|
||||
|
||||
### Changes
|
||||
- Removed nodeIcon by default, by popular demand. Use `{nodeIcon: 'glyphicon glyphicon-stop'}` in initial options to add a node icon.
|
||||
|
||||
- Search behaviour, by default search will the expand tree view and reveal results. Alternatively pass `{revealResults:false}`
|
||||
|
||||
- Method collapseNode accepts new option `{ ignoreChildren: true | false }`. The default is false, passing true will leave child nodes uncollapsed
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
- Remove unnecessary render in clearSearch when called from search
|
||||
|
||||
- Child nodes should collapse by default on collapseNode
|
||||
|
||||
- Incorrect expand collapse icon displayed when nodes array is empty
|
||||
|
||||
|
||||
|
||||
|
||||
## v1.1.0 - 29th March, 2015
|
||||
|
||||
### New Features
|
||||
|
||||
- Added node state properties `expanded` and `selected` so a node's intial state can be set
|
||||
|
||||
- New get methods `getNode`, `getParent` and `getSiblings` for retrieving nodes and their immediate relations
|
||||
|
||||
- New select methods `selectNode`, `unselectNode` and `toggleNodeSelected`
|
||||
|
||||
- Adding `nodeUnselected` event
|
||||
|
||||
- New global option `multiSelect` which allows multiple nodes to hold the selected state, default is false
|
||||
|
||||
- New expand collapse methods `expandAll`, `collapseAll`, `expandNode`, `collapseNode` and `toggleNodeExpanded`
|
||||
|
||||
- Adding events `nodeExpanded` and `nodeCollapsed`
|
||||
|
||||
- New methods `search` and `clearSearch` which allow you to query the tree view for nodes based on a `text` value
|
||||
|
||||
- Adding events `searchComplete` and `searchCleared`
|
||||
|
||||
- New global options `highlightSearchResults`, `searchResultColor` and `searchResultBackColor` for configuring how search results are displayed
|
||||
|
||||
|
||||
|
||||
|
||||
## v1.0.2 - 6th February, 2015
|
||||
|
||||
### Changes
|
||||
- jQuery dependency version updated in Bower
|
||||
|
||||
### Bug Fixes
|
||||
- Events not unbound when re-initialised
|
||||
|
||||
- CSS selectors too general, affecting other page elements
|
||||
64
WebRoot/node_modules/patternfly-bootstrap-treeview/Gruntfile.js
generated
vendored
Normal file
64
WebRoot/node_modules/patternfly-bootstrap-treeview/Gruntfile.js
generated
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'), // the package file to use
|
||||
|
||||
uglify: {
|
||||
files: {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: 'src/js/*.js',
|
||||
dest: 'dist',
|
||||
ext: '.min.js'
|
||||
}
|
||||
},
|
||||
|
||||
cssmin: {
|
||||
minify: {
|
||||
expand: true,
|
||||
cwd: 'src/css',
|
||||
src: ['*.css', '!*.min.css'],
|
||||
dest: 'dist',
|
||||
ext: '.min.css'
|
||||
}
|
||||
},
|
||||
|
||||
qunit: {
|
||||
all: ['tests/*.html']
|
||||
},
|
||||
|
||||
watch: {
|
||||
files: ['tests/*.js', 'tests/*.html', 'src/**'],
|
||||
tasks: ['default']
|
||||
},
|
||||
|
||||
copy: {
|
||||
main: {
|
||||
files: [
|
||||
// setup tests
|
||||
{ expand: true, cwd: 'src/css', src: '*', dest: 'tests/lib/' },
|
||||
{ expand: true, cwd: 'src/js', src: '*', dest: 'tests/lib/' },
|
||||
{ expand: true, cwd: 'node_modules/jquery/dist', src: 'jquery.js', dest: 'tests/lib/' },
|
||||
// setup public
|
||||
{ expand: true, cwd: 'src/css', src: '*', dest: 'public/css/' },
|
||||
{ expand: true, cwd: 'src/js', src: '*', dest: 'public/js/' },
|
||||
{ expand: true, cwd: 'node_modules/bootstrap/dist/', src: '**/*', dest: 'public/libs/bootstrap/' },
|
||||
{ expand: true, cwd: 'node_modules/jquery/dist/', src: '*', dest: 'public/libs/jquery' },
|
||||
// setup unminified
|
||||
{ expand: true, cwd: 'src/css', src: '*', dest: 'dist/' },
|
||||
{ expand: true, cwd: 'src/js', src: '*', dest: 'dist/' }
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// load up your plugins
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-contrib-qunit');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
|
||||
// register one or more task lists (you should ALWAYS have a "default" task list)
|
||||
grunt.registerTask('default', ['uglify', 'cssmin', 'copy', 'qunit', 'watch']);
|
||||
grunt.registerTask('test', 'qunit');
|
||||
};
|
||||
202
WebRoot/node_modules/patternfly-bootstrap-treeview/LICENSE
generated
vendored
Normal file
202
WebRoot/node_modules/patternfly-bootstrap-treeview/LICENSE
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
|
||||
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.
|
||||
|
||||
1020
WebRoot/node_modules/patternfly-bootstrap-treeview/README.md
generated
vendored
Normal file
1020
WebRoot/node_modules/patternfly-bootstrap-treeview/README.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
29
WebRoot/node_modules/patternfly-bootstrap-treeview/app.js
generated
vendored
Normal file
29
WebRoot/node_modules/patternfly-bootstrap-treeview/app.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var express = require('express');
|
||||
var http = require('http');
|
||||
var path = require('path');
|
||||
|
||||
var app = express();
|
||||
|
||||
// all environments
|
||||
app.set('port', process.env.PORT || 3000);
|
||||
app.use(express.favicon());
|
||||
app.use(express.logger('dev'));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded());
|
||||
app.use(express.methodOverride());
|
||||
app.use(express.static(path.join(__dirname, '/public')));
|
||||
app.use(express.static(path.join(__dirname, '/tests')));
|
||||
|
||||
// development only
|
||||
if ('development' == app.get('env')) {
|
||||
app.use(express.errorHandler());
|
||||
}
|
||||
|
||||
http.createServer(app).listen(app.get('port'), function(){
|
||||
console.log('Express server listening on port ' + app.get('port'));
|
||||
});
|
||||
29
WebRoot/node_modules/patternfly-bootstrap-treeview/bower.json
generated
vendored
Normal file
29
WebRoot/node_modules/patternfly-bootstrap-treeview/bower.json
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "patternfly-bootstrap-treeview",
|
||||
"description": "Tree View for Twitter Bootstrap",
|
||||
"version": "2.1.5",
|
||||
"homepage": "https://github.com/patternfly/patternfly-bootstrap-treeview",
|
||||
"main": "dist/bootstrap-treeview.js",
|
||||
"keywords": [
|
||||
"twitter",
|
||||
"bootstrap",
|
||||
"tree",
|
||||
"treeview",
|
||||
"tree-view",
|
||||
"navigation",
|
||||
"javascript",
|
||||
"jquery",
|
||||
"jquery-plugin"
|
||||
],
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery": ">= 1.9.0",
|
||||
"bootstrap": ">= 3.0.0"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
52
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.css
generated
vendored
Normal file
52
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.css
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/* =========================================================
|
||||
* patternfly-bootstrap-treeview.css v2.1.0
|
||||
* =========================================================
|
||||
* Copyright 2013 Jonathan Miles
|
||||
* Project URL : http://www.jondmiles.com/bootstrap-treeview
|
||||
*
|
||||
* 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.
|
||||
* ========================================================= */
|
||||
|
||||
.treeview .list-group-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.treeview span.indent {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.treeview span.icon {
|
||||
width: 12px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.treeview .node-disabled {
|
||||
color: silver;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.treeview .node-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.treeview span.image {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 1.19em;
|
||||
vertical-align: middle;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
margin-right: 5px;
|
||||
line-height: 1em;
|
||||
}
|
||||
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.js
generated
vendored
Normal file
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.css
generated
vendored
Normal file
1
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.css
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
.treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.icon,.treeview span.image{width:12px;margin-right:5px}.treeview .node-disabled{color:silver;cursor:not-allowed}.treeview .node-hidden{display:none}.treeview span.image{display:inline-block;height:1.19em;vertical-align:middle;background-size:contain;background-repeat:no-repeat;line-height:1em}
|
||||
1
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js
generated
vendored
Normal file
1
WebRoot/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
77
WebRoot/node_modules/patternfly-bootstrap-treeview/package.json
generated
vendored
Normal file
77
WebRoot/node_modules/patternfly-bootstrap-treeview/package.json
generated
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
"_from": "patternfly-bootstrap-treeview",
|
||||
"_id": "patternfly-bootstrap-treeview@2.1.5",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-TCnyWC+4ovKPCpKPLw0yTSHWmQ0=",
|
||||
"_location": "/patternfly-bootstrap-treeview",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "patternfly-bootstrap-treeview",
|
||||
"name": "patternfly-bootstrap-treeview",
|
||||
"escapedName": "patternfly-bootstrap-treeview",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/patternfly-bootstrap-treeview/-/patternfly-bootstrap-treeview-2.1.5.tgz",
|
||||
"_shasum": "4c29f2582fb8a2f28f0a928f2f0d324d21d6990d",
|
||||
"_spec": "patternfly-bootstrap-treeview",
|
||||
"_where": "D:\\Workspaces\\SSMBootstrap\\WebRoot\\node_modules",
|
||||
"author": {
|
||||
"name": "Red Hat"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/patternfly/patternfly-bootstrap-treeview/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"bootstrap": "3.3.x",
|
||||
"jquery": ">= 2.1.x"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Tree View for Twitter Bootstrap",
|
||||
"devDependencies": {
|
||||
"bower": "1.3.x",
|
||||
"express": "3.4.x",
|
||||
"grunt": "^1.0.1",
|
||||
"grunt-contrib-copy": "^1.0.0",
|
||||
"grunt-contrib-cssmin": "^1.0.1",
|
||||
"grunt-contrib-qunit": "^1.2.0",
|
||||
"grunt-contrib-uglify": "^1.0.1",
|
||||
"grunt-contrib-watch": "^1.0.0",
|
||||
"phantomjs": "^2.1.7"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10.0"
|
||||
},
|
||||
"homepage": "https://github.com/patternfly/patternfly-bootstrap-treeview",
|
||||
"keywords": [
|
||||
"twitter",
|
||||
"bootstrap",
|
||||
"tree",
|
||||
"treeview",
|
||||
"tree-view",
|
||||
"navigation",
|
||||
"javascript",
|
||||
"jquery",
|
||||
"jquery-plugin"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "dist/bootstrap-treeview.js",
|
||||
"name": "patternfly-bootstrap-treeview",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/patternfly/patternfly-bootstrap-treeview.git"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node app",
|
||||
"test": "grunt test"
|
||||
},
|
||||
"version": "2.1.5"
|
||||
}
|
||||
52
WebRoot/node_modules/patternfly-bootstrap-treeview/public/css/bootstrap-treeview.css
generated
vendored
Normal file
52
WebRoot/node_modules/patternfly-bootstrap-treeview/public/css/bootstrap-treeview.css
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/* =========================================================
|
||||
* patternfly-bootstrap-treeview.css v2.1.0
|
||||
* =========================================================
|
||||
* Copyright 2013 Jonathan Miles
|
||||
* Project URL : http://www.jondmiles.com/bootstrap-treeview
|
||||
*
|
||||
* 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.
|
||||
* ========================================================= */
|
||||
|
||||
.treeview .list-group-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.treeview span.indent {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.treeview span.icon {
|
||||
width: 12px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.treeview .node-disabled {
|
||||
color: silver;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.treeview .node-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.treeview span.image {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 1.19em;
|
||||
vertical-align: middle;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
margin-right: 5px;
|
||||
line-height: 1em;
|
||||
}
|
||||
42
WebRoot/node_modules/patternfly-bootstrap-treeview/public/data.json
generated
vendored
Normal file
42
WebRoot/node_modules/patternfly-bootstrap-treeview/public/data.json
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"text": "Parent 1",
|
||||
"tags": [4],
|
||||
"nodes": [
|
||||
{
|
||||
"text": "Child 1",
|
||||
"tags": [2],
|
||||
"nodes": [
|
||||
{
|
||||
"text": "Grandchild 1",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Grandchild 2",
|
||||
"tags": [0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "Child 2",
|
||||
"tags": [0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "Parent 2",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Parent 3",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Parent 4",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Parent 5",
|
||||
"tags": [0]
|
||||
}
|
||||
]
|
||||
59
WebRoot/node_modules/patternfly-bootstrap-treeview/public/example-dom.html
generated
vendored
Normal file
59
WebRoot/node_modules/patternfly-bootstrap-treeview/public/example-dom.html
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap Tree View</title>
|
||||
<link href="./libs/bootstrap/css/bootstrap.css" rel="stylesheet">
|
||||
<link href="./css/bootstrap-treeview.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Bootstrap Tree View - DOM Tree</h1>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<label for="treeview"></label>
|
||||
<div id="treeview"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="./libs/jquery/jquery.js"></script>
|
||||
<script src="./js/bootstrap-treeview.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function buildDomTree() {
|
||||
|
||||
var data = [];
|
||||
|
||||
function walk(nodes, data) {
|
||||
if (!nodes) { return; }
|
||||
$.each(nodes, function (id, node) {
|
||||
var obj = {
|
||||
id: id,
|
||||
text: node.nodeName + " - " + (node.innerText ? node.innerText : ''),
|
||||
tags: [node.childElementCount > 0 ? node.childElementCount + ' child elements' : '']
|
||||
};
|
||||
if (node.childElementCount > 0) {
|
||||
obj.nodes = [];
|
||||
walk(node.children, obj.nodes);
|
||||
}
|
||||
data.push(obj);
|
||||
});
|
||||
}
|
||||
|
||||
walk($('html')[0].children, data);
|
||||
return data;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
||||
var options = {
|
||||
bootstrap2: false,
|
||||
showTags: true,
|
||||
levels: 5,
|
||||
data: buildDomTree()
|
||||
};
|
||||
|
||||
$('#treeview').treeview(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
812
WebRoot/node_modules/patternfly-bootstrap-treeview/public/index.html
generated
vendored
Normal file
812
WebRoot/node_modules/patternfly-bootstrap-treeview/public/index.html
generated
vendored
Normal file
@ -0,0 +1,812 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap Tree View</title>
|
||||
<link href="./libs/bootstrap/css/bootstrap.css" rel="stylesheet">
|
||||
<link href="./css/bootstrap-treeview.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Bootstrap Tree View</h1>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<h2>Default</h2>
|
||||
<div id="treeview1"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Collapsed</h2>
|
||||
<div id="treeview2"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Expanded</h2>
|
||||
<div id="treeview3"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<h2>Blue Theme</h2>
|
||||
<div id="treeview4"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Custom Icons</h2>
|
||||
<div id="treeview5"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tags as Badges</h2>
|
||||
<div id="treeview6"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<h2>No Border</h2>
|
||||
<div id="treeview7"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Colourful</h2>
|
||||
<div id="treeview8"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Node Overrides</h2>
|
||||
<div id="treeview9"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Searchable Tree</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Input</h2>
|
||||
<!-- <form> -->
|
||||
<div class="form-group">
|
||||
<label for="input-search" class="sr-only">Search Tree:</label>
|
||||
<input type="input" class="form-control" id="input-search" placeholder="Type to search..." value="">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-ignore-case" value="false">
|
||||
Ignore Case
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-exact-match" value="false">
|
||||
Exact Match
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-reveal-results" value="false">
|
||||
Reveal Results
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" class="btn btn-success" id="btn-search">Search</button>
|
||||
<button type="button" class="btn btn-default" id="btn-clear-search">Clear</button>
|
||||
<!-- </form> -->
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tree</h2>
|
||||
<div id="treeview-searchable"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Results</h2>
|
||||
<div id="search-output"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Selectable Tree</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Input</h2>
|
||||
<div class="form-group">
|
||||
<label for="input-select-node" class="sr-only">Search Tree:</label>
|
||||
<input type="input" class="form-control" id="input-select-node" placeholder="Identify node..." value="Parent 1">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-select-multi" value="false">
|
||||
Multi Select
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-select-silent" value="false">
|
||||
Silent (No events)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-success select-node" id="btn-select-node">Select Node</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-danger select-node" id="btn-unselect-node">Unselect Node</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-primary select-node" id="btn-toggle-selected">Toggle Node</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tree</h2>
|
||||
<div id="treeview-selectable"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Events</h2>
|
||||
<div id="selectable-output"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Expandible Tree</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Input</h2>
|
||||
<div class="form-group">
|
||||
<label for="input-expand-node" class="sr-only">Search Tree:</label>
|
||||
<input type="input" class="form-control" id="input-expand-node" placeholder="Identify node..." value="Parent 1">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-expand-silent" value="false">
|
||||
Silent (No events)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-success expand-node" id="btn-expand-node">Expand Node</button>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<select class="form-control" id="select-expand-node-levels">
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-danger expand-node" id="btn-collapse-node">Collapse Node</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-primary expand-node" id="btn-toggle-expanded">Toggle Node</button>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-success" id="btn-expand-all">Expand All</button>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<select class="form-control" id="select-expand-all-levels">
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-danger" id="btn-collapse-all">Collapse All</button>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tree</h2>
|
||||
<div id="treeview-expandible"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Events</h2>
|
||||
<div id="expandible-output"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Checkable Tree</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Input</h2>
|
||||
<div class="form-group">
|
||||
<label for="input-check-node" class="sr-only">Search Tree:</label>
|
||||
<input type="input" class="form-control" id="input-check-node" placeholder="Identify node..." value="Parent 1">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-check-silent" value="false">
|
||||
Silent (No events)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-success check-node" id="btn-check-node">Check Node</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-danger check-node" id="btn-uncheck-node">Uncheck Node</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-primary check-node" id="btn-toggle-checked">Toggle Node</button>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-success" id="btn-check-all">Check All</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-danger" id="btn-uncheck-all">Uncheck All</button>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tree</h2>
|
||||
<div id="treeview-checkable"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Events</h2>
|
||||
<div id="checkable-output"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Disabled Tree</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Input</h2>
|
||||
<div class="form-group">
|
||||
<label for="input-disable-node" class="sr-only">Search Tree:</label>
|
||||
<input type="input" class="form-control" id="input-disable-node" placeholder="Identify node..." value="Parent 1">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox" id="chk-disable-silent" value="false">
|
||||
Silent (No events)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-success disable-node" id="btn-disable-node">Disable Node</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-danger disable-node" id="btn-enable-node">Enable Node</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-primary disable-node" id="btn-toggle-disabled">Toggle Node</button>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-success" id="btn-disable-all">Disable All</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-danger" id="btn-enable-all">Enable All</button>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tree</h2>
|
||||
<div id="treeview-disabled"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Events</h2>
|
||||
<div id="disabled-output"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Lifecycle Events</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Input</h2>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-success lifecycle-events" id="btn-init" disabled>New Tree</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-danger lifecycle-events" id="btn-remove">Destroy</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Tree</h2>
|
||||
<div id="treeview-lifecycle"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Events</h2>
|
||||
<div id="lifecycle-output"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<h2>Data Options</h2>
|
||||
<div class="col-sm-4">
|
||||
<h2>Local JSON</h2>
|
||||
<div id="treeview-json"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2>Remote JSON</h2>
|
||||
<div id="treeview-ajax"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h2></h2>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
<script src="./libs/jquery/jquery.js"></script>
|
||||
<script src="./js/bootstrap-treeview.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var defaultData = [
|
||||
{
|
||||
text: 'Parent 1',
|
||||
tags: ['4'],
|
||||
nodes: [
|
||||
{
|
||||
text: 'Child 1',
|
||||
tags: ['2'],
|
||||
nodes: [
|
||||
{
|
||||
text: 'Grandchild 1',
|
||||
tags: ['0']
|
||||
},
|
||||
{
|
||||
text: 'Grandchild 2',
|
||||
tags: ['0']
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Child 2',
|
||||
tags: ['0']
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Parent 2',
|
||||
tags: ['0']
|
||||
},
|
||||
{
|
||||
text: 'Parent 3',
|
||||
tags: ['0']
|
||||
},
|
||||
{
|
||||
text: 'Parent 4',
|
||||
tags: ['0']
|
||||
},
|
||||
{
|
||||
text: 'Parent 5',
|
||||
tags: ['0']
|
||||
}
|
||||
];
|
||||
|
||||
var alternateData = [
|
||||
{
|
||||
text: 'Parent 1',
|
||||
tags: ['2'],
|
||||
nodes: [
|
||||
{
|
||||
text: 'Child 1',
|
||||
tags: ['3'],
|
||||
nodes: [
|
||||
{
|
||||
text: 'Grandchild 1',
|
||||
tags: ['6']
|
||||
},
|
||||
{
|
||||
text: 'Grandchild 2',
|
||||
tags: ['3']
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Child 2',
|
||||
tags: ['3']
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Parent 2',
|
||||
tags: ['7']
|
||||
},
|
||||
{
|
||||
text: 'Parent 3',
|
||||
icon: 'glyphicon glyphicon-earphone',
|
||||
tags: ['11']
|
||||
},
|
||||
{
|
||||
text: 'Parent 4',
|
||||
icon: 'glyphicon glyphicon-cloud-download',
|
||||
tags: ['19'],
|
||||
selected: true
|
||||
},
|
||||
{
|
||||
text: 'Parent 5',
|
||||
icon: 'glyphicon glyphicon-certificate',
|
||||
color: 'pink',
|
||||
backColor: 'red',
|
||||
tags: ['available','0']
|
||||
}
|
||||
];
|
||||
|
||||
var json = '[' +
|
||||
'{' +
|
||||
'"text": "Parent 1",' +
|
||||
'"nodes": [' +
|
||||
'{' +
|
||||
'"text": "Child 1",' +
|
||||
'"nodes": [' +
|
||||
'{' +
|
||||
'"text": "Grandchild 1"' +
|
||||
'},' +
|
||||
'{' +
|
||||
'"text": "Grandchild 2"' +
|
||||
'}' +
|
||||
']' +
|
||||
'},' +
|
||||
'{' +
|
||||
'"text": "Child 2"' +
|
||||
'}' +
|
||||
']' +
|
||||
'},' +
|
||||
'{' +
|
||||
'"text": "Parent 2"' +
|
||||
'},' +
|
||||
'{' +
|
||||
'"text": "Parent 3"' +
|
||||
'},' +
|
||||
'{' +
|
||||
'"text": "Parent 4"' +
|
||||
'},' +
|
||||
'{' +
|
||||
'"text": "Parent 5"' +
|
||||
'}' +
|
||||
']';
|
||||
|
||||
|
||||
$('#treeview1').treeview({
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview2').treeview({
|
||||
levels: 1,
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview3').treeview({
|
||||
levels: 99,
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview4').treeview({
|
||||
color: "#428bca",
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview5').treeview({
|
||||
color: "#428bca",
|
||||
expandIcon: 'glyphicon glyphicon-chevron-right',
|
||||
collapseIcon: 'glyphicon glyphicon-chevron-down',
|
||||
nodeIcon: 'glyphicon glyphicon-bookmark',
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview6').treeview({
|
||||
color: "#428bca",
|
||||
expandIcon: "glyphicon glyphicon-stop",
|
||||
collapseIcon: "glyphicon glyphicon-unchecked",
|
||||
nodeIcon: "glyphicon glyphicon-user",
|
||||
showTags: true,
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview7').treeview({
|
||||
color: "#428bca",
|
||||
showBorder: false,
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview8').treeview({
|
||||
expandIcon: "glyphicon glyphicon-stop",
|
||||
collapseIcon: "glyphicon glyphicon-unchecked",
|
||||
nodeIcon: "glyphicon glyphicon-user",
|
||||
color: "yellow",
|
||||
backColor: "purple",
|
||||
onhoverColor: "orange",
|
||||
borderColor: "red",
|
||||
showBorder: false,
|
||||
showTags: true,
|
||||
highlightSelected: true,
|
||||
selectedColor: "yellow",
|
||||
selectedBackColor: "darkorange",
|
||||
data: defaultData
|
||||
});
|
||||
|
||||
$('#treeview9').treeview({
|
||||
expandIcon: "glyphicon glyphicon-stop",
|
||||
collapseIcon: "glyphicon glyphicon-unchecked",
|
||||
nodeIcon: "glyphicon glyphicon-user",
|
||||
color: "yellow",
|
||||
backColor: "purple",
|
||||
onhoverColor: "orange",
|
||||
borderColor: "red",
|
||||
showBorder: false,
|
||||
showTags: true,
|
||||
highlightSelected: true,
|
||||
selectedColor: "yellow",
|
||||
selectedBackColor: "darkorange",
|
||||
data: alternateData
|
||||
});
|
||||
|
||||
|
||||
|
||||
var $searchableTree = $('#treeview-searchable').treeview({
|
||||
data: defaultData,
|
||||
});
|
||||
|
||||
var search = function(e) {
|
||||
var pattern = $('#input-search').val();
|
||||
var options = {
|
||||
ignoreCase: $('#chk-ignore-case').is(':checked'),
|
||||
exactMatch: $('#chk-exact-match').is(':checked'),
|
||||
revealResults: $('#chk-reveal-results').is(':checked')
|
||||
};
|
||||
var results = $searchableTree.treeview('search', [ pattern, options ]);
|
||||
|
||||
var output = '<p>' + results.length + ' matches found</p>';
|
||||
$.each(results, function (index, result) {
|
||||
output += '<p>- ' + result.text + '</p>';
|
||||
});
|
||||
$('#search-output').html(output);
|
||||
}
|
||||
|
||||
$('#btn-search').on('click', search);
|
||||
$('#input-search').on('keyup', search);
|
||||
|
||||
$('#btn-clear-search').on('click', function (e) {
|
||||
$searchableTree.treeview('clearSearch');
|
||||
$('#input-search').val('');
|
||||
$('#search-output').html('');
|
||||
});
|
||||
|
||||
|
||||
var initSelectableTree = function() {
|
||||
return $('#treeview-selectable').treeview({
|
||||
data: defaultData,
|
||||
multiSelect: $('#chk-select-multi').is(':checked'),
|
||||
onNodeSelected: function(event, node) {
|
||||
$('#selectable-output').prepend('<p>' + node.text + ' was selected</p>');
|
||||
},
|
||||
onNodeUnselected: function (event, node) {
|
||||
$('#selectable-output').prepend('<p>' + node.text + ' was unselected</p>');
|
||||
}
|
||||
});
|
||||
};
|
||||
var $selectableTree = initSelectableTree();
|
||||
|
||||
var findSelectableNodes = function() {
|
||||
return $selectableTree.treeview('search', [ $('#input-select-node').val(), { ignoreCase: false, exactMatch: false } ]);
|
||||
};
|
||||
var selectableNodes = findSelectableNodes();
|
||||
|
||||
$('#chk-select-multi:checkbox').on('change', function () {
|
||||
console.log('multi-select change');
|
||||
$selectableTree = initSelectableTree();
|
||||
selectableNodes = findSelectableNodes();
|
||||
});
|
||||
|
||||
// Select/unselect/toggle nodes
|
||||
$('#input-select-node').on('keyup', function (e) {
|
||||
selectableNodes = findSelectableNodes();
|
||||
$('.select-node').prop('disabled', !(selectableNodes.length >= 1));
|
||||
});
|
||||
|
||||
$('#btn-select-node.select-node').on('click', function (e) {
|
||||
$selectableTree.treeview('selectNode', [ selectableNodes, { silent: $('#chk-select-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-unselect-node.select-node').on('click', function (e) {
|
||||
$selectableTree.treeview('unselectNode', [ selectableNodes, { silent: $('#chk-select-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-toggle-selected.select-node').on('click', function (e) {
|
||||
$selectableTree.treeview('toggleNodeSelected', [ selectableNodes, { silent: $('#chk-select-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
|
||||
|
||||
var $expandibleTree = $('#treeview-expandible').treeview({
|
||||
data: defaultData,
|
||||
onNodeCollapsed: function(event, node) {
|
||||
$('#expandible-output').prepend('<p>' + node.text + ' was collapsed</p>');
|
||||
},
|
||||
onNodeExpanded: function (event, node) {
|
||||
$('#expandible-output').prepend('<p>' + node.text + ' was expanded</p>');
|
||||
}
|
||||
});
|
||||
|
||||
var findExpandibleNodess = function() {
|
||||
return $expandibleTree.treeview('search', [ $('#input-expand-node').val(), { ignoreCase: false, exactMatch: false } ]);
|
||||
};
|
||||
var expandibleNodes = findExpandibleNodess();
|
||||
|
||||
// Expand/collapse/toggle nodes
|
||||
$('#input-expand-node').on('keyup', function (e) {
|
||||
expandibleNodes = findExpandibleNodess();
|
||||
$('.expand-node').prop('disabled', !(expandibleNodes.length >= 1));
|
||||
});
|
||||
|
||||
$('#btn-expand-node.expand-node').on('click', function (e) {
|
||||
var levels = $('#select-expand-node-levels').val();
|
||||
$expandibleTree.treeview('expandNode', [ expandibleNodes, { levels: levels, silent: $('#chk-expand-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-collapse-node.expand-node').on('click', function (e) {
|
||||
$expandibleTree.treeview('collapseNode', [ expandibleNodes, { silent: $('#chk-expand-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-toggle-expanded.expand-node').on('click', function (e) {
|
||||
$expandibleTree.treeview('toggleNodeExpanded', [ expandibleNodes, { silent: $('#chk-expand-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
// Expand/collapse all
|
||||
$('#btn-expand-all').on('click', function (e) {
|
||||
var levels = $('#select-expand-all-levels').val();
|
||||
$expandibleTree.treeview('expandAll', { levels: levels, silent: $('#chk-expand-silent').is(':checked') });
|
||||
});
|
||||
|
||||
$('#btn-collapse-all').on('click', function (e) {
|
||||
$expandibleTree.treeview('collapseAll', { silent: $('#chk-expand-silent').is(':checked') });
|
||||
});
|
||||
|
||||
|
||||
|
||||
var $checkableTree = $('#treeview-checkable').treeview({
|
||||
data: defaultData,
|
||||
showIcon: false,
|
||||
showCheckbox: true,
|
||||
onNodeChecked: function(event, node) {
|
||||
$('#checkable-output').prepend('<p>' + node.text + ' was checked</p>');
|
||||
},
|
||||
onNodeUnchecked: function (event, node) {
|
||||
$('#checkable-output').prepend('<p>' + node.text + ' was unchecked</p>');
|
||||
}
|
||||
});
|
||||
|
||||
var findCheckableNodess = function() {
|
||||
return $checkableTree.treeview('search', [ $('#input-check-node').val(), { ignoreCase: false, exactMatch: false } ]);
|
||||
};
|
||||
var checkableNodes = findCheckableNodess();
|
||||
|
||||
// Check/uncheck/toggle nodes
|
||||
$('#input-check-node').on('keyup', function (e) {
|
||||
checkableNodes = findCheckableNodess();
|
||||
$('.check-node').prop('disabled', !(checkableNodes.length >= 1));
|
||||
});
|
||||
|
||||
$('#btn-check-node.check-node').on('click', function (e) {
|
||||
$checkableTree.treeview('checkNode', [ checkableNodes, { silent: $('#chk-check-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-uncheck-node.check-node').on('click', function (e) {
|
||||
$checkableTree.treeview('uncheckNode', [ checkableNodes, { silent: $('#chk-check-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-toggle-checked.check-node').on('click', function (e) {
|
||||
$checkableTree.treeview('toggleNodeChecked', [ checkableNodes, { silent: $('#chk-check-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
// Check/uncheck all
|
||||
$('#btn-check-all').on('click', function (e) {
|
||||
$checkableTree.treeview('checkAll', { silent: $('#chk-check-silent').is(':checked') });
|
||||
});
|
||||
|
||||
$('#btn-uncheck-all').on('click', function (e) {
|
||||
$checkableTree.treeview('uncheckAll', { silent: $('#chk-check-silent').is(':checked') });
|
||||
});
|
||||
|
||||
|
||||
|
||||
var $disabledTree = $('#treeview-disabled').treeview({
|
||||
data: defaultData,
|
||||
onNodeDisabled: function(event, node) {
|
||||
$('#disabled-output').prepend('<p>' + node.text + ' was disabled</p>');
|
||||
},
|
||||
onNodeEnabled: function (event, node) {
|
||||
$('#disabled-output').prepend('<p>' + node.text + ' was enabled</p>');
|
||||
},
|
||||
onNodeCollapsed: function(event, node) {
|
||||
$('#disabled-output').prepend('<p>' + node.text + ' was collapsed</p>');
|
||||
},
|
||||
onNodeUnchecked: function (event, node) {
|
||||
$('#disabled-output').prepend('<p>' + node.text + ' was unchecked</p>');
|
||||
},
|
||||
onNodeUnselected: function (event, node) {
|
||||
$('#disabled-output').prepend('<p>' + node.text + ' was unselected</p>');
|
||||
}
|
||||
});
|
||||
|
||||
var findDisabledNodes = function() {
|
||||
return $disabledTree.treeview('search', [ $('#input-disable-node').val(), { ignoreCase: false, exactMatch: false } ]);
|
||||
};
|
||||
var disabledNodes = findDisabledNodes();
|
||||
|
||||
// Expand/collapse/toggle nodes
|
||||
$('#input-disable-node').on('keyup', function (e) {
|
||||
disabledNodes = findDisabledNodes();
|
||||
$('.disable-node').prop('disabled', !(disabledNodes.length >= 1));
|
||||
});
|
||||
|
||||
$('#btn-disable-node.disable-node').on('click', function (e) {
|
||||
$disabledTree.treeview('disableNode', [ disabledNodes, { silent: $('#chk-disable-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-enable-node.disable-node').on('click', function (e) {
|
||||
$disabledTree.treeview('enableNode', [ disabledNodes, { silent: $('#chk-disable-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
$('#btn-toggle-disabled.disable-node').on('click', function (e) {
|
||||
$disabledTree.treeview('toggleNodeDisabled', [ disabledNodes, { silent: $('#chk-disable-silent').is(':checked') }]);
|
||||
});
|
||||
|
||||
// Expand/collapse all
|
||||
$('#btn-disable-all').on('click', function (e) {
|
||||
$disabledTree.treeview('disableAll', { silent: $('#chk-disable-silent').is(':checked') });
|
||||
});
|
||||
|
||||
$('#btn-enable-all').on('click', function (e) {
|
||||
$disabledTree.treeview('enableAll', { silent: $('#chk-disable-silent').is(':checked') });
|
||||
});
|
||||
|
||||
|
||||
|
||||
var lifecycleTreeOptions = {
|
||||
data: defaultData,
|
||||
levels: 3,
|
||||
onLoading: function(event) {
|
||||
$('#lifecycle-output').prepend('<p>Loaded data</p>');
|
||||
},
|
||||
onInitialized: function(event, nodes) {
|
||||
$('#lifecycle-output').prepend('<p>Initialized nodes</p>');
|
||||
},
|
||||
onNodeRendered: function (event, node) {
|
||||
$('#lifecycle-output').prepend('<p>Finished rendering node : ' + node.text + '</p>');
|
||||
if (node.text === 'Parent 1') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:darkred;">L</span>'));
|
||||
} else if (node.text === 'Child 1') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:red;">I</span>'));
|
||||
} else if (node.text === 'Grandchild 1') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:orange;">F</span>'));
|
||||
} else if (node.text === 'Grandchild 2') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:gold;">E</span>'));
|
||||
} else if (node.text === 'Child 2') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:green;">C</span>'));
|
||||
} else if (node.text === 'Parent 2') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:blue;">Y</span>'));
|
||||
} else if (node.text === 'Parent 3') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:indigo;">C</span>'));
|
||||
} else if (node.text === 'Parent 4') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:violet;">L</span>'));
|
||||
} else if (node.text === 'Parent 5') {
|
||||
node.$el.append($('<span class="badge" style="width:24px;background-color:darkviolet;">E</span>'));
|
||||
}
|
||||
},
|
||||
onRendered: function(event, nodes) {
|
||||
$('#lifecycle-output').prepend('<p>Finished rendering</p>');
|
||||
},
|
||||
onDestroyed: function (event) {
|
||||
$('#lifecycle-output').prepend('<p>Tree destroyed</p>');
|
||||
}
|
||||
};
|
||||
var $lifecycleTree = $('#treeview-lifecycle').treeview(lifecycleTreeOptions);
|
||||
|
||||
$('#btn-init').on('click', function (e) {
|
||||
$('#btn-init').prop('disabled', true);
|
||||
$('#btn-remove').prop('disabled', false);
|
||||
$lifecycleTree.treeview('init', lifecycleTreeOptions);
|
||||
});
|
||||
|
||||
$('#btn-remove').on('click', function (e) {
|
||||
$('#btn-remove').prop('disabled', true);
|
||||
$('#btn-init').prop('disabled', false);
|
||||
$lifecycleTree.treeview('remove');
|
||||
});
|
||||
|
||||
|
||||
|
||||
var $jsonTree = $('#treeview-json').treeview({
|
||||
data: json
|
||||
});
|
||||
|
||||
var $ajaxTree = $('#treeview-ajax').treeview({
|
||||
dataUrl: {
|
||||
url: './data.json'
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/public/js/bootstrap-treeview.js
generated
vendored
Normal file
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/public/js/bootstrap-treeview.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
WebRoot/node_modules/patternfly-bootstrap-treeview/screenshot/default.PNG
generated
vendored
Normal file
BIN
WebRoot/node_modules/patternfly-bootstrap-treeview/screenshot/default.PNG
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
52
WebRoot/node_modules/patternfly-bootstrap-treeview/src/css/bootstrap-treeview.css
generated
vendored
Normal file
52
WebRoot/node_modules/patternfly-bootstrap-treeview/src/css/bootstrap-treeview.css
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/* =========================================================
|
||||
* patternfly-bootstrap-treeview.css v2.1.0
|
||||
* =========================================================
|
||||
* Copyright 2013 Jonathan Miles
|
||||
* Project URL : http://www.jondmiles.com/bootstrap-treeview
|
||||
*
|
||||
* 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.
|
||||
* ========================================================= */
|
||||
|
||||
.treeview .list-group-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.treeview span.indent {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.treeview span.icon {
|
||||
width: 12px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.treeview .node-disabled {
|
||||
color: silver;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.treeview .node-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.treeview span.image {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 1.19em;
|
||||
vertical-align: middle;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
margin-right: 5px;
|
||||
line-height: 1em;
|
||||
}
|
||||
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/src/js/bootstrap-treeview.js
generated
vendored
Normal file
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/src/js/bootstrap-treeview.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
19
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/README.md
generated
vendored
Normal file
19
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# Testing
|
||||
|
||||
Tests are run using [QUnit](https://qunitjs.com/) and [PhantomJS](http://phantomjs.org/)
|
||||
|
||||
To run the tests yourself.
|
||||
|
||||
```javascript
|
||||
$ npm install
|
||||
$ npm test
|
||||
```
|
||||
|
||||
To view the test report.
|
||||
|
||||
```javascript
|
||||
$ npm install
|
||||
$ npm start
|
||||
```
|
||||
|
||||
Then open a browser and navigate to [http://localhost:3000/tests.html](http://localhost:3000/tests.html)
|
||||
42
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/data.json
generated
vendored
Normal file
42
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/data.json
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"text": "Parent 1",
|
||||
"tags": [4],
|
||||
"nodes": [
|
||||
{
|
||||
"text": "Child 1",
|
||||
"tags": [2],
|
||||
"nodes": [
|
||||
{
|
||||
"text": "Grandchild 1",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Grandchild 2",
|
||||
"tags": [0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "Child 2",
|
||||
"tags": [0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "Parent 2",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Parent 3",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Parent 4",
|
||||
"tags": [0]
|
||||
},
|
||||
{
|
||||
"text": "Parent 5",
|
||||
"tags": [0]
|
||||
}
|
||||
]
|
||||
1
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/blanket.min.js
generated
vendored
Normal file
1
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/blanket.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
52
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/bootstrap-treeview.css
generated
vendored
Normal file
52
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/bootstrap-treeview.css
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/* =========================================================
|
||||
* patternfly-bootstrap-treeview.css v2.1.0
|
||||
* =========================================================
|
||||
* Copyright 2013 Jonathan Miles
|
||||
* Project URL : http://www.jondmiles.com/bootstrap-treeview
|
||||
*
|
||||
* 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.
|
||||
* ========================================================= */
|
||||
|
||||
.treeview .list-group-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.treeview span.indent {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.treeview span.icon {
|
||||
width: 12px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.treeview .node-disabled {
|
||||
color: silver;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.treeview .node-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.treeview span.image {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 1.19em;
|
||||
vertical-align: middle;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
margin-right: 5px;
|
||||
line-height: 1em;
|
||||
}
|
||||
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/bootstrap-treeview.js
generated
vendored
Normal file
1948
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/bootstrap-treeview.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9210
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/jquery.js
generated
vendored
Normal file
9210
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/jquery.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
244
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/qunit-1.12.0.css
generated
vendored
Normal file
244
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/qunit-1.12.0.css
generated
vendored
Normal file
@ -0,0 +1,244 @@
|
||||
/**
|
||||
* QUnit v1.12.0 - A JavaScript Unit Testing Framework
|
||||
*
|
||||
* http://qunitjs.com
|
||||
*
|
||||
* Copyright 2012 jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
|
||||
/** Font Family and Sizes */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
||||
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
||||
#qunit-tests { font-size: smaller; }
|
||||
|
||||
|
||||
/** Resets */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
/** Header */
|
||||
|
||||
#qunit-header {
|
||||
padding: 0.5em 0 0.5em 1em;
|
||||
|
||||
color: #8699a4;
|
||||
background-color: #0d3349;
|
||||
|
||||
font-size: 1.5em;
|
||||
line-height: 1em;
|
||||
font-weight: normal;
|
||||
|
||||
border-radius: 5px 5px 0 0;
|
||||
-moz-border-radius: 5px 5px 0 0;
|
||||
-webkit-border-top-right-radius: 5px;
|
||||
-webkit-border-top-left-radius: 5px;
|
||||
}
|
||||
|
||||
#qunit-header a {
|
||||
text-decoration: none;
|
||||
color: #c2ccd1;
|
||||
}
|
||||
|
||||
#qunit-header a:hover,
|
||||
#qunit-header a:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar label {
|
||||
display: inline-block;
|
||||
padding: 0 .5em 0 .1em;
|
||||
}
|
||||
|
||||
#qunit-banner {
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar {
|
||||
padding: 0.5em 0 0.5em 2em;
|
||||
color: #5E740B;
|
||||
background-color: #eee;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#qunit-userAgent {
|
||||
padding: 0.5em 0 0.5em 2.5em;
|
||||
background-color: #2b81af;
|
||||
color: #fff;
|
||||
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-container {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/** Tests: Pass/Fail */
|
||||
|
||||
#qunit-tests {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
#qunit-tests li {
|
||||
padding: 0.4em 0.5em 0.4em 2.5em;
|
||||
border-bottom: 1px solid #fff;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests li strong {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#qunit-tests li a {
|
||||
padding: 0.5em;
|
||||
color: #c2ccd1;
|
||||
text-decoration: none;
|
||||
}
|
||||
#qunit-tests li a:hover,
|
||||
#qunit-tests li a:focus {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#qunit-tests li .runtime {
|
||||
float: right;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.qunit-assert-list {
|
||||
margin-top: 0.5em;
|
||||
padding: 0.5em;
|
||||
|
||||
background-color: #fff;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
.qunit-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests table {
|
||||
border-collapse: collapse;
|
||||
margin-top: .2em;
|
||||
}
|
||||
|
||||
#qunit-tests th {
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
padding: 0 .5em 0 0;
|
||||
}
|
||||
|
||||
#qunit-tests td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#qunit-tests pre {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#qunit-tests del {
|
||||
background-color: #e0f2be;
|
||||
color: #374e0c;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#qunit-tests ins {
|
||||
background-color: #ffcaca;
|
||||
color: #500;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*** Test Counts */
|
||||
|
||||
#qunit-tests b.counts { color: black; }
|
||||
#qunit-tests b.passed { color: #5E740B; }
|
||||
#qunit-tests b.failed { color: #710909; }
|
||||
|
||||
#qunit-tests li li {
|
||||
padding: 5px;
|
||||
background-color: #fff;
|
||||
border-bottom: none;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/*** Passing Styles */
|
||||
|
||||
#qunit-tests li li.pass {
|
||||
color: #3c510c;
|
||||
background-color: #fff;
|
||||
border-left: 10px solid #C6E746;
|
||||
}
|
||||
|
||||
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
||||
#qunit-tests .pass .test-name { color: #366097; }
|
||||
|
||||
#qunit-tests .pass .test-actual,
|
||||
#qunit-tests .pass .test-expected { color: #999999; }
|
||||
|
||||
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
||||
|
||||
/*** Failing Styles */
|
||||
|
||||
#qunit-tests li li.fail {
|
||||
color: #710909;
|
||||
background-color: #fff;
|
||||
border-left: 10px solid #EE5757;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
#qunit-tests > li:last-child {
|
||||
border-radius: 0 0 5px 5px;
|
||||
-moz-border-radius: 0 0 5px 5px;
|
||||
-webkit-border-bottom-right-radius: 5px;
|
||||
-webkit-border-bottom-left-radius: 5px;
|
||||
}
|
||||
|
||||
#qunit-tests .fail { color: #000000; background-color: #EE5757; }
|
||||
#qunit-tests .fail .test-name,
|
||||
#qunit-tests .fail .module-name { color: #000000; }
|
||||
|
||||
#qunit-tests .fail .test-actual { color: #EE5757; }
|
||||
#qunit-tests .fail .test-expected { color: green; }
|
||||
|
||||
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
||||
|
||||
|
||||
/** Result */
|
||||
|
||||
#qunit-testresult {
|
||||
padding: 0.5em 0.5em 0.5em 2.5em;
|
||||
|
||||
color: #2b81af;
|
||||
background-color: #D2E0E6;
|
||||
|
||||
border-bottom: 1px solid white;
|
||||
}
|
||||
#qunit-testresult .module-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/** Fixture */
|
||||
|
||||
#qunit-fixture {
|
||||
position: absolute;
|
||||
top: -10000px;
|
||||
left: -10000px;
|
||||
width: 1000px;
|
||||
height: 1000px;
|
||||
}
|
||||
2212
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/qunit-1.12.0.js
generated
vendored
Normal file
2212
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/lib/qunit-1.12.0.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
28
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/tests.html
generated
vendored
Normal file
28
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/tests.html
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='UTF-8' />
|
||||
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
||||
|
||||
<title>bootstrap-treeview.js Tests</title>
|
||||
|
||||
<link rel='stylesheet' href='./lib/qunit-1.12.0.css'>
|
||||
|
||||
<script src='./lib/jquery.js'></script>
|
||||
<script src='./lib/qunit-1.12.0.js'></script>
|
||||
<script src="./lib/blanket.min.js"></script>
|
||||
|
||||
<script data-cover src='./lib/bootstrap-treeview.js'></script>
|
||||
|
||||
<!-- your tests, any and all to run with the given fixtures below -->
|
||||
<script src='./tests.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="qunit"></div> <!-- QUnit fills this with results, etc -->
|
||||
<div id='qunit-fixture'>
|
||||
|
||||
<!-- any HTML you want to be present in each test (will be reset for each test) -->
|
||||
<div id="treeview"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
1197
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/tests.js
generated
vendored
Normal file
1197
WebRoot/node_modules/patternfly-bootstrap-treeview/tests/tests.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user