svelte-ag 1.2.1 → 1.2.3
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/dist/api/form.svelte.d.ts.map +1 -1
- package/dist/api/form.svelte.js +3 -3
- package/dist/api/query/entrypoint.svelte.d.ts.map +1 -1
- package/dist/api/query/entrypoint.svelte.js +1 -1
- package/dist/api/query/entrypoint.unit.test.js +1 -1
- package/dist/api/query/query.svelte.d.ts.map +1 -1
- package/dist/api/query/query.svelte.js +1 -1
- package/dist/api/query/query.unit.test.js +3 -3
- package/dist/api/query/rate.unit.test.js +1 -1
- package/dist/bin/build-tailwind-manifest.js +1 -1
- package/dist/bin/build-tailwind-manifest.unit.test.js +3 -3
- package/dist/components/animated/animated.svelte +4 -3
- package/dist/components/animated/animated.svelte.d.ts +1 -1
- package/dist/components/animated/animated.svelte.d.ts.map +1 -1
- package/dist/components/carousel/carousel-content.svelte +3 -1
- package/dist/components/carousel/carousel-content.svelte.d.ts.map +1 -1
- package/dist/components/carousel/carousel-dots.svelte +4 -2
- package/dist/components/carousel/carousel-dots.svelte.d.ts.map +1 -1
- package/dist/components/carousel/carousel-item.svelte +3 -1
- package/dist/components/carousel/carousel-item.svelte.d.ts.map +1 -1
- package/dist/components/carousel/carousel-next.svelte +5 -3
- package/dist/components/carousel/carousel-next.svelte.d.ts +1 -1
- package/dist/components/carousel/carousel-next.svelte.d.ts.map +1 -1
- package/dist/components/carousel/carousel-previous.svelte +5 -3
- package/dist/components/carousel/carousel-previous.svelte.d.ts +1 -1
- package/dist/components/carousel/carousel-previous.svelte.d.ts.map +1 -1
- package/dist/components/carousel/carousel.svelte +4 -2
- package/dist/components/carousel/carousel.svelte.d.ts.map +1 -1
- package/dist/components/carousel/index.d.ts +35 -35
- package/dist/components/carousel/index.d.ts.map +1 -1
- package/dist/components/carousel/index.js +3 -3
- package/dist/components/dnd/DndContext.svelte +1 -0
- package/dist/components/dnd/DndContext.svelte.d.ts.map +1 -1
- package/dist/components/dnd/DndDroppable.svelte +1 -1
- package/dist/components/dnd/DndDroppable.svelte.d.ts +1 -1
- package/dist/components/dnd/DndDroppable.svelte.d.ts.map +1 -1
- package/dist/components/dnd/DndHandle.svelte +2 -1
- package/dist/components/dnd/DndHandle.svelte.d.ts.map +1 -1
- package/dist/components/dnd/DndItem.svelte +3 -2
- package/dist/components/dnd/DndItem.svelte.d.ts +1 -1
- package/dist/components/dnd/DndItem.svelte.d.ts.map +1 -1
- package/dist/components/dnd/DndOverlay.svelte +2 -0
- package/dist/components/dnd/DndOverlay.svelte.d.ts.map +1 -1
- package/dist/components/dnd/examples/SimpleSortable.svelte +1 -0
- package/dist/components/dnd/examples/SimpleSortable.svelte.d.ts.map +1 -1
- package/dist/components/dnd/recipies/SimpleSortable.svelte +4 -3
- package/dist/components/dnd/recipies/SimpleSortable.svelte.d.ts +1 -1
- package/dist/components/dnd/recipies/SimpleSortable.svelte.d.ts.map +1 -1
- package/dist/components/form/form-button.svelte +4 -1
- package/dist/components/form/form-button.svelte.d.ts +1 -1
- package/dist/components/form/form-button.svelte.d.ts.map +1 -1
- package/dist/components/form/form-control.svelte +2 -1
- package/dist/components/form/form-control.svelte.d.ts +1 -1
- package/dist/components/form/form-control.svelte.d.ts.map +1 -1
- package/dist/components/form/form-description.svelte +2 -1
- package/dist/components/form/form-description.svelte.d.ts.map +1 -1
- package/dist/components/form/form-element-field.svelte +3 -2
- package/dist/components/form/form-element-field.svelte.d.ts +2 -2
- package/dist/components/form/form-element-field.svelte.d.ts.map +1 -1
- package/dist/components/form/form-field-errors.svelte +2 -1
- package/dist/components/form/form-field-errors.svelte.d.ts.map +1 -1
- package/dist/components/form/form-field-full.svelte +12 -10
- package/dist/components/form/form-field-full.svelte.d.ts +3 -3
- package/dist/components/form/form-field-full.svelte.d.ts.map +1 -1
- package/dist/components/form/form-field.svelte +4 -2
- package/dist/components/form/form-field.svelte.d.ts +1 -1
- package/dist/components/form/form-field.svelte.d.ts.map +1 -1
- package/dist/components/form/form-fieldset.svelte +2 -1
- package/dist/components/form/form-fieldset.svelte.d.ts +1 -1
- package/dist/components/form/form-fieldset.svelte.d.ts.map +1 -1
- package/dist/components/form/form-label.svelte +2 -1
- package/dist/components/form/form-label.svelte.d.ts.map +1 -1
- package/dist/components/form/form-legend.svelte +2 -1
- package/dist/components/form/form-legend.svelte.d.ts.map +1 -1
- package/dist/components/form/form-message.svelte +3 -1
- package/dist/components/form/form-message.svelte.d.ts.map +1 -1
- package/dist/components/form/form.svelte +2 -1
- package/dist/components/form/form.svelte.d.ts.map +1 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/gallery/gallery.svelte +3 -1
- package/dist/components/gallery/gallery.svelte.d.ts.map +1 -1
- package/dist/components/gradient/Gradient.svelte +3 -2
- package/dist/components/gradient/Gradient.svelte.d.ts +1 -1
- package/dist/components/gradient/Gradient.svelte.d.ts.map +1 -1
- package/dist/components/safe/safe.svelte +2 -1
- package/dist/components/safe/safe.svelte.d.ts +1 -1
- package/dist/components/safe/safe.svelte.d.ts.map +1 -1
- package/dist/components/search/combinations/searchPopover.comp.test.d.ts +2 -0
- package/dist/components/search/combinations/searchPopover.comp.test.d.ts.map +1 -0
- package/dist/components/search/combinations/searchPopover.comp.test.js +25 -0
- package/dist/components/search/combinations/searchPopover.svelte +6 -4
- package/dist/components/search/combinations/searchPopover.svelte.d.ts +1 -1
- package/dist/components/search/combinations/searchPopover.svelte.d.ts.map +1 -1
- package/dist/components/search/components/search-empty.svelte +5 -3
- package/dist/components/search/components/search-empty.svelte.d.ts.map +1 -1
- package/dist/components/search/components/search-input.svelte +5 -3
- package/dist/components/search/components/search-input.svelte.d.ts.map +1 -1
- package/dist/components/search/components/search-list.svelte +6 -4
- package/dist/components/search/components/search-list.svelte.d.ts.map +1 -1
- package/dist/components/search/components/search-pagnation.svelte +5 -3
- package/dist/components/search/components/search-pagnation.svelte.d.ts.map +1 -1
- package/dist/components/search/components/search.svelte +5 -3
- package/dist/components/search/components/search.svelte.d.ts.map +1 -1
- package/dist/components/search/search.svelte.d.ts.map +1 -1
- package/dist/components/search/search.svelte.js +2 -2
- package/dist/components/shader/BaseShader.svelte +2 -2
- package/dist/components/shader/WebGpuShader.svelte +2 -2
- package/dist/components/shader/intersectionObserver.d.ts.map +1 -1
- package/dist/components/sidebar/context.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/context.svelte.js +1 -1
- package/dist/components/sidebar/index.d.ts +3 -3
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-content.svelte +2 -1
- package/dist/components/sidebar/sidebar-content.svelte.d.ts +1 -1
- package/dist/components/sidebar/sidebar-content.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-footer.svelte +2 -1
- package/dist/components/sidebar/sidebar-footer.svelte.d.ts +1 -1
- package/dist/components/sidebar/sidebar-footer.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-group-action.svelte +2 -1
- package/dist/components/sidebar/sidebar-group-action.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-group-content.svelte +2 -1
- package/dist/components/sidebar/sidebar-group-content.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-group-label.svelte +2 -1
- package/dist/components/sidebar/sidebar-group-label.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-group.svelte +2 -1
- package/dist/components/sidebar/sidebar-group.svelte.d.ts +1 -1
- package/dist/components/sidebar/sidebar-group.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-header.svelte +2 -1
- package/dist/components/sidebar/sidebar-header.svelte.d.ts +1 -1
- package/dist/components/sidebar/sidebar-header.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-input.svelte +1 -0
- package/dist/components/sidebar/sidebar-input.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-inset.svelte +2 -1
- package/dist/components/sidebar/sidebar-inset.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-action.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu-action.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-badge.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu-badge.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-button.svelte +6 -5
- package/dist/components/sidebar/sidebar-menu-button.svelte.d.ts +2 -2
- package/dist/components/sidebar/sidebar-menu-button.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-item.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu-item.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-skeleton.svelte +3 -2
- package/dist/components/sidebar/sidebar-menu-skeleton.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-sub-button.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu-sub-button.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-sub-item.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu-sub-item.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu-sub.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu-sub.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-menu.svelte +2 -1
- package/dist/components/sidebar/sidebar-menu.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-provider.svelte +6 -4
- package/dist/components/sidebar/sidebar-provider.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-rail.svelte +3 -1
- package/dist/components/sidebar/sidebar-rail.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-separator.svelte +2 -1
- package/dist/components/sidebar/sidebar-separator.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-trigger.svelte +3 -1
- package/dist/components/sidebar/sidebar-trigger.svelte.d.ts +1 -1
- package/dist/components/sidebar/sidebar-trigger.svelte.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.svelte +4 -2
- package/dist/components/sidebar/sidebar.svelte.d.ts.map +1 -1
- package/dist/components/utilities/arrow/arrow.svelte +2 -1
- package/dist/components/utilities/arrow/arrow.svelte.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/vite/vite-plugin-component-source-collector.d.ts.map +1 -1
- package/dist/vite/vite-plugin-component-source-collector.js +5 -3
- package/dist/vite/vite-plugin-component-source-collector.unit.test.js +2 -2
- package/package.json +14 -14
- package/src/lib/api/form.svelte.ts +3 -3
- package/src/lib/api/query/cache.unit.test.ts +1 -0
- package/src/lib/api/query/entrypoint.svelte.ts +2 -1
- package/src/lib/api/query/entrypoint.unit.test.ts +1 -1
- package/src/lib/api/query/query.svelte.ts +2 -3
- package/src/lib/api/query/query.unit.test.ts +4 -3
- package/src/lib/api/query/rate.unit.test.ts +2 -1
- package/src/lib/bin/build-tailwind-manifest.ts +3 -1
- package/src/lib/bin/build-tailwind-manifest.unit.test.ts +5 -3
- package/src/lib/components/animated/animated.svelte +4 -3
- package/src/lib/components/carousel/carousel-content.svelte +3 -1
- package/src/lib/components/carousel/carousel-dots.svelte +4 -2
- package/src/lib/components/carousel/carousel-item.svelte +3 -1
- package/src/lib/components/carousel/carousel-next.svelte +5 -3
- package/src/lib/components/carousel/carousel-previous.svelte +5 -3
- package/src/lib/components/carousel/carousel.svelte +4 -2
- package/src/lib/components/carousel/index.ts +3 -3
- package/src/lib/components/dnd/DndContext.svelte +1 -0
- package/src/lib/components/dnd/DndDroppable.svelte +1 -1
- package/src/lib/components/dnd/DndHandle.svelte +2 -1
- package/src/lib/components/dnd/DndItem.svelte +3 -2
- package/src/lib/components/dnd/DndOverlay.svelte +2 -0
- package/src/lib/components/dnd/examples/SimpleSortable.svelte +1 -0
- package/src/lib/components/dnd/recipies/SimpleSortable.svelte +4 -3
- package/src/lib/components/form/form-button.svelte +4 -1
- package/src/lib/components/form/form-control.svelte +2 -1
- package/src/lib/components/form/form-description.svelte +2 -1
- package/src/lib/components/form/form-element-field.svelte +3 -2
- package/src/lib/components/form/form-field-errors.svelte +2 -1
- package/src/lib/components/form/form-field-full.svelte +12 -10
- package/src/lib/components/form/form-field.svelte +4 -2
- package/src/lib/components/form/form-fieldset.svelte +2 -1
- package/src/lib/components/form/form-label.svelte +2 -1
- package/src/lib/components/form/form-legend.svelte +2 -1
- package/src/lib/components/form/form-message.svelte +3 -1
- package/src/lib/components/form/form.svelte +2 -1
- package/src/lib/components/gallery/gallery.svelte +3 -1
- package/src/lib/components/gradient/Gradient.svelte +3 -2
- package/src/lib/components/safe/safe.svelte +2 -1
- package/src/lib/components/search/combinations/searchPopover.comp.test.ts +31 -0
- package/src/lib/components/search/combinations/searchPopover.svelte +6 -4
- package/src/lib/components/search/components/search-empty.svelte +5 -3
- package/src/lib/components/search/components/search-input.svelte +5 -3
- package/src/lib/components/search/components/search-list.svelte +6 -4
- package/src/lib/components/search/components/search-pagnation.svelte +5 -3
- package/src/lib/components/search/components/search.svelte +5 -3
- package/src/lib/components/search/search.svelte.ts +4 -3
- package/src/lib/components/shader/BaseShader.svelte +2 -2
- package/src/lib/components/shader/WebGpuShader.svelte +2 -2
- package/src/lib/components/shader/intersectionObserver.ts +2 -1
- package/src/lib/components/sidebar/context.svelte.ts +3 -2
- package/src/lib/components/sidebar/sidebar-content.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-footer.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-group-action.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-group-content.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-group-label.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-group.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-header.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-input.svelte +1 -0
- package/src/lib/components/sidebar/sidebar-inset.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu-action.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu-badge.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu-button.svelte +6 -5
- package/src/lib/components/sidebar/sidebar-menu-item.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu-skeleton.svelte +3 -2
- package/src/lib/components/sidebar/sidebar-menu-sub-button.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu-sub-item.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu-sub.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-menu.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-provider.svelte +6 -4
- package/src/lib/components/sidebar/sidebar-rail.svelte +3 -1
- package/src/lib/components/sidebar/sidebar-separator.svelte +2 -1
- package/src/lib/components/sidebar/sidebar-trigger.svelte +3 -1
- package/src/lib/components/sidebar/sidebar.svelte +4 -2
- package/src/lib/components/utilities/arrow/arrow.svelte +2 -1
- package/src/lib/vite/vite-plugin-component-source-collector.ts +9 -4
- package/src/lib/vite/vite-plugin-component-source-collector.unit.test.ts +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/api/form.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/api/form.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAkC,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,WAAW,CACtG,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAClB,CAAC;AAEF,KAAK,SAAS,CAAC,CAAC,SAAS,YAA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AAC,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAE/C;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,SAAS,YAAY,EACzD,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAC7E,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,GAC/B,cAAc,CAAC,GAAG,CAAC,CA0GrB"}
|
package/dist/api/form.svelte.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { superForm, defaults, setError, setMessage } from 'sveltekit-superforms';
|
|
2
|
-
import { valibot } from 'sveltekit-superforms/adapters';
|
|
3
|
-
import { watch } from 'runed';
|
|
4
1
|
import { dequal } from 'dequal';
|
|
2
|
+
import { watch } from 'runed';
|
|
5
3
|
import { get } from 'svelte/store';
|
|
4
|
+
import { superForm, defaults, setError, setMessage } from 'sveltekit-superforms';
|
|
5
|
+
import { valibot } from 'sveltekit-superforms/adapters';
|
|
6
6
|
import { safeParse, safeParseAsync } from 'valibot';
|
|
7
7
|
/**
|
|
8
8
|
* Build an endpoint-specific Superforms factory.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/api/query/entrypoint.svelte.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"entrypoint.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/api/query/entrypoint.svelte.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGrF,OAAO,EAAa,KAAK,E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E,eAAe,CAAC,GAAG,CAAC,IAE1B,IAAI,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,SAAS,OAAO,CAAC,GAAG,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,QAAQ,CAAC,EACrF,MAAM,IAAI,EACV,QAAQ,MAAM,EACd,OAAO,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,EAClC,OAAO,qBAAqB,CAAC,OAAO,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KACvE,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAe5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteMap } from 'svelte/reactivity';
|
|
2
|
-
import { Requestor, Query } from './query.svelte.js';
|
|
3
2
|
import { Cache } from './cache.svelte.js';
|
|
3
|
+
import { Requestor, Query } from './query.svelte.js';
|
|
4
4
|
import { batchQueryKey, cacheKey } from './utils.svelte.js';
|
|
5
5
|
// ---------------- Global state ----------------
|
|
6
6
|
// Map of path_method to the corresponding batch query instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
2
1
|
import { createApiRequest } from 'ts-ag';
|
|
3
2
|
import * as v from 'valibot';
|
|
3
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
4
4
|
const API_URL = 'https://api.example.test';
|
|
5
5
|
const schemas = {
|
|
6
6
|
'/users': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/api/query/query.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"query.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/api/query/query.svelte.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,Y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AAE,IAAI,EAAE,MAAM,CAAC,GAAG,IAAI,CAEtD;CACF;AAED,qBAAa,SAAS,CACpB,GAAG,SAAS,YAAY,EACxB,IAAI,SAAS,GAAG,CAAC,MAAM,CAAC,EACxB,MAAM,SAAS,OAAO,CAAC,GAAG,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,QAAQ,CAAC;;gBA6BnD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAChC,MAAM,EAAE,KAAK,EACb,YAAY,CAAC,EAAE,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;YAelC,KAAK;IAOnB;;;OAGG;YACW,eAAe;IA6BvB,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;CAmB3F"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { stringify } from 'devalue';
|
|
2
|
-
import { cacheKey } from './utils.svelte.js';
|
|
3
2
|
import { RateLimiter } from './rate.svelte';
|
|
3
|
+
import { cacheKey } from './utils.svelte.js';
|
|
4
4
|
export class Query {
|
|
5
5
|
// -------- Constants --------
|
|
6
6
|
#TIMEOUT = 1000 * 60 * 5; // 5 minutes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { stringify } from 'devalue';
|
|
2
2
|
import { createApiRequest } from 'ts-ag';
|
|
3
|
+
import * as v from 'valibot';
|
|
4
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
3
5
|
import { Cache } from './cache.svelte.js';
|
|
4
6
|
import { Query, Requestor } from './query.svelte.js';
|
|
5
|
-
import { stringify } from 'devalue';
|
|
6
|
-
import * as v from 'valibot';
|
|
7
7
|
const API_URL = 'https://api.example.test';
|
|
8
8
|
const plainSchemas = {
|
|
9
9
|
'/users': {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
2
1
|
import { sleep } from 'radash';
|
|
2
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
3
3
|
import { RateLimiter } from './rate.svelte.js';
|
|
4
4
|
describe('RateLimiter', () => {
|
|
5
5
|
beforeEach(() => {
|
|
@@ -4,8 +4,8 @@ import path from 'node:path';
|
|
|
4
4
|
import process from 'node:process';
|
|
5
5
|
import { init, parse as parseEsm } from 'es-module-lexer';
|
|
6
6
|
import { parse as parseSvelte } from 'svelte/compiler';
|
|
7
|
-
import ts from 'typescript';
|
|
8
7
|
import { readPackageJson, writeIfDifferent } from 'ts-ag';
|
|
8
|
+
import ts from 'typescript';
|
|
9
9
|
import { ensureRelativeManifestSourcePath, getTailwindSourcesManifestPath, normalizeManifestExportFilter, serializeTailwindSourceManifest, shouldIncludeManifestExport } from '../vite/tailwind-sources-manifest.js';
|
|
10
10
|
const WATCH_POLL_INTERVAL_MS = 700;
|
|
11
11
|
const CLASS_COLLECTOR_CALLS = new Set(['cn', 'clsx', 'cva', 'tv']);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { afterEach, describe, expect, it } from 'vitest';
|
|
2
1
|
import { mkdir, mkdtemp, readFile, rm, writeFile } from 'fs/promises';
|
|
3
|
-
import { join } from 'path';
|
|
4
2
|
import { tmpdir } from 'os';
|
|
5
|
-
import {
|
|
3
|
+
import { join } from 'path';
|
|
4
|
+
import { afterEach, describe, expect, it } from 'vitest';
|
|
6
5
|
import { parseTailwindSourceManifest } from '../vite/tailwind-sources-manifest.js';
|
|
6
|
+
import { main } from './build-tailwind-manifest.js';
|
|
7
7
|
const tempDirectories = [];
|
|
8
8
|
const originalWorkingDirectory = process.cwd();
|
|
9
9
|
async function createTempDirectory(prefix) {
|
|
@@ -50,10 +50,11 @@
|
|
|
50
50
|
</script>
|
|
51
51
|
|
|
52
52
|
<script lang="ts">
|
|
53
|
-
import { cn, type HTMLDivAttributes } from '../../utils';
|
|
54
|
-
import type { WithElementRef } from 'svelte-toolbelt';
|
|
55
|
-
import { tick } from 'svelte';
|
|
56
53
|
import { watch } from 'runed';
|
|
54
|
+
import { tick } from 'svelte';
|
|
55
|
+
import type { WithElementRef } from 'svelte-toolbelt';
|
|
56
|
+
|
|
57
|
+
import { cn, type HTMLDivAttributes } from '../../utils';
|
|
57
58
|
|
|
58
59
|
export type Props = WithElementRef<HTMLDivAttributes> & {
|
|
59
60
|
visible: boolean;
|
|
@@ -49,8 +49,8 @@ export declare const animatedVariants: import("tailwind-variants").TVReturnType<
|
|
|
49
49
|
};
|
|
50
50
|
}, undefined, "transition", unknown, unknown, undefined>>;
|
|
51
51
|
export type AnimatedVariants = VariantProps<typeof animatedVariants>;
|
|
52
|
-
import { type HTMLDivAttributes } from '../../utils';
|
|
53
52
|
import type { WithElementRef } from 'svelte-toolbelt';
|
|
53
|
+
import { type HTMLDivAttributes } from '../../utils';
|
|
54
54
|
export type Props = WithElementRef<HTMLDivAttributes> & {
|
|
55
55
|
visible: boolean;
|
|
56
56
|
animation?: AnimatedVariants['animation'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animated.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/animated/animated.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA2C3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"animated.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/animated/animated.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA2C3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAKvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAM,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGlD,MAAM,MAAM,KAAK,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA8KJ,QAAA,MAAM,QAAQ,kDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { WithElementRef } from 'bits-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import { cn } from '../../utils/utils.js';
|
|
6
6
|
|
|
7
|
+
import { getEmblaContext } from './context.js';
|
|
8
|
+
|
|
7
9
|
let {
|
|
8
10
|
ref = $bindable(null),
|
|
9
11
|
class: className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-content.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-content.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"carousel-content.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-content.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMrD,KAAK,gBAAgB,GAAI,cAAc,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA0B/F,QAAA,MAAM,eAAe,yDAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { WithoutChildren } from 'bits-ui';
|
|
3
|
-
|
|
4
|
-
import { cn } from '../../utils/utils.js';
|
|
3
|
+
|
|
5
4
|
import { type Props } from '$shadcn/button/index.js';
|
|
5
|
+
import { cn } from '../../utils/utils.js';
|
|
6
|
+
|
|
7
|
+
import { getEmblaContext } from './context.js';
|
|
6
8
|
|
|
7
9
|
let {
|
|
8
10
|
ref = $bindable(null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-dots.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-dots.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"carousel-dots.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-dots.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAKpD,KAAK,gBAAgB,GAAI,eAAe,CAAC,KAAK,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA6BvE,QAAA,MAAM,YAAY,yDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { WithElementRef } from 'bits-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import { cn } from '../../utils/utils.js';
|
|
6
6
|
|
|
7
|
+
import { getEmblaContext } from './context.js';
|
|
8
|
+
|
|
7
9
|
let {
|
|
8
10
|
ref = $bindable(null),
|
|
9
11
|
class: className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-item.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"carousel-item.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-item.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMrD,KAAK,gBAAgB,GAAI,cAAc,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA0B/F,QAAA,MAAM,YAAY,yDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import ArrowRight from '@lucide/svelte/icons/arrow-right';
|
|
3
3
|
import type { WithoutChildren } from 'bits-ui';
|
|
4
|
-
import { getEmblaContext } from './context.js';
|
|
5
|
-
import { cn } from '../../utils/utils.js';
|
|
6
|
-
import { Button, type Props } from '$shadcn/button/index.js';
|
|
7
4
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
8
5
|
|
|
6
|
+
import { Button, type Props } from '$shadcn/button/index.js';
|
|
7
|
+
import { cn } from '../../utils/utils.js';
|
|
8
|
+
|
|
9
|
+
import { getEmblaContext } from './context.js';
|
|
10
|
+
|
|
9
11
|
let {
|
|
10
12
|
ref = $bindable(null),
|
|
11
13
|
class: className,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Props } from '$shadcn/button/index.js';
|
|
2
1
|
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { type Props } from '$shadcn/button/index.js';
|
|
3
3
|
declare const CarouselNext: import("svelte").Component<Omit<Props, "children"> & {
|
|
4
4
|
symbol?: symbol;
|
|
5
5
|
position: VariantProps<import("tailwind-variants").TVReturnType<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-next.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-next.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-next.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-next.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAqD7D,QAAA,MAAM,YAAY;aAxC8C,MAAM;cAAY,YAAY;;;;;;;;;;;;;;;0FAAiB,CAAC,SAAS,CAAC;aAwChE,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import ArrowLeft from '@lucide/svelte/icons/arrow-left';
|
|
3
3
|
import type { WithoutChildren } from 'bits-ui';
|
|
4
|
-
import { getEmblaContext } from './context.js';
|
|
5
|
-
import { cn } from '../../utils/utils.js';
|
|
6
|
-
import { Button, type Props } from '$shadcn/button/index.js';
|
|
7
4
|
import { type VariantProps, tv } from 'tailwind-variants';
|
|
8
5
|
|
|
6
|
+
import { Button, type Props } from '$shadcn/button/index.js';
|
|
7
|
+
import { cn } from '../../utils/utils.js';
|
|
8
|
+
|
|
9
|
+
import { getEmblaContext } from './context.js';
|
|
10
|
+
|
|
9
11
|
let {
|
|
10
12
|
ref = $bindable(null),
|
|
11
13
|
class: className,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Props } from '$shadcn/button/index.js';
|
|
2
1
|
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { type Props } from '$shadcn/button/index.js';
|
|
3
3
|
declare const CarouselPrevious: import("svelte").Component<Omit<Props, "children"> & {
|
|
4
4
|
symbol?: symbol;
|
|
5
5
|
position: VariantProps<import("tailwind-variants").TVReturnType<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-previous.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-previous.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-previous.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel-previous.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAM,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAqD7D,QAAA,MAAM,gBAAgB;aAxC0C,MAAM;cAAY,YAAY;;;;;;;;;;;;;;;0FAAiB,CAAC,SAAS,CAAC;aAwC5D,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type CarouselAPI, type CarouselProps, type EmblaContext, setEmblaContext } from './context.js';
|
|
3
|
-
import { cn } from '../../utils/utils.js';
|
|
4
2
|
import emblaCarouselSvelte from 'embla-carousel-svelte';
|
|
5
3
|
import { watch } from 'runed';
|
|
6
4
|
|
|
5
|
+
import { cn } from '../../utils/utils.js';
|
|
6
|
+
|
|
7
|
+
import { type CarouselAPI, type CarouselProps, type EmblaContext, setEmblaContext } from './context.js';
|
|
8
|
+
|
|
7
9
|
let {
|
|
8
10
|
opts = {},
|
|
9
11
|
plugins = [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/carousel/carousel.svelte.ts"],"names":[],"mappings":"AAQA,OAAO,EAAoB,KAAK,aAAa,EAAsC,MAAM,cAAc,CAAC;AAmIxG,QAAA,MAAM,QAAQ,mDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import * as _$svelte from "svelte";
|
|
2
2
|
import { WithElementRef, WithoutChildren } from "bits-ui";
|
|
3
|
-
import emblaCarouselSvelte, { EmblaCarouselSvelteType } from "embla-carousel-svelte";
|
|
4
3
|
import { HTMLAttributes } from "svelte/elements";
|
|
4
|
+
import { Props } from "$shadcn/button/index.js";
|
|
5
5
|
import * as _$tailwind_variants0 from "tailwind-variants";
|
|
6
6
|
import { VariantProps } from "tailwind-variants";
|
|
7
|
-
import {
|
|
7
|
+
import emblaCarouselSvelte, { EmblaCarouselSvelteType } from "embla-carousel-svelte";
|
|
8
8
|
|
|
9
|
-
//#region dist/components/carousel/context.d.ts
|
|
10
|
-
type CarouselAPI = NonNullable<NonNullable<EmblaCarouselSvelteType['$$_attributes']>['on:emblaInit']> extends ((evt: CustomEvent<infer CarouselAPI>) => void) ? CarouselAPI : never;
|
|
11
|
-
type EmblaCarouselConfig = NonNullable<Parameters<typeof emblaCarouselSvelte>[1]>;
|
|
12
|
-
type CarouselOptions = EmblaCarouselConfig['options'];
|
|
13
|
-
type CarouselPlugins = EmblaCarouselConfig['plugins'];
|
|
14
|
-
type CarouselProps = {
|
|
15
|
-
symbol?: symbol;
|
|
16
|
-
opts?: CarouselOptions;
|
|
17
|
-
plugins?: CarouselPlugins;
|
|
18
|
-
setApi?: (api: CarouselAPI | undefined) => void;
|
|
19
|
-
pointerdown?: (api: CarouselAPI) => void;
|
|
20
|
-
pointerup?: (api: CarouselAPI) => void;
|
|
21
|
-
onSelect?: (api: CarouselAPI) => void;
|
|
22
|
-
orientation?: 'horizontal' | 'vertical';
|
|
23
|
-
} & WithElementRef<HTMLAttributes<HTMLDivElement>>;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region dist/components/carousel/carousel.svelte.d.ts
|
|
26
|
-
declare const Carousel: _$svelte.Component<CarouselProps, {}, "">;
|
|
27
|
-
type Carousel = ReturnType<typeof Carousel>;
|
|
28
|
-
//#endregion
|
|
29
9
|
//#region dist/components/carousel/carousel-content.svelte.d.ts
|
|
30
10
|
type $$ComponentProps$2 = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
31
11
|
symbol?: symbol;
|
|
@@ -33,15 +13,22 @@ type $$ComponentProps$2 = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
|
33
13
|
declare const CarouselContent: _$svelte.Component<$$ComponentProps$2, {}, "ref">;
|
|
34
14
|
type CarouselContent = ReturnType<typeof CarouselContent>;
|
|
35
15
|
//#endregion
|
|
16
|
+
//#region dist/components/carousel/carousel-dots.svelte.d.ts
|
|
17
|
+
type $$ComponentProps$1 = WithoutChildren<Props> & {
|
|
18
|
+
symbol?: symbol;
|
|
19
|
+
};
|
|
20
|
+
declare const CarouselDots: _$svelte.Component<$$ComponentProps$1, {}, "ref">;
|
|
21
|
+
type CarouselDots = ReturnType<typeof CarouselDots>;
|
|
22
|
+
//#endregion
|
|
36
23
|
//#region dist/components/carousel/carousel-item.svelte.d.ts
|
|
37
|
-
type $$ComponentProps
|
|
24
|
+
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
38
25
|
symbol?: symbol;
|
|
39
26
|
};
|
|
40
|
-
declare const CarouselItem: _$svelte.Component<$$ComponentProps
|
|
27
|
+
declare const CarouselItem: _$svelte.Component<$$ComponentProps, {}, "ref">;
|
|
41
28
|
type CarouselItem = ReturnType<typeof CarouselItem>;
|
|
42
29
|
//#endregion
|
|
43
|
-
//#region dist/components/carousel/carousel-
|
|
44
|
-
declare const
|
|
30
|
+
//#region dist/components/carousel/carousel-next.svelte.d.ts
|
|
31
|
+
declare const CarouselNext: _$svelte.Component<Omit<Props, "children"> & {
|
|
45
32
|
symbol?: symbol;
|
|
46
33
|
position: VariantProps<_$tailwind_variants0.TVReturnType<{
|
|
47
34
|
variant: {
|
|
@@ -60,10 +47,10 @@ declare const CarouselPrevious: _$svelte.Component<Omit<Props, "children"> & {
|
|
|
60
47
|
};
|
|
61
48
|
}, undefined, "size-8 touch-manipulation rounded-full", unknown, unknown, undefined>>>["variant"];
|
|
62
49
|
}, {}, "ref">;
|
|
63
|
-
type
|
|
50
|
+
type CarouselNext = ReturnType<typeof CarouselNext>;
|
|
64
51
|
//#endregion
|
|
65
|
-
//#region dist/components/carousel/carousel-
|
|
66
|
-
declare const
|
|
52
|
+
//#region dist/components/carousel/carousel-previous.svelte.d.ts
|
|
53
|
+
declare const CarouselPrevious: _$svelte.Component<Omit<Props, "children"> & {
|
|
67
54
|
symbol?: symbol;
|
|
68
55
|
position: VariantProps<_$tailwind_variants0.TVReturnType<{
|
|
69
56
|
variant: {
|
|
@@ -82,14 +69,27 @@ declare const CarouselNext: _$svelte.Component<Omit<Props, "children"> & {
|
|
|
82
69
|
};
|
|
83
70
|
}, undefined, "size-8 touch-manipulation rounded-full", unknown, unknown, undefined>>>["variant"];
|
|
84
71
|
}, {}, "ref">;
|
|
85
|
-
type
|
|
72
|
+
type CarouselPrevious = ReturnType<typeof CarouselPrevious>;
|
|
86
73
|
//#endregion
|
|
87
|
-
//#region dist/components/carousel/
|
|
88
|
-
type
|
|
74
|
+
//#region dist/components/carousel/context.d.ts
|
|
75
|
+
type CarouselAPI = NonNullable<NonNullable<EmblaCarouselSvelteType['$$_attributes']>['on:emblaInit']> extends ((evt: CustomEvent<infer CarouselAPI>) => void) ? CarouselAPI : never;
|
|
76
|
+
type EmblaCarouselConfig = NonNullable<Parameters<typeof emblaCarouselSvelte>[1]>;
|
|
77
|
+
type CarouselOptions = EmblaCarouselConfig['options'];
|
|
78
|
+
type CarouselPlugins = EmblaCarouselConfig['plugins'];
|
|
79
|
+
type CarouselProps = {
|
|
89
80
|
symbol?: symbol;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
opts?: CarouselOptions;
|
|
82
|
+
plugins?: CarouselPlugins;
|
|
83
|
+
setApi?: (api: CarouselAPI | undefined) => void;
|
|
84
|
+
pointerdown?: (api: CarouselAPI) => void;
|
|
85
|
+
pointerup?: (api: CarouselAPI) => void;
|
|
86
|
+
onSelect?: (api: CarouselAPI) => void;
|
|
87
|
+
orientation?: 'horizontal' | 'vertical';
|
|
88
|
+
} & WithElementRef<HTMLAttributes<HTMLDivElement>>;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region dist/components/carousel/carousel.svelte.d.ts
|
|
91
|
+
declare const Carousel: _$svelte.Component<CarouselProps, {}, "">;
|
|
92
|
+
type Carousel = ReturnType<typeof Carousel>;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious };
|
|
95
95
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["WithElementRef","
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["WithElementRef","HTMLAttributes","$$ComponentProps","HTMLDivElement","symbol","CarouselContent","_$svelte","Component","ReturnType","default","WithoutChildren","Props","$$ComponentProps","symbol","CarouselDots","_$svelte","Component","ReturnType","default","WithElementRef","HTMLAttributes","$$ComponentProps","HTMLDivElement","symbol","CarouselItem","_$svelte","Component","ReturnType","default","_$svelte","VariantProps","Props","CarouselNext","Omit","_$tailwind_variants0","TVReturnType","Component","symbol","position","variant","default","flex","ReturnType","_$svelte","VariantProps","Props","CarouselPrevious","Omit","_$tailwind_variants0","TVReturnType","Component","symbol","position","variant","default","flex","ReturnType","WithElementRef","EmblaCarouselSvelteType","emblaCarouselSvelte","HTMLAttributes","CarouselAPI","NonNullable","CustomEvent","evt","EmblaCarouselConfig","Parameters","CarouselOptions","CarouselPlugins","CarouselProps","HTMLDivElement","symbol","opts","plugins","setApi","api","pointerdown","pointerup","onSelect","orientation","EmblaContext","KeyboardEvent","scrollNext","scrollPrev","canScrollNext","canScrollPrev","handleKeyDown","e","options","onInit","scrollTo","index","jump","scrollSnaps","selectedIndex","setEmblaContext","config","getEmblaContext","name","CarouselProps","Carousel","_$svelte","Component","ReturnType","default"],"sources":["../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/carousel-content.svelte.d.ts","../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/carousel-dots.svelte.d.ts","../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/carousel-item.svelte.d.ts","../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/carousel-next.svelte.d.ts","../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/carousel-previous.svelte.d.ts","../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/context.d.ts","../../home/runner/work/svelte-ag/svelte-ag/dist/components/carousel/carousel.svelte.d.ts"],"mappings":";;;;;;;;;KAEKE,kBAAAA,GAAmBF,cAAAA,CAAeC,cAAAA,CAAeE,cAAAA;EAClDC,MAAAA;AAAAA;AAAAA,cAEUC,eAAAA,EAA4DC,QAAAA,CAA1BC,SAAAA,CAAUL,kBAAAA;AAAAA,KACrDG,eAAAA,GAAkBG,UAAAA,QAAkBH,eAAAA;;;KCJpCO,kBAAAA,GAAmBF,eAAAA,CAAgBC,KAAAA;EACpCE,MAAAA;AAAAA;AAAAA,cAEUC,YAAAA,EAAyDC,QAAAA,CAA1BC,SAAAA,CAAUJ,kBAAAA;AAAAA,KAClDE,YAAAA,GAAeG,UAAAA,QAAkBH,YAAAA;;;KCJjCO,gBAAAA,GAAmBF,cAAAA,CAAeC,cAAAA,CAAeE,cAAAA;EAClDC,MAAAA;AAAAA;AAAAA,cAEUC,YAAAA,EAAyDC,QAAAA,CAA1BC,SAAAA,CAAUL,gBAAAA;AAAAA,KAClDG,YAAAA,GAAeG,UAAAA,QAAkBH,YAAAA;;;cCJxBQ,YAAAA,EAEYH,QAAAA,CAFmBO,SAAAA,CAAUH,IAAAA,CAAKF,KAAAA;EACxDM,MAAAA;EACAC,QAAAA,EAAUR,YAAAA,CAU4CI,oBAAAA,CAVHC,YAAAA;IAC/CI,OAAAA;MACIC,OAAAA;MACAC,IAAAA;IAAAA;EAAAA;IAGJF,OAAAA;MACIC,OAAAA;MACAC,IAAAA;IAAAA;EAAAA,cAV+CP,oBAAAA,CAYbC,YAAAA;IACtCI,OAAAA;MACIC,OAAAA;MACAC,IAAAA;IAAAA;EAAAA;AAAAA;AAAAA,KAIPT,YAAAA,GAAeU,UAAAA,QAAkBV,YAAAA;;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'./carousel-dots.svelte';
|
|
3
3
|
import Item from './carousel-item.svelte';
|
|
4
|
-
import Previous from './carousel-previous.svelte';
|
|
5
4
|
import Next from './carousel-next.svelte';
|
|
6
|
-
import
|
|
5
|
+
import Previous from './carousel-previous.svelte';
|
|
6
|
+
import Root from './carousel.svelte';
|
|
7
7
|
export { Root as Carousel, Content as CarouselContent, Item as CarouselItem, Previous as CarouselPrevious, Next as CarouselNext, Dots as CarouselDots };
|
|
@@ -25,6 +25,7 @@ It makes state handling and items sorting easier
|
|
|
25
25
|
import { DragDropProvider } from '@dnd-kit/svelte';
|
|
26
26
|
// import { move } from '@dnd-kit/helpers';
|
|
27
27
|
import { box } from 'svelte-toolbelt';
|
|
28
|
+
|
|
28
29
|
import { findItem } from './utils.svelte';
|
|
29
30
|
|
|
30
31
|
let { children, items = $bindable(), onDragOver, onDragEnd, onDragStart, ...rest }: DndContextProps<T> = $props();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DndContext.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndContext.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,IAAI,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC;AAErD,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;CAAE,IAAI,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAChH,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AA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AC,CAAC,CAAC;CACjE;AACD;;;GAGG;AACH,QAAA,MAAM,UAAU,EAAE,qBAAmC,CAAC;AACpC,KAAK,UAAU,CAAC,CAAC,SAAS;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;CAAC,IAAI,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/F,eAAe,UAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { createDroppable, type CreateDroppableInput } from '@dnd-kit/svelte';
|
|
3
|
-
import type { ClassValue } from 'svelte/elements';
|
|
4
3
|
import type { Snippet } from 'svelte';
|
|
4
|
+
import type { ClassValue } from 'svelte/elements';
|
|
5
5
|
|
|
6
6
|
interface DroppableProps extends CreateDroppableInput {
|
|
7
7
|
children: Snippet<[{ isDropTarget: boolean }]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CreateDroppableInput } from '@dnd-kit/svelte';
|
|
2
|
-
import type { ClassValue } from 'svelte/elements';
|
|
3
2
|
import type { Snippet } from 'svelte';
|
|
3
|
+
import type { ClassValue } from 'svelte/elements';
|
|
4
4
|
interface DroppableProps extends CreateDroppableInput {
|
|
5
5
|
children: Snippet<[{
|
|
6
6
|
isDropTarget: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DndDroppable.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndDroppable.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DndDroppable.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndDroppable.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGhD,UAAU,cAAe,SAAQ,oBAAoB;IACnD,QAAQ,EAAE,OAAO,CAAC,CAAC;QAAE,YAAY,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAmBH,QAAA,MAAM,YAAY,oDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script lang="ts">
|
|
8
|
-
import { getItem } from './DndSortableItem.svelte';
|
|
9
8
|
import { cn } from '../../utils/utils.js';
|
|
9
|
+
|
|
10
|
+
import { getItem } from './DndSortableItem.svelte';
|
|
10
11
|
let { class: className }: DragHandleProps = $props();
|
|
11
12
|
|
|
12
13
|
const item = $derived.by(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DndHandle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndHandle.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"DndHandle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndHandle.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAyCJ,QAAA,MAAM,SAAS,qDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -37,9 +37,10 @@ Usage:
|
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
39
|
<script lang="ts">
|
|
40
|
-
import { setItem } from './DndSortableItem.svelte';
|
|
41
|
-
import type { Snippet } from 'svelte';
|
|
42
40
|
import { createDraggable, type CreateDraggableInput } from '@dnd-kit/svelte';
|
|
41
|
+
import type { Snippet } from 'svelte';
|
|
42
|
+
|
|
43
|
+
import { setItem } from './DndSortableItem.svelte';
|
|
43
44
|
|
|
44
45
|
let { id, child, ...rest }: DndItemProps = $props();
|
|
45
46
|
|
|
@@ -6,8 +6,8 @@ export type DndItemChildProps = {
|
|
|
6
6
|
export type DndItemProps = CreateDraggableInput & {
|
|
7
7
|
child: Snippet<[DndItemChildProps]>;
|
|
8
8
|
};
|
|
9
|
-
import type { Snippet } from 'svelte';
|
|
10
9
|
import { createDraggable, type CreateDraggableInput } from '@dnd-kit/svelte';
|
|
10
|
+
import type { Snippet } from 'svelte';
|
|
11
11
|
/**
|
|
12
12
|
* Draggable item. Provide a child to be rendered and modify behaviour based on
|
|
13
13
|
* the props provided to the child.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DndItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndItem.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAChD,KAAK,EAAE,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;CACrC,CAAC;
|
|
1
|
+
{"version":3,"file":"DndItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndItem.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAChD,KAAK,EAAE,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;CACrC,CAAC;AAGJ,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAmCtC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
2
|
import { type ComponentProps, type Snippet } from 'svelte';
|
|
3
|
+
|
|
3
4
|
import type { SortableItemChildProps } from './DndSortableItem.svelte';
|
|
4
5
|
|
|
5
6
|
export type OverlayChildProps<T> = { item: T } & SortableItemChildProps;
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
|
|
11
12
|
<script lang="ts" generics="T extends {id: string; children?: T[]}">
|
|
12
13
|
import { DragOverlay } from '@dnd-kit/svelte';
|
|
14
|
+
|
|
13
15
|
import { getDnd } from './DndContext.svelte';
|
|
14
16
|
import { findItem } from './utils.svelte.js';
|
|
15
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DndOverlay.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndOverlay.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"DndOverlay.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/dnd/DndOverlay.svelte.ts"],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