@inkbar/vue 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -5
- package/dist/components/InkIcon.js +7 -0
- package/dist/components/InkIcon.js.map +1 -0
- package/dist/components/InkIcon.vue.d.ts +11 -0
- package/dist/components/InkIcon.vue.d.ts.map +1 -0
- package/dist/components/InkIcon.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/InkIcon.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/InkNextPage.js +7 -0
- package/dist/components/InkNextPage.js.map +1 -0
- package/dist/components/InkNextPage.vue.d.ts +19 -0
- package/dist/components/InkNextPage.vue.d.ts.map +1 -0
- package/dist/components/InkNextPage.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/InkNextPage.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/InkNotePopover.js.map +1 -1
- package/dist/components/InkNotePopover.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/InkNotePopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/InkPrevPage.js +7 -0
- package/dist/components/InkPrevPage.js.map +1 -0
- package/dist/components/InkPrevPage.vue.d.ts +19 -0
- package/dist/components/InkPrevPage.vue.d.ts.map +1 -0
- package/dist/components/InkPrevPage.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/InkPrevPage.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/InkRedo.js +7 -0
- package/dist/components/InkRedo.js.map +1 -0
- package/dist/{compositions/DefaultToolbar.vue.d.ts → components/InkRedo.vue.d.ts} +5 -5
- package/dist/components/InkRedo.vue.d.ts.map +1 -0
- package/dist/components/InkRedo.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/InkRedo.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/InkRoot.vue.d.ts +42 -42
- package/dist/components/InkToolButton.js.map +1 -1
- package/dist/components/InkToolButton.vue.d.ts.map +1 -1
- package/dist/components/InkToolButton.vue_vue_type_script_setup_true_lang.js +26 -18
- package/dist/components/InkToolButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/InkToolbarSeparator.js +7 -0
- package/dist/components/InkToolbarSeparator.js.map +1 -0
- package/dist/components/InkToolbarSeparator.vue.d.ts +4 -0
- package/dist/components/InkToolbarSeparator.vue.d.ts.map +1 -0
- package/dist/components/InkToolbarSeparator.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/components/InkToolbarSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/InkUndo.js +7 -0
- package/dist/components/InkUndo.js.map +1 -0
- package/dist/components/InkUndo.vue.d.ts +19 -0
- package/dist/components/InkUndo.vue.d.ts.map +1 -0
- package/dist/components/InkUndo.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/InkUndo.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/InkZoomIn.js.map +1 -1
- package/dist/components/InkZoomIn.vue.d.ts.map +1 -1
- package/dist/components/InkZoomIn.vue_vue_type_script_setup_true_lang.js +13 -11
- package/dist/components/InkZoomIn.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/InkZoomOut.js.map +1 -1
- package/dist/components/InkZoomOut.vue.d.ts.map +1 -1
- package/dist/components/InkZoomOut.vue_vue_type_script_setup_true_lang.js +13 -11
- package/dist/components/InkZoomOut.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/InkZoomSelect.js.map +1 -1
- package/dist/components/InkZoomSelect.vue.d.ts.map +1 -1
- package/dist/components/InkZoomSelect.vue_vue_type_script_setup_true_lang.js +105 -29
- package/dist/components/InkZoomSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useAnnotations.d.ts +112 -112
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -10
- package/package.json +5 -5
- package/dist/compositions/DefaultToolbar.js +0 -7
- package/dist/compositions/DefaultToolbar.js.map +0 -1
- package/dist/compositions/DefaultToolbar.vue.d.ts.map +0 -1
- package/dist/compositions/DefaultToolbar.vue_vue_type_script_setup_true_lang.js +0 -100
- package/dist/compositions/DefaultToolbar.vue_vue_type_script_setup_true_lang.js.map +0 -1
|
@@ -84,8 +84,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
84
84
|
createdAt: string;
|
|
85
85
|
modifiedAt: string;
|
|
86
86
|
source: "session" | "pdf";
|
|
87
|
-
type: "
|
|
88
|
-
icon: "
|
|
87
|
+
type: "text";
|
|
88
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
89
89
|
author?: string | undefined;
|
|
90
90
|
contents?: string | undefined;
|
|
91
91
|
inReplyTo?: string | undefined;
|
|
@@ -105,13 +105,12 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
105
105
|
createdAt: string;
|
|
106
106
|
modifiedAt: string;
|
|
107
107
|
source: "session" | "pdf";
|
|
108
|
-
type: "
|
|
109
|
-
|
|
108
|
+
type: "freetext";
|
|
109
|
+
contents: string;
|
|
110
110
|
fontSize: number;
|
|
111
111
|
fontFamily: string;
|
|
112
112
|
align: "left" | "center" | "right";
|
|
113
113
|
author?: string | undefined;
|
|
114
|
-
contents?: string | undefined;
|
|
115
114
|
inReplyTo?: string | undefined;
|
|
116
115
|
locked?: boolean | undefined;
|
|
117
116
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -134,13 +133,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
134
133
|
modifiedAt: string;
|
|
135
134
|
source: "session" | "pdf";
|
|
136
135
|
type: "square" | "circle";
|
|
137
|
-
|
|
136
|
+
width: number;
|
|
138
137
|
author?: string | undefined;
|
|
139
138
|
contents?: string | undefined;
|
|
140
139
|
inReplyTo?: string | undefined;
|
|
141
140
|
locked?: boolean | undefined;
|
|
142
141
|
custom?: Record<string, unknown> | undefined;
|
|
143
|
-
|
|
142
|
+
interiorColor?: string | undefined;
|
|
144
143
|
} | {
|
|
145
144
|
id: string;
|
|
146
145
|
page: number;
|
|
@@ -164,13 +163,14 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
164
163
|
x: number;
|
|
165
164
|
y: number;
|
|
166
165
|
};
|
|
167
|
-
|
|
166
|
+
width: number;
|
|
168
167
|
author?: string | undefined;
|
|
169
168
|
contents?: string | undefined;
|
|
170
169
|
inReplyTo?: string | undefined;
|
|
171
170
|
locked?: boolean | undefined;
|
|
172
171
|
custom?: Record<string, unknown> | undefined;
|
|
173
|
-
|
|
172
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
173
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
174
174
|
} | {
|
|
175
175
|
id: string;
|
|
176
176
|
page: number;
|
|
@@ -190,13 +190,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
190
190
|
x: number;
|
|
191
191
|
y: number;
|
|
192
192
|
}[];
|
|
193
|
-
|
|
193
|
+
width: number;
|
|
194
194
|
author?: string | undefined;
|
|
195
195
|
contents?: string | undefined;
|
|
196
196
|
inReplyTo?: string | undefined;
|
|
197
197
|
locked?: boolean | undefined;
|
|
198
198
|
custom?: Record<string, unknown> | undefined;
|
|
199
|
-
|
|
199
|
+
interiorColor?: string | undefined;
|
|
200
200
|
} | {
|
|
201
201
|
id: string;
|
|
202
202
|
page: number;
|
|
@@ -212,11 +212,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
212
212
|
modifiedAt: string;
|
|
213
213
|
source: "session" | "pdf";
|
|
214
214
|
type: "ink";
|
|
215
|
-
|
|
215
|
+
inklist: {
|
|
216
216
|
x: number;
|
|
217
217
|
y: number;
|
|
218
218
|
}[][];
|
|
219
|
-
|
|
219
|
+
width: number;
|
|
220
220
|
author?: string | undefined;
|
|
221
221
|
contents?: string | undefined;
|
|
222
222
|
inReplyTo?: string | undefined;
|
|
@@ -238,7 +238,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
238
238
|
source: "session" | "pdf";
|
|
239
239
|
type: "redact";
|
|
240
240
|
origin: "user" | "suggested";
|
|
241
|
-
|
|
241
|
+
interiorColor: string;
|
|
242
242
|
author?: string | undefined;
|
|
243
243
|
contents?: string | undefined;
|
|
244
244
|
inReplyTo?: string | undefined;
|
|
@@ -331,8 +331,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
331
331
|
createdAt: string;
|
|
332
332
|
modifiedAt: string;
|
|
333
333
|
source: "session" | "pdf";
|
|
334
|
-
type: "
|
|
335
|
-
icon: "
|
|
334
|
+
type: "text";
|
|
335
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
336
336
|
author?: string | undefined;
|
|
337
337
|
contents?: string | undefined;
|
|
338
338
|
inReplyTo?: string | undefined;
|
|
@@ -352,13 +352,12 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
352
352
|
createdAt: string;
|
|
353
353
|
modifiedAt: string;
|
|
354
354
|
source: "session" | "pdf";
|
|
355
|
-
type: "
|
|
356
|
-
|
|
355
|
+
type: "freetext";
|
|
356
|
+
contents: string;
|
|
357
357
|
fontSize: number;
|
|
358
358
|
fontFamily: string;
|
|
359
359
|
align: "left" | "center" | "right";
|
|
360
360
|
author?: string | undefined;
|
|
361
|
-
contents?: string | undefined;
|
|
362
361
|
inReplyTo?: string | undefined;
|
|
363
362
|
locked?: boolean | undefined;
|
|
364
363
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -381,13 +380,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
381
380
|
modifiedAt: string;
|
|
382
381
|
source: "session" | "pdf";
|
|
383
382
|
type: "square" | "circle";
|
|
384
|
-
|
|
383
|
+
width: number;
|
|
385
384
|
author?: string | undefined;
|
|
386
385
|
contents?: string | undefined;
|
|
387
386
|
inReplyTo?: string | undefined;
|
|
388
387
|
locked?: boolean | undefined;
|
|
389
388
|
custom?: Record<string, unknown> | undefined;
|
|
390
|
-
|
|
389
|
+
interiorColor?: string | undefined;
|
|
391
390
|
} | {
|
|
392
391
|
id: string;
|
|
393
392
|
page: number;
|
|
@@ -411,13 +410,14 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
411
410
|
x: number;
|
|
412
411
|
y: number;
|
|
413
412
|
};
|
|
414
|
-
|
|
413
|
+
width: number;
|
|
415
414
|
author?: string | undefined;
|
|
416
415
|
contents?: string | undefined;
|
|
417
416
|
inReplyTo?: string | undefined;
|
|
418
417
|
locked?: boolean | undefined;
|
|
419
418
|
custom?: Record<string, unknown> | undefined;
|
|
420
|
-
|
|
419
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
420
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
421
421
|
} | {
|
|
422
422
|
id: string;
|
|
423
423
|
page: number;
|
|
@@ -437,13 +437,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
437
437
|
x: number;
|
|
438
438
|
y: number;
|
|
439
439
|
}[];
|
|
440
|
-
|
|
440
|
+
width: number;
|
|
441
441
|
author?: string | undefined;
|
|
442
442
|
contents?: string | undefined;
|
|
443
443
|
inReplyTo?: string | undefined;
|
|
444
444
|
locked?: boolean | undefined;
|
|
445
445
|
custom?: Record<string, unknown> | undefined;
|
|
446
|
-
|
|
446
|
+
interiorColor?: string | undefined;
|
|
447
447
|
} | {
|
|
448
448
|
id: string;
|
|
449
449
|
page: number;
|
|
@@ -459,11 +459,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
459
459
|
modifiedAt: string;
|
|
460
460
|
source: "session" | "pdf";
|
|
461
461
|
type: "ink";
|
|
462
|
-
|
|
462
|
+
inklist: {
|
|
463
463
|
x: number;
|
|
464
464
|
y: number;
|
|
465
465
|
}[][];
|
|
466
|
-
|
|
466
|
+
width: number;
|
|
467
467
|
author?: string | undefined;
|
|
468
468
|
contents?: string | undefined;
|
|
469
469
|
inReplyTo?: string | undefined;
|
|
@@ -485,7 +485,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
485
485
|
source: "session" | "pdf";
|
|
486
486
|
type: "redact";
|
|
487
487
|
origin: "user" | "suggested";
|
|
488
|
-
|
|
488
|
+
interiorColor: string;
|
|
489
489
|
author?: string | undefined;
|
|
490
490
|
contents?: string | undefined;
|
|
491
491
|
inReplyTo?: string | undefined;
|
|
@@ -581,8 +581,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
581
581
|
createdAt: string;
|
|
582
582
|
modifiedAt: string;
|
|
583
583
|
source: "session" | "pdf";
|
|
584
|
-
type: "
|
|
585
|
-
icon: "
|
|
584
|
+
type: "text";
|
|
585
|
+
icon: "comment" | "note" | "help" | "insert" | "key" | "paragraph";
|
|
586
586
|
author?: string | undefined;
|
|
587
587
|
contents?: string | undefined;
|
|
588
588
|
inReplyTo?: string | undefined;
|
|
@@ -602,13 +602,12 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
602
602
|
createdAt: string;
|
|
603
603
|
modifiedAt: string;
|
|
604
604
|
source: "session" | "pdf";
|
|
605
|
-
type: "
|
|
606
|
-
|
|
605
|
+
type: "freetext";
|
|
606
|
+
contents: string;
|
|
607
607
|
fontSize: number;
|
|
608
608
|
fontFamily: string;
|
|
609
609
|
align: "left" | "center" | "right";
|
|
610
610
|
author?: string | undefined;
|
|
611
|
-
contents?: string | undefined;
|
|
612
611
|
inReplyTo?: string | undefined;
|
|
613
612
|
locked?: boolean | undefined;
|
|
614
613
|
custom?: Record<string, unknown> | undefined;
|
|
@@ -631,13 +630,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
631
630
|
modifiedAt: string;
|
|
632
631
|
source: "session" | "pdf";
|
|
633
632
|
type: "square" | "circle";
|
|
634
|
-
|
|
633
|
+
width: number;
|
|
635
634
|
author?: string | undefined;
|
|
636
635
|
contents?: string | undefined;
|
|
637
636
|
inReplyTo?: string | undefined;
|
|
638
637
|
locked?: boolean | undefined;
|
|
639
638
|
custom?: Record<string, unknown> | undefined;
|
|
640
|
-
|
|
639
|
+
interiorColor?: string | undefined;
|
|
641
640
|
} | {
|
|
642
641
|
id: string;
|
|
643
642
|
page: number;
|
|
@@ -661,13 +660,14 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
661
660
|
x: number;
|
|
662
661
|
y: number;
|
|
663
662
|
};
|
|
664
|
-
|
|
663
|
+
width: number;
|
|
665
664
|
author?: string | undefined;
|
|
666
665
|
contents?: string | undefined;
|
|
667
666
|
inReplyTo?: string | undefined;
|
|
668
667
|
locked?: boolean | undefined;
|
|
669
668
|
custom?: Record<string, unknown> | undefined;
|
|
670
|
-
|
|
669
|
+
head?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
670
|
+
tail?: "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash" | undefined;
|
|
671
671
|
} | {
|
|
672
672
|
id: string;
|
|
673
673
|
page: number;
|
|
@@ -687,13 +687,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
687
687
|
x: number;
|
|
688
688
|
y: number;
|
|
689
689
|
}[];
|
|
690
|
-
|
|
690
|
+
width: number;
|
|
691
691
|
author?: string | undefined;
|
|
692
692
|
contents?: string | undefined;
|
|
693
693
|
inReplyTo?: string | undefined;
|
|
694
694
|
locked?: boolean | undefined;
|
|
695
695
|
custom?: Record<string, unknown> | undefined;
|
|
696
|
-
|
|
696
|
+
interiorColor?: string | undefined;
|
|
697
697
|
} | {
|
|
698
698
|
id: string;
|
|
699
699
|
page: number;
|
|
@@ -709,11 +709,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
709
709
|
modifiedAt: string;
|
|
710
710
|
source: "session" | "pdf";
|
|
711
711
|
type: "ink";
|
|
712
|
-
|
|
712
|
+
inklist: {
|
|
713
713
|
x: number;
|
|
714
714
|
y: number;
|
|
715
715
|
}[][];
|
|
716
|
-
|
|
716
|
+
width: number;
|
|
717
717
|
author?: string | undefined;
|
|
718
718
|
contents?: string | undefined;
|
|
719
719
|
inReplyTo?: string | undefined;
|
|
@@ -735,7 +735,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
735
735
|
source: "session" | "pdf";
|
|
736
736
|
type: "redact";
|
|
737
737
|
origin: "user" | "suggested";
|
|
738
|
-
|
|
738
|
+
interiorColor: string;
|
|
739
739
|
author?: string | undefined;
|
|
740
740
|
contents?: string | undefined;
|
|
741
741
|
inReplyTo?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkToolButton.js","names":["_sfc_main","InkToolButton_vue_vue_type_script_setup_true_lang_default","InkToolButton_default"],"sources":["../../src/components/InkToolButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TOOL_LABELS } from '@inkbar/core/dom'\nimport { ToolbarButton } from 'reka-ui'\nimport { computed } from 'vue'\n\nimport { useTool } from '../composables/useTool'\n\nimport type { ToolId } from '@inkbar/core/dom'\n\nconst props = withDefaults(\n defineProps<{ tool: ToolId; label?: string | undefined; asChild?: boolean }>(),\n { label: undefined, asChild: false }\n)\n\nconst { tool: current, setTool } = useTool()\nconst active = computed(() => current.value === props.tool)\nconst name = computed(() => props.label ?? TOOL_LABELS[props.tool])\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = computed(() => ({\n 'aria-pressed': String(active.value),\n 'aria-label': name.value,\n title: name.value,\n onClick: () => setTool(props.tool),\n}))\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n class=\"ink-tool-button\"\n data-ink-tool-button\n :data-tool=\"tool\"\n :data-state=\"active ? 'on' : 'off'\"\n v-bind=\"attrs\"\n >\n <slot :active=\"active\" :label=\"name\"
|
|
1
|
+
{"version":3,"file":"InkToolButton.js","names":["_sfc_main","InkToolButton_vue_vue_type_script_setup_true_lang_default","InkToolButton_default"],"sources":["../../src/components/InkToolButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TOOL_LABELS } from '@inkbar/core/dom'\nimport { Hand, Highlighter, MessageSquare, MousePointer2, Square } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\nimport { computed } from 'vue'\n\nimport { useTool } from '../composables/useTool'\n\nimport InkIcon from './InkIcon.vue'\n\nimport type { ToolId } from '@inkbar/core/dom'\nimport type { IconNode } from '@inkbar/icons'\n\nconst ICONS: Readonly<Record<ToolId, IconNode>> = {\n view: Hand,\n select: MousePointer2,\n highlight: Highlighter,\n 'redact-area': Square,\n note: MessageSquare,\n}\n\nconst props = withDefaults(\n defineProps<{ tool: ToolId; label?: string | undefined; asChild?: boolean }>(),\n { label: undefined, asChild: false }\n)\n\nconst { tool: current, setTool } = useTool()\nconst active = computed(() => current.value === props.tool)\nconst name = computed(() => props.label ?? TOOL_LABELS[props.tool])\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = computed(() => ({\n 'aria-pressed': String(active.value),\n 'aria-label': name.value,\n title: name.value,\n onClick: () => setTool(props.tool),\n}))\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n class=\"ink-tool-button\"\n data-ink-tool-button\n :data-tool=\"tool\"\n :data-state=\"active ? 'on' : 'off'\"\n v-bind=\"attrs\"\n >\n <slot :active=\"active\" :label=\"name\"><InkIcon :icon=\"ICONS[tool]\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkToolButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkToolButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InkToolButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkToolButton.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAY9C,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAqEnF,QAAA,IAAI,OAAO;;;CAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { useTool as e } from "../composables/useTool.js";
|
|
2
|
-
import
|
|
2
|
+
import t from "./InkIcon.js";
|
|
3
|
+
import { computed as n, createBlock as r, createVNode as i, defineComponent as a, mergeProps as o, openBlock as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
3
4
|
import { TOOL_LABELS as d } from "@inkbar/core/dom";
|
|
4
5
|
import { ToolbarButton as f } from "reka-ui";
|
|
6
|
+
import { Hand as p, Highlighter as m, MessageSquare as h, MousePointer2 as g, Square as _ } from "@inkbar/icons";
|
|
5
7
|
//#region src/components/InkToolButton.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
8
|
+
var v = /*@__PURE__*/ a({
|
|
7
9
|
__name: "InkToolButton",
|
|
8
10
|
props: {
|
|
9
11
|
tool: {},
|
|
@@ -13,24 +15,30 @@ var p = /*@__PURE__*/ i({
|
|
|
13
15
|
default: !1
|
|
14
16
|
}
|
|
15
17
|
},
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
setup(a) {
|
|
19
|
+
let v = {
|
|
20
|
+
view: p,
|
|
21
|
+
select: g,
|
|
22
|
+
highlight: m,
|
|
23
|
+
"redact-area": _,
|
|
24
|
+
note: h
|
|
25
|
+
}, y = a, { tool: b, setTool: x } = e(), S = n(() => b.value === y.tool), C = n(() => y.label ?? d[y.tool]), w = n(() => ({
|
|
26
|
+
"aria-pressed": String(S.value),
|
|
27
|
+
"aria-label": C.value,
|
|
28
|
+
title: C.value,
|
|
29
|
+
onClick: () => x(y.tool)
|
|
22
30
|
}));
|
|
23
|
-
return (e,
|
|
24
|
-
"as-child":
|
|
31
|
+
return (e, n) => (s(), r(l(f), o({
|
|
32
|
+
"as-child": a.asChild,
|
|
25
33
|
class: "ink-tool-button",
|
|
26
34
|
"data-ink-tool-button": "",
|
|
27
|
-
"data-tool":
|
|
28
|
-
"data-state":
|
|
29
|
-
},
|
|
30
|
-
default: u(() => [
|
|
31
|
-
active:
|
|
32
|
-
label:
|
|
33
|
-
}, () => [
|
|
35
|
+
"data-tool": a.tool,
|
|
36
|
+
"data-state": S.value ? "on" : "off"
|
|
37
|
+
}, w.value), {
|
|
38
|
+
default: u(() => [c(e.$slots, "default", {
|
|
39
|
+
active: S.value,
|
|
40
|
+
label: C.value
|
|
41
|
+
}, () => [i(t, { icon: v[a.tool] }, null, 8, ["icon"])])]),
|
|
34
42
|
_: 3
|
|
35
43
|
}, 16, [
|
|
36
44
|
"as-child",
|
|
@@ -40,6 +48,6 @@ var p = /*@__PURE__*/ i({
|
|
|
40
48
|
}
|
|
41
49
|
});
|
|
42
50
|
//#endregion
|
|
43
|
-
export {
|
|
51
|
+
export { v as default };
|
|
44
52
|
|
|
45
53
|
//# sourceMappingURL=InkToolButton.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkToolButton.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_mergeProps","_withCtx","_renderSlot","
|
|
1
|
+
{"version":3,"file":"InkToolButton.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_mergeProps","_withCtx","_renderSlot","_createVNode","InkIcon","InkIcon_default","InkToolButton_vue_vue_type_script_setup_true_lang_default","ICONS","Hand","MousePointer2","Highlighter","Square","MessageSquare","props","__props","current","useTool","active","computed","name","TOOL_LABELS","attrs","setTool","openBlock","createBlock","unref","ToolbarButton","mergeProps","withCtx","renderSlot","_ctx","createVNode"],"sources":["../../src/components/InkToolButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { TOOL_LABELS } from '@inkbar/core/dom'\nimport { Hand, Highlighter, MessageSquare, MousePointer2, Square } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\nimport { computed } from 'vue'\n\nimport { useTool } from '../composables/useTool'\n\nimport InkIcon from './InkIcon.vue'\n\nimport type { ToolId } from '@inkbar/core/dom'\nimport type { IconNode } from '@inkbar/icons'\n\nconst ICONS: Readonly<Record<ToolId, IconNode>> = {\n view: Hand,\n select: MousePointer2,\n highlight: Highlighter,\n 'redact-area': Square,\n note: MessageSquare,\n}\n\nconst props = withDefaults(\n defineProps<{ tool: ToolId; label?: string | undefined; asChild?: boolean }>(),\n { label: undefined, asChild: false }\n)\n\nconst { tool: current, setTool } = useTool()\nconst active = computed(() => current.value === props.tool)\nconst name = computed(() => props.label ?? TOOL_LABELS[props.tool])\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = computed(() => ({\n 'aria-pressed': String(active.value),\n 'aria-label': name.value,\n title: name.value,\n onClick: () => setTool(props.tool),\n}))\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n class=\"ink-tool-button\"\n data-ink-tool-button\n :data-tool=\"tool\"\n :data-state=\"active ? 'on' : 'off'\"\n v-bind=\"attrs\"\n >\n <slot :active=\"active\" :label=\"name\"><InkIcon :icon=\"ICONS[tool]\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAaA,IAAMU,IAA4C;GAChD,MAAMC;GACN,QAAQC;GACR,WAAWC;GACX,eAAeC;GACf,MAAMC;EACR,GAEMC,IAAQC,GAKR,EAAE,MAAMC,GAAS,eAAYC,EAAQ,GACrCC,IAASC,QAAeH,EAAQ,UAAUF,EAAM,IAAI,GACpDM,IAAOD,QAAeL,EAAM,SAASO,EAAYP,EAAM,KAAK,GAE5DQ,IAAQH,SAAgB;GAC5B,gBAAgB,OAAOD,EAAO,KAAK;GACnC,cAAcE,EAAK;GACnB,OAAOA,EAAK;GACZ,eAAeG,EAAQT,EAAM,IAAI;EACnC,EAAE;oBAIAhB,EAAA,GAAAC,EASgBC,EAAA2B,CAAA,GAThB1B,EASgB;GARb,YAAUc,EAAA;GACX,OAAM;GACN,wBAAA;GACC,aAAWA,EAAA;GACX,cAAYG,EAAA,QAAM,OAAA;EACX,GAAAI,EAAA,KAAK,GAAA;GAEb,SAAApB,QAA2E,CAA3EC,EAA2E4B,EAAA,QAAA,WAAA;IAApE,QAAQb,EAAA;IAAS,OAAOE,EAAA;GAA/B,SAA2E,CAAtChB,EAA+BC,GAAA,EAArB,MAAMG,EAAMO,EAAA,MAAA,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkToolbarSeparator.js","names":["_sfc_main","InkToolbarSeparator_vue_vue_type_script_setup_true_lang_default","InkToolbarSeparator_default"],"sources":["../../src/components/InkToolbarSeparator.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/* A divider between groups of controls in a horizontal toolbar. Not focusable. */\n</script>\n\n<template>\n <div\n role=\"separator\"\n aria-orientation=\"vertical\"\n class=\"ink-toolbar-separator\"\n data-ink-toolbar-separator\n />\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=InkToolbarSeparator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkToolbarSeparator.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkToolbarSeparator.vue"],"names":[],"mappings":"AA6BA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, openBlock as n } from "vue";
|
|
2
|
+
//#region src/components/InkToolbarSeparator.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var r = {
|
|
4
|
+
role: "separator",
|
|
5
|
+
"aria-orientation": "vertical",
|
|
6
|
+
class: "ink-toolbar-separator",
|
|
7
|
+
"data-ink-toolbar-separator": ""
|
|
8
|
+
}, i = /*@__PURE__*/ t({
|
|
9
|
+
__name: "InkToolbarSeparator",
|
|
10
|
+
setup(t) {
|
|
11
|
+
return (t, i) => (n(), e("div", r));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=InkToolbarSeparator.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkToolbarSeparator.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_hoisted_1","InkToolbarSeparator_vue_vue_type_script_setup_true_lang_default","openBlock","createElementBlock"],"sources":["../../src/components/InkToolbarSeparator.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/* A divider between groups of controls in a horizontal toolbar. Not focusable. */\n</script>\n\n<template>\n <div\n role=\"separator\"\n aria-orientation=\"vertical\"\n class=\"ink-toolbar-separator\"\n data-ink-toolbar-separator\n />\n</template>\n"],"mappings":";;;;;;;;;;oBAKEA,EAAA,GAAAC,EAKE,OALFC,CAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkUndo.js","names":["_sfc_main","InkUndo_vue_vue_type_script_setup_true_lang_default","InkUndo_default"],"sources":["../../src/components/InkUndo.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Undo2 } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useHistory } from '../composables/useHistory'\n\nimport InkIcon from './InkIcon.vue'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { canUndo, undo } = useHistory()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Undo',\n title: 'Undo',\n onClick: () => undo(),\n}\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n :disabled=\"!canUndo\"\n class=\"ink-undo\"\n data-ink-undo\n v-bind=\"attrs\"\n >\n <slot><InkIcon :icon=\"Undo2\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
asChild?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_7: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_7) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
asChild: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=InkUndo.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkUndo.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkUndo.vue"],"names":[],"mappings":"AAuCA,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAyDzC,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useHistory as e } from "../composables/useHistory.js";
|
|
2
|
+
import t from "./InkIcon.js";
|
|
3
|
+
import { createBlock as n, createVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, withCtx as l } from "vue";
|
|
4
|
+
import { ToolbarButton as u } from "reka-ui";
|
|
5
|
+
import { Undo2 as d } from "@inkbar/icons";
|
|
6
|
+
//#region src/components/InkUndo.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var f = /*@__PURE__*/ i({
|
|
8
|
+
__name: "InkUndo",
|
|
9
|
+
props: { asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
} },
|
|
13
|
+
setup(i) {
|
|
14
|
+
let { canUndo: f, undo: p } = e(), m = {
|
|
15
|
+
"aria-label": "Undo",
|
|
16
|
+
title: "Undo",
|
|
17
|
+
onClick: () => p()
|
|
18
|
+
};
|
|
19
|
+
return (e, p) => (o(), n(c(u), a({
|
|
20
|
+
"as-child": i.asChild,
|
|
21
|
+
disabled: !c(f),
|
|
22
|
+
class: "ink-undo",
|
|
23
|
+
"data-ink-undo": ""
|
|
24
|
+
}, m), {
|
|
25
|
+
default: l(() => [s(e.$slots, "default", {}, () => [r(t, { icon: c(d) }, null, 8, ["icon"])])]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["as-child", "disabled"]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { f as default };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=InkUndo.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkUndo.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_mergeProps","_withCtx","_renderSlot","_createVNode","InkIcon","InkIcon_default","InkUndo_vue_vue_type_script_setup_true_lang_default","useHistory","attrs","undo","openBlock","createBlock","unref","ToolbarButton","mergeProps","__props","canUndo","withCtx","renderSlot","_ctx","createVNode","Undo2"],"sources":["../../src/components/InkUndo.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Undo2 } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useHistory } from '../composables/useHistory'\n\nimport InkIcon from './InkIcon.vue'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { canUndo, undo } = useHistory()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Undo',\n title: 'Undo',\n onClick: () => undo(),\n}\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n :disabled=\"!canUndo\"\n class=\"ink-undo\"\n data-ink-undo\n v-bind=\"attrs\"\n >\n <slot><InkIcon :icon=\"Undo2\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":";;;;;;;;;;;;;EASA,IAAM,EAAE,YAAS,YAASU,EAAW,GAE/BC,IAAQ;GACZ,cAAc;GACd,OAAO;GACP,eAAeC,EAAK;EACtB;oBAIEZ,EAAA,GAAAC,EAQgBC,EAAAc,CAAA,GARhBb,EAQgB;GAPb,YAAUe,EAAA;GACV,UAAQ,CAAGhB,EAAAiB,CAAA;GACZ,OAAM;GACN,iBAAA;EACQ,GAAAR,CAAK,GAAA;GAEb,SAAAP,QAAsC,CAAtCC,EAAsCiB,EAAA,QAAA,WAAA,CAAA,SAAA,CAAhChB,EAAyBC,GAAA,EAAf,MAAML,EAAAsB,CAAA,EAAK,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkZoomIn.js","names":["_sfc_main","InkZoomIn_vue_vue_type_script_setup_true_lang_default","InkZoomIn_default"],"sources":["../../src/components/InkZoomIn.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useZoom } from '../composables/useZoom'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { zoomIn } = useZoom()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Zoom in',\n title: 'Zoom in',\n onClick: () => zoomIn(),\n}\n</script>\n\n<template>\n <ToolbarButton :as-child=\"asChild\" class=\"ink-zoom-in\" data-ink-zoom-in v-bind=\"attrs\">\n <slot
|
|
1
|
+
{"version":3,"file":"InkZoomIn.js","names":["_sfc_main","InkZoomIn_vue_vue_type_script_setup_true_lang_default","InkZoomIn_default"],"sources":["../../src/components/InkZoomIn.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ZoomIn } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useZoom } from '../composables/useZoom'\n\nimport InkIcon from './InkIcon.vue'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { zoomIn } = useZoom()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Zoom in',\n title: 'Zoom in',\n onClick: () => zoomIn(),\n}\n</script>\n\n<template>\n <ToolbarButton :as-child=\"asChild\" class=\"ink-zoom-in\" data-ink-zoom-in v-bind=\"attrs\">\n <slot><InkIcon :icon=\"ZoomIn\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkZoomIn.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkZoomIn.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InkZoomIn.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkZoomIn.vue"],"names":[],"mappings":"AAiCA,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAsDzC,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { useZoom as e } from "../composables/useZoom.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import t from "./InkIcon.js";
|
|
3
|
+
import { createBlock as n, createVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, withCtx as l } from "vue";
|
|
4
|
+
import { ToolbarButton as u } from "reka-ui";
|
|
5
|
+
import { ZoomIn as d } from "@inkbar/icons";
|
|
4
6
|
//#region src/components/InkZoomIn.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
7
|
+
var f = /*@__PURE__*/ i({
|
|
6
8
|
__name: "InkZoomIn",
|
|
7
9
|
props: { asChild: {
|
|
8
10
|
type: Boolean,
|
|
9
11
|
default: !1
|
|
10
12
|
} },
|
|
11
|
-
setup(
|
|
12
|
-
let { zoomIn:
|
|
13
|
+
setup(i) {
|
|
14
|
+
let { zoomIn: f } = e(), p = {
|
|
13
15
|
"aria-label": "Zoom in",
|
|
14
16
|
title: "Zoom in",
|
|
15
|
-
onClick: () =>
|
|
17
|
+
onClick: () => f()
|
|
16
18
|
};
|
|
17
|
-
return (e,
|
|
18
|
-
"as-child":
|
|
19
|
+
return (e, f) => (o(), n(c(u), a({
|
|
20
|
+
"as-child": i.asChild,
|
|
19
21
|
class: "ink-zoom-in",
|
|
20
22
|
"data-ink-zoom-in": ""
|
|
21
|
-
},
|
|
22
|
-
default:
|
|
23
|
+
}, p), {
|
|
24
|
+
default: l(() => [s(e.$slots, "default", {}, () => [r(t, { icon: c(d) }, null, 8, ["icon"])])]),
|
|
23
25
|
_: 3
|
|
24
26
|
}, 16, ["as-child"]));
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
29
|
//#endregion
|
|
28
|
-
export {
|
|
30
|
+
export { f as default };
|
|
29
31
|
|
|
30
32
|
//# sourceMappingURL=InkZoomIn.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkZoomIn.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_mergeProps","_withCtx","_renderSlot","
|
|
1
|
+
{"version":3,"file":"InkZoomIn.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_mergeProps","_withCtx","_renderSlot","_createVNode","InkIcon","InkIcon_default","InkZoomIn_vue_vue_type_script_setup_true_lang_default","useZoom","attrs","zoomIn","openBlock","createBlock","unref","ToolbarButton","mergeProps","__props","withCtx","renderSlot","_ctx","createVNode","ZoomIn"],"sources":["../../src/components/InkZoomIn.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ZoomIn } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useZoom } from '../composables/useZoom'\n\nimport InkIcon from './InkIcon.vue'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { zoomIn } = useZoom()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Zoom in',\n title: 'Zoom in',\n onClick: () => zoomIn(),\n}\n</script>\n\n<template>\n <ToolbarButton :as-child=\"asChild\" class=\"ink-zoom-in\" data-ink-zoom-in v-bind=\"attrs\">\n <slot><InkIcon :icon=\"ZoomIn\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":";;;;;;;;;;;;;EASA,IAAM,EAAE,cAAWU,EAAQ,GAErBC,IAAQ;GACZ,cAAc;GACd,OAAO;GACP,eAAeC,EAAO;EACxB;oBAIEZ,EAAA,GAAAC,EAEgBC,EAAAc,CAAA,GAFhBb,EAEgB;GAFA,YAAUe,EAAA;GAAS,OAAM;GAAc,oBAAA;EAAyB,GAAAP,CAAK,GAAA;GACnF,SAAAP,QAAuC,CAAvCC,EAAuCgB,EAAA,QAAA,WAAA,CAAA,SAAA,CAAjCf,EAA0BC,GAAA,EAAhB,MAAML,EAAAqB,CAAA,EAAM,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkZoomOut.js","names":["_sfc_main","InkZoomOut_vue_vue_type_script_setup_true_lang_default","InkZoomOut_default"],"sources":["../../src/components/InkZoomOut.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useZoom } from '../composables/useZoom'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { zoomOut } = useZoom()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Zoom out',\n title: 'Zoom out',\n onClick: () => zoomOut(),\n}\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n class=\"ink-zoom-out\"\n data-ink-zoom-out\n v-bind=\"attrs\"\n >\n <slot
|
|
1
|
+
{"version":3,"file":"InkZoomOut.js","names":["_sfc_main","InkZoomOut_vue_vue_type_script_setup_true_lang_default","InkZoomOut_default"],"sources":["../../src/components/InkZoomOut.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ZoomOut } from '@inkbar/icons'\nimport { ToolbarButton } from 'reka-ui'\n\nimport { useZoom } from '../composables/useZoom'\n\nimport InkIcon from './InkIcon.vue'\n\nwithDefaults(defineProps<{ asChild?: boolean }>(), { asChild: false })\nconst { zoomOut } = useZoom()\n// Reka's typed props stop at its own; ARIA and listeners go through a bound object.\nconst attrs = {\n 'aria-label': 'Zoom out',\n title: 'Zoom out',\n onClick: () => zoomOut(),\n}\n</script>\n\n<template>\n <ToolbarButton\n :as-child=\"asChild\"\n class=\"ink-zoom-out\"\n data-ink-zoom-out\n v-bind=\"attrs\"\n >\n <slot><InkIcon :icon=\"ZoomOut\" /></slot>\n </ToolbarButton>\n</template>\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkZoomOut.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkZoomOut.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InkZoomOut.vue.d.ts","sourceRoot":"","sources":["../../src/components/InkZoomOut.vue"],"names":[],"mappings":"AAsCA,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAsDzC,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|