File tree 7 files changed +21
-23
lines changed
7 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 1
- import { ICustomElement } from "./types" ;
1
+ import { ICustomElement } from "./types.js " ;
2
2
3
3
/** Save a reference to the ref for teh CustomStateSet */
4
4
const customStateMap = new WeakMap < CustomStateSet , ICustomElement > ( ) ;
Original file line number Diff line number Diff line change 1
- import { setFormValidity } from " ./utils" ;
1
+ import { setFormValidity } from ' ./utils.js' ;
2
2
3
3
/** Emulate the browser's default ValidityState object */
4
4
export class ValidityState implements globalThis . ValidityState {
Original file line number Diff line number Diff line change 1
1
import { upgradeMap } from './maps.js' ;
2
- import { IAom , IElementInternals } from './types' ;
2
+ import { IAom , IElementInternals } from './types.js ' ;
3
3
4
4
export const aom : IAom = {
5
5
ariaAtomic : 'aria-atomic' ,
Original file line number Diff line number Diff line change 1
1
import {
2
2
connectedCallbackMap ,
3
- formElementsMap ,
4
3
internalsMap ,
5
4
refMap ,
6
5
refValueMap ,
@@ -10,24 +9,23 @@ import {
10
9
validityMap ,
11
10
validationMessageMap ,
12
11
validityUpgradeMap ,
13
- } from './maps' ;
12
+ } from './maps.js ' ;
14
13
import {
15
14
createHiddenInput ,
16
15
findParentForm ,
17
16
initRef ,
18
17
mutationObserverExists ,
19
- overrideFormMethod ,
20
18
removeHiddenInputs ,
21
19
setDisabled ,
22
20
throwIfNotFormAssociated ,
23
21
upgradeInternals
24
- } from './utils' ;
25
- import { initAom } from './aom' ;
26
- import { ValidityState , reconcileValidity , setValid } from './ValidityState' ;
27
- import { deferUpgrade , observerCallback , observerConfig } from './mutation-observers' ;
28
- import { IElementInternals , ICustomElement , LabelsList } from './types' ;
29
- import { CustomStateSet } from './CustomStateSet' ;
30
- import { patchFormPrototype } from './patch-form-prototype' ;
22
+ } from './utils.js ' ;
23
+ import { initAom } from './aom.js ' ;
24
+ import { ValidityState , reconcileValidity , setValid } from './ValidityState.js ' ;
25
+ import { deferUpgrade , observerCallback , observerConfig } from './mutation-observers.js ' ;
26
+ import { IElementInternals , ICustomElement , LabelsList } from './types.js ' ;
27
+ import { CustomStateSet } from './CustomStateSet.js ' ;
28
+ import { patchFormPrototype } from './patch-form-prototype.js ' ;
31
29
32
30
export class ElementInternals implements IElementInternals {
33
31
ariaAtomic : string ;
Original file line number Diff line number Diff line change 1
- import { ElementInternals } from './element-internals' ;
2
- import { CustomStateSet } from './CustomStateSet' ;
3
- import './element-internals' ;
4
- import { IElementInternals } from './types' ;
5
- export * from './types' ;
1
+ import { ElementInternals } from './element-internals.js ' ;
2
+ import { CustomStateSet } from './CustomStateSet.js ' ;
3
+ import './element-internals.js ' ;
4
+ import { IElementInternals } from './types.js ' ;
5
+ export * from './types.js ' ;
6
6
7
7
declare global {
8
8
interface Window {
Original file line number Diff line number Diff line change 1
- import { HTMLFormControlsCollection } from './HTMLFormControlsCollection' ;
2
- import { formElementsMap } from " ./maps" ;
3
- import { overrideFormMethod } from " ./utils" ;
1
+ import { HTMLFormControlsCollection } from './HTMLFormControlsCollection.js ' ;
2
+ import { formElementsMap } from ' ./maps.js' ;
3
+ import { overrideFormMethod } from ' ./utils.js' ;
4
4
5
5
/**
6
6
* Patch the HTMLElement prototype
Original file line number Diff line number Diff line change 1
- import { CustomStateSet } from " ./CustomStateSet" ;
2
- import { ElementInternals } from " ./element-internals" ;
1
+ import { CustomStateSet } from ' ./CustomStateSet.js' ;
2
+ import { ElementInternals } from ' ./element-internals.js' ;
3
3
4
4
export interface IAom {
5
5
ariaAtomic : string ;
You can’t perform that action at this time.
0 commit comments