@ctrliq/quantic-components 1.63.2 → 1.63.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/code-input/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/dist/meta/index.js.map +1 -1
- package/dist/number-input/index.js +3 -7
- package/dist/quantic-components.js +41 -47
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +96 -96
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/select/index.js +4 -8
- package/dist/shared/shared.utils.d.ts +22 -0
- package/dist/shared/shared.utils.js +27 -0
- package/dist/shared/shared.utils.test.js +39 -2
- package/dist/text-input/index.js +4 -11
- package/dist/textarea/index.js +4 -10
- package/dist/types/shared/shared.utils.d.ts +22 -0
- package/package.json +1 -1
package/dist/code-input/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { quanticElement, QuanticElement } from '../shared/quantic-element';
|
|
|
11
11
|
import { A11yAttributesMixin } from '../shared/a11y-attributes.mixin';
|
|
12
12
|
import { CodeInputSize } from './index.constants';
|
|
13
13
|
import { event, prop } from '../shared/component-meta.decorators';
|
|
14
|
+
import { emitValueChanged } from '../shared/shared.utils';
|
|
14
15
|
export { CodeInputSize } from './index.constants';
|
|
15
16
|
let CodeInput = class CodeInput extends A11yAttributesMixin(QuanticElement) {
|
|
16
17
|
constructor() {
|
|
@@ -43,18 +44,10 @@ let CodeInput = class CodeInput extends A11yAttributesMixin(QuanticElement) {
|
|
|
43
44
|
this.updateValidity();
|
|
44
45
|
this.lineCount = Math.max(1, this.value.split('\n').length);
|
|
45
46
|
}
|
|
47
|
+
emitValueChanged(this, changedProperties, this.value);
|
|
46
48
|
}
|
|
47
49
|
handleInput(e) {
|
|
48
|
-
|
|
49
|
-
this.value = textarea.value;
|
|
50
|
-
this.lineCount = Math.max(1, this.value.split('\n').length);
|
|
51
|
-
this.internals.setFormValue(this.value);
|
|
52
|
-
this.updateValidity();
|
|
53
|
-
this.dispatchEvent(new CustomEvent('value-changed', {
|
|
54
|
-
detail: { value: this.value },
|
|
55
|
-
bubbles: true,
|
|
56
|
-
composed: true,
|
|
57
|
-
}));
|
|
50
|
+
this.value = e.target.value;
|
|
58
51
|
}
|
|
59
52
|
forwardNative(e) {
|
|
60
53
|
const baseInit = {
|
|
@@ -410,7 +403,7 @@ __decorate([
|
|
|
410
403
|
], CodeInput.prototype, "lineCount", void 0);
|
|
411
404
|
CodeInput = __decorate([
|
|
412
405
|
event('value-changed', {
|
|
413
|
-
description:
|
|
406
|
+
description: 'Fired whenever the value changes, from user input or a programmatic update. Not fired on initial render.',
|
|
414
407
|
detail: '{ value: string }',
|
|
415
408
|
}),
|
|
416
409
|
event('change', { forwarded: true }),
|