@dxs-ts/eveli-ide 0.0.326 → 0.0.328

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 (31) hide show
  1. package/build/api-prefs/ImmutablePreference.d.ts +14 -14
  2. package/build/api-prefs/PreferenceContext.d.ts +12 -1
  3. package/build/api-prefs/initMethods.d.ts +6 -8
  4. package/build/api-prefs/profile-types.d.ts +18 -9
  5. package/build/{cssMode-fn4eJJ4O.js → cssMode-oNxO8LVV.js} +1 -1
  6. package/build/eveli-styles/StyledSection.d.ts +12 -0
  7. package/build/eveli-styles/index.d.ts +1 -0
  8. package/build/eveli-user-profile/UserAvatar.d.ts +6 -0
  9. package/build/eveli-user-profile/UserProfile.d.ts +2 -0
  10. package/build/eveli-user-profile/UserProfileEditFields.d.ts +13 -0
  11. package/build/eveli-user-profile/index.d.ts +1 -0
  12. package/build/{freemarker2-DI5jHG0P.js → freemarker2-CmmqF56R.js} +1 -1
  13. package/build/{handlebars-1JJkvVtL.js → handlebars-CYtKaJ6x.js} +1 -1
  14. package/build/{html-DS2wFicX.js → html-C9ihTXex.js} +1 -1
  15. package/build/{htmlMode--Cc_a9IW.js → htmlMode-BJ1xedge.js} +1 -1
  16. package/build/{index-Dgs3zDZ3.js → index-tEvsdG2g.js} +50319 -50043
  17. package/build/index.js +1 -1
  18. package/build/{javascript-Cn2Q69yj.js → javascript-D418JRpb.js} +1 -1
  19. package/build/{jsonMode-C_lCrSes.js → jsonMode-DRRXf0Tk.js} +1 -1
  20. package/build/{liquid-DpJFNXBC.js → liquid-a6-iZdGG.js} +1 -1
  21. package/build/{mdx-WMa8WhvF.js → mdx-B5PfHxkl.js} +1 -1
  22. package/build/{python-D4AqApRy.js → python-DC4wVYe1.js} +1 -1
  23. package/build/{razor-DnMKgU3F.js → razor-BFngQx7F.js} +1 -1
  24. package/build/routeTree.gen.d.ts +16 -3
  25. package/build/routes/secured.$locale.worker.profile.d.ts +1 -0
  26. package/build/{tsMode-DEUtAs53.js → tsMode-C34mq8u3.js} +1 -1
  27. package/build/{typescript-CPP1kSvw.js → typescript-sos1DgmZ.js} +1 -1
  28. package/build/{xml-CBdKtvj3.js → xml-DTKpmJ6B.js} +1 -1
  29. package/build/{yaml-Ckx58XwC.js → yaml-Cwh9Ub4o.js} +1 -1
  30. package/package.json +1 -1
  31. package/build/api-prefs/pref-types.d.ts +0 -29
@@ -1,28 +1,28 @@
1
- import { Preference, VisibilityRule, DataId, PreferenceId, ConfigRule } from './pref-types';
1
+ import { PrefsApi } from './profile-types';
2
2
  export interface ImmutablePreferenceInit {
3
- id: PreferenceId;
3
+ id: PrefsApi.PreferenceId;
4
4
  backendId: string | undefined;
5
- fields: readonly DataId[];
6
- visibility: Record<DataId, VisibilityRule>;
7
- config: Record<DataId, ConfigRule>;
5
+ fields: readonly PrefsApi.DataId[];
6
+ visibility: Record<PrefsApi.DataId, PrefsApi.VisibilityRule>;
7
+ config: Record<PrefsApi.DataId, PrefsApi.ConfigRule>;
8
8
  }
9
- export declare class ImmutablePreference implements Preference {
9
+ export declare class ImmutablePreference implements PrefsApi.Preference {
10
10
  private _backendId;
11
11
  private _id;
12
12
  private _fields;
13
13
  private _visibility;
14
14
  private _config;
15
15
  constructor(init: ImmutablePreferenceInit);
16
- initVisibility(init: ImmutablePreferenceInit): Record<DataId, VisibilityRule>;
16
+ initVisibility(init: ImmutablePreferenceInit): Record<PrefsApi.DataId, PrefsApi.VisibilityRule>;
17
17
  get id(): string;
18
18
  get backendId(): string | undefined;
19
19
  get fields(): readonly string[];
20
- get config(): ConfigRule[];
21
- get visibility(): VisibilityRule[];
22
- getVisibility(dataId: DataId): VisibilityRule;
23
- getConfig(dataId: DataId): ConfigRule | undefined;
24
- withConfig(config: ConfigRule | (ConfigRule[])): ImmutablePreference;
25
- withVisibility(newValue: VisibilityRule): ImmutablePreference;
26
- withVisibleFields(newValueFields: DataId[]): ImmutablePreference;
20
+ get config(): PrefsApi.ConfigRule[];
21
+ get visibility(): PrefsApi.VisibilityRule[];
22
+ getVisibility(dataId: PrefsApi.DataId): PrefsApi.VisibilityRule;
23
+ getConfig(dataId: PrefsApi.DataId): PrefsApi.ConfigRule | undefined;
24
+ withConfig(config: PrefsApi.ConfigRule | (PrefsApi.ConfigRule[])): ImmutablePreference;
25
+ withVisibility(newValue: PrefsApi.VisibilityRule): ImmutablePreference;
26
+ withVisibleFields(newValueFields: PrefsApi.DataId[]): ImmutablePreference;
27
27
  clone(init: Partial<ImmutablePreferenceInit>): ImmutablePreferenceInit;
28
28
  }
@@ -1,5 +1,16 @@
1
1
  import { default as React } from 'react';
2
- import { PreferenceContextType, PreferenceInit } from './pref-types';
2
+ import { PrefsApi } from './profile-types';
3
+ export interface PreferenceInit {
4
+ id: PrefsApi.PreferenceId;
5
+ fields: PrefsApi.DataId[];
6
+ config?: PrefsApi.ConfigRule;
7
+ }
8
+ export interface PreferenceContextType {
9
+ pref: PrefsApi.Preference;
10
+ withConfig(config: PrefsApi.ConfigRule): void;
11
+ withVisibility(visibility: Omit<PrefsApi.VisibilityRule, "id">): void;
12
+ withVisibleFields(visibility: PrefsApi.DataId[]): void;
13
+ }
3
14
  export declare function createPrefContext(hardInit?: PreferenceInit): {
4
15
  Context: React.Context<PreferenceContextType>;
5
16
  Provider: React.FC<{
@@ -1,11 +1,9 @@
1
- import { PreferenceInit, VisibilityRule, DataId, ConfigRule } from './pref-types';
2
1
  import { ImmutablePreference } from './ImmutablePreference';
3
2
  import { PrefsApi } from './profile-types';
4
- export type WithVisibleFields = (visibleFields: DataId[]) => void;
5
- export type WithVisibility = (visibility: Omit<VisibilityRule, "id">) => void;
6
- export type WithConfig = (config: ConfigRule | (ConfigRule[])) => void;
7
- export declare function initPreference(init: PreferenceInit, initProfile: PrefsApi.UiSettings | undefined): ImmutablePreference;
3
+ export type WithVisibleFields = (visibleFields: PrefsApi.DataId[]) => void;
4
+ export type WithVisibility = (visibility: Omit<PrefsApi.VisibilityRule, "id">) => void;
5
+ export type WithConfig = (config: PrefsApi.ConfigRule | (PrefsApi.ConfigRule[])) => void;
8
6
  export declare function parsePreference(settingsId: string, initProfile: PrefsApi.UiSettings | undefined): ImmutablePreference;
9
- export declare function initWithConfig(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, config: ConfigRule | (ConfigRule[])): void;
10
- export declare function initWithVisibleFields(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, visibility: DataId[]): void;
11
- export declare function initWithVisibility(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, visibility: VisibilityRule): void;
7
+ export declare function initWithConfig(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, config: PrefsApi.ConfigRule | (PrefsApi.ConfigRule[])): void;
8
+ export declare function initWithVisibleFields(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, visibility: PrefsApi.DataId[]): void;
9
+ export declare function initWithVisibility(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, visibility: PrefsApi.VisibilityRule): void;
@@ -9,6 +9,24 @@ export declare namespace PrefsApi {
9
9
  updateUiSettings(commands: UpsertUiSettings): Promise<UserProfile>;
10
10
  findUiSettings(settingsId: string): Promise<UiSettings | undefined>;
11
11
  }
12
+ type PreferenceId = string;
13
+ type DataId = string;
14
+ interface VisibilityRule {
15
+ dataId: DataId;
16
+ enabled: boolean;
17
+ }
18
+ interface ConfigRule {
19
+ dataId: DataId;
20
+ value: string;
21
+ }
22
+ interface Preference {
23
+ id: PreferenceId;
24
+ fields: readonly DataId[];
25
+ visibility: readonly VisibilityRule[];
26
+ config: readonly ConfigRule[];
27
+ getVisibility(dataId: DataId): VisibilityRule;
28
+ getConfig(dataId: DataId): ConfigRule | undefined;
29
+ }
12
30
  type NotificationType = string;
13
31
  interface UserDetails {
14
32
  username: string;
@@ -93,13 +111,4 @@ export declare namespace PrefsApi {
93
111
  interface ArchiveUserProfile extends UserProfileUpdateCommand<'ArchiveUserProfile'> {
94
112
  commandType: 'ArchiveUserProfile';
95
113
  }
96
- interface UserProfileDescriptor {
97
- id: string;
98
- email: string | undefined;
99
- displayName: string;
100
- entry: UserProfile;
101
- created: string;
102
- updated: string;
103
- notificationSettings: NotificationSetting[];
104
- }
105
114
  }
@@ -1,4 +1,4 @@
1
- import { m as et } from "./index-Dgs3zDZ3.js";
1
+ import { m as et } from "./index-tEvsdG2g.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export interface SectionProps {
3
+ children: React.ReactNode;
4
+ width?: string;
5
+ loadingValue?: any;
6
+ required?: boolean;
7
+ }
8
+ export declare const Section: React.FC<SectionProps>;
9
+ export declare const SectionRow: React.FC<{
10
+ label: React.ReactNode;
11
+ value: string | number | undefined;
12
+ }>;
@@ -2,6 +2,7 @@ export { StyledTreeItem as TreeItem, StyledTreeItemRoot as TreeItemRoot, StyledT
2
2
  export { StyledSelect as Select, StyledSelectMultiple as SelectMultiple } from './StyledSelect';
3
3
  export { StyledSwitch as Switch, } from './StyledSwitch';
4
4
  export { StyledTransferList as TransferList, } from './StyledTransferList';
5
+ export * from './StyledSection';
5
6
  export { StyledInputLabel as InputLabel, StyledTextField as TextField, StyledNumberField as NumberField, StyledFileField as FileField, StyledSearchField as SearchField, StyledDateField as DateField, StyledDateTimeField as DateTimeField } from './StyledInputField';
6
7
  export { StyledCancelButton as CancelButton } from './StyledButtons';
7
8
  export { StyledConfirmDialog as ConfirmDialog } from './StyledConfirmDialog';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { PrefsApi } from '../api-prefs';
3
+ declare const UserAvatar: React.FC<{
4
+ user: PrefsApi.UserProfile;
5
+ }>;
6
+ export { UserAvatar };
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const UserProfile: React.FC<{}>;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { PrefsApi } from '../api-prefs';
3
+ declare const FirstName: React.FC<{
4
+ init: PrefsApi.UserProfile;
5
+ }>;
6
+ declare const LastName: React.FC<{
7
+ init: PrefsApi.UserProfile;
8
+ }>;
9
+ declare const EmailAddress: React.FC<{
10
+ init: PrefsApi.UserProfile;
11
+ }>;
12
+ declare const NotificationSettings: React.FC<{}>;
13
+ export { FirstName, LastName, EmailAddress, NotificationSettings };
@@ -0,0 +1 @@
1
+ export * from './UserProfile';
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-Dgs3zDZ3.js";
1
+ import { m as f } from "./index-tEvsdG2g.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-Dgs3zDZ3.js";
1
+ import { m as l } from "./index-tEvsdG2g.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-Dgs3zDZ3.js";
1
+ import { m as s } from "./index-tEvsdG2g.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,4 +1,4 @@
1
- import { m as lt } from "./index-Dgs3zDZ3.js";
1
+ import { m as lt } from "./index-tEvsdG2g.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)