Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timelion to kibana core #7994

Merged
merged 469 commits into from
Sep 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
469 commits
Select commit Hold shift + click to select a range
09a4b81
Add label support to static
Feb 19, 2016
6b00306
Add scaleinterval() function for things like scaling to seconds
Feb 19, 2016
26735df
Add scale_interval and range functions
Feb 19, 2016
dbac032
Update derivative description
Feb 19, 2016
7f2104c
Graphite typo fix
zexxon Feb 19, 2016
13f4e5b
Move argType into a lib function
Feb 20, 2016
86b820a
Fix some linting
Feb 20, 2016
e9351e3
Add compare function
Feb 20, 2016
c338677
Finally commit buggy, but there, testcast function. You really should…
Feb 20, 2016
934f112
Merge pull request #65 from zexxon/patch-1
lukasolson Feb 21, 2016
488bc1c
Add condition function
Feb 21, 2016
c0ebb45
Merge branch 'master' of github.com:rashidkpc/timelion
Feb 21, 2016
2c49525
Add timelion.private.json which is merged with timelion.json if avail…
Feb 21, 2016
5a4ced5
Add nostradamus, closes #66
Feb 21, 2016
460906e
Add nostradamus, closes #66
Feb 21, 2016
f03709f
Added regex support to the label function
Feb 22, 2016
d412cc7
Fix race condition in backend
Feb 23, 2016
00a82cb
Enable building of timelion visualizations in the Visualize tab
Feb 23, 2016
588f772
[rename] ConfigTemplate and TemplateVis are now snake_case
spalger Feb 26, 2016
88cf932
Make installation linkable
Mar 2, 2016
39bb562
Add .title() function. Closes #69
Mar 2, 2016
633902d
Merge branch 'master' of https://github.com/elastic/timelion
Mar 2, 2016
ed82479
Use flexbox to size chart
Mar 2, 2016
8481c61
Simpify title setting
Mar 2, 2016
ee915a9
Do not set height explicitly
Mar 2, 2016
8558b3b
Hide query bar if passed ?embed. Closes #50
Mar 2, 2016
d6144d9
Add autocomplete to timeseries vis. This completes phase 1 of timelio…
Mar 2, 2016
f161aa8
Update timeseries vis description
Mar 2, 2016
292c918
Move interval selection to a directive
Mar 4, 2016
23ab59f
Add support for setting the interval in the timeseries vis
Mar 4, 2016
f9d3078
Update y-axis description
Mar 9, 2016
f4f725d
Use a better equality check for deciding when to fit. Closes #76
Mar 10, 2016
f941d93
Closes #79
Mar 15, 2016
7d14fd1
Merge pull request #71 from spalger/fix/snakecase
Mar 15, 2016
054cf8e
Update design
Mar 22, 2016
337f93c
changed default interval to 1m to be consistent with the default time…
mcascallares Mar 31, 2016
4afe051
Add 5.0 header SVG
Mar 31, 2016
7010b75
Upgrade to 5.0.0 navbar styles. Yay more room for queries
Mar 31, 2016
91e034d
Use 5.0.0 package format
Mar 31, 2016
aa8d809
Add fit function
Apr 6, 2016
4fa4a36
Fix average fit function
Apr 6, 2016
ec15807
Bump version
Apr 6, 2016
fbac895
Add description and remove debug
Apr 6, 2016
4d554a1
Remove testcast
Apr 8, 2016
de0580a
Merge pull request #88 from mcascallares/master
Apr 14, 2016
15c517a
elastic repository instead of timelion
mcascallares Apr 19, 2016
6737b1b
Make default row/column configurable
Apr 19, 2016
46f1ce6
add config for rows/columns
Apr 19, 2016
26dacdb
Get rid of unused header.png
Apr 19, 2016
549e560
Add carry fit function which keeps the current value until it changes
Apr 19, 2016
14b962d
Merge pull request #101 from elastic/mcascallares-patch-1
Apr 22, 2016
a010f7e
Fix possible race in tlConfig
Apr 23, 2016
7625d5f
add hacky test watcher and runner
Apr 23, 2016
f294f57
Sync mocha and chai so tests run
Apr 23, 2016
9937cb0
Expose completely unmodified function
Apr 23, 2016
2b07d88
jasmine env
Apr 23, 2016
5e07d0c
Missed semi colon
Apr 26, 2016
e9858e1
Remove duplicate declaration
Apr 26, 2016
1878802
Add some tests
Apr 26, 2016
f7564b8
Merge branch 'master' of https://github.com/elastic/timelion
Apr 26, 2016
2bfd5e1
Make timeseries vis respect kibana dashboard filters. Closes #80
Apr 26, 2016
854129e
bump version
Apr 26, 2016
b420a61
docs
Apr 26, 2016
46788cc
Remove debugging line
Apr 27, 2016
3c02d21
Add support for Kibana's timezone advanced setting, closes #86
Apr 27, 2016
be8167a
Automatic version bumping again
Apr 27, 2016
421e814
Improve debug output
Apr 27, 2016
0f0d63c
Correctly use moment-timezone. Truely closes #86
Apr 27, 2016
88e4974
Allow arguments that ask for it to be accepted multiple times
Apr 28, 2016
bb9eab0
Add support for multiple metrics
Apr 28, 2016
00331d2
Make count the default metric
Apr 28, 2016
401e753
Add count to description
Apr 28, 2016
37a6652
Add stacking to bars and lines
Apr 28, 2016
f12cbe5
Fix header icon in svg
Apr 29, 2016
3663f22
Add support for terms agg and multiple queries
Apr 29, 2016
f7a7357
Pass interval to vis plugin
Apr 29, 2016
01d0e9a
Correctly apply negated filters
Apr 29, 2016
17915eb
Fix issue with un-named args
Apr 29, 2016
a9d6c93
Fix clean task
Apr 29, 2016
7753946
Add support for gradients to .color()
Apr 29, 2016
4a16f98
Remove stacking from hidden series. Fixes issues with all later serie…
May 2, 2016
fd044c0
Add asVersion to release task
May 3, 2016
3357be0
Fix bug in which time filter may not be applied
May 3, 2016
52c9f25
fix linting
May 3, 2016
2f28e68
Fix kibana filters not being applied
May 3, 2016
021ff91
Closes #74. Adds a watcher for resizing of chart containers instead o…
May 4, 2016
fcbb967
bump version
May 4, 2016
68232d0
bump version
May 4, 2016
15e598c
Fix floating header
May 4, 2016
addb057
Add the ability to save dashboard panels directly from the app
May 5, 2016
b833d93
Remove stray button
May 5, 2016
eb630ea
Remove babelrc so tests run without kibana
May 5, 2016
c14a107
Allow tests to run without Kibana AND allow docs to build. YAY
May 5, 2016
74245ae
Fix dependencies between tests
May 6, 2016
83d6eff
Add label tests
May 6, 2016
2c20dab
Add legend tests
May 6, 2016
603d845
Add lines tests
May 6, 2016
bc70d16
Add max tests
May 6, 2016
543c886
Add min tests
May 6, 2016
d9cc4fa
Add mvavg and mvstd tests
May 6, 2016
c1c1c88
Add multiply tests
May 6, 2016
8401490
Add points tests
May 6, 2016
1808755
Add test watcher
May 6, 2016
ea36023
Add boolean seupport to show and steps args in lines Fn
May 6, 2016
ea9403d
Make load functions a tiny bit more generic
May 6, 2016
d2f24a0
Remove debug line
May 6, 2016
252c2cd
Allow for disabling the legend
May 6, 2016
6ff3115
Fix wording of help
May 6, 2016
1d7893e
Add new tests, fix old ones
May 9, 2016
a2e693e
Fix splitting of the 1ms interval
May 9, 2016
4ddf80d
add tests for subtract, sum and title
May 10, 2016
1336024
Add tests for yaxis(), fix 1st yaxis losing settings. Closes #97
May 10, 2016
0d6c3c8
Reorganize to make testing easier
May 10, 2016
421ea70
Fix reference to timelion.json
May 10, 2016
fd2fe8e
Allow labeling and color of axes
May 11, 2016
5f6b45f
Add tests for graphite module
May 12, 2016
93d4692
add minimal quandl function tests
May 12, 2016
b17ee02
Improve quandl and points tests, change how buckets are made for test…
May 13, 2016
a3ca4b1
clean up creation of seriesList in tests
May 13, 2016
14e8f6b
Run lint and test in parallel
May 13, 2016
57a0efb
Don't overwrite valid values when using carry
May 13, 2016
81da73c
Fix off-by-one when spreading the missing numbers
May 13, 2016
0d64149
Fit function tests
May 13, 2016
e0bbeee
Add tests for condition function
May 13, 2016
a9e4213
Fixing typos lets -> let's
radu-gheorghe May 16, 2016
4c28f0e
Add multi-range interpolation to .static()
May 16, 2016
321eb48
Fix bug in static interpolation
May 16, 2016
eaf3ba4
Closes #122
May 17, 2016
b0e00c0
Merge pull request #120 from radu-gheorghe/patch-1
May 17, 2016
86c64fe
Add some .es() tests
May 17, 2016
6a64f05
Merge branch 'master' of https://github.com/elastic/timelion
May 17, 2016
6977240
Add agg transformation test
May 18, 2016
8f2f30b
Respect disabled flag on filters, closes #118
May 18, 2016
d049809
Remove non-functional url parameter to the .es() function
May 18, 2016
9e92608
Add carry test, notes on average
May 19, 2016
bd19c41
remove useless log message when tests fail
May 19, 2016
ab26e65
Always wrap promise so functions don't have to return one
May 19, 2016
5daf669
Added a simple regression base trend line
May 19, 2016
a71dd11
always wrap promise to functions dont have to
May 19, 2016
b4e6655
Remove commends and dont full empty the dataTuples
May 19, 2016
e0cde24
Refactor trend function
May 20, 2016
d4e7169
Remove .only
May 20, 2016
979a788
Fix notification of unknown arguments
May 20, 2016
84b5ce5
Add copyright notice
May 20, 2016
d823a06
Fix 5.0.0-alpha3 compat
May 23, 2016
8a7c654
Allow multiple versions to be released with gulp release
May 23, 2016
f887c40
Adding release instructions
May 23, 2016
524144f
Re-add support for the private file
May 24, 2016
a7cd1a3
Write file names with actual kibana version
May 24, 2016
c66bf15
Merge branch 'master' of https://github.com/elastic/timelion
May 24, 2016
bfc3e90
Move filter calculation to controller
May 24, 2016
0f42f2a
bump version
May 24, 2016
dbd2e7f
Fix drag
May 25, 2016
ab95540
Fix version bumping on commit
May 25, 2016
5043d55
Bump version
May 25, 2016
cff2e74
Re-organize cells
May 25, 2016
cb3f192
Add full screen button to charts
May 25, 2016
962a3f9
bump version
May 25, 2016
9bb6e64
Add .trim(), closes #128
May 26, 2016
3a7ae15
Fix exceptions about crosshairs
May 26, 2016
7fe4f24
Fix bad sticky navbar behavior
May 26, 2016
577b9c4
Update saved_object_registry path to use management
jbudz Jun 21, 2016
abd2e9b
Merge pull request #144 from jbudz/management-page
jbudz Jun 22, 2016
2e39190
Add alpha4 compat, bump version
jbudz Jun 21, 2016
64ba3ae
Merge pull request #145 from jbudz/alpha4-compat
jbudz Jun 22, 2016
a7f78ce
Clean up some debugging statements
Jun 30, 2016
44acf3d
Add auto interval support
Jun 30, 2016
41ac7ed
Update path installedPlugins -> plugins
jbudz Jul 5, 2016
d804e83
Merge pull request #149 from jbudz/kibana-plugin-path
Jul 5, 2016
318143c
Add destroy function to resize observer
Jul 7, 2016
7322529
Merge branch 'master' of https://github.com/elastic/timelion
Jul 7, 2016
cd6d5ff
Add hacks
Jul 9, 2016
ab6f142
Move timechart renderer to panel registry
Jul 9, 2016
d81d89f
Make the chart directive a simple function that call a registered ren…
Jul 9, 2016
d39f599
Remove debug statement
Jul 9, 2016
bde3e6b
Merge branch 'feature/panelRegistry'
Jul 9, 2016
ce7548e
Implement error message for missing extended support
Jul 11, 2016
006c0e9
Add support for dots in argument names. OH.THE.HORROR
Jul 11, 2016
8fb44fc
Pass extended around, dont love this
Jul 12, 2016
99502a2
Reorganize argument indexing for better readability
Jul 13, 2016
88484c1
Remove the need to attach extendedNames to the array, yay
Jul 13, 2016
34967ee
Always treat extended args as multi valued, sort of
Jul 13, 2016
c21150d
Implement props function for setting arbitrary properties of series
Jul 13, 2016
8b1c39e
Improve .props description
Jul 13, 2016
e1bfdcd
Pass the entire seriesList up to the client, preserve top level serie…
Jul 13, 2016
4992236
Handle seriesList instead of an array
Jul 13, 2016
72542bd
Add global arg for setting properties on the seriesList
Jul 13, 2016
3890b29
Wire up the render type code
Jul 13, 2016
5650eba
Expose an API for adding new functions
Jul 15, 2016
cb472e5
Use new function API instead of interacting directly with files
Jul 15, 2016
ed3340f
Use function API, fix issue with sorting of function reference
Jul 15, 2016
7c750db
Fix conflicting CSS
Jul 15, 2016
41f5acf
Fix handling of multi-valued args
Jul 15, 2016
01bd6ca
Bump version
Jul 15, 2016
5522762
Attach render object to panelConfig
Jul 18, 2016
3b2e089
Attach stuff to scope instead, pass the seriesList directly
Jul 18, 2016
9095c44
Remove background fill
Jul 19, 2016
a2bac2e
Switch back to DOM rendered chart labels
Jul 21, 2016
11af1b7
remove comments
Jul 22, 2016
58ca25a
Further simplify grid disabling
Jul 22, 2016
47a9473
Add new kibana versions
Jul 26, 2016
45cb3c6
fix description and remove extraneous imports
Aug 3, 2016
441e36f
Add function for exponential smoothing
Aug 5, 2016
23a7501
Add single exponential smoothing
Aug 5, 2016
d676634
Add double exponential smoothing
Aug 5, 2016
11359e2
Rename value to level
Aug 5, 2016
10c2da2
Use proper trend multiplier
Aug 5, 2016
05fc744
Add triple (aka holt winters) smoothing
Aug 6, 2016
5cc5268
Use map instead of reduce
Aug 6, 2016
1f5c439
Rename variable to be inline with des and tes
Aug 6, 2016
c6e6abc
Allow for 0 alpha and beta in tes. Change season to be specified as a…
Aug 6, 2016
6e302f6
Fix des method
Aug 8, 2016
904dd9e
Reorganize
Aug 8, 2016
af412b8
Make code a bit more readable
Aug 8, 2016
60b1454
Remove duplicate spliting of times and points
Aug 8, 2016
cf6aaab
Default to no prediction in the triple case
Aug 8, 2016
6c87c28
Rename expsmooth to holt
Aug 8, 2016
1d96a08
Improve descriptions of parameters
Aug 8, 2016
ae1edcd
Allow variables in groups
Aug 8, 2016
46a3a9e
Remove reference to removed 'setTabs' method.
cjcenizal Aug 10, 2016
d14787e
Merge pull request #163 from cjcenizal/bug/deprecated-tabs
Aug 10, 2016
e3544db
Break out the schema for timecharts
Aug 10, 2016
ac54ed6
Write timelion's default to kibana's config doc
Aug 12, 2016
3a59fe1
Write defaults at startup
Aug 12, 2016
1f36c92
Remove a debugging code at the bottom
Aug 12, 2016
2139ed0
Convert server side code to use the kibana config doc instead of time…
Aug 12, 2016
6a74514
Populate tlConfig.settings in test fixture
Aug 12, 2016
c78283f
Remove obsolete tlConfig properties
Aug 12, 2016
4ee0513
Fix the validation endpoint
Aug 12, 2016
27ba5d7
Remove references to timelion.json from the UI
Aug 12, 2016
3a7ce2f
Fill defaults in case anything at all is missing
Aug 12, 2016
efec20e
Make compatible with kibana core
Aug 12, 2016
52b1fea
Add timelion dependencies
Aug 12, 2016
e9531f3
Move files into kibana directory structure
Aug 12, 2016
cc07431
Move conflicting dot files
Aug 12, 2016
a1bc905
Add timelion to kibana core
Aug 12, 2016
3265451
Fix redefined variables
Aug 12, 2016
91dab74
Add license override for bytes@1.0.0
Aug 12, 2016
a1f5434
Add timelion configuration to defaults.js
Aug 12, 2016
599a9f4
Merge branch 'master' of github.com:elastic/kibana into migrate/timelion
Aug 15, 2016
88cb02c
Add timeseries chart
Aug 15, 2016
c50c5fb
Add timelion tests
Aug 15, 2016
1c47159
Merge branch 'master' of github.com:elastic/kibana into migrate/timelion
Aug 29, 2016
e34d2c1
Add log function
Aug 30, 2016
8e5ef7c
Merge branch 'master' of github.com:elastic/kibana into migrate/timelion
Aug 30, 2016
589ea55
Merge branch 'master' of github.com:elastic/kibana into migrate/timelion
Sep 2, 2016
8c3d9ef
Fix precision of worldbank series
Sep 2, 2016
13da673
Merge branch 'master' of github.com:elastic/kibana into migrate/timelion
Sep 2, 2016
1c6af33
Remove timelion header
Sep 2, 2016
9517745
Remove old config population function
Sep 2, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

/src/core_plugins/timelion/bower_components
/src/core_plugins/timelion/vendor_components
test/fixtures/scenarios
optimize
test/fixtures/scenarios
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module.exports = function (grunt) {
'<%= root %>/test/**/*.js',
'<%= src %>/**/*.js',
'!<%= src %>/ui/public/angular-bootstrap/**/*.js',
'!<%= src %>/core_plugins/timelion/bower_components/**/*.js',
'!<%= src %>/core_plugins/timelion/vendor_components/**/*.js',
'!<%= src %>/fixtures/**/*.js',
'!<%= root %>/test/fixtures/scenarios/**/*.js'
],
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,20 @@
"webpack": "1.12.1",
"webpack-directory-name-as-main": "1.0.0",
"whatwg-fetch": "0.9.0",
"wreck": "6.2.0"
"wreck": "6.2.0",
"body-parser": "1.12.0",
"glob": "5.0.13",
"node-fetch": "1.3.2",
"pegjs": "0.9.0",
"tinygradient": "0.3.0"
},
"devDependencies": {
"@elastic/eslint-config-kibana": "0.0.3",
"Nonsense": "0.1.2",
"angular-mocks": "1.4.7",
"auto-release-sinon": "1.0.3",
"babel-eslint": "4.1.8",
"chai": "3.5.0",
"chokidar": "1.6.0",
"chromedriver": "2.22.1",
"elasticdump": "2.1.1",
Expand Down Expand Up @@ -200,6 +206,7 @@
"nock": "2.10.0",
"npm": "3.10.3",
"portscanner": "1.0.0",
"proxyquire": "1.7.10",
"simple-git": "1.37.0",
"sinon": "1.17.2",
"source-map": "0.5.6",
Expand Down
14 changes: 14 additions & 0 deletions src/core_plugins/timelion/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
68 changes: 68 additions & 0 deletions src/core_plugins/timelion/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
parser: babel-eslint

env:
es6: true
amd: true
node: true
browser: true
jasmine: true

rules:
block-scoped-var: 2
camelcase: [ 2, { properties: never } ]
comma-dangle: 0
comma-style: [ 2, last ]
consistent-return: 0
curly: [ 2, multi-line ]
dot-location: [ 2, property ]
dot-notation: [ 2, { allowKeywords: true } ]
eqeqeq: [ 2, allow-null ]
guard-for-in: 2
indent: [ 2, 2, { SwitchCase: 1 } ]
key-spacing: [ 0, { align: value } ]
max-len: [ 2, 140, 2, { ignoreComments: true, ignoreUrls: true } ]
new-cap: [ 2, { capIsNewExceptions: [ Private ] } ]
no-bitwise: 0
no-caller: 2
no-cond-assign: 0
no-debugger: 2
no-empty: 2
no-eval: 2
no-extend-native: 2
no-extra-parens: 0
no-irregular-whitespace: 2
no-iterator: 2
no-loop-func: 2
no-multi-spaces: 0
no-multi-str: 2
no-nested-ternary: 2
no-new: 0
no-path-concat: 0
no-proto: 2
no-return-assign: 0
no-script-url: 2
no-sequences: 2
no-shadow: 0
no-trailing-spaces: 2
no-undef: 2
no-underscore-dangle: 0
no-unused-expressions: 0
no-unused-vars: 0
no-use-before-define: [ 2, nofunc ]
no-with: 2
one-var: [ 2, never ]
quotes: [ 2, single ]
semi-spacing: [ 2, { before: false, after: true } ]
semi: [ 2, always ]
space-after-keywords: [ 2, always ]
space-before-blocks: [ 2, always ]
space-before-function-paren: [ 2, { anonymous: always, named: never } ]
space-in-parens: [ 2, never ]
space-infix-ops: [ 2, { int32Hint: false } ]
space-return-throw-case: [ 2 ]
space-unary-ops: [ 2 ]
strict: [ 2, never ]
valid-typeof: 2
wrap-iife: [ 2, outside ]
yoda: 0
8 changes: 8 additions & 0 deletions src/core_plugins/timelion/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "timelion",
"version": "0.0.0",
"dependencies": {
"flot": "~0.8.3",
"angular-sortable-view": "~0.0.13"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "angular-sortable-view",
"version": "0.0.13",
"homepage": "http://kamilkp.github.io/angular-sortable-view/",
"authors": [
"Kamil Pękala <kamilkp@gmail.com>"
],
"description": "Fully declarative (multi)sortable for AngularJS",
"main": "./src/angular-sortable-view.js",
"keywords": [
"angularjs",
"sortable",
"ui-sortable",
"sort",
"sorting",
"declarative"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"lib"
],
"_release": "0.0.13",
"_resolution": {
"type": "version",
"tag": "v0.0.13",
"commit": "187250cb1cfbd25096185049bded7bcedeab4dbd"
},
"_source": "git://github.com/kamilkp/angular-sortable-view.git",
"_target": "~0.0.13",
"_originalSource": "angular-sortable-view",
"_direct": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
Version 0.0.13 - 2015/01/13
================

* bug fixes

Version 0.0.12 - 2014/12/09
================

* bug fixes

Version 0.0.11 - 2014/11/28
================

* touch support

Version 0.0.9 - 2014/09/11
================

* fixed a bug where `$digest` hasn't been called after `sv-on-start` handler
* added a `sv-on-stop` optional attribute. Function bound there will be called when dragging ended regardless of the fact whether elements have been reordered or not

Version 0.0.8 - 2014/07/15
================

* fixed a bug where nothing within an element without handle could have been clicked


Version 0.0.7 - 2014/07/02
================

You can now use these optional attributes on the element with `sv-root`:
* `sv-on-sort` - The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. Several parameters can be injected there like: `sv-on-sort="foo($item, $partFrom, $partTo, $indexFrom, $indexTo)"` where:
<ul>
<li>`$item` is the item in model which has been moved</li>
<li>`$partFrom` is the part from which the $item originated</li>
<li>`$partTo` is the part to which the $item has been moved</li>
<li>`$indexFrom` is the previous index of the $item in $partFrom</li>
<li>`$indedTo` is the index of the $item in $partTo</li>
</ul>
</li>
* `sv-on-start` - The expression passed as a value of that attribute will be evaluated when a user starts moving an element. Several parameters can be injected there like: `sv-on-start="bar($item, $part, $index, $helper)"` where:
<ul>
<li>`$item` is the item in model which started being moved</li>
<li>`$part` is the part from which the $item originates</li>
<li>`$index` is the index of the $item in $part</li>
<li>`$helper` is the jqLite/jQuery object of an element that is being dragged around</li>
</ul>
</li>

Version 0.0.6 - 2014/07/01
================

* You can now listen for resorting. An `sv-on-sort` attribute can be now placed on an element with `sv-root`. The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting.

Version 0.0.5 - 2014/06/26
================

* source element for sorting is now detached from DOM instead of giving him `display: none`

Version 0.0.4 - 2014/06/25
================

* Fixed the issue with helper styles
* Dropped the need for the browser to support pointer-events CSS property
* Added the project to the bower registy, it is available to download via `bower install angular-sortable-view`

Version 0.0.3 - 2014/06/11
================

* Added support for custom placeholders
* Better containment handling
* Bug fixes
* BREAKING CHANGE: the module name is now `angular-sortable-view`

Version 0.0.2 - 2014/06/11
================

* Added support for empty lists
* Added support for custom helpers

Version 0.0.1
================

* Support for setting a containment
* Support for multiple sortable lists connected with each other
* Support for specifying a handle element
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = function(grunt){
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
// grunt.loadNpmTasks('grunt-karma');

grunt.initConfig({
uglify: {
target: {
files: {
'src/angular-sortable-view.min.js': ['src/angular-sortable-view.js']
}
},
options: {
banner: '/*\n\tCopyright Kamil Pękala http://github.com/kamilkp\n' +
'\tangular-sortable-view v0.0.13 2015/01/13\n*/\n'
}
},
jshint: {
all: [
'src/angular-sortable-view.js',
'Gruntfile.js'
]
}//,
// karma: {
// unit: {
// configFile: 'karma.conf.js',
// singleRun: true,
// },
// travis: {
// configFile: 'karma.conf.js',
// singleRun: true,
// browsers: [
// 'Firefox'
// ]
// }
// }
});

grunt.registerTask('min', 'Minify javascript source code', 'uglify');
// grunt.registerTask('test', 'Run unit tests', ['jshint', 'min', 'karma:unit']);
// grunt.registerTask('default', ['test']);
// grunt.registerTask('travis', ['jshint', 'min', 'karma:travis']);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 kamilkp

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading