pr360-questionnaire 2.1.3 → 2.1.5

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.
@@ -16910,6 +16910,37 @@ a:hover {
16910
16910
  transition: all 0.3s ease;
16911
16911
  margin-left: 0px;
16912
16912
  }
16913
+ .questionnaire .form__container .form select {
16914
+ display: block;
16915
+ font-family: "lato", Helvetica, sans-serif;
16916
+ padding: 5px 15px;
16917
+ width: 222.23px !important;
16918
+ margin: 0 auto;
16919
+ text-align: left;
16920
+ height: 47px;
16921
+ border: 1px solid #8c8c8c;
16922
+ border-radius: 5px;
16923
+ background-color: #fff;
16924
+ margin-bottom: 20px;
16925
+ margin-top: 3px;
16926
+ font-size: 1rem;
16927
+ font-weight: 300;
16928
+ transition: all 0.3s ease;
16929
+ margin-left: 0px;
16930
+ appearance: none;
16931
+ background-image: url('data:image/svg+xml;utf8,<svg fill="%238c8c8c" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
16932
+ background-repeat: no-repeat;
16933
+ background-position: right 10px top 50%;
16934
+ background-size: 12px;
16935
+ }
16936
+ .questionnaire .form__container .form option {
16937
+ font-family: "lato", Helvetica, sans-serif;
16938
+ font-size: 1rem;
16939
+ font-weight: 300;
16940
+ color: #3B6A8B;
16941
+ background-color: #fff;
16942
+ padding: 5px 15px;
16943
+ }
16913
16944
 
16914
16945
  meter {
16915
16946
  width: 400px;
@@ -17280,6 +17311,14 @@ meter::-webkit-meter-optimum-value {
17280
17311
  this.visitedNodes = [];
17281
17312
  this.hubspotId = "40834387";
17282
17313
  }
17314
+ get providers() {
17315
+ return this.getAttribute("providers")?.split(",") || [];
17316
+ }
17317
+ set providers(value) {
17318
+ if (value !== null && value !== void 0) {
17319
+ this.setAttribute("providers", value.join(","));
17320
+ }
17321
+ }
17283
17322
  get topic() {
17284
17323
  return `questionnaires:${this.siteId}`;
17285
17324
  }
@@ -17455,7 +17494,7 @@ meter::-webkit-meter-optimum-value {
17455
17494
  email,
17456
17495
  zip_code: this.zipCodeInput.value,
17457
17496
  phone_number: this.phoneInput.value,
17458
- insurance_provider: this.insuranceProviderInput.value
17497
+ insurance_provider: this.insuranceProviderSelect.value
17459
17498
  }
17460
17499
  }));
17461
17500
  }
@@ -17506,6 +17545,10 @@ meter::-webkit-meter-optimum-value {
17506
17545
  __decorateClass([
17507
17546
  n5({ type: Boolean })
17508
17547
  ], QuestionnaireElement.prototype, "open", 2);
17548
+ __decorateClass([
17549
+ n5({ type: Array }),
17550
+ liveStateConfig("providers")
17551
+ ], QuestionnaireElement.prototype, "providers", 1);
17509
17552
  __decorateClass([
17510
17553
  i4("#question-modal")
17511
17554
  ], QuestionnaireElement.prototype, "modal", 2);
@@ -17526,7 +17569,7 @@ meter::-webkit-meter-optimum-value {
17526
17569
  ], QuestionnaireElement.prototype, "zipCodeInput", 2);
17527
17570
  __decorateClass([
17528
17571
  i4("#insurance_provider")
17529
- ], QuestionnaireElement.prototype, "insuranceProviderInput", 2);
17572
+ ], QuestionnaireElement.prototype, "insuranceProviderSelect", 2);
17530
17573
  __decorateClass([
17531
17574
  i4("form")
17532
17575
  ], QuestionnaireElement.prototype, "contactInfoForm", 2);
package/dist/index.js CHANGED
@@ -7105,6 +7105,37 @@ a:hover {
7105
7105
  transition: all 0.3s ease;
7106
7106
  margin-left: 0px;
7107
7107
  }
7108
+ .questionnaire .form__container .form select {
7109
+ display: block;
7110
+ font-family: "lato", Helvetica, sans-serif;
7111
+ padding: 5px 15px;
7112
+ width: 222.23px !important;
7113
+ margin: 0 auto;
7114
+ text-align: left;
7115
+ height: 47px;
7116
+ border: 1px solid #8c8c8c;
7117
+ border-radius: 5px;
7118
+ background-color: #fff;
7119
+ margin-bottom: 20px;
7120
+ margin-top: 3px;
7121
+ font-size: 1rem;
7122
+ font-weight: 300;
7123
+ transition: all 0.3s ease;
7124
+ margin-left: 0px;
7125
+ appearance: none;
7126
+ background-image: url('data:image/svg+xml;utf8,<svg fill="%238c8c8c" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
7127
+ background-repeat: no-repeat;
7128
+ background-position: right 10px top 50%;
7129
+ background-size: 12px;
7130
+ }
7131
+ .questionnaire .form__container .form option {
7132
+ font-family: "lato", Helvetica, sans-serif;
7133
+ font-size: 1rem;
7134
+ font-weight: 300;
7135
+ color: #3B6A8B;
7136
+ background-color: #fff;
7137
+ padding: 5px 15px;
7138
+ }
7108
7139
 
7109
7140
  meter {
7110
7141
  width: 400px;
@@ -7469,6 +7500,14 @@ meter::-webkit-meter-optimum-value {
7469
7500
  this.visitedNodes = [];
7470
7501
  this.hubspotId = "40834387";
7471
7502
  }
7503
+ get providers() {
7504
+ return this.getAttribute("providers")?.split(",") || [];
7505
+ }
7506
+ set providers(value) {
7507
+ if (value !== null && value !== void 0) {
7508
+ this.setAttribute("providers", value.join(","));
7509
+ }
7510
+ }
7472
7511
  get topic() {
7473
7512
  return `questionnaires:${this.siteId}`;
7474
7513
  }
@@ -7644,7 +7683,7 @@ meter::-webkit-meter-optimum-value {
7644
7683
  email,
7645
7684
  zip_code: this.zipCodeInput.value,
7646
7685
  phone_number: this.phoneInput.value,
7647
- insurance_provider: this.insuranceProviderInput.value
7686
+ insurance_provider: this.insuranceProviderSelect.value
7648
7687
  }
7649
7688
  }));
7650
7689
  }
@@ -7695,6 +7734,10 @@ meter::-webkit-meter-optimum-value {
7695
7734
  __decorateClass([
7696
7735
  n5({ type: Boolean })
7697
7736
  ], QuestionnaireElement.prototype, "open", 2);
7737
+ __decorateClass([
7738
+ n5({ type: Array }),
7739
+ liveStateConfig("providers")
7740
+ ], QuestionnaireElement.prototype, "providers", 1);
7698
7741
  __decorateClass([
7699
7742
  i4("#question-modal")
7700
7743
  ], QuestionnaireElement.prototype, "modal", 2);
@@ -7715,7 +7758,7 @@ meter::-webkit-meter-optimum-value {
7715
7758
  ], QuestionnaireElement.prototype, "zipCodeInput", 2);
7716
7759
  __decorateClass([
7717
7760
  i4("#insurance_provider")
7718
- ], QuestionnaireElement.prototype, "insuranceProviderInput", 2);
7761
+ ], QuestionnaireElement.prototype, "insuranceProviderSelect", 2);
7719
7762
  __decorateClass([
7720
7763
  i4("form")
7721
7764
  ], QuestionnaireElement.prototype, "contactInfoForm", 2);
@@ -202,11 +202,7 @@ export class QuestionnaireElement extends LitElement {
202
202
  </div>
203
203
  <div>
204
204
  <label for="insurance_provider">Insurance Provider</label>
205
- <select id="insurance_provider" name="insurance_provider">
206
- ${this.providers.map(provider => html`
207
- <option value="${provider}">${provider}</option>
208
- `)}
209
- </select>
205
+ <input type="text" id="insurance_provider" name="insurance_provider"/>
210
206
  </div>
211
207
  </div>
212
208
  <div class="footer u-text-center">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pr360-questionnaire",
3
3
  "description": "An element to render a questionnaire for PatientReach 360.",
4
- "version": "2.1.3",
4
+ "version": "2.1.5",
5
5
  "main": "dist/index.js",
6
6
  "author": {
7
7
  "email": "chris@launchscout.com",