@touchpoll/tp-survey 0.0.29 → 0.0.30
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/fesm2022/touchpoll-tp-survey.mjs +103 -3
- package/fesm2022/touchpoll-tp-survey.mjs.map +1 -1
- package/lib/directive/image.position/image.position.directive.d.ts +8 -0
- package/lib/directive/image.site/image.size.directive.d.ts +9 -0
- package/lib/tp.survey.interface.d.ts +15 -8
- package/lib/tp.survey.type.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IdbTpBackGround } from '../../tp.survey.interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ImagePositionDirective {
|
|
4
|
+
imageBackground: import("@angular/core").InputSignal<IdbTpBackGround>;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePositionDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImagePositionDirective, "[tpImagePosition]", never, { "imageBackground": { "alias": "tpImagePosition"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IdbTpBackGround } from '../../tp.survey.interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ImageSizeDirective {
|
|
4
|
+
#private;
|
|
5
|
+
imageBackground: import("@angular/core").InputSignal<IdbTpBackGround>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSizeDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageSizeDirective, "[tpImageSize]", never, { "imageBackground": { "alias": "tpImageSize"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdditionalAnswer, AdditionalAnswerCaptionPosition, AnswerT, LogicObject, SurveyType } from './tp.survey.type';
|
|
1
|
+
import { AdditionalAnswer, AdditionalAnswerCaptionPosition, AnswerT, LogicObject, SurveyType, TImagePositionHorizontal, TImagePositionVertical } from './tp.survey.type';
|
|
2
2
|
import { AdditionalAnswerType, ResultativeStatus, ValidStatus } from './tp.survey.enum';
|
|
3
3
|
import { Answer } from './core/tp.survey.answer/tp.survey.answer';
|
|
4
4
|
export interface AnswerChange {
|
|
@@ -74,14 +74,15 @@ export interface IdbLogicCaptionObject {
|
|
|
74
74
|
ExpressionUser: string;
|
|
75
75
|
}
|
|
76
76
|
export interface IdbTpBackGround {
|
|
77
|
-
|
|
78
|
-
Color
|
|
77
|
+
StyleCss: string;
|
|
78
|
+
Color?: string;
|
|
79
79
|
Image: string;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
PositionHorizontal: TImagePositionHorizontal;
|
|
81
|
+
PositionVertical: TImagePositionVertical;
|
|
82
|
+
DesktopHeight?: number | string | 'auto' | null;
|
|
83
|
+
DesktopWidth?: number | string | 'auto' | null;
|
|
84
|
+
MobileHeight?: number | string | 'auto' | null;
|
|
85
|
+
MobileWidth?: number | string | 'auto' | null;
|
|
85
86
|
}
|
|
86
87
|
export interface IdbAlternative {
|
|
87
88
|
EnableExpression: string;
|
|
@@ -150,6 +151,11 @@ export interface IdbRegion {
|
|
|
150
151
|
Value: number;
|
|
151
152
|
Text: string;
|
|
152
153
|
}
|
|
154
|
+
export interface IdbImage {
|
|
155
|
+
Image: IdbTpBackGround;
|
|
156
|
+
EnableExpression: string;
|
|
157
|
+
EnableExpressionUser: string;
|
|
158
|
+
}
|
|
153
159
|
export interface IdbAdditionalAnswer {
|
|
154
160
|
readonly Value: number;
|
|
155
161
|
readonly SysName: string;
|
|
@@ -173,6 +179,7 @@ export interface IdbQuestion {
|
|
|
173
179
|
LogicCaptionsList: Array<IdbLogicCaptionObject>;
|
|
174
180
|
QuestionType: string;
|
|
175
181
|
Alternativelist: Array<IdbAlternative>;
|
|
182
|
+
ImageList: Array<IdbImage>;
|
|
176
183
|
Sectionlist: Array<IdbSection>;
|
|
177
184
|
logiclist: Array<IdbLogic>;
|
|
178
185
|
RegionList: Array<IdbRegion>;
|
package/lib/tp.survey.type.d.ts
CHANGED
|
@@ -13,3 +13,5 @@ export type TpSurveyTheme = 'cyan-orange-light' | 'cyan-orange-dark' | 'rose-red
|
|
|
13
13
|
export type LogicObject = Record<string, unknown>;
|
|
14
14
|
export type TTabletKeyboardVisibleStatus = 'show' | 'hide';
|
|
15
15
|
export type TFindVariableVoid = (sysName: string) => string;
|
|
16
|
+
export type TImagePositionHorizontal = 'left' | 'center' | 'right';
|
|
17
|
+
export type TImagePositionVertical = 'top' | 'center' | 'bottom';
|