Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
#4/#5: sorted items, and adjusted update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn committed Feb 14, 2020
1 parent 8c82b6a commit 4679c6d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 26 deletions.
12 changes: 5 additions & 7 deletions dist/grove-vue-core-components.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ var script = {
return node && node.sum > 0;
});
}
arr.sort(function(a, b) {
return a.label && b.label
? a.label.localeCompare(b.label)
: a.id.localeCompare(b.id);
});
if (this.sort) {
arr.sort();
}
return arr;
}
},
Expand Down Expand Up @@ -387,11 +385,11 @@ __vue_render__._withStripped = true;
/* style */
var __vue_inject_styles__ = function (inject) {
if (!inject) { return }
inject("data-v-92dfee4a_0", { source: "ul.ml-sub-tree[data-v-92dfee4a] {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight[data-v-92dfee4a] {\n background-color: lightyellow;\n}\n", map: {"version":3,"sources":["ml-sub-tree.vue"],"names":[],"mappings":"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B","file":"ml-sub-tree.vue","sourcesContent":["ul.ml-sub-tree {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight {\n background-color: lightyellow;\n}\n"]}, media: undefined });
inject("data-v-8a946250_0", { source: "ul.ml-sub-tree[data-v-8a946250] {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight[data-v-8a946250] {\n background-color: lightyellow;\n}\n", map: {"version":3,"sources":["ml-sub-tree.vue"],"names":[],"mappings":"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B","file":"ml-sub-tree.vue","sourcesContent":["ul.ml-sub-tree {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight {\n background-color: lightyellow;\n}\n"]}, media: undefined });

};
/* scoped */
var __vue_scope_id__ = "data-v-92dfee4a";
var __vue_scope_id__ = "data-v-8a946250";
/* module identifier */
var __vue_module_identifier__ = undefined;
/* functional template */
Expand Down
12 changes: 5 additions & 7 deletions dist/grove-vue-core-components.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ var CoreComponents = (function (exports, Multiselect) {
return node && node.sum > 0;
});
}
arr.sort(function(a, b) {
return a.label && b.label
? a.label.localeCompare(b.label)
: a.id.localeCompare(b.id);
});
if (this.sort) {
arr.sort();
}
return arr;
}
},
Expand Down Expand Up @@ -389,11 +387,11 @@ var CoreComponents = (function (exports, Multiselect) {
/* style */
var __vue_inject_styles__ = function (inject) {
if (!inject) { return }
inject("data-v-92dfee4a_0", { source: "ul.ml-sub-tree[data-v-92dfee4a] {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight[data-v-92dfee4a] {\n background-color: lightyellow;\n}\n", map: {"version":3,"sources":["ml-sub-tree.vue"],"names":[],"mappings":"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B","file":"ml-sub-tree.vue","sourcesContent":["ul.ml-sub-tree {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight {\n background-color: lightyellow;\n}\n"]}, media: undefined });
inject("data-v-8a946250_0", { source: "ul.ml-sub-tree[data-v-8a946250] {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight[data-v-8a946250] {\n background-color: lightyellow;\n}\n", map: {"version":3,"sources":["ml-sub-tree.vue"],"names":[],"mappings":"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B","file":"ml-sub-tree.vue","sourcesContent":["ul.ml-sub-tree {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight {\n background-color: lightyellow;\n}\n"]}, media: undefined });

};
/* scoped */
var __vue_scope_id__ = "data-v-92dfee4a";
var __vue_scope_id__ = "data-v-8a946250";
/* module identifier */
var __vue_module_identifier__ = undefined;
/* functional template */
Expand Down
12 changes: 5 additions & 7 deletions dist/grove-vue-core-components.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@
return node && node.sum > 0;
});
}
arr.sort(function(a, b) {
return a.label && b.label
? a.label.localeCompare(b.label)
: a.id.localeCompare(b.id);
});
if (this.sort) {
arr.sort();
}
return arr;
}
},
Expand Down Expand Up @@ -392,11 +390,11 @@
/* style */
var __vue_inject_styles__ = function (inject) {
if (!inject) { return }
inject("data-v-92dfee4a_0", { source: "ul.ml-sub-tree[data-v-92dfee4a] {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight[data-v-92dfee4a] {\n background-color: lightyellow;\n}\n", map: {"version":3,"sources":["ml-sub-tree.vue"],"names":[],"mappings":"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B","file":"ml-sub-tree.vue","sourcesContent":["ul.ml-sub-tree {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight {\n background-color: lightyellow;\n}\n"]}, media: undefined });
inject("data-v-8a946250_0", { source: "ul.ml-sub-tree[data-v-8a946250] {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight[data-v-8a946250] {\n background-color: lightyellow;\n}\n", map: {"version":3,"sources":["ml-sub-tree.vue"],"names":[],"mappings":"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B","file":"ml-sub-tree.vue","sourcesContent":["ul.ml-sub-tree {\n list-style: none;\n}\nul.ml-sub-tree .ml-tree-highlight {\n background-color: lightyellow;\n}\n"]}, media: undefined });

};
/* scoped */
var __vue_scope_id__ = "data-v-92dfee4a";
var __vue_scope_id__ = "data-v-8a946250";
/* module identifier */
var __vue_module_identifier__ = undefined;
/* functional template */
Expand Down
8 changes: 3 additions & 5 deletions src/components/ml-tree-facet/ml-sub-tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ export default {
return node && node.sum > 0;
});
}
arr.sort(function(a, b) {
return a.label && b.label
? a.label.localeCompare(b.label)
: a.id.localeCompare(b.id);
});
if (this.sort) {
arr.sort();
}
return arr;
}
},
Expand Down

0 comments on commit 4679c6d

Please sign in to comment.