infinity-forge 3.2.6 → 3.2.7

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.
Files changed (130) hide show
  1. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +0 -6
  2. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +0 -42
  3. package/dist/system/presentation/components/data/menu/components/menu-item/index.js +0 -80
  4. package/dist/system/presentation/components/data/menu/components/menu-item/index.js.map +1 -1
  5. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +0 -44
  6. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +0 -15
  7. package/dist/system/presentation/components/data/menu/modes/opened/index.js +0 -51
  8. package/dist/system/presentation/components/data/menu/modes/opened/styles.js +0 -15
  9. package/dist/system/presentation/components/data/tab/component.js +4 -4
  10. package/dist/system/presentation/components/data/tab/interfaces.d.ts +1 -3
  11. package/dist/system/presentation/components/layout/header/components/menu-right/component.d.ts +0 -6
  12. package/dist/system/presentation/components/layout/header/components/menu-right/component.js +0 -35
  13. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +0 -3
  14. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +3 -3
  15. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
  16. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
  17. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  18. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  19. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
  20. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  21. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  22. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +5 -5
  23. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  24. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  25. package/dist/system/presentation/components/layout/header/index.js +2 -2
  26. package/dist/system/presentation/components/pages/menus/page.js +4 -4
  27. package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
  28. package/dist/system/presentation/components/pages/users/page.js +4 -4
  29. package/dist/system/presentation/context/auth/components/login/form-login/index.js +3 -3
  30. package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +1 -2
  31. package/dist/system/presentation/hooks/notifications/use-load-all/index.js +3 -3
  32. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -3
  33. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +3 -3
  34. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
  35. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
  36. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
  37. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +4 -4
  38. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
  39. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +2 -2
  40. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
  41. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
  42. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
  43. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
  44. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
  45. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +3 -3
  46. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  47. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +11 -11
  48. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +3 -3
  49. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  50. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  51. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
  52. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
  53. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
  54. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
  55. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +2 -3
  56. package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
  57. package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
  58. package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +0 -81
  59. package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +0 -21
  60. package/dist/ui/components/carousel/carousel-lib/core/update/index.js +0 -26
  61. package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +0 -125
  62. package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +0 -45
  63. package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +0 -306
  64. package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +0 -69
  65. package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +0 -6
  66. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +3 -2
  67. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +2 -2
  68. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
  69. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
  70. package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +0 -1
  71. package/dist/ui/components/form/input-cep/use-cep/providers/index.js +0 -18
  72. package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +0 -8
  73. package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +0 -62
  74. package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +0 -49
  75. package/dist/ui/components/form/input-currency/components/utils/formatValue.js +0 -132
  76. package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +0 -13
  77. package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +0 -12
  78. package/dist/ui/components/form/input-currency/components/utils/index.d.ts +0 -8
  79. package/dist/ui/components/form/input-currency/components/utils/index.js +0 -25
  80. package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +0 -40
  81. package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +0 -14
  82. package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +0 -14
  83. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +0 -2
  84. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +0 -62
  85. package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +0 -2
  86. package/dist/ui/components/form/input-date-picker/calendar/days/index.js +0 -87
  87. package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +0 -2
  88. package/dist/ui/components/form/input-date-picker/calendar/months/index.js +0 -66
  89. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +2 -2
  90. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +2 -2
  91. package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +0 -3
  92. package/dist/ui/components/form/input-file/render-files/file-item/index.js +0 -49
  93. package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
  94. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
  95. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
  96. package/dist/ui/components/form/input-mask/lib/core/index.d.ts +0 -5
  97. package/dist/ui/components/form/input-mask/lib/core/index.js +0 -15
  98. package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
  99. package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +0 -6
  100. package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +0 -44
  101. package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +0 -5
  102. package/dist/ui/components/form/input-mask/lib/mask/index.js +0 -26
  103. package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +0 -61
  104. package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +0 -3
  105. package/dist/ui/components/form/input-mask/lib/mask/useMask.js +0 -150
  106. package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
  107. package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
  108. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
  109. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
  110. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
  111. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
  112. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
  113. package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
  114. package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
  115. package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +0 -63
  116. package/dist/ui/components/form/input-mask/lib/mask/utils.js +0 -114
  117. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +0 -6
  118. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +0 -58
  119. package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +0 -4
  120. package/dist/ui/components/form/input-mask/lib/number-format/index.js +0 -11
  121. package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +0 -26
  122. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +0 -3
  123. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +0 -208
  124. package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
  125. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
  126. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
  127. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
  128. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
  129. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
  130. package/package.json +1 -1
@@ -1,306 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var utils_1 = require("../../shared/utils.js");
4
- function updateSlides() {
5
- var swiper = this;
6
- function getDirectionPropertyValue(node, label) {
7
- return parseFloat(node.getPropertyValue(swiper.getDirectionLabel(label)) || 0);
8
- }
9
- var params = swiper.params;
10
- var wrapperEl = swiper.wrapperEl, slidesEl = swiper.slidesEl, swiperSize = swiper.size, rtl = swiper.rtlTranslate, wrongRTL = swiper.wrongRTL;
11
- var isVirtual = swiper.virtual && params.virtual.enabled;
12
- var previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;
13
- var slides = (0, utils_1.elementChildren)(slidesEl, ".".concat(swiper.params.slideClass, ", swiper-slide"));
14
- var slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;
15
- var snapGrid = [];
16
- var slidesGrid = [];
17
- var slidesSizesGrid = [];
18
- var offsetBefore = params.slidesOffsetBefore;
19
- if (typeof offsetBefore === 'function') {
20
- offsetBefore = params.slidesOffsetBefore.call(swiper);
21
- }
22
- var offsetAfter = params.slidesOffsetAfter;
23
- if (typeof offsetAfter === 'function') {
24
- offsetAfter = params.slidesOffsetAfter.call(swiper);
25
- }
26
- var previousSnapGridLength = swiper.snapGrid.length;
27
- var previousSlidesGridLength = swiper.slidesGrid.length;
28
- var spaceBetween = params.spaceBetween;
29
- var slidePosition = -offsetBefore;
30
- var prevSlideSize = 0;
31
- var index = 0;
32
- if (typeof swiperSize === 'undefined') {
33
- return;
34
- }
35
- if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
36
- spaceBetween = (parseFloat(spaceBetween.replace('%', '')) / 100) * swiperSize;
37
- }
38
- else if (typeof spaceBetween === 'string') {
39
- spaceBetween = parseFloat(spaceBetween);
40
- }
41
- swiper.virtualSize = -spaceBetween;
42
- // reset margins
43
- slides.forEach(function (slideEl) {
44
- if (rtl) {
45
- slideEl.style.marginLeft = '';
46
- }
47
- else {
48
- slideEl.style.marginRight = '';
49
- }
50
- slideEl.style.marginBottom = '';
51
- slideEl.style.marginTop = '';
52
- });
53
- // reset cssMode offsets
54
- if (params.centeredSlides && params.cssMode) {
55
- (0, utils_1.setCSSProperty)(wrapperEl, '--swiper-centered-offset-before', '');
56
- (0, utils_1.setCSSProperty)(wrapperEl, '--swiper-centered-offset-after', '');
57
- }
58
- var gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;
59
- if (gridEnabled) {
60
- swiper.grid.initSlides(slides);
61
- }
62
- else if (swiper.grid) {
63
- swiper.grid.unsetSlides();
64
- }
65
- // Calc slides
66
- var slideSize;
67
- var shouldResetSlideSize = params.slidesPerView === 'auto' &&
68
- params.breakpoints &&
69
- Object.keys(params.breakpoints).filter(function (key) {
70
- return typeof params.breakpoints[key].slidesPerView !== 'undefined';
71
- }).length > 0;
72
- for (var i = 0; i < slidesLength; i += 1) {
73
- slideSize = 0;
74
- var slide = void 0;
75
- if (slides[i])
76
- slide = slides[i];
77
- if (gridEnabled) {
78
- swiper.grid.updateSlide(i, slide, slides);
79
- }
80
- if (slides[i] && (0, utils_1.elementStyle)(slide, 'display') === 'none')
81
- continue; // eslint-disable-line
82
- if (params.slidesPerView === 'auto') {
83
- if (shouldResetSlideSize) {
84
- slides[i].style[swiper.getDirectionLabel('width')] = "";
85
- }
86
- var slideStyles = getComputedStyle(slide);
87
- var currentTransform = slide.style.transform;
88
- var currentWebKitTransform = slide.style.webkitTransform;
89
- if (currentTransform) {
90
- slide.style.transform = 'none';
91
- }
92
- if (currentWebKitTransform) {
93
- slide.style.webkitTransform = 'none';
94
- }
95
- if (params.roundLengths) {
96
- slideSize = swiper.isHorizontal()
97
- ? (0, utils_1.elementOuterSize)(slide, 'width', true)
98
- : (0, utils_1.elementOuterSize)(slide, 'height', true);
99
- }
100
- else {
101
- // eslint-disable-next-line
102
- var width = getDirectionPropertyValue(slideStyles, 'width');
103
- var paddingLeft = getDirectionPropertyValue(slideStyles, 'padding-left');
104
- var paddingRight = getDirectionPropertyValue(slideStyles, 'padding-right');
105
- var marginLeft = getDirectionPropertyValue(slideStyles, 'margin-left');
106
- var marginRight = getDirectionPropertyValue(slideStyles, 'margin-right');
107
- var boxSizing = slideStyles.getPropertyValue('box-sizing');
108
- if (boxSizing && boxSizing === 'border-box') {
109
- slideSize = width + marginLeft + marginRight;
110
- }
111
- else {
112
- var clientWidth = slide.clientWidth, offsetWidth = slide.offsetWidth;
113
- slideSize =
114
- width +
115
- paddingLeft +
116
- paddingRight +
117
- marginLeft +
118
- marginRight +
119
- (offsetWidth - clientWidth);
120
- }
121
- }
122
- if (currentTransform) {
123
- slide.style.transform = currentTransform;
124
- }
125
- if (currentWebKitTransform) {
126
- slide.style.webkitTransform = currentWebKitTransform;
127
- }
128
- if (params.roundLengths)
129
- slideSize = Math.floor(slideSize);
130
- }
131
- else {
132
- slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;
133
- if (params.roundLengths)
134
- slideSize = Math.floor(slideSize);
135
- if (slides[i]) {
136
- slides[i].style[swiper.getDirectionLabel('width')] = "".concat(slideSize, "px");
137
- }
138
- }
139
- if (slides[i]) {
140
- slides[i].swiperSlideSize = slideSize;
141
- }
142
- slidesSizesGrid.push(slideSize);
143
- if (params.centeredSlides) {
144
- slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;
145
- if (prevSlideSize === 0 && i !== 0)
146
- slidePosition = slidePosition - swiperSize / 2 - spaceBetween;
147
- if (i === 0)
148
- slidePosition = slidePosition - swiperSize / 2 - spaceBetween;
149
- if (Math.abs(slidePosition) < 1 / 1000)
150
- slidePosition = 0;
151
- if (params.roundLengths)
152
- slidePosition = Math.floor(slidePosition);
153
- if (index % params.slidesPerGroup === 0)
154
- snapGrid.push(slidePosition);
155
- slidesGrid.push(slidePosition);
156
- }
157
- else {
158
- if (params.roundLengths)
159
- slidePosition = Math.floor(slidePosition);
160
- if ((index - Math.min(swiper.params.slidesPerGroupSkip, index)) %
161
- swiper.params.slidesPerGroup ===
162
- 0)
163
- snapGrid.push(slidePosition);
164
- slidesGrid.push(slidePosition);
165
- slidePosition = slidePosition + slideSize + spaceBetween;
166
- }
167
- swiper.virtualSize += slideSize + spaceBetween;
168
- prevSlideSize = slideSize;
169
- index += 1;
170
- }
171
- swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;
172
- if (rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {
173
- wrapperEl.style.width = "".concat(swiper.virtualSize + spaceBetween, "px");
174
- }
175
- if (params.setWrapperSize) {
176
- wrapperEl.style[swiper.getDirectionLabel('width')] = "".concat(swiper.virtualSize + spaceBetween, "px");
177
- }
178
- if (gridEnabled) {
179
- swiper.grid.updateWrapperSize(slideSize, snapGrid);
180
- }
181
- // Remove last grid elements depending on width
182
- if (!params.centeredSlides) {
183
- var newSlidesGrid = [];
184
- for (var i = 0; i < snapGrid.length; i += 1) {
185
- var slidesGridItem = snapGrid[i];
186
- if (params.roundLengths)
187
- slidesGridItem = Math.floor(slidesGridItem);
188
- if (snapGrid[i] <= swiper.virtualSize - swiperSize) {
189
- newSlidesGrid.push(slidesGridItem);
190
- }
191
- }
192
- snapGrid = newSlidesGrid;
193
- if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) >
194
- 1) {
195
- snapGrid.push(swiper.virtualSize - swiperSize);
196
- }
197
- }
198
- if (isVirtual && params.loop) {
199
- var size = slidesSizesGrid[0] + spaceBetween;
200
- if (params.slidesPerGroup > 1) {
201
- var groups = Math.ceil((swiper.virtual.slidesBefore + swiper.virtual.slidesAfter) / params.slidesPerGroup);
202
- var groupSize = size * params.slidesPerGroup;
203
- for (var i = 0; i < groups; i += 1) {
204
- snapGrid.push(snapGrid[snapGrid.length - 1] + groupSize);
205
- }
206
- }
207
- for (var i = 0; i < swiper.virtual.slidesBefore + swiper.virtual.slidesAfter; i += 1) {
208
- if (params.slidesPerGroup === 1) {
209
- snapGrid.push(snapGrid[snapGrid.length - 1] + size);
210
- }
211
- slidesGrid.push(slidesGrid[slidesGrid.length - 1] + size);
212
- swiper.virtualSize += size;
213
- }
214
- }
215
- if (snapGrid.length === 0)
216
- snapGrid = [0];
217
- if (spaceBetween !== 0) {
218
- var key_1 = swiper.isHorizontal() && rtl ? 'marginLeft' : swiper.getDirectionLabel('marginRight');
219
- slides
220
- .filter(function (_, slideIndex) {
221
- if (!params.cssMode || params.loop)
222
- return true;
223
- if (slideIndex === slides.length - 1) {
224
- return false;
225
- }
226
- return true;
227
- })
228
- .forEach(function (slideEl) {
229
- slideEl.style[key_1] = "".concat(spaceBetween, "px");
230
- });
231
- }
232
- if (params.centeredSlides && params.centeredSlidesBounds) {
233
- var allSlidesSize_1 = 0;
234
- slidesSizesGrid.forEach(function (slideSizeValue) {
235
- allSlidesSize_1 += slideSizeValue + (spaceBetween || 0);
236
- });
237
- allSlidesSize_1 -= spaceBetween;
238
- var maxSnap_1 = allSlidesSize_1 - swiperSize;
239
- snapGrid = snapGrid.map(function (snap) {
240
- if (snap <= 0)
241
- return -offsetBefore;
242
- if (snap > maxSnap_1)
243
- return maxSnap_1 + offsetAfter;
244
- return snap;
245
- });
246
- }
247
- if (params.centerInsufficientSlides) {
248
- var allSlidesSize_2 = 0;
249
- slidesSizesGrid.forEach(function (slideSizeValue) {
250
- allSlidesSize_2 += slideSizeValue + (spaceBetween || 0);
251
- });
252
- allSlidesSize_2 -= spaceBetween;
253
- var offsetSize = (params.slidesOffsetBefore || 0) + (params.slidesOffsetAfter || 0);
254
- if (allSlidesSize_2 + offsetSize < swiperSize) {
255
- var allSlidesOffset_1 = (swiperSize - allSlidesSize_2 - offsetSize) / 2;
256
- snapGrid.forEach(function (snap, snapIndex) {
257
- snapGrid[snapIndex] = snap - allSlidesOffset_1;
258
- });
259
- slidesGrid.forEach(function (snap, snapIndex) {
260
- slidesGrid[snapIndex] = snap + allSlidesOffset_1;
261
- });
262
- }
263
- }
264
- Object.assign(swiper, {
265
- slides: slides,
266
- snapGrid: snapGrid,
267
- slidesGrid: slidesGrid,
268
- slidesSizesGrid: slidesSizesGrid,
269
- });
270
- if (params.centeredSlides && params.cssMode && !params.centeredSlidesBounds) {
271
- (0, utils_1.setCSSProperty)(wrapperEl, '--swiper-centered-offset-before', "".concat(-snapGrid[0], "px"));
272
- (0, utils_1.setCSSProperty)(wrapperEl, '--swiper-centered-offset-after', "".concat(swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2, "px"));
273
- var addToSnapGrid_1 = -swiper.snapGrid[0];
274
- var addToSlidesGrid_1 = -swiper.slidesGrid[0];
275
- swiper.snapGrid = swiper.snapGrid.map(function (v) { return v + addToSnapGrid_1; });
276
- swiper.slidesGrid = swiper.slidesGrid.map(function (v) { return v + addToSlidesGrid_1; });
277
- }
278
- if (slidesLength !== previousSlidesLength) {
279
- swiper.emit('slidesLengthChange');
280
- }
281
- if (snapGrid.length !== previousSnapGridLength) {
282
- if (swiper.params.watchOverflow)
283
- swiper.checkOverflow();
284
- swiper.emit('snapGridLengthChange');
285
- }
286
- if (slidesGrid.length !== previousSlidesGridLength) {
287
- swiper.emit('slidesGridLengthChange');
288
- }
289
- if (params.watchSlidesProgress) {
290
- swiper.updateSlidesOffset();
291
- }
292
- swiper.emit('slidesUpdated');
293
- if (!isVirtual && !params.cssMode && (params.effect === 'slide' || params.effect === 'fade')) {
294
- var backFaceHiddenClass = "".concat(params.containerModifierClass, "backface-hidden");
295
- var hasClassBackfaceClassAdded = swiper.el.classList.contains(backFaceHiddenClass);
296
- if (slidesLength <= params.maxBackfaceHiddenSlides) {
297
- if (!hasClassBackfaceClassAdded)
298
- swiper.el.classList.add(backFaceHiddenClass);
299
- }
300
- else if (hasClassBackfaceClassAdded) {
301
- swiper.el.classList.remove(backFaceHiddenClass);
302
- }
303
- }
304
- }
305
- exports.default = updateSlides;
306
- //# sourceMappingURL=updateSlides.js.map
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //@ts-nocheck
4
- var utils_1 = require("../../shared/utils.js");
5
- var toggleSlideClasses = function (slideEl, condition, className) {
6
- if (condition && !slideEl.classList.contains(className)) {
7
- slideEl.classList.add(className);
8
- }
9
- else if (!condition && slideEl.classList.contains(className)) {
10
- slideEl.classList.remove(className);
11
- }
12
- };
13
- function updateSlidesClasses() {
14
- var swiper = this;
15
- var slides = swiper.slides, params = swiper.params, slidesEl = swiper.slidesEl, activeIndex = swiper.activeIndex;
16
- var isVirtual = swiper.virtual && params.virtual.enabled;
17
- var gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;
18
- var getFilteredSlide = function (selector) {
19
- return (0, utils_1.elementChildren)(slidesEl, ".".concat(params.slideClass).concat(selector, ", swiper-slide").concat(selector))[0];
20
- };
21
- var activeSlide;
22
- var prevSlide;
23
- var nextSlide;
24
- if (isVirtual) {
25
- if (params.loop) {
26
- var slideIndex = activeIndex - swiper.virtual.slidesBefore;
27
- if (slideIndex < 0)
28
- slideIndex = swiper.virtual.slides.length + slideIndex;
29
- if (slideIndex >= swiper.virtual.slides.length)
30
- slideIndex -= swiper.virtual.slides.length;
31
- activeSlide = getFilteredSlide("[data-swiper-slide-index=\"".concat(slideIndex, "\"]"));
32
- }
33
- else {
34
- activeSlide = getFilteredSlide("[data-swiper-slide-index=\"".concat(activeIndex, "\"]"));
35
- }
36
- }
37
- else {
38
- if (gridEnabled) {
39
- activeSlide = slides.filter(function (slideEl) { return slideEl.column === activeIndex; })[0];
40
- nextSlide = slides.filter(function (slideEl) { return slideEl.column === activeIndex + 1; })[0];
41
- prevSlide = slides.filter(function (slideEl) { return slideEl.column === activeIndex - 1; })[0];
42
- }
43
- else {
44
- activeSlide = slides[activeIndex];
45
- }
46
- }
47
- if (activeSlide) {
48
- if (!gridEnabled) {
49
- // Next Slide
50
- nextSlide = (0, utils_1.elementNextAll)(activeSlide, ".".concat(params.slideClass, ", swiper-slide"))[0];
51
- if (params.loop && !nextSlide) {
52
- nextSlide = slides[0];
53
- }
54
- // Prev Slide
55
- prevSlide = (0, utils_1.elementPrevAll)(activeSlide, ".".concat(params.slideClass, ", swiper-slide"))[0];
56
- if (params.loop && !prevSlide === 0) {
57
- prevSlide = slides[slides.length - 1];
58
- }
59
- }
60
- }
61
- slides.forEach(function (slideEl) {
62
- toggleSlideClasses(slideEl, slideEl === activeSlide, params.slideActiveClass);
63
- toggleSlideClasses(slideEl, slideEl === nextSlide, params.slideNextClass);
64
- toggleSlideClasses(slideEl, slideEl === prevSlide, params.slidePrevClass);
65
- });
66
- swiper.emitSlidesClasses();
67
- }
68
- exports.default = updateSlidesClasses;
69
- //# sourceMappingURL=updateSlidesClasses.js.map
@@ -1,6 +0,0 @@
1
- import { TabContentProps } from "../../../../../../system/index.js";
2
- export declare function CaptureI18nErrors({ languages, changeTab }: {
3
- languages: {
4
- symbol: string;
5
- }[];
6
- } & TabContentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- import { FieldsProviderCep, InputCepProps } from '../../../../../../../ui/index.js';
1
+ import { FieldsProviderCep, InputCepProps } from '../../../../../../../ui';
2
2
  export declare function useCepIBGE<T = any>({ fields }: InputCepProps<T>): {
3
3
  getCep: (zipCode: any) => Promise<T>;
4
- fields: Fields
4
+ fields: FieldsProviderCep<T>;
5
+ };
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.useCepIBGE = void 0;
40
- var ui_1 = require("../../../../../../../ui/index.js");
40
+ var ui_1 = require("../../../../../../../ui");
41
41
  function useCepIBGE(_a) {
42
42
  var fields = _a.fields;
43
43
  function getCep(zipCode) {
@@ -64,4 +64,4 @@ function useCepIBGE(_a) {
64
64
  };
65
65
  }
66
66
  exports.useCepIBGE = useCepIBGE;
67
- //# sourceMap
67
+ //# sourceMappingURL=hook.js.map
@@ -1,3 +1,3 @@
1
- export * from "./hook.js";
2
- export * from "./service.js";
3
- export * from "./interfaces.js";
1
+ export * from "./hook";
2
+ export * from "./service";
3
+ export * from "./interfaces";
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./hook.js"), exports);
18
- __exportStar(require("./service.js"), exports);
19
- __exportStar(require("./interfaces.js"), exports);
17
+ __exportStar(require("./hook"), exports);
18
+ __exportStar(require("./service"), exports);
19
+ __exportStar(require("./interfaces"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- export * from "./ibge/index.js";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ibge/index.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1,8 +0,0 @@
1
- import { CurrencyInputProps } from '../CurrencyInputProps.js';
2
- export type CleanValueOptions = Pick<CurrencyInputProps, 'decimalSeparator' | 'groupSeparator' | 'allowDecimals' | 'decimalsLimit' | 'allowNegativeValue' | 'disableAbbreviations' | 'prefix' | 'transformRawValue'> & {
3
- value: string;
4
- };
5
- /**
6
- * Remove prefix, separators and extra decimals from value
7
- */
8
- export declare const cleanValue: ({ value, groupSeparator, decimalSeparator, allowDecimals, decimalsLimit, allowNegativeValue, disableAbbreviations, prefix, transformRawValue, }: CleanValueOptions) => string;
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
7
- }
8
- }
9
- return to.concat(ar || Array.prototype.slice.call(from));
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.cleanValue = void 0;
13
- var parseAbbrValue_1 = require("./parseAbbrValue.js");
14
- var removeSeparators_1 = require("./removeSeparators.js");
15
- var removeInvalidChars_1 = require("./removeInvalidChars.js");
16
- var escapeRegExp_1 = require("./escapeRegExp.js");
17
- /**
18
- * Remove prefix, separators and extra decimals from value
19
- */
20
- var cleanValue = function (_a) {
21
- var value = _a.value, _b = _a.groupSeparator, groupSeparator = _b === void 0 ? ',' : _b, _c = _a.decimalSeparator, decimalSeparator = _c === void 0 ? '.' : _c, _d = _a.allowDecimals, allowDecimals = _d === void 0 ? true : _d, _e = _a.decimalsLimit, decimalsLimit = _e === void 0 ? 2 : _e, _f = _a.allowNegativeValue, allowNegativeValue = _f === void 0 ? true : _f, _g = _a.disableAbbreviations, disableAbbreviations = _g === void 0 ? false : _g, _h = _a.prefix, prefix = _h === void 0 ? '' : _h, _j = _a.transformRawValue, transformRawValue = _j === void 0 ? function (rawValue) { return rawValue; } : _j;
22
- var transformedValue = transformRawValue(value);
23
- if (transformedValue === '-') {
24
- return transformedValue;
25
- }
26
- var abbreviations = disableAbbreviations ? [] : ['k', 'm', 'b'];
27
- var reg = new RegExp("((^|\\D)-\\d)|(-".concat((0, escapeRegExp_1.escapeRegExp)(prefix), ")"));
28
- var isNegative = reg.test(transformedValue);
29
- // Is there a digit before the prefix? eg. 1$
30
- var _k = RegExp("(\\d+)-?".concat((0, escapeRegExp_1.escapeRegExp)(prefix))).exec(value) || [], prefixWithValue = _k[0], preValue = _k[1];
31
- var withoutPrefix = prefix
32
- ? prefixWithValue
33
- ? transformedValue.replace(prefixWithValue, '').concat(preValue)
34
- : transformedValue.replace(prefix, '')
35
- : transformedValue;
36
- var withoutSeparators = (0, removeSeparators_1.removeSeparators)(withoutPrefix, groupSeparator);
37
- var withoutInvalidChars = (0, removeInvalidChars_1.removeInvalidChars)(withoutSeparators, __spreadArray([
38
- groupSeparator,
39
- decimalSeparator
40
- ], abbreviations, true));
41
- var valueOnly = withoutInvalidChars;
42
- if (!disableAbbreviations) {
43
- // disallow letter without number
44
- if (abbreviations.some(function (letter) { return letter === withoutInvalidChars.toLowerCase().replace(decimalSeparator, ''); })) {
45
- return '';
46
- }
47
- var parsed = (0, parseAbbrValue_1.parseAbbrValue)(withoutInvalidChars, decimalSeparator);
48
- if (parsed) {
49
- valueOnly = String(parsed);
50
- }
51
- }
52
- var includeNegative = isNegative && allowNegativeValue ? '-' : '';
53
- if (decimalSeparator && valueOnly.includes(decimalSeparator)) {
54
- var _l = withoutInvalidChars.split(decimalSeparator), int = _l[0], decimals = _l[1];
55
- var trimmedDecimals = decimalsLimit && decimals ? decimals.slice(0, decimalsLimit) : decimals;
56
- var includeDecimals = allowDecimals ? "".concat(decimalSeparator).concat(trimmedDecimals) : '';
57
- return "".concat(includeNegative).concat(int).concat(includeDecimals);
58
- }
59
- return "".concat(includeNegative).concat(valueOnly);
60
- };
61
- exports.cleanValue = cleanValue;
62
- //# sourceMappingURL=cleanValue.js.map
@@ -1,49 +0,0 @@
1
- import { IntlConfig } from '../CurrencyInputProps.js';
2
- export type FormatValueOptions = {
3
- /**
4
- * Value to format
5
- */
6
- value: string | undefined;
7
- /**
8
- * Decimal separator
9
- *
10
- * Default = '.'
11
- */
12
- decimalSeparator?: string;
13
- /**
14
- * Group separator
15
- *
16
- * Default = ','
17
- */
18
- groupSeparator?: string;
19
- /**
20
- * Turn off separators
21
- *
22
- * This will override Group separators
23
- *
24
- * Default = false
25
- */
26
- disableGroupSeparators?: boolean;
27
- /**
28
- * Intl locale currency config
29
- */
30
- intlConfig?: IntlConfig;
31
- /**
32
- * Specify decimal scale for padding/trimming
33
- *
34
- * Eg. 1.5 -> 1.50 or 1.234 -> 1.23
35
- */
36
- decimalScale?: number;
37
- /**
38
- * Prefix
39
- */
40
- prefix?: string;
41
- /**
42
- * Suffix
43
- */
44
- suffix?: string;
45
- };
46
- /**
47
- * Format value with decimal separator, group separator and prefix
48
- */
49
- export declare const formatValue: (options: FormatValueOptions) => string;