@api-viewer/demo
Advanced tools
Comparing version 1.0.0-pre.6 to 1.0.0-pre.7
import { LitElement, TemplateResult } from 'lit'; | ||
import './layout.js'; | ||
declare const ApiDemoBase_base: typeof LitElement & import("@api-viewer/common/lib/manifest-mixin").Constructor<import("@api-viewer/common/lib/manifest-mixin").ManifestMixinInterface>; | ||
declare const ApiDemoBase_base: typeof LitElement & import("@api-viewer/common/lib/manifest-mixin.js").Constructor<import("@api-viewer/common/lib/manifest-mixin.js").ManifestMixinInterface>; | ||
export declare class ApiDemoBase extends ApiDemoBase_base { | ||
@@ -5,0 +5,0 @@ excludeKnobs?: string; |
@@ -13,3 +13,3 @@ import { __decorate } from "tslib"; | ||
const elements = getCustomElements(manifest, only); | ||
const data = getElementData(manifest, selected); | ||
const data = getElementData(manifest, elements, selected); | ||
const props = getPublicFields(data.members); | ||
@@ -16,0 +16,0 @@ return html ` |
import { ReactiveControllerHost } from 'lit'; | ||
export declare type AbstractControllerHost = HTMLElement & ReactiveControllerHost; | ||
export type AbstractControllerHost = HTMLElement & ReactiveControllerHost; | ||
export declare class AbstractController<T> { | ||
@@ -4,0 +4,0 @@ host: AbstractControllerHost; |
export class AbstractController { | ||
constructor(host, component) { | ||
this._data = []; | ||
(this.host = host).addController(this); | ||
this.el = component; | ||
} | ||
get data() { | ||
@@ -20,2 +15,7 @@ return this._data; | ||
} | ||
constructor(host, component) { | ||
this._data = []; | ||
(this.host = host).addController(this); | ||
this.el = component; | ||
} | ||
clear() { | ||
@@ -22,0 +22,0 @@ this.data = []; |
import { CssCustomProperty, ClassField } from '@api-viewer/common/lib/index.js'; | ||
export declare type CssCustomPropertyValue = CssCustomProperty & { | ||
export type CssCustomPropertyValue = CssCustomProperty & { | ||
value?: string; | ||
@@ -9,8 +9,8 @@ }; | ||
} | ||
export declare type KnobValue = string | number | boolean | null | undefined; | ||
export declare type ComponentWithProps = { | ||
export type KnobValue = string | number | boolean | null | undefined; | ||
export type ComponentWithProps = { | ||
[key: string]: KnobValue; | ||
}; | ||
export declare type Knobable = unknown | (CssCustomProperty | ClassField | SlotValue); | ||
export declare type Knob<T extends Knobable = unknown> = T & { | ||
export type Knobable = unknown | (CssCustomProperty | ClassField | SlotValue); | ||
export type Knob<T extends Knobable = unknown> = T & { | ||
attribute: string | undefined; | ||
@@ -22,3 +22,3 @@ value: KnobValue; | ||
}; | ||
export declare type PropertyKnob = Knob<ClassField>; | ||
export type PropertyKnob = Knob<ClassField>; | ||
export interface HasKnobs { | ||
@@ -25,0 +25,0 @@ getKnob(name: string): { |
import { TemplateResult } from 'lit'; | ||
import { Knobable } from '../types.js'; | ||
declare type InputRenderer = (item: Knobable, id: string) => TemplateResult; | ||
type InputRenderer = (item: Knobable, id: string) => TemplateResult; | ||
export declare const formatSlot: (name: string) => string; | ||
@@ -5,0 +5,0 @@ export declare const cssPropRenderer: InputRenderer; |
import { ClassField } from '@api-viewer/common/lib/index.js'; | ||
import { PropertyKnob } from '../types.js'; | ||
export declare const getKnobs: (tag: string, props: ClassField[], exclude?: string) => PropertyKnob[]; | ||
export declare const getCustomKnobs: (tag: string, vid?: number | undefined) => PropertyKnob[]; | ||
export declare const getCustomKnobs: (tag: string, vid?: number) => PropertyKnob[]; | ||
export declare const getInitialKnobs: (propKnobs: PropertyKnob[], component: HTMLElement) => PropertyKnob[]; | ||
//# sourceMappingURL=knobs.d.ts.map |
import { ChildPart, noChange, nothing, TemplateResult } from 'lit'; | ||
import { Directive, PartInfo } from 'lit/directive.js'; | ||
import { Knob } from '../types.js'; | ||
export declare type ComponentRendererOptions = { | ||
export type ComponentRendererOptions = { | ||
id: number; | ||
@@ -14,4 +14,4 @@ tag: string; | ||
} | ||
export declare const renderer: (_options: ComponentRendererOptions) => import("lit-html/directive").DirectiveResult<typeof Renderer>; | ||
export declare const renderer: (_options: ComponentRendererOptions) => import("lit-html/directive.js").DirectiveResult<typeof Renderer>; | ||
export {}; | ||
//# sourceMappingURL=renderer.d.ts.map |
{ | ||
"name": "@api-viewer/demo", | ||
"version": "1.0.0-pre.6", | ||
"version": "1.0.0-pre.7", | ||
"publishConfig": { | ||
@@ -35,4 +35,4 @@ "access": "public" | ||
"dependencies": { | ||
"@api-viewer/common": "^1.0.0-pre.6", | ||
"@api-viewer/tabs": "^1.0.0-pre.6", | ||
"@api-viewer/common": "^1.0.0-pre.7", | ||
"@api-viewer/tabs": "^1.0.0-pre.7", | ||
"highlight-ts": "9.12.1-2", | ||
@@ -63,5 +63,5 @@ "lit": "^2.0.0", | ||
"path": "lib/api-demo.js", | ||
"limit": "19 KB" | ||
"limit": "25 KB" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146072