@dignite-ng/expand.dynamic-form 0.0.11 → 0.0.14

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.
Files changed (73) hide show
  1. package/esm2022/lib/components/dynamic/dynamic.component.mjs +1 -1
  2. package/esm2022/lib/components/from/ck-editor/ck-editor-config.component.mjs +1 -1
  3. package/esm2022/lib/components/from/ck-editor/ck-editor-control.component.mjs +113 -64
  4. package/esm2022/lib/components/from/date-edit/date-edit-config.component.mjs +1 -1
  5. package/esm2022/lib/components/from/date-edit/date-edit-control.component.mjs +1 -1
  6. package/esm2022/lib/components/from/form-control-group.mjs +1 -8
  7. package/esm2022/lib/components/from/index.mjs +1 -2
  8. package/esm2022/lib/components/from/numeric-edit/numberic-edit-config.component.mjs +1 -1
  9. package/esm2022/lib/components/from/numeric-edit/numberic-edit-control.component.mjs +1 -1
  10. package/esm2022/lib/components/from/select/select-control.component.mjs +1 -1
  11. package/esm2022/lib/components/from/switch/switch-config.component.mjs +1 -1
  12. package/esm2022/lib/components/from/switch/switch-control.component.mjs +1 -1
  13. package/esm2022/lib/components/from/text-edit/text-edit-config.component.mjs +1 -1
  14. package/esm2022/lib/components/from/text-edit/text-edit.component.mjs +1 -1
  15. package/esm2022/lib/dynamic-form.module.mjs +13 -16
  16. package/esm2022/lib/interfaces/form-config-interfaces.mjs +1 -1
  17. package/esm2022/lib/services/index.mjs +1 -2
  18. package/esm2022/public-api.mjs +1 -4
  19. package/fesm2022/dignite-ng-expand.dynamic-form.mjs +118 -471
  20. package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
  21. package/lib/components/from/ck-editor/ck-editor-control.component.d.ts +15 -14
  22. package/lib/components/from/date-edit/date-edit-control.component.d.ts +1 -2
  23. package/lib/components/from/index.d.ts +0 -1
  24. package/lib/dynamic-form.module.d.ts +12 -13
  25. package/lib/services/index.d.ts +0 -1
  26. package/package.json +1 -1
  27. package/public-api.d.ts +0 -3
  28. package/esm2022/lib/components/from/file-explorer/file-explorer-config.component.mjs +0 -68
  29. package/esm2022/lib/components/from/file-explorer/file-explorer-config.mjs +0 -17
  30. package/esm2022/lib/components/from/file-explorer/file-explorer-control.component.mjs +0 -101
  31. package/esm2022/lib/components/from/file-explorer/index.mjs +0 -3
  32. package/esm2022/lib/enums/index.mjs +0 -3
  33. package/esm2022/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.mjs +0 -48
  34. package/esm2022/lib/proxy/dignite/file-explorer/directories/index.mjs +0 -3
  35. package/esm2022/lib/proxy/dignite/file-explorer/directories/models.mjs +0 -2
  36. package/esm2022/lib/proxy/dignite/file-explorer/index.mjs +0 -4
  37. package/esm2022/lib/proxy/dignite/index.mjs +0 -3
  38. package/esm2022/lib/proxy/index.mjs +0 -5
  39. package/esm2022/lib/proxy/microsoft/asp-net-core/index.mjs +0 -3
  40. package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/index.mjs +0 -2
  41. package/esm2022/lib/proxy/microsoft/extensions/index.mjs +0 -3
  42. package/esm2022/lib/proxy/microsoft/extensions/primitives/index.mjs +0 -2
  43. package/esm2022/lib/proxy/microsoft/index.mjs +0 -5
  44. package/esm2022/lib/proxy/microsoft/net/http/headers/index.mjs +0 -2
  45. package/esm2022/lib/proxy/microsoft/net/http/index.mjs +0 -3
  46. package/esm2022/lib/proxy/microsoft/net/index.mjs +0 -3
  47. package/esm2022/lib/proxy/volo/abp/content/index.mjs +0 -2
  48. package/esm2022/lib/proxy/volo/abp/index.mjs +0 -3
  49. package/esm2022/lib/proxy/volo/index.mjs +0 -3
  50. package/esm2022/lib/services/create-dynamic-components.service.mjs +0 -51
  51. package/lib/components/from/file-explorer/file-explorer-config.component.d.ts +0 -22
  52. package/lib/components/from/file-explorer/file-explorer-config.d.ts +0 -7
  53. package/lib/components/from/file-explorer/file-explorer-control.component.d.ts +0 -34
  54. package/lib/components/from/file-explorer/index.d.ts +0 -2
  55. package/lib/enums/index.d.ts +0 -2
  56. package/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.d.ts +0 -17
  57. package/lib/proxy/dignite/file-explorer/directories/index.d.ts +0 -2
  58. package/lib/proxy/dignite/file-explorer/directories/models.d.ts +0 -29
  59. package/lib/proxy/dignite/file-explorer/index.d.ts +0 -3
  60. package/lib/proxy/dignite/index.d.ts +0 -2
  61. package/lib/proxy/index.d.ts +0 -4
  62. package/lib/proxy/microsoft/asp-net-core/index.d.ts +0 -2
  63. package/lib/proxy/microsoft/asp-net-core/mvc/index.d.ts +0 -1
  64. package/lib/proxy/microsoft/extensions/index.d.ts +0 -2
  65. package/lib/proxy/microsoft/extensions/primitives/index.d.ts +0 -1
  66. package/lib/proxy/microsoft/index.d.ts +0 -4
  67. package/lib/proxy/microsoft/net/http/headers/index.d.ts +0 -1
  68. package/lib/proxy/microsoft/net/http/index.d.ts +0 -2
  69. package/lib/proxy/microsoft/net/index.d.ts +0 -2
  70. package/lib/proxy/volo/abp/content/index.d.ts +0 -1
  71. package/lib/proxy/volo/abp/index.d.ts +0 -2
  72. package/lib/proxy/volo/index.d.ts +0 -2
  73. package/lib/services/create-dynamic-components.service.d.ts +0 -13
@@ -1,17 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, ViewChild, ChangeDetectionStrategy, Injectable, ViewContainerRef, NgModule } from '@angular/core';
2
+ import { Component, Input, ViewChild, ChangeDetectionStrategy, inject, Inject, Injectable, ViewContainerRef, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
- import { Validators, FormsModule, ReactiveFormsModule, FormArray, FormGroup, FormControl } from '@angular/forms';
4
+ import { Validators, FormBuilder, FormArray, FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
5
5
  import * as i2 from '@abp/ng.core';
6
- import { CoreModule } from '@abp/ng.core';
6
+ import { RestService, ConfigStateService, CoreModule } from '@abp/ng.core';
7
7
  import { ThemeSharedModule } from '@abp/ng.theme.shared';
8
8
  import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
9
9
  import { NzTreeModule } from 'ng-zorro-antd/tree';
10
- import * as i4 from '@dignite-ng/expand.file-explorer';
11
- import { FileExplorerModule } from '@dignite-ng/expand.file-explorer';
12
10
  import * as i3 from '@ngx-validate/core';
13
11
  import * as i2$1 from '@angular/common';
14
- import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
12
+ import { DOCUMENT } from '@angular/common';
15
13
  import '@ckeditor/ckeditor5-build-classic/build/translations/zh-cn.js';
16
14
  import '@ckeditor/ckeditor5-build-classic/build/translations/zh.js';
17
15
  import '@ckeditor/ckeditor5-build-classic/build/translations/de.js';
@@ -29,9 +27,8 @@ import '@ckeditor/ckeditor5-build-classic/build/translations/sk';
29
27
  import '@ckeditor/ckeditor5-build-classic/build/translations/ja.js';
30
28
  import '@ckeditor/ckeditor5-build-classic/build/translations/es.js';
31
29
  import '@ckeditor/ckeditor5-build-classic/build/translations/vi.js';
32
- import * as i3$1 from '@ckeditor/ckeditor5-angular';
33
- import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
34
30
  import { pinyin } from 'pinyin-pro';
31
+ import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
35
32
 
36
33
  class TextEditConfig {
37
34
  /**占位符 */
@@ -670,9 +667,10 @@ class isBase64UploadAdapter {
670
667
  }
671
668
 
672
669
  class CkEditorControlComponent {
673
- fb;
674
- restService;
675
- config;
670
+ renderer;
671
+ document;
672
+ _restService = inject(RestService);
673
+ config = inject(ConfigStateService);
676
674
  languagesMap = {
677
675
  ar: 'ar',
678
676
  cs: 'cs',
@@ -693,51 +691,89 @@ class CkEditorControlComponent {
693
691
  ja: 'ja',
694
692
  vi: 'vi',
695
693
  };
696
- constructor(fb, restService, config) {
697
- this.fb = fb;
698
- this.restService = restService;
699
- this.config = config;
694
+ ckeditor;
695
+ Editor;
696
+ constructor(renderer, document) {
697
+ this.renderer = renderer;
698
+ this.document = document;
699
+ this.addScript('https://cdn.ckeditor.com/ckeditor5/41.4.1/classic/ckeditor.js');
700
+ }
701
+ addScript(url) {
702
+ const script = this.renderer.createElement('script');
703
+ this.renderer.setAttribute(script, 'type', 'text/javascript');
704
+ this.renderer.setAttribute(script, 'src', url);
705
+ script.onload = () => {
706
+ this._init_Editor();
707
+ };
708
+ this.renderer.appendChild(this.document.head, script);
709
+ }
710
+ // 初始化富文本
711
+ _init_Editor() {
700
712
  const currentCulture = this.config.getOne("localization")?.currentCulture?.name;
701
- this.editorConfig = {
713
+ ClassicEditor.create(this.ckeditor?.nativeElement, {
702
714
  language: this.languagesMap[currentCulture],
703
- placeholder: '',
704
715
  toolbar: {
705
- removeItems: ['mediaEmbed'],
716
+ items: [
717
+ 'heading', '|', 'Alignment', 'FontSize', 'FontColor', 'FontFamily', 'Highlight', '|',
718
+ 'bold', 'italic',
719
+ 'link', '|',
720
+ 'bulletedList', 'numberedList',
721
+ 'insertTable', '|',
722
+ 'uploadImage', 'ImageResize', '|',
723
+ 'undo', 'redo'
724
+ ],
725
+ viewportTopOffset: 30,
706
726
  shouldNotGroupWhenFull: true
707
727
  },
708
- styles: [
709
- 'alignCenter',
710
- 'alignLeft',
711
- 'alignRight'
712
- ],
713
728
  image: {
714
729
  toolbar: [
715
- 'imageTextAlternative', 'toggleImageCaption', '|',
716
- 'imageStyle:inline', 'imageStyle:wrapText', 'imageStyle:breakText', 'imageStyle:side', '|',
717
- ,
718
- 'resizeImage'
730
+ 'imageStyle:alignLeft', 'imageStyle:alignCenter', 'imageStyle:alignRight',
731
+ '|',
732
+ 'resizeImage',
733
+ '|',
734
+ 'imageTextAlternative'
719
735
  ],
720
- insert: {
721
- integrations: [
722
- 'insertImageViaUrl'
723
- ]
724
- }
725
- }
726
- };
727
- }
728
- Editor = ClassicEditor;
729
- /**富文本配置 */
730
- editorConfig = {};
731
- //**富文本加载完成 */
732
- onReady(editor) {
733
- let that = this;
734
- editor.plugins.get('FileRepository').createUploadAdapter = function (loader) {
735
- return new isBase64UploadAdapter(loader, that.imagesContainerName, that.restService);
736
- };
737
- }
738
- /**富文本内容改变 */
739
- onChange({ editor }) {
736
+ styles: [
737
+ 'alignLeft', 'alignCenter', 'alignRight'
738
+ ],
739
+ resizeOptions: [{
740
+ name: 'resizeImage:original',
741
+ label: 'Original',
742
+ value: null
743
+ },
744
+ {
745
+ name: 'resizeImage:25',
746
+ label: '25%',
747
+ value: '25'
748
+ },
749
+ {
750
+ name: 'resizeImage:50',
751
+ label: '50%',
752
+ value: '50'
753
+ },
754
+ {
755
+ name: 'resizeImage:75',
756
+ label: '75%',
757
+ value: '75'
758
+ }
759
+ ],
760
+ },
761
+ }).then((editor) => {
762
+ this.Editor = editor;
763
+ this.dataLoaded();
764
+ var _this = this;
765
+ editor.plugins.get('FileRepository').createUploadAdapter = function (loader) {
766
+ return new isBase64UploadAdapter(loader, _this.imagesContainerName, _this._restService);
767
+ };
768
+ editor.model.document.on('change:data', () => {
769
+ const data = editor.getData();
770
+ this.setckeditorInput(data);
771
+ });
772
+ }).catch((err) => {
773
+ console.log(err);
774
+ });
740
775
  }
776
+ fb = inject(FormBuilder);
741
777
  /**表单实体 */
742
778
  _entity;
743
779
  set entity(v) {
@@ -766,17 +802,29 @@ class CkEditorControlComponent {
766
802
  get extraProperties() {
767
803
  return this._entity.get('extraProperties');
768
804
  }
805
+ get ckeditorInput() {
806
+ return this.extraProperties.get(this._fields.field.name);
807
+ }
769
808
  /**数据加载完成 */
770
809
  async dataLoaded() {
771
- if (this._fields && this._entity) {
810
+ if (this._fields && this._entity && this.Editor) {
772
811
  await this.AfterInit();
812
+ if (this._selected) {
813
+ this.Editor.setData(this._selected);
814
+ this.setckeditorInput(this._selected);
815
+ }
773
816
  this.submitclick.nativeElement.click();
774
817
  }
775
818
  }
819
+ invalidfeedback = false;
820
+ setckeditorInput(val) {
821
+ this.invalidfeedback = true;
822
+ this.ckeditorInput.patchValue(val);
823
+ }
776
824
  /**图片容器名称 */
777
- imagesContainerName;
825
+ imagesContainerName = 111;
778
826
  AfterInit() {
779
- return new Promise((resolve, rejects) => {
827
+ return new Promise((resolve) => {
780
828
  let ValidatorsArray = [];
781
829
  if (this._fields.required) {
782
830
  ValidatorsArray.push(Validators.required);
@@ -787,19 +835,19 @@ class CkEditorControlComponent {
787
835
  resolve(true);
788
836
  });
789
837
  }
790
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CkEditorControlComponent, deps: [{ token: i1.FormBuilder }, { token: i2.RestService }, { token: i2.ConfigStateService }], target: i0.ɵɵFactoryTarget.Component });
791
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CkEditorControlComponent, isStandalone: true, selector: "df-ck-editor-control", inputs: { entity: "entity", fields: "fields", parentFiledName: "parentFiledName", selected: "selected" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-2\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <ckeditor [editor]=\"Editor\" [config]=\"editorConfig\" formControlName=\"{{_fields.field.name}}\"\n (ready)=\"onReady($event)\" (change)=\"onChange($event)\" required=\"\" name=\"overview\"></ckeditor>\n <div class=\"form-text\" *ngIf=\"_fields.field.description\">{{_fields.field.description}}</div>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: CKEditorModule }, { kind: "component", type: i3$1.CKEditorComponent, selector: "ckeditor", inputs: ["editor", "config", "data", "tagName", "watchdog", "editorWatchdogConfig", "disableTwoWayDataBinding", "disabled"], outputs: ["ready", "change", "blur", "focus", "error"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "ngmodule", type: ReactiveFormsModule }] });
838
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CkEditorControlComponent, deps: [{ token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
839
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CkEditorControlComponent, selector: "df-ck-editor-control", inputs: { entity: "entity", fields: "fields", parentFiledName: "parentFiledName", selected: "selected" }, viewQueries: [{ propertyName: "ckeditor", first: true, predicate: ["ckeditor"], descendants: true, static: true }, { propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-2\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <div #ckeditor id=\"ckeditor\"></div>\n <ng-container *ngIf=\"ckeditorInput?.errors?.required&&invalidfeedback\">\n <div class=\"text-danger \">\n {{'DigniteAbpForms::Validate:Required' | abpLocalization:' '}}\n </div>\n </ng-container>\n <div class=\"form-text\" *ngIf=\"_fields.field.description\">{{_fields.field.description}}</div>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] });
792
840
  }
793
841
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CkEditorControlComponent, decorators: [{
794
842
  type: Component,
795
- args: [{ selector: 'df-ck-editor-control', standalone: true, imports: [
796
- CKEditorModule,
797
- FormsModule,
798
- CoreModule,
799
- ThemeSharedModule,
800
- ReactiveFormsModule,
801
- ], template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-2\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <ckeditor [editor]=\"Editor\" [config]=\"editorConfig\" formControlName=\"{{_fields.field.name}}\"\n (ready)=\"onReady($event)\" (change)=\"onChange($event)\" required=\"\" name=\"overview\"></ckeditor>\n <div class=\"form-text\" *ngIf=\"_fields.field.description\">{{_fields.field.description}}</div>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>" }]
802
- }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.RestService }, { type: i2.ConfigStateService }]; }, propDecorators: { entity: [{
843
+ args: [{ selector: 'df-ck-editor-control', template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-2\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <div #ckeditor id=\"ckeditor\"></div>\n <ng-container *ngIf=\"ckeditorInput?.errors?.required&&invalidfeedback\">\n <div class=\"text-danger \">\n {{'DigniteAbpForms::Validate:Required' | abpLocalization:' '}}\n </div>\n </ng-container>\n <div class=\"form-text\" *ngIf=\"_fields.field.description\">{{_fields.field.description}}</div>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>" }]
844
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: Document, decorators: [{
845
+ type: Inject,
846
+ args: [DOCUMENT]
847
+ }] }]; }, propDecorators: { ckeditor: [{
848
+ type: ViewChild,
849
+ args: ['ckeditor', { static: true }]
850
+ }], entity: [{
803
851
  type: Input
804
852
  }], fields: [{
805
853
  type: Input
@@ -993,176 +1041,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
993
1041
  args: ['submitclick', { static: true }]
994
1042
  }] } });
995
1043
 
996
- class FileExplorerConfig {
997
- /**文件容器名称 */
998
- 'FileExplorer.FileContainerName' = ['', [Validators.required]];
999
- /**多选 */
1000
- 'FileExplorer.UploadFileMultiple' = [false, []];
1001
- constructor(data) {
1002
- if (data) {
1003
- for (const key in data) {
1004
- if (data.hasOwnProperty(key)) {
1005
- this[key] = data[key];
1006
- }
1007
- }
1008
- }
1009
- }
1010
- }
1011
-
1012
- class FileExplorerConfigComponent {
1013
- fb;
1014
- constructor(fb) {
1015
- this.fb = fb;
1016
- }
1017
- /**表单控件类型 */
1018
- _type;
1019
- set type(v) {
1020
- this._type = v;
1021
- this.dataLoaded();
1022
- }
1023
- /**表单实体 */
1024
- _Entity;
1025
- set Entity(v) {
1026
- this._Entity = v;
1027
- this.dataLoaded();
1028
- }
1029
- /**选择的表单信息 */
1030
- _selected;
1031
- set selected(v) {
1032
- this._selected = v;
1033
- this.dataLoaded();
1034
- }
1035
- get formConfiguration() {
1036
- return this._Entity.get('formConfiguration');
1037
- }
1038
- submitclick;
1039
- async dataLoaded() {
1040
- if (this._Entity && this._type) {
1041
- await this.AfterInit();
1042
- this.submitclick?.nativeElement?.click();
1043
- }
1044
- }
1045
- AfterInit() {
1046
- return new Promise((resolve, rejects) => {
1047
- this._Entity.setControl('formConfiguration', this.fb.group(new FileExplorerConfig()));
1048
- if (this._selected && this._selected.formControlName == this._type) {
1049
- this.formConfiguration.patchValue({
1050
- ...this._selected.formConfiguration
1051
- });
1052
- }
1053
- resolve(true);
1054
- });
1055
- }
1056
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileExplorerConfigComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
1057
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileExplorerConfigComponent, selector: "df-file-explorer-config", inputs: { type: "type", Entity: "Entity", selected: "selected" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_Entity\">\n <div formGroupName=\"formConfiguration\">\n <div class=\"mb-2\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsFileExplorer::FileContainerName' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"FileExplorer.FileContainerName\">\n </div>\n <div class=\"mb-2\">\n <div class=\"form-check form-check-inline\">\n <input class=\"form-check-input\" type=\"checkbox\" formControlName=\"FileExplorer.UploadFileMultiple\" id=\"flexRadioDefault1\">\n <label class=\"form-check-label\" for=\"flexRadioDefault1\">\n {{'DigniteAbpDynamicFormsFileExplorer::UploadFileMultiple' | abpLocalization}}\n </label>\n </div>\n </div>\n <button type=\"submit\" (abpInit)=\"submitclick?.nativeElement?.click()\" style=\"display: none;\"\n #submitclick></button>\n </div>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] });
1058
- }
1059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileExplorerConfigComponent, decorators: [{
1060
- type: Component,
1061
- args: [{ selector: 'df-file-explorer-config', template: "<form [formGroup]=\"_Entity\">\n <div formGroupName=\"formConfiguration\">\n <div class=\"mb-2\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsFileExplorer::FileContainerName' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"FileExplorer.FileContainerName\">\n </div>\n <div class=\"mb-2\">\n <div class=\"form-check form-check-inline\">\n <input class=\"form-check-input\" type=\"checkbox\" formControlName=\"FileExplorer.UploadFileMultiple\" id=\"flexRadioDefault1\">\n <label class=\"form-check-label\" for=\"flexRadioDefault1\">\n {{'DigniteAbpDynamicFormsFileExplorer::UploadFileMultiple' | abpLocalization}}\n </label>\n </div>\n </div>\n <button type=\"submit\" (abpInit)=\"submitclick?.nativeElement?.click()\" style=\"display: none;\"\n #submitclick></button>\n </div>\n</form>" }]
1062
- }], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { type: [{
1063
- type: Input
1064
- }], Entity: [{
1065
- type: Input
1066
- }], selected: [{
1067
- type: Input
1068
- }], submitclick: [{
1069
- type: ViewChild,
1070
- args: ['submitclick', { static: true }]
1071
- }] } });
1072
-
1073
- class FileExplorerControlComponent {
1074
- fb;
1075
- constructor(fb) {
1076
- this.fb = fb;
1077
- }
1078
- /**表单实体 */
1079
- _entity;
1080
- set entity(v) {
1081
- this._entity = v;
1082
- if (v)
1083
- this.dataLoaded();
1084
- }
1085
- /**字段配置列表 */
1086
- _fields = '';
1087
- set fields(v) {
1088
- this._fields = v;
1089
- if (v)
1090
- this.dataLoaded();
1091
- }
1092
- /**父级字段名称,用于为表单设置控件赋值 */
1093
- _parentFiledName;
1094
- set parentFiledName(v) {
1095
- this._parentFiledName = v;
1096
- if (v)
1097
- this.dataLoaded();
1098
- }
1099
- /**父级字段名称,用于为表单设置控件赋值 */
1100
- _selected;
1101
- set selected(v) {
1102
- this._selected = v;
1103
- if (v && v.length > 0)
1104
- this.dataLoaded();
1105
- }
1106
- submitclick;
1107
- get extraProperties() {
1108
- return this._entity.get('extraProperties');
1109
- }
1110
- /**数据加载完成 */
1111
- async dataLoaded() {
1112
- if (this._fields && this._entity && this._parentFiledName) {
1113
- await this.AfterInit();
1114
- this.submitclick.nativeElement.click();
1115
- }
1116
- }
1117
- /**字段配置 */
1118
- formConfiguration = '';
1119
- /**文件容器名称 */
1120
- FileContainerName = '';
1121
- AfterInit() {
1122
- return new Promise((resolve, rejects) => {
1123
- let ValidatorsArray = [];
1124
- if (this._fields.required) {
1125
- ValidatorsArray.push(Validators.required);
1126
- }
1127
- this.formConfiguration = this._fields.field.formConfiguration;
1128
- this.FileContainerName = this.formConfiguration['FileExplorer.FileContainerName'];
1129
- if (this._selected && this._selected.length > 0) {
1130
- this.selectedFileGroup = this._selected;
1131
- }
1132
- let newControl = this.fb.control(this._selected, ValidatorsArray);
1133
- this.extraProperties.setControl(this._fields.field.name, newControl);
1134
- resolve(true);
1135
- });
1136
- }
1137
- /**选择文件-弹窗的-已选定的文件 */
1138
- selectedFileGroup = [];
1139
- /**_selectedFile改变回调 */
1140
- _selectedFileChange(event) {
1141
- this.selectedFileGroup = event;
1142
- let fieldName = this._fields.field.name;
1143
- let obj = {};
1144
- obj[fieldName] = event;
1145
- this.extraProperties.patchValue(obj);
1146
- }
1147
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileExplorerControlComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
1148
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileExplorerControlComponent, selector: "df-file-explorer-control", inputs: { entity: "entity", fields: "fields", parentFiledName: "parentFiledName", selected: "selected" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-2\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <fe-file-picker [selectFormFile]=\"selectedFileGroup\" [multiple]=\"formConfiguration['FileExplorer.UploadFileMultiple']\"\n (selectedFileChange)=\"_selectedFileChange($event)\"></fe-file-picker>\n <div class=\"form-text\" *ngIf=\"_fields.field.description\">{{_fields.field.description}}</div>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i4.FilePickerComponent, selector: "fe-file-picker", inputs: ["multiple", "fileContainerName", "selectFormFile"], outputs: ["selectedFileChange"] }] });
1149
- }
1150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileExplorerControlComponent, decorators: [{
1151
- type: Component,
1152
- args: [{ selector: 'df-file-explorer-control', template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-2\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <fe-file-picker [selectFormFile]=\"selectedFileGroup\" [multiple]=\"formConfiguration['FileExplorer.UploadFileMultiple']\"\n (selectedFileChange)=\"_selectedFileChange($event)\"></fe-file-picker>\n <div class=\"form-text\" *ngIf=\"_fields.field.description\">{{_fields.field.description}}</div>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>" }]
1153
- }], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { entity: [{
1154
- type: Input
1155
- }], fields: [{
1156
- type: Input
1157
- }], parentFiledName: [{
1158
- type: Input
1159
- }], selected: [{
1160
- type: Input
1161
- }], submitclick: [{
1162
- type: ViewChild,
1163
- args: ['submitclick', { static: true }]
1164
- }] } });
1165
-
1166
1044
  class SelectConfig {
1167
1045
  /**空值文本 */
1168
1046
  'Select.NullText' = ['', []];
@@ -1260,53 +1138,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1260
1138
  }]
1261
1139
  }], ctorParameters: function () { return []; } });
1262
1140
 
1263
- class CreateDynamicComponentsService {
1264
- constructor() { }
1265
- /**表单控件组 */
1266
- _fieldControlGroup = FieldControlGroup;
1267
- /**加载动态表单配置组件 */
1268
- loadfieldConfigComponent(input) {
1269
- let { configRef, type, entity, selected } = input;
1270
- let fieldControlItem = this._fieldControlGroup.find(el => el.name === type);
1271
- //清空了容器中的所有组件
1272
- configRef?.clear();
1273
- if (!fieldControlItem || !fieldControlItem.fieldConfigComponent)
1274
- return;
1275
- //在容器中创建组件
1276
- const { instance } = configRef?.createComponent(fieldControlItem.fieldConfigComponent); //创建组件模板
1277
- console.log('加载动态表单配置组件', input, instance);
1278
- /**向创建的组件模板中传值 */
1279
- instance.Entity = entity;
1280
- instance.selected = selected;
1281
- instance.type = type;
1282
- }
1283
- /**加载动态表单组件 */
1284
- loadfieldComponent(input) {
1285
- let { controlRef, entity, fields, parentFiledName, selected, culture } = input;
1286
- let fieldControlItem = this._fieldControlGroup.find(el => el.name === fields.field.formControlName);
1287
- //清空了容器中的所有组件
1288
- controlRef?.clear();
1289
- if (!fieldControlItem || !fieldControlItem.fieldComponent)
1290
- return;
1291
- //在容器中创建组件
1292
- const { instance } = controlRef?.createComponent(fieldControlItem.fieldComponent); //创建组件模板
1293
- /**向创建的组件模板中传值 */
1294
- instance.entity = entity;
1295
- instance.fields = fields;
1296
- instance.parentFiledName = parentFiledName;
1297
- instance.selected = selected;
1298
- instance.culture = culture;
1299
- }
1300
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateDynamicComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1301
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateDynamicComponentsService, providedIn: 'root' });
1302
- }
1303
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateDynamicComponentsService, decorators: [{
1304
- type: Injectable,
1305
- args: [{
1306
- providedIn: 'root'
1307
- }]
1308
- }], ctorParameters: function () { return []; } });
1309
-
1310
1141
  class SelectConfigComponent {
1311
1142
  fb;
1312
1143
  _DfApiService;
@@ -1518,12 +1349,6 @@ const FieldControlGroup = [
1518
1349
  // fieldViewComponent:TextBoxViewComponent,
1519
1350
  },
1520
1351
  {
1521
- displayName: '文件管理',
1522
- name: 'FileExplorer',
1523
- fieldConfigComponent: FileExplorerConfigComponent,
1524
- fieldComponent: FileExplorerControlComponent,
1525
- // fieldViewComponent:TextBoxViewComponent,
1526
- }, {
1527
1352
  displayName: 'CkEditor',
1528
1353
  name: 'CkEditor',
1529
1354
  fieldConfigComponent: CkEditorConfigComponent,
@@ -1676,18 +1501,18 @@ class DynamicFormModule {
1676
1501
  NumbericEditControlComponent,
1677
1502
  DateEditConfigComponent,
1678
1503
  DateEditControlComponent,
1679
- FileExplorerConfigComponent,
1680
- FileExplorerControlComponent,
1681
1504
  CkEditorConfigComponent,
1682
1505
  SelectConfigComponent,
1683
1506
  SelectControlComponent,
1684
- DynamicComponent], imports: [FormsModule,
1507
+ DynamicComponent,
1508
+ CkEditorControlComponent], imports: [FormsModule,
1685
1509
  CoreModule,
1686
1510
  ThemeSharedModule,
1687
1511
  ReactiveFormsModule,
1688
1512
  NgbDropdownModule,
1689
1513
  NzTreeModule,
1690
- FileExplorerModule], exports: [TextEditConfigComponent,
1514
+ // FileExplorerModule,
1515
+ CKEditorModule], exports: [TextEditConfigComponent,
1691
1516
  TextEditComponent,
1692
1517
  SwitchConfigComponent,
1693
1518
  SwitchControlComponent,
@@ -1695,8 +1520,6 @@ class DynamicFormModule {
1695
1520
  NumbericEditControlComponent,
1696
1521
  DateEditConfigComponent,
1697
1522
  DateEditControlComponent,
1698
- FileExplorerConfigComponent,
1699
- FileExplorerControlComponent,
1700
1523
  CkEditorConfigComponent,
1701
1524
  SelectConfigComponent,
1702
1525
  SelectControlComponent,
@@ -1707,7 +1530,8 @@ class DynamicFormModule {
1707
1530
  ReactiveFormsModule,
1708
1531
  NgbDropdownModule,
1709
1532
  NzTreeModule,
1710
- FileExplorerModule] });
1533
+ // FileExplorerModule,
1534
+ CKEditorModule] });
1711
1535
  }
1712
1536
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DynamicFormModule, decorators: [{
1713
1537
  type: NgModule,
@@ -1721,12 +1545,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1721
1545
  NumbericEditControlComponent,
1722
1546
  DateEditConfigComponent,
1723
1547
  DateEditControlComponent,
1724
- FileExplorerConfigComponent,
1725
- FileExplorerControlComponent,
1726
1548
  CkEditorConfigComponent,
1727
1549
  SelectConfigComponent,
1728
1550
  SelectControlComponent,
1729
1551
  DynamicComponent,
1552
+ CkEditorControlComponent
1730
1553
  ],
1731
1554
  imports: [
1732
1555
  FormsModule,
@@ -1735,8 +1558,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1735
1558
  ReactiveFormsModule,
1736
1559
  NgbDropdownModule,
1737
1560
  NzTreeModule,
1738
- FileExplorerModule,
1739
- // DynamicComponent
1561
+ // FileExplorerModule,
1562
+ CKEditorModule,
1740
1563
  ],
1741
1564
  exports: [
1742
1565
  TextEditConfigComponent,
@@ -1747,8 +1570,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1747
1570
  NumbericEditControlComponent,
1748
1571
  DateEditConfigComponent,
1749
1572
  DateEditControlComponent,
1750
- FileExplorerConfigComponent,
1751
- FileExplorerControlComponent,
1752
1573
  CkEditorConfigComponent,
1753
1574
  SelectConfigComponent,
1754
1575
  SelectControlComponent,
@@ -1757,180 +1578,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1757
1578
  }]
1758
1579
  }] });
1759
1580
 
1760
- let FileDescriptorService$1 = class FileDescriptorService {
1761
- restService;
1762
- apiName = 'FileExplorer';
1763
- create = (input, config) => this.restService.request({
1764
- method: 'POST',
1765
- url: '/api/file-explorer/directories',
1766
- body: input,
1767
- }, { apiName: this.apiName, ...config });
1768
- delete = (id, config) => this.restService.request({
1769
- method: 'DELETE',
1770
- url: `/api/file-explorer/directories/${id}`,
1771
- }, { apiName: this.apiName, ...config });
1772
- get = (id, config) => this.restService.request({
1773
- method: 'GET',
1774
- url: `/api/file-explorer/directories/${id}`,
1775
- }, { apiName: this.apiName, ...config });
1776
- getList = (input, config) => this.restService.request({
1777
- method: 'GET',
1778
- url: '/api/file-explorer/directories',
1779
- params: { containerName: input.containerName },
1780
- }, { apiName: this.apiName, ...config });
1781
- move = (id, input, config) => this.restService.request({
1782
- method: 'PUT',
1783
- url: `/api/file-explorer/directories/${id}/move`,
1784
- body: input,
1785
- }, { apiName: this.apiName, ...config });
1786
- update = (id, input, config) => this.restService.request({
1787
- method: 'PUT',
1788
- url: `/api/file-explorer/directories/${id}`,
1789
- body: input,
1790
- }, { apiName: this.apiName, ...config });
1791
- constructor(restService) {
1792
- this.restService = restService;
1793
- }
1794
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileDescriptorService, deps: [{ token: i2.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1795
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileDescriptorService, providedIn: 'root' });
1796
- };
1797
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileDescriptorService$1, decorators: [{
1798
- type: Injectable,
1799
- args: [{
1800
- providedIn: 'root',
1801
- }]
1802
- }], ctorParameters: function () { return [{ type: i2.RestService }]; } });
1803
-
1804
- var index$e = /*#__PURE__*/Object.freeze({
1805
- __proto__: null,
1806
- FileDescriptorService: FileDescriptorService$1
1807
- });
1808
-
1809
- class FileDescriptorService {
1810
- restService;
1811
- apiName = 'FileExplorer';
1812
- create = (input, config) => this.restService.request({
1813
- method: 'POST',
1814
- url: '/api/file-explorer/files',
1815
- params: { containerName: input.containerName, cellName: input.cellName, directoryId: input.directoryId, entityId: input.entityId },
1816
- body: input.file,
1817
- }, { apiName: this.apiName, ...config });
1818
- delete = (id, config) => this.restService.request({
1819
- method: 'DELETE',
1820
- url: `/api/file-explorer/files/${id}`,
1821
- }, { apiName: this.apiName, ...config });
1822
- download = (containerName, blobName, fileName, config) => this.restService.request({
1823
- method: 'GET',
1824
- url: `/api/file-explorer/files/download/${containerName}/${blobName}`,
1825
- params: { fileName },
1826
- }, { apiName: this.apiName, ...config });
1827
- get = (id, config) => this.restService.request({
1828
- method: 'GET',
1829
- url: `/api/file-explorer/files/${id}`,
1830
- }, { apiName: this.apiName, ...config });
1831
- getFileContainerConfiguration = (containerName, config) => this.restService.request({
1832
- method: 'GET',
1833
- url: '/api/file-explorer/files/configuration',
1834
- params: { containerName },
1835
- }, { apiName: this.apiName, ...config });
1836
- getList = (input, config) => this.restService.request({
1837
- method: 'GET',
1838
- url: '/api/file-explorer/files',
1839
- params: { containerName: input.containerName, directoryId: input.directoryId, creatorId: input.creatorId, filter: input.filter, entityId: input.entityId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
1840
- }, { apiName: this.apiName, ...config });
1841
- getStream = (containerName, blobName, imageResize, config) => this.restService.request({
1842
- method: 'GET',
1843
- responseType: 'blob',
1844
- url: `/api/file-explorer/files/${containerName}/${blobName}`,
1845
- params: { width: imageResize.width, height: imageResize.height },
1846
- }, { apiName: this.apiName, ...config });
1847
- update = (id, input, config) => this.restService.request({
1848
- method: 'PUT',
1849
- url: `/api/file-explorer/files/${id}`,
1850
- body: input,
1851
- }, { apiName: this.apiName, ...config });
1852
- constructor(restService) {
1853
- this.restService = restService;
1854
- }
1855
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileDescriptorService, deps: [{ token: i2.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1856
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileDescriptorService, providedIn: 'root' });
1857
- }
1858
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileDescriptorService, decorators: [{
1859
- type: Injectable,
1860
- args: [{
1861
- providedIn: 'root',
1862
- }]
1863
- }], ctorParameters: function () { return [{ type: i2.RestService }]; } });
1864
-
1865
- var index$d = /*#__PURE__*/Object.freeze({
1866
- __proto__: null,
1867
- FileDescriptorService: FileDescriptorService
1868
- });
1869
-
1870
- var index$c = /*#__PURE__*/Object.freeze({
1871
- __proto__: null,
1872
- Directories: index$e,
1873
- Files: index$d
1874
- });
1875
-
1876
- var index$b = /*#__PURE__*/Object.freeze({
1877
- __proto__: null,
1878
- FileExplorer: index$c
1879
- });
1880
-
1881
- var index$a = /*#__PURE__*/Object.freeze({
1882
- __proto__: null
1883
- });
1884
-
1885
- var index$9 = /*#__PURE__*/Object.freeze({
1886
- __proto__: null,
1887
- Mvc: index$a
1888
- });
1889
-
1890
- var index$8 = /*#__PURE__*/Object.freeze({
1891
- __proto__: null
1892
- });
1893
-
1894
- var index$7 = /*#__PURE__*/Object.freeze({
1895
- __proto__: null,
1896
- Primitives: index$8
1897
- });
1898
-
1899
- var index$6 = /*#__PURE__*/Object.freeze({
1900
- __proto__: null
1901
- });
1902
-
1903
- var index$5 = /*#__PURE__*/Object.freeze({
1904
- __proto__: null,
1905
- Headers: index$6
1906
- });
1907
-
1908
- var index$4 = /*#__PURE__*/Object.freeze({
1909
- __proto__: null,
1910
- Http: index$5
1911
- });
1912
-
1913
- var index$3 = /*#__PURE__*/Object.freeze({
1914
- __proto__: null,
1915
- AspNetCore: index$9,
1916
- Extensions: index$7,
1917
- Net: index$4
1918
- });
1919
-
1920
- var index$2 = /*#__PURE__*/Object.freeze({
1921
- __proto__: null
1922
- });
1923
-
1924
- var index$1 = /*#__PURE__*/Object.freeze({
1925
- __proto__: null,
1926
- Content: index$2
1927
- });
1928
-
1929
- var index = /*#__PURE__*/Object.freeze({
1930
- __proto__: null,
1931
- Abp: index$1
1932
- });
1933
-
1934
1581
  /*
1935
1582
  * Public API Surface of dynamic-form
1936
1583
  */
@@ -1939,5 +1586,5 @@ var index = /*#__PURE__*/Object.freeze({
1939
1586
  * Generated bundle index. Do not edit.
1940
1587
  */
1941
1588
 
1942
- export { AddFieldControlGroup, CkEditorConfigComponent, CkEditorControlComponent, CreateDynamicComponentsService, DateEditConfigComponent, DateEditControlComponent, DateEditInterfaces, DfApiService, index$b as Dignite, DynamicComponent, DynamicFormModule, FieldControlGroup, FileExplorerConfigComponent, FileExplorerControlComponent, index$3 as Microsoft, NumbericEditConfigComponent, NumbericEditControlComponent, SelectConfigComponent, SelectControlComponent, SwitchConfigComponent, SwitchControlComponent, TextEditComponent, TextEditConfig, TextEditConfigComponent, TextEditMode, index as Volo, getExcludeAssignControl, maxDecimalPlacesValidator };
1589
+ export { AddFieldControlGroup, CkEditorConfigComponent, CkEditorControlComponent, DateEditConfigComponent, DateEditControlComponent, DynamicComponent, DynamicFormModule, FieldControlGroup, NumbericEditConfigComponent, NumbericEditControlComponent, SelectConfigComponent, SelectControlComponent, SwitchConfigComponent, SwitchControlComponent, TextEditComponent, TextEditConfig, TextEditConfigComponent, getExcludeAssignControl, maxDecimalPlacesValidator };
1943
1590
  //# sourceMappingURL=dignite-ng-expand.dynamic-form.mjs.map