@xh/hoist 71.0.0-SNAPSHOT.1735335976186 → 71.0.0-SNAPSHOT.1735340606080
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/build/types/admin/tabs/userData/roles/details/members/DirectoryMembers.d.ts +12 -1
- package/build/types/admin/tabs/userData/roles/details/members/RoleMembers.d.ts +15 -1
- package/build/types/admin/tabs/userData/roles/details/members/UserMembers.d.ts +14 -1
- package/build/types/core/model/HoistModel.d.ts +4 -3
- package/build/types/desktop/cmp/dash/container/impl/DashContainerView.d.ts +1 -1
- package/build/types/icon/Icon.d.ts +2 -3
- package/core/model/HoistModel.ts +2 -3
- package/desktop/cmp/tab/TabSwitcher.ts +1 -1
- package/desktop/cmp/viewmanager/dialog/ManageDialog.ts +1 -1
- package/desktop/cmp/viewmanager/dialog/ViewMultiPanel.ts +1 -1
- package/icon/Icon.ts +2 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
import { ColumnRenderer } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
1
3
|
import './BaseMembers.scss';
|
|
2
|
-
|
|
4
|
+
import { HoistRole } from '../../Types';
|
|
5
|
+
import { BaseMembersModel } from './BaseMembersModel';
|
|
6
|
+
export declare const directoryMembers: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<DirectoryMembersModel>>;
|
|
7
|
+
declare class DirectoryMembersModel extends BaseMembersModel {
|
|
8
|
+
entityName: string;
|
|
9
|
+
get emptyText(): string;
|
|
10
|
+
getGridData(role: HoistRole): PlainObject[];
|
|
11
|
+
nameRenderer: ColumnRenderer;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
1
2
|
import './BaseMembers.scss';
|
|
2
|
-
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { HoistRole } from '../../Types';
|
|
5
|
+
import { BaseMembersModel } from './BaseMembersModel';
|
|
6
|
+
export declare const roleMembers: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<RoleMembersModel>>;
|
|
7
|
+
declare class RoleMembersModel extends BaseMembersModel {
|
|
8
|
+
get type(): 'inherited' | 'effective';
|
|
9
|
+
entityName: string;
|
|
10
|
+
get emptyText(): ReactNode;
|
|
11
|
+
getGridData(role: HoistRole): PlainObject[];
|
|
12
|
+
onRowDoubleClicked: ({ data: record }: {
|
|
13
|
+
data: any;
|
|
14
|
+
}) => void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
import { ColumnRenderer } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
1
3
|
import './BaseMembers.scss';
|
|
2
|
-
|
|
4
|
+
import { HoistRole } from '../../Types';
|
|
5
|
+
import { BaseMembersModel } from './BaseMembersModel';
|
|
6
|
+
export declare const userMembers: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<UserMembersModel>>;
|
|
7
|
+
declare class UserMembersModel extends BaseMembersModel {
|
|
8
|
+
entityName: string;
|
|
9
|
+
get emptyText(): string;
|
|
10
|
+
getGridData(role: HoistRole): PlainObject[];
|
|
11
|
+
private userSourceList;
|
|
12
|
+
sourcesRenderer: ColumnRenderer;
|
|
13
|
+
sourcesExportRenderer: ColumnRenderer;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefaultHoistProps, HoistBase, LoadSpecConfig, PlainObject } from '../';
|
|
2
2
|
import { Loadable, LoadSpec, LoadSupport } from '../load';
|
|
3
3
|
import { ModelSelector } from './';
|
|
4
|
+
import { Class } from 'type-fest';
|
|
4
5
|
/**
|
|
5
6
|
* Core superclass for stateful Models in Hoist. Models are used throughout the toolkit and
|
|
6
7
|
* applications as backing stores for components and as general all-purpose constructs for
|
|
@@ -116,6 +117,6 @@ export declare abstract class HoistModel extends HoistBase implements Loadable {
|
|
|
116
117
|
matchesSelector(selector: ModelSelector, acceptWildcard?: boolean): boolean;
|
|
117
118
|
destroy(): void;
|
|
118
119
|
}
|
|
119
|
-
export
|
|
120
|
-
prototype: T
|
|
121
|
-
}
|
|
120
|
+
export type HoistModelClass<T extends HoistModel> = Class<T> | {
|
|
121
|
+
prototype: Pick<T, keyof T>;
|
|
122
|
+
};
|
|
@@ -9,4 +9,4 @@ import { DashViewModel } from '../../DashViewModel';
|
|
|
9
9
|
*
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
|
-
export declare const dashContainerView: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<DashViewModel<
|
|
12
|
+
export declare const dashContainerView: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<DashViewModel<import("../..").DashViewSpec>>>;
|
|
@@ -2,6 +2,7 @@ import { IconName } from '@fortawesome/fontawesome-svg-core';
|
|
|
2
2
|
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
3
3
|
import { HoistProps, Intent, Thunkable } from '@xh/hoist/core';
|
|
4
4
|
import { ReactElement } from 'react';
|
|
5
|
+
import { SetRequired } from 'type-fest';
|
|
5
6
|
export interface IconProps extends HoistProps, Partial<Omit<FontAwesomeIconProps, 'ref'>> {
|
|
6
7
|
/** Name of the icon in FontAwesome. */
|
|
7
8
|
iconName?: IconName;
|
|
@@ -53,9 +54,7 @@ export declare const Icon: {
|
|
|
53
54
|
* ```
|
|
54
55
|
* and then pass its string name to this factory: `icon({iconName: 'dream-icon'})`
|
|
55
56
|
*/
|
|
56
|
-
icon(opts: IconProps
|
|
57
|
-
iconName: IconName;
|
|
58
|
-
}): any;
|
|
57
|
+
icon(opts: SetRequired<IconProps, 'iconName'>): any;
|
|
59
58
|
addressCard(p?: IconProps): any;
|
|
60
59
|
angleDoubleDown(p?: IconProps): any;
|
|
61
60
|
angleDoubleLeft(p?: IconProps): any;
|
package/core/model/HoistModel.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {DefaultHoistProps, HoistBase, LoadSpecConfig, managed, PlainObject} from
|
|
|
11
11
|
import {instanceManager} from '../impl/InstanceManager';
|
|
12
12
|
import {Loadable, LoadSpec, LoadSupport} from '../load';
|
|
13
13
|
import {ModelSelector} from './';
|
|
14
|
+
import {Class} from 'type-fest';
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Core superclass for stateful Models in Hoist. Models are used throughout the toolkit and
|
|
@@ -221,6 +222,4 @@ export abstract class HoistModel extends HoistBase implements Loadable {
|
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
|
|
224
|
-
export
|
|
225
|
-
prototype: T;
|
|
226
|
-
}
|
|
225
|
+
export type HoistModelClass<T extends HoistModel> = Class<T> | {prototype: Pick<T, keyof T>};
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from '@xh/hoist/utils/react';
|
|
31
31
|
import classNames from 'classnames';
|
|
32
32
|
import {compact, isEmpty, isFinite} from 'lodash';
|
|
33
|
-
import {CSSProperties, ReactElement} from 'react';
|
|
33
|
+
import {CSSProperties, ReactElement, KeyboardEvent} from 'react';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Component to indicate and control the active tab of a TabContainer.
|
|
@@ -24,7 +24,7 @@ import {viewPanel} from './ViewPanel';
|
|
|
24
24
|
/**
|
|
25
25
|
* Default management dialog for ViewManager.
|
|
26
26
|
*/
|
|
27
|
-
export const manageDialog = hoistCmp.factory
|
|
27
|
+
export const manageDialog = hoistCmp.factory({
|
|
28
28
|
displayName: 'ManageDialog',
|
|
29
29
|
className: 'xh-view-manager__manage-dialog',
|
|
30
30
|
model: uses(() => ManageDialogModel),
|
|
@@ -14,7 +14,7 @@ import {pluralize} from '@xh/hoist/utils/js';
|
|
|
14
14
|
import {every, isEmpty} from 'lodash';
|
|
15
15
|
import {ManageDialogModel} from './ManageDialogModel';
|
|
16
16
|
|
|
17
|
-
export const viewMultiPanel = hoistCmp.factory
|
|
17
|
+
export const viewMultiPanel = hoistCmp.factory({
|
|
18
18
|
model: uses(() => ManageDialogModel),
|
|
19
19
|
render({model}) {
|
|
20
20
|
const views = model.selectedViews;
|
package/icon/Icon.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {last, pickBy, split, toLower} from 'lodash';
|
|
|
14
14
|
import {ReactElement} from 'react';
|
|
15
15
|
import {iconCmp} from './impl/IconCmp';
|
|
16
16
|
import {enhanceFaClasses, iconHtml} from './impl/IconHtml';
|
|
17
|
+
import {SetRequired} from 'type-fest';
|
|
17
18
|
|
|
18
19
|
export interface IconProps extends HoistProps, Partial<Omit<FontAwesomeIconProps, 'ref'>> {
|
|
19
20
|
/** Name of the icon in FontAwesome. */
|
|
@@ -96,7 +97,7 @@ export const Icon = {
|
|
|
96
97
|
* ```
|
|
97
98
|
* and then pass its string name to this factory: `icon({iconName: 'dream-icon'})`
|
|
98
99
|
*/
|
|
99
|
-
icon(opts: IconProps
|
|
100
|
+
icon(opts: SetRequired<IconProps, 'iconName'>): any {
|
|
100
101
|
let {
|
|
101
102
|
iconName,
|
|
102
103
|
prefix = 'far',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "71.0.0-SNAPSHOT.
|
|
3
|
+
"version": "71.0.0-SNAPSHOT.1735340606080",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|