@ctrliq/quantic-components 1.63.1 → 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/alert/alert.d.ts +0 -2
- package/dist/alert/alert.js +12 -2
- 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 +34539 -34533
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +18232 -18232
- 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/toast/toast.d.ts +0 -2
- package/dist/toast/toast.js +12 -2
- package/dist/types/alert/alert.d.ts +0 -2
- package/dist/types/shared/shared.utils.d.ts +22 -0
- package/dist/types/toast/toast.d.ts +0 -2
- package/package.json +1 -1
package/dist/alert/alert.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type PropertyValues } from 'lit';
|
|
2
2
|
import { QuanticElement } from '../shared/quantic-element';
|
|
3
3
|
import { AlertType } from './index.constants';
|
|
4
|
-
import '../button';
|
|
5
|
-
import '../icon';
|
|
6
4
|
import type { ComponentMeta } from '../shared/meta.types';
|
|
7
5
|
export { AlertType } from './index.constants';
|
|
8
6
|
declare const Alert_base: typeof QuanticElement & import("../shared/shared.types").LitConstructor<import("../shared/auto-hide-empty-slots.mixin").AutoHideEmptySlotsInterface>;
|
package/dist/alert/alert.js
CHANGED
|
@@ -8,10 +8,20 @@ import { css, html, nothing } from 'lit';
|
|
|
8
8
|
import { quanticElement, QuanticElement } from '../shared/quantic-element';
|
|
9
9
|
import { AutoHideEmptySlotsMixin } from '../shared/auto-hide-empty-slots.mixin';
|
|
10
10
|
import { AlertType } from './index.constants';
|
|
11
|
-
import '../button';
|
|
12
|
-
import '../icon';
|
|
11
|
+
import { Button } from '../button';
|
|
12
|
+
import { LucideIconCircleCheck } from '../icon/__generated__/lucide/circle-check';
|
|
13
|
+
import { LucideIconCircleX } from '../icon/__generated__/lucide/circle-x';
|
|
14
|
+
import { LucideIconInfo } from '../icon/__generated__/lucide/info';
|
|
15
|
+
import { LucideIconTriangleAlert } from '../icon/__generated__/lucide/triangle-alert';
|
|
16
|
+
import { LucideIconX } from '../icon/__generated__/lucide/x';
|
|
13
17
|
import { event, prop } from '../shared/component-meta.decorators';
|
|
14
18
|
export { AlertType } from './index.constants';
|
|
19
|
+
Button.ensureDefined();
|
|
20
|
+
LucideIconCircleCheck.ensureDefined();
|
|
21
|
+
LucideIconCircleX.ensureDefined();
|
|
22
|
+
LucideIconInfo.ensureDefined();
|
|
23
|
+
LucideIconTriangleAlert.ensureDefined();
|
|
24
|
+
LucideIconX.ensureDefined();
|
|
15
25
|
let Alert = class Alert extends AutoHideEmptySlotsMixin(QuanticElement) {
|
|
16
26
|
constructor() {
|
|
17
27
|
super(...arguments);
|
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 }),
|