@csedl/hotwire-svelte-helpers 1.1.0 → 2.1.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/README.md +19 -5
- package/index.js +3 -3
- package/package.json +10 -2
- package/src/lib/initializers.js +45 -0
- package/src/lib/utils.js +36 -11
- package/src/stimulus/tooltip-controller.js +2 -2
- package/src/svelte/templates/DropdownPanel.svelte +43 -0
- package/src/svelte/templates/Modal.svelte +72 -0
- package/src/lib/config.js +0 -85
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Dropdown with stimulus, based on floating-UI.
|
|
|
9
9
|
- [Ruby Gem: csedl-stimulus-dropdownSvelte](https://gitlab.com/sedl/csedl-stimulus-dropdown)
|
|
10
10
|
- [How we are building a Rails App](https://dev.to/chmich/setup-vite-svelte-inertia-stimulus-bootstrap-foundation-on-rails-7-overview-1bk1)
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Setup
|
|
13
13
|
|
|
14
14
|
```javascript
|
|
15
15
|
import {HotwireSvelteHelpers} from "@csedl/hotwire-svelte-helpers/init"
|
|
@@ -17,11 +17,10 @@ HotwireSvelteHelpers.debug = true
|
|
|
17
17
|
HotwireSvelteHelpers.initializeOverlays()
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
You MUST add the file `<vite-sourcee-code-dir>/config/hotwire-svelte-helpers.js`, with content like:
|
|
21
21
|
|
|
22
22
|
```javascript
|
|
23
|
-
|
|
24
|
-
debug: false,
|
|
23
|
+
export default {
|
|
25
24
|
closeButtonSelector: '.close-button',
|
|
26
25
|
dropdownContentSelector: '.content',
|
|
27
26
|
// when a data-src attribute is added to the panel, the content-tag is replaced by the result of the xhr-response
|
|
@@ -29,12 +28,22 @@ HotwireSvelteHelpers.initializeOverlays({
|
|
|
29
28
|
// same as dropdownContentSelector
|
|
30
29
|
addArrow: true,
|
|
31
30
|
// add element with id #arrow within the panel, on opening
|
|
32
|
-
persistTooltipOnClick: false
|
|
31
|
+
persistTooltipOnClick: false,
|
|
33
32
|
// clicking on the tooltip-label causes the tooltip-panel to persist open
|
|
34
33
|
// this may mostly be helpful for development, so you may make it environment-dependent
|
|
34
|
+
closeButtonSvg: '',
|
|
35
35
|
})
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
But, at least with content:
|
|
39
|
+
|
|
40
|
+
```javascript
|
|
41
|
+
export default {
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The reason for this is that we need to have ssr safe configs.
|
|
46
|
+
|
|
38
47
|
## Example
|
|
39
48
|
|
|
40
49
|
There is a [online example app](https://hotwire-svelte-helpers.sedlmair.ch/)
|
|
@@ -48,6 +57,11 @@ There is a [online example app](https://hotwire-svelte-helpers.sedlmair.ch/)
|
|
|
48
57
|
</div>
|
|
49
58
|
```
|
|
50
59
|
|
|
60
|
+
## Svelte Dropdowns
|
|
61
|
+
|
|
62
|
+
There are some default components included, which can be used to build Svelte Dropdowns.
|
|
63
|
+
The
|
|
64
|
+
|
|
51
65
|
## What it does
|
|
52
66
|
|
|
53
67
|
- When the button is clicked, it toggles the `hide` class on the panel and places the panel using floating-ui.
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { cleanMount, unmountAllDetached } from './src/svelte/cleanMount';
|
|
3
|
-
import {initializeDropdown, openDropdownPanel, getOrSetPanelId, debugLog} from './src/lib/utils.js'
|
|
2
|
+
import { cleanMount, unmountAllDetached } from './src/svelte/cleanMount.js';
|
|
3
|
+
import { initializeDropdown, openDropdownPanel, getOrSetPanelId, debugLog, hotwireSvelteConfig } from './src/lib/utils.js'
|
|
4
4
|
|
|
5
5
|
export {
|
|
6
|
-
cleanMount, unmountAllDetached,
|
|
6
|
+
cleanMount, unmountAllDetached, hotwireSvelteConfig,
|
|
7
7
|
initializeDropdown, openDropdownPanel, getOrSetPanelId, debugLog
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csedl/hotwire-svelte-helpers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Hotwire + Svelte helpers for Rails: Stimulus floating dropdowns/toolips + Svelte global panels/modals + RTurbo-friendly utilities. Build together with the rubygem svelte-on-rails and its npm-package.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,15 @@
|
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
".": "./index.js",
|
|
11
|
-
"./init": "./src/lib/
|
|
11
|
+
"./init": "./src/lib/initializers.js",
|
|
12
|
+
"./DropdownPanel.svelte": {
|
|
13
|
+
"svelte": "./src/svelte/templates/DropdownPanel.svelte",
|
|
14
|
+
"default": "./src/svelte/templates/DropdownPanel.svelte"
|
|
15
|
+
},
|
|
16
|
+
"./Modal.svelte": {
|
|
17
|
+
"svelte": "./src/svelte/templates/Modal.svelte",
|
|
18
|
+
"default": "./src/svelte/templates/Modal.svelte"
|
|
19
|
+
}
|
|
12
20
|
},
|
|
13
21
|
"repository": {
|
|
14
22
|
"type": "git",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {debugLog} from "./utils.js";
|
|
2
|
+
import {Application} from "@hotwired/stimulus"
|
|
3
|
+
import dc from '../stimulus/dropdown-controller'
|
|
4
|
+
import ttc from '../stimulus/tooltip-controller'
|
|
5
|
+
import ppc from '../stimulus/move-panels-controller'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// DEFAULTS
|
|
9
|
+
let _debug = false;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const HotwireSvelteHelpers = {
|
|
15
|
+
|
|
16
|
+
// debug
|
|
17
|
+
|
|
18
|
+
get debug() {
|
|
19
|
+
return _debug;
|
|
20
|
+
},
|
|
21
|
+
set debug(value) {
|
|
22
|
+
if (typeof value !== "boolean") {
|
|
23
|
+
throw new Error("Debug value must be true or false");
|
|
24
|
+
}
|
|
25
|
+
_debug = value;
|
|
26
|
+
debugLog('debugging active')
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
initializeOverlays() {
|
|
30
|
+
|
|
31
|
+
const Stimulus = Application.start()
|
|
32
|
+
|
|
33
|
+
Stimulus.register('csedl-dropdown', dc)
|
|
34
|
+
Stimulus.register('csedl-tooltip', ttc)
|
|
35
|
+
Stimulus.register('csedl-move-panels', ppc)
|
|
36
|
+
|
|
37
|
+
debugLog('Overlays active, driven by Stimulus')
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
window.HotwireSvelteHelpers = HotwireSvelteHelpers;
|
|
44
|
+
|
|
45
|
+
export {HotwireSvelteHelpers};
|
package/src/lib/utils.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {positionPanelSelf, positionPanelByButton, positionPanel} from "./floating-ui-functions.js";
|
|
2
|
+
import customConfigs from '@frontend/config/hotwire-svelte-helpers.js';
|
|
2
3
|
import {validateOptions} from "./type-validators";
|
|
3
4
|
|
|
4
5
|
// Fetch content from server based on panel's data-src attribute and update content
|
|
5
6
|
export function openDropdownPanel(buttonElement, panelElement, options = {}) {
|
|
6
7
|
|
|
7
|
-
if (buttonElement.classList.contains('has-open-panel')) {
|
|
8
|
+
if (buttonElement.classList.contains('has-open-panel')) {
|
|
9
|
+
return
|
|
10
|
+
}
|
|
8
11
|
|
|
9
12
|
//validateOptions(options, {clickedElement: 'object'})
|
|
10
13
|
//const clickedElement = options.clickedElement || buttonElement;
|
|
@@ -17,7 +20,7 @@ export function openDropdownPanel(buttonElement, panelElement, options = {}) {
|
|
|
17
20
|
panelElement.style.display = 'block';
|
|
18
21
|
|
|
19
22
|
// add arrow
|
|
20
|
-
if (
|
|
23
|
+
if (hotwireSvelteConfig('addArrow')) {
|
|
21
24
|
if (!panelElement.querySelector(':scope > #arrow')) {
|
|
22
25
|
const arrowTag = document.createElement('div');
|
|
23
26
|
arrowTag.id = 'arrow';
|
|
@@ -58,8 +61,7 @@ export function openDropdownPanel(buttonElement, panelElement, options = {}) {
|
|
|
58
61
|
} else {
|
|
59
62
|
const buttonElement = document.querySelector(`[data-panel-id="${panelElement.id}"]`);
|
|
60
63
|
const ctrl = buttonElement.getAttribute('data-controller');
|
|
61
|
-
const
|
|
62
|
-
const contentSelector = config.dropdownContentSelector;
|
|
64
|
+
const contentSelector = hotwireSvelteConfig('dropdownContentSelector');
|
|
63
65
|
|
|
64
66
|
if (ctrl === 'csedl-dropdown' && contentSelector) {
|
|
65
67
|
debugLog(`dropdown / contentSelector: «${contentSelector}»`);
|
|
@@ -67,7 +69,7 @@ export function openDropdownPanel(buttonElement, panelElement, options = {}) {
|
|
|
67
69
|
wrapper.innerHTML = xhr.response;
|
|
68
70
|
} else if (ctrl === 'csedl-tooltip' && contentSelector) {
|
|
69
71
|
debugLog(`tooltip / contentSelector: «${contentSelector}»`);
|
|
70
|
-
const wrapper = panelElement.querySelector(
|
|
72
|
+
const wrapper = panelElement.querySelector(hotwireSvelteConfig('tooltipContentSelector'));
|
|
71
73
|
wrapper.innerHTML = xhr.response;
|
|
72
74
|
} else {
|
|
73
75
|
debugLog(`? / contentSelector: «${contentSelector}»`);
|
|
@@ -99,8 +101,8 @@ export function closePanel(button) {
|
|
|
99
101
|
// Remove outside click listener if no panels are open
|
|
100
102
|
const openPanels = document.querySelectorAll("[data-hsh-panel-status='open']");
|
|
101
103
|
debugLog(`panel closed, still open: ${openPanels.length}`);
|
|
102
|
-
if (window.
|
|
103
|
-
window.
|
|
104
|
+
if (window.HotwireSvelteHelpers_closeOnClickOutsideListenerAdded && openPanels.length === 0) {
|
|
105
|
+
window.HotwireSvelteHelpers_closeOnClickOutsideListenerAdded = false;
|
|
104
106
|
window.removeEventListener('click', closeOnOutsideClick);
|
|
105
107
|
debugLog('Listener for close panels on click outside removed');
|
|
106
108
|
}
|
|
@@ -183,7 +185,8 @@ export function initializeDropdown(button) {
|
|
|
183
185
|
panel.setAttribute('data-hsh-initialized', 'true');
|
|
184
186
|
|
|
185
187
|
// Add close button functionality
|
|
186
|
-
|
|
188
|
+
|
|
189
|
+
const selector = hotwireSvelteConfig('closeButtonSelector');
|
|
187
190
|
const closeButtons = panel.querySelectorAll(selector);
|
|
188
191
|
for (const btn of closeButtons) {
|
|
189
192
|
btn.addEventListener('click', () => {
|
|
@@ -207,9 +210,8 @@ export function initializeDropdown(button) {
|
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
// Add listener for closing on outside click
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
overlays.closeOnClickOutsideListenerAdded = true;
|
|
213
|
+
if (!window.HotwireSvelteHelpers_closeOnClickOutsideListenerAdded) {
|
|
214
|
+
window.HotwireSvelteHelpers_closeOnClickOutsideListenerAdded = true;
|
|
213
215
|
setTimeout(() => {
|
|
214
216
|
window.addEventListener('click', closeOnOutsideClick)
|
|
215
217
|
}, 100)
|
|
@@ -265,6 +267,29 @@ export function getOrSetPanelId(buttonTag) {
|
|
|
265
267
|
}
|
|
266
268
|
}
|
|
267
269
|
|
|
270
|
+
export function hotwireSvelteConfig(key) {
|
|
271
|
+
|
|
272
|
+
const defaultConfig = {
|
|
273
|
+
closeButtonSelector: '.close-button',
|
|
274
|
+
dropdownContentSelector: '.content',
|
|
275
|
+
tooltipContentSelector: '.content',
|
|
276
|
+
addArrow: true,
|
|
277
|
+
persistTooltipOnClick: false,
|
|
278
|
+
closeButtonSvg: '',
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const validations = {
|
|
282
|
+
closeButtonSelector: 'string',
|
|
283
|
+
dropdownContentSelector: 'string',
|
|
284
|
+
tooltipContentSelector: 'string',
|
|
285
|
+
addArrow: 'boolean',
|
|
286
|
+
persistTooltipOnClick: 'boolean',
|
|
287
|
+
closeButtonSvg: 'string',
|
|
288
|
+
}
|
|
289
|
+
validateOptions(customConfigs, validations)
|
|
290
|
+
|
|
291
|
+
return customConfigs[key] || defaultConfig[key] || null
|
|
292
|
+
}
|
|
268
293
|
|
|
269
294
|
function generateRandomHex(n) {
|
|
270
295
|
if (n <= 0) return '';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Controller} from "@hotwired/stimulus"
|
|
2
2
|
import {positionPanelByButton} from "../lib/floating-ui-functions.js";
|
|
3
|
-
import {debugLog, findPanelOrThrow, openDropdownPanel} from "../lib/utils.js";
|
|
3
|
+
import {hotwireSvelteConfig, debugLog, findPanelOrThrow, openDropdownPanel} from "../lib/utils.js";
|
|
4
4
|
|
|
5
5
|
export default class extends Controller {
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ export default class extends Controller {
|
|
|
17
17
|
}
|
|
18
18
|
this.element.addEventListener('mouseenter', (e) => this.start_opening(e, panel_id, delay_sec * 1000))
|
|
19
19
|
this.element.addEventListener('mouseleave', (e) => this.close(e, panel_id))
|
|
20
|
-
if (
|
|
20
|
+
if (hotwireSvelteConfig('persistTooltipOnClick')) {
|
|
21
21
|
this.element.addEventListener('click', (e) => this.toggleByClick(e, panel_id))
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {openDropdownPanel} from "@csedl/hotwire-svelte-helpers";
|
|
3
|
+
|
|
4
|
+
import {onMount} from "svelte";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
title,
|
|
8
|
+
panelClass,
|
|
9
|
+
closeFunction,
|
|
10
|
+
closeButtonSvg,
|
|
11
|
+
buttonElement,
|
|
12
|
+
content,
|
|
13
|
+
} = $props()
|
|
14
|
+
let panelElement
|
|
15
|
+
|
|
16
|
+
onMount(() => {
|
|
17
|
+
openDropdownPanel(buttonElement, panelElement);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
function closeFunc() {
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
closeFunction()
|
|
23
|
+
}, 0)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<div class="dropdown-panel {panelClass}" bind:this={panelElement} onclose={closeFunc}>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<div class="header">
|
|
32
|
+
<span class="title">
|
|
33
|
+
{title || 'missing title'}
|
|
34
|
+
</span>
|
|
35
|
+
<button class="close-btn"
|
|
36
|
+
onclick={closeFunction}>{@html window.HotwireSvelteHelpers.overlays.closeButtonSvg}</button>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="content">
|
|
40
|
+
{@render content()}
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
</div>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {openDropdownPanel} from "@csedl/hotwire-svelte-helpers";
|
|
3
|
+
import {onMount} from "svelte";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
title,
|
|
7
|
+
panelClass,
|
|
8
|
+
SvelteComponent,
|
|
9
|
+
svelteComponentProps,
|
|
10
|
+
closeFunction,
|
|
11
|
+
closeButtonSvg,
|
|
12
|
+
content,
|
|
13
|
+
text,
|
|
14
|
+
actionButtonLabel,
|
|
15
|
+
actionButtonFunction,
|
|
16
|
+
} = $props()
|
|
17
|
+
let panelElement
|
|
18
|
+
|
|
19
|
+
onMount(() => {
|
|
20
|
+
//openDropdownPanel(buttonElement, panelElement);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
function closeFunc() {
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
closeFunction()
|
|
26
|
+
}, 0)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<div class="modal-overlay">
|
|
32
|
+
<div class="modal-panel {panelClass}" bind:this={panelElement} onclose={closeFunc}>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
<div class="header">
|
|
36
|
+
<span class="title">
|
|
37
|
+
{title || 'missing title'}
|
|
38
|
+
</span>
|
|
39
|
+
<button class="close-btn"
|
|
40
|
+
onclick={closeFunction}>{@html window.HotwireSvelteHelpers.overlays.closeButtonSvg}</button>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="content">
|
|
44
|
+
|
|
45
|
+
{#if content}
|
|
46
|
+
{@render content()}
|
|
47
|
+
{/if}
|
|
48
|
+
|
|
49
|
+
{#if SvelteComponent}
|
|
50
|
+
<SvelteComponent {...svelteComponentProps}/>
|
|
51
|
+
{/if}
|
|
52
|
+
|
|
53
|
+
{#if text}
|
|
54
|
+
{#each text as paragraph}
|
|
55
|
+
<p>{paragraph}</p>
|
|
56
|
+
{/each}
|
|
57
|
+
{/if}
|
|
58
|
+
</div>
|
|
59
|
+
<div class="footer">
|
|
60
|
+
{#if actionButtonLabel}
|
|
61
|
+
<span
|
|
62
|
+
role="button"
|
|
63
|
+
tabindex="0"
|
|
64
|
+
onkeydown={(e) => {}}
|
|
65
|
+
class="action button"
|
|
66
|
+
onclick={actionButtonFunction}>
|
|
67
|
+
{actionButtonLabel}
|
|
68
|
+
</span>
|
|
69
|
+
{/if}
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
package/src/lib/config.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import {debugLog} from "./utils.js";
|
|
2
|
-
import { Application } from "@hotwired/stimulus"
|
|
3
|
-
import dc from '../stimulus/dropdown-controller'
|
|
4
|
-
import ttc from '../stimulus/tooltip-controller'
|
|
5
|
-
import ppc from '../stimulus/move-panels-controller'
|
|
6
|
-
import { validateOptions } from "./type-validators";
|
|
7
|
-
|
|
8
|
-
// DEFAULTS
|
|
9
|
-
let _debug = false;
|
|
10
|
-
|
|
11
|
-
let _close_on_click_outside_listener_added = false;
|
|
12
|
-
|
|
13
|
-
const HotwireSvelteHelpers = {
|
|
14
|
-
|
|
15
|
-
// debug
|
|
16
|
-
|
|
17
|
-
get debug() {
|
|
18
|
-
return _debug;
|
|
19
|
-
},
|
|
20
|
-
set debug(value) {
|
|
21
|
-
if (typeof value !== "boolean") {
|
|
22
|
-
throw new Error("Debug value must be true or false");
|
|
23
|
-
}
|
|
24
|
-
_debug = value;
|
|
25
|
-
debugLog('debugging active')
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
overlays: {
|
|
29
|
-
closeButtonSelector: '.close-button',
|
|
30
|
-
dropdownContentSelector: '.content',
|
|
31
|
-
tooltipContentSelector: '.content',
|
|
32
|
-
addArrow: true,
|
|
33
|
-
persistTooltipOnClick: false,
|
|
34
|
-
closeOnClickOutsideListenerAdded: false,
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
initializeOverlays(options = {}) {
|
|
38
|
-
|
|
39
|
-
validateOptions(options, {
|
|
40
|
-
closeButtonSelector: 'string',
|
|
41
|
-
dropdownContentSelector: 'string',
|
|
42
|
-
tooltipContentSelector: 'string',
|
|
43
|
-
addArrow: 'boolean',
|
|
44
|
-
persistTooltipOnClick: 'boolean',
|
|
45
|
-
closeOnClickOutsideListenerAdded: 'boolean',
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
const overlays = this.overlays;
|
|
49
|
-
|
|
50
|
-
if (options.closeButtonSelector !== undefined) {
|
|
51
|
-
overlays.closeButtonSelector = options.closeButtonSelector;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (options.dropdownContentSelector !== undefined) {
|
|
55
|
-
overlays.dropdownContentSelector = options.dropdownContentSelector;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (options.tooltipContentSelector !== undefined) {
|
|
59
|
-
overlays.tooltipContentSelector = options.tooltipContentSelector;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (options.addArrow !== undefined) {
|
|
63
|
-
overlays.addArrow = options.addArrow;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (options.persistTooltipOnClick !== undefined) {
|
|
67
|
-
overlays.persistTooltipOnClick = options.persistTooltipOnClick;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
window.Stimulus = Application.start()
|
|
71
|
-
|
|
72
|
-
Stimulus.register('csedl-dropdown', dc)
|
|
73
|
-
Stimulus.register('csedl-tooltip', ttc)
|
|
74
|
-
Stimulus.register('csedl-move-panels', ppc)
|
|
75
|
-
|
|
76
|
-
debugLog('Overlays active, driven by Stimulus')
|
|
77
|
-
|
|
78
|
-
return overlays;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
window.HotwireSvelteHelpers = HotwireSvelteHelpers;
|
|
84
|
-
|
|
85
|
-
export {HotwireSvelteHelpers};
|