@public-ui/hydrate 3.0.3-rc.1 → 3.0.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.
package/dist/index.js CHANGED
@@ -146,7 +146,7 @@ function _mergeNamespaces(n, m) {
146
146
 
147
147
  const NAMESPACE = 'kolibri';
148
148
  const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, updatable: true};
149
- const Env = /* kolibri */ {"kolibriVersion":"3.0.3-rc.1"};
149
+ const Env = /* kolibri */ {"kolibriVersion":"3.0.3"};
150
150
 
151
151
  function getDefaultExportFromCjs (x) {
152
152
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -21064,7 +21064,7 @@ class KolInputCheckbox {
21064
21064
  icon: this.getIcon(),
21065
21065
  inputProps: Object.assign(Object.assign({ class: clsx({
21066
21066
  'visually-hidden': this.state._variant === 'button',
21067
- }), ref: this.catchRef }, this.controller.onFacade), { onInput: this.onInput, onChange: this.onChange, onFocus: (event) => {
21067
+ }), ref: this.catchRef }, this.controller.onFacade), { onInput: this.onInput, onChange: this.onChange, onKeyDown: this.onKeyDown.bind(this), onFocus: (event) => {
21068
21068
  this.controller.onFacade.onFocus(event);
21069
21069
  this.inputHasFocus = true;
21070
21070
  }, onBlur: (event) => {
@@ -21081,7 +21081,7 @@ class KolInputCheckbox {
21081
21081
  return this.state._icons.unchecked;
21082
21082
  }
21083
21083
  render() {
21084
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '9c94735d81b484155203beaf1bd372840add4b64' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: 'db8bbc79ad4799844df8147d21f5a5fffa501189' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '4e8a587d840a517e140e97c123317058bb1a9e90' }, this.getInputProps())))));
21084
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '5cc08875c4dade3ab178977abc40b97d48773003' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: '2e293de0863f42cbfddcdd6663a6c8fce78995ca' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '9693cfae31139644147ec96b306f6e0a9fcbd058' }, this.getInputProps())))));
21085
21085
  }
21086
21086
  constructor(hostRef) {
21087
21087
  registerInstance(this, hostRef);
@@ -21125,6 +21125,12 @@ class KolInputCheckbox {
21125
21125
  this.onChange = (event) => {
21126
21126
  this.controller.onFacade.onChange(event, this.getModelValue());
21127
21127
  };
21128
+ this.onKeyDown = (event) => {
21129
+ if (event.code === 'Enter' || event.code === 'NumpadEnter') {
21130
+ propagateSubmitEventToForm({
21131
+ form: this.host});
21132
+ }
21133
+ };
21128
21134
  this.controller = new InputCheckboxController(this, 'checkbox', this.host);
21129
21135
  }
21130
21136
  showAsAlert() {
package/dist/index.mjs CHANGED
@@ -144,7 +144,7 @@ function _mergeNamespaces(n, m) {
144
144
 
145
145
  const NAMESPACE = 'kolibri';
146
146
  const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, updatable: true};
147
- const Env = /* kolibri */ {"kolibriVersion":"3.0.3-rc.1"};
147
+ const Env = /* kolibri */ {"kolibriVersion":"3.0.3"};
148
148
 
149
149
  function getDefaultExportFromCjs (x) {
150
150
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -21062,7 +21062,7 @@ class KolInputCheckbox {
21062
21062
  icon: this.getIcon(),
21063
21063
  inputProps: Object.assign(Object.assign({ class: clsx({
21064
21064
  'visually-hidden': this.state._variant === 'button',
21065
- }), ref: this.catchRef }, this.controller.onFacade), { onInput: this.onInput, onChange: this.onChange, onFocus: (event) => {
21065
+ }), ref: this.catchRef }, this.controller.onFacade), { onInput: this.onInput, onChange: this.onChange, onKeyDown: this.onKeyDown.bind(this), onFocus: (event) => {
21066
21066
  this.controller.onFacade.onFocus(event);
21067
21067
  this.inputHasFocus = true;
21068
21068
  }, onBlur: (event) => {
@@ -21079,7 +21079,7 @@ class KolInputCheckbox {
21079
21079
  return this.state._icons.unchecked;
21080
21080
  }
21081
21081
  render() {
21082
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '9c94735d81b484155203beaf1bd372840add4b64' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: 'db8bbc79ad4799844df8147d21f5a5fffa501189' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '4e8a587d840a517e140e97c123317058bb1a9e90' }, this.getInputProps())))));
21082
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '5cc08875c4dade3ab178977abc40b97d48773003' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: '2e293de0863f42cbfddcdd6663a6c8fce78995ca' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '9693cfae31139644147ec96b306f6e0a9fcbd058' }, this.getInputProps())))));
21083
21083
  }
21084
21084
  constructor(hostRef) {
21085
21085
  registerInstance(this, hostRef);
@@ -21123,6 +21123,12 @@ class KolInputCheckbox {
21123
21123
  this.onChange = (event) => {
21124
21124
  this.controller.onFacade.onChange(event, this.getModelValue());
21125
21125
  };
21126
+ this.onKeyDown = (event) => {
21127
+ if (event.code === 'Enter' || event.code === 'NumpadEnter') {
21128
+ propagateSubmitEventToForm({
21129
+ form: this.host});
21130
+ }
21131
+ };
21126
21132
  this.controller = new InputCheckboxController(this, 'checkbox', this.host);
21127
21133
  }
21128
21134
  showAsAlert() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/hydrate",
3
- "version": "3.0.3-rc.1",
3
+ "version": "3.0.3",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -46,10 +46,10 @@
46
46
  ],
47
47
  "devDependencies": {
48
48
  "rimraf": "6.0.1",
49
- "@public-ui/components": "3.0.3-rc.1"
49
+ "@public-ui/components": "3.0.3"
50
50
  },
51
51
  "peerDependencies": {
52
- "@public-ui/components": "3.0.3-rc.1"
52
+ "@public-ui/components": "3.0.3"
53
53
  },
54
54
  "sideEffects": false,
55
55
  "type": "commonjs",