@nyaruka/temba-components 0.120.0 → 0.120.1

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.
@@ -16,6 +16,25 @@ export default {
16
16
  name: 'TembaComponents',
17
17
  sourcemap: true
18
18
  },
19
+ onwarn: function(warning, handler) {
20
+ // Skip certain warnings
21
+ if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
22
+
23
+
24
+ if (warning.code === 'CIRCULAR_DEPENDENCY') {
25
+
26
+ // luxon has a ton of circular dependencies they don't care about
27
+ if(warning.message.includes('luxon')) {
28
+ return;
29
+ }
30
+
31
+ // same with lit-localize
32
+ if(warning.message.includes('lit-localize')) {
33
+ return;
34
+ }
35
+ }
36
+ handler( warning );
37
+ },
19
38
  plugins: [
20
39
  // inline our icons
21
40
  svg({ stringify: true }),
@@ -692,6 +692,7 @@ export class Compose extends FormElement {
692
692
  @change=${this.handleOptInChange}
693
693
  .values=${this.currentOptin}
694
694
  endpoint="${this.optinEndpoint}"
695
+ valueKey="uuid"
695
696
  class="optins"
696
697
  searchable
697
698
  clearable
@@ -710,6 +710,9 @@ export class Select<T extends SelectOption> extends FormElement {
710
710
  }
711
711
 
712
712
  private hasChanges(prev: T[]): boolean {
713
+ // This will compare values to see if there is a change
714
+ // Note: make sure value is populated or valueKey is set
715
+
713
716
  if (prev === undefined) {
714
717
  return false;
715
718
  }