@colijnit/sharedcomponents 261.20.1 → 261.20.3
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/3rdpartylicenses.txt +27 -54
- package/browser/{chunk-KTNFH73E.js → chunk-5PPHQWL6.js} +5 -5
- package/browser/chunk-FK6H3RFT.js +1 -0
- package/browser/chunk-IZEX6TRK.js +2 -0
- package/browser/index.html +1 -1
- package/browser/main-CDACDCM5.js +330 -0
- package/fesm2022/colijnit-sharedcomponents.mjs +1677 -1426
- package/fesm2022/colijnit-sharedcomponents.mjs.map +1 -1
- package/index.d.ts +49 -12
- package/package.json +1 -1
- package/browser/chunk-ZGRJSZN6.js +0 -2
- package/browser/main-AKBSJVK6.js +0 -287
package/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ import { Form } from '@colijnit/mainapi/build/model/form.bo';
|
|
|
56
56
|
import { FormResponse } from '@colijnit/mainapi/build/model/form-response.bo';
|
|
57
57
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
58
58
|
import * as i3 from '@colijnit/corecomponents_v12';
|
|
59
|
-
import { BaseModuleScreenConfigService, CoreDialogService, OverlayService, ScreenConfigAdapterComponent, FormComponent, PromptService, FormMasterService, IconCacheService as IconCacheService$1, ColorSequenceService, IconListItem } from '@colijnit/corecomponents_v12';
|
|
59
|
+
import { BaseModuleScreenConfigService, SimpleGridColumnTemplateType, CoreDialogService, OverlayService, ScreenConfigAdapterComponent, FormComponent, PromptService, FormMasterService, IconCacheService as IconCacheService$1, ColorSequenceService, IconListItem } from '@colijnit/corecomponents_v12';
|
|
60
60
|
import { SendMethodType } from '@colijnit/mainapi/build/enum/send-method-type.enum';
|
|
61
61
|
import { PrintStockStickers as PrintStockStickers$1 } from '@colijnit/articleapi/build/model/print-stock-stickers';
|
|
62
62
|
import { PrintPriceStickers } from '@colijnit/sharedapi/build/model/print-price-stickers.bo';
|
|
@@ -699,6 +699,7 @@ declare enum SharedCfgName {
|
|
|
699
699
|
|
|
700
700
|
declare class StockTabComponent {
|
|
701
701
|
readonly sharedCfgName: typeof SharedCfgName;
|
|
702
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
702
703
|
articleStockInformation: ArticleStock$1[];
|
|
703
704
|
locationClicked: EventEmitter<string>;
|
|
704
705
|
onLocationClick(data: ArticleStock$1): void;
|
|
@@ -806,6 +807,7 @@ declare class StockLocationComponent extends BaseStockComponent implements OnIni
|
|
|
806
807
|
private _stockService;
|
|
807
808
|
private _changeDetector;
|
|
808
809
|
readonly icons: typeof Icon;
|
|
810
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
809
811
|
set warehouseNo(value: number);
|
|
810
812
|
get warehouseNo(): number;
|
|
811
813
|
articleStockInformation: ArticleStock$1[];
|
|
@@ -867,6 +869,7 @@ declare class StockHistoryComponent extends BaseStockComponent {
|
|
|
867
869
|
iconCacheService: IconCacheService;
|
|
868
870
|
private _stockService;
|
|
869
871
|
readonly icons: typeof Icon;
|
|
872
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
870
873
|
stockHistoryInformation: StockHistoryBo[];
|
|
871
874
|
articleGoodId: string;
|
|
872
875
|
data: StockHistoryBo[];
|
|
@@ -879,6 +882,7 @@ declare class StockHistoryComponent extends BaseStockComponent {
|
|
|
879
882
|
declare class OrderSupplyStockHistoryComponent extends BaseStockComponent {
|
|
880
883
|
private _stockService;
|
|
881
884
|
readonly icons: typeof Icon;
|
|
885
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
882
886
|
data: StockHistoryBo[];
|
|
883
887
|
constructor(_stockService: StockService);
|
|
884
888
|
protected getData(): Promise<void>;
|
|
@@ -889,6 +893,7 @@ declare class OrderSupplyStockHistoryComponent extends BaseStockComponent {
|
|
|
889
893
|
declare class OrderCommissionStockHistoryComponent extends BaseStockComponent {
|
|
890
894
|
private _stockService;
|
|
891
895
|
readonly icons: typeof Icon;
|
|
896
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
892
897
|
data: StockHistoryBo[];
|
|
893
898
|
constructor(_stockService: StockService);
|
|
894
899
|
protected getData(): Promise<void>;
|
|
@@ -899,6 +904,7 @@ declare class OrderCommissionStockHistoryComponent extends BaseStockComponent {
|
|
|
899
904
|
declare class OrderStockHistoryComponent extends BaseStockComponent {
|
|
900
905
|
private _stockService;
|
|
901
906
|
readonly icons: typeof Icon;
|
|
907
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
902
908
|
data: StockHistoryBo[];
|
|
903
909
|
constructor(_stockService: StockService);
|
|
904
910
|
protected getData(): Promise<void>;
|
|
@@ -916,6 +922,7 @@ declare class AllocationStockHistoryComponent extends BaseStockComponent {
|
|
|
916
922
|
private _stockService;
|
|
917
923
|
sharedEventService: SharedEventService;
|
|
918
924
|
readonly icons: typeof Icon;
|
|
925
|
+
readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
|
|
919
926
|
data: StockHistoryBo[];
|
|
920
927
|
constructor(_stockService: StockService, sharedEventService: SharedEventService);
|
|
921
928
|
protected getData(): Promise<void>;
|
|
@@ -961,6 +968,7 @@ declare class StockLocationPopupComponent {
|
|
|
961
968
|
stockLocations: StockLocation[];
|
|
962
969
|
stockStatus: StockStatus[];
|
|
963
970
|
stockBelow: boolean;
|
|
971
|
+
validationMessage: string;
|
|
964
972
|
constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
|
|
965
973
|
statusForId(id: number): 0 | StockStatus;
|
|
966
974
|
handleStockStatusChange(status: StockStatus): void;
|
|
@@ -970,10 +978,11 @@ declare class StockLocationPopupComponent {
|
|
|
970
978
|
handleOkClick(): void;
|
|
971
979
|
togglePopup(): void;
|
|
972
980
|
getStockLocations(): void;
|
|
973
|
-
locationForNumber(number: string):
|
|
981
|
+
locationForNumber(number: string): StockLocation | "";
|
|
974
982
|
locationChanged(event: StockLocation): void;
|
|
975
983
|
handleStockChange(): void;
|
|
976
984
|
newDate(): Date;
|
|
985
|
+
private validateForm;
|
|
977
986
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockLocationPopupComponent, never>;
|
|
978
987
|
static ɵcmp: i0.ɵɵComponentDeclaration<StockLocationPopupComponent, "co-stock-location-popup", never, { "editingRow": { "alias": "editingRow"; "required": false; }; "showConfirmationDialog": { "alias": "showConfirmationDialog"; "required": false; }; "newStockLine": { "alias": "newStockLine"; "required": false; }; "deleteStockLine": { "alias": "deleteStockLine"; "required": false; }; "selectedArticleDetailsData": { "alias": "selectedArticleDetailsData"; "required": false; }; "articleFlat": { "alias": "articleFlat"; "required": false; }; "articleDetailsInformation": { "alias": "articleDetailsInformation"; "required": false; }; "selectedWarehouse": { "alias": "selectedWarehouse"; "required": false; }; "selectedLocationNo": { "alias": "selectedLocationNo"; "required": false; }; "articleStockInfo": { "alias": "articleStockInfo"; "required": false; }; "stockLocations": { "alias": "stockLocations"; "required": false; }; "stockStatus": { "alias": "stockStatus"; "required": false; }; }, { "togglePopupEvent": "togglePopupEvent"; "saveEvent": "saveEvent"; "updateGridData": "updateGridData"; }, never, never, false, never>;
|
|
979
988
|
}
|
|
@@ -1143,6 +1152,7 @@ declare class SendMethodPrinterComponent implements OnInit {
|
|
|
1143
1152
|
layouts: ReportLayoutSelectionPrint[];
|
|
1144
1153
|
isPrinterLayoutsEnabled: boolean;
|
|
1145
1154
|
isAdditionalDocEnabled: boolean;
|
|
1155
|
+
hideSignatureBtn: boolean;
|
|
1146
1156
|
additionalFileContents: any;
|
|
1147
1157
|
additionalFileName: string;
|
|
1148
1158
|
layoutCode: LayoutCode;
|
|
@@ -1163,7 +1173,7 @@ declare class SendMethodPrinterComponent implements OnInit {
|
|
|
1163
1173
|
updatePrinter(request: ReportingDocumentBaseRequest): void;
|
|
1164
1174
|
handleCopiesAmountChange(amount: number): void;
|
|
1165
1175
|
static ɵfac: i0.ɵɵFactoryDeclaration<SendMethodPrinterComponent, never>;
|
|
1166
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodPrinterComponent, "co-send-method-printer", never, { "printerList": { "alias": "printerList"; "required": false; }; "layouts": { "alias": "layouts"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "additionalFileChangeEvent": "additionalFileChangeEvent"; "useLocalPrint": "useLocalPrint"; "copiesAmountChange": "copiesAmountChange"; }, never, never, false, never>;
|
|
1176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodPrinterComponent, "co-send-method-printer", never, { "printerList": { "alias": "printerList"; "required": false; }; "layouts": { "alias": "layouts"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "hideSignatureBtn": { "alias": "hideSignatureBtn"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "additionalFileChangeEvent": "additionalFileChangeEvent"; "useLocalPrint": "useLocalPrint"; "copiesAmountChange": "copiesAmountChange"; }, never, never, false, never>;
|
|
1167
1177
|
}
|
|
1168
1178
|
|
|
1169
1179
|
declare class EmailAddressViewmodel {
|
|
@@ -1224,6 +1234,7 @@ declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
1224
1234
|
visibleMethods: SendMethodType[] | string[];
|
|
1225
1235
|
isDocSignEnabled: boolean;
|
|
1226
1236
|
docSign: boolean;
|
|
1237
|
+
hideSignatureBtn: boolean;
|
|
1227
1238
|
isPrinterLayoutsEnabled: boolean;
|
|
1228
1239
|
isAdditionalDocEnabled: boolean;
|
|
1229
1240
|
additionalFileName: string;
|
|
@@ -1279,7 +1290,7 @@ declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
1279
1290
|
private _selectDefaultSendMethod;
|
|
1280
1291
|
private _prepareVisibleMethods;
|
|
1281
1292
|
static ɵfac: i0.ɵɵFactoryDeclaration<SendMethodDialogComponent, never>;
|
|
1282
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodDialogComponent, "co-send-method-dialog", never, { "printerList": { "alias": "printerList"; "required": false; }; "reportingDocumentPrintRequest": { "alias": "reportingDocumentPrintRequest"; "required": false; }; "reportingDocumentEmailRequest": { "alias": "reportingDocumentEmailRequest"; "required": false; }; "reportingDocumentPdfRequest": { "alias": "reportingDocumentPdfRequest"; "required": false; }; "reportingDocumentCombinedRequest": { "alias": "reportingDocumentCombinedRequest"; "required": false; }; "emailLayouts": { "alias": "emailLayouts"; "required": false; }; "printLayouts": { "alias": "printLayouts"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "emailAddresses": { "alias": "emailAddresses"; "required": false; }; "defaultSendMethod": { "alias": "defaultSendMethod"; "required": false; }; "visibleMethods": { "alias": "visibleMethods"; "required": false; }; "isDocSignEnabled": { "alias": "isDocSignEnabled"; "required": false; }; "docSign": { "alias": "docSign"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "pdfDoc": { "alias": "pdfDoc"; "required": false; }; "disablePdfPreview": { "alias": "disablePdfPreview"; "required": false; }; "emailUnsignedPossible": { "alias": "emailUnsignedPossible"; "required": false; }; "showPDFPreview": { "alias": "showPDFPreview"; "required": false; }; "showAdditionalChecks": { "alias": "showAdditionalChecks"; "required": false; }; "showLocalPrint": { "alias": "showLocalPrint"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "reportingDocumentPrintRequestChange": "reportingDocumentPrintRequestChange"; "reportingDocumentEmailRequestChange": "reportingDocumentEmailRequestChange"; "reportingDocumentPdfRequestChange": "reportingDocumentPdfRequestChange"; "reportingDocumentCombinedRequestChange": "reportingDocumentCombinedRequestChange"; "startSignatureClicked": "startSignatureClicked"; "closeClick": "closeClick"; "okClick": "okClick"; "additionalFileChangeEvent": "additionalFileChangeEvent"; "showFilePreview": "showFilePreview"; "loadDefaultPrinterName": "loadDefaultPrinterName"; }, never, ["[extra-content]"], false, never>;
|
|
1293
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodDialogComponent, "co-send-method-dialog", never, { "printerList": { "alias": "printerList"; "required": false; }; "reportingDocumentPrintRequest": { "alias": "reportingDocumentPrintRequest"; "required": false; }; "reportingDocumentEmailRequest": { "alias": "reportingDocumentEmailRequest"; "required": false; }; "reportingDocumentPdfRequest": { "alias": "reportingDocumentPdfRequest"; "required": false; }; "reportingDocumentCombinedRequest": { "alias": "reportingDocumentCombinedRequest"; "required": false; }; "emailLayouts": { "alias": "emailLayouts"; "required": false; }; "printLayouts": { "alias": "printLayouts"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "emailAddresses": { "alias": "emailAddresses"; "required": false; }; "defaultSendMethod": { "alias": "defaultSendMethod"; "required": false; }; "visibleMethods": { "alias": "visibleMethods"; "required": false; }; "isDocSignEnabled": { "alias": "isDocSignEnabled"; "required": false; }; "docSign": { "alias": "docSign"; "required": false; }; "hideSignatureBtn": { "alias": "hideSignatureBtn"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "pdfDoc": { "alias": "pdfDoc"; "required": false; }; "disablePdfPreview": { "alias": "disablePdfPreview"; "required": false; }; "emailUnsignedPossible": { "alias": "emailUnsignedPossible"; "required": false; }; "showPDFPreview": { "alias": "showPDFPreview"; "required": false; }; "showAdditionalChecks": { "alias": "showAdditionalChecks"; "required": false; }; "showLocalPrint": { "alias": "showLocalPrint"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "reportingDocumentPrintRequestChange": "reportingDocumentPrintRequestChange"; "reportingDocumentEmailRequestChange": "reportingDocumentEmailRequestChange"; "reportingDocumentPdfRequestChange": "reportingDocumentPdfRequestChange"; "reportingDocumentCombinedRequestChange": "reportingDocumentCombinedRequestChange"; "startSignatureClicked": "startSignatureClicked"; "closeClick": "closeClick"; "okClick": "okClick"; "additionalFileChangeEvent": "additionalFileChangeEvent"; "showFilePreview": "showFilePreview"; "loadDefaultPrinterName": "loadDefaultPrinterName"; }, never, ["[extra-content]"], false, never>;
|
|
1283
1294
|
}
|
|
1284
1295
|
|
|
1285
1296
|
declare class LayoutSelectionComponent implements OnInit {
|
|
@@ -2495,14 +2506,15 @@ declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterCom
|
|
|
2495
2506
|
documentChangeEvent: EventEmitter<CoDocument>;
|
|
2496
2507
|
popupOpenedStateChange: EventEmitter<boolean>;
|
|
2497
2508
|
hidden: boolean;
|
|
2498
|
-
onDrop(event: DragEvent): void;
|
|
2499
|
-
onDragEnd(event: DragEvent): void;
|
|
2500
|
-
onDragOver(event: DragEvent): void;
|
|
2501
|
-
onDragEnter(event: DragEvent): void;
|
|
2502
|
-
onDragLeave(event: DragEvent): void;
|
|
2503
2509
|
documentUnderEdit: CoDocument;
|
|
2504
2510
|
acceptedUploadFormats: string;
|
|
2511
|
+
uploadFeedbackMessage: string;
|
|
2512
|
+
uploadFeedbackVisible: boolean;
|
|
2513
|
+
showResizeDialog: boolean;
|
|
2514
|
+
resizeDialogMessage: string;
|
|
2515
|
+
resizeDialogCanSave: boolean;
|
|
2505
2516
|
protected _maxUploadFileSize: number;
|
|
2517
|
+
protected readonly _resizeTargetBytes: number;
|
|
2506
2518
|
private _dragEnterTarget;
|
|
2507
2519
|
private _documentKey;
|
|
2508
2520
|
private _dropZone;
|
|
@@ -2510,22 +2522,46 @@ declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterCom
|
|
|
2510
2522
|
private _docChangeSub;
|
|
2511
2523
|
private _popupCloseSub;
|
|
2512
2524
|
private _readonly;
|
|
2525
|
+
private _uploadFeedbackTimeout;
|
|
2526
|
+
private _pendingResizeResolver;
|
|
2513
2527
|
constructor(_dictionaryService: SharedComponentsDictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver);
|
|
2514
2528
|
ngOnDestroy(): void;
|
|
2529
|
+
onDrop(event: DragEvent): Promise<void>;
|
|
2530
|
+
onDragEnd(event: DragEvent): void;
|
|
2531
|
+
onDragOver(event: DragEvent): void;
|
|
2532
|
+
onDragEnter(event: DragEvent): void;
|
|
2533
|
+
onDragLeave(event: DragEvent): void;
|
|
2515
2534
|
private _showDropzone;
|
|
2516
2535
|
private _clearDropzone;
|
|
2517
2536
|
handleDelete(file: CoDocument): Promise<boolean>;
|
|
2518
2537
|
private _delete;
|
|
2519
2538
|
handleSortingChange(docs: CoDocument[]): void;
|
|
2520
2539
|
handleFileChange(event: any): Promise<void>;
|
|
2540
|
+
filesPicked(files: FileList): Promise<void>;
|
|
2541
|
+
private _processIncomingFiles;
|
|
2542
|
+
protected _prepareFilesForUpload(files: File[]): Promise<File[]>;
|
|
2521
2543
|
handleEditDocumentClick(docToEdit: CoDocument): Promise<void>;
|
|
2522
2544
|
openPopup(): Promise<void>;
|
|
2523
2545
|
openPopupToAddDocumentByUrl(): void;
|
|
2524
2546
|
private _createDocumentToAddByUrl;
|
|
2525
2547
|
private _createAndFillPopupInstance;
|
|
2526
2548
|
protected convertFilesIntoCoDocuments(files: FileList): Promise<CoDocument[]>;
|
|
2527
|
-
|
|
2549
|
+
protected convertFileArrayIntoCoDocuments(files: File[]): Promise<CoDocument[]>;
|
|
2528
2550
|
handleAcceptedFileTypesLoaded(value: FileType$1): void;
|
|
2551
|
+
protected showUploadFeedback(message: string): void;
|
|
2552
|
+
protected clearUploadFeedback(): void;
|
|
2553
|
+
protected getTooLargeMessage(file: File): string;
|
|
2554
|
+
protected getUnsupportedExtensionMessage(file: File, allowedExtensions?: string[]): string | null;
|
|
2555
|
+
protected getMaxUploadSizeInMb(): string;
|
|
2556
|
+
protected askResizeForImage(file: File): Promise<boolean>;
|
|
2557
|
+
handleResizeDialogSave(): void;
|
|
2558
|
+
handleResizeDialogClose(): void;
|
|
2559
|
+
private closeResizeDialog;
|
|
2560
|
+
protected resizeImageToUploadLimit(file: File): Promise<File>;
|
|
2561
|
+
protected resizeImage(file: File, maxWidth: number, maxHeight: number, quality: number): Promise<File>;
|
|
2562
|
+
protected readFileAsDataUrl(file: File): Promise<string>;
|
|
2563
|
+
protected loadImage(src: string): Promise<HTMLImageElement>;
|
|
2564
|
+
protected getResizedFileName(originalName: string, mimeType: string): string;
|
|
2529
2565
|
private _getFileAsDocument;
|
|
2530
2566
|
private _setInternalParamObj;
|
|
2531
2567
|
private _lockDocument;
|
|
@@ -2538,6 +2574,7 @@ declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterCom
|
|
|
2538
2574
|
declare class FilesUploadComponent extends BaseFileUploadComponent implements OnDestroy {
|
|
2539
2575
|
protected _container: ViewContainerRef;
|
|
2540
2576
|
protected _factory: ComponentFactoryResolver;
|
|
2577
|
+
iconCacheService: IconCacheService;
|
|
2541
2578
|
icon: typeof Icon;
|
|
2542
2579
|
set dropzone(value: boolean);
|
|
2543
2580
|
slideoutTemplate: TemplateRef<any>;
|
|
@@ -2558,7 +2595,7 @@ declare class FilesUploadComponent extends BaseFileUploadComponent implements On
|
|
|
2558
2595
|
mouseOverAdd: boolean;
|
|
2559
2596
|
slideoutShown: boolean;
|
|
2560
2597
|
isDropzone: boolean;
|
|
2561
|
-
constructor(dictionaryService: SharedComponentsDictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver);
|
|
2598
|
+
constructor(dictionaryService: SharedComponentsDictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver, iconCacheService: IconCacheService);
|
|
2562
2599
|
ngOnDestroy(): void;
|
|
2563
2600
|
openFileBrowser(): Promise<void>;
|
|
2564
2601
|
handleAddClick(): void;
|
|
@@ -2876,7 +2913,7 @@ declare class AppFileDropzoneModule {
|
|
|
2876
2913
|
|
|
2877
2914
|
declare class FilesUploadModule {
|
|
2878
2915
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilesUploadModule, never>;
|
|
2879
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FilesUploadModule, [typeof FilesUploadComponent], [typeof i3.CoDialogModule, typeof i3.FormModule, typeof i3.InputTextModule, typeof i3.ScreenConfigurationModule, typeof i3.ButtonModule, typeof SharedComponentsTranslationModule, typeof i3.IconModule, typeof ImageDisplayModule, typeof i2.CommonModule, typeof i3.InputCheckboxModule, typeof FileUploadModule, typeof FileUploadPopupModule, typeof AppFileDropzoneModule, typeof i3.DragDropModule], [typeof FilesUploadComponent]>;
|
|
2916
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FilesUploadModule, [typeof FilesUploadComponent], [typeof i3.CoDialogModule, typeof i3.FormModule, typeof i3.InputTextModule, typeof i3.ScreenConfigurationModule, typeof i3.ButtonModule, typeof SharedComponentsTranslationModule, typeof i3.IconModule, typeof ImageDisplayModule, typeof i2.CommonModule, typeof i3.InputCheckboxModule, typeof FileUploadModule, typeof FileUploadPopupModule, typeof AppFileDropzoneModule, typeof i3.DragDropModule, typeof SimpleTagsFormModule, typeof SimpleTagsRecentModule], [typeof FilesUploadComponent]>;
|
|
2880
2917
|
static ɵinj: i0.ɵɵInjectorDeclaration<FilesUploadModule>;
|
|
2881
2918
|
}
|
|
2882
2919
|
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk-H5HZ6YB3.js";var{entries:_t,setPrototypeOf:ct,isFrozen:Yt,getPrototypeOf:Xt,getOwnPropertyDescriptor:jt}=Object,{freeze:S,seal:y,create:ve}=Object,{apply:ke,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});y||(y=function(o){return o});ke||(ke=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});Ue||(Ue=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var ce=R(Array.prototype.forEach),Vt=R(Array.prototype.lastIndexOf),ft=R(Array.prototype.pop),q=R(Array.prototype.push),$t=R(Array.prototype.splice),ue=R(String.prototype.toLowerCase),Ie=R(String.prototype.toString),Ce=R(String.prototype.match),K=R(String.prototype.replace),qt=R(String.prototype.indexOf),Kt=R(String.prototype.trim),L=R(Object.prototype.hasOwnProperty),h=R(RegExp.prototype.test),Z=Zt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return ke(s,o,a)}}function Zt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Ue(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue;ct&&ct(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Yt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Jt(s){for(let o=0;o<s.length;o++)L(s,o)||(s[o]=null);return s}function I(s){let o=ve(null);for(let[l,a]of _t(s))L(s,l)&&(Array.isArray(a)?o[l]=Jt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=I(a):o[l]=a);return o}function J(s,o){for(;s!==null;){let a=jt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Xt(s)}function l(){return null}return l}var ut=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Me=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),we=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xe=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),en=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mt=S(["#text"]),pt=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),dt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tn=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nn=y(/<%[\w\W]*|[\w\W]*%>/gm),on=y(/\$\{[\w\W]*/gm),an=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=y(/^aria-[\-\w]+$/),gt=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=y(/^(?:\w+script|data):/i),ln=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=y(/^html$/i),cn=y(/^[a-z][.\w]*(-[.\w]+)+$/i),Tt=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:At,ERB_EXPR:nn,IS_ALLOWED_URI:gt,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on}),Q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn(),o=i=>ht(i);if(o.version="3.3.1",o.removed=[],!s||!s.document||s.document.nodeType!==Q.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:v,Node:me,Element:Fe,NodeFilter:B,NamedNodeMap:St=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Ot,trustedTypes:ee}=s,Y=Fe.prototype,Dt=J(Y,"cloneNode"),yt=J(Y,"remove"),Lt=J(Y,"nextSibling"),bt=J(Y,"childNodes"),te=J(Y,"parentNode");if(typeof v=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,X="",{implementation:pe,createNodeIterator:Nt,createDocumentFragment:It,getElementsByTagName:Ct}=l,{importNode:Mt}=a,A=Et();o.isSupported=typeof _t=="function"&&typeof te=="function"&&pe&&pe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:wt,ARIA_ATTR:xt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:He,CUSTOM_ELEMENT:vt}=Tt,{IS_ALLOWED_URI:ze}=Tt,d=null,Ge=r({},[...ut,...Me,...we,...xe,...mt]),T=null,We=r({},[...pt,...Pe,...dt,...fe]),u=Object.seal(ve(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,_e=null,k=Object.seal(ve(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Be=!0,ge=!0,Ye=!1,Xe=!0,U=!1,ne=!0,x=!1,Ae=!1,he=!1,F=!1,oe=!1,ie=!1,je=!0,Ve=!1,kt="user-content-",Se=!0,V=!1,H={},b=null,Re=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,qe=r({},["audio","video","img","source","image","track"]),Oe=null,Ke=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",z=C,De=!1,ye=null,Ut=r({},[ae,re,C],Ie),se=r({},["mi","mo","mn","ms","mtext"]),le=r({},["annotation-xml"]),Ft=r({},["title","style","font","a","script"]),$=null,Ht=["application/xhtml+xml","text/html"],zt="text/html",p=null,G=null,Gt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!="object")&&(e={}),e=I(e),$=Ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?zt:e.PARSER_MEDIA_TYPE,p=$==="application/xhtml+xml"?Ie:ue,d=L(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,p):Ge,T=L(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,p):We,ye=L(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Ie):Ut,Oe=L(e,"ADD_URI_SAFE_ATTR")?r(I(Ke),e.ADD_URI_SAFE_ATTR,p):Ke,$e=L(e,"ADD_DATA_URI_TAGS")?r(I(qe),e.ADD_DATA_URI_TAGS,p):qe,b=L(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,p):Re,j=L(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,p):I({}),_e=L(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,p):I({}),H=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,ne=e.SAFE_FOR_XML!==!1,x=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,oe=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,ze=e.ALLOWED_URI_REGEXP||gt,z=e.NAMESPACE||C,se=e.MATHML_TEXT_INTEGRATION_POINTS||se,le=e.HTML_INTEGRATION_POINTS||le,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(ge=!1),oe&&(F=!0),H&&(d=r({},mt),T=[],H.html===!0&&(r(d,ut),r(T,pt)),H.svg===!0&&(r(d,Me),r(T,Pe),r(T,fe)),H.svgFilters===!0&&(r(d,we),r(T,Pe),r(T,fe)),H.mathMl===!0&&(r(d,xe),r(T,dt),r(T,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:(d===Ge&&(d=I(d)),r(d,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:(T===We&&(T=I(T)),r(T,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&r(Oe,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(b===Re&&(b=I(b)),r(b,e.FORBID_CONTENTS,p)),e.ADD_FORBID_CONTENTS&&(b===Re&&(b=I(b)),r(b,e.ADD_FORBID_CONTENTS,p)),Se&&(d["#text"]=!0),x&&r(d,["html","head","body"]),d.table&&(r(d,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=un(ee,c)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));S&&S(e),G=e}},Je=r({},[...Me,...we,...Qt]),Qe=r({},[...xe,...en]),Wt=function(e){let t=te(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});let n=ue(e.tagName),f=ue(t.tagName);return ye[e.namespaceURI]?e.namespaceURI===re?t.namespaceURI===C?n==="svg":t.namespaceURI===ae?n==="svg"&&(f==="annotation-xml"||se[f]):!!Je[n]:e.namespaceURI===ae?t.namespaceURI===C?n==="math":t.namespaceURI===re?n==="math"&&le[f]:!!Qe[n]:e.namespaceURI===C?t.namespaceURI===re&&!le[f]||t.namespaceURI===ae&&!se[f]?!1:!Qe[n]&&(Ft[n]||!Je[n]):!!($==="application/xhtml+xml"&&ye[e.namespaceURI]):!1},N=function(e){q(o.removed,{element:e});try{te(e).removeChild(e)}catch{yt(e)}},P=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(F||oe)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{let m=Ce(e,/^[\r\n\t ]+/);n=m&&m[0]}$==="application/xhtml+xml"&&z===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(z===C)try{t=new Ot().parseFromString(f,$)}catch{}if(!t||!t.documentElement){t=pe.createDocument(z,"template",null);try{t.documentElement.innerHTML=De?X:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===C?Ct.call(t,x?"html":"body")[0]:x?t.documentElement:_},tt=function(e){return Nt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},be=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof me=="function"&&e instanceof me};function M(i,e,t){ce(i,n=>{n.call(o,e,t,G)})}let ot=function(e){let t=null;if(M(A.beforeSanitizeElements,e,null),be(e))return N(e),!0;let n=p(e.nodeName);if(M(A.uponSanitizeElement,e,{tagName:n,allowedTags:d}),ne&&e.hasChildNodes()&&!nt(e.firstElementChild)&&h(/<[/\w!]/g,e.innerHTML)&&h(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ne&&e.nodeType===Q.comment&&h(/<[/\w]/g,e.data))return N(e),!0;if(!(k.tagCheck instanceof Function&&k.tagCheck(n))&&(!d[n]||j[n])){if(!j[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Se&&!b[n]){let f=te(e)||e.parentNode,_=bt(e)||e.childNodes;if(_&&f){let m=_.length;for(let D=m-1;D>=0;--D){let w=Dt(_[D],!0);w.__removalCount=(e.__removalCount||0)+1,f.insertBefore(w,Lt(e))}}}return N(e),!0}return e instanceof Fe&&!Wt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&h(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(U&&e.nodeType===Q.text&&(t=e.textContent,ce([de,Te,Ee],f=>{t=K(t,f," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),M(A.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(je&&(t==="id"||t==="name")&&(n in l||n in Gt))return!1;if(!(ge&&!_e[t]&&h(wt,t))){if(!(Be&&h(xt,t))){if(!(k.attributeCheck instanceof Function&&k.attributeCheck(t,e))){if(!T[t]||_e[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&h(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Oe[t]){if(!h(ze,K(n,He,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&$e[e])){if(!(Ye&&!h(Pt,K(n,He,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&Ce(e,vt)},rt=function(e){M(A.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||be(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:D,value:w}=_,W=p(m),Ne=w,E=m==="value"?Ne:Kt(Ne);if(n.attrName=W,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,M(A.uponSanitizeAttribute,e,n),E=n.attrValue,Ve&&(W==="id"||W==="name")&&(P(m,e),E=kt+E),ne&&h(/((--!?|])>)|<\/(style|title|textarea)/i,E)){P(m,e);continue}if(W==="attributename"&&Ce(E,"href")){P(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){P(m,e);continue}if(!Xe&&h(/\/>/i,E)){P(m,e);continue}U&&ce([de,Te,Ee],lt=>{E=K(E,lt," ")});let st=p(e.nodeName);if(!it(st,W,E)){P(m,e);continue}if(g&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!D)switch(ee.getAttributeType(st,W)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==Ne)try{D?e.setAttributeNS(D,m,E):e.setAttribute(m,E),be(e)?N(e):ft(o.removed)}catch{P(m,e)}}M(A.afterSanitizeAttributes,e,null)},Bt=function i(e){let t=null,n=tt(e);for(M(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)M(A.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof O&&i(t.content);M(A.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(De=!i,De&&(i="<!-->"),typeof i!="string"&&!nt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!o.isSupported)return i;if(Ae||Le(e),o.removed=[],typeof i=="string"&&(V=!1),V){if(i.nodeName){let w=p(i.nodeName);if(!d[w]||j[w])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof me)t=et("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===Q.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!F&&!U&&!x&&i.indexOf("<")===-1)return g&&ie?g.createHTML(i):i;if(t=et(i),!t)return F?null:ie?X:""}t&&he&&N(t.firstChild);let m=tt(V?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof O&&Bt(f.content);if(V)return i;if(F){if(oe)for(_=It.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let D=x?t.outerHTML:t.innerHTML;return x&&d["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&h(At,t.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
2
|
-
`+D),U&&ce([de,Te,Ee],w=>{D=K(D,w," ")}),g&&ie?g.createHTML(D):D},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Le(i),Ae=!0},o.clearConfig=function(){G=null,Ae=!1},o.isValidAttribute=function(i,e,t){G||Le({});let n=p(i),f=p(e);return it(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&q(A[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=Vt(A[i],e);return t===-1?void 0:$t(A[i],t,1)[0]}return ft(A[i])},o.removeHooks=function(i){A[i]=[]},o.removeAllHooks=function(){A=Et()},o}var mn=ht();export{mn as default};
|