@dile/crud 0.7.19 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ export class DileCrudFiltersForm extends DileFormChangeDetect(DileForm(LitElemen
42
42
  <select slot="select">
43
43
  <option value="">-</option>
44
44
  ${filter.options.map(option => html`
45
- <option value="${option.name}">${option.label}</option>
45
+ <option value="${option.value}">${option.label}</option>
46
46
  `)}
47
47
  </select>
48
48
  </dile-select>
@@ -60,7 +60,7 @@ export class DileCrudFiltersList extends LitElement {
60
60
  }
61
61
 
62
62
  findLabelInOption(filter) {
63
- let option = filter.options.find((option) => option.name == filter.value);
63
+ let option = filter.options.find((option) => option.value == filter.value);
64
64
  if(option) {
65
65
  return option.label;
66
66
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "0.7.19",
3
+ "version": "1.0.0",
4
4
  "description": "Components to create a generic crud system based on Web Components and Lit",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "ec00c938b7a5dc9f58f49e53f44a9ca3758d6d1e"
34
+ "gitHead": "590d3947d6cc68867401a107dfbde413653401f5"
35
35
  }