@tailor-cms/ce-html-edit 2.1.2 → 3.0.0

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.
@@ -6,15 +6,22 @@ type __VLS_Props = {
6
6
  label: string;
7
7
  icon?: string;
8
8
  dropdown?: boolean;
9
+ inMenu?: boolean;
10
+ };
11
+ declare var __VLS_10: {
12
+ iconSize: number;
13
+ }, __VLS_38: {
14
+ iconSize: number;
9
15
  };
10
- declare var __VLS_17: {};
11
16
  type __VLS_Slots = {} & {
12
- default?: (props: typeof __VLS_17) => any;
17
+ default?: (props: typeof __VLS_10) => any;
18
+ } & {
19
+ default?: (props: typeof __VLS_38) => any;
13
20
  };
14
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- click: (event: MouseEvent) => any;
22
+ click: (event: MouseEvent | KeyboardEvent) => any;
16
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onClick?: ((event: MouseEvent) => any) | undefined;
24
+ onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
18
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
27
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,19 @@
1
+ import type { Component as VueComponent } from 'vue';
2
+ export interface Action {
3
+ label: string;
4
+ isActive?: string;
5
+ action: string[];
6
+ icon: string;
7
+ }
8
+ export interface Component {
9
+ component: VueComponent;
10
+ }
11
+ export type ToolbarItem = Action | Component;
12
+ type __VLS_Props = {
13
+ editor: any;
14
+ items: ToolbarItem[];
15
+ inMenu?: boolean;
16
+ };
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -3,6 +3,7 @@ type __VLS_Props = {
3
3
  value: string;
4
4
  label: string;
5
5
  icon: string;
6
+ inMenu?: boolean;
6
7
  };
7
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
9
  set: (...args: any[]) => void;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  editor: any;
3
+ inMenu?: boolean;
3
4
  };
4
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  declare const _default: typeof __VLS_export;
package/dist/index.css CHANGED
@@ -1,7 +1,14 @@
1
- .image-toolbar[data-v-95dfdaed] {
1
+ .list-icon[data-v-5b805705] {
2
+ position: relative;
3
+ display: flex;
4
+ opacity: var(--v-medium-emphasis-opacity);
5
+ }
6
+ .v-list-item--active .list-icon[data-v-5b805705] {
7
+ opacity: 1;
8
+ }.image-toolbar[data-v-ace2bd1e] {
2
9
  display: flex;
3
10
  gap: 0.125rem;
4
- }.table-toolbar[data-v-72b96f7c] {
11
+ }.table-toolbar[data-v-eb4e05fa] {
5
12
  display: flex;
6
13
  gap: 0.125rem;
7
14
  }.tce-container[data-v-68099383] {
@@ -168,53 +175,67 @@
168
175
  visibility: visible;
169
176
  opacity: 1;
170
177
  margin-bottom: 0.25rem;
171
- }.v-sheet[data-v-1694efc7] {
178
+ }.v-sheet[data-v-7781f920] {
172
179
  display: flex;
173
180
  flex-direction: column;
174
181
  gap: 0.75rem;
175
- }.v-sheet[data-v-2da57dc5] {
182
+ }.v-sheet[data-v-09769bae] {
176
183
  display: flex;
177
184
  flex-direction: column;
178
185
  gap: 0.75rem;
179
- }.cell-btn[data-v-a06729c2] {
186
+ }.cell-btn[data-v-a115566a] {
180
187
  margin: 0.0625rem;
181
188
  }
182
- .v-input--density-compact[data-v-a06729c2] {
189
+ .v-input--density-compact[data-v-a115566a] {
183
190
  --v-input-control-height: unset;
184
- }.v-sheet[data-v-00c6083b] {
191
+ }.v-sheet[data-v-c2c60491] {
185
192
  display: flex;
186
193
  flex-direction: column;
187
194
  gap: 0.75rem;
188
- }.mdi-color-helper[data-v-f1be96c1] {
195
+ }.mdi-color-helper[data-v-ef1c4307] {
189
196
  position: absolute !important;
190
197
  }
191
- .v-btn.v-btn--active[data-v-f1be96c1] {
198
+ .v-btn.v-btn--active[data-v-ef1c4307] {
192
199
  color: rgba(var(--v-theme-primary));
193
200
  }
194
- .color-icon[data-v-f1be96c1] {
201
+ .color-icon[data-v-ef1c4307] {
195
202
  position: relative;
196
203
  }
197
- [data-v-f1be96c1] .v-color-picker .v-color-picker-swatches > div {
204
+ [data-v-ef1c4307] .v-color-picker .v-color-picker-swatches > div {
198
205
  padding-bottom: 0;
199
206
  }
200
- [data-v-f1be96c1] .v-color-picker .v-color-picker-swatches__swatch {
207
+ [data-v-ef1c4307] .v-color-picker .v-color-picker-swatches__swatch {
201
208
  margin: 0;
202
209
  }
203
- [data-v-f1be96c1] .v-color-picker .v-color-picker-swatches__color {
210
+ [data-v-ef1c4307] .v-color-picker .v-color-picker-swatches__color {
204
211
  width: 1.5rem;
205
212
  height: 1.5rem;
206
213
  margin: 0.125rem;
207
214
  max-height: 1.5rem;
208
215
  border-radius: 50%;
209
216
  }
210
- .color-btn[data-v-f1be96c1] {
217
+ .color-btn[data-v-ef1c4307] {
211
218
  margin: 0.0625rem;
212
219
  border: 1px solid #dadce0;
213
- }.editor-toolbar[data-v-4f9f9591] {
220
+ }.toolbar-group[data-v-10992dc7] {
214
221
  display: flex;
215
- flex-wrap: wrap;
222
+ flex-shrink: 0;
223
+ align-items: center;
216
224
  gap: 0.125rem;
217
225
  }
218
- .editor-toolbar > .v-divider[data-v-4f9f9591] {
219
- margin: 0.25rem 0.125rem;
226
+ .toolbar-group.in-menu[data-v-10992dc7] {
227
+ display: block;
228
+ }.editor-toolbar[data-v-467afc39] {
229
+ display: flex;
230
+ flex: 1 1 0%;
231
+ align-items: center;
232
+ justify-content: flex-start;
233
+ min-width: 0;
234
+ }
235
+ .separated[data-v-467afc39]::before {
236
+ content: "";
237
+ align-self: stretch;
238
+ width: 1px;
239
+ margin: 0.25rem 0.125rem 0.25rem 0.25rem;
240
+ background: rgba(var(--v-border-color), var(--v-border-opacity));
220
241
  }