@omnia/fx 7.0.466-dev → 7.0.467-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.
Files changed (32) hide show
  1. package/internal-do-not-import-from-here/shared/http/Bring.d.ts +22 -1
  2. package/internal-do-not-import-from-here/ux/UxModels.d.ts +1 -0
  3. package/internal-do-not-import-from-here/ux/app/management/tabs/instance/style/EditAliasDialog.css.d.ts +5 -0
  4. package/internal-do-not-import-from-here/ux/app/management/tabs/instance/style/ItemAction.css.d.ts +4 -0
  5. package/internal-do-not-import-from-here/ux/app/management/tabs/instance/style/Listing.css.d.ts +1 -0
  6. package/internal-do-not-import-from-here/ux/app/management/tabs/layouts/addlayout/AddLayout.css.d.ts +7 -0
  7. package/internal-do-not-import-from-here/ux/app/management/tabs/layouts/style/{LayoutTab.css.d.ts → LayoutListingStyle.css.d.ts} +0 -0
  8. package/internal-do-not-import-from-here/ux/app/management/tabs/layouts/style/LayoutTabStyle.css.d.ts +5 -0
  9. package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/AppInstanceEditingJourney.d.ts +34 -0
  10. package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/BladeBase.d.ts +14 -0
  11. package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/EditEnterprisePropertiesBlade.d.ts +26 -0
  12. package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/EditProperiesBlade.d.ts +40 -0
  13. package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/IAppInstanceEditingJourney.d.ts +20 -0
  14. package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/index.d.ts +1 -0
  15. package/internal-do-not-import-from-here/ux/appprovisioning/index.d.ts +1 -0
  16. package/internal-do-not-import-from-here/ux/features/FeatureActivation.css.d.ts +5 -0
  17. package/internal-do-not-import-from-here/ux/features/FeatureActivation.d.ts +1 -0
  18. package/internal-do-not-import-from-here/ux/models/WizardStyles.d.ts +1 -0
  19. package/internal-do-not-import-from-here/ux/permissioninput/PermissionInput.css.d.ts +5 -0
  20. package/internal-do-not-import-from-here/ux/permissioninput/PermissionInput.d.ts +1 -0
  21. package/internal-do-not-import-from-here/ux/richtexteditor/IRichTextEditor.d.ts +1 -0
  22. package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditor.d.ts +3 -2
  23. package/internal-do-not-import-from-here/ux/social/Comment.d.ts +5 -4
  24. package/internal-do-not-import-from-here/ux/social/CommentDialog.css.d.ts +7 -0
  25. package/internal-do-not-import-from-here/ux/social/CommentDialog.d.ts +36 -0
  26. package/internal-do-not-import-from-here/ux/social/CommentDialogStore.d.ts +27 -0
  27. package/internal-do-not-import-from-here/ux/social/PeopleTagging.d.ts +1 -0
  28. package/internal-do-not-import-from-here/ux/social/loc/localize.d.ts +1 -0
  29. package/internal-do-not-import-from-here/ux/social/templates/CommentLikeTemplate.css.d.ts +2 -0
  30. package/internal-do-not-import-from-here/ux/social/templates/CommentLikeTemplate.d.ts +25 -13
  31. package/internal-do-not-import-from-here/wcdefinitions.json +1 -1
  32. package/package.json +2 -2
@@ -29,18 +29,39 @@ export declare class BringBuilder {
29
29
  * @memberof BringBuilder
30
30
  */
31
31
  withCredentials(credentials?: BringCredentials): BringBuilder;
32
+ /**
33
+ * Sets up the client defaults to call a json api
34
+ *
35
+ * @return {*}
36
+ * @memberof BringBuilder
37
+ */
38
+ withJsonApiSupport(): this;
39
+ /**
40
+ * Creates the Bring instance with the configuration options
41
+ *
42
+ * @return {*} {Bring}
43
+ * @memberof BringBuilder
44
+ */
32
45
  build(): Bring;
33
46
  }
34
47
  export declare class Bring {
35
48
  _baseConfig: BringConfig | Future<BringConfig> | Promise<BringConfig>;
36
49
  /**
37
- * Create a new instance of Bring
50
+ * Create a new instance of Bring using the BringBuilder
38
51
  * @static
39
52
  * @param {(BringConfig | Future<BringConfig> | Promise<BringConfig>)} [config]
40
53
  * @return {*} {Bring}
41
54
  * @memberof Bring
42
55
  */
43
56
  static new(config?: BringConfig): BringBuilder;
57
+ /**
58
+ * Creates a new instance of Bring with default configurations for calling Omnia Service Apis
59
+ *
60
+ * @static
61
+ * @return {*}
62
+ * @memberof Bring
63
+ */
64
+ static default(config?: BringConfig): Bring;
44
65
  constructor(config?: BringConfig | Future<BringConfig> | Promise<BringConfig>);
45
66
  /**
46
67
  *Performs a GET request for provided url
@@ -651,6 +651,7 @@ export interface OmniaUxLocalization {
651
651
  ShowResultCount: string;
652
652
  ShowZeroResultCountValues: string;
653
653
  DefaultVisibleIconButtons: string;
654
+ IconButtonsWidth: string;
654
655
  };
655
656
  AddFilter: string;
656
657
  SaveFilterState: string;
@@ -0,0 +1,5 @@
1
+ import { types } from "typestyle";
2
+ export declare const EditAliasDialogStyles: {
3
+ buttonStyle?: types.NestedCSSProperties;
4
+ fieldStyles?: types.NestedCSSProperties;
5
+ };
@@ -0,0 +1,4 @@
1
+ import { types } from "typestyle";
2
+ export declare const ItemActionStyles: {
3
+ buttonStyle?: types.NestedCSSProperties;
4
+ };
@@ -8,4 +8,5 @@ export declare const ListingStyles: {
8
8
  mainRowActive?: types.NestedCSSProperties;
9
9
  cotentRowActive?: types.NestedCSSProperties;
10
10
  searchBox?: types.NestedCSSProperties;
11
+ tabStyle?: types.NestedCSSProperties;
11
12
  };
@@ -0,0 +1,7 @@
1
+ import { NestedCSSPropertiesExtends } from "@omnia/fx-models";
2
+ import { ITheming } from "@omnia/fx/ux";
3
+ import { types } from "typestyle";
4
+ export declare const AddLayoutStyles: {
5
+ headerDialogStyle?: (theming: ITheming) => NestedCSSPropertiesExtends;
6
+ buttonStyle?: types.NestedCSSProperties;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { NestedCSSPropertiesExtends } from "@omnia/fx-models";
2
+ import { ITheming } from "@omnia/fx/ux";
3
+ export declare const LayoutTabStyles: {
4
+ headerDialogStyle?: (theming: ITheming) => NestedCSSPropertiesExtends;
5
+ };
@@ -0,0 +1,34 @@
1
+ import { VueComponentBase } from "../..";
2
+ import { IAppInstanceEditingJourney } from "./IAppInstanceEditingJourney";
3
+ import { AppInstance } from "../../../models";
4
+ import { AppStore } from "../../../stores";
5
+ export declare class AppInstanceEditingJourneyComponent extends VueComponentBase implements IAppInstanceEditingJourney {
6
+ appInstance: AppInstance;
7
+ content?: JSX.Element;
8
+ onCanceled?: () => void;
9
+ onCompleted?: (appInstance: AppInstance) => void;
10
+ onSave: (appInstance: AppInstance) => Promise<string>;
11
+ private omniaTheming;
12
+ appStore: AppStore;
13
+ private omniaUxLoc;
14
+ private blades;
15
+ private journeyInstance;
16
+ private internalAppInstance;
17
+ isSaving: boolean;
18
+ isDisplayEditEnterprisePropertiesBlade: boolean;
19
+ errorMessage: string;
20
+ private loadTemplatePromise;
21
+ created(): void;
22
+ mounted(): void;
23
+ beforeDestroy(): void;
24
+ private onJourneyInstanceCreated;
25
+ private handleSave;
26
+ private updateInternalAppInstance;
27
+ private onUpdateCompleted;
28
+ private onUpdateError;
29
+ private onCloseProgressBlade;
30
+ private getEditEnterprisePropertiesBlade;
31
+ private getEditPropertiesBlade;
32
+ private getProgressBlade;
33
+ render(): VueTsxSupport.JSX.Element;
34
+ }
@@ -0,0 +1,14 @@
1
+ import { VueComponentBase, VueComponentBaseProps } from "../..";
2
+ import { AppInstance } from "../../../models";
3
+ export declare const bladeIds: {
4
+ progressBlade: string;
5
+ propertyBlade: string;
6
+ enterprisepropertiesBlade: string;
7
+ };
8
+ export declare class BladeBase<Props = VueComponentBaseProps, EventsWithOn = {}, ScopedSlotArgs = {}> extends VueComponentBase<Props, EventsWithOn, ScopedSlotArgs> {
9
+ errorMessage: string;
10
+ isSaving: boolean;
11
+ private appStore;
12
+ constructor();
13
+ update(appInstance: AppInstance, callBack: (appInstance: AppInstance) => Promise<void>): void;
14
+ }
@@ -0,0 +1,26 @@
1
+ import { AppInstance, JourneyInstance } from "../../../models";
2
+ import { IValidator } from "../../validation";
3
+ import { BladeBase } from "./BladeBase";
4
+ export interface EditEnterprisePropertiesBladeProps {
5
+ lastStep: boolean;
6
+ appInstance: AppInstance;
7
+ canceled?: () => void;
8
+ completed?: (appInstance: AppInstance) => void;
9
+ save: (appInstance: AppInstance) => Promise<void>;
10
+ content?: JSX.Element;
11
+ journeyInstance: JourneyInstance;
12
+ useValidator: IValidator;
13
+ }
14
+ export declare class EditEnterprisePropertiesBlade extends BladeBase<EditEnterprisePropertiesBladeProps> {
15
+ lastStep: AppInstance;
16
+ appInstance: AppInstance;
17
+ canceled?: () => void;
18
+ completed?: (appInstance: AppInstance) => void;
19
+ save: (appInstance: AppInstance) => Promise<void>;
20
+ content?: JSX.Element;
21
+ journeyInstance: JourneyInstance;
22
+ private omniaTheming;
23
+ private omniaUxLoc;
24
+ private onCloseEnterprisePropertiesBlade;
25
+ render(): VueTsxSupport.JSX.Element;
26
+ }
@@ -0,0 +1,40 @@
1
+ import { AppInstance, JourneyInstance } from "../../../models";
2
+ import { IValidator } from "../../validation";
3
+ import { BladeBase } from "./BladeBase";
4
+ export interface EditProperiesBladeProps {
5
+ lastStep: boolean;
6
+ appInstance: AppInstance;
7
+ canceled?: () => void;
8
+ completed?: (appInstance: AppInstance) => void;
9
+ save: (appInstance: AppInstance) => Promise<void>;
10
+ content?: JSX.Element;
11
+ journeyInstance: JourneyInstance;
12
+ useValidator: IValidator;
13
+ next?: (appInstance: AppInstance) => void;
14
+ }
15
+ export declare class EditProperiesBlade extends BladeBase<EditProperiesBladeProps> {
16
+ lastStep: AppInstance;
17
+ appInstance: AppInstance;
18
+ onCanceled?: () => void;
19
+ onCompleted?: (appInstance: AppInstance) => void;
20
+ onNext?: (appInstance: AppInstance) => void;
21
+ save: (appInstance: AppInstance) => Promise<void>;
22
+ content?: JSX.Element;
23
+ journeyInstance: JourneyInstance;
24
+ private omniaTheming;
25
+ private mediaPickerStore;
26
+ private mediaPickerService;
27
+ private omniaUxLoc;
28
+ private internalAppInstance;
29
+ private rollupRatios;
30
+ private isRenderMediaPicker;
31
+ private isMediaPickerReady;
32
+ private imagePlaceholderWrapperStyle;
33
+ private showImagePlaceholder;
34
+ created(): void;
35
+ private onAppInstanceChange;
36
+ private getImageProviderContext;
37
+ private setDataChanged;
38
+ private renderAppInstanceSettings;
39
+ render(): VueTsxSupport.JSX.Element;
40
+ }
@@ -0,0 +1,20 @@
1
+ import { TsxAllowUnknowProperties } from "../..";
2
+ import { AppInstance } from "../../../models";
3
+ export interface IAppInstanceEditingJourney {
4
+ appInstance: AppInstance;
5
+ content?: JSX.Element;
6
+ onCanceled?: () => void;
7
+ onSave: (appInstance: AppInstance) => Promise<string>;
8
+ onCompleted?: (appInstance: AppInstance) => void;
9
+ }
10
+ declare global {
11
+ namespace VueTsxSupport.JSX {
12
+ interface Element {
13
+ }
14
+ interface ElementClass {
15
+ }
16
+ interface IntrinsicElements {
17
+ "omfx-appinstance-editing-journey": TsxAllowUnknowProperties<IAppInstanceEditingJourney>;
18
+ }
19
+ }
20
+ }
@@ -0,0 +1 @@
1
+ export * from "./IAppInstanceEditingJourney";
@@ -10,6 +10,7 @@ export * from "./appprovisioningwizard";
10
10
  export * from "./appprovisioningsteps";
11
11
  export * from "./appinstanceprogressblade";
12
12
  export * from "./apppropertynamingpolicyinput";
13
+ export * from "./appinstanceeditingjourney";
13
14
  export * from "./apppolicyvalidationstate";
14
15
  export * from "./IAppProvisioningValidatorComponent";
15
16
  export * from "./Enums";
@@ -0,0 +1,5 @@
1
+ import { types } from "typestyle";
2
+ export declare const FeatureActivationStyles: {
3
+ headerExpansionPanelStyle?: types.NestedCSSProperties;
4
+ expansionContentStyle?: types.NestedCSSProperties;
5
+ };
@@ -63,6 +63,7 @@ export declare class FeatureActivation extends VueComponentBase<IFeatureActivati
63
63
  private appInstance;
64
64
  private appTemplate;
65
65
  private colors;
66
+ private styles;
66
67
  created(): void;
67
68
  beforeDestroy(): void;
68
69
  get isLoading(): boolean;
@@ -1,6 +1,7 @@
1
1
  import { types } from "typestyle";
2
2
  export declare const WizardStyles: {
3
3
  container?: types.NestedCSSProperties;
4
+ card?: types.NestedCSSProperties;
4
5
  header?: types.NestedCSSProperties;
5
6
  content?: types.NestedCSSProperties;
6
7
  bottom?: types.NestedCSSProperties;
@@ -1,3 +1,8 @@
1
1
  export declare const permissionInputStyles: {
2
2
  error: string;
3
3
  };
4
+ import { types } from "typestyle";
5
+ export declare const EditAliasDialogStyles2: {
6
+ buttonStyle?: types.NestedCSSProperties;
7
+ fieldStyles?: types.NestedCSSProperties;
8
+ };
@@ -23,6 +23,7 @@ export declare class PermissionInput extends VueComponentBase implements IWebCom
23
23
  [roleId: string]: Array<PermissionBinding>;
24
24
  };
25
25
  useValidator: IValidator;
26
+ private styles;
26
27
  validator: IValidator;
27
28
  isResolving: boolean;
28
29
  errMsg: string;
@@ -57,6 +57,7 @@ export interface IRichTextEditor {
57
57
  onInstanceCreated?: (instance: IRichTextEditorInstance) => void;
58
58
  onBlur?: () => void;
59
59
  onFocus?: () => void;
60
+ registerFocus?: (callback: () => void) => void;
60
61
  /**
61
62
  * Configure all extesions before passing into RTE
62
63
  * @param {RichTextEditorExtension[]} currentExtensions The first number to add.
@@ -13,7 +13,6 @@ export default class RichTextEditor extends VueComponentBase implements IWebComp
13
13
  initialContent: string;
14
14
  onContentChange: (content: string) => void;
15
15
  onContentDataChange?: (richtextHelper: RichTextContentHelper) => void;
16
- onInstanceCreated?: (inst: IRichTextEditorInstance) => void;
17
16
  onBlur?: () => void;
18
17
  onFocus?: () => void;
19
18
  placeholder: RichTextEditorPlaceHolder;
@@ -29,6 +28,7 @@ export default class RichTextEditor extends VueComponentBase implements IWebComp
29
28
  onConfiguredExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>;
30
29
  ariaDescribedby?: string;
31
30
  ariaInvalid?: boolean;
31
+ registerFocus?: (callback: () => void) => void;
32
32
  omniaCtx: OmniaContext;
33
33
  settingsService: SettingsService<RichTextEditorSettingsModel>;
34
34
  directionStore: DirectionRuleStore;
@@ -63,6 +63,8 @@ export default class RichTextEditor extends VueComponentBase implements IWebComp
63
63
  onTopicIdChange(newValue: boolean, oldValue: boolean): void;
64
64
  created(): void;
65
65
  mounted(): void;
66
+ beforeDestroy(): void;
67
+ private focusEditor;
66
68
  updateContent(content: string): void;
67
69
  initSubscribedExtensions(): void;
68
70
  registrationResolver(registration: RichTextEditorExtensionRegistration): RichTextEditorExtension;
@@ -76,7 +78,6 @@ export default class RichTextEditor extends VueComponentBase implements IWebComp
76
78
  private setExtensionData;
77
79
  get builtInExtensions(): any[];
78
80
  get elementWidth(): number;
79
- beforeDestroy(): void;
80
81
  render(): VueTsxSupport.JSX.Element;
81
82
  renderEditor(): VueTsxSupport.JSX.Element;
82
83
  renderToolbarItem(menubar: any, config: any): import("vue").VNode;
@@ -1,5 +1,5 @@
1
1
  import { IWebComponentInstance } from "../..";
2
- import { Comment, OmitProperties, ThemeDefinition, ResolvedUserIdentity, IOmniaContext } from "../../models";
2
+ import { Comment, OmitProperties, ThemeDefinition, ResolvedUserIdentity, IOmniaContext, IBlockInstance } from "../../models";
3
3
  import { ICommentComponent } from "./IComment";
4
4
  import { CommentLocalization } from "./loc/localize";
5
5
  import "./Comment.css";
@@ -12,6 +12,7 @@ export declare class CommentComponent extends VueComponentBase implements IWebCo
12
12
  directionStore: DirectionRuleStore;
13
13
  featureStore: FeatureStore;
14
14
  omniaContext: IOmniaContext;
15
+ protected blockInstance: IBlockInstance;
15
16
  commentLoc: CommentLocalization.locInterface;
16
17
  showMoreSize: number;
17
18
  template: string;
@@ -34,17 +35,17 @@ export declare class CommentComponent extends VueComponentBase implements IWebCo
34
35
  isLoading: boolean;
35
36
  showOnlyBestReply: boolean;
36
37
  currentUser: ResolvedUserIdentity;
37
- commentAddingHashKey: string;
38
38
  commentsReplyingHashKey: {
39
39
  [id: string]: string;
40
40
  };
41
41
  commentsHashKey: {
42
42
  [id: string]: string;
43
43
  };
44
- commentAdding: Comment;
45
44
  commentsReplying: {
46
45
  [id: string]: Comment;
47
46
  };
47
+ commentAddingHashKey: string;
48
+ commentAdding: Comment;
48
49
  currentShowMoreSize: {
49
50
  [id: string]: number;
50
51
  };
@@ -61,7 +62,7 @@ export declare class CommentComponent extends VueComponentBase implements IWebCo
61
62
  extendCurrentShowMoreSize(id: string, size?: number): void;
62
63
  onCommentAdded: (addedComment: boolean, commentId: string, parentComment?: Comment) => void;
63
64
  onCancelReply(comment: Comment): void;
64
- onOpenReply(commentToReplyOn: Comment): void;
65
+ onOpenReply(commentToReplyOn: Comment): Comment;
65
66
  isElementInViewport(el: any): boolean;
66
67
  getCommentsCountLabel(commentsCount: number): string;
67
68
  renderTopicComments(): VueTsxSupport.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ThemeStyling } from "@omnia/fx-models";
2
+ import { ITheming } from "..";
3
+ export declare const CommentDialogStyles: {
4
+ footerWrapper: (theming: ITheming, cardStyling: ThemeStyling) => string;
5
+ hide: string;
6
+ show: string;
7
+ };
@@ -0,0 +1,36 @@
1
+ import { IWebComponentInstance } from "../..";
2
+ import { VueComponentBase } from "..";
3
+ export declare class CommentDialogComponent extends VueComponentBase implements IWebComponentInstance {
4
+ private subscriptionHandler;
5
+ private commentDialogStore;
6
+ private themeStore;
7
+ private commentLoc;
8
+ private omniaLoc;
9
+ private templateSettingsHash;
10
+ private dialogTheme;
11
+ private dialogModel;
12
+ private showDialog;
13
+ private resetContent;
14
+ private comment;
15
+ private dialogContentId;
16
+ private textareaIdPrefix;
17
+ private isAddingOrUpdatingComment;
18
+ private mode;
19
+ private blockId;
20
+ private saveCallback;
21
+ private cancelCallback;
22
+ private focusEditorInputs;
23
+ created(): void;
24
+ mounted(): void;
25
+ private createTempInput;
26
+ private focusInput;
27
+ private focusInputField;
28
+ private isRichTextMode;
29
+ private onContentChange;
30
+ private onMentionChanged;
31
+ private onClose;
32
+ private onSave;
33
+ renderEditors(h: any): VueTsxSupport.JSX.Element[];
34
+ renderMainContent(h: any): VueTsxSupport.JSX.Element;
35
+ render(h: any): VueTsxSupport.JSX.Element;
36
+ }
@@ -0,0 +1,27 @@
1
+ import { Comment, CommentLikeTemplateSettings } from "@omnia/fx-models";
2
+ import { Store } from "@omnia/fx/stores";
3
+ export declare enum CommentDialogModes {
4
+ Add = 0,
5
+ Reply = 1,
6
+ Edit = 2
7
+ }
8
+ export interface OpenCommentDialogInput {
9
+ blockId: string;
10
+ comment: Comment;
11
+ mode: CommentDialogModes;
12
+ onSave: (comment: Comment) => Promise<void>;
13
+ onCancel?: (comment: Comment) => void;
14
+ }
15
+ export declare class CommentDialogStore extends Store {
16
+ templateSettingsHash: import("@omnia/fx/stores").StoreState<{
17
+ [blockId: string]: CommentLikeTemplateSettings;
18
+ }>;
19
+ commentDialogTag: string;
20
+ constructor();
21
+ protected onActivated(): void;
22
+ mutations: {
23
+ registerEditorTemplateSettings: import("@omnia/fx/stores").StoreMutation<(blockId: string, templateSettings: CommentLikeTemplateSettings) => void, (blockId: string, templateSettings: CommentLikeTemplateSettings) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
24
+ openDialog: import("@omnia/fx/stores").StoreMutation<(input: OpenCommentDialogInput) => void, (input: OpenCommentDialogInput) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
25
+ closeDialog: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
26
+ };
27
+ }
@@ -13,6 +13,7 @@ export declare class PeopleTaggingComponent extends VueComponentBase implements
13
13
  contentChanged: (content: string) => void;
14
14
  mentionChanged: (mentions: Array<ResolvedUserIdentity>) => void;
15
15
  autoFocus?: boolean;
16
+ registerFocus?: (callback: () => void) => void;
16
17
  spContext: OmniaContext;
17
18
  settingsService: SettingsService<RichTextEditorSettingsModel>;
18
19
  private internalResetContent;
@@ -24,6 +24,7 @@ export declare module CommentLocalization {
24
24
  LikesThis: string;
25
25
  DeleteComment: string;
26
26
  ConfirmDelete: string;
27
+ ValidateCommentMessage: string;
27
28
  CommentCountLabel: {
28
29
  ZeroComment: string;
29
30
  OneComment: string;
@@ -24,4 +24,6 @@ export declare const CommentLikeTemplateStyles: {
24
24
  };
25
25
  };
26
26
  personWrapper: string;
27
+ mobileTextArea: string;
28
+ errorMessage: string;
27
29
  };
@@ -3,7 +3,7 @@ import { CommentLikeStore, ICommentLikeService } from "../../../stores";
3
3
  import { OmniaContext } from "../../..";
4
4
  import { type Comment, type CommentLikeTemplateSettings, type ThemeDefinition, ResolvedUserIdentity } from "../../../models";
5
5
  import { ICommentTemplate } from "../extensibilities/ICommentTemplate";
6
- import { Theming, ThemeStore, VueComponentBase } from "../..";
6
+ import { Theming, ThemeStore, VueComponentBase, BlockInstance } from "../..";
7
7
  export interface CommentLikeTemplateDynamicInput {
8
8
  service: ICommentLikeService;
9
9
  likeListingTemplate?: string;
@@ -16,7 +16,7 @@ export declare class CommentLikeTemplate extends VueComponentBase<{}, {}, {}> im
16
16
  currentUser: ResolvedUserIdentity;
17
17
  canShowEditDialogOnLoad?: boolean;
18
18
  canLike?: boolean;
19
- openReply: (commentToReplyOn: Comment) => void;
19
+ openReply: (commentToReplyOn: Comment) => Comment;
20
20
  cancelReply: (comment: Comment) => void;
21
21
  refresh: (addedComment: boolean) => void;
22
22
  additionalRoles?: Array<string>;
@@ -28,6 +28,8 @@ export declare class CommentLikeTemplate extends VueComponentBase<{}, {}, {}> im
28
28
  store: CommentLikeStore;
29
29
  omniaCtx: OmniaContext;
30
30
  themeStore: ThemeStore;
31
+ protected blockInstance: BlockInstance;
32
+ private commentDialogStore;
31
33
  dialogTheme: Theming;
32
34
  private dateFormat;
33
35
  private isAdd;
@@ -42,26 +44,36 @@ export declare class CommentLikeTemplate extends VueComponentBase<{}, {}, {}> im
42
44
  private resetContent;
43
45
  private isRTEPlaceholderClicked;
44
46
  private isLoadingRTE;
45
- private dialogModel;
47
+ private isMobile;
48
+ private observer;
49
+ private isValidComment;
46
50
  private deleteDialogModel;
47
51
  onTopicIdChange(newValue: Comment, oldValue: Comment): void;
48
52
  created(): void;
49
53
  mounted(): void;
50
- getReplyToComment(): Comment;
51
- getSocialReactions(): import("@omnia/fx-models").Like[];
52
- onClickReply(): void;
53
- onClickMarkBestReply(): void;
54
- onClickRemoveReplyToComment(): void;
55
- onClickDelete(): void;
56
- getContentInsideTag(content: string): string;
54
+ beforeDestroy(): void;
55
+ private openMobileDialog;
56
+ private initializeObserverLazyLoadEditor;
57
+ private loadRichTextEditor;
58
+ private getReplyToComment;
59
+ private getSocialReactions;
60
+ private onClickReply;
61
+ private onClickEdit;
62
+ private onClickMarkBestReply;
63
+ private onClickRemoveReplyToComment;
64
+ private onClickDelete;
65
+ private getContentInsideTag;
66
+ private trimCommentContent;
67
+ private onDialogCancel;
68
+ private onDialogSave;
57
69
  onSave(): void;
70
+ private saveCommentInternal;
71
+ private validateComment;
58
72
  onContentUpdate(content: string): void;
59
73
  onMentionUpdate(mentionUsers: Array<ResolvedUserIdentity>): void;
60
- onEditCommentClicked(): void;
74
+ onCommentTextFieldClicked(e: Event): void;
61
75
  private renderUserLink;
62
76
  private renderTitleInfo;
63
- private renderEditDialog;
64
- private renderEdit;
65
77
  private renderEditContentBody;
66
78
  private renderEditButton;
67
79
  private renderDeleteButton;
@@ -1 +1 @@
1
- {"omfx-enterpriseproperties-taxonomyfield-value-definition":["availableParents"],"omfx-sp-language-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-targeting-filter":["filter","onFilterChanged","fullWidth"],"omfx-term-picker":["startWithIds","termSetId","preSelectedTermIds","lcid","onTermsSelected","filterOptions","validator","description"],"omfx-termset-picker":["termSetId","onChanged"],"omnia-fx-spfx-wp-settings":["onClosed","onChange"],"omfx-queryable-enterpriseproperties":["serviceId","additionalBuiltInProperties "],"omfx-app-instance-delete-blade":["appInstance","handleClose","handleDeleteCompleted"],"omfx-app-instance-permission-blade":["appInstance","handleClose","onAppPermissionsUpdated"],"omfx-app-instance-information-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-users-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-enterprise-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-provisioning-wizard":["initialAppTemplate","initialAppDefinition","initialAppInstance","onInstancePropertiesChanged","onProvisioningStarted","onProvisioningCompleted","styles","templatesToShow"],"omfx-button":["preset","icon","tooltip","size","mode","styles","onClick"],"omfx-color-picker":["display","valueBind","onValueChanged","errorMessages","validator","attachedToParent"],"omfx-confirm-dialog":["dialogOptions","onClose","styles","icon"],"omfx-context-language-picker":["onValueChanged","scopedSlots"],"omfx-datatable":["items","header","onSort","renderItem","onPaging","scrollElementSelector"],"omfx-date-time-picker":["valueBind","onValueChanged","formatter","description"],"omfx-enterpriseproperties-datetimefield-display":["settings"],"omfx-enterpriseproperty-picker":["preSelectedPropertyInternalName","propertyItems","externalPropertyItems","onChange","requiredWithValidator"],"omfx-enterprisepropertyset-picker":["preSelectedPropertySetId","propertySetItems","onChange","requiredWithValidator"],"omfx-features-journey":["onInstanceClosed"],"omfx-file-uploader":["onFileChanged","limitedFileTypes"],"omfx-numeric-indicator":["clickCallback","valueBind","label","style"],"omfx-barchart-indicator":["clickCallback","loadData","hasData","chartValues"],"omfx-heading":["styles","onChange"],"omfx-icon":["valueBind","styles","iconAttrs"],"omfx-icon-picker":["valueBind","onValueChanged","errorMessages","validator"],"omfx-iframe":["js","html","css","iframeHeight","iframeCustomStyle"],"omfx-media-imagegrid":["images","onImageSelected"],"omfx-input-language-picker":["multilingualContext"],"omfx-journey":["onInstanceCreated","onInstanceClosed","blades"],"omfx-language-picker":["valueBind","onValueChanged","scopedSlots","styles","loadLanguage"],"omfx-media-picker-image":["image","imageStyle"],"omfx-media-picker-video":["video"],"omfx-multilingual-input":["valueBind","richTextSettings","requiredWithValidator","onValueChanged"],"omfx-organizationtree":["valueBind","onNewUserSelected"],"omfx-reportees":["users","manager","onUserClick"],"omfx-permission-input":["settings","contextParams"],"omfx-persona":["largeImage","linkToProfilecard","highlight","user","onUserClick"],"omfx-post-component":["richTextSettings","cardStyle","showMoreSize","styles","allowLikes","enableMention","customSlots"],"omfx-aboutuser":["user"],"omfx-profilecard":["user","scopedSlots","appendToBody"],"omfx-profilecard-dialog":["user"],"omfx-rich-text-editor":["onContentChange","onContentDataChange","onInstanceCreated"],"omfx-rich-text-editor-renderer":["editorContent"],"omfx-rollup-empty":["text","renderingMode"],"omfx-rollup-filter":["valueBind","onFilterChange","useRollupFilterRouter"],"omfx-security-trimer":["content","alternativeContent","roles"],"omfx-settings-pane":["valueBind","onCancel","onSave"],"omfx-comment-component":["topicId","comments","template","dynamicInput","richTextSettings","enableBestReply","canMarkBestReply","sortOrder","allowLikes","cardStyle","showMoreSize","additionalRoles"],"omfx-people-tagging-component":["content","richTextSettings","enableMention","contentChanged","mentionChanged","resetContetnRte"],"omfx-like-component":["topicId","commendId","commentLikeService","likes","likeListingTemplate","extendComponents"],"omfx-like-listing-template":["likes","socialReactionStylings","currentSocialReaction","close"],"omfx-spacing-picker":["valueBind","onValueChanged"],"omfx-status-message-overlay":["content"],"omfx-template-picker":["valueBind","templates","onValueChanged"],"omfx-text-translator":["onTranslateCompleted"],"omfx-themedefinition-editor":["hideBodySettings","hideChromeSettings","hideBorderSettings","valueBind","onValueChanged","attachedToParent"],"omfx-timezone-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-url-input":["valueBind","requiredWithValidator","onValueChanged","onBlur"],"omfx-field-validation":["useValidator","checkValue","rules","getCheckValue"],"omfx-wizard":["styles","onInstanceCreated","steps"]}
1
+ {"omfx-enterpriseproperties-taxonomyfield-value-definition":["availableParents"],"omfx-sp-language-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-targeting-filter":["filter","onFilterChanged","fullWidth"],"omfx-term-picker":["startWithIds","termSetId","preSelectedTermIds","lcid","onTermsSelected","filterOptions","validator","description"],"omfx-termset-picker":["termSetId","onChanged"],"omnia-fx-spfx-wp-settings":["onClosed","onChange"],"omfx-queryable-enterpriseproperties":["serviceId","additionalBuiltInProperties "],"omfx-app-instance-delete-blade":["appInstance","handleClose","handleDeleteCompleted"],"omfx-appinstance-editing-journey":["appInstance","content","onCanceled","onSave","onCompleted"],"omfx-app-instance-permission-blade":["appInstance","handleClose","onAppPermissionsUpdated"],"omfx-app-instance-information-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-users-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-enterprise-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-provisioning-wizard":["initialAppTemplate","initialAppDefinition","initialAppInstance","onInstancePropertiesChanged","onProvisioningStarted","onProvisioningCompleted","styles","templatesToShow"],"omfx-button":["preset","icon","tooltip","size","mode","styles","onClick"],"omfx-color-picker":["display","valueBind","onValueChanged","errorMessages","validator","attachedToParent"],"omfx-confirm-dialog":["dialogOptions","onClose","styles","icon"],"omfx-context-language-picker":["onValueChanged","scopedSlots"],"omfx-datatable":["items","header","onSort","renderItem","onPaging","scrollElementSelector"],"omfx-date-time-picker":["valueBind","onValueChanged","formatter","description"],"omfx-enterpriseproperties-datetimefield-display":["settings"],"omfx-enterpriseproperty-picker":["preSelectedPropertyInternalName","propertyItems","externalPropertyItems","onChange","requiredWithValidator"],"omfx-enterprisepropertyset-picker":["preSelectedPropertySetId","propertySetItems","onChange","requiredWithValidator"],"omfx-features-journey":["onInstanceClosed"],"omfx-file-uploader":["onFileChanged","limitedFileTypes"],"omfx-numeric-indicator":["clickCallback","valueBind","label","style"],"omfx-barchart-indicator":["clickCallback","loadData","hasData","chartValues"],"omfx-heading":["styles","onChange"],"omfx-icon":["valueBind","styles","iconAttrs"],"omfx-icon-picker":["valueBind","onValueChanged","errorMessages","validator"],"omfx-iframe":["js","html","css","iframeHeight","iframeCustomStyle"],"omfx-media-imagegrid":["images","onImageSelected"],"omfx-input-language-picker":["multilingualContext"],"omfx-journey":["onInstanceCreated","onInstanceClosed","blades"],"omfx-language-picker":["valueBind","onValueChanged","scopedSlots","styles","loadLanguage"],"omfx-media-picker-image":["image","imageStyle"],"omfx-media-picker-video":["video"],"omfx-multilingual-input":["valueBind","richTextSettings","requiredWithValidator","onValueChanged"],"omfx-organizationtree":["valueBind","onNewUserSelected"],"omfx-reportees":["users","manager","onUserClick"],"omfx-permission-input":["settings","contextParams"],"omfx-persona":["largeImage","linkToProfilecard","highlight","user","onUserClick"],"omfx-post-component":["richTextSettings","cardStyle","showMoreSize","styles","allowLikes","enableMention","customSlots"],"omfx-aboutuser":["user"],"omfx-profilecard":["user","scopedSlots","appendToBody"],"omfx-profilecard-dialog":["user"],"omfx-rich-text-editor":["onContentChange","onContentDataChange","onInstanceCreated"],"omfx-rich-text-editor-renderer":["editorContent"],"omfx-rollup-empty":["text","renderingMode"],"omfx-rollup-filter":["valueBind","onFilterChange","useRollupFilterRouter"],"omfx-security-trimer":["content","alternativeContent","roles"],"omfx-settings-pane":["valueBind","onCancel","onSave"],"omfx-comment-component":["topicId","comments","template","dynamicInput","richTextSettings","enableBestReply","canMarkBestReply","sortOrder","allowLikes","cardStyle","showMoreSize","additionalRoles"],"omfx-people-tagging-component":["content","richTextSettings","enableMention","contentChanged","mentionChanged","resetContetnRte"],"omfx-like-component":["topicId","commendId","commentLikeService","likes","likeListingTemplate","extendComponents"],"omfx-like-listing-template":["likes","socialReactionStylings","currentSocialReaction","close"],"omfx-spacing-picker":["valueBind","onValueChanged"],"omfx-status-message-overlay":["content"],"omfx-template-picker":["valueBind","templates","onValueChanged"],"omfx-text-translator":["onTranslateCompleted"],"omfx-themedefinition-editor":["hideBodySettings","hideChromeSettings","hideBorderSettings","valueBind","onValueChanged","attachedToParent"],"omfx-timezone-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-url-input":["valueBind","requiredWithValidator","onValueChanged","onBlur"],"omfx-field-validation":["useValidator","checkValue","rules","getCheckValue"],"omfx-wizard":["styles","onInstanceCreated","steps"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "7.0.466-dev",
4
+ "version": "7.0.467-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,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "7.0.466-dev",
23
+ "@omnia/fx-models": "7.0.467-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",