@kritzel/editor 0.4.31 → 0.4.33
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/LICENSE.md +50 -50
- package/README.md +5 -5
- package/dist/cjs/{index-B92VHWr4.js → index-BAdxtEc7.js} +27 -9
- package/dist/cjs/kritzel-active-users_46.cjs.entry.js +1029 -366
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +2 -2
- package/dist/cjs/kritzel-editor.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/kritzel-active-users/kritzel-active-users.css +65 -65
- package/dist/collection/components/kritzel-avatar/kritzel-avatar.css +58 -58
- package/dist/collection/components/kritzel-avatar/kritzel-avatar.js +3 -3
- package/dist/collection/components/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
- package/dist/collection/components/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
- package/dist/collection/components/kritzel-brush-style/kritzel-brush-style.css +42 -42
- package/dist/collection/components/kritzel-brush-style/kritzel-brush-style.js +3 -3
- package/dist/collection/components/kritzel-button/kritzel-button.css +73 -73
- package/dist/collection/components/kritzel-button/kritzel-button.js +2 -2
- package/dist/collection/components/kritzel-color/kritzel-color.css +24 -24
- package/dist/collection/components/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/kritzel-color-palette/kritzel-color-palette.css +46 -46
- package/dist/collection/components/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/kritzel-context-menu/kritzel-context-menu.css +113 -112
- package/dist/collection/components/kritzel-context-menu/kritzel-context-menu.js +1 -1
- package/dist/collection/components/kritzel-current-user/kritzel-current-user.css +11 -11
- package/dist/collection/components/kritzel-current-user/kritzel-current-user.js +1 -1
- package/dist/collection/components/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
- package/dist/collection/components/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
- package/dist/collection/components/kritzel-dialog/kritzel-dialog.css +209 -209
- package/dist/collection/components/kritzel-dropdown/kritzel-dropdown.css +190 -190
- package/dist/collection/components/kritzel-dropdown/kritzel-dropdown.js +2 -2
- package/dist/collection/components/kritzel-editor/kritzel-editor.css +160 -160
- package/dist/collection/components/kritzel-editor/kritzel-editor.js +72 -46
- package/dist/collection/components/kritzel-export/kritzel-export.css +89 -89
- package/dist/collection/components/kritzel-export/kritzel-export.js +1 -1
- package/dist/collection/components/kritzel-font/kritzel-font.css +10 -10
- package/dist/collection/components/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/kritzel-font-family/kritzel-font-family.css +48 -48
- package/dist/collection/components/kritzel-font-family/kritzel-font-family.js +2 -2
- package/dist/collection/components/kritzel-font-size/kritzel-font-size.css +30 -30
- package/dist/collection/components/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/kritzel-input/kritzel-input.css +69 -69
- package/dist/collection/components/kritzel-input/kritzel-input.js +1 -1
- package/dist/collection/components/kritzel-line-endings/kritzel-line-endings.css +60 -60
- package/dist/collection/components/kritzel-line-endings/kritzel-line-endings.js +3 -3
- package/dist/collection/components/kritzel-loading-overlay/kritzel-loading-overlay.css +54 -54
- package/dist/collection/components/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
- package/dist/collection/components/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
- package/dist/collection/components/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
- package/dist/collection/components/kritzel-master-detail/kritzel-master-detail.css +190 -190
- package/dist/collection/components/kritzel-master-detail/kritzel-master-detail.js +3 -3
- package/dist/collection/components/kritzel-menu/kritzel-menu.css +35 -34
- package/dist/collection/components/kritzel-menu/kritzel-menu.js +1 -1
- package/dist/collection/components/kritzel-menu-item/kritzel-menu-item.css +166 -166
- package/dist/collection/components/kritzel-menu-item/kritzel-menu-item.js +3 -3
- package/dist/collection/components/kritzel-more-menu/kritzel-more-menu.css +58 -58
- package/dist/collection/components/kritzel-more-menu/kritzel-more-menu.js +4 -4
- package/dist/collection/components/kritzel-notification-card/kritzel-notification-card.css +101 -101
- package/dist/collection/components/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
- package/dist/collection/components/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
- package/dist/collection/components/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
- package/dist/collection/components/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
- package/dist/collection/components/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
- package/dist/collection/components/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
- package/dist/collection/components/kritzel-portal/kritzel-portal.js +1 -1
- package/dist/collection/components/kritzel-settings/kritzel-settings.css +137 -137
- package/dist/collection/components/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
- package/dist/collection/components/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
- package/dist/collection/components/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
- package/dist/collection/components/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
- package/dist/collection/components/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
- package/dist/collection/components/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
- package/dist/collection/components/kritzel-split-button/kritzel-split-button.css +78 -78
- package/dist/collection/components/kritzel-split-button/kritzel-split-button.js +3 -3
- package/dist/collection/components/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
- package/dist/collection/components/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/kritzel-tool-config/kritzel-tool-config.css +38 -38
- package/dist/collection/components/kritzel-tool-config/kritzel-tool-config.js +1 -1
- package/dist/collection/components/kritzel-toolbar/kritzel-toolbar.css +347 -347
- package/dist/collection/components/kritzel-toolbar/kritzel-toolbar.js +12 -16
- package/dist/collection/components/kritzel-tooltip/kritzel-tooltip.css +18 -18
- package/dist/collection/components/kritzel-tooltip/kritzel-tooltip.js +2 -2
- package/dist/collection/components/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
- package/dist/collection/components/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/components/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
- package/dist/collection/components/kritzel-workspace-manager/kritzel-workspace-manager.js +1 -1
- package/dist/collection/components/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
- package/dist/collection/components/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kritzel-active-users.js +1 -1
- package/dist/components/kritzel-avatar.js +1 -1
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-back-to-content.js +1 -1
- package/dist/components/kritzel-brush-style.js +4 -4
- package/dist/components/kritzel-button.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-context-menu.js +1 -1
- package/dist/components/kritzel-current-user-dialog.js +1 -1
- package/dist/components/kritzel-current-user.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-dialog.js +1 -1
- package/dist/components/kritzel-dropdown.js +1 -1
- package/dist/components/kritzel-editor.js +108 -81
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/kritzel-export.js +1 -1
- package/dist/components/kritzel-font-family.js +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-icon.js +1 -1
- package/dist/components/kritzel-input.js +1 -1
- package/dist/components/kritzel-line-endings.js +1 -1
- package/dist/components/kritzel-loading-overlay.js +1 -1
- package/dist/components/kritzel-login-dialog.js +1 -1
- package/dist/components/kritzel-master-detail.js +1 -1
- package/dist/components/kritzel-menu-item.js +1 -1
- package/dist/components/kritzel-menu.js +1 -1
- package/dist/components/kritzel-more-menu.js +1 -1
- package/dist/components/kritzel-notification-card.js +1 -1
- package/dist/components/kritzel-numeric-input.js +1 -1
- package/dist/components/kritzel-opacity-slider.js +1 -1
- package/dist/components/kritzel-pill-tabs.js +1 -1
- package/dist/components/kritzel-portal.js +1 -1
- package/dist/components/kritzel-settings.js +1 -1
- package/dist/components/kritzel-shape-fill.js +1 -1
- package/dist/components/kritzel-share-dialog.js +1 -1
- package/dist/components/kritzel-slide-toggle.js +1 -1
- package/dist/components/kritzel-split-button.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tool-config.js +1 -1
- package/dist/components/kritzel-toolbar.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-watermark.js +1 -1
- package/dist/components/kritzel-workspace-manager.js +1 -1
- package/dist/components/kritzel-zoom-panel.js +1 -1
- package/dist/components/{p-CrIEmItB.js → p-2DAZSvN6.js} +5 -5
- package/dist/components/{p-CmjXRLdr.js → p-2gylYpXk.js} +7 -7
- package/dist/components/{p-BN8VWPlq.js → p-B-Divd0Q.js} +7 -7
- package/dist/components/{p-R1D8Sr0l.js → p-B-U13Ew1.js} +3 -3
- package/dist/components/{p-BZ_KnHdR.js → p-B1rmcPZr.js} +7 -7
- package/dist/components/{p-B_gT0lCn.js → p-B2-SxV8E.js} +3 -3
- package/dist/components/p-B6Z_VKKH.js +214 -0
- package/dist/components/{p-CVxGF4bJ.js → p-B8tHdknP.js} +5 -5
- package/dist/components/{p-CoNexfpB.js → p-BDsuJNT_.js} +3 -3
- package/dist/components/{p-BvG3JO85.js → p-BMi-i7sC.js} +3 -3
- package/dist/components/{p-Cy_cLtOP.js → p-BZ0ReYAA.js} +18 -14
- package/dist/components/{p-DZsSiMnA.js → p-BeCy6w6M.js} +770 -173
- package/dist/components/{p-4-qLegHb.js → p-Bipc1XvF.js} +4 -4
- package/dist/components/{p-CS3YZVYE.js → p-BmFJelgk.js} +2 -2
- package/dist/components/{p-DqOC_Yck.js → p-BpvSYxxN.js} +6 -6
- package/dist/components/{p-peZjvnkK.js → p-C0ns8IPO.js} +2 -2
- package/dist/components/{p-ClfOtiNp.js → p-C1_r9nJU.js} +3 -3
- package/dist/components/{p-GbCxpbQ6.js → p-C2ySiAXO.js} +3 -3
- package/dist/components/{p-B3Tqoyl9.js → p-C3KlONnT.js} +3 -3
- package/dist/components/{p-B5xYV1o3.js → p-C68YXjuL.js} +2 -2
- package/dist/components/{p-DJxgPPfs.js → p-CCuNN278.js} +3 -3
- package/dist/components/{p-Ds0uNtwQ.js → p-CNH7N3Aq.js} +4 -4
- package/dist/components/{p-DVv8ChhE.js → p-CO1cJlfg.js} +4 -4
- package/dist/components/{p-Cp4e4oTE.js → p-CqHKGLYE.js} +2 -2
- package/dist/components/{p-Blq9a1ni.js → p-CrEWqua9.js} +6 -6
- package/dist/components/{p-CvaxFYS0.js → p-Cv2nqOL8.js} +8 -8
- package/dist/components/{p-CzUeIini.js → p-D-1ixLxq.js} +13 -13
- package/dist/components/{p-BfMlwIcG.js → p-DF8p-DxR.js} +3 -3
- package/dist/components/{p-QEue33R5.js → p-DQ3VKzAS.js} +3 -3
- package/dist/components/{p-Ckqh1tqY.js → p-DRe-rTlX.js} +27 -31
- package/dist/components/{p-McY5wZ0h.js → p-DSyb29RF.js} +2 -2
- package/dist/components/{p-D0tPTPkR.js → p-DYDruZIw.js} +3 -3
- package/dist/components/{p-kOINnzaR.js → p-D_JxJxQ6.js} +7 -7
- package/dist/components/{p-BDjRSoAc.js → p-Dko_6jIh.js} +2 -2
- package/dist/components/{p-BjFrt1q0.js → p-DnHvqeyr.js} +3 -3
- package/dist/components/{p-BrGJIoGK.js → p-DqMikMrS.js} +3 -3
- package/dist/components/p-DsnHq8en.js +55 -0
- package/dist/components/{p-DXZBWJBt.js → p-DxFNLy9X.js} +4 -4
- package/dist/components/{p-5qkOM1RJ.js → p-Dzr6X2aj.js} +16 -4
- package/dist/components/{p-DXuf225S.js → p-HbHo7awi.js} +3 -3
- package/dist/components/{p-CwBxnzYu.js → p-Qbk7xE91.js} +3 -3
- package/dist/components/{p-h_uh_Njf.js → p-VYGV0cr3.js} +3 -3
- package/dist/components/{p-DyRJFg4w.js → p-YGBl60lb.js} +2 -2
- package/dist/components/{p-hQwVRh0t.js → p-clFfXKKn.js} +7 -7
- package/dist/components/{p-SLnqczCS.js → p-dUcCDLDF.js} +3 -3
- package/dist/components/{p-B6UJztrf.js → p-kXnNX65j.js} +4 -4
- package/dist/esm/{index-OjbYJz-P.js → index-YR-6hzAW.js} +27 -10
- package/dist/esm/kritzel-active-users_46.entry.js +1029 -366
- package/dist/esm/kritzel-brush-style.entry.js +2 -2
- package/dist/esm/kritzel-editor.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/kritzel-editor/kritzel-editor.esm.js +4 -4
- package/dist/kritzel-editor/{p-501047d8.entry.js → p-3a0f60b0.entry.js} +2 -2
- package/dist/kritzel-editor/{p-OjbYJz-P.js → p-YR-6hzAW.js} +27 -10
- package/dist/kritzel-editor/{p-60319edb.entry.js → p-adc45d46.entry.js} +1029 -366
- package/dist/types/components/kritzel-editor/kritzel-editor.d.ts +9 -2
- package/dist/types/components.d.ts +15 -15
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/package.json +3 -3
- package/dist/components/p-BGmTmdLe.js +0 -167
- package/dist/components/p-DOJCDPVD.js +0 -55
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.pill-tabs-container {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: 4px;
|
|
10
|
-
padding: 4px;
|
|
11
|
-
max-width: 100%;
|
|
12
|
-
border-radius: var(--kritzel-pill-tabs-border-radius, 10px);
|
|
13
|
-
background: var(--kritzel-pill-tabs-background, #f0f0f0);
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.pill-tab {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
gap: 6px;
|
|
22
|
-
min-width: 0;
|
|
23
|
-
max-width: 100%;
|
|
24
|
-
padding: 8px 16px;
|
|
25
|
-
border: none;
|
|
26
|
-
border-radius: var(--kritzel-pill-tabs-tab-border-radius, 8px);
|
|
27
|
-
background: var(--kritzel-pill-tabs-tab-background, transparent);
|
|
28
|
-
color: var(--kritzel-pill-tabs-tab-text-color, #666666);
|
|
29
|
-
font-family: inherit;
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
33
|
-
transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.pill-tab:hover:not(.selected) {
|
|
38
|
-
background: var(--kritzel-pill-tabs-tab-background-hover, rgba(0, 0, 0, 0.05));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.pill-tab.selected {
|
|
42
|
-
background: var(--kritzel-pill-tabs-tab-background-selected, #ffffff);
|
|
43
|
-
color: var(--kritzel-pill-tabs-tab-text-color-selected, #000000);
|
|
44
|
-
box-shadow: var(--kritzel-pill-tabs-tab-shadow-selected, 0 1px 3px rgba(0, 0, 0, 0.1));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.pill-tab:focus {
|
|
48
|
-
outline: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.pill-tab:focus-visible {
|
|
52
|
-
box-shadow: 0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.pill-tab-label {
|
|
56
|
-
display: block;
|
|
57
|
-
min-width: 0;
|
|
58
|
-
max-width: var(--kritzel-pill-tabs-tab-label-max-width, 10rem);
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
text-overflow: ellipsis;
|
|
61
|
-
white-space: nowrap;
|
|
62
|
-
line-height: 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Icon styling */
|
|
66
|
-
.pill-tab kritzel-icon {
|
|
67
|
-
flex-shrink: 0;
|
|
68
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.pill-tabs-container {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
padding: 4px;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
border-radius: var(--kritzel-pill-tabs-border-radius, 10px);
|
|
13
|
+
background: var(--kritzel-pill-tabs-background, #f0f0f0);
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pill-tab {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
gap: 6px;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
padding: 8px 16px;
|
|
25
|
+
border: none;
|
|
26
|
+
border-radius: var(--kritzel-pill-tabs-tab-border-radius, 8px);
|
|
27
|
+
background: var(--kritzel-pill-tabs-tab-background, transparent);
|
|
28
|
+
color: var(--kritzel-pill-tabs-tab-text-color, #666666);
|
|
29
|
+
font-family: inherit;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
33
|
+
transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pill-tab:hover:not(.selected) {
|
|
38
|
+
background: var(--kritzel-pill-tabs-tab-background-hover, rgba(0, 0, 0, 0.05));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pill-tab.selected {
|
|
42
|
+
background: var(--kritzel-pill-tabs-tab-background-selected, #ffffff);
|
|
43
|
+
color: var(--kritzel-pill-tabs-tab-text-color-selected, #000000);
|
|
44
|
+
box-shadow: var(--kritzel-pill-tabs-tab-shadow-selected, 0 1px 3px rgba(0, 0, 0, 0.1));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pill-tab:focus {
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pill-tab:focus-visible {
|
|
52
|
+
box-shadow: 0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pill-tab-label {
|
|
56
|
+
display: block;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
max-width: var(--kritzel-pill-tabs-tab-label-max-width, 10rem);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
line-height: 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Icon styling */
|
|
66
|
+
.pill-tab kritzel-icon {
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
}
|
|
@@ -50,7 +50,7 @@ export class KritzelPillTabs {
|
|
|
50
50
|
buttons?.[newIndex]?.focus();
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'f02f93ada5ec002695b62f511c847de201a8cbe4' }, h("div", { key: 'bb08ae773f1b993cb330556a5778d71fc5e91ce1', class: "pill-tabs-container", role: "tablist" }, this.tabs.map((tab, index) => (h("button", { key: tab.id, class: {
|
|
54
54
|
'pill-tab': true,
|
|
55
55
|
'selected': this.value === tab.id,
|
|
56
56
|
}, role: "tab", "aria-selected": this.value === tab.id ? 'true' : 'false', tabIndex: this.value === tab.id ? 0 : -1, onClick: () => this.handleTabClick(tab.id), onKeyDown: (e) => this.handleKeyDown(e, index) }, tab.icon && h("kritzel-icon", { name: tab.icon, size: 16 }), h("span", { class: "pill-tab-label" }, tab.label)))))));
|
|
@@ -78,7 +78,7 @@ export class KritzelPillTabs {
|
|
|
78
78
|
"references": {
|
|
79
79
|
"KritzelPillTab": {
|
|
80
80
|
"location": "local",
|
|
81
|
-
"path": "
|
|
81
|
+
"path": "/home/runner/work/kritzel-private/kritzel-private/libs/editor/core/src/components/kritzel-pill-tabs/kritzel-pill-tabs.tsx",
|
|
82
82
|
"id": "src/components/kritzel-pill-tabs/kritzel-pill-tabs.tsx::KritzelPillTab"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -277,7 +277,7 @@ export class KritzelPortal {
|
|
|
277
277
|
this.portal.style.visibility = 'visible';
|
|
278
278
|
}
|
|
279
279
|
render() {
|
|
280
|
-
return (h(Host, { key: '
|
|
280
|
+
return (h(Host, { key: 'e37e3fb0de2910fabd9379f372e477ecac929d1d', style: { display: this.anchor ? 'block' : 'none' } }, h("slot", { key: '86f8720d298201b66efea2475634ec7506b33d9c' })));
|
|
281
281
|
}
|
|
282
282
|
static get is() { return "kritzel-portal"; }
|
|
283
283
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
kritzel-dialog {
|
|
6
|
-
--kritzel-dialog-body-padding: 0;
|
|
7
|
-
--kritzel-dialog-width-large: 800px;
|
|
8
|
-
--kritzel-dialog-height-large: 500px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.footer-button {
|
|
13
|
-
padding: 8px 16px;
|
|
14
|
-
border-radius: 6px;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.cancel-button {
|
|
20
|
-
border: 1px solid #ebebeb;
|
|
21
|
-
background: #fff;
|
|
22
|
-
color: inherit;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.cancel-button:hover {
|
|
26
|
-
background: #f5f5f5;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Settings Content */
|
|
30
|
-
.settings-tab-panel {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.settings-tab-panel.is-active {
|
|
35
|
-
display: block;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.settings-content {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.settings-content h3 {
|
|
43
|
-
margin: 0 0 16px 0;
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
color: var(--kritzel-settings-content-heading-color, #333333);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.settings-content p {
|
|
50
|
-
margin: 0;
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
color: var(--kritzel-settings-content-text-color, #666666);
|
|
53
|
-
line-height: 1.5;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.settings-group {
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: column;
|
|
59
|
-
gap: 24px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.settings-item {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
gap: 8px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.settings-row {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
justify-content: space-between;
|
|
72
|
-
gap: 16px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.settings-label {
|
|
76
|
-
font-size: 14px;
|
|
77
|
-
font-weight: 600;
|
|
78
|
-
color: var(--kritzel-settings-label-color, #333333);
|
|
79
|
-
margin: 0 0 4px 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.settings-description {
|
|
83
|
-
font-size: 12px;
|
|
84
|
-
color: var(--kritzel-settings-description-color, #888888);
|
|
85
|
-
margin: 0;
|
|
86
|
-
line-height: 1.4;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Shortcuts List */
|
|
90
|
-
.shortcuts-list {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
gap: 24px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.shortcuts-category {
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
gap: 8px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.shortcuts-category-title {
|
|
103
|
-
font-size: 14px;
|
|
104
|
-
font-weight: 600;
|
|
105
|
-
color: var(--kritzel-settings-label-color, #333333);
|
|
106
|
-
margin: 0 0 4px 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.shortcuts-group {
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: column;
|
|
112
|
-
gap: 4px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.shortcut-item {
|
|
116
|
-
display: flex;
|
|
117
|
-
justify-content: space-between;
|
|
118
|
-
align-items: center;
|
|
119
|
-
padding: 6px 8px;
|
|
120
|
-
border-radius: 4px;
|
|
121
|
-
background: var(--kritzel-settings-shortcut-item-bg, rgba(0, 0, 0, 0.02));
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.shortcut-label {
|
|
125
|
-
font-size: 14px;
|
|
126
|
-
color: var(--kritzel-settings-content-text-color, #666666);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.shortcut-key {
|
|
130
|
-
font-family: monospace;
|
|
131
|
-
font-size: 12px;
|
|
132
|
-
padding: 2px 8px;
|
|
133
|
-
border-radius: 4px;
|
|
134
|
-
background: var(--kritzel-settings-shortcut-key-bg, #f0f0f0);
|
|
135
|
-
color: var(--kritzel-settings-shortcut-key-color, #333333);
|
|
136
|
-
border: 1px solid var(--kritzel-settings-shortcut-key-border, #ddd);
|
|
137
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
kritzel-dialog {
|
|
6
|
+
--kritzel-dialog-body-padding: 0;
|
|
7
|
+
--kritzel-dialog-width-large: 800px;
|
|
8
|
+
--kritzel-dialog-height-large: 500px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.footer-button {
|
|
13
|
+
padding: 8px 16px;
|
|
14
|
+
border-radius: 6px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cancel-button {
|
|
20
|
+
border: 1px solid #ebebeb;
|
|
21
|
+
background: #fff;
|
|
22
|
+
color: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.cancel-button:hover {
|
|
26
|
+
background: #f5f5f5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Settings Content */
|
|
30
|
+
.settings-tab-panel {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.settings-tab-panel.is-active {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.settings-content {
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.settings-content h3 {
|
|
43
|
+
margin: 0 0 16px 0;
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
color: var(--kritzel-settings-content-heading-color, #333333);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.settings-content p {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
color: var(--kritzel-settings-content-text-color, #666666);
|
|
53
|
+
line-height: 1.5;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.settings-group {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
gap: 24px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.settings-item {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.settings-row {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
gap: 16px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.settings-label {
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
color: var(--kritzel-settings-label-color, #333333);
|
|
79
|
+
margin: 0 0 4px 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.settings-description {
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
color: var(--kritzel-settings-description-color, #888888);
|
|
85
|
+
margin: 0;
|
|
86
|
+
line-height: 1.4;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Shortcuts List */
|
|
90
|
+
.shortcuts-list {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
gap: 24px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.shortcuts-category {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 8px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.shortcuts-category-title {
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
color: var(--kritzel-settings-label-color, #333333);
|
|
106
|
+
margin: 0 0 4px 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.shortcuts-group {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: 4px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.shortcut-item {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
align-items: center;
|
|
119
|
+
padding: 6px 8px;
|
|
120
|
+
border-radius: 4px;
|
|
121
|
+
background: var(--kritzel-settings-shortcut-item-bg, rgba(0, 0, 0, 0.02));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.shortcut-label {
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
color: var(--kritzel-settings-content-text-color, #666666);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.shortcut-key {
|
|
130
|
+
font-family: monospace;
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
padding: 2px 8px;
|
|
133
|
+
border-radius: 4px;
|
|
134
|
+
background: var(--kritzel-settings-shortcut-key-bg, #f0f0f0);
|
|
135
|
+
color: var(--kritzel-settings-shortcut-key-color, #333333);
|
|
136
|
+
border: 1px solid var(--kritzel-settings-shortcut-key-border, #ddd);
|
|
137
|
+
}
|
|
@@ -208,7 +208,7 @@ export class KritzelSettings {
|
|
|
208
208
|
return (h("div", { class: "settings-categories-wrapper" }, h("div", { class: { 'settings-tab-panel': true, 'is-active': this.selectedCategoryId === 'general' } }, h("div", { class: "settings-content" }, h("h3", null, this.t('settings.general.title', 'General Settings')), h("div", { class: "settings-group" }, h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.general.theme.label', 'Theme')), h("p", { class: "settings-description" }, this.t('settings.general.theme.description', 'Select a registered color theme for the editor interface.')), h("kritzel-dropdown", { options: this.availableThemes.map(t => ({ value: t, label: t })), value: this.theme, onValueChanged: this.handleThemeChange })), this.availableLocales.length > 0 && (h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.general.language.label', 'Language')), h("p", { class: "settings-description" }, this.t('settings.general.language.description', 'Select the display language for the editor interface.')), h("kritzel-dropdown", { options: this.availableLocales.map(l => ({ value: l.code, label: l.label })), value: this.locale, onValueChanged: this.handleLocaleChange }))), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.general.lockDrawingScale.label', 'Lock Drawing Scale')), h("p", { class: "settings-description" }, this.t('settings.general.lockDrawingScale.description', 'When enabled, drawn objects maintain a fixed visual size regardless of the current zoom level.')), h("kritzel-slide-toggle", { checked: this.lockDrawingScale, label: this.t('settings.general.lockDrawingScale.label', 'Lock Drawing Scale'), onCheckedChange: this.handleLockDrawingScaleChange }))))), h("div", { class: { 'settings-tab-panel': true, 'is-active': this.selectedCategoryId === 'viewport' } }, h("div", { class: "settings-content" }, h("h3", null, this.t('settings.viewport.title', 'Viewport Settings')), h("div", { class: "settings-group" }, h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.viewport.minZoom.label', 'Minimum Zoom Level')), h("p", { class: "settings-description" }, this.t('settings.viewport.minZoom.description', 'Sets the minimum zoom level. Lower values allow zooming out further to see more of the canvas.')), h("kritzel-numeric-input", { value: this.scaleMin, min: 0.0001, max: 1, step: 0.0001, onValueChange: this.handleScaleMinChange })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.viewport.maxZoom.label', 'Maximum Zoom Level')), h("p", { class: "settings-description" }, this.t('settings.viewport.maxZoom.description', 'Sets the maximum zoom level. Higher values allow zooming in closer for detailed work.')), h("kritzel-numeric-input", { value: this.scaleMax, min: 1, max: 1000, step: 1, onValueChange: this.handleScaleMaxChange })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.viewport.boundaryLeft.label', 'Viewport Boundary Left')), h("p", { class: "settings-description" }, this.t('settings.viewport.boundaryLeft.description', 'Left boundary in world coordinates. Set to limit how far left the viewport can pan.')), h("kritzel-numeric-input", { value: this.viewportBoundaryLeft, step: 100, placeholder: this.t('settings.viewport.boundaryPlaceholder', 'Infinite'), onValueChange: this.handleViewportBoundaryLeftChange })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.viewport.boundaryRight.label', 'Viewport Boundary Right')), h("p", { class: "settings-description" }, this.t('settings.viewport.boundaryRight.description', 'Right boundary in world coordinates. Set to limit how far right the viewport can pan.')), h("kritzel-numeric-input", { value: this.viewportBoundaryRight, step: 100, placeholder: this.t('settings.viewport.boundaryPlaceholder', 'Infinite'), onValueChange: this.handleViewportBoundaryRightChange })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.viewport.boundaryTop.label', 'Viewport Boundary Top')), h("p", { class: "settings-description" }, this.t('settings.viewport.boundaryTop.description', 'Top boundary in world coordinates. Set to limit how far up the viewport can pan.')), h("kritzel-numeric-input", { value: this.viewportBoundaryTop, step: 100, placeholder: this.t('settings.viewport.boundaryPlaceholder', 'Infinite'), onValueChange: this.handleViewportBoundaryTopChange })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.viewport.boundaryBottom.label', 'Viewport Boundary Bottom')), h("p", { class: "settings-description" }, this.t('settings.viewport.boundaryBottom.description', 'Bottom boundary in world coordinates. Set to limit how far down the viewport can pan.')), h("kritzel-numeric-input", { value: this.viewportBoundaryBottom, step: 100, placeholder: this.t('settings.viewport.boundaryPlaceholder', 'Infinite'), onValueChange: this.handleViewportBoundaryBottomChange }))))), h("div", { class: { 'settings-tab-panel': true, 'is-active': this.selectedCategoryId === 'shortcuts' } }, h("div", { class: "settings-content" }, h("h3", null, this.t('settings.shortcuts.title', 'Keyboard Shortcuts')), h("div", { class: "shortcuts-list" }, Array.from(this.groupShortcutsByCategory()).map(([category, shortcuts]) => (h("div", { class: "shortcuts-category", key: category }, h("h4", { class: "shortcuts-category-title" }, category), h("div", { class: "shortcuts-group" }, shortcuts.map(shortcut => (h("div", { class: "shortcut-item", key: shortcut.key + shortcut.label }, h("span", { class: "shortcut-label" }, shortcut.label), h("kbd", { class: "shortcut-key" }, this.formatKeyCombo(shortcut)))))))))))), h("div", { class: { 'settings-tab-panel': true, 'is-active': this.selectedCategoryId === 'developer' } }, h("div", { class: "settings-content" }, h("h3", null, this.t('settings.developer.title', 'Developer Options')), h("div", { class: "settings-group" }, h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.developer.showViewportInfo.label', 'Show Viewport Info')), h("p", { class: "settings-description" }, this.t('settings.developer.showViewportInfo.description', 'Display viewport debug information such as position, zoom level, and boundaries.')), h("kritzel-slide-toggle", { checked: this.debugInfo.showViewportInfo, label: this.t('settings.developer.showViewportInfo.label', 'Show Viewport Info'), onCheckedChange: this.handleDebugInfoChange('showViewportInfo') })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.developer.showObjectInfo.label', 'Show Object Info')), h("p", { class: "settings-description" }, this.t('settings.developer.showObjectInfo.description', 'Display debug information about objects on the canvas.')), h("kritzel-slide-toggle", { checked: this.debugInfo.showObjectInfo, label: this.t('settings.developer.showObjectInfo.label', 'Show Object Info'), onCheckedChange: this.handleDebugInfoChange('showObjectInfo') })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.developer.showSyncProviderInfo.label', 'Show Sync Provider Info')), h("p", { class: "settings-description" }, this.t('settings.developer.showSyncProviderInfo.description', 'Display debug information about the sync provider connection status.')), h("kritzel-slide-toggle", { checked: this.debugInfo.showSyncProviderInfo, label: this.t('settings.developer.showSyncProviderInfo.label', 'Show Sync Provider Info'), onCheckedChange: this.handleDebugInfoChange('showSyncProviderInfo') })), h("div", { class: "settings-item" }, h("label", { class: "settings-label" }, this.t('settings.developer.showMigrationInfo.label', 'Show Migration Info')), h("p", { class: "settings-description" }, this.t('settings.developer.showMigrationInfo.description', 'Display debug information about data migrations.')), h("kritzel-slide-toggle", { checked: this.debugInfo.showMigrationInfo, label: this.t('settings.developer.showMigrationInfo.label', 'Show Migration Info'), onCheckedChange: this.handleDebugInfoChange('showMigrationInfo') }))))), h("div", { class: { 'settings-tab-panel': true, 'is-active': this.selectedCategoryId === 'about' } }, h("div", { class: "settings-content" }, h("h3", null, this.t('settings.about.title', 'About')), h("p", null, this.t('settings.about.description', 'Kritzel - A drawing application')), h("p", { class: "version-info" }, "Version ", KRITZEL_VERSION), h("p", { class: "version-info" }, "App-State Schema v", CURRENT_APP_STATE_SCHEMA_VERSION), h("p", { class: "version-info" }, "Workspace Schema v", CURRENT_WORKSPACE_SCHEMA_VERSION)))));
|
|
209
209
|
}
|
|
210
210
|
render() {
|
|
211
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: 'a3b62913565f4823bd379da67d81545c58c49d20' }, h("kritzel-dialog", { key: 'e688b2d81f985905f65b756becb336b7d14ca8f5', isOpen: this.isDialogOpen, dialogTitle: this.t('settings.dialogTitle', 'Settings'), size: "large", contained: true, onDialogClose: this.closeDialog }, h("kritzel-master-detail", { key: '1f6db30412514bee5b087d8365eca91d76002ef8', items: this.categories, selectedItemId: this.selectedCategoryId, onItemSelect: this.handleCategorySelect }, this.renderCategoryContent()))));
|
|
212
212
|
}
|
|
213
213
|
static get is() { return "kritzel-settings"; }
|
|
214
214
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 12px;
|
|
5
|
-
padding: 0;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.fill-row {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: 4px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.fill-option {
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
width: 48px;
|
|
20
|
-
height: 32px;
|
|
21
|
-
border-radius: 6px;
|
|
22
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
23
|
-
border: 2px solid transparent;
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
background: var(--kritzel-shape-fill-option-background, #ffffff);
|
|
26
|
-
padding: 4px;
|
|
27
|
-
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.fill-option:hover {
|
|
31
|
-
background-color: var(--kritzel-shape-fill-hover-background-color, #ebebeb);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.fill-option.selected {
|
|
35
|
-
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
36
|
-
background-color: var(--kritzel-shape-fill-selected-background-color, #ebebeb);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.fill-option:focus {
|
|
40
|
-
outline: none;
|
|
41
|
-
box-shadow: 0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.fill-icon {
|
|
45
|
-
width: 100%;
|
|
46
|
-
height: 100%;
|
|
47
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fill-row {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fill-option {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
width: 48px;
|
|
20
|
+
height: 32px;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
23
|
+
border: 2px solid transparent;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
background: var(--kritzel-shape-fill-option-background, #ffffff);
|
|
26
|
+
padding: 4px;
|
|
27
|
+
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.fill-option:hover {
|
|
31
|
+
background-color: var(--kritzel-shape-fill-hover-background-color, #ebebeb);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fill-option.selected {
|
|
35
|
+
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
36
|
+
background-color: var(--kritzel-shape-fill-selected-background-color, #ebebeb);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fill-option:focus {
|
|
40
|
+
outline: none;
|
|
41
|
+
box-shadow: 0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.fill-icon {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
@@ -16,10 +16,10 @@ export class KritzelShapeFill {
|
|
|
16
16
|
return (h("svg", { viewBox: "0 0 24 24", class: "fill-icon" }, h("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", fill: strokeColor, stroke: strokeColor, "stroke-width": "2" })));
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '6d38a9af2e4c4c7f86ab994c63fc074007c86b48' }, h("div", { key: 'cf58f26cb0e56e274873d11024209c6908d317bb', class: "fill-row" }, h("button", { key: 'c75eed70fe0c2fcbf0fd136bb6fce75b2dbfb45d', class: {
|
|
20
20
|
'fill-option': true,
|
|
21
21
|
'selected': this.value === 'transparent',
|
|
22
|
-
}, onClick: () => this.handleFillChange('transparent'), title: "Transparent background" }, this.renderFillIcon('transparent')), h("button", { key: '
|
|
22
|
+
}, onClick: () => this.handleFillChange('transparent'), title: "Transparent background" }, this.renderFillIcon('transparent')), h("button", { key: '5d6ede439b5d5e55598cd8c20b5851fb9f210463', class: {
|
|
23
23
|
'fill-option': true,
|
|
24
24
|
'selected': this.value === 'filled',
|
|
25
25
|
}, onClick: () => this.handleFillChange('filled'), title: "Filled background" }, this.renderFillIcon('filled')))));
|
|
@@ -47,7 +47,7 @@ export class KritzelShapeFill {
|
|
|
47
47
|
"references": {
|
|
48
48
|
"ShapeFillType": {
|
|
49
49
|
"location": "local",
|
|
50
|
-
"path": "
|
|
50
|
+
"path": "/home/runner/work/kritzel-private/kritzel-private/libs/editor/core/src/components/kritzel-shape-fill/kritzel-shape-fill.tsx",
|
|
51
51
|
"id": "src/components/kritzel-shape-fill/kritzel-shape-fill.tsx::ShapeFillType"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -83,7 +83,7 @@ export class KritzelShapeFill {
|
|
|
83
83
|
"references": {
|
|
84
84
|
"ShapeFillType": {
|
|
85
85
|
"location": "local",
|
|
86
|
-
"path": "
|
|
86
|
+
"path": "/home/runner/work/kritzel-private/kritzel-private/libs/editor/core/src/components/kritzel-shape-fill/kritzel-shape-fill.tsx",
|
|
87
87
|
"id": "src/components/kritzel-shape-fill/kritzel-shape-fill.tsx::ShapeFillType"
|
|
88
88
|
}
|
|
89
89
|
}
|