kritzel-stencil 0.1.83 → 0.1.86
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/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_42.cjs.entry.js +94 -94
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
- package/dist/cjs/{workspace.migrations-K5oVASsb.js → workspace.migrations-Dj-FiYEO.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 +71 -71
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +12 -12
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +99 -99
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +14 -14
- 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 +72 -72
- 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 +179 -179
- 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 +3 -3
- 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 +160 -160
- 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 +58 -58
- 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 +105 -105
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.js +1 -1
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +330 -330
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +5 -5
- 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 +29 -29
- 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-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 +45 -45
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +129 -129
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +133 -133
- 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 +5 -5
- 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 +31 -31
- 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 +1 -1
- 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-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 +1 -1
- 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-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-workspace-manager.js +1 -1
- package/dist/components/{p-B5WII1Lk.js → p-0cs6zQLB.js} +1 -1
- package/dist/components/p-7yTPTHbQ.js +1 -0
- package/dist/components/{p-DwemlMvt.js → p-B3UJucEe.js} +1 -1
- package/dist/components/{p-DUQmBcTy.js → p-B5a3arJg.js} +1 -1
- package/dist/components/{p-DCH4Rlqx.js → p-BIdZCZ_l.js} +1 -1
- package/dist/components/{p-CNMpVlot.js → p-BMPgR5Bt.js} +1 -1
- package/dist/components/{p-CKfjz1gj.js → p-BOcGfEkz.js} +1 -1
- package/dist/components/{p-DUnKjQN7.js → p-BVEYAGm1.js} +1 -1
- package/dist/components/{p-CMGHx71q.js → p-BYX50YSd.js} +1 -1
- package/dist/components/{p-BjPmEs5A.js → p-BfJav4Zz.js} +1 -1
- package/dist/components/{p-CLo-TjD_.js → p-BgopgrfE.js} +1 -1
- package/dist/components/{p-CJzg_ejc.js → p-BsQ4E7I8.js} +1 -1
- package/dist/components/{p-V3VW2JKl.js → p-C-ZoFpSf.js} +1 -1
- package/dist/components/p-C0U3Mg5I.js +1 -0
- package/dist/components/{p-Brwz_Dpb.js → p-C3Dwuqka.js} +1 -1
- package/dist/components/{p-CS7r-zhx.js → p-C4vg_-vg.js} +1 -1
- package/dist/components/{p-DrsORMoT.js → p-C4zfI-dj.js} +1 -1
- package/dist/components/{p-cjeDomsc.js → p-CBTqCoUx.js} +1 -1
- package/dist/components/{p-BaaFG0p-.js → p-CBq-KE9C.js} +1 -1
- package/dist/components/{p-CfEGaTaV.js → p-CTj2UdbS.js} +1 -1
- package/dist/components/{p-Bat829Bg.js → p-C_OSXZqJ.js} +1 -1
- package/dist/components/{p-B4F19Aqj.js → p-CaKSDRid.js} +1 -1
- package/dist/components/{p-BZ8bK8qT.js → p-CekG3_ce.js} +1 -1
- package/dist/components/{p-Dw0Obsn5.js → p-Cz2gQKbL.js} +1 -1
- package/dist/components/{p-VxgCvVox.js → p-CzIuqMQA.js} +1 -1
- package/dist/components/{p-1ppb4M65.js → p-D6KNaj_Y.js} +1 -1
- package/dist/components/{p-rNu5JVNH.js → p-D8fQwcNC.js} +1 -1
- package/dist/components/{p-CYl_JKvH.js → p-DBZRCL1u.js} +1 -1
- package/dist/components/{p-DkT0KZCm.js → p-DDBaFNFi.js} +1 -1
- package/dist/components/{p-CM7rYf9A.js → p-DEd2L0e3.js} +1 -1
- package/dist/components/{p-DYcsC2zO.js → p-DMvIGnOt.js} +1 -1
- package/dist/components/{p-C9zsWWH2.js → p-DPmAV68B.js} +1 -1
- package/dist/components/{p-7yR-sKH8.js → p-DRbR0Li3.js} +1 -1
- package/dist/components/{p-C-MtTi6x.js → p-DXO_ppUK.js} +1 -1
- package/dist/components/p-DemKKw9U.js +1 -0
- package/dist/components/{p-D5BXoK9m.js → p-Dxb22STM.js} +1 -1
- package/dist/components/p-Nq8UyPCc.js +1 -0
- package/dist/components/{p-DEOUiiyI.js → p-R9M5PnAz.js} +1 -1
- package/dist/components/{p-D7pwbRUy.js → p-qBqQhAmh.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kritzel-active-users_42.entry.js +94 -94
- package/dist/esm/kritzel-brush-style.entry.js +1 -1
- package/dist/esm/{workspace.migrations-D5iSPf3E.js → workspace.migrations-ByWmiPl8.js} +6 -6
- package/dist/stencil/index.esm.js +1 -1
- package/dist/stencil/{p-b0be4da1.entry.js → p-10c2b77c.entry.js} +1 -1
- package/dist/stencil/p-b38650d2.entry.js +9 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/constants/version.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +114 -114
- package/dist/components/p-B4h_tGG1.js +0 -1
- package/dist/components/p-CJKsuQun.js +0 -1
- package/dist/components/p-DKeBfe_l.js +0 -1
- package/dist/components/p-HK-6khHo.js +0 -1
- package/dist/stencil/p-c28b30ab.entry.js +0 -9
- /package/dist/stencil/{p-D5iSPf3E.js → p-ByWmiPl8.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-D9HaikfQ.js';
|
|
2
|
-
import { a as KritzelPath, c as KritzelLine, y as KritzelColorHelper, m as KritzelSelectionTool, f as KritzelBrushTool, g as KritzelLineTool, k as KritzelShapeTool, j as KritzelTextTool, z as KritzelDevicesHelper, B as KritzelMouseButton, E as DEFAULT_COLOR_PALETTE, S as ShapeType, D as DEFAULT_BRUSH_CONFIG, h as KritzelEraserTool, r as DEFAULT_LINE_TOOL_CONFIG, q as DEFAULT_TEXT_CONFIG, i as KritzelImageTool, u as KritzelAlignment, H as HocuspocusSyncProvider, I as IndexedDBSyncProvider, F as KritzelSelectionGroup, G as KritzelSelectionBox, J as KritzelIconRegistry, L as KritzelKeyboardHelper, M as KritzelBaseHandler, N as KritzelToolRegistry, O as KritzelBaseObject, n as KritzelWorkspace, d as KritzelGroup, b as KritzelImage, e as KritzelShape, K as KritzelText, w as runMigrations, v as CURRENT_WORKSPACE_SCHEMA_VERSION, x as WORKSPACE_MIGRATIONS, C as CURRENT_APP_STATE_SCHEMA_VERSION, A as APP_STATE_MIGRATIONS, P as ObjectHelper, l as KritzelCursorHelper, o as KritzelAnchorManager, p as KritzelThemeManager, Q as KritzelClassHelper, R as KritzelEventHelper, T as KritzelBaseTool, W as WORKSPACE_EXPORT_VERSION } from './workspace.migrations-
|
|
2
|
+
import { a as KritzelPath, c as KritzelLine, y as KritzelColorHelper, m as KritzelSelectionTool, f as KritzelBrushTool, g as KritzelLineTool, k as KritzelShapeTool, j as KritzelTextTool, z as KritzelDevicesHelper, B as KritzelMouseButton, E as DEFAULT_COLOR_PALETTE, S as ShapeType, D as DEFAULT_BRUSH_CONFIG, h as KritzelEraserTool, r as DEFAULT_LINE_TOOL_CONFIG, q as DEFAULT_TEXT_CONFIG, i as KritzelImageTool, u as KritzelAlignment, H as HocuspocusSyncProvider, I as IndexedDBSyncProvider, F as KritzelSelectionGroup, G as KritzelSelectionBox, J as KritzelIconRegistry, L as KritzelKeyboardHelper, M as KritzelBaseHandler, N as KritzelToolRegistry, O as KritzelBaseObject, n as KritzelWorkspace, d as KritzelGroup, b as KritzelImage, e as KritzelShape, K as KritzelText, w as runMigrations, v as CURRENT_WORKSPACE_SCHEMA_VERSION, x as WORKSPACE_MIGRATIONS, C as CURRENT_APP_STATE_SCHEMA_VERSION, A as APP_STATE_MIGRATIONS, P as ObjectHelper, l as KritzelCursorHelper, o as KritzelAnchorManager, p as KritzelThemeManager, Q as KritzelClassHelper, R as KritzelEventHelper, T as KritzelBaseTool, W as WORKSPACE_EXPORT_VERSION } from './workspace.migrations-ByWmiPl8.js';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import 'y-websocket';
|
|
5
5
|
import 'y-indexeddb';
|
|
@@ -132,16 +132,16 @@ const KritzelAvatar = class {
|
|
|
132
132
|
height: `${this.size}px`,
|
|
133
133
|
fontSize: `${Math.round(this.size * 0.4)}px`,
|
|
134
134
|
};
|
|
135
|
-
return (h(Host, { key: '
|
|
135
|
+
return (h(Host, { key: '2067605684a743be45059efd562697ff21fefbcb', style: containerStyles, class: {
|
|
136
136
|
'has-image': !!showImage,
|
|
137
137
|
'has-initials': !!showInitials,
|
|
138
138
|
'has-default': !!showDefaultIcon,
|
|
139
|
-
}, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: '
|
|
139
|
+
}, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: '1ed322318335deb011087494a2c437849b5a23a0', src: imageUrl, alt: "", class: "avatar-image", ref: (el) => {
|
|
140
140
|
if (el) {
|
|
141
141
|
el.referrerPolicy = 'no-referrer';
|
|
142
142
|
el.crossOrigin = 'anonymous';
|
|
143
143
|
}
|
|
144
|
-
}, onError: this.handleImageError })), showInitials && (h("span", { key: '
|
|
144
|
+
}, onError: this.handleImageError })), showInitials && (h("span", { key: 'ff99dded4cb17d6c25880b54e3875c262dfc0440', class: "avatar-initials", style: { backgroundColor: this.getBackgroundColor() } }, initials)), showDefaultIcon && (h("span", { key: '5a217c6a1366dea3ceee8bfa03a38917cad7a9f9', class: "avatar-default" }, h("svg", { key: 'f4537e21772e6e6f1bb60835ad7a56123a200dd7', viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: '29649695038a506e1caeba3a8b6c066860fb5a1d', d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }))))));
|
|
145
145
|
}
|
|
146
146
|
static get watchers() { return {
|
|
147
147
|
"user": [{
|
|
@@ -154,7 +154,7 @@ const KritzelAvatar = class {
|
|
|
154
154
|
};
|
|
155
155
|
KritzelAvatar.style = kritzelAvatarCss();
|
|
156
156
|
|
|
157
|
-
const kritzelAwarenessCursorsCss = () => `:host{display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:1}.awareness-cursor{position:absolute;top:0;left:0;transition:transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
157
|
+
const kritzelAwarenessCursorsCss = () => `:host{display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:1}.awareness-cursor{position:absolute;top:0;left:0;transition:transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out, opacity 300ms ease;will-change:transform}.awareness-cursor.stale{opacity:0}.awareness-cursor.tracking-object{transition-duration:0ms}.cursor-arrow{filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3))}.cursor-label{position:absolute;left:16px;top:16px;white-space:nowrap;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;font-size:var(--kritzel-awareness-cursor-label-font-size, 12px);color:var(--kritzel-awareness-cursor-label-text-color, #ffffff);padding:2px 8px;border-radius:4px;line-height:1.4;font-weight:500;pointer-events:none;user-select:none}.edge-indicator{position:absolute;top:-12px;left:-12px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;transition:transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out, opacity 300ms ease;will-change:transform;pointer-events:auto;user-select:none;cursor:pointer}.edge-indicator.stale{opacity:0}.edge-indicator.tracking-object{transition-duration:0ms}.edge-arrow{position:absolute;filter:drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));transition:opacity 300ms ease}.edge-arrow.stale{opacity:0}.edge-label{position:absolute;white-space:nowrap;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;font-size:var(--kritzel-awareness-cursor-label-font-size, 12px);color:var(--kritzel-awareness-cursor-label-text-color, #ffffff);padding:2px 8px;border-radius:4px;line-height:1.4;font-weight:500;pointer-events:none;opacity:0;transform-origin:center;transition:opacity 150ms ease}.edge-indicator:hover .edge-label{opacity:1}.remote-selection-box{position:absolute;top:0;left:0;border-width:2px;border-style:solid;pointer-events:none;will-change:transform, width, height;transition:transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out, width var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out, height var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out}`;
|
|
158
158
|
|
|
159
159
|
const STALE_THRESHOLD_MS = 10_000;
|
|
160
160
|
const REMOVE_THRESHOLD_MS = 30_000;
|
|
@@ -334,7 +334,7 @@ const KritzelAwarenessCursors = class {
|
|
|
334
334
|
}
|
|
335
335
|
render() {
|
|
336
336
|
const cursors = Array.from(this.remoteCursors.values());
|
|
337
|
-
return (h(Host, { key: '
|
|
337
|
+
return (h(Host, { key: '7147977660886684c8030075206790de5597c342' }, cursors.map(remoteCursor => {
|
|
338
338
|
if (!remoteCursor.cursor)
|
|
339
339
|
return null;
|
|
340
340
|
// When a remote user is actively drawing, derive cursor position from
|
|
@@ -441,7 +441,7 @@ const KritzelBackToContent = class {
|
|
|
441
441
|
this.backToContent.emit();
|
|
442
442
|
};
|
|
443
443
|
render() {
|
|
444
|
-
return (h(Host, { key: '
|
|
444
|
+
return (h(Host, { key: '46a42ca9f3dce4c75d9dc203e113557851caeb78' }, h("button", { key: '6a86672d941f996aaf2c591bb44c7c001a5a05d5', class: { 'back-to-content-button': true, visible: this.visible }, onClick: this.handleClick }, h("kritzel-icon", { key: 'defd63c8e0001fb9d01f74e885748cd2fa0bccdb', name: "chevrons-left" }))));
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
KritzelBackToContent.style = kritzelBackToContentCss();
|
|
@@ -468,16 +468,16 @@ const KritzelButton = class {
|
|
|
468
468
|
this.buttonClick.emit();
|
|
469
469
|
};
|
|
470
470
|
render() {
|
|
471
|
-
return (h(Host, { key: '
|
|
471
|
+
return (h(Host, { key: 'aa82a9e0c6c39b0b2bce597ac2e864049543d474' }, h("button", { key: '5bda14f9fef89abacb9cd04e5aaa8ae7ae25048a', type: this.type, class: {
|
|
472
472
|
'kritzel-button': true,
|
|
473
473
|
[this.variant]: true,
|
|
474
474
|
'disabled': this.disabled,
|
|
475
|
-
}, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '
|
|
475
|
+
}, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '8585675eec39345ddfbf3f6dbb705035f7a5d099' }))));
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
478
|
KritzelButton.style = kritzelButtonCss();
|
|
479
479
|
|
|
480
|
-
const kritzelColorCss = () => `:host{display:flex}.checkerboard-bg{background:repeating-conic-gradient(
|
|
480
|
+
const kritzelColorCss = () => `:host{display:flex}.checkerboard-bg{background:repeating-conic-gradient( var(--kritzel-checkerboard-color-dark, #ccc) 0% 25%, var(--kritzel-checkerboard-color-light, #fff) 0% 50% ) 50% / 8px 8px;position:relative;overflow:hidden}.color-circle{width:24px;height:24px;border-radius:50%;box-sizing:border-box;display:block}.color-circle.white{border:1px solid var(--kritzel-color-palette-circle-border-color, #dddcdc)}`;
|
|
481
481
|
|
|
482
482
|
const KritzelColorComponent = class {
|
|
483
483
|
constructor(hostRef) {
|
|
@@ -520,13 +520,13 @@ const KritzelColorComponent = class {
|
|
|
520
520
|
render() {
|
|
521
521
|
const resolvedColor = this.resolveColor();
|
|
522
522
|
const isColorVeryLight = this.isLightColor(resolvedColor);
|
|
523
|
-
return (h(Host, { key: '
|
|
523
|
+
return (h(Host, { key: 'a740b94f2baacb978b26deae1ea1057c7faf9036' }, h("div", { key: 'e82f83a23e44a2ff23b5efbfac28e4c47cd5b749', class: "checkerboard-bg", style: {
|
|
524
524
|
width: `${this.size}px`,
|
|
525
525
|
height: `${this.size}px`,
|
|
526
526
|
borderRadius: '50%',
|
|
527
527
|
display: 'inline-block',
|
|
528
528
|
position: 'relative',
|
|
529
|
-
} }, h("div", { key: '
|
|
529
|
+
} }, h("div", { key: 'd83e2be171f89ee4cd53e8cf83ab6591f585129f', class: {
|
|
530
530
|
'color-circle': true,
|
|
531
531
|
'white': isColorVeryLight,
|
|
532
532
|
}, style: {
|
|
@@ -582,7 +582,7 @@ const KritzelColorPalette = class {
|
|
|
582
582
|
render() {
|
|
583
583
|
const displayedColors = this.isExpanded ? this.colors : this.colors.slice(0, 6);
|
|
584
584
|
const expandedHeight = this.isExpanded ? this.calculateHeight() : '32px';
|
|
585
|
-
return (h(Host, { key: '
|
|
585
|
+
return (h(Host, { key: 'a2c996d16a44f66471f6f76e08129142fc9f5ddb' }, h("div", { key: '245f4b9ff50412b84ede221d22b0894a104a6895', class: {
|
|
586
586
|
'color-grid': true,
|
|
587
587
|
'expanded': this.isExpanded,
|
|
588
588
|
}, style: {
|
|
@@ -780,7 +780,7 @@ const KritzelContextMenu = class {
|
|
|
780
780
|
})));
|
|
781
781
|
}
|
|
782
782
|
render() {
|
|
783
|
-
return (h(Host, { key: '
|
|
783
|
+
return (h(Host, { key: '100ec82feefbc285f8e50fca3f23f853c33aa215' }, h("div", { key: '9305a0190bdcf7a9e4b5ae7473651a0261dbfd7c', class: "menu-container" }, this.processedItems.map(({ item, isDisabled, processedChildren }, index) => {
|
|
784
784
|
const prevItem = index > 0 ? this.processedItems[index - 1].item : null;
|
|
785
785
|
const showDivider = prevItem && prevItem.group !== item.group;
|
|
786
786
|
const hasChildren = processedChildren && processedChildren.length > 0;
|
|
@@ -1060,13 +1060,13 @@ const KritzelControls = class {
|
|
|
1060
1060
|
// Separate tool controls from config control
|
|
1061
1061
|
const toolControls = this.controls.filter(c => c.type === 'tool' || c.type === 'separator');
|
|
1062
1062
|
const configControl = this.controls.find(c => c.type === 'config' && c.name === this.firstConfig?.name);
|
|
1063
|
-
return (h(Host, { key: '
|
|
1063
|
+
return (h(Host, { key: 'ea5e17d6995c228862b6d3375213b8f4ff05f04b', class: {
|
|
1064
1064
|
mobile: this.isTouchDevice,
|
|
1065
|
-
} }, this.isUtilityPanelVisible && (h("kritzel-utility-panel", { key: '
|
|
1065
|
+
} }, this.isUtilityPanelVisible && (h("kritzel-utility-panel", { key: '3296551d078f9d358efff1438fdcf723349fa5e1', style: {
|
|
1066
1066
|
position: 'absolute',
|
|
1067
1067
|
bottom: '56px',
|
|
1068
1068
|
left: '12px',
|
|
1069
|
-
}, undoState: this.undoState, onUndo: () => this.kritzelEngine?.undo(), onRedo: () => this.kritzelEngine?.redo(), onDelete: () => this.kritzelEngine?.delete() })), h("div", { key: '
|
|
1069
|
+
}, undoState: this.undoState, onUndo: () => this.kritzelEngine?.undo(), onRedo: () => this.kritzelEngine?.redo(), onDelete: () => this.kritzelEngine?.delete() })), h("div", { key: '9cbea189d5875cda4f09dc7228345e0cb268d47d', class: "kritzel-controls" }, h("div", { key: '0df655a7ac5bd6bc164b82703bc212b480058ba2', class: { 'scroll-indicator-left': true, 'visible': this.canScrollLeft } }), h("div", { key: 'bc16b645b6c6a12ec6bd8420a8d84aee83d2b6d2', class: "kritzel-tools-scroll", ref: el => this.toolsScrollRef = el, onScroll: this.handleToolsScroll }, toolControls.map(control => {
|
|
1070
1070
|
// Check if this control has sub-options (split-button)
|
|
1071
1071
|
if (control.subOptions?.length) {
|
|
1072
1072
|
const selectedSubOption = this.getSelectedSubOption(control);
|
|
@@ -1096,10 +1096,10 @@ const KritzelControls = class {
|
|
|
1096
1096
|
'kritzel-control': true,
|
|
1097
1097
|
'selected': this.activeControl?.name === control?.name,
|
|
1098
1098
|
}, key: control.name, "data-testid": `tool-${control.name}`, onClick: _event => this.handleControlClick?.(control) }, h("kritzel-icon", { name: control.icon })));
|
|
1099
|
-
})), h("div", { key: '
|
|
1099
|
+
})), h("div", { key: '2e0824a991997d52168a3d922c2214ed66f5bf57', class: { 'scroll-indicator-right': true, 'visible': this.canScrollRight && !(configControl && this.activeControl && hasConfigUI) } }), configControl && this.activeControl && (h("div", { class: {
|
|
1100
1100
|
'kritzel-config-container': true,
|
|
1101
1101
|
'visible': hasConfigUI,
|
|
1102
|
-
}, key: configControl.name }, h("div", { key: '
|
|
1102
|
+
}, key: configControl.name }, h("div", { key: 'd2cb554f56ce0f3bfe72e85fcbb506199387c15f', class: { 'config-gradient-left': true, 'visible': this.needsScrolling } }), h("kritzel-tooltip", { key: '39412859a99c71b536e0b2ed0045b671a975af7e', anchorElement: this.host.shadowRoot?.querySelector('.kritzel-config-container'), triggerElement: this.configTriggerRef }, h("kritzel-tool-config", { key: '1977ceddd337df53e8636e2bddd1d928aca3a1ff', tool: this.activeControl.tool, theme: this.theme, onToolChange: event => this.handleToolChange?.(event), onDisplayValuesChange: this.handleDisplayValuesChange, style: { width: '100%', height: '100%' } })), h("div", { key: '06bd3bf3558931a0c2317e149d8990f42e77adae', tabIndex: hasConfigUI ? 0 : -1, class: "kritzel-config", "data-testid": "tool-config", ref: el => {
|
|
1103
1103
|
if (el)
|
|
1104
1104
|
this.configTriggerRef = el;
|
|
1105
1105
|
}, onKeyDown: event => {
|
|
@@ -1143,7 +1143,7 @@ const KritzelCurrentUser = class {
|
|
|
1143
1143
|
this.dialogRef?.open();
|
|
1144
1144
|
};
|
|
1145
1145
|
render() {
|
|
1146
|
-
return (h(Host, { key: '
|
|
1146
|
+
return (h(Host, { key: 'a735cb9f16f4898fde0b52573affa2d270a8f1de' }, h("kritzel-avatar", { key: 'd449a515182718ab4ef3b26b2277696bbc7ab46f', user: this.user, size: this.avatarSize, onClick: this.handleAvatarClick }), h("kritzel-current-user-dialog", { key: '3542f6df43c9924218e344f70bdc398c74a8eae6', ref: el => (this.dialogRef = el), user: this.user })));
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
KritzelCurrentUser.style = kritzelCurrentUserCss();
|
|
@@ -1175,7 +1175,7 @@ const KritzelCurrentUserDialog = class {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
render() {
|
|
1177
1177
|
const displayName = this.getDisplayName();
|
|
1178
|
-
return (h(Host, { key: '
|
|
1178
|
+
return (h(Host, { key: '40c1a1bed0ddf02f9835199b5f7d2363e4d1902b' }, h("kritzel-dialog", { key: '8d10cd2dbdec06c0519f5a8f6f0f113d30b978aa', dialogTitle: "Account", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small" }, h("div", { key: '24d8267d37fde77ce1a26efb84a9eaa3320dd6b7', class: "user-info" }, h("kritzel-avatar", { key: '282153dea220d8aa4a509764e2dcbcf20a6f2682', user: this.user, size: 80 }), displayName && h("div", { key: '3a908e583a8eb0aca4020eb78d76821b82b1c643', class: "user-name" }, displayName), this.user?.email && h("div", { key: '2aadf821b6f91c6bd76f10ff234d94ab8b79dd9c', class: "user-email" }, this.user.email)))));
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
1181
|
KritzelCurrentUserDialog.style = kritzelCurrentUserDialogCss();
|
|
@@ -1248,7 +1248,7 @@ const KritzelCursorTrail = class {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
render() {
|
|
1251
|
-
return (h(Host, { key: '
|
|
1251
|
+
return (h(Host, { key: '2e40e68375f4b8b4531181d249c1638a01d9dac5' }, this.cursorTrailPoints.length > 1 && (h("svg", { key: 'c015f003cc5f4c5c532803846fa5201edf4c211a', class: "cursor-trail-svg", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
1252
1252
|
position: 'absolute',
|
|
1253
1253
|
left: '0',
|
|
1254
1254
|
top: '0',
|
|
@@ -1336,7 +1336,7 @@ class KritzelHTMLHelper {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
|
-
const kritzelDialogCss = () => `:host{display:contents}.backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10002;display:flex;align-items:center;justify-content:center;background-color:var(--kritzel-dialog-backdrop-color, rgba(0, 0, 0, 0.5));opacity:1;transition:opacity 150ms ease-out}.backdrop.is-animating{opacity:0}.dialog-content{position:relative;display:flex;flex-direction:column;background-color:var(--kritzel-dialog-background-color, #ffffff);border-radius:var(--kritzel-dialog-border-radius, 12px);box-shadow:var(--kritzel-dialog-box-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));border:var(--kritzel-dialog-border, 1px solid #ebebeb);max-height:var(--kritzel-dialog-max-height, 90vh);max-width:var(--kritzel-dialog-max-width, 90vw);overflow:hidden;transform:scale(1);opacity:1;transition:transform 200ms ease-out,
|
|
1339
|
+
const kritzelDialogCss = () => `:host{display:contents}.backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10002;display:flex;align-items:center;justify-content:center;background-color:var(--kritzel-dialog-backdrop-color, rgba(0, 0, 0, 0.5));opacity:1;transition:opacity 150ms ease-out}.backdrop.is-animating{opacity:0}.dialog-content{position:relative;display:flex;flex-direction:column;background-color:var(--kritzel-dialog-background-color, #ffffff);border-radius:var(--kritzel-dialog-border-radius, 12px);box-shadow:var(--kritzel-dialog-box-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));border:var(--kritzel-dialog-border, 1px solid #ebebeb);max-height:var(--kritzel-dialog-max-height, 90vh);max-width:var(--kritzel-dialog-max-width, 90vw);overflow:hidden;transform:scale(1);opacity:1;transition:transform 200ms ease-out, opacity 200ms ease-out;font-family:var(--kritzel-dialog-font-family, sans-serif)}.dialog-content.is-animating{transform:scale(0.95);opacity:0}.dialog-content.size-small{width:var(--kritzel-dialog-width-small, 320px);height:var(--kritzel-dialog-height-small, auto)}.dialog-content.size-medium{width:var(--kritzel-dialog-width-medium, 480px);height:var(--kritzel-dialog-height-medium, auto)}.dialog-content.size-large{width:var(--kritzel-dialog-width-large, 640px);height:var(--kritzel-dialog-height-large, auto)}.dialog-content.size-fullscreen{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;border-radius:0}@media (max-width: 576px){.backdrop:has(.fullscreen-on-mobile){background-color:transparent}.dialog-content.fullscreen-on-mobile{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;border-radius:0}.dialog-content.fullscreen-on-mobile .dialog-body{display:flex;flex-direction:column}.dialog-content.fullscreen-on-mobile .dialog-body ::slotted(*){flex:1;min-height:0}}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:var(--kritzel-dialog-header-padding, 16px 20px);border-bottom:var(--kritzel-dialog-header-border, 1px solid #ebebeb);gap:12px}.dialog-title{margin:0;font-size:var(--kritzel-dialog-title-font-size, 18px);font-weight:var(--kritzel-dialog-title-font-weight, 600);color:var(--kritzel-dialog-title-color, #1a1a1a);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.close-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:var(--kritzel-dialog-close-button-border-radius, 6px);background-color:var(--kritzel-dialog-close-button-background, transparent);color:var(--kritzel-dialog-close-button-color, #666666);cursor:var(--kritzel-global-pointer-cursor, pointer);transition:background-color 150ms ease, color 150ms ease;flex-shrink:0;-webkit-tap-highlight-color:transparent}.close-button:hover{background-color:var(--kritzel-dialog-close-button-hover-background, #f5f5f5);color:var(--kritzel-dialog-close-button-hover-color, #1a1a1a)}.close-button:active{background-color:var(--kritzel-dialog-close-button-active-background, #ebebeb)}.close-button:focus-visible{outline:revert;outline-offset:revert}.dialog-body{padding:var(--kritzel-dialog-body-padding, 20px);overflow-y:auto;flex:1;min-height:0;scrollbar-color:var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;scrollbar-width:thin}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:var(--kritzel-dialog-footer-gap, 8px);padding:var(--kritzel-dialog-footer-padding, 16px 20px);border-top:var(--kritzel-dialog-footer-border, 1px solid #ebebeb)}::slotted([slot='header']){flex:1}::slotted([slot='footer']){display:contents}`;
|
|
1340
1340
|
|
|
1341
1341
|
const KritzelDialog = class {
|
|
1342
1342
|
constructor(hostRef) {
|
|
@@ -1561,7 +1561,7 @@ const KritzelDialog = class {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
KritzelDialog.style = kritzelDialogCss();
|
|
1563
1563
|
|
|
1564
|
-
const kritzelDropdownCss = () => `:host{display:inline-flex;vertical-align:middle;width:100%;position:relative}.dropdown-wrapper{display:flex;align-items:center;border:1px solid var(--kritzel-dropdown-border-color, #ebebeb);border-radius:6px;overflow:visible;height:38px;width:100%;position:relative}.dropdown-wrapper:hover:not(:focus-within){border-color:var(--kritzel-dropdown-hover-border-color, #cccccc)}.dropdown-container{flex:1;height:100%;min-width:0}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;height:100%;width:100%;box-sizing:border-box;border-radius:6px;border:none;background-color:var(--kritzel-dropdown-background, #ffffff);cursor:var(--kritzel-global-pointer-cursor, pointer);outline:none;font-size:inherit;font-family:inherit;color:var(--kritzel-dropdown-text-color, #333333);-webkit-tap-highlight-color:transparent;text-align:left}.dropdown-trigger:focus-visible{outline:revert}.dropdown-trigger.has-suffix-border{border-right:1px solid var(--kritzel-global-border-color, #ebebeb);border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-trigger.has-prefix-border{border-left:1px solid var(--kritzel-global-border-color, #ebebeb);border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.dropdown-trigger-arrow{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;transition:transform 0.2s ease}.dropdown-trigger-arrow svg{width:100%;height:100%}.dropdown-trigger.is-open .dropdown-trigger-arrow{transform:rotate(180deg)}.dropdown-trigger.is-open.open-up .dropdown-trigger-arrow{transform:rotate(0deg)}.dropdown-menu{position:absolute;left:0;right:0;margin:0;padding:4px 0;list-style:none;background-color:var(--kritzel-dropdown-background, #ffffff);border:1px solid var(--kritzel-global-border-color, #ebebeb);border-radius:6px;box-shadow:var(--kritzel-controls-box-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));z-index:1000;max-height:240px;overflow-y:auto;opacity:0;visibility:hidden;transition:opacity 0.15s ease,
|
|
1564
|
+
const kritzelDropdownCss = () => `:host{display:inline-flex;vertical-align:middle;width:100%;position:relative}.dropdown-wrapper{display:flex;align-items:center;border:1px solid var(--kritzel-dropdown-border-color, #ebebeb);border-radius:6px;overflow:visible;height:38px;width:100%;position:relative}.dropdown-wrapper:hover:not(:focus-within){border-color:var(--kritzel-dropdown-hover-border-color, #cccccc)}.dropdown-container{flex:1;height:100%;min-width:0}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;height:100%;width:100%;box-sizing:border-box;border-radius:6px;border:none;background-color:var(--kritzel-dropdown-background, #ffffff);cursor:var(--kritzel-global-pointer-cursor, pointer);outline:none;font-size:inherit;font-family:inherit;color:var(--kritzel-dropdown-text-color, #333333);-webkit-tap-highlight-color:transparent;text-align:left}.dropdown-trigger:focus-visible{outline:revert}.dropdown-trigger.has-suffix-border{border-right:1px solid var(--kritzel-global-border-color, #ebebeb);border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-trigger.has-prefix-border{border-left:1px solid var(--kritzel-global-border-color, #ebebeb);border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.dropdown-trigger-arrow{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;transition:transform 0.2s ease}.dropdown-trigger-arrow svg{width:100%;height:100%}.dropdown-trigger.is-open .dropdown-trigger-arrow{transform:rotate(180deg)}.dropdown-trigger.is-open.open-up .dropdown-trigger-arrow{transform:rotate(0deg)}.dropdown-menu{position:absolute;left:0;right:0;margin:0;padding:4px 0;list-style:none;background-color:var(--kritzel-dropdown-background, #ffffff);border:1px solid var(--kritzel-global-border-color, #ebebeb);border-radius:6px;box-shadow:var(--kritzel-controls-box-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));z-index:1000;max-height:240px;overflow-y:auto;opacity:0;visibility:hidden;transition:opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;outline:none}.dropdown-menu.open-down{top:calc(100% + 4px);bottom:auto;transform:translateY(-8px)}.dropdown-menu.open-up{bottom:calc(100% + 4px);top:auto;transform:translateY(8px)}.dropdown-menu.is-open{opacity:1;visibility:inherit;transform:translateY(0)}.dropdown-menu.open-up{box-shadow:var(--kritzel-controls-box-shadow, 0 -4px 12px rgba(0, 0, 0, 0.15))}.dropdown-option{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;cursor:var(--kritzel-global-pointer-cursor, pointer);color:var(--kritzel-dropdown-text-color, #333333);transition:background-color 0.1s ease;-webkit-tap-highlight-color:transparent}.dropdown-option.is-focused{background-color:var(--kritzel-dropdown-hover-background-color, #f0f0f0)}.dropdown-option.is-selected{font-weight:600;background-color:var(--kritzel-dropdown-selected-background-color, #007bff1a)}.dropdown-option-check{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;color:var(--kritzel-dropdown-accent-color, #007bff)}.dropdown-option-check svg{width:100%;height:100%}.dropdown-menu{scrollbar-color:var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;scrollbar-width:thin}::slotted(*){height:100%;box-sizing:border-box}`;
|
|
1565
1565
|
|
|
1566
1566
|
const KritzelDropdown = class {
|
|
1567
1567
|
constructor(hostRef) {
|
|
@@ -1799,7 +1799,7 @@ const KritzelDropdown = class {
|
|
|
1799
1799
|
'open-up': this.openDirection === 'up',
|
|
1800
1800
|
'open-down': this.openDirection === 'down',
|
|
1801
1801
|
};
|
|
1802
|
-
return (h(Host, { key: '
|
|
1802
|
+
return (h(Host, { key: 'ac4dc8a445f79fa68555756a4ac26ba174a13eaa' }, h("div", { key: '1c73835be42e6a289657920ef33c2a53c183913d', class: "dropdown-wrapper", ref: el => (this.wrapperElement = el) }, h("slot", { key: 'ac73d76b5e24e2f2740113523524bc00d1c98d02', name: "prefix", ref: el => (this.prefixSlotElement = el), onSlotchange: this.evaluatePrefixContent }), h("div", { key: 'e1e71c68a8abb2cf0dc2b9314e05d1170c0bb5b3', class: "dropdown-container", style: { width: this.width } }, h("button", { key: '74588e1ff661f8f86318a2ed9bb53192ad96bacd', type: "button", class: triggerClasses, style: { ...this.selectStyles, ...this.getSelectedStyle() }, onClick: this.toggleMenu, onKeyDown: this.handleTriggerKeyDown, "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', ref: el => (this.triggerElement = el) }, h("span", { key: '432f694526e20e1e6abb6721f12aa246471d830d', class: "dropdown-trigger-label" }, this.getSelectedLabel()), h("span", { key: '81f7d98f78201910f4427a7c442172d0283de45b', class: "dropdown-trigger-arrow", "aria-hidden": "true" }, h("svg", { key: '18db309dc145718fbb3d51e44058e3bfa96b0d27', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { key: '32af6ce9a1f045c2ce3b205b1b1dc1fe1a80e227', points: "6 9 12 15 18 9" }))))), h("slot", { key: 'b37cd43daa06424ea7b7951929352154f7d1ea0f', name: "suffix", ref: el => (this.suffixSlotElement = el), onSlotchange: this.evaluateSuffixContent }), h("ul", { key: '0e673d4e09e007a4c93ed6a992dddeb8eba33e91', class: menuClasses, role: "listbox", tabindex: "-1", onKeyDown: this.handleMenuKeyDown, ref: el => (this.menuElement = el) }, this.options.map((option, index) => {
|
|
1803
1803
|
const isSelected = option.value === this.internalValue;
|
|
1804
1804
|
const isFocused = index === this.focusedIndex;
|
|
1805
1805
|
const optionClasses = {
|
|
@@ -2549,27 +2549,27 @@ const KritzelEditor = class {
|
|
|
2549
2549
|
const isLoggedIn = this.isLoggedIn;
|
|
2550
2550
|
const shouldShowCurrentUser = isLoggedIn;
|
|
2551
2551
|
const shouldShowLoginButton = !!this.loginConfig && !isLoggedIn;
|
|
2552
|
-
return (h(Host, { key: '
|
|
2552
|
+
return (h(Host, { key: 'd8a67f8c972b419312aa79fa94309a4c3c28e559' }, h("div", { key: '8d6014bb9f6782112ede03b004ec7f2e1e30cc61', class: "top-left-buttons" }, h("kritzel-workspace-manager", { key: '3aeb146fa84ff212d48eef81f9699d9050d95955', workspaces: this.workspaces, activeWorkspace: this.activeWorkspace, onWorkspaceChange: event => (this.activeWorkspace = event.detail), onIsWorkspaceManagerReady: () => (this.isWorkspaceManagerReady = true) }), h("kritzel-back-to-content", { key: '341a7383c54d378e3a7ed484852751d08df73f3e', visible: this.isBackToContentButtonVisible, onBackToContent: () => this.backToContent() })), h("kritzel-engine", { key: 'b081b6e393f7523f9c41f17bed67ab2f0ba307e0', ref: el => {
|
|
2553
2553
|
if (el) {
|
|
2554
2554
|
this.engineRef = el;
|
|
2555
2555
|
}
|
|
2556
|
-
}, workspace: this.activeWorkspace, activeWorkspaceId: this.activeWorkspaceId, editorId: this.editorId, syncConfig: this.syncConfig, user: this.user, scaleMax: this.scaleMax, lockDrawingScale: this.lockDrawingScale, scaleMin: this.scaleMin, isLoading: this.isLoading, viewportBoundaryLeft: this.viewportBoundaryLeft, viewportBoundaryRight: this.viewportBoundaryRight, viewportBoundaryTop: this.viewportBoundaryTop, viewportBoundaryBottom: this.viewportBoundaryBottom, wheelEnabled: this.wheelEnabled, theme: this.currentTheme, debugInfo: this.debugInfo, globalContextMenuItems: this.globalContextMenuItems, objectContextMenuItems: this.objectContextMenuItems, onIsEngineReady: event => this.onEngineReady(event), onWorkspacesChange: event => this.handleWorkspacesChange(event), onActiveWorkspaceChange: event => this.handleActiveWorkspaceChange(event), onObjectsChange: event => this.handleObjectsChange(event), onObjectsAdded: event => this.handleObjectsAdded(event), onObjectsRemoved: event => this.handleObjectsRemoved(event), onObjectsUpdated: event => this.handleObjectsUpdated(event), onUndoStateChange: event => this.handleUndoStateChange(event), onObjectsInViewportChange: event => this.handleObjectsInViewportChange(event), onViewportChange: event => this.handleViewportChange(event), onAwarenessChange: event => this.handleAwarenessChange(event) }), h("kritzel-controls", { key: '
|
|
2556
|
+
}, workspace: this.activeWorkspace, activeWorkspaceId: this.activeWorkspaceId, editorId: this.editorId, syncConfig: this.syncConfig, user: this.user, scaleMax: this.scaleMax, lockDrawingScale: this.lockDrawingScale, scaleMin: this.scaleMin, isLoading: this.isLoading, viewportBoundaryLeft: this.viewportBoundaryLeft, viewportBoundaryRight: this.viewportBoundaryRight, viewportBoundaryTop: this.viewportBoundaryTop, viewportBoundaryBottom: this.viewportBoundaryBottom, wheelEnabled: this.wheelEnabled, theme: this.currentTheme, debugInfo: this.debugInfo, globalContextMenuItems: this.globalContextMenuItems, objectContextMenuItems: this.objectContextMenuItems, onIsEngineReady: event => this.onEngineReady(event), onWorkspacesChange: event => this.handleWorkspacesChange(event), onActiveWorkspaceChange: event => this.handleActiveWorkspaceChange(event), onObjectsChange: event => this.handleObjectsChange(event), onObjectsAdded: event => this.handleObjectsAdded(event), onObjectsRemoved: event => this.handleObjectsRemoved(event), onObjectsUpdated: event => this.handleObjectsUpdated(event), onUndoStateChange: event => this.handleUndoStateChange(event), onObjectsInViewportChange: event => this.handleObjectsInViewportChange(event), onViewportChange: event => this.handleViewportChange(event), onAwarenessChange: event => this.handleAwarenessChange(event) }), h("kritzel-controls", { key: 'e27061ec3d8b9b612cb6da6d4a7467361058f2ba', class: { 'keyboard-open': this.isVirtualKeyboardOpen }, style: { display: this.isControlsVisible ? 'flex' : 'none' }, ref: el => {
|
|
2557
2557
|
if (el) {
|
|
2558
2558
|
this.controlsRef = el;
|
|
2559
2559
|
}
|
|
2560
|
-
}, controls: this.controls, isUtilityPanelVisible: this.isUtilityPanelVisible, undoState: this.undoState ?? undefined, theme: this.currentTheme, onIsControlsReady: () => (this.isControlsReady = true) }), h("div", { key: '
|
|
2560
|
+
}, controls: this.controls, isUtilityPanelVisible: this.isUtilityPanelVisible, undoState: this.undoState ?? undefined, theme: this.currentTheme, onIsControlsReady: () => (this.isControlsReady = true) }), h("div", { key: '620b5c46a8a9bc33be69d91cb8e147358b7be117', class: "top-right-buttons" }, h("kritzel-settings", { key: 'ef39941ab724501ffdb8b5425b7882494e8b35ba', ref: el => {
|
|
2561
2561
|
if (el) {
|
|
2562
2562
|
this.settingsRef = el;
|
|
2563
2563
|
}
|
|
2564
|
-
}, shortcuts: this.shortcuts, editorId: this.editorId, onSettingsChange: event => this.handleSettingsChange(event) }), h("kritzel-export", { key: '
|
|
2564
|
+
}, shortcuts: this.shortcuts, editorId: this.editorId, onSettingsChange: event => this.handleSettingsChange(event) }), h("kritzel-export", { key: '643c6d287068705a523e602e207a2bc562c58cd2', ref: el => {
|
|
2565
2565
|
if (el) {
|
|
2566
2566
|
this.exportRef = el;
|
|
2567
2567
|
}
|
|
2568
|
-
}, workspaceName: this.activeWorkspace?.name || 'workspace', onExportPng: () => this.engineRef.exportViewportAsPng(), onExportSvg: () => this.engineRef.exportViewportAsSvg(), onExportJson: event => this.engineRef.downloadAsJson(event.detail) }), h("kritzel-active-users", { key: '
|
|
2568
|
+
}, workspaceName: this.activeWorkspace?.name || 'workspace', onExportPng: () => this.engineRef.exportViewportAsPng(), onExportSvg: () => this.engineRef.exportViewportAsSvg(), onExportJson: event => this.engineRef.downloadAsJson(event.detail) }), h("kritzel-active-users", { key: '6cfdae4fe8f4c902a3b37d1d27c1d80d2780d8fd', users: this.activeUsers }), shouldShowCurrentUser && h("kritzel-current-user", { key: '145ff28fe73069f3e47f5bde42741ccb0d33d635', user: this.user }), shouldShowLoginButton && h("kritzel-button", { key: 'f30dc2bd31b8862cba7124090eb7e5a9a0621371', onButtonClick: () => this.loginDialogRef?.open() }, "Sign in"), h("kritzel-more-menu", { key: 'd23ed0f6b4cc993e37d1838f277a95fc3ae0fe36', items: this.moreMenuItems }), h("kritzel-share-dialog", { key: '9b9eacdf41a5546abcaba336e0dca1185465ecb4', ref: el => {
|
|
2569
2569
|
if (el) {
|
|
2570
2570
|
this.shareDialogRef = el;
|
|
2571
2571
|
}
|
|
2572
|
-
}, isPublic: this.currentIsPublic, workspaceId: this.activeWorkspace?.id, onToggleIsPublic: this.handleToggleIsPublic }), this.loginConfig && (h("kritzel-login-dialog", { key: '
|
|
2572
|
+
}, isPublic: this.currentIsPublic, workspaceId: this.activeWorkspace?.id, onToggleIsPublic: this.handleToggleIsPublic }), this.loginConfig && (h("kritzel-login-dialog", { key: 'dd97a5b6e94433f550b016713d77d98e89bc23c3', ref: el => {
|
|
2573
2573
|
if (el) {
|
|
2574
2574
|
this.loginDialogRef = el;
|
|
2575
2575
|
}
|
|
@@ -24374,8 +24374,8 @@ class KritzelSvgExportHelper {
|
|
|
24374
24374
|
.join('\n ');
|
|
24375
24375
|
const xmlDecl = includeXmlDeclaration ? '<?xml version="1.0" encoding="UTF-8"?>\n' : '';
|
|
24376
24376
|
const defsContent = defs.length > 0 ? `\n <defs>\n ${defs.join('\n ')}\n </defs>` : '';
|
|
24377
|
-
return `${xmlDecl}<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewBoxX} ${viewBoxY} ${viewBoxWidth} ${viewBoxHeight}" width="${viewBoxWidth}" height="${viewBoxHeight}">${defsContent}
|
|
24378
|
-
${elements}
|
|
24377
|
+
return `${xmlDecl}<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewBoxX} ${viewBoxY} ${viewBoxWidth} ${viewBoxHeight}" width="${viewBoxWidth}" height="${viewBoxHeight}">${defsContent}
|
|
24378
|
+
${elements}
|
|
24379
24379
|
</svg>`;
|
|
24380
24380
|
}
|
|
24381
24381
|
/**
|
|
@@ -24431,8 +24431,8 @@ class KritzelSvgExportHelper {
|
|
|
24431
24431
|
const orient = end === 'start' ? 'auto-start-reverse' : 'auto';
|
|
24432
24432
|
const refX = 0;
|
|
24433
24433
|
const refY = size / 2;
|
|
24434
|
-
return `<marker id="${markerId}" markerWidth="${size}" markerHeight="${size}" refX="${refX}" refY="${refY}" orient="${orient}" markerUnits="userSpaceOnUse">
|
|
24435
|
-
<path d="${path}" fill="${fill}" transform="scale(${size / 10})"/>
|
|
24434
|
+
return `<marker id="${markerId}" markerWidth="${size}" markerHeight="${size}" refX="${refX}" refY="${refY}" orient="${orient}" markerUnits="userSpaceOnUse">
|
|
24435
|
+
<path d="${path}" fill="${fill}" transform="scale(${size / 10})"/>
|
|
24436
24436
|
</marker>`;
|
|
24437
24437
|
}
|
|
24438
24438
|
/**
|
|
@@ -24474,10 +24474,10 @@ class KritzelSvgExportHelper {
|
|
|
24474
24474
|
const stroke = KritzelColorHelper.resolveThemeColor(path.stroke, theme);
|
|
24475
24475
|
const opacity = path.opacity !== 1 ? ` opacity="${path.opacity}"` : '';
|
|
24476
24476
|
// Path needs to be wrapped in a g with translation since path.d uses local coordinates
|
|
24477
|
-
return `<g transform="${transform}"${opacity}>
|
|
24478
|
-
<svg viewBox="${path.viewBox}" width="${path.totalWidth / path.scale}" height="${path.totalHeight / path.scale}" overflow="visible">
|
|
24479
|
-
<path d="${path.d}" fill="${fill || 'none'}" stroke="${stroke || 'none'}"${path.strokeWidth ? ` stroke-width="${path.strokeWidth}"` : ''}/>
|
|
24480
|
-
</svg>
|
|
24477
|
+
return `<g transform="${transform}"${opacity}>
|
|
24478
|
+
<svg viewBox="${path.viewBox}" width="${path.totalWidth / path.scale}" height="${path.totalHeight / path.scale}" overflow="visible">
|
|
24479
|
+
<path d="${path.d}" fill="${fill || 'none'}" stroke="${stroke || 'none'}"${path.strokeWidth ? ` stroke-width="${path.strokeWidth}"` : ''}/>
|
|
24480
|
+
</svg>
|
|
24481
24481
|
</g>`;
|
|
24482
24482
|
}
|
|
24483
24483
|
/**
|
|
@@ -24492,10 +24492,10 @@ class KritzelSvgExportHelper {
|
|
|
24492
24492
|
const opacity = line.opacity !== 1 ? ` opacity="${line.opacity}"` : '';
|
|
24493
24493
|
const markerStart = line.hasStartArrow ? ` marker-start="url(#${line.startMarkerId})"` : '';
|
|
24494
24494
|
const markerEnd = line.hasEndArrow ? ` marker-end="url(#${line.endMarkerId})"` : '';
|
|
24495
|
-
return `<g transform="${transform}"${opacity}>
|
|
24496
|
-
<svg viewBox="${line.viewBox}" width="${line.totalWidth / line.scale}" height="${line.totalHeight / line.scale}" overflow="visible">
|
|
24497
|
-
<path d="${line.d}" fill="none" stroke="${stroke}" stroke-width="${line.strokeWidth}" stroke-linecap="round"${markerStart}${markerEnd}/>
|
|
24498
|
-
</svg>
|
|
24495
|
+
return `<g transform="${transform}"${opacity}>
|
|
24496
|
+
<svg viewBox="${line.viewBox}" width="${line.totalWidth / line.scale}" height="${line.totalHeight / line.scale}" overflow="visible">
|
|
24497
|
+
<path d="${line.d}" fill="none" stroke="${stroke}" stroke-width="${line.strokeWidth}" stroke-linecap="round"${markerStart}${markerEnd}/>
|
|
24498
|
+
</svg>
|
|
24499
24499
|
</g>`;
|
|
24500
24500
|
}
|
|
24501
24501
|
/**
|
|
@@ -24518,18 +24518,18 @@ class KritzelSvgExportHelper {
|
|
|
24518
24518
|
const textHtml = this.prosemirrorToHtml(shape.content, shape, theme);
|
|
24519
24519
|
if (textHtml) {
|
|
24520
24520
|
const fontColor = KritzelColorHelper.resolveThemeColor(shape.fontColor, theme);
|
|
24521
|
-
textContent = `
|
|
24522
|
-
<foreignObject x="${shape.x}" y="${shape.y}" width="${shape.width}" height="${shape.height}">
|
|
24523
|
-
<div xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-family: ${shape.fontFamily}; font-size: ${shape.fontSize}px; color: ${fontColor}; overflow: hidden;">
|
|
24524
|
-
${textHtml}
|
|
24525
|
-
</div>
|
|
24521
|
+
textContent = `
|
|
24522
|
+
<foreignObject x="${shape.x}" y="${shape.y}" width="${shape.width}" height="${shape.height}">
|
|
24523
|
+
<div xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-family: ${shape.fontFamily}; font-size: ${shape.fontSize}px; color: ${fontColor}; overflow: hidden;">
|
|
24524
|
+
${textHtml}
|
|
24525
|
+
</div>
|
|
24526
24526
|
</foreignObject>`;
|
|
24527
24527
|
}
|
|
24528
24528
|
}
|
|
24529
|
-
return `<g transform="${transform}"${opacity}>
|
|
24530
|
-
<svg viewBox="${shape.viewBox}" width="${shape.totalWidth / shape.scale}" height="${shape.totalHeight / shape.scale}" overflow="visible" preserveAspectRatio="none">
|
|
24531
|
-
<path d="${pathD}" fill="${fill || 'transparent'}" stroke="${stroke}" stroke-width="${shape.strokeWidth}"/>${textContent}
|
|
24532
|
-
</svg>
|
|
24529
|
+
return `<g transform="${transform}"${opacity}>
|
|
24530
|
+
<svg viewBox="${shape.viewBox}" width="${shape.totalWidth / shape.scale}" height="${shape.totalHeight / shape.scale}" overflow="visible" preserveAspectRatio="none">
|
|
24531
|
+
<path d="${pathD}" fill="${fill || 'transparent'}" stroke="${stroke}" stroke-width="${shape.strokeWidth}"/>${textContent}
|
|
24532
|
+
</svg>
|
|
24533
24533
|
</g>`;
|
|
24534
24534
|
}
|
|
24535
24535
|
/**
|
|
@@ -24548,12 +24548,12 @@ class KritzelSvgExportHelper {
|
|
|
24548
24548
|
// Calculate dimensions accounting for scale
|
|
24549
24549
|
const width = text.totalWidth / text.scale;
|
|
24550
24550
|
const height = text.totalHeight / text.scale;
|
|
24551
|
-
return `<g transform="${transform}"${opacity}>
|
|
24552
|
-
<foreignObject x="0" y="0" width="${width}" height="${height}">
|
|
24553
|
-
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: ${text.fontFamily}; font-size: ${text.fontSize}pt; color: ${fontColor}; background-color: ${bgColor || 'transparent'}; transform: scale(${text.scaleFactor}); transform-origin: top left; white-space: pre-wrap; word-wrap: break-word;">
|
|
24554
|
-
${htmlContent}
|
|
24555
|
-
</div>
|
|
24556
|
-
</foreignObject>
|
|
24551
|
+
return `<g transform="${transform}"${opacity}>
|
|
24552
|
+
<foreignObject x="0" y="0" width="${width}" height="${height}">
|
|
24553
|
+
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: ${text.fontFamily}; font-size: ${text.fontSize}pt; color: ${fontColor}; background-color: ${bgColor || 'transparent'}; transform: scale(${text.scaleFactor}); transform-origin: top left; white-space: pre-wrap; word-wrap: break-word;">
|
|
24554
|
+
${htmlContent}
|
|
24555
|
+
</div>
|
|
24556
|
+
</foreignObject>
|
|
24557
24557
|
</g>`;
|
|
24558
24558
|
}
|
|
24559
24559
|
/**
|
|
@@ -24567,8 +24567,8 @@ class KritzelSvgExportHelper {
|
|
|
24567
24567
|
// Calculate dimensions
|
|
24568
24568
|
const width = image.totalWidth / image.scale;
|
|
24569
24569
|
const height = image.totalHeight / image.scale;
|
|
24570
|
-
return `<g transform="${transform}"${opacity}>
|
|
24571
|
-
<image href="${image.src}" x="0" y="0" width="${width}" height="${height}" preserveAspectRatio="xMidYMid meet"/>
|
|
24570
|
+
return `<g transform="${transform}"${opacity}>
|
|
24571
|
+
<image href="${image.src}" x="0" y="0" width="${width}" height="${height}" preserveAspectRatio="xMidYMid meet"/>
|
|
24572
24572
|
</g>`;
|
|
24573
24573
|
}
|
|
24574
24574
|
/**
|
|
@@ -24587,8 +24587,8 @@ class KritzelSvgExportHelper {
|
|
|
24587
24587
|
return '';
|
|
24588
24588
|
}
|
|
24589
24589
|
const opacity = group.opacity !== 1 ? ` opacity="${group.opacity}"` : '';
|
|
24590
|
-
return `<g${opacity}>
|
|
24591
|
-
${children}
|
|
24590
|
+
return `<g${opacity}>
|
|
24591
|
+
${children}
|
|
24592
24592
|
</g>`;
|
|
24593
24593
|
}
|
|
24594
24594
|
/**
|
|
@@ -27563,7 +27563,7 @@ const KritzelExport = class {
|
|
|
27563
27563
|
return (h("div", { class: "export-tab-content" }, h("kritzel-input", { label: "Filename", value: this.exportFilename, placeholder: "Enter filename", suffix: ".json", onValueChange: this.handleFilenameChange })));
|
|
27564
27564
|
}
|
|
27565
27565
|
render() {
|
|
27566
|
-
return (h(Host, { key: '
|
|
27566
|
+
return (h(Host, { key: 'efeea781325e672e3f4c1579a50da1c928dc88b5' }, h("kritzel-dialog", { key: 'c5e60559a3022eec7d13a73b5ec858edb8e7ce1d', isOpen: this.isDialogOpen, dialogTitle: "Export", closable: true, onDialogClose: this.closeDialog }, h("div", { key: '1508001914a22cbb944502be7d33a04128548842', class: "export-content" }, h("kritzel-pill-tabs", { key: '9b0a21140fef986344d98b688729017cb66da493', tabs: this.tabs, value: this.activeTab, onValueChange: this.handleTabChange }), this.activeTab === 'viewport' && this.renderViewportExport(), this.activeTab === 'workspace' && this.renderWorkspaceExport(), h("button", { key: '70021cadab8b2840bbcf66afcd38c28c419facfe', class: "export-primary-button", onClick: this.handleExport }, "Export")))));
|
|
27567
27567
|
}
|
|
27568
27568
|
};
|
|
27569
27569
|
KritzelExport.style = kritzelExportCss();
|
|
@@ -27578,7 +27578,7 @@ const KritzelFont = class {
|
|
|
27578
27578
|
size = 24;
|
|
27579
27579
|
color = '#000000';
|
|
27580
27580
|
render() {
|
|
27581
|
-
return (h(Host, { key: '
|
|
27581
|
+
return (h(Host, { key: 'bcff1827a61df6896e49fe1df4819bf27b3610ef' }, h("div", { key: '53a03532afde5fca6e8ec1cc78e6cd41ab1444cd', class: "font-preview", style: {
|
|
27582
27582
|
fontFamily: this.fontFamily,
|
|
27583
27583
|
fontSize: `${this.size}px`,
|
|
27584
27584
|
color: this.color
|
|
@@ -27625,7 +27625,7 @@ const KritzelFontFamily = class {
|
|
|
27625
27625
|
label: option.label,
|
|
27626
27626
|
style: { fontFamily: option.value },
|
|
27627
27627
|
}));
|
|
27628
|
-
return (h(Host, { key: '
|
|
27628
|
+
return (h(Host, { key: '3d942116fc1019f1b2982395a08b14a9b0081040' }, h("kritzel-dropdown", { key: 'a042505de2d9b27c6f77ed929496a3921c3170cd', options: dropdownOptions, value: this.selectedFontFamily, onValueChanged: this.handleDropdownValueChange, selectStyles: { fontFamily: this.selectedFontFamily } })));
|
|
27629
27629
|
}
|
|
27630
27630
|
};
|
|
27631
27631
|
KritzelFontFamily.style = kritzelFontFamilyCss();
|
|
@@ -27653,7 +27653,7 @@ const KritzelFontSize = class {
|
|
|
27653
27653
|
}
|
|
27654
27654
|
render() {
|
|
27655
27655
|
const color = 'var(--kritzel-global-text-primary)';
|
|
27656
|
-
return (h(Host, { key: '
|
|
27656
|
+
return (h(Host, { key: 'c409d73ff06966fd3861a16c7de32d41db85c12a' }, this.sizes.map(size => (h("div", { tabIndex: 0, class: {
|
|
27657
27657
|
'size-container': true,
|
|
27658
27658
|
'selected': this.selectedSize === size,
|
|
27659
27659
|
}, onClick: () => this.handleSizeClick(size), onKeyDown: event => this.handleKeyDown(event, size) }, h("kritzel-font", { fontFamily: this.fontFamily, size: size, color: color }))))));
|
|
@@ -27720,7 +27720,7 @@ const KritzelInput = class {
|
|
|
27720
27720
|
this.valueChange.emit(input.value);
|
|
27721
27721
|
};
|
|
27722
27722
|
render() {
|
|
27723
|
-
return (h(Host, { key: '
|
|
27723
|
+
return (h(Host, { key: 'e482edcbaf7cee8c35effbce0428c2b4dea84bd4' }, h("div", { key: 'a71f5e3eeba5e34470227ea3be4dd6731a94a52e', class: "input-container" }, this.label && h("label", { key: '757a32997f09558412952fe948fa234d1baecb3f', class: "input-label" }, this.label), h("div", { key: 'cfb13fe0041efdd9fe4a7bf2a098ff321b545b79', class: { 'input-wrapper': true, 'has-suffix': !!this.suffix } }, h("input", { key: 'b8bf209f14f15f4ad8eb0cf1be1afb1bfc958f79', type: this.type, class: "text-input", value: this.inputValue, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput }), this.suffix && h("span", { key: 'b5d4444609ad93c10d86978a488252b673979c94', class: "input-suffix" }, this.suffix)))));
|
|
27724
27724
|
}
|
|
27725
27725
|
static get watchers() { return {
|
|
27726
27726
|
"value": [{
|
|
@@ -27802,10 +27802,10 @@ const KritzelLineEndings = class {
|
|
|
27802
27802
|
render() {
|
|
27803
27803
|
const startEnding = this.getStartEnding();
|
|
27804
27804
|
const endEnding = this.getEndEnding();
|
|
27805
|
-
return (h(Host, { key: '
|
|
27805
|
+
return (h(Host, { key: '38bcd0b0e56c0d0fc7fd57346b718054faa0ba06' }, h("div", { key: '5ae52039756334299a86d7301b15f6874d5689ff', class: "endings-section" }, h("div", { key: '8a0dd7792498248203f2db8c346828fe7f57534d', class: "endings-row" }, this.styles.map(type => (h("button", { class: {
|
|
27806
27806
|
'ending-option': true,
|
|
27807
27807
|
'selected': startEnding === type,
|
|
27808
|
-
}, onClick: () => this.handleStartChange(type), title: type === 'none' ? 'No start arrow' : `${type} start arrow` }, this.renderEndingIcon(type, true)))))), h("div", { key: '
|
|
27808
|
+
}, onClick: () => this.handleStartChange(type), title: type === 'none' ? 'No start arrow' : `${type} start arrow` }, this.renderEndingIcon(type, true)))))), h("div", { key: '001c6cc50af45e1461ef15e2c43df4efdd83b48f', class: "endings-section" }, h("div", { key: '96cc57da4bed38aa42207d40a6a21cd39fa18cad', class: "endings-row" }, this.styles.map(type => (h("button", { class: {
|
|
27809
27809
|
'ending-option': true,
|
|
27810
27810
|
'selected': endEnding === type,
|
|
27811
27811
|
}, onClick: () => this.handleEndChange(type), title: type === 'none' ? 'No end arrow' : `${type} end arrow` }, this.renderEndingIcon(type, false))))))));
|
|
@@ -27860,7 +27860,7 @@ const KritzelLoginDialog = class {
|
|
|
27860
27860
|
this.dialogClosed.emit();
|
|
27861
27861
|
};
|
|
27862
27862
|
render() {
|
|
27863
|
-
return (h(Host, { key: '
|
|
27863
|
+
return (h(Host, { key: '8cac83db48fef2531f1669c3f601526b1e5cdefa' }, h("kritzel-dialog", { key: '72e0f2eb8e19f3c1081bfd5e1183aa9ed1bc678a', dialogTitle: this.dialogTitle, isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small" }, h("div", { key: 'bb17bcf6f3486000c9056b3983810e016b0f05a3', class: "login-content" }, this.subtitle && (h("p", { key: 'cef17bc6f5078769b8deed6ec1c615a71fe0c611', class: "login-subtitle" }, this.subtitle)), h("div", { key: '8462ef9a62201cb15f8911432ca188cf49bc8a8d', class: "login-providers" }, this.providers.map(provider => (h("button", { key: provider.name, class: {
|
|
27864
27864
|
'provider-button': true,
|
|
27865
27865
|
'is-loading': this.loadingProvider === provider.name,
|
|
27866
27866
|
'is-disabled': this.loadingProvider !== null && this.loadingProvider !== provider.name,
|
|
@@ -27966,15 +27966,15 @@ const KritzelMasterDetail = class {
|
|
|
27966
27966
|
const selectedItem = this.items.find(item => item.id === this.selectedItemId);
|
|
27967
27967
|
const panelId = 'master-detail-panel';
|
|
27968
27968
|
const selectedTabId = selectedItem ? `tab-${selectedItem.id}` : undefined;
|
|
27969
|
-
return (h(Host, { key: '
|
|
27969
|
+
return (h(Host, { key: '7f1fd360f657fddcdb6ce2eea17e4e2daf426eb2' }, h("div", { key: '02f7f6dd141d057dbf395dd836f7841a649fa16d', class: {
|
|
27970
27970
|
'master-detail-container': true,
|
|
27971
27971
|
'is-mobile-detail-visible': this.showMobileDetail,
|
|
27972
|
-
} }, h("nav", { key: '
|
|
27972
|
+
} }, h("nav", { key: '397758627252c5e9573a61c457d4481df6d9b4f2', class: "master-menu", role: "tablist", "aria-orientation": "vertical", "aria-label": "Settings categories" }, this.items.map((item, index) => (h("button", { key: item.id, id: `tab-${item.id}`, ref: el => this.setTabRef(el, index), class: {
|
|
27973
27973
|
'menu-item': true,
|
|
27974
27974
|
'is-selected': item.id === this.selectedItemId,
|
|
27975
27975
|
'is-disabled': !!item.disabled,
|
|
27976
27976
|
'is-focused': index === this.focusedIndex,
|
|
27977
|
-
}, role: "tab", "aria-selected": item.id === this.selectedItemId ? 'true' : 'false', "aria-controls": panelId, "aria-disabled": item.disabled ? 'true' : undefined, tabIndex: this.getTabIndex(item, index), disabled: item.disabled, onClick: () => this.handleItemClick(item), onKeyDown: e => this.handleKeyDown(e, item, index), onFocus: () => this.handleFocus(index), onBlur: this.handleBlur }, item.icon && (h("kritzel-icon", { name: item.icon, size: 20, class: "menu-item-icon" })), h("span", { class: "menu-item-label" }, item.label), h("span", { class: "menu-item-chevron", "aria-hidden": "true" }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "m9 18 6-6-6-6" }))))))), h("div", { key: '
|
|
27977
|
+
}, role: "tab", "aria-selected": item.id === this.selectedItemId ? 'true' : 'false', "aria-controls": panelId, "aria-disabled": item.disabled ? 'true' : undefined, tabIndex: this.getTabIndex(item, index), disabled: item.disabled, onClick: () => this.handleItemClick(item), onKeyDown: e => this.handleKeyDown(e, item, index), onFocus: () => this.handleFocus(index), onBlur: this.handleBlur }, item.icon && (h("kritzel-icon", { name: item.icon, size: 20, class: "menu-item-icon" })), h("span", { class: "menu-item-label" }, item.label), h("span", { class: "menu-item-chevron", "aria-hidden": "true" }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "m9 18 6-6-6-6" }))))))), h("div", { key: '65cc4601a39cb7780c52cc86075efd0b4a24646a', id: panelId, class: "detail-panel", role: "tabpanel", "aria-labelledby": selectedTabId }, h("button", { key: '6b6ae9ac689c757d71e2a42ecaf8aaceb3785154', class: "mobile-back-button", onClick: this.handleBackClick, "aria-label": "Back to menu" }, h("kritzel-icon", { key: '28d9b2f68030587d44505f691e8fed57d968e631', name: "chevron-left", size: 20, class: "mobile-back-icon" }), "Back"), h("slot", { key: '2a35ca82717713808ca12227ecca671b848d1f02' })))));
|
|
27978
27978
|
}
|
|
27979
27979
|
static get watchers() { return {
|
|
27980
27980
|
"selectedItemId": [{
|
|
@@ -28047,7 +28047,7 @@ const KritzelMenu = class {
|
|
|
28047
28047
|
this.itemCloseChildMenu.emit(event.detail);
|
|
28048
28048
|
};
|
|
28049
28049
|
render() {
|
|
28050
|
-
return (h(Host, { key: '
|
|
28050
|
+
return (h(Host, { key: 'a81ea8a1fe2dc6cb8d9f395cafbcadec3eb4aa45', tabIndex: 0, onClick: e => e.stopPropagation() }, this.openChildMenuItem && h("div", { key: 'bb27d7a923431d79567e79283e505ea4ae02ef36', class: "has-open-child-overlay", onClick: this.onOverlayClick }), this.items.map(item => (h("kritzel-menu-item", { key: item.id, item: item, parent: this.parent, style: { pointerEvents: this.editingMenuItem && !item.isEditing ? 'none' : 'auto' }, onItemSelect: this.handleItemSelect, onItemSave: this.handleSave, onItemCancel: this.handleCancel, onItemToggleChildMenu: this.handleToggleChildMenu, onItemCloseChildMenu: this.handleCloseChildMenu })))));
|
|
28051
28051
|
}
|
|
28052
28052
|
};
|
|
28053
28053
|
KritzelMenu.style = kritzelMenuCss();
|
|
@@ -28152,12 +28152,12 @@ const KritzelMenuItem = class {
|
|
|
28152
28152
|
];
|
|
28153
28153
|
}
|
|
28154
28154
|
render() {
|
|
28155
|
-
return (h(Host, { key: '
|
|
28155
|
+
return (h(Host, { key: '6fd639ff533e0b2c39febd369b4ba034661ec708', tabIndex: this.item.isDisabled ? -1 : 0, class: {
|
|
28156
28156
|
'selected': this.item.isSelected,
|
|
28157
28157
|
'editing': this.item.isEditing,
|
|
28158
28158
|
'disabled': this.item.isDisabled,
|
|
28159
28159
|
'child-open': this.item.isChildMenuOpen,
|
|
28160
|
-
}, onClick: this.handleItemSelect }, h("div", { key: '
|
|
28160
|
+
}, onClick: this.handleItemSelect }, h("div", { key: 'd7486e9f1614be1801268fa97947aaab4c12460d', class: "menu-item-overlay" }), this.item.isEditing ? this.renderEditMode() : this.renderViewMode()));
|
|
28161
28161
|
}
|
|
28162
28162
|
static get watchers() { return {
|
|
28163
28163
|
"item": [{
|
|
@@ -28224,7 +28224,7 @@ const KritzelMoreMenu = class {
|
|
|
28224
28224
|
this.closeMenu();
|
|
28225
28225
|
};
|
|
28226
28226
|
render() {
|
|
28227
|
-
return (h(Host, { key: '
|
|
28227
|
+
return (h(Host, { key: 'a41ae459f61a115232efb30d60d3f1ec0452f2bc', class: { mobile: this.isTouchDevice } }, h("button", { key: '6bc1f0000690723868626dec580f9c92761c3ad0', class: "more-menu-button", onClick: this.toggleMenu }, h("kritzel-icon", { key: '603f069ecb0b8a9a57dc090d92d1bb26cf29e033', name: this.icon, size: this.iconSize })), h("kritzel-portal", { key: '754259a7a7d265de462ac05468326396867ae3f3', anchor: this.menuAnchor, offsetY: this.offsetY, onClose: this.closeMenu }, h("kritzel-menu", { key: 'e95f63b8038468a67c159f6ba687279c79c10699', items: this.visibleItems, onItemSelect: this.handleMenuItemSelect }))));
|
|
28228
28228
|
}
|
|
28229
28229
|
};
|
|
28230
28230
|
KritzelMoreMenu.style = kritzelMoreMenuCss();
|
|
@@ -28322,7 +28322,7 @@ const KritzelNumericInput = class {
|
|
|
28322
28322
|
this.valueChange.emit(newValue);
|
|
28323
28323
|
};
|
|
28324
28324
|
render() {
|
|
28325
|
-
return (h(Host, { key: '
|
|
28325
|
+
return (h(Host, { key: 'b27f16d562bc6c61b0a6a289e622e7e35159a782' }, h("div", { key: '7f5f2295a60b46dc05c003b10ff74e9da6822406', class: "input-container" }, this.label && h("label", { key: 'a5a10af06139312ef0b038ed8c3bb533afa6235c', class: "input-label" }, this.label), h("div", { key: 'b15b4a2d84ad1185a67cd748176c7585a0789f09', class: "input-wrapper" }, h("input", { key: '8da76a405713461ef4eb2f316af6b737493371dd', type: "number", class: "numeric-input", title: "", min: this.min === Number.MIN_SAFE_INTEGER ? undefined : this.min, max: this.max === Number.MAX_SAFE_INTEGER ? undefined : this.max, step: this.step, value: this.inputValue, placeholder: this.placeholder, onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onInvalid: this.handleInvalid }), h("div", { key: '9813f61998a8902d9a1bc4100dbab744e91e98f8', class: "spinner-buttons" }, h("button", { key: 'ad688c3332b0dbdd6327c66aed778d3e0d036aab', type: "button", class: "spinner-button spinner-up", onClick: this.handleIncrement, tabIndex: -1, "aria-label": "Increase value" }, h("svg", { key: 'a21ec61f331a7b672d2ce56cd2d1b30e7f0b22c6', viewBox: "0 0 10 6", class: "spinner-icon" }, h("path", { key: 'f36b4f68ea3733851bebce1e9f45a1f36e62acdc', d: "M1 5L5 1L9 5", stroke: "currentColor", "stroke-width": "1.5", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("button", { key: '484373581f26b6cf71194bf545d67997ef7db79f', type: "button", class: "spinner-button spinner-down", onClick: this.handleDecrement, tabIndex: -1, "aria-label": "Decrease value" }, h("svg", { key: '5b9199c270ad270729b9f5c1c9246824e1d49cb8', viewBox: "0 0 10 6", class: "spinner-icon" }, h("path", { key: 'd96e78c311bbc941edfafcb02017da7c367aaf2e', d: "M1 1L5 5L9 1", stroke: "currentColor", "stroke-width": "1.5", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))));
|
|
28326
28326
|
}
|
|
28327
28327
|
static get watchers() { return {
|
|
28328
28328
|
"value": [{
|
|
@@ -28332,7 +28332,7 @@ const KritzelNumericInput = class {
|
|
|
28332
28332
|
};
|
|
28333
28333
|
KritzelNumericInput.style = kritzelNumericInputCss();
|
|
28334
28334
|
|
|
28335
|
-
const kritzelOpacitySliderCss = () => `:host{display:flex;flex-direction:column;padding:0;box-sizing:border-box}.opacity-container{display:flex;align-items:center;width:232px}.slider-wrapper{flex:1;display:flex;align-items:center}.opacity-slider{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;background:linear-gradient(
|
|
28335
|
+
const kritzelOpacitySliderCss = () => `:host{display:flex;flex-direction:column;padding:0;box-sizing:border-box}.opacity-container{display:flex;align-items:center;width:232px}.slider-wrapper{flex:1;display:flex;align-items:center}.opacity-slider{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;background:linear-gradient( to right, var(--kritzel-opacity-slider-active-color, #007AFF) 0%, var(--kritzel-opacity-slider-active-color, #007AFF) var(--slider-progress, 100%), var(--kritzel-opacity-slider-track-color, #e0e0e0) var(--slider-progress, 100%), var(--kritzel-opacity-slider-track-color, #e0e0e0) 100% );outline:none;cursor:var(--kritzel-global-pointer-cursor, pointer)}.opacity-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:var(--kritzel-opacity-slider-thumb-color, #ffffff);border:2px solid var(--kritzel-opacity-slider-thumb-border-color, #007AFF);cursor:var(--kritzel-global-pointer-cursor, pointer);box-shadow:0 1px 3px rgba(0, 0, 0, 0.2);transition:transform 0.1s ease}.opacity-slider::-webkit-slider-thumb:hover{transform:scale(1.1)}.opacity-slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--kritzel-opacity-slider-thumb-color, #ffffff);border:2px solid var(--kritzel-opacity-slider-thumb-border-color, #007AFF);cursor:var(--kritzel-global-pointer-cursor, pointer);box-shadow:0 1px 3px rgba(0, 0, 0, 0.2);transition:transform 0.1s ease}.opacity-slider::-moz-range-thumb:hover{transform:scale(1.1)}.opacity-slider::-moz-range-track{height:6px;border-radius:3px;background:transparent}.opacity-slider:focus{outline:none}.opacity-slider:focus::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3))}.opacity-slider:focus::-moz-range-thumb{box-shadow:0 0 0 2px var(--kritzel-global-focus-ring-color, rgba(0, 122, 255, 0.3))}`;
|
|
28336
28336
|
|
|
28337
28337
|
const KritzelOpacitySlider = class {
|
|
28338
28338
|
constructor(hostRef) {
|
|
@@ -28361,7 +28361,7 @@ const KritzelOpacitySlider = class {
|
|
|
28361
28361
|
}
|
|
28362
28362
|
render() {
|
|
28363
28363
|
const percentage = this.getPercentage();
|
|
28364
|
-
return (h(Host, { key: '
|
|
28364
|
+
return (h(Host, { key: 'f6460d2d37ca76c69c62597b32f7567c8a2e1b77' }, h("div", { key: '09cb87f8e7e09639b4b794f9c9b30da024a4023f', class: "opacity-container" }, h("div", { key: '783cd792f0511945f685483a181b621f3c2551f8', class: "slider-wrapper" }, h("input", { key: 'd05be4ab1a2a2b19411b12358b7846bebac83a83', type: "range", class: "opacity-slider", min: this.min, max: this.max, step: this.step, value: this.value, onInput: (e) => this.handleInput(e), style: {
|
|
28365
28365
|
'--slider-progress': `${percentage}%`,
|
|
28366
28366
|
} })))));
|
|
28367
28367
|
}
|
|
@@ -28425,7 +28425,7 @@ const KritzelPillTabs = class {
|
|
|
28425
28425
|
buttons?.[newIndex]?.focus();
|
|
28426
28426
|
}
|
|
28427
28427
|
render() {
|
|
28428
|
-
return (h(Host, { key: '
|
|
28428
|
+
return (h(Host, { key: 'cd6993107010e578b91af23101da27bd2ef943cd' }, h("div", { key: '509c023b5bf91de1f463c8e080b83216a94d7d64', class: "pill-tabs-container", role: "tablist" }, this.tabs.map((tab, index) => (h("button", { key: tab.id, class: {
|
|
28429
28429
|
'pill-tab': true,
|
|
28430
28430
|
'selected': this.value === tab.id,
|
|
28431
28431
|
}, 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)))))));
|
|
@@ -28697,7 +28697,7 @@ const KritzelPortal = class {
|
|
|
28697
28697
|
this.portal.style.visibility = 'visible';
|
|
28698
28698
|
}
|
|
28699
28699
|
render() {
|
|
28700
|
-
return (h(Host, { key: '
|
|
28700
|
+
return (h(Host, { key: '6acf9d402aa0ee151d93b912fc2b9d46cfe88d07', style: { display: this.anchor ? 'block' : 'none' } }, h("slot", { key: 'dbeff1735d422e818179346f5880555fbadddba9' })));
|
|
28701
28701
|
}
|
|
28702
28702
|
static get watchers() { return {
|
|
28703
28703
|
"anchor": [{
|
|
@@ -28711,7 +28711,7 @@ const KritzelPortal = class {
|
|
|
28711
28711
|
* This file is auto-generated by the version bump scripts.
|
|
28712
28712
|
* Do not modify manually.
|
|
28713
28713
|
*/
|
|
28714
|
-
const KRITZEL_VERSION = '0.1.
|
|
28714
|
+
const KRITZEL_VERSION = '0.1.86';
|
|
28715
28715
|
|
|
28716
28716
|
const kritzelSettingsCss = () => `:host{display:contents}kritzel-dialog{--kritzel-dialog-body-padding:0;--kritzel-dialog-width-large:800px;--kritzel-dialog-height-large:500px}.footer-button{padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px}.cancel-button{border:1px solid #ebebeb;background:#fff;color:inherit}.cancel-button:hover{background:#f5f5f5}.settings-content{padding:0}.settings-content h3{margin:0 0 16px 0;font-size:18px;font-weight:600;color:var(--kritzel-settings-content-heading-color, #333333)}.settings-content p{margin:0;font-size:14px;color:var(--kritzel-settings-content-text-color, #666666);line-height:1.5}.settings-group{display:flex;flex-direction:column;gap:24px}.settings-item{display:flex;flex-direction:column;gap:8px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.settings-label{font-size:14px;font-weight:600;color:var(--kritzel-settings-label-color, #333333);margin:0 0 4px 0}.settings-description{font-size:12px;color:var(--kritzel-settings-description-color, #888888);margin:0;line-height:1.4}.shortcuts-list{display:flex;flex-direction:column;gap:24px}.shortcuts-category{display:flex;flex-direction:column;gap:8px}.shortcuts-category-title{font-size:14px;font-weight:600;color:var(--kritzel-settings-label-color, #333333);margin:0 0 4px 0}.shortcuts-group{display:flex;flex-direction:column;gap:4px}.shortcut-item{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-radius:4px;background:var(--kritzel-settings-shortcut-item-bg, rgba(0, 0, 0, 0.02))}.shortcut-label{font-size:14px;color:var(--kritzel-settings-content-text-color, #666666)}.shortcut-key{font-family:monospace;font-size:12px;padding:2px 8px;border-radius:4px;background:var(--kritzel-settings-shortcut-key-bg, #f0f0f0);color:var(--kritzel-settings-shortcut-key-color, #333333);border:1px solid var(--kritzel-settings-shortcut-key-border, #ddd)}`;
|
|
28717
28717
|
|
|
@@ -28906,7 +28906,7 @@ const KritzelSettings = class {
|
|
|
28906
28906
|
}
|
|
28907
28907
|
}
|
|
28908
28908
|
render() {
|
|
28909
|
-
return (h(Host, { key: '
|
|
28909
|
+
return (h(Host, { key: 'b041beb9f4e65e527e7a1f951727dbbe253d4855' }, h("kritzel-dialog", { key: '48b6dedb4b3e37ea0f45b12290b4e8fe1beb2031', isOpen: this.isDialogOpen, dialogTitle: "Settings", size: "large", onDialogClose: this.closeDialog }, h("kritzel-master-detail", { key: 'ea86b78f00e1fd36e4f7ac0718b32c94cbfa47b0', items: SETTINGS_CATEGORIES, selectedItemId: this.selectedCategoryId, onItemSelect: this.handleCategorySelect }, this.renderCategoryContent()))));
|
|
28910
28910
|
}
|
|
28911
28911
|
};
|
|
28912
28912
|
KritzelSettings.style = kritzelSettingsCss();
|
|
@@ -28934,10 +28934,10 @@ const KritzelShapeFill = class {
|
|
|
28934
28934
|
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" })));
|
|
28935
28935
|
}
|
|
28936
28936
|
render() {
|
|
28937
|
-
return (h(Host, { key: '
|
|
28937
|
+
return (h(Host, { key: '5f915acf7a98ac585f5aba494981cbbb38252c93' }, h("div", { key: 'e8a7fd9a1611d5cace9fbf73c1421b211a8b7d89', class: "fill-row" }, h("button", { key: 'cbd388e362c94e36220e93f55fd0140a774e0bd7', class: {
|
|
28938
28938
|
'fill-option': true,
|
|
28939
28939
|
'selected': this.value === 'transparent',
|
|
28940
|
-
}, onClick: () => this.handleFillChange('transparent'), title: "Transparent background" }, this.renderFillIcon('transparent')), h("button", { key: '
|
|
28940
|
+
}, onClick: () => this.handleFillChange('transparent'), title: "Transparent background" }, this.renderFillIcon('transparent')), h("button", { key: '532eec1936f973eb2fb44c15839400e53ac4f4f7', class: {
|
|
28941
28941
|
'fill-option': true,
|
|
28942
28942
|
'selected': this.value === 'filled',
|
|
28943
28943
|
}, onClick: () => this.handleFillChange('filled'), title: "Filled background" }, this.renderFillIcon('filled')))));
|
|
@@ -29032,9 +29032,9 @@ const KritzelShareDialog = class {
|
|
|
29032
29032
|
this.dialogClosed.emit();
|
|
29033
29033
|
};
|
|
29034
29034
|
render() {
|
|
29035
|
-
return (h(Host, { key: '
|
|
29035
|
+
return (h(Host, { key: 'd09081f674376da4fe84aa15bff4a9c51731b57b' }, h("kritzel-dialog", { key: 'cf95c6522b6310d32b36f73977f122f9316b025c', dialogTitle: "Share Workspace", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small" }, h("div", { key: '15304f3a2052274035c383ea88abfc28a86367fe', class: "share-content" }, h("div", { key: 'd3c23df40305bb61b7e9c1b1ab848bfb36c9ee84', class: "share-section" }, h("div", { key: 'f06deba24e98a53e288c568da1cefb712c3f9a70', class: "share-row" }, h("div", { key: '4b98833cc31cbfce71260bf04f474b0a3ea3fbfd', class: "share-label-group" }, h("label", { key: '21ba5d7dba7e7ec00061e0e0966bdbb2bc8e7154', class: "share-label" }, "Link sharing"), h("p", { key: '3b6a8f016f81bc1bc8fc31becc5f8d01df42f6c6', class: "share-description" }, this.internalIsPublic
|
|
29036
29036
|
? 'Anyone with the link can access this workspace.'
|
|
29037
|
-
: 'Link sharing is disabled. Only you can access this workspace.')), h("kritzel-slide-toggle", { key: '
|
|
29037
|
+
: 'Link sharing is disabled. Only you can access this workspace.')), h("kritzel-slide-toggle", { key: '0ee1dfb2202e84f258348101339e3f55b88b1459', checked: this.internalIsPublic, onCheckedChange: this.handleToggleChange, label: "Enable link sharing" }))), this.internalIsPublic && (h("div", { key: '2e94a57507478182785f5e25453cba9f7b495dc1', class: "share-section" }, h("div", { key: '27815163b0027bd56770a14015e59a893edb6151', class: "share-url-container" }, h("input", { key: '59b6caeef1542a3fbbb857e1aded8313ee6817a7', type: "text", class: "share-url-input", value: this.getShareUrl(), readOnly: true, onClick: (e) => e.target.select() }), h("button", { key: 'ce8c7bcaa362638e507c04ca6f08c17f9a691994', class: { 'copy-button': true, 'copy-success': this.copySuccess }, onClick: this.handleCopyUrl, title: this.copySuccess ? 'Copied!' : 'Copy link' }, h("kritzel-icon", { key: 'afd0b6213a2fd53859461f950eb5e0aec0f4de64', name: this.copySuccess ? 'check' : 'copy', size: 18 })))))))));
|
|
29038
29038
|
}
|
|
29039
29039
|
static get watchers() { return {
|
|
29040
29040
|
"isPublic": [{
|
|
@@ -29072,7 +29072,7 @@ const KritzelSlideToggle = class {
|
|
|
29072
29072
|
}
|
|
29073
29073
|
};
|
|
29074
29074
|
render() {
|
|
29075
|
-
return (h(Host, { key: '
|
|
29075
|
+
return (h(Host, { key: '376beaa4424858c3aaf1466797663024889c0f73', class: { checked: this.checked, disabled: this.disabled }, tabIndex: this.disabled ? -1 : 0, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.label, onClick: this.handleToggle, onKeyDown: this.handleKeyDown }, h("div", { key: '2108fe8de84e0b9a619667b5ab4f57215c185375', class: "toggle-track" }, h("div", { key: 'ff8253ce660ca62313dea3034ac4980135eaac88', class: "toggle-thumb" }))));
|
|
29076
29076
|
}
|
|
29077
29077
|
};
|
|
29078
29078
|
KritzelSlideToggle.style = kritzelSlideToggleCss();
|
|
@@ -29172,7 +29172,7 @@ const KritzelSplitButton = class {
|
|
|
29172
29172
|
this.menuScrollTop = event.target.scrollTop;
|
|
29173
29173
|
};
|
|
29174
29174
|
render() {
|
|
29175
|
-
return (h(Host, { key: '
|
|
29175
|
+
return (h(Host, { key: '1ec4c6806f5ff020d675b34f32efeecf6ddf40ab', class: { mobile: this.isTouchDevice } }, h("button", { key: 'ff149370b08338579206820fb5b1da982b45ff92', class: "split-main-button", tabIndex: 0, onClick: this.handleButtonClick, disabled: this.mainButtonDisabled }, this.buttonIcon && h("kritzel-icon", { key: '73aed4cc46319b6dd3d79bbdacb56f91441a0be5', name: this.buttonIcon })), h("div", { key: '3cd4d664db9b851427d41cb69aa023cc837f4f63', class: "split-divider" }), h("button", { key: '4669e0732cad379d08c2d73c66037ae6176a4365', ref: el => (this.splitMenuButtonRef = el), class: "split-menu-button", tabIndex: 0, onClick: this.toggleMenu, disabled: this.menuButtonDisabled }, h("kritzel-icon", { key: '6df7339f7ec3df14fa228f651249584e925ab3d8', name: this.dropdownIcon })), h("kritzel-portal", { key: '4f8698379fe3a44fcd9f414dd499e2dbe12ed494', anchor: this.anchorElement, offsetY: 4, onClose: this.closeMenu }, h("kritzel-menu", { key: '8a7bc82c1dc34a70f55f5aca613aecb225b164ad', ref: el => (this.menuRef = el), items: this.items, onItemSelect: this.handleItemSelect, onItemSave: this.handleItemSave, onItemCancel: this.handleItemCancel, onItemToggleChildMenu: this.handleItemToggleChildMenu, onItemCloseChildMenu: this.handleItemCloseChildMenu, onClose: this.closeMenu, onScroll: this.handleScroll }))));
|
|
29176
29176
|
}
|
|
29177
29177
|
};
|
|
29178
29178
|
KritzelSplitButton.style = kritzelSplitButtonCss();
|
|
@@ -29192,7 +29192,7 @@ const KritzelStrokeSize = class {
|
|
|
29192
29192
|
this.sizeChange.emit(size);
|
|
29193
29193
|
}
|
|
29194
29194
|
render() {
|
|
29195
|
-
return (h(Host, { key: '
|
|
29195
|
+
return (h(Host, { key: 'f964d37a6cbfa48898ac066859165df1492535a9' }, h("div", { key: 'fed8ec5ddbe07d64beb151b22211fecdc0a278d1', class: "size-grid" }, this.sizes.map(size => (h("div", { tabIndex: 0, class: {
|
|
29196
29196
|
'size-container': true,
|
|
29197
29197
|
'selected': this.selectedSize === size,
|
|
29198
29198
|
}, onClick: () => this.handleSizeClick(size) }, h("kritzel-color", { value: 'var(--kritzel-global-text-primary)', size: size })))))));
|
|
@@ -29536,14 +29536,14 @@ const KritzelTooltip = class {
|
|
|
29536
29536
|
}
|
|
29537
29537
|
}
|
|
29538
29538
|
render() {
|
|
29539
|
-
return (h(Host, { key: '
|
|
29539
|
+
return (h(Host, { key: '647f4d837fc06a3b5dca8896383c1a92ef7c5a3d', style: {
|
|
29540
29540
|
position: 'fixed',
|
|
29541
29541
|
zIndex: '9999',
|
|
29542
29542
|
transition: 'opacity 0.3s ease-in-out, transform 0.3s ease-in-out',
|
|
29543
29543
|
visibility: this.isVisible ? 'visible' : 'hidden',
|
|
29544
29544
|
left: `${this.positionX}px`,
|
|
29545
29545
|
bottom: `${this.positionY}px`,
|
|
29546
|
-
} }, h("div", { key: '
|
|
29546
|
+
} }, h("div", { key: '41b32207d1e9f84c85c054a8aae4727b7df05d62', class: "tooltip-content", onClick: event => event.stopPropagation(), onPointerDown: event => event.stopPropagation(), onMouseDown: event => event.stopPropagation() }, h("slot", { key: 'c164d76762957e60d904458d7a34936944d02eae' }))));
|
|
29547
29547
|
}
|
|
29548
29548
|
static get watchers() { return {
|
|
29549
29549
|
"triggerElement": [{
|
|
@@ -29582,7 +29582,7 @@ const KritzelUtilityPanel = class {
|
|
|
29582
29582
|
this.redo.emit();
|
|
29583
29583
|
}
|
|
29584
29584
|
render() {
|
|
29585
|
-
return (h(Host, { key: '
|
|
29585
|
+
return (h(Host, { key: '5b03e990a92cbf09a71c067c4c07547da6dcd669' }, h("button", { key: '9a5915187e2684c292b9d5d058a5b6dc3279088d', class: "utility-button", "data-testid": "utility-undo", disabled: !this.undoState?.canUndo, onClick: event => this.handleUndo(event) }, h("kritzel-icon", { key: '33e3f3cdc5ee4c4fc79c5f732355523460d096ab', name: "undo" })), h("button", { key: '03bb54a25b70811a3c90624caf1f29c1534bfdcb', class: "utility-button", "data-testid": "utility-redo", disabled: !this.undoState?.canRedo, onClick: event => this.handleRedo(event) }, h("kritzel-icon", { key: '042140dd6a6251d04d26fee326df30eec46d6825', name: "redo" })), h("div", { key: '16111e0e11d93d928fc6b71fc993e9ca59205a4a', class: "utility-separator" }), h("button", { key: '003edf23960221447cbeb735b04ab6642ef72f4c', class: "utility-button", "data-testid": "utility-delete", onClick: () => this.delete.emit() }, h("kritzel-icon", { key: '2b3cbdbd65efe0b7923b7ecb1b4ff112a08dcc72', name: "delete" }))));
|
|
29586
29586
|
}
|
|
29587
29587
|
};
|
|
29588
29588
|
KritzelUtilityPanel.style = kritzelUtilityPanelCss();
|