@tekdi/sunbird-collection-editor 6.1.0-beta.13 → 6.1.0-beta.15

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.
@@ -9,51 +9,52 @@ import * as i7 from "./components/header/header.component";
9
9
  import * as i8 from "./components/fancy-tree/fancy-tree.component";
10
10
  import * as i9 from "./components/meta-form/meta-form.component";
11
11
  import * as i10 from "./components/shell-field/shell-field.component";
12
- import * as i11 from "./components/library/library.component";
13
- import * as i12 from "./components/library-filter/library-filter.component";
14
- import * as i13 from "./components/library-list/library-list.component";
15
- import * as i14 from "./components/question/question.component";
16
- import * as i15 from "./components/options/options.component";
17
- import * as i16 from "./components/answer/answer.component";
18
- import * as i17 from "./components/ckeditor-tool/ckeditor-tool.component";
19
- import * as i18 from "./components/library-player/library-player.component";
20
- import * as i19 from "./components/resource-reorder/resource-reorder.component";
21
- import * as i20 from "./components/skeleton-loader/skeleton-loader.component";
22
- import * as i21 from "./components/template/template.component";
23
- import * as i22 from "./directives/date-format/date-format.pipe";
24
- import * as i23 from "./directives/telemetry-interact/telemetry-interact.directive";
25
- import * as i24 from "./components/asset-browser/asset-browser.component";
26
- import * as i25 from "./components/collection-icon/collection-icon.component";
27
- import * as i26 from "./components/quml-player/quml-player.component";
28
- import * as i27 from "./components/dialcode/dialcode.component";
29
- import * as i28 from "./components/bulk-upload/bulk-upload.component";
30
- import * as i29 from "./components/csv-upload/csv-upload.component";
31
- import * as i30 from "./components/manage-collaborator/manage-collaborator.component";
32
- import * as i31 from "./components/publish-checklist/publish-checklist.component";
33
- import * as i32 from "./components/question-option-sub-menu/question-option-sub-menu.component";
34
- import * as i33 from "./components/slider/slider.component";
35
- import * as i34 from "./components/translations/translations.component";
36
- import * as i35 from "./components/app-loader/app-loader.component";
37
- import * as i36 from "./components/relational-metadata/relational-metadata.component";
38
- import * as i37 from "./components/assign-page-number/assign-page-number.component";
39
- import * as i38 from "./components/plain-tree/plain-tree.component";
40
- import * as i39 from "./components/progress-status/progress-status.component";
41
- import * as i40 from "./components/term-and-condition/term-and-condition.component";
42
- import * as i41 from "./components/quality-params-modal/quality-params-modal.component";
43
- import * as i42 from "@angular/common";
44
- import * as i43 from "@angular/forms";
45
- import * as i44 from "@angular/router";
46
- import * as i45 from "@project-sunbird/ng2-semantic-ui";
47
- import * as i46 from "@tekdi/common-form-elements-full";
48
- import * as i47 from "ngx-infinite-scroll";
49
- import * as i48 from "@angular/common/http";
50
- import * as i49 from "@project-sunbird/sunbird-quml-player";
51
- import * as i50 from "ngx-bootstrap/carousel";
52
- import * as i51 from "@project-sunbird/sunbird-resource-library";
53
- import * as i52 from "@angular/cdk/a11y";
12
+ import * as i11 from "./components/shell-create/shell-create.component";
13
+ import * as i12 from "./components/library/library.component";
14
+ import * as i13 from "./components/library-filter/library-filter.component";
15
+ import * as i14 from "./components/library-list/library-list.component";
16
+ import * as i15 from "./components/question/question.component";
17
+ import * as i16 from "./components/options/options.component";
18
+ import * as i17 from "./components/answer/answer.component";
19
+ import * as i18 from "./components/ckeditor-tool/ckeditor-tool.component";
20
+ import * as i19 from "./components/library-player/library-player.component";
21
+ import * as i20 from "./components/resource-reorder/resource-reorder.component";
22
+ import * as i21 from "./components/skeleton-loader/skeleton-loader.component";
23
+ import * as i22 from "./components/template/template.component";
24
+ import * as i23 from "./directives/date-format/date-format.pipe";
25
+ import * as i24 from "./directives/telemetry-interact/telemetry-interact.directive";
26
+ import * as i25 from "./components/asset-browser/asset-browser.component";
27
+ import * as i26 from "./components/collection-icon/collection-icon.component";
28
+ import * as i27 from "./components/quml-player/quml-player.component";
29
+ import * as i28 from "./components/dialcode/dialcode.component";
30
+ import * as i29 from "./components/bulk-upload/bulk-upload.component";
31
+ import * as i30 from "./components/csv-upload/csv-upload.component";
32
+ import * as i31 from "./components/manage-collaborator/manage-collaborator.component";
33
+ import * as i32 from "./components/publish-checklist/publish-checklist.component";
34
+ import * as i33 from "./components/question-option-sub-menu/question-option-sub-menu.component";
35
+ import * as i34 from "./components/slider/slider.component";
36
+ import * as i35 from "./components/translations/translations.component";
37
+ import * as i36 from "./components/app-loader/app-loader.component";
38
+ import * as i37 from "./components/relational-metadata/relational-metadata.component";
39
+ import * as i38 from "./components/assign-page-number/assign-page-number.component";
40
+ import * as i39 from "./components/plain-tree/plain-tree.component";
41
+ import * as i40 from "./components/progress-status/progress-status.component";
42
+ import * as i41 from "./components/term-and-condition/term-and-condition.component";
43
+ import * as i42 from "./components/quality-params-modal/quality-params-modal.component";
44
+ import * as i43 from "@angular/common";
45
+ import * as i44 from "@angular/forms";
46
+ import * as i45 from "@angular/router";
47
+ import * as i46 from "@project-sunbird/ng2-semantic-ui";
48
+ import * as i47 from "@tekdi/common-form-elements-full";
49
+ import * as i48 from "ngx-infinite-scroll";
50
+ import * as i49 from "@angular/common/http";
51
+ import * as i50 from "@project-sunbird/sunbird-quml-player";
52
+ import * as i51 from "ngx-bootstrap/carousel";
53
+ import * as i52 from "@project-sunbird/sunbird-resource-library";
54
+ import * as i53 from "@angular/cdk/a11y";
54
55
  export declare class CollectionEditorLibraryModule {
55
56
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectionEditorLibraryModule, never>;
56
- static ɵmod: i0.ɵɵNgModuleDeclaration<CollectionEditorLibraryModule, [typeof i1.CollectionEditorLibraryComponent, typeof i2.InterpolatePipe, typeof i3.SanitizeHtmlPipe, typeof i4.ContentplayerPageComponent, typeof i5.EditorComponent, typeof i6.QumlplayerPageComponent, typeof i7.HeaderComponent, typeof i8.FancyTreeComponent, typeof i9.MetaFormComponent, typeof i10.ShellFieldComponent, typeof i11.LibraryComponent, typeof i12.LibraryFilterComponent, typeof i13.LibraryListComponent, typeof i14.QuestionComponent, typeof i15.OptionsComponent, typeof i16.AnswerComponent, typeof i17.CkeditorToolComponent, typeof i18.LibraryPlayerComponent, typeof i19.ResourceReorderComponent, typeof i20.SkeletonLoaderComponent, typeof i21.TemplateComponent, typeof i22.DateFormatPipe, typeof i23.TelemetryInteractDirective, typeof i24.AssetBrowserComponent, typeof i25.CollectionIconComponent, typeof i26.QumlPlayerComponent, typeof i27.DialcodeComponent, typeof i28.BulkUploadComponent, typeof i29.CsvUploadComponent, typeof i30.ManageCollaboratorComponent, typeof i31.PublishChecklistComponent, typeof i32.QuestionOptionSubMenuComponent, typeof i33.SliderComponent, typeof i34.TranslationsComponent, typeof i35.AppLoaderComponent, typeof i36.RelationalMetadataComponent, typeof i37.AssignPageNumberComponent, typeof i38.PlainTreeComponent, typeof i39.ProgressStatusComponent, typeof i40.TermAndConditionComponent, typeof i41.QualityParamsModalComponent], [typeof i42.CommonModule, typeof i43.FormsModule, typeof i43.ReactiveFormsModule, typeof i44.RouterModule, typeof i45.SuiModule, typeof i46.CommonFormElementsModule, typeof i47.InfiniteScrollModule, typeof i48.HttpClientModule, typeof i49.QumlLibraryModule, typeof i50.CarouselModule, typeof i51.ResourceLibraryModule, typeof i52.A11yModule], [typeof i5.EditorComponent]>;
57
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CollectionEditorLibraryModule, [typeof i1.CollectionEditorLibraryComponent, typeof i2.InterpolatePipe, typeof i3.SanitizeHtmlPipe, typeof i4.ContentplayerPageComponent, typeof i5.EditorComponent, typeof i6.QumlplayerPageComponent, typeof i7.HeaderComponent, typeof i8.FancyTreeComponent, typeof i9.MetaFormComponent, typeof i10.ShellFieldComponent, typeof i11.ShellCreateComponent, typeof i12.LibraryComponent, typeof i13.LibraryFilterComponent, typeof i14.LibraryListComponent, typeof i15.QuestionComponent, typeof i16.OptionsComponent, typeof i17.AnswerComponent, typeof i18.CkeditorToolComponent, typeof i19.LibraryPlayerComponent, typeof i20.ResourceReorderComponent, typeof i21.SkeletonLoaderComponent, typeof i22.TemplateComponent, typeof i23.DateFormatPipe, typeof i24.TelemetryInteractDirective, typeof i25.AssetBrowserComponent, typeof i26.CollectionIconComponent, typeof i27.QumlPlayerComponent, typeof i28.DialcodeComponent, typeof i29.BulkUploadComponent, typeof i30.CsvUploadComponent, typeof i31.ManageCollaboratorComponent, typeof i32.PublishChecklistComponent, typeof i33.QuestionOptionSubMenuComponent, typeof i34.SliderComponent, typeof i35.TranslationsComponent, typeof i36.AppLoaderComponent, typeof i37.RelationalMetadataComponent, typeof i38.AssignPageNumberComponent, typeof i39.PlainTreeComponent, typeof i40.ProgressStatusComponent, typeof i41.TermAndConditionComponent, typeof i42.QualityParamsModalComponent], [typeof i43.CommonModule, typeof i44.FormsModule, typeof i44.ReactiveFormsModule, typeof i45.RouterModule, typeof i46.SuiModule, typeof i47.CommonFormElementsModule, typeof i48.InfiniteScrollModule, typeof i49.HttpClientModule, typeof i50.QumlLibraryModule, typeof i51.CarouselModule, typeof i52.ResourceLibraryModule, typeof i53.A11yModule], [typeof i5.EditorComponent]>;
57
58
  static ɵinj: i0.ɵɵInjectorDeclaration<CollectionEditorLibraryModule>;
58
59
  }
59
60
  //# sourceMappingURL=collection-editor-library.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection-editor-library.module.d.ts","sourceRoot":"","sources":["../../../projects/collection-editor-library/src/lib/collection-editor-library.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,qBAqDa,6BAA6B;yCAA7B,6BAA6B;0CAA7B,6BAA6B;0CAA7B,6BAA6B;CAAG"}
1
+ {"version":3,"file":"collection-editor-library.module.d.ts","sourceRoot":"","sources":["../../../projects/collection-editor-library/src/lib/collection-editor-library.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,qBAsDa,6BAA6B;yCAA7B,6BAA6B;0CAA7B,6BAA6B;0CAA7B,6BAA6B;CAAG"}
@@ -0,0 +1,72 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ShellService } from '../../services/shell/shell.service';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * "Add New Shell" dialog — Angular counterpart of the content-editor shell-manage `<shell-create>`.
6
+ * Renders the Shell category's create form (text / textarea / keywords, like shell-manage's DynamicForm)
7
+ * and creates a Live shell.
8
+ */
9
+ export declare class ShellCreateComponent implements OnInit, AfterViewInit, OnDestroy {
10
+ private shellService;
11
+ private elementRef;
12
+ created: EventEmitter<any>;
13
+ closed: EventEmitter<void>;
14
+ sections: {
15
+ name?: string;
16
+ fields: any[];
17
+ }[];
18
+ values: any;
19
+ errors: {
20
+ [code: string]: string;
21
+ };
22
+ touched: {
23
+ [code: string]: boolean;
24
+ };
25
+ keywordInput: {
26
+ [code: string]: string;
27
+ };
28
+ focusedField: string;
29
+ isLoading: boolean;
30
+ loadError: string;
31
+ submitError: string;
32
+ isSubmitting: boolean;
33
+ private previousBodyOverflow;
34
+ private onComponentDestroy$;
35
+ constructor(shellService: ShellService, elementRef: ElementRef);
36
+ ngOnInit(): void;
37
+ ngAfterViewInit(): void;
38
+ loadForm(): void;
39
+ get allFields(): any[];
40
+ inputId(field: any): string;
41
+ label(field: any): any;
42
+ isRequired(field: any): any;
43
+ isDisabled(field: any): boolean;
44
+ isKeywords(field: any): boolean;
45
+ hasValue(field: any): boolean;
46
+ isFloating(field: any): boolean;
47
+ errorFor(field: any): string;
48
+ placeholderFor(field: any): any;
49
+ focusInput(field: any): void;
50
+ private focusFirstField;
51
+ onFocus(field: any): void;
52
+ onBlur(field: any): void;
53
+ onInput(field: any, value: string): void;
54
+ onKeywordInput(field: any, text: string): void;
55
+ onKeywordKeydown(field: any, event: KeyboardEvent): void;
56
+ removeKeyword(field: any, index: number): void;
57
+ private commitKeywordInput;
58
+ private addKeywords;
59
+ private validate;
60
+ get isValid(): boolean;
61
+ private isEmpty;
62
+ private emptyValue;
63
+ create(): void;
64
+ close(): void;
65
+ onEscape(): void;
66
+ trackByCode(index: number, field: any): any;
67
+ private errorMessage;
68
+ ngOnDestroy(): void;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShellCreateComponent, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShellCreateComponent, "lib-shell-create", never, {}, { "created": "created"; "closed": "closed"; }, never, never, false, never>;
71
+ }
72
+ //# sourceMappingURL=shell-create.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-create.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/shell-create/shell-create.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,YAAY,EAAgB,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAI5H,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;;AAElE;;;;GAIG;AACH,qBAKa,oBAAqB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IAkB/D,OAAO,CAAC,YAAY;IAAgB,OAAO,CAAC,UAAU;IAhBxD,OAAO,oBAA2B;IAClC,MAAM,qBAA4B;IAErC,QAAQ,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,EAAE,CAAA;KAAE,EAAE,CAAC;IAC7C,MAAM,EAAE,GAAG,CAAM;IACjB,MAAM,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAM;IACxC,OAAO,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAM;IAC1C,YAAY,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAM;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,UAAQ;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,UAAS;IAC5B,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,mBAAmB,CAAuB;gBAE9B,YAAY,EAAE,YAAY,EAAU,UAAU,EAAE,UAAU;IAE9E,QAAQ;IAKR,eAAe;IAMf,QAAQ;IAuBR,IAAI,SAAS,IAAI,GAAG,EAAE,CAErB;IAID,OAAO,CAAC,KAAK,KAAA;IAIb,KAAK,CAAC,KAAK,KAAA;IAIX,UAAU,CAAC,KAAK,KAAA;IAIhB,UAAU,CAAC,KAAK,KAAA;IAIhB,UAAU,CAAC,KAAK,KAAA;IAIhB,QAAQ,CAAC,KAAK,KAAA;IAMd,UAAU,CAAC,KAAK,KAAA;IAIhB,QAAQ,CAAC,KAAK,KAAA;IAId,cAAc,CAAC,KAAK,KAAA;IAUpB,UAAU,CAAC,KAAK,KAAA;IAOhB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,KAAK,KAAA;IAIb,MAAM,CAAC,KAAK,KAAA;IAWZ,OAAO,CAAC,KAAK,KAAA,EAAE,KAAK,EAAE,MAAM;IAQ5B,cAAc,CAAC,KAAK,KAAA,EAAE,IAAI,EAAE,MAAM;IAUlC,gBAAgB,CAAC,KAAK,KAAA,EAAE,KAAK,EAAE,aAAa;IAU5C,aAAa,CAAC,KAAK,KAAA,EAAE,KAAK,EAAE,MAAM;IAUlC,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,QAAQ;IAmBhB,IAAI,OAAO,IAAI,OAAO,CAOrB;IAED,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,UAAU;IASlB,MAAM;IAgCN,KAAK;IAOL,QAAQ;IAIR,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAIrC,OAAO,CAAC,YAAY;IAIpB,WAAW;yCAjSA,oBAAoB;2CAApB,oBAAoB;CA2ShC"}
@@ -1,9 +1,11 @@
1
1
  import { ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { UntypedFormControl } from '@angular/forms';
3
3
  import { ShellService } from '../../services/shell/shell.service';
4
+ import { ToasterService } from '../../services/toaster/toaster.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class ShellFieldComponent implements OnInit, OnChanges, OnDestroy {
6
7
  private shellService;
8
+ private toasterService;
7
9
  private elementRef;
8
10
  private ngZone;
9
11
  field: any;
@@ -20,12 +22,14 @@ export declare class ShellFieldComponent implements OnInit, OnChanges, OnDestroy
20
22
  searchText: string;
21
23
  isOpen: boolean;
22
24
  isLoading: boolean;
25
+ showCreate: boolean;
26
+ private newShellIds;
23
27
  private searchInput$;
24
28
  private page$;
25
29
  private onComponentDestroy$;
26
30
  private selectedShellSubscription;
27
31
  private reposition;
28
- constructor(shellService: ShellService, elementRef: ElementRef, ngZone: NgZone);
32
+ constructor(shellService: ShellService, toasterService: ToasterService, elementRef: ElementRef, ngZone: NgZone);
29
33
  ngOnInit(): void;
30
34
  ngOnChanges(changes: SimpleChanges): void;
31
35
  get shellId(): string;
@@ -38,6 +42,9 @@ export declare class ShellFieldComponent implements OnInit, OnChanges, OnDestroy
38
42
  open(): void;
39
43
  updatePanelPosition(): void;
40
44
  selectShell(shell: any): void;
45
+ openCreate(): void;
46
+ onShellCreated(shell: any): void;
47
+ isNewShell(shell: any): boolean;
41
48
  clearSelection(event: Event): void;
42
49
  close(): void;
43
50
  onDocumentClick(event: Event): void;
@@ -1 +1 @@
1
- {"version":3,"file":"shell-field.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/shell-field/shell-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAuB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAC3I,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIpD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;;AAElE,qBAKa,mBAAoB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAuB1D,OAAO,CAAC,YAAY;IAAgB,OAAO,CAAC,UAAU;IAAc,OAAO,CAAC,MAAM;IAtBrF,KAAK,EAAE,GAAG,CAAC;IAEX,cAAc,EAAE,kBAAkB,CAAC;IACnC,QAAQ,UAAS;IACJ,UAAU,EAAE,UAAU,CAAC;IAE7C,SAAgB,QAAQ,KAAK;IAC7B,SAAgB,cAAc,OAAO;IAC9B,UAAU,EAAE,GAAG,CAAM;IACrB,MAAM,UAAS;IACf,MAAM,EAAE,GAAG,EAAE,CAAM;IACnB,UAAU,SAAK;IACf,aAAa,EAAE,GAAG,CAAC;IACnB,UAAU,SAAM;IAChB,MAAM,UAAS;IACf,SAAS,UAAS;IACzB,OAAO,CAAC,YAAY,CAAyB;IAC7C,OAAO,CAAC,KAAK,CAAoD;IACjE,OAAO,CAAC,mBAAmB,CAAuB;IAClD,OAAO,CAAC,yBAAyB,CAAe;IAChD,OAAO,CAAC,UAAU,CAA2D;gBAEzD,YAAY,EAAE,YAAY,EAAU,UAAU,EAAE,UAAU,EAAU,MAAM,EAAE,MAAM;IAEtG,QAAQ;IA4BR,WAAW,CAAC,OAAO,EAAE,aAAa;IAOlC,IAAI,OAAO,IAAI,MAAM,CAEpB;IAGD,iBAAiB;IA6BjB,aAAa;IAKb,IAAI,aAAa,UAKhB;IAED,IAAI,OAAO,YAEV;IAED,QAAQ;IAOR,QAAQ,CAAC,IAAI,EAAE,MAAM;IAMrB,IAAI;IAYJ,mBAAmB;IAkBnB,WAAW,CAAC,KAAK,EAAE,GAAG;IAQtB,cAAc,CAAC,KAAK,EAAE,KAAK;IAS3B,KAAK;IAUL,eAAe,CAAC,KAAK,EAAE,KAAK;IAM5B,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAI3C,uBAAuB;IAKvB,WAAW;yCAnMA,mBAAmB;2CAAnB,mBAAmB;CAwM/B"}
1
+ {"version":3,"file":"shell-field.component.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/components/shell-field/shell-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAuB,M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;IAOR,QAAQ,CAAC,IAAI,EAAE,MAAM;IAMrB,IAAI;IAYJ,mBAAmB;IAkBnB,WAAW,CAAC,KAAK,EAAE,GAAG;IAQtB,UAAU;IASV,cAAc,CAAC,KAAK,EAAE,GAAG;IASzB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAI/B,cAAc,CAAC,KAAK,EAAE,KAAK;IAS3B,KAAK;IAUL,eAAe,CAAC,KAAK,EAAE,KAAK;IAM5B,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAI3C,uBAAuB;IAKvB,WAAW;yCA7NA,mBAAmB;2CAAnB,mBAAmB;CAkO/B"}
@@ -1,13 +1,26 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
+ import { EditorService } from '../editor/editor.service';
4
+ import { PublicDataService } from '../public-data/public-data.service';
5
+ import { ConfigService } from '../config/config.service';
3
6
  import * as i0 from "@angular/core";
4
7
  export interface ShellSearchResult {
5
8
  count: number;
6
9
  content: any[];
7
10
  }
11
+ export interface ShellCreateResult {
12
+ identifier: string;
13
+ versionKey: string;
14
+ }
8
15
  export declare class ShellService {
9
16
  private httpClient;
10
- constructor(httpClient: HttpClient);
17
+ private editorService;
18
+ private publicDataService;
19
+ private configService;
20
+ constructor(httpClient: HttpClient, editorService: EditorService, publicDataService: PublicDataService, configService: ConfigService);
21
+ private get channel();
22
+ private get framework();
23
+ private get tenantHeader();
11
24
  /**
12
25
  * Search Live shells of the current channel.
13
26
  * identifier -> exact lookup, query -> name search, neither -> plain paginated list
@@ -18,6 +31,10 @@ export declare class ShellService {
18
31
  limit?: number;
19
32
  offset?: number;
20
33
  }): Observable<ShellSearchResult>;
34
+ /** Create form of the Shell category (forms.create.properties), in sb-dynamic-form section format. */
35
+ getCreateForm(): Observable<any[]>;
36
+ /** Creates a Live shell — same payload as the content-editor shell-manage `createShell`. */
37
+ create(values: any): Observable<ShellCreateResult>;
21
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ShellService, never>;
22
39
  static ɵprov: i0.ɵɵInjectableDeclaration<ShellService>;
23
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"shell.service.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/services/shell/shell.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;;AAItC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,GAAG,EAAE,CAAC;CAChB;AAED,qBAGa,YAAY;IACX,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE1C;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC;yCAP7G,YAAY;6CAAZ,YAAY;CA4CxB"}
1
+ {"version":3,"file":"shell.service.d.ts","sourceRoot":"","sources":["../../../../../projects/collection-editor-library/src/lib/services/shell/shell.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAkB,MAAM,MAAM,CAAC;AAIlD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;;AAEzD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,GAAG,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE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