Skip to content

Commit b813318

Browse files
committed
Initial commit
0 parents  commit b813318

9 files changed

+971
-0
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.architect
2+
bootstrap.css
3+
bootstrap.js
4+
bootstrap.json
5+
bootstrap.jsonp
6+
build/
7+
classic.json
8+
classic.jsonp
9+
ext/
10+
modern.json
11+
modern.jsonp
12+
resources/sass/.sass-cache/
13+
resources/.arch-internal-preview.css
14+
.arch-internal-preview.css

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Sebastián Katzer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# LiveSearchPlugin
2+
3+
Plugin for [ExtJS 6][extjs] to add live search functionality to a grid.
4+
5+
While the SDK already includes a similar [Ext.ux.LiveSearchGridPanel][demo] component, there are some notable advantages/differences:
6+
7+
- Compatible with __locked__, __buffered__ and __reconfigurable__ grids
8+
9+
- Compatible with __sorted__ and __filtered__ stores
10+
11+
- Support for __data binding__
12+
13+
- __No__ widgets or toolbars will be added
14+
15+
- __Exclude__ columns from search
16+
17+
![Screenshot](screenshot.png)
18+
19+
An example can be found [here][iss-web].
20+
21+
## Installation
22+
23+
Copy the content of this repo into `packages/local/ux-livesearch`:
24+
25+
$ git submodule add https://github.com/katzer/Ext.ux.grid.plugin.LiveSearch.git packages/local/ux-livesearch
26+
27+
Add the plugin to list of required packages in your `app.json`:
28+
29+
```json
30+
"requires": ["ux-livesearch"]
31+
```
32+
33+
Build your app
34+
35+
$ sencha app build
36+
37+
## Contributing
38+
39+
Bug reports and pull requests are welcome on GitHub at https://github.com/katzer/Ext.ux.grid.plugin.LiveSearch.
40+
41+
1. Fork it
42+
2. Create your feature branch (`git checkout -b my-new-feature`)
43+
3. Commit your changes (`git commit -am 'Add some feature'`)
44+
4. Push to the branch (`git push origin my-new-feature`)
45+
5. Create new Pull Request
46+
47+
## License
48+
49+
The code is available as open source under the terms of the [MIT License][license].
50+
51+
[extjs]: https://www.sencha.com/products/extjs/
52+
[demo]: https://examples.sencha.com/extjs/7.0.0/examples/classic/grid/live-search-grid.html
53+
[iss-web]: https://github.com/appPlant/iss-web
54+
[license]: http://opensource.org/licenses/MIT

build.xml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<project name="ux-livesearch" default=".help">
3+
4+
<script language="javascript">
5+
<![CDATA[
6+
var dir = project.getProperty("basedir"),
7+
cmdDir = project.getProperty("cmd.dir"),
8+
cmdLoaded = project.getReference("senchaloader");
9+
10+
if (!cmdLoaded) {
11+
function echo(message, file) {
12+
var e = project.createTask("echo");
13+
e.setMessage(message);
14+
if (file) {
15+
e.setFile(file);
16+
}
17+
e.execute();
18+
};
19+
20+
if (!cmdDir) {
21+
22+
function exec(args) {
23+
var process = java.lang.Runtime.getRuntime().exec(args),
24+
input = new java.io.BufferedReader(new java.io.InputStreamReader(process.getInputStream())),
25+
headerFound = false,
26+
line;
27+
28+
while (line = input.readLine()) {
29+
line = line + '';
30+
java.lang.System.out.println(line);
31+
if (line.indexOf("Sencha Cmd") > -1) {
32+
headerFound = true;
33+
}
34+
else if (headerFound && !cmdDir) {
35+
cmdDir = line;
36+
project.setProperty("cmd.dir", cmdDir);
37+
}
38+
}
39+
process.waitFor();
40+
return !!cmdDir;
41+
}
42+
43+
if (!exec(["sencha", "which"])) {
44+
var tmpFile = "tmp.sh";
45+
echo("source ~/.bash_profile; sencha " + whichArgs.join(" "), tmpFile);
46+
exec(["/bin/sh", tmpFile]);
47+
new java.io.File(tmpFile)['delete']();
48+
}
49+
}
50+
}
51+
52+
if (cmdDir && !project.getTargets().containsKey("init-cmd")) {
53+
var importDir = project.getProperty("build-impl.dir") ||
54+
(cmdDir + "/ant/build/package/build-impl.xml");
55+
var importTask = project.createTask("import");
56+
57+
importTask.setOwningTarget(self.getOwningTarget());
58+
importTask.setLocation(self.getLocation());
59+
importTask.setFile(importDir);
60+
importTask.execute();
61+
}
62+
]]>
63+
</script>
64+
65+
<!--
66+
The following targets can be provided to inject logic before and/or after key steps
67+
of the build process:
68+
69+
The "init-local" target is used to initialize properties that may be personalized
70+
for the local machine.
71+
72+
<target name="-before-init-local"/>
73+
<target name="-after-init-local"/>
74+
75+
The "clean" target is used to clean build output from the build.dir.
76+
77+
<target name="-before-clean"/>
78+
<target name="-after-clean"/>
79+
80+
The general "init" target is used to initialize all other properties, including
81+
those provided by Sencha Cmd.
82+
83+
<target name="-before-init"/>
84+
<target name="-after-init"/>
85+
86+
The "build" target performs the call to Sencha Cmd to build the application.
87+
88+
<target name="-before-build"/>
89+
<target name="-after-build"/>
90+
-->
91+
92+
</project>

0 commit comments

Comments
 (0)