|
| 1 | +{ |
| 2 | + "schemaVersion": "1.0.0", |
| 3 | + "readme": "", |
| 4 | + "modules": [ |
| 5 | + { |
| 6 | + "kind": "javascript-module", |
| 7 | + "path": "index.ts", |
| 8 | + "declarations": [], |
| 9 | + "exports": [ |
| 10 | + { |
| 11 | + "kind": "js", |
| 12 | + "name": "*", |
| 13 | + "declaration": { |
| 14 | + "name": "*", |
| 15 | + "package": "./src/breadcrumbs.js" |
| 16 | + } |
| 17 | + } |
| 18 | + ] |
| 19 | + }, |
| 20 | + { |
| 21 | + "kind": "javascript-module", |
| 22 | + "path": "register.ts", |
| 23 | + "declarations": [], |
| 24 | + "exports": [ |
| 25 | + { |
| 26 | + "kind": "custom-element-definition", |
| 27 | + "name": "sl-breadcrumbs", |
| 28 | + "declaration": { |
| 29 | + "name": "Breadcrumbs", |
| 30 | + "module": "/src/breadcrumbs.js" |
| 31 | + } |
| 32 | + } |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + "kind": "javascript-module", |
| 37 | + "path": "src/breadcrumbs.ts", |
| 38 | + "declarations": [ |
| 39 | + { |
| 40 | + "kind": "class", |
| 41 | + "description": "A component to display a breadcrumb trail.", |
| 42 | + "name": "Breadcrumbs", |
| 43 | + "slots": [ |
| 44 | + { |
| 45 | + "description": "The breadcrumbs to display.", |
| 46 | + "name": "default" |
| 47 | + } |
| 48 | + ], |
| 49 | + "members": [ |
| 50 | + { |
| 51 | + "kind": "field", |
| 52 | + "name": "breadcrumbs", |
| 53 | + "type": { |
| 54 | + "text": "Breadcrumb[]" |
| 55 | + }, |
| 56 | + "default": "[]", |
| 57 | + "description": "The slotted breadcrumbs." |
| 58 | + }, |
| 59 | + { |
| 60 | + "kind": "field", |
| 61 | + "name": "collapseThreshold", |
| 62 | + "default": "3", |
| 63 | + "description": "The threshold for when breadcrumbs should be collapsed into a menu.", |
| 64 | + "type": { |
| 65 | + "text": "number" |
| 66 | + } |
| 67 | + }, |
| 68 | + { |
| 69 | + "kind": "field", |
| 70 | + "name": "homeUrl", |
| 71 | + "type": { |
| 72 | + "text": "string" |
| 73 | + }, |
| 74 | + "static": true, |
| 75 | + "default": "'/'", |
| 76 | + "description": "The url for the home link, defaults to the root url.\n\nBy changing this static property you can change the default value for\nall future instances of the component. Changing the static property\nwon't affect already created instances.", |
| 77 | + "attribute": "home-url" |
| 78 | + }, |
| 79 | + { |
| 80 | + "kind": "field", |
| 81 | + "name": "homeUrl", |
| 82 | + "description": "The url for the home link, defaults to the root url.\n\nIf you want to change the default value for all future instances of the component,\nyou can change the static property. If you want to change the property of an already\ncreated instance, you need to change this property." |
| 83 | + }, |
| 84 | + { |
| 85 | + "kind": "field", |
| 86 | + "name": "noHome", |
| 87 | + "type": { |
| 88 | + "text": "boolean" |
| 89 | + }, |
| 90 | + "static": true, |
| 91 | + "default": "false", |
| 92 | + "description": "When true doesn't show a home link as the first breadcrumb.\n\nBy changing this static property you can change the default value for\nall future instances of the component. Changing the static property\nwon't affect already created instances.", |
| 93 | + "attribute": "no-home" |
| 94 | + }, |
| 95 | + { |
| 96 | + "kind": "field", |
| 97 | + "name": "noHome", |
| 98 | + "description": "When true doesn't show a home link as the first breadcrumb.\n\nIf you want to change the default value for all future instances of the component,\nyou can change the static property. If you want to change the property of an already\ncreated instance, you need to change this property." |
| 99 | + } |
| 100 | + ], |
| 101 | + "attributes": [ |
| 102 | + { |
| 103 | + "name": "home-url", |
| 104 | + "type": { |
| 105 | + "text": "string" |
| 106 | + }, |
| 107 | + "default": "'/'", |
| 108 | + "description": "The url for the home link, defaults to the root url.\n\nBy changing this static property you can change the default value for\nall future instances of the component. Changing the static property\nwon't affect already created instances.", |
| 109 | + "fieldName": "homeUrl" |
| 110 | + }, |
| 111 | + { |
| 112 | + "name": "no-home", |
| 113 | + "type": { |
| 114 | + "text": "boolean" |
| 115 | + }, |
| 116 | + "default": "false", |
| 117 | + "description": "When true doesn't show a home link as the first breadcrumb.\n\nBy changing this static property you can change the default value for\nall future instances of the component. Changing the static property\nwon't affect already created instances.", |
| 118 | + "fieldName": "noHome" |
| 119 | + } |
| 120 | + ], |
| 121 | + "mixins": [ |
| 122 | + { |
| 123 | + "name": "ScopedElementsMixin", |
| 124 | + "package": "@open-wc/scoped-elements/lit-element.js" |
| 125 | + } |
| 126 | + ], |
| 127 | + "superclass": { |
| 128 | + "name": "LitElement", |
| 129 | + "package": "lit" |
| 130 | + }, |
| 131 | + "tagName": "sl-breadcrumbs", |
| 132 | + "customElement": true, |
| 133 | + "methods": [ |
| 134 | + { |
| 135 | + "kind": "method", |
| 136 | + "name": "#onSlotchange", |
| 137 | + "return": { |
| 138 | + "type": { |
| 139 | + "text": "void" |
| 140 | + } |
| 141 | + }, |
| 142 | + "parameters": [ |
| 143 | + { |
| 144 | + "name": "event", |
| 145 | + "type": { |
| 146 | + "text": "Event & { target: HTMLSlotElement }" |
| 147 | + } |
| 148 | + } |
| 149 | + ] |
| 150 | + }, |
| 151 | + { |
| 152 | + "kind": "method", |
| 153 | + "name": "#update", |
| 154 | + "return": { |
| 155 | + "type": { |
| 156 | + "text": "void" |
| 157 | + } |
| 158 | + } |
| 159 | + } |
| 160 | + ], |
| 161 | + "fields": [ |
| 162 | + { |
| 163 | + "kind": "field", |
| 164 | + "name": "scopedElements", |
| 165 | + "type": { |
| 166 | + "text": "ScopedElementsMap" |
| 167 | + }, |
| 168 | + "static": true, |
| 169 | + "privacy": "private", |
| 170 | + "readonly": true |
| 171 | + }, |
| 172 | + { |
| 173 | + "kind": "field", |
| 174 | + "name": "#observer", |
| 175 | + "privacy": "private", |
| 176 | + "default": "new ResizeObserver(() => this.#update())", |
| 177 | + "description": "Observe changes in size, so we can check whether we need to show tooltips\nfor truncated links." |
| 178 | + }, |
| 179 | + { |
| 180 | + "kind": "field", |
| 181 | + "name": "breadcrumbs", |
| 182 | + "type": { |
| 183 | + "text": "Breadcrumb[]" |
| 184 | + }, |
| 185 | + "default": "[]", |
| 186 | + "description": "The slotted breadcrumbs." |
| 187 | + }, |
| 188 | + { |
| 189 | + "kind": "field", |
| 190 | + "name": "collapseThreshold", |
| 191 | + "default": "3", |
| 192 | + "description": "The threshold for when breadcrumbs should be collapsed into a menu.", |
| 193 | + "type": { |
| 194 | + "text": "number" |
| 195 | + } |
| 196 | + }, |
| 197 | + { |
| 198 | + "kind": "field", |
| 199 | + "name": "homeUrl", |
| 200 | + "description": "The url for the home link, defaults to the root url.\n\nIf you want to change the default value for all future instances of the component,\nyou can change the static property. If you want to change the property of an already\ncreated instance, you need to change this property." |
| 201 | + }, |
| 202 | + { |
| 203 | + "kind": "field", |
| 204 | + "name": "noHome", |
| 205 | + "description": "When true doesn't show a home link as the first breadcrumb.\n\nIf you want to change the default value for all future instances of the component,\nyou can change the static property. If you want to change the property of an already\ncreated instance, you need to change this property." |
| 206 | + } |
| 207 | + ] |
| 208 | + } |
| 209 | + ], |
| 210 | + "exports": [ |
| 211 | + { |
| 212 | + "kind": "js", |
| 213 | + "name": "Breadcrumbs", |
| 214 | + "declaration": { |
| 215 | + "name": "Breadcrumbs", |
| 216 | + "module": "src/breadcrumbs.ts" |
| 217 | + } |
| 218 | + } |
| 219 | + ] |
| 220 | + } |
| 221 | + ] |
| 222 | +} |
0 commit comments