@kritzel/editor 0.4.31 → 0.4.32
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-q_Tg9KUw.js} +12 -0
- package/dist/cjs/kritzel-active-users_46.cjs.entry.js +981 -322
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +2 -2
- package/dist/cjs/kritzel-editor.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- 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-B_gT0lCn.js → p-5tEZmBli.js} +3 -3
- package/dist/components/{p-B6UJztrf.js → p-B6U2JNDq.js} +4 -4
- package/dist/components/{p-DXuf225S.js → p-BK5rE1rd.js} +3 -3
- package/dist/components/{p-BZ_KnHdR.js → p-BbXTqI4t.js} +7 -7
- package/dist/components/{p-McY5wZ0h.js → p-BhVCoiyK.js} +2 -2
- package/dist/components/{p-SLnqczCS.js → p-BowLPDbq.js} +3 -3
- package/dist/components/{p-hQwVRh0t.js → p-BuwiCK1I.js} +7 -7
- package/dist/components/{p-CoNexfpB.js → p-C01XOYLF.js} +3 -3
- package/dist/components/{p-ClfOtiNp.js → p-C5Hw8Wv3.js} +3 -3
- package/dist/components/{p-CmjXRLdr.js → p-C5fgp5y4.js} +7 -7
- package/dist/components/{p-BfMlwIcG.js → p-CHelQjUo.js} +3 -3
- package/dist/components/{p-B5xYV1o3.js → p-CIm1iROq.js} +2 -2
- package/dist/components/{p-BjFrt1q0.js → p-COGlcEiV.js} +3 -3
- package/dist/components/{p-4-qLegHb.js → p-COaLQ4Z-.js} +4 -4
- package/dist/components/{p-CVxGF4bJ.js → p-CPfTzGnn.js} +5 -5
- package/dist/components/p-CViWMGoM.js +55 -0
- package/dist/components/{p-Blq9a1ni.js → p-CY3fGZlt.js} +6 -6
- package/dist/components/{p-Cy_cLtOP.js → p-CdwD9F0m.js} +18 -14
- package/dist/components/{p-GbCxpbQ6.js → p-CgCVe3_P.js} +3 -3
- package/dist/components/{p-DZsSiMnA.js → p-CiSc7ASZ.js} +722 -129
- package/dist/components/{p-DVv8ChhE.js → p-D0lYLWkj.js} +4 -4
- package/dist/components/{p-QEue33R5.js → p-D1sxfQVN.js} +3 -3
- package/dist/components/{p-BvG3JO85.js → p-D53Q7EDf.js} +3 -3
- package/dist/components/{p-CzUeIini.js → p-D5OzFEtr.js} +13 -13
- package/dist/components/{p-B3Tqoyl9.js → p-DAr69onU.js} +3 -3
- package/dist/components/{p-h_uh_Njf.js → p-DE6S-FN0.js} +3 -3
- package/dist/components/p-DSi2HiZW.js +214 -0
- package/dist/components/{p-Ckqh1tqY.js → p-DX4FbgMi.js} +27 -31
- package/dist/components/{p-CwBxnzYu.js → p-DYNFqwX4.js} +3 -3
- package/dist/components/{p-Cp4e4oTE.js → p-DZ0S2l6Z.js} +2 -2
- package/dist/components/{p-BrGJIoGK.js → p-DZ4rAt6k.js} +3 -3
- package/dist/components/{p-BDjRSoAc.js → p-Ddk64LEI.js} +2 -2
- package/dist/components/{p-DJxgPPfs.js → p-DoNH4OhF.js} +3 -3
- package/dist/components/{p-D0tPTPkR.js → p-Dtm4CEHf.js} +3 -3
- package/dist/components/{p-BN8VWPlq.js → p-Dwg30A00.js} +7 -7
- package/dist/components/{p-DXZBWJBt.js → p-DxHrSwYy.js} +4 -4
- package/dist/components/{p-CvaxFYS0.js → p-EpqroVCx.js} +8 -8
- package/dist/components/{p-R1D8Sr0l.js → p-Fzi_dVqn.js} +3 -3
- package/dist/components/{p-CS3YZVYE.js → p-Qk844WR4.js} +2 -2
- package/dist/components/{p-peZjvnkK.js → p-g6VqjbL_.js} +2 -2
- package/dist/components/{p-DyRJFg4w.js → p-hKGrOeEa.js} +2 -2
- package/dist/components/{p-5qkOM1RJ.js → p-l1BZ4pYI.js} +12 -1
- package/dist/components/{p-CrIEmItB.js → p-p2H4pOpF.js} +5 -5
- package/dist/components/{p-DqOC_Yck.js → p-pWWRmEe8.js} +6 -6
- package/dist/components/{p-Ds0uNtwQ.js → p-piYX2tVg.js} +4 -4
- package/dist/components/{p-kOINnzaR.js → p-xPpMDzPX.js} +7 -7
- package/dist/esm/{index-OjbYJz-P.js → index-2x7dfLlM.js} +12 -1
- package/dist/esm/kritzel-active-users_46.entry.js +981 -322
- package/dist/esm/kritzel-brush-style.entry.js +2 -2
- package/dist/esm/kritzel-editor.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/kritzel-editor/kritzel-editor.esm.js +3 -3
- package/dist/kritzel-editor/{p-501047d8.entry.js → p-285cdc18.entry.js} +2 -2
- package/dist/kritzel-editor/{p-OjbYJz-P.js → p-2x7dfLlM.js} +12 -1
- package/dist/kritzel-editor/{p-60319edb.entry.js → p-d5439a4f.entry.js} +981 -322
- package/dist/types/components/kritzel-editor/kritzel-editor.d.ts +9 -2
- package/dist/types/components.d.ts +15 -15
- package/package.json +3 -3
- package/dist/components/p-BGmTmdLe.js +0 -167
- package/dist/components/p-DOJCDPVD.js +0 -55
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
padding: 0;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.font-style-button {
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
width: 42px;
|
|
15
|
-
height: 32px;
|
|
16
|
-
padding: 0;
|
|
17
|
-
border: none;
|
|
18
|
-
outline: none;
|
|
19
|
-
background: none;
|
|
20
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
21
|
-
border-radius: 0;
|
|
22
|
-
color: var(--control-text-color);
|
|
23
|
-
font-weight: bold;
|
|
24
|
-
-webkit-tap-highlight-color: transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.font-style-button:not(:last-child) {
|
|
28
|
-
border-right: 1px solid #333333;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.font-style-button:hover {
|
|
32
|
-
background-color: var(--control-hover-bg);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.font-style-button:active {
|
|
36
|
-
background-color: var(--control-active-bg);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.font-style-button.selected,
|
|
40
|
-
.font-style-button.selected:hover,
|
|
41
|
-
.font-style-button.selected:active {
|
|
42
|
-
background-color: var(--control-selected-bg);
|
|
43
|
-
color: var(--control-selected-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.font-style-button.italic-text {
|
|
47
|
-
font-style: italic;
|
|
48
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.font-style-button {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 42px;
|
|
15
|
+
height: 32px;
|
|
16
|
+
padding: 0;
|
|
17
|
+
border: none;
|
|
18
|
+
outline: none;
|
|
19
|
+
background: none;
|
|
20
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
color: var(--control-text-color);
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
-webkit-tap-highlight-color: transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.font-style-button:not(:last-child) {
|
|
28
|
+
border-right: 1px solid #333333;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.font-style-button:hover {
|
|
32
|
+
background-color: var(--control-hover-bg);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.font-style-button:active {
|
|
36
|
+
background-color: var(--control-active-bg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.font-style-button.selected,
|
|
40
|
+
.font-style-button.selected:hover,
|
|
41
|
+
.font-style-button.selected:active {
|
|
42
|
+
background-color: var(--control-selected-bg);
|
|
43
|
+
color: var(--control-selected-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.font-style-button.italic-text {
|
|
47
|
+
font-style: italic;
|
|
48
|
+
}
|
|
@@ -34,7 +34,7 @@ export class KritzelFontFamily {
|
|
|
34
34
|
label: option.label,
|
|
35
35
|
style: { fontFamily: option.cssFontFamily ?? option.value },
|
|
36
36
|
}));
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '059350f34370f7a291f47a42721ca5d9bb82df49' }, h("kritzel-dropdown", { key: 'fbd8cf1ae463c7e9b76d0ac754a41de54397058e', options: dropdownOptions, value: this.selectedFontFamily, onValueChanged: this.handleDropdownValueChange, selectStyles: { fontFamily: selectedFontFamily } })));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "kritzel-font-family"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class KritzelFontFamily {
|
|
|
59
59
|
"references": {
|
|
60
60
|
"FontOption": {
|
|
61
61
|
"location": "local",
|
|
62
|
-
"path": "
|
|
62
|
+
"path": "/home/runner/work/kritzel-private/kritzel-private/libs/editor/core/src/components/kritzel-font-family/kritzel-font-family.tsx",
|
|
63
63
|
"id": "src/components/kritzel-font-family/kritzel-font-family.tsx::FontOption"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
padding: 0;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.size-container {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
width: 32px;
|
|
14
|
-
height: 32px;
|
|
15
|
-
border-radius: 4px;
|
|
16
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
17
|
-
border: 2px solid transparent;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.size-container:hover {
|
|
23
|
-
background-color: var(--kritzel-font-size-hover-background-color, #ebebeb);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.size-container.selected {
|
|
27
|
-
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
28
|
-
background-color: var(--kritzel-font-size-selected-background-color, #e0e0e0);
|
|
29
|
-
}
|
|
30
|
-
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.size-container {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
width: 32px;
|
|
14
|
+
height: 32px;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
17
|
+
border: 2px solid transparent;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.size-container:hover {
|
|
23
|
+
background-color: var(--kritzel-font-size-hover-background-color, #ebebeb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.size-container.selected {
|
|
27
|
+
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
28
|
+
background-color: var(--kritzel-font-size-selected-background-color, #e0e0e0);
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -17,7 +17,7 @@ export class KritzelFontSize {
|
|
|
17
17
|
render() {
|
|
18
18
|
const color = 'var(--kritzel-global-text-primary)';
|
|
19
19
|
const sizes = this.sizes ?? [];
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'e8309800110db6b59eb1c43ede2e4e94d085f380' }, sizes.map(size => (h("div", { tabIndex: 0, class: {
|
|
21
21
|
'size-container': true,
|
|
22
22
|
'selected': this.selectedSize === size,
|
|
23
23
|
}, onClick: () => this.handleSizeClick(size), onKeyDown: event => this.handleKeyDown(event, size) }, h("kritzel-font", { fontFamily: this.fontFamily, size: size, color: color }))))));
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.input-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 6px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.input-label {
|
|
12
|
-
font-size: 14px;
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
color: var(--kritzel-text-input-label-color, #333333);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.input-wrapper {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
border: 1px solid var(--kritzel-text-input-border-color, #ebebeb);
|
|
21
|
-
border-radius: var(--kritzel-text-input-border-radius, 6px);
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
background: var(--kritzel-text-input-background, #ffffff);
|
|
24
|
-
transition: border-color 150ms ease;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.input-wrapper:hover:not(:focus-within) {
|
|
28
|
-
border-color: var(--kritzel-text-input-hover-border-color, #cccccc);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.input-wrapper:focus-within {
|
|
32
|
-
border-color: var(--kritzel-text-input-focus-border-color, #007AFF);
|
|
33
|
-
border-width: 2px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.text-input {
|
|
37
|
-
flex: 1;
|
|
38
|
-
padding: 10px 12px;
|
|
39
|
-
border: none;
|
|
40
|
-
outline: none;
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
font-family: inherit;
|
|
43
|
-
background: transparent;
|
|
44
|
-
color: var(--kritzel-text-input-text-color, #333333);
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.text-input::placeholder {
|
|
49
|
-
color: var(--kritzel-text-input-placeholder-color, #999999);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.text-input::selection {
|
|
53
|
-
background-color: var(--kritzel-text-input-selection-background, #007AFF);
|
|
54
|
-
color: var(--kritzel-text-input-selection-color, #ffffff);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.text-input:disabled {
|
|
58
|
-
cursor: not-allowed;
|
|
59
|
-
opacity: 0.6;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.input-suffix {
|
|
63
|
-
padding: 10px 12px;
|
|
64
|
-
background: var(--kritzel-text-input-suffix-background, #f5f5f5);
|
|
65
|
-
color: var(--kritzel-text-input-suffix-color, #666666);
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
border-left: 1px solid var(--kritzel-text-input-border-color, #ebebeb);
|
|
68
|
-
flex-shrink: 0;
|
|
69
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.input-container {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.input-label {
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
color: var(--kritzel-text-input-label-color, #333333);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
border: 1px solid var(--kritzel-text-input-border-color, #ebebeb);
|
|
21
|
+
border-radius: var(--kritzel-text-input-border-radius, 6px);
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
background: var(--kritzel-text-input-background, #ffffff);
|
|
24
|
+
transition: border-color 150ms ease;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.input-wrapper:hover:not(:focus-within) {
|
|
28
|
+
border-color: var(--kritzel-text-input-hover-border-color, #cccccc);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.input-wrapper:focus-within {
|
|
32
|
+
border-color: var(--kritzel-text-input-focus-border-color, #007AFF);
|
|
33
|
+
border-width: 2px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-input {
|
|
37
|
+
flex: 1;
|
|
38
|
+
padding: 10px 12px;
|
|
39
|
+
border: none;
|
|
40
|
+
outline: none;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
background: transparent;
|
|
44
|
+
color: var(--kritzel-text-input-text-color, #333333);
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.text-input::placeholder {
|
|
49
|
+
color: var(--kritzel-text-input-placeholder-color, #999999);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.text-input::selection {
|
|
53
|
+
background-color: var(--kritzel-text-input-selection-background, #007AFF);
|
|
54
|
+
color: var(--kritzel-text-input-selection-color, #ffffff);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.text-input:disabled {
|
|
58
|
+
cursor: not-allowed;
|
|
59
|
+
opacity: 0.6;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.input-suffix {
|
|
63
|
+
padding: 10px 12px;
|
|
64
|
+
background: var(--kritzel-text-input-suffix-background, #f5f5f5);
|
|
65
|
+
color: var(--kritzel-text-input-suffix-color, #666666);
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
border-left: 1px solid var(--kritzel-text-input-border-color, #ebebeb);
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
}
|
|
@@ -28,7 +28,7 @@ export class KritzelInput {
|
|
|
28
28
|
this.valueChange.emit(input.value);
|
|
29
29
|
};
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '7294192b97df384f321825a8fa30c822f79b6f29' }, h("div", { key: 'c355a4ee26adf0ab71d27e1697eddc1f9533d665', class: "input-container" }, this.label && h("label", { key: '75ee613cdbd20acc6dbd16642bd4dac9058309aa', class: "input-label" }, this.label), h("div", { key: '0395860993deda5cd57d8a185df8b36a52742841', class: { 'input-wrapper': true, 'has-suffix': !!this.suffix } }, h("input", { key: 'a12d80b4d51bcd1526b49119fb2b20ad9343d71b', type: this.type, class: "text-input", value: this.inputValue, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput }), this.suffix && h("span", { key: 'b682a1764795c2f9039b78e866be09609f7d0d80', class: "input-suffix" }, this.suffix)))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "kritzel-input"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 12px;
|
|
5
|
-
padding: 0;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.endings-section {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: 6px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section-label {
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
font-weight: 500;
|
|
18
|
-
color: var(--kritzel-line-endings-label-color, #666666);
|
|
19
|
-
padding-left: 4px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.endings-row {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: 4px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ending-option {
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
width: 48px;
|
|
33
|
-
height: 32px;
|
|
34
|
-
border-radius: 6px;
|
|
35
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
36
|
-
border: 2px solid transparent;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
background: var(--kritzel-line-endings-option-background, #ffffff);
|
|
39
|
-
padding: 4px;
|
|
40
|
-
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ending-option:hover {
|
|
44
|
-
background-color: var(--kritzel-line-endings-hover-background-color, #ebebeb);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.ending-option.selected {
|
|
48
|
-
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
49
|
-
background-color: var(--kritzel-line-endings-selected-background-color, #ebebeb);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ending-option:focus {
|
|
53
|
-
outline: none;
|
|
54
|
-
box-shadow: 0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ending-icon {
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 100%;
|
|
60
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.endings-section {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 6px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.section-label {
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
color: var(--kritzel-line-endings-label-color, #666666);
|
|
19
|
+
padding-left: 4px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.endings-row {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ending-option {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
width: 48px;
|
|
33
|
+
height: 32px;
|
|
34
|
+
border-radius: 6px;
|
|
35
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
36
|
+
border: 2px solid transparent;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
background: var(--kritzel-line-endings-option-background, #ffffff);
|
|
39
|
+
padding: 4px;
|
|
40
|
+
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ending-option:hover {
|
|
44
|
+
background-color: var(--kritzel-line-endings-hover-background-color, #ebebeb);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ending-option.selected {
|
|
48
|
+
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
49
|
+
background-color: var(--kritzel-line-endings-selected-background-color, #ebebeb);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ending-option:focus {
|
|
53
|
+
outline: none;
|
|
54
|
+
box-shadow: 0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ending-icon {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
@@ -65,10 +65,10 @@ export class KritzelLineEndings {
|
|
|
65
65
|
render() {
|
|
66
66
|
const startEnding = this.getStartEnding();
|
|
67
67
|
const endEnding = this.getEndEnding();
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '257d56ca7c191f2c0a7b4492ed29b029d271304c' }, h("div", { key: '294ca5f5006990ffec411eb9a67bf547a92af446', class: "endings-section" }, h("div", { key: 'bb3face6f0673d215ad820dfafdb8f5ba61390a9', class: "endings-row" }, this.styles.map(type => (h("button", { class: {
|
|
69
69
|
'ending-option': true,
|
|
70
70
|
'selected': startEnding === type,
|
|
71
|
-
}, onClick: () => this.handleStartChange(type), title: type === 'none' ? 'No start arrow' : `${type} start arrow` }, this.renderEndingIcon(type, true)))))), h("div", { key: '
|
|
71
|
+
}, onClick: () => this.handleStartChange(type), title: type === 'none' ? 'No start arrow' : `${type} start arrow` }, this.renderEndingIcon(type, true)))))), h("div", { key: 'dbc47b5b744e5bc3fac0fd099a2afe3a90e4bdc0', class: "endings-section" }, h("div", { key: '00a017c7f98a3347ed29b39003ae49b2782bae8f', class: "endings-row" }, this.styles.map(type => (h("button", { class: {
|
|
72
72
|
'ending-option': true,
|
|
73
73
|
'selected': endEnding === type,
|
|
74
74
|
}, onClick: () => this.handleEndChange(type), title: type === 'none' ? 'No end arrow' : `${type} end arrow` }, this.renderEndingIcon(type, false))))))));
|
|
@@ -96,7 +96,7 @@ export class KritzelLineEndings {
|
|
|
96
96
|
"references": {
|
|
97
97
|
"LineEndingType": {
|
|
98
98
|
"location": "local",
|
|
99
|
-
"path": "
|
|
99
|
+
"path": "/home/runner/work/kritzel-private/kritzel-private/libs/editor/core/src/components/kritzel-line-endings/kritzel-line-endings.tsx",
|
|
100
100
|
"id": "src/components/kritzel-line-endings/kritzel-line-endings.tsx::LineEndingType"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: absolute;
|
|
3
|
-
inset: 0;
|
|
4
|
-
z-index: var(--kritzel-editor-loading-overlay-z-index, 1);
|
|
5
|
-
display: block;
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.loading-overlay {
|
|
10
|
-
position: absolute;
|
|
11
|
-
inset: 0;
|
|
12
|
-
z-index: 0;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
gap: 10px;
|
|
17
|
-
background-color: var(--kritzel-editor-loading-overlay-background, rgba(255, 255, 255, 0.6));
|
|
18
|
-
color: var(--kritzel-editor-loading-overlay-color, #333);
|
|
19
|
-
font-family: var(--kritzel-font-family, sans-serif);
|
|
20
|
-
font-size: 1.25rem;
|
|
21
|
-
opacity: 0;
|
|
22
|
-
pointer-events: none;
|
|
23
|
-
visibility: hidden;
|
|
24
|
-
transition:
|
|
25
|
-
opacity 300ms ease,
|
|
26
|
-
visibility 0s linear 300ms;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.loading-overlay.visible {
|
|
30
|
-
opacity: 1;
|
|
31
|
-
pointer-events: all;
|
|
32
|
-
visibility: visible;
|
|
33
|
-
transition:
|
|
34
|
-
opacity 300ms ease,
|
|
35
|
-
visibility 0s linear 0s;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.loading-spinner {
|
|
39
|
-
width: 20px;
|
|
40
|
-
height: 20px;
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
display: block;
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
border: 2px solid var(--kritzel-editor-loading-overlay-spinner-color, #cccccc);
|
|
45
|
-
border-top-color: var(--kritzel-editor-loading-overlay-spinner-active-color, #333333);
|
|
46
|
-
border-radius: 50%;
|
|
47
|
-
animation: kritzel-loading-spin 0.6s linear infinite;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@keyframes kritzel-loading-spin {
|
|
51
|
-
to {
|
|
52
|
-
transform: rotate(360deg);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: var(--kritzel-editor-loading-overlay-z-index, 1);
|
|
5
|
+
display: block;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.loading-overlay {
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
z-index: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
gap: 10px;
|
|
17
|
+
background-color: var(--kritzel-editor-loading-overlay-background, rgba(255, 255, 255, 0.6));
|
|
18
|
+
color: var(--kritzel-editor-loading-overlay-color, #333);
|
|
19
|
+
font-family: var(--kritzel-global-font-family, sans-serif);
|
|
20
|
+
font-size: 1.25rem;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
visibility: hidden;
|
|
24
|
+
transition:
|
|
25
|
+
opacity 300ms ease,
|
|
26
|
+
visibility 0s linear 300ms;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.loading-overlay.visible {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
pointer-events: all;
|
|
32
|
+
visibility: visible;
|
|
33
|
+
transition:
|
|
34
|
+
opacity 300ms ease,
|
|
35
|
+
visibility 0s linear 0s;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.loading-spinner {
|
|
39
|
+
width: 20px;
|
|
40
|
+
height: 20px;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
display: block;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
border: 2px solid var(--kritzel-editor-loading-overlay-spinner-color, #cccccc);
|
|
45
|
+
border-top-color: var(--kritzel-editor-loading-overlay-spinner-active-color, #333333);
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
animation: kritzel-loading-spin 0.6s linear infinite;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@keyframes kritzel-loading-spin {
|
|
51
|
+
to {
|
|
52
|
+
transform: rotate(360deg);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -9,7 +9,7 @@ export class KritzelLoadingOverlay {
|
|
|
9
9
|
*/
|
|
10
10
|
text = 'Loading...';
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '1d00fc91ac568b7472121a37abe353dcee3db25c' }, h("div", { key: '5a32738aa35b799249694ef3fdd7a59ed7f06fee', class: { 'loading-overlay': true, visible: this.visible }, "aria-hidden": this.visible ? 'false' : 'true' }, h("span", { key: '9cc309802bf617f02d02d7017e8194634393b870', class: "loading-spinner" }), this.text)));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "kritzel-loading-overlay"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|