@candy-kingdom/bonnie-cms 0.1.8 → 0.2.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.
- package/esm2022/index.mjs +3 -5
- package/esm2022/lib/bonnie-cms.module.mjs +45 -22
- package/esm2022/lib/core-components/form-base.component.mjs +4 -7
- package/esm2022/lib/file-uploader/file-uploader.component.mjs +118 -0
- package/esm2022/lib/file-uploader/index.mjs +2 -0
- package/esm2022/lib/forms/file-form/file-form.component.mjs +43 -0
- package/esm2022/lib/forms/file-form/index.mjs +2 -0
- package/esm2022/lib/forms/index.mjs +8 -0
- package/esm2022/lib/forms/lottie-form/index.mjs +2 -0
- package/esm2022/lib/forms/lottie-form/lottie-form.component.mjs +45 -0
- package/esm2022/lib/forms/seo-form/index.mjs +2 -0
- package/esm2022/lib/{seo-form → forms/seo-form}/seo-form.component.mjs +6 -6
- package/esm2022/lib/forms/svg-form/index.mjs +2 -0
- package/esm2022/lib/forms/svg-form/svg-form.component.mjs +49 -0
- package/esm2022/lib/forms/text-form/TextInputStyle.mjs +7 -0
- package/esm2022/lib/forms/text-form/index.mjs +3 -0
- package/esm2022/lib/forms/text-form/text-form.component.mjs +33 -0
- package/esm2022/lib/forms/translation-form/index.mjs +2 -0
- package/esm2022/lib/forms/translation-form/translation-form.component.mjs +32 -0
- package/esm2022/lib/forms/unknown-form/index.mjs +2 -0
- package/esm2022/lib/forms/unknown-form/unknown-form.component.mjs +23 -0
- package/esm2022/lib/generated/file-setting-data.mjs +6 -0
- package/esm2022/lib/generated/i-setting.mjs +1 -1
- package/esm2022/lib/generated/index.mjs +4 -1
- package/esm2022/lib/generated/lottie-setting-data.mjs +6 -0
- package/esm2022/lib/generated/svg-setting-data.mjs +6 -0
- package/esm2022/lib/media-uploader/media-uploader.component.mjs +3 -3
- package/esm2022/lib/translation-textarea/translation-textarea.component.mjs +1 -1
- package/fesm2022/candy-kingdom-bonnie-cms.mjs +528 -273
- package/fesm2022/candy-kingdom-bonnie-cms.mjs.map +1 -1
- package/index.d.ts +2 -4
- package/lib/bonnie-cms.module.d.ts +26 -21
- package/lib/core-components/form-base.component.d.ts +3 -5
- package/lib/file-uploader/file-uploader.component.d.ts +32 -0
- package/lib/file-uploader/index.d.ts +1 -0
- package/lib/forms/file-form/file-form.component.d.ts +14 -0
- package/lib/forms/file-form/index.d.ts +1 -0
- package/lib/forms/index.d.ts +7 -0
- package/lib/forms/lottie-form/index.d.ts +1 -0
- package/lib/forms/lottie-form/lottie-form.component.d.ts +16 -0
- package/lib/{seo-form → forms/seo-form}/seo-form.component.d.ts +2 -2
- package/lib/forms/svg-form/index.d.ts +1 -0
- package/lib/forms/svg-form/svg-form.component.d.ts +19 -0
- package/lib/{text-form → forms/text-form}/text-form.component.d.ts +3 -3
- package/lib/{translation-form → forms/translation-form}/translation-form.component.d.ts +4 -4
- package/lib/{unknown-form → forms/unknown-form}/unknown-form.component.d.ts +2 -2
- package/lib/generated/file-setting-data.d.ts +10 -0
- package/lib/generated/i-setting.d.ts +2 -0
- package/lib/generated/index.d.ts +3 -0
- package/lib/generated/lottie-setting-data.d.ts +9 -0
- package/lib/generated/svg-setting-data.d.ts +9 -0
- package/package.json +1 -1
- package/esm2022/lib/seo-form/index.mjs +0 -2
- package/esm2022/lib/text-form/TextInputStyle.mjs +0 -7
- package/esm2022/lib/text-form/index.mjs +0 -3
- package/esm2022/lib/text-form/text-form.component.mjs +0 -33
- package/esm2022/lib/translation-form/index.mjs +0 -2
- package/esm2022/lib/translation-form/translation-form.component.mjs +0 -32
- package/esm2022/lib/unknown-form/index.mjs +0 -2
- package/esm2022/lib/unknown-form/unknown-form.component.mjs +0 -23
- /package/lib/{seo-form → forms/seo-form}/index.d.ts +0 -0
- /package/lib/{text-form → forms/text-form}/TextInputStyle.d.ts +0 -0
- /package/lib/{text-form → forms/text-form}/index.d.ts +0 -0
- /package/lib/{translation-form → forms/translation-form}/index.d.ts +0 -0
- /package/lib/{unknown-form → forms/unknown-form}/index.d.ts +0 -0
package/index.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
export * from './lib/generated';
|
|
2
2
|
export * from './lib/core';
|
|
3
|
+
export * from './lib/forms';
|
|
3
4
|
export * from './lib/services';
|
|
4
5
|
export * from './lib/core-components';
|
|
5
6
|
export * from './lib/admin-controls';
|
|
6
7
|
export * from './lib/form-controls';
|
|
8
|
+
export * from './lib/file-uploader';
|
|
7
9
|
export * from './lib/media-uploader';
|
|
8
|
-
export * from './lib/text-form';
|
|
9
|
-
export * from './lib/seo-form';
|
|
10
|
-
export * from './lib/unknown-form';
|
|
11
|
-
export * from './lib/translation-form';
|
|
12
10
|
export * from './lib/translation-input';
|
|
13
11
|
export * from './lib/translation-textarea';
|
|
14
12
|
export * from './lib/skeleton-editor';
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./translation-
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./form-
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
2
|
+
import * as i1 from "./forms/translation-form/translation-form.component";
|
|
3
|
+
import * as i2 from "./forms/text-form/text-form.component";
|
|
4
|
+
import * as i3 from "./forms/seo-form/seo-form.component";
|
|
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";
|
|
22
27
|
export declare class BonnieCmsModule {
|
|
23
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<BonnieCmsModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BonnieCmsModule, [typeof i1.
|
|
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]>;
|
|
25
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<BonnieCmsModule>;
|
|
26
31
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { EditableDirective } from './editable.directive';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare abstract class FormBaseComponent<TData = unknown> {
|
|
5
|
-
editable: EditableDirective<TData>;
|
|
6
|
-
readonly http: HttpClient;
|
|
4
|
+
readonly editable: EditableDirective<TData>;
|
|
7
5
|
static readonly inputs: string[];
|
|
8
6
|
protected name: string;
|
|
9
7
|
private _locale;
|
|
10
|
-
constructor(editable: EditableDirective<TData
|
|
8
|
+
constructor(editable: EditableDirective<TData>);
|
|
11
9
|
set locale(value: string);
|
|
12
10
|
get locale(): string;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormBaseComponent<any>, [{ host: true; }
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBaseComponent<any>, [{ host: true; }]>;
|
|
14
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormBaseComponent<any>, "ng-component", never, { "locale": { "alias": "locale"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
13
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { FileMeta, FileSrc } from '@candy-kingdom/bonnie';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FileUploaderComponent {
|
|
7
|
+
private sanitizer;
|
|
8
|
+
private http;
|
|
9
|
+
private readonly cd;
|
|
10
|
+
fileInput: ElementRef<HTMLInputElement>;
|
|
11
|
+
srcChange: EventEmitter<FileSrc<FileMeta>>;
|
|
12
|
+
uploadUrlMap: ReadonlyMap<string, string>;
|
|
13
|
+
progress: number;
|
|
14
|
+
isUploading: boolean;
|
|
15
|
+
autoplay: boolean;
|
|
16
|
+
clipStyle?: SafeStyle;
|
|
17
|
+
fileTypeMask?: string;
|
|
18
|
+
private _uploadTypes;
|
|
19
|
+
private _src?;
|
|
20
|
+
constructor(sanitizer: DomSanitizer, http: HttpClient, cd: ChangeDetectorRef);
|
|
21
|
+
set src(newSrc: FileSrc<FileMeta> | undefined);
|
|
22
|
+
get src(): FileSrc<FileMeta> | undefined;
|
|
23
|
+
set uploadTypes(newUploadType: string[]);
|
|
24
|
+
get uploadTypes(): string[];
|
|
25
|
+
onFileSelect(fileInput: HTMLInputElement): void;
|
|
26
|
+
selectFile(event: Event): void;
|
|
27
|
+
private getEventMessage;
|
|
28
|
+
private updateClip;
|
|
29
|
+
private handleError;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploaderComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploaderComponent, "bonc-file-uploader", never, { "uploadUrlMap": { "alias": "uploadUrlMap"; "required": true; }; "src": { "alias": "src"; "required": false; }; "uploadTypes": { "alias": "uploadTypes"; "required": false; }; }, { "srcChange": "srcChange"; }, never, ["*"], false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file-uploader.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBaseComponent } from '../../core-components/form-base.component';
|
|
3
|
+
import { FileMeta, FileSrc } from '@candy-kingdom/bonnie';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../core-components/editable.directive";
|
|
6
|
+
export declare class FileFormComponent extends FormBaseComponent<FileSrc<FileMeta>> implements OnInit {
|
|
7
|
+
label: string;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
uploadTypes: string[];
|
|
10
|
+
uploadMap: Map<string, string>;
|
|
11
|
+
onFileUploaded(fileSrc: FileSrc<FileMeta>): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileFormComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileFormComponent, "bonc-file-form", never, { "label": { "alias": "label"; "required": false; }; "uploadTypes": { "alias": "uploadTypes"; "required": true; }; "uploadMap": { "alias": "uploadMap"; "required": true; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file-form.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lottie-form.component';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FileMeta, FileSrc } from '@candy-kingdom/bonnie';
|
|
3
|
+
import { FormBaseComponent } from '../../core-components/form-base.component';
|
|
4
|
+
import { AnimationOptions } from 'ngx-lottie';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../core-components/editable.directive";
|
|
7
|
+
export declare class LottieFormComponent extends FormBaseComponent<FileSrc<FileMeta>> implements OnInit {
|
|
8
|
+
readonly LottieMimeType = "application/json";
|
|
9
|
+
animOptions?: AnimationOptions;
|
|
10
|
+
label: string;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
uploadMap: Map<string, string>;
|
|
13
|
+
onFileUploaded(fileSrc: FileSrc<FileMeta>): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LottieFormComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LottieFormComponent, "bonc-lottie-form", never, { "label": { "alias": "label"; "required": false; }; "uploadMap": { "alias": "uploadMap"; "required": true; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
|
|
16
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { OpenGraphData } from '@candy-kingdom/bonnie';
|
|
3
|
-
import { FormBaseComponent } from '
|
|
3
|
+
import { FormBaseComponent } from '../../core-components';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "
|
|
5
|
+
import * as i1 from "../../core-components/editable.directive";
|
|
6
6
|
export declare class SeoFormComponent extends FormBaseComponent<OpenGraphData> implements OnInit {
|
|
7
7
|
private _pageId;
|
|
8
8
|
ogImageUploadUrl: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './svg-form.component';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBaseComponent } from '../../core-components/form-base.component';
|
|
3
|
+
import { EditableDirective } from '../../core-components';
|
|
4
|
+
import { FileMeta, FileSrc, SvgMeta } from '@candy-kingdom/bonnie';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../core-components/editable.directive";
|
|
7
|
+
export declare class SvgFormComponent extends FormBaseComponent<FileSrc<SvgMeta>> implements OnInit {
|
|
8
|
+
private readonly cd;
|
|
9
|
+
readonly SvgMime = "image/svg+xml";
|
|
10
|
+
label: string;
|
|
11
|
+
uploadMap: Map<string, string>;
|
|
12
|
+
private _uploadUrl;
|
|
13
|
+
constructor(editable: EditableDirective<FileSrc<SvgMeta>>);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
set uploadUrl(newValue: string);
|
|
16
|
+
onFileUploaded(fileSrc: FileSrc<FileMeta>): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SvgFormComponent, [{ host: true; }]>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SvgFormComponent, "bonc-svg-form", never, { "label": { "alias": "label"; "required": false; }; "uploadUrl": { "alias": "uploadUrl"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
|
|
19
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TextInputStyle } from './TextInputStyle';
|
|
3
|
-
import { FormBaseComponent } from '
|
|
3
|
+
import { FormBaseComponent } from '../../core-components/form-base.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "
|
|
5
|
+
import * as i1 from "../../core-components/editable.directive";
|
|
6
6
|
export declare class TextFormComponent extends FormBaseComponent<string> implements OnInit {
|
|
7
7
|
readonly TextInputStyle: typeof TextInputStyle;
|
|
8
8
|
label: string;
|
|
9
9
|
type: TextInputStyle;
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextFormComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextFormComponent, "bonc-text-form", never, { "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextFormComponent, "bonc-text-form", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
|
|
13
13
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { LocalizedString } from '@candy-kingdom/bonnie';
|
|
3
|
-
import { FormBaseComponent } from '
|
|
4
|
-
import { TextEditorField } from '
|
|
3
|
+
import { FormBaseComponent } from '../../core-components';
|
|
4
|
+
import { TextEditorField } from '../../core';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "
|
|
6
|
+
import * as i1 from "../../core-components/editable.directive";
|
|
7
7
|
export declare class TranslationFormComponent extends FormBaseComponent<LocalizedString> implements OnInit {
|
|
8
8
|
readonly TextEditorField: typeof TextEditorField;
|
|
9
9
|
field: TextEditorField;
|
|
10
10
|
label?: string;
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationFormComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TranslationFormComponent, "bonc-translation-form", never, { "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TranslationFormComponent, "bonc-translation-form", never, { "field": { "alias": "field"; "required": true; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
|
|
14
14
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormBaseComponent } from '
|
|
2
|
+
import { FormBaseComponent } from '../../core-components/form-base.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class UnknownFormComponent extends FormBaseComponent<string> implements OnInit {
|
|
5
5
|
label: string;
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnknownFormComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UnknownFormComponent, "bonc-unknown-form", never, { "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnknownFormComponent, "bonc-unknown-form", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { FileSrcFileMeta } from "@candy-kingdom/bonnie";
|
|
7
|
+
export interface FileSettingData extends SettingData {
|
|
8
|
+
allowedMimeTypes: string[];
|
|
9
|
+
src: FileSrcFileMeta;
|
|
10
|
+
}
|
package/lib/generated/index.d.ts
CHANGED
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
* This is a TypeGen auto-generated file.
|
|
3
3
|
* Any changes made to this file can be lost when this file is regenerated.
|
|
4
4
|
*/
|
|
5
|
+
export * from './file-setting-data';
|
|
5
6
|
export * from './i-equatable';
|
|
6
7
|
export * from './i-setting';
|
|
7
8
|
export * from './localized-text-setting-data';
|
|
9
|
+
export * from './lottie-setting-data';
|
|
8
10
|
export * from './setting-base';
|
|
9
11
|
export * from './setting-data';
|
|
10
12
|
export * from './setting-group';
|
|
11
13
|
export * from './setting';
|
|
14
|
+
export * from './svg-setting-data';
|
|
12
15
|
export * from './text-setting-data';
|
|
13
16
|
export * from './text-setting-type';
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { FileSrcFileMeta } from "@candy-kingdom/bonnie";
|
|
7
|
+
export interface LottieSettingData extends SettingData {
|
|
8
|
+
src: FileSrcFileMeta;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { FileSrcImageMeta } from "@candy-kingdom/bonnie";
|
|
7
|
+
export interface SvgSettingData extends SettingData {
|
|
8
|
+
src: FileSrcImageMeta;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './seo-form.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Jvbm5pZS1jbXMvc3JjL2xpYi9zZW8tZm9ybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zZW8tZm9ybS5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var TextInputStyle;
|
|
2
|
-
(function (TextInputStyle) {
|
|
3
|
-
TextInputStyle[TextInputStyle["NotSet"] = 0] = "NotSet";
|
|
4
|
-
TextInputStyle[TextInputStyle["SingleLine"] = 1] = "SingleLine";
|
|
5
|
-
TextInputStyle[TextInputStyle["MultiLine"] = 2] = "MultiLine";
|
|
6
|
-
})(TextInputStyle || (TextInputStyle = {}));
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGV4dElucHV0U3R5bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Jvbm5pZS1jbXMvc3JjL2xpYi90ZXh0LWZvcm0vVGV4dElucHV0U3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsTUFBTSxDQUFOLElBQVksY0FJWDtBQUpELFdBQVksY0FBYztJQUN4Qix1REFBVSxDQUFBO0lBQ1YsK0RBQWMsQ0FBQTtJQUNkLDZEQUFhLENBQUE7QUFDZixDQUFDLEVBSlcsY0FBYyxLQUFkLGNBQWMsUUFJekIiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuZXhwb3J0IGVudW0gVGV4dElucHV0U3R5bGUge1xyXG4gIE5vdFNldCA9IDAsXHJcbiAgU2luZ2xlTGluZSA9IDEsXHJcbiAgTXVsdGlMaW5lID0gMlxyXG59XHJcbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './TextInputStyle';
|
|
2
|
-
export * from './text-form.component';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Jvbm5pZS1jbXMvc3JjL2xpYi90ZXh0LWZvcm0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9UZXh0SW5wdXRTdHlsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdGV4dC1mb3JtLmNvbXBvbmVudCc7XHJcbiJdfQ==
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { TextInputStyle } from './TextInputStyle';
|
|
3
|
-
import { FormBaseComponent } from '../core-components/form-base.component';
|
|
4
|
-
import { EditableDirective } from '../core-components';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../core-components/editable.directive";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
import * as i3 from "@angular/forms";
|
|
9
|
-
import * as i4 from "../form-controls/form-controls.component";
|
|
10
|
-
export class TextFormComponent extends FormBaseComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.TextInputStyle = TextInputStyle;
|
|
14
|
-
this.label = '';
|
|
15
|
-
this.type = TextInputStyle.SingleLine;
|
|
16
|
-
}
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
this.editable.externalSaveCall.subscribe(() => {
|
|
19
|
-
this.editable.save();
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TextFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: TextFormComponent, selector: "bonc-text-form", inputs: { locale: "locale", label: "label", type: "type" }, usesInheritance: true, hostDirectives: [{ directive: i1.EditableDirective }], ngImport: i0, template: "<bonc-form-controls [editable]=\"editable\">\r\n <label *ngIf=\"label\">{{label}}</label>\r\n\r\n <input *ngIf=\"editable && type === TextInputStyle.SingleLine\"\r\n [(ngModel)]=\"editable.value\"\r\n (click)=\"editable.startEditing()\"\r\n (keyup)=\"editable.updateDirty()\"\r\n (blur)=\"editable.updateDirty()\" />\r\n\r\n <textarea *ngIf=\"editable && type === TextInputStyle.MultiLine\"\r\n [(ngModel)]=\"editable.value\"\r\n (click)=\"editable.startEditing()\"\r\n (keyup)=\"editable.updateDirty()\"\r\n (blur)=\"editable.updateDirty()\">\r\n </textarea>\r\n</bonc-form-controls>\r\n", styles: [":host{display:block}input,textarea{display:block;width:100%;padding:6px;color:silver;border:1px solid silver;background-color:transparent;box-sizing:border-box;font-size:inherit}input:hover,textarea:hover{border-color:transparent;background-color:#333;cursor:pointer}input:focus,textarea:focus{outline:none;color:#fff;border-color:transparent;background-color:#555}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.FormControlsComponent, selector: "bonc-form-controls", inputs: ["editable"] }] }); }
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TextFormComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: 'bonc-text-form', inputs: FormBaseComponent.inputs, hostDirectives: [EditableDirective], template: "<bonc-form-controls [editable]=\"editable\">\r\n <label *ngIf=\"label\">{{label}}</label>\r\n\r\n <input *ngIf=\"editable && type === TextInputStyle.SingleLine\"\r\n [(ngModel)]=\"editable.value\"\r\n (click)=\"editable.startEditing()\"\r\n (keyup)=\"editable.updateDirty()\"\r\n (blur)=\"editable.updateDirty()\" />\r\n\r\n <textarea *ngIf=\"editable && type === TextInputStyle.MultiLine\"\r\n [(ngModel)]=\"editable.value\"\r\n (click)=\"editable.startEditing()\"\r\n (keyup)=\"editable.updateDirty()\"\r\n (blur)=\"editable.updateDirty()\">\r\n </textarea>\r\n</bonc-form-controls>\r\n", styles: [":host{display:block}input,textarea{display:block;width:100%;padding:6px;color:silver;border:1px solid silver;background-color:transparent;box-sizing:border-box;font-size:inherit}input:hover,textarea:hover{border-color:transparent;background-color:#333;cursor:pointer}input:focus,textarea:focus{outline:none;color:#fff;border-color:transparent;background-color:#555}\n"] }]
|
|
28
|
-
}], propDecorators: { label: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}], type: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}] } });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYm9ubmllLWNtcy9zcmMvbGliL3RleHQtZm9ybS90ZXh0LWZvcm0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9ib25uaWUtY21zL3NyYy9saWIvdGV4dC1mb3JtL3RleHQtZm9ybS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDM0UsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7Ozs7OztBQVN2RCxNQUFNLE9BQU8saUJBQWtCLFNBQVEsaUJBQXlCO0lBUGhFOztRQVFrQixtQkFBYyxHQUFHLGNBQWMsQ0FBQztRQUd6QyxVQUFLLEdBQUcsRUFBRSxDQUFDO1FBR1gsU0FBSSxHQUFHLGNBQWMsQ0FBQyxV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B0eXBlID09PSBUZXh0SW5wdXRTdHlsZS5NdWx0aUxpbmVcIlxyXG4gICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiZWRpdGFibGUudmFsdWVcIlxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJlZGl0YWJsZS5zdGFydEVkaXRpbmcoKVwiXHJcbiAgICAgICAgICAgICAgKGtleXVwKT1cImVkaXRhYmxlLnVwZGF0ZURpcnR5KClcIlxyXG4gICAgICAgICAgICAgIChibHVyKT1cImVkaXRhYmxlLnVwZGF0ZURpcnR5KClcIj5cclxuICAgIDwvdGV4dGFyZWE+XHJcbjwvYm9uYy1mb3JtLWNvbnRyb2xzPlxyXG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './translation-form.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Jvbm5pZS1jbXMvc3JjL2xpYi90cmFuc2xhdGlvbi1mb3JtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsOEJBQThCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RyYW5zbGF0aW9uLWZvcm0uY29tcG9uZW50JztcclxuIl19
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { EditableDirective, FormBaseComponent } from '../core-components';
|
|
3
|
-
import { TextEditorField } from '../core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../core-components/editable.directive";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
import * as i3 from "../translation-input/translation-input.component";
|
|
8
|
-
import * as i4 from "../translation-textarea/translation-textarea.component";
|
|
9
|
-
import * as i5 from "../form-controls/form-controls.component";
|
|
10
|
-
export class TranslationFormComponent extends FormBaseComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.TextEditorField = TextEditorField;
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() {
|
|
16
|
-
this.editable.externalSaveCall.subscribe(() => {
|
|
17
|
-
this.editable.save();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TranslationFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: TranslationFormComponent, selector: "bonc-translation-form", inputs: { locale: "locale", field: "field", label: "label" }, usesInheritance: true, hostDirectives: [{ directive: i1.EditableDirective }], ngImport: i0, template: "<bonc-form-controls *ngIf=\"editable.value\" [editable]=\"editable\">\r\n <label *ngIf=\"label\">{{label}}</label>\r\n\r\n <bonc-translation-input *ngIf=\"field === TextEditorField.Input\"\r\n [text]=\"editable.value\"\r\n [locale]=\"locale\"\r\n (startEditing)=\"editable.startEditing()\"\r\n (changed)=\"editable.updateDirty()\"\r\n (blurred)=\"editable.updateDirty()\">\r\n </bonc-translation-input>\r\n\r\n\r\n <bonc-translation-textarea *ngIf=\"field === TextEditorField.Textarea\"\r\n [text]=\"editable.value\"\r\n [minRows]=\"2\"\r\n [locale]=\"locale\"\r\n (startEditing)=\"editable.startEditing()\"\r\n (changed)=\"editable.updateDirty()\"\r\n (blurred)=\"editable.updateDirty()\">\r\n </bonc-translation-textarea>\r\n</bonc-form-controls>\r\n\r\n<div *ngIf=\"editable.value===undefined\">Editable value canot be undefined</div>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.TranslationInputComponent, selector: "bonc-translation-input", inputs: ["text", "locale", "device"], outputs: ["startEditing", "changed", "blurred"] }, { kind: "component", type: i4.TranslationTextareaComponent, selector: "bonc-translation-textarea", inputs: ["minRows", "maxRows", "text", "locale", "device"], outputs: ["startEditing", "changed", "blurred"] }, { kind: "component", type: i5.FormControlsComponent, selector: "bonc-form-controls", inputs: ["editable"] }] }); }
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TranslationFormComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{ selector: 'bonc-translation-form', inputs: FormBaseComponent.inputs, hostDirectives: [EditableDirective], template: "<bonc-form-controls *ngIf=\"editable.value\" [editable]=\"editable\">\r\n <label *ngIf=\"label\">{{label}}</label>\r\n\r\n <bonc-translation-input *ngIf=\"field === TextEditorField.Input\"\r\n [text]=\"editable.value\"\r\n [locale]=\"locale\"\r\n (startEditing)=\"editable.startEditing()\"\r\n (changed)=\"editable.updateDirty()\"\r\n (blurred)=\"editable.updateDirty()\">\r\n </bonc-translation-input>\r\n\r\n\r\n <bonc-translation-textarea *ngIf=\"field === TextEditorField.Textarea\"\r\n [text]=\"editable.value\"\r\n [minRows]=\"2\"\r\n [locale]=\"locale\"\r\n (startEditing)=\"editable.startEditing()\"\r\n (changed)=\"editable.updateDirty()\"\r\n (blurred)=\"editable.updateDirty()\">\r\n </bonc-translation-textarea>\r\n</bonc-form-controls>\r\n\r\n<div *ngIf=\"editable.value===undefined\">Editable value canot be undefined</div>\r\n", styles: [":host{display:block}\n"] }]
|
|
26
|
-
}], propDecorators: { field: [{
|
|
27
|
-
type: Input,
|
|
28
|
-
args: [{ required: true }]
|
|
29
|
-
}], label: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}] } });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNsYXRpb24tZm9ybS5jb21wb25lbnQuanMiLCJzb3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xyXG5cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0aGlzLmVkaXRhYmxlLmV4dGVybmFsU2F2ZUNhbGwuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgdGhpcy5lZGl0YWJsZS5zYXZlKCk7XHJcbiAgICB9KTtcclxuICB9XHJcbn1cclxuIiwiPGJvbmMtZm9ybS1jb250cm9scyAqbmdJZj1cImVkaXRhYmxlLnZhbHVlXCIgW2VkaXRhYmxlXT1cImVkaXRhYmxlXCI+XHJcbiAgPGxhYmVsICpuZ0lmPVwibGFiZWxcIj57e2xhYmVsfX08L2xhYmVsPlxyXG5cclxuICA8Ym9uYy10cmFuc2xhdGlvbi1pbnB1dCAqbmdJZj1cImZpZWxkID09PSBUZXh0RWRpdG9yRmllbGQuSW5wdXRcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFt0ZXh0XT1cImVkaXRhYmxlLnZhbHVlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICBbbG9jYWxlXT1cImxvY2FsZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKHN0YXJ0RWRpdGluZyk9XCJlZGl0YWJsZS5zdGFydEVkaXRpbmcoKVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKGNoYW5nZWQpPVwiZWRpdGFibGUudXBkYXRlRGlydHkoKVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKGJsdXJyZWQpPVwiZWRpdGFibGUudXBkYXRlRGlydHkoKVwiPlxyXG4gIDwvYm9uYy10cmFuc2xhdGlvbi1pbnB1dD5cclxuXHJcblxyXG4gIDxib25jLXRyYW5zbGF0aW9uLXRleHRhcmVhICpuZ0lmPVwiZmllbGQgPT09IFRleHRFZGl0b3JGaWVsZC5UZXh0YXJlYVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RleHRdPVwiZWRpdGFibGUudmFsdWVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFttaW5Sb3dzXT1cIjJcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtsb2NhbGVdPVwibG9jYWxlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc3RhcnRFZGl0aW5nKT1cImVkaXRhYmxlLnN0YXJ0RWRpdGluZygpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2hhbmdlZCk9XCJlZGl0YWJsZS51cGRhdGVEaXJ0eSgpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoYmx1cnJlZCk9XCJlZGl0YWJsZS51cGRhdGVEaXJ0eSgpXCI+XHJcbiAgPC9ib25jLXRyYW5zbGF0aW9uLXRleHRhcmVhPlxyXG48L2JvbmMtZm9ybS1jb250cm9scz5cclxuXHJcbjxkaXYgKm5nSWY9XCJlZGl0YWJsZS52YWx1ZT09PXVuZGVmaW5lZFwiPkVkaXRhYmxlIHZhbHVlIGNhbm90IGJlIHVuZGVmaW5lZDwvZGl2PlxyXG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './unknown-form.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Jvbm5pZS1jbXMvc3JjL2xpYi91bmtub3duLWZvcm0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdW5rbm93bi1mb3JtLmNvbXBvbmVudCc7XHJcbiJdfQ==
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { FormBaseComponent } from '../core-components/form-base.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class UnknownFormComponent extends FormBaseComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.label = '';
|
|
8
|
-
}
|
|
9
|
-
ngOnInit() {
|
|
10
|
-
this.editable.externalSaveCall.subscribe(() => {
|
|
11
|
-
this.editable.save();
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: UnknownFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: UnknownFormComponent, selector: "bonc-unknown-form", inputs: { locale: "locale", label: "label" }, usesInheritance: true, ngImport: i0, template: "<label>Unknown form:<b>{{label}}</b></label>\r\n<pre><ng-content></ng-content></pre>\r\n", styles: [":host{display:block;color:#000;padding:20px;background-color:#dc143c;margin-bottom:10px}\n"] }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: UnknownFormComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'bonc-unknown-form', inputs: FormBaseComponent.inputs, template: "<label>Unknown form:<b>{{label}}</b></label>\r\n<pre><ng-content></ng-content></pre>\r\n", styles: [":host{display:block;color:#000;padding:20px;background-color:#dc143c;margin-bottom:10px}\n"] }]
|
|
20
|
-
}], propDecorators: { label: [{
|
|
21
|
-
type: Input
|
|
22
|
-
}] } });
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5rbm93bi1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYm9ubmllLWNtcy9zcmMvbGliL3Vua25vd24tZm9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6ICcuL3Vua25vd24tZm9ybS5jb21wb25lbnQuaHRtbCcsXHJcbiAgc3R5bGVVcmxzOiBbJy4vdW5rbm93bi1mb3JtLmNvbXBvbmVudC5zY3NzJ10sXHJcbiAgaW5wdXRzOiBGb3JtQmFzZUNvbXBvbmVudC5pbnB1dHNcclxufSlcclxuZXhwb3J0IGNsYXNzIFVua25vd25Gb3JtQ29tcG9uZW50IGV4dGVuZHMgRm9ybUJhc2VDb21wb25lbnQ8c3RyaW5nPiBpbXBsZW1lbnRzIE9uSW5pdCB7XHJcbiAgQElucHV0KClcclxuICBwdWJsaWMgbGFiZWwgPSAnJztcclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0aGlzLmVkaXRhYmxlLmV4dGVybmFsU2F2ZUNhbGwuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgdGhpcy5lZGl0YWJsZS5zYXZlKCk7XHJcbiAgICB9KTtcclxuICB9XHJcbn1cclxuIiwiPGxhYmVsPlVua25vd24gZm9ybTo8Yj57e2xhYmVsfX08L2I+PC9sYWJlbD5cclxuPHByZT48bmctY29udGVudD48L25nLWNvbnRlbnQ+PC9wcmU+XHJcbiJdfQ==
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|