@wirekyt/angular 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fesm2022/wirekyt-angular-accordion.mjs +58 -22
- package/dist/fesm2022/wirekyt-angular-accordion.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs +92 -9
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-combobox.mjs +44 -74
- package/dist/fesm2022/wirekyt-angular-combobox.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs +1315 -0
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-dialog.mjs +532 -0
- package/dist/fesm2022/wirekyt-angular-dialog.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-presence.mjs +176 -0
- package/dist/fesm2022/wirekyt-angular-presence.mjs.map +1 -0
- package/dist/package.json +13 -1
- package/dist/types/wirekyt-angular-accordion.d.ts +5 -1
- package/dist/types/wirekyt-angular-accordion.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-color-picker.d.ts +7 -3
- package/dist/types/wirekyt-angular-color-picker.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-combobox.d.ts +7 -39
- package/dist/types/wirekyt-angular-combobox.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-date-picker.d.ts +340 -0
- package/dist/types/wirekyt-angular-date-picker.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-dialog.d.ts +142 -0
- package/dist/types/wirekyt-angular-dialog.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-presence.d.ts +64 -0
- package/dist/types/wirekyt-angular-presence.d.ts.map +1 -0
- package/package.json +14 -2
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { signal, effect, computed, input, booleanAttribute, output, Directive, InjectionToken, inject, contentChild, TemplateRef, viewChild, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { useMachine } from '@wirekyt/angular';
|
|
5
|
+
import * as presence from '@wirekyt/dom/machines/presence';
|
|
6
|
+
|
|
7
|
+
function usePresence(options) {
|
|
8
|
+
const wasEverPresent = signal(false, /* @ts-ignore */
|
|
9
|
+
...(ngDevMode ? [{ debugName: "wasEverPresent" }] : /* istanbul ignore next */ []));
|
|
10
|
+
const machine = useMachine({
|
|
11
|
+
machine: presence.machine,
|
|
12
|
+
context: () => {
|
|
13
|
+
const props = options.context();
|
|
14
|
+
return {
|
|
15
|
+
present: props.present,
|
|
16
|
+
immediate: props.immediate,
|
|
17
|
+
onExitComplete: props.onExitComplete,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
connect: presence.connect,
|
|
21
|
+
});
|
|
22
|
+
effect(() => {
|
|
23
|
+
if (machine.api().present)
|
|
24
|
+
wasEverPresent.set(true);
|
|
25
|
+
});
|
|
26
|
+
const present = computed(() => machine.api().present, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "present" }] : /* istanbul ignore next */ []));
|
|
28
|
+
const unmounted = computed(() => {
|
|
29
|
+
const props = options.context();
|
|
30
|
+
return ((!machine.api().present && !wasEverPresent() && props.lazyMount) ||
|
|
31
|
+
Boolean(props.unmountOnExit && !machine.api().present && wasEverPresent()));
|
|
32
|
+
}, /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "unmounted" }] : /* istanbul ignore next */ []));
|
|
34
|
+
const setNode = (node) => {
|
|
35
|
+
if (node) {
|
|
36
|
+
machine.api().setNode(node);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
machine.service.refs.set("node", null);
|
|
40
|
+
machine.service.refs.set("styles", null);
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
...machine,
|
|
44
|
+
present,
|
|
45
|
+
unmounted,
|
|
46
|
+
setNode,
|
|
47
|
+
getPresenceProps: () => {
|
|
48
|
+
const props = options.context();
|
|
49
|
+
return {
|
|
50
|
+
hidden: !machine.api().present,
|
|
51
|
+
"data-state": machine.api().skip && props.skipAnimationOnMount
|
|
52
|
+
? undefined
|
|
53
|
+
: props.present
|
|
54
|
+
? "open"
|
|
55
|
+
: "closed",
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
class PresenceBase {
|
|
61
|
+
immediate = input(false, { ...(ngDevMode ? { debugName: "immediate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
62
|
+
present = input(undefined, { ...(ngDevMode ? { debugName: "present" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? undefined : booleanAttribute(value)) });
|
|
63
|
+
lazyMount = input(false, { ...(ngDevMode ? { debugName: "lazyMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
64
|
+
unmountOnExit = input(false, { ...(ngDevMode ? { debugName: "unmountOnExit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
65
|
+
skipAnimationOnMount = input(false, { ...(ngDevMode ? { debugName: "skipAnimationOnMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
66
|
+
exitComplete = output();
|
|
67
|
+
createPresence(fallbackPresent = () => false) {
|
|
68
|
+
return usePresence({
|
|
69
|
+
context: () => ({
|
|
70
|
+
immediate: this.immediate(),
|
|
71
|
+
present: this.present() ?? fallbackPresent(),
|
|
72
|
+
lazyMount: this.lazyMount(),
|
|
73
|
+
unmountOnExit: this.unmountOnExit(),
|
|
74
|
+
skipAnimationOnMount: this.skipAnimationOnMount(),
|
|
75
|
+
onExitComplete: () => this.exitComplete.emit(),
|
|
76
|
+
}),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PresenceBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
80
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: PresenceBase, isStandalone: true, inputs: { immediate: { classPropertyName: "immediate", publicName: "immediate", isSignal: true, isRequired: false, transformFunction: null }, present: { classPropertyName: "present", publicName: "present", isSignal: true, isRequired: false, transformFunction: null }, lazyMount: { classPropertyName: "lazyMount", publicName: "lazyMount", isSignal: true, isRequired: false, transformFunction: null }, unmountOnExit: { classPropertyName: "unmountOnExit", publicName: "unmountOnExit", isSignal: true, isRequired: false, transformFunction: null }, skipAnimationOnMount: { classPropertyName: "skipAnimationOnMount", publicName: "skipAnimationOnMount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { exitComplete: "exitComplete" }, ngImport: i0 });
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PresenceBase, decorators: [{
|
|
83
|
+
type: Directive
|
|
84
|
+
}], propDecorators: { immediate: [{ type: i0.Input, args: [{ isSignal: true, alias: "immediate", required: false }] }], present: [{ type: i0.Input, args: [{ isSignal: true, alias: "present", required: false }] }], lazyMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyMount", required: false }] }], unmountOnExit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmountOnExit", required: false }] }], skipAnimationOnMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "skipAnimationOnMount", required: false }] }], exitComplete: [{ type: i0.Output, args: ["exitComplete"] }] } });
|
|
85
|
+
|
|
86
|
+
const PRESENCE_CONTEXT = new InjectionToken("WIREKYT.PRESENCE_CONTEXT");
|
|
87
|
+
function injectPresenceContext() {
|
|
88
|
+
return inject(PRESENCE_CONTEXT);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
class Presence extends PresenceBase {
|
|
92
|
+
originInjector = input(undefined, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "originInjector" }] : /* istanbul ignore next */ []));
|
|
94
|
+
content = contentChild(TemplateRef, /* @ts-ignore */
|
|
95
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
96
|
+
presenceNode = viewChild("presenceNode", /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "presenceNode" }] : /* istanbul ignore next */ []));
|
|
98
|
+
presence = this.createPresence();
|
|
99
|
+
presenceProps = computed(() => this.presence.getPresenceProps(), /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "presenceProps" }] : /* istanbul ignore next */ []));
|
|
101
|
+
constructor() {
|
|
102
|
+
super();
|
|
103
|
+
effect(() => this.presence.setNode(this.presenceNode()?.nativeElement ?? null));
|
|
104
|
+
}
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: Presence, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: Presence, isStandalone: true, selector: "presence", inputs: { originInjector: { classPropertyName: "originInjector", publicName: "originInjector", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents" }, providers: [
|
|
107
|
+
{
|
|
108
|
+
provide: PRESENCE_CONTEXT,
|
|
109
|
+
useFactory: (component) => component.presence,
|
|
110
|
+
deps: [forwardRef(() => Presence)],
|
|
111
|
+
},
|
|
112
|
+
], queries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "presenceNode", first: true, predicate: ["presenceNode"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
113
|
+
@if (!presence.unmounted()) {
|
|
114
|
+
<div
|
|
115
|
+
#presenceNode
|
|
116
|
+
data-scope="presence"
|
|
117
|
+
data-part="root"
|
|
118
|
+
[attr.data-state]="presenceProps()['data-state']"
|
|
119
|
+
[hidden]="presenceProps().hidden"
|
|
120
|
+
>
|
|
121
|
+
@if (content(); as template) {
|
|
122
|
+
<ng-container
|
|
123
|
+
[ngTemplateOutlet]="template"
|
|
124
|
+
[ngTemplateOutletInjector]="originInjector() ?? null"
|
|
125
|
+
/>
|
|
126
|
+
} @else {
|
|
127
|
+
<ng-content />
|
|
128
|
+
}
|
|
129
|
+
</div>
|
|
130
|
+
}
|
|
131
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
132
|
+
}
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: Presence, decorators: [{
|
|
134
|
+
type: Component,
|
|
135
|
+
args: [{
|
|
136
|
+
selector: "presence",
|
|
137
|
+
standalone: true,
|
|
138
|
+
imports: [NgTemplateOutlet],
|
|
139
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
|
+
host: { style: "display: contents" },
|
|
141
|
+
providers: [
|
|
142
|
+
{
|
|
143
|
+
provide: PRESENCE_CONTEXT,
|
|
144
|
+
useFactory: (component) => component.presence,
|
|
145
|
+
deps: [forwardRef(() => Presence)],
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
template: `
|
|
149
|
+
@if (!presence.unmounted()) {
|
|
150
|
+
<div
|
|
151
|
+
#presenceNode
|
|
152
|
+
data-scope="presence"
|
|
153
|
+
data-part="root"
|
|
154
|
+
[attr.data-state]="presenceProps()['data-state']"
|
|
155
|
+
[hidden]="presenceProps().hidden"
|
|
156
|
+
>
|
|
157
|
+
@if (content(); as template) {
|
|
158
|
+
<ng-container
|
|
159
|
+
[ngTemplateOutlet]="template"
|
|
160
|
+
[ngTemplateOutletInjector]="originInjector() ?? null"
|
|
161
|
+
/>
|
|
162
|
+
} @else {
|
|
163
|
+
<ng-content />
|
|
164
|
+
}
|
|
165
|
+
</div>
|
|
166
|
+
}
|
|
167
|
+
`,
|
|
168
|
+
}]
|
|
169
|
+
}], ctorParameters: () => [], propDecorators: { originInjector: [{ type: i0.Input, args: [{ isSignal: true, alias: "originInjector", required: false }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }], presenceNode: [{ type: i0.ViewChild, args: ["presenceNode", { isSignal: true }] }] } });
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Generated bundle index. Do not edit.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
export { PRESENCE_CONTEXT, Presence, PresenceBase, injectPresenceContext, usePresence };
|
|
176
|
+
//# sourceMappingURL=wirekyt-angular-presence.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-presence.mjs","sources":["../../src/components/presence/use.ts","../../src/components/presence/use-context.ts","../../src/components/presence/presence.ts","../../src/components/presence/wirekyt-angular-presence.ts"],"sourcesContent":["import {\n Directive,\n booleanAttribute,\n computed,\n effect,\n input,\n output,\n signal,\n type Signal,\n} from \"@angular/core\";\nimport { useMachine, type UseMachineReturn } from \"@wirekyt/angular\";\nimport * as presence from \"@wirekyt/dom/machines/presence\";\n\nexport interface UsePresenceProps {\n immediate?: boolean | undefined;\n present?: boolean | undefined;\n lazyMount?: boolean | undefined;\n unmountOnExit?: boolean | undefined;\n skipAnimationOnMount?: boolean | undefined;\n onExitComplete?: VoidFunction | undefined;\n}\n\nexport interface UsePresenceOptions {\n context: () => UsePresenceProps;\n}\n\nexport interface UsePresenceReturn extends UseMachineReturn<\n presence.Service[\"state\"],\n presence.Api,\n presence.Service\n> {\n readonly present: Signal<boolean>;\n readonly unmounted: Signal<boolean>;\n readonly setNode: (node: HTMLElement | null) => void;\n readonly getPresenceProps: () => {\n hidden: boolean;\n \"data-state\": \"open\" | \"closed\" | undefined;\n };\n}\n\nexport function usePresence(options: UsePresenceOptions): UsePresenceReturn {\n const wasEverPresent = signal(false);\n const machine = useMachine({\n machine: presence.machine,\n context: () => {\n const props = options.context();\n return {\n present: props.present,\n immediate: props.immediate,\n onExitComplete: props.onExitComplete,\n };\n },\n connect: presence.connect,\n });\n\n effect(() => {\n if (machine.api().present) wasEverPresent.set(true);\n });\n\n const present = computed(() => machine.api().present);\n const unmounted = computed(() => {\n const props = options.context();\n return (\n (!machine.api().present && !wasEverPresent() && props.lazyMount) ||\n Boolean(props.unmountOnExit && !machine.api().present && wasEverPresent())\n );\n });\n\n const setNode = (node: HTMLElement | null): void => {\n if (node) {\n machine.api().setNode(node);\n return;\n }\n machine.service.refs.set(\"node\", null);\n machine.service.refs.set(\"styles\", null);\n };\n\n return {\n ...machine,\n present,\n unmounted,\n setNode,\n getPresenceProps: () => {\n const props = options.context();\n return {\n hidden: !machine.api().present,\n \"data-state\":\n machine.api().skip && props.skipAnimationOnMount\n ? undefined\n : props.present\n ? \"open\"\n : \"closed\",\n };\n },\n };\n}\n\n@Directive()\nexport class PresenceBase {\n readonly immediate = input(false, { transform: booleanAttribute });\n readonly present = input<boolean | undefined, unknown>(undefined, {\n transform: (value) => (value == null ? undefined : booleanAttribute(value)),\n });\n readonly lazyMount = input(false, { transform: booleanAttribute });\n readonly unmountOnExit = input(false, { transform: booleanAttribute });\n readonly skipAnimationOnMount = input(false, { transform: booleanAttribute });\n readonly exitComplete = output<void>();\n\n protected createPresence(fallbackPresent: () => boolean = () => false): UsePresenceReturn {\n return usePresence({\n context: () => ({\n immediate: this.immediate(),\n present: this.present() ?? fallbackPresent(),\n lazyMount: this.lazyMount(),\n unmountOnExit: this.unmountOnExit(),\n skipAnimationOnMount: this.skipAnimationOnMount(),\n onExitComplete: () => this.exitComplete.emit(),\n }),\n });\n }\n}\n","import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UsePresenceReturn } from \"./use\";\n\nexport type UsePresenceContext = UsePresenceReturn;\n\nexport const PRESENCE_CONTEXT = new InjectionToken<UsePresenceReturn>(\"WIREKYT.PRESENCE_CONTEXT\");\n\nexport function injectPresenceContext(): UsePresenceReturn {\n return inject(PRESENCE_CONTEXT);\n}\n","import { NgTemplateOutlet } from \"@angular/common\";\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n forwardRef,\n Injector,\n TemplateRef,\n computed,\n contentChild,\n effect,\n input,\n viewChild,\n} from \"@angular/core\";\n\nimport { PresenceBase, type UsePresenceProps } from \"./use\";\nimport { PRESENCE_CONTEXT } from \"./use-context\";\n\nexport interface PresenceProps extends Omit<UsePresenceProps, \"onExitComplete\"> {\n originInjector?: Injector | null | undefined;\n}\n\nexport type PresenceInputs = PresenceProps;\n\n@Component({\n selector: \"presence\",\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { style: \"display: contents\" },\n providers: [\n {\n provide: PRESENCE_CONTEXT,\n useFactory: (component: Presence) => component.presence,\n deps: [forwardRef(() => Presence)],\n },\n ],\n template: `\n @if (!presence.unmounted()) {\n <div\n #presenceNode\n data-scope=\"presence\"\n data-part=\"root\"\n [attr.data-state]=\"presenceProps()['data-state']\"\n [hidden]=\"presenceProps().hidden\"\n >\n @if (content(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletInjector]=\"originInjector() ?? null\"\n />\n } @else {\n <ng-content />\n }\n </div>\n }\n `,\n})\nexport class Presence extends PresenceBase {\n readonly originInjector = input<PresenceProps[\"originInjector\"]>(undefined);\n readonly content = contentChild<TemplateRef<unknown>>(TemplateRef);\n\n private readonly presenceNode = viewChild<ElementRef<HTMLElement>>(\"presenceNode\");\n readonly presence = this.createPresence();\n protected readonly presenceProps = computed(() => this.presence.getPresenceProps());\n\n constructor() {\n super();\n effect(() => this.presence.setNode(this.presenceNode()?.nativeElement ?? null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAwCM,SAAU,WAAW,CAAC,OAA2B,E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,4BAAA,OAAO,EAAE,gBAAgB;4BACzB,UAAU,EAAE,CAAC,SAAmB,KAAK,SAAS,CAAC,QAAQ;4BACvD,IAAI,EAAE,CAAC,UAAU,CAAC,MAAK,QAAS,CAAC,CAAC;AACnC,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;AAmBT,EAAA,CAAA;AACF,iBAAA;AAGuD,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,WAAW,uEAEE,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC9DnF;;AAEG;;;;"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -62,6 +62,14 @@
|
|
|
62
62
|
"types": "./types/wirekyt-angular-date-input.d.ts",
|
|
63
63
|
"default": "./fesm2022/wirekyt-angular-date-input.mjs"
|
|
64
64
|
},
|
|
65
|
+
"./date-picker": {
|
|
66
|
+
"types": "./types/wirekyt-angular-date-picker.d.ts",
|
|
67
|
+
"default": "./fesm2022/wirekyt-angular-date-picker.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./dialog": {
|
|
70
|
+
"types": "./types/wirekyt-angular-dialog.d.ts",
|
|
71
|
+
"default": "./fesm2022/wirekyt-angular-dialog.mjs"
|
|
72
|
+
},
|
|
65
73
|
"./field": {
|
|
66
74
|
"types": "./types/wirekyt-angular-field.d.ts",
|
|
67
75
|
"default": "./fesm2022/wirekyt-angular-field.mjs"
|
|
@@ -70,6 +78,10 @@
|
|
|
70
78
|
"types": "./types/wirekyt-angular-fieldset.d.ts",
|
|
71
79
|
"default": "./fesm2022/wirekyt-angular-fieldset.mjs"
|
|
72
80
|
},
|
|
81
|
+
"./presence": {
|
|
82
|
+
"types": "./types/wirekyt-angular-presence.d.ts",
|
|
83
|
+
"default": "./fesm2022/wirekyt-angular-presence.mjs"
|
|
84
|
+
},
|
|
73
85
|
"./package.json": {
|
|
74
86
|
"default": "./package.json"
|
|
75
87
|
}
|
|
@@ -4,6 +4,7 @@ export { Api as AccordionApi, ElementIds as AccordionElementIds, FocusChangeDeta
|
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { InjectionToken, Signal, InputSignal, InputSignalWithTransform, ModelSignal, OutputEmitterRef } from '@angular/core';
|
|
6
6
|
import { UseMachineReturn } from '@wirekyt/angular';
|
|
7
|
+
import { UseCollapsibleReturn } from '@wirekyt/angular/collapsible';
|
|
7
8
|
|
|
8
9
|
type OptionalId<T extends {
|
|
9
10
|
id: string;
|
|
@@ -73,11 +74,13 @@ declare class AccordionItem {
|
|
|
73
74
|
readonly value: InputSignal<string>;
|
|
74
75
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
75
76
|
private readonly root;
|
|
76
|
-
private readonly
|
|
77
|
+
private readonly fallbackValue;
|
|
77
78
|
private readonly itemState;
|
|
79
|
+
readonly collapsible: UseCollapsibleReturn;
|
|
78
80
|
private readonly itemContext;
|
|
79
81
|
constructor();
|
|
80
82
|
getItemContext(): AccordionItemContext;
|
|
83
|
+
private readValue;
|
|
81
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItem, never>;
|
|
82
85
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItem, "[accordionItem]", ["accordionItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
83
86
|
}
|
|
@@ -91,6 +94,7 @@ declare class AccordionItemTrigger {
|
|
|
91
94
|
declare class AccordionItemContent {
|
|
92
95
|
private readonly context;
|
|
93
96
|
private readonly item;
|
|
97
|
+
private readonly collapsible;
|
|
94
98
|
private readonly template;
|
|
95
99
|
private readonly viewContainer;
|
|
96
100
|
private readonly elementRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-accordion.d.ts","sources":["../../src/components/accordion/use.ts","../../src/components/accordion/use-context.ts","../../src/components/accordion/use-item-context.ts","../../src/components/accordion/root.ts","../../src/components/accordion/root-provider.ts","../../src/components/accordion/item.ts","../../src/components/accordion/item-trigger.ts","../../src/components/accordion/item-content.ts","../../src/components/accordion/item-indicator.ts","../../src/components/accordion/context.ts","../../src/components/accordion/item-context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-accordion.d.ts","sources":["../../src/components/accordion/use.ts","../../src/components/accordion/use-context.ts","../../src/components/accordion/use-item-context.ts","../../src/components/accordion/root.ts","../../src/components/accordion/root-provider.ts","../../src/components/accordion/item.ts","../../src/components/accordion/item-trigger.ts","../../src/components/accordion/item-content.ts","../../src/components/accordion/item-indicator.ts","../../src/components/accordion/context.ts","../../src/components/accordion/item-context.ts"],"mappings":";;;;;;;;AAMA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,iBAAkB,SAAQ,UAAU,CACnD,IAAI,CAAC,SAAS,CAAC,KAAK;AAClB;AAEE,KAAM,kBAAkB,GAAG,gBAAgB,CAC/C,SAAS,CAAC,OAAO,WACjB,SAAS,CAAC,GAAG,EACb,SAAS,CAAC,OAAO;UAGF,mBAAmB;mBACnB,iBA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AI3C;AACA;AACA;AAGA,0BAAsB,oBAAoB;AAY1C;;AAsBA,sBAAkB,oBAAoB;AAItC;yCAjDW,aAAa;2CAAb,aAAa;AAwDzB;;AC1FD,cAKa,oBAAoB;;yCAApB,oBAAoB;2CAApB,oBAAoB;AAehC;;ACTD,cAKa,oBAAoB;AAC/B;AACA;AACA;AACA;AACA;AACA;;;yCANW,oBAAoB;2CAApB,oBAAoB;AA6ChC;;AC7DD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAelC;;UCbgB,wBAAwB;AACvC,eAAW,kBAAkB;AAC7B,SAAK,kBAAkB;AACxB;AAED,cAKa,gBAAgB;AAC3B,8CACc,gBAAgB,gCAEhB,wBAAwB;AAKtC;AACA;AACA;;yCAXW,gBAAgB;2CAAhB,gBAAgB;AA0B5B;;UCpCgB,4BAA4B;eAChCC,oBAAuB;UAC5BA,oBAAuB;AAC9B;AAED,cAKa,6BAA6B;AACxC,8CACc,6BAA6B,gCAE7B,4BAA4B;AAK1C;AACA;AACA;;yCAXW,6BAA6B;2CAA7B,6BAA6B;AA0BzC;;;;","names":["AccordionElementIds","AccordionFocusChangeDetails","UseAccordionItemContext"]}
|
|
@@ -4,10 +4,12 @@ export { parse as parseColor } from '@wirekyt/dom/machines/color-picker';
|
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { InputSignal, Signal, AfterContentInit, ModelSignal, InputSignalWithTransform, OutputEmitterRef, InjectionToken } from '@angular/core';
|
|
6
6
|
import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
|
|
7
|
+
import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
8
|
+
import { PresenceBase } from '@wirekyt/angular/presence';
|
|
7
9
|
import { ControlValueAccessor } from '@angular/forms';
|
|
8
10
|
import { ColorStringFormat } from '@wirekyt/dom/color-utils';
|
|
9
11
|
|
|
10
|
-
declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"root" | "
|
|
12
|
+
declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"root" | "content" | "trigger" | "label" | "control" | "positioner" | "area" | "valueText" | "formatSelect" | "areaThumb" | "channelInput" | "channelSliderTrack" | "channelSliderThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderValueText" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger">;
|
|
11
13
|
|
|
12
14
|
declare class ColorPickerArea {
|
|
13
15
|
readonly xChannel: InputSignal<colorPicker.ColorChannel | undefined>;
|
|
@@ -174,7 +176,7 @@ type ColorPickerValue = colorPicker.Color;
|
|
|
174
176
|
type ColorPickerValueChangeDetails = colorPicker.ValueChangeDetails;
|
|
175
177
|
type ColorPickerValueTextFormat = ColorStringFormat;
|
|
176
178
|
|
|
177
|
-
declare class ColorPickerRoot implements UseColorPickerReturn, ControlValueAccessor {
|
|
179
|
+
declare class ColorPickerRoot extends PresenceBase implements UseColorPickerReturn, ControlValueAccessor {
|
|
178
180
|
readonly id: InputSignal<string | undefined>;
|
|
179
181
|
readonly ids: InputSignal<Partial<ColorPickerElementIds> | undefined>;
|
|
180
182
|
readonly value: ModelSignal<ColorPickerValue | undefined>;
|
|
@@ -207,6 +209,7 @@ declare class ColorPickerRoot implements UseColorPickerReturn, ControlValueAcces
|
|
|
207
209
|
readonly api: Signal<colorPicker.Api>;
|
|
208
210
|
readonly service: colorPicker.Service;
|
|
209
211
|
readonly send: colorPicker.Service["send"];
|
|
212
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
210
213
|
protected readonly contextCarrier: ContextCarrier<ColorPickerRoot>;
|
|
211
214
|
constructor();
|
|
212
215
|
writeValue(value: ColorPickerValue | null): void;
|
|
@@ -219,12 +222,13 @@ declare class ColorPickerRoot implements UseColorPickerReturn, ControlValueAcces
|
|
|
219
222
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerRoot, "[colorPickerRoot]", ["colorPickerRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "defaultFormat": { "alias": "defaultFormat"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "openAutoFocus": { "alias": "openAutoFocus"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "initialFocusEl": { "alias": "initialFocusEl"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "format": "formatChange"; "open": "openChange"; "valueChangeEnd": "valueChangeEnd"; "focusOutside": "focusOutside"; "pointerDownOutside": "pointerDownOutside"; "interactOutside": "interactOutside"; }, never, never, true, never>;
|
|
220
223
|
}
|
|
221
224
|
|
|
222
|
-
declare class ColorPickerRootProvider implements UseColorPickerReturn {
|
|
225
|
+
declare class ColorPickerRootProvider extends PresenceBase implements UseColorPickerReturn {
|
|
223
226
|
readonly value: InputSignal<UseColorPickerReturn>;
|
|
224
227
|
readonly state: Signal<colorPicker.Service["state"]>;
|
|
225
228
|
readonly api: Signal<colorPicker.Api>;
|
|
226
229
|
readonly send: colorPicker.Service["send"];
|
|
227
230
|
get service(): colorPicker.Service;
|
|
231
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
228
232
|
protected readonly contextCarrier: ContextCarrier<ColorPickerRootProvider>;
|
|
229
233
|
constructor();
|
|
230
234
|
getContextCarrier(): ContextCarrier<ColorPickerRootProvider>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-color-picker.d.ts","sources":["../../src/components/color-picker/anatomy.ts","../../src/components/color-picker/area.ts","../../src/components/color-picker/area-background.ts","../../src/components/color-picker/area-thumb.ts","../../src/components/color-picker/channel-input.ts","../../src/components/color-picker/channel-slider.ts","../../src/components/color-picker/channel-slider-label.ts","../../src/components/color-picker/channel-slider-thumb.ts","../../src/components/color-picker/channel-slider-track.ts","../../src/components/color-picker/channel-slider-value-text.ts","../../src/components/color-picker/content.ts","../../src/components/color-picker/use.ts","../../src/components/color-picker/context.ts","../../src/components/color-picker/control.ts","../../src/components/color-picker/eye-dropper-trigger.ts","../../src/components/color-picker/format-select.ts","../../src/components/color-picker/format-trigger.ts","../../src/components/color-picker/hidden-input.ts","../../src/components/color-picker/label.ts","../../src/components/color-picker/positioner.ts","../../src/components/color-picker/types.ts","../../src/components/color-picker/root.ts","../../src/components/color-picker/root-provider.ts","../../src/components/color-picker/swatch.ts","../../src/components/color-picker/swatch-group.ts","../../src/components/color-picker/swatch-indicator.ts","../../src/components/color-picker/swatch-trigger.ts","../../src/components/color-picker/transparency-grid.ts","../../src/components/color-picker/trigger.ts","../../src/components/color-picker/value-swatch.ts","../../src/components/color-picker/value-text.ts","../../src/components/color-picker/view.ts","../../src/components/color-picker/use-context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-color-picker.d.ts","sources":["../../src/components/color-picker/anatomy.ts","../../src/components/color-picker/area.ts","../../src/components/color-picker/area-background.ts","../../src/components/color-picker/area-thumb.ts","../../src/components/color-picker/channel-input.ts","../../src/components/color-picker/channel-slider.ts","../../src/components/color-picker/channel-slider-label.ts","../../src/components/color-picker/channel-slider-thumb.ts","../../src/components/color-picker/channel-slider-track.ts","../../src/components/color-picker/channel-slider-value-text.ts","../../src/components/color-picker/content.ts","../../src/components/color-picker/use.ts","../../src/components/color-picker/context.ts","../../src/components/color-picker/control.ts","../../src/components/color-picker/eye-dropper-trigger.ts","../../src/components/color-picker/format-select.ts","../../src/components/color-picker/format-trigger.ts","../../src/components/color-picker/hidden-input.ts","../../src/components/color-picker/label.ts","../../src/components/color-picker/positioner.ts","../../src/components/color-picker/types.ts","../../src/components/color-picker/root.ts","../../src/components/color-picker/root-provider.ts","../../src/components/color-picker/swatch.ts","../../src/components/color-picker/swatch-group.ts","../../src/components/color-picker/swatch-indicator.ts","../../src/components/color-picker/swatch-trigger.ts","../../src/components/color-picker/transparency-grid.ts","../../src/components/color-picker/trigger.ts","../../src/components/color-picker/value-swatch.ts","../../src/components/color-picker/value-text.ts","../../src/components/color-picker/view.ts","../../src/components/color-picker/use-context.ts"],"mappings":";;;;;;;;;;;AAEA,cAAa,kBAAkB,EAAA,oBAAA,CAAA,OAAA;;ACiB/B,cAYa,eAAe;uBACP,WAAW,CAAC,WAAW,CAAC,YAAY;uBAGpC,WAAW,CAAC,WAAW,CAAC,YAAY;wBAInC,MAAM,CAAC,WAAW,CAAC,SAAS;;yCARrC,eAAe;2CAAf,eAAe;AAsB3B;;AC/CD,cAKa,yBAAyB;;yCAAzB,yBAAyB;2CAAzB,yBAAyB;AAWrC;;AChBD,cAKa,oBAAoB;;yCAApB,oBAAoB;2CAApB,oBAAoB;AAWhC;;ACPD,cAKa,uBAAuB;sBAChB,WAAW,CAAC,WAAW,CAAC,oBAAoB;AAE9D,0BAAsB,WAAW,CAAC,WAAW,CAAC,iBAAiB;;yCAHpD,uBAAuB;2CAAvB,uBAAuB;AAkBnC;;ACnBD,cAYa,wBAAwB;sBACjB,WAAW,CAAC,WAAW,CAAC,YAAY;AAEtD,0BAAsB,WAAW,CAAC,WAAW,CAAC,YAAY;AAG1D;2BACuB,MAAM,CAAC,WAAW,CAAC,YAAY;AAItD;;yCAXW,wBAAwB;2CAAxB,wBAAwB;AAyBpC;;ACzCD,cAKa,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0B;AAWtC;;ACLD,cAKa,wBAAwB;oBACnB,WAAW,UAAU,WAAW,CAAC,KAAK;uBAGnC,wBAAwB;;yCAJhC,wBAAwB;2CAAxB,wBAAwB;AAkBpC;;AC3BD,cAKa,2BAA2B;mBACvB,WAAW;;yCADf,2BAA2B;2CAA3B,2BAA2B;AAYvC;;ACzBD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACAD,cAYa,sBAAsB;2BACV,wBAAwB;AAI/C;0BACsB,MAAM,CAAC,WAAW,CAAC,WAAW;;yCANzC,sBAAsB;2CAAtB,sBAAsB;AAmBlC;;ACjCD,cAKa,oBAAqB,YAAW,gBAAgB;qBAC1C,WAAW,CAAC,0BAA0B;AAIvD;AACA;;AAmBA;yCAzBW,oBAAoB;2CAApB,oBAAoB;AA4BhC;;AChCD,cAYa,eAAe;qBACT,WAAW,CAAC,WAAW,CAAC,WAAW;AAEpD,0BAAsB,MAAM;AAAG,gBAAQ,WAAW,CAAC,WAAW;AAAE;;yCAHrD,eAAe;2CAAf,eAAe;AAqB3B;;AC/CD,cAAa,oBAAoB,EAAA,cAAA,CAAA,oBAAA;AAIjC,iBAAgB,wBAAwB,IAAI,oBAAoB;AAIhE,cAAa,4BAA4B,EAAA,cAAA,CAAA,cAAA,CAAA,oBAAA;AAIzC,iBAAgB,+BAA+B,IAAI,cAAc,CAAC,oBAAoB;;;;","names":[]}
|
|
@@ -8,11 +8,12 @@ import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
|
|
|
8
8
|
import { PropTypes } from '@wirekyt/dom/types';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, Signal, InjectionToken } from '@angular/core';
|
|
11
|
-
import * as
|
|
11
|
+
import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
12
|
+
import { PresenceBase } from '@wirekyt/angular/presence';
|
|
12
13
|
import { ControlValueAccessor } from '@angular/forms';
|
|
13
14
|
import * as _wirekyt_angular_combobox from '@wirekyt/angular/combobox';
|
|
14
15
|
|
|
15
|
-
declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "
|
|
16
|
+
declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "content" | "trigger" | "item" | "itemGroup" | "label" | "clearTrigger" | "input" | "control" | "positioner" | "itemText" | "list" | "itemIndicator" | "itemGroupLabel" | "empty">;
|
|
16
17
|
|
|
17
18
|
type ComboboxSchema<T extends CollectionItem = CollectionItem> = Machine<T> extends Machine$1<infer S> ? S : never;
|
|
18
19
|
|
|
@@ -36,26 +37,7 @@ declare class ComboboxContent {
|
|
|
36
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxContent, "[comboboxContent]", ["comboboxContent"], {}, {}, never, never, true, never>;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
declare class
|
|
40
|
-
readonly lazyMount: i0.InputSignalWithTransform<boolean, unknown>;
|
|
41
|
-
readonly unmountOnExit: i0.InputSignalWithTransform<boolean, unknown>;
|
|
42
|
-
readonly skipAnimationOnMount: i0.InputSignalWithTransform<boolean, unknown>;
|
|
43
|
-
readonly immediate: i0.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
-
readonly present: i0.InputSignal<boolean | undefined>;
|
|
45
|
-
readonly exitComplete: i0.OutputEmitterRef<void>;
|
|
46
|
-
createPresence(open: () => boolean): {
|
|
47
|
-
api: i0.Signal<_wirekyt_dom_machines_presence.Api>;
|
|
48
|
-
isUnmounted: i0.Signal<boolean>;
|
|
49
|
-
props: () => {
|
|
50
|
-
hidden: boolean;
|
|
51
|
-
"data-state": string | undefined;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxPresence, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxPresence, never, never, { "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; "skipAnimationOnMount": { "alias": "skipAnimationOnMount"; "required": false; "isSignal": true; }; "immediate": { "alias": "immediate"; "required": false; "isSignal": true; }; "present": { "alias": "present"; "required": false; "isSignal": true; }; }, { "exitComplete": "exitComplete"; }, never, never, true, never>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends ComboboxPresence implements ControlValueAccessor, UseComboboxReturn<T> {
|
|
40
|
+
declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends PresenceBase implements ControlValueAccessor, UseComboboxReturn<T> {
|
|
59
41
|
readonly id: InputSignal<string | undefined>;
|
|
60
42
|
readonly elementIds: InputSignal<ElementIds | undefined>;
|
|
61
43
|
readonly collection: InputSignal<ListCollection<T>>;
|
|
@@ -111,16 +93,9 @@ declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends Co
|
|
|
111
93
|
readonly api: Signal<UseComboboxApi<T>>;
|
|
112
94
|
readonly service: Service<T>;
|
|
113
95
|
readonly send: Service<T>["send"];
|
|
96
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
114
97
|
protected readonly contextCarrier: ContextCarrier<ComboboxRoot<T>>;
|
|
115
98
|
getContextCarrier(): ContextCarrier<ComboboxRoot<T>>;
|
|
116
|
-
readonly presence: {
|
|
117
|
-
api: Signal<_wirekyt_dom_machines_presence.Api>;
|
|
118
|
-
isUnmounted: Signal<boolean>;
|
|
119
|
-
props: () => {
|
|
120
|
-
hidden: boolean;
|
|
121
|
-
"data-state": string | undefined;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
99
|
constructor();
|
|
125
100
|
writeValue(value: string[] | null): void;
|
|
126
101
|
registerOnChange(fn: (value: string[] | undefined) => void): void;
|
|
@@ -130,23 +105,16 @@ declare class ComboboxRoot<T extends CollectionItem = CollectionItem> extends Co
|
|
|
130
105
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxRoot<any>, "[comboboxRoot]", ["comboboxRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "collection": { "alias": "collection"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "inputValue": { "alias": "inputValue"; "required": false; "isSignal": true; }; "defaultInputValue": { "alias": "defaultInputValue"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "highlightedValue": { "alias": "highlightedValue"; "required": false; "isSignal": true; }; "defaultHighlightedValue": { "alias": "defaultHighlightedValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "allowCustomValue": { "alias": "allowCustomValue"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "openOnClick": { "alias": "openOnClick"; "required": false; "isSignal": true; }; "openOnKeyPress": { "alias": "openOnKeyPress"; "required": false; "isSignal": true; }; "alwaysSubmitOnEnter": { "alias": "alwaysSubmitOnEnter"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "loopFocus": { "alias": "loopFocus"; "required": false; "isSignal": true; }; "composite": { "alias": "composite"; "required": false; "isSignal": true; }; "disableLayer": { "alias": "disableLayer"; "required": false; "isSignal": true; }; "inputBehavior": { "alias": "inputBehavior"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "openOnChange": { "alias": "openOnChange"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "scrollToIndexFn": { "alias": "scrollToIndexFn"; "required": false; "isSignal": true; }; "navigate": { "alias": "navigate"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "inputValue": "inputValueChange"; "open": "openChange"; "highlightedValue": "highlightedValueChange"; "valueChangeDetails": "valueChangeDetails"; "inputValueChangeDetails": "inputValueChangeDetails"; "highlightChange": "highlightChange"; "openChangeDetails": "openChangeDetails"; "select": "select"; "focusOutside": "focusOutside"; "pointerDownOutside": "pointerDownOutside"; "interactOutside": "interactOutside"; }, never, never, true, never>;
|
|
131
106
|
}
|
|
132
107
|
|
|
133
|
-
declare class ComboboxRootProvider<T extends CollectionItem = CollectionItem> extends
|
|
108
|
+
declare class ComboboxRootProvider<T extends CollectionItem = CollectionItem> extends PresenceBase implements UseComboboxReturn<T> {
|
|
134
109
|
readonly value: InputSignal<UseComboboxReturn<T>>;
|
|
135
110
|
get state(): Signal<Service<T>["state"]>;
|
|
136
111
|
get api(): Signal<UseComboboxApi<T>>;
|
|
137
112
|
get service(): Service<T>;
|
|
138
113
|
get send(): Service<T>["send"];
|
|
139
114
|
resolveValue(): UseComboboxReturn<T>;
|
|
115
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
140
116
|
protected readonly contextCarrier: ContextCarrier<ComboboxRootProvider<T>>;
|
|
141
117
|
getContextCarrier(): ContextCarrier<ComboboxRootProvider<T>>;
|
|
142
|
-
readonly presence: {
|
|
143
|
-
api: Signal<_wirekyt_dom_machines_presence.Api>;
|
|
144
|
-
isUnmounted: Signal<boolean>;
|
|
145
|
-
props: () => {
|
|
146
|
-
hidden: boolean;
|
|
147
|
-
"data-state": string | undefined;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
118
|
constructor();
|
|
151
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxRootProvider<any>, never>;
|
|
152
120
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxRootProvider<any>, "[comboboxRootProvider]", ["comboboxRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-combobox.d.ts","sources":["../../src/components/combobox/anatomy.ts","../../src/components/combobox/types.ts","../../src/components/combobox/use.ts","../../src/components/combobox/content.ts","../../src/components/combobox/
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-combobox.d.ts","sources":["../../src/components/combobox/anatomy.ts","../../src/components/combobox/types.ts","../../src/components/combobox/use.ts","../../src/components/combobox/content.ts","../../src/components/combobox/root.ts","../../src/components/combobox/root-provider.ts","../../src/components/combobox/label.ts","../../src/components/combobox/control.ts","../../src/components/combobox/input.ts","../../src/components/combobox/trigger.ts","../../src/components/combobox/clear-trigger.ts","../../src/components/combobox/positioner.ts","../../src/components/combobox/list.ts","../../src/components/combobox/empty.ts","../../src/components/combobox/item-group.ts","../../src/components/combobox/item-group-label.ts","../../src/components/combobox/use-item-context.ts","../../src/components/combobox/item.ts","../../src/components/combobox/item-text.ts","../../src/components/combobox/item-indicator.ts","../../src/components/combobox/use-context.ts","../../src/components/combobox/context.ts","../../src/components/combobox/item-context.ts"],"mappings":";;;;;;;;;;;;;;;AAEA,cAAa,eAAe,EAAA,oBAAA,CAAA,eAAA;;AC+BtB,KAAM,cAAc,WAAW,cAAc,GAAG,cAAc,IAClE,OAAO,YAAYA,SAAW;;ACbhC,KAAK,UAAU;AAAa;AAAyB,KAAI,IAAI;;;AAEvD,UAAW,gBAAgB,WAAW,cAAc,GAAG,cAAc,UAAU,UAAU,CAC7F,IAAI,CAACC,KAAoB;AACvB;AAEE,KAAM,cAAc,WAAW,cAAc,GAAG,cAAc,IAAIC,G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;eAC/BC,mBAAsB;UAC3BA,mBAAsB;AAC7B;AAED,cAKa,4BAA4B;AACvC,8CACc,4BAA4B,gCAE5B,2BAA2B;AAKzC;AACA;AACA;;yCAXW,4BAA4B;2CAA5B,4BAA4B;AA0BxC;;;;","names":["WireMachine","ComboboxMachineProps","ComboboxApi","ComboboxService","ComboboxElementIds","ComboboxInputValueChangeDetails","ComboboxPositioningOptions","ComboboxScrollToIndexDetails","__types.ComboboxNavigateDetails","ComboboxIntlTranslations","ComboboxValueChangeDetails","ComboboxHighlightChangeDetails","ComboboxOpenChangeDetails","ComboboxSelectionDetails","ComboboxFocusOutsideEvent","ComboboxPointerDownOutsideEvent","ComboboxInteractOutsideEvent","ComboboxItemState","_angular_core","UseComboboxItemContext"]}
|