@humandialog/forms.svelte 1.7.27 → 1.8.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/components/Fab.25.svelte +473 -0
- package/components/Fab.25.svelte.d.ts +18 -0
- package/components/Fab.svelte +51 -170
- package/components/Floating_container.25.svelte +178 -0
- package/components/Floating_container.25.svelte.d.ts +23 -0
- package/components/Floating_container.svelte +18 -6
- package/components/Grid.menu.svelte +15 -16
- package/components/Grid.menu.svelte.d.ts +2 -2
- package/components/breadcrumb.svelte +27 -27
- package/components/checkbox.svelte +1 -1
- package/components/combo/combo.svelte +60 -79
- package/components/combo/combo.svelte.d.ts +1 -0
- package/components/contextmenu-25.svelte +518 -0
- package/components/contextmenu-25.svelte.d.ts +26 -0
- package/components/contextmenu.svelte +179 -65
- package/components/contextmenu.svelte.d.ts +2 -2
- package/components/date.svelte +42 -21
- package/components/date.svelte.d.ts +1 -0
- package/components/delayed.spinner.svelte +2 -1
- package/components/document/editor.svelte +21 -31
- package/components/document/editor.svelte.d.ts +0 -2
- package/components/document/internal/palette.row.svelte +10 -8
- package/components/document/internal/palette.svelte +7 -8
- package/components/document/rich.edit.svelte +10 -10
- package/components/edit.field.svelte +1 -1
- package/components/input.text.svelte.d.ts +2 -2
- package/components/inputbox.ltop.svelte +1 -1
- package/components/inputbox.ltop.svelte.d.ts +12 -12
- package/components/kanban/internal/kanban.card.svelte +27 -47
- package/components/kanban/internal/kanban.column.svelte +44 -24
- package/components/kanban/internal/kanban.inserter.svelte +11 -14
- package/components/kanban/internal/kanban.move.menu.svelte +12 -12
- package/components/kanban/internal/kanban.props.svelte +24 -9
- package/components/kanban/kanban.svelte +24 -77
- package/components/kanban/kanban.svelte.d.ts +2 -0
- package/components/kanban copy.zip +0 -0
- package/components/list/List.d.ts +1 -0
- package/components/list/List.js +1 -0
- package/components/list/internal/list.element copy.svelte +530 -0
- package/components/list/internal/list.element copy.svelte.d.ts +35 -0
- package/components/list/internal/list.element.svelte +308 -268
- package/components/list/internal/list.element.svelte.d.ts +5 -7
- package/components/list/internal/list.inserter.svelte +38 -6
- package/components/list/internal/note.txt +5 -0
- package/components/list/list.svelte +32 -11
- package/components/list/list.svelte.d.ts +5 -3
- package/components/list/list.title.svelte +2 -0
- package/components/list/list.title.svelte.d.ts +1 -0
- package/components/menu.d.ts +1 -1
- package/components/menu.js +3 -3
- package/components/paginator.svelte +79 -9
- package/components/prose.editable.p.svelte.d.ts +2 -2
- package/components/prose.editable.span.svelte.d.ts +2 -2
- package/components/r.edit.svelte +9 -0
- package/components/r.edit.svelte.d.ts +23 -0
- package/components/r.editable.svelte +74 -0
- package/components/r.editable.svelte.d.ts +31 -0
- package/components/r.figcaption.svelte +5 -0
- package/components/r.figcaption.svelte.d.ts +27 -0
- package/components/r.figure.svelte +25 -0
- package/components/r.figure.svelte.d.ts +29 -0
- package/components/r.icon.svelte +229 -0
- package/components/r.icon.svelte.d.ts +33 -0
- package/components/radio.svelte +1 -1
- package/components/ricons/arrow-up.svelte +11 -0
- package/components/ricons/arrow-up.svelte.d.ts +27 -0
- package/components/ricons/barcode.svelte +14 -0
- package/components/ricons/barcode.svelte.d.ts +27 -0
- package/components/ricons/bold.svelte +10 -0
- package/components/ricons/bold.svelte.d.ts +27 -0
- package/components/ricons/calendar.svelte +13 -0
- package/components/ricons/calendar.svelte.d.ts +27 -0
- package/components/ricons/calendars.svelte +16 -0
- package/components/ricons/calendars.svelte.d.ts +27 -0
- package/components/ricons/cat.svelte +14 -0
- package/components/ricons/cat.svelte.d.ts +27 -0
- package/components/ricons/check-check.svelte +12 -0
- package/components/ricons/check-check.svelte.d.ts +27 -0
- package/components/ricons/check.svelte +18 -0
- package/components/ricons/check.svelte.d.ts +27 -0
- package/components/ricons/chess-rook.svelte +17 -0
- package/components/ricons/chess-rook.svelte.d.ts +27 -0
- package/components/ricons/chevron-down.svelte +11 -0
- package/components/ricons/chevron-down.svelte.d.ts +27 -0
- package/components/ricons/chevron-left.svelte +11 -0
- package/components/ricons/chevron-left.svelte.d.ts +27 -0
- package/components/ricons/chevron-right.svelte +11 -0
- package/components/ricons/chevron-right.svelte.d.ts +27 -0
- package/components/ricons/chevron-up.svelte +11 -0
- package/components/ricons/chevron-up.svelte.d.ts +27 -0
- package/components/ricons/chevrons-down.svelte +12 -0
- package/components/ricons/chevrons-down.svelte.d.ts +27 -0
- package/components/ricons/chevrons-left-right.svelte +12 -0
- package/components/ricons/chevrons-left-right.svelte.d.ts +27 -0
- package/components/ricons/chevrons-left.svelte +12 -0
- package/components/ricons/chevrons-left.svelte.d.ts +27 -0
- package/components/ricons/chevrons-right.svelte +12 -0
- package/components/ricons/chevrons-right.svelte.d.ts +27 -0
- package/components/ricons/chevrons-up-down.svelte +12 -0
- package/components/ricons/chevrons-up-down.svelte.d.ts +27 -0
- package/components/ricons/chevrons-up.svelte +12 -0
- package/components/ricons/chevrons-up.svelte.d.ts +27 -0
- package/components/ricons/circle-check.svelte +28 -0
- package/components/ricons/circle-check.svelte.d.ts +23 -0
- package/components/ricons/circle-dashed.svelte +19 -0
- package/components/ricons/circle-dashed.svelte.d.ts +27 -0
- package/components/ricons/circle-dot-dashed.svelte +20 -0
- package/components/ricons/circle-dot-dashed.svelte.d.ts +27 -0
- package/components/ricons/circle.svelte +30 -0
- package/components/ricons/circle.svelte.d.ts +23 -0
- package/components/ricons/clipboard-list.svelte +17 -0
- package/components/ricons/clipboard-list.svelte.d.ts +27 -0
- package/components/ricons/clipboard-minus.svelte +9 -0
- package/components/ricons/clipboard-minus.svelte.d.ts +23 -0
- package/components/ricons/clipboard-pen-line.svelte +18 -0
- package/components/ricons/clipboard-pen-line.svelte.d.ts +27 -0
- package/components/ricons/code-xml.svelte +12 -0
- package/components/ricons/code-xml.svelte.d.ts +27 -0
- package/components/ricons/download.svelte +13 -0
- package/components/ricons/download.svelte.d.ts +27 -0
- package/components/ricons/ellipsis-vertical.svelte +14 -0
- package/components/ricons/ellipsis-vertical.svelte.d.ts +27 -0
- package/components/ricons/file-archive.svelte +18 -0
- package/components/ricons/file-archive.svelte.d.ts +27 -0
- package/components/ricons/file-text.svelte +17 -0
- package/components/ricons/file-text.svelte.d.ts +27 -0
- package/components/ricons/folder.svelte +12 -0
- package/components/ricons/folder.svelte.d.ts +27 -0
- package/components/ricons/heading-1.svelte +13 -0
- package/components/ricons/heading-1.svelte.d.ts +27 -0
- package/components/ricons/heading-2.svelte +13 -0
- package/components/ricons/heading-2.svelte.d.ts +27 -0
- package/components/ricons/heading-3.svelte +14 -0
- package/components/ricons/heading-3.svelte.d.ts +27 -0
- package/components/ricons/heading-4.svelte +14 -0
- package/components/ricons/heading-4.svelte.d.ts +27 -0
- package/components/ricons/heading-5.svelte +14 -0
- package/components/ricons/heading-5.svelte.d.ts +27 -0
- package/components/ricons/image.svelte +12 -0
- package/components/ricons/image.svelte.d.ts +27 -0
- package/components/ricons/italic.svelte +12 -0
- package/components/ricons/italic.svelte.d.ts +27 -0
- package/components/ricons/languages.svelte +15 -0
- package/components/ricons/languages.svelte.d.ts +27 -0
- package/components/ricons/list-checks.svelte +15 -0
- package/components/ricons/list-checks.svelte.d.ts +27 -0
- package/components/ricons/list-minus.svelte +14 -0
- package/components/ricons/list-minus.svelte.d.ts +27 -0
- package/components/ricons/list-ordered.svelte +16 -0
- package/components/ricons/list-ordered.svelte.d.ts +27 -0
- package/components/ricons/list-plus.svelte +14 -0
- package/components/ricons/list-plus.svelte.d.ts +27 -0
- package/components/ricons/list.svelte +15 -0
- package/components/ricons/list.svelte.d.ts +27 -0
- package/components/ricons/loader-circle.svelte +19 -0
- package/components/ricons/loader-circle.svelte.d.ts +27 -0
- package/components/ricons/log-in.svelte +12 -0
- package/components/ricons/log-in.svelte.d.ts +27 -0
- package/components/ricons/log-out.svelte +12 -0
- package/components/ricons/log-out.svelte.d.ts +27 -0
- package/components/ricons/message-square.svelte +12 -0
- package/components/ricons/message-square.svelte.d.ts +27 -0
- package/components/ricons/messages-square.svelte +15 -0
- package/components/ricons/messages-square.svelte.d.ts +27 -0
- package/components/ricons/minus.svelte +10 -0
- package/components/ricons/minus.svelte.d.ts +27 -0
- package/components/ricons/notebook-tabs.svelte +19 -0
- package/components/ricons/notebook-tabs.svelte.d.ts +27 -0
- package/components/ricons/notebook.svelte +16 -0
- package/components/ricons/notebook.svelte.d.ts +27 -0
- package/components/ricons/package.svelte +22 -0
- package/components/ricons/package.svelte.d.ts +27 -0
- package/components/ricons/paperclip.svelte +12 -0
- package/components/ricons/paperclip.svelte.d.ts +27 -0
- package/components/ricons/pencil.svelte +12 -0
- package/components/ricons/pencil.svelte.d.ts +27 -0
- package/components/ricons/pilcrow.svelte +12 -0
- package/components/ricons/pilcrow.svelte.d.ts +27 -0
- package/components/ricons/save.svelte +12 -0
- package/components/ricons/save.svelte.d.ts +27 -0
- package/components/ricons/square-check-big.svelte +13 -0
- package/components/ricons/square-check-big.svelte.d.ts +27 -0
- package/components/ricons/square-pen.svelte +14 -0
- package/components/ricons/square-pen.svelte.d.ts +27 -0
- package/components/ricons/square.svelte +10 -0
- package/components/ricons/square.svelte.d.ts +27 -0
- package/components/ricons/strikethrough.svelte +13 -0
- package/components/ricons/strikethrough.svelte.d.ts +27 -0
- package/components/ricons/sun-moon.svelte +15 -0
- package/components/ricons/sun-moon.svelte.d.ts +27 -0
- package/components/ricons/table.svelte +13 -0
- package/components/ricons/table.svelte.d.ts +27 -0
- package/components/ricons/tag.svelte +12 -0
- package/components/ricons/tag.svelte.d.ts +27 -0
- package/components/ricons/text-quote.svelte +14 -0
- package/components/ricons/text-quote.svelte.d.ts +27 -0
- package/components/ricons/turtle.svelte +13 -0
- package/components/ricons/turtle.svelte.d.ts +27 -0
- package/components/ricons/underline.svelte +11 -0
- package/components/ricons/underline.svelte.d.ts +27 -0
- package/components/ricons/upload.svelte +13 -0
- package/components/ricons/upload.svelte.d.ts +27 -0
- package/components/ricons/user.svelte +12 -0
- package/components/ricons/user.svelte.d.ts +27 -0
- package/components/ricons/users.svelte +14 -0
- package/components/ricons/users.svelte.d.ts +27 -0
- package/components/ricons/x.svelte +11 -0
- package/components/ricons/x.svelte.d.ts +27 -0
- package/components/sidebar/sidebar.brand.svelte +14 -13
- package/components/sidebar/sidebar.brand.svelte.d.ts +2 -2
- package/components/sidebar/sidebar.group.svelte +52 -30
- package/components/sidebar/sidebar.item.svelte +35 -141
- package/components/sidebar/sidebar.item.svelte.d.ts +2 -5
- package/components/sidebar/sidebar.list.svelte +8 -8
- package/components/sidebar/sidebar.svelte +19 -2
- package/components/simple.table.svelte.d.ts +4 -4
- package/components/table/_template.table.svelte.d.ts +4 -4
- package/components/tags.svelte +10 -3
- package/components/tags.svelte.d.ts +1 -0
- package/components/textarea.ltop.svelte.d.ts +2 -2
- package/components/tile.title.svelte.d.ts +2 -2
- package/desk.svelte +122 -128
- package/dialog.svelte +17 -7
- package/form.box.svelte.d.ts +4 -4
- package/horizontal.nav.tabs.svelte +197 -23
- package/horizontal.nav.tabs.svelte.d.ts +2 -2
- package/horizontal.toolbar.svelte +25 -18
- package/horizontal.toolbar.svelte.d.ts +2 -2
- package/index.d.ts +10 -3
- package/index.js +10 -3
- package/operations.svelte +51 -22
- package/package.json +89 -1
- package/page.row.svelte.d.ts +2 -2
- package/page.svelte +17 -7
- package/page.svelte.d.ts +10 -10
- package/paper.header.svelte +4 -0
- package/paper.header.svelte.d.ts +27 -0
- package/paper.nav.svelte +8 -0
- package/paper.nav.svelte.d.ts +27 -0
- package/paper.svelte +22 -6
- package/paper.svelte.d.ts +2 -0
- package/paper.table.svelte +27 -0
- package/paper.table.svelte.d.ts +27 -0
- package/paper.top.margin.svelte +5 -0
- package/paper.top.margin.svelte.d.ts +27 -0
- package/stores.d.ts +1 -1
- package/tenant.create.svelte +93 -0
- package/tenant.create.svelte.d.ts +29 -0
- package/tenant.members.svelte +116 -93
- package/tile.svelte.d.ts +4 -4
- package/tiles.row.svelte.d.ts +2 -2
- package/tiles.vertical.row.svelte.d.ts +2 -2
- package/updates.d.ts +4 -0
- package/updates.js +56 -14
- package/utils.d.ts +16 -4
- package/utils.js +214 -99
- package/vertical.toolbar.svelte +62 -47
- package/vertical.toolbar.svelte.d.ts +2 -2
|
@@ -29,7 +29,7 @@ import History from "@tiptap/extension-history";
|
|
|
29
29
|
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
30
30
|
import { getAttributes } from "@tiptap/core";
|
|
31
31
|
import { data_tick_store, contextItemsStore, contextTypesStore, onErrorShowAlert, pushToolsActionsOperations, popToolsActionsOperations, fabHiddenDueToPopup } from "../../stores.js";
|
|
32
|
-
import {
|
|
32
|
+
import { setjItemProperty, pushChanges } from "../../updates.js";
|
|
33
33
|
import { isDeviceSmallerThan, parseWidthDirective, refreshToolbarOperations, UI } from "../../utils.js";
|
|
34
34
|
import Palette from "./internal/palette.svelte";
|
|
35
35
|
import {
|
|
@@ -65,7 +65,6 @@ export let a = "";
|
|
|
65
65
|
export let context = "";
|
|
66
66
|
export let typename = "";
|
|
67
67
|
export let compact = false;
|
|
68
|
-
export let onSingleChange = void 0;
|
|
69
68
|
export let onApplyChanges = void 0;
|
|
70
69
|
export let onFocusCb = void 0;
|
|
71
70
|
export let onBlurCb = void 0;
|
|
@@ -73,7 +72,6 @@ export let onAddImage = void 0;
|
|
|
73
72
|
export let onRemoveImage = void 0;
|
|
74
73
|
export let onLinkClick = void 0;
|
|
75
74
|
export let c = "";
|
|
76
|
-
export let pushChangesImmediately = true;
|
|
77
75
|
export let chat = void 0;
|
|
78
76
|
export let readOnly = false;
|
|
79
77
|
export let extraFrontPaletteCommands = [];
|
|
@@ -602,7 +600,7 @@ onMount(() => {
|
|
|
602
600
|
editable: !readOnly,
|
|
603
601
|
editorProps: {
|
|
604
602
|
attributes: {
|
|
605
|
-
class: `${cs} ${appearance_class}
|
|
603
|
+
class: `${cs} ${appearance_class} ${additional_class} whitespace-pre-wrap focus:outline-none`
|
|
606
604
|
}
|
|
607
605
|
},
|
|
608
606
|
element: editorElement,
|
|
@@ -660,10 +658,7 @@ onMount(() => {
|
|
|
660
658
|
if (wasContentChanged) {
|
|
661
659
|
hasChangedValue = true;
|
|
662
660
|
changedValue = editor2.getHTML();
|
|
663
|
-
|
|
664
|
-
onSingleChange(changedValue);
|
|
665
|
-
else
|
|
666
|
-
logChanges();
|
|
661
|
+
logChanges();
|
|
667
662
|
handleImagesChanges(transaction);
|
|
668
663
|
}
|
|
669
664
|
refreshToolbarOperations();
|
|
@@ -738,18 +733,13 @@ function saveData() {
|
|
|
738
733
|
return true;
|
|
739
734
|
} else if (item && a) {
|
|
740
735
|
logChanges();
|
|
741
|
-
|
|
742
|
-
pushChanges(refreshToolbarOperations);
|
|
736
|
+
pushChanges(refreshToolbarOperations);
|
|
743
737
|
return true;
|
|
744
738
|
}
|
|
745
739
|
return false;
|
|
746
740
|
}
|
|
747
741
|
function logChanges() {
|
|
748
|
-
item
|
|
749
|
-
if (typename)
|
|
750
|
-
informModification(item, a, typename);
|
|
751
|
-
else
|
|
752
|
-
informModification(item, a);
|
|
742
|
+
setjItemProperty(item, a, changedValue);
|
|
753
743
|
}
|
|
754
744
|
let palette = null;
|
|
755
745
|
let is_command_palette_visible = false;
|
|
@@ -1052,50 +1042,50 @@ export function setCursorPos(num) {
|
|
|
1052
1042
|
editor.commands.focus(num);
|
|
1053
1043
|
}
|
|
1054
1044
|
const paletteMarksCommands = () => [
|
|
1055
|
-
{ caption: i18n({ en: "Bold", es: "Negrita", pl: "Pogrubiony" }), description: "Marks text as bolded", tags: "strong,bold",
|
|
1056
|
-
{ caption: i18n({ en: "Italic", es: "Cursiva", pl: "Kursywa" }), description: "Marks text as italic", tags: "italic,em",
|
|
1057
|
-
{ caption: i18n({ en: "Underline", es: "Subrayar", pl: "Podkre\u015Blenie" }), description: "Marks text as underlined", tags: "under",
|
|
1058
|
-
{ caption: i18n({ en: "Strikethrough", es: "Tachado", pl: "Przekre\u015Blenie" }), description: "Marks text as strikethrough", tags: "strike",
|
|
1045
|
+
{ caption: i18n({ en: "Bold", es: "Negrita", pl: "Pogrubiony" }), description: "Marks text as bolded", tags: "strong,bold", mricon: "bold", on_choice: makeBold, is_active: () => editor?.isActive("bold") },
|
|
1046
|
+
{ caption: i18n({ en: "Italic", es: "Cursiva", pl: "Kursywa" }), description: "Marks text as italic", tags: "italic,em", mricon: "italic", on_choice: makeItalic, is_active: () => editor?.isActive("italic") },
|
|
1047
|
+
{ caption: i18n({ en: "Underline", es: "Subrayar", pl: "Podkre\u015Blenie" }), description: "Marks text as underlined", tags: "under", mricon: "underline", on_choice: makeUnderline, is_active: () => editor?.isActive("underline") },
|
|
1048
|
+
{ caption: i18n({ en: "Strikethrough", es: "Tachado", pl: "Przekre\u015Blenie" }), description: "Marks text as strikethrough", tags: "strike", mricon: "strikethrough", on_choice: makeStrikethrough, is_active: () => editor?.isActive("strike") }
|
|
1059
1049
|
];
|
|
1060
1050
|
const paletteStylesCommands = () => [
|
|
1061
|
-
{ caption: i18n({ en: "Heading 1", es: "T\xEDtulo 1", pl: "Nag\u0142\xF3wek 1" }), description: "Description heading", tags: "h1,head",
|
|
1051
|
+
{ caption: i18n({ en: "Heading 1", es: "T\xEDtulo 1", pl: "Nag\u0142\xF3wek 1#" }), description: "Description heading", tags: "h1,head", mricon: "heading-1", on_choice: (range) => {
|
|
1062
1052
|
if (range)
|
|
1063
1053
|
editor.chain().focus().deleteRange(range).setHeading({ level: 1 }).run();
|
|
1064
1054
|
else
|
|
1065
1055
|
editor.chain().focus().setHeading({ level: 1 }).run();
|
|
1066
1056
|
}, is_active: () => editor?.isActive("heading", { level: 1 }) },
|
|
1067
|
-
{ caption: i18n({ en: "Heading 2", es: "T\xEDtulo 2", pl: "Nag\u0142\xF3wek 2" }), description: "Secondary heading", tags: "h2,head",
|
|
1057
|
+
{ caption: i18n({ en: "Heading 2", es: "T\xEDtulo 2", pl: "Nag\u0142\xF3wek 2" }), description: "Secondary heading", tags: "h2,head", mricon: "heading-2", on_choice: (range) => {
|
|
1068
1058
|
if (range)
|
|
1069
1059
|
editor.chain().focus().deleteRange(range).setHeading({ level: 2 }).run();
|
|
1070
1060
|
else
|
|
1071
1061
|
editor.chain().focus().setHeading({ level: 2 }).run();
|
|
1072
1062
|
}, is_active: () => editor?.isActive("heading", { level: 2 }) },
|
|
1073
|
-
{ caption: i18n({ en: "Heading 3", es: "T\xEDtulo 3", pl: "Nag\u0142\xF3wek 3" }), description: "Secondary heading", tags: "h3,head",
|
|
1063
|
+
{ caption: i18n({ en: "Heading 3", es: "T\xEDtulo 3", pl: "Nag\u0142\xF3wek 3" }), description: "Secondary heading", tags: "h3,head", mricon: "heading-3", on_choice: (range) => {
|
|
1074
1064
|
if (range)
|
|
1075
1065
|
editor.chain().focus().deleteRange(range).setHeading({ level: 3 }).run();
|
|
1076
1066
|
else
|
|
1077
1067
|
editor.chain().focus().setHeading({ level: 3 }).run();
|
|
1078
1068
|
}, is_active: () => editor?.isActive("heading", { level: 3 }) },
|
|
1079
|
-
{ caption: i18n({ en: "Heading 4", es: "T\xEDtulo 4", pl: "Nag\u0142\xF3wek 4" }), description: "Secondary heading", tags: "h4,head",
|
|
1069
|
+
{ caption: i18n({ en: "Heading 4", es: "T\xEDtulo 4", pl: "Nag\u0142\xF3wek 4" }), description: "Secondary heading", tags: "h4,head", mricon: "heading-4", on_choice: (range) => {
|
|
1080
1070
|
if (range)
|
|
1081
1071
|
editor.chain().focus().deleteRange(range).setHeading({ level: 4 }).run();
|
|
1082
1072
|
else
|
|
1083
1073
|
editor.chain().focus().setHeading({ level: 4 }).run();
|
|
1084
1074
|
}, is_active: () => editor?.isActive("heading", { level: 4 }) },
|
|
1085
|
-
{ caption: i18n({ en: "Normal", es: "Normal", pl: "Normalny" }), description: "This is normal text style", tags: "paragraph,text,normal",
|
|
1075
|
+
{ caption: i18n({ en: "Normal", es: "Normal", pl: "Normalny" }), description: "This is normal text style", tags: "paragraph,text,normal", mricon: "pilcrow", on_choice: (range) => {
|
|
1086
1076
|
if (range)
|
|
1087
1077
|
editor.chain().focus().deleteRange(range).setParagraph().run();
|
|
1088
1078
|
else
|
|
1089
1079
|
editor.chain().focus().setParagraph().run();
|
|
1090
1080
|
}, is_active: () => editor?.isActive("paragraph") },
|
|
1091
|
-
{ caption: i18n({ en: "Code", es: "C\xF3digo", pl: "Kod" }), description: "Source code monospace text", tags: "code",
|
|
1081
|
+
{ caption: i18n({ en: "Code", es: "C\xF3digo", pl: "Kod" }), description: "Source code monospace text", tags: "code", mricon: "code-xml", on_choice: (range) => {
|
|
1092
1082
|
if (range)
|
|
1093
1083
|
editor.chain().focus().deleteRange(range).setCodeBlock().run();
|
|
1094
1084
|
else
|
|
1095
1085
|
editor.chain().focus().setCodeBlock().run();
|
|
1096
1086
|
}, is_active: () => editor?.isActive("CodeBlock") },
|
|
1097
1087
|
// { caption: 'Comment', description: 'With this you can comment the above paragraph', icon: FaComment, on_choice: (range) => { if(range) editor.chain().focus().deleteRange(range).setAsComment().run(); else editor.chain().focus().setAsComment().run() }, is_active: () => editor?.isActive('CommentBlock') } ,
|
|
1098
|
-
{ caption: i18n({ en: "Quote", es: "Cita", pl: "Cytat" }), description: "To quote someone", tags: "quote",
|
|
1088
|
+
{ caption: i18n({ en: "Quote", es: "Cita", pl: "Cytat" }), description: "To quote someone", tags: "quote", mricon: "text-quote", on_choice: (range) => {
|
|
1099
1089
|
if (range)
|
|
1100
1090
|
editor.chain().focus().deleteRange(range).setAsQuote().run();
|
|
1101
1091
|
else
|
|
@@ -1103,7 +1093,7 @@ const paletteStylesCommands = () => [
|
|
|
1103
1093
|
}, is_active: () => editor?.isActive("QuoteBlock") },
|
|
1104
1094
|
// { caption: 'Warning', description: 'An important warning to above paragraph', icon: FaExclamationTriangle, on_choice: (range) => { if(range) editor.chain().focus().deleteRange(range).setAsWarning().run(); else editor.chain().focus().setAsWarning().run() }, is_active: () => editor?.isActive('WarningBlock') } ,
|
|
1105
1095
|
// { caption: 'Info', description: 'An important info about above paragraph', icon: FaInfo, on_choice: (range) => { if(range) editor.chain().focus().deleteRange(range).setAsInfo().run(); else editor.chain().focus().setAsInfo().run() }, is_active: () => editor?.isActive('InfoBlock') },
|
|
1106
|
-
{ caption: i18n({ en: "BulletList", es: "Lista con vi\xF1etas", pl: "Lista punktowana" }), description: "Unordered list of items", tags: "bullet",
|
|
1096
|
+
{ caption: i18n({ en: "BulletList", es: "Lista con vi\xF1etas", pl: "Lista punktowana" }), description: "Unordered list of items", tags: "bullet", mricon: "list", on_choice: (range) => {
|
|
1107
1097
|
if (range)
|
|
1108
1098
|
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
1109
1099
|
else
|
|
@@ -1111,19 +1101,19 @@ const paletteStylesCommands = () => [
|
|
|
1111
1101
|
}, is_active: () => editor?.isActive("bulletList") }
|
|
1112
1102
|
];
|
|
1113
1103
|
const paletteInsertCommands = () => [
|
|
1114
|
-
{ caption: i18n({ en: "Image", es: "Imagen", pl: "Obraz" }), description: "Add image to document", tags: "img,picture",
|
|
1104
|
+
{ caption: i18n({ en: "Image", es: "Imagen", pl: "Obraz" }), description: "Add image to document", tags: "img,picture", mricon: "image", on_choice: (range) => {
|
|
1115
1105
|
if (range)
|
|
1116
1106
|
editor.chain().focus().deleteRange(range).run();
|
|
1117
1107
|
if (onAddImage)
|
|
1118
1108
|
onAddImage(onAddedImageReady);
|
|
1119
1109
|
} },
|
|
1120
|
-
{ caption: i18n({ en: "Table", es: "Tabla", pl: "Tabela" }), description: "Table", tags: "table",
|
|
1110
|
+
{ caption: i18n({ en: "Table", es: "Tabla", pl: "Tabela" }), description: "Table", tags: "table", mricon: "table", on_choice: (range) => {
|
|
1121
1111
|
if (range)
|
|
1122
1112
|
editor.chain().focus().deleteRange(range).insertTable().run();
|
|
1123
1113
|
else
|
|
1124
1114
|
editor.chain().focus().insertTable().run();
|
|
1125
1115
|
}, is_active: () => editor?.isActive("table") },
|
|
1126
|
-
{ caption: i18n({ en: "Horizontal rule", es: "Regla horizontal", pl: "Pozioma linia" }), description: "Add horizonal role", tags: "hr,line",
|
|
1116
|
+
{ caption: i18n({ en: "Horizontal rule", es: "Regla horizontal", pl: "Pozioma linia" }), description: "Add horizonal role", tags: "hr,line", mricon: "minus", on_choice: (range) => {
|
|
1127
1117
|
if (range)
|
|
1128
1118
|
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
1129
1119
|
else
|
|
@@ -1266,7 +1256,7 @@ function getPaletteCommands() {
|
|
|
1266
1256
|
|
|
1267
1257
|
|
|
1268
1258
|
|
|
1269
|
-
<div on:click
|
|
1259
|
+
<div on:click
|
|
1270
1260
|
bind:this={editorElement} />
|
|
1271
1261
|
|
|
1272
1262
|
<Palette commands={getPaletteCommands()}
|
|
@@ -9,7 +9,6 @@ declare const __propDef: {
|
|
|
9
9
|
context?: string | undefined;
|
|
10
10
|
typename?: string | undefined;
|
|
11
11
|
compact?: boolean | undefined;
|
|
12
|
-
onSingleChange?: Function | undefined;
|
|
13
12
|
onApplyChanges?: Function | undefined;
|
|
14
13
|
onFocusCb?: undefined;
|
|
15
14
|
onBlurCb?: undefined;
|
|
@@ -17,7 +16,6 @@ declare const __propDef: {
|
|
|
17
16
|
onRemoveImage?: undefined;
|
|
18
17
|
onLinkClick?: Function | undefined;
|
|
19
18
|
c?: string | undefined;
|
|
20
|
-
pushChangesImmediately?: boolean | undefined;
|
|
21
19
|
chat?: object | undefined;
|
|
22
20
|
readOnly?: boolean | undefined;
|
|
23
21
|
extraFrontPaletteCommands?: any[] | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<svelte:options accessors={true}/>
|
|
2
2
|
<script>import Icon from "../../icon.svelte";
|
|
3
|
+
import Ricon from "../../r.icon.svelte";
|
|
3
4
|
export let id;
|
|
4
5
|
export let cmd;
|
|
5
6
|
export let width_px = 400;
|
|
@@ -31,17 +32,18 @@ export function scrollToView() {
|
|
|
31
32
|
</script>
|
|
32
33
|
|
|
33
34
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
34
|
-
<div id={id} class="w-full text-left flex flew-row cursor-context-menu {active_class} {cl}"
|
|
35
|
-
on:click
|
|
35
|
+
<div id={id} class="w-full text-left flex flew-row justify-between cursor-context-menu {active_class} {cl}"
|
|
36
|
+
on:click
|
|
36
37
|
on:mousemove
|
|
37
38
|
on:mousedown
|
|
38
39
|
bind:this={element}>
|
|
40
|
+
|
|
41
|
+
|
|
39
42
|
<div class="flex items-center justify-center space-x-10 px-4 py-2 ml-12 sm:ml-0" >
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
<Ricon icon = {cmd.mricon} s/>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="py-2 grow">
|
|
46
|
+
<span>{cmd.caption}</span>
|
|
43
47
|
</div>
|
|
44
|
-
|
|
45
|
-
<h4>{cmd.caption}</h4>
|
|
46
|
-
</div>
|
|
47
48
|
|
|
49
|
+
</div>
|
|
@@ -273,7 +273,7 @@ function isRowActive(cmd) {
|
|
|
273
273
|
</script>
|
|
274
274
|
|
|
275
275
|
{#if isToolbox}
|
|
276
|
-
<menu class=" bg-white dark:bg-stone-800 text-stone-500 dark:text-stone-400 rounded-lg border border-stone-200 dark:border-stone-700 shadow-md
|
|
276
|
+
<menu class=" bg-white dark:bg-stone-800 text-stone-500 dark:text-stone-400 rounded-lg border border-stone-200 dark:border-stone-700 shadow-md
|
|
277
277
|
z-40
|
|
278
278
|
flex flex-row flex-nowrap fixed"
|
|
279
279
|
style={css_style}
|
|
@@ -291,12 +291,12 @@ function isRowActive(cmd) {
|
|
|
291
291
|
{@const active=isRowActive(cmd)}
|
|
292
292
|
<button class="font-medium m-0 py-2 mr-4 text-lg sm:text-sm w-full text-left flex flex-row cursor-context-menu focus:outline-none"
|
|
293
293
|
class:dark:bg-stone-700={active}
|
|
294
|
-
class:bg-stone-
|
|
294
|
+
class:bg-stone-200={active}
|
|
295
295
|
{id}
|
|
296
296
|
bind:this={rows[idx]}
|
|
297
297
|
on:click={ () => { execute_mouse_click(cmd.on_choice); }}
|
|
298
298
|
on:mousedown={buttonMousedown}>
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
<div class="flex items-center justify-center mt-1 sm:mt-0.5" style:width={`${icon_placeholder_size*0.25}rem`}>
|
|
301
301
|
{#if cmd.icon}
|
|
302
302
|
{@const cc = mobile ? 7 : 6}
|
|
@@ -314,7 +314,7 @@ function isRowActive(cmd) {
|
|
|
314
314
|
<!--div hidden={!visible}-->
|
|
315
315
|
|
|
316
316
|
<div hidden={!visible}
|
|
317
|
-
class=" bg-white dark:bg-stone-800 text-stone-500 dark:text-stone-400 rounded-lg border border-stone-200 dark:border-stone-700 shadow-md
|
|
317
|
+
class=" bg-white dark:bg-stone-800 text-stone-500 dark:text-stone-400 rounded-lg border border-stone-200 dark:border-stone-700 shadow-md
|
|
318
318
|
z-40 fixed"
|
|
319
319
|
id="__hd_FormattingPalette"
|
|
320
320
|
bind:this={paletteElement}
|
|
@@ -324,7 +324,7 @@ function isRowActive(cmd) {
|
|
|
324
324
|
{#key closeButtonPos}
|
|
325
325
|
<button class=" text-stone-800 dark:text-stone-400
|
|
326
326
|
fixed w-6 h-6 flex items-center justify-center
|
|
327
|
-
focus:outline-none font-medium text-sm text-center"
|
|
327
|
+
focus:outline-none font-medium text-sm text-center"
|
|
328
328
|
style={closeButtonPos}
|
|
329
329
|
on:mousedown={buttonMousedown}
|
|
330
330
|
on:click={ () => hide() }> <!-- rounded-full text-stone-500 bg-stone-200/70 hover:bg-stone-200 dark:text-stone-500 dark:bg-stone-700/80 dark:hover:bg-stone-700 focus:ring-4 focus:ring-blue-300 dark:focus:ring-blue-800 -->
|
|
@@ -362,7 +362,6 @@ function isRowActive(cmd) {
|
|
|
362
362
|
|
|
363
363
|
</div>
|
|
364
364
|
<!---/div-->
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
{/if}
|
|
368
365
|
|
|
366
|
+
|
|
367
|
+
{/if}
|
|
@@ -62,8 +62,8 @@ let appearance_class;
|
|
|
62
62
|
if (compact)
|
|
63
63
|
appearance_class = "";
|
|
64
64
|
else
|
|
65
|
-
appearance_class = `bg-stone-50 border border-stone-300 rounded-md
|
|
66
|
-
dark:bg-stone-700 dark:border-stone-600
|
|
65
|
+
appearance_class = `bg-stone-50 border border-stone-300 rounded-md
|
|
66
|
+
dark:bg-stone-700 dark:border-stone-600
|
|
67
67
|
px-2.5`;
|
|
68
68
|
let last_tick = -1;
|
|
69
69
|
$: {
|
|
@@ -994,21 +994,21 @@ function saveData() {
|
|
|
994
994
|
return false;
|
|
995
995
|
}
|
|
996
996
|
let commands = [
|
|
997
|
-
{ caption: "Normal", description: "This is normal text style", tags: "text",
|
|
997
|
+
{ caption: "Normal", description: "This is normal text style", tags: "text", mricon: "pilcrow", on_choice: () => {
|
|
998
998
|
do_format("p", "");
|
|
999
999
|
} },
|
|
1000
1000
|
// { caption: 'Heading 1', description: 'Big section heading', tags: 'h1', icon: FaHead, icon_size: 6, on_choice: () => { do_format('h2', '') } } ,
|
|
1001
1001
|
// { caption: 'Heading 2', description: 'Medium section heading', tags: 'h2', icon: FaHead, icon_size: 5, on_choice: () => { do_format('h3', '') } } ,
|
|
1002
1002
|
// { caption: 'Heading 3', description: 'Small section heading', tags: 'h3', icon: FaHead, icon_size: 4, on_choice: () => { do_format('h4', '') } } ,
|
|
1003
|
-
{ caption: "Heading 1", description: "Description heading", tags: "h1",
|
|
1003
|
+
{ caption: "Heading 1", description: "Description heading", tags: "h1", mricon: "heading-1", on_choice: () => {
|
|
1004
1004
|
do_format("h1", "");
|
|
1005
1005
|
} },
|
|
1006
|
-
{ caption: "Heading 2", description: "Description heading", tags: "h2",
|
|
1006
|
+
{ caption: "Heading 2", description: "Description heading", tags: "h2", mricon: "heading-2", on_choice: () => {
|
|
1007
1007
|
do_format("h2", "");
|
|
1008
1008
|
} },
|
|
1009
1009
|
// { caption: 'Heading 2', description: 'Medium description heading', tags: 'h3', icon: FaHead, icon_size: 5, on_choice: () => { do_format('h3', '') } } ,
|
|
1010
1010
|
// { caption: 'Heading 3', description: 'Small description heading', tags: 'h4', icon: FaHead, icon_size: 4, on_choice: () => { do_format('h4', '') } } ,
|
|
1011
|
-
{ caption: "Code", description: "Source code monospace text",
|
|
1011
|
+
{ caption: "Code", description: "Source code monospace text", mricon: "code-xml", on_choice: () => {
|
|
1012
1012
|
do_format("p", "ml-6 text-sm font-mono break-normal text-pink-700 dark:text-pink-600");
|
|
1013
1013
|
} },
|
|
1014
1014
|
{ caption: "Comment", description: "With this you can comment the above paragraph", icon: FaComments, on_choice: () => {
|
|
@@ -1026,12 +1026,12 @@ let commands = [
|
|
|
1026
1026
|
];
|
|
1027
1027
|
</script>
|
|
1028
1028
|
|
|
1029
|
-
<div contenteditable="true"
|
|
1029
|
+
<div contenteditable="true"
|
|
1030
1030
|
bind:this={editable_div}
|
|
1031
1031
|
on:keyup={on_keyup}
|
|
1032
1032
|
on:keydown={on_keydown}
|
|
1033
1033
|
on:mouseup={on_mouseup}
|
|
1034
|
-
class="{cs} {appearance_class}
|
|
1034
|
+
class="{cs} {appearance_class}
|
|
1035
1035
|
prose prose-base sm:prose-base dark:prose-invert {additional_class} overflow-y-auto whitespace-pre-wrap"
|
|
1036
1036
|
on:blur={on_blur}
|
|
1037
1037
|
on:focus={on_focus}
|
|
@@ -1041,8 +1041,8 @@ let commands = [
|
|
|
1041
1041
|
{@html value}
|
|
1042
1042
|
</div>
|
|
1043
1043
|
|
|
1044
|
-
<Palette commands={commands}
|
|
1045
|
-
bind:this={palette}
|
|
1044
|
+
<Palette commands={commands}
|
|
1045
|
+
bind:this={palette}
|
|
1046
1046
|
on:palette_shown={on_palette_shown}
|
|
1047
1047
|
on:palette_hidden={on_palette_hidden}
|
|
1048
1048
|
on:palette_mouse_click={on_palette_mouse_click}/>
|
|
@@ -12,7 +12,7 @@ export let context = "";
|
|
|
12
12
|
export let typename = "";
|
|
13
13
|
export let inserter = false;
|
|
14
14
|
export let c = "";
|
|
15
|
-
export let pushChangesImmediately =
|
|
15
|
+
export let pushChangesImmediately = false;
|
|
16
16
|
let is_table_component = getContext("rIs-table-component");
|
|
17
17
|
let item = null;
|
|
18
18
|
let input_box_is_active = false;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} InputEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} InputSlots */
|
|
4
4
|
export default class Input extends SvelteComponentTyped<{
|
|
5
|
-
i?: null | undefined;
|
|
6
5
|
s?: string | undefined;
|
|
6
|
+
i?: null | undefined;
|
|
7
7
|
placeholder?: string | undefined;
|
|
8
8
|
fld?: string | undefined;
|
|
9
9
|
}, {
|
|
@@ -16,8 +16,8 @@ export type InputSlots = typeof __propDef.slots;
|
|
|
16
16
|
import { SvelteComponentTyped } from "svelte";
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
|
-
i?: null | undefined;
|
|
20
19
|
s?: string | undefined;
|
|
20
|
+
i?: null | undefined;
|
|
21
21
|
placeholder?: string | undefined;
|
|
22
22
|
fld?: string | undefined;
|
|
23
23
|
};
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
export default class Inputbox extends SvelteComponentTyped<{
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
a?: string | undefined;
|
|
7
|
-
label?: string | undefined;
|
|
8
|
-
s?: string | undefined;
|
|
9
|
-
self?: null | undefined;
|
|
10
|
-
invalid?: boolean | undefined;
|
|
11
|
-
placeholder?: string | undefined;
|
|
12
7
|
context?: string | undefined;
|
|
8
|
+
self?: null | undefined;
|
|
13
9
|
typename?: string | undefined;
|
|
14
10
|
c?: string | undefined;
|
|
11
|
+
invalid?: boolean | undefined;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
s?: string | undefined;
|
|
14
|
+
placeholder?: string | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
15
16
|
pushChangesImmediately?: boolean | undefined;
|
|
16
17
|
itype?: string | undefined;
|
|
17
18
|
val?: string | undefined;
|
|
18
|
-
required?: boolean | undefined;
|
|
19
19
|
readonly?: boolean | undefined;
|
|
20
20
|
validation?: any;
|
|
21
21
|
validate?: (() => boolean) | undefined;
|
|
@@ -36,18 +36,18 @@ declare const __propDef: {
|
|
|
36
36
|
props: {
|
|
37
37
|
[x: string]: any;
|
|
38
38
|
a?: string | undefined;
|
|
39
|
-
label?: string | undefined;
|
|
40
|
-
s?: string | undefined;
|
|
41
|
-
self?: null | undefined;
|
|
42
|
-
invalid?: boolean | undefined;
|
|
43
|
-
placeholder?: string | undefined;
|
|
44
39
|
context?: string | undefined;
|
|
40
|
+
self?: null | undefined;
|
|
45
41
|
typename?: string | undefined;
|
|
46
42
|
c?: string | undefined;
|
|
43
|
+
invalid?: boolean | undefined;
|
|
44
|
+
label?: string | undefined;
|
|
45
|
+
s?: string | undefined;
|
|
46
|
+
placeholder?: string | undefined;
|
|
47
|
+
required?: boolean | undefined;
|
|
47
48
|
pushChangesImmediately?: boolean | undefined;
|
|
48
49
|
itype?: string | undefined;
|
|
49
50
|
val?: string | undefined;
|
|
50
|
-
required?: boolean | undefined;
|
|
51
51
|
readonly?: boolean | undefined;
|
|
52
52
|
validation?: any;
|
|
53
53
|
validate?: (() => boolean) | undefined;
|
|
@@ -10,7 +10,8 @@ import {
|
|
|
10
10
|
showFloatingToolbar,
|
|
11
11
|
informModification,
|
|
12
12
|
pushChanges,
|
|
13
|
-
startEditing
|
|
13
|
+
startEditing,
|
|
14
|
+
Ricon
|
|
14
15
|
} from "../../..";
|
|
15
16
|
import { FaRegFileAlt } from "svelte-icons/fa";
|
|
16
17
|
import Properties from "./kanban.props.svelte";
|
|
@@ -24,7 +25,7 @@ $:
|
|
|
24
25
|
$:
|
|
25
26
|
selectedClass = isCardSelected ? "!border-blue-300 dark:!border-blue-300/50" : "";
|
|
26
27
|
$:
|
|
27
|
-
focusedClass = isCardActive ? "bg-stone-
|
|
28
|
+
focusedClass = isCardActive ? "bg-stone-200 dark:bg-stone-700 outline outline-8 outline-stone-200 dark:outline-stone-700 ring-1 ring-offset-8 ring-stone-300 dark:ring-stone-700" : "";
|
|
28
29
|
$:
|
|
29
30
|
isLinkLike = isCardActive && (!!definition.titleHref || !!definition.titleHrefFunc);
|
|
30
31
|
function calculate_active(...args) {
|
|
@@ -175,10 +176,9 @@ function showAttachementIcon() {
|
|
|
175
176
|
|
|
176
177
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
177
178
|
|
|
178
|
-
<
|
|
179
|
-
class:cursor-pointer={!isCardActive}
|
|
179
|
+
<figure class="{selectedClass} {focusedClass} "
|
|
180
180
|
on:click={activate}
|
|
181
|
-
use:selectable={item}
|
|
181
|
+
use:selectable={item}
|
|
182
182
|
bind:this={card}>
|
|
183
183
|
|
|
184
184
|
<!-- -->
|
|
@@ -189,7 +189,7 @@ function showAttachementIcon() {
|
|
|
189
189
|
bind:this={moveButton}>
|
|
190
190
|
<FaArrowsAlt/>
|
|
191
191
|
</button>
|
|
192
|
-
|
|
192
|
+
|
|
193
193
|
{#if $$slots.kanbanCardTopProps}
|
|
194
194
|
<div class="ml-auto flex flex-row gap-2">
|
|
195
195
|
<slot name="kanbanCardTopProps" element={item}/>
|
|
@@ -198,37 +198,31 @@ function showAttachementIcon() {
|
|
|
198
198
|
</section-->
|
|
199
199
|
|
|
200
200
|
{#if $$slots.kanbanCardTopProps}
|
|
201
|
-
<section class="flex flex-row justify-between">
|
|
202
201
|
<slot name="kanbanCardTopProps" element={item}/>
|
|
203
|
-
</section>
|
|
204
202
|
{/if}
|
|
205
203
|
<Properties position={KanbanCardTop} {item} bind:this={topProps}/>
|
|
206
|
-
|
|
204
|
+
|
|
207
205
|
|
|
208
206
|
{#if isCardActive}
|
|
209
207
|
{@const hasOpen = !!definition.onOpen}
|
|
210
208
|
{@const canOpen = isLinkLike || hasOpen}
|
|
211
|
-
{@const openableClass = canOpen ? "sm:hover:cursor-pointer underline" : ""}
|
|
212
209
|
{@const showIcon = showAttachementIcon()}
|
|
213
210
|
<!-- whitespace-nowrap overflow-clip -->
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
use:editable={{
|
|
218
|
-
action: (text) => onTitleChanged(text),
|
|
211
|
+
<h4 class = "font-semibold relative"
|
|
212
|
+
use:editable={{
|
|
213
|
+
action: (text) => onTitleChanged(text),
|
|
219
214
|
active: false,
|
|
220
215
|
readonly: definition.titleReadOnly,
|
|
221
216
|
onFinish: (d) => {titleElement.blur()},
|
|
222
217
|
onSoftEnter: async (text) => { onTitleChanged(text); await editProperty('Summary') }
|
|
223
218
|
}}
|
|
224
219
|
use:conditionalClick={{
|
|
225
|
-
condition: hasOpen,
|
|
220
|
+
condition: hasOpen,
|
|
226
221
|
callback: performOpen}}
|
|
227
222
|
bind:this={titleElement}>
|
|
228
|
-
|
|
229
223
|
{#if isLinkLike}
|
|
230
|
-
<a href={getHRef()} use:link>
|
|
231
|
-
{item[definition.titleAttrib]}
|
|
224
|
+
<a class= "font-semibold" href={getHRef()} use:link>
|
|
225
|
+
{item[definition.titleAttrib]}
|
|
232
226
|
</a>
|
|
233
227
|
{:else}
|
|
234
228
|
{item[definition.titleAttrib]}
|
|
@@ -236,32 +230,27 @@ function showAttachementIcon() {
|
|
|
236
230
|
|
|
237
231
|
|
|
238
232
|
{#if showIcon}
|
|
239
|
-
<span id="attachement" class="absolute top-1 right-0
|
|
240
|
-
<
|
|
233
|
+
<span id="attachement" class="absolute top-1 right-0">
|
|
234
|
+
<Ricon icon="file-text" xs/>
|
|
241
235
|
</span>
|
|
242
236
|
{/if}
|
|
243
|
-
</h3>
|
|
244
237
|
|
|
238
|
+
</h4>
|
|
245
239
|
<!--Tooltip type='light' triggeredBy="#attachement">Has attachement</Tooltip-->
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
249
243
|
{:else}
|
|
250
244
|
<!-- whitespace-nowrap overflow-clip -->
|
|
251
|
-
<
|
|
252
|
-
sm:text-base sm:font-semibold
|
|
253
|
-
w-full sm:flex-none
|
|
254
|
-
relative">
|
|
245
|
+
<h4>
|
|
255
246
|
{item[definition.titleAttrib]}
|
|
256
247
|
|
|
257
|
-
</
|
|
248
|
+
</h4>
|
|
258
249
|
{/if}
|
|
259
250
|
|
|
260
251
|
|
|
261
252
|
{#if $$slots.kanbanCardMiddleProps}
|
|
262
|
-
<section class="w-full flex flex-row">
|
|
263
253
|
<slot name="kanbanCardMiddleProps" element={item} />
|
|
264
|
-
</section>
|
|
265
254
|
{/if}
|
|
266
255
|
|
|
267
256
|
<Properties position={KanbanCardMiddle} {item} bind:this={middleProps}/>
|
|
@@ -269,27 +258,18 @@ function showAttachementIcon() {
|
|
|
269
258
|
{#if item[definition.summaryAttrib] || summaryPlaceholder}
|
|
270
259
|
{#key item[definition.summaryAttrib]}
|
|
271
260
|
{#if isCardActive}
|
|
272
|
-
<
|
|
273
|
-
|
|
274
|
-
text-stone-600 dark:text-stone-400
|
|
275
|
-
|
|
276
|
-
overflow-hidden"
|
|
277
|
-
use:editable={{
|
|
278
|
-
action: (text) => onSummaryChanged(text),
|
|
261
|
+
<figcaption use:editable={{
|
|
262
|
+
action: (text) => onSummaryChanged(text),
|
|
279
263
|
active: true,
|
|
280
264
|
readonly: definition.summaryReadOnly,
|
|
281
265
|
onFinish: (d) => {summaryPlaceholder = false}}}
|
|
282
266
|
bind:this={summaryElement}>
|
|
283
267
|
{item[definition.summaryAttrib]}
|
|
284
|
-
</
|
|
268
|
+
</figcaption>
|
|
285
269
|
{:else}
|
|
286
|
-
<
|
|
287
|
-
|
|
288
|
-
text-stone-600 dark:text-stone-400
|
|
289
|
-
|
|
290
|
-
overflow-hidden">
|
|
270
|
+
<figcaption>
|
|
291
271
|
{item[definition.summaryAttrib]}
|
|
292
|
-
</
|
|
272
|
+
</figcaption>
|
|
293
273
|
{/if}
|
|
294
274
|
{/key}
|
|
295
275
|
{/if}
|
|
@@ -299,4 +279,4 @@ function showAttachementIcon() {
|
|
|
299
279
|
{/if}
|
|
300
280
|
|
|
301
281
|
<Properties position={KanbanCardBottom} {item} bind:this={bottomProps}/>
|
|
302
|
-
</
|
|
282
|
+
</figure>
|