Skip to content
Snippets Groups Projects
Select Git revision
  • d6e1c73304b626642dc6e794fba8a230e65dabd7
  • master default protected
  • 1.31
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
  • 4.32.0
  • 4.31.0
  • 4.30.1
  • 4.30.0
  • 4.29.1
  • 4.29.0
  • 4.28.0
  • 4.27.0
  • 4.26.0
  • 4.25.5
  • 4.25.4
  • 4.25.3
  • 4.25.2
  • 4.25.1
23 results

tutorial-03-dom.html

Blame
  • customelement.mjs 31.97 KiB
    /**
     * Copyright © schukai GmbH and all contributing authors, {{copyRightYear}}. All rights reserved.
     * Node module: @schukai/monster
     *
     * This source code is licensed under the GNU Affero General Public License version 3 (AGPLv3).
     * The full text of the license can be found at: https://www.gnu.org/licenses/agpl-3.0.en.html
     *
     * For those who do not wish to adhere to the AGPLv3, a commercial license is available.
     * Acquiring a commercial license allows you to use this software without complying with the AGPLv3 terms.
     * For more information about purchasing a commercial license, please contact schukai GmbH.
     *
     * SPDX-License-Identifier: AGPL-3.0
     */
    
    import { findElementWithIdUpwards } from "./util.mjs";
    import { internalSymbol } from "../constants.mjs";
    import { extend } from "../data/extend.mjs";
    import { Pathfinder } from "../data/pathfinder.mjs";
    import { Formatter } from "../text/formatter.mjs";
    
    import { parseDataURL } from "../types/dataurl.mjs";
    import { getGlobalObject } from "../types/global.mjs";
    import {
    	isArray,
    	isFunction,
    	isIterable,
    	isObject,
    	isString,
    } from "../types/is.mjs";
    import { Observer } from "../types/observer.mjs";
    import { ProxyObserver } from "../types/proxyobserver.mjs";
    import {
    	validateFunction,
    	validateInstance,
    	validateObject,
    } from "../types/validate.mjs";
    import { clone } from "../util/clone.mjs";
    import {
    	addAttributeToken,
    	getLinkedObjects,
    	hasObjectLink,
    } from "./attributes.mjs";
    import {
    	ATTRIBUTE_DISABLED,
    	ATTRIBUTE_ERRORMESSAGE,
    	ATTRIBUTE_OPTIONS,
    	ATTRIBUTE_INIT_CALLBACK,
    	ATTRIBUTE_OPTIONS_SELECTOR,
    	ATTRIBUTE_SCRIPT_HOST,
    	customElementUpdaterLinkSymbol,
    	initControlCallbackName,
    } from "./constants.mjs";
    import { findDocumentTemplate, Template } from "./template.mjs";
    import { addObjectWithUpdaterToElement } from "./updater.mjs";
    import { instanceSymbol } from "../constants.mjs";
    import { getDocumentTranslations } from "../i18n/translations.mjs";
    import { getSlottedElements } from "./slotted.mjs";
    import { initOptionsFromAttributes } from "./util/init-options-from-attributes.mjs";
    import { setOptionFromAttribute } from "./util/set-option-from-attribute.mjs";
    
    export {
    	CustomElement,
    	initMethodSymbol,
    	assembleMethodSymbol,
    	attributeObserverSymbol,
    	registerCustomElement,
    	getSlottedElements,
    	updaterTransformerMethodsSymbol,
    };