@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
|
@@ -154,17 +154,13 @@ export class KritzelToolbar {
|
|
|
154
154
|
await this.resolveDisabledStates(newToolbar);
|
|
155
155
|
for (const c of newToolbar) {
|
|
156
156
|
if (c.type === 'tool' && c.tool) {
|
|
157
|
-
|
|
158
|
-
if (typeof toolConstructor !== 'function') {
|
|
159
|
-
toolConstructor = toolConstructor.constructor;
|
|
160
|
-
}
|
|
161
|
-
const registered = await this.kritzelEngine.registerTool(c.name, toolConstructor, c.config);
|
|
157
|
+
const registered = await this.kritzelEngine.getTool(c.name);
|
|
162
158
|
if (registered) {
|
|
163
159
|
c.tool = registered;
|
|
164
160
|
}
|
|
165
161
|
}
|
|
166
162
|
if (c.type === 'tool' && c.isDefault && !this.isControlDisabled(c) && c.tool) {
|
|
167
|
-
await this.kritzelEngine.
|
|
163
|
+
await this.kritzelEngine.setActiveTool(c.name);
|
|
168
164
|
this.activeControl = c;
|
|
169
165
|
this.updateDisplayValues(c.tool);
|
|
170
166
|
hasDefault = true;
|
|
@@ -183,7 +179,7 @@ export class KritzelToolbar {
|
|
|
183
179
|
if (!hasDefault) {
|
|
184
180
|
const firstTool = this.internalToolbar.find(c => c.type === 'tool' && c.tool && !this.isControlDisabled(c));
|
|
185
181
|
if (firstTool) {
|
|
186
|
-
await this.kritzelEngine.
|
|
182
|
+
await this.kritzelEngine.setActiveTool(firstTool.name);
|
|
187
183
|
this.activeControl = firstTool;
|
|
188
184
|
this.updateDisplayValues(firstTool.tool);
|
|
189
185
|
}
|
|
@@ -219,12 +215,12 @@ export class KritzelToolbar {
|
|
|
219
215
|
this.activeControl = control;
|
|
220
216
|
if (this.activeControl.type === 'tool') {
|
|
221
217
|
this.updateDisplayValues(this.activeControl.tool);
|
|
222
|
-
await this.kritzelEngine.
|
|
218
|
+
await this.kritzelEngine.setActiveTool(this.activeControl.name);
|
|
223
219
|
}
|
|
224
220
|
}
|
|
225
221
|
async handleToolChange(event) {
|
|
226
222
|
this.activeControl = { ...this.activeControl, tool: event.detail };
|
|
227
|
-
await this.kritzelEngine.
|
|
223
|
+
await this.kritzelEngine.setActiveTool(this.activeControl.name);
|
|
228
224
|
}
|
|
229
225
|
/**
|
|
230
226
|
* Get the currently selected sub-option for a control.
|
|
@@ -263,13 +259,13 @@ export class KritzelToolbar {
|
|
|
263
259
|
// Separate tool controls from config control
|
|
264
260
|
const toolControls = this.internalToolbar.filter(c => c.type === 'tool' || c.type === 'separator');
|
|
265
261
|
const configControl = this.internalToolbar.find(c => c.type === 'config' && c.name === this.firstConfig?.name);
|
|
266
|
-
return (h(Host, { key: '
|
|
262
|
+
return (h(Host, { key: 'e4f662409cdd76fafa8753a47d4c4670968a9e7a', style: { display: this.visible ? '' : 'none' }, class: {
|
|
267
263
|
mobile: this.isTouchDevice,
|
|
268
|
-
} }, this.isUtilityPanelVisible && (h("kritzel-utility-panel", { key: '
|
|
264
|
+
} }, this.isUtilityPanelVisible && (h("kritzel-utility-panel", { key: 'c3c864e0e818ccf92d4c9b43f183775fa919cf4c', style: {
|
|
269
265
|
position: 'absolute',
|
|
270
266
|
bottom: '56px',
|
|
271
267
|
left: '12px',
|
|
272
|
-
}, undoState: this.undoState, terms: this.terms, onUndo: () => this.kritzelEngine?.undo(), onRedo: () => this.kritzelEngine?.redo(), onDelete: () => this.kritzelEngine?.delete() })), h("div", { key: '
|
|
268
|
+
}, undoState: this.undoState, terms: this.terms, onUndo: () => this.kritzelEngine?.undo(), onRedo: () => this.kritzelEngine?.redo(), onDelete: () => this.kritzelEngine?.delete() })), h("div", { key: '4d59605d66ee7277af8fc56002947f943f8a5b14', class: "kritzel-toolbar" }, h("div", { key: '7c36b7ad02470bafc9efcb426f667376e28953e8', class: { 'scroll-indicator-left': true, 'visible': this.canScrollLeft } }), h("div", { key: 'd29be9bca631077fad2fe709219c8897735bc6a6', class: "kritzel-tools-scroll", ref: el => (this.toolsScrollRef = el), onScroll: this.handleToolsScroll }, toolControls.map(control => {
|
|
273
269
|
// Check if this control has sub-options (split-button)
|
|
274
270
|
if (control.subOptions?.length) {
|
|
275
271
|
const selectedSubOption = this.getSelectedSubOption(control);
|
|
@@ -291,7 +287,7 @@ export class KritzelToolbar {
|
|
|
291
287
|
}, disabled: isDisabled, ref: el => {
|
|
292
288
|
if (el)
|
|
293
289
|
control._triggerRef = el;
|
|
294
|
-
}, "aria-label": `Select ${control.name} options`, "aria-disabled": isDisabled, "data-testid": `tool-${control.name}-dropdown`, tabIndex: isActive ? 0 : -1 }, h("kritzel-icon", { name: "
|
|
290
|
+
}, "aria-label": `Select ${control.name} options`, "aria-disabled": isDisabled, "data-testid": `tool-${control.name}-dropdown`, tabIndex: isActive ? 0 : -1 }, h("kritzel-icon", { name: "chevronDown", size: 12 })), h("kritzel-tooltip", { anchorElement: control._anchorRef, triggerElement: control._triggerRef }, h("div", { class: "kritzel-submenu-content" }, control.subOptions.map(option => (h("button", { class: {
|
|
295
291
|
'kritzel-submenu-item': true,
|
|
296
292
|
'active': option.id === selectedSubOption?.id,
|
|
297
293
|
}, key: option.id, "data-testid": `suboption-${option.id}`, onClick: () => this.selectSubOption(control, option) }, h("kritzel-icon", { name: option.icon, size: 20 }), h("span", null, option.label))))))));
|
|
@@ -305,10 +301,10 @@ export class KritzelToolbar {
|
|
|
305
301
|
'selected': this.activeControl?.name === control?.name,
|
|
306
302
|
'disabled': this.isControlDisabled(control),
|
|
307
303
|
}, disabled: this.isControlDisabled(control), key: control.name, "data-testid": `tool-${control.name}`, onClick: _event => this.handleControlClick?.(control), "aria-label": control.name.charAt(0).toUpperCase() + control.name.slice(1), "aria-disabled": this.isControlDisabled(control) }, h("kritzel-icon", { name: control.icon })));
|
|
308
|
-
})), h("div", { key: '
|
|
304
|
+
})), h("div", { key: '8cb7ae1d0b77f6bac9c6ddf34699c2653b1cfa68', class: { 'scroll-indicator-right': true, 'visible': this.canScrollRight && !(configControl && this.activeControl && hasConfigUI) } }), configControl && this.activeControl && (h("div", { class: {
|
|
309
305
|
'kritzel-config-container': true,
|
|
310
306
|
'visible': hasConfigUI,
|
|
311
|
-
}, key: configControl.name }, h("div", { key: '
|
|
307
|
+
}, key: configControl.name }, h("div", { key: '764230be2ef0ca45f94ca2a7bf6e2b5df7bdf7b2', class: { 'config-gradient-left': true, 'visible': this.needsScrolling } }), h("kritzel-tooltip", { key: '7b6c2cae55b9ca6f723e2209f98d921b388e8159', anchorElement: this.host.shadowRoot?.querySelector('.kritzel-config-container'), triggerElement: this.configTriggerRef }, h("kritzel-tool-config", { key: '222a7eb3c5a0ad3589e62b43618dcf56bce01418', tool: this.activeControl.tool, theme: this.theme, engine: this.kritzelEngine, terms: this.terms, onToolChange: event => this.handleToolChange?.(event), onDisplayValuesChange: this.handleDisplayValuesChange, style: { width: '100%', height: '100%' } })), h("div", { key: '90455ca7c55240645445f3d92ccec54ffc1e3572', tabIndex: hasConfigUI ? 0 : -1, class: "kritzel-config", "data-testid": "tool-config", ref: el => {
|
|
312
308
|
if (el)
|
|
313
309
|
this.configTriggerRef = el;
|
|
314
310
|
}, onKeyDown: event => {
|
|
@@ -317,7 +313,7 @@ export class KritzelToolbar {
|
|
|
317
313
|
}
|
|
318
314
|
}, style: {
|
|
319
315
|
cursor: 'pointer',
|
|
320
|
-
} }, this.displayValues && (h("div", { key: '
|
|
316
|
+
} }, this.displayValues && (h("div", { key: 'ef0c11f630b70dadf5c9b7688c0f1b93cf9cf030', class: "color-container" }, h("kritzel-color", { key: 'd14a7837fef6d3777ee92d219d22915c5f21e541', value: this.displayValues.color, theme: this.theme, size: 18, style: {
|
|
321
317
|
borderRadius: '50%',
|
|
322
318
|
border: 'none',
|
|
323
319
|
} })))))))));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
width: auto;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.tooltip-content {
|
|
6
|
-
position: relative;
|
|
7
|
-
padding: 8px 12px;
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
width: fit-content;
|
|
10
|
-
background-color: var(--kritzel-tooltip-background-color, #ffffff);
|
|
11
|
-
color: var(--kritzel-tooltip-color, #000000);
|
|
12
|
-
padding: var(--kritzel-tooltip-padding, 12px);
|
|
13
|
-
border: var(--kritzel-tooltip-border, 1px solid #ebebeb);
|
|
14
|
-
border-radius: var(--kritzel-tooltip-border-radius, 16px);
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
box-shadow: var(--kritzel-tooltip-box-shadow, 0 1px 6px rgba(0, 0, 0, 0.12));
|
|
17
|
-
}
|
|
18
|
-
|
|
1
|
+
:host {
|
|
2
|
+
width: auto;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tooltip-content {
|
|
6
|
+
position: relative;
|
|
7
|
+
padding: 8px 12px;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
width: fit-content;
|
|
10
|
+
background-color: var(--kritzel-tooltip-background-color, #ffffff);
|
|
11
|
+
color: var(--kritzel-tooltip-color, #000000);
|
|
12
|
+
padding: var(--kritzel-tooltip-padding, 12px);
|
|
13
|
+
border: var(--kritzel-tooltip-border, 1px solid #ebebeb);
|
|
14
|
+
border-radius: var(--kritzel-tooltip-border-radius, 16px);
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
box-shadow: var(--kritzel-tooltip-box-shadow, 0 1px 6px rgba(0, 0, 0, 0.12));
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -128,14 +128,14 @@ export class KritzelTooltip {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return (h(Host, { key: '
|
|
131
|
+
return (h(Host, { key: '9c80a8831cdc03e08b4fe19c8c0aabd036fd5a23', style: {
|
|
132
132
|
position: 'fixed',
|
|
133
133
|
zIndex: '9999',
|
|
134
134
|
transition: 'opacity 0.3s ease-in-out, transform 0.3s ease-in-out',
|
|
135
135
|
visibility: this.isVisible ? 'visible' : 'hidden',
|
|
136
136
|
left: `${this.positionX}px`,
|
|
137
137
|
bottom: `${this.positionY}px`,
|
|
138
|
-
} }, h("div", { key: '
|
|
138
|
+
} }, h("div", { key: '0f5907b4bf740e6242a07e00790685265ee7767b', class: "tooltip-content", onClick: event => event.stopPropagation(), onPointerDown: event => event.stopPropagation(), onMouseDown: event => event.stopPropagation() }, h("slot", { key: 'e1074787847d96b7a725fcb04902ccc7e6827984' }))));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "kritzel-tooltip"; }
|
|
141
141
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
align-items: center;
|
|
5
|
-
padding: 4px;
|
|
6
|
-
gap: 8px;
|
|
7
|
-
border-top-left-radius: 12px;
|
|
8
|
-
border-top-right-radius: 12px;
|
|
9
|
-
background-color: var(--kritzel-utility-panel-background-color, #e2e2e2);
|
|
10
|
-
width: fit-content;
|
|
11
|
-
user-select: none;
|
|
12
|
-
z-index: 1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.utility-button {
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
width: 28px;
|
|
20
|
-
height: 28px;
|
|
21
|
-
padding: 8px 4px;
|
|
22
|
-
border: none;
|
|
23
|
-
background: none;
|
|
24
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
25
|
-
color: var(--kritzel-utility-panel-button-color, #333333);
|
|
26
|
-
--kritzel-icon-color: var(--kritzel-utility-panel-button-color, #333333);
|
|
27
|
-
-webkit-tap-highlight-color: transparent;
|
|
28
|
-
border-radius: var(--kritzel-utility-panel-button-border-radius, 8px);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.utility-button:hover,
|
|
32
|
-
.utility-button:focus-visible {
|
|
33
|
-
background-color: var(--kritzel-utility-panel-button-hover-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.utility-button:disabled {
|
|
37
|
-
opacity: 0.4;
|
|
38
|
-
cursor: not-allowed;
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.utility-separator {
|
|
43
|
-
width: 1px;
|
|
44
|
-
height: 16px;
|
|
45
|
-
background-color: var(--kritzel-utility-panel-separator-color, hsl(0, 0%, 0%, 8%));
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding: 4px;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
border-top-left-radius: 12px;
|
|
8
|
+
border-top-right-radius: 12px;
|
|
9
|
+
background-color: var(--kritzel-utility-panel-background-color, #e2e2e2);
|
|
10
|
+
width: fit-content;
|
|
11
|
+
user-select: none;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.utility-button {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
width: 28px;
|
|
20
|
+
height: 28px;
|
|
21
|
+
padding: 8px 4px;
|
|
22
|
+
border: none;
|
|
23
|
+
background: none;
|
|
24
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
25
|
+
color: var(--kritzel-utility-panel-button-color, #333333);
|
|
26
|
+
--kritzel-icon-color: var(--kritzel-utility-panel-button-color, #333333);
|
|
27
|
+
-webkit-tap-highlight-color: transparent;
|
|
28
|
+
border-radius: var(--kritzel-utility-panel-button-border-radius, 8px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.utility-button:hover,
|
|
32
|
+
.utility-button:focus-visible {
|
|
33
|
+
background-color: var(--kritzel-utility-panel-button-hover-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.utility-button:disabled {
|
|
37
|
+
opacity: 0.4;
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.utility-separator {
|
|
43
|
+
width: 1px;
|
|
44
|
+
height: 16px;
|
|
45
|
+
background-color: var(--kritzel-utility-panel-separator-color, hsl(0, 0%, 0%, 8%));
|
|
46
46
|
}
|
|
@@ -19,7 +19,7 @@ export class KritzelUtilityPanel {
|
|
|
19
19
|
this.redo.emit();
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '1ec661383d53b4c34308152d745a8de1cb5809e0' }, h("button", { key: '69ff640842779f8b03709040feb3dbfe2f5f0f05', class: "utility-button", "data-testid": "utility-undo", disabled: !this.undoState?.canUndo, onClick: event => this.handleUndo(event), "aria-label": this.terms['utility.undo'] ?? 'Undo' }, h("kritzel-icon", { key: '49be69476a559136b1199f7d20144d0dc0aa402b', name: "undo" })), h("button", { key: 'f9a14d78e14e66f0ebfb3762a7de748097c297e1', class: "utility-button", "data-testid": "utility-redo", disabled: !this.undoState?.canRedo, onClick: event => this.handleRedo(event), "aria-label": this.terms['utility.redo'] ?? 'Redo' }, h("kritzel-icon", { key: 'e559abf9a2a0471d2524f65264adbc28d8fa0449', name: "redo" })), h("div", { key: '19fe0895816459d7e9241307c9f0642c055774b6', class: "utility-separator" }), h("button", { key: '3672bbcad7e22b023dc203ee098ba1538836b0ee', class: "utility-button", "data-testid": "utility-delete", onClick: () => this.delete.emit(), "aria-label": this.terms['utility.delete'] ?? 'Delete selected items' }, h("kritzel-icon", { key: 'aadbff86ca2938e28a74c4ad1c0ac6330d20e529', name: "delete" }))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "kritzel-utility-panel"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
z-index: 1;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.manager {
|
|
8
|
-
opacity: 0;
|
|
9
|
-
pointer-events: none;
|
|
10
|
-
transition: opacity 0.2s ease-out;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.manager.visible {
|
|
14
|
-
opacity: 1;
|
|
15
|
-
pointer-events: auto;
|
|
16
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
z-index: 1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.manager {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
transition: opacity 0.2s ease-out;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.manager.visible {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
pointer-events: auto;
|
|
16
|
+
}
|
|
@@ -121,7 +121,7 @@ export class KritzelWorkspaceManager {
|
|
|
121
121
|
return {
|
|
122
122
|
id: ws.id,
|
|
123
123
|
label: ws.name,
|
|
124
|
-
icon: ws.isPublic ? '
|
|
124
|
+
icon: ws.isPublic ? 'usersRound' : undefined,
|
|
125
125
|
iconTooltip: ws.isPublic ? (this.terms['workspace.sharedTooltip'] ?? 'Shared workspace') : undefined,
|
|
126
126
|
value: ws,
|
|
127
127
|
isEditing: this.editingItemId === ws.id,
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
z-index: 1;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.panel {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: row;
|
|
9
|
-
align-items: center;
|
|
10
|
-
gap: var(--kritzel-zoom-panel-gap, 4px);
|
|
11
|
-
padding: var(--kritzel-zoom-panel-padding, 4px);
|
|
12
|
-
border: var(--kritzel-zoom-panel-border, 1px solid #ebebeb);
|
|
13
|
-
border-radius: var(--kritzel-zoom-panel-border-radius, 12px);
|
|
14
|
-
background-color: var(--kritzel-zoom-panel-background-color, #ffffff);
|
|
15
|
-
box-shadow: var(--kritzel-zoom-panel-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
|
|
16
|
-
opacity: 0;
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
transition: opacity 0.2s ease-out;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.panel.visible {
|
|
22
|
-
opacity: 1;
|
|
23
|
-
pointer-events: auto;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.zoom-level {
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
min-width: 46px;
|
|
31
|
-
color: var(--kritzel-zoom-panel-icon-color, #000000);
|
|
32
|
-
font-family: var(--kritzel-font-family, sans-serif);
|
|
33
|
-
font-size: 12px;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
line-height: 1;
|
|
36
|
-
padding: 0 4px;
|
|
37
|
-
user-select: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.zoom-button {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
width: var(--kritzel-zoom-panel-button-size, 32px);
|
|
45
|
-
height: var(--kritzel-zoom-panel-button-size, 32px);
|
|
46
|
-
padding: 0;
|
|
47
|
-
border: 0;
|
|
48
|
-
border-radius: var(--kritzel-zoom-panel-button-border-radius, 8px);
|
|
49
|
-
background: transparent;
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
color: var(--kritzel-zoom-panel-icon-color, #000000);
|
|
52
|
-
--kritzel-icon-color: var(--kritzel-zoom-panel-icon-color, #000000);
|
|
53
|
-
box-shadow: none;
|
|
54
|
-
appearance: none;
|
|
55
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
56
|
-
-webkit-tap-highlight-color: transparent;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.zoom-button:hover,
|
|
60
|
-
.zoom-button:focus-visible {
|
|
61
|
-
background-color: var(--kritzel-zoom-panel-button-hover-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.zoom-button:active {
|
|
65
|
-
background-color: var(--kritzel-zoom-panel-button-active-background-color, hsl(0, 0%, 0%, 8.6%));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.zoom-button:disabled {
|
|
69
|
-
opacity: 0.5;
|
|
70
|
-
cursor: not-allowed;
|
|
71
|
-
pointer-events: none;
|
|
72
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.panel {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: var(--kritzel-zoom-panel-gap, 4px);
|
|
11
|
+
padding: var(--kritzel-zoom-panel-padding, 4px);
|
|
12
|
+
border: var(--kritzel-zoom-panel-border, 1px solid #ebebeb);
|
|
13
|
+
border-radius: var(--kritzel-zoom-panel-border-radius, 12px);
|
|
14
|
+
background-color: var(--kritzel-zoom-panel-background-color, #ffffff);
|
|
15
|
+
box-shadow: var(--kritzel-zoom-panel-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
|
|
16
|
+
opacity: 0;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
transition: opacity 0.2s ease-out;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.panel.visible {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
pointer-events: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.zoom-level {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
min-width: 46px;
|
|
31
|
+
color: var(--kritzel-zoom-panel-icon-color, #000000);
|
|
32
|
+
font-family: var(--kritzel-global-font-family, sans-serif);
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
line-height: 1;
|
|
36
|
+
padding: 0 4px;
|
|
37
|
+
user-select: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.zoom-button {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
width: var(--kritzel-zoom-panel-button-size, 32px);
|
|
45
|
+
height: var(--kritzel-zoom-panel-button-size, 32px);
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: 0;
|
|
48
|
+
border-radius: var(--kritzel-zoom-panel-button-border-radius, 8px);
|
|
49
|
+
background: transparent;
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
color: var(--kritzel-zoom-panel-icon-color, #000000);
|
|
52
|
+
--kritzel-icon-color: var(--kritzel-zoom-panel-icon-color, #000000);
|
|
53
|
+
box-shadow: none;
|
|
54
|
+
appearance: none;
|
|
55
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
56
|
+
-webkit-tap-highlight-color: transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.zoom-button:hover,
|
|
60
|
+
.zoom-button:focus-visible {
|
|
61
|
+
background-color: var(--kritzel-zoom-panel-button-hover-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.zoom-button:active {
|
|
65
|
+
background-color: var(--kritzel-zoom-panel-button-active-background-color, hsl(0, 0%, 0%, 8.6%));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.zoom-button:disabled {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
}
|
|
@@ -26,7 +26,7 @@ export class KritzelZoomPanel {
|
|
|
26
26
|
return Number.isFinite(this.zoomPercent) ? Math.max(1, Math.round(this.zoomPercent)) : 100;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '37bdf4f4025a64be94a2f743d73d2a83c4f9c478' }, h("div", { key: '5c897da0de9a15d91c4d488be923271f82d816c1', class: { panel: true, visible: this.visible } }, h("button", { key: '165fedd5f1c87140e1cbfd7c3a99344edea59d3e', class: "zoom-button", type: "button", "aria-label": this.terms['zoom.zoomOut'] ?? 'Zoom out', disabled: this.disabled, onClick: this.handleZoomOut }, h("kritzel-icon", { key: '4ac3e03e68166c9e9819c5a11ab1d8aac37b6eb1', name: "minus" })), h("span", { key: 'd124c60a92cde8afe9fac87c85b3654d18238343', class: "zoom-level", "aria-live": "polite" }, this.normalizedZoomPercent, "%"), h("button", { key: 'fe94bf21c0de5fc212524058c6fb5de90a89679e', class: "zoom-button", type: "button", "aria-label": this.terms['zoom.zoomIn'] ?? 'Zoom in', disabled: this.disabled, onClick: this.handleZoomIn }, h("kritzel-icon", { key: '84c8ebd09772c81946e65a5759376c501f050548', name: "plus" })))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "kritzel-zoom-panel"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-l1BZ4pYI.js';
|
|
2
2
|
export { KritzelActiveUsers, defineCustomElement as defineCustomElementKritzelActiveUsers } from './kritzel-active-users.js';
|
|
3
3
|
export { KritzelAvatar, defineCustomElement as defineCustomElementKritzelAvatar } from './kritzel-avatar.js';
|
|
4
4
|
export { KritzelAwarenessCursors, defineCustomElement as defineCustomElementKritzelAwarenessCursors } from './kritzel-awareness-cursors.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelActiveUsers$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelActiveUsers$1, d as defineCustomElement$1 } from './p-D1sxfQVN.js';
|
|
2
2
|
|
|
3
3
|
const KritzelActiveUsers = KritzelActiveUsers$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelAwarenessCursors$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelAwarenessCursors$1, d as defineCustomElement$1 } from './p-CdwD9F0m.js';
|
|
2
2
|
|
|
3
3
|
const KritzelAwarenessCursors = KritzelAwarenessCursors$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelBackToContent$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelBackToContent$1, d as defineCustomElement$1 } from './p-DYNFqwX4.js';
|
|
2
2
|
|
|
3
3
|
const KritzelBackToContent = KritzelBackToContent$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host, t as transformTag } from './p-
|
|
2
|
-
import { d as defineCustomElement$3 } from './p-
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host, t as transformTag } from './p-l1BZ4pYI.js';
|
|
2
|
+
import { d as defineCustomElement$3 } from './p-Fzi_dVqn.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-DSi2HiZW.js';
|
|
4
4
|
|
|
5
5
|
const kritzelBrushStyleCss = () => `:host{display:flex;align-items:flex-start;gap:8px;padding:8px;box-sizing:border-box;width:100%}.brush-style-button{display:flex;justify-content:center;align-items:center;width:42px;height:32px;padding:0;border:none;outline:none;background:none;border-radius:0;color:var(--control-text-color);font-weight:bold;-webkit-tap-highlight-color:transparent}.font-style-button:not(:last-child){border-right:1px solid #333333}.font-style-button:hover{background-color:var(--control-hover-bg)}.font-style-button:active{background-color:var(--control-active-bg)}.font-style-button.selected,.font-style-button.selected:hover,.font-style-button.selected:active{background-color:var(--control-selected-bg);color:var(--control-selected-color)}`;
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ const KritzelBrushStyle$1 = /*@__PURE__*/ proxyCustomElement(class KritzelBrushS
|
|
|
27
27
|
value: option.value,
|
|
28
28
|
label: option.label,
|
|
29
29
|
}));
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '7b05e93ce8d28c23503e4ca358a487165169f1ad' }, h("kritzel-dropdown", { key: 'a8f2f30762b339411cd3995482c3bc658855f749', options: dropdownOptions, value: this.type, onValueChanged: event => this.handleDropdownValueChange(event) }, h("button", { key: 'ac06462897a0fbd5011533095fafb7491a75508a', class: "brush-style-button", slot: "prefix" }, h("kritzel-icon", { key: 'caee4c657c7fee478b1038ebd2ef3b502cf73e5e', name: this.type, size: 16 })))));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return kritzelBrushStyleCss(); }
|
|
33
33
|
}, [513, "kritzel-brush-style", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelColorPalette$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelColorPalette$1, d as defineCustomElement$1 } from './p-CgCVe3_P.js';
|
|
2
2
|
|
|
3
3
|
const KritzelColorPalette = KritzelColorPalette$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelColorComponent, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelColorComponent, d as defineCustomElement$1 } from './p-D0lYLWkj.js';
|
|
2
2
|
|
|
3
3
|
const KritzelColor = KritzelColorComponent;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelContextMenu$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelContextMenu$1, d as defineCustomElement$1 } from './p-B6U2JNDq.js';
|
|
2
2
|
|
|
3
3
|
const KritzelContextMenu = KritzelContextMenu$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelCurrentUserDialog$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelCurrentUserDialog$1, d as defineCustomElement$1 } from './p-p2H4pOpF.js';
|
|
2
2
|
|
|
3
3
|
const KritzelCurrentUserDialog = KritzelCurrentUserDialog$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelCurrentUser$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelCurrentUser$1, d as defineCustomElement$1 } from './p-DZ4rAt6k.js';
|
|
2
2
|
|
|
3
3
|
const KritzelCurrentUser = KritzelCurrentUser$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelCursorTrail$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelCursorTrail$1, d as defineCustomElement$1 } from './p-DZ0S2l6Z.js';
|
|
2
2
|
|
|
3
3
|
const KritzelCursorTrail = KritzelCursorTrail$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KritzelDropdown$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KritzelDropdown$1, d as defineCustomElement$1 } from './p-Fzi_dVqn.js';
|
|
2
2
|
|
|
3
3
|
const KritzelDropdown = KritzelDropdown$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|