- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
39 lines
978 B
JavaScript
39 lines
978 B
JavaScript
import HTMLElement from '../html-element/HTMLElement.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
import ParentNodeUtility from '../parent-node/ParentNodeUtility.js';
|
|
/**
|
|
* HTMLMapElement
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement
|
|
*/
|
|
export default class HTMLMapElement extends HTMLElement {
|
|
[PropertySymbol.areas] = null;
|
|
/**
|
|
* Returns areas.
|
|
*
|
|
* @returns Areas.
|
|
*/
|
|
get areas() {
|
|
if (!this[PropertySymbol.areas]) {
|
|
this[PropertySymbol.areas] = ParentNodeUtility.getElementsByTagName(this, 'area');
|
|
}
|
|
return this[PropertySymbol.areas];
|
|
}
|
|
/**
|
|
* Returns name.
|
|
*
|
|
* @returns Name.
|
|
*/
|
|
get name() {
|
|
return this.getAttribute('name') || '';
|
|
}
|
|
/**
|
|
* Sets name.
|
|
*
|
|
* @param name Name.
|
|
*/
|
|
set name(name) {
|
|
this.setAttribute('name', name);
|
|
}
|
|
}
|
|
//# sourceMappingURL=HTMLMapElement.js.map
|