@expcat/tigercat-core 2.1.1 → 2.1.2
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/{data-export-BtjseC7G.d.ts → data-export-CLWdsrRn.d.ts} +1 -1
- package/dist/index.d.ts +22 -7
- package/dist/index.js +261 -55
- package/dist/{locale-CGl5S1-B.d.ts → locale-KMGxL6bT.d.ts} +54 -1
- package/dist/locales/ar-SA.d.ts +1 -1
- package/dist/locales/ar-SA.js +58 -4
- package/dist/locales/de-DE.d.ts +1 -1
- package/dist/locales/de-DE.js +58 -4
- package/dist/locales/en-US.d.ts +1 -1
- package/dist/locales/en-US.js +45 -3
- package/dist/locales/es-ES.d.ts +1 -1
- package/dist/locales/es-ES.js +58 -4
- package/dist/locales/fr-FR.d.ts +1 -1
- package/dist/locales/fr-FR.js +58 -4
- package/dist/locales/id-ID.d.ts +1 -1
- package/dist/locales/id-ID.js +58 -4
- package/dist/locales/ja-JP.d.ts +1 -1
- package/dist/locales/ja-JP.js +58 -4
- package/dist/locales/ko-KR.d.ts +1 -1
- package/dist/locales/ko-KR.js +58 -4
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/pt-BR.js +58 -4
- package/dist/locales/th-TH.d.ts +1 -1
- package/dist/locales/th-TH.js +58 -4
- package/dist/locales/vi-VN.d.ts +1 -1
- package/dist/locales/vi-VN.js +58 -4
- package/dist/locales/zh-CN.d.ts +1 -1
- package/dist/locales/zh-CN.js +45 -3
- package/dist/locales/zh-TW.d.ts +1 -1
- package/dist/locales/zh-TW.js +58 -4
- package/dist/{table-D_1D4Euk.d.ts → table-CHeBgM_2.d.ts} +1 -1
- package/dist/utils/data-export.d.ts +3 -3
- package/dist/utils/table-export.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1502,6 +1502,7 @@ var TIGER_LOCALE_KEYS = [
|
|
|
1502
1502
|
"activityFeed",
|
|
1503
1503
|
"notificationCenter",
|
|
1504
1504
|
"select",
|
|
1505
|
+
"colorPicker",
|
|
1505
1506
|
"tabs",
|
|
1506
1507
|
"rate",
|
|
1507
1508
|
"carousel",
|
|
@@ -1576,6 +1577,7 @@ function mergeTigerLocale(base, override) {
|
|
|
1576
1577
|
activityFeed: { ...base?.activityFeed, ...override?.activityFeed },
|
|
1577
1578
|
notificationCenter: { ...base?.notificationCenter, ...override?.notificationCenter },
|
|
1578
1579
|
select: { ...base?.select, ...override?.select },
|
|
1580
|
+
colorPicker: { ...base?.colorPicker, ...override?.colorPicker },
|
|
1579
1581
|
tabs: { ...base?.tabs, ...override?.tabs },
|
|
1580
1582
|
rate: { ...base?.rate, ...override?.rate },
|
|
1581
1583
|
avatarGroup: { ...base?.avatarGroup, ...override?.avatarGroup },
|
|
@@ -2022,18 +2024,61 @@ function getNotificationCenterLabels(locale, overrides) {
|
|
|
2022
2024
|
};
|
|
2023
2025
|
}
|
|
2024
2026
|
var DEFAULT_SELECT_LABELS = {
|
|
2025
|
-
doneText: "Done"
|
|
2027
|
+
doneText: "Done",
|
|
2028
|
+
placeholder: "Select an option",
|
|
2029
|
+
emptyText: "No options found"
|
|
2026
2030
|
};
|
|
2027
2031
|
var ZH_CN_SELECT_LABELS = {
|
|
2028
|
-
doneText: "\u5B8C\u6210"
|
|
2032
|
+
doneText: "\u5B8C\u6210",
|
|
2033
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
2034
|
+
emptyText: "\u6682\u65E0\u9009\u9879"
|
|
2029
2035
|
};
|
|
2030
2036
|
function getSelectLabels(locale, overrides) {
|
|
2031
2037
|
const isZh = !!locale?.locale?.startsWith("zh") || locale?.formWizard?.finishText === "\u5B8C\u6210";
|
|
2032
2038
|
const defaultLabels = isZh ? ZH_CN_SELECT_LABELS : DEFAULT_SELECT_LABELS;
|
|
2033
2039
|
return {
|
|
2034
|
-
doneText: overrides?.doneText ?? locale?.select?.doneText ?? locale?.common?.okText ?? defaultLabels.doneText
|
|
2040
|
+
doneText: overrides?.doneText ?? locale?.select?.doneText ?? locale?.common?.okText ?? defaultLabels.doneText,
|
|
2041
|
+
placeholder: overrides?.placeholder ?? locale?.select?.placeholder ?? defaultLabels.placeholder,
|
|
2042
|
+
emptyText: overrides?.emptyText ?? locale?.select?.emptyText ?? locale?.common?.emptyText ?? defaultLabels.emptyText
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
var DEFAULT_COLOR_PICKER_LABELS = {
|
|
2046
|
+
trigger: "Pick color",
|
|
2047
|
+
panelTitle: "Color",
|
|
2048
|
+
clear: "Clear",
|
|
2049
|
+
hue: "Hue",
|
|
2050
|
+
alpha: "Alpha",
|
|
2051
|
+
value: "Color value",
|
|
2052
|
+
preview: "Color preview",
|
|
2053
|
+
selectPreset: "Select {color}"
|
|
2054
|
+
};
|
|
2055
|
+
var ZH_CN_COLOR_PICKER_LABELS = {
|
|
2056
|
+
trigger: "\u9009\u62E9\u989C\u8272",
|
|
2057
|
+
panelTitle: "\u989C\u8272",
|
|
2058
|
+
clear: "\u6E05\u7A7A",
|
|
2059
|
+
hue: "\u8272\u76F8",
|
|
2060
|
+
alpha: "\u900F\u660E\u5EA6",
|
|
2061
|
+
value: "\u989C\u8272\u503C",
|
|
2062
|
+
preview: "\u989C\u8272\u9884\u89C8",
|
|
2063
|
+
selectPreset: "\u9009\u62E9 {color}"
|
|
2064
|
+
};
|
|
2065
|
+
function getColorPickerLabels(locale, overrides) {
|
|
2066
|
+
const isZh = locale?.locale?.startsWith("zh");
|
|
2067
|
+
const defaultLabels = isZh ? ZH_CN_COLOR_PICKER_LABELS : DEFAULT_COLOR_PICKER_LABELS;
|
|
2068
|
+
return {
|
|
2069
|
+
trigger: overrides?.trigger ?? locale?.colorPicker?.trigger ?? defaultLabels.trigger,
|
|
2070
|
+
panelTitle: overrides?.panelTitle ?? locale?.colorPicker?.panelTitle ?? defaultLabels.panelTitle,
|
|
2071
|
+
clear: overrides?.clear ?? locale?.colorPicker?.clear ?? defaultLabels.clear,
|
|
2072
|
+
hue: overrides?.hue ?? locale?.colorPicker?.hue ?? defaultLabels.hue,
|
|
2073
|
+
alpha: overrides?.alpha ?? locale?.colorPicker?.alpha ?? defaultLabels.alpha,
|
|
2074
|
+
value: overrides?.value ?? locale?.colorPicker?.value ?? defaultLabels.value,
|
|
2075
|
+
preview: overrides?.preview ?? locale?.colorPicker?.preview ?? defaultLabels.preview,
|
|
2076
|
+
selectPreset: overrides?.selectPreset ?? locale?.colorPicker?.selectPreset ?? defaultLabels.selectPreset
|
|
2035
2077
|
};
|
|
2036
2078
|
}
|
|
2079
|
+
function formatColorPickerSelectPreset(template, color) {
|
|
2080
|
+
return template.replace("{color}", color);
|
|
2081
|
+
}
|
|
2037
2082
|
var DEFAULT_TABS_LABELS = {
|
|
2038
2083
|
addTabAriaLabel: "Add tab",
|
|
2039
2084
|
closeTabAriaLabel: "Close {label}"
|
|
@@ -2155,7 +2200,20 @@ var DEFAULT_MARKDOWN_EDITOR_LABELS = {
|
|
|
2155
2200
|
previewAriaLabel: "Markdown preview",
|
|
2156
2201
|
editModeLabel: "Edit",
|
|
2157
2202
|
splitModeLabel: "Split",
|
|
2158
|
-
previewModeLabel: "Preview"
|
|
2203
|
+
previewModeLabel: "Preview",
|
|
2204
|
+
bold: "Bold",
|
|
2205
|
+
italic: "Italic",
|
|
2206
|
+
strikethrough: "Strikethrough",
|
|
2207
|
+
heading: "Heading",
|
|
2208
|
+
blockquote: "Blockquote",
|
|
2209
|
+
unorderedList: "Bulleted list",
|
|
2210
|
+
orderedList: "Numbered list",
|
|
2211
|
+
inlineCode: "Inline code",
|
|
2212
|
+
codeBlock: "Code block",
|
|
2213
|
+
link: "Link",
|
|
2214
|
+
image: "Image",
|
|
2215
|
+
table: "Table",
|
|
2216
|
+
horizontalRule: "Horizontal rule"
|
|
2159
2217
|
};
|
|
2160
2218
|
var ZH_CN_MARKDOWN_EDITOR_LABELS = {
|
|
2161
2219
|
formattingToolbarAriaLabel: "Markdown \u683C\u5F0F\u5DE5\u5177\u680F",
|
|
@@ -2164,33 +2222,77 @@ var ZH_CN_MARKDOWN_EDITOR_LABELS = {
|
|
|
2164
2222
|
previewAriaLabel: "Markdown \u9884\u89C8",
|
|
2165
2223
|
editModeLabel: "\u7F16\u8F91",
|
|
2166
2224
|
splitModeLabel: "\u5206\u680F",
|
|
2167
|
-
previewModeLabel: "\u9884\u89C8"
|
|
2225
|
+
previewModeLabel: "\u9884\u89C8",
|
|
2226
|
+
bold: "\u52A0\u7C97",
|
|
2227
|
+
italic: "\u659C\u4F53",
|
|
2228
|
+
strikethrough: "\u5220\u9664\u7EBF",
|
|
2229
|
+
heading: "\u6807\u9898",
|
|
2230
|
+
blockquote: "\u5F15\u7528",
|
|
2231
|
+
unorderedList: "\u65E0\u5E8F\u5217\u8868",
|
|
2232
|
+
orderedList: "\u6709\u5E8F\u5217\u8868",
|
|
2233
|
+
inlineCode: "\u884C\u5185\u4EE3\u7801",
|
|
2234
|
+
codeBlock: "\u4EE3\u7801\u5757",
|
|
2235
|
+
link: "\u94FE\u63A5",
|
|
2236
|
+
image: "\u56FE\u7247",
|
|
2237
|
+
table: "\u8868\u683C",
|
|
2238
|
+
horizontalRule: "\u5206\u9694\u7EBF"
|
|
2168
2239
|
};
|
|
2169
2240
|
function getMarkdownEditorLabels(locale, overrides) {
|
|
2170
2241
|
const defaultLabels = locale?.locale?.toLowerCase().startsWith("zh") ? ZH_CN_MARKDOWN_EDITOR_LABELS : DEFAULT_MARKDOWN_EDITOR_LABELS;
|
|
2171
2242
|
return {
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
previewAriaLabel: overrides?.previewAriaLabel ?? locale?.markdownEditor?.previewAriaLabel ?? defaultLabels.previewAriaLabel,
|
|
2176
|
-
editModeLabel: overrides?.editModeLabel ?? locale?.markdownEditor?.editModeLabel ?? defaultLabels.editModeLabel,
|
|
2177
|
-
splitModeLabel: overrides?.splitModeLabel ?? locale?.markdownEditor?.splitModeLabel ?? defaultLabels.splitModeLabel,
|
|
2178
|
-
previewModeLabel: overrides?.previewModeLabel ?? locale?.markdownEditor?.previewModeLabel ?? defaultLabels.previewModeLabel
|
|
2243
|
+
...defaultLabels,
|
|
2244
|
+
...locale?.markdownEditor,
|
|
2245
|
+
...overrides
|
|
2179
2246
|
};
|
|
2180
2247
|
}
|
|
2181
2248
|
var DEFAULT_RICH_TEXT_EDITOR_LABELS = {
|
|
2182
2249
|
formattingToolbarAriaLabel: "Text formatting",
|
|
2183
|
-
editorAriaLabel: "Rich text editor"
|
|
2250
|
+
editorAriaLabel: "Rich text editor",
|
|
2251
|
+
bold: "Bold",
|
|
2252
|
+
italic: "Italic",
|
|
2253
|
+
underline: "Underline",
|
|
2254
|
+
strikethrough: "Strikethrough",
|
|
2255
|
+
heading1: "H1",
|
|
2256
|
+
heading2: "H2",
|
|
2257
|
+
heading3: "H3",
|
|
2258
|
+
bulletList: "Bullet List",
|
|
2259
|
+
orderedList: "Ordered List",
|
|
2260
|
+
blockquote: "Blockquote",
|
|
2261
|
+
codeBlock: "Code",
|
|
2262
|
+
link: "Link",
|
|
2263
|
+
image: "Image",
|
|
2264
|
+
horizontalRule: "HR",
|
|
2265
|
+
undo: "Undo",
|
|
2266
|
+
redo: "Redo",
|
|
2267
|
+
clear: "Clear"
|
|
2184
2268
|
};
|
|
2185
2269
|
var ZH_CN_RICH_TEXT_EDITOR_LABELS = {
|
|
2186
2270
|
formattingToolbarAriaLabel: "\u5BCC\u6587\u672C\u683C\u5F0F\u5DE5\u5177\u680F",
|
|
2187
|
-
editorAriaLabel: "\u5BCC\u6587\u672C\u7F16\u8F91\u5668"
|
|
2271
|
+
editorAriaLabel: "\u5BCC\u6587\u672C\u7F16\u8F91\u5668",
|
|
2272
|
+
bold: "\u52A0\u7C97",
|
|
2273
|
+
italic: "\u659C\u4F53",
|
|
2274
|
+
underline: "\u4E0B\u5212\u7EBF",
|
|
2275
|
+
strikethrough: "\u5220\u9664\u7EBF",
|
|
2276
|
+
heading1: "\u6807\u98981",
|
|
2277
|
+
heading2: "\u6807\u98982",
|
|
2278
|
+
heading3: "\u6807\u98983",
|
|
2279
|
+
bulletList: "\u65E0\u5E8F\u5217\u8868",
|
|
2280
|
+
orderedList: "\u6709\u5E8F\u5217\u8868",
|
|
2281
|
+
blockquote: "\u5F15\u7528",
|
|
2282
|
+
codeBlock: "\u4EE3\u7801",
|
|
2283
|
+
link: "\u94FE\u63A5",
|
|
2284
|
+
image: "\u56FE\u7247",
|
|
2285
|
+
horizontalRule: "\u5206\u9694\u7EBF",
|
|
2286
|
+
undo: "\u64A4\u9500",
|
|
2287
|
+
redo: "\u91CD\u505A",
|
|
2288
|
+
clear: "\u6E05\u9664\u683C\u5F0F"
|
|
2188
2289
|
};
|
|
2189
2290
|
function getRichTextEditorLabels(locale, overrides) {
|
|
2190
2291
|
const defaultLabels = locale?.locale?.toLowerCase().startsWith("zh") ? ZH_CN_RICH_TEXT_EDITOR_LABELS : DEFAULT_RICH_TEXT_EDITOR_LABELS;
|
|
2191
2292
|
return {
|
|
2192
|
-
|
|
2193
|
-
|
|
2293
|
+
...defaultLabels,
|
|
2294
|
+
...locale?.richTextEditor,
|
|
2295
|
+
...overrides
|
|
2194
2296
|
};
|
|
2195
2297
|
}
|
|
2196
2298
|
var DEFAULT_CRON_EDITOR_LABELS = {
|
|
@@ -3261,7 +3363,19 @@ var enUS = {
|
|
|
3261
3363
|
markUnreadText: "Mark as unread"
|
|
3262
3364
|
},
|
|
3263
3365
|
select: {
|
|
3264
|
-
doneText: "Done"
|
|
3366
|
+
doneText: "Done",
|
|
3367
|
+
placeholder: "Select an option",
|
|
3368
|
+
emptyText: "No options found"
|
|
3369
|
+
},
|
|
3370
|
+
colorPicker: {
|
|
3371
|
+
trigger: "Pick color",
|
|
3372
|
+
panelTitle: "Color",
|
|
3373
|
+
clear: "Clear",
|
|
3374
|
+
hue: "Hue",
|
|
3375
|
+
alpha: "Alpha",
|
|
3376
|
+
value: "Color value",
|
|
3377
|
+
preview: "Color preview",
|
|
3378
|
+
selectPreset: "Select {color}"
|
|
3265
3379
|
},
|
|
3266
3380
|
tabs: {
|
|
3267
3381
|
addTabAriaLabel: "Add tab",
|
|
@@ -3302,11 +3416,41 @@ var enUS = {
|
|
|
3302
3416
|
previewAriaLabel: "Markdown preview",
|
|
3303
3417
|
editModeLabel: "Edit",
|
|
3304
3418
|
splitModeLabel: "Split",
|
|
3305
|
-
previewModeLabel: "Preview"
|
|
3419
|
+
previewModeLabel: "Preview",
|
|
3420
|
+
bold: "Bold",
|
|
3421
|
+
italic: "Italic",
|
|
3422
|
+
strikethrough: "Strikethrough",
|
|
3423
|
+
heading: "Heading",
|
|
3424
|
+
blockquote: "Blockquote",
|
|
3425
|
+
unorderedList: "Bulleted list",
|
|
3426
|
+
orderedList: "Numbered list",
|
|
3427
|
+
inlineCode: "Inline code",
|
|
3428
|
+
codeBlock: "Code block",
|
|
3429
|
+
link: "Link",
|
|
3430
|
+
image: "Image",
|
|
3431
|
+
table: "Table",
|
|
3432
|
+
horizontalRule: "Horizontal rule"
|
|
3306
3433
|
},
|
|
3307
3434
|
richTextEditor: {
|
|
3308
3435
|
formattingToolbarAriaLabel: "Text formatting",
|
|
3309
|
-
editorAriaLabel: "Rich text editor"
|
|
3436
|
+
editorAriaLabel: "Rich text editor",
|
|
3437
|
+
bold: "Bold",
|
|
3438
|
+
italic: "Italic",
|
|
3439
|
+
underline: "Underline",
|
|
3440
|
+
strikethrough: "Strikethrough",
|
|
3441
|
+
heading1: "H1",
|
|
3442
|
+
heading2: "H2",
|
|
3443
|
+
heading3: "H3",
|
|
3444
|
+
bulletList: "Bullet List",
|
|
3445
|
+
orderedList: "Ordered List",
|
|
3446
|
+
blockquote: "Blockquote",
|
|
3447
|
+
codeBlock: "Code",
|
|
3448
|
+
link: "Link",
|
|
3449
|
+
image: "Image",
|
|
3450
|
+
horizontalRule: "HR",
|
|
3451
|
+
undo: "Undo",
|
|
3452
|
+
redo: "Redo",
|
|
3453
|
+
clear: "Clear"
|
|
3310
3454
|
},
|
|
3311
3455
|
cronEditor: {
|
|
3312
3456
|
ariaLabel: "Cron editor",
|
|
@@ -18011,24 +18155,57 @@ function isToolbarSeparator(item) {
|
|
|
18011
18155
|
function getToolbarButtons(items) {
|
|
18012
18156
|
return items.filter((item) => !isToolbarSeparator(item));
|
|
18013
18157
|
}
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18158
|
+
function toolbarTooltip(label, hotkey) {
|
|
18159
|
+
return hotkey ? `${label} (${hotkey})` : label;
|
|
18160
|
+
}
|
|
18161
|
+
function createDefaultRichTextToolbar(labels) {
|
|
18162
|
+
return [
|
|
18163
|
+
{
|
|
18164
|
+
name: "bold",
|
|
18165
|
+
label: labels.bold,
|
|
18166
|
+
tooltip: toolbarTooltip(labels.bold, "Ctrl+B"),
|
|
18167
|
+
hotkey: "Ctrl+B"
|
|
18168
|
+
},
|
|
18169
|
+
{
|
|
18170
|
+
name: "italic",
|
|
18171
|
+
label: labels.italic,
|
|
18172
|
+
tooltip: toolbarTooltip(labels.italic, "Ctrl+I"),
|
|
18173
|
+
hotkey: "Ctrl+I"
|
|
18174
|
+
},
|
|
18175
|
+
{
|
|
18176
|
+
name: "underline",
|
|
18177
|
+
label: labels.underline,
|
|
18178
|
+
tooltip: toolbarTooltip(labels.underline, "Ctrl+U"),
|
|
18179
|
+
hotkey: "Ctrl+U"
|
|
18180
|
+
},
|
|
18181
|
+
{ name: "strikethrough", label: labels.strikethrough, tooltip: labels.strikethrough },
|
|
18182
|
+
{ name: "heading1", label: labels.heading1, tooltip: labels.heading1 },
|
|
18183
|
+
{ name: "heading2", label: labels.heading2, tooltip: labels.heading2 },
|
|
18184
|
+
{ name: "heading3", label: labels.heading3, tooltip: labels.heading3 },
|
|
18185
|
+
{ name: "bulletList", label: labels.bulletList, tooltip: labels.bulletList },
|
|
18186
|
+
{ name: "orderedList", label: labels.orderedList, tooltip: labels.orderedList },
|
|
18187
|
+
{ name: "blockquote", label: labels.blockquote, tooltip: labels.blockquote },
|
|
18188
|
+
{ name: "codeBlock", label: labels.codeBlock, tooltip: labels.codeBlock },
|
|
18189
|
+
{ name: "link", label: labels.link, tooltip: labels.link },
|
|
18190
|
+
{ name: "horizontalRule", label: labels.horizontalRule, tooltip: labels.horizontalRule },
|
|
18191
|
+
{
|
|
18192
|
+
name: "undo",
|
|
18193
|
+
label: labels.undo,
|
|
18194
|
+
tooltip: toolbarTooltip(labels.undo, "Ctrl+Z"),
|
|
18195
|
+
hotkey: "Ctrl+Z"
|
|
18196
|
+
},
|
|
18197
|
+
{
|
|
18198
|
+
name: "redo",
|
|
18199
|
+
label: labels.redo,
|
|
18200
|
+
tooltip: toolbarTooltip(labels.redo, "Ctrl+Y"),
|
|
18201
|
+
hotkey: "Ctrl+Y"
|
|
18202
|
+
},
|
|
18203
|
+
{ name: "clear", label: labels.clear, tooltip: labels.clear }
|
|
18204
|
+
];
|
|
18205
|
+
}
|
|
18206
|
+
var defaultToolbar = createDefaultRichTextToolbar(
|
|
18207
|
+
DEFAULT_RICH_TEXT_EDITOR_LABELS
|
|
18208
|
+
);
|
|
18032
18209
|
var richTextContainerBase = "flex flex-col border border-[var(--tiger-border,#d1d5db)] rounded-[var(--tiger-radius-md,0.5rem)] overflow-hidden bg-[var(--tiger-rte-bg,var(--tiger-surface,#ffffff))]";
|
|
18033
18210
|
var richTextContainerDisabled = "opacity-50 cursor-not-allowed pointer-events-none";
|
|
18034
18211
|
var richTextToolbarClasses = "flex flex-wrap items-center gap-1 px-2 py-1.5 border-b border-[var(--tiger-border,#d1d5db)] bg-[var(--tiger-rte-toolbar-bg,var(--tiger-surface-muted,#f9fafb))]";
|
|
@@ -18186,23 +18363,46 @@ var markdownEditorTextareaClasses = "w-full h-full min-h-0 resize-none border-0
|
|
|
18186
18363
|
var markdownEditorPreviewClasses = "h-full min-h-0 overflow-auto p-4 text-sm leading-7 text-[var(--tiger-text,#111827)] [&_a]:text-[var(--tiger-primary,#2563eb)] [&_a]:underline [&_blockquote]:border-l-4 [&_blockquote]:border-[var(--tiger-border,#d1d5db)] [&_blockquote]:pl-3 [&_blockquote]:text-[var(--tiger-text-secondary,#6b7280)] [&_code]:rounded [&_code]:bg-[var(--tiger-bg-secondary,#f3f4f6)] [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em] [&_h1]:mb-3 [&_h1]:text-2xl [&_h1]:font-semibold [&_h2]:mb-2 [&_h2]:text-xl [&_h2]:font-semibold [&_h3]:mb-2 [&_h3]:text-lg [&_h3]:font-semibold [&_hr]:my-4 [&_hr]:border-[var(--tiger-border,#d1d5db)] [&_img]:max-w-full [&_li]:my-1 [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-6 [&_p]:my-2 [&_pre]:my-3 [&_pre]:overflow-auto [&_pre]:rounded [&_pre]:bg-[var(--tiger-bg-secondary,#f3f4f6)] [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_td]:border [&_td]:border-[var(--tiger-border,#d1d5db)] [&_td]:px-2 [&_td]:py-1 [&_th]:border [&_th]:border-[var(--tiger-border,#d1d5db)] [&_th]:bg-[var(--tiger-bg-secondary,#f9fafb)] [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-6";
|
|
18187
18364
|
var markdownEditorEmptyPreviewClasses = "text-[var(--tiger-text-tertiary,#9ca3af)]";
|
|
18188
18365
|
var markdownEditorSplitDividerClasses = "border-l border-[var(--tiger-border,#d1d5db)]";
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
|
|
18198
|
-
|
|
18199
|
-
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18366
|
+
function markdownToolbarTooltip(label, hotkey) {
|
|
18367
|
+
return hotkey ? `${label} (${hotkey})` : label;
|
|
18368
|
+
}
|
|
18369
|
+
function createDefaultMarkdownToolbar(labels) {
|
|
18370
|
+
return [
|
|
18371
|
+
{
|
|
18372
|
+
name: "bold",
|
|
18373
|
+
label: "B",
|
|
18374
|
+
tooltip: markdownToolbarTooltip(labels.bold, "Ctrl+B"),
|
|
18375
|
+
hotkey: "Ctrl+B"
|
|
18376
|
+
},
|
|
18377
|
+
{
|
|
18378
|
+
name: "italic",
|
|
18379
|
+
label: "I",
|
|
18380
|
+
tooltip: markdownToolbarTooltip(labels.italic, "Ctrl+I"),
|
|
18381
|
+
hotkey: "Ctrl+I"
|
|
18382
|
+
},
|
|
18383
|
+
{ name: "strikethrough", label: "S", tooltip: labels.strikethrough },
|
|
18384
|
+
{ type: "separator" },
|
|
18385
|
+
{ name: "heading", label: "H", tooltip: labels.heading },
|
|
18386
|
+
{ name: "blockquote", label: labels.blockquote, tooltip: labels.blockquote },
|
|
18387
|
+
{ name: "unorderedList", label: labels.unorderedList, tooltip: labels.unorderedList },
|
|
18388
|
+
{ name: "orderedList", label: "1.", tooltip: labels.orderedList },
|
|
18389
|
+
{ type: "separator" },
|
|
18390
|
+
{ name: "inlineCode", label: "`", tooltip: labels.inlineCode },
|
|
18391
|
+
{ name: "codeBlock", label: "{}", tooltip: labels.codeBlock },
|
|
18392
|
+
{
|
|
18393
|
+
name: "link",
|
|
18394
|
+
label: labels.link,
|
|
18395
|
+
tooltip: markdownToolbarTooltip(labels.link, "Ctrl+K"),
|
|
18396
|
+
hotkey: "Ctrl+K"
|
|
18397
|
+
},
|
|
18398
|
+
{ name: "image", label: labels.image, tooltip: labels.image },
|
|
18399
|
+
{ name: "table", label: labels.table, tooltip: labels.table },
|
|
18400
|
+
{ name: "horizontalRule", label: "HR", tooltip: labels.horizontalRule }
|
|
18401
|
+
];
|
|
18402
|
+
}
|
|
18403
|
+
var defaultMarkdownToolbar = createDefaultMarkdownToolbar(
|
|
18404
|
+
DEFAULT_MARKDOWN_EDITOR_LABELS
|
|
18405
|
+
);
|
|
18206
18406
|
var markdownModeLabels = {
|
|
18207
18407
|
edit: "Edit",
|
|
18208
18408
|
split: "Split",
|
|
@@ -21759,7 +21959,7 @@ var designTokens = {
|
|
|
21759
21959
|
};
|
|
21760
21960
|
|
|
21761
21961
|
// src/index.ts
|
|
21762
|
-
var version = "2.1.
|
|
21962
|
+
var version = "2.1.2";
|
|
21763
21963
|
export {
|
|
21764
21964
|
ANIMATION_DURATION_FAST_MS,
|
|
21765
21965
|
ANIMATION_DURATION_MS,
|
|
@@ -21781,6 +21981,7 @@ export {
|
|
|
21781
21981
|
DEFAULT_CHART_LABELS,
|
|
21782
21982
|
DEFAULT_CHAT_WINDOW_LABELS,
|
|
21783
21983
|
DEFAULT_CODE_LABELS,
|
|
21984
|
+
DEFAULT_COLOR_PICKER_LABELS,
|
|
21784
21985
|
DEFAULT_COMMENT_THREAD_LABELS,
|
|
21785
21986
|
DEFAULT_CRON_EDITOR_LABELS,
|
|
21786
21987
|
DEFAULT_DATA_EXPORT_LABELS,
|
|
@@ -21924,6 +22125,7 @@ export {
|
|
|
21924
22125
|
ZH_CN_CHART_LABELS,
|
|
21925
22126
|
ZH_CN_CHAT_WINDOW_LABELS,
|
|
21926
22127
|
ZH_CN_CODE_LABELS,
|
|
22128
|
+
ZH_CN_COLOR_PICKER_LABELS,
|
|
21927
22129
|
ZH_CN_COMMENT_THREAD_LABELS,
|
|
21928
22130
|
ZH_CN_CRON_EDITOR_LABELS,
|
|
21929
22131
|
ZH_CN_DATA_EXPORT_LABELS,
|
|
@@ -22266,6 +22468,8 @@ export {
|
|
|
22266
22468
|
createColumnDragData,
|
|
22267
22469
|
createCountdownPayload,
|
|
22268
22470
|
createDefaultDragSnapshot,
|
|
22471
|
+
createDefaultMarkdownToolbar,
|
|
22472
|
+
createDefaultRichTextToolbar,
|
|
22269
22473
|
createDefaultTransform,
|
|
22270
22474
|
createDocumentDragSession,
|
|
22271
22475
|
createDragState,
|
|
@@ -22506,6 +22710,7 @@ export {
|
|
|
22506
22710
|
formatBadgeContent,
|
|
22507
22711
|
formatBytes,
|
|
22508
22712
|
formatChatTime,
|
|
22713
|
+
formatColorPickerSelectPreset,
|
|
22509
22714
|
formatColorString,
|
|
22510
22715
|
formatCommentTime,
|
|
22511
22716
|
formatCountdown,
|
|
@@ -22654,6 +22859,7 @@ export {
|
|
|
22654
22859
|
getCollapseIconClasses,
|
|
22655
22860
|
getCollapsePanelClasses,
|
|
22656
22861
|
getCollapsePanelHeaderClasses,
|
|
22862
|
+
getColorPickerLabels,
|
|
22657
22863
|
getColorPickerTriggerClasses,
|
|
22658
22864
|
getColorSwatchButtonClasses,
|
|
22659
22865
|
getColorSwatchCheckClasses,
|
|
@@ -360,6 +360,28 @@ interface TigerLocaleNotificationCenter {
|
|
|
360
360
|
interface TigerLocaleSelect {
|
|
361
361
|
/** Mobile dropdown completion action text */
|
|
362
362
|
doneText?: string;
|
|
363
|
+
/** Trigger placeholder when no option is selected */
|
|
364
|
+
placeholder?: string;
|
|
365
|
+
/** Empty options list / no-match copy */
|
|
366
|
+
emptyText?: string;
|
|
367
|
+
}
|
|
368
|
+
interface TigerLocaleColorPicker {
|
|
369
|
+
/** Trigger aria-label / title. Default "Pick color". */
|
|
370
|
+
trigger?: string;
|
|
371
|
+
/** Panel heading and dialog accessible name */
|
|
372
|
+
panelTitle?: string;
|
|
373
|
+
/** Clear-color action text */
|
|
374
|
+
clear?: string;
|
|
375
|
+
/** Hue slider label */
|
|
376
|
+
hue?: string;
|
|
377
|
+
/** Alpha slider label */
|
|
378
|
+
alpha?: string;
|
|
379
|
+
/** Color value input aria-label */
|
|
380
|
+
value?: string;
|
|
381
|
+
/** Preview swatch aria-label */
|
|
382
|
+
preview?: string;
|
|
383
|
+
/** Preset swatch aria-label. Template: supports {color} */
|
|
384
|
+
selectPreset?: string;
|
|
363
385
|
}
|
|
364
386
|
interface TigerLocaleTabs {
|
|
365
387
|
addTabAriaLabel?: string;
|
|
@@ -409,10 +431,40 @@ interface TigerLocaleMarkdownEditor {
|
|
|
409
431
|
editModeLabel?: string;
|
|
410
432
|
splitModeLabel?: string;
|
|
411
433
|
previewModeLabel?: string;
|
|
434
|
+
bold?: string;
|
|
435
|
+
italic?: string;
|
|
436
|
+
strikethrough?: string;
|
|
437
|
+
heading?: string;
|
|
438
|
+
blockquote?: string;
|
|
439
|
+
unorderedList?: string;
|
|
440
|
+
orderedList?: string;
|
|
441
|
+
inlineCode?: string;
|
|
442
|
+
codeBlock?: string;
|
|
443
|
+
link?: string;
|
|
444
|
+
image?: string;
|
|
445
|
+
table?: string;
|
|
446
|
+
horizontalRule?: string;
|
|
412
447
|
}
|
|
413
448
|
interface TigerLocaleRichTextEditor {
|
|
414
449
|
formattingToolbarAriaLabel?: string;
|
|
415
450
|
editorAriaLabel?: string;
|
|
451
|
+
bold?: string;
|
|
452
|
+
italic?: string;
|
|
453
|
+
underline?: string;
|
|
454
|
+
strikethrough?: string;
|
|
455
|
+
heading1?: string;
|
|
456
|
+
heading2?: string;
|
|
457
|
+
heading3?: string;
|
|
458
|
+
bulletList?: string;
|
|
459
|
+
orderedList?: string;
|
|
460
|
+
blockquote?: string;
|
|
461
|
+
codeBlock?: string;
|
|
462
|
+
link?: string;
|
|
463
|
+
image?: string;
|
|
464
|
+
horizontalRule?: string;
|
|
465
|
+
undo?: string;
|
|
466
|
+
redo?: string;
|
|
467
|
+
clear?: string;
|
|
416
468
|
}
|
|
417
469
|
interface TigerLocaleCronEditor {
|
|
418
470
|
ariaLabel?: string;
|
|
@@ -540,6 +592,7 @@ interface TigerLocale {
|
|
|
540
592
|
activityFeed?: TigerLocaleActivityFeed;
|
|
541
593
|
notificationCenter?: TigerLocaleNotificationCenter;
|
|
542
594
|
select?: TigerLocaleSelect;
|
|
595
|
+
colorPicker?: TigerLocaleColorPicker;
|
|
543
596
|
tabs?: TigerLocaleTabs;
|
|
544
597
|
rate?: TigerLocaleRate;
|
|
545
598
|
avatarGroup?: TigerLocaleAvatarGroup;
|
|
@@ -569,4 +622,4 @@ type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
|
569
622
|
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
570
623
|
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
571
624
|
|
|
572
|
-
export type {
|
|
625
|
+
export type { TigerLocaleTabs as A, TigerLocaleTagsInput as B, TigerLocaleTaskBoard as C, TimePickerLabels as D, TigerLocaleTour as E, TigerLocaleTransfer as F, TigerLocaleDirection as G, TigerLocaleLazyModule as H, TigerLocaleLoader as I, TigerText as J, TimeFormat as K, TigerLocaleDrawer as L, TigerLocaleModal as M, TigerLocaleCommon as N, TigerLocaleEmpty as O, TigerLocaleQRCode as P, TigerLocaleTimePicker as Q, TigerLocaleTimeline as R, TigerLocaleUpload as S, TigerLocale as T, TimePickerModelValue as U, TimePickerProps as V, TigerLocaleInput as a, TigerLocalePagination as b, TigerLocaleTable as c, TigerLocaleActivityFeed as d, TigerLocaleAvatarGroup as e, TigerLocaleCalendar as f, TigerLocaleCarousel as g, TigerLocaleChart as h, TigerLocaleChatWindow as i, TigerLocaleCode as j, TigerLocaleColorPicker as k, TigerLocaleCommentThread as l, TigerLocaleCronEditor as m, TigerLocaleDataExport as n, TigerLocaleFileManager as o, TigerLocaleFormValidation as p, TigerLocaleFormWizard as q, TigerLocaleImageEditor as r, TigerLocaleImageViewer as s, TigerLocaleInputOTP as t, TigerLocaleMarkdownEditor as u, TigerLocaleNotificationCenter as v, TigerLocaleRate as w, TigerLocaleRichTextEditor as x, TigerLocaleSelect as y, TigerLocaleStatus as z };
|
package/dist/locales/ar-SA.d.ts
CHANGED
package/dist/locales/ar-SA.js
CHANGED
|
@@ -245,7 +245,19 @@ var enUS = {
|
|
|
245
245
|
markUnreadText: "Mark as unread"
|
|
246
246
|
},
|
|
247
247
|
select: {
|
|
248
|
-
doneText: "Done"
|
|
248
|
+
doneText: "Done",
|
|
249
|
+
placeholder: "Select an option",
|
|
250
|
+
emptyText: "No options found"
|
|
251
|
+
},
|
|
252
|
+
colorPicker: {
|
|
253
|
+
trigger: "Pick color",
|
|
254
|
+
panelTitle: "Color",
|
|
255
|
+
clear: "Clear",
|
|
256
|
+
hue: "Hue",
|
|
257
|
+
alpha: "Alpha",
|
|
258
|
+
value: "Color value",
|
|
259
|
+
preview: "Color preview",
|
|
260
|
+
selectPreset: "Select {color}"
|
|
249
261
|
},
|
|
250
262
|
tabs: {
|
|
251
263
|
addTabAriaLabel: "Add tab",
|
|
@@ -286,11 +298,41 @@ var enUS = {
|
|
|
286
298
|
previewAriaLabel: "Markdown preview",
|
|
287
299
|
editModeLabel: "Edit",
|
|
288
300
|
splitModeLabel: "Split",
|
|
289
|
-
previewModeLabel: "Preview"
|
|
301
|
+
previewModeLabel: "Preview",
|
|
302
|
+
bold: "Bold",
|
|
303
|
+
italic: "Italic",
|
|
304
|
+
strikethrough: "Strikethrough",
|
|
305
|
+
heading: "Heading",
|
|
306
|
+
blockquote: "Blockquote",
|
|
307
|
+
unorderedList: "Bulleted list",
|
|
308
|
+
orderedList: "Numbered list",
|
|
309
|
+
inlineCode: "Inline code",
|
|
310
|
+
codeBlock: "Code block",
|
|
311
|
+
link: "Link",
|
|
312
|
+
image: "Image",
|
|
313
|
+
table: "Table",
|
|
314
|
+
horizontalRule: "Horizontal rule"
|
|
290
315
|
},
|
|
291
316
|
richTextEditor: {
|
|
292
317
|
formattingToolbarAriaLabel: "Text formatting",
|
|
293
|
-
editorAriaLabel: "Rich text editor"
|
|
318
|
+
editorAriaLabel: "Rich text editor",
|
|
319
|
+
bold: "Bold",
|
|
320
|
+
italic: "Italic",
|
|
321
|
+
underline: "Underline",
|
|
322
|
+
strikethrough: "Strikethrough",
|
|
323
|
+
heading1: "H1",
|
|
324
|
+
heading2: "H2",
|
|
325
|
+
heading3: "H3",
|
|
326
|
+
bulletList: "Bullet List",
|
|
327
|
+
orderedList: "Ordered List",
|
|
328
|
+
blockquote: "Blockquote",
|
|
329
|
+
codeBlock: "Code",
|
|
330
|
+
link: "Link",
|
|
331
|
+
image: "Image",
|
|
332
|
+
horizontalRule: "HR",
|
|
333
|
+
undo: "Undo",
|
|
334
|
+
redo: "Redo",
|
|
335
|
+
clear: "Clear"
|
|
294
336
|
},
|
|
295
337
|
cronEditor: {
|
|
296
338
|
ariaLabel: "Cron editor",
|
|
@@ -525,7 +567,19 @@ var arSA = defineLocale({
|
|
|
525
567
|
markUnreadText: "\u0648\u0636\u0639 \u0639\u0644\u0627\u0645\u0629 \u063A\u064A\u0631 \u0645\u0642\u0631\u0648\u0621"
|
|
526
568
|
},
|
|
527
569
|
select: {
|
|
528
|
-
doneText: "\u0625\u0646\u0647\u0627\u0621"
|
|
570
|
+
doneText: "\u0625\u0646\u0647\u0627\u0621",
|
|
571
|
+
placeholder: "\u0627\u062E\u062A\u0631 \u062E\u064A\u0627\u0631\u0627\u064B",
|
|
572
|
+
emptyText: "\u0644\u0627 \u062A\u0648\u062C\u062F \u062E\u064A\u0627\u0631\u0627\u062A"
|
|
573
|
+
},
|
|
574
|
+
colorPicker: {
|
|
575
|
+
trigger: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0644\u0648\u0646",
|
|
576
|
+
panelTitle: "\u0627\u0644\u0644\u0648\u0646",
|
|
577
|
+
clear: "\u0645\u0633\u062D",
|
|
578
|
+
hue: "\u062A\u062F\u0631\u062C",
|
|
579
|
+
alpha: "\u0627\u0644\u0634\u0641\u0627\u0641\u064A\u0629",
|
|
580
|
+
value: "\u0642\u064A\u0645\u0629 \u0627\u0644\u0644\u0648\u0646",
|
|
581
|
+
preview: "\u0645\u0639\u0627\u064A\u0646\u0629",
|
|
582
|
+
selectPreset: "\u0627\u062E\u062A\u064A\u0627\u0631 {color}"
|
|
529
583
|
},
|
|
530
584
|
inputOtp: {
|
|
531
585
|
groupLabel: "\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0644\u0645\u0631\u0629 \u0648\u0627\u062D\u062F\u0629",
|
package/dist/locales/de-DE.d.ts
CHANGED