@react-form-builder/components-rsuite 7.8.0 → 7.9.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-BDyUJFGm.js +21 -0
- package/dist/{InputCell-f4236002.js.map → InputCell-BDyUJFGm.js.map} +1 -1
- package/dist/{Labeled-751c2353.js → Labeled-BWYRwMiY.js} +1 -1
- package/dist/{Labeled-751c2353.js.map → Labeled-BWYRwMiY.js.map} +1 -1
- package/dist/WrappedInput-BRkBjl0z.js +11 -0
- package/dist/{WrappedInput-bc5a6d33.js.map → WrappedInput-BRkBjl0z.js.map} +1 -1
- package/dist/autocomplete.d.ts +2 -2
- package/dist/autocomplete.js +12 -15
- package/dist/autocomplete.js.map +1 -1
- package/dist/breadcrumb.d.ts +2 -2
- package/dist/breadcrumb.js +31 -31
- package/dist/breadcrumb.js.map +1 -1
- package/dist/builder-view-with-css.js +5 -61
- package/dist/builder-view-with-css.js.map +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.js +7 -7
- package/dist/button.js.map +1 -1
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +9 -12
- package/dist/calendar.js.map +1 -1
- package/dist/card.d.ts +1 -1
- package/dist/card.js +10 -10
- package/dist/card.js.map +1 -1
- package/dist/{categories-7064b279.js → categories-_98lyB3C.js} +3 -3
- package/dist/{categories-7064b279.js.map → categories-_98lyB3C.js.map} +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.js +19 -23
- package/dist/checkbox.js.map +1 -1
- package/dist/{commonProperties-d849cd5b.js → commonProperties-ETOgvhCH.js} +7 -7
- package/dist/{commonProperties-d849cd5b.js.map → commonProperties-ETOgvhCH.js.map} +1 -1
- package/dist/components-descriptions.d.ts +2 -2
- package/dist/components-descriptions.js +1 -1
- package/dist/container.js +4 -4
- package/dist/container.js.map +1 -1
- package/dist/css-loader.js +3 -3
- package/dist/css-loader.js.map +1 -1
- package/dist/date-picker.d.ts +1 -1
- package/dist/date-picker.js +25 -29
- package/dist/date-picker.js.map +1 -1
- package/dist/dateTimeUtils-C2AEniv5.js +25 -0
- package/dist/{dateTimeUtils-b07ce438.js.map → dateTimeUtils-C2AEniv5.js.map} +1 -1
- package/dist/definitions.js +2 -55
- package/dist/definitions.js.map +1 -1
- package/dist/divider.js +6 -6
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.d.ts +3 -3
- package/dist/dropdown.js +10 -11
- package/dist/dropdown.js.map +1 -1
- package/dist/error-message.d.ts +1 -1
- package/dist/error-message.js +2 -2
- package/dist/error-message.js.map +1 -1
- package/dist/{formengine-rsuite-cbc1d3ae.js → formengine-rsuite.css-DkGUHOws.js} +1 -1
- package/dist/formengine-rsuite.css-DkGUHOws.js.map +1 -0
- package/dist/header.d.ts +6 -6
- package/dist/header.js +2 -2
- package/dist/header.js.map +1 -1
- package/dist/hooks-DMVtrI-b.js +50 -0
- package/dist/hooks-DMVtrI-b.js.map +1 -0
- package/dist/image.d.ts +1 -1
- package/dist/image.js +8 -8
- package/dist/image.js.map +1 -1
- package/dist/index.d.ts +1526 -36
- package/dist/index.js +95 -116
- package/dist/index.js.map +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.js +11 -13
- package/dist/input.js.map +1 -1
- package/dist/label.js +2 -2
- package/dist/label.js.map +1 -1
- package/dist/link.d.ts +1 -1
- package/dist/link.js +7 -7
- package/dist/link.js.map +1 -1
- package/dist/localization-wrapper.d.ts +1 -1
- package/dist/localization-wrapper.js +52 -185
- package/dist/localization-wrapper.js.map +1 -1
- package/dist/menu.d.ts +2 -2
- package/dist/menu.js +20 -21
- package/dist/menu.js.map +1 -1
- package/dist/message.d.ts +2 -2
- package/dist/message.js +4 -4
- package/dist/modal-layout.d.ts +1 -1
- package/dist/modal-layout.js +2 -2
- package/dist/modal-layout.js.map +1 -1
- package/dist/modal.d.ts +1 -1
- package/dist/modal.js +13 -13
- package/dist/modal.js.map +1 -1
- package/dist/models.js +2 -56
- package/dist/models.js.map +1 -1
- package/dist/number-format.d.ts +2 -2
- package/dist/number-format.js +22 -25
- package/dist/number-format.js.map +1 -1
- package/dist/pattern-format.d.ts +2 -2
- package/dist/pattern-format.js +22 -25
- package/dist/pattern-format.js.map +1 -1
- package/dist/placeholder.js +3 -3
- package/dist/placeholder.js.map +1 -1
- package/dist/progress.js +6 -6
- package/dist/progress.js.map +1 -1
- package/dist/r-suite-components.d.ts +1 -1
- package/dist/r-suite-components.js +5 -22
- package/dist/r-suite-components.js.map +1 -1
- package/dist/rSuiteComponentsDescriptions-lX1mwx9_.js +67 -0
- package/dist/rSuiteComponentsDescriptions-lX1mwx9_.js.map +1 -0
- package/dist/radio-group.d.ts +1 -1
- package/dist/radio-group.js +10 -13
- package/dist/radio-group.js.map +1 -1
- package/dist/{rsuite-no-reset-rtl.min-af106e5c.js → rsuite-no-reset-rtl.min.css-B0vQWI16.js} +1 -1
- package/dist/rsuite-no-reset-rtl.min.css-B0vQWI16.js.map +1 -0
- package/dist/{rsuite-no-reset.min-3caeeea0.js → rsuite-no-reset.min.css-bW1P11UK.js} +1 -1
- package/dist/rsuite-no-reset.min.css-bW1P11UK.js.map +1 -0
- package/dist/search.d.ts +3 -3
- package/dist/search.js +33 -38
- package/dist/search.js.map +1 -1
- package/dist/static-content.js +4 -4
- package/dist/static-content.js.map +1 -1
- package/dist/stats.html +4 -0
- package/dist/tab.d.ts +2 -2
- package/dist/tab.js +29 -33
- package/dist/tab.js.map +1 -1
- package/dist/tag-picker.d.ts +1 -1
- package/dist/tag-picker.js +28 -31
- package/dist/tag-picker.js.map +1 -1
- package/dist/text-area.d.ts +1 -1
- package/dist/text-area.js +10 -13
- package/dist/text-area.js.map +1 -1
- package/dist/time-picker.d.ts +2 -2
- package/dist/time-picker.js +39 -41
- package/dist/time-picker.js.map +1 -1
- package/dist/toggle.d.ts +2 -2
- package/dist/toggle.js +17 -20
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.js +6 -6
- package/dist/tooltip.js.map +1 -1
- package/dist/uploader.d.ts +1 -1
- package/dist/uploader.js +30 -33
- package/dist/uploader.js.map +1 -1
- package/dist/useTouchOnEvent-BPYbKiku.js +12 -0
- package/dist/{useTouchOnEvent-2be3c60d.js.map → useTouchOnEvent-BPYbKiku.js.map} +1 -1
- package/dist/view-with-css.js +5 -62
- package/dist/view-with-css.js.map +1 -1
- package/dist/view.js +3 -57
- package/dist/view.js.map +1 -1
- package/dist/wizard.d.ts +4 -6
- package/dist/wizard.js +145 -162
- package/dist/wizard.js.map +1 -1
- package/package.json +6 -3
- package/dist/InputCell-f4236002.js +0 -21
- package/dist/WrappedInput-bc5a6d33.js +0 -11
- package/dist/dateTimeUtils-b07ce438.js +0 -26
- package/dist/formengine-rsuite-cbc1d3ae.js.map +0 -1
- package/dist/hooks-ff273a8a.js +0 -53
- package/dist/hooks-ff273a8a.js.map +0 -1
- package/dist/rSuiteComponentsDescriptions-d616cdc1.js +0 -17911
- package/dist/rSuiteComponentsDescriptions-d616cdc1.js.map +0 -1
- package/dist/rsuite-no-reset-rtl.min-af106e5c.js.map +0 -1
- package/dist/rsuite-no-reset.min-3caeeea0.js.map +0 -1
- package/dist/useTouchOnEvent-2be3c60d.js +0 -12
|
@@ -1,97 +1,31 @@
|
|
|
1
1
|
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import L from "
|
|
5
|
-
import E from "date-fns/locale/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
createOption: 'विकल्प बनाएं "{{0}}"',
|
|
13
|
-
newItem: "नया आइटम"
|
|
14
|
-
}, v = {
|
|
15
|
-
friday: "Fr",
|
|
16
|
-
hours: "घंटे",
|
|
17
|
-
minutes: "मिनट",
|
|
18
|
-
monday: "मो",
|
|
19
|
-
now: "अब",
|
|
20
|
-
ok: "ठीक है।",
|
|
21
|
-
saturday: "एसए",
|
|
22
|
-
seconds: "सेकंड",
|
|
23
|
-
sunday: "एसयू",
|
|
24
|
-
thursday: "वें",
|
|
25
|
-
today: "आज",
|
|
26
|
-
tuesday: "टीयू",
|
|
27
|
-
wednesday: "हम",
|
|
28
|
-
yesterday: "कल"
|
|
29
|
-
}, w = {
|
|
30
|
-
default: {
|
|
31
|
-
Breadcrumb: {
|
|
32
|
-
expandText: "पथ दिखाएँ"
|
|
33
|
-
},
|
|
34
|
-
CloseButton: {
|
|
35
|
-
closeLabel: "बंद करें"
|
|
36
|
-
},
|
|
37
|
-
DateRangePicker: {
|
|
38
|
-
last7Days: "पिछले 7 दिन"
|
|
39
|
-
},
|
|
40
|
-
Pagination: {
|
|
41
|
-
first: "पहले",
|
|
42
|
-
last: "अंतिम",
|
|
43
|
-
limit: "{{0}} / पृष्ठ",
|
|
44
|
-
more: "अधिक",
|
|
45
|
-
next: "अगले",
|
|
46
|
-
prev: "पिछला",
|
|
47
|
-
skip: "के लिए जाओ{{0}}",
|
|
48
|
-
total: "कुल पंक्तियाँ: {{0}}"
|
|
49
|
-
},
|
|
50
|
-
Plaintext: {
|
|
51
|
-
notSelected: "चयनित नहीं",
|
|
52
|
-
notUploaded: "अपलोड नहीं किया गया",
|
|
53
|
-
unfilled: "अधूरा"
|
|
54
|
-
},
|
|
55
|
-
Toggle: {
|
|
56
|
-
off: "बंद करें",
|
|
57
|
-
on: "खुला हुआ"
|
|
58
|
-
},
|
|
59
|
-
Uploader: {
|
|
60
|
-
complete: "समाप्त हो गया",
|
|
61
|
-
emptyFile: "खाली",
|
|
62
|
-
error: "त्रुटि",
|
|
63
|
-
inited: "प्रारंभिक",
|
|
64
|
-
progress: "अपलोडिंग",
|
|
65
|
-
removeFile: "फ़ाइल निकालें",
|
|
66
|
-
upload: "अपलोड करें"
|
|
67
|
-
},
|
|
68
|
-
common: {
|
|
69
|
-
clear: "साफ़ करें",
|
|
70
|
-
emptyMessage: "कोई डेटा नहीं मिला",
|
|
71
|
-
loading: "लोड हो रहा है । ..",
|
|
72
|
-
remove: "निकालें"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
genericCombobox: $,
|
|
76
|
-
genericCreatableComboBox: N,
|
|
77
|
-
genericDateTimeFormats: v
|
|
2
|
+
import { BiDi as u } from "@react-form-builder/core";
|
|
3
|
+
import { CustomProvider as g } from "rsuite";
|
|
4
|
+
import { jaJP as y, zhTW as f, trTR as p, svSE as b, ptBR as C, nlNL as h, koKR as P, kkKZ as x, huHU as T, fiFI as D, esAR as B, enGB as R, daDK as k, zhCN as F, esES as M, frFR as I, itIT as S, enUS as m, deDE as L, arEG as U } from "rsuite/esm/locales/index.js";
|
|
5
|
+
import E from "date-fns/locale/hi/index.js";
|
|
6
|
+
import $ from "date-fns/locale/sr/index.js";
|
|
7
|
+
const N = { checkAll: "सब कुछ", noResultsText: "कोई परिणाम नहीं मिला", placeholder: "का चयन करें", searchPlaceholder: "खोज" }, v = { createOption: 'विकल्प बनाएं "{{0}}"', newItem: "नया आइटम" }, w = { friday: "Fr", hours: "घंटे", minutes: "मिनट", monday: "मो", now: "अब", ok: "ठीक है।", saturday: "एसए", seconds: "सेकंड", sunday: "एसयू", thursday: "वें", today: "आज", tuesday: "टीयू", wednesday: "हम", yesterday: "कल" }, K = {
|
|
8
|
+
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: N,
|
|
10
|
+
genericCreatableComboBox: v,
|
|
11
|
+
genericDateTimeFormats: w
|
|
78
12
|
};
|
|
79
13
|
function a(t) {
|
|
80
|
-
return Object.entries(t).forEach(([
|
|
81
|
-
typeof r == "string" && (t[
|
|
14
|
+
return Object.entries(t).forEach(([l, r]) => {
|
|
15
|
+
typeof r == "string" && (t[l] = r.replaceAll("{{0}}", "{0}")), typeof r == "object" && a(r);
|
|
82
16
|
}), t;
|
|
83
17
|
}
|
|
84
|
-
const e = a(
|
|
18
|
+
const e = a(K), n = {
|
|
85
19
|
...e.genericDateTimeFormats,
|
|
86
20
|
formattedMonthPattern: "MMM, yyyy",
|
|
87
21
|
formattedDayPattern: "MMM dd, yyyy",
|
|
88
22
|
shortDateFormat: "dd/MM/yyyy",
|
|
89
23
|
shortTimeFormat: "h:mm a",
|
|
90
|
-
dateLocale:
|
|
24
|
+
dateLocale: E
|
|
91
25
|
}, c = {
|
|
92
26
|
...e.genericCombobox,
|
|
93
27
|
...e.genericCreatableComboBox
|
|
94
|
-
},
|
|
28
|
+
}, z = a({
|
|
95
29
|
code: "hi-IN",
|
|
96
30
|
common: e.default.common,
|
|
97
31
|
Plaintext: e.default.Plaintext,
|
|
@@ -112,98 +46,31 @@ const e = a(w), n = {
|
|
|
112
46
|
CloseButton: e.default.CloseButton,
|
|
113
47
|
Breadcrumb: e.default.Breadcrumb,
|
|
114
48
|
Toggle: e.default.Toggle
|
|
115
|
-
}),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
createOption: 'Креирајте опцију "{{0}}"',
|
|
122
|
-
newItem: "Нова ставка"
|
|
123
|
-
}, G = {
|
|
124
|
-
friday: "Фр",
|
|
125
|
-
hours: "Сати",
|
|
126
|
-
minutes: "Минута",
|
|
127
|
-
monday: "Mo",
|
|
128
|
-
now: "Сада",
|
|
129
|
-
ok: "ОК",
|
|
130
|
-
saturday: "Са",
|
|
131
|
-
seconds: "Секунди",
|
|
132
|
-
sunday: "Су",
|
|
133
|
-
thursday: "Th",
|
|
134
|
-
today: "Данас",
|
|
135
|
-
tuesday: "Tu",
|
|
136
|
-
wednesday: "Ми",
|
|
137
|
-
yesterday: "Јуче"
|
|
138
|
-
}, j = {
|
|
139
|
-
default: {
|
|
140
|
-
Breadcrumb: {
|
|
141
|
-
expandText: "Прикажи пут"
|
|
142
|
-
},
|
|
143
|
-
CloseButton: {
|
|
144
|
-
closeLabel: "Затвори"
|
|
145
|
-
},
|
|
146
|
-
DateRangePicker: {
|
|
147
|
-
last7Days: "Последњих 7 дана"
|
|
148
|
-
},
|
|
149
|
-
Pagination: {
|
|
150
|
-
first: "Први",
|
|
151
|
-
last: "Последњи",
|
|
152
|
-
limit: "{{0}} / страна",
|
|
153
|
-
more: "Више",
|
|
154
|
-
next: "Следећи",
|
|
155
|
-
prev: "Претходни",
|
|
156
|
-
skip: "Иди на{{0}}",
|
|
157
|
-
total: "Укупан број редова:{{0}}"
|
|
158
|
-
},
|
|
159
|
-
Plaintext: {
|
|
160
|
-
notSelected: "Није изабран",
|
|
161
|
-
notUploaded: "Није учитан",
|
|
162
|
-
unfilled: "Неиспуњен"
|
|
163
|
-
},
|
|
164
|
-
Toggle: {
|
|
165
|
-
off: "Затвори",
|
|
166
|
-
on: "Отвори"
|
|
167
|
-
},
|
|
168
|
-
Uploader: {
|
|
169
|
-
complete: "Завршен",
|
|
170
|
-
emptyFile: "Празно",
|
|
171
|
-
error: "Грешка",
|
|
172
|
-
inited: "Оригинални",
|
|
173
|
-
progress: "Преузимање",
|
|
174
|
-
removeFile: "Избришите датотеку",
|
|
175
|
-
upload: "Преузимање"
|
|
176
|
-
},
|
|
177
|
-
common: {
|
|
178
|
-
clear: "Јасно",
|
|
179
|
-
emptyMessage: "Подаци нису пронађени",
|
|
180
|
-
loading: "Преузимање...",
|
|
181
|
-
remove: "Избриши"
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
genericCombobox: z,
|
|
185
|
-
genericCreatableComboBox: A,
|
|
186
|
-
genericDateTimeFormats: G
|
|
187
|
-
}, o = a(j), l = {
|
|
49
|
+
}), A = { checkAll: "Све", noResultsText: "Нису пронађени резултати", placeholder: "Изаберите", searchPlaceholder: "Претрага" }, G = { createOption: 'Креирајте опцију "{{0}}"', newItem: "Нова ставка" }, j = { friday: "Фр", hours: "Сати", minutes: "Минута", monday: "Mo", now: "Сада", ok: "ОК", saturday: "Са", seconds: "Секунди", sunday: "Су", thursday: "Th", today: "Данас", tuesday: "Tu", wednesday: "Ми", yesterday: "Јуче" }, H = {
|
|
50
|
+
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: A,
|
|
52
|
+
genericCreatableComboBox: G,
|
|
53
|
+
genericDateTimeFormats: j
|
|
54
|
+
}, o = a(H), i = {
|
|
188
55
|
...o.genericDateTimeFormats,
|
|
189
56
|
formattedMonthPattern: "MMM, yyyy",
|
|
190
57
|
formattedDayPattern: "MMM dd, yyyy",
|
|
191
58
|
shortDateFormat: "MM/dd/yyyy",
|
|
192
59
|
shortTimeFormat: "hh:mm aa",
|
|
193
|
-
dateLocale:
|
|
60
|
+
dateLocale: $
|
|
194
61
|
}, s = {
|
|
195
62
|
...o.genericCombobox,
|
|
196
63
|
...o.genericCreatableComboBox
|
|
197
|
-
},
|
|
64
|
+
}, O = a({
|
|
198
65
|
code: "sr-RS",
|
|
199
66
|
common: o.default.common,
|
|
200
67
|
Plaintext: o.default.Plaintext,
|
|
201
68
|
Pagination: o.default.Pagination,
|
|
202
|
-
DateTimeFormats:
|
|
203
|
-
Calendar:
|
|
204
|
-
DatePicker:
|
|
69
|
+
DateTimeFormats: i,
|
|
70
|
+
Calendar: i,
|
|
71
|
+
DatePicker: i,
|
|
205
72
|
DateRangePicker: {
|
|
206
|
-
...
|
|
73
|
+
...i,
|
|
207
74
|
...o.default.DateRangePicker
|
|
208
75
|
},
|
|
209
76
|
Combobox: {
|
|
@@ -215,32 +82,32 @@ const e = a(w), n = {
|
|
|
215
82
|
CloseButton: o.default.CloseButton,
|
|
216
83
|
Breadcrumb: o.default.Breadcrumb,
|
|
217
84
|
Toggle: o.default.Toggle
|
|
218
|
-
}),
|
|
219
|
-
"ar-EG":
|
|
220
|
-
"de-DE":
|
|
85
|
+
}), W = {
|
|
86
|
+
"ar-EG": U,
|
|
87
|
+
"de-DE": L,
|
|
221
88
|
"en-US": m,
|
|
222
|
-
"it-IT":
|
|
223
|
-
"fr-FR":
|
|
224
|
-
"es-ES":
|
|
225
|
-
"zh-CN":
|
|
226
|
-
"da-DK":
|
|
227
|
-
"en-GB":
|
|
228
|
-
"es-AR":
|
|
229
|
-
"fi-FI":
|
|
230
|
-
"hi-IN":
|
|
231
|
-
"hu-HU":
|
|
232
|
-
"kk-KZ":
|
|
233
|
-
"ko-KR":
|
|
234
|
-
"nl-NL":
|
|
235
|
-
"pt-BR":
|
|
236
|
-
"sr-RS":
|
|
237
|
-
"sv-SE":
|
|
238
|
-
"tr-TR":
|
|
239
|
-
"zh-TW":
|
|
240
|
-
"ja-JP":
|
|
241
|
-
},
|
|
89
|
+
"it-IT": S,
|
|
90
|
+
"fr-FR": I,
|
|
91
|
+
"es-ES": M,
|
|
92
|
+
"zh-CN": F,
|
|
93
|
+
"da-DK": k,
|
|
94
|
+
"en-GB": R,
|
|
95
|
+
"es-AR": B,
|
|
96
|
+
"fi-FI": D,
|
|
97
|
+
"hi-IN": z,
|
|
98
|
+
"hu-HU": T,
|
|
99
|
+
"kk-KZ": x,
|
|
100
|
+
"ko-KR": P,
|
|
101
|
+
"nl-NL": h,
|
|
102
|
+
"pt-BR": C,
|
|
103
|
+
"sr-RS": O,
|
|
104
|
+
"sv-SE": b,
|
|
105
|
+
"tr-TR": p,
|
|
106
|
+
"zh-TW": f,
|
|
107
|
+
"ja-JP": y
|
|
108
|
+
}, J = m, _ = ({ language: t, children: l }) => /* @__PURE__ */ d(g, { rtl: t.bidi === u.RTL, locale: W[t.fullCode] ?? J, children: l });
|
|
242
109
|
export {
|
|
243
|
-
|
|
244
|
-
|
|
110
|
+
_ as RsLocalizationWrapper,
|
|
111
|
+
J as defaultComponentsLocale
|
|
245
112
|
};
|
|
246
113
|
//# 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 {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\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 return <CustomProvider rtl={language.bidi ===
|
|
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} 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\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 return <CustomProvider rtl={language.bidi === BiDi.RTL} locale={rSuiteLocales[language.fullCode] ?? defaultComponentsLocale}>\n {children}\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","RsLocalizationWrapper","language","children","jsx","CustomProvider","BiDi"],"mappings":";;;;;;;;;;;;AAKO,SAASA,EAAkBC,GAAU;AAC1C,gBAAO,QAAQA,CAAG,EAAE,QAAQ,CAAC,CAACC,GAAKC,CAAK,MAAM;AAC5C,IAAI,OAAOA,KAAU,aACnBF,EAAIC,CAAG,IAAIC,EAAM,WAAW,SAAS,KAAK,IAExC,OAAOA,KAAU,YACnBH,EAAkBG,CAAK;AAAA,EAE3B,CAAC,GACMF;AACT;ACXA,MAAMG,IAASJ,EAAkBK,CAAU,GAErCC,IAAyB;AAAA,EAC7B,GAAGF,EAAO;AAAA,EACV,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,YAAYG;AACd,GAEMC,IAA2B;AAAA,EAC/B,GAAGJ,EAAO;AAAA,EACV,GAAGA,EAAO;AACZ,GAEaK,IAAOT,EAAkB;AAAA,EACpC,MAAM;AAAA,EACN,QAAQI,EAAO,QAAQ;AAAA,EACvB,WAAWA,EAAO,QAAQ;AAAA,EAC1B,YAAYA,EAAO,QAAQ;AAAA,EAC3B,iBAAiBE;AAAAA,EACjB,UAAUA;AAAAA,EACV,YAAYA;AAAAA,EACZ,iBAAiB;AAAA,IACf,GAAGA;AAAAA,IACH,GAAGF,EAAO,QAAQ;AAAA,EAAA;AAAA,EAEpB,UAAU;AAAA,IACR,GAAGA,EAAO;AAAA,EAAA;AAAA,EAEZ,aAAaI;AAAAA,EACb,WAAWA;AAAAA,EACX,UAAUJ,EAAO,QAAQ;AAAA,EACzB,aAAaA,EAAO,QAAQ;AAAA,EAC5B,YAAYA,EAAO,QAAQ;AAAA,EAC3B,QAAQA,EAAO,QAAQ;AACzB,CAAC;;;;;GCrCKA,IAASJ,EAAkBU,CAAU,GAErCJ,IAAyB;AAAA,EAC7B,GAAGF,EAAO;AAAA,EACV,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,YAAYO;AACd,GAEMH,IAA2B;AAAA,EAC/B,GAAGJ,EAAO;AAAA,EACV,GAAGA,EAAO;AACZ,GAEaQ,IAAOZ,EAAkB;AAAA,EACpC,MAAM;AAAA,EACN,QAAQI,EAAO,QAAQ;AAAA,EACvB,WAAWA,EAAO,QAAQ;AAAA,EAC1B,YAAYA,EAAO,QAAQ;AAAA,EAC3B,iBAAiBE;AAAA,EACjB,UAAUA;AAAA,EACV,YAAYA;AAAA,EACZ,iBAAiB;AAAA,IACf,GAAGA;AAAA,IACH,GAAGF,EAAO,QAAQ;AAAA,EAAA;AAAA,EAEpB,UAAU;AAAA,IACR,GAAGA,EAAO;AAAA,EAAA;AAAA,EAEZ,aAAaI;AAAA,EACb,WAAWA;AAAA,EACX,UAAUJ,EAAO,QAAQ;AAAA,EACzB,aAAaA,EAAO,QAAQ;AAAA,EAC5B,YAAYA,EAAO,QAAQ;AAAA,EAC3B,QAAQA,EAAO,QAAQ;AACzB,CAAC,GCbKS,IAAqC;AAAA,EACzC,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASf;AAAA,EACT,SAASgB;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASjB;AAAA,EACT,SAASkB;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AAAA,EACT,SAASC;AACX,GAEaC,IAA0BlB,GAS1BmB,IAAwB,CAAC,EAAC,UAAAC,GAAU,UAAAC,QACxC,gBAAAC,EAACC,GAAA,EAAe,KAAKH,EAAS,SAASI,EAAK,KAAK,QAAQ3B,EAAcuB,EAAS,QAAQ,KAAKF,GACjG,UAAAG,GACH;"}
|
package/dist/menu.d.ts
CHANGED
package/dist/menu.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { define as f,
|
|
1
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
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
|
-
import { n as b } from "./commonProperties-
|
|
6
|
-
import {
|
|
7
|
-
import { I as
|
|
8
|
-
|
|
9
|
-
const g = (t) => t.map((e) => ({ title: e, href: `#${e}` })), w = /* @__PURE__ */ new Set([
|
|
5
|
+
import { n as b } from "./commonProperties-ETOgvhCH.js";
|
|
6
|
+
import { a as P } from "./categories-_98lyB3C.js";
|
|
7
|
+
import { I as m } from "./InputCell-BDyUJFGm.js";
|
|
8
|
+
const g = (a) => a.map((t) => ({ title: t, href: `#${t}` })), w = /* @__PURE__ */ new Set([
|
|
10
9
|
"a",
|
|
11
10
|
"button",
|
|
12
11
|
"div",
|
|
@@ -30,21 +29,21 @@ const g = (t) => t.map((e) => ({ title: e, href: `#${e}` })), w = /* @__PURE__ *
|
|
|
30
29
|
"article",
|
|
31
30
|
"nav",
|
|
32
31
|
"pre"
|
|
33
|
-
]), C = ({ onSelect:
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
{ name: "title", input:
|
|
40
|
-
{ name: "href", title: "Url", input:
|
|
41
|
-
], { activeKey:
|
|
42
|
-
activeKey:
|
|
43
|
-
...
|
|
44
|
-
itemsAs:
|
|
45
|
-
items:
|
|
32
|
+
]), C = ({ onSelect: a, items: t, itemsAs: p, ...r }) => {
|
|
33
|
+
const o = v(), l = y((e, n) => {
|
|
34
|
+
o.userDefinedProps ??= {}, o.userDefinedProps.activeKey = e, a?.(e, n);
|
|
35
|
+
}, [o, a]);
|
|
36
|
+
return t?.length ? /* @__PURE__ */ s(i, { onSelect: l, ...r, children: t.map(({ title: e, href: n }, u) => /* @__PURE__ */ s(i.Item, { href: n, as: p, eventKey: e, active: e === r.activeKey, children: e }, u)) }) : null;
|
|
37
|
+
}, D = [
|
|
38
|
+
{ name: "title", input: m },
|
|
39
|
+
{ name: "href", title: "Url", input: m }
|
|
40
|
+
], { activeKey: I, ...K } = b, c = [...w], S = f(C, "RsMenu").name("Menu").category(P).props({
|
|
41
|
+
activeKey: I.default("Home"),
|
|
42
|
+
...K,
|
|
43
|
+
itemsAs: h(...c).labeled(...c).default("a").withEditorProps({ creatable: !1 }),
|
|
44
|
+
items: d.default(g(["Home", "News", "Products"])).withEditorProps({ columns: D })
|
|
46
45
|
});
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
S as rsMenu
|
|
49
48
|
};
|
|
50
49
|
//# sourceMappingURL=menu.js.map
|
package/dist/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sources":["../src/components/RsMenu.tsx"],"sourcesContent":["import {array, define, oneOf, useComponentData} from '@react-form-builder/core'\nimport type {ElementType, SyntheticEvent} from 'react'\nimport {useCallback} from 'react'\nimport type {NavProps} from 'rsuite'\nimport {Nav} from 'rsuite'\nimport {navProps} from '../commonProperties'\nimport {staticCategory} from './categories'\nimport {InputCell} from './internal/InputCell'\n\n/**\n * Menu item for RsMenu component.\n */\nexport type MenuItem = {\n /**\n * The href for the menu item.\n */\n href?: string\n /**\n * The title for the menu item.\n */\n title?: string\n}\n\nconst makeItems = (data: string[]) => data.map(title => ({title, href: `#${title}`}))\n\nconst suitableReactElementTypes = new Set([\n 'a',\n 'button',\n 'div',\n 'span',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'p',\n 'b',\n 'em',\n 'i',\n 'q',\n 's',\n 'u',\n 'input',\n 'label',\n 'section',\n 'article',\n 'nav',\n 'pre'\n])\n\n/**\n * Props for the RsMenu component.\n */\nexport interface RsMenuProps extends NavProps {\n /**\n * The items for the menu.\n */\n items?: MenuItem[],\n /**\n * The element type for menu items.\n */\n itemsAs: ElementType\n}\n\n/**\n * Menu component with navigation support.\n * @param props the component props.\n * @param props.onSelect the callback when menu item is selected.\n * @param props.items the items for the menu.\n * @param props.itemsAs the element type for menu items.\n * @param props.props the additional menu props.\n * @returns the React element.\n */\nconst RsMenu = ({onSelect, items, itemsAs, ...props}: RsMenuProps) => {\n const componentData = useComponentData()\n\n const onNavSelect: NavProps['onSelect'] = useCallback((eventKey: any, event: SyntheticEvent) => {\n componentData.userDefinedProps ??= {}\n componentData.userDefinedProps.activeKey = eventKey\n onSelect?.(eventKey, event)\n }, [componentData, onSelect])\n\n if (!items?.length) return null\n\n return <Nav onSelect={onNavSelect} {...props}>\n {items.map(({title, href}, index) =>\n <Nav.Item key={index} href={href} as={itemsAs} eventKey={title} active={title === props.activeKey}>\n {title}\n </Nav.Item>)\n }\n </Nav>\n}\n\nconst columns = [\n {name: 'title', input: InputCell},\n {name: 'href', title: 'Url', input: InputCell}\n] as const\n\nconst {activeKey, ...props} = navProps\n\nconst tags = [...suitableReactElementTypes]\n\nexport const rsMenu = define(RsMenu, 'RsMenu')\n .name('Menu')\n .category(staticCategory)\n .props({\n activeKey: activeKey.default('Home'),\n ...props,\n itemsAs: oneOf(...tags)\n .labeled(...tags)\n .default('a')\n .withEditorProps({creatable: false}),\n items: array\n .default(makeItems(['Home', 'News', 'Products']))\n .withEditorProps({columns}),\n })\n"],"names":["makeItems","data","title","suitableReactElementTypes","RsMenu","onSelect","items","itemsAs","props","componentData","useComponentData","onNavSelect","useCallback","eventKey","event","jsx","Nav","href","index","columns","InputCell","activeKey","navProps","tags","rsMenu","define","staticCategory","oneOf","array"],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu.js","sources":["../src/components/RsMenu.tsx"],"sourcesContent":["import {array, define, oneOf, useComponentData} from '@react-form-builder/core'\nimport type {ElementType, SyntheticEvent} from 'react'\nimport {useCallback} from 'react'\nimport type {NavProps} from 'rsuite'\nimport {Nav} from 'rsuite'\nimport {navProps} from '../commonProperties'\nimport {staticCategory} from './categories'\nimport {InputCell} from './internal/InputCell'\n\n/**\n * Menu item for RsMenu component.\n */\nexport type MenuItem = {\n /**\n * The href for the menu item.\n */\n href?: string\n /**\n * The title for the menu item.\n */\n title?: string\n}\n\nconst makeItems = (data: string[]) => data.map(title => ({title, href: `#${title}`}))\n\nconst suitableReactElementTypes = new Set([\n 'a',\n 'button',\n 'div',\n 'span',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'p',\n 'b',\n 'em',\n 'i',\n 'q',\n 's',\n 'u',\n 'input',\n 'label',\n 'section',\n 'article',\n 'nav',\n 'pre'\n])\n\n/**\n * Props for the RsMenu component.\n */\nexport interface RsMenuProps extends NavProps {\n /**\n * The items for the menu.\n */\n items?: MenuItem[],\n /**\n * The element type for menu items.\n */\n itemsAs: ElementType\n}\n\n/**\n * Menu component with navigation support.\n * @param props the component props.\n * @param props.onSelect the callback when menu item is selected.\n * @param props.items the items for the menu.\n * @param props.itemsAs the element type for menu items.\n * @param props.props the additional menu props.\n * @returns the React element.\n */\nconst RsMenu = ({onSelect, items, itemsAs, ...props}: RsMenuProps) => {\n const componentData = useComponentData()\n\n const onNavSelect: NavProps['onSelect'] = useCallback((eventKey: any, event: SyntheticEvent) => {\n componentData.userDefinedProps ??= {}\n componentData.userDefinedProps.activeKey = eventKey\n onSelect?.(eventKey, event)\n }, [componentData, onSelect])\n\n if (!items?.length) return null\n\n return <Nav onSelect={onNavSelect} {...props}>\n {items.map(({title, href}, index) =>\n <Nav.Item key={index} href={href} as={itemsAs} eventKey={title} active={title === props.activeKey}>\n {title}\n </Nav.Item>)\n }\n </Nav>\n}\n\nconst columns = [\n {name: 'title', input: InputCell},\n {name: 'href', title: 'Url', input: InputCell}\n] as const\n\nconst {activeKey, ...props} = navProps\n\nconst tags = [...suitableReactElementTypes]\n\nexport const rsMenu = define(RsMenu, 'RsMenu')\n .name('Menu')\n .category(staticCategory)\n .props({\n activeKey: activeKey.default('Home'),\n ...props,\n itemsAs: oneOf(...tags)\n .labeled(...tags)\n .default('a')\n .withEditorProps({creatable: false}),\n items: array\n .default(makeItems(['Home', 'News', 'Products']))\n .withEditorProps({columns}),\n })\n"],"names":["makeItems","data","title","suitableReactElementTypes","RsMenu","onSelect","items","itemsAs","props","componentData","useComponentData","onNavSelect","useCallback","eventKey","event","jsx","Nav","href","index","columns","InputCell","activeKey","navProps","tags","rsMenu","define","staticCategory","oneOf","array"],"mappings":";;;;;;;AAuBA,MAAMA,IAAY,CAACC,MAAmBA,EAAK,IAAI,CAAAC,OAAU,EAAC,OAAAA,GAAO,MAAM,IAAIA,CAAK,GAAA,EAAI,GAE9EC,wBAAgC,IAAI;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAyBKC,IAAS,CAAC,EAAC,UAAAC,GAAU,OAAAC,GAAO,SAAAC,GAAS,GAAGC,QAAwB;AACpE,QAAMC,IAAgBC,EAAA,GAEhBC,IAAoCC,EAAY,CAACC,GAAeC,MAA0B;AAC9F,IAAAL,EAAc,qBAAqB,CAAA,GACnCA,EAAc,iBAAiB,YAAYI,GAC3CR,IAAWQ,GAAUC,CAAK;AAAA,EAC5B,GAAG,CAACL,GAAeJ,CAAQ,CAAC;AAE5B,SAAKC,GAAO,SAEL,gBAAAS,EAACC,GAAA,EAAI,UAAUL,GAAc,GAAGH,GACpC,UAAAF,EAAM,IAAI,CAAC,EAAC,OAAAJ,GAAO,MAAAe,EAAA,GAAOC,MACzB,gBAAAH,EAACC,EAAI,MAAJ,EAAqB,MAAAC,GAAY,IAAIV,GAAS,UAAUL,GAAO,QAAQA,MAAUM,EAAM,WACrF,UAAAN,EAAA,GADYgB,CAEf,CAAW,GAEf,IAR2B;AAS7B,GAEMC,IAAU;AAAA,EACd,EAAC,MAAM,SAAS,OAAOC,EAAA;AAAA,EACvB,EAAC,MAAM,QAAQ,OAAO,OAAO,OAAOA,EAAA;AACtC,GAEM,EAAC,WAAAC,GAAW,GAAGb,EAAA,IAASc,GAExBC,IAAO,CAAC,GAAGpB,CAAyB,GAE7BqB,IAASC,EAAOrB,GAAQ,QAAQ,EAC1C,KAAK,MAAM,EACX,SAASsB,CAAc,EACvB,MAAM;AAAA,EACL,WAAWL,EAAU,QAAQ,MAAM;AAAA,EACnC,GAAGb;AAAA,EACH,SAASmB,EAAM,GAAGJ,CAAI,EACnB,QAAQ,GAAGA,CAAI,EACf,QAAQ,GAAG,EACX,gBAAgB,EAAC,WAAW,IAAM;AAAA,EACrC,OAAOK,EACJ,QAAQ5B,EAAU,CAAC,QAAQ,QAAQ,UAAU,CAAC,CAAC,EAC/C,gBAAgB,EAAC,SAAAmB,GAAQ;AAC9B,CAAC;"}
|
package/dist/message.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import { Theme } from '@emotion/react';
|
|
|
8
8
|
import { WithAsProps } from 'rsuite/esm/internals/types';
|
|
9
9
|
|
|
10
10
|
export declare const rsMessage: Definer<Omit_2<any, WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & MessageProps> & WithAsProps<ElementType<any, keyof JSX.IntrinsicElements>> & MessageProps & {
|
|
11
|
-
|
|
11
|
+
children?: ReactNode | undefined;
|
|
12
12
|
} & {
|
|
13
|
-
|
|
13
|
+
theme?: Theme;
|
|
14
14
|
}>;
|
|
15
15
|
|
|
16
16
|
export { }
|
package/dist/message.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import s from "@emotion/styled";
|
|
2
|
-
import { define as o,
|
|
2
|
+
import { define as o, oneOf as r, node as e, boolean as a } from "@react-form-builder/core";
|
|
3
3
|
import { Message as t } from "rsuite";
|
|
4
|
-
import {
|
|
4
|
+
import { a as i } from "./categories-_98lyB3C.js";
|
|
5
5
|
const f = s(t)`
|
|
6
6
|
.rs-message-header {
|
|
7
7
|
overflow: initial;
|
|
8
8
|
}
|
|
9
9
|
`, d = o(f, "RsMessage").name("Message").category(i).props({
|
|
10
10
|
children: e,
|
|
11
|
-
closable:
|
|
11
|
+
closable: a.default(!1),
|
|
12
12
|
header: e,
|
|
13
|
-
type:
|
|
13
|
+
type: r("info", "success", "warning", "error").default("info").withEditorProps({ creatable: !1 })
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
16
16
|
d as rsMessage
|
package/dist/modal-layout.d.ts
CHANGED
package/dist/modal-layout.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { define as i,
|
|
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
|
-
import { m as u } from "./categories-
|
|
4
|
+
import { m as u } from "./categories-_98lyB3C.js";
|
|
5
5
|
const { Header: y, Title: f, Body: h, Footer: p } = m, M = (t) => {
|
|
6
6
|
const { closeButton: r, headerTitle: d, body: a, footer: l, ...n } = t;
|
|
7
7
|
return /* @__PURE__ */ s("div", { ...n, children: [
|
package/dist/modal-layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-layout.js","sources":["../src/components/RsModalLayout.tsx"],"sourcesContent":["import {boolean, define, node} from '@react-form-builder/core'\nimport type {ReactNode} from 'react'\nimport {Modal} from 'rsuite'\nimport {modalCategory} from './categories'\n\nconst {Header, Title, Body, Footer} = Modal\n\n/**\n * Props for the RsModalLayout component.\n */\nexport interface RsModalLayoutProps {\n /**\n * Whether to show the close button.\n */\n closeButton: boolean,\n /**\n * The title for the modal header.\n */\n headerTitle: ReactNode,\n /**\n * The content for the modal body.\n */\n body: ReactNode,\n /**\n * The content for the modal footer.\n */\n footer: ReactNode,\n}\n\n/**\n * Modal layout component with header, body and footer sections.\n * @param props the component props.\n * @returns the React element.\n */\nconst RsModalLayout = (props: RsModalLayoutProps) => {\n const {closeButton, headerTitle, body, footer, ...rest} = props\n return <div {...rest}>\n <Header closeButton={closeButton}>\n <Title>\n {headerTitle}\n </Title>\n </Header>\n <Body>\n {body}\n </Body>\n <Footer>\n {footer}\n </Footer>\n </div>\n}\n\nexport const rsModalLayout = define(RsModalLayout, 'RsModalLayout')\n .name('Modal layout')\n .category(modalCategory)\n .props({\n closeButton: boolean.default(true),\n headerTitle: node,\n body: node,\n footer: node,\n })\n"],"names":["Header","Title","Body","Footer","Modal","RsModalLayout","props","closeButton","headerTitle","body","footer","rest","jsxs","jsx","rsModalLayout","define","modalCategory","boolean","node"],"mappings":";;;;AAKA,MAAM,EAAC,QAAAA,GAAQ,OAAAC,GAAO,MAAAC,GAAM,QAAAC,MAAUC,GA6BhCC,IAAgB,CAACC,MAA8B;AACnD,QAAM,EAAC,aAAAC,GAAa,aAAAC,GAAa,MAAAC,GAAM,QAAAC,GAAQ,GAAGC,
|
|
1
|
+
{"version":3,"file":"modal-layout.js","sources":["../src/components/RsModalLayout.tsx"],"sourcesContent":["import {boolean, define, node} from '@react-form-builder/core'\nimport type {ReactNode} from 'react'\nimport {Modal} from 'rsuite'\nimport {modalCategory} from './categories'\n\nconst {Header, Title, Body, Footer} = Modal\n\n/**\n * Props for the RsModalLayout component.\n */\nexport interface RsModalLayoutProps {\n /**\n * Whether to show the close button.\n */\n closeButton: boolean,\n /**\n * The title for the modal header.\n */\n headerTitle: ReactNode,\n /**\n * The content for the modal body.\n */\n body: ReactNode,\n /**\n * The content for the modal footer.\n */\n footer: ReactNode,\n}\n\n/**\n * Modal layout component with header, body and footer sections.\n * @param props the component props.\n * @returns the React element.\n */\nconst RsModalLayout = (props: RsModalLayoutProps) => {\n const {closeButton, headerTitle, body, footer, ...rest} = props\n return <div {...rest}>\n <Header closeButton={closeButton}>\n <Title>\n {headerTitle}\n </Title>\n </Header>\n <Body>\n {body}\n </Body>\n <Footer>\n {footer}\n </Footer>\n </div>\n}\n\nexport const rsModalLayout = define(RsModalLayout, 'RsModalLayout')\n .name('Modal layout')\n .category(modalCategory)\n .props({\n closeButton: boolean.default(true),\n headerTitle: node,\n body: node,\n footer: node,\n })\n"],"names":["Header","Title","Body","Footer","Modal","RsModalLayout","props","closeButton","headerTitle","body","footer","rest","jsxs","jsx","rsModalLayout","define","modalCategory","boolean","node"],"mappings":";;;;AAKA,MAAM,EAAC,QAAAA,GAAQ,OAAAC,GAAO,MAAAC,GAAM,QAAAC,MAAUC,GA6BhCC,IAAgB,CAACC,MAA8B;AACnD,QAAM,EAAC,aAAAC,GAAa,aAAAC,GAAa,MAAAC,GAAM,QAAAC,GAAQ,GAAGC,MAAQL;AAC1D,SAAO,gBAAAM,EAAC,OAAA,EAAK,GAAGD,GACd,UAAA;AAAA,IAAA,gBAAAE,EAACb,GAAA,EAAO,aAAAO,GACN,UAAA,gBAAAM,EAACZ,GAAA,EACE,aACH,GACF;AAAA,IACA,gBAAAY,EAACX,KACE,UAAAO,EAAA,CACH;AAAA,IACA,gBAAAI,EAACV,KACE,UAAAO,EAAA,CACH;AAAA,EAAA,GACF;AACF,GAEaI,IAAgBC,EAAOV,GAAe,eAAe,EAC/D,KAAK,cAAc,EACnB,SAASW,CAAa,EACtB,MAAM;AAAA,EACL,aAAaC,EAAQ,QAAQ,EAAI;AAAA,EACjC,aAAaC;AAAA,EACb,MAAMA;AAAA,EACN,QAAQA;AACV,CAAC;"}
|
package/dist/modal.d.ts
CHANGED
package/dist/modal.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { oneOf as f, define as c,
|
|
2
|
+
import { oneOf as f, define as c, event as r, boolean as o, string as e } from "@react-form-builder/core";
|
|
3
3
|
import { useCallback as i } from "react";
|
|
4
4
|
import { Modal as p } from "rsuite";
|
|
5
|
-
import { m as
|
|
6
|
-
const
|
|
7
|
-
const { children: s, handleClose:
|
|
8
|
-
|
|
9
|
-
}, [
|
|
10
|
-
return /* @__PURE__ */ u(p, { ...
|
|
11
|
-
},
|
|
5
|
+
import { m as C } from "./categories-_98lyB3C.js";
|
|
6
|
+
const b = (t) => {
|
|
7
|
+
const { children: s, handleClose: l, onClose: a, ...d } = t, m = i((n) => {
|
|
8
|
+
l?.(), a?.(n);
|
|
9
|
+
}, [l, a]);
|
|
10
|
+
return /* @__PURE__ */ u(p, { ...d, onClose: m, children: s });
|
|
11
|
+
}, g = f("xs", "sm", "md", "lg", "full").labeled("Extra small", "Small", "Medium", "Large", "Full").default("md"), y = c(b, "RsModal").name("Modal").category(C).props({
|
|
12
12
|
autoFocus: o.default(!0),
|
|
13
13
|
backdrop: o.default(!0),
|
|
14
|
-
backdropClassName:
|
|
15
|
-
classPrefix:
|
|
16
|
-
dialogClassName:
|
|
14
|
+
backdropClassName: e,
|
|
15
|
+
classPrefix: e,
|
|
16
|
+
dialogClassName: e,
|
|
17
17
|
enforceFocus: o.default(!0),
|
|
18
18
|
keyboard: o.default(!0),
|
|
19
19
|
overflow: o.default(!0),
|
|
20
|
-
size:
|
|
20
|
+
size: g,
|
|
21
21
|
onOpen: r,
|
|
22
22
|
onClose: r
|
|
23
23
|
}).componentRole("modal").hideFromComponentPalette();
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
y as rsModal
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=modal.js.map
|
package/dist/modal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sources":["../src/components/RsModal.tsx"],"sourcesContent":["import {boolean, define, event, oneOf, string} from '@react-form-builder/core'\nimport type {SyntheticEvent} from 'react'\nimport {useCallback} from 'react'\nimport type {ModalProps} from 'rsuite'\nimport {Modal} from 'rsuite'\nimport {modalCategory} from './categories'\n\n/**\n * Props for the RsModal component.\n */\nexport interface RsModalProps extends ModalProps {\n /**\n * Custom close handler function.\n */\n handleClose?: () => void\n}\n\n/**\n * A modal component that displays content in an overlay dialog.\n * @param props the component props.\n * @returns the React element.\n */\nconst RsModal = (props: RsModalProps) => {\n const {children, handleClose, onClose, ...rest} = props\n\n const close = useCallback((e: SyntheticEvent) => {\n handleClose?.()\n onClose?.(e)\n }, [handleClose, onClose])\n\n return <Modal {...rest} onClose={close}>\n {children}\n </Modal>\n}\n\nconst modalSize = oneOf('xs', 'sm', 'md', 'lg', 'full')\n .labeled('Extra small', 'Small', 'Medium', 'Large', 'Full')\n .default('md')\n\nexport const rsModal = define(RsModal, 'RsModal')\n .name('Modal')\n .category(modalCategory)\n .props({\n autoFocus: boolean.default(true),\n backdrop: boolean.default(true),\n backdropClassName: string,\n classPrefix: string,\n dialogClassName: string,\n enforceFocus: boolean.default(true),\n keyboard: boolean.default(true),\n overflow: boolean.default(true),\n size: modalSize,\n onOpen: event,\n onClose: event,\n })\n .componentRole('modal')\n .hideFromComponentPalette()\n"],"names":["RsModal","props","children","handleClose","onClose","rest","close","useCallback","e","Modal","modalSize","oneOf","rsModal","define","modalCategory","boolean","string","event"],"mappings":";;;;;AAsBA,MAAMA,IAAU,CAACC,MAAwB;AACvC,QAAM,EAAC,UAAAC,GAAU,aAAAC,GAAa,SAAAC,GAAS,GAAGC,
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../src/components/RsModal.tsx"],"sourcesContent":["import {boolean, define, event, oneOf, string} from '@react-form-builder/core'\nimport type {SyntheticEvent} from 'react'\nimport {useCallback} from 'react'\nimport type {ModalProps} from 'rsuite'\nimport {Modal} from 'rsuite'\nimport {modalCategory} from './categories'\n\n/**\n * Props for the RsModal component.\n */\nexport interface RsModalProps extends ModalProps {\n /**\n * Custom close handler function.\n */\n handleClose?: () => void\n}\n\n/**\n * A modal component that displays content in an overlay dialog.\n * @param props the component props.\n * @returns the React element.\n */\nconst RsModal = (props: RsModalProps) => {\n const {children, handleClose, onClose, ...rest} = props\n\n const close = useCallback((e: SyntheticEvent) => {\n handleClose?.()\n onClose?.(e)\n }, [handleClose, onClose])\n\n return <Modal {...rest} onClose={close}>\n {children}\n </Modal>\n}\n\nconst modalSize = oneOf('xs', 'sm', 'md', 'lg', 'full')\n .labeled('Extra small', 'Small', 'Medium', 'Large', 'Full')\n .default('md')\n\nexport const rsModal = define(RsModal, 'RsModal')\n .name('Modal')\n .category(modalCategory)\n .props({\n autoFocus: boolean.default(true),\n backdrop: boolean.default(true),\n backdropClassName: string,\n classPrefix: string,\n dialogClassName: string,\n enforceFocus: boolean.default(true),\n keyboard: boolean.default(true),\n overflow: boolean.default(true),\n size: modalSize,\n onOpen: event,\n onClose: event,\n })\n .componentRole('modal')\n .hideFromComponentPalette()\n"],"names":["RsModal","props","children","handleClose","onClose","rest","close","useCallback","e","Modal","modalSize","oneOf","rsModal","define","modalCategory","boolean","string","event"],"mappings":";;;;;AAsBA,MAAMA,IAAU,CAACC,MAAwB;AACvC,QAAM,EAAC,UAAAC,GAAU,aAAAC,GAAa,SAAAC,GAAS,GAAGC,MAAQJ,GAE5CK,IAAQC,EAAY,CAACC,MAAsB;AAC/C,IAAAL,IAAA,GACAC,IAAUI,CAAC;AAAA,EACb,GAAG,CAACL,GAAaC,CAAO,CAAC;AAEzB,2BAAQK,GAAA,EAAO,GAAGJ,GAAM,SAASC,GAC9B,UAAAJ,GACH;AACF,GAEMQ,IAAYC,EAAM,MAAM,MAAM,MAAM,MAAM,MAAM,EACnD,QAAQ,eAAe,SAAS,UAAU,SAAS,MAAM,EACzD,QAAQ,IAAI,GAEFC,IAAUC,EAAOb,GAAS,SAAS,EAC7C,KAAK,OAAO,EACZ,SAASc,CAAa,EACtB,MAAM;AAAA,EACL,WAAWC,EAAQ,QAAQ,EAAI;AAAA,EAC/B,UAAUA,EAAQ,QAAQ,EAAI;AAAA,EAC9B,mBAAmBC;AAAA,EACnB,aAAaA;AAAA,EACb,iBAAiBA;AAAA,EACjB,cAAcD,EAAQ,QAAQ,EAAI;AAAA,EAClC,UAAUA,EAAQ,QAAQ,EAAI;AAAA,EAC9B,UAAUA,EAAQ,QAAQ,EAAI;AAAA,EAC9B,MAAML;AAAA,EACN,QAAQO;AAAA,EACR,SAASA;AACX,CAAC,EACA,cAAc,OAAO,EACrB,yBAAA;"}
|
package/dist/models.js
CHANGED
|
@@ -1,60 +1,6 @@
|
|
|
1
1
|
import { components as m } from "./definitions.js";
|
|
2
|
-
|
|
3
|
-
import "./categories-7064b279.js";
|
|
4
|
-
import "./wizard.js";
|
|
5
|
-
import "@emotion/react/jsx-runtime";
|
|
6
|
-
import "@emotion/css";
|
|
7
|
-
import "@emotion/styled";
|
|
8
|
-
import "@react-form-builder/core";
|
|
9
|
-
import "react";
|
|
10
|
-
import "rsuite";
|
|
11
|
-
import "./hooks-ff273a8a.js";
|
|
12
|
-
import "./InputCell-f4236002.js";
|
|
13
|
-
import "./autocomplete.js";
|
|
14
|
-
import "./commonProperties-d849cd5b.js";
|
|
15
|
-
import "./Labeled-751c2353.js";
|
|
16
|
-
import "@emotion/react";
|
|
17
|
-
import "./breadcrumb.js";
|
|
18
|
-
import "./button.js";
|
|
19
|
-
import "./calendar.js";
|
|
20
|
-
import "./card.js";
|
|
21
|
-
import "./header.js";
|
|
22
|
-
import "./checkbox.js";
|
|
23
|
-
import "./container.js";
|
|
24
|
-
import "./date-picker.js";
|
|
25
|
-
import "./dateTimeUtils-b07ce438.js";
|
|
26
|
-
import "date-fns";
|
|
27
|
-
import "./useTouchOnEvent-2be3c60d.js";
|
|
28
|
-
import "./divider.js";
|
|
29
|
-
import "./dropdown.js";
|
|
30
|
-
import "./error-message.js";
|
|
31
|
-
import "./image.js";
|
|
32
|
-
import "./input.js";
|
|
33
|
-
import "@rsuite/icons";
|
|
34
|
-
import "./label.js";
|
|
35
|
-
import "./link.js";
|
|
36
|
-
import "./menu.js";
|
|
37
|
-
import "./message.js";
|
|
38
|
-
import "./modal.js";
|
|
39
|
-
import "./modal-layout.js";
|
|
40
|
-
import "./number-format.js";
|
|
41
|
-
import "react-number-format";
|
|
42
|
-
import "./WrappedInput-bc5a6d33.js";
|
|
43
|
-
import "./pattern-format.js";
|
|
44
|
-
import "./placeholder.js";
|
|
45
|
-
import "./progress.js";
|
|
46
|
-
import "./radio-group.js";
|
|
47
|
-
import "./search.js";
|
|
48
|
-
import "./static-content.js";
|
|
49
|
-
import "./tab.js";
|
|
50
|
-
import "./tag-picker.js";
|
|
51
|
-
import "./text-area.js";
|
|
52
|
-
import "./time-picker.js";
|
|
53
|
-
import "./toggle.js";
|
|
54
|
-
import "./tooltip.js";
|
|
55
|
-
import "./uploader.js";
|
|
56
|
-
const to = m.map(({ model: o }) => o);
|
|
2
|
+
const t = m.map(({ model: o }) => o);
|
|
57
3
|
export {
|
|
58
|
-
|
|
4
|
+
t as models
|
|
59
5
|
};
|
|
60
6
|
//# sourceMappingURL=models.js.map
|
package/dist/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sources":["../src/models.ts"],"sourcesContent":["import {components} from './definitions'\n\n/**\n * An array of rSuite component metadata for use in FormViewer.\n */\nexport const models = components.map(({model}) => model)\n"],"names":["models","components","model"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models.js","sources":["../src/models.ts"],"sourcesContent":["import {components} from './definitions'\n\n/**\n * An array of rSuite component metadata for use in FormViewer.\n */\nexport const models = components.map(({model}) => model)\n"],"names":["models","components","model"],"mappings":";AAKO,MAAMA,IAASC,EAAW,IAAI,CAAC,EAAC,OAAAC,EAAA,MAAWA,CAAK;"}
|