@touchpoll/tp-survey 0.0.34 → 0.0.36

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.
@@ -2,6 +2,7 @@ import { TpSurveyTheme } from '../../tp.survey.type';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SurveyThemeDirective {
4
4
  theme: import("@angular/core").InputSignal<TpSurveyTheme>;
5
+ get classTouchpollLight(): boolean;
5
6
  get classCyanOrangeLight(): boolean;
6
7
  get classCyanOrangeDark(): boolean;
7
8
  get classRoseRedLight(): boolean;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IsVideoPipe implements PipeTransform {
4
+ transform(fileName: string): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsVideoPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsVideoPipe, "isVideo", true>;
7
+ }
@@ -1,4 +1,5 @@
1
1
  export declare const MISSING_VALUE = -97;
2
+ export declare const VIDEO_EXTENSION_LIST: string[];
2
3
  export declare const BASE_WIDTH = 1280;
3
4
  export declare const BASE_HEIGHT = 800;
4
5
  export declare const LOGIC_FUNC_TEXT = "\n const self = this;\n var setVar = function(varName, value) {\n self[varName] = value\n };\n var FUNC_IN = function(varName, array) {\n return isNaN(parseInt(varName)) ? false : array.indexOf(varName) > -1\n };\n var FUNC_INTERSECT = function (var1, var2) {\n return Array.isArray(var1) && Array.isArray(var2) ? var1.some(function(el1) {\n return var2.some(function (el2) {\n return el2 === el1;\n });\n }) : false;\n };\n var value = function(varName, defaultValue) {\n const defVal = !defaultValue ? 0 : defaultValue;\n if ( (varName === -97) || (varName === null) || (varName === undefined) ) {\n return defVal\n } else {\n return varName\n }\n }\n for (var p in this) eval(\"var \" + p + \" = this[p];\"); ";
@@ -9,7 +9,7 @@ export type AnswerSlType = {
9
9
  [key: string]: Array<number> | number;
10
10
  };
11
11
  export type SurveyType = 'CATI' | 'ONLINE';
12
- export type TpSurveyTheme = 'cyan-orange-light' | 'cyan-orange-dark' | 'rose-red-light' | 'rose-red-dark' | 'azure-blue-light' | 'azure-blue-dark';
12
+ export type TpSurveyTheme = 'touchpoll-light' | 'cyan-orange-light' | 'cyan-orange-dark' | 'rose-red-light' | 'rose-red-dark' | 'azure-blue-light' | 'azure-blue-dark';
13
13
  export type LogicObject = Record<string, unknown>;
14
14
  export type TTabletKeyboardVisibleStatus = 'show' | 'hide';
15
15
  export type TFindVariableVoid = (sysName: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchpoll/tp-survey",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
@@ -3,8 +3,9 @@
3
3
  @use "theme/cyan.orange" as cyanOrange;
4
4
  @use "theme/rose.red" as roseRed;
5
5
  @use "theme/azure.blue" as azureBlue;
6
+ @use "theme/touchpoll" as touchpoll;
6
7
 
7
- @include mat.elevation-classes();
8
+ @include mat.elevation-classes();
8
9
  @include mat.app-background();
9
10
 
10
11
  .survey-container-main{
@@ -19,6 +20,12 @@
19
20
  }
20
21
  }
21
22
 
23
+ .survey-theme-touchpoll-light {
24
+ @include mat.all-component-colors(touchpoll.$theme-touchpoll-light);
25
+ @include mat.typography-hierarchy(touchpoll.$theme-touchpoll-light);
26
+ @include mixin.survey-theme(touchpoll.$theme-touchpoll-light);
27
+ }
28
+
22
29
  .survey-theme-azure-blue-light{
23
30
  @include mat.typography-hierarchy(azureBlue.$theme-azure-blue-light);
24
31
  @include mixin.survey-theme(azureBlue.$theme-azure-blue-light);
@@ -31,7 +38,7 @@
31
38
  }
32
39
 
33
40
  .survey-theme-cyan-orange-light{
34
- @include mat.all-component-colors(cyanOrange.$theme-cyan-orange-light);
41
+ //@include mat.all-component-colors(cyanOrange.$theme-cyan-orange-light);
35
42
  @include mat.typography-hierarchy(cyanOrange.$theme-cyan-orange-light);
36
43
  @include mixin.survey-theme(cyanOrange.$theme-cyan-orange-light);
37
44
  }
@@ -0,0 +1,137 @@
1
+ // This file was generated by running 'ng generate @angular/material:theme-color'.
2
+ // Proceed with caution if making changes to this file.
3
+
4
+ @use 'sass:map';
5
+ @use '@angular/material' as mat;
6
+
7
+ // Note: Color palettes are generated from primary: #cd1b22
8
+ $_palettes: (
9
+ primary: (
10
+ 0: #000000,
11
+ 10: #410003,
12
+ 20: #680007,
13
+ 25: #7d000b,
14
+ 30: #93000f,
15
+ 35: #a90013,
16
+ 40: #ef3940, //#be0a19
17
+ 50: #e32e2f,
18
+ 60: #ff544d,
19
+ 70: #ff897f,
20
+ 80: #ffb4ac,
21
+ 90: #ffdad6,
22
+ 95: #ffedeb,
23
+ 98: #fff8f7,
24
+ 99: #fffbff,
25
+ 100: #ffffff,
26
+ ),
27
+ secondary: (
28
+ 0: #000000,
29
+ 10: #410003,
30
+ 20: #65080b,
31
+ 25: #751615,
32
+ 30: #85221f,
33
+ 35: #952d29,
34
+ 40: #a63934,
35
+ 50: #c6514a,
36
+ 60: #e76a61,
37
+ 70: #ff897f,
38
+ 80: #ffb4ac,
39
+ 90: #ffdad6,
40
+ 95: #ffedeb,
41
+ 98: #fff8f7,
42
+ 99: #fffbff,
43
+ 100: #ffffff,
44
+ ),
45
+ tertiary: (
46
+ 0: #000000,
47
+ 10: #2b1700,
48
+ 20: #482900,
49
+ 25: #573300,
50
+ 30: #673d00,
51
+ 35: #774800,
52
+ 40: #875200,
53
+ 50: #a76914,
54
+ 60: #c5832e,
55
+ 70: #e39c46,
56
+ 80: #ffb866,
57
+ 90: #ffddba,
58
+ 95: #ffeedf,
59
+ 98: #fff8f4,
60
+ 99: #fffbff,
61
+ 100: #ffffff,
62
+ ),
63
+ neutral: (
64
+ 0: #000000,
65
+ 10: #281716,
66
+ 20: #3f2c2a,
67
+ 25: #4b3634,
68
+ 30: #57423f,
69
+ 35: #634d4b,
70
+ 40: #705956,
71
+ 50: #8a716e,
72
+ 60: #a58a88,
73
+ 70: #c1a5a2,
74
+ 80: #dec0bc,
75
+ 90: #fbdbd8,
76
+ 95: #ffedeb,
77
+ 98: #fff8f7,
78
+ 99: #fffbff,
79
+ 100: #ffffff,
80
+ 4: #190a09,
81
+ 6: #1f0f0e,
82
+ 12: #2c1b19,
83
+ 17: #382523,
84
+ 22: #44302e,
85
+ 24: #483432,
86
+ 87: #f2d3d0,
87
+ 92: #ffe2de,
88
+ 94: #ffe9e6,
89
+ 96: #fff0ef,
90
+ ),
91
+ neutral-variant: (
92
+ 0: #000000,
93
+ 10: #2c1513,
94
+ 20: #432a27,
95
+ 25: #503432,
96
+ 30: #5c403d,
97
+ 35: #694b48,
98
+ 40: #765754,
99
+ 50: #916f6b,
100
+ 60: #ac8884,
101
+ 70: #c8a29e,
102
+ 80: #e5bdb9,
103
+ 90: #ffdad6,
104
+ 95: #ffedeb,
105
+ 98: #fff8f7,
106
+ 99: #fffbff,
107
+ 100: #ffffff,
108
+ ),
109
+ error: (
110
+ 0: #000000,
111
+ 10: #410002,
112
+ 20: #690005,
113
+ 25: #7e0007,
114
+ 30: #93000a,
115
+ 35: #a80710,
116
+ 40: #ba1a1a,
117
+ 50: #de3730,
118
+ 60: #ff5449,
119
+ 70: #ff897d,
120
+ 80: #ffb4ab,
121
+ 90: #ffdad6,
122
+ 95: #ffedea,
123
+ 98: #fff8f7,
124
+ 99: #fffbff,
125
+ 100: #ffffff,
126
+ ),
127
+ );
128
+
129
+ $_rest: (
130
+ secondary: map.get($_palettes, secondary),
131
+ neutral: map.get($_palettes, neutral),
132
+ neutral-variant: map.get($_palettes, neutral-variant),
133
+ error: map.get($_palettes, error),
134
+ );
135
+
136
+ $primary-palette: map.merge(map.get($_palettes, primary), $_rest);
137
+ $tertiary-palette: map.merge(map.get($_palettes, tertiary), $_rest);
@@ -0,0 +1,33 @@
1
+ @use "@angular/material" as mat;
2
+ @use "sass:map";
3
+ @use "theme-colors.touchpoll" as touchpollColors;
4
+
5
+ $theme-density: (scale:-1);
6
+ $theme-typography: (
7
+ brand-family: 'Roboto',
8
+ bold-weight: 900
9
+ );
10
+
11
+ $theme-touchpoll-light: map.merge(
12
+ mat.define-theme(
13
+ (
14
+ color: (
15
+ theme-type: light,
16
+ primary: touchpollColors.$primary-palette,
17
+ tertiary: touchpollColors.$tertiary-palette,
18
+ ),
19
+ typography: $theme-typography,
20
+ density: $theme-density
21
+ )
22
+ ),
23
+ (
24
+ custom-colors: (
25
+ survey-background: var(--mat-app-background-color),
26
+ survey-font: var(--mat-app-text-color),
27
+ survey-caption-helper: #f26030,
28
+ survey-caption-delimiter: #26292936,
29
+ survey-red: #a71f2a,
30
+ )
31
+ )
32
+ );
33
+