infinity-forge 3.2.7 → 3.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/LICENSE +20 -20
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +6 -0
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +42 -0
- package/dist/sites/public/fonts/fonts.css +760 -760
- package/dist/system/presentation/components/data/menu/components/menu-item/index.js +80 -0
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +44 -0
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +15 -0
- package/dist/system/presentation/components/data/menu/modes/opened/index.js +51 -0
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +15 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/component.d.ts +6 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/component.js +35 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +3 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
- package/dist/system/presentation/context/auth/components/login/form-login/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +10 -10
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +81 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +21 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/index.js +26 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +125 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +45 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +306 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +69 -0
- package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +6 -0
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +1 -0
- package/dist/ui/components/form/input-cep/use-cep/providers/index.js +18 -0
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +8 -0
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +62 -0
- package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +49 -0
- package/dist/ui/components/form/input-currency/components/utils/formatValue.js +132 -0
- package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +13 -0
- package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +12 -0
- package/dist/ui/components/form/input-currency/components/utils/index.d.ts +8 -0
- package/dist/ui/components/form/input-currency/components/utils/index.js +25 -0
- package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +40 -0
- package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +14 -0
- package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +14 -0
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +2 -0
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +62 -0
- package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +2 -0
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +87 -0
- package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +2 -0
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +66 -0
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +3 -0
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +49 -0
- package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
- package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -0
- package/dist/ui/components/form/input-mask/lib/core/index.js +15 -0
- package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +6 -0
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +44 -0
- package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -0
- package/dist/ui/components/form/input-mask/lib/mask/index.js +26 -0
- package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +61 -0
- package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +3 -0
- package/dist/ui/components/form/input-mask/lib/mask/useMask.js +150 -0
- package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +63 -0
- package/dist/ui/components/form/input-mask/lib/mask/utils.js +114 -0
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +6 -0
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +58 -0
- package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -0
- package/dist/ui/components/form/input-mask/lib/number-format/index.js +11 -0
- package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +26 -0
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +3 -0
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +208 -0
- package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-youtube/index.js +1 -1
- package/dist/ui/components/form/input-youtube/index.js.map +1 -1
- package/dist/ui/contexts/toast/styles.js +1 -1
- package/dist/ui/contexts/toast/styles.js.map +1 -1
- package/dist/ui/icons/render/mobile.js +1 -1
- package/dist/ui/icons/render/mobile.js.map +1 -1
- package/dist/ui/styles/reset.css +356 -356
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CustomInputEvent, CustomInputEventHandler } from '../core/index.js';
|
|
2
|
+
export interface NumberFormatEventDetail {
|
|
3
|
+
value: string;
|
|
4
|
+
number: number;
|
|
5
|
+
}
|
|
6
|
+
export type NumberFormatEvent = CustomInputEvent<NumberFormatEventDetail>;
|
|
7
|
+
export type NumberFormatEventHandler = CustomInputEventHandler<NumberFormatEvent>;
|
|
8
|
+
type ResolveOptions<T extends Record<string, any>> = Pick<T, 'currency' | 'currencyDisplay' | 'unit' | 'unitDisplay' | 'signDisplay' | 'minimumIntegerDigits' | 'minimumFractionDigits' | 'maximumFractionDigits'>;
|
|
9
|
+
interface IncludedOptions {
|
|
10
|
+
format?: Intl.NumberFormatOptions['style'];
|
|
11
|
+
groupDisplay?: Intl.NumberFormatOptions['useGrouping'];
|
|
12
|
+
maximumIntegerDigits?: number;
|
|
13
|
+
}
|
|
14
|
+
export type NumberFormatOptions = ResolveOptions<Intl.NumberFormatOptions> & IncludedOptions;
|
|
15
|
+
export type ResolvedNumberFormatOptions = ResolveOptions<Intl.ResolvedNumberFormatOptions> & Required<IncludedOptions>;
|
|
16
|
+
export interface LocalizedNumberFormatValues {
|
|
17
|
+
signBackwards: boolean;
|
|
18
|
+
minusSign: string;
|
|
19
|
+
decimal: string;
|
|
20
|
+
digits: string;
|
|
21
|
+
}
|
|
22
|
+
export interface NumberFormatProps extends NumberFormatOptions {
|
|
23
|
+
locales?: string | string[];
|
|
24
|
+
onNumberFormat?: NumberFormatEventHandler;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NumberFormatProps } from './types.js';
|
|
3
|
+
export default function useNumberFormat({ locales, format, currency, currencyDisplay, unit, unitDisplay, signDisplay, groupDisplay, minimumIntegerDigits, maximumIntegerDigits, minimumFractionDigits, maximumFractionDigits, onNumberFormat, }?: NumberFormatProps): React.MutableRefObject<HTMLInputElement | null>;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var core_1 = require("../core/index.js");
|
|
8
|
+
var localizeValues_1 = __importDefault(require("./utils/localizeValues.js"));
|
|
9
|
+
var resolveDetail_1 = __importDefault(require("./utils/resolveDetail.js"));
|
|
10
|
+
var resolveMinimumFractionDigits_1 = __importDefault(require("./utils/resolveMinimumFractionDigits.js"));
|
|
11
|
+
var resolveOptions_1 = __importDefault(require("./utils/resolveOptions.js"));
|
|
12
|
+
var resolveSelection_1 = __importDefault(require("./utils/resolveSelection.js"));
|
|
13
|
+
function useNumberFormat(_a) {
|
|
14
|
+
var _b = _a === void 0 ? {} : _a, locales = _b.locales, format = _b.format, currency = _b.currency, currencyDisplay = _b.currencyDisplay, unit = _b.unit, unitDisplay = _b.unitDisplay, signDisplay = _b.signDisplay, groupDisplay = _b.groupDisplay, minimumIntegerDigits = _b.minimumIntegerDigits, maximumIntegerDigits = _b.maximumIntegerDigits, minimumFractionDigits = _b.minimumFractionDigits, maximumFractionDigits = _b.maximumFractionDigits,
|
|
15
|
+
// minimumSignificantDigits,
|
|
16
|
+
// maximumSignificantDigits,
|
|
17
|
+
onNumberFormat = _b.onNumberFormat;
|
|
18
|
+
var options = {
|
|
19
|
+
format: format,
|
|
20
|
+
currency: currency,
|
|
21
|
+
currencyDisplay: currencyDisplay,
|
|
22
|
+
unit: unit,
|
|
23
|
+
unitDisplay: unitDisplay,
|
|
24
|
+
signDisplay: signDisplay,
|
|
25
|
+
groupDisplay: groupDisplay,
|
|
26
|
+
minimumIntegerDigits: minimumIntegerDigits,
|
|
27
|
+
maximumIntegerDigits: maximumIntegerDigits,
|
|
28
|
+
minimumFractionDigits: minimumFractionDigits,
|
|
29
|
+
maximumFractionDigits: maximumFractionDigits,
|
|
30
|
+
// minimumSignificantDigits,
|
|
31
|
+
// maximumSignificantDigits,
|
|
32
|
+
};
|
|
33
|
+
var cache = (0, react_1.useRef)(null);
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* Init
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
var init = function (_a) {
|
|
40
|
+
var initialValue = _a.initialValue;
|
|
41
|
+
var _b = (0, resolveOptions_1.default)(locales, options), current = _b.current, resolved = _b.resolved;
|
|
42
|
+
var invalidType = current.maximumIntegerDigits !== undefined && typeof current.maximumIntegerDigits !== 'number';
|
|
43
|
+
var invalidRange = typeof current.maximumIntegerDigits === 'number' && current.maximumIntegerDigits < resolved.minimumIntegerDigits;
|
|
44
|
+
if (invalidType || invalidRange) {
|
|
45
|
+
throw new RangeError('maximumIntegerDigits value is out of range.');
|
|
46
|
+
}
|
|
47
|
+
var cachedProps = { locales: locales, options: options };
|
|
48
|
+
cache.current = { value: initialValue, props: cachedProps, fallbackProps: cachedProps };
|
|
49
|
+
return { value: initialValue };
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* Tracking
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
var tracking = function (_a) {
|
|
57
|
+
var inputType = _a.inputType, previousValue = _a.previousValue, addedValue = _a.addedValue, changeStart = _a.changeStart, changeEnd = _a.changeEnd;
|
|
58
|
+
if (cache.current === null) {
|
|
59
|
+
throw new core_1.SyntheticChangeError('The state has not been initialized.');
|
|
60
|
+
}
|
|
61
|
+
// Предыдущее значение всегда должно соответствовать маскированному значению из кэша. Обратная ситуация может
|
|
62
|
+
// возникнуть при контроле значения, если значение не было изменено после ввода. Для предотвращения подобных
|
|
63
|
+
// ситуаций, нам важно синхронизировать предыдущее значение с кэшированным значением, если они различаются
|
|
64
|
+
if (cache.current.value !== previousValue) {
|
|
65
|
+
cache.current.props = cache.current.fallbackProps;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
cache.current.fallbackProps = cache.current.props;
|
|
69
|
+
}
|
|
70
|
+
var previousLocalizedValues = (0, localizeValues_1.default)(cache.current.props.locales);
|
|
71
|
+
var localizedValues = (0, localizeValues_1.default)(locales);
|
|
72
|
+
var _b = (0, resolveOptions_1.default)(locales, options), current = _b.current, resolved = _b.resolved;
|
|
73
|
+
// Удаляем неразрешённые символы
|
|
74
|
+
var filter = function (value) {
|
|
75
|
+
var p$1 = "\\-\\".concat(localizedValues.minusSign);
|
|
76
|
+
var p$2 = ".,".concat(localizedValues.decimal);
|
|
77
|
+
var p$3 = "\\d".concat(localizedValues.digits);
|
|
78
|
+
var p$4 = "[^".concat(p$1).concat(p$2).concat(p$3, "]|[").concat(p$2, "](?=.*[").concat(p$2, "])");
|
|
79
|
+
var _value = value.replace(RegExp(p$4, 'g'), '');
|
|
80
|
+
if (localizedValues.signBackwards) {
|
|
81
|
+
return _value.replace(RegExp("[".concat(p$1, "](?=.*[").concat(p$1).concat(p$2).concat(p$3, "])"), 'g'), '');
|
|
82
|
+
}
|
|
83
|
+
var firstMinusSignIndex = _value.search(RegExp("[".concat(p$1, "]")));
|
|
84
|
+
var firstDecimalIndex = _value.search(RegExp("[".concat(p$2, "]")));
|
|
85
|
+
var firstDigitIndex = _value.search(RegExp("[".concat(p$3, "]")));
|
|
86
|
+
return _value.replace(RegExp("[".concat(p$1, "]"), 'g'), function (match, offset) {
|
|
87
|
+
var isMoreMinusSignIndex = firstMinusSignIndex !== -1 && offset > firstMinusSignIndex;
|
|
88
|
+
var isMoreDecimalIndex = firstDecimalIndex !== -1 && offset > firstDecimalIndex;
|
|
89
|
+
var isMoreDigitIndex = firstDigitIndex !== -1 && offset > firstDigitIndex;
|
|
90
|
+
return isMoreMinusSignIndex || isMoreDecimalIndex || isMoreDigitIndex ? '' : match;
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
addedValue = filter(addedValue);
|
|
94
|
+
if (inputType === 'insert' && !addedValue) {
|
|
95
|
+
throw new core_1.SyntheticChangeError('The added value does not contain allowed characters.');
|
|
96
|
+
}
|
|
97
|
+
var regExp$1 = RegExp("[^\\".concat(previousLocalizedValues.minusSign).concat(previousLocalizedValues.decimal).concat(previousLocalizedValues.digits, "]"), 'g');
|
|
98
|
+
// Нам важно удалить ненужные символы перед преобразованием в число, так
|
|
99
|
+
// как символ группы и символ десятичного разделителя могут пересекаться
|
|
100
|
+
var beforeChangeValue = previousValue.slice(0, changeStart).replace(regExp$1, '');
|
|
101
|
+
var afterChangeValue = previousValue.slice(changeEnd).replace(regExp$1, '');
|
|
102
|
+
var normalizedValue = beforeChangeValue + addedValue + afterChangeValue;
|
|
103
|
+
// Фильтруем значение для преобразование в число
|
|
104
|
+
normalizedValue = filter(normalizedValue)
|
|
105
|
+
// Нормализуем десятичный разделитель
|
|
106
|
+
.replace(RegExp("[,".concat(localizedValues.decimal, "]"), 'g'), '.')
|
|
107
|
+
// Нормализуем знак минуса
|
|
108
|
+
.replace(RegExp(localizedValues.minusSign, 'g'), '-')
|
|
109
|
+
// Нормализуем цифры
|
|
110
|
+
.replace(RegExp("[".concat(localizedValues.digits, "]"), 'g'), function (localeDigit) {
|
|
111
|
+
var digit = localizedValues.digits.indexOf(localeDigit);
|
|
112
|
+
return digit !== -1 ? digit.toString() : localeDigit;
|
|
113
|
+
});
|
|
114
|
+
// В случае ввода знака минуса нам нужно его удалить если
|
|
115
|
+
// оно присутствует, в противном случае добавить, тем самым
|
|
116
|
+
// создав автоматическую вставку при любой позиции каретки
|
|
117
|
+
{
|
|
118
|
+
var isReflectMinusSign = RegExp("^[\\-\\".concat(localizedValues.minusSign, "]$")).test(addedValue) && changeStart === changeEnd;
|
|
119
|
+
var hasPreviousValueMinusSign = previousValue.includes(previousLocalizedValues.minusSign);
|
|
120
|
+
var hasNormalizedValueMinusSign = normalizedValue.includes('-');
|
|
121
|
+
if (isReflectMinusSign && hasPreviousValueMinusSign && hasNormalizedValueMinusSign) {
|
|
122
|
+
normalizedValue = normalizedValue.replace('-', '');
|
|
123
|
+
}
|
|
124
|
+
if (isReflectMinusSign && !hasPreviousValueMinusSign && !hasNormalizedValueMinusSign) {
|
|
125
|
+
normalizedValue = "-".concat(normalizedValue);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// Для нормализации значения, ставим минус слева.
|
|
129
|
+
// В случае арабской локали он может находиться справа
|
|
130
|
+
if (normalizedValue.endsWith('-')) {
|
|
131
|
+
normalizedValue = "-".concat(normalizedValue.slice(0, -1));
|
|
132
|
+
}
|
|
133
|
+
// Если изменения происходят в области `minimumFractionDigits`, очищаем дробную часть
|
|
134
|
+
// для замены значения, чтобы заменить "0" на вводимое значение,
|
|
135
|
+
// например, при вводе "1", получим "0.00" -> "0.1" -> "0.10" (не "0.100")
|
|
136
|
+
if (/\..*0$/.test(normalizedValue)) {
|
|
137
|
+
// let previousInteger = '';
|
|
138
|
+
var previousFraction = '';
|
|
139
|
+
var previousFractionIndex = -1;
|
|
140
|
+
for (var i = 0, decimal = false; i < previousValue.length; i++) {
|
|
141
|
+
var isDigit = previousLocalizedValues.digits.includes(previousValue[i]);
|
|
142
|
+
var isDecimal = previousValue[i] === previousLocalizedValues.decimal;
|
|
143
|
+
if (!decimal) {
|
|
144
|
+
if (isDecimal)
|
|
145
|
+
decimal = true;
|
|
146
|
+
// if (isDigit) previousInteger += previousValue[i];
|
|
147
|
+
}
|
|
148
|
+
else if (isDigit) {
|
|
149
|
+
previousFraction += previousValue[i];
|
|
150
|
+
if (previousFractionIndex === -1)
|
|
151
|
+
previousFractionIndex = i;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (previousFractionIndex !== -1) {
|
|
155
|
+
var previousMinimumFractionDigits = (0, resolveMinimumFractionDigits_1.default)({
|
|
156
|
+
// integer: previousInteger,
|
|
157
|
+
// fraction: previousFraction,
|
|
158
|
+
resolvedOptions: (0, resolveOptions_1.default)(cache.current.props.locales, cache.current.props.options).resolved,
|
|
159
|
+
});
|
|
160
|
+
// Если изменения происходят в области `minimumFractionDigits`
|
|
161
|
+
var isRange = changeStart >= previousFractionIndex &&
|
|
162
|
+
changeEnd < previousFractionIndex + (previousMinimumFractionDigits || 1);
|
|
163
|
+
if (isRange && previousFraction.length <= (previousMinimumFractionDigits || 1)) {
|
|
164
|
+
normalizedValue = normalizedValue.replace(/0+$/g, '');
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
var detail = (0, resolveDetail_1.default)(normalizedValue, {
|
|
169
|
+
inputType: inputType,
|
|
170
|
+
locales: locales,
|
|
171
|
+
localizedValues: localizedValues,
|
|
172
|
+
currentOptions: current,
|
|
173
|
+
resolvedOptions: resolved,
|
|
174
|
+
});
|
|
175
|
+
var selection = (0, resolveSelection_1.default)({
|
|
176
|
+
localizedValues: localizedValues,
|
|
177
|
+
previousLocalizedValues: previousLocalizedValues,
|
|
178
|
+
resolvedOptions: resolved,
|
|
179
|
+
inputType: inputType,
|
|
180
|
+
previousValue: previousValue,
|
|
181
|
+
addedValue: addedValue,
|
|
182
|
+
nextValue: detail.value,
|
|
183
|
+
changeStart: changeStart,
|
|
184
|
+
changeEnd: changeEnd,
|
|
185
|
+
});
|
|
186
|
+
cache.current.value = detail.value;
|
|
187
|
+
cache.current.props = { locales: locales, options: options };
|
|
188
|
+
return {
|
|
189
|
+
value: detail.value,
|
|
190
|
+
selectionStart: selection.start,
|
|
191
|
+
selectionEnd: selection.end,
|
|
192
|
+
__detail: detail,
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* Use input
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
return (0, core_1.useInput)({
|
|
201
|
+
init: init,
|
|
202
|
+
tracking: tracking,
|
|
203
|
+
eventType: 'input-number-format',
|
|
204
|
+
eventHandler: onNumberFormat,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
exports.default = useNumberFormat;
|
|
208
|
+
//# sourceMappingURL=useNumberFormat.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LocalizedNumberFormatValues, NumberFormatOptions, ResolvedNumberFormatOptions } from '../types';
|
|
2
|
-
import type { InputType } from '../../core';
|
|
1
|
+
import type { LocalizedNumberFormatValues, NumberFormatOptions, ResolvedNumberFormatOptions } from '../types.js';
|
|
2
|
+
import type { InputType } from '../../core/index.js';
|
|
3
3
|
interface Options {
|
|
4
4
|
inputType: InputType;
|
|
5
5
|
locales: string | string[] | undefined;
|
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
var resolveMinimumFractionDigits_1 = __importDefault(require("./resolveMinimumFractionDigits"));
|
|
28
|
+
var resolveMinimumFractionDigits_1 = __importDefault(require("./resolveMinimumFractionDigits.js"));
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @param value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NumberFormatOptions, ResolvedNumberFormatOptions } from '../types';
|
|
1
|
+
import type { NumberFormatOptions, ResolvedNumberFormatOptions } from '../types.js';
|
|
2
2
|
export default function resolveOptions(locales: string | string[] | undefined, options?: NumberFormatOptions | undefined): {
|
|
3
3
|
current: NumberFormatOptions;
|
|
4
4
|
resolved: ResolvedNumberFormatOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LocalizedNumberFormatValues, ResolvedNumberFormatOptions } from '../types';
|
|
2
|
-
import type { InputType } from '../../core';
|
|
1
|
+
import type { LocalizedNumberFormatValues, ResolvedNumberFormatOptions } from '../types.js';
|
|
2
|
+
import type { InputType } from '../../core/index.js';
|
|
3
3
|
interface ResolveSelectionParam {
|
|
4
4
|
localizedValues: LocalizedNumberFormatValues;
|
|
5
5
|
previousLocalizedValues: LocalizedNumberFormatValues;
|
|
@@ -58,7 +58,7 @@ function InputYoutube(props) {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, [values]);
|
|
61
|
-
return ((0, jsx_runtime_1.jsxs)(S.Video, { children: [(0, jsx_runtime_1.jsxs)("svg", { height: '80px', width: '80px', version: '1.1', id: 'Layer_1', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512', xmlSpace: 'preserve', children: [(0, jsx_runtime_1.jsx)("path", { d: 'M493.392,347.76H224.728c-10.256-0.032-18.568-8.344-18.6-18.6V182.84\
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)(S.Video, { children: [(0, jsx_runtime_1.jsxs)("svg", { height: '80px', width: '80px', version: '1.1', id: 'Layer_1', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512', xmlSpace: 'preserve', children: [(0, jsx_runtime_1.jsx)("path", { d: 'M493.392,347.76H224.728c-10.256-0.032-18.568-8.344-18.6-18.6V182.84\n\tc0.032-10.256,8.344-18.568,18.6-18.6H493.4c10.256,0.032,18.568,8.344,18.6,18.6v146.328\n\tC511.96,339.424,503.648,347.728,493.392,347.76z' }), (0, jsx_runtime_1.jsx)("path", { d: 'M24.096,300.152v-31.744L0,223.96h15.84l9.152,19.52c2.624,5.664,4.544,9.976,6.592,15.16h0.2\n\tc1.944-4.856,4.064-9.6,6.688-15.16l9.152-19.52H63.32l-25.336,44.096v32.088L24.096,300.152L24.096,300.152z' }), (0, jsx_runtime_1.jsx)("path", { d: 'M112.992,272.096c1.136,15.008-10.112,28.088-25.12,29.224c-1.048,0.08-2.096,0.096-3.136,0.056\n\tc-14.672,0.584-27.04-10.848-27.624-25.52c-0.04-0.936-0.024-1.88,0.04-2.816c-1.136-14.976,10.096-28.04,25.072-29.176\n\tc1.144-0.088,2.288-0.104,3.432-0.04c14.568-0.552,26.832,10.808,27.384,25.376C113.08,270.168,113.064,271.136,112.992,272.096z\n\t M71.512,272.712c0,10.584,5.184,18.64,13.656,18.64c7.928,0,13.48-7.784,13.48-18.912c0-8.6-3.864-18.4-13.344-18.4\n\tC75.472,254,71.512,263.488,71.512,272.712L71.512,272.712z' }), (0, jsx_runtime_1.jsx)("path", { d: 'M173.72,283.624c0,6.552,0.232,12,0.448,16.52h-12.224l-0.68-8.392h-0.208c-3.736,6.136-10.472,9.8-17.656,9.6\n\tc-10.072,0-19.2-6.008-19.2-24v-32.296h13.888v29.976c0,9.152,2.968,15.096,10.304,15.096c6.376-0.184,11.44-5.424,11.408-11.808\n\tv-33.248h13.92C173.72,245.072,173.72,283.624,173.72,283.624z' }), (0, jsx_runtime_1.jsx)("path", { d: 'M493.392,347.76H224.728c-10.256-0.032-18.568-8.344-18.6-18.6V182.84c0.032-10.256,8.344-18.568,18.6-18.6H493.4\n\tc10.256,0.032,18.568,8.344,18.6,18.6v146.328C511.96,339.424,503.648,347.728,493.392,347.76z' }), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { style: { opacity: 0.2, fill: '#fff' }, d: 'M206.128,187.792V313.2\n\t\t\tc0.032,2.336,0.416,4.648,1.144,6.864L392.416,164.24H206.24' }) }) }), (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("path", { style: { fill: '#fff' }, d: 'M262.224,235.568H240.52V223.96h57.6v11.608h-21.96v64.592h-13.936V235.568z' }), (0, jsx_runtime_1.jsx)("path", { style: { fill: '#fff' }, d: 'M350.12,283.624c0,6.552,0.232,12,0.448,16.52h-12.224l-0.68-8.392h-0.2\n\t\tc-3.736,6.136-10.472,9.8-17.656,9.6c-10.072,0-19.2-6.008-19.2-24v-32.296h13.872v29.976c0,9.152,2.968,15.096,10.304,15.096\n\t\tc6.376-0.184,11.44-5.424,11.408-11.808v-33.248h13.92L350.12,283.624z' }), (0, jsx_runtime_1.jsx)("path", { style: { fill: '#fff' }, d: 'M364.704,300.152c0.232-3.752,0.48-9.824,0.48-15.496v-64.8h13.888v32.8h0.232\n\t\tc3.92-5.816,10.6-9.152,17.6-8.8c13.48,0,23.072,11.2,22.976,27.928c0,19.8-12.568,29.6-24.984,29.6\n\t\tc-7.128,0.36-13.856-3.304-17.408-9.496h-0.232l-0.68,8.256L364.704,300.152z M379.104,277.416c-0.016,1.104,0.104,2.2,0.344,3.272\n\t\tc1.408,5.68,6.472,9.688,12.32,9.76c8.704,0,14.032-7.032,14.032-18.088c0-9.76-4.64-17.688-13.92-17.688\n\t\tc-5.944,0.2-11,4.376-12.32,10.176c-0.272,1.184-0.416,2.4-0.448,3.616L379.104,277.416L379.104,277.416z' }), (0, jsx_runtime_1.jsx)("path", { style: { fill: '#fff' }, d: 'M441.168,276.528c0.304,8.256,7.248,14.704,15.504,14.4c0.488-0.016,0.976-0.056,1.456-0.128\n\t\tc5.2,0.12,10.376-0.736,15.256-2.528l2.048,9.6c-6.144,2.344-12.68,3.504-19.256,3.416c-14.336,1.304-27.024-9.264-28.328-23.6\n\t\tc-0.128-1.416-0.144-2.84-0.04-4.256c-1.272-15.024,9.872-28.232,24.896-29.504c0.672-0.056,1.336-0.088,2.008-0.096\n\t\tc17.888,0,23.76,14.744,23.76,26.832c0.016,1.968-0.136,3.936-0.448,5.88h-36.856V276.528z M465.368,266.768\n\t\tc0.88-6.488-3.664-12.464-10.152-13.344c-0.424-0.056-0.848-0.096-1.28-0.104c-7.136,0.424-12.736,6.296-12.8,13.448H465.368z' })] })] }), (0, jsx_runtime_1.jsx)(ui_1.Input, __assign({}, props, { placeholder: 'URL V\u00EDdeo youtube' })), values[props.name] && ((0, jsx_runtime_1.jsx)("iframe", { src: values[props.name], title: 'YouTube video player', frameBorder: '0', allow: 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share', referrerPolicy: 'strict-origin-when-cross-origin', allowFullScreen: true }))] }));
|
|
62
62
|
}
|
|
63
63
|
exports.InputYoutube = InputYoutube;
|
|
64
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-youtube/index.tsx"],"names":[],"mappings":";;;;;;;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efault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Toast = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Toast = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n top: 15px;\n right: 10px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n z-index:
|
|
12
|
+
exports.Toast = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n top: 15px;\n right: 10px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n z-index: 100000000000;\n"], ["\n position: fixed;\n top: 15px;\n right: 10px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n z-index: 100000000000;\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/contexts/toast/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/contexts/toast/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,8MAAA,2IAQjC,KAAA"}
|
|
@@ -4,7 +4,7 @@ exports.IconMobile = void 0;
|
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
function IconMobile(_a) {
|
|
6
6
|
var fill = _a.fill;
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("svg", { fill: fill, version: '1.1', viewBox: '0 0 27.442 27.442', xmlSpace: 'preserve', children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("path", { d: 'M19.494,0H7.948C6.843,0,5.951,0.896,5.951,1.999v23.446c0,1.102,0.892,1.997,1.997,1.997h11.546\
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", { fill: fill, version: '1.1', viewBox: '0 0 27.442 27.442', xmlSpace: 'preserve', children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("path", { d: 'M19.494,0H7.948C6.843,0,5.951,0.896,5.951,1.999v23.446c0,1.102,0.892,1.997,1.997,1.997h11.546\n\t\tc1.103,0,1.997-0.895,1.997-1.997V1.999C21.491,0.896,20.597,0,19.494,0z M10.872,1.214h5.7c0.144,0,0.261,0.215,0.261,0.481\n\t\ts-0.117,0.482-0.261,0.482h-5.7c-0.145,0-0.26-0.216-0.26-0.482C10.612,1.429,10.727,1.214,10.872,1.214z M13.722,25.469\n\t\tc-0.703,0-1.275-0.572-1.275-1.276s0.572-1.274,1.275-1.274c0.701,0,1.273,0.57,1.273,1.274S14.423,25.469,13.722,25.469z\n\t\t M19.995,21.1H7.448V3.373h12.547V21.1z' }), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {}), (0, jsx_runtime_1.jsx)("g", {})] }) }));
|
|
8
8
|
}
|
|
9
9
|
exports.IconMobile = IconMobile;
|
|
10
10
|
//# sourceMappingURL=mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/mobile.tsx"],"names":[],"mappings":";;;;AAEA,SAAgB,UAAU,CAAC,EAAe;QAAb,IAAI,UAAA;IAC/B,OAAO,CACL,gCAAK,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,mBAAmB,EAAC,QAAQ,EAAC,UAAU,YAC5E,0CACE,iCACE,CAAC,EAAC,
|
|
1
|
+
{"version":3,"file":"mobile.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/mobile.tsx"],"names":[],"mappings":";;;;AAEA,SAAgB,UAAU,CAAC,EAAe;QAAb,IAAI,UAAA;IAC/B,OAAO,CACL,gCAAK,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,mBAAmB,EAAC,QAAQ,EAAC,UAAU,YAC5E,0CACE,iCACE,CAAC,EAAC,8fAI6B,GAC/B,EACF,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,EACP,+BAAO,IACL,GACA,CACP,CAAA;AACH,CAAC;AA7BD,gCA6BC"}
|