@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.
- package/CHANGELOG.md +8 -0
- package/dist/temba-components.js +1 -0
- package/dist/temba-components.js.map +1 -1
- package/localize.config.json +1 -0
- package/out-tsc/src/compose/Compose.js +1 -0
- package/out-tsc/src/compose/Compose.js.map +1 -1
- package/out-tsc/src/select/Select.js +2 -0
- package/out-tsc/src/select/Select.js.map +1 -1
- package/package.json +2 -2
- package/rollup.components.mjs +19 -0
- package/src/compose/Compose.ts +1 -0
- package/src/select/Select.ts +3 -0
package/rollup.components.mjs
CHANGED
|
@@ -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 }),
|
package/src/compose/Compose.ts
CHANGED
package/src/select/Select.ts
CHANGED
|
@@ -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
|
}
|