@wirekyt/angular 0.0.34 → 1.0.0

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.
Files changed (98) hide show
  1. package/dist/fesm2022/wirekyt-angular-json-tree-view.mjs +0 -5
  2. package/dist/fesm2022/wirekyt-angular-json-tree-view.mjs.map +1 -1
  3. package/dist/fesm2022/wirekyt-angular-listbox.mjs +627 -0
  4. package/dist/fesm2022/wirekyt-angular-listbox.mjs.map +1 -0
  5. package/dist/fesm2022/wirekyt-angular-menu.mjs +0 -6
  6. package/dist/fesm2022/wirekyt-angular-menu.mjs.map +1 -1
  7. package/dist/fesm2022/wirekyt-angular-number-input.mjs +467 -0
  8. package/dist/fesm2022/wirekyt-angular-number-input.mjs.map +1 -0
  9. package/dist/fesm2022/wirekyt-angular-password-input.mjs +437 -0
  10. package/dist/fesm2022/wirekyt-angular-password-input.mjs.map +1 -0
  11. package/dist/fesm2022/wirekyt-angular-pin-input.mjs +485 -0
  12. package/dist/fesm2022/wirekyt-angular-pin-input.mjs.map +1 -0
  13. package/dist/fesm2022/wirekyt-angular-progress.mjs +337 -0
  14. package/dist/fesm2022/wirekyt-angular-progress.mjs.map +1 -0
  15. package/dist/fesm2022/wirekyt-angular-qr-code.mjs +0 -11
  16. package/dist/fesm2022/wirekyt-angular-qr-code.mjs.map +1 -1
  17. package/dist/fesm2022/wirekyt-angular-radio-group.mjs +461 -0
  18. package/dist/fesm2022/wirekyt-angular-radio-group.mjs.map +1 -0
  19. package/dist/fesm2022/wirekyt-angular-rating-group.mjs +435 -0
  20. package/dist/fesm2022/wirekyt-angular-rating-group.mjs.map +1 -0
  21. package/dist/fesm2022/wirekyt-angular-scroll-area.mjs +276 -0
  22. package/dist/fesm2022/wirekyt-angular-scroll-area.mjs.map +1 -0
  23. package/dist/fesm2022/wirekyt-angular-segment-group.mjs +506 -0
  24. package/dist/fesm2022/wirekyt-angular-segment-group.mjs.map +1 -0
  25. package/dist/fesm2022/wirekyt-angular-signature-pad.mjs +382 -0
  26. package/dist/fesm2022/wirekyt-angular-signature-pad.mjs.map +1 -0
  27. package/dist/fesm2022/wirekyt-angular-slider.mjs +574 -0
  28. package/dist/fesm2022/wirekyt-angular-slider.mjs.map +1 -0
  29. package/dist/fesm2022/wirekyt-angular-splitter.mjs +303 -0
  30. package/dist/fesm2022/wirekyt-angular-splitter.mjs.map +1 -0
  31. package/dist/fesm2022/wirekyt-angular-steps.mjs +465 -0
  32. package/dist/fesm2022/wirekyt-angular-steps.mjs.map +1 -0
  33. package/dist/fesm2022/wirekyt-angular-swap.mjs +192 -0
  34. package/dist/fesm2022/wirekyt-angular-swap.mjs.map +1 -0
  35. package/dist/fesm2022/wirekyt-angular-switch.mjs +340 -0
  36. package/dist/fesm2022/wirekyt-angular-switch.mjs.map +1 -0
  37. package/dist/fesm2022/wirekyt-angular-tags-input.mjs +645 -0
  38. package/dist/fesm2022/wirekyt-angular-tags-input.mjs.map +1 -0
  39. package/dist/fesm2022/wirekyt-angular-timer.mjs +294 -0
  40. package/dist/fesm2022/wirekyt-angular-timer.mjs.map +1 -0
  41. package/dist/fesm2022/wirekyt-angular-toggle-group.mjs +194 -0
  42. package/dist/fesm2022/wirekyt-angular-toggle-group.mjs.map +1 -0
  43. package/dist/fesm2022/wirekyt-angular-toggle.mjs +170 -0
  44. package/dist/fesm2022/wirekyt-angular-toggle.mjs.map +1 -0
  45. package/dist/fesm2022/wirekyt-angular-tour.mjs +806 -0
  46. package/dist/fesm2022/wirekyt-angular-tour.mjs.map +1 -0
  47. package/dist/package.json +81 -1
  48. package/dist/types/wirekyt-angular-checkbox.d.ts +1 -1
  49. package/dist/types/wirekyt-angular-color-picker.d.ts +1 -1
  50. package/dist/types/wirekyt-angular-combobox.d.ts +1 -1
  51. package/dist/types/wirekyt-angular-date-picker.d.ts +1 -1
  52. package/dist/types/wirekyt-angular-json-tree-view.d.ts +0 -5
  53. package/dist/types/wirekyt-angular-json-tree-view.d.ts.map +1 -1
  54. package/dist/types/wirekyt-angular-listbox.d.ts +206 -0
  55. package/dist/types/wirekyt-angular-listbox.d.ts.map +1 -0
  56. package/dist/types/wirekyt-angular-menu.d.ts +0 -23
  57. package/dist/types/wirekyt-angular-menu.d.ts.map +1 -1
  58. package/dist/types/wirekyt-angular-number-input.d.ts +143 -0
  59. package/dist/types/wirekyt-angular-number-input.d.ts.map +1 -0
  60. package/dist/types/wirekyt-angular-password-input.d.ts +124 -0
  61. package/dist/types/wirekyt-angular-password-input.d.ts.map +1 -0
  62. package/dist/types/wirekyt-angular-pin-input.d.ts +131 -0
  63. package/dist/types/wirekyt-angular-pin-input.d.ts.map +1 -0
  64. package/dist/types/wirekyt-angular-progress.d.ts +129 -0
  65. package/dist/types/wirekyt-angular-progress.d.ts.map +1 -0
  66. package/dist/types/wirekyt-angular-qr-code.d.ts +0 -11
  67. package/dist/types/wirekyt-angular-qr-code.d.ts.map +1 -1
  68. package/dist/types/wirekyt-angular-radio-group.d.ts +149 -0
  69. package/dist/types/wirekyt-angular-radio-group.d.ts.map +1 -0
  70. package/dist/types/wirekyt-angular-rating-group.d.ts +136 -0
  71. package/dist/types/wirekyt-angular-rating-group.d.ts.map +1 -0
  72. package/dist/types/wirekyt-angular-scroll-area.d.ts +106 -0
  73. package/dist/types/wirekyt-angular-scroll-area.d.ts.map +1 -0
  74. package/dist/types/wirekyt-angular-segment-group.d.ts +152 -0
  75. package/dist/types/wirekyt-angular-segment-group.d.ts.map +1 -0
  76. package/dist/types/wirekyt-angular-signature-pad.d.ts +120 -0
  77. package/dist/types/wirekyt-angular-signature-pad.d.ts.map +1 -0
  78. package/dist/types/wirekyt-angular-slider.d.ts +176 -0
  79. package/dist/types/wirekyt-angular-slider.d.ts.map +1 -0
  80. package/dist/types/wirekyt-angular-splitter.d.ts +116 -0
  81. package/dist/types/wirekyt-angular-splitter.d.ts.map +1 -0
  82. package/dist/types/wirekyt-angular-steps.d.ts +160 -0
  83. package/dist/types/wirekyt-angular-steps.d.ts.map +1 -0
  84. package/dist/types/wirekyt-angular-swap.d.ts +86 -0
  85. package/dist/types/wirekyt-angular-swap.d.ts.map +1 -0
  86. package/dist/types/wirekyt-angular-switch.d.ts +110 -0
  87. package/dist/types/wirekyt-angular-switch.d.ts.map +1 -0
  88. package/dist/types/wirekyt-angular-tags-input.d.ts +193 -0
  89. package/dist/types/wirekyt-angular-tags-input.d.ts.map +1 -0
  90. package/dist/types/wirekyt-angular-timer.d.ts +109 -0
  91. package/dist/types/wirekyt-angular-timer.d.ts.map +1 -0
  92. package/dist/types/wirekyt-angular-toggle-group.d.ts +81 -0
  93. package/dist/types/wirekyt-angular-toggle-group.d.ts.map +1 -0
  94. package/dist/types/wirekyt-angular-toggle.d.ts +69 -0
  95. package/dist/types/wirekyt-angular-toggle.d.ts.map +1 -0
  96. package/dist/types/wirekyt-angular-tour.d.ts +209 -0
  97. package/dist/types/wirekyt-angular-tour.d.ts.map +1 -0
  98. package/package.json +82 -3
@@ -0,0 +1,160 @@
1
+ import * as steps from '@wirekyt/dom/machines/steps';
2
+ import { ItemState, ItemProps, ElementIds, StepChangeDetails, StepInvalidDetails } from '@wirekyt/dom/machines/steps';
3
+ export { Api as StepsApi, ElementIds as StepsElementIds, ItemProps as StepsItemProps, ItemState as StepsItemState, Machine as StepsMachine, Props as StepsMachineProps, Service as StepsService, StepChangeDetails as StepsStepChangeDetails, StepInvalidDetails as StepsStepInvalidDetails, anatomy as stepsAnatomy } from '@wirekyt/dom/machines/steps';
4
+ import * as i0 from '@angular/core';
5
+ import { InjectionToken, Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
6
+ import { UseMachineReturn } from '@wirekyt/angular';
7
+
8
+ type OptionalId<T extends {
9
+ id: string;
10
+ }> = Omit<T, "id"> & {
11
+ id?: string;
12
+ };
13
+ interface UseStepsProps extends OptionalId<Omit<steps.Props, "dir" | "getRootNode">> {
14
+ }
15
+ type UseStepsReturn = UseMachineReturn<steps.Service["state"], steps.Api, steps.Service>;
16
+ interface UseStepsOptions {
17
+ context: () => UseStepsProps;
18
+ }
19
+ declare function useSteps(options?: UseStepsOptions): UseStepsReturn;
20
+
21
+ declare const STEPS_CONTEXT: InjectionToken<UseStepsReturn>;
22
+ declare function injectStepsContext(): UseStepsReturn;
23
+
24
+ type StepsItemContext = Signal<ItemState>;
25
+ type StepsItemPropsContext = Signal<ItemProps>;
26
+ declare const STEPS_ITEM_CONTEXT: InjectionToken<StepsItemContext>;
27
+ declare const STEPS_ITEM_PROPS_CONTEXT: InjectionToken<StepsItemPropsContext>;
28
+ declare function injectStepsItemContext(): StepsItemContext;
29
+ declare function injectStepsItemPropsContext(): StepsItemPropsContext;
30
+
31
+ declare class StepsRoot implements UseStepsReturn {
32
+ readonly id: InputSignal<string | undefined>;
33
+ readonly ids: InputSignal<ElementIds | undefined>;
34
+ readonly step: ModelSignal<number | undefined>;
35
+ readonly defaultStep: InputSignal<number | undefined>;
36
+ readonly count: InputSignal<number | undefined>;
37
+ readonly linear: InputSignalWithTransform<boolean, unknown>;
38
+ readonly orientation: InputSignal<steps.Props["orientation"]>;
39
+ readonly isStepValid: InputSignal<steps.Props["isStepValid"] | undefined>;
40
+ readonly isStepSkippable: InputSignal<steps.Props["isStepSkippable"] | undefined>;
41
+ readonly stepDetailsChange: OutputEmitterRef<StepChangeDetails>;
42
+ readonly stepComplete: OutputEmitterRef<void>;
43
+ readonly stepInvalid: OutputEmitterRef<StepInvalidDetails>;
44
+ private readonly machine;
45
+ readonly state: Signal<steps.Service["state"]>;
46
+ readonly api: Signal<steps.Api>;
47
+ readonly service: steps.Service;
48
+ readonly send: steps.Service["send"];
49
+ constructor();
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsRoot, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsRoot, "[steps-root]", ["stepsRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "defaultStep": { "alias": "defaultStep"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "isStepValid": { "alias": "isStepValid"; "required": false; "isSignal": true; }; "isStepSkippable": { "alias": "isStepSkippable"; "required": false; "isSignal": true; }; }, { "step": "stepChange"; "stepDetailsChange": "stepDetailsChange"; "stepComplete": "stepComplete"; "stepInvalid": "stepInvalid"; }, never, never, true, never>;
52
+ }
53
+
54
+ declare class StepsRootProvider implements UseStepsReturn {
55
+ readonly value: InputSignal<UseStepsReturn>;
56
+ readonly state: Signal<steps.Service["state"]>;
57
+ readonly api: Signal<steps.Api>;
58
+ readonly send: steps.Service["send"];
59
+ get service(): steps.Service;
60
+ constructor();
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsRootProvider, never>;
62
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsRootProvider, "[steps-root-provider]", ["stepsRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
63
+ }
64
+
65
+ declare class StepsList {
66
+ constructor();
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsList, never>;
68
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsList, "[steps-list]", ["stepsList"], {}, {}, never, never, true, never>;
69
+ }
70
+
71
+ declare class StepsItem {
72
+ readonly index: InputSignal<number>;
73
+ private readonly steps;
74
+ readonly itemProps: Signal<ItemProps>;
75
+ readonly itemState: Signal<ItemState>;
76
+ constructor();
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsItem, never>;
78
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsItem, "[steps-item]", ["stepsItem"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ }
80
+
81
+ declare class StepsTrigger {
82
+ constructor();
83
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsTrigger, never>;
84
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsTrigger, "[steps-trigger]", ["stepsTrigger"], {}, {}, never, never, true, never>;
85
+ }
86
+
87
+ declare class StepsIndicator {
88
+ constructor();
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsIndicator, never>;
90
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsIndicator, "[steps-indicator]", ["stepsIndicator"], {}, {}, never, never, true, never>;
91
+ }
92
+
93
+ declare class StepsSeparator {
94
+ constructor();
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsSeparator, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsSeparator, "[steps-separator]", ["stepsSeparator"], {}, {}, never, never, true, never>;
97
+ }
98
+
99
+ declare class StepsContent {
100
+ readonly index: InputSignal<number>;
101
+ constructor();
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsContent, never>;
103
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsContent, "[steps-content]", ["stepsContent"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
104
+ }
105
+
106
+ declare class StepsCompletedContent {
107
+ constructor();
108
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsCompletedContent, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsCompletedContent, "[steps-completed-content]", ["stepsCompletedContent"], {}, {}, never, never, true, never>;
110
+ }
111
+
112
+ declare class StepsProgress {
113
+ constructor();
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsProgress, never>;
115
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsProgress, "[steps-progress]", ["stepsProgress"], {}, {}, never, never, true, never>;
116
+ }
117
+
118
+ declare class StepsNextTrigger {
119
+ constructor();
120
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsNextTrigger, never>;
121
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsNextTrigger, "[steps-next-trigger]", ["stepsNextTrigger"], {}, {}, never, never, true, never>;
122
+ }
123
+
124
+ declare class StepsPrevTrigger {
125
+ constructor();
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsPrevTrigger, never>;
127
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsPrevTrigger, "[steps-prev-trigger]", ["stepsPrevTrigger"], {}, {}, never, never, true, never>;
128
+ }
129
+
130
+ interface StepsContextTemplate {
131
+ $implicit: UseStepsReturn["api"];
132
+ api: UseStepsReturn["api"];
133
+ }
134
+ declare class StepsContext {
135
+ static ngTemplateContextGuard(_directive: StepsContext, context: unknown): context is StepsContextTemplate;
136
+ private readonly steps;
137
+ private readonly templateRef;
138
+ private readonly viewContainer;
139
+ constructor();
140
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsContext, never>;
141
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsContext, "[steps-context]", ["stepsContext"], {}, {}, never, never, true, never>;
142
+ }
143
+
144
+ interface StepsItemContextTemplate {
145
+ $implicit: StepsItemContext;
146
+ item: StepsItemContext;
147
+ }
148
+ declare class StepsItemContextDirective {
149
+ static ngTemplateContextGuard(_directive: StepsItemContextDirective, context: unknown): context is StepsItemContextTemplate;
150
+ private readonly item;
151
+ private readonly templateRef;
152
+ private readonly viewContainer;
153
+ constructor();
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepsItemContextDirective, never>;
155
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StepsItemContextDirective, "[steps-item-context]", ["stepsItemContext"], {}, {}, never, never, true, never>;
156
+ }
157
+
158
+ export { STEPS_CONTEXT, STEPS_ITEM_CONTEXT, STEPS_ITEM_PROPS_CONTEXT, StepsCompletedContent, StepsContent, StepsContext, StepsIndicator, StepsItem, StepsItemContextDirective, StepsList, StepsNextTrigger, StepsPrevTrigger, StepsProgress, StepsRoot, StepsRootProvider, StepsSeparator, StepsTrigger, injectStepsContext, injectStepsItemContext, injectStepsItemPropsContext, useSteps };
159
+ export type { StepsContextTemplate, StepsItemContext, StepsItemContextTemplate, StepsItemPropsContext, UseStepsOptions, UseStepsProps, UseStepsReturn };
160
+ //# sourceMappingURL=wirekyt-angular-steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-steps.d.ts","sources":["../../src/components/steps/use.ts","../../src/components/steps/use-context.ts","../../src/components/steps/use-item-context.ts","../../src/components/steps/root.ts","../../src/components/steps/root-provider.ts","../../src/components/steps/list.ts","../../src/components/steps/item.ts","../../src/components/steps/trigger.ts","../../src/components/steps/indicator.ts","../../src/components/steps/separator.ts","../../src/components/steps/content.ts","../../src/components/steps/completed-content.ts","../../src/components/steps/progress.ts","../../src/components/steps/next-trigger.ts","../../src/components/steps/prev-trigger.ts","../../src/components/steps/context.ts","../../src/components/steps/item-context.ts"],"mappings":";;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,aAAc,SAAQ,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK;AAA4B;AAExF,KAAM,cAAc,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,WAAW,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO;UAE7E,eAAe;mBACf,aAAa;AAC7B;AAKD,iBAAgB,QAAQ,WAAU,eAAyC,GAAG,cAAc;;ACpB5F,cAAa,aAAa,EAAA,cAAA,CAAA,cAAA;AAE1B,iBAAgB,kBAAkB,IAAI,cAAc;;KCFxC,gBAAgB,GAAG,MAAM,CAACA,SAAc;KACxC,qBAAqB,GAAG,MAAM,CAACC,SAAc;AAEzD,cAAa,kBAAkB,EAAA,cAAA,CAAA,gBAAA;AAG/B,cAAa,wBAAwB,EAAA,cAAA,CAAA,qBAAA;AAIrC,iBAAgB,sBAAsB,IAAI,gBAAgB;AAI1D,iBAAgB,2BAA2B,IAAI,qBAAqB;;ACQpE,cAMa,SAAU,YAAW,cAAc;iBACjC,WAAW;kBACV,WAAW,CAACC,UAAe;mBAG1B,WAAW;0BACJ,WAA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yCAAb,aAAa;2CAAb,aAAa;AAUzB;;ACfD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAU5B;;ACfD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAU5B;;UCPgB,oBAAoB;AACnC,eAAW,cAAc;AACzB,SAAK,cAAc;AACpB;AAED,cAKa,YAAY;AACvB,8CACc,YAAY,gCAEZ,oBAAoB;AAKlC;AACA;AACA;;yCAXW,YAAY;2CAAZ,YAAY;AA0BxB;;UCpCgB,wBAAwB;eAC5BK,gBAAmB;UACxBA,gBAAmB;AAC1B;AAED,cAKa,yBAAyB;AACpC,8CACc,yBAAyB,gCAEzB,wBAAwB;AAKtC;AACA;AACA;;yCAXW,yBAAyB;2CAAzB,yBAAyB;AA0BrC;;;;","names":["StepsItemState","StepsItemProps","StepsElementIds","StepsStepChangeDetails","StepsStepInvalidDetails","UseStepsItemContext"]}
@@ -0,0 +1,86 @@
1
+ import * as _wirekyt_dom_anatomy from '@wirekyt/dom/anatomy';
2
+ import * as i0 from '@angular/core';
3
+ import { InputSignal, Signal, InputSignalWithTransform, InjectionToken } from '@angular/core';
4
+ import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
5
+ import { UsePresenceReturn } from '@wirekyt/angular/presence';
6
+ import * as _wirekyt_angular_swap from '@wirekyt/angular/swap';
7
+
8
+ declare const swapAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "indicator">;
9
+
10
+ interface SwapRootProps {
11
+ swap?: boolean | undefined;
12
+ lazyMount?: boolean | undefined;
13
+ unmountOnExit?: boolean | undefined;
14
+ }
15
+ interface SwapIndicatorProps {
16
+ type: "on" | "off";
17
+ }
18
+ interface SwapProps extends SwapRootProps {
19
+ }
20
+
21
+ declare class SwapIndicator {
22
+ readonly type: InputSignal<SwapIndicatorProps["type"]>;
23
+ private readonly context;
24
+ readonly presence: i0.Signal<_wirekyt_angular_presence.UsePresenceReturn>;
25
+ constructor();
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwapIndicator, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwapIndicator, "[swap-indicator]", ["swapIndicator"], { "type": { "alias": "type"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
28
+ }
29
+
30
+ interface UseSwapProps extends SwapRootProps {
31
+ }
32
+ interface UseSwapOptions {
33
+ context: () => UseSwapProps;
34
+ }
35
+ interface UseSwapReturn {
36
+ readonly swap: Signal<boolean>;
37
+ readonly onPresence: UsePresenceReturn;
38
+ readonly offPresence: UsePresenceReturn;
39
+ readonly getRootProps: () => Record<string, unknown>;
40
+ readonly getIndicatorProps: (props: SwapIndicatorProps) => Record<string, unknown>;
41
+ }
42
+ declare function useSwap(options?: UseSwapOptions): UseSwapReturn;
43
+
44
+ interface SwapRootProviderProps {
45
+ value: UseSwapReturn;
46
+ }
47
+ declare class SwapRootProvider implements UseSwapReturn {
48
+ readonly value: InputSignal<UseSwapReturn>;
49
+ readonly swap: i0.Signal<boolean>;
50
+ get onPresence(): UseSwapReturn["onPresence"];
51
+ get offPresence(): UseSwapReturn["offPresence"];
52
+ readonly getRootProps: () => Record<string, unknown>;
53
+ readonly getIndicatorProps: (props: SwapIndicatorProps) => Record<string, unknown>;
54
+ constructor();
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwapRootProvider, never>;
56
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwapRootProvider, "[swap-root-provider]", ["swapRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
57
+ }
58
+
59
+ declare class SwapRoot implements UseSwapReturn {
60
+ readonly swap: InputSignalWithTransform<boolean, unknown>;
61
+ readonly lazyMount: InputSignalWithTransform<boolean, unknown>;
62
+ readonly unmountOnExit: InputSignalWithTransform<boolean, unknown>;
63
+ private readonly api;
64
+ readonly onPresence: _wirekyt_angular_presence.UsePresenceReturn;
65
+ readonly offPresence: _wirekyt_angular_presence.UsePresenceReturn;
66
+ readonly getRootProps: () => Record<string, unknown>;
67
+ readonly getIndicatorProps: (props: _wirekyt_angular_swap.SwapIndicatorProps) => Record<string, unknown>;
68
+ constructor();
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwapRoot, never>;
70
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwapRoot, "[swap-root]", ["swapRoot"], { "swap": { "alias": "swap"; "required": false; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
71
+ }
72
+
73
+ interface UseSwapContext extends UseSwapReturn {
74
+ }
75
+ declare const SWAP_CONTEXT: InjectionToken<UseSwapContext>;
76
+ declare function injectSwapContext(): UseSwapContext;
77
+
78
+ declare const swap_d_swapAnatomy: typeof swapAnatomy;
79
+ declare namespace swap_d {
80
+ export { SwapIndicator as Indicator, SwapRoot as Root, SwapRootProvider as RootProvider, swap_d_swapAnatomy as swapAnatomy };
81
+ export type { SwapIndicatorProps as IndicatorProps, SwapRootProps as RootProps, SwapRootProviderProps as RootProviderProps };
82
+ }
83
+
84
+ export { SWAP_CONTEXT, swap_d as Swap, SwapIndicator, SwapRoot, SwapRootProvider, injectSwapContext, swapAnatomy, useSwap };
85
+ export type { SwapIndicatorProps, SwapProps, SwapRootProps, SwapRootProviderProps, UseSwapContext, UseSwapOptions, UseSwapProps, UseSwapReturn };
86
+ //# sourceMappingURL=wirekyt-angular-swap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-swap.d.ts","sources":["../../src/components/swap/anatomy.ts","../../src/components/swap/types.ts","../../src/components/swap/indicator.ts","../../src/components/swap/use.ts","../../src/components/swap/root-provider.ts","../../src/components/swap/root.ts","../../src/components/swap/use-context.ts"],"mappings":";;;;;;;AAEA,cAAa,WAAW,EAAA,oBAAA,CAAA,eAAA;;UCFP,aAAa;AAC5B;AACA;AACA;AACD;UAEgB,kBAAkB;AACjC;AACD;AAEK,UAAW,SAAU,SAAQ,aAAa;AAAG;;ACWnD,cAKa,aAAa;mBACT,WAAW,CAAC,kBAAkB;AAG7C;uBACiBA,EAAA,CAAA,MAAA,CAAA,yBAAA,CAAA,iBAAA;;yCALN,aAAa;2CAAb,aAAa;AA4CzB;;AC/DK,UAAW,YAAa,SAAQ,aAAa;AAAG;UAErC,cAAc;mBACd,YAAY;AAC5B;UAEgB,aAAa;AAC5B,mBAAe,MAAM;AACrB,yBAAqB,iBAAiB;AACtC,0BAAsB,iBAAiB;iCACV,MAAM;AACnC,wCAAoC,kBAAkB,KAAK,MAAM;AAClE;AAED,iBAAgB,OAAO,WAAU,cAAwC,GAAG,aAAa;;UCHxE,qBAAqB;WAC7B,aAAa;AACrB;AAED,cAMa,gBAAiB,YAAW,aAAa;AACpD,oBAAgB,WAAW,CAAC,aAAa;mBAC5BA,EAAA,CAAA,MAAA;AAEb,sBAAkB,aAAa;AAI/B,uBAAmB,aAAa;iCAIJ,MAAM;AAClC,wCAAqC,kBAAkB,KAAG,MAAM;;yCAbrD,gBAAgB;2CAAhB,gBAAgB;AAwB5B;;ACpCD,cAMa,QAAS,YAAW,aAAa;mBAC7B,wBAAwB;wBAGnB,wBAAwB;4BAGpB,wBAAwB;AAIhD;yBAQmB,yBAAA,CAAA,iBAAA;0BACC,yBAAA,CAAA,iBAAA;iCACC,MAAA;wCACK,qBAAA,CAAA,kBAAA,KAAA,MAAA;;yCAtBf,QAAQ;2CAAR,QAAQ;AAgCpB;;AClDK,UAAW,cAAe,SAAQ,aAAa;AAAG;AAExD,cAAa,YAAY,EAAA,cAAA,CAAA,cAAA;AAEzB,iBAAgB,iBAAiB,IAAI,cAAc;;;;;;;;;;;;;;;","names":["_angular_core"]}
@@ -0,0 +1,110 @@
1
+ import * as switchMachine from '@wirekyt/dom/machines/switch';
2
+ import { Props, ElementIds, CheckedChangeDetails } from '@wirekyt/dom/machines/switch';
3
+ export { Api as SwitchApi, CheckedChangeDetails as SwitchCheckedChangeDetails, ElementIds as SwitchElementIds, Machine as SwitchMachine, Props as SwitchMachineProps, Service as SwitchService, anatomy as switchAnatomy } from '@wirekyt/dom/machines/switch';
4
+ import { UseMachineReturn } from '@wirekyt/angular';
5
+ import * as i0 from '@angular/core';
6
+ import { InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, Signal, InjectionToken } from '@angular/core';
7
+ import { ControlValueAccessor } from '@angular/forms';
8
+
9
+ type OptionalId<T extends {
10
+ id: string;
11
+ }> = Omit<T, "id"> & {
12
+ id?: string;
13
+ };
14
+ interface UseSwitchProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
15
+ }
16
+ type UseSwitchReturn = UseMachineReturn<switchMachine.Service["state"], switchMachine.Api, switchMachine.Service>;
17
+ interface UseSwitchOptions {
18
+ context: () => UseSwitchProps;
19
+ }
20
+ declare function useSwitch(options?: UseSwitchOptions): UseSwitchReturn;
21
+
22
+ interface SwitchContextTemplate {
23
+ $implicit: UseSwitchReturn["api"];
24
+ api: UseSwitchReturn["api"];
25
+ }
26
+ declare class SwitchContext {
27
+ static ngTemplateContextGuard(_directive: SwitchContext, context: unknown): context is SwitchContextTemplate;
28
+ private readonly switch;
29
+ private readonly templateRef;
30
+ private readonly viewContainer;
31
+ constructor();
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchContext, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchContext, "[switch-context]", ["switchContext"], {}, {}, never, never, true, never>;
34
+ }
35
+
36
+ declare class SwitchControl {
37
+ constructor();
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchControl, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchControl, "[switch-control]", ["switchControl"], {}, {}, never, never, true, never>;
40
+ }
41
+
42
+ declare class SwitchHiddenInput {
43
+ constructor();
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchHiddenInput, never>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchHiddenInput, "[switch-hidden-input]", ["switchHiddenInput"], {}, {}, never, never, true, never>;
46
+ }
47
+
48
+ declare class SwitchLabel {
49
+ constructor();
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchLabel, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchLabel, "[switch-label]", ["switchLabel"], {}, {}, never, never, true, never>;
52
+ }
53
+
54
+ declare class SwitchRoot implements ControlValueAccessor, UseSwitchReturn {
55
+ readonly id: InputSignal<string | undefined>;
56
+ readonly elementIds: InputSignal<ElementIds | undefined>;
57
+ readonly checked: ModelSignal<boolean | undefined>;
58
+ readonly defaultChecked: InputSignalWithTransform<boolean, unknown>;
59
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
60
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
61
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
62
+ readonly required: InputSignalWithTransform<boolean, unknown>;
63
+ readonly name: InputSignal<string | undefined>;
64
+ readonly form: InputSignal<string | undefined>;
65
+ readonly label: InputSignal<string | undefined>;
66
+ readonly value: InputSignal<string | number | undefined>;
67
+ readonly checkedDetailsChange: OutputEmitterRef<CheckedChangeDetails>;
68
+ private readonly disabledFromForm;
69
+ private pendingInternalWrites;
70
+ private hasExternalCheckedBinding;
71
+ private hasReceivedFormWrite;
72
+ private readonly cva;
73
+ private readonly machine;
74
+ readonly state: Signal<switchMachine.Service["state"]>;
75
+ readonly api: Signal<switchMachine.Api>;
76
+ readonly service: switchMachine.Service;
77
+ readonly send: switchMachine.Service["send"];
78
+ constructor();
79
+ markTouched(): void;
80
+ writeValue(value: boolean | null): void;
81
+ registerOnChange(fn: (value: boolean | undefined) => void): void;
82
+ registerOnTouched(fn: () => void): void;
83
+ setDisabledState(disabled: boolean): void;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchRoot, never>;
85
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchRoot, "[switch-root]", ["switchRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "defaultChecked": { "alias": "defaultChecked"; "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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "checkedDetailsChange": "checkedDetailsChange"; }, never, never, true, never>;
86
+ }
87
+
88
+ declare class SwitchRootProvider implements UseSwitchReturn {
89
+ readonly value: InputSignal<UseSwitchReturn>;
90
+ get state(): Signal<switchMachine.Service["state"]>;
91
+ get api(): Signal<switchMachine.Api>;
92
+ get service(): switchMachine.Service;
93
+ get send(): switchMachine.Service["send"];
94
+ constructor();
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchRootProvider, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchRootProvider, "[switch-root-provider]", ["switchRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
97
+ }
98
+
99
+ declare class SwitchThumb {
100
+ constructor();
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchThumb, never>;
102
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchThumb, "[switch-thumb]", ["switchThumb"], {}, {}, never, never, true, never>;
103
+ }
104
+
105
+ declare const SWITCH_CONTEXT: InjectionToken<UseSwitchReturn>;
106
+ declare function injectSwitchContext(): UseSwitchReturn;
107
+
108
+ export { SWITCH_CONTEXT, SwitchContext, SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchRootProvider, SwitchThumb, injectSwitchContext, useSwitch };
109
+ export type { SwitchContextTemplate, UseSwitchOptions, UseSwitchProps, UseSwitchReturn };
110
+ //# sourceMappingURL=wirekyt-angular-switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-switch.d.ts","sources":["../../src/components/switch/use.ts","../../src/components/switch/context.ts","../../src/components/switch/control.ts","../../src/components/switch/hidden-input.ts","../../src/components/switch/label.ts","../../src/components/switch/root.ts","../../src/components/switch/root-provider.ts","../../src/components/switch/thumb.ts","../../src/components/switch/use-context.ts"],"mappings":";;;;;;;;AAcA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,cAAe,SAAQ,UAAU,CAChD,IAAI,CAACA,KAAkB;AACrB;AAEE,KAAM,eAAe,GAAG,gBAAgB,CAC5C,aAAa,CAAC,OAAO,WACrB,aAAa,CAAC,GAAG,EACjB,aAAa,CAAC,OAAO;UAGN,gBAAgB;mBAChB,cAAc;AAC9B;AAKD,iBAAgB,SAAS,WAAU,gBAA0C,GAAG,eAAe;;UCpB9E,qBAAqB;AACpC,eAAW,eAAe;AAC1B,SAAK,eAAe;AACrB;AAED,cAKa,aAAa;AACxB,8CACc,aAAa,gCAEb,qBAAqB;AAKnC;AACA;AACA;;yCAXW,aAAa;2CAAb,aAAa;AA0BzB;;AC5CD,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;ACXD,cAKa,iBAAiB;;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAuB7B;;AChCD,cAKa,WAAW;;yCAAX,WAAW;2CAAX,WAAW;AAUvB;;ACSD,cASa,UAAW,YAAW,oBAAoB,EAAE,eAAe;iBACzD,WAAW;yBACH,WAAW,CAACC,UAAgB;sBAK/B,WAAW;6BACJ,wBAAwB;uBAG9B,wBAAwB;sBAGzB,wBAAwB;uBAGvB,wBAAwB;uBAGxB,wBAAwB;mBAG5B,WAAW;mBACX,WAAW;oBACV,WAAW;oBACX,WAAW;AAG3B,mCAA+B,gBAAgB,CAACC,oBAA0B;AAG1E;;;;AAKA;AAOA;AAyBA,oBAAgB,MAAM,CAAC,aAAa,CAAC,OAAO;kBAC9B,MAAM,CAAC,aAAa,CAAC,GAAG;AACtC,sBAAkB,aAAa,CAAC,OAAO;mBACxB,aAAa,CAAC,OAAO;;AA0BpC;AAIA;AAaA;AAIA;AAIA;yCA3HW,UAAU;2CAAV,UAAU;AA8HtB;;ACjJD,cAMa,kBAAmB,YAAW,eAAe;AACxD,oBAAgB,WAAW,CAAC,eAAe;iBAE9B,MAAM,CAAC,aAAa,CAAC,OAAO;eAG9B,MAAM,CAAC,aAAa,CAAC,GAAG;AAGnC,mBAAe,aAAa,CAAC,OAAO;gBAGxB,aAAa,CAAC,OAAO;;yCAZtB,kBAAkB;2CAAlB,kBAAkB;AAwB9B;;AC5CD,cAKa,WAAW;;yCAAX,WAAW;2CAAX,WAAW;AAUvB;;AChBD,cAAa,cAAc,EAAA,cAAA,CAAA,eAAA;AAE3B,iBAAgB,mBAAmB,IAAI,eAAe;;;;","names":["SwitchMachineProps","SwitchElementIds","SwitchCheckedChangeDetails"]}
@@ -0,0 +1,193 @@
1
+ import * as tagsInput from '@wirekyt/dom/machines/tags-input';
2
+ import { Props, ItemState, ElementIds, ValidateArgs, IntlTranslations, ValueChangeDetails, InputValueChangeDetails, HighlightChangeDetails, ValidityChangeDetails, FocusOutsideEvent, PointerDownOutsideEvent, InteractOutsideEvent } from '@wirekyt/dom/machines/tags-input';
3
+ export { Api as TagsInputApi, ElementIds as TagsInputElementIds, FocusOutsideEvent as TagsInputFocusOutsideEvent, HighlightChangeDetails as TagsInputHighlightChangeDetails, InputValueChangeDetails as TagsInputInputValueChangeDetails, InteractOutsideEvent as TagsInputInteractOutsideEvent, IntlTranslations as TagsInputIntlTranslations, ItemProps as TagsInputItemProps, ItemState as TagsInputItemState, Machine as TagsInputMachine, Props as TagsInputMachineProps, PointerDownOutsideEvent as TagsInputPointerDownOutsideEvent, Service as TagsInputService, ValidateArgs as TagsInputValidateArgs, ValidityChangeDetails as TagsInputValidityChangeDetails, ValidityState as TagsInputValidityState, ValueChangeDetails as TagsInputValueChangeDetails, anatomy as tagsInputAnatomy } from '@wirekyt/dom/machines/tags-input';
4
+ import * as i0 from '@angular/core';
5
+ import { InjectionToken, Signal, InputSignal, InputSignalWithTransform, ModelSignal, OutputEmitterRef } from '@angular/core';
6
+ import { UseMachineReturn } from '@wirekyt/angular';
7
+ import * as _wirekyt_angular_tags_input from '@wirekyt/angular/tags-input';
8
+ import { ControlValueAccessor } from '@angular/forms';
9
+
10
+ declare class TagsInputClearTrigger {
11
+ constructor();
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputClearTrigger, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputClearTrigger, "[tags-input-clear-trigger]", ["tagsInputClearTrigger"], {}, {}, never, never, true, never>;
14
+ }
15
+
16
+ declare class TagsInputControl {
17
+ constructor();
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputControl, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputControl, "[tags-input-control]", ["tagsInputControl"], {}, {}, never, never, true, never>;
20
+ }
21
+
22
+ type OptionalId<T extends {
23
+ id: string;
24
+ }> = Omit<T, "id"> & {
25
+ id?: string;
26
+ };
27
+ interface UseTagsInputProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
28
+ }
29
+ type UseTagsInputReturn = UseMachineReturn<tagsInput.Service["state"], tagsInput.Api, tagsInput.Service>;
30
+ interface UseTagsInputOptions {
31
+ context: () => UseTagsInputProps;
32
+ }
33
+ declare function useTagsInput(options: UseTagsInputOptions): UseTagsInputReturn;
34
+
35
+ interface TagsInputContextTemplate {
36
+ $implicit: UseTagsInputReturn["api"];
37
+ api: UseTagsInputReturn["api"];
38
+ }
39
+ declare class TagsInputContext {
40
+ static ngTemplateContextGuard(_directive: TagsInputContext, context: unknown): context is TagsInputContextTemplate;
41
+ private readonly tagsInput;
42
+ private readonly templateRef;
43
+ private readonly viewContainer;
44
+ constructor();
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputContext, never>;
46
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputContext, "[tags-input-context]", ["tagsInputContext"], {}, {}, never, never, true, never>;
47
+ }
48
+
49
+ declare class TagsInputHiddenInput {
50
+ constructor();
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputHiddenInput, never>;
52
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputHiddenInput, "[tags-input-hidden-input]", ["tagsInputHiddenInput"], {}, {}, never, never, true, never>;
53
+ }
54
+
55
+ declare class TagsInputInput {
56
+ constructor();
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputInput, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputInput, "[tags-input-input]", ["tagsInputInput"], {}, {}, never, never, true, never>;
59
+ }
60
+
61
+ declare class TagsInputItemDeleteTrigger {
62
+ constructor();
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputItemDeleteTrigger, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputItemDeleteTrigger, "[tags-input-item-delete-trigger]", ["tagsInputItemDeleteTrigger"], {}, {}, never, never, true, never>;
65
+ }
66
+
67
+ declare class TagsInputItemInput {
68
+ constructor();
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputItemInput, never>;
70
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputItemInput, "[tags-input-item-input]", ["tagsInputItemInput"], {}, {}, never, never, true, never>;
71
+ }
72
+
73
+ declare class TagsInputItemPreview {
74
+ constructor();
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputItemPreview, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputItemPreview, "[tags-input-item-preview]", ["tagsInputItemPreview"], {}, {}, never, never, true, never>;
77
+ }
78
+
79
+ declare class TagsInputItemText {
80
+ constructor();
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputItemText, never>;
82
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputItemText, "[tags-input-item-text]", ["tagsInputItemText"], {}, {}, never, never, true, never>;
83
+ }
84
+
85
+ interface TagsInputItemContext {
86
+ state: Signal<ItemState>;
87
+ index: Signal<string | number>;
88
+ value: Signal<string>;
89
+ disabled: Signal<boolean>;
90
+ }
91
+ declare const TAGS_INPUT_ITEM_CONTEXT: InjectionToken<TagsInputItemContext>;
92
+ declare function injectTagsInputItemContext(): TagsInputItemContext;
93
+
94
+ declare class TagsInputItem implements TagsInputItemContext {
95
+ readonly index: InputSignal<string | number>;
96
+ readonly value: InputSignal<string>;
97
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
98
+ private readonly context;
99
+ readonly state: i0.Signal<_wirekyt_angular_tags_input.TagsInputItemState>;
100
+ constructor();
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputItem, never>;
102
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputItem, "[tags-input-item]", ["tagsInputItem"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
103
+ }
104
+
105
+ interface TagsInputItemContextTemplate {
106
+ $implicit: TagsInputItemContext;
107
+ item: TagsInputItemContext;
108
+ }
109
+ declare class TagsInputItemContextDirective {
110
+ static ngTemplateContextGuard(_directive: TagsInputItemContextDirective, context: unknown): context is TagsInputItemContextTemplate;
111
+ private readonly item;
112
+ private readonly templateRef;
113
+ private readonly viewContainer;
114
+ constructor();
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputItemContextDirective, never>;
116
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputItemContextDirective, "[tags-input-item-context]", ["tagsInputItemContext"], {}, {}, never, never, true, never>;
117
+ }
118
+
119
+ declare class TagsInputLabel {
120
+ constructor();
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputLabel, never>;
122
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputLabel, "[tags-input-label]", ["tagsInputLabel"], {}, {}, never, never, true, never>;
123
+ }
124
+
125
+ declare class TagsInputRootProvider implements UseTagsInputReturn {
126
+ readonly value: InputSignal<UseTagsInputReturn>;
127
+ get state(): Signal<tagsInput.Service["state"]>;
128
+ get api(): Signal<tagsInput.Api>;
129
+ get service(): tagsInput.Service;
130
+ get send(): tagsInput.Service["send"];
131
+ constructor();
132
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputRootProvider, never>;
133
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputRootProvider, "[tags-input-root-provider]", ["tagsInputRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
134
+ }
135
+
136
+ declare class TagsInputRoot implements ControlValueAccessor, UseTagsInputReturn {
137
+ readonly id: InputSignal<string | undefined>;
138
+ readonly elementIds: InputSignal<ElementIds | undefined>;
139
+ readonly value: ModelSignal<string[] | undefined>;
140
+ readonly defaultValue: InputSignal<string[] | undefined>;
141
+ readonly inputValue: ModelSignal<string | undefined>;
142
+ readonly defaultInputValue: InputSignal<string | undefined>;
143
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
144
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
145
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
146
+ readonly required: InputSignalWithTransform<boolean, unknown>;
147
+ readonly editable: InputSignalWithTransform<boolean, unknown>;
148
+ readonly autoFocus: InputSignalWithTransform<boolean, unknown>;
149
+ readonly allowDuplicates: InputSignalWithTransform<boolean, unknown>;
150
+ readonly allowOverflow: InputSignalWithTransform<boolean, unknown>;
151
+ readonly addOnPaste: InputSignalWithTransform<boolean, unknown>;
152
+ readonly max: InputSignalWithTransform<number | undefined, unknown>;
153
+ readonly maxLength: InputSignalWithTransform<number | undefined, unknown>;
154
+ readonly delimiter: InputSignal<string | RegExp | undefined>;
155
+ readonly blurBehavior: InputSignal<"clear" | "add" | undefined>;
156
+ readonly placeholder: InputSignal<string | undefined>;
157
+ readonly name: InputSignal<string | undefined>;
158
+ readonly form: InputSignal<string | undefined>;
159
+ readonly sanitizeValue: InputSignal<((value: string) => string) | undefined>;
160
+ readonly validate: InputSignal<((details: ValidateArgs) => boolean) | undefined>;
161
+ readonly translations: InputSignal<IntlTranslations | undefined>;
162
+ readonly valueChangeDetails: OutputEmitterRef<ValueChangeDetails>;
163
+ readonly inputValueChangeDetails: OutputEmitterRef<InputValueChangeDetails>;
164
+ readonly highlightChange: OutputEmitterRef<HighlightChangeDetails>;
165
+ readonly valueInvalid: OutputEmitterRef<ValidityChangeDetails>;
166
+ readonly focusOutside: OutputEmitterRef<FocusOutsideEvent>;
167
+ readonly pointerDownOutside: OutputEmitterRef<PointerDownOutsideEvent>;
168
+ readonly interactOutside: OutputEmitterRef<InteractOutsideEvent>;
169
+ private readonly _disabledFromForm;
170
+ private _pendingInternalWrites;
171
+ private _hasExternalBinding;
172
+ private _hasReceivedFormWrite;
173
+ private readonly cva;
174
+ private readonly machine;
175
+ readonly state: Signal<tagsInput.Service["state"]>;
176
+ readonly api: Signal<tagsInput.Api>;
177
+ readonly service: tagsInput.Service;
178
+ readonly send: tagsInput.Service["send"];
179
+ constructor();
180
+ writeValue(value: string[] | null): void;
181
+ registerOnChange(fn: (value: string[] | undefined) => void): void;
182
+ registerOnTouched(fn: () => void): void;
183
+ setDisabledState(disabled: boolean): void;
184
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsInputRoot, never>;
185
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TagsInputRoot, "[tags-input-root]", ["tagsInputRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "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; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "allowDuplicates": { "alias": "allowDuplicates"; "required": false; "isSignal": true; }; "allowOverflow": { "alias": "allowOverflow"; "required": false; "isSignal": true; }; "addOnPaste": { "alias": "addOnPaste"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "delimiter": { "alias": "delimiter"; "required": false; "isSignal": true; }; "blurBehavior": { "alias": "blurBehavior"; "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; }; "sanitizeValue": { "alias": "sanitizeValue"; "required": false; "isSignal": true; }; "validate": { "alias": "validate"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "inputValue": "inputValueChange"; "valueChangeDetails": "valueChangeDetails"; "inputValueChangeDetails": "inputValueChangeDetails"; "highlightChange": "highlightChange"; "valueInvalid": "valueInvalid"; "focusOutside": "focusOutside"; "pointerDownOutside": "pointerDownOutside"; "interactOutside": "interactOutside"; }, never, never, true, never>;
186
+ }
187
+
188
+ declare const TAGS_INPUT_CONTEXT: InjectionToken<UseTagsInputReturn>;
189
+ declare function injectTagsInputContext(): UseTagsInputReturn;
190
+
191
+ export { TAGS_INPUT_CONTEXT, TAGS_INPUT_ITEM_CONTEXT, TagsInputClearTrigger, TagsInputContext, TagsInputControl, TagsInputHiddenInput, TagsInputInput, TagsInputItem, TagsInputItemContextDirective, TagsInputItemDeleteTrigger, TagsInputItemInput, TagsInputItemPreview, TagsInputItemText, TagsInputLabel, TagsInputRoot, TagsInputRootProvider, injectTagsInputContext, injectTagsInputItemContext, useTagsInput };
192
+ export type { TagsInputContextTemplate, TagsInputItemContext, TagsInputItemContextTemplate, UseTagsInputOptions, UseTagsInputProps, UseTagsInputReturn };
193
+ //# sourceMappingURL=wirekyt-angular-tags-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-tags-input.d.ts","sources":["../../src/components/tags-input/clear-trigger.ts","../../src/components/tags-input/control.ts","../../src/components/tags-input/use.ts","../../src/components/tags-input/context.ts","../../src/components/tags-input/hidden-input.ts","../../src/components/tags-input/input.ts","../../src/components/tags-input/item-delete-trigger.ts","../../src/components/tags-input/item-input.ts","../../src/components/tags-input/item-preview.ts","../../src/components/tags-input/item-text.ts","../../src/components/tags-input/use-item-context.ts","../../src/components/tags-input/item.ts","../../src/components/tags-input/item-context.ts","../../src/components/tags-input/label.ts","../../src/components/tags-input/root-provider.ts","../../src/components/tags-input/root.ts","../../src/components/tags-input/use-context.ts"],"mappings":";;;;;;;;;AAKA,cAKa,qBAAqB;;yCAArB,qBAAqB;2CAArB,qBAAqB;AAUjC;;ACfD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAU5B;;ACND,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,iBAAkB,SAAQ,UAAU,CACnD,IAAI,CAACA,KAAqB;AACxB;AAEE,KAAM,kBAAkB,GAAG,gBAAgB,CAC/C,SAAS,CAAC,OAAO,WACjB,SAAS,CAAC,GAAG,EACb,SAAS,CAAC,OAAO;UAGF,mBAAmB;mBACnB,iBAAiB;AACjC;AAgBD,iBAAgB,YAAY,UAAU,mBAAmB,GAAG,kBAAkB;;UC/B7D,wBAAwB;AACvC,eAAW,kBAAkB;AAC7B,SAAK,kBA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UseTagsInputItemContext","TagsInputElementIds","TagsInputValidateArgs","TagsInputIntlTranslations","TagsInputValueChangeDetails","TagsInputInputValueChangeDetails","TagsInputHighlightChangeDetails","TagsInputValidityChangeDetails","TagsInputFocusOutsideEvent","TagsInputPointerDownOutsideEvent","TagsInputInteractOutsideEvent"]}