@react-form-builder/components-rsuite 7.14.0 → 8.0.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/dist/InputCell-tTp9fZXd.js +17 -0
- package/dist/InputCell-tTp9fZXd.js.map +1 -0
- package/dist/Labeled-8k9VvM4G.js +18 -0
- package/dist/Labeled-8k9VvM4G.js.map +1 -0
- package/dist/{WrappedInput-BRkBjl0z.js → WrappedInput-Cq5StStF.js} +2 -2
- package/dist/{WrappedInput-BRkBjl0z.js.map → WrappedInput-Cq5StStF.js.map} +1 -1
- package/dist/assets/styles.css +1 -0
- package/dist/assets/styles.ltr.css +319 -0
- package/dist/assets/styles.ltr.css.map +1 -0
- package/dist/assets/styles.rtl.css +319 -0
- package/dist/assets/styles.rtl.css.map +1 -0
- package/dist/autocomplete.js +2 -2
- package/dist/breadcrumb.js +32 -29
- package/dist/breadcrumb.js.map +1 -1
- package/dist/builder-view-with-css.js +4 -4
- package/dist/builder-view-with-css.js.map +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +18 -28
- package/dist/checkbox.js.map +1 -1
- package/dist/container.d.ts +4 -0
- package/dist/container.js +15 -16
- package/dist/container.js.map +1 -1
- package/dist/css/formengine-rsuite.css +5 -1
- package/dist/css/rsuite-ltr.css +2 -0
- package/dist/css/rsuite-rtl.css +2 -0
- package/dist/css-loader.d.ts +2 -8
- package/dist/css-loader.js +12 -12
- package/dist/css-loader.js.map +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +34 -42
- package/dist/dropdown.js.map +1 -1
- package/dist/error-message.js +25 -21
- package/dist/error-message.js.map +1 -1
- package/dist/image.js +12 -13
- package/dist/image.js.map +1 -1
- package/dist/index.d.ts +15 -28
- package/dist/index.js +80 -81
- package/dist/input.js +2 -2
- package/dist/label.js +1 -1
- package/dist/link.js +1 -1
- package/dist/localization-wrapper.d.ts +1 -1
- package/dist/localization-wrapper.js +51 -50
- package/dist/localization-wrapper.js.map +1 -1
- package/dist/menu.js +2 -2
- package/dist/message.d.ts +1 -11
- package/dist/message.js +11 -12
- package/dist/message.js.map +1 -1
- package/dist/modal-layout.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/number-format.js +3 -3
- package/dist/pattern-format.js +3 -3
- package/dist/placeholder.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rsuite-ltr.css-uDbh7We6.js +4 -0
- package/dist/rsuite-ltr.css-uDbh7We6.js.map +1 -0
- package/dist/rsuite-rtl.css-icqmWEF6.js +4 -0
- package/dist/rsuite-rtl.css-icqmWEF6.js.map +1 -0
- package/dist/schemas/rsuite-components.schema.json +1 -4
- package/dist/search.js +31 -42
- package/dist/search.js.map +1 -1
- package/dist/static-content.js +1 -1
- package/dist/tab.js +26 -33
- package/dist/tab.js.map +1 -1
- package/dist/tag-picker.js +2 -2
- package/dist/text-area.js +10 -10
- package/dist/text-area.js.map +1 -1
- package/dist/time-picker.js +2 -2
- package/dist/toggle.d.ts +1 -11
- package/dist/toggle.js +16 -18
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/uploader.js +3 -3
- package/dist/useTouchOnEvent-BPYbKiku.js.map +1 -1
- package/dist/view-with-css.js +4 -4
- package/dist/view-with-css.js.map +1 -1
- package/dist/wizard.d.ts +6 -8
- package/dist/wizard.js +129 -177
- package/dist/wizard.js.map +1 -1
- package/package.json +7 -7
- package/dist/InputCell-BDyUJFGm.js +0 -21
- package/dist/InputCell-BDyUJFGm.js.map +0 -1
- package/dist/Labeled-BWYRwMiY.js +0 -35
- package/dist/Labeled-BWYRwMiY.js.map +0 -1
- package/dist/formengine-rsuite.css-B1zD3_ue.js +0 -5
- package/dist/formengine-rsuite.css-B1zD3_ue.js.map +0 -1
- package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js +0 -5
- package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js.map +0 -1
- package/dist/rsuite-no-reset.min.css-bW1P11UK.js +0 -5
- package/dist/rsuite-no-reset.min.css-bW1P11UK.js.map +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { jsx as c } from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import $ from "
|
|
6
|
-
import w from "date-fns/locale/
|
|
7
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import y from "clsx";
|
|
3
|
+
import { useBuilderTheme as f, BiDi as p } from "@react-form-builder/core";
|
|
4
|
+
import { CustomProvider as b } from "rsuite";
|
|
5
|
+
import { jaJP as h, zhTW as C, trTR as x, svSE as P, ptBR as T, nlNL as D, koKR as k, kkKZ as B, huHU as R, fiFI as F, esAR as M, enGB as S, daDK as I, zhCN as L, esES as U, frFR as E, itIT as v, enUS as d, deDE as N, arEG as $ } from "rsuite/esm/locales/index.js";
|
|
6
|
+
import w from "date-fns/locale/hi/index.js";
|
|
7
|
+
import K from "date-fns/locale/sr/index.js";
|
|
8
|
+
const z = { checkAll: "सब कुछ", noResultsText: "कोई परिणाम नहीं मिला", placeholder: "का चयन करें", searchPlaceholder: "खोज" }, A = { createOption: 'विकल्प बनाएं "{{0}}"', newItem: "नया आइटम" }, G = { friday: "Fr", hours: "घंटे", minutes: "मिनट", monday: "मो", now: "अब", ok: "ठीक है।", saturday: "एसए", seconds: "सेकंड", sunday: "एसयू", thursday: "वें", today: "आज", tuesday: "टीयू", wednesday: "हम", yesterday: "कल" }, j = {
|
|
8
9
|
default: { Breadcrumb: { expandText: "पथ दिखाएँ" }, CloseButton: { closeLabel: "बंद करें" }, DateRangePicker: { last7Days: "पिछले 7 दिन" }, Pagination: { first: "पहले", last: "अंतिम", limit: "{{0}} / पृष्ठ", more: "अधिक", next: "अगले", prev: "पिछला", skip: "के लिए जाओ{{0}}", total: "कुल पंक्तियाँ: {{0}}" }, Plaintext: { notSelected: "चयनित नहीं", notUploaded: "अपलोड नहीं किया गया", unfilled: "अधूरा" }, Toggle: { off: "बंद करें", on: "खुला हुआ" }, Uploader: { complete: "समाप्त हो गया", emptyFile: "खाली", error: "त्रुटि", inited: "प्रारंभिक", progress: "अपलोडिंग", removeFile: "फ़ाइल निकालें", upload: "अपलोड करें" }, common: { clear: "साफ़ करें", emptyMessage: "कोई डेटा नहीं मिला", loading: "लोड हो रहा है । ..", remove: "निकालें" } },
|
|
9
|
-
genericCombobox:
|
|
10
|
-
genericCreatableComboBox:
|
|
11
|
-
genericDateTimeFormats:
|
|
10
|
+
genericCombobox: z,
|
|
11
|
+
genericCreatableComboBox: A,
|
|
12
|
+
genericDateTimeFormats: G
|
|
12
13
|
};
|
|
13
14
|
function r(a) {
|
|
14
15
|
return Object.entries(a).forEach(([l, t]) => {
|
|
15
16
|
typeof t == "string" && (a[l] = t.replaceAll("{{0}}", "{0}")), typeof t == "object" && r(t);
|
|
16
17
|
}), a;
|
|
17
18
|
}
|
|
18
|
-
const e = r(
|
|
19
|
+
const e = r(j), n = {
|
|
19
20
|
...e.genericDateTimeFormats,
|
|
20
21
|
formattedMonthPattern: "MMM, yyyy",
|
|
21
22
|
formattedDayPattern: "MMM dd, yyyy",
|
|
22
23
|
shortDateFormat: "dd/MM/yyyy",
|
|
23
24
|
shortTimeFormat: "h:mm a",
|
|
24
|
-
dateLocale:
|
|
25
|
+
dateLocale: w
|
|
25
26
|
}, s = {
|
|
26
27
|
...e.genericCombobox,
|
|
27
28
|
...e.genericCreatableComboBox
|
|
28
|
-
},
|
|
29
|
+
}, H = r({
|
|
29
30
|
code: "hi-IN",
|
|
30
31
|
common: e.default.common,
|
|
31
32
|
Plaintext: e.default.Plaintext,
|
|
@@ -46,22 +47,22 @@ const e = r(G), n = {
|
|
|
46
47
|
CloseButton: e.default.CloseButton,
|
|
47
48
|
Breadcrumb: e.default.Breadcrumb,
|
|
48
49
|
Toggle: e.default.Toggle
|
|
49
|
-
}),
|
|
50
|
+
}), O = { checkAll: "Све", noResultsText: "Нису пронађени резултати", placeholder: "Изаберите", searchPlaceholder: "Претрага" }, W = { createOption: 'Креирајте опцију "{{0}}"', newItem: "Нова ставка" }, J = { friday: "Фр", hours: "Сати", minutes: "Минута", monday: "Mo", now: "Сада", ok: "ОК", saturday: "Са", seconds: "Секунди", sunday: "Су", thursday: "Th", today: "Данас", tuesday: "Tu", wednesday: "Ми", yesterday: "Јуче" }, Z = {
|
|
50
51
|
default: { Breadcrumb: { expandText: "Прикажи пут" }, CloseButton: { closeLabel: "Затвори" }, DateRangePicker: { last7Days: "Последњих 7 дана" }, Pagination: { first: "Први", last: "Последњи", limit: "{{0}} / страна", more: "Више", next: "Следећи", prev: "Претходни", skip: "Иди на{{0}}", total: "Укупан број редова:{{0}}" }, Plaintext: { notSelected: "Није изабран", notUploaded: "Није учитан", unfilled: "Неиспуњен" }, Toggle: { off: "Затвори", on: "Отвори" }, Uploader: { complete: "Завршен", emptyFile: "Празно", error: "Грешка", inited: "Оригинални", progress: "Преузимање", removeFile: "Избришите датотеку", upload: "Преузимање" }, common: { clear: "Јасно", emptyMessage: "Подаци нису пронађени", loading: "Преузимање...", remove: "Избриши" } },
|
|
51
|
-
genericCombobox:
|
|
52
|
-
genericCreatableComboBox:
|
|
53
|
-
genericDateTimeFormats:
|
|
54
|
-
}, o = r(
|
|
52
|
+
genericCombobox: O,
|
|
53
|
+
genericCreatableComboBox: W,
|
|
54
|
+
genericDateTimeFormats: J
|
|
55
|
+
}, o = r(Z), i = {
|
|
55
56
|
...o.genericDateTimeFormats,
|
|
56
57
|
formattedMonthPattern: "MMM, yyyy",
|
|
57
58
|
formattedDayPattern: "MMM dd, yyyy",
|
|
58
59
|
shortDateFormat: "MM/dd/yyyy",
|
|
59
60
|
shortTimeFormat: "hh:mm aa",
|
|
60
|
-
dateLocale:
|
|
61
|
-
},
|
|
61
|
+
dateLocale: K
|
|
62
|
+
}, m = {
|
|
62
63
|
...o.genericCombobox,
|
|
63
64
|
...o.genericCreatableComboBox
|
|
64
|
-
},
|
|
65
|
+
}, q = r({
|
|
65
66
|
code: "sr-RS",
|
|
66
67
|
common: o.default.common,
|
|
67
68
|
Plaintext: o.default.Plaintext,
|
|
@@ -76,45 +77,45 @@ const e = r(G), n = {
|
|
|
76
77
|
Combobox: {
|
|
77
78
|
...o.genericCombobox
|
|
78
79
|
},
|
|
79
|
-
InputPicker:
|
|
80
|
-
TagPicker:
|
|
80
|
+
InputPicker: m,
|
|
81
|
+
TagPicker: m,
|
|
81
82
|
Uploader: o.default.Uploader,
|
|
82
83
|
CloseButton: o.default.CloseButton,
|
|
83
84
|
Breadcrumb: o.default.Breadcrumb,
|
|
84
85
|
Toggle: o.default.Toggle
|
|
85
|
-
}),
|
|
86
|
-
"ar-EG":
|
|
87
|
-
"de-DE":
|
|
88
|
-
"en-US":
|
|
89
|
-
"it-IT":
|
|
90
|
-
"fr-FR":
|
|
91
|
-
"es-ES":
|
|
92
|
-
"zh-CN":
|
|
93
|
-
"da-DK":
|
|
94
|
-
"en-GB":
|
|
95
|
-
"es-AR":
|
|
96
|
-
"fi-FI":
|
|
97
|
-
"hi-IN":
|
|
98
|
-
"hu-HU":
|
|
99
|
-
"kk-KZ":
|
|
100
|
-
"ko-KR":
|
|
101
|
-
"nl-NL":
|
|
86
|
+
}), Q = {
|
|
87
|
+
"ar-EG": $,
|
|
88
|
+
"de-DE": N,
|
|
89
|
+
"en-US": d,
|
|
90
|
+
"it-IT": v,
|
|
91
|
+
"fr-FR": E,
|
|
92
|
+
"es-ES": U,
|
|
93
|
+
"zh-CN": L,
|
|
94
|
+
"da-DK": I,
|
|
95
|
+
"en-GB": S,
|
|
96
|
+
"es-AR": M,
|
|
97
|
+
"fi-FI": F,
|
|
98
|
+
"hi-IN": H,
|
|
99
|
+
"hu-HU": R,
|
|
100
|
+
"kk-KZ": B,
|
|
101
|
+
"ko-KR": k,
|
|
102
|
+
"nl-NL": D,
|
|
102
103
|
"pt-BR": T,
|
|
103
|
-
"sr-RS":
|
|
104
|
+
"sr-RS": q,
|
|
104
105
|
"sv-SE": P,
|
|
105
|
-
"tr-TR":
|
|
106
|
-
"zh-TW":
|
|
107
|
-
"ja-JP":
|
|
108
|
-
},
|
|
106
|
+
"tr-TR": x,
|
|
107
|
+
"zh-TW": C,
|
|
108
|
+
"ja-JP": h
|
|
109
|
+
}, V = d, X = {
|
|
109
110
|
height: "100%",
|
|
110
111
|
width: "100%",
|
|
111
112
|
backgroundColor: "var(--rs-bg-card)"
|
|
112
|
-
},
|
|
113
|
-
const t =
|
|
114
|
-
return /* @__PURE__ */ c(
|
|
113
|
+
}, ne = ({ language: a, children: l }) => {
|
|
114
|
+
const t = f(), u = y("rsuite", t === "dark" ? "rs-theme-dark" : "rs-theme-light"), g = Q[a.fullCode] ?? V;
|
|
115
|
+
return /* @__PURE__ */ c(b, { rtl: a.bidi === p.RTL, locale: g, theme: t, children: /* @__PURE__ */ c("div", { className: u, style: X, children: l }) });
|
|
115
116
|
};
|
|
116
117
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
ne as RsLocalizationWrapper,
|
|
119
|
+
V as defaultComponentsLocale
|
|
119
120
|
};
|
|
120
121
|
//# sourceMappingURL=localization-wrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization-wrapper.js","sources":["../src/components/i18n/patchPlaceholders.ts","../src/components/i18n/hi-IN.ts","../src/components/i18n/sr-RS.ts","../src/components/RsLocalizationWrapper.tsx"],"sourcesContent":["/**\n * Replaces placeholders for rSuite localisation.\n * @param obj the object in which you want to change the placeholders.\n * @returns the patched object.\n */\nexport function patchPlaceholders(obj: any) {\n Object.entries(obj).forEach(([key, value]) => {\n if (typeof value === 'string') {\n obj[key] = value.replaceAll('{{0}}', '{0}')\n }\n if (typeof value === 'object') {\n patchPlaceholders(value)\n }\n })\n return obj\n}\n","import dfHI from 'date-fns/locale/hi/index.js'\nimport hiInLocale from './locales/hi-IN.json'\nimport {patchPlaceholders} from './patchPlaceholders'\n\nconst locale = patchPlaceholders(hiInLocale)\n\nconst genericDateTimeFormats = {\n ...locale.genericDateTimeFormats,\n formattedMonthPattern: 'MMM, yyyy',\n formattedDayPattern: 'MMM dd, yyyy',\n shortDateFormat: 'dd/MM/yyyy',\n shortTimeFormat: 'h:mm a',\n dateLocale: dfHI\n}\n\nconst genericCreatableComboBox = {\n ...locale.genericCombobox,\n ...locale.genericCreatableComboBox,\n}\n\nexport const hiIN = patchPlaceholders({\n code: 'hi-IN',\n common: locale.default.common,\n Plaintext: locale.default.Plaintext,\n Pagination: locale.default.Pagination,\n DateTimeFormats: genericDateTimeFormats,\n Calendar: genericDateTimeFormats,\n DatePicker: genericDateTimeFormats,\n DateRangePicker: {\n ...genericDateTimeFormats,\n ...locale.default.DateRangePicker,\n },\n Combobox: {\n ...locale.genericCombobox\n },\n InputPicker: genericCreatableComboBox,\n TagPicker: genericCreatableComboBox,\n Uploader: locale.default.Uploader,\n CloseButton: locale.default.CloseButton,\n Breadcrumb: locale.default.Breadcrumb,\n Toggle: locale.default.Toggle,\n})\n","import dfSR from 'date-fns/locale/sr/index.js'\nimport srRsLocale from './locales/sr-RS.json'\nimport {patchPlaceholders} from './patchPlaceholders'\n\nconst locale = patchPlaceholders(srRsLocale)\n\nconst genericDateTimeFormats = {\n ...locale.genericDateTimeFormats,\n formattedMonthPattern: 'MMM, yyyy',\n formattedDayPattern: 'MMM dd, yyyy',\n shortDateFormat: 'MM/dd/yyyy',\n shortTimeFormat: 'hh:mm aa',\n dateLocale: dfSR\n}\n\nconst genericCreatableComboBox = {\n ...locale.genericCombobox,\n ...locale.genericCreatableComboBox,\n}\n\nexport const srRS = patchPlaceholders({\n code: 'sr-RS',\n common: locale.default.common,\n Plaintext: locale.default.Plaintext,\n Pagination: locale.default.Pagination,\n DateTimeFormats: genericDateTimeFormats,\n Calendar: genericDateTimeFormats,\n DatePicker: genericDateTimeFormats,\n DateRangePicker: {\n ...genericDateTimeFormats,\n ...locale.default.DateRangePicker,\n },\n Combobox: {\n ...locale.genericCombobox\n },\n InputPicker: genericCreatableComboBox,\n TagPicker: genericCreatableComboBox,\n Uploader: locale.default.Uploader,\n CloseButton: locale.default.CloseButton,\n Breadcrumb: locale.default.Breadcrumb,\n Toggle: locale.default.Toggle,\n})\n","import type {FormViewerWrapperComponentProps} from '@react-form-builder/core'\nimport {BiDi, useBuilderTheme} from '@react-form-builder/core'\nimport {CustomProvider} from 'rsuite'\nimport {\n arEG,\n daDK,\n deDE,\n enGB,\n enUS,\n esAR,\n esES,\n fiFI,\n frFR,\n huHU,\n itIT,\n jaJP,\n kkKZ,\n koKR,\n nlNL,\n ptBR,\n svSE,\n trTR,\n zhCN,\n zhTW\n} from 'rsuite/esm/locales/index.js'\nimport {hiIN} from './i18n/hi-IN'\nimport {srRS} from './i18n/sr-RS'\n\nconst rSuiteLocales: Record<string, any> = {\n 'ar-EG': arEG,\n 'de-DE': deDE,\n 'en-US': enUS,\n 'it-IT': itIT,\n 'fr-FR': frFR,\n 'es-ES': esES,\n 'zh-CN': zhCN,\n 'da-DK': daDK,\n 'en-GB': enGB,\n 'es-AR': esAR,\n 'fi-FI': fiFI,\n 'hi-IN': hiIN,\n 'hu-HU': huHU,\n 'kk-KZ': kkKZ,\n 'ko-KR': koKR,\n 'nl-NL': nlNL,\n 'pt-BR': ptBR,\n 'sr-RS': srRS,\n 'sv-SE': svSE,\n 'tr-TR': trTR,\n 'zh-TW': zhTW,\n 'ja-JP': jaJP,\n}\n\nexport const defaultComponentsLocale = enUS\n\nconst containerStyle = {\n height: '100%',\n width: '100%',\n backgroundColor: 'var(--rs-bg-card)'\n}\n\n/**\n * Wrapper component for RSuite components localization.\n * @param props the component props.\n * @param props.language the language object containing the language information.\n * @param props.children the children components to be wrapped.\n * @returns the wrapped components with localization settings applied.\n */\nexport const RsLocalizationWrapper = ({language, children}: FormViewerWrapperComponentProps) => {\n const theme = useBuilderTheme()\n const className = theme === 'dark' ? 'rs-theme-dark' : 'rs-theme-light'\n const locale = rSuiteLocales[language.fullCode] ?? defaultComponentsLocale\n return <CustomProvider rtl={language.bidi === BiDi.RTL} locale={locale} theme={theme}>\n <div className={className} style={containerStyle}>{children}</div>\n </CustomProvider>\n}\n"],"names":["patchPlaceholders","obj","key","value","locale","hiInLocale","genericDateTimeFormats","dfHI","genericCreatableComboBox","hiIN","srRsLocale","dfSR","srRS","rSuiteLocales","arEG","deDE","enUS","itIT","frFR","esES","zhCN","daDK","enGB","esAR","fiFI","huHU","kkKZ","koKR","nlNL","ptBR","svSE","trTR","zhTW","jaJP","defaultComponentsLocale","containerStyle","RsLocalizationWrapper","language","children","theme","useBuilderTheme","className","jsx","CustomProvider","BiDi"],"mappings":"
|
|
1
|
+
{"version":3,"file":"localization-wrapper.js","sources":["../src/components/i18n/patchPlaceholders.ts","../src/components/i18n/hi-IN.ts","../src/components/i18n/sr-RS.ts","../src/components/RsLocalizationWrapper.tsx"],"sourcesContent":["/**\n * Replaces placeholders for rSuite localisation.\n * @param obj the object in which you want to change the placeholders.\n * @returns the patched object.\n */\nexport function patchPlaceholders(obj: any) {\n Object.entries(obj).forEach(([key, value]) => {\n if (typeof value === 'string') {\n obj[key] = value.replaceAll('{{0}}', '{0}')\n }\n if (typeof value === 'object') {\n patchPlaceholders(value)\n }\n })\n return obj\n}\n","import dfHI from 'date-fns/locale/hi/index.js'\nimport hiInLocale from './locales/hi-IN.json'\nimport {patchPlaceholders} from './patchPlaceholders'\n\nconst locale = patchPlaceholders(hiInLocale)\n\nconst genericDateTimeFormats = {\n ...locale.genericDateTimeFormats,\n formattedMonthPattern: 'MMM, yyyy',\n formattedDayPattern: 'MMM dd, yyyy',\n shortDateFormat: 'dd/MM/yyyy',\n shortTimeFormat: 'h:mm a',\n dateLocale: dfHI\n}\n\nconst genericCreatableComboBox = {\n ...locale.genericCombobox,\n ...locale.genericCreatableComboBox,\n}\n\nexport const hiIN = patchPlaceholders({\n code: 'hi-IN',\n common: locale.default.common,\n Plaintext: locale.default.Plaintext,\n Pagination: locale.default.Pagination,\n DateTimeFormats: genericDateTimeFormats,\n Calendar: genericDateTimeFormats,\n DatePicker: genericDateTimeFormats,\n DateRangePicker: {\n ...genericDateTimeFormats,\n ...locale.default.DateRangePicker,\n },\n Combobox: {\n ...locale.genericCombobox\n },\n InputPicker: genericCreatableComboBox,\n TagPicker: genericCreatableComboBox,\n Uploader: locale.default.Uploader,\n CloseButton: locale.default.CloseButton,\n Breadcrumb: locale.default.Breadcrumb,\n Toggle: locale.default.Toggle,\n})\n","import dfSR from 'date-fns/locale/sr/index.js'\nimport srRsLocale from './locales/sr-RS.json'\nimport {patchPlaceholders} from './patchPlaceholders'\n\nconst locale = patchPlaceholders(srRsLocale)\n\nconst genericDateTimeFormats = {\n ...locale.genericDateTimeFormats,\n formattedMonthPattern: 'MMM, yyyy',\n formattedDayPattern: 'MMM dd, yyyy',\n shortDateFormat: 'MM/dd/yyyy',\n shortTimeFormat: 'hh:mm aa',\n dateLocale: dfSR\n}\n\nconst genericCreatableComboBox = {\n ...locale.genericCombobox,\n ...locale.genericCreatableComboBox,\n}\n\nexport const srRS = patchPlaceholders({\n code: 'sr-RS',\n common: locale.default.common,\n Plaintext: locale.default.Plaintext,\n Pagination: locale.default.Pagination,\n DateTimeFormats: genericDateTimeFormats,\n Calendar: genericDateTimeFormats,\n DatePicker: genericDateTimeFormats,\n DateRangePicker: {\n ...genericDateTimeFormats,\n ...locale.default.DateRangePicker,\n },\n Combobox: {\n ...locale.genericCombobox\n },\n InputPicker: genericCreatableComboBox,\n TagPicker: genericCreatableComboBox,\n Uploader: locale.default.Uploader,\n CloseButton: locale.default.CloseButton,\n Breadcrumb: locale.default.Breadcrumb,\n Toggle: locale.default.Toggle,\n})\n","import cx from 'clsx'\nimport type {FormViewerWrapperComponentProps} from '@react-form-builder/core'\nimport {BiDi, useBuilderTheme} from '@react-form-builder/core'\nimport {CustomProvider} from 'rsuite'\nimport {\n arEG,\n daDK,\n deDE,\n enGB,\n enUS,\n esAR,\n esES,\n fiFI,\n frFR,\n huHU,\n itIT,\n jaJP,\n kkKZ,\n koKR,\n nlNL,\n ptBR,\n svSE,\n trTR,\n zhCN,\n zhTW\n} from 'rsuite/esm/locales/index.js'\nimport {hiIN} from './i18n/hi-IN'\nimport {srRS} from './i18n/sr-RS'\n\nconst rSuiteLocales: Record<string, any> = {\n 'ar-EG': arEG,\n 'de-DE': deDE,\n 'en-US': enUS,\n 'it-IT': itIT,\n 'fr-FR': frFR,\n 'es-ES': esES,\n 'zh-CN': zhCN,\n 'da-DK': daDK,\n 'en-GB': enGB,\n 'es-AR': esAR,\n 'fi-FI': fiFI,\n 'hi-IN': hiIN,\n 'hu-HU': huHU,\n 'kk-KZ': kkKZ,\n 'ko-KR': koKR,\n 'nl-NL': nlNL,\n 'pt-BR': ptBR,\n 'sr-RS': srRS,\n 'sv-SE': svSE,\n 'tr-TR': trTR,\n 'zh-TW': zhTW,\n 'ja-JP': jaJP,\n}\n\nexport const defaultComponentsLocale = enUS\n\nconst containerStyle = {\n height: '100%',\n width: '100%',\n backgroundColor: 'var(--rs-bg-card)'\n}\n\n/**\n * Wrapper component for RSuite components localization.\n * @param props the component props.\n * @param props.language the language object containing the language information.\n * @param props.children the children components to be wrapped.\n * @returns the wrapped components with localization settings applied.\n */\nexport const RsLocalizationWrapper = ({language, children}: FormViewerWrapperComponentProps) => {\n const theme = useBuilderTheme()\n const className = cx('rsuite', theme === 'dark' ? 'rs-theme-dark' : 'rs-theme-light')\n const locale = rSuiteLocales[language.fullCode] ?? defaultComponentsLocale\n return <CustomProvider rtl={language.bidi === BiDi.RTL} locale={locale} theme={theme}>\n <div className={className} style={containerStyle}>{children}</div>\n </CustomProvider>\n}\n"],"names":["patchPlaceholders","obj","key","value","locale","hiInLocale","genericDateTimeFormats","dfHI","genericCreatableComboBox","hiIN","srRsLocale","dfSR","srRS","rSuiteLocales","arEG","deDE","enUS","itIT","frFR","esES","zhCN","daDK","enGB","esAR","fiFI","huHU","kkKZ","koKR","nlNL","ptBR","svSE","trTR","zhTW","jaJP","defaultComponentsLocale","containerStyle","RsLocalizationWrapper","language","children","theme","useBuilderTheme","className","cx","jsx","CustomProvider","BiDi"],"mappings":"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"}
|
package/dist/menu.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as s } from "
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { define as f, array as d, oneOf as h, useComponentData as v } from "@react-form-builder/core";
|
|
3
3
|
import { useCallback as y } from "react";
|
|
4
4
|
import { Nav as i } from "rsuite";
|
|
5
5
|
import { n as b } from "./commonProperties-X-t50qaZ.js";
|
|
6
6
|
import { a as P } from "./categories-_98lyB3C.js";
|
|
7
|
-
import { I as m } from "./InputCell-
|
|
7
|
+
import { I as m } from "./InputCell-tTp9fZXd.js";
|
|
8
8
|
const g = (a) => a.map((t) => ({ title: t, href: `#${t}` })), w = /* @__PURE__ */ new Set([
|
|
9
9
|
"a",
|
|
10
10
|
"button",
|
package/dist/message.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { Definer } from '@react-form-builder/core';
|
|
2
|
-
import { ElementType } from 'react';
|
|
3
|
-
import { JSX } from 'react';
|
|
4
2
|
import { MessageProps } from 'rsuite';
|
|
5
|
-
import { Omit as Omit_2 } from 'rsuite/esm/internals/types/utils';
|
|
6
|
-
import { ReactNode } from 'react';
|
|
7
|
-
import { Theme } from '@emotion/react';
|
|
8
|
-
import { WithAsProps } from 'rsuite/esm/internals/types';
|
|
9
3
|
|
|
10
|
-
export declare const rsMessage: Definer<
|
|
11
|
-
children?: ReactNode | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
theme?: Theme;
|
|
14
|
-
}>;
|
|
4
|
+
export declare const rsMessage: Definer<MessageProps>;
|
|
15
5
|
|
|
16
6
|
export { }
|
package/dist/message.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { define as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
`, d = o(f, "RsMessage").name("Message").category(i).props({
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { define as r, node as e, oneOf as t, boolean as m } from "@react-form-builder/core";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { Message as c } from "rsuite";
|
|
5
|
+
import { a as f } from "./categories-_98lyB3C.js";
|
|
6
|
+
const i = "_message_z19oe_1", g = {
|
|
7
|
+
message: i
|
|
8
|
+
}, l = ({ className: s, ...o }) => /* @__PURE__ */ a(c, { ...o, className: n(g.message, s) }), b = r(l, "RsMessage").name("Message").category(f).props({
|
|
10
9
|
children: e,
|
|
11
|
-
closable:
|
|
10
|
+
closable: m.default(!1),
|
|
12
11
|
header: e,
|
|
13
|
-
type:
|
|
12
|
+
type: t("info", "success", "warning", "error").default("info").withEditorProps({ creatable: !1 })
|
|
14
13
|
});
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
b as rsMessage
|
|
17
16
|
};
|
|
18
17
|
//# sourceMappingURL=message.js.map
|
package/dist/message.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sources":["../src/components/RsMessage.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"message.js","sources":["../src/components/RsMessage.tsx"],"sourcesContent":["import {boolean, define, node, oneOf} from '@react-form-builder/core'\nimport cx from 'clsx'\nimport type {MessageProps} from 'rsuite'\nimport {Message} from 'rsuite'\nimport {staticCategory} from './categories'\nimport styles from './RsMessage.module.css'\n\nconst RsMessage = ({className, ...props}: MessageProps) => {\n return <Message {...props} className={cx(styles.message, className)}/>\n}\n\nexport const rsMessage = define(RsMessage, 'RsMessage')\n .name('Message')\n .category(staticCategory)\n .props({\n children: node,\n closable: boolean.default(false),\n header: node,\n type: oneOf('info', 'success', 'warning', 'error').default('info')\n .withEditorProps({creatable: false})\n })\n"],"names":["RsMessage","className","props","jsx","Message","cx","styles","rsMessage","define","staticCategory","node","boolean","oneOf"],"mappings":";;;;;;;GAOMA,IAAY,CAAC,EAAC,WAAAC,GAAW,GAAGC,QACzB,gBAAAC,EAACC,KAAS,GAAGF,GAAO,WAAWG,EAAGC,EAAO,SAASL,CAAS,GAAE,GAGzDM,IAAYC,EAAOR,GAAW,WAAW,EACnD,KAAK,SAAS,EACd,SAASS,CAAc,EACvB,MAAM;AAAA,EACL,UAAUC;AAAA,EACV,UAAUC,EAAQ,QAAQ,EAAK;AAAA,EAC/B,QAAQD;AAAA,EACR,MAAME,EAAM,QAAQ,WAAW,WAAW,OAAO,EAAE,QAAQ,MAAM,EAC9D,gBAAgB,EAAC,WAAW,IAAM;AACvC,CAAC;"}
|
package/dist/modal-layout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as s, jsx as o } from "
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { define as i, node as e, boolean as c } from "@react-form-builder/core";
|
|
3
3
|
import { Modal as m } from "rsuite";
|
|
4
4
|
import { m as u } from "./categories-_98lyB3C.js";
|
package/dist/modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as u } from "
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { oneOf as f, define as c, event as r, string as e, boolean as o } from "@react-form-builder/core";
|
|
3
3
|
import { useCallback as i } from "react";
|
|
4
4
|
import { Modal as p } from "rsuite";
|
package/dist/number-format.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as m } from "
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { define as f, string as o, array as p, number as h, oneOf as S, boolean as n, isString as b } from "@react-form-builder/core";
|
|
3
3
|
import { useCallback as g } from "react";
|
|
4
4
|
import { NumericFormat as N } from "react-number-format";
|
|
5
5
|
import { a as w, i as x } from "./commonProperties-X-t50qaZ.js";
|
|
6
6
|
import { f as y } from "./categories-_98lyB3C.js";
|
|
7
|
-
import { L as F } from "./Labeled-
|
|
8
|
-
import { W as D } from "./WrappedInput-
|
|
7
|
+
import { L as F } from "./Labeled-8k9VvM4G.js";
|
|
8
|
+
import { W as D } from "./WrappedInput-Cq5StStF.js";
|
|
9
9
|
function v(t) {
|
|
10
10
|
let { decimalSeparator: r = "." } = t, { thousandSeparator: a } = t;
|
|
11
11
|
return a === !0 && (a = ","), a === r && (console.warn(`
|
package/dist/pattern-format.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as m } from "
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { define as u, string as a, boolean as d } from "@react-form-builder/core";
|
|
3
3
|
import { useCallback as c } from "react";
|
|
4
4
|
import { PatternFormat as g } from "react-number-format";
|
|
5
5
|
import { i as h } from "./commonProperties-X-t50qaZ.js";
|
|
6
6
|
import { f as k } from "./categories-_98lyB3C.js";
|
|
7
|
-
import { L as F } from "./Labeled-
|
|
8
|
-
import { W as P } from "./WrappedInput-
|
|
7
|
+
import { L as F } from "./Labeled-8k9VvM4G.js";
|
|
8
|
+
import { W as P } from "./WrappedInput-Cq5StStF.js";
|
|
9
9
|
const b = ({ style: n, className: s, label: i, format: l, onChange: r, value: f, ...o }) => {
|
|
10
10
|
let { mask: t } = o;
|
|
11
11
|
t && (t === "string" ? t : t.toString()).match(/\d/g) && (console.warn(`Mask ${t} should not contain numeric character, mask value will be ignored`), t = void 0);
|
package/dist/placeholder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s } from "
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { define as t, boolean as o, number as r, size as c, oneOf as h } from "@react-form-builder/core";
|
|
3
3
|
import { Placeholder as l } from "rsuite";
|
|
4
4
|
import { a as i } from "./categories-_98lyB3C.js";
|
package/dist/radio-group.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as e } from "
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { define as u, string as a, event as p, array as n, toLabeledValues as m, boolean as c, disabled as b, oneOf as R } from "@react-form-builder/core";
|
|
3
3
|
import { RadioGroup as h, Radio as g } from "rsuite";
|
|
4
4
|
import { r as v } from "./commonProperties-X-t50qaZ.js";
|
|
5
5
|
import { f as G } from "./categories-_98lyB3C.js";
|
|
6
|
-
import { L as y } from "./Labeled-
|
|
6
|
+
import { L as y } from "./Labeled-8k9VvM4G.js";
|
|
7
7
|
const C = ({ items: o, label: l, value: d, className: i, ...t }) => /* @__PURE__ */ e(y, { label: l, className: i, passAriaToChildren: !0, children: /* @__PURE__ */ e(h, { ...t, value: d ?? "", children: o.map(({ value: r, label: f }, s) => /* @__PURE__ */ e(g, { value: r, children: f ?? r }, s)) }) }), w = u(C, "RsRadioGroup").name("Radio group").category(G).props({
|
|
8
8
|
name: a.default("RadioGroup"),
|
|
9
9
|
appearance: R("default", "picker").labeled("Default", "Picker").default("default").withEditorProps({ creatable: !1 }),
|