Skip to content

Commit 932e9b3

Browse files
committed
stencil updates
1 parent 56a7225 commit 932e9b3

File tree

2 files changed

+149
-151
lines changed

2 files changed

+149
-151
lines changed

lib/components/RevoGrid.ts

Lines changed: 145 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -331,56 +331,56 @@ interface RevoGridSlots {
331331
default: any
332332
}
333333

334-
import "svelte/internal/disclose-version";
335-
import "svelte/internal/flags/legacy";
336-
import * as $ from "svelte/internal/client";
334+
import 'svelte/internal/disclose-version';
335+
import 'svelte/internal/flags/legacy';
336+
import * as $ from 'svelte/internal/client';
337337
import { createEventDispatcher, onMount } from 'svelte';
338338

339339
var root = $.template(`<revo-grid><!></revo-grid>`, 2);
340340

341341
export default function RevoGrid($$anchor, $$props) {
342342
$.push($$props, false);
343343

344-
let __ref = $.mutable_state();
344+
let __ref = $.mutable_source();
345345
let __mounted = false;
346346
const dispatch = createEventDispatcher();
347-
let rowHeaders = $.prop($$props, "rowHeaders", 8, undefined);
348-
let frameSize = $.prop($$props, "frameSize", 8, undefined);
349-
let rowSize = $.prop($$props, "rowSize", 8, undefined);
350-
let colSize = $.prop($$props, "colSize", 8, undefined);
351-
let range = $.prop($$props, "range", 8, undefined);
352-
let readonly = $.prop($$props, "readonly", 8, undefined);
353-
let resize = $.prop($$props, "resize", 8, undefined);
354-
let canFocus = $.prop($$props, "canFocus", 8, undefined);
355-
let useClipboard = $.prop($$props, "useClipboard", 8, undefined);
356-
let columns = $.prop($$props, "columns", 8, undefined);
357-
let source = $.prop($$props, "source", 8, undefined);
358-
let pinnedTopSource = $.prop($$props, "pinnedTopSource", 8, undefined);
359-
let pinnedBottomSource = $.prop($$props, "pinnedBottomSource", 8, undefined);
360-
let rowDefinitions = $.prop($$props, "rowDefinitions", 8, undefined);
361-
let editors = $.prop($$props, "editors", 8, undefined);
362-
let applyOnClose = $.prop($$props, "applyOnClose", 8, undefined);
363-
let plugins = $.prop($$props, "plugins", 8, undefined);
364-
let columnTypes = $.prop($$props, "columnTypes", 8, undefined);
365-
let theme = $.prop($$props, "theme", 8, undefined);
366-
let rowClass = $.prop($$props, "rowClass", 8, undefined);
367-
let autoSizeColumn = $.prop($$props, "autoSizeColumn", 8, undefined);
368-
let filter = $.prop($$props, "filter", 8, undefined);
369-
let sorting = $.prop($$props, "sorting", 8, undefined);
370-
let focusTemplate = $.prop($$props, "focusTemplate", 8, undefined);
371-
let canMoveColumns = $.prop($$props, "canMoveColumns", 8, undefined);
372-
let trimmedRows = $.prop($$props, "trimmedRows", 8, undefined);
373-
let exporting = $.prop($$props, "exporting", 8, undefined);
374-
let grouping = $.prop($$props, "grouping", 8, undefined);
375-
let stretch = $.prop($$props, "stretch", 8, undefined);
376-
let additionalData = $.prop($$props, "additionalData", 8, undefined);
377-
let disableVirtualX = $.prop($$props, "disableVirtualX", 8, undefined);
378-
let disableVirtualY = $.prop($$props, "disableVirtualY", 8, undefined);
379-
let hideAttribution = $.prop($$props, "hideAttribution", 8, undefined);
380-
let jobsBeforeRender = $.prop($$props, "jobsBeforeRender", 8, undefined);
381-
let registerVNode = $.prop($$props, "registerVNode", 8, undefined);
382-
let accessible = $.prop($$props, "accessible", 8, undefined);
383-
let canDrag = $.prop($$props, "canDrag", 8, undefined);
347+
let rowHeaders = $.prop($$props, 'rowHeaders', 8, undefined);
348+
let frameSize = $.prop($$props, 'frameSize', 8, undefined);
349+
let rowSize = $.prop($$props, 'rowSize', 8, undefined);
350+
let colSize = $.prop($$props, 'colSize', 8, undefined);
351+
let range = $.prop($$props, 'range', 8, undefined);
352+
let readonly = $.prop($$props, 'readonly', 8, undefined);
353+
let resize = $.prop($$props, 'resize', 8, undefined);
354+
let canFocus = $.prop($$props, 'canFocus', 8, undefined);
355+
let useClipboard = $.prop($$props, 'useClipboard', 8, undefined);
356+
let columns = $.prop($$props, 'columns', 8, undefined);
357+
let source = $.prop($$props, 'source', 8, undefined);
358+
let pinnedTopSource = $.prop($$props, 'pinnedTopSource', 8, undefined);
359+
let pinnedBottomSource = $.prop($$props, 'pinnedBottomSource', 8, undefined);
360+
let rowDefinitions = $.prop($$props, 'rowDefinitions', 8, undefined);
361+
let editors = $.prop($$props, 'editors', 8, undefined);
362+
let applyOnClose = $.prop($$props, 'applyOnClose', 8, undefined);
363+
let plugins = $.prop($$props, 'plugins', 8, undefined);
364+
let columnTypes = $.prop($$props, 'columnTypes', 8, undefined);
365+
let theme = $.prop($$props, 'theme', 8, undefined);
366+
let rowClass = $.prop($$props, 'rowClass', 8, undefined);
367+
let autoSizeColumn = $.prop($$props, 'autoSizeColumn', 8, undefined);
368+
let filter = $.prop($$props, 'filter', 8, undefined);
369+
let sorting = $.prop($$props, 'sorting', 8, undefined);
370+
let focusTemplate = $.prop($$props, 'focusTemplate', 8, undefined);
371+
let canMoveColumns = $.prop($$props, 'canMoveColumns', 8, undefined);
372+
let trimmedRows = $.prop($$props, 'trimmedRows', 8, undefined);
373+
let exporting = $.prop($$props, 'exporting', 8, undefined);
374+
let grouping = $.prop($$props, 'grouping', 8, undefined);
375+
let stretch = $.prop($$props, 'stretch', 8, undefined);
376+
let additionalData = $.prop($$props, 'additionalData', 8, undefined);
377+
let disableVirtualX = $.prop($$props, 'disableVirtualX', 8, undefined);
378+
let disableVirtualY = $.prop($$props, 'disableVirtualY', 8, undefined);
379+
let hideAttribution = $.prop($$props, 'hideAttribution', 8, undefined);
380+
let jobsBeforeRender = $.prop($$props, 'jobsBeforeRender', 8, undefined);
381+
let registerVNode = $.prop($$props, 'registerVNode', 8, undefined);
382+
let accessible = $.prop($$props, 'accessible', 8, undefined);
383+
let canDrag = $.prop($$props, 'canDrag', 8, undefined);
384384
const refresh = (...args) => $.get(__ref).refresh(...args);
385385
const setDataAt = (...args) => $.get(__ref).setDataAt(...args);
386386
const scrollToRow = (...args) => $.get(__ref).scrollToRow(...args);
@@ -422,117 +422,115 @@ export default function RevoGrid($$anchor, $$props) {
422422
$.init();
423423

424424
var revo_grid = root();
425+
426+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'row-headers', rowHeaders()));
427+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'frame-size', frameSize()));
428+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'row-size', rowSize()));
429+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'col-size', colSize()));
430+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'range', range()));
431+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'readonly', readonly()));
432+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'resize', resize()));
433+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'can-focus', canFocus()));
434+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'use-clipboard', useClipboard()));
435+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'columns', columns()));
436+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'source', source()));
437+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'pinned-top-source', pinnedTopSource()));
438+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'pinned-bottom-source', pinnedBottomSource()));
439+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'row-definitions', rowDefinitions()));
440+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'editors', editors()));
441+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'apply-on-close', applyOnClose()));
442+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'plugins', plugins()));
443+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'column-types', columnTypes()));
444+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'theme', theme()));
445+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'row-class', rowClass()));
446+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'auto-size-column', autoSizeColumn()));
447+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'filter', filter()));
448+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'sorting', sorting()));
449+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'focus-template', focusTemplate()));
450+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'can-move-columns', canMoveColumns()));
451+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'trimmed-rows', trimmedRows()));
452+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'exporting', exporting()));
453+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'grouping', grouping()));
454+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'stretch', stretch()));
455+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'additional-data', additionalData()));
456+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'disable-virtual-x', disableVirtualX()));
457+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'disable-virtual-y', disableVirtualY()));
458+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'hide-attribution', hideAttribution()));
459+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'jobs-before-render', jobsBeforeRender()));
460+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'register-v-node', registerVNode()));
461+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'accessible', accessible()));
462+
$.template_effect(() => $.set_custom_element_data(revo_grid, 'can-drag', canDrag()));
463+
425464
var node = $.child(revo_grid);
426465

427-
$.slot(node, $$props, "default", {}, null);
466+
$.slot(node, $$props, 'default', {}, null);
428467
$.reset(revo_grid);
429468
$.bind_this(revo_grid, ($$value) => $.set(__ref, $$value), () => $.get(__ref));
430-
431-
$.template_effect(() => {
432-
$.set_custom_element_data(revo_grid, "row-headers", rowHeaders());
433-
$.set_custom_element_data(revo_grid, "frame-size", frameSize());
434-
$.set_custom_element_data(revo_grid, "row-size", rowSize());
435-
$.set_custom_element_data(revo_grid, "col-size", colSize());
436-
$.set_custom_element_data(revo_grid, "range", range());
437-
$.set_custom_element_data(revo_grid, "readonly", readonly());
438-
$.set_custom_element_data(revo_grid, "resize", resize());
439-
$.set_custom_element_data(revo_grid, "can-focus", canFocus());
440-
$.set_custom_element_data(revo_grid, "use-clipboard", useClipboard());
441-
$.set_custom_element_data(revo_grid, "columns", columns());
442-
$.set_custom_element_data(revo_grid, "source", source());
443-
$.set_custom_element_data(revo_grid, "pinned-top-source", pinnedTopSource());
444-
$.set_custom_element_data(revo_grid, "pinned-bottom-source", pinnedBottomSource());
445-
$.set_custom_element_data(revo_grid, "row-definitions", rowDefinitions());
446-
$.set_custom_element_data(revo_grid, "editors", editors());
447-
$.set_custom_element_data(revo_grid, "apply-on-close", applyOnClose());
448-
$.set_custom_element_data(revo_grid, "plugins", plugins());
449-
$.set_custom_element_data(revo_grid, "column-types", columnTypes());
450-
$.set_custom_element_data(revo_grid, "theme", theme());
451-
$.set_custom_element_data(revo_grid, "row-class", rowClass());
452-
$.set_custom_element_data(revo_grid, "auto-size-column", autoSizeColumn());
453-
$.set_custom_element_data(revo_grid, "filter", filter());
454-
$.set_custom_element_data(revo_grid, "sorting", sorting());
455-
$.set_custom_element_data(revo_grid, "focus-template", focusTemplate());
456-
$.set_custom_element_data(revo_grid, "can-move-columns", canMoveColumns());
457-
$.set_custom_element_data(revo_grid, "trimmed-rows", trimmedRows());
458-
$.set_custom_element_data(revo_grid, "exporting", exporting());
459-
$.set_custom_element_data(revo_grid, "grouping", grouping());
460-
$.set_custom_element_data(revo_grid, "stretch", stretch());
461-
$.set_custom_element_data(revo_grid, "additional-data", additionalData());
462-
$.set_custom_element_data(revo_grid, "disable-virtual-x", disableVirtualX());
463-
$.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
464-
$.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
465-
$.set_custom_element_data(revo_grid, "jobs-before-render", jobsBeforeRender());
466-
$.set_custom_element_data(revo_grid, "register-v-node", registerVNode());
467-
$.set_custom_element_data(revo_grid, "accessible", accessible());
468-
$.set_custom_element_data(revo_grid, "can-drag", canDrag());
469-
});
470-
471-
$.event("contentsizechanged", revo_grid, onEvent);
472-
$.event("beforeedit", revo_grid, onEvent);
473-
$.event("beforerangeedit", revo_grid, onEvent);
474-
$.event("afteredit", revo_grid, onEvent);
475-
$.event("beforeautofill", revo_grid, onEvent);
476-
$.event("beforerange", revo_grid, onEvent);
477-
$.event("afterfocus", revo_grid, onEvent);
478-
$.event("roworderchanged", revo_grid, onEvent);
479-
$.event("beforesorting", revo_grid, onEvent);
480-
$.event("beforesourcesortingapply", revo_grid, onEvent);
481-
$.event("beforesortingapply", revo_grid, onEvent);
482-
$.event("rowdragstart", revo_grid, onEvent);
483-
$.event("headerclick", revo_grid, onEvent);
484-
$.event("beforecellfocus", revo_grid, onEvent);
485-
$.event("beforefocuslost", revo_grid, onEvent);
486-
$.event("beforesourceset", revo_grid, onEvent);
487-
$.event("beforeanysource", revo_grid, onEvent);
488-
$.event("aftersourceset", revo_grid, onEvent);
489-
$.event("afteranysource", revo_grid, onEvent);
490-
$.event("beforecolumnsset", revo_grid, onEvent);
491-
$.event("beforecolumnapplied", revo_grid, onEvent);
492-
$.event("aftercolumnsset", revo_grid, onEvent);
493-
$.event("beforefilterapply", revo_grid, onEvent);
494-
$.event("beforefiltertrimmed", revo_grid, onEvent);
495-
$.event("beforetrimmed", revo_grid, onEvent);
496-
$.event("aftertrimmed", revo_grid, onEvent);
497-
$.event("viewportscroll", revo_grid, onEvent);
498-
$.event("beforeexport", revo_grid, onEvent);
499-
$.event("beforeeditstart", revo_grid, onEvent);
500-
$.event("aftercolumnresize", revo_grid, onEvent);
501-
$.event("beforerowdefinition", revo_grid, onEvent);
502-
$.event("filterconfigchanged", revo_grid, onEvent);
503-
$.event("sortingconfigchanged", revo_grid, onEvent);
504-
$.event("rowheaderschanged", revo_grid, onEvent);
505-
$.event("beforegridrender", revo_grid, onEvent);
506-
$.event("aftergridrender", revo_grid, onEvent);
507-
$.event("aftergridinit", revo_grid, onEvent);
508-
$.event("additionaldatachanged", revo_grid, onEvent);
509-
$.event("afterthemechanged", revo_grid, onEvent);
510-
$.event("created", revo_grid, onEvent);
469+
$.event('contentsizechanged', revo_grid, onEvent);
470+
$.event('beforeedit', revo_grid, onEvent);
471+
$.event('beforerangeedit', revo_grid, onEvent);
472+
$.event('afteredit', revo_grid, onEvent);
473+
$.event('beforeautofill', revo_grid, onEvent);
474+
$.event('beforerange', revo_grid, onEvent);
475+
$.event('afterfocus', revo_grid, onEvent);
476+
$.event('roworderchanged', revo_grid, onEvent);
477+
$.event('beforesorting', revo_grid, onEvent);
478+
$.event('beforesourcesortingapply', revo_grid, onEvent);
479+
$.event('beforesortingapply', revo_grid, onEvent);
480+
$.event('rowdragstart', revo_grid, onEvent);
481+
$.event('headerclick', revo_grid, onEvent);
482+
$.event('beforecellfocus', revo_grid, onEvent);
483+
$.event('beforefocuslost', revo_grid, onEvent);
484+
$.event('beforesourceset', revo_grid, onEvent);
485+
$.event('beforeanysource', revo_grid, onEvent);
486+
$.event('aftersourceset', revo_grid, onEvent);
487+
$.event('afteranysource', revo_grid, onEvent);
488+
$.event('beforecolumnsset', revo_grid, onEvent);
489+
$.event('beforecolumnapplied', revo_grid, onEvent);
490+
$.event('aftercolumnsset', revo_grid, onEvent);
491+
$.event('beforefilterapply', revo_grid, onEvent);
492+
$.event('beforefiltertrimmed', revo_grid, onEvent);
493+
$.event('beforetrimmed', revo_grid, onEvent);
494+
$.event('aftertrimmed', revo_grid, onEvent);
495+
$.event('viewportscroll', revo_grid, onEvent);
496+
$.event('beforeexport', revo_grid, onEvent);
497+
$.event('beforeeditstart', revo_grid, onEvent);
498+
$.event('aftercolumnresize', revo_grid, onEvent);
499+
$.event('beforerowdefinition', revo_grid, onEvent);
500+
$.event('filterconfigchanged', revo_grid, onEvent);
501+
$.event('sortingconfigchanged', revo_grid, onEvent);
502+
$.event('rowheaderschanged', revo_grid, onEvent);
503+
$.event('beforegridrender', revo_grid, onEvent);
504+
$.event('aftergridrender', revo_grid, onEvent);
505+
$.event('aftergridinit', revo_grid, onEvent);
506+
$.event('additionaldatachanged', revo_grid, onEvent);
507+
$.event('afterthemechanged', revo_grid, onEvent);
508+
$.event('created', revo_grid, onEvent);
511509
$.append($$anchor, revo_grid);
512-
$.bind_prop($$props, "refresh", refresh);
513-
$.bind_prop($$props, "setDataAt", setDataAt);
514-
$.bind_prop($$props, "scrollToRow", scrollToRow);
515-
$.bind_prop($$props, "scrollToColumnIndex", scrollToColumnIndex);
516-
$.bind_prop($$props, "scrollToColumnProp", scrollToColumnProp);
517-
$.bind_prop($$props, "updateColumns", updateColumns);
518-
$.bind_prop($$props, "addTrimmed", addTrimmed);
519-
$.bind_prop($$props, "scrollToCoordinate", scrollToCoordinate);
520-
$.bind_prop($$props, "setCellEdit", setCellEdit);
521-
$.bind_prop($$props, "setCellsFocus", setCellsFocus);
522-
$.bind_prop($$props, "getSource", getSource);
523-
$.bind_prop($$props, "getVisibleSource", getVisibleSource);
524-
$.bind_prop($$props, "getSourceStore", getSourceStore);
525-
$.bind_prop($$props, "getColumnStore", getColumnStore);
526-
$.bind_prop($$props, "updateColumnSorting", updateColumnSorting);
527-
$.bind_prop($$props, "clearSorting", clearSorting);
528-
$.bind_prop($$props, "getColumns", getColumns);
529-
$.bind_prop($$props, "clearFocus", clearFocus);
530-
$.bind_prop($$props, "getPlugins", getPlugins);
531-
$.bind_prop($$props, "getFocused", getFocused);
532-
$.bind_prop($$props, "getContentSize", getContentSize);
533-
$.bind_prop($$props, "getSelectedRange", getSelectedRange);
534-
$.bind_prop($$props, "refreshExtraElements", refreshExtraElements);
535-
$.bind_prop($$props, "getWebComponent", getWebComponent);
510+
$.bind_prop($$props, 'refresh', refresh);
511+
$.bind_prop($$props, 'setDataAt', setDataAt);
512+
$.bind_prop($$props, 'scrollToRow', scrollToRow);
513+
$.bind_prop($$props, 'scrollToColumnIndex', scrollToColumnIndex);
514+
$.bind_prop($$props, 'scrollToColumnProp', scrollToColumnProp);
515+
$.bind_prop($$props, 'updateColumns', updateColumns);
516+
$.bind_prop($$props, 'addTrimmed', addTrimmed);
517+
$.bind_prop($$props, 'scrollToCoordinate', scrollToCoordinate);
518+
$.bind_prop($$props, 'setCellEdit', setCellEdit);
519+
$.bind_prop($$props, 'setCellsFocus', setCellsFocus);
520+
$.bind_prop($$props, 'getSource', getSource);
521+
$.bind_prop($$props, 'getVisibleSource', getVisibleSource);
522+
$.bind_prop($$props, 'getSourceStore', getSourceStore);
523+
$.bind_prop($$props, 'getColumnStore', getColumnStore);
524+
$.bind_prop($$props, 'updateColumnSorting', updateColumnSorting);
525+
$.bind_prop($$props, 'clearSorting', clearSorting);
526+
$.bind_prop($$props, 'getColumns', getColumns);
527+
$.bind_prop($$props, 'clearFocus', clearFocus);
528+
$.bind_prop($$props, 'getPlugins', getPlugins);
529+
$.bind_prop($$props, 'getFocused', getFocused);
530+
$.bind_prop($$props, 'getContentSize', getContentSize);
531+
$.bind_prop($$props, 'getSelectedRange', getSelectedRange);
532+
$.bind_prop($$props, 'refreshExtraElements', refreshExtraElements);
533+
$.bind_prop($$props, 'getWebComponent', getWebComponent);
536534

537535
return $.pop({
538536
refresh,

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
"homepage": "https://github.com/revolist/revogrid#readme",
6464
"license": "MIT",
6565
"devDependencies": {
66-
"@sveltejs/vite-plugin-svelte": "^5.0.0",
66+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
6767
"@tsconfig/svelte": "^5.0.4",
68-
"svelte": "^5.2.7",
69-
"svelte-check": "^4.1.0",
68+
"svelte": "^5.28.2",
69+
"svelte-check": "^4.1.6",
7070
"tslib": "^2.8.1",
7171
"typescript": "~5.6.2",
72-
"vite": "^6.0.1",
72+
"vite": "^6.3.2",
7373
"vite-plugin-dts": "^4.3.0"
7474
},
7575
"dependencies": {

0 commit comments

Comments
 (0)