@1024pix/pix-ui 52.1.0 → 52.3.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/addon/components/pix-pagination.js +11 -1
- package/package.json +29 -23
|
@@ -70,7 +70,7 @@ export default class PixPagination extends Component {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
get pageSize() {
|
|
73
|
-
return this.args.pagination ? this.args.pagination.pageSize : this.
|
|
73
|
+
return this.args.pagination ? this.args.pagination.pageSize : this.pageOptions[0].value;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
get isNextPageDisabled() {
|
|
@@ -104,18 +104,28 @@ export default class PixPagination extends Component {
|
|
|
104
104
|
return Math.min(rowCount, this.firstItemPosition + this.pageSize - 1);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
@action
|
|
108
|
+
onChange() {
|
|
109
|
+
if (typeof this.args.onChange !== 'function') return;
|
|
110
|
+
|
|
111
|
+
this.args.onChange();
|
|
112
|
+
}
|
|
113
|
+
|
|
107
114
|
@action
|
|
108
115
|
changePageSize(value) {
|
|
109
116
|
this.router.replaceWith({ queryParams: { pageSize: value, pageNumber: 1 } });
|
|
117
|
+
this.onChange();
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
@action
|
|
113
121
|
goToNextPage() {
|
|
114
122
|
this.router.replaceWith({ queryParams: { pageNumber: this.nextPage } });
|
|
123
|
+
this.onChange();
|
|
115
124
|
}
|
|
116
125
|
|
|
117
126
|
@action
|
|
118
127
|
goToPreviousPage() {
|
|
119
128
|
this.router.replaceWith({ queryParams: { pageNumber: this.previousPage } });
|
|
129
|
+
this.onChange();
|
|
120
130
|
}
|
|
121
131
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1024pix/pix-ui",
|
|
3
|
-
"version": "52.
|
|
3
|
+
"version": "52.3.0",
|
|
4
4
|
"description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"doc": "doc",
|
|
22
22
|
"test": "tests"
|
|
23
23
|
},
|
|
24
|
+
"overrides": {
|
|
25
|
+
"@storybook/ember": {
|
|
26
|
+
"ember-source": "~5.12.0"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
24
29
|
"scripts": {
|
|
25
30
|
"build": "./scripts/build.sh",
|
|
26
31
|
"build-ember": "ember build --environment=production",
|
|
@@ -52,11 +57,14 @@
|
|
|
52
57
|
"chromatic": "npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --only-changed"
|
|
53
58
|
},
|
|
54
59
|
"dependencies": {
|
|
60
|
+
"@babel/core": "^7.25.2",
|
|
55
61
|
"@formatjs/intl": "^2.5.1",
|
|
56
|
-
"
|
|
57
|
-
"ember-
|
|
58
|
-
"ember-cli-
|
|
62
|
+
"check-engine": "^1.14.0",
|
|
63
|
+
"ember-auto-import": "^2.7.4",
|
|
64
|
+
"ember-cli-babel": "^8.2.0",
|
|
65
|
+
"ember-cli-htmlbars": "^6.3.0",
|
|
59
66
|
"ember-cli-sass": "^11.0.1",
|
|
67
|
+
"ember-cli-update": "^2.0.1",
|
|
60
68
|
"ember-click-outside": "^6.0.1",
|
|
61
69
|
"ember-lifeline": "^7.0.0",
|
|
62
70
|
"ember-modifier": "^4.2.0",
|
|
@@ -67,11 +75,11 @@
|
|
|
67
75
|
"@1024pix/ember-testing-library": "^3.0.6",
|
|
68
76
|
"@1024pix/eslint-config": "^1.3.8",
|
|
69
77
|
"@1024pix/stylelint-config": "^5.1.12",
|
|
70
|
-
"@babel/eslint-parser": "^7.
|
|
71
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
72
|
-
"@ember/optional-features": "^2.
|
|
78
|
+
"@babel/eslint-parser": "^7.25.1",
|
|
79
|
+
"@babel/plugin-proposal-decorators": "^7.24.7",
|
|
80
|
+
"@ember/optional-features": "^2.1.0",
|
|
73
81
|
"@ember/string": "^4.0.0",
|
|
74
|
-
"@ember/test-helpers": "^3.
|
|
82
|
+
"@ember/test-helpers": "^3.3.1",
|
|
75
83
|
"@embroider/macros": "^1.11.0",
|
|
76
84
|
"@embroider/test-setup": "^4.0.0",
|
|
77
85
|
"@fortawesome/ember-fontawesome": "^2.0.0",
|
|
@@ -94,43 +102,41 @@
|
|
|
94
102
|
"@testing-library/user-event": "^14.4.3",
|
|
95
103
|
"chromatic": "^11.0.0",
|
|
96
104
|
"core-js": "^3.26.1",
|
|
97
|
-
"ember-cli": "^5.
|
|
98
|
-
"ember-cli-dependency-checker": "^3.3.
|
|
105
|
+
"ember-cli": "^5.11.0",
|
|
106
|
+
"ember-cli-dependency-checker": "^3.3.2",
|
|
99
107
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
100
108
|
"ember-cli-sri": "^2.1.1",
|
|
101
109
|
"ember-cli-terser": "^4.0.2",
|
|
102
|
-
"ember-disable-prototype-extensions": "^1.1.3",
|
|
103
|
-
"ember-export-application-global": "^2.0.1",
|
|
104
110
|
"ember-load-initializers": "^2.1.2",
|
|
105
|
-
"ember-page-title": "^8.
|
|
106
|
-
"ember-qunit": "^8.
|
|
111
|
+
"ember-page-title": "^8.2.3",
|
|
112
|
+
"ember-qunit": "^8.1.0",
|
|
107
113
|
"ember-resolver": "^12.0.0",
|
|
108
114
|
"ember-sinon": "^5.0.0",
|
|
109
|
-
"ember-source": "^
|
|
115
|
+
"ember-source": "^5.11.0",
|
|
110
116
|
"ember-source-channel-url": "^3.0.0",
|
|
111
117
|
"ember-template-lint": "^6.0.0",
|
|
112
118
|
"ember-template-lint-plugin-prettier": "^5.0.0",
|
|
113
|
-
"ember-try": "^3.0.0
|
|
114
|
-
"eslint": "^8.
|
|
115
|
-
"eslint-config-prettier": "^9.
|
|
119
|
+
"ember-try": "^3.0.0",
|
|
120
|
+
"eslint": "^8.57.0",
|
|
121
|
+
"eslint-config-prettier": "^9.1.0",
|
|
116
122
|
"eslint-plugin-ember": "^12.0.0",
|
|
117
123
|
"eslint-plugin-n": "^17.0.0",
|
|
118
|
-
"eslint-plugin-prettier": "^5.
|
|
119
|
-
"eslint-plugin-qunit": "^8.
|
|
124
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
125
|
+
"eslint-plugin-qunit": "^8.1.1",
|
|
120
126
|
"fs-extra": "^11.0.0",
|
|
121
127
|
"html-webpack-plugin": "^5.5.0",
|
|
122
128
|
"loader.js": "^4.7.0",
|
|
123
129
|
"lodash": "^4.17.21",
|
|
124
130
|
"npm-run-all2": "^6.0.0",
|
|
125
|
-
"prettier": "^3.
|
|
126
|
-
"qunit": "^2.
|
|
131
|
+
"prettier": "^3.3.3",
|
|
132
|
+
"qunit": "^2.22.0",
|
|
127
133
|
"qunit-dom": "^3.0.0",
|
|
128
134
|
"sass": "^1.56.1",
|
|
129
135
|
"storybook": "^8.4.2",
|
|
130
136
|
"stylelint": "^16.0.2",
|
|
131
137
|
"svg-sprite": "^2.0.4",
|
|
132
138
|
"svgo": "^3.3.2",
|
|
133
|
-
"webpack": "^5.
|
|
139
|
+
"webpack": "^5.93.0"
|
|
134
140
|
},
|
|
135
141
|
"bugs": {
|
|
136
142
|
"url": "https://github.com/1024pix/pix-ui/issues"
|