kritzel-stencil 0.4.30 → 0.4.31
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 +21 -21
- package/LICENSE.md +49 -49
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_46.cjs.entry.js +112 -112
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
- package/dist/cjs/{schema.constants-CcvqL5nJ.js → schema.constants-0ySX0cg3.js} +6 -6
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +160 -160
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +18 -18
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +80 -80
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +21 -21
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.css +29 -29
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.js +2 -2
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
- package/dist/collection/components/shared/kritzel-button/kritzel-button.css +73 -73
- package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
- package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
- package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +209 -209
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
- package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
- package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +2 -2
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
- package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
- package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +166 -166
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
- package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
- package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +112 -112
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +331 -331
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +6 -6
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
- package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.css +54 -54
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +58 -58
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
- package/dist/collection/components/ui/kritzel-notification-card/kritzel-notification-card.css +101 -101
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +137 -137
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
- package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/cursor.helper.js +6 -6
- package/dist/collection/helpers/svg-export.helper.js +41 -41
- package/dist/components/index.js +2 -2
- 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 +2 -2
- 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-controls.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 +51 -51
- 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-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-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-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-DTB3ykgO.js → p-B65Z2K81.js} +1 -1
- package/dist/components/{p-4uoSa0Xl.js → p-B6cwfdo3.js} +2 -2
- package/dist/components/{p-ChPs27Fd.js → p-BBA9F6Bi.js} +4 -4
- package/dist/components/{p-Dvn6ad4a.js → p-BCrNNQKI.js} +1 -1
- package/dist/components/{p-CoXN583u.js → p-BGJ-1pXX.js} +3 -3
- package/dist/components/{p-CBrn5AIB.js → p-BTRiw0VC.js} +1 -1
- package/dist/components/{p-DoxFuOy1.js → p-Bu6TjCs0.js} +2 -2
- package/dist/components/{p-Ce1j1-Hg.js → p-BvpI1eL4.js} +3 -3
- package/dist/components/{p-CAXR5-S9.js → p-BwC3bHai.js} +4 -4
- package/dist/components/{p-DX2nriaq.js → p-C2NV0SgA.js} +1 -1
- package/dist/components/{p-BPzdPKWE.js → p-CAGey5Xt.js} +3 -3
- package/dist/components/{p-C0FEC_gS.js → p-C_4J10HD.js} +2 -2
- package/dist/components/{p-NOWtUeeQ.js → p-C_fBqaep.js} +1 -1
- package/dist/components/{p-Ba0c-tu2.js → p-CzibK3BJ.js} +2 -2
- package/dist/components/{p-Cm33td2O.js → p-D0SKmg_J.js} +1 -1
- package/dist/components/{p-OUl5CA4Y.js → p-D497dAd-.js} +1 -1
- package/dist/components/{p-BmBebQMI.js → p-DC7noKZD.js} +7 -7
- package/dist/components/{p-CXpv9Rxe.js → p-DGcug5rp.js} +2 -2
- package/dist/components/{p-DkHYY72B.js → p-DIE74Wkf.js} +2 -2
- package/dist/components/{p-DOTdJ3JQ.js → p-DKkQMbfN.js} +3 -3
- package/dist/components/{p-DnmVD1Mz.js → p-DKuxmP3T.js} +2 -2
- package/dist/components/{p-bAacqNHq.js → p-DQX5iqJB.js} +2 -2
- package/dist/components/{p-DUmLsjKb.js → p-DTzNzE9j.js} +1 -1
- package/dist/components/{p-Df3BwVGy.js → p-D_XWdMC3.js} +2 -2
- package/dist/components/{p-B38_9BJg.js → p-Da56LiC2.js} +1 -1
- package/dist/components/{p-CeffYwAK.js → p-DaE8xcJ8.js} +19 -19
- package/dist/components/{p-CYwoBiqy.js → p-DcG-UAoL.js} +50 -50
- package/dist/components/{p-BeSKOETx.js → p-Dm6TZsys.js} +2 -2
- package/dist/components/{p-DhabvHJM.js → p-DuyNKEne.js} +3 -3
- package/dist/components/{p-DFMZEarE.js → p-DyWg1f0y.js} +1 -1
- package/dist/components/{p-DN9p3G9K.js → p-FDwfHj3U.js} +3 -3
- package/dist/components/{p-DK0anxtL.js → p-P70dtHet.js} +1 -1
- package/dist/components/{p-CucCT7Qn.js → p-R6NeY_RA.js} +2 -2
- package/dist/components/{p-BFYtCsZu.js → p-XOXeNvvd.js} +2 -2
- package/dist/components/{p-jIKskj3S.js → p-ZwkkxMNZ.js} +1 -1
- package/dist/components/{p-BprEDRpA.js → p-auUCvUOc.js} +2 -2
- package/dist/components/{p-D0Ed8epW.js → p-b5XSApfh.js} +4 -4
- package/dist/components/{p-djJSnjAX.js → p-fp1y_eAN.js} +2 -2
- package/dist/components/{p-Dpm75DfV.js → p-mCRS0Vii.js} +5 -5
- package/dist/components/{p-DOl-95VY.js → p-ml3LLPFB.js} +10 -10
- package/dist/components/{p-D_cyY7Nd.js → p-xFCFDper.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/kritzel-active-users_46.entry.js +112 -112
- package/dist/esm/kritzel-brush-style.entry.js +1 -1
- package/dist/esm/{schema.constants-De_S50eB.js → schema.constants-D3OqvrMh.js} +6 -6
- package/dist/stencil/index.esm.js +2 -2
- package/dist/stencil/{p-1a398b42.entry.js → p-307b09bd.entry.js} +112 -112
- package/dist/stencil/{p-fb32cd8f.entry.js → p-905f7ab4.entry.js} +1 -1
- package/dist/stencil/{p-De_S50eB.js → p-D3OqvrMh.js} +6 -6
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/constants/version.d.ts +1 -1
- package/package.json +2 -1
- package/readme.md +10 -10
|
@@ -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
|
+
}
|
|
@@ -205,7 +205,7 @@ export class KritzelSettings {
|
|
|
205
205
|
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)))));
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return (h(Host, { key: '
|
|
208
|
+
return (h(Host, { key: '0ca8d95d2557e4f36f9461295be02ff9d60878d9' }, h("kritzel-dialog", { key: '9396bc5d7ecff839d1df6007fd54b3bb0da31c85', isOpen: this.isDialogOpen, dialogTitle: this.t('settings.dialogTitle', 'Settings'), size: "large", contained: true, onDialogClose: this.closeDialog }, h("kritzel-master-detail", { key: 'cf8a0f60c3884dac3e1cd324065030c278f4e119', items: this.categories, selectedItemId: this.selectedCategoryId, onItemSelect: this.handleCategorySelect }, this.renderCategoryContent()))));
|
|
209
209
|
}
|
|
210
210
|
static get is() { return "kritzel-settings"; }
|
|
211
211
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
kritzel-dialog {
|
|
6
|
-
--kritzel-dialog-width-small: 420px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.share-content {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: 20px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.share-section {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: 8px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.share-section-revoke {
|
|
22
|
-
padding-top: 12px;
|
|
23
|
-
border-top: 1px solid var(--kritzel-share-dialog-border-color, #e5e5e5);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.share-row {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: space-between;
|
|
30
|
-
gap: 16px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.share-label-group {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
gap: 8px;
|
|
37
|
-
flex: 1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.share-label {
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
font-weight: 600;
|
|
43
|
-
color: var(--kritzel-share-dialog-label-color, #333333);
|
|
44
|
-
margin: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.share-description {
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
color: var(--kritzel-share-dialog-description-color, #666666);
|
|
50
|
-
margin: 0;
|
|
51
|
-
line-height: 1.4;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* URL Input Container */
|
|
55
|
-
.share-url-container {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: 8px;
|
|
59
|
-
background: var(--kritzel-share-dialog-input-background, #f5f5f5);
|
|
60
|
-
border: 1px solid var(--kritzel-share-dialog-input-border-color, #e0e0e0);
|
|
61
|
-
border-radius: 6px;
|
|
62
|
-
padding: 4px 4px 4px 12px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.share-qr-container {
|
|
66
|
-
display: flex;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
margin-top: 16px;
|
|
69
|
-
margin-bottom: 16px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.share-qr-image {
|
|
73
|
-
width: 180px;
|
|
74
|
-
height: 180px;
|
|
75
|
-
border-radius: 8px;
|
|
76
|
-
border: 1px solid var(--kritzel-share-dialog-qr-border-color, #e0e0e0);
|
|
77
|
-
background: var(--kritzel-share-dialog-qr-background, #ffffff);
|
|
78
|
-
padding: 8px;
|
|
79
|
-
box-sizing: border-box;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.share-url-input {
|
|
83
|
-
flex: 1;
|
|
84
|
-
border: none;
|
|
85
|
-
background: transparent;
|
|
86
|
-
font-size: 13px;
|
|
87
|
-
color: var(--kritzel-share-dialog-input-text-color, #333333);
|
|
88
|
-
outline: none;
|
|
89
|
-
min-width: 0;
|
|
90
|
-
padding: 8px 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.share-url-input:focus {
|
|
94
|
-
outline: none;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.share-url-input::selection {
|
|
98
|
-
background: var(--kritzel-share-dialog-selection-color, #cce5ff);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* Copy Button */
|
|
102
|
-
.copy-button {
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
width: 36px;
|
|
107
|
-
height: 36px;
|
|
108
|
-
border: none;
|
|
109
|
-
border-radius: 4px;
|
|
110
|
-
background: var(--kritzel-share-dialog-copy-button-background, #ffffff);
|
|
111
|
-
color: var(--kritzel-share-dialog-copy-button-color, #666666);
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
transition: all 0.15s ease;
|
|
114
|
-
flex-shrink: 0;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.copy-button:hover {
|
|
118
|
-
background: var(--kritzel-share-dialog-copy-button-hover-background, #e8e8e8);
|
|
119
|
-
color: var(--kritzel-share-dialog-copy-button-hover-color, #333333);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.copy-button.copy-success {
|
|
123
|
-
background: var(--kritzel-share-dialog-copy-success-background, #d4edda);
|
|
124
|
-
color: var(--kritzel-share-dialog-copy-success-color, #28a745);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Revoke Button */
|
|
128
|
-
.revoke-button {
|
|
129
|
-
align-self: flex-start;
|
|
130
|
-
padding: 8px 16px;
|
|
131
|
-
border: 1px solid var(--kritzel-share-dialog-revoke-button-border-color, #dc3545);
|
|
132
|
-
border-radius: 6px;
|
|
133
|
-
background: transparent;
|
|
134
|
-
color: var(--kritzel-share-dialog-revoke-button-color, #dc3545);
|
|
135
|
-
font-size: 13px;
|
|
136
|
-
font-weight: 500;
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
transition: all 0.15s ease;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.revoke-button:hover {
|
|
142
|
-
background: var(--kritzel-share-dialog-revoke-button-hover-background, #dc3545);
|
|
143
|
-
color: var(--kritzel-share-dialog-revoke-button-hover-color, #ffffff);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* Dropdown styling within the dialog */
|
|
147
|
-
kritzel-dropdown {
|
|
148
|
-
--kritzel-dropdown-trigger-padding: 8px 12px;
|
|
149
|
-
--kritzel-dropdown-trigger-font-size: 13px;
|
|
150
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
kritzel-dialog {
|
|
6
|
+
--kritzel-dialog-width-small: 420px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.share-content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 20px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.share-section {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.share-section-revoke {
|
|
22
|
+
padding-top: 12px;
|
|
23
|
+
border-top: 1px solid var(--kritzel-share-dialog-border-color, #e5e5e5);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.share-row {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
gap: 16px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.share-label-group {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
flex: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.share-label {
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
color: var(--kritzel-share-dialog-label-color, #333333);
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.share-description {
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
color: var(--kritzel-share-dialog-description-color, #666666);
|
|
50
|
+
margin: 0;
|
|
51
|
+
line-height: 1.4;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* URL Input Container */
|
|
55
|
+
.share-url-container {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 8px;
|
|
59
|
+
background: var(--kritzel-share-dialog-input-background, #f5f5f5);
|
|
60
|
+
border: 1px solid var(--kritzel-share-dialog-input-border-color, #e0e0e0);
|
|
61
|
+
border-radius: 6px;
|
|
62
|
+
padding: 4px 4px 4px 12px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.share-qr-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
margin-top: 16px;
|
|
69
|
+
margin-bottom: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.share-qr-image {
|
|
73
|
+
width: 180px;
|
|
74
|
+
height: 180px;
|
|
75
|
+
border-radius: 8px;
|
|
76
|
+
border: 1px solid var(--kritzel-share-dialog-qr-border-color, #e0e0e0);
|
|
77
|
+
background: var(--kritzel-share-dialog-qr-background, #ffffff);
|
|
78
|
+
padding: 8px;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.share-url-input {
|
|
83
|
+
flex: 1;
|
|
84
|
+
border: none;
|
|
85
|
+
background: transparent;
|
|
86
|
+
font-size: 13px;
|
|
87
|
+
color: var(--kritzel-share-dialog-input-text-color, #333333);
|
|
88
|
+
outline: none;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
padding: 8px 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.share-url-input:focus {
|
|
94
|
+
outline: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.share-url-input::selection {
|
|
98
|
+
background: var(--kritzel-share-dialog-selection-color, #cce5ff);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Copy Button */
|
|
102
|
+
.copy-button {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
width: 36px;
|
|
107
|
+
height: 36px;
|
|
108
|
+
border: none;
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
background: var(--kritzel-share-dialog-copy-button-background, #ffffff);
|
|
111
|
+
color: var(--kritzel-share-dialog-copy-button-color, #666666);
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition: all 0.15s ease;
|
|
114
|
+
flex-shrink: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.copy-button:hover {
|
|
118
|
+
background: var(--kritzel-share-dialog-copy-button-hover-background, #e8e8e8);
|
|
119
|
+
color: var(--kritzel-share-dialog-copy-button-hover-color, #333333);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.copy-button.copy-success {
|
|
123
|
+
background: var(--kritzel-share-dialog-copy-success-background, #d4edda);
|
|
124
|
+
color: var(--kritzel-share-dialog-copy-success-color, #28a745);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Revoke Button */
|
|
128
|
+
.revoke-button {
|
|
129
|
+
align-self: flex-start;
|
|
130
|
+
padding: 8px 16px;
|
|
131
|
+
border: 1px solid var(--kritzel-share-dialog-revoke-button-border-color, #dc3545);
|
|
132
|
+
border-radius: 6px;
|
|
133
|
+
background: transparent;
|
|
134
|
+
color: var(--kritzel-share-dialog-revoke-button-color, #dc3545);
|
|
135
|
+
font-size: 13px;
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
transition: all 0.15s ease;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.revoke-button:hover {
|
|
142
|
+
background: var(--kritzel-share-dialog-revoke-button-hover-background, #dc3545);
|
|
143
|
+
color: var(--kritzel-share-dialog-revoke-button-hover-color, #ffffff);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Dropdown styling within the dialog */
|
|
147
|
+
kritzel-dropdown {
|
|
148
|
+
--kritzel-dropdown-trigger-padding: 8px 12px;
|
|
149
|
+
--kritzel-dropdown-trigger-font-size: 13px;
|
|
150
|
+
}
|
|
@@ -123,9 +123,9 @@ export class KritzelShareDialog {
|
|
|
123
123
|
this.dialogClosed.emit();
|
|
124
124
|
};
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: 'f2d1fac8b68b48fe538f069d6cc9f791d5e758ac' }, h("kritzel-dialog", { key: 'a73f7790d5264f09f8bb80c5a320f37429608469', dialogTitle: this.terms['share.dialogTitle'] ?? 'Share Workspace', size: "small", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, contained: true }, h("div", { key: '8b0ef0e299b3e5c53279decfdef4ef4e07d7ff9c', class: "share-content" }, h("div", { key: '16daa535eaa416cdf0249f47c056ed21518bfd58', class: "share-section" }, h("div", { key: '5d86fa767aa4daa2ce42980b6398bc54b742be8f', class: "share-row" }, h("div", { key: 'b79717b879cf4999818548bdd91e380b419a81d8', class: "share-label-group" }, h("label", { key: '9cfc62e8891c59c7f15d95bc463873a7cdc175c7', class: "share-label" }, this.terms['share.linkSharing.label'] ?? 'Link sharing'), h("p", { key: 'd1e98dadf980582bcf5bb01b1c43370cec7163b5', class: "share-description" }, this.internalIsPublic
|
|
127
127
|
? (this.terms['share.linkSharing.enabledDescription'] ?? 'Anyone with the link can access this workspace.')
|
|
128
|
-
: (this.terms['share.linkSharing.disabledDescription'] ?? 'Link sharing is disabled. Only you can access this workspace.'))), h("kritzel-slide-toggle", { key: '
|
|
128
|
+
: (this.terms['share.linkSharing.disabledDescription'] ?? 'Link sharing is disabled. Only you can access this workspace.'))), h("kritzel-slide-toggle", { key: 'cdd9dbc57880db945c968b79ea3be197d5b9a27f', checked: this.internalIsPublic, onCheckedChange: this.handleToggleChange, label: this.terms['share.linkSharing.toggleLabel'] ?? 'Enable link sharing' }))), this.internalIsPublic && (h("div", { key: '146c798e07c1a5f299322dc7ae1968e7fd2b704e', class: "share-section" }, h("div", { key: 'd49008c51f9ed44cf81e7b27f0420f6ebfd93d1b', class: "share-url-container" }, h("input", { key: '2087219bca0d1a0cb1db1c27cf326e8d0b5cda5b', type: "text", class: "share-url-input", value: this.getShareUrl(), readOnly: true, onClick: (e) => e.target.select() }), h("button", { key: 'fd2111eedfebbb0f1f0121ede24a3ba56029e842', class: { 'copy-button': true, 'copy-success': this.copySuccess }, onClick: this.handleCopyUrl, title: this.copySuccess ? (this.terms['share.copyLink.copied'] ?? 'Copied!') : (this.terms['share.copyLink.title'] ?? 'Copy link') }, h("kritzel-icon", { key: '97d3cd6c4b840661e069beb0064bd2152c240ddf', name: this.copySuccess ? 'check' : 'copy', size: 18 }))), this.qrCodeDataUrl && (h("div", { key: 'a94ce6bc58cdf507140b7732129989314567a6df', class: "share-qr-container" }, h("img", { key: '59d1132df0ada44bc0135bea2e1158b47ece4240', class: "share-qr-image", src: this.qrCodeDataUrl, alt: "QR code for share link" })))))))));
|
|
129
129
|
}
|
|
130
130
|
static get is() { return "kritzel-share-dialog"; }
|
|
131
131
|
static get encapsulation() { return "shadow"; }
|