@omnia/fx 8.0.540-dev → 8.0.543-dev
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/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/TextStylePicker.d.ts +8 -2
- package/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/TextStyleViewer.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/store/TextStylePickerStore.d.ts +7 -2
- package/internal-do-not-import-from-here/ux/aurora/store/TextStyleConfigurationStore.d.ts +9 -2
- package/internal-do-not-import-from-here/ux/editorchrome/define/DefineChromeAction.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/inputlanguagepicker/InputLanguagePicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/calendar/Calendar.d.ts +5 -4
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditor.css.d.ts +9 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditor.d.ts +11 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditorStore_old.d.ts +0 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/index.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/store/RichTextEditorStore.d.ts +133 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/store/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/richtexteditorrenderer/RichTextEditorRenderer.css.d.ts +9 -2
- package/internal-do-not-import-from-here/ux/texttranslator/TextTranslator.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/core/actions/Bridge.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/velcron/core/actions/Http.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/velcron/core/actions/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/core/models/ActionHooks.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/vuetify/VuetifyCore.d.ts +1 -1
- package/package.json +3 -3
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditorStore.d.ts +0 -18
package/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/TextStylePicker.d.ts
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
import { DefineSlot } from "@omnia/fx/ux";
|
2
|
-
import { TextBlueprint, TextStyleValue, TypographyBlueprint, TextStyleBreakpointType, TextStyleConfiguration } from "@omnia/fx-models";
|
2
|
+
import { TextBlueprint, TextStyleValue, guid, TypographyBlueprint, TextStyleBreakpointType, TextStyleConfiguration } from "@omnia/fx-models";
|
3
3
|
import { VNode } from "vue";
|
4
4
|
import { PickerVariant } from "internal/fx/ux/oxide/picker/models/SharedSettings";
|
5
5
|
import { ViewTypes } from "./store/TextStylePickerStore";
|
6
6
|
type previewTypes = "default" | "icon";
|
7
7
|
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
8
|
+
colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
|
9
|
+
} & {
|
10
|
+
colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
|
11
|
+
} & {
|
8
12
|
"emit:update:modelValue": (value: number | TextStyleConfiguration | TextStyleValue) => void;
|
9
13
|
} & {
|
10
14
|
"v-model"?: number | TextStyleConfiguration | TextStyleValue;
|
@@ -16,6 +20,8 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
16
20
|
viewType?: ViewTypes;
|
17
21
|
} & {
|
18
22
|
previewType?: previewTypes;
|
23
|
+
} & {
|
24
|
+
filters?: guid[];
|
19
25
|
} & {
|
20
26
|
textBlueprint?: TextBlueprint;
|
21
27
|
} & {
|
@@ -47,5 +53,5 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
47
53
|
default?: import("vue").Slot;
|
48
54
|
$stable?: boolean;
|
49
55
|
}, "activator">;
|
50
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "label" | "variant" | "toned" | "v-model" | "modelValue" | "emit:update:modelValue" | "placeholder" | "slot:activator" | "customTyping" | "viewType" | "previewType" | "textBlueprint" | "typographyBlueprint" | "breakpoint" | "showSlots" | "clearable" | "ignoreStylingInSelection" | "sampleText"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
56
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "label" | "colorSchemaType" | "variant" | "filters" | "colors" | "toned" | "v-model" | "modelValue" | "emit:update:modelValue" | "placeholder" | "slot:activator" | "customTyping" | "viewType" | "previewType" | "textBlueprint" | "typographyBlueprint" | "breakpoint" | "showSlots" | "clearable" | "ignoreStylingInSelection" | "sampleText"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
51
57
|
export default _default;
|
package/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/TextStyleViewer.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { DefineProp } from "@omnia/fx/ux";
|
2
2
|
import { TextStyleConfiguration } from "@omnia/fx-models";
|
3
|
-
type ViewerProps = DefineProp<"item", TextStyleConfiguration> & DefineProp<"ignoreLineHeight", boolean>;
|
3
|
+
type ViewerProps = DefineProp<"item", TextStyleConfiguration> & DefineProp<"ignoreLineHeight", boolean> & DefineProp<"textColor", string>;
|
4
4
|
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<ViewerProps> & {} & {
|
5
5
|
"v-slots"?: {} & Omit<{
|
6
6
|
default?: import("vue").Slot;
|
7
7
|
$stable?: boolean;
|
8
8
|
}, never>;
|
9
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "item" | "ignoreLineHeight"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
9
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "item" | "textColor" | "ignoreLineHeight"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
10
10
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ThemedTextStyleValue, TextStyleValue, TypographyBlueprint, TextStyleBreakpointType, TextStyleConfiguration } from "@omnia/fx-models";
|
1
|
+
import { ThemedTextStyleValue, TextStyleValue, TypographyBlueprint, TextStyleBreakpointType, TextStyleConfiguration, guid } from "@omnia/fx-models";
|
2
2
|
import { usePickerStore } from "internal/fx/ux/oxide/picker/stores/PickerStore";
|
3
3
|
import { PickerVariant } from "internal/fx/ux/oxide/picker/models/SharedSettings";
|
4
4
|
export type ViewTypes = "type-scale" | "system-styles" | "custom-styles" | "system-styles custom-styles" | "default";
|
@@ -10,7 +10,11 @@ export declare const useTextStylePickerStore: () => {
|
|
10
10
|
viewType: ViewTypes;
|
11
11
|
typographyBlueprint: TypographyBlueprint;
|
12
12
|
breakPoint: TextStyleBreakpointType;
|
13
|
-
configurations:
|
13
|
+
configurations: {
|
14
|
+
all: TextStyleConfiguration[];
|
15
|
+
filtered: TextStyleConfiguration[];
|
16
|
+
};
|
17
|
+
filters: guid[];
|
14
18
|
settings: {
|
15
19
|
variant: PickerVariant;
|
16
20
|
};
|
@@ -18,6 +22,7 @@ export declare const useTextStylePickerStore: () => {
|
|
18
22
|
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
19
23
|
setPickerStore(store: ReturnType<typeof usePickerStore>): void;
|
20
24
|
clear: () => void;
|
25
|
+
setFilters: (filters: Array<guid>) => void;
|
21
26
|
setScaleValue(value: number): void;
|
22
27
|
select: (value: TextStyleValue | TextStyleConfiguration) => void;
|
23
28
|
initState: (model: TextStyleValue | number | TextStyleConfiguration, sampleText: string, viewType: ViewTypes, typographyBlueprint: TypographyBlueprint, breakpoint: TextStyleBreakpointType) => void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { guid, HeadingConfiguration, TextStyleConfiguration } from "@omnia/fx-models";
|
2
|
-
import {
|
2
|
+
import { NestedCSSSelectors } from "typestyle/lib/types";
|
3
3
|
export interface TextStyleSettings {
|
4
4
|
headings: Array<HeadingConfiguration>; /**Old depricated stuff... */
|
5
5
|
textStyles: Array<TextStyleConfiguration>;
|
@@ -20,18 +20,25 @@ export declare const useTextStyleConfigurationStore: () => {
|
|
20
20
|
createNew: () => TextStyleConfiguration;
|
21
21
|
}>;
|
22
22
|
get: {
|
23
|
+
id: {
|
24
|
+
byClass: (classes: string) => guid;
|
25
|
+
};
|
23
26
|
configurations: {
|
24
27
|
readonly active: TextStyleConfiguration[];
|
25
28
|
readonly disabled: TextStyleConfiguration[];
|
26
29
|
readonly default: TextStyleConfiguration;
|
27
30
|
byId: (id: guid) => TextStyleConfiguration;
|
31
|
+
byIdWithDefaultFallback: (id: guid) => TextStyleConfiguration;
|
32
|
+
byFilter: (ids: Array<guid>) => TextStyleConfiguration[];
|
28
33
|
};
|
29
34
|
textStyling: {
|
35
|
+
className: (id: guid) => string;
|
30
36
|
byId: (id: guid) => any;
|
31
37
|
byConfiguration: (configuration: TextStyleConfiguration) => any;
|
32
38
|
default: () => any;
|
33
39
|
object: (id: guid) => any;
|
34
|
-
toSelector: (id: guid, selector: string) =>
|
40
|
+
toSelector: (id: guid, selector: string) => NestedCSSSelectors;
|
41
|
+
allClasses: (selector?: string) => NestedCSSSelectors;
|
35
42
|
};
|
36
43
|
};
|
37
44
|
deactivated(): void;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { SetupFactoryContext } from "@omnia/fx";
|
2
2
|
import { guid, IIcon, InstanceLifetimes } from "@omnia/fx-models";
|
3
3
|
import { type ConfirmDialogOptions } from "../../confirmdialog";
|
4
|
-
import { VNodeChild } from "vue";
|
4
|
+
import { Ref, VNodeChild } from "vue";
|
5
5
|
export interface SetupChromeActionontext extends SetupFactoryContext {
|
6
6
|
defineAction(action: ChromeActionOptions): ChromeActionInstance;
|
7
7
|
}
|
8
8
|
export type ChromeActionOptions = {
|
9
9
|
id?: guid;
|
10
|
-
active?: boolean
|
11
|
-
disableToggle?: boolean
|
12
|
-
disabled?: boolean
|
13
|
-
hidden?: boolean
|
10
|
+
active?: boolean | Ref<boolean>;
|
11
|
+
disableToggle?: boolean | Ref<boolean>;
|
12
|
+
disabled?: boolean | Ref<boolean>;
|
13
|
+
hidden?: boolean | Ref<boolean>;
|
14
14
|
compactMode?: {
|
15
15
|
showText?: boolean;
|
16
16
|
hide?: boolean;
|
@@ -11,5 +11,5 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
11
11
|
default?: import("vue").Slot;
|
12
12
|
$stable?: boolean;
|
13
13
|
}, never>;
|
14
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "tooltip" | "
|
14
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "tooltip" | "multilingualContext" | "buttonSettings"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
15
15
|
export default _default;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { DefineProp, DefinePropTheming, DefineSlot, DefineVModel, EventType } from "@omnia/fx/ux";
|
2
2
|
import { VNodeChild } from "vue";
|
3
|
+
import { CalendarDaySlotScope } from "vuetify/lib/labs/VCalendar/types";
|
3
4
|
declare const defaultWeekDays: (0 | 1 | 4 | 3 | 2 | 5 | 6)[];
|
4
5
|
type CalendarProps<T extends EventType> = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", Date[], false, null, true, "The v-model of the component"> & DefineProp<"events", T[], false, null, "Array of events specific to this interval."> & DefineProp<"viewMode", "month" | "day" | "week", false, "month", "The current view mode of the calendar."> & DefineProp<"weekdays", Array<0 | 1 | 2 | 3 | 4 | 5 | 6>, false, typeof defaultWeekDays, "Specifies which days of the week to display.Default is [0, 1, 2, 3, 4, 5, 6]"> & DefineProp<"year", number, false, null, "Specifies the year for the calendar view."> & DefineProp<"month", number, false, null, "Specifies the month for the calendar view."> & DefineProp<"intervalHeight", number, false, null, "Height of the interval in pixels in the calendar view."> & DefineProp<"intervals", number, false, 24, "Total number of intervals in a day view."> & DefineProp<"intervalStart", number, false, 0, "Starting time for this specific interval."> & DefineProp<"max", Date, false, null, "Maximum date or value that can be selected."> & DefineProp<"min", Date, false, null, "Minimum date or value that can be selected."> & DefineProp<"hideWeekNumber", boolean, false, false, "Toggles the display of week numbers in a calendar view."> & DefineProp<"hideDayHeader", boolean, false, false, "Determines whether the day header is visible in the calendar day view."> & DefineProp<"hideHeader", boolean, false, false, "Determines whether the header is hidden in the calendar view."> & DefineProp<"allowedDates", Date[] | ((date: Date) => boolean), false, null, "Determines which dates are selectable."> & DefineSlot<"event", (event: {
|
5
|
-
day:
|
6
|
-
|
6
|
+
day: CalendarDaySlotScope;
|
7
|
+
timed: boolean;
|
7
8
|
event: T;
|
8
9
|
}) => VNodeChild> & DefineSlot<"header", (header: {
|
9
10
|
title: string;
|
@@ -13,8 +14,8 @@ declare const _default: <T extends EventType>(props: import("@omnia/fx/ux").Extr
|
|
13
14
|
} & {
|
14
15
|
"v-slots"?: {
|
15
16
|
event?: (event: {
|
16
|
-
day:
|
17
|
-
|
17
|
+
day: CalendarDaySlotScope;
|
18
|
+
timed: boolean;
|
18
19
|
event: T;
|
19
20
|
}) => VNodeChild;
|
20
21
|
header?: (header: {
|
@@ -20,18 +20,25 @@ export declare const TextStyling: {
|
|
20
20
|
createNew: () => import("@omnia/fx-models").TextStyleConfiguration;
|
21
21
|
}>;
|
22
22
|
get: {
|
23
|
+
id: {
|
24
|
+
byClass: (classes: string) => import("@omnia/fx-models").guid;
|
25
|
+
};
|
23
26
|
configurations: {
|
24
27
|
readonly active: import("@omnia/fx-models").TextStyleConfiguration[];
|
25
28
|
readonly disabled: import("@omnia/fx-models").TextStyleConfiguration[];
|
26
29
|
readonly default: import("@omnia/fx-models").TextStyleConfiguration;
|
27
30
|
byId: (id: import("@omnia/fx-models").guid) => import("@omnia/fx-models").TextStyleConfiguration;
|
31
|
+
byIdWithDefaultFallback: (id: import("@omnia/fx-models").guid) => import("@omnia/fx-models").TextStyleConfiguration;
|
32
|
+
byFilter: (ids: Array<import("@omnia/fx-models").guid>) => import("@omnia/fx-models").TextStyleConfiguration[];
|
28
33
|
};
|
29
34
|
textStyling: {
|
35
|
+
className: (id: import("@omnia/fx-models").guid) => string;
|
30
36
|
byId: (id: import("@omnia/fx-models").guid) => any;
|
31
37
|
byConfiguration: (configuration: import("@omnia/fx-models").TextStyleConfiguration) => any;
|
32
38
|
default: () => any;
|
33
39
|
object: (id: import("@omnia/fx-models").guid) => any;
|
34
|
-
toSelector: (id: import("@omnia/fx-models").guid, selector: string) => import("typestyle/lib/types").
|
40
|
+
toSelector: (id: import("@omnia/fx-models").guid, selector: string) => import("typestyle/lib/types").NestedCSSSelectors;
|
41
|
+
allClasses: (selector?: string) => import("typestyle/lib/types").NestedCSSSelectors;
|
35
42
|
};
|
36
43
|
};
|
37
44
|
deactivated(): void;
|
@@ -45,5 +52,5 @@ export declare const TextStyling: {
|
|
45
52
|
}, name?: import("@omnia/fx-models").ContainerBreakpointTypes) => {};
|
46
53
|
device: (styles: import("typestyle/lib/types").NestedCSSProperties, breakpoint: import("@omnia/fx-models").DisplayBreakpointTypes) => {};
|
47
54
|
};
|
48
|
-
default: () => string;
|
55
|
+
default: (textColor: string) => string;
|
49
56
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { RichTextContentHelper, RichTextEditorPlaceHolder } from ".";
|
1
|
+
import { RichTextContentHelper, RichTextEditorPlaceHolder, useRichTextEditorStore } from ".";
|
2
2
|
import { RichTextEditorExtension, RichTextEditorExtensionRegistration, RichTextModes } from "../../models";
|
3
3
|
import { IRichTextEditorExtensionHelper } from "./IRichTextEditorExtensionHelper";
|
4
4
|
import "./RichTextEditor.css";
|
@@ -34,6 +34,9 @@ declare const _default: {
|
|
34
34
|
bodyClass: {
|
35
35
|
type: import("vue").PropType<string>;
|
36
36
|
};
|
37
|
+
getApi: {
|
38
|
+
type: import("vue").PropType<(store: ReturnType<typeof useRichTextEditorStore>) => void>;
|
39
|
+
};
|
37
40
|
outlined: {
|
38
41
|
type: import("vue").PropType<boolean>;
|
39
42
|
};
|
@@ -116,6 +119,9 @@ declare const _default: {
|
|
116
119
|
bodyClass: {
|
117
120
|
type: import("vue").PropType<string>;
|
118
121
|
};
|
122
|
+
getApi: {
|
123
|
+
type: import("vue").PropType<(store: ReturnType<typeof useRichTextEditorStore>) => void>;
|
124
|
+
};
|
119
125
|
outlined: {
|
120
126
|
type: import("vue").PropType<boolean>;
|
121
127
|
};
|
@@ -195,6 +201,9 @@ declare const _default: {
|
|
195
201
|
bodyClass: {
|
196
202
|
type: import("vue").PropType<string>;
|
197
203
|
};
|
204
|
+
getApi: {
|
205
|
+
type: import("vue").PropType<(store: ReturnType<typeof useRichTextEditorStore>) => void>;
|
206
|
+
};
|
198
207
|
outlined: {
|
199
208
|
type: import("vue").PropType<boolean>;
|
200
209
|
};
|
@@ -267,6 +276,7 @@ declare const _default: {
|
|
267
276
|
menubarLanguagePicker?: import("typestyle/lib/types").NestedCSSProperties;
|
268
277
|
};
|
269
278
|
ariaInvalid?: boolean;
|
279
|
+
getApi?: (store: ReturnType<typeof useRichTextEditorStore>) => void;
|
270
280
|
disableAutofocus?: boolean;
|
271
281
|
bodyClass?: string;
|
272
282
|
onContentDataChange?: (richtextHelper: RichTextContentHelper) => void;
|
File without changes
|
@@ -0,0 +1,133 @@
|
|
1
|
+
import { guid, RichTextEditorExtensionRegistration, RichTextEditorExtension, PastedMenuToolBar, PastedContext, TipTapEditor, RichTextEditorSettingsModel, RichTextModes } from "@omnia/fx-models";
|
2
|
+
import { BubbleMenuConfiguration, RichTextEditorNodeRegistration, RichTextEditorPlaceHolder, ToolbarConfiguration } from "../IRichTextEditor";
|
3
|
+
import { RichTextContentExtensionData, RichTextContentHelper } from "../RichTextContentHelper";
|
4
|
+
import { ComponentPublicInstance } from "vue";
|
5
|
+
import { RichTextEditorInstance } from "../RichTextEditorInstance";
|
6
|
+
import { IRichTextEditorExtensionHelper } from "../IRichTextEditorExtensionHelper";
|
7
|
+
import { EditorView } from "@tiptap/pm/view";
|
8
|
+
import { Editor } from "@tiptap/vue-3";
|
9
|
+
export declare const useRichTextEditorStore: () => {
|
10
|
+
state: {
|
11
|
+
sharedValues: {
|
12
|
+
[key: string]: any;
|
13
|
+
};
|
14
|
+
id: guid;
|
15
|
+
status: {
|
16
|
+
isLoading: boolean;
|
17
|
+
showToolbar: boolean;
|
18
|
+
suggestedMenu: boolean;
|
19
|
+
selectionIsDebouncing: boolean;
|
20
|
+
updateToolbar: boolean;
|
21
|
+
};
|
22
|
+
settings: {
|
23
|
+
editor: RichTextEditorSettingsModel;
|
24
|
+
textStyleFilters: guid[];
|
25
|
+
textColor: {
|
26
|
+
defaultColor: string;
|
27
|
+
schemaName: "background" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
|
28
|
+
};
|
29
|
+
paddingTop: number;
|
30
|
+
lastScrollTop: number;
|
31
|
+
parentScrollOffset: {
|
32
|
+
top: number;
|
33
|
+
};
|
34
|
+
stickyElmScrollableParent: any;
|
35
|
+
isRightToLeft: boolean;
|
36
|
+
hasLanguagePicker: boolean;
|
37
|
+
mode: RichTextModes;
|
38
|
+
placeholder: RichTextEditorPlaceHolder;
|
39
|
+
};
|
40
|
+
nodes: RichTextEditorNodeRegistration[];
|
41
|
+
toolbarItems: ToolbarConfiguration[];
|
42
|
+
extensionsData: {
|
43
|
+
[extensionName: string]: RichTextContentExtensionData;
|
44
|
+
};
|
45
|
+
bubbleMenuItems: BubbleMenuConfiguration[];
|
46
|
+
suggestedMenuItem: BubbleMenuConfiguration[];
|
47
|
+
pastedMenuItem: BubbleMenuConfiguration[];
|
48
|
+
pastedPosition: PastedMenuToolBar;
|
49
|
+
pastedContext: PastedContext;
|
50
|
+
extensionOnFocusFuncs: Array<(editor: TipTapEditor, setExtensionData: (data: RichTextContentExtensionData) => void) => void>;
|
51
|
+
extensionOnBlurFuncs: Array<(editor: TipTapEditor, setExtensionData: (data: RichTextContentExtensionData) => void) => void>;
|
52
|
+
currentEmitedContent: string;
|
53
|
+
};
|
54
|
+
events: import("@omnia/fx/stores").StoreEvents<{
|
55
|
+
sharedValues: {
|
56
|
+
[key: string]: any;
|
57
|
+
};
|
58
|
+
id: guid;
|
59
|
+
status: {
|
60
|
+
isLoading: boolean;
|
61
|
+
showToolbar: boolean;
|
62
|
+
suggestedMenu: boolean;
|
63
|
+
selectionIsDebouncing: boolean;
|
64
|
+
updateToolbar: boolean;
|
65
|
+
};
|
66
|
+
settings: {
|
67
|
+
editor: RichTextEditorSettingsModel;
|
68
|
+
textStyleFilters: guid[];
|
69
|
+
textColor: {
|
70
|
+
defaultColor: string;
|
71
|
+
schemaName: "background" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
|
72
|
+
};
|
73
|
+
paddingTop: number;
|
74
|
+
lastScrollTop: number;
|
75
|
+
parentScrollOffset: {
|
76
|
+
top: number;
|
77
|
+
};
|
78
|
+
stickyElmScrollableParent: any;
|
79
|
+
isRightToLeft: boolean;
|
80
|
+
hasLanguagePicker: boolean;
|
81
|
+
mode: RichTextModes;
|
82
|
+
placeholder: RichTextEditorPlaceHolder;
|
83
|
+
};
|
84
|
+
nodes: RichTextEditorNodeRegistration[];
|
85
|
+
toolbarItems: ToolbarConfiguration[];
|
86
|
+
extensionsData: {
|
87
|
+
[extensionName: string]: RichTextContentExtensionData;
|
88
|
+
};
|
89
|
+
bubbleMenuItems: BubbleMenuConfiguration[];
|
90
|
+
suggestedMenuItem: BubbleMenuConfiguration[];
|
91
|
+
pastedMenuItem: BubbleMenuConfiguration[];
|
92
|
+
pastedPosition: PastedMenuToolBar;
|
93
|
+
pastedContext: PastedContext;
|
94
|
+
extensionOnFocusFuncs: Array<(editor: TipTapEditor, setExtensionData: (data: RichTextContentExtensionData) => void) => void>;
|
95
|
+
extensionOnBlurFuncs: Array<(editor: TipTapEditor, setExtensionData: (data: RichTextContentExtensionData) => void) => void>;
|
96
|
+
currentEmitedContent: string;
|
97
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
98
|
+
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
99
|
+
set: () => import("@omnia/fx/stores").StoreReturnDefineAction<{
|
100
|
+
sharedValue(value: {
|
101
|
+
[key: string]: any;
|
102
|
+
}): void;
|
103
|
+
textStyleFilters(value: Array<guid>): void;
|
104
|
+
}>;
|
105
|
+
hideBubbleMenu(): void;
|
106
|
+
editorUpdated(extensionName?: string, data?: RichTextContentExtensionData): void;
|
107
|
+
contentChangedFromToolbar(content: string, extensionName?: string, data?: RichTextContentExtensionData): void;
|
108
|
+
handleCursorPosition(formatedText: string, formatedHtml: string, view: EditorView, from: number, to: number): void;
|
109
|
+
setExtensionData(data: RichTextContentExtensionData): void;
|
110
|
+
selectionChange(): void;
|
111
|
+
focusEditor(): void;
|
112
|
+
init(vueInstanceRef: ComponentPublicInstance, editorInstanceRef: RichTextEditorInstance): Promise<void>;
|
113
|
+
}>;
|
114
|
+
hooks: {
|
115
|
+
scrollCallback: () => void;
|
116
|
+
onContentDataChange: (richtextHelper: RichTextContentHelper) => void;
|
117
|
+
onConfigureExtensions: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>;
|
118
|
+
onContentChange: (content: string) => void;
|
119
|
+
};
|
120
|
+
rules: {
|
121
|
+
/**
|
122
|
+
*
|
123
|
+
* @param editor the editor instance
|
124
|
+
* @returns true if the editor is have selection
|
125
|
+
*/
|
126
|
+
doesEditorHaveSelection(editor: Pick<Editor, "isFocused" | "state">): boolean;
|
127
|
+
};
|
128
|
+
get: {
|
129
|
+
sharedValue: (key: string) => any;
|
130
|
+
};
|
131
|
+
} & {
|
132
|
+
dispose?: () => void;
|
133
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./RichTextEditorStore";
|
package/internal-do-not-import-from-here/ux/richtexteditorrenderer/RichTextEditorRenderer.css.d.ts
CHANGED
@@ -15,18 +15,25 @@ export declare const TextStyling: {
|
|
15
15
|
createNew: () => import("@omnia/fx-models").TextStyleConfiguration;
|
16
16
|
}>;
|
17
17
|
get: {
|
18
|
+
id: {
|
19
|
+
byClass: (classes: string) => import("@omnia/fx-models").guid;
|
20
|
+
};
|
18
21
|
configurations: {
|
19
22
|
readonly active: import("@omnia/fx-models").TextStyleConfiguration[];
|
20
23
|
readonly disabled: import("@omnia/fx-models").TextStyleConfiguration[];
|
21
24
|
readonly default: import("@omnia/fx-models").TextStyleConfiguration;
|
22
25
|
byId: (id: import("@omnia/fx-models").guid) => import("@omnia/fx-models").TextStyleConfiguration;
|
26
|
+
byIdWithDefaultFallback: (id: import("@omnia/fx-models").guid) => import("@omnia/fx-models").TextStyleConfiguration;
|
27
|
+
byFilter: (ids: Array<import("@omnia/fx-models").guid>) => import("@omnia/fx-models").TextStyleConfiguration[];
|
23
28
|
};
|
24
29
|
textStyling: {
|
30
|
+
className: (id: import("@omnia/fx-models").guid) => string;
|
25
31
|
byId: (id: import("@omnia/fx-models").guid) => any;
|
26
32
|
byConfiguration: (configuration: import("@omnia/fx-models").TextStyleConfiguration) => any;
|
27
33
|
default: () => any;
|
28
34
|
object: (id: import("@omnia/fx-models").guid) => any;
|
29
|
-
toSelector: (id: import("@omnia/fx-models").guid, selector: string) => import("typestyle/lib/types").
|
35
|
+
toSelector: (id: import("@omnia/fx-models").guid, selector: string) => import("typestyle/lib/types").NestedCSSSelectors;
|
36
|
+
allClasses: (selector?: string) => import("typestyle/lib/types").NestedCSSSelectors;
|
30
37
|
};
|
31
38
|
};
|
32
39
|
deactivated(): void;
|
@@ -40,5 +47,5 @@ export declare const TextStyling: {
|
|
40
47
|
}, name?: import("@omnia/fx-models").ContainerBreakpointTypes) => {};
|
41
48
|
device: (styles: import("typestyle/lib/types").NestedCSSProperties, breakpoint: import("@omnia/fx-models").DisplayBreakpointTypes) => {};
|
42
49
|
};
|
43
|
-
default: () => string;
|
50
|
+
default: (textColor: string) => string;
|
44
51
|
};
|
@@ -8,5 +8,5 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<TextTranslat
|
|
8
8
|
default?: import("vue").Slot;
|
9
9
|
$stable?: boolean;
|
10
10
|
}, never>;
|
11
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "text" | "icon" | "
|
11
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "text" | "icon" | "buttonSettings" | "srcLanguage" | "forceTenantLanguages" | "emit:translateCompleted"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
12
12
|
export default _default;
|
@@ -1,2 +1,6 @@
|
|
1
1
|
import { IActionHandler } from "./IActionHandler";
|
2
2
|
export declare const httpGet: IActionHandler;
|
3
|
+
export declare const httpPost: IActionHandler;
|
4
|
+
export declare const httpPut: IActionHandler;
|
5
|
+
export declare const httpDelete: IActionHandler;
|
6
|
+
export declare function handleHttpAction(verb: "get" | "post" | "put" | "delete", action: any, incomingUrl: string, body?: string): Promise<any>;
|
@@ -1,10 +1,11 @@
|
|
1
|
+
import { HttpConfig } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
|
1
2
|
export interface VelcronActionHooks<TBefore = any, TAfter = any> {
|
2
3
|
beforeHandler?: (args: TBefore) => TBefore;
|
3
4
|
afterHandler?: (args: TBefore) => TAfter;
|
4
5
|
}
|
5
6
|
export interface HttpGetBeforeActionHookArgs {
|
6
7
|
url: string;
|
7
|
-
|
8
|
+
config: HttpConfig;
|
8
9
|
}
|
9
10
|
export interface HttpGetAfterActionHookArgs {
|
10
11
|
json: string;
|
@@ -71,7 +71,7 @@ export declare const vuetifyPlugin: {
|
|
71
71
|
getDiff: (date: unknown, comparing: unknown, unit?: string) => number;
|
72
72
|
getWeekArray: (date: unknown, firstDayOfWeek?: number | string) => unknown[][];
|
73
73
|
getWeekdays: (firstDayOfWeek?: number | string, weekdayFormat?: "long" | "short" | "narrow") => string[];
|
74
|
-
getWeek: (date: unknown, firstDayOfWeek?: number | string,
|
74
|
+
getWeek: (date: unknown, firstDayOfWeek?: number | string, firstDayOfYear?: number | string) => number;
|
75
75
|
getMonth: (date: unknown) => number;
|
76
76
|
setMonth: (date: unknown, month: number) => unknown;
|
77
77
|
getDate: (date: unknown) => number;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "8.0.
|
4
|
+
"version": "8.0.543-dev",
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
@@ -20,13 +20,13 @@
|
|
20
20
|
],
|
21
21
|
"author": "Omnia Digital Workplace AB",
|
22
22
|
"dependencies": {
|
23
|
-
"@omnia/fx-models": "8.0.
|
23
|
+
"@omnia/fx-models": "8.0.543-dev",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.11.7",
|
27
27
|
"splitpanes": "3.2.0",
|
28
28
|
"vue": "3.5.21",
|
29
|
-
"vuetify": "3.
|
29
|
+
"vuetify": "3.10.0",
|
30
30
|
"tslib": "2.6.2",
|
31
31
|
"typescript": "5.8.2",
|
32
32
|
"@tiptap/vue-3": "2.1.13",
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export type RichTextEditorStore = ReturnType<typeof useRichTextEditorStore>;
|
2
|
-
export declare const useRichTextEditorStore: () => {
|
3
|
-
events: import("@omnia/fx/stores").StoreEvents<{
|
4
|
-
_sharedValue: {
|
5
|
-
[key: string]: any;
|
6
|
-
};
|
7
|
-
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
8
|
-
get: {
|
9
|
-
getSharedValue(key: string): any;
|
10
|
-
};
|
11
|
-
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
12
|
-
setSharedValue(value: {
|
13
|
-
[key: string]: any;
|
14
|
-
}): void;
|
15
|
-
}>;
|
16
|
-
} & {
|
17
|
-
dispose?: () => void;
|
18
|
-
};
|