@api-client/ui 0.3.0 → 0.3.2

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.
@@ -157,7 +157,7 @@ export default abstract class Input extends UiElement {
157
157
  *
158
158
  * Possible values are:
159
159
  *
160
- * - `off` or `none`: No autocapitalization is applied (all letters default to lowercase)
160
+ * - `off` or `none`: No auto-capitalization is applied (all letters default to lowercase)
161
161
  * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;
162
162
  * all other letters default to lowercase
163
163
  * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase
@@ -326,7 +326,7 @@ export default abstract class Input extends UiElement {
326
326
  */
327
327
  focus(): void;
328
328
  /**
329
- * Unfocuses the text field.
329
+ * Un-focuses the text field.
330
330
  */
331
331
  blur(): void;
332
332
  /**
@@ -410,6 +410,7 @@ export default abstract class Input extends UiElement {
410
410
  handleClick(): void;
411
411
  protected handleFocus(): void;
412
412
  protected handleBlur(): void;
413
+ private checkNativeValidity;
413
414
  private checkValidityAndDispatch;
414
415
  /**
415
416
  * @returns `true` when the label is in resting state.
@@ -436,7 +437,7 @@ export default abstract class Input extends UiElement {
436
437
  protected renderHighlight(): TemplateResult;
437
438
  protected abstract renderInput(): TemplateResult;
438
439
  protected renderSupportingText(): TemplateResult;
439
- protected renderSupportingTextValue(): TemplateResult;
440
+ protected renderSupportingTextValue(): TemplateResult | typeof nothing;
440
441
  protected renderCounter(): TemplateResult;
441
442
  protected renderPasswordControl(): TemplateResult | typeof nothing;
442
443
  protected renderDataList(): TemplateResult | typeof nothing;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/md/input/Input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAInE,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;A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AAI,MAAM;IAKrC,SAAS,CAAC,QAAQ,IAAI,OAAO;IAI7B,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAc9C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAO9C,SAAS,CAAC,UAAU,IAAI,OAAO;IAI/B,SAAS,CAAC,cAAc,IAAI,MAAM;IAKlC,SAAS,CAAC,kBAAkB,IAAI,MAAM;IAiBtC,SAAS,KAAK,aAAa,IAAI,mBAAmB,CAOjD;cAEkB,MAAM,IAAI,cAAc;IAsB3C,SAAS,CAAC,YAAY,IAAI,cAAc;IAUxC,SAAS,CAAC,YAAY,IAAI,cAAc;IAUxC,SAAS,CAAC,UAAU,IAAI,cAAc;IAItC,SAAS,CAAC,WAAW,IAAI,cAAc;IAQvC,SAAS,CAAC,eAAe,IAAI,cAAc;IAI3C,SAAS,CAAC,QAAQ,CAAC,WAAW,IAAI,cAAc;IAEhD,SAAS,CAAC,oBAAoB,IAAI,cAAc;IAIhD,SAAS,CAAC,yBAAyB,IAAI,cAAc,GAAG,OAAO,OAAO;IAiBtE,SAAS,CAAC,aAAa,IAAI,cAAc;IAQzC,SAAS,CAAC,qBAAqB,IAAI,cAAc,GAAG,OAAO,OAAO;IAkBlE,SAAS,CAAC,cAAc,IAAI,cAAc,GAAG,OAAO,OAAO;CAO5D"}
@@ -510,7 +510,7 @@ let Input = (() => {
510
510
  *
511
511
  * Possible values are:
512
512
  *
513
- * - `off` or `none`: No autocapitalization is applied (all letters default to lowercase)
513
+ * - `off` or `none`: No auto-capitalization is applied (all letters default to lowercase)
514
514
  * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;
515
515
  * all other letters default to lowercase
516
516
  * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase
@@ -531,7 +531,7 @@ let Input = (() => {
531
531
  *
532
532
  * Possible values are:
533
533
  *
534
- * - `off` or `none`: No autocapitalization is applied (all letters default to lowercase)
534
+ * - `off` or `none`: No auto-capitalization is applied (all letters default to lowercase)
535
535
  * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;
536
536
  * all other letters default to lowercase
537
537
  * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase
@@ -905,7 +905,7 @@ let Input = (() => {
905
905
  this.input?.focus();
906
906
  }
907
907
  /**
908
- * Unfocuses the text field.
908
+ * Un-focuses the text field.
909
909
  */
910
910
  blur() {
911
911
  this.input?.blur();
@@ -952,7 +952,7 @@ let Input = (() => {
952
952
  return this.getError() && !!this.getErrorText() && !this.refreshErrorAlert;
953
953
  }
954
954
  getErrorText() {
955
- return this.invalid ? this.invalidText : this.nativeErrorText;
955
+ return this.invalidText || this.nativeErrorText;
956
956
  }
957
957
  /**
958
958
  * Selects all the text in the text field.
@@ -1046,14 +1046,16 @@ let Input = (() => {
1046
1046
  return;
1047
1047
  }
1048
1048
  this.focused = true;
1049
- this.#_userInteracted = true;
1050
1049
  this.removingTabindex = true;
1051
1050
  // Note, the input is automatically focused when form is being submitted and
1052
1051
  // it won't pass validation. In this case the form will throw an error
1053
1052
  // as the input is not focusable. In overall, this still works with forms and validation.
1054
- this.dataset.tabindex = this.getAttribute('tabindex') || '0';
1055
- this.removeAttribute('tabindex');
1053
+ if (this.checkNativeValidity()) {
1054
+ this.dataset.tabindex = this.getAttribute('tabindex') || '0';
1055
+ this.removeAttribute('tabindex');
1056
+ }
1056
1057
  input.focus();
1058
+ this.#_userInteracted = true;
1057
1059
  setTimeout(() => {
1058
1060
  this.removingTabindex = false;
1059
1061
  }, 1);
@@ -1068,9 +1070,11 @@ let Input = (() => {
1068
1070
  delete this.dataset.tabindex;
1069
1071
  this.setAttribute('tabindex', index);
1070
1072
  }
1073
+ checkNativeValidity() {
1074
+ return this.input?.validity.valid ?? true;
1075
+ }
1071
1076
  checkValidityAndDispatch() {
1072
- const { input } = this;
1073
- const valid = input?.checkValidity() ?? true;
1077
+ const valid = this.input?.checkValidity() ?? true;
1074
1078
  let canceled = false;
1075
1079
  if (!valid) {
1076
1080
  canceled = !this.dispatchEvent(new Event('invalid', { cancelable: true }));
@@ -1135,10 +1139,10 @@ let Input = (() => {
1135
1139
  }
1136
1140
  getAriaDescribedBy() {
1137
1141
  const hasSupport = !!this.getSupportingText();
1138
- const hasCounter = this.hasCounter();
1139
1142
  if (hasSupport) {
1140
1143
  return this.supportingTextId;
1141
1144
  }
1145
+ const hasCounter = this.hasCounter();
1142
1146
  if (hasCounter) {
1143
1147
  return this.counterId;
1144
1148
  }
@@ -1214,7 +1218,7 @@ let Input = (() => {
1214
1218
  renderSupportingTextValue() {
1215
1219
  const text = this.getSupportingText();
1216
1220
  if (!text) {
1217
- return html ``;
1221
+ return nothing;
1218
1222
  }
1219
1223
  const shouldAlert = this.shouldErrorAnnounce();
1220
1224
  return html `
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/md/input/Input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkC,MAAM,KAAK,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGxD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,kCAAkC,CAAA;AACzC,OAAO,qBAAqB,CAAA;AAE5B,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;;sBAM3C,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,CAAC,CAAC,YAAY,CAAA;YACrD,OAAO,IAAI,CAAA;;;kBAGG,IAAI,CAAC,qBAAqB;;;yBAGnB,IAAI;;KAExB,CAAA;QACH,CAAC;QAES,cAAc;YACtB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzC,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA,8BAA8B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAA,kBAAkB,CAAC,aAAa,CAAC,cAAc,CAAA;QAC9G,CAAC;;;AAn9BH;;;GAGG;AACH","sourcesContent":["import { html, nothing, PropertyValues, TemplateResult } from 'lit'\nimport { property, queryAssignedElements, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { SupportedAutocapitalize, SupportedAutocomplete, SupportedInputTypes } from '../../types/input.js'\nimport { ARIAAutoComplete, ARIAExpanded, ARIARole } from '../../types/role.js'\nimport { isDisabled, setDisabled } from '../../lib/disabled.js'\nimport { UiElement } from '../UiElement.js'\nimport '../icon-button/ui-icon-button.js'\nimport '../icons/ui-icon.js'\n\nconst floatTypes = ['date', 'color', 'datetime-local', 'file', 'month', 'time', 'week']\n\n/**\n * @slot prefix - A slot in which to render prefixes of the input\n * @slot suffix - A slot in which to render suffixes of the input\n */\nexport default abstract class Input extends UiElement {\n #_userInteracted: boolean\n\n // static override shadowRootOptions: ShadowRootInit = {mode: 'open', delegatesFocus: true};\n\n static readonly formAssociated = true\n\n #_internals = this.attachInternals()\n\n get form(): HTMLFormElement | null {\n return this.#_internals && this.#_internals.form\n }\n\n /**\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor type: SupportedInputTypes\n\n /**\n * Disables the input.\n * @attribute\n */\n get disabled(): boolean {\n return isDisabled(this)\n }\n\n @property({ reflect: true, type: Boolean })\n set disabled(value: boolean) {\n const old = isDisabled(this)\n setDisabled(this, value)\n this.requestUpdate('disabled', old)\n this._updateFormValue()\n if (value) {\n this.dataset.tabindex = this.getAttribute('tabindex') || '0'\n this.removeAttribute('tabindex')\n } else {\n const index = this.dataset.tabindex || '0'\n this.setAttribute('tabindex', index)\n this.blur()\n }\n }\n\n /**\n * The name of the form control, submitted as a pair with the control's value as part of the form data.\n * @attribute\n */\n @property({ type: String }) accessor name: string | undefined\n\n /**\n * When a form is submitted, only checkboxes which are currently checked are submitted to the server,\n * and the reported value is the `value` of the value attribute.\n * If the `value` is not otherwise specified, it is the string `on` by default.\n * @attribute\n */\n @property({ type: String }) accessor value = ''\n\n /**\n * Set to true to mark the input element as required.\n * @attribute\n */\n @property({ reflect: true, type: Boolean })\n accessor required: boolean | undefined\n\n /**\n * While the element can be easily styled with the `:valid` and `:invalid` pseudo classes\n * it also exposes an attribute to style the element as invalid. This attribute changes\n * when the element validation is performed.\n *\n * Calling `reportValidity()` will automatically update `invalid`.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor invalid: boolean | undefined\n\n /**\n * The error message that replaces supporting text when `error` is true. If\n * `errorText` is an empty string, then the supporting text will continue to\n * show.\n *\n * Calling `reportValidity()` will automatically update `errorText` to the\n * native `validationMessage`.\n * @attribute\n */\n @property({ type: String }) accessor invalidText = ''\n\n /**\n * The label to be rendered with the input.\n * @attribute\n */\n @property({ type: String }) accessor label: string | undefined\n\n /**\n * Whether or not the text field has a leading icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) accessor hasPrefix = false\n\n /**\n * Whether or not the text field has a trailing icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) accessor hasSuffix = false\n\n /**\n * Conveys additional information below the text field, such as how it should\n * be used.\n * @attribute\n */\n @property({ type: String }) accessor supportingText = ''\n\n /**\n * Override the input text CSS `direction`. Useful for RTL languages that use\n * LTR notation for fractions.\n * @attribute\n */\n @property({ type: String }) accessor textDirection = ''\n\n /**\n * When set the label of the input disappears after input rather than float over the input.\n * @attribute\n */\n @property({ type: Boolean }) accessor noFloating: boolean | undefined\n\n /**\n * Defines the greatest value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n * @attribute\n */\n @property({ type: String }) accessor max = ''\n\n /**\n * The maximum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n * @attribute\n */\n @property({ type: Number }) accessor maxLength = -1\n\n /**\n * Defines the most negative value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n * @attribute\n */\n @property({ type: String }) accessor min = ''\n\n /**\n * The minimum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n * @attribute\n */\n @property({ type: Number }) accessor minLength = -1\n\n /**\n * A regular expression that the text field's value must match to pass\n * constraint validation.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n * @attribute\n */\n @property({ type: String }) accessor pattern = ''\n\n /**\n * @attribute\n */\n @property({ type: String }) accessor placeholder = ''\n\n /**\n * Indicates whether or not a user should be able to edit the text field's\n * value.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n *\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor readOnly = false\n\n /**\n * Bind the `<input>`'s `autocomplete` property.\n * @default off\n * @attribute\n */\n @property({ type: String }) accessor autocomplete: SupportedAutocomplete = 'off'\n\n /**\n * Binds this to the `<input>`'s `inputMode` property.\n * @attribute\n */\n @property({ type: String }) override accessor inputMode = ''\n\n /**\n * Binds this to the `<input>`'s `autocapitalize` property.\n *\n * Possible values are:\n *\n * - `off` or `none`: No autocapitalization is applied (all letters default to lowercase)\n * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;\n * all other letters default to lowercase\n * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase\n * - `characters`: All letters should default to uppercase\n *\n * @default off\n * @attr\n */\n override autocapitalize: SupportedAutocapitalize = 'off'\n\n /**\n * Binds this to the `<input>`'s `accept` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: String }) accessor accept: string | undefined\n\n /**\n * Binds this to the`<input>`'s `multiple` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: Boolean }) accessor multiple: boolean | undefined\n\n /**\n * Binds this to the `<input>`'s `size` property.\n * @attribute\n */\n @property({ type: Number }) accessor size: number | undefined\n\n protected pendingSetters = new Map<keyof HTMLInputElement, unknown>()\n\n private setNativeValue(key: keyof HTMLInputElement, value: unknown): void {\n const { input } = this\n if (input) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ;(input as any)[key] = value\n } else {\n this.pendingSetters.set(key, value)\n }\n }\n\n private getNativeValue(key: keyof HTMLInputElement): unknown {\n const { input } = this\n if (input) {\n return input[key]\n }\n return this.pendingSetters.get(key) || null\n }\n\n /**\n * Gets or sets the direction in which selection occurred.\n */\n get selectionDirection(): 'forward' | 'backward' | 'none' | null {\n return this.getNativeValue('selectionDirection') as 'forward' | 'backward' | 'none' | null\n }\n\n set selectionDirection(value: 'forward' | 'backward' | 'none' | null) {\n this.setNativeValue('selectionDirection', value)\n }\n\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n get selectionEnd(): number | null {\n return this.getNativeValue('selectionEnd') as number | null\n }\n\n set selectionEnd(value: number | null) {\n this.setNativeValue('selectionEnd', value)\n }\n\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n get selectionStart(): number | null {\n return this.getNativeValue('selectionStart') as number | null\n }\n\n set selectionStart(value: number | null) {\n this.setNativeValue('selectionStart', value)\n }\n\n /**\n * Returns or sets the element's step attribute, which works with min and max\n * to limit the increments at which a numeric or date-time value can be set.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n * @attribute\n */\n @property({ type: String }) accessor step = ''\n\n /**\n * Returns the native validation error message that would be displayed upon\n * calling `reportValidity()`.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage\n */\n get validationMessage(): string {\n return (this.getNativeValue('validationMessage') as string | null) ?? ''\n }\n\n /**\n * Returns a ValidityState object that represents the validity states of the\n * text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity\n */\n get validity(): ValidityState {\n return (this.getNativeValue('validity') as ValidityState | null) ?? this.#_internals.validity\n }\n\n /**\n * The text field's value as a number.\n */\n get valueAsNumber(): number {\n return (this.getNativeValue('valueAsNumber') as number | null) ?? 0\n }\n\n set valueAsNumber(value: number) {\n this.setNativeValue('valueAsNumber', value)\n }\n\n /**\n * The text field's value as a Date.\n */\n get valueAsDate(): Date | null {\n return this.getNativeValue('valueAsDate') as Date | null\n }\n\n set valueAsDate(value: Date | null) {\n this.setNativeValue('valueAsDate', value)\n }\n\n /**\n * Returns whether an element will successfully validate based on forms\n * validation rules and constraints.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate\n */\n get willValidate(): boolean {\n return (this.getNativeValue('willValidate') as boolean | null) ?? false\n }\n\n /**\n * Returns true when the text field has been interacted with. Native\n * validation errors only display in response to user interactions.\n */\n @state() protected accessor dirty = false\n\n @state() protected accessor focused = false\n\n get input(): HTMLInputElement | null {\n return this.shadowRoot?.querySelector('.input') ?? null\n }\n\n @queryAssignedElements({ slot: 'prefix' }) private accessor prefixes!: Element[]\n\n @queryAssignedElements({ slot: 'suffix' }) private accessor suffixes!: Element[]\n\n /**\n * The validation message displayed from a native error via\n * `reportValidity()`.\n */\n @state() protected accessor nativeErrorText = ''\n\n /**\n * Whether or not a native error has been reported via `reportValidity()`.\n */\n @state() protected accessor nativeError = false\n\n private readonly counterId = 'counter'\n\n private readonly supportingTextId = 'support'\n\n private readonly labelId = 'support'\n\n @property({ type: String, attribute: 'data-aria-autocomplete', noAccessor: true })\n override accessor ariaAutoComplete: ARIAAutoComplete | null = null\n\n @property({ type: String, attribute: 'data-aria-controls', noAccessor: true })\n accessor ariaControls: string | null = null\n\n @property({ type: String, attribute: 'data-aria-activedescendant', noAccessor: true })\n accessor ariaActiveDescendant: string | null = null\n\n @property({ type: String, attribute: 'data-aria-expanded', noAccessor: true })\n override accessor ariaExpanded: ARIAExpanded | null = null\n\n /**\n * The `aria-label` of the text field's input.\n */\n @property({ type: String, attribute: 'data-aria-label', noAccessor: true })\n override accessor ariaLabel!: string\n\n /**\n * The `aria-labelledby` of the text field's input.\n *\n * Note: currently only usable in SSR light DOM.\n */\n @property({ type: String, attribute: 'data-aria-labelledby', noAccessor: true })\n accessor ariaLabelledBy!: string\n\n @property({ type: String, attribute: 'data-role', noAccessor: true })\n accessor dataRole: ARIARole | null = null\n\n /**\n * When set to true, the error text's `role=\"alert\"` will be removed, then\n * re-added after an animation frame. This will re-announce an error message\n * to screen readers.\n */\n @state() protected accessor refreshErrorAlert = false\n\n /**\n * When set is shows password in the `password` input.\n * This is private so the password can be viewed only through user interaction.\n */\n #showPassword = false\n\n protected removingTabindex = false\n\n get files(): FileList | null {\n return this.getNativeValue('files') as FileList | null\n }\n\n /**\n * When set it adds a `<datalist>` element to the input.\n */\n @property({ type: Array }) accessor list: string[] | undefined\n\n constructor() {\n super()\n this.type = 'text'\n this.#_userInteracted = false\n this.actionController.cancelKeyboardEvents = false\n this.addEventListener('click', this.handleClick.bind(this))\n this.addEventListener('focus', this.handleFocus.bind(this))\n this.addEventListener('blur', this.handleBlur.bind(this))\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n if (!this.hasAttribute('tabindex') && !this.disabled) {\n this.setAttribute('tabindex', '0')\n }\n this.handleSlotChange()\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form has been reset\n */\n formResetCallback(): void {\n this.value = ''\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form state has been restored\n *\n * @param formState Restored value\n */\n formStateRestoreCallback(formState?: string): void {\n this.value = formState ?? ''\n }\n\n protected override willUpdate(cp: PropertyValues<this>): void {\n if (cp.has('required')) {\n this._updateFormValue()\n }\n }\n\n protected override updated(changedProperties: PropertyValues): void {\n super.updated(changedProperties)\n if (changedProperties.has('value')) {\n this._updateFormValue()\n }\n if (this.refreshErrorAlert) {\n // The past render cycle removed the role=\"alert\" from the error message.\n // Re-add it after an animation frame to re-announce the error.\n requestAnimationFrame(() => {\n this.refreshErrorAlert = false\n })\n }\n }\n\n protected _updateFormValue(): void {\n const { value = '', disabled } = this\n if (!value || disabled) {\n this.#_internals.setFormValue(null)\n } else {\n this.#_internals.setFormValue(value)\n }\n this._updateValidationState()\n }\n\n protected _updateValidationState(): void {\n const { input } = this\n if (!input) {\n return\n }\n const { validationMessage, validity } = input\n if (!validity.valid) {\n this.#_internals.setValidity(\n {\n valueMissing: validity.valueMissing,\n badInput: validity.badInput,\n patternMismatch: validity.patternMismatch,\n rangeOverflow: validity.rangeOverflow,\n rangeUnderflow: validity.rangeUnderflow,\n stepMismatch: validity.stepMismatch,\n tooLong: validity.tooLong,\n tooShort: validity.tooShort,\n typeMismatch: validity.typeMismatch,\n customError: validity.customError,\n },\n validationMessage\n )\n return\n }\n\n this.#_internals.setValidity({})\n }\n\n protected invalidHandler(e: Event): void {\n this.retargetEvent(e)\n if (!this.#_userInteracted) {\n return\n }\n this.invalid = true\n }\n\n protected handleSlotChange(): void {\n this.hasPrefix = this.prefixes.length > 0\n this.hasSuffix = this.suffixes.length > 0\n }\n\n protected getInputValue(): string {\n if (this.type === 'color') {\n return this.value || '#000000'\n }\n return this.value || ''\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n checkValidity(): boolean {\n this.#_userInteracted = true\n const { valid } = this.checkValidityAndDispatch()\n this.invalid = !valid\n return valid\n }\n\n /**\n * Focuses the text field's input text.\n */\n override focus(): void {\n if (this.disabled || this.matches(':focus-within')) {\n return\n }\n this.input?.focus()\n }\n\n /**\n * Unfocuses the text field.\n */\n override blur(): void {\n this.input?.blur()\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * This method will display or clear an error text message equal to the text\n * field's `validationMessage`, unless the invalid event is canceled.\n *\n * Use `setCustomValidity()` to customize the `validationMessage`.\n *\n * This method can also be used to re-announce error messages to screen\n * readers.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n reportValidity(): boolean {\n this.#_userInteracted = true\n const { valid, canceled } = this.checkValidityAndDispatch()\n this._updateValidationState()\n if (!canceled) {\n this.invalid = !valid\n const prevMessage = this.getErrorText()\n this.nativeError = !valid\n this.nativeErrorText = this.validationMessage\n\n const needsRefresh = this.shouldErrorAnnounce() && prevMessage === this.getErrorText()\n if (needsRefresh) {\n this.refreshErrorAlert = true\n }\n }\n\n return valid\n }\n\n protected shouldErrorAnnounce(): boolean {\n // Announce if there is an error and error text visible.\n // If refreshErrorAlert is true, do not announce. This will remove the\n // role=\"alert\" attribute. Another render cycle will happen after an\n // animation frame to re-add the role.\n return this.getError() && !!this.getErrorText() && !this.refreshErrorAlert\n }\n\n protected getErrorText(): string {\n return this.invalid ? this.invalidText : this.nativeErrorText\n }\n\n /**\n * Selects all the text in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select\n */\n select(): void {\n this.input?.select()\n }\n\n /**\n * Sets the text field's native validation error message. This is used to\n * customize `validationMessage`.\n *\n * When the error is not an empty string, the text field is considered invalid\n * and `validity.customError` will be true.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity\n *\n * @param error The error message to display.\n */\n setCustomValidity(error: string): void {\n this.input?.setCustomValidity(error)\n }\n\n /**\n * Replaces a range of text with a new string.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText\n */\n setRangeText(replacement: string): void\n\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void\n\n setRangeText(...args: unknown[]): void {\n const { input } = this\n if (!input) {\n return\n }\n // Calling setRangeText with 1 vs 3-4 arguments has different behavior.\n // Use spread syntax and type casting to ensure correct usage.\n input.setRangeText(...(args as Parameters<HTMLInputElement['setRangeText']>))\n this.value = input.value\n }\n\n /**\n * Sets the start and end positions of a selection in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n *\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void {\n this.input?.setSelectionRange(start, end, direction)\n }\n\n /**\n * Decrements the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown\n *\n * @param stepDecrement The number of steps to decrement, defaults to 1.\n */\n stepDown(stepDecrement?: number): void {\n const { input } = this\n if (!input) {\n return\n }\n input.stepDown(stepDecrement)\n this.value = input.value\n }\n\n /**\n * Increments the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp\n *\n * @param stepIncrement The number of steps to increment, defaults to 1.\n */\n stepUp(stepIncrement?: number): void {\n const { input } = this\n if (!input) {\n return\n }\n input.stepUp(stepIncrement)\n this.value = input.value\n }\n\n /**\n * Reset the text field to its default value.\n */\n reset(): void {\n this.dirty = false\n this.value = ''\n }\n\n override handleClick(): void {\n this.focus()\n }\n\n protected handleFocus(): void {\n const { input } = this\n if (this.disabled || !input) {\n return\n }\n this.focused = true\n this.#_userInteracted = true\n this.removingTabindex = true\n // Note, the input is automatically focused when form is being submitted and\n // it won't pass validation. In this case the form will throw an error\n // as the input is not focusable. In overall, this still works with forms and validation.\n this.dataset.tabindex = this.getAttribute('tabindex') || '0'\n this.removeAttribute('tabindex')\n input.focus()\n setTimeout(() => {\n this.removingTabindex = false\n }, 1)\n }\n\n protected handleBlur(): void {\n if (this.matches(':focus-within') || this.removingTabindex) {\n // Changing focus to another child within the text field, like a button\n return\n }\n this.focused = false\n const index = this.dataset.tabindex || '0'\n delete this.dataset.tabindex\n this.setAttribute('tabindex', index)\n }\n\n private checkValidityAndDispatch(): { valid: boolean; canceled: boolean } {\n const { input } = this\n const valid = input?.checkValidity() ?? true\n let canceled = false\n if (!valid) {\n canceled = !this.dispatchEvent(new Event('invalid', { cancelable: true }))\n }\n return { valid, canceled }\n }\n\n /**\n * @returns `true` when the label is in resting state.\n */\n protected labelResting(): boolean {\n const { value } = this\n if (!!value || String(value) === '0') {\n return false\n }\n if (floatTypes.includes(this.type || '')) {\n return false\n }\n return !this.placeholder && !this.focused\n }\n\n /**\n * @returns `true` when the label should be hidden\n */\n protected labelHidden(): boolean {\n const { noFloating } = this\n return !this.labelResting() && !!noFloating\n }\n\n protected renderLabelText(): string {\n const labelText = this.label ?? ''\n const optionalAsterisk = this.required && labelText ? '*' : ''\n return labelText + optionalAsterisk\n }\n\n protected getSupportingText(): string {\n const errorText = this.getErrorText()\n return this.getError() && errorText ? errorText : this.supportingText\n }\n\n protected getError(): boolean {\n return this.invalid || this.nativeError\n }\n\n protected retargetEvent(event: Event): boolean {\n if (event.bubbles && (!this.shadowRoot || event.composed)) {\n event.stopPropagation()\n }\n\n const copy = Reflect.construct(event.constructor, [event.type, event])\n const dispatched = this.dispatchEvent(copy)\n if (!dispatched) {\n event.preventDefault()\n }\n\n return dispatched\n }\n\n protected handleInput(event: InputEvent): void {\n this.dirty = true\n this.value = (event.target as HTMLInputElement).value\n this.retargetEvent(event)\n this.reportValidity()\n }\n\n protected hasCounter(): boolean {\n return this.maxLength > -1\n }\n\n protected getCounterText(): string {\n const { length } = this.value || ''\n return `${length} / ${this.maxLength || 0}`\n }\n\n protected getAriaDescribedBy(): string {\n const hasSupport = !!this.getSupportingText()\n const hasCounter = this.hasCounter()\n if (hasSupport) {\n return this.supportingTextId\n }\n if (hasCounter) {\n return this.counterId\n }\n return ''\n }\n\n #handlePasswordToggle(): void {\n this.#showPassword = !this.#showPassword\n this.requestUpdate()\n }\n\n protected get effectiveType(): SupportedInputTypes {\n const { type } = this\n if (type !== 'password') {\n return type\n }\n const visible = this.#showPassword\n return visible ? 'text' : 'password'\n }\n\n protected override render(): TemplateResult {\n const { pressed = false } = this\n const labelResting = this.labelResting()\n const containerClasses = classMap({\n surface: true,\n pressed,\n labelResting,\n labelActive: !labelResting,\n labelHidden: this.labelHidden(),\n })\n return html`\n <div class=\"${containerClasses}\">\n <div class=\"container\"></div>\n <div class=\"content\">\n ${this.renderPrefix()} ${this.renderBody()} ${this.renderPasswordControl()} ${this.renderSuffix()}\n ${this.renderHighlight()}\n </div>\n </div>\n ${this.renderSupportingText()} ${this.renderDataList()}\n `\n }\n\n protected renderPrefix(): TemplateResult {\n const classes = classMap({\n start: true,\n prefixed: this.hasPrefix,\n })\n return html` <div class=\"${classes}\">\n <slot name=\"prefix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`\n }\n\n protected renderSuffix(): TemplateResult {\n const classes = classMap({\n end: true,\n suffixed: this.hasSuffix,\n })\n return html` <div class=\"${classes}\">\n <slot name=\"suffix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`\n }\n\n protected renderBody(): TemplateResult {\n return html` <div class=\"body\">${this.renderLabel()} ${this.renderInput()}</div> `\n }\n\n protected renderLabel(): TemplateResult {\n const label = this.renderLabelText()\n if (!label) {\n return html``\n }\n return html` <span class=\"label\" id=\"${this.labelId}\" title=\"label\">${label}</span> `\n }\n\n protected renderHighlight(): TemplateResult {\n return html` <span class=\"highlight\"></span> `\n }\n\n protected abstract renderInput(): TemplateResult\n\n protected renderSupportingText(): TemplateResult {\n return html` <span class=\"supporting-text\"> ${this.renderSupportingTextValue()} ${this.renderCounter()} </span> `\n }\n\n protected renderSupportingTextValue(): TemplateResult {\n const text = this.getSupportingText()\n if (!text) {\n return html``\n }\n const shouldAlert = this.shouldErrorAnnounce()\n return html`\n <span\n class=\"supporting-text-start\"\n id=\"${this.supportingTextId}\"\n role=${ifDefined(shouldAlert ? 'alert' : undefined)}\n >\n ${text}\n </span>\n `\n }\n\n protected renderCounter(): TemplateResult {\n if (!this.hasCounter()) {\n return html``\n }\n // TODO: add aria-label and announcements\n return html`<span id=${this.counterId} class=\"supporting-text-end\">${this.getCounterText()}</span>`\n }\n\n protected renderPasswordControl(): TemplateResult | typeof nothing {\n const { type } = this\n if (type !== 'password') {\n return nothing\n }\n const visible = this.#showPassword\n const icon = visible ? 'visibilityOff' : 'visibility'\n return html`\n <ui-icon-button\n aria-label=\"Toggle password visibility\"\n @click=\"${this.#handlePasswordToggle}\"\n title=\"Shows or hides the password\"\n >\n <ui-icon icon=\"${icon}\"></ui-icon>\n </ui-icon-button>\n `\n }\n\n protected renderDataList(): TemplateResult | typeof nothing {\n const { list } = this\n if (!Array.isArray(list) || !list.length) {\n return nothing\n }\n return html` <datalist id=\"input-list\">${list.map((i) => html`<option value=\"${i}\"></option>`)}</datalist> `\n }\n}\n"]}
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/md/input/Input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkC,MAAM,KAAK,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGxD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MA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A;YACf,CAAC;YACD,yCAAyC;YACzC,OAAO,IAAI,CAAA,YAAY,IAAI,CAAC,SAAS,gCAAgC,IAAI,CAAC,cAAc,EAAE,SAAS,CAAA;QACrG,CAAC;QAES,qBAAqB;YAC7B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;gBACxB,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAA;YAClC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,CAAA;YACrD,OAAO,IAAI,CAAA;;;kBAGG,IAAI,CAAC,qBAAqB;;;yBAGnB,IAAI;;KAExB,CAAA;QACH,CAAC;QAES,cAAc;YACtB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzC,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA,8BAA8B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAA,kBAAkB,CAAC,aAAa,CAAC,cAAc,CAAA;QAC9G,CAAC;;;AAx9BH;;;GAGG;AACH","sourcesContent":["import { html, nothing, PropertyValues, TemplateResult } from 'lit'\nimport { property, queryAssignedElements, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { SupportedAutocapitalize, SupportedAutocomplete, SupportedInputTypes } from '../../types/input.js'\nimport { ARIAAutoComplete, ARIAExpanded, ARIARole } from '../../types/role.js'\nimport { isDisabled, setDisabled } from '../../lib/disabled.js'\nimport { UiElement } from '../UiElement.js'\nimport '../icon-button/ui-icon-button.js'\nimport '../icons/ui-icon.js'\n\nconst floatTypes = ['date', 'color', 'datetime-local', 'file', 'month', 'time', 'week']\n\n/**\n * @slot prefix - A slot in which to render prefixes of the input\n * @slot suffix - A slot in which to render suffixes of the input\n */\nexport default abstract class Input extends UiElement {\n #_userInteracted: boolean\n\n // static override shadowRootOptions: ShadowRootInit = {mode: 'open', delegatesFocus: true};\n\n static readonly formAssociated = true\n\n #_internals = this.attachInternals()\n\n get form(): HTMLFormElement | null {\n return this.#_internals && this.#_internals.form\n }\n\n /**\n * @attribute\n */\n @property({ type: String, reflect: true }) accessor type: SupportedInputTypes\n\n /**\n * Disables the input.\n * @attribute\n */\n get disabled(): boolean {\n return isDisabled(this)\n }\n\n @property({ reflect: true, type: Boolean })\n set disabled(value: boolean) {\n const old = isDisabled(this)\n setDisabled(this, value)\n this.requestUpdate('disabled', old)\n this._updateFormValue()\n if (value) {\n this.dataset.tabindex = this.getAttribute('tabindex') || '0'\n this.removeAttribute('tabindex')\n } else {\n const index = this.dataset.tabindex || '0'\n this.setAttribute('tabindex', index)\n this.blur()\n }\n }\n\n /**\n * The name of the form control, submitted as a pair with the control's value as part of the form data.\n * @attribute\n */\n @property({ type: String }) accessor name: string | undefined\n\n /**\n * When a form is submitted, only checkboxes which are currently checked are submitted to the server,\n * and the reported value is the `value` of the value attribute.\n * If the `value` is not otherwise specified, it is the string `on` by default.\n * @attribute\n */\n @property({ type: String }) accessor value = ''\n\n /**\n * Set to true to mark the input element as required.\n * @attribute\n */\n @property({ reflect: true, type: Boolean })\n accessor required: boolean | undefined\n\n /**\n * While the element can be easily styled with the `:valid` and `:invalid` pseudo classes\n * it also exposes an attribute to style the element as invalid. This attribute changes\n * when the element validation is performed.\n *\n * Calling `reportValidity()` will automatically update `invalid`.\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor invalid: boolean | undefined\n\n /**\n * The error message that replaces supporting text when `error` is true. If\n * `errorText` is an empty string, then the supporting text will continue to\n * show.\n *\n * Calling `reportValidity()` will automatically update `errorText` to the\n * native `validationMessage`.\n * @attribute\n */\n @property({ type: String }) accessor invalidText = ''\n\n /**\n * The label to be rendered with the input.\n * @attribute\n */\n @property({ type: String }) accessor label: string | undefined\n\n /**\n * Whether or not the text field has a leading icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) accessor hasPrefix = false\n\n /**\n * Whether or not the text field has a trailing icon. Used for SSR.\n * @attribute\n */\n @property({ type: Boolean }) accessor hasSuffix = false\n\n /**\n * Conveys additional information below the text field, such as how it should\n * be used.\n * @attribute\n */\n @property({ type: String }) accessor supportingText = ''\n\n /**\n * Override the input text CSS `direction`. Useful for RTL languages that use\n * LTR notation for fractions.\n * @attribute\n */\n @property({ type: String }) accessor textDirection = ''\n\n /**\n * When set the label of the input disappears after input rather than float over the input.\n * @attribute\n */\n @property({ type: Boolean }) accessor noFloating: boolean | undefined\n\n /**\n * Defines the greatest value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n * @attribute\n */\n @property({ type: String }) accessor max = ''\n\n /**\n * The maximum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n * @attribute\n */\n @property({ type: Number }) accessor maxLength = -1\n\n /**\n * Defines the most negative value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n * @attribute\n */\n @property({ type: String }) accessor min = ''\n\n /**\n * The minimum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n * @attribute\n */\n @property({ type: Number }) accessor minLength = -1\n\n /**\n * A regular expression that the text field's value must match to pass\n * constraint validation.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n * @attribute\n */\n @property({ type: String }) accessor pattern = ''\n\n /**\n * @attribute\n */\n @property({ type: String }) accessor placeholder = ''\n\n /**\n * Indicates whether or not a user should be able to edit the text field's\n * value.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n *\n * @attribute\n */\n @property({ type: Boolean, reflect: true }) accessor readOnly = false\n\n /**\n * Bind the `<input>`'s `autocomplete` property.\n * @default off\n * @attribute\n */\n @property({ type: String }) accessor autocomplete: SupportedAutocomplete = 'off'\n\n /**\n * Binds this to the `<input>`'s `inputMode` property.\n * @attribute\n */\n @property({ type: String }) override accessor inputMode = ''\n\n /**\n * Binds this to the `<input>`'s `autocapitalize` property.\n *\n * Possible values are:\n *\n * - `off` or `none`: No auto-capitalization is applied (all letters default to lowercase)\n * - `on` or `sentences`: The first letter of each sentence defaults to a capital letter;\n * all other letters default to lowercase\n * - `words`: The first letter of each word defaults to a capital letter; all other letters default to lowercase\n * - `characters`: All letters should default to uppercase\n *\n * @default off\n * @attr\n */\n override autocapitalize: SupportedAutocapitalize = 'off'\n\n /**\n * Binds this to the `<input>`'s `accept` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: String }) accessor accept: string | undefined\n\n /**\n * Binds this to the`<input>`'s `multiple` property,\n * used with type=file.\n * @attribute\n */\n @property({ type: Boolean }) accessor multiple: boolean | undefined\n\n /**\n * Binds this to the `<input>`'s `size` property.\n * @attribute\n */\n @property({ type: Number }) accessor size: number | undefined\n\n protected pendingSetters = new Map<keyof HTMLInputElement, unknown>()\n\n private setNativeValue(key: keyof HTMLInputElement, value: unknown): void {\n const { input } = this\n if (input) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ;(input as any)[key] = value\n } else {\n this.pendingSetters.set(key, value)\n }\n }\n\n private getNativeValue(key: keyof HTMLInputElement): unknown {\n const { input } = this\n if (input) {\n return input[key]\n }\n return this.pendingSetters.get(key) || null\n }\n\n /**\n * Gets or sets the direction in which selection occurred.\n */\n get selectionDirection(): 'forward' | 'backward' | 'none' | null {\n return this.getNativeValue('selectionDirection') as 'forward' | 'backward' | 'none' | null\n }\n\n set selectionDirection(value: 'forward' | 'backward' | 'none' | null) {\n this.setNativeValue('selectionDirection', value)\n }\n\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n get selectionEnd(): number | null {\n return this.getNativeValue('selectionEnd') as number | null\n }\n\n set selectionEnd(value: number | null) {\n this.setNativeValue('selectionEnd', value)\n }\n\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n get selectionStart(): number | null {\n return this.getNativeValue('selectionStart') as number | null\n }\n\n set selectionStart(value: number | null) {\n this.setNativeValue('selectionStart', value)\n }\n\n /**\n * Returns or sets the element's step attribute, which works with min and max\n * to limit the increments at which a numeric or date-time value can be set.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n * @attribute\n */\n @property({ type: String }) accessor step = ''\n\n /**\n * Returns the native validation error message that would be displayed upon\n * calling `reportValidity()`.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage\n */\n get validationMessage(): string {\n return (this.getNativeValue('validationMessage') as string | null) ?? ''\n }\n\n /**\n * Returns a ValidityState object that represents the validity states of the\n * text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity\n */\n get validity(): ValidityState {\n return (this.getNativeValue('validity') as ValidityState | null) ?? this.#_internals.validity\n }\n\n /**\n * The text field's value as a number.\n */\n get valueAsNumber(): number {\n return (this.getNativeValue('valueAsNumber') as number | null) ?? 0\n }\n\n set valueAsNumber(value: number) {\n this.setNativeValue('valueAsNumber', value)\n }\n\n /**\n * The text field's value as a Date.\n */\n get valueAsDate(): Date | null {\n return this.getNativeValue('valueAsDate') as Date | null\n }\n\n set valueAsDate(value: Date | null) {\n this.setNativeValue('valueAsDate', value)\n }\n\n /**\n * Returns whether an element will successfully validate based on forms\n * validation rules and constraints.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate\n */\n get willValidate(): boolean {\n return (this.getNativeValue('willValidate') as boolean | null) ?? false\n }\n\n /**\n * Returns true when the text field has been interacted with. Native\n * validation errors only display in response to user interactions.\n */\n @state() protected accessor dirty = false\n\n @state() protected accessor focused = false\n\n get input(): HTMLInputElement | null {\n return this.shadowRoot?.querySelector('.input') ?? null\n }\n\n @queryAssignedElements({ slot: 'prefix' }) private accessor prefixes!: Element[]\n\n @queryAssignedElements({ slot: 'suffix' }) private accessor suffixes!: Element[]\n\n /**\n * The validation message displayed from a native error via\n * `reportValidity()`.\n */\n @state() protected accessor nativeErrorText = ''\n\n /**\n * Whether or not a native error has been reported via `reportValidity()`.\n */\n @state() protected accessor nativeError = false\n\n private readonly counterId = 'counter'\n\n private readonly supportingTextId = 'support'\n\n private readonly labelId = 'support'\n\n @property({ type: String, attribute: 'data-aria-autocomplete', noAccessor: true })\n override accessor ariaAutoComplete: ARIAAutoComplete | null = null\n\n @property({ type: String, attribute: 'data-aria-controls', noAccessor: true })\n accessor ariaControls: string | null = null\n\n @property({ type: String, attribute: 'data-aria-activedescendant', noAccessor: true })\n accessor ariaActiveDescendant: string | null = null\n\n @property({ type: String, attribute: 'data-aria-expanded', noAccessor: true })\n override accessor ariaExpanded: ARIAExpanded | null = null\n\n /**\n * The `aria-label` of the text field's input.\n */\n @property({ type: String, attribute: 'data-aria-label', noAccessor: true })\n override accessor ariaLabel!: string\n\n /**\n * The `aria-labelledby` of the text field's input.\n *\n * Note: currently only usable in SSR light DOM.\n */\n @property({ type: String, attribute: 'data-aria-labelledby', noAccessor: true })\n accessor ariaLabelledBy!: string\n\n @property({ type: String, attribute: 'data-role', noAccessor: true })\n accessor dataRole: ARIARole | null = null\n\n /**\n * When set to true, the error text's `role=\"alert\"` will be removed, then\n * re-added after an animation frame. This will re-announce an error message\n * to screen readers.\n */\n @state() protected accessor refreshErrorAlert = false\n\n /**\n * When set is shows password in the `password` input.\n * This is private so the password can be viewed only through user interaction.\n */\n #showPassword = false\n\n protected removingTabindex = false\n\n get files(): FileList | null {\n return this.getNativeValue('files') as FileList | null\n }\n\n /**\n * When set it adds a `<datalist>` element to the input.\n */\n @property({ type: Array }) accessor list: string[] | undefined\n\n constructor() {\n super()\n this.type = 'text'\n this.#_userInteracted = false\n this.actionController.cancelKeyboardEvents = false\n this.addEventListener('click', this.handleClick.bind(this))\n this.addEventListener('focus', this.handleFocus.bind(this))\n this.addEventListener('blur', this.handleBlur.bind(this))\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n if (!this.hasAttribute('tabindex') && !this.disabled) {\n this.setAttribute('tabindex', '0')\n }\n this.handleSlotChange()\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form has been reset\n */\n formResetCallback(): void {\n this.value = ''\n }\n\n /**\n * When form-associated custom elements are supported in the browser it\n * is called when the form state has been restored\n *\n * @param formState Restored value\n */\n formStateRestoreCallback(formState?: string): void {\n this.value = formState ?? ''\n }\n\n protected override willUpdate(cp: PropertyValues<this>): void {\n if (cp.has('required')) {\n this._updateFormValue()\n }\n }\n\n protected override updated(changedProperties: PropertyValues): void {\n super.updated(changedProperties)\n if (changedProperties.has('value')) {\n this._updateFormValue()\n }\n if (this.refreshErrorAlert) {\n // The past render cycle removed the role=\"alert\" from the error message.\n // Re-add it after an animation frame to re-announce the error.\n requestAnimationFrame(() => {\n this.refreshErrorAlert = false\n })\n }\n }\n\n protected _updateFormValue(): void {\n const { value = '', disabled } = this\n if (!value || disabled) {\n this.#_internals.setFormValue(null)\n } else {\n this.#_internals.setFormValue(value)\n }\n this._updateValidationState()\n }\n\n protected _updateValidationState(): void {\n const { input } = this\n if (!input) {\n return\n }\n const { validationMessage, validity } = input\n if (!validity.valid) {\n this.#_internals.setValidity(\n {\n valueMissing: validity.valueMissing,\n badInput: validity.badInput,\n patternMismatch: validity.patternMismatch,\n rangeOverflow: validity.rangeOverflow,\n rangeUnderflow: validity.rangeUnderflow,\n stepMismatch: validity.stepMismatch,\n tooLong: validity.tooLong,\n tooShort: validity.tooShort,\n typeMismatch: validity.typeMismatch,\n customError: validity.customError,\n },\n validationMessage\n )\n return\n }\n\n this.#_internals.setValidity({})\n }\n\n protected invalidHandler(e: Event): void {\n this.retargetEvent(e)\n if (!this.#_userInteracted) {\n return\n }\n this.invalid = true\n }\n\n protected handleSlotChange(): void {\n this.hasPrefix = this.prefixes.length > 0\n this.hasSuffix = this.suffixes.length > 0\n }\n\n protected getInputValue(): string {\n if (this.type === 'color') {\n return this.value || '#000000'\n }\n return this.value || ''\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n checkValidity(): boolean {\n this.#_userInteracted = true\n const { valid } = this.checkValidityAndDispatch()\n this.invalid = !valid\n return valid\n }\n\n /**\n * Focuses the text field's input text.\n */\n override focus(): void {\n if (this.disabled || this.matches(':focus-within')) {\n return\n }\n this.input?.focus()\n }\n\n /**\n * Un-focuses the text field.\n */\n override blur(): void {\n this.input?.blur()\n }\n\n /**\n * Checks the text field's native validation and returns whether or not the\n * element is valid.\n *\n * If invalid, this method will dispatch the `invalid` event.\n *\n * This method will display or clear an error text message equal to the text\n * field's `validationMessage`, unless the invalid event is canceled.\n *\n * Use `setCustomValidity()` to customize the `validationMessage`.\n *\n * This method can also be used to re-announce error messages to screen\n * readers.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity\n *\n * @return true if the text field is valid, or false if not.\n */\n reportValidity(): boolean {\n this.#_userInteracted = true\n const { valid, canceled } = this.checkValidityAndDispatch()\n this._updateValidationState()\n if (!canceled) {\n this.invalid = !valid\n const prevMessage = this.getErrorText()\n this.nativeError = !valid\n this.nativeErrorText = this.validationMessage\n\n const needsRefresh = this.shouldErrorAnnounce() && prevMessage === this.getErrorText()\n if (needsRefresh) {\n this.refreshErrorAlert = true\n }\n }\n\n return valid\n }\n\n protected shouldErrorAnnounce(): boolean {\n // Announce if there is an error and error text visible.\n // If refreshErrorAlert is true, do not announce. This will remove the\n // role=\"alert\" attribute. Another render cycle will happen after an\n // animation frame to re-add the role.\n return this.getError() && !!this.getErrorText() && !this.refreshErrorAlert\n }\n\n protected getErrorText(): string {\n return this.invalidText || this.nativeErrorText\n }\n\n /**\n * Selects all the text in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select\n */\n select(): void {\n this.input?.select()\n }\n\n /**\n * Sets the text field's native validation error message. This is used to\n * customize `validationMessage`.\n *\n * When the error is not an empty string, the text field is considered invalid\n * and `validity.customError` will be true.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity\n *\n * @param error The error message to display.\n */\n setCustomValidity(error: string): void {\n this.input?.setCustomValidity(error)\n }\n\n /**\n * Replaces a range of text with a new string.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText\n */\n setRangeText(replacement: string): void\n\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void\n\n setRangeText(...args: unknown[]): void {\n const { input } = this\n if (!input) {\n return\n }\n // Calling setRangeText with 1 vs 3-4 arguments has different behavior.\n // Use spread syntax and type casting to ensure correct usage.\n input.setRangeText(...(args as Parameters<HTMLInputElement['setRangeText']>))\n this.value = input.value\n }\n\n /**\n * Sets the start and end positions of a selection in the text field.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n *\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void {\n this.input?.setSelectionRange(start, end, direction)\n }\n\n /**\n * Decrements the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown\n *\n * @param stepDecrement The number of steps to decrement, defaults to 1.\n */\n stepDown(stepDecrement?: number): void {\n const { input } = this\n if (!input) {\n return\n }\n input.stepDown(stepDecrement)\n this.value = input.value\n }\n\n /**\n * Increments the value of a numeric type text field by `step` or `n` `step`\n * number of times.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp\n *\n * @param stepIncrement The number of steps to increment, defaults to 1.\n */\n stepUp(stepIncrement?: number): void {\n const { input } = this\n if (!input) {\n return\n }\n input.stepUp(stepIncrement)\n this.value = input.value\n }\n\n /**\n * Reset the text field to its default value.\n */\n reset(): void {\n this.dirty = false\n this.value = ''\n }\n\n override handleClick(): void {\n this.focus()\n }\n\n protected handleFocus(): void {\n const { input } = this\n if (this.disabled || !input) {\n return\n }\n this.focused = true\n this.removingTabindex = true\n // Note, the input is automatically focused when form is being submitted and\n // it won't pass validation. In this case the form will throw an error\n // as the input is not focusable. In overall, this still works with forms and validation.\n if (this.checkNativeValidity()) {\n this.dataset.tabindex = this.getAttribute('tabindex') || '0'\n this.removeAttribute('tabindex')\n }\n input.focus()\n this.#_userInteracted = true\n setTimeout(() => {\n this.removingTabindex = false\n }, 1)\n }\n\n protected handleBlur(): void {\n if (this.matches(':focus-within') || this.removingTabindex) {\n // Changing focus to another child within the text field, like a button\n return\n }\n this.focused = false\n const index = this.dataset.tabindex || '0'\n delete this.dataset.tabindex\n this.setAttribute('tabindex', index)\n }\n\n private checkNativeValidity(): boolean {\n return this.input?.validity.valid ?? true\n }\n\n private checkValidityAndDispatch(): { valid: boolean; canceled: boolean } {\n const valid = this.input?.checkValidity() ?? true\n let canceled = false\n if (!valid) {\n canceled = !this.dispatchEvent(new Event('invalid', { cancelable: true }))\n }\n return { valid, canceled }\n }\n\n /**\n * @returns `true` when the label is in resting state.\n */\n protected labelResting(): boolean {\n const { value } = this\n if (!!value || String(value) === '0') {\n return false\n }\n if (floatTypes.includes(this.type || '')) {\n return false\n }\n return !this.placeholder && !this.focused\n }\n\n /**\n * @returns `true` when the label should be hidden\n */\n protected labelHidden(): boolean {\n const { noFloating } = this\n return !this.labelResting() && !!noFloating\n }\n\n protected renderLabelText(): string {\n const labelText = this.label ?? ''\n const optionalAsterisk = this.required && labelText ? '*' : ''\n return labelText + optionalAsterisk\n }\n\n protected getSupportingText(): string {\n const errorText = this.getErrorText()\n return this.getError() && errorText ? errorText : this.supportingText\n }\n\n protected getError(): boolean {\n return this.invalid || this.nativeError\n }\n\n protected retargetEvent(event: Event): boolean {\n if (event.bubbles && (!this.shadowRoot || event.composed)) {\n event.stopPropagation()\n }\n\n const copy = Reflect.construct(event.constructor, [event.type, event])\n const dispatched = this.dispatchEvent(copy)\n if (!dispatched) {\n event.preventDefault()\n }\n\n return dispatched\n }\n\n protected handleInput(event: InputEvent): void {\n this.dirty = true\n this.value = (event.target as HTMLInputElement).value\n this.retargetEvent(event)\n this.reportValidity()\n }\n\n protected hasCounter(): boolean {\n return this.maxLength > -1\n }\n\n protected getCounterText(): string {\n const { length } = this.value || ''\n return `${length} / ${this.maxLength || 0}`\n }\n\n protected getAriaDescribedBy(): string {\n const hasSupport = !!this.getSupportingText()\n if (hasSupport) {\n return this.supportingTextId\n }\n const hasCounter = this.hasCounter()\n if (hasCounter) {\n return this.counterId\n }\n return ''\n }\n\n #handlePasswordToggle(): void {\n this.#showPassword = !this.#showPassword\n this.requestUpdate()\n }\n\n protected get effectiveType(): SupportedInputTypes {\n const { type } = this\n if (type !== 'password') {\n return type\n }\n const visible = this.#showPassword\n return visible ? 'text' : 'password'\n }\n\n protected override render(): TemplateResult {\n const { pressed = false } = this\n const labelResting = this.labelResting()\n const containerClasses = classMap({\n surface: true,\n pressed,\n labelResting,\n labelActive: !labelResting,\n labelHidden: this.labelHidden(),\n })\n return html`\n <div class=\"${containerClasses}\">\n <div class=\"container\"></div>\n <div class=\"content\">\n ${this.renderPrefix()} ${this.renderBody()} ${this.renderPasswordControl()} ${this.renderSuffix()}\n ${this.renderHighlight()}\n </div>\n </div>\n ${this.renderSupportingText()} ${this.renderDataList()}\n `\n }\n\n protected renderPrefix(): TemplateResult {\n const classes = classMap({\n start: true,\n prefixed: this.hasPrefix,\n })\n return html` <div class=\"${classes}\">\n <slot name=\"prefix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`\n }\n\n protected renderSuffix(): TemplateResult {\n const classes = classMap({\n end: true,\n suffixed: this.hasSuffix,\n })\n return html` <div class=\"${classes}\">\n <slot name=\"suffix\" @slotchange=${this.handleSlotChange}></slot>\n </div>`\n }\n\n protected renderBody(): TemplateResult {\n return html` <div class=\"body\">${this.renderLabel()} ${this.renderInput()}</div> `\n }\n\n protected renderLabel(): TemplateResult {\n const label = this.renderLabelText()\n if (!label) {\n return html``\n }\n return html` <span class=\"label\" id=\"${this.labelId}\" title=\"label\">${label}</span> `\n }\n\n protected renderHighlight(): TemplateResult {\n return html` <span class=\"highlight\"></span> `\n }\n\n protected abstract renderInput(): TemplateResult\n\n protected renderSupportingText(): TemplateResult {\n return html` <span class=\"supporting-text\"> ${this.renderSupportingTextValue()} ${this.renderCounter()} </span> `\n }\n\n protected renderSupportingTextValue(): TemplateResult | typeof nothing {\n const text = this.getSupportingText()\n if (!text) {\n return nothing\n }\n const shouldAlert = this.shouldErrorAnnounce()\n return html`\n <span\n class=\"supporting-text-start\"\n id=\"${this.supportingTextId}\"\n role=${ifDefined(shouldAlert ? 'alert' : undefined)}\n >\n ${text}\n </span>\n `\n }\n\n protected renderCounter(): TemplateResult {\n if (!this.hasCounter()) {\n return html``\n }\n // TODO: add aria-label and announcements\n return html`<span id=${this.counterId} class=\"supporting-text-end\">${this.getCounterText()}</span>`\n }\n\n protected renderPasswordControl(): TemplateResult | typeof nothing {\n const { type } = this\n if (type !== 'password') {\n return nothing\n }\n const visible = this.#showPassword\n const icon = visible ? 'visibilityOff' : 'visibility'\n return html`\n <ui-icon-button\n aria-label=\"Toggle password visibility\"\n @click=\"${this.#handlePasswordToggle}\"\n title=\"Shows or hides the password\"\n >\n <ui-icon icon=\"${icon}\"></ui-icon>\n </ui-icon-button>\n `\n }\n\n protected renderDataList(): TemplateResult | typeof nothing {\n const { list } = this\n if (!Array.isArray(list) || !list.length) {\n return nothing\n }\n return html` <datalist id=\"input-list\">${list.map((i) => html`<option value=\"${i}\"></option>`)}</datalist> `\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"common.styles.d.ts","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/common.styles.ts"],"names":[],"mappings":";AAEA,wBAwLC"}
1
+ {"version":3,"file":"common.styles.d.ts","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/common.styles.ts"],"names":[],"mappings":";AAEA,wBA2LC"}
@@ -134,24 +134,26 @@ export default css `
134
134
  .supporting-text {
135
135
  padding-top: 4px;
136
136
  color: var(--md-sys-color-on-surface-variant);
137
- font-family: var(--md-sys-typescale-body-medium-font);
138
- font-weight: var(--md-sys-typescale-body-medium-weight);
139
- font-size: var(--md-sys-typescale-body-medium-size);
140
- letter-spacing: var(--md-sys-typescale-body-medium-tracking);
141
- line-height: var(--md-sys-typescale-body-medium-height);
137
+ font-family: var(--md-sys-typescale-body-small-font);
138
+ font-weight: var(--md-sys-typescale-body-small-weight);
139
+ font-size: var(--md-sys-typescale-body-small-size);
140
+ letter-spacing: var(--md-sys-typescale-body-small-tracking);
141
+ line-height: var(--md-sys-typescale-body-small-height);
142
142
  display: flex;
143
143
  justify-content: space-between;
144
144
  padding: 0 16px;
145
145
  }
146
146
 
147
147
  .supporting-text-start {
148
- overflow: hidden;
149
- text-overflow: ellipsis;
150
- white-space: nowrap;
151
148
  flex: 1;
152
149
  margin-right: 16px;
153
150
  }
154
151
 
152
+ .supporting-text-end {
153
+ margin-left: auto;
154
+ flex-shrink: 0;
155
+ }
156
+
155
157
  :host([disabled]) {
156
158
  pointer-events: none;
157
159
  }
@@ -170,6 +172,7 @@ export default css `
170
172
  }
171
173
 
172
174
  :host([invalid]) .label,
175
+ :host([invalid]:focus-within) .label,
173
176
  :host([invalid]) .supporting-text,
174
177
  :host([invalid]) .end ::slotted(*) {
175
178
  color: var(--md-sys-color-error);
@@ -1 +1 @@
1
- {"version":3,"file":"common.styles.js","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/common.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n display: inline-flex;\n flex-direction: column;\n vertical-align: top;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n cursor: text;\n\n min-width: 200px;\n }\n\n .surface {\n height: 56px;\n position: relative;\n display: flex;\n align-items: center;\n cursor: inherit;\n }\n\n .container {\n position: absolute;\n inset: 0;\n z-index: 1;\n border-radius: inherit;\n }\n\n .content {\n height: inherit;\n display: flex;\n align-items: center;\n justify-content: start;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n flex: 1;\n cursor: inherit;\n }\n\n .body {\n flex: 1;\n box-sizing: border-box;\n position: relative;\n cursor: inherit;\n }\n\n .label {\n color: var(--md-sys-color-on-surface-variant);\n\n max-width: 100%;\n pointer-events: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n z-index: 3;\n\n font-family: var(--md-sys-typescale-body-large-font);\n font-weight: var(--md-sys-typescale-body-large-weight);\n font-size: var(--md-sys-typescale-body-large-size);\n letter-spacing: var(--md-sys-typescale-body-large-tracking);\n line-height: var(--md-sys-typescale-body-large-height);\n\n transform-origin: left center;\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n .input {\n caret-color: var(--md-sys-color-primary);\n color: var(--md-sys-color-on-surface);\n height: 24px; /* ??? */\n flex: 1; /* ??? */\n white-space: nowrap;\n overflow: hidden;\n background: transparent;\n border: none;\n outline: none;\n padding: 0;\n margin: 0;\n width: 1px;\n cursor: inherit;\n\n font-family: var(--md-sys-typescale-body-large-font);\n font-weight: var(--md-sys-typescale-body-large-weight);\n font-size: var(--md-sys-typescale-body-large-size);\n letter-spacing: var(--md-sys-typescale-body-large-tracking);\n line-height: var(--md-sys-typescale-body-large-height);\n }\n\n .input:-webkit-autofill,\n .input:autofill {\n background-color: transparent !important;\n }\n\n .start,\n .body,\n .end {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: start;\n }\n\n .start {\n width: 16px;\n min-width: 16px;\n }\n\n .start.prefixed {\n width: 24px;\n min-width: 24px;\n margin-left: 12px;\n margin-right: 16px;\n }\n\n .end {\n width: 16px;\n min-width: 16px;\n }\n\n .end.suffixed {\n width: 24px;\n min-width: 24px;\n margin-right: 12px;\n padding-right: 12px;\n margin-left: 16px;\n }\n\n .end ::slotted(*),\n .start ::slotted(*) {\n cursor: default;\n }\n\n .supporting-text {\n padding-top: 4px;\n color: var(--md-sys-color-on-surface-variant);\n font-family: var(--md-sys-typescale-body-medium-font);\n font-weight: var(--md-sys-typescale-body-medium-weight);\n font-size: var(--md-sys-typescale-body-medium-size);\n letter-spacing: var(--md-sys-typescale-body-medium-tracking);\n line-height: var(--md-sys-typescale-body-medium-height);\n display: flex;\n justify-content: space-between;\n padding: 0 16px;\n }\n\n .supporting-text-start {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 1;\n margin-right: 16px;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host([disabled]) .container {\n background-color: var(--md-sys-color-on-surface);\n opacity: 0.04;\n }\n\n :host([disabled]) .label,\n :host([disabled]) .input,\n :host([disabled]) .end ::slotted(*),\n :host([disabled]) .start ::slotted(*) {\n color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([invalid]) .label,\n :host([invalid]) .supporting-text,\n :host([invalid]) .end ::slotted(*) {\n color: var(--md-sys-color-error);\n }\n\n :host([invalid]:hover) .label,\n :host([invalid]:hover) .end ::slotted(*) {\n color: var(--md-sys-color-on-error-container);\n }\n\n .labelHidden .label {\n display: none;\n }\n`\n"]}
1
+ {"version":3,"file":"common.styles.js","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/common.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2LjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n display: inline-flex;\n flex-direction: column;\n vertical-align: top;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n cursor: text;\n\n min-width: 200px;\n }\n\n .surface {\n height: 56px;\n position: relative;\n display: flex;\n align-items: center;\n cursor: inherit;\n }\n\n .container {\n position: absolute;\n inset: 0;\n z-index: 1;\n border-radius: inherit;\n }\n\n .content {\n height: inherit;\n display: flex;\n align-items: center;\n justify-content: start;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n flex: 1;\n cursor: inherit;\n }\n\n .body {\n flex: 1;\n box-sizing: border-box;\n position: relative;\n cursor: inherit;\n }\n\n .label {\n color: var(--md-sys-color-on-surface-variant);\n\n max-width: 100%;\n pointer-events: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n z-index: 3;\n\n font-family: var(--md-sys-typescale-body-large-font);\n font-weight: var(--md-sys-typescale-body-large-weight);\n font-size: var(--md-sys-typescale-body-large-size);\n letter-spacing: var(--md-sys-typescale-body-large-tracking);\n line-height: var(--md-sys-typescale-body-large-height);\n\n transform-origin: left center;\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n .input {\n caret-color: var(--md-sys-color-primary);\n color: var(--md-sys-color-on-surface);\n height: 24px; /* ??? */\n flex: 1; /* ??? */\n white-space: nowrap;\n overflow: hidden;\n background: transparent;\n border: none;\n outline: none;\n padding: 0;\n margin: 0;\n width: 1px;\n cursor: inherit;\n\n font-family: var(--md-sys-typescale-body-large-font);\n font-weight: var(--md-sys-typescale-body-large-weight);\n font-size: var(--md-sys-typescale-body-large-size);\n letter-spacing: var(--md-sys-typescale-body-large-tracking);\n line-height: var(--md-sys-typescale-body-large-height);\n }\n\n .input:-webkit-autofill,\n .input:autofill {\n background-color: transparent !important;\n }\n\n .start,\n .body,\n .end {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: start;\n }\n\n .start {\n width: 16px;\n min-width: 16px;\n }\n\n .start.prefixed {\n width: 24px;\n min-width: 24px;\n margin-left: 12px;\n margin-right: 16px;\n }\n\n .end {\n width: 16px;\n min-width: 16px;\n }\n\n .end.suffixed {\n width: 24px;\n min-width: 24px;\n margin-right: 12px;\n padding-right: 12px;\n margin-left: 16px;\n }\n\n .end ::slotted(*),\n .start ::slotted(*) {\n cursor: default;\n }\n\n .supporting-text {\n padding-top: 4px;\n color: var(--md-sys-color-on-surface-variant);\n font-family: var(--md-sys-typescale-body-small-font);\n font-weight: var(--md-sys-typescale-body-small-weight);\n font-size: var(--md-sys-typescale-body-small-size);\n letter-spacing: var(--md-sys-typescale-body-small-tracking);\n line-height: var(--md-sys-typescale-body-small-height);\n display: flex;\n justify-content: space-between;\n padding: 0 16px;\n }\n\n .supporting-text-start {\n flex: 1;\n margin-right: 16px;\n }\n\n .supporting-text-end {\n margin-left: auto;\n flex-shrink: 0;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host([disabled]) .container {\n background-color: var(--md-sys-color-on-surface);\n opacity: 0.04;\n }\n\n :host([disabled]) .label,\n :host([disabled]) .input,\n :host([disabled]) .end ::slotted(*),\n :host([disabled]) .start ::slotted(*) {\n color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([invalid]) .label,\n :host([invalid]:focus-within) .label,\n :host([invalid]) .supporting-text,\n :host([invalid]) .end ::slotted(*) {\n color: var(--md-sys-color-error);\n }\n\n :host([invalid]:hover) .label,\n :host([invalid]:hover) .end ::slotted(*) {\n color: var(--md-sys-color-on-error-container);\n }\n\n .labelHidden .label {\n display: none;\n }\n`\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filled.styles.d.ts","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/filled.styles.ts"],"names":[],"mappings":";AAEA,wBA2GC"}
1
+ {"version":3,"file":"filled.styles.d.ts","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/filled.styles.ts"],"names":[],"mappings":";AAEA,wBA+GC"}
@@ -86,6 +86,10 @@ export default css `
86
86
  border-bottom-color: var(--md-sys-color-on-error-container);
87
87
  }
88
88
 
89
+ :host([invalid]) .highlight::after {
90
+ border-bottom-color: var(--md-sys-color-error);
91
+ }
92
+
89
93
  .labelHidden .body {
90
94
  padding-top: 0;
91
95
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filled.styles.js","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/filled.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n --_active-indicator-color: var(--md-sys-color-on-surface-variant);\n --_active-indicator-height: 1px;\n --_focus-active-indicator-color: var(--md-sys-color-primary, #6750a4);\n --_focus-active-indicator-height: 2px;\n border-radius: var(--md-sys-shape-corner-extra-small-top);\n }\n\n .surface {\n height: 56px;\n border-radius: inherit;\n }\n\n .container {\n border-radius: inherit;\n background-color: var(--md-sys-color-surface-variant);\n }\n\n .body {\n overflow: hidden;\n }\n\n .label {\n position: absolute;\n transform: translateY(-1.35rem) scale(0.8);\n top: 50%;\n }\n\n .labelResting .label {\n transform: translateY(-50%) scale(1);\n }\n\n :host(:focus-within) .label {\n color: var(--md-sys-color-primary);\n }\n\n .highlight {\n inset: auto 0px 0px;\n pointer-events: none;\n position: absolute;\n width: 100%;\n z-index: 4;\n }\n\n .highlight::before {\n content: '';\n border-bottom: 1px solid var(--md-sys-color-on-surface-variant);\n inset: auto 0px 0px;\n position: absolute;\n }\n\n .highlight::after {\n content: '';\n border-bottom-color: var(--md-sys-color-primary);\n border-bottom-width: 2px;\n border-bottom-style: solid;\n opacity: 0;\n transform: scaleX(0);\n transform-origin: center center;\n\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0s,\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 150ms;\n\n position: absolute;\n inset: auto 0px 0px;\n }\n\n :host(:focus-within) .highlight::after {\n opacity: 1;\n transform: scaleX(1);\n }\n\n :host([disabled]) .highlight::before {\n border-bottom-color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([invalid]) .highlight::before {\n border-bottom-color: var(--md-sys-color-error);\n }\n\n :host([invalid]:hover) .highlight::before {\n border-bottom-color: var(--md-sys-color-on-error-container);\n }\n\n .labelHidden .body {\n padding-top: 0;\n }\n\n .container::before {\n content: '';\n position: absolute;\n inset: 0;\n opacity: 0;\n background-color: var(--md-sys-color-on-surface-variant);\n transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n :host(:hover) .container::before {\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n .body {\n padding-top: 1em;\n }\n`\n"]}
1
+ {"version":3,"file":"filled.styles.js","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/filled.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n --_active-indicator-color: var(--md-sys-color-on-surface-variant);\n --_active-indicator-height: 1px;\n --_focus-active-indicator-color: var(--md-sys-color-primary, #6750a4);\n --_focus-active-indicator-height: 2px;\n border-radius: var(--md-sys-shape-corner-extra-small-top);\n }\n\n .surface {\n height: 56px;\n border-radius: inherit;\n }\n\n .container {\n border-radius: inherit;\n background-color: var(--md-sys-color-surface-variant);\n }\n\n .body {\n overflow: hidden;\n }\n\n .label {\n position: absolute;\n transform: translateY(-1.35rem) scale(0.8);\n top: 50%;\n }\n\n .labelResting .label {\n transform: translateY(-50%) scale(1);\n }\n\n :host(:focus-within) .label {\n color: var(--md-sys-color-primary);\n }\n\n .highlight {\n inset: auto 0px 0px;\n pointer-events: none;\n position: absolute;\n width: 100%;\n z-index: 4;\n }\n\n .highlight::before {\n content: '';\n border-bottom: 1px solid var(--md-sys-color-on-surface-variant);\n inset: auto 0px 0px;\n position: absolute;\n }\n\n .highlight::after {\n content: '';\n border-bottom-color: var(--md-sys-color-primary);\n border-bottom-width: 2px;\n border-bottom-style: solid;\n opacity: 0;\n transform: scaleX(0);\n transform-origin: center center;\n\n transition:\n opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0s,\n transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 150ms;\n\n position: absolute;\n inset: auto 0px 0px;\n }\n\n :host(:focus-within) .highlight::after {\n opacity: 1;\n transform: scaleX(1);\n }\n\n :host([disabled]) .highlight::before {\n border-bottom-color: var(--md-sys-color-on-surface);\n opacity: 0.38;\n }\n\n :host([invalid]) .highlight::before {\n border-bottom-color: var(--md-sys-color-error);\n }\n\n :host([invalid]:hover) .highlight::before {\n border-bottom-color: var(--md-sys-color-on-error-container);\n }\n\n :host([invalid]) .highlight::after {\n border-bottom-color: var(--md-sys-color-error);\n }\n\n .labelHidden .body {\n padding-top: 0;\n }\n\n .container::before {\n content: '';\n position: absolute;\n inset: 0;\n opacity: 0;\n background-color: var(--md-sys-color-on-surface-variant);\n transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n :host(:hover) .container::before {\n opacity: var(--md-sys-state-hover-state-layer-opacity);\n }\n\n .body {\n padding-top: 1em;\n }\n`\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"outlined.styles.d.ts","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/outlined.styles.ts"],"names":[],"mappings":";AAEA,wBAwCC"}
1
+ {"version":3,"file":"outlined.styles.d.ts","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/outlined.styles.ts"],"names":[],"mappings":";AAEA,wBA4DC"}
@@ -1,5 +1,11 @@
1
1
  import { css } from 'lit';
2
2
  export default css `
3
+ :host {
4
+ --_border-color: var(--md-sys-color-outline);
5
+ --_outline-color: var(--md-sys-color-primary);
6
+ --_outline-width: 0px;
7
+ }
8
+
3
9
  .highlight {
4
10
  display: none;
5
11
  }
@@ -9,21 +15,35 @@ export default css `
9
15
  }
10
16
 
11
17
  .container {
12
- border: 1px var(--md-sys-color-outline) solid;
13
- outline: 0px solid var(--md-sys-color-primary);
14
- outline-offset: -3px;
18
+ border: 1px var(--_border-color) solid;
19
+ outline: var(--_outline-width) solid var(--_outline-color);
20
+ outline-offset: calc(-1 * var(--_outline-width));
15
21
  transition:
16
22
  border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
17
- outline-width 150ms cubic-bezier(0.4, 0, 0.2, 1);
23
+ outline-width 150ms cubic-bezier(0.4, 0, 0.2, 1),
24
+ outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);
25
+ }
26
+
27
+ :host(:hover:not(:focus-within):not([invalid])) {
28
+ --_border-color: var(--md-sys-color-on-surface);
29
+ }
30
+
31
+ :host(:focus-within:not([invalid])) {
32
+ --_border-color: var(--md-sys-color-primary);
33
+ }
34
+
35
+ :host(:focus-within) {
36
+ --_outline-width: 3px;
18
37
  }
19
38
 
20
- :host(:hover:not(:focus-within)) .container {
21
- border-color: var(--md-sys-color-on-surface);
39
+ :host([invalid]) {
40
+ --_border-color: var(--md-sys-color-error);
41
+ --_outline-color: var(--md-sys-color-error);
22
42
  }
23
43
 
24
- :host(:focus-within) .container {
25
- border-color: var(--md-sys-color-primary);
26
- outline-width: 3px;
44
+ :host([invalid]:hover) {
45
+ --_outline-color: var(--md-sys-color-on-error-container);
46
+ --_border-color: var(--md-sys-color-on-error-container);
27
47
  }
28
48
 
29
49
  .label {
@@ -1 +1 @@
1
- {"version":3,"file":"outlined.styles.js","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/outlined.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n .highlight {\n display: none;\n }\n\n .surface {\n border-radius: var(--md-sys-shape-corner-extra-small);\n }\n\n .container {\n border: 1px var(--md-sys-color-outline) solid;\n outline: 0px solid var(--md-sys-color-primary);\n outline-offset: -3px;\n transition:\n border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),\n outline-width 150ms cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n :host(:hover:not(:focus-within)) .container {\n border-color: var(--md-sys-color-on-surface);\n }\n\n :host(:focus-within) .container {\n border-color: var(--md-sys-color-primary);\n outline-width: 3px;\n }\n\n .label {\n padding: 0 4px;\n }\n\n .labelActive .label {\n transform: translateY(calc(-100% - 2px)) scale(0.75);\n position: absolute;\n background-color: var(--md-sys-color-surface);\n }\n\n :host(:focus-within) .label {\n color: var(--md-sys-color-primary);\n }\n`\n"]}
1
+ {"version":3,"file":"outlined.styles.js","sourceRoot":"","sources":["../../../../../src/md/text-field/internals/outlined.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n --_border-color: var(--md-sys-color-outline);\n --_outline-color: var(--md-sys-color-primary);\n --_outline-width: 0px;\n }\n\n .highlight {\n display: none;\n }\n\n .surface {\n border-radius: var(--md-sys-shape-corner-extra-small);\n }\n\n .container {\n border: 1px var(--_border-color) solid;\n outline: var(--_outline-width) solid var(--_outline-color);\n outline-offset: calc(-1 * var(--_outline-width));\n transition:\n border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),\n outline-width 150ms cubic-bezier(0.4, 0, 0.2, 1),\n outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n :host(:hover:not(:focus-within):not([invalid])) {\n --_border-color: var(--md-sys-color-on-surface);\n }\n\n :host(:focus-within:not([invalid])) {\n --_border-color: var(--md-sys-color-primary);\n }\n\n :host(:focus-within) {\n --_outline-width: 3px;\n }\n\n :host([invalid]) {\n --_border-color: var(--md-sys-color-error);\n --_outline-color: var(--md-sys-color-error);\n }\n\n :host([invalid]:hover) {\n --_outline-color: var(--md-sys-color-on-error-container);\n --_border-color: var(--md-sys-color-on-error-container);\n }\n\n .label {\n padding: 0 4px;\n }\n\n .labelActive .label {\n transform: translateY(calc(-100% - 2px)) scale(0.75);\n position: absolute;\n background-color: var(--md-sys-color-surface);\n }\n\n :host(:focus-within) .label {\n color: var(--md-sys-color-primary);\n }\n`\n"]}