-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: upgrade to material-components-web 0.26.0
BREAKING CHANGE: * Upgrade to material-components-web 0.26.0 * Rename directive mdcTextFieldHelptext to mdcTextFieldHelperText (follows upstream name change in @material/textfield) * Rename mdcTextField property helptext to helperText (follows upstream name change in @material/textfield) * Rename mdcTextField property isValid to valid * Rename mdcTextField property boxed to box * Rename mdcTextFieldHelperText exportAs mdcHelptext to mdcHelperText * Rename mdcTextFieldHelperText property isValidation to validation * Rename mdcTextFieldHelperText property isPersistent to persistent
- Loading branch information
Showing
13 changed files
with
1,839 additions
and
1,186 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 31 additions & 14 deletions
45
bundle/src/components/text-field/mdc.text-field.adapter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,42 @@ | ||
import { MDCTextFieldBottomLineFoundation } from '@material/textfield/bottom-line'; | ||
import { MDCTextFieldHelperTextFoundation } from '@material/textfield/helper-text'; | ||
|
||
/** @docs-private */ | ||
export interface MdcTextFieldHelperTextAdapter { | ||
addClass: (className: string) => void, | ||
removeClass: (className: string) => void, | ||
hasClass: (className: string) => void, | ||
setAttr: (name: string, value: string) => void, | ||
removeAttr: (name: string) => void, | ||
setContent: (content: string) => void | ||
} | ||
|
||
/** @docs-private */ | ||
export interface MdcTextFieldBottomLineAdapter { | ||
addClass: (className: string) => void, | ||
removeClass: (className: string) => void, | ||
setAttr: (name: string, value: string) => void, | ||
registerEventHandler: (evtType: string, handler: EventListener) => void, | ||
deregisterEventHandler: (evtType: string, handler: EventListener) => void, | ||
notifyAnimationEnd: () => void | ||
} | ||
|
||
/** @docs-private */ | ||
export interface MdcTextFieldAdapter { | ||
addClass: (className: string) => void; | ||
removeClass: (className: string) => void; | ||
addClassToLabel: (className: string) => void; | ||
removeClassFromLabel: (className: string) => void; | ||
addClass: (className: string) => void, | ||
removeClass: (className: string) => void, | ||
addClassToLabel: (className: string) => void, | ||
removeClassFromLabel: (className: string) => void, | ||
setIconAttr: (name: string, value: string) => void, | ||
eventTargetHasClass: (target: HTMLElement, className: string) => void, | ||
registerTextFieldInteractionHandler: (evtType: string, handler: EventListener) => void, | ||
deregisterTextFieldInteractionHandler: (evtType: string, handler: EventListener) => void, | ||
notifyIconAction: () => void, | ||
addClassToBottomLine: (className: string) => void; | ||
removeClassFromBottomLine: (className: string) => void; | ||
addClassToHelptext: (className: string) => void; | ||
removeClassFromHelptext: (className: string) => void; | ||
helptextHasClass: (className: string) => boolean; | ||
registerInputInteractionHandler: (evtType: string, handler: EventListener) => void, | ||
deregisterInputInteractionHandler: (evtType: string, handler: EventListener) => void, | ||
registerTransitionEndHandler: (handler: EventListener) => void, | ||
deregisterTransitionEndHandler: (handler: EventListener) => void, | ||
setBottomLineAttr: (attr: string, value: string) => void, | ||
setHelptextAttr: (name: string, value: string) => void, | ||
removeHelptextAttr: (name: string) => void, | ||
registerBottomLineEventHandler: (evtType: string, handler: EventListener) => void, | ||
deregisterBottomLineEventHandler: (evtType: string, handler: EventListener) => void, | ||
getNativeInput: () => {value: string, disabled: boolean, badInput: boolean, checkValidity: () => boolean} | ||
getBottomLineFoundation: () => MDCTextFieldBottomLineFoundation, | ||
getHelperTextFoundation: () => MDCTextFieldHelperTextFoundation | ||
} |
Oops, something went wrong.