@indigina/ui-kit 1.1.521 → 1.1.522
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.
|
@@ -1888,6 +1888,11 @@ var KitCodeEditorLanguage;
|
|
|
1888
1888
|
KitCodeEditorLanguage["XSLT"] = "xslt";
|
|
1889
1889
|
KitCodeEditorLanguage["SCRIBAN"] = "scriban";
|
|
1890
1890
|
})(KitCodeEditorLanguage || (KitCodeEditorLanguage = {}));
|
|
1891
|
+
var KitCodeEditorMode;
|
|
1892
|
+
(function (KitCodeEditorMode) {
|
|
1893
|
+
KitCodeEditorMode["SINGLE"] = "single";
|
|
1894
|
+
KitCodeEditorMode["DIFF"] = "diff";
|
|
1895
|
+
})(KitCodeEditorMode || (KitCodeEditorMode = {}));
|
|
1891
1896
|
|
|
1892
1897
|
const registerScribanLanguage = (monaco) => {
|
|
1893
1898
|
const scribanLanguageId = KitCodeEditorLanguage.SCRIBAN;
|
|
@@ -2240,6 +2245,11 @@ class KitCodeEditorAdapterService {
|
|
|
2240
2245
|
async create(container, options) {
|
|
2241
2246
|
const monaco = monacoEditor;
|
|
2242
2247
|
const languageId = await this.languageRegistryService.ensureRegistered(monaco, options.languageId);
|
|
2248
|
+
return options.mode === KitCodeEditorMode.DIFF
|
|
2249
|
+
? this.createDiffAdapter(monaco, container, options, languageId)
|
|
2250
|
+
: this.createSingleAdapter(monaco, container, options, languageId);
|
|
2251
|
+
}
|
|
2252
|
+
createSingleAdapter(monaco, container, options, languageId) {
|
|
2243
2253
|
const editorInstance = monaco.editor.create(container, {
|
|
2244
2254
|
value: options.value,
|
|
2245
2255
|
language: languageId,
|
|
@@ -2257,7 +2267,6 @@ class KitCodeEditorAdapterService {
|
|
|
2257
2267
|
enabled: false,
|
|
2258
2268
|
},
|
|
2259
2269
|
scrollBeyondLastLine: false,
|
|
2260
|
-
tabSize: 2,
|
|
2261
2270
|
fontSize: 13,
|
|
2262
2271
|
roundedSelection: false,
|
|
2263
2272
|
glyphMargin: true,
|
|
@@ -2289,16 +2298,17 @@ class KitCodeEditorAdapterService {
|
|
|
2289
2298
|
overflowWidgetsDomNode: document.body,
|
|
2290
2299
|
renderValidationDecorations: 'on',
|
|
2291
2300
|
placeholder: options.placeholder,
|
|
2301
|
+
occurrencesHighlight: 'off',
|
|
2292
2302
|
});
|
|
2293
|
-
const isFindWidgetVisible = ()
|
|
2294
|
-
return container.querySelector('.find-widget.visible') !== null;
|
|
2295
|
-
};
|
|
2303
|
+
const isFindWidgetVisible = this.createFindWidgetVisibilityResolver(container);
|
|
2296
2304
|
return {
|
|
2305
|
+
getMode: () => KitCodeEditorMode.SINGLE,
|
|
2297
2306
|
setValue: (value) => {
|
|
2298
2307
|
if (editorInstance.getValue() !== value) {
|
|
2299
2308
|
editorInstance.setValue(value);
|
|
2300
2309
|
}
|
|
2301
2310
|
},
|
|
2311
|
+
setOriginalValue: () => { },
|
|
2302
2312
|
setLanguage: async (nextLanguageId) => {
|
|
2303
2313
|
const model = editorInstance.getModel();
|
|
2304
2314
|
if (!model) {
|
|
@@ -2327,47 +2337,167 @@ class KitCodeEditorAdapterService {
|
|
|
2327
2337
|
});
|
|
2328
2338
|
return () => subscription.dispose();
|
|
2329
2339
|
},
|
|
2330
|
-
openFindWidget: async () =>
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2340
|
+
openFindWidget: async () => this.openFindWidget(editorInstance),
|
|
2341
|
+
onFindWidgetVisibilityChange: (callback) => {
|
|
2342
|
+
return this.observeFindWidgetVisibility(container, callback, isFindWidgetVisible);
|
|
2343
|
+
},
|
|
2344
|
+
runFormatDocument: async () => this.runFormatDocument(editorInstance),
|
|
2345
|
+
onValueChange: (callback) => {
|
|
2346
|
+
const subscription = editorInstance.onDidChangeModelContent(() => {
|
|
2347
|
+
callback(editorInstance.getValue());
|
|
2348
|
+
});
|
|
2349
|
+
return () => subscription.dispose();
|
|
2350
|
+
},
|
|
2351
|
+
dispose: () => {
|
|
2352
|
+
editorInstance.dispose();
|
|
2353
|
+
},
|
|
2354
|
+
};
|
|
2355
|
+
}
|
|
2356
|
+
createDiffAdapter(monaco, container, options, languageId) {
|
|
2357
|
+
const editorInstance = monaco.editor.createDiffEditor(container, {
|
|
2358
|
+
readOnly: options.readOnly,
|
|
2359
|
+
originalEditable: false,
|
|
2360
|
+
theme: 'vs',
|
|
2361
|
+
automaticLayout: true,
|
|
2362
|
+
lineNumbers: options.showLineNumbers ? 'on' : 'off',
|
|
2363
|
+
lineNumbersMinChars: 4,
|
|
2364
|
+
wordWrap: options.wrap ? 'on' : 'off',
|
|
2365
|
+
minimap: {
|
|
2366
|
+
enabled: false,
|
|
2367
|
+
},
|
|
2368
|
+
scrollBeyondLastLine: false,
|
|
2369
|
+
renderSideBySide: true,
|
|
2370
|
+
enableSplitViewResizing: true,
|
|
2371
|
+
});
|
|
2372
|
+
const originalModel = monaco.editor.createModel(options.originalValue ?? '', languageId);
|
|
2373
|
+
const modifiedModel = monaco.editor.createModel(options.value, languageId);
|
|
2374
|
+
editorInstance.setModel({
|
|
2375
|
+
original: originalModel,
|
|
2376
|
+
modified: modifiedModel,
|
|
2377
|
+
});
|
|
2378
|
+
const originalEditor = editorInstance.getOriginalEditor();
|
|
2379
|
+
const modifiedEditor = editorInstance.getModifiedEditor();
|
|
2380
|
+
const isFindWidgetVisible = this.createFindWidgetVisibilityResolver(container);
|
|
2381
|
+
const updateEditorsOptions = (editorOptions) => {
|
|
2382
|
+
editorInstance.updateOptions(editorOptions);
|
|
2383
|
+
originalEditor.updateOptions(editorOptions);
|
|
2384
|
+
modifiedEditor.updateOptions(editorOptions);
|
|
2385
|
+
};
|
|
2386
|
+
updateEditorsOptions({
|
|
2387
|
+
lineDecorationsWidth: 16,
|
|
2388
|
+
fontSize: 13,
|
|
2389
|
+
roundedSelection: false,
|
|
2390
|
+
glyphMargin: true,
|
|
2391
|
+
folding: true,
|
|
2392
|
+
showFoldingControls: 'always',
|
|
2393
|
+
foldingStrategy: 'indentation',
|
|
2394
|
+
foldingHighlight: true,
|
|
2395
|
+
matchBrackets: 'always',
|
|
2396
|
+
bracketPairColorization: {
|
|
2397
|
+
enabled: true,
|
|
2398
|
+
},
|
|
2399
|
+
guides: {
|
|
2400
|
+
bracketPairs: true,
|
|
2401
|
+
indentation: true,
|
|
2402
|
+
},
|
|
2403
|
+
contextmenu: false,
|
|
2404
|
+
quickSuggestions: false,
|
|
2405
|
+
suggestOnTriggerCharacters: false,
|
|
2406
|
+
renderValidationDecorations: 'on',
|
|
2407
|
+
scrollbar: {
|
|
2408
|
+
alwaysConsumeMouseWheel: false,
|
|
2409
|
+
},
|
|
2410
|
+
occurrencesHighlight: 'off',
|
|
2411
|
+
});
|
|
2412
|
+
return {
|
|
2413
|
+
getMode: () => KitCodeEditorMode.DIFF,
|
|
2414
|
+
setValue: (value) => {
|
|
2415
|
+
if (modifiedModel.getValue() !== value) {
|
|
2416
|
+
modifiedModel.setValue(value);
|
|
2336
2417
|
}
|
|
2337
|
-
return false;
|
|
2338
2418
|
},
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2419
|
+
setOriginalValue: (value) => {
|
|
2420
|
+
if (originalModel.getValue() !== value) {
|
|
2421
|
+
originalModel.setValue(value);
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2424
|
+
setLanguage: async (nextLanguageId) => {
|
|
2425
|
+
const monacoLanguageId = await this.languageRegistryService.ensureRegistered(monaco, nextLanguageId);
|
|
2426
|
+
monaco.editor.setModelLanguage(originalModel, monacoLanguageId);
|
|
2427
|
+
monaco.editor.setModelLanguage(modifiedModel, monacoLanguageId);
|
|
2428
|
+
},
|
|
2429
|
+
setReadOnly: (readOnly) => {
|
|
2430
|
+
editorInstance.updateOptions({ readOnly });
|
|
2431
|
+
modifiedEditor.updateOptions({ readOnly });
|
|
2432
|
+
},
|
|
2433
|
+
setWrap: (wrap) => {
|
|
2434
|
+
updateEditorsOptions({
|
|
2435
|
+
wordWrap: wrap ? 'on' : 'off',
|
|
2342
2436
|
});
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
attributeFilter: ['class'],
|
|
2437
|
+
},
|
|
2438
|
+
setLineNumbers: (showLineNumbers) => {
|
|
2439
|
+
updateEditorsOptions({
|
|
2440
|
+
lineNumbers: showLineNumbers ? 'on' : 'off',
|
|
2348
2441
|
});
|
|
2349
|
-
callback(isFindWidgetVisible());
|
|
2350
|
-
return () => observer.disconnect();
|
|
2351
2442
|
},
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
|
|
2443
|
+
getContentHeight: () => modifiedEditor.getContentHeight(),
|
|
2444
|
+
onContentHeightChange: (callback) => {
|
|
2445
|
+
const subscription = modifiedEditor.onDidContentSizeChange(() => {
|
|
2446
|
+
callback(modifiedEditor.getContentHeight());
|
|
2447
|
+
});
|
|
2448
|
+
return () => subscription.dispose();
|
|
2449
|
+
},
|
|
2450
|
+
openFindWidget: async () => this.openFindWidget(modifiedEditor),
|
|
2451
|
+
onFindWidgetVisibilityChange: (callback) => {
|
|
2452
|
+
return this.observeFindWidgetVisibility(container, callback, isFindWidgetVisible);
|
|
2359
2453
|
},
|
|
2454
|
+
runFormatDocument: async () => this.runFormatDocument(modifiedEditor),
|
|
2360
2455
|
onValueChange: (callback) => {
|
|
2361
|
-
const subscription =
|
|
2362
|
-
callback(
|
|
2456
|
+
const subscription = modifiedEditor.onDidChangeModelContent(() => {
|
|
2457
|
+
callback(modifiedModel.getValue());
|
|
2363
2458
|
});
|
|
2364
2459
|
return () => subscription.dispose();
|
|
2365
2460
|
},
|
|
2366
2461
|
dispose: () => {
|
|
2367
2462
|
editorInstance.dispose();
|
|
2463
|
+
originalModel.dispose();
|
|
2464
|
+
modifiedModel.dispose();
|
|
2368
2465
|
},
|
|
2369
2466
|
};
|
|
2370
2467
|
}
|
|
2468
|
+
createFindWidgetVisibilityResolver(container) {
|
|
2469
|
+
return () => container.querySelector('.find-widget.visible') !== null;
|
|
2470
|
+
}
|
|
2471
|
+
observeFindWidgetVisibility(container, callback, isFindWidgetVisible) {
|
|
2472
|
+
const observer = new MutationObserver(() => {
|
|
2473
|
+
callback(isFindWidgetVisible());
|
|
2474
|
+
});
|
|
2475
|
+
observer.observe(container, {
|
|
2476
|
+
subtree: true,
|
|
2477
|
+
childList: true,
|
|
2478
|
+
attributes: true,
|
|
2479
|
+
attributeFilter: ['class'],
|
|
2480
|
+
});
|
|
2481
|
+
callback(isFindWidgetVisible());
|
|
2482
|
+
return () => observer.disconnect();
|
|
2483
|
+
}
|
|
2484
|
+
async openFindWidget(editorInstance) {
|
|
2485
|
+
editorInstance.focus();
|
|
2486
|
+
const action = editorInstance.getAction('actions.find');
|
|
2487
|
+
if (action) {
|
|
2488
|
+
await action.run();
|
|
2489
|
+
return true;
|
|
2490
|
+
}
|
|
2491
|
+
return false;
|
|
2492
|
+
}
|
|
2493
|
+
async runFormatDocument(editorInstance) {
|
|
2494
|
+
const action = editorInstance.getAction('editor.action.formatDocument');
|
|
2495
|
+
if (!action) {
|
|
2496
|
+
return false;
|
|
2497
|
+
}
|
|
2498
|
+
await action.run();
|
|
2499
|
+
return true;
|
|
2500
|
+
}
|
|
2371
2501
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: KitCodeEditorAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2372
2502
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: KitCodeEditorAdapterService }); }
|
|
2373
2503
|
}
|
|
@@ -2766,6 +2896,8 @@ class KitCodeEditorComponent {
|
|
|
2766
2896
|
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
2767
2897
|
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
2768
2898
|
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2899
|
+
this.mode = model(KitCodeEditorMode.SINGLE, ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
2900
|
+
this.originalValue = model(...(ngDevMode ? [undefined, { debugName: "originalValue" }] : /* istanbul ignore next */ []));
|
|
2769
2901
|
this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
2770
2902
|
this.disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
2771
2903
|
this.height = input(...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
|
|
@@ -2774,11 +2906,17 @@ class KitCodeEditorComponent {
|
|
|
2774
2906
|
this.showToolbar = input(true, ...(ngDevMode ? [{ debugName: "showToolbar" }] : /* istanbul ignore next */ []));
|
|
2775
2907
|
this.showFormatAction = input(true, ...(ngDevMode ? [{ debugName: "showFormatAction" }] : /* istanbul ignore next */ []));
|
|
2776
2908
|
this.showFindAction = input(true, ...(ngDevMode ? [{ debugName: "showFindAction" }] : /* istanbul ignore next */ []));
|
|
2909
|
+
this.invalid = input(false, ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
2910
|
+
this.messageIcon = input(...(ngDevMode ? [undefined, { debugName: "messageIcon" }] : /* istanbul ignore next */ []));
|
|
2911
|
+
this.messageText = input(...(ngDevMode ? [undefined, { debugName: "messageText" }] : /* istanbul ignore next */ []));
|
|
2777
2912
|
this.editorReady = output();
|
|
2778
2913
|
this.contentChanged = output();
|
|
2779
2914
|
this.formatFailed = output();
|
|
2780
2915
|
this.findFailed = output();
|
|
2916
|
+
this.diffAccepted = output();
|
|
2917
|
+
this.diffDiscarded = output();
|
|
2781
2918
|
this.editorContainer = viewChild.required('editorContainer');
|
|
2919
|
+
this.isDiffMode = computed(() => this.mode() === KitCodeEditorMode.DIFF, ...(ngDevMode ? [{ debugName: "isDiffMode" }] : /* istanbul ignore next */ []));
|
|
2782
2920
|
this.localWrap = signal(this.wrap(), ...(ngDevMode ? [{ debugName: "localWrap" }] : /* istanbul ignore next */ []));
|
|
2783
2921
|
this.localShowLineNumbers = signal(this.showLineNumbers(), ...(ngDevMode ? [{ debugName: "localShowLineNumbers" }] : /* istanbul ignore next */ []));
|
|
2784
2922
|
this.editorAutoHeight = signal(160, ...(ngDevMode ? [{ debugName: "editorAutoHeight" }] : /* istanbul ignore next */ []));
|
|
@@ -2799,7 +2937,7 @@ class KitCodeEditorComponent {
|
|
|
2799
2937
|
};
|
|
2800
2938
|
this.onTouched = () => {
|
|
2801
2939
|
};
|
|
2802
|
-
effect(() => this.writeValue(this.value()
|
|
2940
|
+
effect(() => this.value() && this.writeValue(this.value()));
|
|
2803
2941
|
effect(() => {
|
|
2804
2942
|
const nextWrap = this.wrap();
|
|
2805
2943
|
this.localWrap.set(nextWrap);
|
|
@@ -2811,6 +2949,13 @@ class KitCodeEditorComponent {
|
|
|
2811
2949
|
this.editorAdapter?.setLineNumbers(nextShowLineNumbers);
|
|
2812
2950
|
});
|
|
2813
2951
|
effect(() => this.editorAdapter?.setReadOnly(this.isReadOnlyMode()));
|
|
2952
|
+
effect(() => {
|
|
2953
|
+
const originalValue = this.originalValue() ?? '';
|
|
2954
|
+
if (!this.isDiffMode()) {
|
|
2955
|
+
return;
|
|
2956
|
+
}
|
|
2957
|
+
this.editorAdapter?.setOriginalValue(originalValue);
|
|
2958
|
+
});
|
|
2814
2959
|
effect(() => {
|
|
2815
2960
|
const lang = this.language();
|
|
2816
2961
|
const adapter = this.editorAdapter;
|
|
@@ -2819,15 +2964,19 @@ class KitCodeEditorComponent {
|
|
|
2819
2964
|
}
|
|
2820
2965
|
adapter.setLanguage(lang);
|
|
2821
2966
|
});
|
|
2967
|
+
effect(() => {
|
|
2968
|
+
const mode = this.mode();
|
|
2969
|
+
if (!this.editorAdapter || this.editorAdapter.getMode() === mode) {
|
|
2970
|
+
return;
|
|
2971
|
+
}
|
|
2972
|
+
this.reinitializeEditor();
|
|
2973
|
+
});
|
|
2822
2974
|
}
|
|
2823
2975
|
ngAfterViewInit() {
|
|
2824
2976
|
void this.initializeEditor();
|
|
2825
2977
|
}
|
|
2826
2978
|
ngOnDestroy() {
|
|
2827
|
-
this.
|
|
2828
|
-
this.contentChangeUnsubscribe?.();
|
|
2829
|
-
this.findWidgetVisibilityUnsubscribe?.();
|
|
2830
|
-
this.editorAdapter?.dispose();
|
|
2979
|
+
this.destroyEditorAdapter();
|
|
2831
2980
|
}
|
|
2832
2981
|
writeValue(value = '') {
|
|
2833
2982
|
const nextValue = value ?? '';
|
|
@@ -2860,6 +3009,27 @@ class KitCodeEditorComponent {
|
|
|
2860
3009
|
this.localShowLineNumbers.update((currentValue) => !currentValue);
|
|
2861
3010
|
this.editorAdapter?.setLineNumbers(this.localShowLineNumbers());
|
|
2862
3011
|
}
|
|
3012
|
+
onAcceptDiffClicked() {
|
|
3013
|
+
if (!this.isDiffMode()) {
|
|
3014
|
+
return;
|
|
3015
|
+
}
|
|
3016
|
+
const acceptedValue = this.currentValue();
|
|
3017
|
+
this.toolbarMessage.set(null);
|
|
3018
|
+
this.mode.set(KitCodeEditorMode.SINGLE);
|
|
3019
|
+
this.originalValue.set(undefined);
|
|
3020
|
+
this.diffAccepted.emit(acceptedValue);
|
|
3021
|
+
}
|
|
3022
|
+
onDiscardDiffClicked() {
|
|
3023
|
+
if (!this.isDiffMode()) {
|
|
3024
|
+
return;
|
|
3025
|
+
}
|
|
3026
|
+
const restoredValue = this.originalValue() ?? '';
|
|
3027
|
+
this.setContent(restoredValue);
|
|
3028
|
+
this.toolbarMessage.set(null);
|
|
3029
|
+
this.mode.set(KitCodeEditorMode.SINGLE);
|
|
3030
|
+
this.originalValue.set(undefined);
|
|
3031
|
+
this.diffDiscarded.emit(restoredValue);
|
|
3032
|
+
}
|
|
2863
3033
|
async onFormatClicked() {
|
|
2864
3034
|
const currentValue = this.currentValue();
|
|
2865
3035
|
const formatResult = await this.formatterService.format(this.language(), currentValue);
|
|
@@ -2885,12 +3055,23 @@ class KitCodeEditorComponent {
|
|
|
2885
3055
|
this.onTouched();
|
|
2886
3056
|
}
|
|
2887
3057
|
getEditorHeight() {
|
|
2888
|
-
|
|
3058
|
+
const height = this.height();
|
|
3059
|
+
const diffMaxHeight = 400;
|
|
3060
|
+
if (height) {
|
|
3061
|
+
return height;
|
|
3062
|
+
}
|
|
3063
|
+
if (this.isDiffMode()) {
|
|
3064
|
+
return `${diffMaxHeight}px`;
|
|
3065
|
+
}
|
|
3066
|
+
return `${this.editorAutoHeight()}px`;
|
|
2889
3067
|
}
|
|
2890
3068
|
async initializeEditor() {
|
|
2891
3069
|
try {
|
|
3070
|
+
this.initializationError.set(null);
|
|
2892
3071
|
this.editorAdapter = await this.adapterService.create(this.editorContainer().nativeElement, {
|
|
3072
|
+
mode: this.mode(),
|
|
2893
3073
|
value: this.currentValue(),
|
|
3074
|
+
originalValue: this.originalValue(),
|
|
2894
3075
|
languageId: this.language(),
|
|
2895
3076
|
readOnly: this.isReadOnlyMode(),
|
|
2896
3077
|
wrap: this.localWrap(),
|
|
@@ -2911,6 +3092,7 @@ class KitCodeEditorComponent {
|
|
|
2911
3092
|
this.contentChanged.emit(value);
|
|
2912
3093
|
});
|
|
2913
3094
|
this.editorReady.emit({
|
|
3095
|
+
mode: this.mode(),
|
|
2914
3096
|
languageId: this.language(),
|
|
2915
3097
|
editor: this.editorAdapter,
|
|
2916
3098
|
});
|
|
@@ -2923,6 +3105,24 @@ class KitCodeEditorComponent {
|
|
|
2923
3105
|
isReadOnlyMode() {
|
|
2924
3106
|
return this.readonly() || this.disabled();
|
|
2925
3107
|
}
|
|
3108
|
+
clearEditorSubscriptions() {
|
|
3109
|
+
this.contentHeightUnsubscribe?.();
|
|
3110
|
+
this.contentHeightUnsubscribe = null;
|
|
3111
|
+
this.contentChangeUnsubscribe?.();
|
|
3112
|
+
this.contentChangeUnsubscribe = null;
|
|
3113
|
+
this.findWidgetVisibilityUnsubscribe?.();
|
|
3114
|
+
this.findWidgetVisibilityUnsubscribe = null;
|
|
3115
|
+
}
|
|
3116
|
+
destroyEditorAdapter() {
|
|
3117
|
+
this.clearEditorSubscriptions();
|
|
3118
|
+
this.editorAdapter?.dispose();
|
|
3119
|
+
this.editorAdapter = null;
|
|
3120
|
+
this.isFindWidgetOpened.set(false);
|
|
3121
|
+
}
|
|
3122
|
+
async reinitializeEditor() {
|
|
3123
|
+
this.destroyEditorAdapter();
|
|
3124
|
+
await this.initializeEditor();
|
|
3125
|
+
}
|
|
2926
3126
|
setContent(value) {
|
|
2927
3127
|
this.currentValue.set(value);
|
|
2928
3128
|
this.editorAdapter?.setValue(value);
|
|
@@ -2930,7 +3130,7 @@ class KitCodeEditorComponent {
|
|
|
2930
3130
|
this.contentChanged.emit(value);
|
|
2931
3131
|
}
|
|
2932
3132
|
updateEditorHeight(contentHeight) {
|
|
2933
|
-
if (this.height()) {
|
|
3133
|
+
if (this.height() || this.isDiffMode()) {
|
|
2934
3134
|
return;
|
|
2935
3135
|
}
|
|
2936
3136
|
const minHeight = 60;
|
|
@@ -2938,7 +3138,7 @@ class KitCodeEditorComponent {
|
|
|
2938
3138
|
this.editorAutoHeight.set(nextHeight);
|
|
2939
3139
|
}
|
|
2940
3140
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: KitCodeEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2941
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: KitCodeEditorComponent, isStandalone: true, selector: "kit-code-editor", inputs: { language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, showLineNumbers: { classPropertyName: "showLineNumbers", publicName: "showLineNumbers", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, showFormatAction: { classPropertyName: "showFormatAction", publicName: "showFormatAction", isSignal: true, isRequired: false, transformFunction: null }, showFindAction: { classPropertyName: "showFindAction", publicName: "showFindAction", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", editorReady: "editorReady", contentChanged: "contentChanged", formatFailed: "formatFailed", findFailed: "findFailed" }, providers: [
|
|
3141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: KitCodeEditorComponent, isStandalone: true, selector: "kit-code-editor", inputs: { language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, originalValue: { classPropertyName: "originalValue", publicName: "originalValue", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, showLineNumbers: { classPropertyName: "showLineNumbers", publicName: "showLineNumbers", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, showFormatAction: { classPropertyName: "showFormatAction", publicName: "showFormatAction", isSignal: true, isRequired: false, transformFunction: null }, showFindAction: { classPropertyName: "showFindAction", publicName: "showFindAction", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null }, messageText: { classPropertyName: "messageText", publicName: "messageText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { mode: "modeChange", originalValue: "originalValueChange", disabled: "disabledChange", editorReady: "editorReady", contentChanged: "contentChanged", formatFailed: "formatFailed", findFailed: "findFailed", diffAccepted: "diffAccepted", diffDiscarded: "diffDiscarded" }, providers: [
|
|
2942
3142
|
{
|
|
2943
3143
|
provide: NG_VALUE_ACCESSOR,
|
|
2944
3144
|
useExisting: forwardRef(() => KitCodeEditorComponent),
|
|
@@ -2947,7 +3147,7 @@ class KitCodeEditorComponent {
|
|
|
2947
3147
|
KitCodeEditorAdapterService,
|
|
2948
3148
|
KitCodeEditorFormatterService,
|
|
2949
3149
|
KitCodeEditorLanguageRegistryService,
|
|
2950
|
-
], viewQueries: [{ propertyName: "editorContainer", first: true, predicate: ["editorContainer"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"kit-code-editor\">\n @if (label()) {\n <kit-form-label class=\"kit-code-editor-label\"\n [text]=\"label()\"
|
|
3150
|
+
], viewQueries: [{ propertyName: "editorContainer", first: true, predicate: ["editorContainer"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"kit-code-editor\"\n [class.invalid]=\"invalid()\">\n @if (label()) {\n <kit-form-label class=\"kit-code-editor-label\"\n [text]=\"label()\" />\n }\n\n <div class=\"kit-code-editor-main\">\n @if (showToolbar()) {\n <div class=\"kit-code-editor-toolbar\">\n @if (showFormatAction()) {\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.format' | translate\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.MAGIC_WAND\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onFormatClicked()\" />\n }\n\n @if (showFindAction()) {\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.find' | translate\"\n [active]=\"isFindWidgetOpened()\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.SEARCH\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n [iconType]=\"kitSvgIconType.STROKE\"\n (clicked)=\"onFindClicked()\" />\n }\n\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.lines' | translate\"\n [active]=\"localShowLineNumbers()\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.NUMBER_LIST\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onToggleLineNumbersClicked()\" />\n\n @if (isDiffMode()) {\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.discard' | translate\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.ROTATE_LEFT\"\n [iconType]=\"kitSvgIconType.STROKE\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onDiscardDiffClicked()\" />\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.accept' | translate\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.CHECK\"\n [iconType]=\"kitSvgIconType.STROKE\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onAcceptDiffClicked()\" />\n }\n </div>\n }\n\n @if (toolbarMessage()) {\n <div class=\"kit-code-editor-toolbar-message\">\n {{ toolbarMessage() | translate }}\n </div>\n }\n\n <div class=\"kit-code-editor-input\"\n [style.height]=\"getEditorHeight()\"\n [class.disabled]=\"disabled()\">\n @if (!initializationError()) {\n <div #editorContainer\n class=\"kit-code-editor-container\"\n (focusout)=\"onEditorBlur()\"\n ></div>\n } @else {\n <div class=\"kit-code-editor-error\">{{ initializationError() | translate }}</div>\n }\n </div>\n </div>\n\n @if (messageText()) {\n <kit-form-message [icon]=\"messageIcon()\"\n [message]=\"messageText()\"\n ></kit-form-message>\n }\n</div>\n", styles: [".kit-code-editor{display:block}.kit-code-editor.invalid .kit-code-editor-main{border-color:var(--ui-kit-color-red-1)}.kit-code-editor-label{display:block;margin-bottom:4px}.kit-code-editor-main{padding:15px;border:1px solid var(--ui-kit-color-grey-11);border-radius:10px;background:var(--ui-kit-color-white)}.kit-code-editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.kit-code-editor-toolbar-message{margin-bottom:8px;color:var(--ui-kit-color-red-1);font-size:14px;line-height:1.4}.kit-code-editor-input{box-sizing:content-box;border:1px solid var(--ui-kit-color-grey-11)}.kit-code-editor-input.disabled{background:var(--ui-kit-color-grey-13);border-color:var(--ui-kit-color-grey-11)}.kit-code-editor-container{position:relative;width:100%;height:100%}.kit-code-editor-error{padding:8px 12px;color:var(--ui-kit-color-red-1);font-size:12px;line-height:1.4;background:var(--ui-kit-color-red-2)}.kit-code-editor .find-widget>.button.codicon-widget-close{box-sizing:content-box}.kit-code-editor .context-view{margin-bottom:5px}.kit-code-editor .context-view .hover-contents{white-space:nowrap!important}\n"], dependencies: [{ kind: "component", type: KitButtonComponent, selector: "kit-button", inputs: ["disabled", "label", "type", "icon", "iconType", "kind", "state", "iconPosition", "buttonClass", "active"], outputs: ["clicked"] }, { kind: "component", type: KitFormLabelComponent, selector: "kit-form-label", inputs: ["text", "for", "tooltip", "popoverConfig"] }, { kind: "component", type: KitFormMessageComponent, selector: "kit-form-message", inputs: ["icon", "message"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2951
3151
|
}
|
|
2952
3152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: KitCodeEditorComponent, decorators: [{
|
|
2953
3153
|
type: Component,
|
|
@@ -2964,8 +3164,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2964
3164
|
KitButtonComponent,
|
|
2965
3165
|
KitFormLabelComponent,
|
|
2966
3166
|
TranslatePipe,
|
|
2967
|
-
|
|
2968
|
-
|
|
3167
|
+
KitFormMessageComponent,
|
|
3168
|
+
], template: "<div class=\"kit-code-editor\"\n [class.invalid]=\"invalid()\">\n @if (label()) {\n <kit-form-label class=\"kit-code-editor-label\"\n [text]=\"label()\" />\n }\n\n <div class=\"kit-code-editor-main\">\n @if (showToolbar()) {\n <div class=\"kit-code-editor-toolbar\">\n @if (showFormatAction()) {\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.format' | translate\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.MAGIC_WAND\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onFormatClicked()\" />\n }\n\n @if (showFindAction()) {\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.find' | translate\"\n [active]=\"isFindWidgetOpened()\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.SEARCH\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n [iconType]=\"kitSvgIconType.STROKE\"\n (clicked)=\"onFindClicked()\" />\n }\n\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.lines' | translate\"\n [active]=\"localShowLineNumbers()\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.NUMBER_LIST\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onToggleLineNumbersClicked()\" />\n\n @if (isDiffMode()) {\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.discard' | translate\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.ROTATE_LEFT\"\n [iconType]=\"kitSvgIconType.STROKE\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onDiscardDiffClicked()\" />\n <kit-button class=\"kit-code-editor-toolbar-button\"\n [label]=\"'kit.codeEditor.accept' | translate\"\n [disabled]=\"disabled()\"\n [type]=\"kitButtonType.GHOST\"\n [kind]=\"kitButtonKind.SMALL\"\n [icon]=\"kitSvgIcon.CHECK\"\n [iconType]=\"kitSvgIconType.STROKE\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n (clicked)=\"onAcceptDiffClicked()\" />\n }\n </div>\n }\n\n @if (toolbarMessage()) {\n <div class=\"kit-code-editor-toolbar-message\">\n {{ toolbarMessage() | translate }}\n </div>\n }\n\n <div class=\"kit-code-editor-input\"\n [style.height]=\"getEditorHeight()\"\n [class.disabled]=\"disabled()\">\n @if (!initializationError()) {\n <div #editorContainer\n class=\"kit-code-editor-container\"\n (focusout)=\"onEditorBlur()\"\n ></div>\n } @else {\n <div class=\"kit-code-editor-error\">{{ initializationError() | translate }}</div>\n }\n </div>\n </div>\n\n @if (messageText()) {\n <kit-form-message [icon]=\"messageIcon()\"\n [message]=\"messageText()\"\n ></kit-form-message>\n }\n</div>\n", styles: [".kit-code-editor{display:block}.kit-code-editor.invalid .kit-code-editor-main{border-color:var(--ui-kit-color-red-1)}.kit-code-editor-label{display:block;margin-bottom:4px}.kit-code-editor-main{padding:15px;border:1px solid var(--ui-kit-color-grey-11);border-radius:10px;background:var(--ui-kit-color-white)}.kit-code-editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.kit-code-editor-toolbar-message{margin-bottom:8px;color:var(--ui-kit-color-red-1);font-size:14px;line-height:1.4}.kit-code-editor-input{box-sizing:content-box;border:1px solid var(--ui-kit-color-grey-11)}.kit-code-editor-input.disabled{background:var(--ui-kit-color-grey-13);border-color:var(--ui-kit-color-grey-11)}.kit-code-editor-container{position:relative;width:100%;height:100%}.kit-code-editor-error{padding:8px 12px;color:var(--ui-kit-color-red-1);font-size:12px;line-height:1.4;background:var(--ui-kit-color-red-2)}.kit-code-editor .find-widget>.button.codicon-widget-close{box-sizing:content-box}.kit-code-editor .context-view{margin-bottom:5px}.kit-code-editor .context-view .hover-contents{white-space:nowrap!important}\n"] }]
|
|
3169
|
+
}], ctorParameters: () => [], propDecorators: { language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }, { type: i0.Output, args: ["modeChange"] }], originalValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "originalValue", required: false }] }, { type: i0.Output, args: ["originalValueChange"] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], showLineNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLineNumbers", required: false }] }], showToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToolbar", required: false }] }], showFormatAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFormatAction", required: false }] }], showFindAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFindAction", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], messageText: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageText", required: false }] }], editorReady: [{ type: i0.Output, args: ["editorReady"] }], contentChanged: [{ type: i0.Output, args: ["contentChanged"] }], formatFailed: [{ type: i0.Output, args: ["formatFailed"] }], findFailed: [{ type: i0.Output, args: ["findFailed"] }], diffAccepted: [{ type: i0.Output, args: ["diffAccepted"] }], diffDiscarded: [{ type: i0.Output, args: ["diffDiscarded"] }], editorContainer: [{ type: i0.ViewChild, args: ['editorContainer', { isSignal: true }] }] } });
|
|
2969
3170
|
|
|
2970
3171
|
var KitTextLabelState;
|
|
2971
3172
|
(function (KitTextLabelState) {
|
|
@@ -11063,6 +11264,8 @@ const kitTranslations = {
|
|
|
11063
11264
|
format: 'Format',
|
|
11064
11265
|
find: 'Find',
|
|
11065
11266
|
lines: 'Lines',
|
|
11267
|
+
accept: 'Accept',
|
|
11268
|
+
discard: 'Discard',
|
|
11066
11269
|
findUnavailable: 'Find is not available in the current editor mode.',
|
|
11067
11270
|
formatFailed: 'Formatting failed for the current content.',
|
|
11068
11271
|
formatUnavailable: 'Formatting is not available for the current language.',
|
|
@@ -11314,6 +11517,8 @@ const kitTranslations = {
|
|
|
11314
11517
|
format: 'Форматировать',
|
|
11315
11518
|
find: 'Поиск',
|
|
11316
11519
|
lines: 'Строки',
|
|
11520
|
+
accept: 'Принять',
|
|
11521
|
+
discard: 'Отменить',
|
|
11317
11522
|
findUnavailable: 'Поиск недоступен в текущем режиме редактора.',
|
|
11318
11523
|
formatFailed: 'Не удалось отформатировать текущее содержимое.',
|
|
11319
11524
|
formatUnavailable: 'Форматирование недоступно для текущего языка.',
|
|
@@ -16493,5 +16698,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
16493
16698
|
* Generated bundle index. Do not edit.
|
|
16494
16699
|
*/
|
|
16495
16700
|
|
|
16496
|
-
export { AbstractKitCtaPanelConfirmationComponent, AddGridFilter, FetchApiTokens, FetchUser, FetchUserIdentities, FetchUserPermissions, FetchUserSettings, HighlightPipe, KIT_ALL_PERMISSIONS_PATH, KIT_API_TOKENS_STATE_TOKEN, KIT_BASE_PATH, KIT_DATETIME_FORMAT_LONG, KIT_DATE_FORMAT, KIT_DATE_FORMAT_SHORT, KIT_ENTITY_CREATE_SERVICE, KIT_GRID_CELL_DATE_FORMAT_CONFIG, KIT_GRID_COLUMN_WIDTH, KIT_GRID_PAGE_SIZE, KIT_GRID_STATE_TOKEN, KIT_TIME_FORMAT_SHORT, KIT_USER_APPLICATIONS_PATH, KIT_USER_IDENTITIES_STATE_TOKEN, KIT_USER_PATH, KIT_USER_PERMISSIONS_PATH, KIT_USER_PERMISSIONS_STATE_TOKEN, KIT_USER_STATE_TOKEN, KitAbstractIdPayloadAction, KitAbstractPayloadAction, KitAccountService, KitApiTokenMaintenanceListComponent, KitApiTokenMaintenanceListState, KitApiTokensPermissionCategories, KitAutocompleteComponent, KitAutocompleteDirective, KitAvatarComponent, KitAvatarSize, KitBackButtonComponent, KitBadgeDirective, KitBadgeTheme, KitBreadcrumbsComponent, KitBreadcrumbsService, KitButtonComponent, KitButtonIconPosition, KitButtonKind, KitButtonState, KitButtonType, KitCardComponent, KitCardDetailsComponent, KitCardTheme, KitCheckboxComponent, KitCheckboxState, KitClipboardService, KitCodeEditorComponent, KitCodeEditorLanguage, KitCollapsedListComponent, KitCollapsedListDropdownAlign, KitCopyTextComponent, KitCreateEntityDialogComponent, KitCtaPanelAbstractConfirmationComponent, KitCtaPanelActionComponent, KitCtaPanelConfirmationComponent, KitCtaPanelItemComponent, KitCtaPanelItemType, KitDataFieldComponent, KitDataFieldState, KitDateRangeSingleInput, KitDatepickerComponent, KitDatepickerSize, KitDaterangeComponent, KitDaterangeType, KitDatetimepickerComponent, KitDeferredFailedRequestService, KitDialogActionsComponent, KitDialogComponent, KitDialogService, KitDialogTitlebarComponent, KitDialogType, KitDrawerComponent, KitDrawerContentTemplateDirective, KitDrawerFooterTemplateDirective, KitDrawerMode, KitDropdownComponent, KitDropdownItemTemplateDirective, KitDropdownSize, KitEmptySectionComponent, KitEntityGridComponent, KitEntitySectionComponent, KitEntitySectionContainerComponent, KitEntitySectionEditableActionsTemplateDirective, KitEntitySectionEditableComponent, KitEntitySectionEditableEditTemplateDirective, KitEntitySectionEditableMode, KitEntitySectionEditableViewTemplateDirective, KitEntityTitleComponent, KitExcelExportService, KitExpansionPanelComponent, KitExpansionPanelHeaderTemplateDirective, KitExpansionPanelToggleMode, KitExpansionPanelView, KitFileCardComponent, KitFileCardMessagesComponent, KitFileCardSize, KitFileUploadComponent, KitFilterCheckboxComponent, KitFilterDateRange, KitFilterLogic, KitFilterOperator, KitFilterType, KitForbiddenComponent, KitFormErrors, KitFormFieldComponent, KitFormLabelComponent, KitFormMessageComponent, KitGlobalSearchComponent, KitGridActionComponent, KitGridArchiveToggle, KitGridCellComponent, KitGridCellService, KitGridCellTemplateDirective, KitGridCheckboxColumnComponent, KitGridCheckboxColumnType, KitGridColumnComponent, KitGridColumnManagerComponent, KitGridComponent, KitGridDetailTemplateDirective, KitGridDetailsButtonComponent, KitGridDropPosition, KitGridExportComponent, KitGridFiltersComponent, KitGridFiltersToggleComponent, KitGridLiveUpdatesControlComponent, KitGridSearchComponent, KitGridSortSettingsMode, KitGridState, KitGridUrlStateService, KitGridViewType, KitGridViewsComponent, KitGridViewsState, KitListComponent, KitLoaderComponent, KitLocationStepperComponent, KitLocationStepperIconTheme, KitLocationStepperTheme, KitMobileHeaderComponent, KitMobileMenuComponent, KitMobileMenuState, KitMultiselectComponent, KitMultiselectGroupTagTemplateDirective, KitMultiselectItemsDirection, KitMultiselectSize, KitNavigationMenuComponent, KitNavigationMenuService, KitNavigationMenuSubmenuComponent, KitNavigationTabsComponent, KitNavigationTabsType, KitNotFoundComponent, KitNoteComponent, KitNotificationComponent, KitNotificationService, KitNotificationType, KitNumericTextboxComponent, KitNumericTextboxSize, KitNumericTextboxState, KitOptionToggleComponent, KitOptionToggleSize, KitPageLayoutComponent, KitPermissionDirective, KitPillComponent, KitPillTheme, KitPillType, KitPopoverAnchorDirective, KitPopoverComponent, KitPopoverPosition, KitPopoverShowOption, KitPopupAlignHorizontal, KitPopupAlignVertical, KitPopupComponent, KitPopupPositionMode, KitProfileMenuComponent, KitQueryParamsName, KitQueryParamsService, KitRadioButtonComponent, KitRadioButtonType, KitRoutePathComponent, KitSchedulerAgendaTimeTemplateDirective, KitSchedulerComponent, KitSchedulerCustomViewTemplateDirective, KitSchedulerMonthEventTemplateDirective, KitSchedulerMonthHeaderCellTemplateDirective, KitSchedulerToolbarTemplateDirective, KitSchedulerWeekEventTemplateDirective, KitScrollNavigationComponent, KitScrollNavigationSectionComponent, KitSearchBarComponent, KitSidebarComponent, KitSkeletonAnimation, KitSkeletonComponent, KitSkeletonGridComponent, KitSkeletonSectionComponent, KitSkeletonShape, KitSortDirection, KitSortableComponent, KitSplitContainerComponent, KitStatusLabelColor, KitStatusLabelComponent, KitStatusLabelSize, KitSvgIcon, KitSvgIconComponent, KitSvgIconType, KitSvgSpriteComponent, KitSwitchComponent, KitSwitchMode, KitSwitchState, KitTabComponent, KitTabContentDirective, KitTabsComponent, KitTabsSize, KitTabsType, KitTextLabelComponent, KitTextLabelState, KitTextareaAutoresizeDirective, KitTextareaComponent, KitTextareaState, KitTextboxActionsComponent, KitTextboxComponent, KitTextboxSize, KitTextboxState, KitThemeService, KitThemes, KitTileLayoutComponent, KitTileLayoutItemComponent, KitTimelineCardComponent, KitTimelineCompactComponent, KitTimelineCompactItemTheme, KitTimelineComponent, KitTimelineTheme, KitTimelineType, KitTimepickerComponent, KitTitleTemplateDirective, KitToastrModule, KitToastrPosition, KitToastrService, KitToastrType, KitToggleComponent, KitToggleSize, KitTooltipDirective, KitTooltipPosition, KitTopBarComponent, KitTrackingCardComponent, KitTrackingTimelineComponent, KitTranslateLoader, KitTranslateService, KitTreeComponent, KitTreeContentDirective, KitTreeContentFormat, KitTreeViewMode, KitTruncateTextComponent, KitUnitsTextboxComponent, KitUnitsTextboxDropdownPosition, KitUnitsTextboxType, KitUserApplicationsState, KitUserIdentitiesInterceptor, KitUserIdentitiesSelector, KitUserIdentitiesState, KitUserPermissionsState, KitUserRoleDetailsComponent, KitUserRolesComponent, KitUserRolesService, KitUserRolesState, KitUserSettingsComponent, KitUserSettingsKeys, KitUserSettingsState, KitUserState, KitUserType, KitUsersSettingsComponent, KitUsersSettingsEntitlementsService, KitUsersSettingsEntitlementsState, KitUsersSettingsReferenceService, KitUsersSettingsService, KitUsersSettingsState, RemoveGridFilter, SetGridColumns, SetGridFilters, SetGridSearch, SetGridSkip, SetGridSort, SetGridTake, SetUserIdentity, UpdateGridFilter, buildRandomUUID, changeFilterField, createDataFetcherFactory, findMatches, getTextboxState, isKitFilterDescriptor, kitApiResponseDefaultEntities, kitApiTokenMaintenanceConfig, kitApiTokenMaintenanceRoutes, kitBuildFilterBooleanOptions, kitBuildFilterListOptions, kitBuildFilters, kitBuildGridColumn, kitBuildGridDataResults, kitBuildHttpParams, kitBuildOdataFilter, kitBuildSortString, kitDataStateToODataString, kitEncodeViewNameToUrl, kitFetchExportGridData, kitFetchGridData, kitFilterBy, kitFormatStringForSearch, kitGetPermissionTypesByCategory, kitHasPermission, kitNormalizeDateToUtc, kitShouldResetGridState, kitTranslations, kitUserPermissionsGuard, kitUserRolesConfig, kitWhitespaceValidator, mapGlobalSearchResult, trimTrailingSlash };
|
|
16701
|
+
export { AbstractKitCtaPanelConfirmationComponent, AddGridFilter, FetchApiTokens, FetchUser, FetchUserIdentities, FetchUserPermissions, FetchUserSettings, HighlightPipe, KIT_ALL_PERMISSIONS_PATH, KIT_API_TOKENS_STATE_TOKEN, KIT_BASE_PATH, KIT_DATETIME_FORMAT_LONG, KIT_DATE_FORMAT, KIT_DATE_FORMAT_SHORT, KIT_ENTITY_CREATE_SERVICE, KIT_GRID_CELL_DATE_FORMAT_CONFIG, KIT_GRID_COLUMN_WIDTH, KIT_GRID_PAGE_SIZE, KIT_GRID_STATE_TOKEN, KIT_TIME_FORMAT_SHORT, KIT_USER_APPLICATIONS_PATH, KIT_USER_IDENTITIES_STATE_TOKEN, KIT_USER_PATH, KIT_USER_PERMISSIONS_PATH, KIT_USER_PERMISSIONS_STATE_TOKEN, KIT_USER_STATE_TOKEN, KitAbstractIdPayloadAction, KitAbstractPayloadAction, KitAccountService, KitApiTokenMaintenanceListComponent, KitApiTokenMaintenanceListState, KitApiTokensPermissionCategories, KitAutocompleteComponent, KitAutocompleteDirective, KitAvatarComponent, KitAvatarSize, KitBackButtonComponent, KitBadgeDirective, KitBadgeTheme, KitBreadcrumbsComponent, KitBreadcrumbsService, KitButtonComponent, KitButtonIconPosition, KitButtonKind, KitButtonState, KitButtonType, KitCardComponent, KitCardDetailsComponent, KitCardTheme, KitCheckboxComponent, KitCheckboxState, KitClipboardService, KitCodeEditorComponent, KitCodeEditorLanguage, KitCodeEditorMode, KitCollapsedListComponent, KitCollapsedListDropdownAlign, KitCopyTextComponent, KitCreateEntityDialogComponent, KitCtaPanelAbstractConfirmationComponent, KitCtaPanelActionComponent, KitCtaPanelConfirmationComponent, KitCtaPanelItemComponent, KitCtaPanelItemType, KitDataFieldComponent, KitDataFieldState, KitDateRangeSingleInput, KitDatepickerComponent, KitDatepickerSize, KitDaterangeComponent, KitDaterangeType, KitDatetimepickerComponent, KitDeferredFailedRequestService, KitDialogActionsComponent, KitDialogComponent, KitDialogService, KitDialogTitlebarComponent, KitDialogType, KitDrawerComponent, KitDrawerContentTemplateDirective, KitDrawerFooterTemplateDirective, KitDrawerMode, KitDropdownComponent, KitDropdownItemTemplateDirective, KitDropdownSize, KitEmptySectionComponent, KitEntityGridComponent, KitEntitySectionComponent, KitEntitySectionContainerComponent, KitEntitySectionEditableActionsTemplateDirective, KitEntitySectionEditableComponent, KitEntitySectionEditableEditTemplateDirective, KitEntitySectionEditableMode, KitEntitySectionEditableViewTemplateDirective, KitEntityTitleComponent, KitExcelExportService, KitExpansionPanelComponent, KitExpansionPanelHeaderTemplateDirective, KitExpansionPanelToggleMode, KitExpansionPanelView, KitFileCardComponent, KitFileCardMessagesComponent, KitFileCardSize, KitFileUploadComponent, KitFilterCheckboxComponent, KitFilterDateRange, KitFilterLogic, KitFilterOperator, KitFilterType, KitForbiddenComponent, KitFormErrors, KitFormFieldComponent, KitFormLabelComponent, KitFormMessageComponent, KitGlobalSearchComponent, KitGridActionComponent, KitGridArchiveToggle, KitGridCellComponent, KitGridCellService, KitGridCellTemplateDirective, KitGridCheckboxColumnComponent, KitGridCheckboxColumnType, KitGridColumnComponent, KitGridColumnManagerComponent, KitGridComponent, KitGridDetailTemplateDirective, KitGridDetailsButtonComponent, KitGridDropPosition, KitGridExportComponent, KitGridFiltersComponent, KitGridFiltersToggleComponent, KitGridLiveUpdatesControlComponent, KitGridSearchComponent, KitGridSortSettingsMode, KitGridState, KitGridUrlStateService, KitGridViewType, KitGridViewsComponent, KitGridViewsState, KitListComponent, KitLoaderComponent, KitLocationStepperComponent, KitLocationStepperIconTheme, KitLocationStepperTheme, KitMobileHeaderComponent, KitMobileMenuComponent, KitMobileMenuState, KitMultiselectComponent, KitMultiselectGroupTagTemplateDirective, KitMultiselectItemsDirection, KitMultiselectSize, KitNavigationMenuComponent, KitNavigationMenuService, KitNavigationMenuSubmenuComponent, KitNavigationTabsComponent, KitNavigationTabsType, KitNotFoundComponent, KitNoteComponent, KitNotificationComponent, KitNotificationService, KitNotificationType, KitNumericTextboxComponent, KitNumericTextboxSize, KitNumericTextboxState, KitOptionToggleComponent, KitOptionToggleSize, KitPageLayoutComponent, KitPermissionDirective, KitPillComponent, KitPillTheme, KitPillType, KitPopoverAnchorDirective, KitPopoverComponent, KitPopoverPosition, KitPopoverShowOption, KitPopupAlignHorizontal, KitPopupAlignVertical, KitPopupComponent, KitPopupPositionMode, KitProfileMenuComponent, KitQueryParamsName, KitQueryParamsService, KitRadioButtonComponent, KitRadioButtonType, KitRoutePathComponent, KitSchedulerAgendaTimeTemplateDirective, KitSchedulerComponent, KitSchedulerCustomViewTemplateDirective, KitSchedulerMonthEventTemplateDirective, KitSchedulerMonthHeaderCellTemplateDirective, KitSchedulerToolbarTemplateDirective, KitSchedulerWeekEventTemplateDirective, KitScrollNavigationComponent, KitScrollNavigationSectionComponent, KitSearchBarComponent, KitSidebarComponent, KitSkeletonAnimation, KitSkeletonComponent, KitSkeletonGridComponent, KitSkeletonSectionComponent, KitSkeletonShape, KitSortDirection, KitSortableComponent, KitSplitContainerComponent, KitStatusLabelColor, KitStatusLabelComponent, KitStatusLabelSize, KitSvgIcon, KitSvgIconComponent, KitSvgIconType, KitSvgSpriteComponent, KitSwitchComponent, KitSwitchMode, KitSwitchState, KitTabComponent, KitTabContentDirective, KitTabsComponent, KitTabsSize, KitTabsType, KitTextLabelComponent, KitTextLabelState, KitTextareaAutoresizeDirective, KitTextareaComponent, KitTextareaState, KitTextboxActionsComponent, KitTextboxComponent, KitTextboxSize, KitTextboxState, KitThemeService, KitThemes, KitTileLayoutComponent, KitTileLayoutItemComponent, KitTimelineCardComponent, KitTimelineCompactComponent, KitTimelineCompactItemTheme, KitTimelineComponent, KitTimelineTheme, KitTimelineType, KitTimepickerComponent, KitTitleTemplateDirective, KitToastrModule, KitToastrPosition, KitToastrService, KitToastrType, KitToggleComponent, KitToggleSize, KitTooltipDirective, KitTooltipPosition, KitTopBarComponent, KitTrackingCardComponent, KitTrackingTimelineComponent, KitTranslateLoader, KitTranslateService, KitTreeComponent, KitTreeContentDirective, KitTreeContentFormat, KitTreeViewMode, KitTruncateTextComponent, KitUnitsTextboxComponent, KitUnitsTextboxDropdownPosition, KitUnitsTextboxType, KitUserApplicationsState, KitUserIdentitiesInterceptor, KitUserIdentitiesSelector, KitUserIdentitiesState, KitUserPermissionsState, KitUserRoleDetailsComponent, KitUserRolesComponent, KitUserRolesService, KitUserRolesState, KitUserSettingsComponent, KitUserSettingsKeys, KitUserSettingsState, KitUserState, KitUserType, KitUsersSettingsComponent, KitUsersSettingsEntitlementsService, KitUsersSettingsEntitlementsState, KitUsersSettingsReferenceService, KitUsersSettingsService, KitUsersSettingsState, RemoveGridFilter, SetGridColumns, SetGridFilters, SetGridSearch, SetGridSkip, SetGridSort, SetGridTake, SetUserIdentity, UpdateGridFilter, buildRandomUUID, changeFilterField, createDataFetcherFactory, findMatches, getTextboxState, isKitFilterDescriptor, kitApiResponseDefaultEntities, kitApiTokenMaintenanceConfig, kitApiTokenMaintenanceRoutes, kitBuildFilterBooleanOptions, kitBuildFilterListOptions, kitBuildFilters, kitBuildGridColumn, kitBuildGridDataResults, kitBuildHttpParams, kitBuildOdataFilter, kitBuildSortString, kitDataStateToODataString, kitEncodeViewNameToUrl, kitFetchExportGridData, kitFetchGridData, kitFilterBy, kitFormatStringForSearch, kitGetPermissionTypesByCategory, kitHasPermission, kitNormalizeDateToUtc, kitShouldResetGridState, kitTranslations, kitUserPermissionsGuard, kitUserRolesConfig, kitWhitespaceValidator, mapGlobalSearchResult, trimTrailingSlash };
|
|
16497
16702
|
//# sourceMappingURL=indigina-ui-kit.mjs.map
|