@madgex/design-system 9.1.10 → 9.1.11
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/dist/assets/icons.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"asterisk"},{"name":"
|
|
1
|
+
[{"name":"asterisk"},{"name":"calendar"},{"name":"check"},{"name":"chevron-down"},{"name":"chevron-left"},{"name":"chevron-right"},{"name":"chevron-up"},{"name":"close"},{"name":"cross"},{"name":"doc-pdf"},{"name":"doc"},{"name":"email"},{"name":"external"},{"name":"flag"},{"name":"information"},{"name":"job"},{"name":"list-bullets"},{"name":"list-numbers"},{"name":"location-pin"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"plus"},{"name":"question-mark"},{"name":"redo"},{"name":"search"},{"name":"share"},{"name":"social-facebook"},{"name":"social-pinterest"},{"name":"social-linkedin"},{"name":"social-twitter"},{"name":"social-reddit"},{"name":"spinner"},{"name":"star-fill"},{"name":"text-bold"},{"name":"star-outline"},{"name":"text-italic"},{"name":"text-link"},{"name":"text-strike-through"},{"name":"text-underline"},{"name":"triangle-down"},{"name":"triangle-right"},{"name":"triangle-up"},{"name":"undo"},{"name":"upload"},{"name":"user"}]
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@madgex/design-system",
|
|
3
3
|
"author": "Madgex",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "9.1.
|
|
5
|
+
"version": "9.1.11",
|
|
6
6
|
"main": "dist/js/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dist/js/index.js",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"webpack-dev-server": "^3.11.2",
|
|
100
100
|
"webpack-stream": "^6.1.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "f580becb4f0742d93392e84291922627495d76dd"
|
|
103
103
|
}
|
|
@@ -48,14 +48,6 @@ Otherwise, show an extra page in front of the current page to make up the displa
|
|
|
48
48
|
{%-set pages = range(2,pageCount + extraPage) -%}
|
|
49
49
|
{% endif %}
|
|
50
50
|
|
|
51
|
-
{%- if pageNo <= 1 -%}
|
|
52
|
-
{%- set disabledButtonPrev = true -%}
|
|
53
|
-
{%- endif -%}
|
|
54
|
-
|
|
55
|
-
{%- if pageNo >= pageCount -%}
|
|
56
|
-
{%- set disabledButtonNext = true -%}
|
|
57
|
-
{%- endif -%}
|
|
58
|
-
|
|
59
51
|
{# Labels #}
|
|
60
52
|
{%- set navAriaLabel = params.i18n.navAriaLabel | default('Pagination') -%}
|
|
61
53
|
{%- set prevLabel = params.i18n.prevLabel | default('Previous') -%}
|
|
@@ -67,26 +59,18 @@ Otherwise, show an extra page in front of the current page to make up the displa
|
|
|
67
59
|
|
|
68
60
|
<nav aria-label="{{ navAriaLabel }}" data-test="pagination-numbers{% if params.id %}-{{params.id}}{% endif %}">
|
|
69
61
|
<ul class="mds-pagination mds-pagination--numbers mds-text-align-center {% if params.classes %} {{params.classes}}{% endif %}">
|
|
70
|
-
{% if prevLabel
|
|
62
|
+
{% if prevLabel and pageNo > 1 %}
|
|
71
63
|
<li class="mds-pagination__item">
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{{ MdsIcon({iconName: 'chevron-left'}) }}
|
|
81
|
-
{%- endif -%}
|
|
82
|
-
<span class="mds-display-none mds-display-md-inline mds-margin-left-b2">{{- prevLabel -}}</span>
|
|
83
|
-
{%- if disabledButtonPrev -%}
|
|
84
|
-
</div>
|
|
85
|
-
{%- else -%}
|
|
86
|
-
</a>
|
|
87
|
-
{%- endif -%}
|
|
64
|
+
<a href="{{params.pageUrlTemplate | replace('{pageNo}', pageNo - 1) }}"
|
|
65
|
+
class="mds-pagination__link mds-pagination__link--background"
|
|
66
|
+
aria-label="{{ prevAriaLabel }}">
|
|
67
|
+
{% if not params.hideIcons %}
|
|
68
|
+
{{ MdsIcon({iconName: 'chevron-left'}) }}
|
|
69
|
+
{% endif %}
|
|
70
|
+
<span class="mds-display-none mds-display-md-inline mds-margin-left-b2">{{- prevLabel -}}</span>
|
|
71
|
+
</a>
|
|
88
72
|
</li>
|
|
89
|
-
{
|
|
73
|
+
{% endif %}
|
|
90
74
|
<li class="mds-pagination__item mds-border-left">
|
|
91
75
|
{{ PaginationNumbersNumber({
|
|
92
76
|
pageNo: pageNo,
|
|
@@ -119,25 +103,17 @@ Otherwise, show an extra page in front of the current page to make up the displa
|
|
|
119
103
|
})
|
|
120
104
|
}}
|
|
121
105
|
</li>
|
|
122
|
-
{%- endif
|
|
123
|
-
{
|
|
106
|
+
{%- endif %}
|
|
107
|
+
{% if nextLabel and pageNo < pageCount %}
|
|
124
108
|
<li class="mds-pagination__item mds-border-left">
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
{%- if not params.hideIcons -%}
|
|
134
|
-
{{ MdsIcon({iconName: 'chevron-right'}) }}
|
|
135
|
-
{%- endif -%}
|
|
136
|
-
{%- if disabledButtonNext -%}
|
|
137
|
-
</div>
|
|
138
|
-
{%- else -%}
|
|
139
|
-
</a>
|
|
140
|
-
{%- endif -%}
|
|
109
|
+
<a href="{{params.pageUrlTemplate | replace('{pageNo}', pageNo + 1)}}"
|
|
110
|
+
class="mds-pagination__link mds-pagination__link--background"
|
|
111
|
+
aria-label="{{ nextAriaLabel }}">
|
|
112
|
+
<span class="mds-display-none mds-display-md-inline mds-margin-right-b2">{{- nextLabel -}}</span>
|
|
113
|
+
{% if not params.hideIcons %}
|
|
114
|
+
{{ MdsIcon({iconName: 'chevron-right'}) }}
|
|
115
|
+
{% endif %}
|
|
116
|
+
</a>
|
|
141
117
|
</li>
|
|
142
118
|
{%- endif -%}
|
|
143
119
|
</ul>
|