@indigina/ui-kit 1.1.669 → 1.1.671
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.
|
@@ -10829,6 +10829,7 @@ const kitTranslateFilterTitle = (translateService, title, useTranslation, transl
|
|
|
10829
10829
|
};
|
|
10830
10830
|
|
|
10831
10831
|
const nonIndexableCharacters = /[^A-Za-z0-9\-.:_,\\/]+/;
|
|
10832
|
+
const nonPhraseCharacters = /[^\p{L}\p{N}\-.:_,\\/]+/u;
|
|
10832
10833
|
const kitFormatStringForSearch = (inputString, addWildcard = true) => {
|
|
10833
10834
|
return inputString
|
|
10834
10835
|
.split(nonIndexableCharacters)
|
|
@@ -10836,6 +10837,16 @@ const kitFormatStringForSearch = (inputString, addWildcard = true) => {
|
|
|
10836
10837
|
.map(text => addWildcard ? text + '*' : text)
|
|
10837
10838
|
.join(' ');
|
|
10838
10839
|
};
|
|
10840
|
+
const kitFormatStringForPhraseSearch = (inputString) => {
|
|
10841
|
+
const words = inputString
|
|
10842
|
+
.split(nonPhraseCharacters)
|
|
10843
|
+
.filter(text => !!text);
|
|
10844
|
+
if (!words.length) {
|
|
10845
|
+
return '';
|
|
10846
|
+
}
|
|
10847
|
+
const wildcardClause = words.map(text => `${text}*`).join(' ');
|
|
10848
|
+
return `"${words.join(' ')}" | (${wildcardClause})`;
|
|
10849
|
+
};
|
|
10839
10850
|
|
|
10840
10851
|
const kitBuildGridColumn = (field, title, type, sortable = true, hidden = false, width, filterType, excelFormat, apiField, hiddenInGrid, customFieldHandler, customRangeHandler, dateFilterConstraint) => ({
|
|
10841
10852
|
field,
|
|
@@ -10868,7 +10879,8 @@ const kitBuildSortString = (sort, columns) => {
|
|
|
10868
10879
|
}).join(', ');
|
|
10869
10880
|
return sortString !== '' && sortString || undefined;
|
|
10870
10881
|
};
|
|
10871
|
-
const
|
|
10882
|
+
const buildSearchTerm = (search, addSearchWildcard, phraseSearch) => phraseSearch ? kitFormatStringForPhraseSearch(search) : kitFormatStringForSearch(search, addSearchWildcard);
|
|
10883
|
+
const kitFetchGridData = ({ store, destroyRef, isLoading, fetchAction, fetchFromIndexAction, hasArchiveToggle, addSearchWildcard = true, phraseSearch = false, error, }) => {
|
|
10872
10884
|
isLoading.set(true);
|
|
10873
10885
|
const { skip, take, sort, filter, search, archive, columns } = store.selectSnapshot(KIT_GRID_STATE_TOKEN);
|
|
10874
10886
|
const gridState = {
|
|
@@ -10880,17 +10892,17 @@ const kitFetchGridData = ({ store, destroyRef, isLoading, fetchAction, fetchFrom
|
|
|
10880
10892
|
};
|
|
10881
10893
|
const isArchive = hasArchiveToggle && archive || false;
|
|
10882
10894
|
const isSearchMode = hasArchiveToggle && !isArchive || !!search;
|
|
10883
|
-
const searchTerm = search &&
|
|
10895
|
+
const searchTerm = search && buildSearchTerm(search, addSearchWildcard, phraseSearch) || undefined;
|
|
10884
10896
|
const action = (isSearchMode && fetchFromIndexAction) ? fetchFromIndexAction({ ...gridState, searchTerm }) : fetchAction(gridState);
|
|
10885
10897
|
store.dispatch(action).pipe(takeUntilDestroyed(destroyRef), finalize(() => isLoading.set(false))).subscribe({ error });
|
|
10886
10898
|
};
|
|
10887
|
-
const kitFetchExportGridData = ({ fetchAction, fetchIndexAction, sort, filter, search, columns, total, hasArchiveToggle = false, archiveModeEnabled = false, addSearchWildcard = true, }) => {
|
|
10899
|
+
const kitFetchExportGridData = ({ fetchAction, fetchIndexAction, sort, filter, search, columns, total, hasArchiveToggle = false, archiveModeEnabled = false, addSearchWildcard = true, phraseSearch = false, }) => {
|
|
10888
10900
|
const isArchive = hasArchiveToggle && archiveModeEnabled || false;
|
|
10889
10901
|
const isSearchMode = hasArchiveToggle && !isArchive || !!search;
|
|
10890
10902
|
const sortString = kitBuildSortString(sort, columns);
|
|
10891
10903
|
const filterString = kitBuildOdataFilter(kitBuildFilters(filter));
|
|
10892
10904
|
if (isSearchMode) {
|
|
10893
|
-
const searchTerm = search &&
|
|
10905
|
+
const searchTerm = search && buildSearchTerm(search, addSearchWildcard, phraseSearch) || undefined;
|
|
10894
10906
|
return fetchIndexAction(0, total, sortString, filterString, searchTerm);
|
|
10895
10907
|
}
|
|
10896
10908
|
return fetchAction(0, total, sortString, filterString);
|
|
@@ -19930,6 +19942,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
19930
19942
|
], template: "<button class=\"kit-grid-action\"\n [disabled]=\"disabled()\" \n (click)=\"clicked.emit();\">\n <kit-svg-icon kitTooltip\n class=\"kit-grid-action-icon\"\n kitTooltipFilter=\".kit-grid-action-icon\"\n [kitTooltipVisible]=\"!disabled() || showTooltipWhenDisabled()\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [icon]=\"icon()\"\n [title]=\"tooltip() ?? ''\"\n [ngClass]=\"iconType()\"/>\n</button>\n", styles: [".kit-grid-action{display:flex;align-items:center;justify-content:center;cursor:pointer;background:transparent;border:none;padding:0;width:100%;height:100%}.kit-grid-action:disabled{cursor:default}.kit-grid-action:disabled .kit-grid-action-icon.fill{fill:var(--color-grey-8)}.kit-grid-action:disabled .kit-grid-action-icon.stroke{stroke:var(--color-grey-8)}.kit-grid-action-icon{width:16px;height:16px}.kit-grid-action-icon.fill{stroke:transparent;fill:var(--color-grey-4)}.kit-grid-action-icon.fill:hover{fill:var(--color-main)}.kit-grid-action-icon.stroke{fill:transparent;stroke:var(--color-grey-4)}.kit-grid-action-icon.stroke:hover{stroke:var(--color-main)}\n"] }]
|
|
19931
19943
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], iconType: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconType", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], showTooltipWhenDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltipWhenDisabled", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }] } });
|
|
19932
19944
|
|
|
19945
|
+
class KitTreeContentDirective {
|
|
19946
|
+
constructor() {
|
|
19947
|
+
this.templateRef = inject(TemplateRef);
|
|
19948
|
+
this.kitTreeContent = input.required(/* @ts-ignore */
|
|
19949
|
+
...(ngDevMode ? [{ debugName: "kitTreeContent" }] : /* istanbul ignore next */ []));
|
|
19950
|
+
}
|
|
19951
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitTreeContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19952
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: KitTreeContentDirective, isStandalone: true, selector: "ng-template[kitTreeContent]", inputs: { kitTreeContent: { classPropertyName: "kitTreeContent", publicName: "kitTreeContent", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
19953
|
+
}
|
|
19954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitTreeContentDirective, decorators: [{
|
|
19955
|
+
type: Directive,
|
|
19956
|
+
args: [{
|
|
19957
|
+
selector: 'ng-template[kitTreeContent]',
|
|
19958
|
+
}]
|
|
19959
|
+
}], propDecorators: { kitTreeContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "kitTreeContent", required: true }] }] } });
|
|
19960
|
+
|
|
19933
19961
|
var KitTreeContentFormat;
|
|
19934
19962
|
(function (KitTreeContentFormat) {
|
|
19935
19963
|
KitTreeContentFormat["JSON"] = "json";
|
|
@@ -20175,22 +20203,6 @@ const isObject = (value) => {
|
|
|
20175
20203
|
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
20176
20204
|
};
|
|
20177
20205
|
|
|
20178
|
-
class KitTreeContentDirective {
|
|
20179
|
-
constructor() {
|
|
20180
|
-
this.templateRef = inject(TemplateRef);
|
|
20181
|
-
this.kitTreeContent = input.required(/* @ts-ignore */
|
|
20182
|
-
...(ngDevMode ? [{ debugName: "kitTreeContent" }] : /* istanbul ignore next */ []));
|
|
20183
|
-
}
|
|
20184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitTreeContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20185
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: KitTreeContentDirective, isStandalone: true, selector: "ng-template[kitTreeContent]", inputs: { kitTreeContent: { classPropertyName: "kitTreeContent", publicName: "kitTreeContent", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
20186
|
-
}
|
|
20187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitTreeContentDirective, decorators: [{
|
|
20188
|
-
type: Directive,
|
|
20189
|
-
args: [{
|
|
20190
|
-
selector: 'ng-template[kitTreeContent]',
|
|
20191
|
-
}]
|
|
20192
|
-
}], propDecorators: { kitTreeContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "kitTreeContent", required: true }] }] } });
|
|
20193
|
-
|
|
20194
20206
|
class KitTreeComponent {
|
|
20195
20207
|
constructor() {
|
|
20196
20208
|
this.clipboardService = inject(KitClipboardService);
|
|
@@ -20206,6 +20218,12 @@ class KitTreeComponent {
|
|
|
20206
20218
|
...(ngDevMode ? [{ debugName: "expandedKeys" }] : /* istanbul ignore next */ []));
|
|
20207
20219
|
this.activeCustomActionId = signal(null, /* @ts-ignore */
|
|
20208
20220
|
...(ngDevMode ? [{ debugName: "activeCustomActionId" }] : /* istanbul ignore next */ []));
|
|
20221
|
+
this.isEmpty = computed(() => {
|
|
20222
|
+
const data = this.data();
|
|
20223
|
+
const source = typeof data === 'string' ? data : '';
|
|
20224
|
+
return !source.trim();
|
|
20225
|
+
}, /* @ts-ignore */
|
|
20226
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
20209
20227
|
this.detectedFormat = computed(() => resolveKitTreeFormat(this.data()), /* @ts-ignore */
|
|
20210
20228
|
...(ngDevMode ? [{ debugName: "detectedFormat" }] : /* istanbul ignore next */ []));
|
|
20211
20229
|
this.isStructuredFormat = computed(() => this.detectedFormat() !== KitTreeContentFormat.TEXT, /* @ts-ignore */
|
|
@@ -20304,7 +20322,7 @@ class KitTreeComponent {
|
|
|
20304
20322
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20305
20323
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: KitTreeComponent, isStandalone: true, selector: "kit-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, customActions: { classPropertyName: "customActions", publicName: "customActions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
20306
20324
|
KitClipboardService,
|
|
20307
|
-
], queries: [{ propertyName: "contentTemplates", predicate: KitTreeContentDirective, isSignal: true }], ngImport: i0, template: "<div class=\"kit-tree\">\n
|
|
20325
|
+
], queries: [{ propertyName: "contentTemplates", predicate: KitTreeContentDirective, isSignal: true }], ngImport: i0, template: "@if (!isEmpty()) {\n <div class=\"kit-tree\">\n <div class=\"kit-tree-toolbar\">\n @if (isStructuredFormat()) {\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"toggleAllTitleKey() | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"toggleAllIcon()\"\n [disabled]=\"isExpandAllDisabled()\"\n (clicked)=\"toggleAll()\"\n ></kit-button>\n }\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"'kit.tree.actions.copyRaw' | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"kitSvgIcon.COPY\"\n [iconType]=\"kitSvgIconType.STROKE\"\n (clicked)=\"copyRawInput()\"\n ></kit-button>\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"'kit.tree.actions.copyPrettified' | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"kitSvgIcon.MAGIC_WAND\"\n (clicked)=\"copyPrettifiedInput()\"\n ></kit-button>\n\n @if (isStructuredFormat()) {\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"toggleViewTitleKey() | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"toggleViewIcon()\"\n [active]=\"isRawView()\"\n (clicked)=\"toggleRawFormattedView()\"\n ></kit-button>\n }\n\n @for (action of customActions(); track action.id) {\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"action.label\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"action.icon\"\n [active]=\"activeCustomActionId() === action.id\"\n [disabled]=\"!!action.disabled\"\n (clicked)=\"onCustomActionClick(action)\"\n ></kit-button>\n }\n </div>\n\n <div class=\"kit-tree-content\">\n @if (isCustomContentActive()) {\n <div class=\"kit-tree-custom-content\">\n <ng-container [ngTemplateOutlet]=\"activeTemplate()?.templateRef ?? null\"></ng-container>\n </div>\n } @else if (isRawView() || !isStructuredFormat()) {\n <pre class=\"kit-tree-raw\">{{ rawContent() }}</pre>\n } @else {\n <kendo-treeview kendoTreeViewHierarchyBinding\n kendoTreeViewExpandable\n childrenField=\"children\"\n textField=\"displayKey\"\n expandBy=\"key\"\n [nodes]=\"treeNodes()\"\n [expandedKeys]=\"expandedKeys()\"\n (expandedKeysChange)=\"onExpandedKeysChange($event)\">\n <ng-template kendoTreeViewNodeTemplate\n let-dataItem>\n <div class=\"kit-tree-node\">\n @if (dataItem.displayValue !== undefined) {\n <div class=\"kit-tree-node-key\">{{ dataItem.displayKey }}</div>\n <div class=\"kit-tree-node-separator\">:</div>\n @if (!isNodeExpanded(dataItem)) {\n <div class=\"kit-tree-node-value\">{{ dataItem.displayValue }}</div>\n }\n } @else {\n <div class=\"kit-tree-node-key\">{{ dataItem.text }}</div>\n }\n </div>\n </ng-template>\n </kendo-treeview>\n }\n </div>\n </div>\n}\n", styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}div[kendowatermarkoverlay]{display:none}:root{--ui-kit-header-height: 86px;--ui-kit-sidebar-collapsed-width: 56px;--ui-kit-sidebar-expanded-width: 256px;--ui-kit-layout-gap: 25px}.kit-tree{padding:15px;background-color:var(--ui-kit-color-white);border:1px solid var(--ui-kit-color-grey-11);border-radius:10px}.kit-tree-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--ui-kit-color-grey-11)}.kit-tree-content{padding:15px 0 0}.kit-tree-node{display:flex;align-items:center;gap:5px;padding:3px 0;font-size:14px;font-family:monospace;line-height:1.5}.kit-tree-node-key{color:var(--ui-kit-color-grey-10);font-weight:600}.kit-tree-node-separator{color:var(--ui-kit-color-grey-10)}.kit-tree-node-value{color:var(--ui-kit-color-main)}.kit-tree-raw{margin:0;padding:10px;color:var(--ui-kit-color-grey-10);font-family:monospace;border-radius:6px;white-space:pre-wrap;word-break:break-word;background:var(--ui-kit-color-grey-8)}.kit-tree .k-treeview::-webkit-scrollbar{height:8px;width:8px;background-color:var(--ui-kit-color-white)}.kit-tree .k-treeview::-webkit-scrollbar-thumb{background-color:var(--ui-kit-color-grey-12);border-radius:4px}.kit-tree .k-treeview::-webkit-scrollbar-thumb:hover{background-color:var(--ui-kit-color-grey-18)}.kit-tree .k-treeview{scrollbar-color:initial}.kit-tree .k-treeview-group{padding-left:20px}.kit-tree .k-treeview-lines{margin:0;padding:0;list-style:none}.kit-tree .k-treeview-leaf{padding:0}.kit-tree .k-treeview-item{list-style:none}.kit-tree .k-treeview-item-content{display:flex;align-items:center;gap:5px;padding-inline-start:calc(var(--kendo-treeview-level, 0) * 20px)}.kit-tree .k-treeview-item-content:hover{background:none}.kit-tree .k-treeview-item-content.k-focus{box-shadow:none}.kit-tree .k-treeview-toggle{margin-inline-start:-25px;width:18px;height:18px;cursor:pointer}.kit-tree .k-treeview-toggle:hover{color:var(--ui-kit-color-main)}.kit-tree .k-treeview-toggle .k-icon{padding:0;width:100%;height:100%}\n"], dependencies: [{ kind: "component", type: i1$f.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "hasCheckbox", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }, { kind: "directive", type: i1$f.NodeTemplateDirective, selector: "[kendoTreeViewNodeTemplate]" }, { kind: "directive", type: i1$f.ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { kind: "directive", type: i1$f.HierarchyBindingDirective, selector: "[kendoTreeViewHierarchyBinding]", inputs: ["childrenField", "nodes", "isVisible", "loadOnDemand"] }, { kind: "component", type: KitButtonComponent, selector: "kit-button", inputs: ["disabled", "label", "type", "icon", "iconType", "kind", "state", "iconPosition", "buttonClass", "active"], outputs: ["clicked"] }, { kind: "directive", type: KitTooltipDirective, selector: "[kitTooltip]", inputs: ["kitTooltipPosition", "kitTooltipFilter", "kitTooltipTemplateRef", "kitTooltipVisible", "kitTooltipOffset"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
20308
20326
|
}
|
|
20309
20327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitTreeComponent, decorators: [{
|
|
20310
20328
|
type: Component,
|
|
@@ -20316,7 +20334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
20316
20334
|
TranslatePipe,
|
|
20317
20335
|
], providers: [
|
|
20318
20336
|
KitClipboardService,
|
|
20319
|
-
], template: "<div class=\"kit-tree\">\n
|
|
20337
|
+
], template: "@if (!isEmpty()) {\n <div class=\"kit-tree\">\n <div class=\"kit-tree-toolbar\">\n @if (isStructuredFormat()) {\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"toggleAllTitleKey() | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"toggleAllIcon()\"\n [disabled]=\"isExpandAllDisabled()\"\n (clicked)=\"toggleAll()\"\n ></kit-button>\n }\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"'kit.tree.actions.copyRaw' | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"kitSvgIcon.COPY\"\n [iconType]=\"kitSvgIconType.STROKE\"\n (clicked)=\"copyRawInput()\"\n ></kit-button>\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"'kit.tree.actions.copyPrettified' | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"kitSvgIcon.MAGIC_WAND\"\n (clicked)=\"copyPrettifiedInput()\"\n ></kit-button>\n\n @if (isStructuredFormat()) {\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"toggleViewTitleKey() | translate\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"toggleViewIcon()\"\n [active]=\"isRawView()\"\n (clicked)=\"toggleRawFormattedView()\"\n ></kit-button>\n }\n\n @for (action of customActions(); track action.id) {\n <kit-button kitTooltip\n kitTooltipFilter=\"kit-button\"\n [title]=\"action.label\"\n [kitTooltipPosition]=\"kitTooltipPosition.TOP\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [icon]=\"action.icon\"\n [active]=\"activeCustomActionId() === action.id\"\n [disabled]=\"!!action.disabled\"\n (clicked)=\"onCustomActionClick(action)\"\n ></kit-button>\n }\n </div>\n\n <div class=\"kit-tree-content\">\n @if (isCustomContentActive()) {\n <div class=\"kit-tree-custom-content\">\n <ng-container [ngTemplateOutlet]=\"activeTemplate()?.templateRef ?? null\"></ng-container>\n </div>\n } @else if (isRawView() || !isStructuredFormat()) {\n <pre class=\"kit-tree-raw\">{{ rawContent() }}</pre>\n } @else {\n <kendo-treeview kendoTreeViewHierarchyBinding\n kendoTreeViewExpandable\n childrenField=\"children\"\n textField=\"displayKey\"\n expandBy=\"key\"\n [nodes]=\"treeNodes()\"\n [expandedKeys]=\"expandedKeys()\"\n (expandedKeysChange)=\"onExpandedKeysChange($event)\">\n <ng-template kendoTreeViewNodeTemplate\n let-dataItem>\n <div class=\"kit-tree-node\">\n @if (dataItem.displayValue !== undefined) {\n <div class=\"kit-tree-node-key\">{{ dataItem.displayKey }}</div>\n <div class=\"kit-tree-node-separator\">:</div>\n @if (!isNodeExpanded(dataItem)) {\n <div class=\"kit-tree-node-value\">{{ dataItem.displayValue }}</div>\n }\n } @else {\n <div class=\"kit-tree-node-key\">{{ dataItem.text }}</div>\n }\n </div>\n </ng-template>\n </kendo-treeview>\n }\n </div>\n </div>\n}\n", styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}div[kendowatermarkoverlay]{display:none}:root{--ui-kit-header-height: 86px;--ui-kit-sidebar-collapsed-width: 56px;--ui-kit-sidebar-expanded-width: 256px;--ui-kit-layout-gap: 25px}.kit-tree{padding:15px;background-color:var(--ui-kit-color-white);border:1px solid var(--ui-kit-color-grey-11);border-radius:10px}.kit-tree-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--ui-kit-color-grey-11)}.kit-tree-content{padding:15px 0 0}.kit-tree-node{display:flex;align-items:center;gap:5px;padding:3px 0;font-size:14px;font-family:monospace;line-height:1.5}.kit-tree-node-key{color:var(--ui-kit-color-grey-10);font-weight:600}.kit-tree-node-separator{color:var(--ui-kit-color-grey-10)}.kit-tree-node-value{color:var(--ui-kit-color-main)}.kit-tree-raw{margin:0;padding:10px;color:var(--ui-kit-color-grey-10);font-family:monospace;border-radius:6px;white-space:pre-wrap;word-break:break-word;background:var(--ui-kit-color-grey-8)}.kit-tree .k-treeview::-webkit-scrollbar{height:8px;width:8px;background-color:var(--ui-kit-color-white)}.kit-tree .k-treeview::-webkit-scrollbar-thumb{background-color:var(--ui-kit-color-grey-12);border-radius:4px}.kit-tree .k-treeview::-webkit-scrollbar-thumb:hover{background-color:var(--ui-kit-color-grey-18)}.kit-tree .k-treeview{scrollbar-color:initial}.kit-tree .k-treeview-group{padding-left:20px}.kit-tree .k-treeview-lines{margin:0;padding:0;list-style:none}.kit-tree .k-treeview-leaf{padding:0}.kit-tree .k-treeview-item{list-style:none}.kit-tree .k-treeview-item-content{display:flex;align-items:center;gap:5px;padding-inline-start:calc(var(--kendo-treeview-level, 0) * 20px)}.kit-tree .k-treeview-item-content:hover{background:none}.kit-tree .k-treeview-item-content.k-focus{box-shadow:none}.kit-tree .k-treeview-toggle{margin-inline-start:-25px;width:18px;height:18px;cursor:pointer}.kit-tree .k-treeview-toggle:hover{color:var(--ui-kit-color-main)}.kit-tree .k-treeview-toggle .k-icon{padding:0;width:100%;height:100%}\n"] }]
|
|
20320
20338
|
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], customActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "customActions", required: false }] }], contentTemplates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KitTreeContentDirective), { isSignal: true }] }] } });
|
|
20321
20339
|
|
|
20322
20340
|
class FetchUserRoles extends KitAbstractPayloadAction {
|