@dxs-ts/eveli-ide 0.0.324 → 0.0.325

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 +1 -6
  2. package/build/api-prefs/initMethods.d.ts +1 -3
  3. package/build/api-prefs/pref-types.d.ts +0 -8
  4. package/build/api-prefs/profile-types.d.ts +0 -6
  5. package/build/api-tenant-config/EveliFeatureMapping.d.ts +17 -0
  6. package/build/api-tenant-config/EveliTenantFeatureEnabled.d.ts +1 -17
  7. package/build/api-tenant-config/TenantConfigContext.d.ts +5 -1
  8. package/build/{cssMode-CZgN13mD.js → cssMode-CFMtofJ-.js} +1 -1
  9. package/build/eveli-table/table-state/index.d.ts +2 -0
  10. package/build/eveli-table/table-state/table-state-impl.d.ts +8 -0
  11. package/build/eveli-table/table-state/table-state-types.d.ts +34 -0
  12. package/build/eveli-table/tanstack/index.d.ts +1 -1
  13. package/build/eveli-table/tanstack/useTable.d.ts +21 -0
  14. package/build/{freemarker2-C_M2Iqeq.js → freemarker2-B05gT4qT.js} +1 -1
  15. package/build/{handlebars-D88iyF_v.js → handlebars-CvZQNh96.js} +1 -1
  16. package/build/{html-B7ADKv3J.js → html-CNLq_PF3.js} +1 -1
  17. package/build/{htmlMode-Cgo2fUbo.js → htmlMode-CCJ6w5Hu.js} +1 -1
  18. package/build/{index-B1JVh_pd.js → index-YC7Hzed7.js} +43490 -43353
  19. package/build/index.js +10 -9
  20. package/build/{javascript-D96Rr5Eb.js → javascript-DiPLhI06.js} +1 -1
  21. package/build/{jsonMode-lN5ceWI0.js → jsonMode-CBqrFHgy.js} +1 -1
  22. package/build/{liquid-BOnD0_o4.js → liquid-dklfhctw.js} +1 -1
  23. package/build/{mdx-DOtGgnQE.js → mdx-DwAg_PU3.js} +1 -1
  24. package/build/{python-09WRUeG5.js → python-D_YM89-7.js} +1 -1
  25. package/build/{razor-DyLSggFU.js → razor-BSfGCN9K.js} +1 -1
  26. package/build/{tsMode-BTILMq7m.js → tsMode-CSk6-Igi.js} +1 -1
  27. package/build/{typescript-p6Ndriqk.js → typescript-DZm8geXp.js} +1 -1
  28. package/build/{xml-GnYgGeTn.js → xml-CxPjdsve.js} +1 -1
  29. package/build/{yaml-B87YtYhO.js → yaml-DRUa5Vcy.js} +1 -1
  30. package/package.json +2 -1
  31. package/build/eveli-table/tanstack/useTableState.d.ts +0 -22
@@ -1,10 +1,9 @@
1
- import { Preference, VisibilityRule, SortingRule, DataId, PreferenceId, ConfigRule } from './pref-types';
1
+ import { Preference, VisibilityRule, DataId, PreferenceId, ConfigRule } from './pref-types';
2
2
  export interface ImmutablePreferenceInit {
3
3
  id: PreferenceId;
4
4
  backendId: string | undefined;
5
5
  fields: readonly DataId[];
6
6
  visibility: Record<DataId, VisibilityRule>;
7
- sorting: Record<DataId, SortingRule>;
8
7
  config: Record<DataId, ConfigRule>;
9
8
  }
10
9
  export declare class ImmutablePreference implements Preference {
@@ -12,7 +11,6 @@ export declare class ImmutablePreference implements Preference {
12
11
  private _id;
13
12
  private _fields;
14
13
  private _visibility;
15
- private _sorting;
16
14
  private _config;
17
15
  constructor(init: ImmutablePreferenceInit);
18
16
  initVisibility(init: ImmutablePreferenceInit): Record<DataId, VisibilityRule>;
@@ -21,12 +19,9 @@ export declare class ImmutablePreference implements Preference {
21
19
  get fields(): readonly string[];
22
20
  get config(): ConfigRule[];
23
21
  get visibility(): VisibilityRule[];
24
- get sorting(): SortingRule[];
25
22
  getVisibility(dataId: DataId): VisibilityRule;
26
- getSorting(dataId?: DataId): SortingRule | undefined;
27
23
  getConfig(dataId: DataId): ConfigRule | undefined;
28
24
  withConfig(config: ConfigRule | (ConfigRule[])): ImmutablePreference;
29
- withSorting(newValue: SortingRule): ImmutablePreference;
30
25
  withVisibility(newValue: VisibilityRule): ImmutablePreference;
31
26
  withVisibleFields(newValueFields: DataId[]): ImmutablePreference;
32
27
  clone(init: Partial<ImmutablePreferenceInit>): ImmutablePreferenceInit;
@@ -1,13 +1,11 @@
1
- import { PreferenceInit, VisibilityRule, SortingRule, DataId, ConfigRule } from './pref-types';
1
+ import { PreferenceInit, VisibilityRule, DataId, ConfigRule } from './pref-types';
2
2
  import { ImmutablePreference } from './ImmutablePreference';
3
3
  import { PrefsApi } from './profile-types';
4
4
  export type WithVisibleFields = (visibleFields: DataId[]) => void;
5
- export type WithSorting = (sorting: Omit<SortingRule, "id">) => void;
6
5
  export type WithVisibility = (visibility: Omit<VisibilityRule, "id">) => void;
7
6
  export type WithConfig = (config: ConfigRule | (ConfigRule[])) => void;
8
7
  export declare function initPreference(init: PreferenceInit, initProfile: PrefsApi.UiSettings | undefined): ImmutablePreference;
9
8
  export declare function parsePreference(settingsId: string, initProfile: PrefsApi.UiSettings | undefined): ImmutablePreference;
10
9
  export declare function initWithConfig(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, config: ConfigRule | (ConfigRule[])): void;
11
- export declare function initWithSorting(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, sorting: SortingRule): void;
12
10
  export declare function initWithVisibleFields(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, visibility: DataId[]): void;
13
11
  export declare function initWithVisibility(setPref: React.Dispatch<React.SetStateAction<ImmutablePreference>>, backend: PrefsApi.PrefsRestApi, userId: string, visibility: VisibilityRule): void;
@@ -4,10 +4,6 @@ export interface VisibilityRule {
4
4
  dataId: DataId;
5
5
  enabled: boolean;
6
6
  }
7
- export interface SortingRule {
8
- dataId: DataId;
9
- direction: 'asc' | 'desc';
10
- }
11
7
  export interface ConfigRule {
12
8
  dataId: DataId;
13
9
  value: string;
@@ -16,22 +12,18 @@ export interface Preference {
16
12
  id: PreferenceId;
17
13
  fields: readonly DataId[];
18
14
  visibility: readonly VisibilityRule[];
19
- sorting: readonly SortingRule[];
20
15
  config: readonly ConfigRule[];
21
16
  getVisibility(dataId: DataId): VisibilityRule;
22
17
  getConfig(dataId: DataId): ConfigRule | undefined;
23
- getSorting(dataId?: DataId): SortingRule | undefined;
24
18
  }
25
19
  export interface PreferenceContextType {
26
20
  pref: Preference;
27
21
  withConfig(config: ConfigRule): void;
28
- withSorting(sorting: Omit<SortingRule, "id">): void;
29
22
  withVisibility(visibility: Omit<VisibilityRule, "id">): void;
30
23
  withVisibleFields(visibility: DataId[]): void;
31
24
  }
32
25
  export interface PreferenceInit {
33
26
  id: PreferenceId;
34
27
  fields: DataId[];
35
- sorting?: SortingRule;
36
28
  config?: ConfigRule;
37
29
  }
@@ -24,10 +24,6 @@ export declare namespace PrefsApi {
24
24
  dataId: string;
25
25
  enabled: boolean;
26
26
  }
27
- interface UiSettingsForSorting {
28
- dataId: string;
29
- direction: 'asc' | 'desc';
30
- }
31
27
  interface UiSettingsForConfig {
32
28
  dataId: string;
33
29
  value: string;
@@ -37,7 +33,6 @@ export declare namespace PrefsApi {
37
33
  settingsId: string;
38
34
  userId: string;
39
35
  visibility: UiSettingForVisibility[];
40
- sorting: UiSettingsForSorting[];
41
36
  config: UiSettingsForConfig[];
42
37
  }
43
38
  interface UserProfile {
@@ -71,7 +66,6 @@ export declare namespace PrefsApi {
71
66
  userId: string;
72
67
  settingsId: string;
73
68
  visibility: UiSettingForVisibility[];
74
- sorting: UiSettingsForSorting[];
75
69
  config: UiSettingsForConfig[];
76
70
  }
77
71
  interface UpsertUserProfile extends UserProfileUpdateCommand<'UpsertUserProfile'> {
@@ -0,0 +1,17 @@
1
+ import { TenantFeature } from './TenantConfigContext';
2
+ export declare const EveliFeatureMapping: {
3
+ LOGIN_BUTTON: (given: TenantFeature[]) => boolean;
4
+ STENCIL_ENABLED: (given: TenantFeature[]) => boolean;
5
+ WRENCH_ENABLED: (given: TenantFeature[]) => boolean;
6
+ PUBLICATION_UPDATE: (given: TenantFeature[]) => boolean;
7
+ STENCIL_LOCALE_FILTER: (given: TenantFeature[]) => boolean;
8
+ DIALOB_ENABLED: (given: TenantFeature[]) => boolean;
9
+ WRENCH_RELEASES: (given: TenantFeature[]) => boolean;
10
+ STENCIL_RELEASES: (given: TenantFeature[]) => boolean;
11
+ FORM_REVIEW_FLASHY: (given: TenantFeature[]) => boolean;
12
+ FORM_REVIEW_NORMAL: (given: TenantFeature[]) => boolean;
13
+ QUEUES_ENABLED: (given: TenantFeature[]) => boolean;
14
+ FEEDBACK_ENABLED: (given: TenantFeature[]) => boolean;
15
+ SMART_TABLES: (given: TenantFeature[]) => boolean;
16
+ };
17
+ export type EveliFeatureType = keyof typeof EveliFeatureMapping;
@@ -1,22 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { TenantFeature } from './TenantConfigContext';
3
- declare const EveliFeatureMapping: {
4
- LOGIN_BUTTON: (given: TenantFeature[]) => boolean;
5
- STENCIL_ENABLED: (given: TenantFeature[]) => boolean;
6
- WRENCH_ENABLED: (given: TenantFeature[]) => boolean;
7
- PUBLICATION_UPDATE: (given: TenantFeature[]) => boolean;
8
- STENCIL_LOCALE_FILTER: (given: TenantFeature[]) => boolean;
9
- DIALOB_ENABLED: (given: TenantFeature[]) => boolean;
10
- WRENCH_RELEASES: (given: TenantFeature[]) => boolean;
11
- STENCIL_RELEASES: (given: TenantFeature[]) => boolean;
12
- FORM_REVIEW_FLASHY: (given: TenantFeature[]) => boolean;
13
- FORM_REVIEW_NORMAL: (given: TenantFeature[]) => boolean;
14
- QUEUES_ENABLED: (given: TenantFeature[]) => boolean;
15
- FEEDBACK_ENABLED: (given: TenantFeature[]) => boolean;
16
- };
17
- export type EveliFeatureType = keyof typeof EveliFeatureMapping;
2
+ import { EveliFeatureType } from './EveliFeatureMapping';
18
3
  export declare const EveliTenantFeatureEnabled: React.FC<{
19
4
  children: React.ReactNode;
20
5
  id: EveliFeatureType;
21
6
  }>;
22
- export {};
@@ -1,10 +1,11 @@
1
1
  import { default as React, PropsWithChildren } from 'react';
2
2
  import { ThemeOptions } from '@mui/material';
3
+ import { EveliFeatureType } from './EveliFeatureMapping';
3
4
  export interface TenantConfig {
4
5
  features: TenantFeature[];
5
6
  gamutThemeOptions: ThemeOptions;
6
7
  }
7
- export type TenantFeature = ('wrench-only' | "wrench-disabled" | "stencil-disabled" | "external-deployment" | 'queues-visually-disabled' | 'feedback-visually-disabled' | 'stencil_locale_filter' | 'eveli_publication_only' | 'visual_accommodation');
8
+ export type TenantFeature = ('wrench-only' | "wrench-disabled" | "stencil-disabled" | "external-deployment" | "smart_tables" | 'queues-visually-disabled' | 'feedback-visually-disabled' | 'stencil_locale_filter' | 'eveli_publication_only' | 'visual_accommodation');
8
9
  export interface TenantConfigContextProviderProps {
9
10
  disabled?: boolean;
10
11
  features?: TenantFeature[] | undefined;
@@ -13,3 +14,6 @@ export interface TenantConfigContextProviderProps {
13
14
  export declare const TenantConfigContext: React.Context<TenantConfig>;
14
15
  export declare const TenantConfigContextProvider: React.FC<PropsWithChildren<TenantConfigContextProviderProps>>;
15
16
  export declare const useTenantConfig: () => TenantConfig;
17
+ export declare const useTenantConfigFeatures: () => {
18
+ isEnabled: (id: EveliFeatureType) => boolean;
19
+ };
@@ -1,4 +1,4 @@
1
- import { m as et } from "./index-B1JVh_pd.js";
1
+ import { m as et } from "./index-YC7Hzed7.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -0,0 +1,2 @@
1
+ export * from './table-state-types';
2
+ export * from './table-state-impl';
@@ -0,0 +1,8 @@
1
+ import { TableState } from './table-state-types';
2
+ import { default as React } from 'react';
3
+ export declare function useTableState(props: {
4
+ initialPageSize: number;
5
+ }): {
6
+ state: [TableState, React.Dispatch<React.SetStateAction<TableState>>];
7
+ loading: boolean;
8
+ };
@@ -0,0 +1,34 @@
1
+ import { ColumnFiltersState, SortingState, ColumnSizingState, VisibilityState, Updater, PaginationState } from '@tanstack/react-table';
2
+ export interface TableState {
3
+ sorting: SortingState;
4
+ pagination: PaginationState;
5
+ columnVisibility: VisibilityState;
6
+ columnFilters: ColumnFiltersState;
7
+ columnSizing: ColumnSizingState;
8
+ filterDialogOpen: boolean;
9
+ hash: string;
10
+ setSorting(next: Updater<SortingState>): TableState;
11
+ setPagination(next: Updater<PaginationState>): TableState;
12
+ setColumnVisibility(next: Updater<VisibilityState>): TableState;
13
+ setColumnFilters(next: Updater<ColumnFiltersState>): TableState;
14
+ setColumnSizing(next: Updater<ColumnSizingState>): TableState;
15
+ setFilterDialogOpen(next: boolean): TableState;
16
+ clear(): TableState;
17
+ clearFiltersAndVisibility(): TableState;
18
+ restore(props: {
19
+ sorting: SortingState;
20
+ pagination: PaginationState;
21
+ columnVisibility: VisibilityState;
22
+ columnFilters: ColumnFiltersState;
23
+ columnSizing: ColumnSizingState;
24
+ filterDialogOpen: boolean;
25
+ }): TableState;
26
+ copy(): {
27
+ sorting: SortingState;
28
+ pagination: PaginationState;
29
+ columnVisibility: VisibilityState;
30
+ columnFilters: ColumnFiltersState;
31
+ columnSizing: ColumnSizingState;
32
+ filterDialogOpen: boolean;
33
+ };
34
+ }
@@ -1 +1 @@
1
- export * from './useTableState';
1
+ export * from './useTable';
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { ColumnDef, PaginationState } from '@tanstack/react-table';
3
+ import { TableState } from '../table-state';
4
+ export declare function useTable<DataType extends object>(props: {
5
+ columns: ColumnDef<DataType, unknown>[];
6
+ data: DataType[];
7
+ options: {
8
+ initialPageSize: number;
9
+ };
10
+ state: [TableState, React.Dispatch<React.SetStateAction<TableState>>];
11
+ }): {
12
+ columnSizeVars: {
13
+ [key: string]: number;
14
+ };
15
+ table: import('@tanstack/react-table').Table<DataType>;
16
+ pagination: PaginationState;
17
+ filterDialogOpen: boolean;
18
+ onColumnFilter: () => void;
19
+ resetTableColsAndFilters: () => void;
20
+ onClearAll: () => void;
21
+ };
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-B1JVh_pd.js";
1
+ import { m as f } from "./index-YC7Hzed7.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-B1JVh_pd.js";
1
+ import { m as l } from "./index-YC7Hzed7.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-B1JVh_pd.js";
1
+ import { m as s } from "./index-YC7Hzed7.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-B1JVh_pd.js";
1
+ import { m as lt } from "./index-YC7Hzed7.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)