@designsystem-se/af 41.0.1-beta.2 → 41.0.1-beta.3

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.
@@ -5,7 +5,8 @@
5
5
  "projectType": "library",
6
6
  "targets": {
7
7
  "lint": {
8
- "executor": "nx:noop"
8
+ "executor": "@nx/eslint:lint",
9
+ "ignores": ["**/*"]
9
10
  }
10
11
  }
11
12
  }
@@ -5307,7 +5307,8 @@ const FormSelect = class {
5307
5307
  this.optionsObserver = new MutationObserver(() => this.getOptions());
5308
5308
  this.optionsObserver.observe(this.hostElement, {
5309
5309
  childList: true,
5310
- subtree: true
5310
+ subtree: true,
5311
+ characterData: true
5311
5312
  });
5312
5313
  this.getOptions();
5313
5314
  this.afOnReady.emit();
@@ -5377,14 +5378,14 @@ const FormSelect = class {
5377
5378
  : false;
5378
5379
  }
5379
5380
  render() {
5380
- return (h(Host, { key: 'fa05393217c58cb56e451dc8fe9463504d6a300d', tabindex: -1 }, h("div", { key: 'feaedb4dc5c663a3fde4b9c56cc52f39c316ebe8', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: 'c13e62f88ee2d3d2205d53ee97defd61cd55d4c8', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '56932b0aa1bda5491666b103a75a39857939cf5f', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: 'c64d5ed5f7d148db11c1091ffc3fadf0ff0c5cda', class: "digi-form-select__select-wrapper" }, h("select", { key: '509e0affa812c5950abc8c199608e1bbacc70873', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
5381
+ return (h(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, h("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '0144ed5018666da00966461aee1e0cb716fd3dc4', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, h("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
5381
5382
  ? 'true'
5382
- : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '7787a78ae8a05f8a59d020ee0f87494fe88105e0', class: {
5383
+ : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
5383
5384
  'digi-form-select__select-option': true,
5384
5385
  'digi-form-select__select-option--initial-value': true
5385
5386
  }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
5386
5387
  return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
5387
- })), h("digi-icon-input-select-marker", { key: 'f344f09f7f591867d6205b4a67390b579b44e624', class: "digi-form-select__icon", slot: "icon" })), h("div", { key: 'e2ca1ec1fdce28eb0f4aa40acb0a760a8fdc67a0', hidden: true }, h("slot", { key: 'f38120495c88c0ee63b2a85baa671be3d307e23d' })), h("div", { key: '7081d2f99cbdc49ac25d2a6bc5a86ad76385ff19', class: "digi-form-select__footer" }, h("div", { key: '20e66dae37629e92c8ba54b78f95d454650e0869', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '0125fcc8076542953cc99a6113d9de4ebdf14ad8', "af-variation": this.afValidation }, this.afValidationText)))))));
5388
+ })), h("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), h("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, h("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), h("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, h("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
5388
5389
  }
5389
5390
  get hostElement() { return getElement(this); }
5390
5391
  static get watchers() { return {
package/hydrate/index.js CHANGED
@@ -27375,7 +27375,8 @@ class FormSelect {
27375
27375
  this.optionsObserver = new MutationObserver(() => this.getOptions());
27376
27376
  this.optionsObserver.observe(this.hostElement, {
27377
27377
  childList: true,
27378
- subtree: true
27378
+ subtree: true,
27379
+ characterData: true
27379
27380
  });
27380
27381
  this.getOptions();
27381
27382
  this.afOnReady.emit();
@@ -27445,14 +27446,14 @@ class FormSelect {
27445
27446
  : false;
27446
27447
  }
27447
27448
  render() {
27448
- return (hAsync(Host, { key: 'fa05393217c58cb56e451dc8fe9463504d6a300d', tabindex: -1 }, hAsync("div", { key: 'feaedb4dc5c663a3fde4b9c56cc52f39c316ebe8', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, hAsync("div", { key: 'c13e62f88ee2d3d2205d53ee97defd61cd55d4c8', class: "digi-form-select__label-group" }, hAsync("digi-form-label", { key: '56932b0aa1bda5491666b103a75a39857939cf5f', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), hAsync("div", { key: 'c64d5ed5f7d148db11c1091ffc3fadf0ff0c5cda', class: "digi-form-select__select-wrapper" }, hAsync("select", { key: '509e0affa812c5950abc8c199608e1bbacc70873', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
27449
+ return (hAsync(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, hAsync("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, hAsync("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, hAsync("digi-form-label", { key: '0144ed5018666da00966461aee1e0cb716fd3dc4', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), hAsync("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, hAsync("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
27449
27450
  ? 'true'
27450
- : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (hAsync("option", { key: '7787a78ae8a05f8a59d020ee0f87494fe88105e0', class: {
27451
+ : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (hAsync("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
27451
27452
  'digi-form-select__select-option': true,
27452
27453
  'digi-form-select__select-option--initial-value': true
27453
27454
  }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
27454
27455
  return (hAsync("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
27455
- })), hAsync("digi-icon-input-select-marker", { key: 'f344f09f7f591867d6205b4a67390b579b44e624', class: "digi-form-select__icon", slot: "icon" })), hAsync("div", { key: 'e2ca1ec1fdce28eb0f4aa40acb0a760a8fdc67a0', hidden: true }, hAsync("slot", { key: 'f38120495c88c0ee63b2a85baa671be3d307e23d' })), hAsync("div", { key: '7081d2f99cbdc49ac25d2a6bc5a86ad76385ff19', class: "digi-form-select__footer" }, hAsync("div", { key: '20e66dae37629e92c8ba54b78f95d454650e0869', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (hAsync("digi-form-validation-message", { key: '0125fcc8076542953cc99a6113d9de4ebdf14ad8', "af-variation": this.afValidation }, this.afValidationText)))))));
27456
+ })), hAsync("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), hAsync("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, hAsync("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), hAsync("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, hAsync("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (hAsync("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
27456
27457
  }
27457
27458
  get hostElement() { return getElement(this); }
27458
27459
  static get watchers() { return {
package/hydrate/index.mjs CHANGED
@@ -27373,7 +27373,8 @@ class FormSelect {
27373
27373
  this.optionsObserver = new MutationObserver(() => this.getOptions());
27374
27374
  this.optionsObserver.observe(this.hostElement, {
27375
27375
  childList: true,
27376
- subtree: true
27376
+ subtree: true,
27377
+ characterData: true
27377
27378
  });
27378
27379
  this.getOptions();
27379
27380
  this.afOnReady.emit();
@@ -27443,14 +27444,14 @@ class FormSelect {
27443
27444
  : false;
27444
27445
  }
27445
27446
  render() {
27446
- return (hAsync(Host, { key: 'fa05393217c58cb56e451dc8fe9463504d6a300d', tabindex: -1 }, hAsync("div", { key: 'feaedb4dc5c663a3fde4b9c56cc52f39c316ebe8', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, hAsync("div", { key: 'c13e62f88ee2d3d2205d53ee97defd61cd55d4c8', class: "digi-form-select__label-group" }, hAsync("digi-form-label", { key: '56932b0aa1bda5491666b103a75a39857939cf5f', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), hAsync("div", { key: 'c64d5ed5f7d148db11c1091ffc3fadf0ff0c5cda', class: "digi-form-select__select-wrapper" }, hAsync("select", { key: '509e0affa812c5950abc8c199608e1bbacc70873', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
27447
+ return (hAsync(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, hAsync("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, hAsync("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, hAsync("digi-form-label", { key: '0144ed5018666da00966461aee1e0cb716fd3dc4', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), hAsync("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, hAsync("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
27447
27448
  ? 'true'
27448
- : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (hAsync("option", { key: '7787a78ae8a05f8a59d020ee0f87494fe88105e0', class: {
27449
+ : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (hAsync("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
27449
27450
  'digi-form-select__select-option': true,
27450
27451
  'digi-form-select__select-option--initial-value': true
27451
27452
  }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
27452
27453
  return (hAsync("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
27453
- })), hAsync("digi-icon-input-select-marker", { key: 'f344f09f7f591867d6205b4a67390b579b44e624', class: "digi-form-select__icon", slot: "icon" })), hAsync("div", { key: 'e2ca1ec1fdce28eb0f4aa40acb0a760a8fdc67a0', hidden: true }, hAsync("slot", { key: 'f38120495c88c0ee63b2a85baa671be3d307e23d' })), hAsync("div", { key: '7081d2f99cbdc49ac25d2a6bc5a86ad76385ff19', class: "digi-form-select__footer" }, hAsync("div", { key: '20e66dae37629e92c8ba54b78f95d454650e0869', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (hAsync("digi-form-validation-message", { key: '0125fcc8076542953cc99a6113d9de4ebdf14ad8', "af-variation": this.afValidation }, this.afValidationText)))))));
27454
+ })), hAsync("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), hAsync("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, hAsync("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), hAsync("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, hAsync("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (hAsync("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
27454
27455
  }
27455
27456
  get hostElement() { return getElement(this); }
27456
27457
  static get watchers() { return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designsystem-se/af",
3
3
  "author": "Arbetsförmedlingen",
4
- "version": "41.0.1-beta.2",
4
+ "version": "41.0.1-beta.3",
5
5
  "description": "Web Components for Digi Designsystem",
6
6
  "license": "Apache-2.0",
7
7
  "main": "./dist/index.cjs.js",
@@ -21,7 +21,9 @@
21
21
  },
22
22
  "contributes": {
23
23
  "html": {
24
- "customData": ["./custom-elements.json"]
24
+ "customData": [
25
+ "./custom-elements.json"
26
+ ]
25
27
  }
26
28
  },
27
29
  "publishConfig": {