@ditojs/ui 2.12.0 → 2.13.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/ui",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js UI is a simple UI library, built with Vue.js for use in Dito.js Admin and elsewhere",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/ui",
@@ -32,18 +32,18 @@
32
32
  "ie_mob >= 11"
33
33
  ],
34
34
  "dependencies": {
35
- "@ditojs/utils": "^2.12.0",
35
+ "@ditojs/utils": "^2.13.0",
36
36
  "@soda/get-current-script": "^1.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@ditojs/build": "^2.12.0",
39
+ "@ditojs/build": "^2.13.0",
40
40
  "@vitejs/plugin-vue": "^4.3.4",
41
41
  "@vue/compiler-sfc": "^3.3.4",
42
42
  "pug": "^3.0.2",
43
- "sass": "1.66.1",
43
+ "sass": "1.68.0",
44
44
  "vite": "^4.4.9"
45
45
  },
46
- "gitHead": "186a1020c58e17182a19895e5f5df2955a22c301",
46
+ "gitHead": "ab9a98856440d8f0f24ae7b2e2e7f840ac956cce",
47
47
  "scripts": {
48
48
  "build:icons": "yarn inline-assets src/icons/*.svg --template src/icons/template.js > src/styles/mixins/_icons.scss",
49
49
  "build:vue": "vite build",
@@ -51,24 +51,6 @@ export default {
51
51
 
52
52
  numPages() {
53
53
  return Math.ceil(this.total / this.pageSize)
54
- }
55
- },
56
-
57
- watch: {
58
- page(page) {
59
- this.currentPage = page
60
- },
61
-
62
- pageSize() {
63
- if (this.currentPage > this.numPages) {
64
- this.currentPage = this.numPages
65
- }
66
- },
67
-
68
- currentPage(to, from) {
69
- if (to !== from) {
70
- this.$emit('update:page', to)
71
- }
72
54
  },
73
55
 
74
56
  buttons() {
@@ -130,6 +112,24 @@ export default {
130
112
  }
131
113
  },
132
114
 
115
+ watch: {
116
+ page(page) {
117
+ this.currentPage = page
118
+ },
119
+
120
+ pageSize() {
121
+ if (this.currentPage > this.numPages) {
122
+ this.currentPage = this.numPages
123
+ }
124
+ },
125
+
126
+ currentPage(to, from) {
127
+ if (to !== from) {
128
+ this.$emit('update:page', to)
129
+ }
130
+ }
131
+ },
132
+
133
133
  created() {
134
134
  this.currentPage = this.page
135
135
  },