@roqua/quby-frontend 0.2.0 → 0.4.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +4 -0
  3. package/lib/assets/quby/application.css +0 -650
  4. package/lib/components/AnswerPage.d.ts.map +1 -1
  5. package/lib/components/AnswerPage.js +66 -13
  6. package/lib/components/AnswerPage.js.map +1 -1
  7. package/lib/components/Paginator.d.ts +3 -1
  8. package/lib/components/Paginator.d.ts.map +1 -1
  9. package/lib/components/Paginator.js +28 -9
  10. package/lib/components/Paginator.js.map +1 -1
  11. package/lib/components/PanelContent.d.ts +1 -0
  12. package/lib/components/PanelContent.d.ts.map +1 -1
  13. package/lib/components/PanelContent.js +2 -2
  14. package/lib/components/PanelContent.js.map +1 -1
  15. package/lib/components/PanelItem.d.ts +1 -0
  16. package/lib/components/PanelItem.d.ts.map +1 -1
  17. package/lib/components/PanelItem.js +1 -1
  18. package/lib/components/PanelItem.js.map +1 -1
  19. package/lib/components/QuestionDescription.d.ts +1 -1
  20. package/lib/components/QuestionDescription.d.ts.map +1 -1
  21. package/lib/components/QuestionDescription.js +2 -0
  22. package/lib/components/QuestionDescription.js.map +1 -1
  23. package/lib/components/QuestionWrapper.d.ts +3 -2
  24. package/lib/components/QuestionWrapper.d.ts.map +1 -1
  25. package/lib/components/QuestionWrapper.js +20 -3
  26. package/lib/components/QuestionWrapper.js.map +1 -1
  27. package/lib/components/ValidationErrors.d.ts +2 -2
  28. package/lib/components/ValidationErrors.d.ts.map +1 -1
  29. package/lib/components/ValidationErrors.js +15 -2
  30. package/lib/components/ValidationErrors.js.map +1 -1
  31. package/lib/components/items/QuestionItem.d.ts +1 -0
  32. package/lib/components/items/QuestionItem.d.ts.map +1 -1
  33. package/lib/components/items/QuestionItem.js +13 -13
  34. package/lib/components/items/QuestionItem.js.map +1 -1
  35. package/lib/components/questions/CheckBoxQuestion.d.ts +1 -0
  36. package/lib/components/questions/CheckBoxQuestion.d.ts.map +1 -1
  37. package/lib/components/questions/CheckBoxQuestion.js +9 -7
  38. package/lib/components/questions/CheckBoxQuestion.js.map +1 -1
  39. package/lib/components/questions/DatePartsQuestion.d.ts +10 -0
  40. package/lib/components/questions/DatePartsQuestion.d.ts.map +1 -0
  41. package/lib/components/questions/DatePartsQuestion.js +37 -0
  42. package/lib/components/questions/DatePartsQuestion.js.map +1 -0
  43. package/lib/components/questions/FloatQuestion.d.ts +2 -1
  44. package/lib/components/questions/FloatQuestion.d.ts.map +1 -1
  45. package/lib/components/questions/FloatQuestion.js +3 -3
  46. package/lib/components/questions/FloatQuestion.js.map +1 -1
  47. package/lib/components/questions/IntegerQuestion.d.ts +2 -1
  48. package/lib/components/questions/IntegerQuestion.d.ts.map +1 -1
  49. package/lib/components/questions/IntegerQuestion.js +6 -3
  50. package/lib/components/questions/IntegerQuestion.js.map +1 -1
  51. package/lib/components/questions/RadioQuestion.d.ts +1 -0
  52. package/lib/components/questions/RadioQuestion.d.ts.map +1 -1
  53. package/lib/components/questions/RadioQuestion.js +8 -6
  54. package/lib/components/questions/RadioQuestion.js.map +1 -1
  55. package/lib/components/questions/ScaleQuestion.d.ts +3 -2
  56. package/lib/components/questions/ScaleQuestion.d.ts.map +1 -1
  57. package/lib/components/questions/ScaleQuestion.js +7 -7
  58. package/lib/components/questions/ScaleQuestion.js.map +1 -1
  59. package/lib/components/questions/SelectQuestion.d.ts +1 -0
  60. package/lib/components/questions/SelectQuestion.d.ts.map +1 -1
  61. package/lib/components/questions/SelectQuestion.js +8 -4
  62. package/lib/components/questions/SelectQuestion.js.map +1 -1
  63. package/lib/components/questions/SliderQuestion.d.ts +1 -0
  64. package/lib/components/questions/SliderQuestion.d.ts.map +1 -1
  65. package/lib/components/questions/SliderQuestion.js +6 -6
  66. package/lib/components/questions/SliderQuestion.js.map +1 -1
  67. package/lib/components/questions/StringQuestion.d.ts +1 -0
  68. package/lib/components/questions/StringQuestion.d.ts.map +1 -1
  69. package/lib/components/questions/StringQuestion.js +4 -4
  70. package/lib/components/questions/StringQuestion.js.map +1 -1
  71. package/lib/components/questions/TextareaQuestion.d.ts +1 -0
  72. package/lib/components/questions/TextareaQuestion.d.ts.map +1 -1
  73. package/lib/components/questions/TextareaQuestion.js +3 -3
  74. package/lib/components/questions/TextareaQuestion.js.map +1 -1
  75. package/lib/core/mock_helpers.d.ts +4 -3
  76. package/lib/core/mock_helpers.d.ts.map +1 -1
  77. package/lib/core/mock_helpers.js +16 -2
  78. package/lib/core/mock_helpers.js.map +1 -1
  79. package/lib/core/questionnaire.d.ts +1 -0
  80. package/lib/core/questionnaire.d.ts.map +1 -1
  81. package/lib/core/questionnaire.js +1 -0
  82. package/lib/core/questionnaire.js.map +1 -1
  83. package/lib/core/questionnaire_json.d.ts +57 -21
  84. package/lib/core/questionnaire_json.d.ts.map +1 -1
  85. package/lib/core/response.d.ts +23 -9
  86. package/lib/core/response.d.ts.map +1 -1
  87. package/lib/core/response.js +65 -8
  88. package/lib/core/response.js.map +1 -1
  89. package/lib/core/validators.d.ts +11 -6
  90. package/lib/core/validators.d.ts.map +1 -1
  91. package/lib/core/validators.js +166 -27
  92. package/lib/core/validators.js.map +1 -1
  93. package/lib/core/visibility_rules.d.ts.map +1 -1
  94. package/lib/core/visibility_rules.js +3 -5
  95. package/lib/core/visibility_rules.js.map +1 -1
  96. package/lib/i18n.d.ts.map +1 -1
  97. package/lib/i18n.js +27 -18
  98. package/lib/i18n.js.map +1 -1
  99. package/package.json +3 -1
  100. package/lib/components/questions/DateQuestion.d.ts +0 -9
  101. package/lib/components/questions/DateQuestion.d.ts.map +0 -1
  102. package/lib/components/questions/DateQuestion.js +0 -31
  103. package/lib/components/questions/DateQuestion.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # 0.4.0
2
+
3
+ * Enabled strict mode for typescript, since it's way more relaxed otherwise then expected (e.g. allowing strings passed to number methods)
4
+ * Fixed a bunch of types based on ts complains.
5
+ * Changed options to children with a type and added a html-type.
6
+ * More specific option types for each question.
7
+ * Added placeholder functionality to select questions.
8
+ * Fixed script/fixture and added option to update all the questionnaire fixtures.
9
+
10
+ # 0.3.0
11
+
12
+ * Added date_parts question support
13
+ * date-fns dependency added
14
+ * valid_date validation added
15
+
1
16
  # 0.2.0
2
17
 
3
18
  * Basing narrowing of questions on the 'as' attribite instead of the 'type'
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # assumptions
2
+
3
+ * All questions are always validated (on load and on every change), errors are just ignored when an answer has not been touched or is hidden.
4
+
1
5
  # yarn build
2
6
 
3
7
  Generates the new compiled JS files.