onekijs-ui 0.15.5 → 0.15.6
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/dist/components/select/FormSelect.d.ts +0 -1
- package/dist/components/select/SelectService.d.ts +1 -1
- package/dist/components/select/TreeSelectService.d.ts +3 -2
- package/dist/components/select/components/ArraySelectComponent.d.ts +0 -1
- package/dist/components/select/components/ArrayTreeSelectComponent.d.ts +0 -1
- package/dist/components/select/components/ControlledSelectComponent.d.ts +1 -2
- package/dist/components/select/components/SelectComponent.d.ts +0 -1
- package/dist/components/select/components/SelectOptionComponent.d.ts +0 -1
- package/dist/components/select/components/SelectTokenComponent.d.ts +0 -1
- package/dist/components/select/components/SelectTokensComponent.d.ts +0 -1
- package/dist/components/select/components/TreeSelectComponent.d.ts +0 -1
- package/dist/components/select/components/TreeSelectOptionContent.d.ts +0 -1
- package/dist/components/select/typings.d.ts +2 -0
- package/dist/components/tree/TreeService.d.ts +1 -1
- package/dist/components/tree/components/ArrayTreeComponent.d.ts +0 -1
- package/dist/components/tree/components/ControllerTreeComponent.d.ts +0 -1
- package/dist/components/tree/components/TreeBodyComponent.d.ts +0 -1
- package/dist/components/tree/components/TreeComponent.d.ts +0 -1
- package/dist/components/tree/components/TreeItemComponent.d.ts +0 -1
- package/dist/components/tree/components/TreeListComponent.d.ts +0 -1
- package/dist/components/tree/components/VirtualTreeBodyComponent.d.ts +0 -1
- package/dist/components/tree/components/VirtualTreeListComponent.d.ts +0 -1
- package/dist/components/tree/index.d.ts +0 -1
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +11 -10
- package/dist/index.module.js.map +1 -1
- package/package.json +3 -3
- package/src/components/select/SelectService.ts +1 -1
- package/src/components/select/TreeSelectService.ts +5 -4
- package/src/components/select/components/ControlledSelectComponent.tsx +8 -5
- package/src/components/select/typings.ts +2 -0
- package/src/components/tree/TreeService.ts +3 -3
|
@@ -9,7 +9,7 @@ declare class SelectService<T = any, I extends SelectItem<T> = SelectItem<T>, S
|
|
|
9
9
|
setDefaultValue(value: T | T[] | null | undefined): Generator<void | Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>, void, unknown>;
|
|
10
10
|
setValue(value: null | T | T[]): void;
|
|
11
11
|
setUrl(url: string, query?: Query): void;
|
|
12
|
-
_buildItem(data: T | undefined, adaptee: unknown, context?: AnonymousObject): I;
|
|
12
|
+
_buildItem(data: T | null | undefined, adaptee: unknown, context?: AnonymousObject): I;
|
|
13
13
|
_filterItem(item: I | undefined, query: Query, valid: boolean): Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>;
|
|
14
14
|
_setDefaultValue(value: T | T[] | null | undefined): void;
|
|
15
15
|
_setValidDefaultValue(value: T | T[] | null): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { CollectionService } from 'onekijs-framework';
|
|
1
2
|
import TreeService from '../tree/TreeService';
|
|
2
3
|
import SelectService from './SelectService';
|
|
3
4
|
import { TreeSelectItem, TreeSelectState } from './typings';
|
|
4
|
-
declare class TreeSelectService<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>> extends
|
|
5
|
+
declare class TreeSelectService<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>> extends CollectionService<T, I, S> {
|
|
5
6
|
}
|
|
6
|
-
interface TreeSelectService<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>> extends TreeService<T, I, S> {
|
|
7
|
+
interface TreeSelectService<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>> extends SelectService<T, I, S>, TreeService<T, I, S> {
|
|
7
8
|
}
|
|
8
9
|
export default TreeSelectService;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ArrayTreeSelectProps, TreeSelectItem } from '../typings';
|
|
3
2
|
declare const ArrayTreeSelectComponent: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(props: ArrayTreeSelectProps<T, I>) => JSX.Element;
|
|
4
3
|
export default ArrayTreeSelectComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ControllerSelectProps, SelectController, SelectItem, SelectState } from '../typings';
|
|
3
|
-
declare const ControlledSelectComponent: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>({ attachDropdownToBody, className, placeholder, controller, InputComponent, IconComponent, OptionContentComponent, OptionComponent, OptionLoadingComponent, MultiOptionsComponent, NotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height, multiple, status, size, nullable, minChars, openOnFocus, searchable, dropdownWidthModifier, preload, increment, animationMs, disabled, defaultValue, required, sameWidth, overscan, clickable, ListComponent, }: ControllerSelectProps<T, I, S, C>) => JSX.Element;
|
|
2
|
+
declare const ControlledSelectComponent: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>({ attachDropdownToBody, className, placeholder, controller, InputComponent, IconComponent, OptionContentComponent, OptionComponent, OptionLoadingComponent, MultiOptionsComponent, NotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height, multiple, status, size, nullable, minChars, openOnFocus, searchable, dropdownWidthModifier, preload, increment, animationMs, disabled, defaultValue, required, sameWidth, overscan, clickable, ListComponent, autoCompleteSearch, }: ControllerSelectProps<T, I, S, C>) => JSX.Element;
|
|
4
3
|
export default ControlledSelectComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectController, SelectItem, SelectProps, SelectState } from '../typings';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
<T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(props: SelectProps<T, I, S, C>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TreeSelectController, TreeSelectItem, TreeSelectProps, TreeSelectState } from '../typings';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>, C extends TreeSelectController<T, I, S> = TreeSelectController<T, I, S>>(props: TreeSelectProps<T, I, S, C>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ListItemProps } from '../../list/typings';
|
|
3
2
|
import { TreeSelectItem } from '../typings';
|
|
4
3
|
export declare const TreeSelectOptionContent: <T, I extends TreeSelectItem<T> = TreeSelectItem<T>>(props: ListItemProps<T, I>) => JSX.Element;
|
|
@@ -50,6 +50,7 @@ export interface SelectInputProps<T = any, I extends SelectItem<T> = SelectItem<
|
|
|
50
50
|
searchable: boolean;
|
|
51
51
|
clickable: boolean;
|
|
52
52
|
minChars: number;
|
|
53
|
+
autoCompleteSearch: boolean;
|
|
53
54
|
}
|
|
54
55
|
export declare type SelectGroup = string | {
|
|
55
56
|
text: string;
|
|
@@ -110,6 +111,7 @@ export declare type SelectConfig<T = any, I extends SelectItem<T> = SelectItem<T
|
|
|
110
111
|
required?: boolean;
|
|
111
112
|
sameWidth?: boolean;
|
|
112
113
|
ListComponent?: React.FC<SelectListComponentProps<T, I>>;
|
|
114
|
+
autoCompleteSearch?: boolean;
|
|
113
115
|
};
|
|
114
116
|
export declare type SelectListComponentProps<T = any, I extends SelectItem<T> = SelectItem<T>> = CollectionListProps<T, I> & {
|
|
115
117
|
optionsRef: React.RefObject<HTMLDivElement>;
|
|
@@ -12,7 +12,7 @@ declare class TreeService<T = any, I extends TreeItem<T> = TreeItem<T>, S extend
|
|
|
12
12
|
initDb(dataSource: T[] | string | undefined): void;
|
|
13
13
|
_adapt(data: T | null | undefined, context?: AnonymousObject): I;
|
|
14
14
|
_addFilterExpanded(item: I): void;
|
|
15
|
-
_buildItem(data: T | undefined, adaptee: unknown, context?: AnonymousObject): I;
|
|
15
|
+
_buildItem(data: T | null | undefined, adaptee: unknown, context?: AnonymousObject): I;
|
|
16
16
|
_clearFilterExpanded(): void;
|
|
17
17
|
_delayChildrenLoading(delay_ms: number, item: I): Generator<I[] | import("redux-saga/effects").CallEffect<true>, void, unknown>;
|
|
18
18
|
_execute(items: I[], query: LocalQuery, comparator: QuerySortComparator, comparators: AnonymousObject<QuerySortComparator>, searcher?: QuerySearcher<T>): I[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ControllerTreeProps, TreeItem } from '../typings';
|
|
3
2
|
declare const ControllerTreeComponent: {
|
|
4
3
|
<T = any, I extends TreeItem<T> = TreeItem<T>>({ controller, className, onActivate, onSelect, height, virtual, gap, TreeIconComponent, TreeItemComponent, TreeItemContentComponent, treeItemClassName, TreeTogglerComponent, paddingLeft, paddingRight, animate, keyboardNavigable, listRef, }: ControllerTreeProps<T, I, import("../typings").TreeState<T, I>, import("../typings").TreeController<T, I, import("../typings").TreeState<T, I>>>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ControllerTreeProps, TreeItem } from '../typings';
|
|
3
2
|
declare const TreeBodyComponent: {
|
|
4
3
|
<T = any, I extends TreeItem<T> = TreeItem<T>>({ className, controller, }: ControllerTreeProps<T, I, import("../typings").TreeState<T, I>, import("../typings").TreeController<T, I, import("../typings").TreeState<T, I>>>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TreeItem, TreeProps } from '../typings';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
<T = any, I extends TreeItem<T> = TreeItem<T>>(props: TreeProps<T, I, import("../typings").TreeState<T, I>, import("../typings").TreeController<T, I, import("../typings").TreeState<T, I>>>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ListItemProps } from '../../list/typings';
|
|
3
2
|
import { TreeItem, TreeItemProps, TreeItemToggleProps } from '../typings';
|
|
4
3
|
export declare const TreeItemToggler: <T = any, I extends TreeItem<T> = TreeItem<T>>({ item, onExpand, onCollapse, index, }: TreeItemToggleProps<T, I>) => JSX.Element | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TreeItem, TreeListProps } from '../typings';
|
|
3
2
|
declare const TreeListComponent: <T = any, I extends TreeItem<T> = TreeItem<T>>({ items, onItemClick, onItemMouseEnter, onItemMouseLeave, }: TreeListProps<T, I>) => JSX.Element;
|
|
4
3
|
export default TreeListComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ControllerTreeProps, TreeItem } from '../typings';
|
|
3
2
|
declare const VirtualTreeBodyComponent: {
|
|
4
3
|
<T = any, I extends TreeItem<T> = TreeItem<T>>({ className, controller, height, }: ControllerTreeProps<T, I, import("../typings").TreeState<T, I>, import("../typings").TreeController<T, I, import("../typings").TreeState<T, I>>>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TreeItem, VirtualTreeListProps } from '../typings';
|
|
3
2
|
declare const VirtualTreeListComponent: <T = any, I extends TreeItem<T> = TreeItem<T>>({ items, onItemClick, onItemMouseEnter, onItemMouseLeave, virtualItems, }: VirtualTreeListProps<T, I>) => JSX.Element;
|
|
4
3
|
export default VirtualTreeListComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
<T = any, I extends import("./typings").TreeItem<T> = import("./typings").TreeItem<T>>(props: import("./typings").TreeProps<T, I, import("./typings").TreeState<T, I>, import("./typings").TreeController<T, I, import("./typings").TreeState<T, I>>>): JSX.Element;
|
|
4
3
|
displayName: string;
|
package/dist/index.js
CHANGED
|
@@ -6130,7 +6130,7 @@ const DefaultSelectListComponent = (props) => {
|
|
|
6130
6130
|
});
|
|
6131
6131
|
return (React__default["default"].createElement(ListBodyComponent, { ...props, className: "o-select-options", bodyRef: props.optionsRef, items: selectItems, totalSize: totalSize, virtualItems: isVirtual ? virtualItems : undefined, scrollToIndex: scrollToIndex, keyboardNavigable: true, service: props.controller?.asService(), state: props.controller.state }));
|
|
6132
6132
|
};
|
|
6133
|
-
const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '', placeholder, controller, InputComponent = SelectInputComponent$1, IconComponent, OptionContentComponent = SelectOptionContent, OptionComponent = SelectOptionComponent$1, OptionLoadingComponent = LoadingItem$1, MultiOptionsComponent = SelectOptionComponent$1, NotFoundComponent = SelectNotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height = 220, multiple = false, status = onekijsFramework.ValidationStatus.None, size = 'medium', nullable, minChars = 0, openOnFocus = false, searchable = true, dropdownWidthModifier = 'min', preload = 50, increment = 50, animationMs = 200, disabled, defaultValue, required = false, sameWidth = true, overscan, clickable = true, ListComponent = DefaultSelectListComponent, }) => {
|
|
6133
|
+
const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '', placeholder, controller, InputComponent = SelectInputComponent$1, IconComponent, OptionContentComponent = SelectOptionContent, OptionComponent = SelectOptionComponent$1, OptionLoadingComponent = LoadingItem$1, MultiOptionsComponent = SelectOptionComponent$1, NotFoundComponent = SelectNotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height = 220, multiple = false, status = onekijsFramework.ValidationStatus.None, size = 'medium', nullable, minChars = 0, openOnFocus = false, searchable = true, dropdownWidthModifier = 'min', preload = 50, increment = 50, animationMs = 200, disabled, defaultValue, required = false, sameWidth = true, overscan, clickable = true, ListComponent = DefaultSelectListComponent, autoCompleteSearch = true, }) => {
|
|
6134
6134
|
if (nullable === undefined) {
|
|
6135
6135
|
nullable = !required;
|
|
6136
6136
|
}
|
|
@@ -6171,6 +6171,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
6171
6171
|
defaultValue,
|
|
6172
6172
|
sameWidth,
|
|
6173
6173
|
overscan,
|
|
6174
|
+
autoCompleteSearch,
|
|
6174
6175
|
};
|
|
6175
6176
|
const id = React.useId();
|
|
6176
6177
|
const loading = onekijsFramework.isCollectionLoading(controller);
|
|
@@ -6190,7 +6191,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
6190
6191
|
return controller.getItem(controller.state.active[0]);
|
|
6191
6192
|
}
|
|
6192
6193
|
else if (focus && search) {
|
|
6193
|
-
const item = findSelectItem(controller, search.toString());
|
|
6194
|
+
const item = autoCompleteSearch ? findSelectItem(controller, search.toString()) : controller.items[0];
|
|
6194
6195
|
if (item === undefined && !onekijsFramework.isCollectionFetching(controller)) {
|
|
6195
6196
|
return onekijsFramework.get(controller, 'items.0');
|
|
6196
6197
|
}
|
|
@@ -6202,7 +6203,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
6202
6203
|
if (!multiple) {
|
|
6203
6204
|
return controller.adapt(value);
|
|
6204
6205
|
}
|
|
6205
|
-
}, [focus, controller, value, multiple]);
|
|
6206
|
+
}, [focus, controller, value, multiple, autoCompleteSearch]);
|
|
6206
6207
|
const optionsRef = React.useRef(null);
|
|
6207
6208
|
const update = React.useCallback(() => {
|
|
6208
6209
|
if (optionsRef.current && onekijsFramework.get(service, 'config.sameWidth')) {
|
|
@@ -6288,7 +6289,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
6288
6289
|
React.useEffect(() => {
|
|
6289
6290
|
const search = controller.getSearch();
|
|
6290
6291
|
if (open && focus && search && search !== previousSearchRef.current) {
|
|
6291
|
-
const item = findSelectItem(controller, search.toString());
|
|
6292
|
+
const item = autoCompleteSearch ? findSelectItem(controller, search.toString()) : controller.items[0];
|
|
6292
6293
|
const activated = onekijsFramework.get(controller.state.active, '0');
|
|
6293
6294
|
if (item !== undefined && !onekijsFramework.isCollectionFetching(controller)) {
|
|
6294
6295
|
previousSearchRef.current = search;
|
|
@@ -6297,7 +6298,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
6297
6298
|
}
|
|
6298
6299
|
}
|
|
6299
6300
|
}
|
|
6300
|
-
}, [controller, focus, open, id]);
|
|
6301
|
+
}, [controller, focus, open, id, autoCompleteSearch]);
|
|
6301
6302
|
React.useEffect(() => {
|
|
6302
6303
|
if (!multiple) {
|
|
6303
6304
|
if (value) {
|
|
@@ -6511,7 +6512,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
6511
6512
|
onekijsFramework.useEventListener('keydown', onKeyDown, false);
|
|
6512
6513
|
return (React__default["default"].createElement(SelectServiceContext.Provider, { value: service },
|
|
6513
6514
|
React__default["default"].createElement("div", { className: classNames, ref: containerRef, onMouseDown: () => (stateRef.current.keepFocus = true), onMouseUp: () => (stateRef.current.keepFocus = false) },
|
|
6514
|
-
React__default["default"].createElement(InputComponent, { placeholder: placeholder, setOpen: setOpen, open: open, loading: loading, fetching: fetching, onChange: onInputChange, value: proxyItem ? proxyItem.text : '', focus: focus, onFocus: onFocus, onBlur: onBlur, tokens: tokens, multiple: multiple, onRemove: onRemoveToken, autoFocus: autoFocus, style: style, nullable: nullable, IconComponent: IconComponent, searchable: searchable, clickable: clickable, minChars: minChars, ref: triggerRef, disabled: disabled }),
|
|
6515
|
+
React__default["default"].createElement(InputComponent, { placeholder: placeholder, setOpen: setOpen, open: open, loading: loading, fetching: fetching, onChange: onInputChange, value: autoCompleteSearch ? (proxyItem ? proxyItem.text : '') : controller.getSearch() || '', focus: focus, onFocus: onFocus, onBlur: onBlur, tokens: tokens, multiple: multiple, onRemove: onRemoveToken, autoFocus: autoFocus, style: style, nullable: nullable, IconComponent: IconComponent, searchable: searchable, clickable: clickable, minChars: minChars, ref: triggerRef, disabled: disabled, autoCompleteSearch: autoCompleteSearch }),
|
|
6515
6516
|
React__default["default"].createElement(Dropdown, { attachToBody: attachDropdownToBody, open: open, distance: 0, animationTimeout: animationMs, onDropStart: onOpen, onCollapseDone: onClosed, placement: "bottom-start", widthModifier: dropdownWidthModifier, className: className, zIndex: attachDropdownToBody ? 2000 : undefined },
|
|
6516
6517
|
React__default["default"].createElement(ListComponent, { className: "o-select-options", height: height, ItemComponent: multiple ? MultiOptionsComponent : OptionComponent, ItemLoadingComponent: OptionLoadingComponent, ItemContentComponent: OptionContentComponent, NotFoundComponent: NotFoundComponent, onItemSelect: onSelect, onItemUnselect: onSelect, controller: controller, keyboardNavigable: true, multiSelect: multiple, onItemActivate: onActivate, optionsRef: optionsRef })))));
|
|
6517
6518
|
};
|
|
@@ -7159,8 +7160,8 @@ let TreeService = class TreeService extends onekijsFramework.CollectionService {
|
|
|
7159
7160
|
: treeAdaptee.children.map((child) => {
|
|
7160
7161
|
if (context !== undefined) {
|
|
7161
7162
|
context.level = level + 1;
|
|
7162
|
-
context.position = context.nextPosition;
|
|
7163
|
-
context.nextPosition = context.position + 1;
|
|
7163
|
+
context.position = context.nextPosition !== undefined ? context.nextPosition : undefined;
|
|
7164
|
+
context.nextPosition = context.position !== undefined ? context.position + 1 : undefined;
|
|
7164
7165
|
}
|
|
7165
7166
|
else {
|
|
7166
7167
|
context = {
|
|
@@ -7458,12 +7459,12 @@ TreeService = __decorate([
|
|
|
7458
7459
|
], TreeService);
|
|
7459
7460
|
var TreeService$1 = TreeService;
|
|
7460
7461
|
|
|
7461
|
-
let TreeSelectService = class TreeSelectService extends
|
|
7462
|
+
let TreeSelectService = class TreeSelectService extends onekijsFramework.CollectionService {
|
|
7462
7463
|
};
|
|
7463
7464
|
TreeSelectService = __decorate([
|
|
7464
7465
|
onekijsFramework.service
|
|
7465
7466
|
], TreeSelectService);
|
|
7466
|
-
onekijsFramework.applyMixins(TreeSelectService, [TreeService$1]);
|
|
7467
|
+
onekijsFramework.applyMixins(TreeSelectService, [SelectService$1, TreeService$1]);
|
|
7467
7468
|
var TreeSelectService$1 = TreeSelectService;
|
|
7468
7469
|
|
|
7469
7470
|
const useTreeSelectController = (dataSource, options = {}) => {
|