@vonage/vivid 5.30.0 → 5.31.0
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/bundled/definition25.cjs +4 -4
- package/bundled/definition25.js +4 -4
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +27 -1
- package/custom-elements.json +4413 -4437
- package/lib/rich-text-editor/rte/feature.d.ts +0 -1
- package/lib/rich-text-editor/rte/features/base.d.ts +9 -0
- package/lib/rich-text-editor/rte/features/bold.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/hard-break.d.ts +4 -0
- package/lib/rich-text-editor/rte/features/inline-image.d.ts +4 -0
- package/lib/rich-text-editor/rte/features/italic.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/link.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/list.d.ts +6 -0
- package/lib/rich-text-editor/rte/features/monospace.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/strikethrough.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +4 -1
- package/lib/rich-text-editor/rte/features/underline.d.ts +5 -1
- package/lib/rich-text-editor/rte/public-interface.d.ts +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/package.json +6 -6
- package/rich-text-editor/index.cjs +1 -1
- package/rich-text-editor/index.js +176 -160
- package/shared/foundation/vivid-element/vivid-element.browser-spec.d.ts +1 -0
- package/shared/foundation/vivid-element/vivid-element.d.ts +8 -8
- package/unbundled/definition2.cjs +4 -4
- package/unbundled/definition2.js +4 -4
- package/unbundled/definition55.cjs +1 -1
- package/unbundled/definition55.js +1 -1
- package/unbundled/definition63.cjs +73 -46
- package/unbundled/definition63.js +73 -46
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/vivid-element.cjs +54 -1
- package/unbundled/vivid-element.js +55 -2
- package/vivid.api.json +12 -12
|
@@ -46,5 +46,4 @@ export declare const getFeatureImpl: (facade: RteFeature) => RteFeatureImpl;
|
|
|
46
46
|
export declare const featureFacade: <T extends RteFeatureImpl, C extends Constructor<T>>(FeatureImpl: C) => {
|
|
47
47
|
new (...args: ConstructorParameters<C>): {};
|
|
48
48
|
};
|
|
49
|
-
export declare function getPublicInterface(facade: Constructor<RteFeature>): unknown;
|
|
50
49
|
export {};
|
|
@@ -33,4 +33,13 @@ export declare class RteBaseImpl extends RteFeatureImpl {
|
|
|
33
33
|
}
|
|
34
34
|
export declare const RteBase: {
|
|
35
35
|
new (config?: RteBaseConfig | undefined): {};
|
|
36
|
+
} & {
|
|
37
|
+
nodes: {
|
|
38
|
+
readonly doc: "doc";
|
|
39
|
+
readonly text: "text";
|
|
40
|
+
readonly paragraph: "paragraph";
|
|
41
|
+
readonly heading1: "heading1";
|
|
42
|
+
readonly heading2: "heading2";
|
|
43
|
+
readonly heading3: "heading3";
|
|
44
|
+
};
|
|
36
45
|
};
|
|
@@ -3,7 +3,7 @@ import { SchemaContribution, ToolbarItemContribution } from '../feature';
|
|
|
3
3
|
import { RteTextStyleFeatureImpl } from './internal/text-style';
|
|
4
4
|
export declare class RteBoldFeatureImpl extends RteTextStyleFeatureImpl {
|
|
5
5
|
name: string;
|
|
6
|
-
protected markName:
|
|
6
|
+
protected markName: "bold";
|
|
7
7
|
getSchema(): SchemaContribution[];
|
|
8
8
|
getPlugins(rte: RteInstanceImpl): {
|
|
9
9
|
priority: number;
|
|
@@ -14,4 +14,8 @@ export declare class RteBoldFeatureImpl extends RteTextStyleFeatureImpl {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const RteBoldFeature: {
|
|
16
16
|
new (config?: import('./internal/text-style').RteTextStyleConfig | undefined): {};
|
|
17
|
+
} & {
|
|
18
|
+
marks: {
|
|
19
|
+
readonly bold: "bold";
|
|
20
|
+
};
|
|
17
21
|
};
|
|
@@ -28,7 +28,7 @@ export declare class RteFontSizePickerFeatureImpl extends RteFeatureImpl {
|
|
|
28
28
|
priority: number;
|
|
29
29
|
featureName: string;
|
|
30
30
|
value: {
|
|
31
|
-
markName:
|
|
31
|
+
markName: "fontSize";
|
|
32
32
|
};
|
|
33
33
|
}[];
|
|
34
34
|
getSchema(): SchemaContribution[];
|
|
@@ -44,5 +44,9 @@ export declare class RteFontSizePickerFeatureImpl extends RteFeatureImpl {
|
|
|
44
44
|
}
|
|
45
45
|
export declare const RteFontSizePickerFeature: {
|
|
46
46
|
new (config: RteFontSizePickerConfig): {};
|
|
47
|
+
} & {
|
|
48
|
+
marks: {
|
|
49
|
+
readonly fontSize: "fontSize";
|
|
50
|
+
};
|
|
47
51
|
};
|
|
48
52
|
export {};
|
|
@@ -40,5 +40,9 @@ export declare class RteInlineImageFeatureImpl extends RteFeatureImpl {
|
|
|
40
40
|
}
|
|
41
41
|
export declare const RteInlineImageFeature: {
|
|
42
42
|
new (config?: RteInlineImageConfig | undefined): {};
|
|
43
|
+
} & {
|
|
44
|
+
nodes: {
|
|
45
|
+
readonly inlineImage: "inlineImage";
|
|
46
|
+
};
|
|
43
47
|
};
|
|
44
48
|
export {};
|
|
@@ -3,7 +3,7 @@ import { SchemaContribution, ToolbarItemContribution } from '../feature';
|
|
|
3
3
|
import { RteTextStyleFeatureImpl } from './internal/text-style';
|
|
4
4
|
export declare class RteItalicFeatureImpl extends RteTextStyleFeatureImpl {
|
|
5
5
|
name: string;
|
|
6
|
-
protected markName:
|
|
6
|
+
protected markName: "italic";
|
|
7
7
|
getSchema(): SchemaContribution[];
|
|
8
8
|
getPlugins(rte: RteInstanceImpl): {
|
|
9
9
|
priority: number;
|
|
@@ -14,4 +14,8 @@ export declare class RteItalicFeatureImpl extends RteTextStyleFeatureImpl {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const RteItalicFeature: {
|
|
16
16
|
new (config?: import('./internal/text-style').RteTextStyleConfig | undefined): {};
|
|
17
|
+
} & {
|
|
18
|
+
marks: {
|
|
19
|
+
readonly italic: "italic";
|
|
20
|
+
};
|
|
17
21
|
};
|
|
@@ -16,7 +16,7 @@ export declare class RteLinkFeatureImpl extends RteFeatureImpl {
|
|
|
16
16
|
priority: number;
|
|
17
17
|
featureName: string;
|
|
18
18
|
value: {
|
|
19
|
-
markName:
|
|
19
|
+
markName: "link";
|
|
20
20
|
};
|
|
21
21
|
}[];
|
|
22
22
|
getInputRules(): InputRuleContribution[];
|
|
@@ -29,5 +29,9 @@ export declare class RteLinkFeatureImpl extends RteFeatureImpl {
|
|
|
29
29
|
}
|
|
30
30
|
export declare const RteLinkFeature: {
|
|
31
31
|
new (): {};
|
|
32
|
+
} & {
|
|
33
|
+
marks: {
|
|
34
|
+
readonly link: "link";
|
|
35
|
+
};
|
|
32
36
|
};
|
|
33
37
|
export {};
|
|
@@ -21,4 +21,10 @@ export declare class RteListFeatureImpl extends RteFeatureImpl {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const RteListFeature: {
|
|
23
23
|
new (config: RteListConfig): {};
|
|
24
|
+
} & {
|
|
25
|
+
nodes: {
|
|
26
|
+
readonly listItem: "listItem";
|
|
27
|
+
readonly bulletList: "bulletList";
|
|
28
|
+
readonly numberedList: "numberedList";
|
|
29
|
+
};
|
|
24
30
|
};
|
|
@@ -3,7 +3,7 @@ import { SchemaContribution, ToolbarItemContribution } from '../feature';
|
|
|
3
3
|
import { RteTextStyleFeatureImpl } from './internal/text-style';
|
|
4
4
|
export declare class RteMonospaceFeatureImpl extends RteTextStyleFeatureImpl {
|
|
5
5
|
name: string;
|
|
6
|
-
protected markName:
|
|
6
|
+
protected markName: "monospace";
|
|
7
7
|
getStyles(): {
|
|
8
8
|
priority: number;
|
|
9
9
|
featureName: string;
|
|
@@ -19,4 +19,8 @@ export declare class RteMonospaceFeatureImpl extends RteTextStyleFeatureImpl {
|
|
|
19
19
|
}
|
|
20
20
|
export declare const RteMonospaceFeature: {
|
|
21
21
|
new (config?: import('./internal/text-style').RteTextStyleConfig | undefined): {};
|
|
22
|
+
} & {
|
|
23
|
+
marks: {
|
|
24
|
+
readonly monospace: "monospace";
|
|
25
|
+
};
|
|
22
26
|
};
|
|
@@ -3,7 +3,7 @@ import { SchemaContribution, ToolbarItemContribution } from '../feature';
|
|
|
3
3
|
import { RteTextStyleFeatureImpl } from './internal/text-style';
|
|
4
4
|
export declare class RteStrikethroughFeatureImpl extends RteTextStyleFeatureImpl {
|
|
5
5
|
name: string;
|
|
6
|
-
protected markName:
|
|
6
|
+
protected markName: "strikethrough";
|
|
7
7
|
getSchema(): SchemaContribution[];
|
|
8
8
|
getPlugins(rte: RteInstanceImpl): {
|
|
9
9
|
priority: number;
|
|
@@ -14,4 +14,8 @@ export declare class RteStrikethroughFeatureImpl extends RteTextStyleFeatureImpl
|
|
|
14
14
|
}
|
|
15
15
|
export declare const RteStrikethroughFeature: {
|
|
16
16
|
new (config?: import('./internal/text-style').RteTextStyleConfig | undefined): {};
|
|
17
|
+
} & {
|
|
18
|
+
marks: {
|
|
19
|
+
readonly strikethrough: "strikethrough";
|
|
20
|
+
};
|
|
17
21
|
};
|
|
@@ -18,7 +18,7 @@ export declare class RteTextColorPickerFeatureImpl extends RteFeatureImpl {
|
|
|
18
18
|
priority: number;
|
|
19
19
|
featureName: string;
|
|
20
20
|
value: {
|
|
21
|
-
markName:
|
|
21
|
+
markName: "textColor";
|
|
22
22
|
};
|
|
23
23
|
}[];
|
|
24
24
|
getSchema(): SchemaContribution[];
|
|
@@ -29,6 +29,9 @@ export declare class RteTextColorPickerFeatureImpl extends RteFeatureImpl {
|
|
|
29
29
|
export declare const RteTextColorPickerFeature: {
|
|
30
30
|
new (config?: RteTextColorPickerConfig | undefined): {};
|
|
31
31
|
} & {
|
|
32
|
+
marks: {
|
|
33
|
+
readonly textColor: "textColor";
|
|
34
|
+
};
|
|
32
35
|
normalizeCssColor: (color: string) => string | null;
|
|
33
36
|
};
|
|
34
37
|
export {};
|
|
@@ -3,7 +3,7 @@ import { SchemaContribution, ToolbarItemContribution } from '../feature';
|
|
|
3
3
|
import { RteTextStyleFeatureImpl } from './internal/text-style';
|
|
4
4
|
export declare class RteUnderlineFeatureImpl extends RteTextStyleFeatureImpl {
|
|
5
5
|
name: string;
|
|
6
|
-
protected markName:
|
|
6
|
+
protected markName: "underline";
|
|
7
7
|
getSchema(): SchemaContribution[];
|
|
8
8
|
getPlugins(rte: RteInstanceImpl): {
|
|
9
9
|
priority: number;
|
|
@@ -14,4 +14,8 @@ export declare class RteUnderlineFeatureImpl extends RteTextStyleFeatureImpl {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const RteUnderlineFeature: {
|
|
16
16
|
new (config?: import('./internal/text-style').RteTextStyleConfig | undefined): {};
|
|
17
|
+
} & {
|
|
18
|
+
marks: {
|
|
19
|
+
readonly underline: "underline";
|
|
20
|
+
};
|
|
17
21
|
};
|
|
@@ -4,7 +4,6 @@ import { RteFeature } from './feature';
|
|
|
4
4
|
import { RteToolbarFeature } from './features/toolbar';
|
|
5
5
|
import { RteCharacterCountFeature } from './features/character-count';
|
|
6
6
|
import { RteScrollValue } from './features/internal/core';
|
|
7
|
-
export declare function getPublicInterface(facade: Constructor<RteFeature>): unknown;
|
|
8
7
|
export interface RteBasePublicInterface {
|
|
9
8
|
disabled: boolean;
|
|
10
9
|
scrollThreshold: RteScrollValue | undefined;
|
|
@@ -20,3 +19,4 @@ export interface RteCharacterCountPublicInterface {
|
|
|
20
19
|
readonly limit: number | undefined;
|
|
21
20
|
}
|
|
22
21
|
export declare function getPublicInterface(facade: typeof RteCharacterCountFeature): RteCharacterCountPublicInterface;
|
|
22
|
+
export declare function getPublicInterface(facade: Constructor<RteFeature>): unknown;
|
package/number-field/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("../bundled/localized.cjs"),t=require("../bundled/vivid-element.cjs"),n=require("../bundled/slotted.cjs"),r=require("../bundled/ref.cjs"),i=require("../bundled/when.cjs"),a=require("../bundled/definition.cjs"),o=require("../bundled/enums.cjs"),s=require("../bundled/decorate.cjs"),c=require("../bundled/class-names.cjs"),l=require("../bundled/key-codes.cjs"),u=require("../bundled/definition2.cjs"),d=require("../bundled/affix.cjs"),f=require("../bundled/delegates-aria.cjs"),p=require("../bundled/component-enum.cjs"),m=require("../bundled/form-associated.cjs"),h=require("../bundled/definition5.cjs"),g=require("../bundled/feedback-message.cjs"),_=require("../bundled/definition10.cjs"),v=require("../bundled/form-element.cjs"),y=require("../bundled/with-contextual-help.cjs"),b=require("../bundled/with-error-text.cjs"),x=require("../bundled/with-success-text.cjs"),S=require("../bundled/mixins.cjs"),C=require("../bundled/definition20.cjs"),w=require("../bundled/divider.cjs");var T=`.label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:"";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:"";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}.base{--_text-field-gutter-end:70px}.base.no-steppers{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5)}.base.no-steppers.size-condensed{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{z-index:1;display:flex;position:absolute;right:3px}.control-buttons[hidden]{display:none}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}`,E=p.t([`fieldset`,`ghost`],`fieldset`),D={up:1,down:-1},O=1;function k(e,t){let n=e._numericStep,r=parseFloat(e.value),i=isNaN(r)?e.min>0?e.min:e.max<0?e.max:e.min?0:t*n:r+t*n;e.value=Number(i.toFixed(12)).toString(),e._updatedValueAnnouncement=e.locale.numberField.updatedValueAnnouncement(e._presentationValue)}var A={toView(e){return e===`any`?`any`:t.h.toView(e)},fromView(e){return typeof e==`string`&&e.trim().toLowerCase()===`any`?`any`:t.h.fromView(e)}},j=e=>{let t=e.source;return{invalidCharacters:RegExp(`[^0-9\\-+e${t}]`,`g`),additionalDecimalSeparators:RegExp(`(?<=${t}.*)${t}`,`g`),trailingDecimalSeparator:RegExp(`${t}$`),decimalSeparator:e}},M=j(/\./),N=j(/,/),P=/^-?((\d*\.\d+)|(\d+))$/,F=class extends y.t(S.t(b.t(x.t(v.t(d.t(e.t(f.t(m.n(t.t))))))))){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.readOnly=!1,this.autofocus=!1,this.step=1,this.noSteppers=!1,this.isUserInput=!1,this._presentationValue=``,this._updatedValueAnnouncement=``,this.incrementButtonAriaLabel=null,this.decrementButtonAriaLabel=null}stepChanged(e,t){this.proxy.setAttribute(`step`,t===`any`?`any`:Number.isFinite(t)?t.toString():``),this.validate()}get _hasSteppers(){return!this.noSteppers&&this.step!==`any`}get _numericStep(){return this.step===`any`?O:this.step}maxChanged(e,t){this.max=Math.max(t,this.min??t),this.proxy.max=this.max.toString(),this.validate()}minChanged(e,t){this.min=Math.min(t,this.max??t),this.proxy.min=this.min.toString(),this.validate()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=P.test(t)?t:``,t===this.value&&(this.control&&!this.isUserInput&&(this._presentationValue=this.#e(this.value)),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&(this.$emit(`input`),this.$emit(`change`)))}get _numberPatterns(){return this.locale.common.useCommaAsDecimalSeparator?N:M}#e(e){return e.replace(`.`,this.locale.common.useCommaAsDecimalSeparator?`,`:`.`)}#t(e){return e.replace(this._numberPatterns.invalidCharacters,``).replace(this._numberPatterns.additionalDecimalSeparators,``)}#n(e){let t=e.replace(this._numberPatterns.trailingDecimalSeparator,``).replace(this._numberPatterns.decimalSeparator,`.`);return P.test(t)?t:``}validate(){super.validate(this.control)}stepUp(){k(this,D.up)}stepDown(){k(this,D.down)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,`number`),this.validate(),this._presentationValue=this.#e(this.value),this.autofocus&&t.M.enqueue(()=>{this.focus()})}select(){this.control.select(),this.$emit(`select`)}handleTextInput(){this._presentationValue=this.#t(this.control.value),this.control.value!==this._presentationValue&&(this.control.value=this._presentationValue),this.isUserInput=!0,this.value=this.#n(this._presentationValue),this.isUserInput=!1}handleChange(){this.$emit(`change`)}handleKeyDown(e){switch(e.key){case l.i:return this.stepUp(),!1;case l.t:return this.stepDown(),!1}return!0}};s.t([t.m({attribute:`readonly`,mode:`boolean`})],F.prototype,`readOnly`,void 0),s.t([t.m({mode:`boolean`})],F.prototype,`autofocus`,void 0),s.t([t.m],F.prototype,`placeholder`,void 0),s.t([t.m],F.prototype,`list`,void 0),s.t([t.m({converter:t.h})],F.prototype,`maxlength`,void 0),s.t([t.m({converter:t.h})],F.prototype,`minlength`,void 0),s.t([t.m({converter:t.h})],F.prototype,`size`,void 0),s.t([t.m()],F.prototype,`scale`,void 0),s.t([t.m({converter:A})],F.prototype,`step`,void 0),s.t([t.m({attribute:`no-steppers`,mode:`boolean`})],F.prototype,`noSteppers`,void 0),s.t([t.m({converter:t.h})],F.prototype,`max`,void 0),s.t([t.m({converter:t.h})],F.prototype,`min`,void 0),s.t([t.A],F.prototype,`defaultSlottedNodes`,void 0),s.t([t.A],F.prototype,`_presentationValue`,void 0),s.t([t.A],F.prototype,`_updatedValueAnnouncement`,void 0),s.t([t.m({attribute:`increment-button-aria-label`})],F.prototype,`incrementButtonAriaLabel`,void 0),s.t([t.m({attribute:`decrement-button-aria-label`})],F.prototype,`decrementButtonAriaLabel`,void 0),s.t([t.m],F.prototype,`appearance`,void 0),s.t([t.m],F.prototype,`shape`,void 0),s.t([t.m],F.prototype,`autoComplete`,void 0);function I(){return t.p` <label for="control" class="label">
|
|
1
|
+
const e=require("../bundled/localized.cjs"),t=require("../bundled/vivid-element.cjs"),n=require("../bundled/slotted.cjs"),r=require("../bundled/ref.cjs"),i=require("../bundled/when.cjs"),a=require("../bundled/definition.cjs"),o=require("../bundled/enums.cjs"),s=require("../bundled/decorate.cjs"),c=require("../bundled/class-names.cjs"),l=require("../bundled/key-codes.cjs"),u=require("../bundled/definition2.cjs"),d=require("../bundled/affix.cjs"),f=require("../bundled/delegates-aria.cjs"),p=require("../bundled/component-enum.cjs"),m=require("../bundled/form-associated.cjs"),h=require("../bundled/definition5.cjs"),g=require("../bundled/feedback-message.cjs"),_=require("../bundled/definition10.cjs"),v=require("../bundled/form-element.cjs"),y=require("../bundled/with-contextual-help.cjs"),b=require("../bundled/with-error-text.cjs"),x=require("../bundled/with-success-text.cjs"),S=require("../bundled/mixins.cjs"),C=require("../bundled/definition20.cjs"),w=require("../bundled/divider.cjs");var T=`.label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);max-inline-size:var(--text-field-input-inline-size,auto);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:"";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:"";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}.base{--_text-field-gutter-end:70px}.base.no-steppers{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5)}.base.no-steppers.size-condensed{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{z-index:1;display:flex;position:absolute;right:3px}.control-buttons[hidden]{display:none}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}.fieldset{max-inline-size:var(--number-field-input-inline-size,auto)}`,E=p.t([`fieldset`,`ghost`],`fieldset`),D={up:1,down:-1},O=1;function k(e,t){let n=e._numericStep,r=parseFloat(e.value),i=isNaN(r)?e.min>0?e.min:e.max<0?e.max:e.min?0:t*n:r+t*n;e.value=Number(i.toFixed(12)).toString(),e._updatedValueAnnouncement=e.locale.numberField.updatedValueAnnouncement(e._presentationValue)}var A={toView(e){return e===`any`?`any`:t.h.toView(e)},fromView(e){return typeof e==`string`&&e.trim().toLowerCase()===`any`?`any`:t.h.fromView(e)}},j=e=>{let t=e.source;return{invalidCharacters:RegExp(`[^0-9\\-+e${t}]`,`g`),additionalDecimalSeparators:RegExp(`(?<=${t}.*)${t}`,`g`),trailingDecimalSeparator:RegExp(`${t}$`),decimalSeparator:e}},M=j(/\./),N=j(/,/),P=/^-?((\d*\.\d+)|(\d+))$/,F=class extends y.t(S.t(b.t(x.t(v.t(d.t(e.t(f.t(m.n(t.t))))))))){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.readOnly=!1,this.autofocus=!1,this.step=1,this.noSteppers=!1,this.isUserInput=!1,this._presentationValue=``,this._updatedValueAnnouncement=``,this.incrementButtonAriaLabel=null,this.decrementButtonAriaLabel=null}stepChanged(e,t){this.proxy.setAttribute(`step`,t===`any`?`any`:Number.isFinite(t)?t.toString():``),this.validate()}get _hasSteppers(){return!this.noSteppers&&this.step!==`any`}get _numericStep(){return this.step===`any`?O:this.step}maxChanged(e,t){this.max=Math.max(t,this.min??t),this.proxy.max=this.max.toString(),this.validate()}minChanged(e,t){this.min=Math.min(t,this.max??t),this.proxy.min=this.min.toString(),this.validate()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=P.test(t)?t:``,t===this.value&&(this.control&&!this.isUserInput&&(this._presentationValue=this.#e(this.value)),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&(this.$emit(`input`),this.$emit(`change`)))}get _numberPatterns(){return this.locale.common.useCommaAsDecimalSeparator?N:M}#e(e){return e.replace(`.`,this.locale.common.useCommaAsDecimalSeparator?`,`:`.`)}#t(e){return e.replace(this._numberPatterns.invalidCharacters,``).replace(this._numberPatterns.additionalDecimalSeparators,``)}#n(e){let t=e.replace(this._numberPatterns.trailingDecimalSeparator,``).replace(this._numberPatterns.decimalSeparator,`.`);return P.test(t)?t:``}validate(){super.validate(this.control)}stepUp(){k(this,D.up)}stepDown(){k(this,D.down)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,`number`),this.validate(),this._presentationValue=this.#e(this.value),this.autofocus&&t.M.enqueue(()=>{this.focus()})}select(){this.control.select(),this.$emit(`select`)}handleTextInput(){this._presentationValue=this.#t(this.control.value),this.control.value!==this._presentationValue&&(this.control.value=this._presentationValue),this.isUserInput=!0,this.value=this.#n(this._presentationValue),this.isUserInput=!1}handleChange(){this.$emit(`change`)}handleKeyDown(e){switch(e.key){case l.i:return this.stepUp(),!1;case l.t:return this.stepDown(),!1}return!0}};s.t([t.m({attribute:`readonly`,mode:`boolean`})],F.prototype,`readOnly`,void 0),s.t([t.m({mode:`boolean`})],F.prototype,`autofocus`,void 0),s.t([t.m],F.prototype,`placeholder`,void 0),s.t([t.m],F.prototype,`list`,void 0),s.t([t.m({converter:t.h})],F.prototype,`maxlength`,void 0),s.t([t.m({converter:t.h})],F.prototype,`minlength`,void 0),s.t([t.m({converter:t.h})],F.prototype,`size`,void 0),s.t([t.m()],F.prototype,`scale`,void 0),s.t([t.m({converter:A})],F.prototype,`step`,void 0),s.t([t.m({attribute:`no-steppers`,mode:`boolean`})],F.prototype,`noSteppers`,void 0),s.t([t.m({converter:t.h})],F.prototype,`max`,void 0),s.t([t.m({converter:t.h})],F.prototype,`min`,void 0),s.t([t.A],F.prototype,`defaultSlottedNodes`,void 0),s.t([t.A],F.prototype,`_presentationValue`,void 0),s.t([t.A],F.prototype,`_updatedValueAnnouncement`,void 0),s.t([t.m({attribute:`increment-button-aria-label`})],F.prototype,`incrementButtonAriaLabel`,void 0),s.t([t.m({attribute:`decrement-button-aria-label`})],F.prototype,`decrementButtonAriaLabel`,void 0),s.t([t.m],F.prototype,`appearance`,void 0),s.t([t.m],F.prototype,`shape`,void 0),s.t([t.m],F.prototype,`autoComplete`,void 0);function I(){return t.p` <label for="control" class="label">
|
|
2
2
|
${e=>e.label}
|
|
3
3
|
</label>`}function L(e){return e.shape===o.i.Pill?o.i.Pill:null}function R(e){return e.disabled||e.readOnly?`-1`:null}function z(e){let n=e.tagFor(h.i),r=e.tagFor(w.t);return t.p`
|
|
4
4
|
<div class="control-buttons"
|
package/number-field/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import { t as N } from "../bundled/mixins.js";
|
|
|
24
24
|
import { t as P } from "../bundled/definition20.js";
|
|
25
25
|
import { t as F } from "../bundled/divider.js";
|
|
26
26
|
//#region src/lib/number-field/number-field.scss?inline
|
|
27
|
-
var I = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}.base{--_text-field-gutter-end:70px}.base.no-steppers{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5)}.base.no-steppers.size-condensed{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{z-index:1;display:flex;position:absolute;right:3px}.control-buttons[hidden]{display:none}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}", L = C(["fieldset", "ghost"], "fieldset"), R = {
|
|
27
|
+
var I = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);max-inline-size:var(--text-field-input-inline-size,auto);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}.base{--_text-field-gutter-end:70px}.base.no-steppers{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5)}.base.no-steppers.size-condensed{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{z-index:1;display:flex;position:absolute;right:3px}.control-buttons[hidden]{display:none}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}.fieldset{max-inline-size:var(--number-field-input-inline-size,auto)}", L = C(["fieldset", "ghost"], "fieldset"), R = {
|
|
28
28
|
up: 1,
|
|
29
29
|
down: -1
|
|
30
30
|
}, z = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.31.0",
|
|
4
4
|
"homepage": "https://apps.vivid.vonage.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/Vonage/vivid-3/issues"
|
|
@@ -90,22 +90,22 @@
|
|
|
90
90
|
"vitest-axe": "^0.1.0",
|
|
91
91
|
"vitest-fetch-mock": "^0.4.5",
|
|
92
92
|
"wait-on": "^9.5.1",
|
|
93
|
+
"@repo/browser-tests": "1.0.0",
|
|
94
|
+
"@repo/cem-analyzer-plugins": "1.0.0",
|
|
93
95
|
"@repo/eslint-config": "1.0.0",
|
|
94
96
|
"@repo/eslint-plugin-repo": "1.0.0",
|
|
95
|
-
"@repo/cem-analyzer-plugins": "1.0.0",
|
|
96
97
|
"@repo/internal-test-utils": "1.0.0",
|
|
98
|
+
"@repo/metadata-extractor": "1.0.0",
|
|
97
99
|
"@repo/sass": "1.0.0",
|
|
98
100
|
"@repo/stylelint-config": "1.0.0",
|
|
99
101
|
"@repo/styles": "1.0.0",
|
|
100
102
|
"@repo/tokens": "1.0.0",
|
|
101
103
|
"@repo/tools": "1.0.0",
|
|
104
|
+
"@repo/typescript-config": "1.0.0",
|
|
102
105
|
"@repo/vite-config": "1.0.0",
|
|
103
106
|
"@repo/vitest-config": "1.0.0",
|
|
104
|
-
"@repo/typescript-config": "1.0.0",
|
|
105
107
|
"@repo/vvd-jsx": "1.0.0",
|
|
106
|
-
"@vonage/vivid-icons": "4.13.0"
|
|
107
|
-
"@repo/browser-tests": "1.0.0",
|
|
108
|
-
"@repo/metadata-extractor": "1.0.0"
|
|
108
|
+
"@vonage/vivid-icons": "4.13.0"
|
|
109
109
|
},
|
|
110
110
|
"customElements": "custom-elements.json",
|
|
111
111
|
"scripts": {
|