We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a17f4 commit 80db97dCopy full SHA for 80db97d
README.md
@@ -1,4 +1,23 @@
1
-jQuery-QueryBuilder
+jQuery QueryBuilder
2
===================
3
4
-jQuery QueryBuilder
+jQuery plugin offering an interface to create complex queries.
5
+
6
+**Still in developpement**
7
8
+### Requirements
9
+ * Bootstrap 3.x CSS
10
+ * jQuery >= 1.9
11
+ * (optional) MomentJS
12
+ * (optional) any widgets library like jQuery UI
13
14
+### Browser support
15
+ * Internet Explorer >= 10
16
+ * Mozilla FireFox ??
17
+ * Google Chrome ??
18
+ * Opera ??
19
+ * Safari ??
20
21
+### Inspiration
22
+ * [Knockout Query Builder](http://kindohm.com/posts/2013/09/25/knockout-query-builder/)
23
+ * [jui_filter_rules](http://www.pontikis.net/labs/jui_filter_rules/)
bower.json
@@ -0,0 +1,17 @@
+{
+ "name": "jQuery-QueryBuilder",
+ "version": "1.0.0-SNAPSHOT",
+ "homepage": "https://github.com/mistic100/jQuery-QueryBuilder",
+ "authors": [
+ "mistic100"
+ ],
+ "description": "jQuery-QueryBuilder",
+ "main": [
+ "./query-builder.js",
+ "./query-builder.css"
+ "dependencies" : {
+ "bootstrap": "3.x.x"
+ },
+ "license": "MIT"
+}
i18n/fr.js
@@ -0,0 +1,28 @@
+QueryBuilder.setDefaults({ lang: {
+ add_rule: 'Ajouter un règle',
+ add_group: 'Ajouter un groupe',
+ delete_rule: 'Supprimer',
+ delete_group: 'Supprimer',
+ and_condition: 'ET',
+ or_condition: 'OU',
+ operator_equal: 'égal',
+ operator_not_equal: 'non égal',
+ operator_in: 'dans',
+ operator_not_in: 'pas dans',
+ operator_less: 'inférieur',
+ operator_less_or_equal: 'inférieur ou égal',
+ operator_greater: 'supérieur',
+ operator_greater_or_equal: 'supérieur ou égal',
+ operator_begins_with: 'commence par',
+ operator_not_begins_with: 'ne commence pas par',
+ operator_contains: 'contient',
+ operator_not_contains: 'ne contient pas',
+ operator_ends_with: 'finit par',
+ operator_not_ends_with: 'ne finit pas par',
24
+ operator_is_empty: 'est vide',
25
+ operator_is_not_empty: 'n\'est pas vide',
26
+ operator_is_null: 'est nul',
27
+ operator_is_not_null: 'n\'est pas nul'
28
+}});
package.json
@@ -0,0 +1,24 @@
+ "version": "1.0.0-SNAPSHOT",,
+ "author": "mistic100",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/mistic100/jQuery-QueryBuilder.git"
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/mistic100/jQuery-QueryBuilder/issues"
+ }
query-builder.css
@@ -0,0 +1,98 @@
+/*!
+ * QueryBuilder v0.0.1
+ * Copyright 2014 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
+ * Licensed under MIT (http://opensource.org/licenses/MIT)
+ */
+/* GROUPS */
+.rules-group-container {
+ padding:10px;
+ margin:4px 0;
+ border:1px solid #DCC896;
+ background:#FCF8E3;
+ border-radius:5px;
+ .rules-group-header {
+ margin-bottom:10px;
+ .rules-group-header input[name$=_cond] {
+ display:none;
+/* hide first delete button */
+.query-builder>.rules-group-container>.rules-group-header [data-delete] {
+/* RULES */
+.rules-list {
29
+ list-style:none;
30
+ padding:0 0 0 20px;
31
+ margin:0;
32
33
+ .rule-container {
34
35
+ padding:5px;
36
+ border:1px solid #eee;
37
+ background:#fff;
38
39
40
+ .rule-container.has-error {
41
+ background:#fdd;
42
+ border-color:#f99;
43
44
+ .rule-container>div:not(.rule-header) {
45
+ display:inline-block;
46
+ margin:0 5px 0 0;
47
+ vertical-align:top;
48
49
+ .rule-value-container:not(:empty) {
50
+ border-left:1px solid #ddd;
51
+ padding-left:5px;
52
53
+ .rule-value-container label {
54
+ margin-bottom:0;
55
56
+ .rule-value-container label.block {
57
+ display:block;
58
59
+ .rule-container select,
60
+ .rule-container input[type=text],
61
+ .rule-container input[type=number] {
62
+ padding:1px;
63
64
65
+/* TICKS */
66
+.rules-list>* {
67
+ position:relative;
68
69
+ .rules-list>*:before,
70
+ .rules-list>*:after {
71
+ content:'';
72
+ position:absolute;
73
+ left:-15px;
74
+ width:15px;
75
+ height:calc(50% + 4px);
76
+ border-color:#ccc;
77
+ border-style:solid;
78
79
80
+ .rules-list>*:before {
81
+ top:-2px;
82
+ border-width:0 0 2px 2px;
83
84
85
+ top:50%;
86
+ border-width:2px 0 0 2px;
87
88
89
+ .rules-list>*:first-child:before {
90
+ top:-12px;
91
+ height:calc(50% + 14px);
92
93
+ .rules-list>*:last-child:before {
94
+ border-radius:0 0 0 4px;
95
96
+ .rules-list>*:last-child:after {
97
98
0 commit comments