@nyaruka/temba-components 0.156.3 → 0.156.5
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/CHANGELOG.md +21 -0
- package/dist/temba-components.js +918 -807
- package/dist/temba-components.js.map +1 -1
- package/package.json +1 -1
- package/src/flow/CanvasNode.ts +102 -20
- package/src/flow/Editor.ts +529 -543
- package/src/flow/EditorToolbar.ts +566 -0
- package/src/flow/StickyNote.ts +29 -5
- package/src/flow/actions/set_contact_language.ts +4 -13
- package/src/flow/utils.ts +11 -0
- package/src/form/select/Select.ts +1 -0
- package/src/list/SortableList.ts +6 -0
- package/temba-modules.ts +2 -0
package/src/list/SortableList.ts
CHANGED
|
@@ -731,6 +731,12 @@ export class SortableList extends RapidElement {
|
|
|
731
731
|
}
|
|
732
732
|
/* c8 ignore stop */
|
|
733
733
|
|
|
734
|
+
/** Show or hide the original element that is being dragged. */
|
|
735
|
+
public setOriginalVisible(visible: boolean): void {
|
|
736
|
+
if (!this.downEle) return;
|
|
737
|
+
this.downEle.style.display = visible ? this.originalDownDisplay : 'none';
|
|
738
|
+
}
|
|
739
|
+
|
|
734
740
|
public render(): TemplateResult {
|
|
735
741
|
return html`
|
|
736
742
|
<div
|
package/temba-modules.ts
CHANGED
|
@@ -56,6 +56,7 @@ import { Toast } from './src/display/Toast';
|
|
|
56
56
|
import { Chat } from './src/display/Chat';
|
|
57
57
|
import { MediaPicker } from './src/form/MediaPicker';
|
|
58
58
|
import { Editor } from './src/flow/Editor';
|
|
59
|
+
import { EditorToolbar } from './src/flow/EditorToolbar';
|
|
59
60
|
import { CanvasNode } from './src/flow/CanvasNode';
|
|
60
61
|
import { StickyNote } from './src/flow/StickyNote';
|
|
61
62
|
import { CanvasMenu } from './src/flow/CanvasMenu';
|
|
@@ -151,6 +152,7 @@ addCustomElement('temba-toast', Toast);
|
|
|
151
152
|
addCustomElement('temba-chat', Chat);
|
|
152
153
|
addCustomElement('temba-media-picker', MediaPicker);
|
|
153
154
|
addCustomElement('temba-flow-editor', Editor);
|
|
155
|
+
addCustomElement('temba-editor-toolbar', EditorToolbar);
|
|
154
156
|
addCustomElement('temba-message-table', MessageTable);
|
|
155
157
|
addCustomElement('temba-node-editor', NodeEditor);
|
|
156
158
|
addCustomElement('temba-flow-node', CanvasNode);
|