@cuby-ui/core 0.0.613 → 0.0.615
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/editor/components/editor-attaches-tool/editor-attaches-tool.component.d.ts +2 -1
- package/editor/components/editor-tool/editor-tool.component.d.ts +4 -0
- package/editor/constants/file-uploader.constants.d.ts +1 -0
- package/editor/interfaces/file-uploader-error.d.ts +3 -0
- package/editor/interfaces/index.d.ts +1 -0
- package/editor/tools/video.tool.d.ts +1 -0
- package/editor/utils/file-uploader.d.ts +8 -3
- package/esm2022/editor/components/editor-attaches-tool/editor-attaches-tool.component.mjs +11 -4
- package/esm2022/editor/components/editor-tool/editor-tool.component.mjs +17 -3
- package/esm2022/editor/constants/file-uploader.constants.mjs +2 -0
- package/esm2022/editor/interfaces/file-uploader-error.mjs +5 -0
- package/esm2022/editor/interfaces/index.mjs +2 -1
- package/esm2022/editor/tools/attaches.tool.mjs +12 -3
- package/esm2022/editor/tools/image.tool.mjs +18 -6
- package/esm2022/editor/tools/video.tool.mjs +20 -14
- package/esm2022/editor/utils/file-uploader.mjs +26 -13
- package/esm2022/i18n/en.json +3 -0
- package/esm2022/i18n/ru.json +3 -0
- package/fesm2022/{cuby-ui-core-en-Csg2E9Uc.mjs → cuby-ui-core-en-D8yTJpcc.mjs} +6 -2
- package/fesm2022/cuby-ui-core-en-D8yTJpcc.mjs.map +1 -0
- package/fesm2022/{cuby-ui-core-ru-xEXR-11C.mjs → cuby-ui-core-ru-DyDGwpgM.mjs} +6 -2
- package/fesm2022/cuby-ui-core-ru-DyDGwpgM.mjs.map +1 -0
- package/fesm2022/cuby-ui-core.mjs +99 -40
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +8 -4
- package/fesm2022/cuby-ui-core-en-Csg2E9Uc.mjs.map +0 -1
- package/fesm2022/cuby-ui-core-ru-xEXR-11C.mjs.map +0 -1
|
@@ -5980,6 +5980,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
5980
5980
|
}]
|
|
5981
5981
|
}] });
|
|
5982
5982
|
|
|
5983
|
+
var CuiFileUploaderError;
|
|
5984
|
+
(function (CuiFileUploaderError) {
|
|
5985
|
+
CuiFileUploaderError["FileSizeExceeded"] = "fileSizeExceeded";
|
|
5986
|
+
})(CuiFileUploaderError || (CuiFileUploaderError = {}));
|
|
5987
|
+
|
|
5983
5988
|
const COMBINED_TEXT_BLOCK_PART = 'combined-text-block-part';
|
|
5984
5989
|
const COMBINED_TEXT_BLOCK = 'combined-text-block';
|
|
5985
5990
|
const COMBINED_TEXT_BLOCK_NAME = 'paragraph';
|
|
@@ -7018,6 +7023,9 @@ class EditorToolComponent {
|
|
|
7018
7023
|
constructor() {
|
|
7019
7024
|
this.window = inject(CUI_WINDOW);
|
|
7020
7025
|
this.document = inject(DOCUMENT);
|
|
7026
|
+
this.errorNotificationService = inject(CUI_ERROR_NOTIFICATION_SERVICE);
|
|
7027
|
+
this.translocoService = inject(TranslocoService);
|
|
7028
|
+
this.fileSizePipe = new FileSizePipe();
|
|
7021
7029
|
this.readOnly = false;
|
|
7022
7030
|
this.isLoading = false;
|
|
7023
7031
|
this.fileSelected = new EventEmitter();
|
|
@@ -7030,6 +7038,11 @@ class EditorToolComponent {
|
|
|
7030
7038
|
onSelectFile() {
|
|
7031
7039
|
this.fileSelected.emit();
|
|
7032
7040
|
}
|
|
7041
|
+
onFileSizeExceeded(event) {
|
|
7042
|
+
this.errorNotificationService.showError(this.translocoService.translate('CUI_EDITOR.FILE_SIZE_EXCEEDED', {
|
|
7043
|
+
size: this.fileSizePipe.transform(event.detail)
|
|
7044
|
+
}));
|
|
7045
|
+
}
|
|
7033
7046
|
onTitleChange(event) {
|
|
7034
7047
|
const target = event.currentTarget;
|
|
7035
7048
|
if (target.innerHTML === '<br>') {
|
|
@@ -7054,13 +7067,16 @@ class EditorToolComponent {
|
|
|
7054
7067
|
setTimeout(() => this.captionChanged.emit(target.textContent));
|
|
7055
7068
|
}
|
|
7056
7069
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7057
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorToolComponent, selector: "ng-component", inputs: { api: "api", preview: "preview", caption: "caption", buttonContent: "buttonContent", readOnly: "readOnly", isLoading: "isLoading" }, outputs: { fileSelected: "fileSelected", captionChanged: "captionChanged" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7070
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorToolComponent, selector: "ng-component", inputs: { api: "api", preview: "preview", caption: "caption", buttonContent: "buttonContent", readOnly: "readOnly", isLoading: "isLoading" }, outputs: { fileSelected: "fileSelected", captionChanged: "captionChanged" }, host: { listeners: { "fileSizeExceeded": "onFileSizeExceeded($event)" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7058
7071
|
}
|
|
7059
7072
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolComponent, decorators: [{
|
|
7060
7073
|
type: Component,
|
|
7061
7074
|
args: [{
|
|
7062
7075
|
template: '',
|
|
7063
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
7076
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7077
|
+
host: {
|
|
7078
|
+
'(fileSizeExceeded)': 'onFileSizeExceeded($event)'
|
|
7079
|
+
}
|
|
7064
7080
|
}]
|
|
7065
7081
|
}], propDecorators: { api: [{
|
|
7066
7082
|
type: Input,
|
|
@@ -7104,7 +7120,14 @@ class EditorAttachesToolComponent extends EditorToolComponent {
|
|
|
7104
7120
|
get isShowLoadButton() {
|
|
7105
7121
|
return !this.file && !this.isCaptionShown && !this.isLoading;
|
|
7106
7122
|
}
|
|
7107
|
-
|
|
7123
|
+
onFileContainerClick(event) {
|
|
7124
|
+
if (!this.readOnly) {
|
|
7125
|
+
return;
|
|
7126
|
+
}
|
|
7127
|
+
this.onFileClick(event);
|
|
7128
|
+
}
|
|
7129
|
+
onFileClick(event) {
|
|
7130
|
+
event.stopPropagation();
|
|
7108
7131
|
this.fileClicked.emit(this.file);
|
|
7109
7132
|
}
|
|
7110
7133
|
onPreventEnter(event) {
|
|
@@ -7118,13 +7141,13 @@ class EditorAttachesToolComponent extends EditorToolComponent {
|
|
|
7118
7141
|
return event.key !== 'Enter';
|
|
7119
7142
|
}
|
|
7120
7143
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorAttachesToolComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7121
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorAttachesToolComponent, isStandalone: true, selector: "ng-component", inputs: { file: "file", title: "title" }, outputs: { fileClicked: "fileClicked" }, host: { properties: { "class._hidden": "isShowLoadButton" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <div\r\n *ngIf=\"file; else buttonTemplate\"\r\n class=\"file\"\r\n >\r\n <cui-file-icon\r\n *ngIf=\"file.extension\"\r\n [extension]=\"file.extension\"\r\n ></cui-file-icon>\r\n\r\n <div class=\"info\">\r\n <div\r\n class=\"title\"\r\n attr.data-placeholder=\"{{ t('FILE_TITLE') }}...\"\r\n [innerHTML]=\"title\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n ></div>\r\n <div\r\n *ngIf=\"file.size; let size\"\r\n class=\"size\"\r\n >\r\n {{ size | fileSize }}\r\n </div>\r\n </div>\r\n <a\r\n class=\"download\"\r\n (click)=\"onFileClick()\"\r\n >\r\n <cui-svg\r\n icon=\"cuiIconChevronRightSm\"\r\n color=\"var(--cui-base-500)\"\r\n />\r\n </a>\r\n </div>\r\n <ng-template #buttonTemplate>\r\n <button\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n type=\"button\"\r\n >\r\n <cui-svg icon=\"cuiIconPaperclipSm\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\"></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:4px;padding-bottom:4px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host._hidden{display:none}:host ::ng-deep .icon path{stroke:none}.file{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px;border-radius:8px;border:1px solid var(--cui-base-200);background-color:var(--cui-base-10)}.info{display:flex;flex-direction:column;gap:2px;flex-grow:1;width:0;word-wrap:break-word}.extension{display:flex;flex-direction:row;gap:0;align-items:flex-end;justify-content:flex-start;padding:6px 2px;font-weight:500;font-size:12px;line-height:14px;border-radius:8px;width:35px;height:35px;color:var(--cui-gray-0)}.size{font-weight:400;font-size:13px;line-height:16px;color:var(--cui-base-500)}.download{padding:6px;flex-shrink:0;margin-left:auto;border-radius:8px;color:var(--cui-base-0)}.wrapper{display:flex;flex-direction:column;gap:0;margin-bottom:10px;border-radius:8px;border:1px solid var(--cui-base-200);min-height:50px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.preloader{width:30px;height:30px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader:after{content:\"\";position:absolute;z-index:3;width:30px;height:30px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-15px;margin-left:-15px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.title{font-weight:400;font-size:14px;line-height:20px;outline:none}.title[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;width:100%}\n"], dependencies: [{ kind: "pipe", type: FileSizePipe, name: "fileSize" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiFileIconComponent, selector: "cui-file-icon", inputs: ["extension", "color"] }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: CuiSvgComponent, selector: "cui-svg[icon]", inputs: ["width", "height", "strokeWidth", "color", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7144
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EditorAttachesToolComponent, isStandalone: true, selector: "ng-component", inputs: { file: "file", title: "title" }, outputs: { fileClicked: "fileClicked" }, host: { properties: { "class._hidden": "isShowLoadButton" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <div\r\n *ngIf=\"file; else buttonTemplate\"\r\n class=\"file\"\r\n (click)=\"onFileContainerClick($event)\"\r\n >\r\n <cui-file-icon\r\n *ngIf=\"file.extension\"\r\n [extension]=\"file.extension\"\r\n ></cui-file-icon>\r\n\r\n <div class=\"info\">\r\n <div\r\n class=\"title\"\r\n attr.data-placeholder=\"{{ t('FILE_TITLE') }}...\"\r\n [innerHTML]=\"title\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n ></div>\r\n <div\r\n *ngIf=\"file.size; let size\"\r\n class=\"size\"\r\n >\r\n {{ size | fileSize }}\r\n </div>\r\n </div>\r\n <a\r\n class=\"download\"\r\n (click)=\"onFileClick($event)\"\r\n >\r\n <cui-svg\r\n icon=\"cuiIconChevronRightSm\"\r\n color=\"var(--cui-base-500)\"\r\n />\r\n </a>\r\n </div>\r\n <ng-template #buttonTemplate>\r\n <button\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n type=\"button\"\r\n >\r\n <cui-svg icon=\"cuiIconPaperclipSm\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\"></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:4px;padding-bottom:4px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host._hidden{display:none}:host ::ng-deep .icon path{stroke:none}.file{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px;border-radius:8px;border:1px solid var(--cui-base-200);background-color:var(--cui-base-10)}.info{display:flex;flex-direction:column;gap:2px;flex-grow:1;width:0;word-wrap:break-word}.extension{display:flex;flex-direction:row;gap:0;align-items:flex-end;justify-content:flex-start;padding:6px 2px;font-weight:500;font-size:12px;line-height:14px;border-radius:8px;width:35px;height:35px;color:var(--cui-gray-0)}.size{font-weight:400;font-size:13px;line-height:16px;color:var(--cui-base-500)}.download{padding:6px;flex-shrink:0;margin-left:auto;border-radius:8px;color:var(--cui-base-0)}.wrapper{display:flex;flex-direction:column;gap:0;margin-bottom:10px;border-radius:8px;border:1px solid var(--cui-base-200);min-height:50px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.preloader{width:30px;height:30px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader:after{content:\"\";position:absolute;z-index:3;width:30px;height:30px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-15px;margin-left:-15px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.title{font-weight:400;font-size:14px;line-height:20px;outline:none}.title[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;width:100%}\n"], dependencies: [{ kind: "pipe", type: FileSizePipe, name: "fileSize" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiFileIconComponent, selector: "cui-file-icon", inputs: ["extension", "color"] }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: CuiSvgComponent, selector: "cui-svg[icon]", inputs: ["width", "height", "strokeWidth", "color", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7122
7145
|
}
|
|
7123
7146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorAttachesToolComponent, decorators: [{
|
|
7124
7147
|
type: Component,
|
|
7125
7148
|
args: [{ standalone: true, imports: [FileSizePipe, FormsModule, NgIf, TranslocoDirective, CuiFileIconComponent, CuiSvgModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
7126
7149
|
'[class._hidden]': 'isShowLoadButton'
|
|
7127
|
-
}, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <div\r\n *ngIf=\"file; else buttonTemplate\"\r\n class=\"file\"\r\n >\r\n <cui-file-icon\r\n *ngIf=\"file.extension\"\r\n [extension]=\"file.extension\"\r\n ></cui-file-icon>\r\n\r\n <div class=\"info\">\r\n <div\r\n class=\"title\"\r\n attr.data-placeholder=\"{{ t('FILE_TITLE') }}...\"\r\n [innerHTML]=\"title\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n ></div>\r\n <div\r\n *ngIf=\"file.size; let size\"\r\n class=\"size\"\r\n >\r\n {{ size | fileSize }}\r\n </div>\r\n </div>\r\n <a\r\n class=\"download\"\r\n (click)=\"onFileClick()\"\r\n >\r\n <cui-svg\r\n icon=\"cuiIconChevronRightSm\"\r\n color=\"var(--cui-base-500)\"\r\n />\r\n </a>\r\n </div>\r\n <ng-template #buttonTemplate>\r\n <button\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n type=\"button\"\r\n >\r\n <cui-svg icon=\"cuiIconPaperclipSm\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\"></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:4px;padding-bottom:4px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host._hidden{display:none}:host ::ng-deep .icon path{stroke:none}.file{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px;border-radius:8px;border:1px solid var(--cui-base-200);background-color:var(--cui-base-10)}.info{display:flex;flex-direction:column;gap:2px;flex-grow:1;width:0;word-wrap:break-word}.extension{display:flex;flex-direction:row;gap:0;align-items:flex-end;justify-content:flex-start;padding:6px 2px;font-weight:500;font-size:12px;line-height:14px;border-radius:8px;width:35px;height:35px;color:var(--cui-gray-0)}.size{font-weight:400;font-size:13px;line-height:16px;color:var(--cui-base-500)}.download{padding:6px;flex-shrink:0;margin-left:auto;border-radius:8px;color:var(--cui-base-0)}.wrapper{display:flex;flex-direction:column;gap:0;margin-bottom:10px;border-radius:8px;border:1px solid var(--cui-base-200);min-height:50px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.preloader{width:30px;height:30px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader:after{content:\"\";position:absolute;z-index:3;width:30px;height:30px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-15px;margin-left:-15px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.title{font-weight:400;font-size:14px;line-height:20px;outline:none}.title[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;width:100%}\n"] }]
|
|
7150
|
+
}, template: "<ng-container *ngIf=\"!isLoading; else preloader\">\r\n <ng-container *transloco=\"let t\">\r\n <div\r\n *ngIf=\"file; else buttonTemplate\"\r\n class=\"file\"\r\n (click)=\"onFileContainerClick($event)\"\r\n >\r\n <cui-file-icon\r\n *ngIf=\"file.extension\"\r\n [extension]=\"file.extension\"\r\n ></cui-file-icon>\r\n\r\n <div class=\"info\">\r\n <div\r\n class=\"title\"\r\n attr.data-placeholder=\"{{ t('FILE_TITLE') }}...\"\r\n [innerHTML]=\"title\"\r\n [attr.contenteditable]=\"!readOnly\"\r\n (paste)=\"onTitlePaste($event)\"\r\n (keydown)=\"onPreventEnter($event)\"\r\n (keyup)=\"onTitleChange($event)\"\r\n ></div>\r\n <div\r\n *ngIf=\"file.size; let size\"\r\n class=\"size\"\r\n >\r\n {{ size | fileSize }}\r\n </div>\r\n </div>\r\n <a\r\n class=\"download\"\r\n (click)=\"onFileClick($event)\"\r\n >\r\n <cui-svg\r\n icon=\"cuiIconChevronRightSm\"\r\n color=\"var(--cui-base-500)\"\r\n />\r\n </a>\r\n </div>\r\n <ng-template #buttonTemplate>\r\n <button\r\n [class]=\"['select-btn', this.api.styles.button]\"\r\n (click)=\"onSelectFile()\"\r\n type=\"button\"\r\n >\r\n <cui-svg icon=\"cuiIconPaperclipSm\" />\r\n {{ buttonContent }}\r\n </button>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #preloader>\r\n <div class=\"wrapper\">\r\n <div class=\"preloader\"></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{padding-top:4px;padding-bottom:4px;font-weight:400;font-size:14px;line-height:20px;font-family:var(--cui-main-font);display:block}:host._hidden{display:none}:host ::ng-deep .icon path{stroke:none}.file{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;padding:4px 12px;border-radius:8px;border:1px solid var(--cui-base-200);background-color:var(--cui-base-10)}.info{display:flex;flex-direction:column;gap:2px;flex-grow:1;width:0;word-wrap:break-word}.extension{display:flex;flex-direction:row;gap:0;align-items:flex-end;justify-content:flex-start;padding:6px 2px;font-weight:500;font-size:12px;line-height:14px;border-radius:8px;width:35px;height:35px;color:var(--cui-gray-0)}.size{font-weight:400;font-size:13px;line-height:16px;color:var(--cui-base-500)}.download{padding:6px;flex-shrink:0;margin-left:auto;border-radius:8px;color:var(--cui-base-0)}.wrapper{display:flex;flex-direction:column;gap:0;margin-bottom:10px;border-radius:8px;border:1px solid var(--cui-base-200);min-height:50px;background-color:var(--cui-base-0);overflow:hidden}.wrapper._loaded{min-height:auto}.preloader{width:30px;height:30px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-position:center center}@keyframes preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preloader:after{content:\"\";position:absolute;z-index:3;width:30px;height:30px;border-radius:50%;border:2px solid var(--cui-base-200);border-top-color:var(--cui-blue-600);left:50%;top:50%;margin-top:-15px;margin-left:-15px;animation:preloader-spin 2s infinite linear;box-sizing:border-box}.title{font-weight:400;font-size:14px;line-height:20px;outline:none}.title[data-placeholder]:empty:before{content:attr(data-placeholder);position:absolute;color:var(--cui-base-400)}.select-btn{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;width:100%}\n"] }]
|
|
7128
7151
|
}], propDecorators: { file: [{
|
|
7129
7152
|
type: Input,
|
|
7130
7153
|
args: [{ required: true }]
|
|
@@ -7263,6 +7286,8 @@ async function openFileInBrowser(file) {
|
|
|
7263
7286
|
window.open(googleViewerUrl, '_blank');
|
|
7264
7287
|
}
|
|
7265
7288
|
|
|
7289
|
+
const DEFAULT_MAX_FILE_SIZE = 2 * 1024 ** 3;
|
|
7290
|
+
|
|
7266
7291
|
var CuiFileUploaderStatus;
|
|
7267
7292
|
(function (CuiFileUploaderStatus) {
|
|
7268
7293
|
CuiFileUploaderStatus["Loading"] = "loading";
|
|
@@ -7271,6 +7296,7 @@ var CuiFileUploaderStatus;
|
|
|
7271
7296
|
class CuiFileUploader {
|
|
7272
7297
|
constructor(config, onUpload, onError) {
|
|
7273
7298
|
this.REQUEST_METHOD = 'POST';
|
|
7299
|
+
this.cuiIdService = new CuiIdService();
|
|
7274
7300
|
this.selectFile = ({ fileSelected }) => {
|
|
7275
7301
|
const input = document.createElement('input');
|
|
7276
7302
|
const types = this.config?.types || '*';
|
|
@@ -7285,7 +7311,7 @@ class CuiFileUploader {
|
|
|
7285
7311
|
};
|
|
7286
7312
|
input.click();
|
|
7287
7313
|
};
|
|
7288
|
-
this.config = config;
|
|
7314
|
+
this.config = { ...config, maxFileSize: config.maxFileSize ?? DEFAULT_MAX_FILE_SIZE };
|
|
7289
7315
|
this.onUpload = onUpload;
|
|
7290
7316
|
this.onError = onError;
|
|
7291
7317
|
}
|
|
@@ -7296,28 +7322,37 @@ class CuiFileUploader {
|
|
|
7296
7322
|
}
|
|
7297
7323
|
fileSelected(file);
|
|
7298
7324
|
}
|
|
7325
|
+
checkCanUploadFile(file) {
|
|
7326
|
+
if (file.size > this.config.maxFileSize) {
|
|
7327
|
+
this.onError(CuiFileUploaderError.FileSizeExceeded, this.config.maxFileSize);
|
|
7328
|
+
return false;
|
|
7329
|
+
}
|
|
7330
|
+
return !!this.config.endpoint;
|
|
7331
|
+
}
|
|
7299
7332
|
uploadFile(file) {
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
formData.append(formField, file);
|
|
7303
|
-
if (!this.config.endpoint) {
|
|
7304
|
-
return;
|
|
7333
|
+
if (!this.checkCanUploadFile(file)) {
|
|
7334
|
+
return false;
|
|
7305
7335
|
}
|
|
7336
|
+
this.sendFile(file);
|
|
7337
|
+
return true;
|
|
7338
|
+
}
|
|
7339
|
+
uploadByUrl(url) {
|
|
7340
|
+
this.onUpload({ id: this.cuiIdService.generate(), success: 1, file: { url } });
|
|
7341
|
+
}
|
|
7342
|
+
sendFile(file) {
|
|
7343
|
+
const formData = new FormData();
|
|
7344
|
+
formData.append(this.config.field || 'file', file);
|
|
7306
7345
|
this.config.load(CuiFileUploaderStatus.Loading);
|
|
7307
|
-
|
|
7346
|
+
fetch(this.config.endpoint, {
|
|
7308
7347
|
headers: this.config.additionalRequestHeaders,
|
|
7309
7348
|
method: this.REQUEST_METHOD,
|
|
7310
7349
|
body: formData
|
|
7311
|
-
})
|
|
7312
|
-
upload
|
|
7350
|
+
})
|
|
7313
7351
|
.then((response) => response.json())
|
|
7314
7352
|
.then((response) => this.onUpload(this.convertToFileSuccessResponse(response), file))
|
|
7315
7353
|
.catch(() => this.onError())
|
|
7316
7354
|
.finally(() => this.config.load(CuiFileUploaderStatus.Completed));
|
|
7317
7355
|
}
|
|
7318
|
-
uploadByUrl(url) {
|
|
7319
|
-
this.onUpload({ id: crypto.randomUUID(), success: 1, file: { url } });
|
|
7320
|
-
}
|
|
7321
7356
|
convertToFileSuccessResponse(response) {
|
|
7322
7357
|
return { id: response.id, success: 1, file: { url: response.downloadUrl } };
|
|
7323
7358
|
}
|
|
@@ -7723,10 +7758,12 @@ class CuiImageTool {
|
|
|
7723
7758
|
this.onSelectFile = () => {
|
|
7724
7759
|
return this.uploader.selectFile({
|
|
7725
7760
|
fileSelected: (file) => {
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7761
|
+
if (!this.uploader.checkCanUploadFile(file)) {
|
|
7762
|
+
return;
|
|
7763
|
+
}
|
|
7729
7764
|
this.selectedFile = file;
|
|
7765
|
+
this.imageTool.isLoading = true;
|
|
7766
|
+
this.imageTool.preview = URL.createObjectURL(file);
|
|
7730
7767
|
this.uploader.uploadFile(file);
|
|
7731
7768
|
}
|
|
7732
7769
|
});
|
|
@@ -7736,6 +7773,7 @@ class CuiImageTool {
|
|
|
7736
7773
|
this.api = api;
|
|
7737
7774
|
this.readOnly = readOnly;
|
|
7738
7775
|
this.config = {
|
|
7776
|
+
maxFileSize: config?.maxFileSize,
|
|
7739
7777
|
load: config?.load ?? (() => { }),
|
|
7740
7778
|
field: config?.field ?? 'image',
|
|
7741
7779
|
types: config?.types ?? 'image/*',
|
|
@@ -7753,16 +7791,20 @@ class CuiImageTool {
|
|
|
7753
7791
|
file: this.pasteByFile.bind(this)
|
|
7754
7792
|
};
|
|
7755
7793
|
const key = event.type;
|
|
7756
|
-
this.imageTool.isLoading = true;
|
|
7757
7794
|
actions[key](event);
|
|
7758
7795
|
}
|
|
7759
7796
|
pasteByFile(event) {
|
|
7760
7797
|
const file = event.detail.file;
|
|
7798
|
+
if (!this.uploader.checkCanUploadFile(file)) {
|
|
7799
|
+
return;
|
|
7800
|
+
}
|
|
7761
7801
|
this.selectedFile = file;
|
|
7802
|
+
this.imageTool.isLoading = true;
|
|
7762
7803
|
this.uploader.uploadFile(file);
|
|
7763
7804
|
}
|
|
7764
7805
|
pasteByTag(event) {
|
|
7765
7806
|
const file = event.detail.data.src;
|
|
7807
|
+
this.imageTool.isLoading = true;
|
|
7766
7808
|
this.selectedFile = file;
|
|
7767
7809
|
this.uploader.uploadByUrl(file);
|
|
7768
7810
|
}
|
|
@@ -7820,7 +7862,11 @@ class CuiImageTool {
|
|
|
7820
7862
|
this.imageTool.image = url;
|
|
7821
7863
|
this.imageTool.isLoading = false;
|
|
7822
7864
|
}
|
|
7823
|
-
uploadingFailed() {
|
|
7865
|
+
uploadingFailed(error, maxFileSize) {
|
|
7866
|
+
if (error === CuiFileUploaderError.FileSizeExceeded) {
|
|
7867
|
+
this.imageTool.dispatchEvent(new CustomEvent(error, { detail: maxFileSize }));
|
|
7868
|
+
return;
|
|
7869
|
+
}
|
|
7824
7870
|
this.imageTool.image = '';
|
|
7825
7871
|
this.imageTool.isLoading = false;
|
|
7826
7872
|
}
|
|
@@ -7855,14 +7901,8 @@ class CuiVideoTool {
|
|
|
7855
7901
|
constructor(options) {
|
|
7856
7902
|
this.selectedFile = null;
|
|
7857
7903
|
this.onSelectFile = () => {
|
|
7858
|
-
|
|
7859
|
-
fileSelected: (file) =>
|
|
7860
|
-
const url = URL.createObjectURL(file);
|
|
7861
|
-
this.getCaptureFromVideo(url);
|
|
7862
|
-
this.videoTool.isLoading = true;
|
|
7863
|
-
this.selectedFile = file;
|
|
7864
|
-
this.uploader.uploadFile(file);
|
|
7865
|
-
}
|
|
7904
|
+
this.uploader.selectFile({
|
|
7905
|
+
fileSelected: (file) => this.uploadFile(file)
|
|
7866
7906
|
});
|
|
7867
7907
|
};
|
|
7868
7908
|
const { api, readOnly, config, data, block } = options;
|
|
@@ -7870,6 +7910,7 @@ class CuiVideoTool {
|
|
|
7870
7910
|
this.api = api;
|
|
7871
7911
|
this.readOnly = readOnly;
|
|
7872
7912
|
this.config = {
|
|
7913
|
+
maxFileSize: config?.maxFileSize,
|
|
7873
7914
|
load: config?.load ?? (() => { }),
|
|
7874
7915
|
field: config?.field ?? 'video',
|
|
7875
7916
|
types: config?.types ?? 'video/*',
|
|
@@ -7884,10 +7925,7 @@ class CuiVideoTool {
|
|
|
7884
7925
|
if (event.type !== 'file') {
|
|
7885
7926
|
return;
|
|
7886
7927
|
}
|
|
7887
|
-
|
|
7888
|
-
this.videoTool.isLoading = true;
|
|
7889
|
-
this.selectedFile = file;
|
|
7890
|
-
this.uploader.uploadFile(file);
|
|
7928
|
+
this.uploadFile(event.detail.file);
|
|
7891
7929
|
}
|
|
7892
7930
|
appendCallback() {
|
|
7893
7931
|
this.onSelectFile();
|
|
@@ -7922,6 +7960,15 @@ class CuiVideoTool {
|
|
|
7922
7960
|
this.videoTool.video = file.url;
|
|
7923
7961
|
}
|
|
7924
7962
|
}
|
|
7963
|
+
uploadFile(file) {
|
|
7964
|
+
if (!this.uploader.checkCanUploadFile(file)) {
|
|
7965
|
+
return;
|
|
7966
|
+
}
|
|
7967
|
+
this.selectedFile = file;
|
|
7968
|
+
this.videoTool.isLoading = true;
|
|
7969
|
+
this.getCaptureFromVideo(URL.createObjectURL(file));
|
|
7970
|
+
this.uploader.uploadFile(file);
|
|
7971
|
+
}
|
|
7925
7972
|
onUpload(response) {
|
|
7926
7973
|
if (!response.success || !response.file || !this.selectedFile) {
|
|
7927
7974
|
this.uploadingFailed();
|
|
@@ -7932,7 +7979,11 @@ class CuiVideoTool {
|
|
|
7932
7979
|
this.videoTool.video = url;
|
|
7933
7980
|
this.videoTool.isLoading = false;
|
|
7934
7981
|
}
|
|
7935
|
-
uploadingFailed() {
|
|
7982
|
+
uploadingFailed(error, maxFileSize) {
|
|
7983
|
+
if (error === CuiFileUploaderError.FileSizeExceeded) {
|
|
7984
|
+
this.videoTool.dispatchEvent(new CustomEvent(error, { detail: maxFileSize }));
|
|
7985
|
+
return;
|
|
7986
|
+
}
|
|
7936
7987
|
this.videoTool.video = '';
|
|
7937
7988
|
this.videoTool.isLoading = false;
|
|
7938
7989
|
}
|
|
@@ -7983,8 +8034,11 @@ class CuiAttachesTool {
|
|
|
7983
8034
|
this.selectFile = () => {
|
|
7984
8035
|
return this.uploader.selectFile({
|
|
7985
8036
|
fileSelected: (file) => {
|
|
7986
|
-
this.
|
|
8037
|
+
if (!this.uploader.checkCanUploadFile(file)) {
|
|
8038
|
+
return;
|
|
8039
|
+
}
|
|
7987
8040
|
this.selectedFile = file;
|
|
8041
|
+
this.attachesTool.isLoading = true;
|
|
7988
8042
|
this.uploader.uploadFile(file);
|
|
7989
8043
|
}
|
|
7990
8044
|
});
|
|
@@ -7997,6 +8051,7 @@ class CuiAttachesTool {
|
|
|
7997
8051
|
this.api = api;
|
|
7998
8052
|
this.readOnly = readOnly;
|
|
7999
8053
|
this.config = {
|
|
8054
|
+
maxFileSize: config?.maxFileSize,
|
|
8000
8055
|
field: config?.field ?? 'file',
|
|
8001
8056
|
types: config?.types ?? '*',
|
|
8002
8057
|
endpoint: config?.endpoint ?? '',
|
|
@@ -8053,7 +8108,11 @@ class CuiAttachesTool {
|
|
|
8053
8108
|
};
|
|
8054
8109
|
this.attachesTool.isLoading = false;
|
|
8055
8110
|
}
|
|
8056
|
-
uploadingFailed() {
|
|
8111
|
+
uploadingFailed(error, maxFileSize) {
|
|
8112
|
+
if (error === CuiFileUploaderError.FileSizeExceeded) {
|
|
8113
|
+
this.attachesTool.dispatchEvent(new CustomEvent(error, { detail: maxFileSize }));
|
|
8114
|
+
return;
|
|
8115
|
+
}
|
|
8057
8116
|
this.attachesTool.file = undefined;
|
|
8058
8117
|
this.attachesTool.isLoading = false;
|
|
8059
8118
|
}
|
|
@@ -14714,13 +14773,13 @@ function handleError(handler, useDefaultError = true) {
|
|
|
14714
14773
|
}
|
|
14715
14774
|
|
|
14716
14775
|
const CuiTranslations = {
|
|
14717
|
-
en: import('./cuby-ui-core-en-
|
|
14718
|
-
ru: import('./cuby-ui-core-ru-
|
|
14776
|
+
en: import('./cuby-ui-core-en-D8yTJpcc.mjs'),
|
|
14777
|
+
ru: import('./cuby-ui-core-ru-DyDGwpgM.mjs')
|
|
14719
14778
|
};
|
|
14720
14779
|
|
|
14721
14780
|
/**
|
|
14722
14781
|
* Generated bundle index. Do not edit.
|
|
14723
14782
|
*/
|
|
14724
14783
|
|
|
14725
|
-
export { AlertHintComponent, AngularOutsideLoaderService, AssigneeRoleItemComponent, AssigneeRolesTabsComponent, ButtonChangeThemeComponent, CUI_ACTIVITY_SERVICE_TOKEN, CUI_ALERTS, CUI_ALERT_CONTEXT, CUI_ALERT_DEFAULT_OPTIONS, CUI_ALERT_OPTIONS, CUI_ANIMATIONS_DEFAULT_DURATION, CUI_BADGE_DEFAULT_OPTIONS, CUI_BADGE_OPTIONS, CUI_BANNER_DEFAULT_OPTIONS, CUI_BANNER_OPTIONS, CUI_BUTTON_DEFAULT_OPTIONS, CUI_BUTTON_OPTIONS, CUI_CATEGORIES_TREE_DATA_SOURCE_SERVICE_TOKEN, CUI_DEFAULT_THEME, CUI_DIALOGS, CUI_DIALOG_CONTEXT, CUI_DIALOG_DEFAULT_OPTIONS, CUI_DIALOG_OPTIONS, CUI_FILTER_BAR_DEFAULT_TRANSLATIONS, CUI_INPUT_TIME_DEFAULT_OPTIONS, CUI_INPUT_TIME_OPTIONS, CUI_NOTIFICATION_DEFAULT_OPTIONS, CUI_NOTIFICATION_ICONS, CUI_NOTIFICATION_ICON_OPTIONS, CUI_NOTIFICATION_ICON_OPTIONS_DEFAULT_MODE, CUI_NOTIFICATION_ICON_OPTIONS_LIGHT_MODE, CUI_NOTIFICATION_OPTIONS, CUI_RESOURCE_STATE_SERVICE_TOKEN, CUI_ROOT_SELECTOR, CUI_SEGMENTED_WINDOW_CONTEXT, CUI_STORAGE_LIST_SERVICE_TOKEN, CUI_SUBJECT_MODAL_SERVICE_TOKEN, CUI_TABS_SERVICE_TOKEN, CUI_TEXT_FIELD_CONTROLLER, CUI_TEXT_FIELD_ICON_LEFT, CUI_TEXT_FIELD_ID, CUI_TEXT_FIELD_IS_ERROR, CUI_TEXT_FIELD_PLACEHOLDER, CUI_TEXT_FIELD_SIZE, CUI_TEXT_FILED_CONTROLLER_PROVIDER, CUI_THEME, CUI_THEME_STORAGE_DEFAULT_KEY, CUI_THEME_STORAGE_KEY, CUI_TOOLTIP_COMPONENT, CUI_TOOLTIP_DEFAULT_OPTIONS, CUI_TOOLTIP_DIRECTIONS, CUI_TOOLTIP_OPTIONS, CUI_TOOLTIP_PROVIDERS, CUI_USED_ELEMENTS_SERVICE_TOKEN, CUI_UTILITY_SERVICE_TOKEN, ContentHeaderComponent, CuiAbstractTabsComponent, CuiAccessor, CuiAccordionComponent, CuiAccordionDirective, CuiAccordionItemComponent, CuiAccordionModule, CuiActivityBaseService, CuiActivityImplService, CuiAlertComponent, CuiAlertModule, CuiAlertService, CuiAlertsComponent, CuiAttachesTool, CuiAuthBase, CuiAuthService, CuiBadgeComponent, CuiBadgeModule, CuiBannerComponent, CuiBannerModule, CuiBreadcrumbComponent, CuiBreadcrumbsComponent, CuiBreadcrumbsModule, CuiBrowserLoginStrategyService, CuiButtonComponent, CuiButtonGroupComponent, CuiButtonGroupModule, CuiButtonModule, CuiCardWrapperComponent, CuiCategoriesComponent, CuiCategoriesTreeComponent, CuiCategoriesTreeListComponent, CuiCategoryTreeItemComponent, CuiCategoryTreeStateService, CuiCheckListBlockListItemActionCardComponent, CuiCheckListBlockListItemActionWithVerificationComponent, CuiCheckListBlockListItemActionWithoutVerificationComponent, CuiCheckListBlockListItemEvaluationComponent, CuiCheckListBlockListItemEvaluationCriteriaComponent, CuiCheckListBlockService, CuiCheckboxComponent, CuiCheckboxModule, CuiChecklistBlockComponent, CuiChecklistBlockListComponent, CuiChecklistBlockListItemContainerComponent, CuiChecklistBlockTitleControlComponent, CuiCircleLoaderComponent, CuiCollapsiblePanelComponent, CuiContentWrapperComponent, CuiContextMenuComponent, CuiContextMenuModule, CuiCriterionInfoComponent, CuiCriterionInfoFormComponent, CuiCriterionModalCreateComponent, CuiCriterionReadonlyInfoComponent, CuiDateRangeCalendarComponent, CuiDateRangeCalendarModule, CuiDeleteModalComponent, CuiDialogActionsComponent, CuiDialogComponent, CuiDialogHeaderComponent, CuiDialogModule, CuiDialogService, CuiDialogsComponent, CuiDriver, CuiDriverDirective, CuiDropdownDirective, CuiDropdownWrapperComponent, CuiEditorBlockComponent, CuiEditorComponent, CuiEditorModalComponent, CuiEditorReadonlyComponent, CuiEditorTranslations, CuiEmptyStateComponent, CuiErrorResolverFactory, CuiFileIconComponent, CuiFileUploader, CuiFileUploaderStatus, CuiFilterBarComponent, CuiFilterBarModule, CuiFormFieldComponent, CuiFormFieldModule, CuiFramerPreviewComponent, CuiGeneralControlErrorHintComponent, CuiGhostInputComponent, CuiGlobalErrorHandler, CuiHeaderTool, CuiHintComponent, CuiHintModule, CuiHybridStorageService, CuiIconButtonComponent, CuiIconButtonModule, CuiImageTool, CuiInputModule, CuiInputNumberComponent, CuiInputNumberModule, CuiInputPasswordComponent, CuiInputPasswordModule, CuiInputTextComponent, CuiInputTimeComponent, CuiInputTimeModule, CuiInstructionInfoComponent, CuiInstructionInfoFormComponent, CuiInstructionModalCreateComponent, CuiInstructionReadonlyInfoComponent, CuiLabelComponent, CuiLabelModule, CuiLayoutComponent, CuiLetterBoxComponent, CuiLibTranslations, CuiLinearLoaderComponent, CuiLinkMarker, CuiListTool, CuiLoaderComponent, CuiLoaderService, CuiLoadingState, CuiNotificationComponent, CuiNotificationModule, CuiPositionAccessor, CuiPositionService, CuiPulseLoaderComponent, CuiRadioComponent, CuiRadioModule, CuiReadonlyCriterionModalComponent, CuiReadonlyInstructionModalComponent, CuiReadonlyUtilityModalComponent, CuiRectAccessor, CuiRenderDynamicComponentsComponent, CuiRenderDynamicComponentsService, CuiRoleMarker, CuiRootComponent, CuiRootModule, CuiSegmentedWindowHeaderDirective, CuiSegmentedWindowIconDirective, CuiSegmentedWindowsContainerComponent, CuiSegmentedWindowsService, CuiSelectComponent, CuiSelectModalComponent, CuiSelectModalFolderComponent, CuiSelectModalSearchComponent, CuiSelectModalService, CuiSelectModule, CuiSelectedCategoryService, CuiSidebarContainerComponent, CuiSidebarHeaderComponent, CuiSidebarNavigationComponent, CuiSidebarNavigationContainerComponent, CuiSidebarNavigationItemComponent, CuiSidebarService, CuiSkeleton, CuiStatedLoaderComponent, CuiStorageListComponent, CuiSvgComponent, CuiSvgModule, CuiTabDirective, CuiTabsComponent, CuiTabsServiceImpl, CuiTemplateSelectComponent, CuiTextFieldController, CuiTextFieldControllerModule, CuiTextFieldIconLeftDirective, CuiTextFieldIdDirective, CuiTextFieldIsErrorDirective, CuiTextFieldPlaceholderDirective, CuiTextFieldSizeDirective, CuiTextareaComponent, CuiTextareaModule, CuiThemeService, CuiTimePipe, CuiToggleComponent, CuiToggleModule, CuiToolMarker, CuiTooltip, CuiTooltipComponent, CuiTooltipDescribe, CuiTooltipDirective, CuiTooltipDriver, CuiTooltipHost, CuiTooltipHover, CuiTooltipManual, CuiTooltipOptionsDirective, CuiTooltipOverflow, CuiTooltipPointer, CuiTooltipPosition, CuiTooltipService, CuiTooltipUnstyled, CuiTooltipUnstyledComponent, CuiTooltips, CuiTranslations, CuiTreeComponent, CuiUserActionContextMenuComponent, CuiUtilityModalComponent, CuiUtilityModalCreateComponent, CuiUtilityReadonlyThumbnailComponent, CuiUtilityThumbnailComponent, CuiVehicle, CuiVideoTool, CuiVisualViewportService, FileSizePipe, InsertedComponent, ModalDividedSectionComponent, ModalHeaderComponent, ModalHeaderInsertedButtonsComponent, ModalInfoTabComponent, ModalOperationPartComponent, ModalResourcesTabComponent, OptionsButtonComponent, RenderDynamicModalComponent, ResourceStateBaseService, ResourcesBlockComponent, ResourcesBlockPartComponent, ResourcesBlockTabsComponent$1 as ResourcesBlockTabsComponent, ResourcesOptionsComponent, SubjectModalBaseService, UTILITY_MODAL_SERVICE_TOKEN, UsedElementsBaseService, UtilityBaseService, UtilityInfoReadonlyComponent, createEditorTools, cuiAsDriver, cuiAsPositionAccessor, cuiAsRectAccessor, cuiAsVehicle, cuiAuthErrorInterceptor, cuiAuthInterceptor, cuiCheckAuthFailureEvent, cuiCheckFixedPosition, cuiCreateDefaultValidators, cuiErrorHandlerInterceptor, cuiFallbackAccessor, cuiGetDuration, cuiIsObscured, cuiLoaderInterceptor, cuiOverrideOptions, cuiPositionAccessorFor, cuiProvideAccessor, cuiProvideEditor, cuiRectAccessorFor, cuiRemoveSpaces, cuiReplace, cuiToAnimationOptions, cuiTooltipOptionsProvider, cuiXNdjsonInterceptor, handleError, openFileInBrowser, presetConfigToken, provideCuiAuth, provideCuiErrorHandler, provideCuiSegmentedWindows, provideCuiTabs, setLoading, sseStreamReaderInterceptor };
|
|
14784
|
+
export { AlertHintComponent, AngularOutsideLoaderService, AssigneeRoleItemComponent, AssigneeRolesTabsComponent, ButtonChangeThemeComponent, CUI_ACTIVITY_SERVICE_TOKEN, CUI_ALERTS, CUI_ALERT_CONTEXT, CUI_ALERT_DEFAULT_OPTIONS, CUI_ALERT_OPTIONS, CUI_ANIMATIONS_DEFAULT_DURATION, CUI_BADGE_DEFAULT_OPTIONS, CUI_BADGE_OPTIONS, CUI_BANNER_DEFAULT_OPTIONS, CUI_BANNER_OPTIONS, CUI_BUTTON_DEFAULT_OPTIONS, CUI_BUTTON_OPTIONS, CUI_CATEGORIES_TREE_DATA_SOURCE_SERVICE_TOKEN, CUI_DEFAULT_THEME, CUI_DIALOGS, CUI_DIALOG_CONTEXT, CUI_DIALOG_DEFAULT_OPTIONS, CUI_DIALOG_OPTIONS, CUI_FILTER_BAR_DEFAULT_TRANSLATIONS, CUI_INPUT_TIME_DEFAULT_OPTIONS, CUI_INPUT_TIME_OPTIONS, CUI_NOTIFICATION_DEFAULT_OPTIONS, CUI_NOTIFICATION_ICONS, CUI_NOTIFICATION_ICON_OPTIONS, CUI_NOTIFICATION_ICON_OPTIONS_DEFAULT_MODE, CUI_NOTIFICATION_ICON_OPTIONS_LIGHT_MODE, CUI_NOTIFICATION_OPTIONS, CUI_RESOURCE_STATE_SERVICE_TOKEN, CUI_ROOT_SELECTOR, CUI_SEGMENTED_WINDOW_CONTEXT, CUI_STORAGE_LIST_SERVICE_TOKEN, CUI_SUBJECT_MODAL_SERVICE_TOKEN, CUI_TABS_SERVICE_TOKEN, CUI_TEXT_FIELD_CONTROLLER, CUI_TEXT_FIELD_ICON_LEFT, CUI_TEXT_FIELD_ID, CUI_TEXT_FIELD_IS_ERROR, CUI_TEXT_FIELD_PLACEHOLDER, CUI_TEXT_FIELD_SIZE, CUI_TEXT_FILED_CONTROLLER_PROVIDER, CUI_THEME, CUI_THEME_STORAGE_DEFAULT_KEY, CUI_THEME_STORAGE_KEY, CUI_TOOLTIP_COMPONENT, CUI_TOOLTIP_DEFAULT_OPTIONS, CUI_TOOLTIP_DIRECTIONS, CUI_TOOLTIP_OPTIONS, CUI_TOOLTIP_PROVIDERS, CUI_USED_ELEMENTS_SERVICE_TOKEN, CUI_UTILITY_SERVICE_TOKEN, ContentHeaderComponent, CuiAbstractTabsComponent, CuiAccessor, CuiAccordionComponent, CuiAccordionDirective, CuiAccordionItemComponent, CuiAccordionModule, CuiActivityBaseService, CuiActivityImplService, CuiAlertComponent, CuiAlertModule, CuiAlertService, CuiAlertsComponent, CuiAttachesTool, CuiAuthBase, CuiAuthService, CuiBadgeComponent, CuiBadgeModule, CuiBannerComponent, CuiBannerModule, CuiBreadcrumbComponent, CuiBreadcrumbsComponent, CuiBreadcrumbsModule, CuiBrowserLoginStrategyService, CuiButtonComponent, CuiButtonGroupComponent, CuiButtonGroupModule, CuiButtonModule, CuiCardWrapperComponent, CuiCategoriesComponent, CuiCategoriesTreeComponent, CuiCategoriesTreeListComponent, CuiCategoryTreeItemComponent, CuiCategoryTreeStateService, CuiCheckListBlockListItemActionCardComponent, CuiCheckListBlockListItemActionWithVerificationComponent, CuiCheckListBlockListItemActionWithoutVerificationComponent, CuiCheckListBlockListItemEvaluationComponent, CuiCheckListBlockListItemEvaluationCriteriaComponent, CuiCheckListBlockService, CuiCheckboxComponent, CuiCheckboxModule, CuiChecklistBlockComponent, CuiChecklistBlockListComponent, CuiChecklistBlockListItemContainerComponent, CuiChecklistBlockTitleControlComponent, CuiCircleLoaderComponent, CuiCollapsiblePanelComponent, CuiContentWrapperComponent, CuiContextMenuComponent, CuiContextMenuModule, CuiCriterionInfoComponent, CuiCriterionInfoFormComponent, CuiCriterionModalCreateComponent, CuiCriterionReadonlyInfoComponent, CuiDateRangeCalendarComponent, CuiDateRangeCalendarModule, CuiDeleteModalComponent, CuiDialogActionsComponent, CuiDialogComponent, CuiDialogHeaderComponent, CuiDialogModule, CuiDialogService, CuiDialogsComponent, CuiDriver, CuiDriverDirective, CuiDropdownDirective, CuiDropdownWrapperComponent, CuiEditorBlockComponent, CuiEditorComponent, CuiEditorModalComponent, CuiEditorReadonlyComponent, CuiEditorTranslations, CuiEmptyStateComponent, CuiErrorResolverFactory, CuiFileIconComponent, CuiFileUploader, CuiFileUploaderError, CuiFileUploaderStatus, CuiFilterBarComponent, CuiFilterBarModule, CuiFormFieldComponent, CuiFormFieldModule, CuiFramerPreviewComponent, CuiGeneralControlErrorHintComponent, CuiGhostInputComponent, CuiGlobalErrorHandler, CuiHeaderTool, CuiHintComponent, CuiHintModule, CuiHybridStorageService, CuiIconButtonComponent, CuiIconButtonModule, CuiImageTool, CuiInputModule, CuiInputNumberComponent, CuiInputNumberModule, CuiInputPasswordComponent, CuiInputPasswordModule, CuiInputTextComponent, CuiInputTimeComponent, CuiInputTimeModule, CuiInstructionInfoComponent, CuiInstructionInfoFormComponent, CuiInstructionModalCreateComponent, CuiInstructionReadonlyInfoComponent, CuiLabelComponent, CuiLabelModule, CuiLayoutComponent, CuiLetterBoxComponent, CuiLibTranslations, CuiLinearLoaderComponent, CuiLinkMarker, CuiListTool, CuiLoaderComponent, CuiLoaderService, CuiLoadingState, CuiNotificationComponent, CuiNotificationModule, CuiPositionAccessor, CuiPositionService, CuiPulseLoaderComponent, CuiRadioComponent, CuiRadioModule, CuiReadonlyCriterionModalComponent, CuiReadonlyInstructionModalComponent, CuiReadonlyUtilityModalComponent, CuiRectAccessor, CuiRenderDynamicComponentsComponent, CuiRenderDynamicComponentsService, CuiRoleMarker, CuiRootComponent, CuiRootModule, CuiSegmentedWindowHeaderDirective, CuiSegmentedWindowIconDirective, CuiSegmentedWindowsContainerComponent, CuiSegmentedWindowsService, CuiSelectComponent, CuiSelectModalComponent, CuiSelectModalFolderComponent, CuiSelectModalSearchComponent, CuiSelectModalService, CuiSelectModule, CuiSelectedCategoryService, CuiSidebarContainerComponent, CuiSidebarHeaderComponent, CuiSidebarNavigationComponent, CuiSidebarNavigationContainerComponent, CuiSidebarNavigationItemComponent, CuiSidebarService, CuiSkeleton, CuiStatedLoaderComponent, CuiStorageListComponent, CuiSvgComponent, CuiSvgModule, CuiTabDirective, CuiTabsComponent, CuiTabsServiceImpl, CuiTemplateSelectComponent, CuiTextFieldController, CuiTextFieldControllerModule, CuiTextFieldIconLeftDirective, CuiTextFieldIdDirective, CuiTextFieldIsErrorDirective, CuiTextFieldPlaceholderDirective, CuiTextFieldSizeDirective, CuiTextareaComponent, CuiTextareaModule, CuiThemeService, CuiTimePipe, CuiToggleComponent, CuiToggleModule, CuiToolMarker, CuiTooltip, CuiTooltipComponent, CuiTooltipDescribe, CuiTooltipDirective, CuiTooltipDriver, CuiTooltipHost, CuiTooltipHover, CuiTooltipManual, CuiTooltipOptionsDirective, CuiTooltipOverflow, CuiTooltipPointer, CuiTooltipPosition, CuiTooltipService, CuiTooltipUnstyled, CuiTooltipUnstyledComponent, CuiTooltips, CuiTranslations, CuiTreeComponent, CuiUserActionContextMenuComponent, CuiUtilityModalComponent, CuiUtilityModalCreateComponent, CuiUtilityReadonlyThumbnailComponent, CuiUtilityThumbnailComponent, CuiVehicle, CuiVideoTool, CuiVisualViewportService, FileSizePipe, InsertedComponent, ModalDividedSectionComponent, ModalHeaderComponent, ModalHeaderInsertedButtonsComponent, ModalInfoTabComponent, ModalOperationPartComponent, ModalResourcesTabComponent, OptionsButtonComponent, RenderDynamicModalComponent, ResourceStateBaseService, ResourcesBlockComponent, ResourcesBlockPartComponent, ResourcesBlockTabsComponent$1 as ResourcesBlockTabsComponent, ResourcesOptionsComponent, SubjectModalBaseService, UTILITY_MODAL_SERVICE_TOKEN, UsedElementsBaseService, UtilityBaseService, UtilityInfoReadonlyComponent, createEditorTools, cuiAsDriver, cuiAsPositionAccessor, cuiAsRectAccessor, cuiAsVehicle, cuiAuthErrorInterceptor, cuiAuthInterceptor, cuiCheckAuthFailureEvent, cuiCheckFixedPosition, cuiCreateDefaultValidators, cuiErrorHandlerInterceptor, cuiFallbackAccessor, cuiGetDuration, cuiIsObscured, cuiLoaderInterceptor, cuiOverrideOptions, cuiPositionAccessorFor, cuiProvideAccessor, cuiProvideEditor, cuiRectAccessorFor, cuiRemoveSpaces, cuiReplace, cuiToAnimationOptions, cuiTooltipOptionsProvider, cuiXNdjsonInterceptor, handleError, openFileInBrowser, presetConfigToken, provideCuiAuth, provideCuiErrorHandler, provideCuiSegmentedWindows, provideCuiTabs, setLoading, sseStreamReaderInterceptor };
|
|
14726
14785
|
//# sourceMappingURL=cuby-ui-core.mjs.map
|