@lotte-innovate/ui-component-test 0.1.114 → 0.1.116
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -2
- package/dist/globals.css +3 -3
- package/dist/lib/Typography/Header/index.d.ts +1 -1
- package/dist/lib/Typography/Header/index.js +2 -2
- package/dist/lib/Typography/Text/index.d.ts +1 -1
- package/dist/lib/Typography/Text/index.js +2 -2
- package/dist/lib/color/alpha.mjs.map +1 -1
- package/dist/lib/color/constants.mjs.map +1 -1
- package/dist/lib/color/light.mjs.map +1 -1
- package/dist/lib/components/Accordion/index.d.ts +1 -1
- package/dist/lib/components/Accordion/index.js +4 -4
- package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.js +3 -3
- package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogDescription.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogRoot.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogTitle.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +4 -4
- package/dist/lib/components/AlertDialog/index.mjs.map +1 -1
- package/dist/lib/components/AspectRatio/index.js +3 -3
- package/dist/lib/components/Avatar/index.js +4 -4
- package/dist/lib/components/Badge/index.d.ts +1 -1
- package/dist/lib/components/Badge/index.js +4 -4
- package/dist/lib/components/BarChart/index.d.ts +1 -1
- package/dist/lib/components/BarChart/index.js +4 -4
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +3 -3
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.d.ts +1 -1
- package/dist/lib/components/BubbleChart/index.js +4 -4
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Button/index.d.ts +1 -1
- package/dist/lib/components/Button/index.js +4 -4
- package/dist/lib/components/Callout/CalloutIcon.js +2 -2
- package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
- package/dist/lib/components/Callout/CalloutRoot.js +3 -3
- package/dist/lib/components/Callout/CalloutText.js +1 -1
- package/dist/lib/components/Callout/index.mjs.map +1 -1
- package/dist/lib/components/Card/index.d.ts +1 -1
- package/dist/lib/components/Card/index.js +3 -3
- package/dist/lib/components/Checkbox/index.d.ts +1 -1
- package/dist/lib/components/Checkbox/index.js +4 -4
- package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
- package/dist/lib/components/CheckboxCard/index.js +5 -5
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +3 -3
- package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -1
- package/dist/lib/components/Collapsible/index.d.ts +1 -1
- package/dist/lib/components/Collapsible/index.js +4 -4
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.js +3 -3
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRoot.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +3 -3
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/index.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListItem.js +2 -2
- package/dist/lib/components/DataList/DataListLabel.js +2 -2
- package/dist/lib/components/DataList/DataListRoot.js +2 -2
- package/dist/lib/components/DataList/DataListValue.js +2 -2
- package/dist/lib/components/DataList/index.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogAction.js +3 -3
- package/dist/lib/components/Dialog/DialogCancel.js +1 -1
- package/dist/lib/components/Dialog/DialogContent.js +2 -2
- package/dist/lib/components/Dialog/DialogDescription.js +1 -1
- package/dist/lib/components/Dialog/DialogRoot.js +2 -2
- package/dist/lib/components/Dialog/DialogSlot.js +1 -1
- package/dist/lib/components/Dialog/DialogTitle.js +1 -1
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
- package/dist/lib/components/Dialog/index.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.d.ts +1 -1
- package/dist/lib/components/DoughnutChart/index.js +3 -3
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +3 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +3 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +1 -1
- package/dist/lib/components/DropdownMenu/index.mjs.map +1 -1
- package/dist/lib/components/Editor/index copy.js +2 -2
- package/dist/lib/components/Editor/index.d.ts +15 -16
- package/dist/lib/components/Editor/index.js +51 -93
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Footer/index.js +3 -3
- package/dist/lib/components/Gnb/GnbInfo.js +1 -1
- package/dist/lib/components/Gnb/GnbLogo.js +2 -2
- package/dist/lib/components/Gnb/GnbMenu.d.ts +1 -1
- package/dist/lib/components/Gnb/GnbMenu.js +1 -1
- package/dist/lib/components/Gnb/GnbRoot.js +3 -3
- package/dist/lib/components/Gnb/index.mjs.map +1 -1
- package/dist/lib/components/Grid/Pagination.mjs.map +1 -1
- package/dist/lib/components/Grid/index.js +2 -2
- package/dist/lib/components/HoverCard/HoverCardContent.js +2 -2
- package/dist/lib/components/HoverCard/HoverCardRoot.js +2 -2
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
- package/dist/lib/components/HoverCard/index.mjs.map +1 -1
- package/dist/lib/components/IconButton/index.d.ts +1 -1
- package/dist/lib/components/IconButton/index.js +4 -4
- package/dist/lib/components/Inset/index.js +3 -3
- package/dist/lib/components/Label/index.d.ts +1 -1
- package/dist/lib/components/Label/index.js +3 -3
- package/dist/lib/components/LineChart/index.d.ts +1 -1
- package/dist/lib/components/LineChart/index.js +4 -4
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarCheckboxItem.js +3 -3
- package/dist/lib/components/Menubar/MenubarContent.js +2 -2
- package/dist/lib/components/Menubar/MenubarItem.js +3 -3
- package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -2
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarRadioItem.js +3 -3
- package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.js +4 -4
- package/dist/lib/components/Menubar/MenubarSeparator.js +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.js +2 -2
- package/dist/lib/components/Menubar/MenubarSubTrigger.js +3 -3
- package/dist/lib/components/Menubar/MenubarTrigger.js +2 -2
- package/dist/lib/components/Menubar/index.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -2
- package/dist/lib/components/NavigationMenu/index.mjs.map +1 -1
- package/dist/lib/components/PieChart/index.d.ts +1 -1
- package/dist/lib/components/PieChart/index.js +3 -3
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverClose.js +1 -1
- package/dist/lib/components/Popover/PopoverContent.d.ts +1 -1
- package/dist/lib/components/Popover/PopoverContent.js +2 -2
- package/dist/lib/components/Popover/PopoverRoot.js +1 -1
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
- package/dist/lib/components/Popover/index.mjs.map +1 -1
- package/dist/lib/components/Progress/index.js +4 -4
- package/dist/lib/components/RadarChart/index.d.ts +1 -1
- package/dist/lib/components/RadarChart/index.js +4 -4
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/Radio/index.d.ts +1 -1
- package/dist/lib/components/Radio/index.js +4 -4
- package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.js +4 -4
- package/dist/lib/components/RadioCards/index.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.js +3 -3
- package/dist/lib/components/RadioGroup/index.mjs.map +1 -1
- package/dist/lib/components/ScrollArea/index.js +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +3 -3
- package/dist/lib/components/SegmentedControl/index.mjs.map +1 -1
- package/dist/lib/components/Select/index.d.ts +2 -2
- package/dist/lib/components/Select/index.js +6 -6
- package/dist/lib/components/Select/index.mjs +1 -1
- package/dist/lib/components/Separator/index.js +3 -3
- package/dist/lib/components/Skeleton/index.d.ts +1 -1
- package/dist/lib/components/Skeleton/index.js +3 -3
- package/dist/lib/components/Slider/index.d.ts +1 -1
- package/dist/lib/components/Slider/index.js +4 -4
- package/dist/lib/components/Spinner/index.d.ts +1 -1
- package/dist/lib/components/Spinner/index.js +3 -3
- package/dist/lib/components/TabNav/index.js +3 -3
- package/dist/lib/components/Table/index.d.ts +1 -1
- package/dist/lib/components/Table/index.js +3 -3
- package/dist/lib/components/Tabs/index.d.ts +1 -1
- package/dist/lib/components/Tabs/index.js +4 -4
- package/dist/lib/components/TextArea/index.d.ts +1 -1
- package/dist/lib/components/TextArea/index.js +4 -4
- package/dist/lib/components/TextField/index.d.ts +1 -1
- package/dist/lib/components/TextField/index.js +4 -4
- package/dist/lib/components/Timeline/TimelineConnector.js +1 -1
- package/dist/lib/components/Timeline/TimelineContent.js +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.js +1 -1
- package/dist/lib/components/Timeline/TimelineHeader.js +1 -1
- package/dist/lib/components/Timeline/TimelineIcon.js +2 -2
- package/dist/lib/components/Timeline/TimelineItem.js +1 -1
- package/dist/lib/components/Timeline/TimelineRoot.js +2 -2
- package/dist/lib/components/Timeline/TimelineTime.js +1 -1
- package/dist/lib/components/Timeline/TimelineTitle.js +1 -1
- package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
- package/dist/lib/components/Toast/ToastActionButton.js +5 -5
- package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
- package/dist/lib/components/Toast/ToastDescription.js +1 -1
- package/dist/lib/components/Toast/ToastRoot.js +3 -3
- package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
- package/dist/lib/components/Toast/ToastTitle.js +1 -1
- package/dist/lib/components/Toast/index.mjs.map +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.js +5 -5
- package/dist/lib/components/Toggle/index.d.ts +1 -1
- package/dist/lib/components/Toggle/index.js +4 -4
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -2
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +4 -4
- package/dist/lib/components/ToggleGroup/index.mjs.map +1 -1
- package/dist/lib/components/ToggleSwitch/index.js +5 -5
- package/dist/lib/components/Tooltip/index.d.ts +1 -1
- package/dist/lib/components/Tooltip/index.js +3 -3
- package/dist/lib/constants.js +1 -1
- package/dist/lib/constants.mjs.map +1 -1
- package/dist/lib/theme/ThemeProvider.d.ts +1 -1
- package/dist/lib/utils/useDarkMode.js +1 -1
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/public/tinymce/icons/default/icons.d.ts +0 -0
- package/dist/public/tinymce/icons/default/icons.js +195 -0
- package/dist/public/tinymce/icons/default/index.d.ts +1 -0
- package/dist/public/tinymce/icons/default/index.js +8 -0
- package/dist/public/tinymce/models/dom/index.d.ts +1 -0
- package/dist/public/tinymce/models/dom/index.js +8 -0
- package/dist/public/tinymce/models/dom/model.d.ts +0 -0
- package/dist/public/tinymce/models/dom/model.js +7988 -0
- package/dist/public/tinymce/plugins/advlist/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/advlist/index.js +8 -0
- package/dist/public/tinymce/plugins/advlist/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/advlist/plugin.js +255 -0
- package/dist/public/tinymce/plugins/code/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/code/index.js +8 -0
- package/dist/public/tinymce/plugins/code/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/code/plugin.js +77 -0
- package/dist/public/tinymce/plugins/codesample/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/codesample/index.js +8 -0
- package/dist/public/tinymce/plugins/codesample/plugin.d.ts +45 -0
- package/dist/public/tinymce/plugins/codesample/plugin.js +2462 -0
- package/dist/public/tinymce/plugins/image/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/image/index.js +8 -0
- package/dist/public/tinymce/plugins/image/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/image/plugin.js +1523 -0
- package/dist/public/tinymce/plugins/link/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/link/index.js +8 -0
- package/dist/public/tinymce/plugins/link/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/link/plugin.js +1246 -0
- package/dist/public/tinymce/plugins/lists/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/lists/index.js +8 -0
- package/dist/public/tinymce/plugins/lists/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/lists/plugin.js +2191 -0
- package/dist/public/tinymce/plugins/table/index.d.ts +1 -0
- package/dist/public/tinymce/plugins/table/index.js +8 -0
- package/dist/public/tinymce/plugins/table/plugin.d.ts +0 -0
- package/dist/public/tinymce/plugins/table/plugin.js +3399 -0
- package/dist/public/tinymce/skins/content/default/content.d.ts +0 -0
- package/dist/public/tinymce/skins/content/default/content.js +3 -0
- package/dist/public/tinymce/skins/ui/oxide/content.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide/content.js +3 -0
- package/dist/public/tinymce/skins/ui/oxide/skin.d.ts +0 -0
- package/dist/public/tinymce/skins/ui/oxide/skin.js +3 -0
- package/dist/public/tinymce/themes/silver/index.d.ts +1 -0
- package/dist/public/tinymce/themes/silver/index.js +8 -0
- package/dist/public/tinymce/themes/silver/theme.d.ts +0 -0
- package/dist/public/tinymce/themes/silver/theme.js +29731 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -4
- package/dist/lib/tailwind.config.d.ts +0 -3
- package/dist/lib/tsconfig.tsbuildinfo +0 -1
- package/public/skins/content/default/content.css +0 -61
- package/public/skins/ui/oxide/content.min.css +0 -1
- package/public/skins/ui/oxide/skin.min.css +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
File without changes
|
@@ -0,0 +1,255 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* TinyMCE version 6.8.5 (TBD)
|
4
|
+
*/
|
5
|
+
(function () {
|
6
|
+
'use strict';
|
7
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
8
|
+
var applyListFormat = function (editor, listName, styleValue) {
|
9
|
+
var cmd = listName === 'UL' ? 'InsertUnorderedList' : 'InsertOrderedList';
|
10
|
+
editor.execCommand(cmd, false, styleValue === false ? null : { 'list-style-type': styleValue });
|
11
|
+
};
|
12
|
+
var register$2 = function (editor) {
|
13
|
+
editor.addCommand('ApplyUnorderedListStyle', function (ui, value) {
|
14
|
+
applyListFormat(editor, 'UL', value['list-style-type']);
|
15
|
+
});
|
16
|
+
editor.addCommand('ApplyOrderedListStyle', function (ui, value) {
|
17
|
+
applyListFormat(editor, 'OL', value['list-style-type']);
|
18
|
+
});
|
19
|
+
};
|
20
|
+
var option = function (name) { return function (editor) { return editor.options.get(name); }; };
|
21
|
+
var register$1 = function (editor) {
|
22
|
+
var registerOption = editor.options.register;
|
23
|
+
registerOption('advlist_number_styles', {
|
24
|
+
processor: 'string[]',
|
25
|
+
default: 'default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman'.split(',')
|
26
|
+
});
|
27
|
+
registerOption('advlist_bullet_styles', {
|
28
|
+
processor: 'string[]',
|
29
|
+
default: 'default,circle,square'.split(',')
|
30
|
+
});
|
31
|
+
};
|
32
|
+
var getNumberStyles = option('advlist_number_styles');
|
33
|
+
var getBulletStyles = option('advlist_bullet_styles');
|
34
|
+
var isNullable = function (a) { return a === null || a === undefined; };
|
35
|
+
var isNonNullable = function (a) { return !isNullable(a); };
|
36
|
+
var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
37
|
+
var Optional = /** @class */ (function () {
|
38
|
+
function Optional(tag, value) {
|
39
|
+
this.tag = tag;
|
40
|
+
this.value = value;
|
41
|
+
}
|
42
|
+
Optional.some = function (value) {
|
43
|
+
return new Optional(true, value);
|
44
|
+
};
|
45
|
+
Optional.none = function () {
|
46
|
+
return Optional.singletonNone;
|
47
|
+
};
|
48
|
+
Optional.prototype.fold = function (onNone, onSome) {
|
49
|
+
if (this.tag) {
|
50
|
+
return onSome(this.value);
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
return onNone();
|
54
|
+
}
|
55
|
+
};
|
56
|
+
Optional.prototype.isSome = function () {
|
57
|
+
return this.tag;
|
58
|
+
};
|
59
|
+
Optional.prototype.isNone = function () {
|
60
|
+
return !this.tag;
|
61
|
+
};
|
62
|
+
Optional.prototype.map = function (mapper) {
|
63
|
+
if (this.tag) {
|
64
|
+
return Optional.some(mapper(this.value));
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
return Optional.none();
|
68
|
+
}
|
69
|
+
};
|
70
|
+
Optional.prototype.bind = function (binder) {
|
71
|
+
if (this.tag) {
|
72
|
+
return binder(this.value);
|
73
|
+
}
|
74
|
+
else {
|
75
|
+
return Optional.none();
|
76
|
+
}
|
77
|
+
};
|
78
|
+
Optional.prototype.exists = function (predicate) {
|
79
|
+
return this.tag && predicate(this.value);
|
80
|
+
};
|
81
|
+
Optional.prototype.forall = function (predicate) {
|
82
|
+
return !this.tag || predicate(this.value);
|
83
|
+
};
|
84
|
+
Optional.prototype.filter = function (predicate) {
|
85
|
+
if (!this.tag || predicate(this.value)) {
|
86
|
+
return this;
|
87
|
+
}
|
88
|
+
else {
|
89
|
+
return Optional.none();
|
90
|
+
}
|
91
|
+
};
|
92
|
+
Optional.prototype.getOr = function (replacement) {
|
93
|
+
return this.tag ? this.value : replacement;
|
94
|
+
};
|
95
|
+
Optional.prototype.or = function (replacement) {
|
96
|
+
return this.tag ? this : replacement;
|
97
|
+
};
|
98
|
+
Optional.prototype.getOrThunk = function (thunk) {
|
99
|
+
return this.tag ? this.value : thunk();
|
100
|
+
};
|
101
|
+
Optional.prototype.orThunk = function (thunk) {
|
102
|
+
return this.tag ? this : thunk();
|
103
|
+
};
|
104
|
+
Optional.prototype.getOrDie = function (message) {
|
105
|
+
if (!this.tag) {
|
106
|
+
throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
|
107
|
+
}
|
108
|
+
else {
|
109
|
+
return this.value;
|
110
|
+
}
|
111
|
+
};
|
112
|
+
Optional.from = function (value) {
|
113
|
+
return isNonNullable(value) ? Optional.some(value) : Optional.none();
|
114
|
+
};
|
115
|
+
Optional.prototype.getOrNull = function () {
|
116
|
+
return this.tag ? this.value : null;
|
117
|
+
};
|
118
|
+
Optional.prototype.getOrUndefined = function () {
|
119
|
+
return this.value;
|
120
|
+
};
|
121
|
+
Optional.prototype.each = function (worker) {
|
122
|
+
if (this.tag) {
|
123
|
+
worker(this.value);
|
124
|
+
}
|
125
|
+
};
|
126
|
+
Optional.prototype.toArray = function () {
|
127
|
+
return this.tag ? [this.value] : [];
|
128
|
+
};
|
129
|
+
Optional.prototype.toString = function () {
|
130
|
+
return this.tag ? "some(".concat(this.value, ")") : 'none()';
|
131
|
+
};
|
132
|
+
return Optional;
|
133
|
+
}());
|
134
|
+
Optional.singletonNone = new Optional(false);
|
135
|
+
var findUntil = function (xs, pred, until) {
|
136
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
137
|
+
var x = xs[i];
|
138
|
+
if (pred(x, i)) {
|
139
|
+
return Optional.some(x);
|
140
|
+
}
|
141
|
+
else if (until(x, i)) {
|
142
|
+
break;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
return Optional.none();
|
146
|
+
};
|
147
|
+
var isCustomList = function (list) { return /\btox\-/.test(list.className); };
|
148
|
+
var isChildOfBody = function (editor, elm) {
|
149
|
+
return editor.dom.isChildOf(elm, editor.getBody());
|
150
|
+
};
|
151
|
+
var matchNodeNames = function (regex) { return function (node) { return isNonNullable(node) && regex.test(node.nodeName); }; };
|
152
|
+
var isListNode = matchNodeNames(/^(OL|UL|DL)$/);
|
153
|
+
var isTableCellNode = matchNodeNames(/^(TH|TD)$/);
|
154
|
+
var inList = function (editor, parents, nodeName) { return findUntil(parents, function (parent) { return isListNode(parent) && !isCustomList(parent); }, isTableCellNode).exists(function (list) { return list.nodeName === nodeName && isChildOfBody(editor, list); }); };
|
155
|
+
var getSelectedStyleType = function (editor) {
|
156
|
+
var listElm = editor.dom.getParent(editor.selection.getNode(), 'ol,ul');
|
157
|
+
var style = editor.dom.getStyle(listElm, 'listStyleType');
|
158
|
+
return Optional.from(style);
|
159
|
+
};
|
160
|
+
var isWithinNonEditable = function (editor, element) { return element !== null && !editor.dom.isEditable(element); };
|
161
|
+
var isWithinNonEditableList = function (editor, element) {
|
162
|
+
var parentList = editor.dom.getParent(element, 'ol,ul,dl');
|
163
|
+
return isWithinNonEditable(editor, parentList) && editor.selection.isEditable();
|
164
|
+
};
|
165
|
+
var setNodeChangeHandler = function (editor, nodeChangeHandler) {
|
166
|
+
var initialNode = editor.selection.getNode();
|
167
|
+
nodeChangeHandler({
|
168
|
+
parents: editor.dom.getParents(initialNode),
|
169
|
+
element: initialNode
|
170
|
+
});
|
171
|
+
editor.on('NodeChange', nodeChangeHandler);
|
172
|
+
return function () { return editor.off('NodeChange', nodeChangeHandler); };
|
173
|
+
};
|
174
|
+
var styleValueToText = function (styleValue) {
|
175
|
+
return styleValue.replace(/\-/g, ' ').replace(/\b\w/g, function (chr) {
|
176
|
+
return chr.toUpperCase();
|
177
|
+
});
|
178
|
+
};
|
179
|
+
var normalizeStyleValue = function (styleValue) { return isNullable(styleValue) || styleValue === 'default' ? '' : styleValue; };
|
180
|
+
var makeSetupHandler = function (editor, nodeName) { return function (api) {
|
181
|
+
var updateButtonState = function (editor, parents) {
|
182
|
+
var element = editor.selection.getStart(true);
|
183
|
+
api.setActive(inList(editor, parents, nodeName));
|
184
|
+
api.setEnabled(!isWithinNonEditableList(editor, element) && editor.selection.isEditable());
|
185
|
+
};
|
186
|
+
var nodeChangeHandler = function (e) { return updateButtonState(editor, e.parents); };
|
187
|
+
return setNodeChangeHandler(editor, nodeChangeHandler);
|
188
|
+
}; };
|
189
|
+
var addSplitButton = function (editor, id, tooltip, cmd, nodeName, styles) {
|
190
|
+
editor.ui.registry.addSplitButton(id, {
|
191
|
+
tooltip: tooltip,
|
192
|
+
icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',
|
193
|
+
presets: 'listpreview',
|
194
|
+
columns: 3,
|
195
|
+
fetch: function (callback) {
|
196
|
+
var items = global.map(styles, function (styleValue) {
|
197
|
+
var iconStyle = nodeName === 'OL' ? 'num' : 'bull';
|
198
|
+
var iconName = styleValue === 'disc' || styleValue === 'decimal' ? 'default' : styleValue;
|
199
|
+
var itemValue = normalizeStyleValue(styleValue);
|
200
|
+
var displayText = styleValueToText(styleValue);
|
201
|
+
return {
|
202
|
+
type: 'choiceitem',
|
203
|
+
value: itemValue,
|
204
|
+
icon: 'list-' + iconStyle + '-' + iconName,
|
205
|
+
text: displayText
|
206
|
+
};
|
207
|
+
});
|
208
|
+
callback(items);
|
209
|
+
},
|
210
|
+
onAction: function () { return editor.execCommand(cmd); },
|
211
|
+
onItemAction: function (_splitButtonApi, value) {
|
212
|
+
applyListFormat(editor, nodeName, value);
|
213
|
+
},
|
214
|
+
select: function (value) {
|
215
|
+
var listStyleType = getSelectedStyleType(editor);
|
216
|
+
return listStyleType.map(function (listStyle) { return value === listStyle; }).getOr(false);
|
217
|
+
},
|
218
|
+
onSetup: makeSetupHandler(editor, nodeName)
|
219
|
+
});
|
220
|
+
};
|
221
|
+
var addButton = function (editor, id, tooltip, cmd, nodeName, styleValue) {
|
222
|
+
editor.ui.registry.addToggleButton(id, {
|
223
|
+
active: false,
|
224
|
+
tooltip: tooltip,
|
225
|
+
icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',
|
226
|
+
onSetup: makeSetupHandler(editor, nodeName),
|
227
|
+
onAction: function () { return editor.queryCommandState(cmd) || styleValue === '' ? editor.execCommand(cmd) : applyListFormat(editor, nodeName, styleValue); }
|
228
|
+
});
|
229
|
+
};
|
230
|
+
var addControl = function (editor, id, tooltip, cmd, nodeName, styles) {
|
231
|
+
if (styles.length > 1) {
|
232
|
+
addSplitButton(editor, id, tooltip, cmd, nodeName, styles);
|
233
|
+
}
|
234
|
+
else {
|
235
|
+
addButton(editor, id, tooltip, cmd, nodeName, normalizeStyleValue(styles[0]));
|
236
|
+
}
|
237
|
+
};
|
238
|
+
var register = function (editor) {
|
239
|
+
addControl(editor, 'numlist', 'Numbered list', 'InsertOrderedList', 'OL', getNumberStyles(editor));
|
240
|
+
addControl(editor, 'bullist', 'Bullet list', 'InsertUnorderedList', 'UL', getBulletStyles(editor));
|
241
|
+
};
|
242
|
+
var Plugin = function () {
|
243
|
+
global$1.add('advlist', function (editor) {
|
244
|
+
if (editor.hasPlugin('lists')) {
|
245
|
+
register$1(editor);
|
246
|
+
register(editor);
|
247
|
+
register$2(editor);
|
248
|
+
}
|
249
|
+
else {
|
250
|
+
console.error('Please use the Lists plugin together with the Advanced List plugin.');
|
251
|
+
}
|
252
|
+
});
|
253
|
+
};
|
254
|
+
Plugin();
|
255
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
File without changes
|
@@ -0,0 +1,77 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* TinyMCE version 6.8.5 (TBD)
|
4
|
+
*/
|
5
|
+
(function () {
|
6
|
+
'use strict';
|
7
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
8
|
+
var setContent = function (editor, html) {
|
9
|
+
editor.focus();
|
10
|
+
editor.undoManager.transact(function () {
|
11
|
+
editor.setContent(html);
|
12
|
+
});
|
13
|
+
editor.selection.setCursorLocation();
|
14
|
+
editor.nodeChanged();
|
15
|
+
};
|
16
|
+
var getContent = function (editor) {
|
17
|
+
return editor.getContent({ source_view: true });
|
18
|
+
};
|
19
|
+
var open = function (editor) {
|
20
|
+
var editorContent = getContent(editor);
|
21
|
+
editor.windowManager.open({
|
22
|
+
title: 'Source Code',
|
23
|
+
size: 'large',
|
24
|
+
body: {
|
25
|
+
type: 'panel',
|
26
|
+
items: [{
|
27
|
+
type: 'textarea',
|
28
|
+
name: 'code'
|
29
|
+
}]
|
30
|
+
},
|
31
|
+
buttons: [
|
32
|
+
{
|
33
|
+
type: 'cancel',
|
34
|
+
name: 'cancel',
|
35
|
+
text: 'Cancel'
|
36
|
+
},
|
37
|
+
{
|
38
|
+
type: 'submit',
|
39
|
+
name: 'save',
|
40
|
+
text: 'Save',
|
41
|
+
primary: true
|
42
|
+
}
|
43
|
+
],
|
44
|
+
initialData: { code: editorContent },
|
45
|
+
onSubmit: function (api) {
|
46
|
+
setContent(editor, api.getData().code);
|
47
|
+
api.close();
|
48
|
+
}
|
49
|
+
});
|
50
|
+
};
|
51
|
+
var register$1 = function (editor) {
|
52
|
+
editor.addCommand('mceCodeEditor', function () {
|
53
|
+
open(editor);
|
54
|
+
});
|
55
|
+
};
|
56
|
+
var register = function (editor) {
|
57
|
+
var onAction = function () { return editor.execCommand('mceCodeEditor'); };
|
58
|
+
editor.ui.registry.addButton('code', {
|
59
|
+
icon: 'sourcecode',
|
60
|
+
tooltip: 'Source code',
|
61
|
+
onAction: onAction
|
62
|
+
});
|
63
|
+
editor.ui.registry.addMenuItem('code', {
|
64
|
+
icon: 'sourcecode',
|
65
|
+
text: 'Source code',
|
66
|
+
onAction: onAction
|
67
|
+
});
|
68
|
+
};
|
69
|
+
var Plugin = function () {
|
70
|
+
global.add('code', function (editor) {
|
71
|
+
register$1(editor);
|
72
|
+
register(editor);
|
73
|
+
return {};
|
74
|
+
});
|
75
|
+
};
|
76
|
+
Plugin();
|
77
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
declare var plainTextGrammar: {};
|
2
|
+
export function Token(type: any, content: any, alias: any, matchedStr: any): void;
|
3
|
+
export namespace Token {
|
4
|
+
function stringify(o: any, language: any): any;
|
5
|
+
}
|
6
|
+
export class Token {
|
7
|
+
constructor(type: any, content: any, alias: any, matchedStr: any);
|
8
|
+
type: any;
|
9
|
+
content: any;
|
10
|
+
alias: any;
|
11
|
+
length: number;
|
12
|
+
}
|
13
|
+
export declare let manual: any;
|
14
|
+
export declare let disableWorkerMessageHandler: any;
|
15
|
+
export declare namespace util {
|
16
|
+
function encode(tokens: any): any;
|
17
|
+
function type(o: any): string;
|
18
|
+
function objId(obj: any): any;
|
19
|
+
function clone(o: any, visited: any): any;
|
20
|
+
function getLanguage(element: any): string;
|
21
|
+
function setLanguage(element: any, language: any): void;
|
22
|
+
function currentScript(): HTMLOrSVGScriptElement | null;
|
23
|
+
function isActive(element: any, className: any, defaultActivation: any): boolean;
|
24
|
+
}
|
25
|
+
export declare namespace languages {
|
26
|
+
export { plainTextGrammar as plain };
|
27
|
+
export { plainTextGrammar as plaintext };
|
28
|
+
export { plainTextGrammar as text };
|
29
|
+
export { plainTextGrammar as txt };
|
30
|
+
export function extend(id: any, redef: any): any;
|
31
|
+
export function insertBefore(inside: any, before: any, insert: any, root: any): {};
|
32
|
+
export function DFS(o: any, callback: any, type: any, visited: any): void;
|
33
|
+
}
|
34
|
+
export declare let plugins: {};
|
35
|
+
export declare function highlightAll(async: any, callback: any): void;
|
36
|
+
export declare function highlightAllUnder(container: any, async: any, callback: any): void;
|
37
|
+
export declare function highlightElement(element: any, async: any, callback: any): void;
|
38
|
+
export declare function highlight(text: any, grammar: any, language: any): any;
|
39
|
+
export declare function tokenize(text: any, grammar: any): any[];
|
40
|
+
export declare namespace hooks {
|
41
|
+
let all: {};
|
42
|
+
function add(name: any, callback: any): void;
|
43
|
+
function run(name: any, env: any): void;
|
44
|
+
}
|
45
|
+
export {};
|