arethesis 0.1.5 → 0.2.1
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 +66 -0
- package/README.md +5 -4
- package/dist/arethesis.js +2 -147
- package/dist/binding/data-binder.d.ts +8 -0
- package/dist/binding/data-binder.d.ts.map +1 -1
- package/dist/binding/data-binder.js +605 -0
- package/dist/binding/data-binder.js.map +1 -0
- package/dist/binding/types.d.ts +20 -0
- package/dist/binding/types.d.ts.map +1 -1
- package/dist/binding/validation-engine.js +160 -0
- package/dist/binding/validation-engine.js.map +1 -0
- package/dist/cdn/arethesis.min.js +2 -0
- package/dist/cdn/arethesis.min.js.map +1 -0
- package/dist/cdn/chunks/CdTL-MEv.min.js +3 -0
- package/dist/cdn/chunks/CdTL-MEv.min.js.map +1 -0
- package/dist/cdn/components.min.js +81 -0
- package/dist/cdn/components.min.js.map +1 -0
- package/dist/collab/index.d.ts +22 -0
- package/dist/collab/index.d.ts.map +1 -0
- package/dist/collab/index.js +23 -0
- package/dist/collab/index.js.map +1 -0
- package/dist/components/component.d.ts +17 -0
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/component.js +765 -0
- package/dist/components/component.js.map +1 -0
- package/dist/components/decorators.js +27 -0
- package/dist/components/decorators.js.map +1 -0
- package/dist/components/form-associated.d.ts +55 -0
- package/dist/components/form-associated.d.ts.map +1 -0
- package/dist/components/form-associated.js +180 -0
- package/dist/components/form-associated.js.map +1 -0
- package/dist/components/runtime.d.ts +2 -0
- package/dist/components/runtime.d.ts.map +1 -1
- package/dist/components/runtime.js +18 -0
- package/dist/components/runtime.js.map +1 -0
- package/dist/components/template-loader.js +90 -0
- package/dist/components/template-loader.js.map +1 -0
- package/dist/components.js +2 -606
- package/dist/core/arethesis.d.ts +13 -9
- package/dist/core/arethesis.d.ts.map +1 -1
- package/dist/core/arethesis.js +249 -0
- package/dist/core/arethesis.js.map +1 -0
- package/dist/core/hooks.d.ts +19 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +23 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/index.d.ts +57 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +25 -0
- package/dist/data/list-view-registry.js +300 -0
- package/dist/data/list-view-registry.js.map +1 -0
- package/dist/data/object-store.js +280 -0
- package/dist/data/object-store.js.map +1 -0
- package/dist/data/optimistic-updates.js +168 -0
- package/dist/data/optimistic-updates.js.map +1 -0
- package/dist/data/persistence-manager.js +233 -0
- package/dist/data/persistence-manager.js.map +1 -0
- package/dist/defaults.d.ts +1 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/defaults.js +17 -0
- package/dist/defaults.js.map +1 -0
- package/dist/http/auth-manager.js +260 -0
- package/dist/http/auth-manager.js.map +1 -0
- package/dist/http/http-client.d.ts +7 -0
- package/dist/http/http-client.d.ts.map +1 -1
- package/dist/http/http-client.js +501 -0
- package/dist/http/http-client.js.map +1 -0
- package/dist/http/http-error.js +53 -0
- package/dist/http/http-error.js.map +1 -0
- package/dist/http/mapping.js +64 -0
- package/dist/http/mapping.js.map +1 -0
- package/dist/index.d.ts +3 -52
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -0
- package/dist/kit/calendar.d.ts +43 -0
- package/dist/kit/calendar.d.ts.map +1 -0
- package/dist/kit/calendar.js +423 -0
- package/dist/kit/calendar.js.map +1 -0
- package/dist/kit/cell-editor.d.ts +47 -0
- package/dist/kit/cell-editor.d.ts.map +1 -0
- package/dist/kit/cell-editor.js +191 -0
- package/dist/kit/cell-editor.js.map +1 -0
- package/dist/kit/chart.d.ts +57 -0
- package/dist/kit/chart.d.ts.map +1 -0
- package/dist/kit/chart.js +541 -0
- package/dist/kit/chart.js.map +1 -0
- package/dist/kit/combobox.d.ts +57 -0
- package/dist/kit/combobox.d.ts.map +1 -0
- package/dist/kit/combobox.js +379 -0
- package/dist/kit/combobox.js.map +1 -0
- package/dist/kit/command-palette.d.ts +54 -0
- package/dist/kit/command-palette.d.ts.map +1 -0
- package/dist/kit/command-palette.js +315 -0
- package/dist/kit/command-palette.js.map +1 -0
- package/dist/kit/data-table.d.ts +17 -1
- package/dist/kit/data-table.d.ts.map +1 -1
- package/dist/kit/data-table.js +373 -0
- package/dist/kit/data-table.js.map +1 -0
- package/dist/kit/dialog.d.ts +31 -0
- package/dist/kit/dialog.d.ts.map +1 -0
- package/dist/kit/dialog.js +157 -0
- package/dist/kit/dialog.js.map +1 -0
- package/dist/kit/elements/calendar.d.ts +3 -0
- package/dist/kit/elements/calendar.d.ts.map +1 -0
- package/dist/kit/elements/calendar.js +11 -0
- package/dist/kit/elements/calendar.js.map +1 -0
- package/dist/kit/elements/chart.d.ts +3 -0
- package/dist/kit/elements/chart.d.ts.map +1 -0
- package/dist/kit/elements/chart.js +11 -0
- package/dist/kit/elements/chart.js.map +1 -0
- package/dist/kit/elements/combobox.d.ts +3 -0
- package/dist/kit/elements/combobox.d.ts.map +1 -0
- package/dist/kit/elements/combobox.js +11 -0
- package/dist/kit/elements/combobox.js.map +1 -0
- package/dist/kit/elements/command-palette.d.ts +3 -0
- package/dist/kit/elements/command-palette.d.ts.map +1 -0
- package/dist/kit/elements/command-palette.js +11 -0
- package/dist/kit/elements/command-palette.js.map +1 -0
- package/dist/kit/elements/data-table.d.ts +3 -0
- package/dist/kit/elements/data-table.d.ts.map +1 -0
- package/dist/kit/elements/data-table.js +11 -0
- package/dist/kit/elements/data-table.js.map +1 -0
- package/dist/kit/elements/dialog.d.ts +4 -0
- package/dist/kit/elements/dialog.d.ts.map +1 -0
- package/dist/kit/elements/dialog.js +11 -0
- package/dist/kit/elements/dialog.js.map +1 -0
- package/dist/kit/elements/flex-view.d.ts +3 -0
- package/dist/kit/elements/flex-view.d.ts.map +1 -0
- package/dist/kit/elements/flex-view.js +11 -0
- package/dist/kit/elements/flex-view.js.map +1 -0
- package/dist/kit/elements/form.d.ts +3 -0
- package/dist/kit/elements/form.d.ts.map +1 -0
- package/dist/kit/elements/form.js +11 -0
- package/dist/kit/elements/form.js.map +1 -0
- package/dist/kit/elements/kanban.d.ts +3 -0
- package/dist/kit/elements/kanban.d.ts.map +1 -0
- package/dist/kit/elements/kanban.js +11 -0
- package/dist/kit/elements/kanban.js.map +1 -0
- package/dist/kit/elements/list.d.ts +3 -0
- package/dist/kit/elements/list.d.ts.map +1 -0
- package/dist/kit/elements/list.js +11 -0
- package/dist/kit/elements/list.js.map +1 -0
- package/dist/kit/elements/markdown-editor.d.ts +3 -0
- package/dist/kit/elements/markdown-editor.d.ts.map +1 -0
- package/dist/kit/elements/markdown-editor.js +11 -0
- package/dist/kit/elements/markdown-editor.js.map +1 -0
- package/dist/kit/elements/presence.d.ts +3 -0
- package/dist/kit/elements/presence.d.ts.map +1 -0
- package/dist/kit/elements/presence.js +11 -0
- package/dist/kit/elements/presence.js.map +1 -0
- package/dist/kit/elements/sheet.d.ts +3 -0
- package/dist/kit/elements/sheet.d.ts.map +1 -0
- package/dist/kit/elements/sheet.js +11 -0
- package/dist/kit/elements/sheet.js.map +1 -0
- package/dist/kit/elements/tabs.d.ts +3 -0
- package/dist/kit/elements/tabs.d.ts.map +1 -0
- package/dist/kit/elements/tabs.js +11 -0
- package/dist/kit/elements/tabs.js.map +1 -0
- package/dist/kit/elements/toast.d.ts +4 -0
- package/dist/kit/elements/toast.d.ts.map +1 -0
- package/dist/kit/elements/toast.js +11 -0
- package/dist/kit/elements/toast.js.map +1 -0
- package/dist/kit/elements/tree.d.ts +3 -0
- package/dist/kit/elements/tree.d.ts.map +1 -0
- package/dist/kit/elements/tree.js +11 -0
- package/dist/kit/elements/tree.js.map +1 -0
- package/dist/kit/flex-view.d.ts +2 -0
- package/dist/kit/flex-view.d.ts.map +1 -1
- package/dist/kit/flex-view.js +346 -0
- package/dist/kit/flex-view.js.map +1 -0
- package/dist/kit/form.d.ts +2 -0
- package/dist/kit/form.d.ts.map +1 -1
- package/dist/kit/form.js +211 -0
- package/dist/kit/form.js.map +1 -0
- package/dist/kit/index.d.ts +33 -16
- package/dist/kit/index.d.ts.map +1 -1
- package/dist/kit/index.js +40 -0
- package/dist/kit/internal/modal.d.ts +26 -0
- package/dist/kit/internal/modal.d.ts.map +1 -0
- package/dist/kit/internal/modal.js +59 -0
- package/dist/kit/internal/modal.js.map +1 -0
- package/dist/kit/kanban.d.ts +73 -0
- package/dist/kit/kanban.d.ts.map +1 -0
- package/dist/kit/kanban.js +404 -0
- package/dist/kit/kanban.js.map +1 -0
- package/dist/kit/list.d.ts +4 -0
- package/dist/kit/list.d.ts.map +1 -1
- package/dist/kit/list.js +106 -0
- package/dist/kit/list.js.map +1 -0
- package/dist/kit/markdown/highlight.d.ts +29 -0
- package/dist/kit/markdown/highlight.d.ts.map +1 -0
- package/dist/kit/markdown/highlight.js +106 -0
- package/dist/kit/markdown/highlight.js.map +1 -0
- package/dist/kit/markdown/render.d.ts +31 -0
- package/dist/kit/markdown/render.d.ts.map +1 -0
- package/dist/kit/markdown/render.js +260 -0
- package/dist/kit/markdown/render.js.map +1 -0
- package/dist/kit/markdown-editor.d.ts +54 -0
- package/dist/kit/markdown-editor.d.ts.map +1 -0
- package/dist/kit/markdown-editor.js +797 -0
- package/dist/kit/markdown-editor.js.map +1 -0
- package/dist/kit/presence.d.ts +36 -0
- package/dist/kit/presence.d.ts.map +1 -0
- package/dist/kit/presence.js +262 -0
- package/dist/kit/presence.js.map +1 -0
- package/dist/kit/sheet/formula.d.ts +106 -0
- package/dist/kit/sheet/formula.d.ts.map +1 -0
- package/dist/kit/sheet/formula.js +364 -0
- package/dist/kit/sheet/formula.js.map +1 -0
- package/dist/kit/sheet/model.d.ts +28 -0
- package/dist/kit/sheet/model.d.ts.map +1 -0
- package/dist/kit/sheet/model.js +136 -0
- package/dist/kit/sheet/model.js.map +1 -0
- package/dist/kit/sheet/sheet.d.ts +47 -0
- package/dist/kit/sheet/sheet.d.ts.map +1 -0
- package/dist/kit/sheet/sheet.js +676 -0
- package/dist/kit/sheet/sheet.js.map +1 -0
- package/dist/kit/tabs.d.ts +17 -0
- package/dist/kit/tabs.d.ts.map +1 -0
- package/dist/kit/tabs.js +192 -0
- package/dist/kit/tabs.js.map +1 -0
- package/dist/kit/theme-boot.generated.d.ts +2 -0
- package/dist/kit/theme-boot.generated.d.ts.map +1 -1
- package/dist/kit/theme-boot.generated.js +8 -0
- package/dist/kit/theme-boot.generated.js.map +1 -0
- package/dist/kit/theme.d.ts +5 -3
- package/dist/kit/theme.d.ts.map +1 -1
- package/dist/kit/theme.js +89 -0
- package/dist/kit/theme.js.map +1 -0
- package/dist/kit/toast.d.ts +46 -0
- package/dist/kit/toast.d.ts.map +1 -0
- package/dist/kit/toast.js +154 -0
- package/dist/kit/toast.js.map +1 -0
- package/dist/kit/tree.d.ts +41 -0
- package/dist/kit/tree.d.ts.map +1 -0
- package/dist/kit/tree.js +422 -0
- package/dist/kit/tree.js.map +1 -0
- package/dist/mixins/context-menu.d.ts.map +1 -1
- package/dist/mixins/context-menu.js +183 -0
- package/dist/mixins/context-menu.js.map +1 -0
- package/dist/mixins/draggable.d.ts.map +1 -1
- package/dist/mixins/draggable.js +140 -0
- package/dist/mixins/draggable.js.map +1 -0
- package/dist/mixins/dropdown.d.ts.map +1 -1
- package/dist/mixins/dropdown.js +216 -0
- package/dist/mixins/dropdown.js.map +1 -0
- package/dist/mixins/editable.d.ts.map +1 -1
- package/dist/mixins/editable.js +175 -0
- package/dist/mixins/editable.js.map +1 -0
- package/dist/mixins/grid-navigation.d.ts.map +1 -1
- package/dist/mixins/grid-navigation.js +194 -0
- package/dist/mixins/grid-navigation.js.map +1 -0
- package/dist/mixins/index.d.ts +8 -2
- package/dist/mixins/index.d.ts.map +1 -1
- package/dist/mixins/index.js +38 -0
- package/dist/mixins/index.js.map +1 -0
- package/dist/mixins/infinite-scroll.d.ts.map +1 -1
- package/dist/mixins/infinite-scroll.js +83 -0
- package/dist/mixins/infinite-scroll.js.map +1 -0
- package/dist/mixins/listbox.d.ts +19 -0
- package/dist/mixins/listbox.d.ts.map +1 -0
- package/dist/mixins/listbox.js +208 -0
- package/dist/mixins/listbox.js.map +1 -0
- package/dist/mixins/popup.d.ts +36 -0
- package/dist/mixins/popup.d.ts.map +1 -0
- package/dist/mixins/popup.js +113 -0
- package/dist/mixins/popup.js.map +1 -0
- package/dist/mixins/registry.d.ts +6 -0
- package/dist/mixins/registry.d.ts.map +1 -1
- package/dist/mixins/registry.js +167 -0
- package/dist/mixins/registry.js.map +1 -0
- package/dist/mixins/resizable.d.ts.map +1 -1
- package/dist/mixins/resizable.js +128 -0
- package/dist/mixins/resizable.js.map +1 -0
- package/dist/mixins/sortable.d.ts.map +1 -1
- package/dist/mixins/sortable.js +511 -0
- package/dist/mixins/sortable.js.map +1 -0
- package/dist/mixins/tooltip.d.ts.map +1 -1
- package/dist/mixins/tooltip.js +80 -0
- package/dist/mixins/tooltip.js.map +1 -0
- package/dist/mixins/utils.js +105 -0
- package/dist/mixins/utils.js.map +1 -0
- package/dist/plugins/async-validators.js +118 -0
- package/dist/plugins/async-validators.js.map +1 -0
- package/dist/plugins/builtins.d.ts +1 -1
- package/dist/plugins/builtins.d.ts.map +1 -1
- package/dist/plugins/builtins.js +20 -0
- package/dist/plugins/builtins.js.map +1 -0
- package/dist/plugins/date-utils.js +128 -0
- package/dist/plugins/date-utils.js.map +1 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +99 -0
- package/dist/plugins/plugin-manager.js.map +1 -0
- package/dist/plugins/rich-text.js +365 -0
- package/dist/plugins/rich-text.js.map +1 -0
- package/dist/realtime/azure-pubsub-manager.js +273 -0
- package/dist/realtime/azure-pubsub-manager.js.map +1 -0
- package/dist/realtime/collab/anchors.d.ts +10 -0
- package/dist/realtime/collab/anchors.d.ts.map +1 -0
- package/dist/realtime/collab/anchors.js +19 -0
- package/dist/realtime/collab/anchors.js.map +1 -0
- package/dist/realtime/collab/collab-session.d.ts +46 -1
- package/dist/realtime/collab/collab-session.d.ts.map +1 -1
- package/dist/realtime/collab/collab-session.js +396 -0
- package/dist/realtime/collab/collab-session.js.map +1 -0
- package/dist/realtime/collab/cursor-overlay.d.ts +10 -0
- package/dist/realtime/collab/cursor-overlay.d.ts.map +1 -1
- package/dist/realtime/collab/cursor-overlay.js +187 -0
- package/dist/realtime/collab/cursor-overlay.js.map +1 -0
- package/dist/realtime/collab/textarea-adapter.d.ts +13 -0
- package/dist/realtime/collab/textarea-adapter.d.ts.map +1 -1
- package/dist/realtime/collab/textarea-adapter.js +125 -0
- package/dist/realtime/collab/textarea-adapter.js.map +1 -0
- package/dist/realtime/collab/undo-manager.d.ts +44 -0
- package/dist/realtime/collab/undo-manager.d.ts.map +1 -0
- package/dist/realtime/collab/undo-manager.js +148 -0
- package/dist/realtime/collab/undo-manager.js.map +1 -0
- package/dist/realtime/index.d.ts +11 -0
- package/dist/realtime/index.d.ts.map +1 -0
- package/dist/realtime/index.js +22 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/realtime/ot/client.d.ts +1 -1
- package/dist/realtime/ot/client.d.ts.map +1 -1
- package/dist/realtime/ot/client.js +74 -0
- package/dist/realtime/ot/client.js.map +1 -0
- package/dist/realtime/ot/server.d.ts +13 -1
- package/dist/realtime/ot/server.d.ts.map +1 -1
- package/dist/realtime/ot/server.js +292 -0
- package/dist/realtime/ot/server.js.map +1 -0
- package/dist/realtime/ot/text-operation.js +282 -0
- package/dist/realtime/ot/text-operation.js.map +1 -0
- package/dist/realtime/reconnect.js +58 -0
- package/dist/realtime/reconnect.js.map +1 -0
- package/dist/realtime/sse-manager.js +172 -0
- package/dist/realtime/sse-manager.js.map +1 -0
- package/dist/realtime/types.d.ts +29 -1
- package/dist/realtime/types.d.ts.map +1 -1
- package/dist/realtime/websocket-manager.js +180 -0
- package/dist/realtime/websocket-manager.js.map +1 -0
- package/dist/theme-polychrome-boot.js +17 -0
- package/dist/theme-polychrome.css +310 -0
- package/dist/theme.css +490 -1
- package/dist/tokens/base.tokens.json +18 -0
- package/dist/tokens/dark-high-contrast.tokens.json +11 -0
- package/dist/tokens/dark.tokens.json +81 -0
- package/dist/tokens/light-high-contrast.tokens.json +11 -0
- package/dist/tokens/light.tokens.json +81 -0
- package/dist/tokens/polychrome.base.tokens.json +45 -0
- package/dist/tokens/polychrome.dark-high-contrast.tokens.json +183 -0
- package/dist/tokens/polychrome.dark.tokens.json +321 -0
- package/dist/tokens/polychrome.light-high-contrast.tokens.json +115 -0
- package/dist/tokens/polychrome.light.tokens.json +418 -0
- package/dist/tokens/polychrome.resolver.json +78 -0
- package/dist/utils/backoff.js +30 -0
- package/dist/utils/backoff.js.map +1 -0
- package/dist/utils/dates.js +67 -0
- package/dist/utils/dates.js.map +1 -0
- package/dist/utils/dom.js +30 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/emitter.js +40 -0
- package/dist/utils/emitter.js.map +1 -0
- package/dist/utils/fuzzy.d.ts +23 -0
- package/dist/utils/fuzzy.d.ts.map +1 -0
- package/dist/utils/fuzzy.js +95 -0
- package/dist/utils/fuzzy.js.map +1 -0
- package/dist/utils/path.js +99 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/sanitize.js +161 -0
- package/dist/utils/sanitize.js.map +1 -0
- package/dist/utils/url.js +44 -0
- package/dist/utils/url.js.map +1 -0
- package/dist/utils/virtual-window.d.ts +25 -0
- package/dist/utils/virtual-window.d.ts.map +1 -0
- package/dist/utils/virtual-window.js +19 -0
- package/dist/utils/virtual-window.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/package.json +63 -11
- package/dist/arethesis-jPH9QdQE.js +0 -5345
- package/dist/arethesis-jPH9QdQE.js.map +0 -1
- package/dist/arethesis.js.map +0 -1
- package/dist/components.js.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { getPath, isForbiddenKey, isPlainObject } from "../utils/path.js";
|
|
2
|
+
// src/http/mapping.ts
|
|
3
|
+
/** Extract the data at `dataPath` and apply the top-level transform. */
|
|
4
|
+
function extractData(body, mapping) {
|
|
5
|
+
if (!mapping) return body;
|
|
6
|
+
const data = getPath(body, mapping.dataPath);
|
|
7
|
+
return mapping.transform ? mapping.transform(data) : data;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Map one item. Nested objects are passed to `collect` for normalization and
|
|
11
|
+
* replaced with their ids (or kept inline with `as: 'keep'`).
|
|
12
|
+
*/
|
|
13
|
+
function mapItem(item, mapping, collect) {
|
|
14
|
+
if (!mapping || !mapping.fields && !mapping.nested) return item;
|
|
15
|
+
if (!isPlainObject(item)) return item;
|
|
16
|
+
const result = {};
|
|
17
|
+
if (!mapping.fields || mapping.keepUnmapped) {
|
|
18
|
+
for (const key of Object.keys(item)) if (!isForbiddenKey(key)) result[key] = item[key];
|
|
19
|
+
}
|
|
20
|
+
if (mapping.fields) for (const [target, source] of Object.entries(mapping.fields)) {
|
|
21
|
+
if (isForbiddenKey(target)) continue;
|
|
22
|
+
if (typeof source === "string") result[target] = getPath(item, source);
|
|
23
|
+
else {
|
|
24
|
+
const value = getPath(item, source.path);
|
|
25
|
+
result[target] = source.transform ? source.transform(value, item) : value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (mapping.nested) for (const [key, nested] of Object.entries(mapping.nested)) {
|
|
29
|
+
if (isForbiddenKey(key)) continue;
|
|
30
|
+
result[key] = mapNested(getPath(item, nested.path ?? key), nested, collect);
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
34
|
+
function mapNested(value, nested, collect) {
|
|
35
|
+
if (value === void 0 || value === null) return value;
|
|
36
|
+
const isList = Array.isArray(value);
|
|
37
|
+
const items = (isList ? value : [value]).map((v) => mapItem(v, nested.mapping, collect));
|
|
38
|
+
const ids = collect({
|
|
39
|
+
type: nested.type,
|
|
40
|
+
items
|
|
41
|
+
});
|
|
42
|
+
if (nested.as === "keep") return isList ? items : items[0];
|
|
43
|
+
return isList ? ids : ids[0];
|
|
44
|
+
}
|
|
45
|
+
/** Read pagination fields from a list response. */
|
|
46
|
+
function extractPage(body, pagination, itemCount, pageSize) {
|
|
47
|
+
if (!pagination) return {
|
|
48
|
+
nextCursor: null,
|
|
49
|
+
hasMore: pageSize !== void 0 && itemCount >= pageSize
|
|
50
|
+
};
|
|
51
|
+
const rawCursor = pagination.cursorPath ? getPath(body, pagination.cursorPath) : void 0;
|
|
52
|
+
const nextCursor = rawCursor === void 0 || rawCursor === null || rawCursor === "" ? null : String(rawCursor);
|
|
53
|
+
const rawHasMore = pagination.hasMorePath ? getPath(body, pagination.hasMorePath) : void 0;
|
|
54
|
+
const hasMore = typeof rawHasMore === "boolean" ? rawHasMore : nextCursor !== null;
|
|
55
|
+
const rawTotal = pagination.totalCountPath ? getPath(body, pagination.totalCountPath) : void 0;
|
|
56
|
+
return {
|
|
57
|
+
nextCursor,
|
|
58
|
+
hasMore,
|
|
59
|
+
totalCount: typeof rawTotal === "number" ? rawTotal : rawTotal !== void 0 && !isNaN(Number(rawTotal)) ? Number(rawTotal) : void 0
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export { extractData, extractPage, mapItem };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=mapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping.js","names":[],"sources":["../../src/http/mapping.ts"],"sourcesContent":["/**\n * Response mapping and pagination extraction.\n *\n * @module http/mapping\n */\n\nimport type { NestedMapping, PaginationMapping, ResponseMapping } from './types';\nimport { getPath, isForbiddenKey, isPlainObject } from '../utils/path';\n\n/** A batch of related objects found while mapping, to be written to the store. */\nexport interface NestedWrite {\n type: string;\n items: unknown[];\n}\n\n/** Extract the data at `dataPath` and apply the top-level transform. */\nexport function extractData(body: unknown, mapping?: ResponseMapping): unknown {\n if (!mapping) return body;\n const data = getPath(body, mapping.dataPath);\n return mapping.transform ? mapping.transform(data) : data;\n}\n\n/**\n * Map one item. Nested objects are passed to `collect` for normalization and\n * replaced with their ids (or kept inline with `as: 'keep'`).\n */\nexport function mapItem(\n item: unknown,\n mapping: ResponseMapping | undefined,\n collect: (write: NestedWrite) => string[],\n): unknown {\n if (!mapping || (!mapping.fields && !mapping.nested)) return item;\n if (!isPlainObject(item)) return item;\n\n const result: Record<string, unknown> = {};\n if (!mapping.fields || mapping.keepUnmapped) {\n for (const key of Object.keys(item)) if (!isForbiddenKey(key)) result[key] = item[key];\n }\n\n if (mapping.fields) {\n for (const [target, source] of Object.entries(mapping.fields)) {\n if (isForbiddenKey(target)) continue;\n if (typeof source === 'string') {\n result[target] = getPath(item, source);\n } else {\n const value = getPath(item, source.path);\n result[target] = source.transform ? source.transform(value, item) : value;\n }\n }\n }\n\n if (mapping.nested) {\n for (const [key, nested] of Object.entries(mapping.nested)) {\n if (isForbiddenKey(key)) continue;\n result[key] = mapNested(getPath(item, nested.path ?? key), nested, collect);\n }\n }\n\n return result;\n}\n\nfunction mapNested(value: unknown, nested: NestedMapping, collect: (write: NestedWrite) => string[]): unknown {\n if (value === undefined || value === null) return value;\n const isList = Array.isArray(value);\n const items = (isList ? value : [value]).map(v => mapItem(v, nested.mapping, collect));\n const ids = collect({ type: nested.type, items });\n if (nested.as === 'keep') return isList ? items : items[0];\n return isList ? ids : ids[0];\n}\n\nexport interface ExtractedPage {\n nextCursor: string | null;\n hasMore: boolean;\n totalCount?: number;\n}\n\n/** Read pagination fields from a list response. */\nexport function extractPage(body: unknown, pagination: PaginationMapping | undefined, itemCount: number, pageSize?: number): ExtractedPage {\n if (!pagination) {\n // Without cursor info, assume more pages exist while pages come back full.\n return { nextCursor: null, hasMore: pageSize !== undefined && itemCount >= pageSize };\n }\n const rawCursor = pagination.cursorPath ? getPath(body, pagination.cursorPath) : undefined;\n const nextCursor = rawCursor === undefined || rawCursor === null || rawCursor === '' ? null : String(rawCursor);\n const rawHasMore = pagination.hasMorePath ? getPath(body, pagination.hasMorePath) : undefined;\n const hasMore = typeof rawHasMore === 'boolean' ? rawHasMore : nextCursor !== null;\n const rawTotal = pagination.totalCountPath ? getPath(body, pagination.totalCountPath) : undefined;\n const totalCount = typeof rawTotal === 'number' ? rawTotal : rawTotal !== undefined && !isNaN(Number(rawTotal)) ? Number(rawTotal) : undefined;\n return { nextCursor, hasMore, totalCount };\n}\n"],"mappings":";;;AAgBA,SAAgB,YAAY,MAAe,SAAoC;CAC7E,IAAI,CAAC,SAAS,OAAO;CACrB,MAAM,OAAO,QAAQ,MAAM,QAAQ,QAAQ;CAC3C,OAAO,QAAQ,YAAY,QAAQ,UAAU,IAAI,IAAI;AACvD;;;;;AAMA,SAAgB,QACd,MACA,SACA,SACS;CACT,IAAI,CAAC,WAAY,CAAC,QAAQ,UAAU,CAAC,QAAQ,QAAS,OAAO;CAC7D,IAAI,CAAC,cAAc,IAAI,GAAG,OAAO;CAEjC,MAAM,SAAkC,CAAC;CACzC,IAAI,CAAC,QAAQ,UAAU,QAAQ,cACxB;OAAA,MAAM,OAAO,OAAO,KAAK,IAAI,GAAG,IAAI,CAAC,eAAe,GAAG,GAAG,OAAO,OAAO,KAAK;CAAA;CAGpF,IAAI,QAAQ,QACV,KAAK,MAAM,CAAC,QAAQ,WAAW,OAAO,QAAQ,QAAQ,MAAM,GAAG;EAC7D,IAAI,eAAe,MAAM,GAAG;EAC5B,IAAI,OAAO,WAAW,UACpB,OAAO,UAAU,QAAQ,MAAM,MAAM;OAChC;GACL,MAAM,QAAQ,QAAQ,MAAM,OAAO,IAAI;GACvC,OAAO,UAAU,OAAO,YAAY,OAAO,UAAU,OAAO,IAAI,IAAI;EACtE;CACF;CAGF,IAAI,QAAQ,QACV,KAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,QAAQ,MAAM,GAAG;EAC1D,IAAI,eAAe,GAAG,GAAG;EACzB,OAAO,OAAO,UAAU,QAAQ,MAAM,OAAO,QAAQ,GAAG,GAAG,QAAQ,OAAO;CAC5E;CAGF,OAAO;AACT;AAEA,SAAS,UAAU,OAAgB,QAAuB,SAAoD;CAC5G,IAAI,UAAU,KAAA,KAAa,UAAU,MAAM,OAAO;CAClD,MAAM,SAAS,MAAM,QAAQ,KAAK;CAClC,MAAM,SAAS,SAAS,QAAQ,CAAC,KAAK,EAAA,CAAG,KAAI,MAAK,QAAQ,GAAG,OAAO,SAAS,OAAO,CAAC;CACrF,MAAM,MAAM,QAAQ;EAAE,MAAM,OAAO;EAAM;CAAM,CAAC;CAChD,IAAI,OAAO,OAAO,QAAQ,OAAO,SAAS,QAAQ,MAAM;CACxD,OAAO,SAAS,MAAM,IAAI;AAC5B;;AASA,SAAgB,YAAY,MAAe,YAA2C,WAAmB,UAAkC;CACzI,IAAI,CAAC,YAEH,OAAO;EAAE,YAAY;EAAM,SAAS,aAAa,KAAA,KAAa,aAAa;CAAS;CAEtF,MAAM,YAAY,WAAW,aAAa,QAAQ,MAAM,WAAW,UAAU,IAAI,KAAA;CACjF,MAAM,aAAa,cAAc,KAAA,KAAa,cAAc,QAAQ,cAAc,KAAK,OAAO,OAAO,SAAS;CAC9G,MAAM,aAAa,WAAW,cAAc,QAAQ,MAAM,WAAW,WAAW,IAAI,KAAA;CACpF,MAAM,UAAU,OAAO,eAAe,YAAY,aAAa,eAAe;CAC9E,MAAM,WAAW,WAAW,iBAAiB,QAAQ,MAAM,WAAW,cAAc,IAAI,KAAA;CAExF,OAAO;EAAE;EAAY;EAAS,YADX,OAAO,aAAa,WAAW,WAAW,aAAa,KAAA,KAAa,CAAC,MAAM,OAAO,QAAQ,CAAC,IAAI,OAAO,QAAQ,IAAI,KAAA;CAC5F;AAC3C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,60 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
export { Arethesis, getArethesis, defineType, defineEndpoint, VERSION } from './core/arethesis';
|
|
7
|
-
export type { ArethesisEvents } from './core/arethesis';
|
|
8
|
-
export type { ArethesisConfig } from './core/types';
|
|
9
|
-
export { ObjectStore } from './data/object-store';
|
|
10
|
-
export type { PersistenceHooks } from './data/object-store';
|
|
11
|
-
export { ListViewRegistry } from './data/list-view-registry';
|
|
12
|
-
export { OptimisticUpdateManager } from './data/optimistic-updates';
|
|
13
|
-
export type { OptimisticEvent, OptimisticKind, CreateOptions } from './data/optimistic-updates';
|
|
14
|
-
export { PersistenceManager } from './data/persistence-manager';
|
|
15
|
-
export type { PersistenceOptions } from './data/persistence-manager';
|
|
16
|
-
export type * from './data/types';
|
|
17
|
-
export { HttpClient } from './http/http-client';
|
|
18
|
-
export { HttpError } from './http/http-error';
|
|
19
|
-
export type { HttpErrorKind, HttpErrorDetails } from './http/http-error';
|
|
20
|
-
export { AuthManager } from './http/auth-manager';
|
|
21
|
-
export type { AuthEvents } from './http/auth-manager';
|
|
22
|
-
export type * from './http/types';
|
|
23
|
-
export { Component } from './components/component';
|
|
24
|
-
export { defineComponent, getComponentMetadata, COMPONENT_METADATA } from './components/decorators';
|
|
25
|
-
export { TemplateLoader, templateLoader } from './components/template-loader';
|
|
26
|
-
export type * from './components/types';
|
|
27
|
-
export { DataBinder, formatRelative, RelativeTimeTicker, relativeTimes } from './binding/data-binder';
|
|
28
|
-
export type { BindingHandle } from './binding/data-binder';
|
|
29
|
-
export { ValidationEngine } from './binding/validation-engine';
|
|
30
|
-
export type * from './binding/types';
|
|
31
|
-
export { SSEManager } from './realtime/sse-manager';
|
|
32
|
-
export { WebSocketManager } from './realtime/websocket-manager';
|
|
33
|
-
export { AzurePubSubManager } from './realtime/azure-pubsub-manager';
|
|
34
|
-
export { TextOperation } from './realtime/ot/text-operation';
|
|
35
|
-
export type { OpComponent } from './realtime/ot/text-operation';
|
|
36
|
-
export { OTClient } from './realtime/ot/client';
|
|
37
|
-
export type { OTClientState, OTClientCallbacks } from './realtime/ot/client';
|
|
38
|
-
export { OTDocumentServer, CollabServer } from './realtime/ot/server';
|
|
39
|
-
export { CollabSession, CollabManager } from './realtime/collab/collab-session';
|
|
40
|
-
export type { CollabEvents, CollabOptions, CollabStatus } from './realtime/collab/collab-session';
|
|
41
|
-
export { TextareaAdapter } from './realtime/collab/textarea-adapter';
|
|
42
|
-
export type { EditorAdapter } from './realtime/collab/textarea-adapter';
|
|
43
|
-
export { CursorOverlay, caretCoordinates } from './realtime/collab/cursor-overlay';
|
|
44
|
-
export type * from './realtime/types';
|
|
1
|
+
export * from './core/index';
|
|
2
|
+
export * from './realtime/index';
|
|
3
|
+
export * from './collab/index';
|
|
45
4
|
export * from './mixins/index';
|
|
46
|
-
export { PluginManager, registerBuiltInPlugin } from './plugins/plugin-manager';
|
|
47
5
|
export { dateUtilsPlugin } from './plugins/date-utils';
|
|
48
6
|
export type { DatePickerOptions, DateRangeOptions } from './plugins/date-utils';
|
|
49
7
|
export { asyncValidatorsPlugin } from './plugins/async-validators';
|
|
50
8
|
export type { AsyncValidatorsOptions } from './plugins/async-validators';
|
|
51
9
|
export { richTextPlugin, richTextMixin } from './plugins/rich-text';
|
|
52
10
|
export type { RichTextOptions, RichTextCommand } from './plugins/rich-text';
|
|
53
|
-
export type * from './plugins/types';
|
|
54
|
-
export { sanitizeHtml, htmlToText } from './utils/sanitize';
|
|
55
|
-
export type { SanitizeOptions } from './utils/sanitize';
|
|
56
|
-
export { sanitizeUrl } from './utils/url';
|
|
57
|
-
export { parseDate, formatDatePattern, toDateInputValue, toDateTimeInputValue } from './utils/dates';
|
|
58
|
-
export { getPath, setPath, deepMerge, deepEqual } from './utils/path';
|
|
59
|
-
export { Emitter } from './utils/emitter';
|
|
60
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,YAAY,CAAC;AAEpB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { MixinRegistry, applyMixin, initMixins, mixinRegistry, observeMixins, registerMixin, removeMixin } from "./mixins/registry.js";
|
|
2
|
+
import { announce, placeFloating } from "./mixins/utils.js";
|
|
3
|
+
import { draggableMixin } from "./mixins/draggable.js";
|
|
4
|
+
import { editableMixin } from "./mixins/editable.js";
|
|
5
|
+
import { gridNavigationMixin } from "./mixins/grid-navigation.js";
|
|
6
|
+
import { infiniteScrollMixin } from "./mixins/infinite-scroll.js";
|
|
7
|
+
import { sortableMixin } from "./mixins/sortable.js";
|
|
8
|
+
import { resizableMixin } from "./mixins/resizable.js";
|
|
9
|
+
import { attachPopup, popupHost, supportsPopover } from "./mixins/popup.js";
|
|
10
|
+
import { dropdownMixin } from "./mixins/dropdown.js";
|
|
11
|
+
import { tooltipMixin } from "./mixins/tooltip.js";
|
|
12
|
+
import { contextMenuMixin } from "./mixins/context-menu.js";
|
|
13
|
+
import { listboxMixin } from "./mixins/listbox.js";
|
|
14
|
+
import "./defaults.js";
|
|
15
|
+
import { TemplateLoader, templateLoader } from "./components/template-loader.js";
|
|
16
|
+
import { COMPONENT_METADATA, defineComponent, getComponentMetadata } from "./components/decorators.js";
|
|
17
|
+
import { computeWindow } from "./utils/virtual-window.js";
|
|
18
|
+
import { HttpError } from "./http/http-error.js";
|
|
19
|
+
import { Component } from "./components/component.js";
|
|
20
|
+
import { PluginManager, registerBuiltInPlugin } from "./plugins/plugin-manager.js";
|
|
21
|
+
import { VERSION } from "./version.js";
|
|
22
|
+
import { formatDatePattern, parseDate, toDateInputValue, toDateTimeInputValue } from "./utils/dates.js";
|
|
23
|
+
import "./realtime/index.js";
|
|
24
|
+
import { deepEqual, deepMerge, getPath, setPath } from "./utils/path.js";
|
|
25
|
+
import "./collab/index.js";
|
|
26
|
+
import { sanitizeUrl } from "./utils/url.js";
|
|
27
|
+
import { htmlToText, sanitizeHtml } from "./utils/sanitize.js";
|
|
28
|
+
import { registerBuiltInMixins } from "./mixins/index.js";
|
|
29
|
+
import { Emitter } from "./utils/emitter.js";
|
|
30
|
+
import { SSEManager } from "./realtime/sse-manager.js";
|
|
31
|
+
import { WebSocketManager } from "./realtime/websocket-manager.js";
|
|
32
|
+
import { AzurePubSubManager } from "./realtime/azure-pubsub-manager.js";
|
|
33
|
+
import { TextOperation } from "./realtime/ot/text-operation.js";
|
|
34
|
+
import { OTClient } from "./realtime/ot/client.js";
|
|
35
|
+
import { mapRange, transformRange } from "./realtime/collab/anchors.js";
|
|
36
|
+
import { CollabServer, OTDocumentServer } from "./realtime/ot/server.js";
|
|
37
|
+
import { dateUtilsPlugin } from "./plugins/date-utils.js";
|
|
38
|
+
import { TextareaAdapter } from "./realtime/collab/textarea-adapter.js";
|
|
39
|
+
import { CursorOverlay, caretCoordinates, rangeRects } from "./realtime/collab/cursor-overlay.js";
|
|
40
|
+
import { UndoManager, caretAfter } from "./realtime/collab/undo-manager.js";
|
|
41
|
+
import { CollabManager, CollabSession } from "./realtime/collab/collab-session.js";
|
|
42
|
+
import { asyncValidatorsPlugin } from "./plugins/async-validators.js";
|
|
43
|
+
import { richTextMixin, richTextPlugin } from "./plugins/rich-text.js";
|
|
44
|
+
import { ObjectStore } from "./data/object-store.js";
|
|
45
|
+
import { ListViewRegistry } from "./data/list-view-registry.js";
|
|
46
|
+
import { OptimisticUpdateManager } from "./data/optimistic-updates.js";
|
|
47
|
+
import { PersistenceManager } from "./data/persistence-manager.js";
|
|
48
|
+
import { AuthManager } from "./http/auth-manager.js";
|
|
49
|
+
import { HttpClient } from "./http/http-client.js";
|
|
50
|
+
import { ValidationEngine } from "./binding/validation-engine.js";
|
|
51
|
+
import { DataBinder, RelativeTimeTicker, formatRelative, isFormAssociated, relativeTimes } from "./binding/data-binder.js";
|
|
52
|
+
import { Arethesis, defineEndpoint, defineType, getArethesis } from "./core/arethesis.js";
|
|
53
|
+
import { FormAssociatedComponent } from "./components/form-associated.js";
|
|
54
|
+
import { fuzzyFilter, fuzzyMatch, highlightMatch } from "./utils/fuzzy.js";
|
|
55
|
+
export { Arethesis, AuthManager, AzurePubSubManager, COMPONENT_METADATA, CollabManager, CollabServer, CollabSession, Component, CursorOverlay, DataBinder, Emitter, FormAssociatedComponent, HttpClient, HttpError, ListViewRegistry, MixinRegistry, OTClient, OTDocumentServer, ObjectStore, OptimisticUpdateManager, PersistenceManager, PluginManager, RelativeTimeTicker, SSEManager, TemplateLoader, TextOperation, TextareaAdapter, UndoManager, VERSION, ValidationEngine, WebSocketManager, announce, applyMixin, asyncValidatorsPlugin, attachPopup, caretAfter, caretCoordinates, computeWindow, contextMenuMixin, dateUtilsPlugin, deepEqual, deepMerge, defineComponent, defineEndpoint, defineType, draggableMixin, dropdownMixin, editableMixin, formatDatePattern, formatRelative, fuzzyFilter, fuzzyMatch, getArethesis, getComponentMetadata, getPath, gridNavigationMixin, highlightMatch, htmlToText, infiniteScrollMixin, initMixins, isFormAssociated, listboxMixin, mapRange, mixinRegistry, observeMixins, parseDate, placeFloating, popupHost, rangeRects, registerBuiltInMixins, registerBuiltInPlugin, registerMixin, relativeTimes, removeMixin, resizableMixin, richTextMixin, richTextPlugin, sanitizeHtml, sanitizeUrl, setPath, sortableMixin, supportsPopover, templateLoader, toDateInputValue, toDateTimeInputValue, tooltipMixin, transformRange };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FormAssociatedComponent } from '../components/form-associated';
|
|
2
|
+
import { ListView, ListViewConfig } from '../data/types';
|
|
3
|
+
export interface CalendarConfig<T = Record<string, unknown>> {
|
|
4
|
+
/** Events to show on their days. */
|
|
5
|
+
list?: ListView | ListViewConfig;
|
|
6
|
+
/** The field with each item's date. @default 'date' */
|
|
7
|
+
dateField?: string;
|
|
8
|
+
/** Each item's text in a day. @default its `title` or `name` */
|
|
9
|
+
label?: (item: T) => string;
|
|
10
|
+
/** Filter names for the visible range, updated as the month changes (dates as `YYYY-MM-DD`). */
|
|
11
|
+
range?: {
|
|
12
|
+
start: string;
|
|
13
|
+
end: string;
|
|
14
|
+
};
|
|
15
|
+
/** Dates that can't be picked. */
|
|
16
|
+
isDisabled?: (date: Date) => boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare class Calendar extends FormAssociatedComponent<string> {
|
|
19
|
+
#private;
|
|
20
|
+
static get observedAttributes(): string[];
|
|
21
|
+
attributeChangedCallback(): void;
|
|
22
|
+
/** Show events from a list, and how to read them. */
|
|
23
|
+
configure<T>(config: CalendarConfig<T>): void;
|
|
24
|
+
/** The month shown: `{ year, month }` (month 0–11). */
|
|
25
|
+
get month(): {
|
|
26
|
+
year: number;
|
|
27
|
+
month: number;
|
|
28
|
+
};
|
|
29
|
+
/** Show the month containing `date`. */
|
|
30
|
+
showMonth(date: Date | string): void;
|
|
31
|
+
protected get focusTarget(): HTMLElement;
|
|
32
|
+
protected serialize(value: string): string | FormData | null;
|
|
33
|
+
protected parse(state: string): string;
|
|
34
|
+
protected emptyValue(): string;
|
|
35
|
+
protected validate(value: string): string;
|
|
36
|
+
protected onValueChange(): void;
|
|
37
|
+
focus(options?: FocusOptions): void;
|
|
38
|
+
protected onConnected(): void;
|
|
39
|
+
protected onDisconnected(): void;
|
|
40
|
+
}
|
|
41
|
+
/** Define `<a-calendar>` (idempotent). `import 'arethesis/components/calendar'` calls this. */
|
|
42
|
+
export declare function defineCalendar(): void;
|
|
43
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/kit/calendar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAK9D,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,oCAAoC;IACpC,IAAI,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;IACjC,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAC5B,gGAAgG;IAChG,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,kCAAkC;IAClC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CACtC;AAeD,qBAAa,QAAS,SAAQ,uBAAuB,CAAC,MAAM,CAAC;;IAS3D,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,wBAAwB,IAAI,IAAI;IAIhC,qDAAqD;IACrD,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;IAc7C,uDAAuD;IACvD,IAAI,KAAK,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAE3C;IAED,wCAAwC;IACxC,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI;IAYpC,SAAS,KAAK,WAAW,IAAI,WAAW,CAEvC;IAED,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI;IAU5D,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAItC,SAAS,CAAC,UAAU,IAAI,MAAM;cAIX,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;cAQ/B,aAAa,IAAI,IAAI;IAI/B,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;cAMzB,WAAW,IAAI,IAAI;cAmCnB,cAAc,IAAI,IAAI;CAmP1C;AAED,+FAA+F;AAC/F,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|