@abgov/web-components 1.0.0-alpha.172 → 1.0.0-alpha.174

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/web-components",
3
- "version": "1.0.0-alpha.172",
3
+ "version": "1.0.0-alpha.174",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -1771,7 +1771,7 @@ function instance$F($$self, $$props, $$invalidate) {
1771
1771
  let { ml = null } = $$props;
1772
1772
 
1773
1773
  onMount(() => {
1774
- validateType(type);
1774
+ setTimeout(() => validateType(type), 1);
1775
1775
 
1776
1776
  if (!showIcon && !content) {
1777
1777
  console.warn("GoABadge must have either then content or icon property set");
@@ -2888,7 +2888,7 @@ function instance$B($$self, $$props, $$invalidate) {
2888
2888
  let { testid = "" } = $$props;
2889
2889
 
2890
2890
  onMount(() => {
2891
- validateType(type);
2891
+ setTimeout(() => validateType(type), 1);
2892
2892
  });
2893
2893
 
2894
2894
  $$self.$$set = $$props => {
@@ -8630,7 +8630,7 @@ function create_if_block$b(ctx) {
8630
8630
 
8631
8631
  function select_block_type(ctx, dirty) {
8632
8632
  if (dirty & /*type*/ 16) show_if = null;
8633
- if (show_if == null) show_if = !!Object.keys(/*_iconOverrides*/ ctx[13]).includes(/*type*/ ctx[4]);
8633
+ if (show_if == null) show_if = !!Object.keys(/*_iconOverrides*/ ctx[12]).includes(/*type*/ ctx[4]);
8634
8634
  if (show_if) return create_if_block_1$5;
8635
8635
  return create_else_block$4;
8636
8636
  }
@@ -8667,7 +8667,7 @@ function create_if_block$b(ctx) {
8667
8667
  };
8668
8668
  }
8669
8669
 
8670
- // (62:4) {:else}
8670
+ // (60:4) {:else}
8671
8671
  function create_else_block$4(ctx) {
8672
8672
  let ion_icon;
8673
8673
  let ion_icon_name_value;
@@ -8696,11 +8696,11 @@ function create_else_block$4(ctx) {
8696
8696
  };
8697
8697
  }
8698
8698
 
8699
- // (57:4) {#if Object.keys(_iconOverrides).includes(type)}
8699
+ // (55:4) {#if Object.keys(_iconOverrides).includes(type)}
8700
8700
  function create_if_block_1$5(ctx) {
8701
8701
  let div;
8702
8702
  let html_tag;
8703
- let raw_value = /*_iconOverrides*/ ctx[13][/*type*/ ctx[4]] + "";
8703
+ let raw_value = /*_iconOverrides*/ ctx[12][/*type*/ ctx[4]] + "";
8704
8704
  let t;
8705
8705
  let span;
8706
8706
 
@@ -8720,7 +8720,7 @@ function create_if_block_1$5(ctx) {
8720
8720
  append(div, span);
8721
8721
  },
8722
8722
  p(ctx, dirty) {
8723
- if (dirty & /*type*/ 16 && raw_value !== (raw_value = /*_iconOverrides*/ ctx[13][/*type*/ ctx[4]] + "")) html_tag.p(raw_value);
8723
+ if (dirty & /*type*/ 16 && raw_value !== (raw_value = /*_iconOverrides*/ ctx[12][/*type*/ ctx[4]] + "")) html_tag.p(raw_value);
8724
8724
  },
8725
8725
  d(detaching) {
8726
8726
  if (detaching) detach(div);
@@ -8739,18 +8739,17 @@ function create_fragment$l(ctx) {
8739
8739
  if (if_block) if_block.c();
8740
8740
  this.c = noop;
8741
8741
  attr(div, "class", "goa-icon");
8742
- attr(div, "data-testid", /*testid*/ ctx[10]);
8743
- attr(div, "title", /*title*/ ctx[9]);
8742
+ attr(div, "data-testid", /*testid*/ ctx[9]);
8743
+ attr(div, "title", /*title*/ ctx[8]);
8744
8744
 
8745
8745
  attr(div, "style", div_style_value = `
8746
8746
  ${calculateMargin(/*mt*/ ctx[0], /*mr*/ ctx[1], /*mb*/ ctx[2], /*ml*/ ctx[3])}
8747
- --size: ${/*_size*/ ctx[11]};
8747
+ --size: ${/*_size*/ ctx[10]};
8748
8748
  --fill-color: ${/*fillcolor*/ ctx[6]};
8749
- --hover-color: ${/*hovercolor*/ ctx[7]};
8750
- --opacity: ${/*opacity*/ ctx[8]};
8749
+ --opacity: ${/*opacity*/ ctx[7]};
8751
8750
  `);
8752
8751
 
8753
- toggle_class(div, "inverted", /*isInverted*/ ctx[12]);
8752
+ toggle_class(div, "inverted", /*isInverted*/ ctx[11]);
8754
8753
  },
8755
8754
  m(target, anchor) {
8756
8755
  insert(target, div, anchor);
@@ -8770,26 +8769,25 @@ function create_fragment$l(ctx) {
8770
8769
  if_block = null;
8771
8770
  }
8772
8771
 
8773
- if (dirty & /*testid*/ 1024) {
8774
- attr(div, "data-testid", /*testid*/ ctx[10]);
8772
+ if (dirty & /*testid*/ 512) {
8773
+ attr(div, "data-testid", /*testid*/ ctx[9]);
8775
8774
  }
8776
8775
 
8777
- if (dirty & /*title*/ 512) {
8778
- attr(div, "title", /*title*/ ctx[9]);
8776
+ if (dirty & /*title*/ 256) {
8777
+ attr(div, "title", /*title*/ ctx[8]);
8779
8778
  }
8780
8779
 
8781
- if (dirty & /*mt, mr, mb, ml, _size, fillcolor, hovercolor, opacity*/ 2511 && div_style_value !== (div_style_value = `
8780
+ if (dirty & /*mt, mr, mb, ml, _size, fillcolor, opacity*/ 1231 && div_style_value !== (div_style_value = `
8782
8781
  ${calculateMargin(/*mt*/ ctx[0], /*mr*/ ctx[1], /*mb*/ ctx[2], /*ml*/ ctx[3])}
8783
- --size: ${/*_size*/ ctx[11]};
8782
+ --size: ${/*_size*/ ctx[10]};
8784
8783
  --fill-color: ${/*fillcolor*/ ctx[6]};
8785
- --hover-color: ${/*hovercolor*/ ctx[7]};
8786
- --opacity: ${/*opacity*/ ctx[8]};
8784
+ --opacity: ${/*opacity*/ ctx[7]};
8787
8785
  `)) {
8788
8786
  attr(div, "style", div_style_value);
8789
8787
  }
8790
8788
 
8791
- if (dirty & /*isInverted*/ 4096) {
8792
- toggle_class(div, "inverted", /*isInverted*/ ctx[12]);
8789
+ if (dirty & /*isInverted*/ 2048) {
8790
+ toggle_class(div, "inverted", /*isInverted*/ ctx[11]);
8793
8791
  }
8794
8792
  },
8795
8793
  i: noop,
@@ -8813,7 +8811,6 @@ function instance$j($$self, $$props, $$invalidate) {
8813
8811
  let { theme = "outline" } = $$props;
8814
8812
  let { inverted = "false" } = $$props;
8815
8813
  let { fillcolor = "" } = $$props;
8816
- let { hovercolor = "" } = $$props;
8817
8814
  let { opacity = 1 } = $$props;
8818
8815
  let { title = "" } = $$props;
8819
8816
  let { testid = "" } = $$props;
@@ -8837,23 +8834,22 @@ function instance$j($$self, $$props, $$invalidate) {
8837
8834
  if ('mb' in $$props) $$invalidate(2, mb = $$props.mb);
8838
8835
  if ('ml' in $$props) $$invalidate(3, ml = $$props.ml);
8839
8836
  if ('type' in $$props) $$invalidate(4, type = $$props.type);
8840
- if ('size' in $$props) $$invalidate(14, size = $$props.size);
8837
+ if ('size' in $$props) $$invalidate(13, size = $$props.size);
8841
8838
  if ('theme' in $$props) $$invalidate(5, theme = $$props.theme);
8842
- if ('inverted' in $$props) $$invalidate(15, inverted = $$props.inverted);
8839
+ if ('inverted' in $$props) $$invalidate(14, inverted = $$props.inverted);
8843
8840
  if ('fillcolor' in $$props) $$invalidate(6, fillcolor = $$props.fillcolor);
8844
- if ('hovercolor' in $$props) $$invalidate(7, hovercolor = $$props.hovercolor);
8845
- if ('opacity' in $$props) $$invalidate(8, opacity = $$props.opacity);
8846
- if ('title' in $$props) $$invalidate(9, title = $$props.title);
8847
- if ('testid' in $$props) $$invalidate(10, testid = $$props.testid);
8841
+ if ('opacity' in $$props) $$invalidate(7, opacity = $$props.opacity);
8842
+ if ('title' in $$props) $$invalidate(8, title = $$props.title);
8843
+ if ('testid' in $$props) $$invalidate(9, testid = $$props.testid);
8848
8844
  };
8849
8845
 
8850
8846
  $$self.$$.update = () => {
8851
- if ($$self.$$.dirty & /*inverted*/ 32768) {
8852
- $$invalidate(12, isInverted = toBoolean(inverted));
8847
+ if ($$self.$$.dirty & /*inverted*/ 16384) {
8848
+ $$invalidate(11, isInverted = toBoolean(inverted));
8853
8849
  }
8854
8850
 
8855
- if ($$self.$$.dirty & /*size*/ 16384) {
8856
- $$invalidate(11, _size = ({
8851
+ if ($$self.$$.dirty & /*size*/ 8192) {
8852
+ $$invalidate(10, _size = ({
8857
8853
  small: "1.25rem",
8858
8854
  medium: "1.5rem",
8859
8855
  large: "2rem"
@@ -8869,7 +8865,6 @@ function instance$j($$self, $$props, $$invalidate) {
8869
8865
  type,
8870
8866
  theme,
8871
8867
  fillcolor,
8872
- hovercolor,
8873
8868
  opacity,
8874
8869
  title,
8875
8870
  testid,
@@ -8884,7 +8879,7 @@ function instance$j($$self, $$props, $$invalidate) {
8884
8879
  class Icon extends SvelteElement {
8885
8880
  constructor(options) {
8886
8881
  super();
8887
- this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.icon-override{display:flex;flex-direction:column;align-items:center}.icon-override *{fill:var(--goa-color-interactive-default)}.inverted *{color:#fff;fill:#fff}</style>`;
8882
+ this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.icon-override{display:flex;flex-direction:column;align-items:center}.icon-override *{fill:var(--goa-color-interactive-default)}.inverted *{color:#fff;fill:#fff}</style>`;
8888
8883
 
8889
8884
  init(
8890
8885
  this,
@@ -8902,14 +8897,13 @@ class Icon extends SvelteElement {
8902
8897
  mb: 2,
8903
8898
  ml: 3,
8904
8899
  type: 4,
8905
- size: 14,
8900
+ size: 13,
8906
8901
  theme: 5,
8907
- inverted: 15,
8902
+ inverted: 14,
8908
8903
  fillcolor: 6,
8909
- hovercolor: 7,
8910
- opacity: 8,
8911
- title: 9,
8912
- testid: 10
8904
+ opacity: 7,
8905
+ title: 8,
8906
+ testid: 9
8913
8907
  },
8914
8908
  null
8915
8909
  );
@@ -8937,7 +8931,6 @@ class Icon extends SvelteElement {
8937
8931
  "theme",
8938
8932
  "inverted",
8939
8933
  "fillcolor",
8940
- "hovercolor",
8941
8934
  "opacity",
8942
8935
  "title",
8943
8936
  "testid"
@@ -8990,7 +8983,7 @@ class Icon extends SvelteElement {
8990
8983
  }
8991
8984
 
8992
8985
  get size() {
8993
- return this.$$.ctx[14];
8986
+ return this.$$.ctx[13];
8994
8987
  }
8995
8988
 
8996
8989
  set size(size) {
@@ -9008,7 +9001,7 @@ class Icon extends SvelteElement {
9008
9001
  }
9009
9002
 
9010
9003
  get inverted() {
9011
- return this.$$.ctx[15];
9004
+ return this.$$.ctx[14];
9012
9005
  }
9013
9006
 
9014
9007
  set inverted(inverted) {
@@ -9025,17 +9018,8 @@ class Icon extends SvelteElement {
9025
9018
  flush();
9026
9019
  }
9027
9020
 
9028
- get hovercolor() {
9029
- return this.$$.ctx[7];
9030
- }
9031
-
9032
- set hovercolor(hovercolor) {
9033
- this.$$set({ hovercolor });
9034
- flush();
9035
- }
9036
-
9037
9021
  get opacity() {
9038
- return this.$$.ctx[8];
9022
+ return this.$$.ctx[7];
9039
9023
  }
9040
9024
 
9041
9025
  set opacity(opacity) {
@@ -9044,7 +9028,7 @@ class Icon extends SvelteElement {
9044
9028
  }
9045
9029
 
9046
9030
  get title() {
9047
- return this.$$.ctx[9];
9031
+ return this.$$.ctx[8];
9048
9032
  }
9049
9033
 
9050
9034
  set title(title) {
@@ -9053,7 +9037,7 @@ class Icon extends SvelteElement {
9053
9037
  }
9054
9038
 
9055
9039
  get testid() {
9056
- return this.$$.ctx[10];
9040
+ return this.$$.ctx[9];
9057
9041
  }
9058
9042
 
9059
9043
  set testid(testid) {
@@ -10257,7 +10241,7 @@ function instance$h($$self, $$props, $$invalidate) {
10257
10241
  let { feedbackurl = "" } = $$props;
10258
10242
 
10259
10243
  onMount(() => {
10260
- validateType(type);
10244
+ setTimeout(() => validateType(type), 1);
10261
10245
  });
10262
10246
 
10263
10247
  $$self.$$set = $$props => {
@@ -11160,7 +11144,7 @@ function instance$f($$self, $$props, $$invalidate) {
11160
11144
  let show = true;
11161
11145
 
11162
11146
  onMount(() => {
11163
- validateType(type);
11147
+ setTimeout(() => validateType(type), 1);
11164
11148
  });
11165
11149
 
11166
11150
  function close(e) {
@@ -13366,7 +13350,7 @@ function instance$9($$self, $$props, $$invalidate) {
13366
13350
  let { ml = null } = $$props;
13367
13351
 
13368
13352
  onMount(() => {
13369
- validateType(type);
13353
+ setTimeout(() => validateType(type), 1);
13370
13354
  validateSize(size);
13371
13355
  });
13372
13356