@cscfi/csc-ui 2.2.7 → 2.2.9

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.
Files changed (43) hide show
  1. package/dist/cjs/c-autocomplete_34.cjs.entry.js +10 -9
  2. package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
  3. package/dist/cjs/c-slider.cjs.entry.js +2 -2
  4. package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
  5. package/dist/cjs/csc-ui.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/c-input/c-input.js +5 -24
  8. package/dist/collection/components/c-input/c-input.js.map +1 -1
  9. package/dist/collection/components/c-slider/c-slider.js +3 -3
  10. package/dist/collection/components/c-slider/c-slider.js.map +1 -1
  11. package/dist/collection/components/c-text-field/c-text-field.js +8 -6
  12. package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
  13. package/dist/components/c-autocomplete.js +1 -1
  14. package/dist/components/c-input.js +1 -1
  15. package/dist/components/c-select.js +1 -1
  16. package/dist/components/c-slider.js +3 -3
  17. package/dist/components/c-slider.js.map +1 -1
  18. package/dist/components/c-text-field.js +9 -7
  19. package/dist/components/c-text-field.js.map +1 -1
  20. package/dist/components/{p-aa75dd47.js → p-fc209a6c.js} +6 -8
  21. package/dist/components/p-fc209a6c.js.map +1 -0
  22. package/dist/csc-ui/csc-ui.esm.js +1 -1
  23. package/dist/csc-ui/csc-ui.esm.js.map +1 -1
  24. package/dist/csc-ui/{p-af181b9b.entry.js → p-1727bdd2.entry.js} +2 -2
  25. package/dist/csc-ui/p-1727bdd2.entry.js.map +1 -0
  26. package/dist/csc-ui/{p-23b2eb59.entry.js → p-bb0494ca.entry.js} +2 -2
  27. package/dist/csc-ui/p-bb0494ca.entry.js.map +1 -0
  28. package/dist/esm/c-autocomplete_34.entry.js +10 -9
  29. package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
  30. package/dist/esm/c-slider.entry.js +2 -2
  31. package/dist/esm/c-slider.entry.js.map +1 -1
  32. package/dist/esm/csc-ui.js +1 -1
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/types/additional-types.d.ts +14 -0
  35. package/dist/types/components/c-input/c-input.d.ts +1 -2
  36. package/dist/types/components/c-slider/c-slider.d.ts +1 -1
  37. package/dist/types/components/c-text-field/c-text-field.d.ts +2 -2
  38. package/dist/types/components.d.ts +14 -22
  39. package/package.json +3 -3
  40. package/vscode-data.json +4 -8
  41. package/dist/components/p-aa75dd47.js.map +0 -1
  42. package/dist/csc-ui/p-23b2eb59.entry.js.map +0 -1
  43. package/dist/csc-ui/p-af181b9b.entry.js.map +0 -1
@@ -1078,9 +1078,8 @@ const CInput = class {
1078
1078
  }
1079
1079
  };
1080
1080
  this.active = false;
1081
- this.autofocus = false;
1081
+ this.automaticFocus = false;
1082
1082
  this.disabled = false;
1083
- this.form = false;
1084
1083
  this.hideDetails = false;
1085
1084
  this.hint = '';
1086
1085
  this.hostId = undefined;
@@ -1132,7 +1131,7 @@ const CInput = class {
1132
1131
  }
1133
1132
  componentDidLoad() {
1134
1133
  var _a, _b, _c, _d;
1135
- if (this.autofocus) {
1134
+ if (this.automaticFocus) {
1136
1135
  setTimeout(() => {
1137
1136
  this._onFocus(false);
1138
1137
  }, 500);
@@ -1249,9 +1248,9 @@ const CInput = class {
1249
1248
  filled: !!this.value,
1250
1249
  [`c-input--${this.variant}`]: true,
1251
1250
  };
1252
- return (index.h(index.Host, { key: '8df4b85dd9057e4d954da4a657c6474aadb743a0', disabled: this.disabled }, index.h("div", { key: 'cb93dcf7f01f004481eb1a9bed4455cbca19dd4f', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: '7bb1b2c4d71754e485f8c57e4be4a0d1e21588ee', class: containerClasses }, index.h("div", { key: 'f2e61ecc315027879116e7c87231c4b4f65db093', class: "c-input__control" }, index.h("div", { key: '129cb0aa738383b33996fccb32e62b4377ed8239', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { key: '31549a2d3111589e030c594edbef9f5515bd5788', class: "c-input__field", style: {
1251
+ return (index.h(index.Host, { key: '3eaed9b18bae4e0d5891d3aaf05258a2f004d510', disabled: this.disabled }, index.h("div", { key: '91f379e0225ec22f735ecfb0027d69eeeed782d9', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: 'b88a244f97c62653ab6f26dbf907849bd1adbf4c', class: containerClasses }, index.h("div", { key: '85244770af3e46cbaf8da75304c2af39bccd32f8', class: "c-input__control" }, index.h("div", { key: '74e11458e36a8fc2efcafff74af9b6b00ed723ed', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { key: 'da43ec53065b0961700ae79f624a1652deaf895e', class: "c-input__field", style: {
1253
1252
  '--_c-input-label-position': this.preSlotWidth + 'px',
1254
- } }, index.h("slot", { key: 'f9b76639f024469385ff536df00ba2641a15e50d', name: "pre" }), this._renderLabel(), index.h("slot", { key: '585e92fb496018f945fcc024638c05e81805d84f' }))), this.variant === 'select' && index.h("slot", { key: '3174455400819721c9b56be54dd50ba661725b0d', name: "dropdown" }), !this.hideDetails && (index.h("c-message", { key: '3584e85a898d7705dbf6658ccd9a598029d870b6', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1253
+ } }, index.h("slot", { key: 'df38e347976436b599536f9d0ab5cbb5ac3fa545', name: "pre" }), this._renderLabel(), index.h("slot", { key: '6d3de5e123c8867a3ed0c11a63811245b68b03e3' }))), this.variant === 'select' && index.h("slot", { key: '86333618f43eba0c502219e856c7ed0be891a7b4', name: "dropdown" }), !this.hideDetails && (index.h("c-message", { key: 'd83e818f53579dfbf25d838f615d5479e8454705', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1255
1254
  }
1256
1255
  get el() { return index.getElement(this); }
1257
1256
  static get watchers() { return {
@@ -2521,8 +2520,8 @@ const CTextField = class {
2521
2520
  return;
2522
2521
  this.type = this.type === 'password' ? 'text' : 'password';
2523
2522
  };
2524
- this.autofocus = false;
2525
- this.autocapitalize = '';
2523
+ this.automaticFocus = false;
2524
+ this.automaticCapitalize = '';
2526
2525
  this.autocorrect = '';
2527
2526
  this.autocomplete = '';
2528
2527
  this.disabled = false;
@@ -2581,7 +2580,9 @@ const CTextField = class {
2581
2580
  onChange: this._handleChange,
2582
2581
  onBlur: this._handleBlur,
2583
2582
  },
2584
- input: Object.assign(Object.assign(Object.assign({ type: this.type, min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.autocapitalize && { autocapitalize: this.autocapitalize })), (!!this.autocorrect && { autocorrect: this.autocorrect })),
2583
+ input: Object.assign(Object.assign(Object.assign({ type: this.type, min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.automaticCapitalize && {
2584
+ autocapitalize: this.automaticCapitalize,
2585
+ })), (!!this.autocorrect && { autocorrect: this.autocorrect })),
2585
2586
  textArea: {
2586
2587
  rows: this.rows,
2587
2588
  },
@@ -2616,7 +2617,7 @@ const CTextField = class {
2616
2617
  return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, index.h("path", { d: this.passwordIcon })));
2617
2618
  }
2618
2619
  render() {
2619
- return (index.h(index.Host, { key: 'a39563142d4a2f2e1415eef938c18635997d23fe' }, index.h("c-input", { key: '25fc5c909c8ebedf42f2995601ffd1a921319281', autofocus: this.autofocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, index.h("slot", { key: '7d5b4b6002c1dce838fc96989c598913d6a35d94', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { key: '645c6982401d0a1baa7119eba9ce20a5c296eece', name: "post" }))));
2620
+ return (index.h(index.Host, { key: '30e52b03222db98c2e7ea02e9055340a6cb5478a' }, index.h("c-input", { key: '7e0016c74fa52d4157ad4d19bd382f3b946bbaaf', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, index.h("slot", { key: '42617ce4d85480bad4a4860cc89e9585f245854f', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { key: 'e1621de972ff312ff35967e3fb8ac08bffedf8bd', name: "post" }))));
2620
2621
  }
2621
2622
  static get formAssociated() { return true; }
2622
2623
  get hiddenEl() { return index.getElement(this); }