@enso-ui/filters 3.0.8 → 3.0.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/filters",
3
- "version": "3.0.8",
3
+ "version": "3.0.12",
4
4
  "description": "Renderless Vue Filter Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  "@fortawesome/vue-fontawesome": "3.0.0-5",
35
35
  "bulma": "^0.9.0",
36
36
  "date-fns": "^2.0.0",
37
- "v-tooltip": "4.0.0-alpha.1",
37
+ "v-tooltip": "4.0.0-beta.2",
38
38
  "vue": "^3.0",
39
39
  "vuex": "^4.0.0"
40
40
  },
@@ -9,6 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script>
12
+ import 'v-tooltip/dist/v-tooltip.css';
12
13
  import { VTooltip } from 'v-tooltip';
13
14
 
14
15
  export default {
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <core-date-filter v-bind="$attrs">
3
- <template #default="{
4
- filters, filter, custom, minBindings, minEvents, maxBindings, maxEvents,
5
- direction, directionBindings, directionEvents, backEvents, filterEvents,
6
- }">
7
- <div class="date-filter is-paddingless">
2
+ <div class="date-filter is-paddingless">
3
+ <core-date-filter v-bind="$attrs">
4
+ <template #default="{
5
+ filters, filter, custom, minBindings, minEvents, maxBindings, maxEvents,
6
+ direction, directionBindings, directionEvents, backEvents, filterEvents,
7
+ }">
8
8
  <div class="header has-text-centered has-background-light"
9
9
  v-if="!compact">
10
10
  <strong>
@@ -64,16 +64,17 @@
64
64
  </div>
65
65
  </fade>
66
66
  </div>
67
- </div>
68
- </template>
69
- </core-date-filter>
67
+ </template>
68
+ </core-date-filter>
69
+ </div>
70
70
  </template>
71
71
 
72
72
  <script>
73
+ import 'v-tooltip/dist/v-tooltip.css';
74
+ import { VTooltip } from 'v-tooltip';
73
75
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
74
76
  import { library } from '@fortawesome/fontawesome-svg-core';
75
77
  import { faArrowLeft } from '@fortawesome/free-solid-svg-icons';
76
- import { VTooltip } from 'v-tooltip';
77
78
  import { Datepicker } from '@enso-ui/datepicker/bulma';
78
79
  import { Fade } from '@enso-ui/transitions';
79
80
  import VueSwitch from '@enso-ui/switch/bulma';
@@ -34,6 +34,7 @@
34
34
  </template>
35
35
 
36
36
  <script>
37
+ import 'v-tooltip/dist/v-tooltip.css';
37
38
  import { VTooltip } from 'v-tooltip';
38
39
  import { Datepicker } from '@enso-ui/datepicker/bulma';
39
40
  import CoreDateIntervalFilter from '../renderless/CoreDateIntervalFilter.vue';
@@ -11,6 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script>
14
+ import 'v-tooltip/dist/v-tooltip.css';
14
15
  import { VTooltip } from 'v-tooltip';
15
16
  import { EnsoSelect } from '@enso-ui/select/bulma';
16
17
  import BaseSelectFilter from './BaseSelectFilter.vue';
@@ -33,6 +33,7 @@
33
33
  </template>
34
34
 
35
35
  <script>
36
+ import 'v-tooltip/dist/v-tooltip.css';
36
37
  import { VTooltip } from 'v-tooltip';
37
38
  import CoreInputFilter from '../renderless/CoreInputFilter.vue';
38
39
 
@@ -48,6 +48,7 @@
48
48
  </template>
49
49
 
50
50
  <script>
51
+ import 'v-tooltip/dist/v-tooltip.css';
51
52
  import { VTooltip } from 'v-tooltip';
52
53
  import CoreIntervalFilter from '../renderless/CoreIntervalFilter.vue';
53
54
 
@@ -12,6 +12,7 @@
12
12
  </template>
13
13
 
14
14
  <script>
15
+ import 'v-tooltip/dist/v-tooltip.css';
15
16
  import { VTooltip } from 'v-tooltip';
16
17
  import { VueSelect } from '@enso-ui/select/bulma';
17
18
  import BaseSelectFilter from './BaseSelectFilter.vue';
@@ -33,8 +33,9 @@
33
33
  </template>
34
34
 
35
35
  <script>
36
- import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
36
+ import 'v-tooltip/dist/v-tooltip.css';
37
37
  import { VTooltip } from 'v-tooltip';
38
+ import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
38
39
 
39
40
  export default {
40
41
  name: 'ToggleFilter',
@@ -56,10 +56,11 @@
56
56
  </template>
57
57
 
58
58
  <script>
59
+ import 'v-tooltip/dist/v-tooltip.css';
60
+ import { VTooltip } from 'v-tooltip';
59
61
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
60
62
  import { library } from '@fortawesome/fontawesome-svg-core';
61
63
  import { faPowerOff, faLock } from '@fortawesome/free-solid-svg-icons';
62
- import { VTooltip } from 'v-tooltip';
63
64
 
64
65
  library.add(faPowerOff, faLock);
65
66
 
@@ -14,6 +14,8 @@ export default {
14
14
 
15
15
  mixins: [dateIntervals],
16
16
 
17
+ inheritAttrs: false,
18
+
17
19
  props: {
18
20
  default: {
19
21
  type: String,
@@ -6,6 +6,8 @@ export default {
6
6
 
7
7
  mixins: [dateIntervals],
8
8
 
9
+ emits: ['update'],
10
+
9
11
  methods: {
10
12
  update() {
11
13
  this.$emit('update', this.sanitizedInterval);
@@ -15,27 +17,27 @@ export default {
15
17
  render() {
16
18
  return this.$slots.default({
17
19
  minBindings: {
18
- value: this.interval.min,
20
+ modelValue: this.interval.min,
19
21
  format: this.format,
20
22
  isWarning: this.equals,
21
23
  locale: this.locale,
22
24
  max: this.interval.max,
23
25
  },
24
26
  minEvents: {
25
- input: (e) => {
27
+ 'update:modelValue': e => {
26
28
  this.interval.min = e;
27
29
  this.update();
28
30
  },
29
31
  },
30
32
  maxBindings: {
31
- value: this.interval.max,
33
+ modelValue: this.interval.max,
32
34
  format: this.format,
33
35
  isWarning: this.equals,
34
36
  locale: this.locale,
35
37
  min: this.interval.min,
36
38
  },
37
39
  maxEvents: {
38
- input: (e) => {
40
+ 'update:modelValue': e => {
39
41
  this.interval.max = e;
40
42
  this.update();
41
43
  },
@@ -45,17 +45,17 @@ export default {
45
45
  type: this.type,
46
46
  },
47
47
  minEvents: {
48
- input: e => {
48
+ 'update:modelValue': e => {
49
49
  this.modelValue.min = e.target.value;
50
50
  this.update();
51
51
  },
52
52
  },
53
53
  maxBindings: {
54
- value: this.modelValue.max,
54
+ modelValue: this.modelValue.max,
55
55
  type: this.type,
56
56
  },
57
57
  maxEvents: {
58
- input: e => {
58
+ 'update:modelValue': e => {
59
59
  this.modelValue.max = e.target.value;
60
60
  this.update();
61
61
  },
@@ -27,6 +27,8 @@ export default {
27
27
  },
28
28
  },
29
29
 
30
+ emits: ['ready', 'state-updated'],
31
+
30
32
  data: () => ({
31
33
  defaultFilters: null,
32
34
  defaultIntervals: null,