1; (function (root, factory) { 2 const ns = root.FieldKit = root.FieldKit || {}; 3 ns.icons = ns.icons || {}; 4 factory(ns); 5})(window, function (FieldKit) { 6 const icons = FieldKit.icons; 7 8 class BaseIcon { 9 /** @type {Field} host */ 10 host; 11 12 /** @type {HTMLElement} el */ 13 element; 14 15 /** 16 * @param {Field} host 17 */ 18 constructor(host) { 19 this.host = host; 20 this.element = this.render(); 21 this.bind(); 22 } 23 24 /** 25 * Render icon DOM. Must be overridden by subclasses. 26 */ 27 render() { 28 throw new Error('render() not implemented'); 29 } 30 31 /** 32 * Optional - subclasses add listeners here. 33 */ 34 bind() { } 35 36 /** 37 * Optional - react to error state toggles. 38 * @param {boolean} active 39 */ 40 onError(active) { } 41 } 42 43 // namespace export 44 icons.BaseIcon = BaseIcon; 45});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.