@candy-kingdom/bonnie-cms 0.9.0 → 0.11.0

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.
@@ -3,29 +3,30 @@ import * as i1 from "./forms/translation-form/translation-form.component";
3
3
  import * as i2 from "./forms/text-form/text-form.component";
4
4
  import * as i3 from "./forms/seo-form/seo-form.component";
5
5
  import * as i4 from "./forms/svg-form/svg-form.component";
6
- import * as i5 from "./forms/file-form/file-form.component";
7
- import * as i6 from "./forms/lottie-form/lottie-form.component";
8
- import * as i7 from "./forms/unknown-form/unknown-form.component";
9
- import * as i8 from "./translation-input/translation-input.component";
10
- import * as i9 from "./translation-textarea/translation-textarea.component";
11
- import * as i10 from "./admin-controls/admin-controls.component";
12
- import * as i11 from "./core-components/editable-group";
13
- import * as i12 from "./form-controls/form-controls.component";
14
- import * as i13 from "./skeleton-editor/skeleton-editor.component";
15
- import * as i14 from "./skeleton-editor/skeleton-editor-anchor.directive";
16
- import * as i15 from "./skeleton-editor/bone-editor-container/bone-editor-container.component";
17
- import * as i16 from "./bone-editors/unknown-bone-editor/unknown-bone-editor.component";
18
- import * as i17 from "./media-uploader/media-uploader.component";
19
- import * as i18 from "./file-uploader/file-uploader.component";
20
- import * as i19 from "./core-components/link-popup/link-popup.component";
21
- import * as i20 from "@angular/common";
22
- import * as i21 from "@angular/forms";
23
- import * as i22 from "@angular/cdk/text-field";
24
- import * as i23 from "@candy-kingdom/bonnie";
25
- import * as i24 from "ngx-lottie";
26
- import * as i25 from "./core-components/editable.directive";
6
+ import * as i5 from "./forms/one-image-form/one-image-form.component";
7
+ import * as i6 from "./forms/file-form/file-form.component";
8
+ import * as i7 from "./forms/lottie-form/lottie-form.component";
9
+ import * as i8 from "./forms/unknown-form/unknown-form.component";
10
+ import * as i9 from "./translation-input/translation-input.component";
11
+ import * as i10 from "./translation-textarea/translation-textarea.component";
12
+ import * as i11 from "./admin-controls/admin-controls.component";
13
+ import * as i12 from "./core-components/editable-group";
14
+ import * as i13 from "./form-controls/form-controls.component";
15
+ import * as i14 from "./skeleton-editor/skeleton-editor.component";
16
+ import * as i15 from "./skeleton-editor/skeleton-editor-anchor.directive";
17
+ import * as i16 from "./skeleton-editor/bone-editor-container/bone-editor-container.component";
18
+ import * as i17 from "./bone-editors/unknown-bone-editor/unknown-bone-editor.component";
19
+ import * as i18 from "./media-uploader/media-uploader.component";
20
+ import * as i19 from "./file-uploader/file-uploader.component";
21
+ import * as i20 from "./core-components/link-popup/link-popup.component";
22
+ import * as i21 from "@angular/common";
23
+ import * as i22 from "@angular/forms";
24
+ import * as i23 from "@angular/cdk/text-field";
25
+ import * as i24 from "@candy-kingdom/bonnie";
26
+ import * as i25 from "ngx-lottie";
27
+ import * as i26 from "./core-components/editable.directive";
27
28
  export declare class BonnieCmsModule {
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BonnieCmsModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<BonnieCmsModule, [typeof i1.TranslationFormComponent, typeof i2.TextFormComponent, typeof i3.SeoFormComponent, typeof i4.SvgFormComponent, typeof i5.FileFormComponent, typeof i6.LottieFormComponent, typeof i7.UnknownFormComponent, typeof i8.TranslationInputComponent, typeof i9.TranslationTextareaComponent, typeof i10.AdminControlsComponent, typeof i11.EditableGroupComponent, typeof i12.FormControlsComponent, typeof i13.SkeletonEditorComponent, typeof i14.SkeletonEditorAnchorDirective, typeof i15.BoneEditorContainerComponent, typeof i16.UnknownBoneEditorComponent, typeof i17.MediaUploaderComponent, typeof i18.FileUploaderComponent, typeof i19.LinkPopupComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.CdkTextareaAutosize, typeof i23.BonnieModule, typeof i24.LottieComponent, typeof i25.EditableDirective], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i23.BonnieModule, typeof i6.LottieFormComponent, typeof i1.TranslationFormComponent, typeof i2.TextFormComponent, typeof i3.SeoFormComponent, typeof i4.SvgFormComponent, typeof i5.FileFormComponent, typeof i6.LottieFormComponent, typeof i7.UnknownFormComponent, typeof i8.TranslationInputComponent, typeof i9.TranslationTextareaComponent, typeof i10.AdminControlsComponent, typeof i11.EditableGroupComponent, typeof i12.FormControlsComponent, typeof i13.SkeletonEditorComponent, typeof i14.SkeletonEditorAnchorDirective, typeof i15.BoneEditorContainerComponent, typeof i16.UnknownBoneEditorComponent, typeof i17.MediaUploaderComponent, typeof i18.FileUploaderComponent, typeof i19.LinkPopupComponent, typeof i25.EditableDirective]>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BonnieCmsModule, [typeof i1.TranslationFormComponent, typeof i2.TextFormComponent, typeof i3.SeoFormComponent, typeof i4.SvgFormComponent, typeof i5.OneImageFormComponent, typeof i6.FileFormComponent, typeof i7.LottieFormComponent, typeof i8.UnknownFormComponent, typeof i9.TranslationInputComponent, typeof i10.TranslationTextareaComponent, typeof i11.AdminControlsComponent, typeof i12.EditableGroupComponent, typeof i13.FormControlsComponent, typeof i14.SkeletonEditorComponent, typeof i15.SkeletonEditorAnchorDirective, typeof i16.BoneEditorContainerComponent, typeof i17.UnknownBoneEditorComponent, typeof i18.MediaUploaderComponent, typeof i19.FileUploaderComponent, typeof i20.LinkPopupComponent], [typeof i21.CommonModule, typeof i22.FormsModule, typeof i23.CdkTextareaAutosize, typeof i24.BonnieModule, typeof i25.LottieComponent, typeof i26.EditableDirective], [typeof i21.CommonModule, typeof i22.FormsModule, typeof i24.BonnieModule, typeof i7.LottieFormComponent, typeof i1.TranslationFormComponent, typeof i2.TextFormComponent, typeof i3.SeoFormComponent, typeof i4.SvgFormComponent, typeof i5.OneImageFormComponent, typeof i6.FileFormComponent, typeof i7.LottieFormComponent, typeof i8.UnknownFormComponent, typeof i9.TranslationInputComponent, typeof i10.TranslationTextareaComponent, typeof i11.AdminControlsComponent, typeof i12.EditableGroupComponent, typeof i13.FormControlsComponent, typeof i14.SkeletonEditorComponent, typeof i15.SkeletonEditorAnchorDirective, typeof i16.BoneEditorContainerComponent, typeof i17.UnknownBoneEditorComponent, typeof i18.MediaUploaderComponent, typeof i19.FileUploaderComponent, typeof i20.LinkPopupComponent, typeof i26.EditableDirective]>;
30
31
  static ɵinj: i0.ɵɵInjectorDeclaration<BonnieCmsModule>;
31
32
  }
@@ -1,5 +1,6 @@
1
1
  export * from './seo-form';
2
2
  export * from './svg-form';
3
+ export * from './one-image-form';
3
4
  export * from './file-form';
4
5
  export * from './text-form';
5
6
  export * from './lottie-form';
@@ -0,0 +1 @@
1
+ export * from './one-image-form.component';
@@ -0,0 +1,23 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FileMeta, FileSrc, ImageMeta } from '@candy-kingdom/bonnie';
3
+ import { FormBaseComponent } from '../../core-components/form-base.component';
4
+ import { EditableDirective } from '../../core-components/editable.directive';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../core-components/editable.directive";
7
+ export declare class OneImageFormComponent extends FormBaseComponent<FileSrc<ImageMeta>> implements OnInit {
8
+ private readonly cd;
9
+ uploadMap: Map<string, string>;
10
+ private _mimeTypes;
11
+ private _uploadUrl;
12
+ private _label;
13
+ constructor(editable: EditableDirective<FileSrc<ImageMeta>>);
14
+ ngOnInit(): void;
15
+ set label(newValue: string);
16
+ get label(): string;
17
+ set uploadUrl(newValue: string);
18
+ set mimeTypes(newValue: string[]);
19
+ get mimeTypes(): string[];
20
+ onFileUploaded(fileSrc: FileSrc<FileMeta>): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<OneImageFormComponent, [{ host: true; }]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<OneImageFormComponent, "bonc-one-image-form", never, { "label": { "alias": "label"; "required": false; }; "uploadUrl": { "alias": "uploadUrl"; "required": false; }; "mimeTypes": { "alias": "mimeTypes"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
23
+ }
@@ -4,6 +4,8 @@ import { FormBaseComponent } from '../../core-components';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "../../core-components/editable.directive";
6
6
  export declare class SeoFormComponent extends FormBaseComponent<OpenGraphData> implements OnInit {
7
+ readonly imageWidth = 1200;
8
+ readonly imageHeight = 630;
7
9
  private _pageId;
8
10
  ogImageUploadUrl: string;
9
11
  label: string;
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormBaseComponent } from '../../core-components/form-base.component';
3
- import { EditableDirective } from '../../core-components';
4
2
  import { FileMeta, FileSrc, SvgMeta } from '@candy-kingdom/bonnie';
3
+ import { FormBaseComponent } from '../../core-components/form-base.component';
4
+ import { EditableDirective } from '../../core-components/editable.directive';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "../../core-components/editable.directive";
7
7
  export declare class SvgFormComponent extends FormBaseComponent<FileSrc<SvgMeta>> implements OnInit {
@@ -3,14 +3,15 @@
3
3
  * Any changes made to this file can be lost when this file is regenerated.
4
4
  */
5
5
  export * from './file-setting-data';
6
- export * from './i-equatable';
7
- export * from './i-setting';
8
- export * from './localized-text-setting-data';
6
+ export * from './setting-group';
7
+ export * from './text-setting-data';
8
+ export * from './one-image-setting-data';
9
9
  export * from './lottie-setting-data';
10
+ export * from './i-equatable';
10
11
  export * from './setting-base';
12
+ export * from './svg-setting-data';
11
13
  export * from './setting-data';
12
- export * from './setting-group';
13
14
  export * from './setting';
14
- export * from './svg-setting-data';
15
- export * from './text-setting-data';
16
15
  export * from './text-setting-type';
16
+ export * from './i-setting';
17
+ export * from './localized-text-setting-data';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This is a TypeGen auto-generated file.
3
+ * Any changes made to this file can be lost when this file is regenerated.
4
+ */
5
+ import { SettingData } from "./setting-data";
6
+ import { FileFormat } from "@candy-kingdom/bonnie";
7
+ import { FileSrcImageMeta } from "@candy-kingdom/bonnie";
8
+ export interface OneImageSettingData extends SettingData {
9
+ width: number;
10
+ height: number;
11
+ format: FileFormat;
12
+ allowedMimeTypes: string[];
13
+ src: FileSrcImageMeta;
14
+ }
@@ -4,5 +4,6 @@
4
4
  */
5
5
  export interface SettingBase {
6
6
  id: string;
7
+ order: number;
7
8
  title: string;
8
9
  }
@@ -5,6 +5,7 @@
5
5
  import { Setting } from "./setting";
6
6
  export interface SettingGroup {
7
7
  id: string;
8
+ order: number;
8
9
  title: string;
9
10
  records: Setting<any>[];
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candy-kingdom/bonnie-cms",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0"