@openremote/or-survey 1.6.0-snapshot.20250512145140 → 1.6.0-snapshot.20250513081115

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.
@@ -0,0 +1,78 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "OrComputeGridEvent",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "NAME",
17
+ "type": {
18
+ "text": "string"
19
+ },
20
+ "privacy": "public",
21
+ "static": true,
22
+ "readonly": true,
23
+ "default": "\"or-asset-viewer-compute-grid-event\""
24
+ }
25
+ ],
26
+ "superclass": {
27
+ "name": "CustomEvent",
28
+ "module": "src/index.ts"
29
+ }
30
+ }
31
+ ],
32
+ "exports": [
33
+ {
34
+ "kind": "js",
35
+ "name": "OrComputeGridEvent",
36
+ "declaration": {
37
+ "name": "OrComputeGridEvent",
38
+ "module": "src/index.ts"
39
+ }
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "kind": "javascript-module",
45
+ "path": "src/style.ts",
46
+ "declarations": [
47
+ {
48
+ "kind": "variable",
49
+ "name": "surveySectionStyle",
50
+ "default": "html` <style> :host { display: flex; flex-direction: column; --internal-or-survey-color-button: var(--or-survey-color-button, var(--or-app-color1, ${unsafeCSS(DefaultColor1)})); --internal-or-survey-color-button-color: var(--or-survey-color-button-icon, #FFFFFF); --internal-or-survey-color-lightgrey: var(--or-survey-color, var(--or-app-color1, ${unsafeCSS(DefaultColor1)})); --internal-or-survey-color-grey: var(--or-survey-color, var(--or-app-color1, ${unsafeCSS(DefaultColor1)})); --internal-or-survey-color: var(--or-survey-color1, var(--or-app-color1, ${unsafeCSS(DefaultColor1)})); --internal-or-survey-color2: var(--or-survey-color2, var(--or-app-color2, ${unsafeCSS(DefaultColor2)})); --internal-or-survey-color3: var(--or-survey-color3, var(--or-app-color3, ${unsafeCSS(DefaultColor3)})); --internal-or-survey-color4: var(--or-survey-color4, var(--or-app-color4, ${unsafeCSS(DefaultColor4)})); --internal-or-survey-color5: var(--or-survey-color5, var(--or-app-color5, ${unsafeCSS(DefaultColor5)})); --internal-or-survey-color6: var(--or-survey-color6, var(--or-app-color6, ${unsafeCSS(DefaultColor6)})); --internal-or-survey-color7: var(--or-survey-color7, var(--or-app-color7, ${unsafeCSS(DefaultColor7)})); } .shadow { -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.21); -moz-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.21); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.21); } .layout.horizontal { display: flex; flex-direction: row; } .layout.vertical { display: flex; flex-direction: column; } .center { justify-content: center; align-items: center; } .t-center { text-align: center; } .flex-grow { flex: 1 1 0; } :host input { margin-bottom: 20px; } label { font-size: 14px; background-color: var(--internal-or-survey-color-grey); } button { font-size: 14px; height: 40px; background-color: var(--internal-or-survey-color-button); margin-left: auto; color: #FFF; font-weight: bold; cursor: pointer; padding: 0 20px; border-width: initial; border-style: none; border-color: initial; border-image: initial; border-radius: 5px; } .square-button { padding: 10px; background-color: var(--internal-or-survey-color-lightgrey); } .square-button or-icon { --or-icon-height: 16px; --or-icon-width: 16px; --or-icon-fill: var(--internal-or-survey-color-grey); } .square-button:hover { background-color: var(--internal-or-survey-color2); } .square-button:hover or-icon { --or-icon-fill: #FFFFFF; } .button-text { font-weight: bold; color: var(--internal-or-survey-color2); margin-bottom: 20px; } .button-text or-icon { --or-icon-height: 20px; --or-icon-width: 20px; } a { cursor: pointer; } or-icon { --or-icon-width: 24px; --or-icon-height: 24px; --or-icon-fill: var(--internal-or-survey-color-grey); } button or-icon { --or-icon-fill: #FFF; } a:hover > or-icon { --or-icon-fill: var(--internal-or-survey-color2); } .option-item .draggable, .option-item .delete-button { opacity: 0; } .option-item { margin: 0 -30px; padding: 0 30px; } .indented { margin-left: 40px; } .add-answer-option { margin-left: 70px; } .option-item:hover { background-color: #f2f2f2; } .option-item:hover .draggable, .option-item:hover .delete-button { opacity: 1; } .draggable-container { position: relative; } .question-item { position: relative; width: 100%; display: grid; align-items: center; box-sizing: border-box; user-select: none; transition: none; z-index: 1; background: white; font-family: sans-serif; } .question-item.nudgeDown:not(.dragged) { transform: translate3d(0, 48px, 0); } .question-item.nudgeUp:not(.dragged) { transform: translate3d(0, -48px, 0); } .question-item.dragged { box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); transition: none; } .dragging > .question-item:not(.dragged) { transition: transform 0.2s ease-out; } .draggable { cursor: pointer; position: absolute; left: -24px; z-index: 1; } .draggable or-icon { margin-top: 10px; --or-icon-fill: var(--app-grey-color); } input { padding: 5px 0 8px; margin-bottom: 30px; color: #333333; font-size: 16px; border-color: #f2f2f2; } input[disabled] { background-color: var(--app-lightgrey-color); color: var(--app-grey-color); } label { color: #808080; font-size: 12px; font-weight: bold; } </style> `"
51
+ },
52
+ {
53
+ "kind": "variable",
54
+ "name": "surveyLayoutStyle",
55
+ "default": "html` <style> :host { width: 100%; background-color: #FFFFFF; } #surveyQuestions { width: 100%; overflow: hidden; } button-default > *:focus { background-color: transparent } p { text-align: center; } input { display: none; } input.text-input { display: block; } .answer-card { flex: 1; flex-grow: 1; flex-basis: 0; } .answer-card { background-color: var(--internal-or-survey-color1, #F3C11F); margin-left: 5px; border: 3px solid white; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } .answer-card:first-child { margin-left: 0; } .answer-card:nth-of-type(1), .answer-card:nth-of-type(5), .answer-card:nth-of-type(9){ background-color: var(--internal-or-survey-color1, #F3C11F); } .answer-card:nth-of-type(2), .answer-card:nth-of-type(6), .answer-card:nth-of-type(10){ background-color: var(--internal-or-survey-color2, #4A99BA); } .answer-card:nth-of-type(3), .answer-card:nth-of-type(7), .answer-card:nth-of-type(11){ background-color: var(--internal-or-survey-color3, #23B099); } .answer-card:nth-of-type(4), .answer-card:nth-of-type(8), .answer-card:nth-of-type(12){ background-color: var(--internal-or-survey-color4, #EA8D31); } .answer-card.rating { border: none; background-color: transparent; } .answer-card.rating label { border-radius: 50%; background-color: var(--or-survey-color-button, #e32527); line-height: 30px; width: 30px; height: 30px; padding: 10px; } button { cursor: pointer; visibility: hidden; position: relative; -moz-appearance: none; -webkit-appearance: none; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; font-family: Arial, \"Open Sans\", sans-serif; text-align: center; border: 0; color: #fff; text-decoration: none; padding: .625rem calc(2.5rem + 10px) .625rem 1.25rem; background-color: var(--or-survey-color-button, #e32527); font-size: 18px; font-weight: 300; } button or-icon { margin-right: 20px; } button[visible] { visibility: visible; } button.previous { padding: .625rem 1.25rem .625rem calc(2.5rem + 10px); } button.previous .icon { width: 2.5rem; fill: var(--internal-or-survey-color-button-color); color: var(--internal-or-survey-color-button-color); position: absolute; left: 0; top: 0; height: 20px; padding: 10px 0; } button.next .icon { width: 2.5rem; fill: var(--internal-or-survey-color-button-color); color: var(--internal-or-survey-color-button-color); position: absolute; right: 0; top: 0; height: 20px; padding: 10px 0; } input { margin: 0 0 20px; padding: 8px; } input + label { font-size: 18px; color: #FFFFFF; display: block; text-align: center; opacity: 0.87; margin: 10px; padding: 40px; height: calc(100% - 60px); cursor: pointer; -ms-transform: scale(0.8); -webkit-transform: scale(0.8); transform: scale(0.8); -webkit-transition: transform 0.15s; -moz-transition: transform 0.15s; -o-transition: transform 0.15s; transition: transform 0.15s; background-color: transparent; } input + label:hover { opacity: 1; -ms-transform: scale(1); -webkit-transform: scale(1); transform: scale(1); } input[type=\"checkbox\"]:checked + label, input[type=\"radio\"]:checked + label { opacity: 1; -ms-transform: scale(1); -webkit-transform: scale(1); transform: scale(1); }, input[type=\"radio\"]:checked + label, input[type=\"checkbox\"]:checked { border: 3px solid white; } textarea { flex-grow: 1; border: 1px solid var(--or-app-color3); height: 4em; line-height: 16px; } .answer-icon { width: 20px; height: 20px; display: block; margin: auto; font-size: 16px; line-height: 20px; font-weight: bold; border: 3px solid var(--app-white); border-radius: 5px; margin-bottom: 5px; } #survey-container { -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; } .answer-card { width: 25%; min-width: 25%; max-width: 25%; flex-grow: 1; flex-basis: auto; margin-left: 0px; } @media (max-width: 1480px) { .answer-card { width: 50%; min-width: 50%; max-width: 50%; flex-grow: 1; flex-basis: auto; margin-left: 0px; } } input + label { padding: 20px; } .answer-card.rating { width: 20%; min-width: 20%; max-width: 20%; } textarea { height: 4em; line-height: 16px; } #survey-container.moveIn { -webkit-animation: moveIn .6s 1 forwards; animation: moveIn .6s 1 forwards; } #survey-container.moveOut { -webkit-animation: moveOut .6s 1 forwards; animation: moveOut .6s 1 forwards; } @-webkit-keyframes moveIn { 0% { -webkit-transform: translate(100%); -moz-transform: translate(100%); -ms-transform: translate(100%); -o-transform: translate(100%); transform: translate(100%); } 100% { -webkit-transform: translate(0%); -moz-transform: translate(0%); -ms-transform: translate(0%); -o-transform: translate(0%); transform: translate(0%); } } @keyframes moveIn { 0% { -webkit-transform: translate(100%); -moz-transform: translate(100%); -ms-transform: translate(100%); -o-transform: translate(100%); transform: translate(100%); } 100% { -webkit-transform: translate(0%); -moz-transform: translate(0%); -ms-transform: translate(0%); -o-transform: translate(0%); transform: translate(0%); } } @-webkit-keyframes moveOut { 0% { -webkit-transform: translate(-100%); -moz-transform: translate(-100%); -ms-transform: translate(-100%); -o-transform: translate(-100%); transform: translate(-100%); } 100% { -webkit-transform: translate(0%); -moz-transform: translate(0%); -ms-transform: translate(0%); -o-transform: translate(0%); transform: translate(0%); } } @keyframes moveOut { 0% { -webkit-transform: translate(-100%); -moz-transform: translate(-100%); -ms-transform: translate(-100%); -o-transform: translate(-100%); transform: translate(-100%); } 100% { -webkit-transform: translate(0%); -moz-transform: translate(0%); -ms-transform: translate(0%); -o-transform: translate(0%); transform: translate(0%); } } @media (max-width: 769px) { input[type=\"color\"], input[type=\"date\"], input[type=\"datetime\"], input[type=\"datetime-local\"], input[type=\"email\"], input[type=\"month\"], input[type=\"number\"], input[type=\"password\"], input[type=\"search\"], input[type=\"tel\"], input[type=\"text\"], input[type=\"time\"], input[type=\"url\"], input[type=\"week\"], select:focus, textarea { font-size: 16px; } } </style> `"
56
+ }
57
+ ],
58
+ "exports": [
59
+ {
60
+ "kind": "js",
61
+ "name": "surveySectionStyle",
62
+ "declaration": {
63
+ "name": "surveySectionStyle",
64
+ "module": "src/style.ts"
65
+ }
66
+ },
67
+ {
68
+ "kind": "js",
69
+ "name": "surveyLayoutStyle",
70
+ "declaration": {
71
+ "name": "surveyLayoutStyle",
72
+ "module": "src/style.ts"
73
+ }
74
+ }
75
+ ]
76
+ }
77
+ ]
78
+ }