@wirekyt/angular 0.0.33 → 0.0.35

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 (117) 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-marquee.mjs +296 -0
  6. package/dist/fesm2022/wirekyt-angular-marquee.mjs.map +1 -0
  7. package/dist/fesm2022/wirekyt-angular-menu.mjs +0 -6
  8. package/dist/fesm2022/wirekyt-angular-menu.mjs.map +1 -1
  9. package/dist/fesm2022/wirekyt-angular-navigation-menu.mjs +777 -0
  10. package/dist/fesm2022/wirekyt-angular-navigation-menu.mjs.map +1 -0
  11. package/dist/fesm2022/wirekyt-angular-number-input.mjs +467 -0
  12. package/dist/fesm2022/wirekyt-angular-number-input.mjs.map +1 -0
  13. package/dist/fesm2022/wirekyt-angular-pagination.mjs +321 -0
  14. package/dist/fesm2022/wirekyt-angular-pagination.mjs.map +1 -0
  15. package/dist/fesm2022/wirekyt-angular-password-input.mjs +437 -0
  16. package/dist/fesm2022/wirekyt-angular-password-input.mjs.map +1 -0
  17. package/dist/fesm2022/wirekyt-angular-pin-input.mjs +485 -0
  18. package/dist/fesm2022/wirekyt-angular-pin-input.mjs.map +1 -0
  19. package/dist/fesm2022/wirekyt-angular-portal.mjs +98 -0
  20. package/dist/fesm2022/wirekyt-angular-portal.mjs.map +1 -0
  21. package/dist/fesm2022/wirekyt-angular-progress.mjs +337 -0
  22. package/dist/fesm2022/wirekyt-angular-progress.mjs.map +1 -0
  23. package/dist/fesm2022/wirekyt-angular-qr-code.mjs +297 -0
  24. package/dist/fesm2022/wirekyt-angular-qr-code.mjs.map +1 -0
  25. package/dist/fesm2022/wirekyt-angular-radio-group.mjs +461 -0
  26. package/dist/fesm2022/wirekyt-angular-radio-group.mjs.map +1 -0
  27. package/dist/fesm2022/wirekyt-angular-rating-group.mjs +435 -0
  28. package/dist/fesm2022/wirekyt-angular-rating-group.mjs.map +1 -0
  29. package/dist/fesm2022/wirekyt-angular-scroll-area.mjs +276 -0
  30. package/dist/fesm2022/wirekyt-angular-scroll-area.mjs.map +1 -0
  31. package/dist/fesm2022/wirekyt-angular-segment-group.mjs +506 -0
  32. package/dist/fesm2022/wirekyt-angular-segment-group.mjs.map +1 -0
  33. package/dist/fesm2022/wirekyt-angular-signature-pad.mjs +382 -0
  34. package/dist/fesm2022/wirekyt-angular-signature-pad.mjs.map +1 -0
  35. package/dist/fesm2022/wirekyt-angular-slider.mjs +574 -0
  36. package/dist/fesm2022/wirekyt-angular-slider.mjs.map +1 -0
  37. package/dist/fesm2022/wirekyt-angular-splitter.mjs +303 -0
  38. package/dist/fesm2022/wirekyt-angular-splitter.mjs.map +1 -0
  39. package/dist/fesm2022/wirekyt-angular-steps.mjs +465 -0
  40. package/dist/fesm2022/wirekyt-angular-steps.mjs.map +1 -0
  41. package/dist/fesm2022/wirekyt-angular-swap.mjs +192 -0
  42. package/dist/fesm2022/wirekyt-angular-swap.mjs.map +1 -0
  43. package/dist/fesm2022/wirekyt-angular-switch.mjs +340 -0
  44. package/dist/fesm2022/wirekyt-angular-switch.mjs.map +1 -0
  45. package/dist/fesm2022/wirekyt-angular-tags-input.mjs +645 -0
  46. package/dist/fesm2022/wirekyt-angular-tags-input.mjs.map +1 -0
  47. package/dist/fesm2022/wirekyt-angular-timer.mjs +294 -0
  48. package/dist/fesm2022/wirekyt-angular-timer.mjs.map +1 -0
  49. package/dist/fesm2022/wirekyt-angular-toggle-group.mjs +194 -0
  50. package/dist/fesm2022/wirekyt-angular-toggle-group.mjs.map +1 -0
  51. package/dist/fesm2022/wirekyt-angular-toggle.mjs +170 -0
  52. package/dist/fesm2022/wirekyt-angular-toggle.mjs.map +1 -0
  53. package/dist/fesm2022/wirekyt-angular-tour.mjs +806 -0
  54. package/dist/fesm2022/wirekyt-angular-tour.mjs.map +1 -0
  55. package/dist/fesm2022/wirekyt-angular.mjs +12 -4
  56. package/dist/fesm2022/wirekyt-angular.mjs.map +1 -1
  57. package/dist/package.json +101 -1
  58. package/dist/types/wirekyt-angular-checkbox.d.ts +1 -1
  59. package/dist/types/wirekyt-angular-color-picker.d.ts +1 -1
  60. package/dist/types/wirekyt-angular-combobox.d.ts +1 -1
  61. package/dist/types/wirekyt-angular-date-picker.d.ts +1 -1
  62. package/dist/types/wirekyt-angular-json-tree-view.d.ts +0 -5
  63. package/dist/types/wirekyt-angular-json-tree-view.d.ts.map +1 -1
  64. package/dist/types/wirekyt-angular-listbox.d.ts +206 -0
  65. package/dist/types/wirekyt-angular-listbox.d.ts.map +1 -0
  66. package/dist/types/wirekyt-angular-marquee.d.ts +111 -0
  67. package/dist/types/wirekyt-angular-marquee.d.ts.map +1 -0
  68. package/dist/types/wirekyt-angular-menu.d.ts +0 -23
  69. package/dist/types/wirekyt-angular-menu.d.ts.map +1 -1
  70. package/dist/types/wirekyt-angular-navigation-menu.d.ts +187 -0
  71. package/dist/types/wirekyt-angular-navigation-menu.d.ts.map +1 -0
  72. package/dist/types/wirekyt-angular-number-input.d.ts +143 -0
  73. package/dist/types/wirekyt-angular-number-input.d.ts.map +1 -0
  74. package/dist/types/wirekyt-angular-pagination.d.ts +114 -0
  75. package/dist/types/wirekyt-angular-pagination.d.ts.map +1 -0
  76. package/dist/types/wirekyt-angular-password-input.d.ts +124 -0
  77. package/dist/types/wirekyt-angular-password-input.d.ts.map +1 -0
  78. package/dist/types/wirekyt-angular-pin-input.d.ts +131 -0
  79. package/dist/types/wirekyt-angular-pin-input.d.ts.map +1 -0
  80. package/dist/types/wirekyt-angular-portal.d.ts +30 -0
  81. package/dist/types/wirekyt-angular-portal.d.ts.map +1 -0
  82. package/dist/types/wirekyt-angular-progress.d.ts +129 -0
  83. package/dist/types/wirekyt-angular-progress.d.ts.map +1 -0
  84. package/dist/types/wirekyt-angular-qr-code.d.ts +98 -0
  85. package/dist/types/wirekyt-angular-qr-code.d.ts.map +1 -0
  86. package/dist/types/wirekyt-angular-radio-group.d.ts +149 -0
  87. package/dist/types/wirekyt-angular-radio-group.d.ts.map +1 -0
  88. package/dist/types/wirekyt-angular-rating-group.d.ts +136 -0
  89. package/dist/types/wirekyt-angular-rating-group.d.ts.map +1 -0
  90. package/dist/types/wirekyt-angular-scroll-area.d.ts +106 -0
  91. package/dist/types/wirekyt-angular-scroll-area.d.ts.map +1 -0
  92. package/dist/types/wirekyt-angular-segment-group.d.ts +152 -0
  93. package/dist/types/wirekyt-angular-segment-group.d.ts.map +1 -0
  94. package/dist/types/wirekyt-angular-signature-pad.d.ts +120 -0
  95. package/dist/types/wirekyt-angular-signature-pad.d.ts.map +1 -0
  96. package/dist/types/wirekyt-angular-slider.d.ts +176 -0
  97. package/dist/types/wirekyt-angular-slider.d.ts.map +1 -0
  98. package/dist/types/wirekyt-angular-splitter.d.ts +116 -0
  99. package/dist/types/wirekyt-angular-splitter.d.ts.map +1 -0
  100. package/dist/types/wirekyt-angular-steps.d.ts +160 -0
  101. package/dist/types/wirekyt-angular-steps.d.ts.map +1 -0
  102. package/dist/types/wirekyt-angular-swap.d.ts +86 -0
  103. package/dist/types/wirekyt-angular-swap.d.ts.map +1 -0
  104. package/dist/types/wirekyt-angular-switch.d.ts +110 -0
  105. package/dist/types/wirekyt-angular-switch.d.ts.map +1 -0
  106. package/dist/types/wirekyt-angular-tags-input.d.ts +193 -0
  107. package/dist/types/wirekyt-angular-tags-input.d.ts.map +1 -0
  108. package/dist/types/wirekyt-angular-timer.d.ts +109 -0
  109. package/dist/types/wirekyt-angular-timer.d.ts.map +1 -0
  110. package/dist/types/wirekyt-angular-toggle-group.d.ts +81 -0
  111. package/dist/types/wirekyt-angular-toggle-group.d.ts.map +1 -0
  112. package/dist/types/wirekyt-angular-toggle.d.ts +69 -0
  113. package/dist/types/wirekyt-angular-toggle.d.ts.map +1 -0
  114. package/dist/types/wirekyt-angular-tour.d.ts +209 -0
  115. package/dist/types/wirekyt-angular-tour.d.ts.map +1 -0
  116. package/dist/types/wirekyt-angular.d.ts +1 -1
  117. package/package.json +102 -3
@@ -0,0 +1,149 @@
1
+ import * as radioGroup from '@wirekyt/dom/machines/radio-group';
2
+ import { Props, ItemProps, ItemState, ElementIds, ValueChangeDetails } from '@wirekyt/dom/machines/radio-group';
3
+ export { Api as RadioGroupApi, ElementIds as RadioGroupElementIds, ItemProps as RadioGroupItemProps, ItemState as RadioGroupItemState, Machine as RadioGroupMachine, Props as RadioGroupMachineProps, Service as RadioGroupService, ValueChangeDetails as RadioGroupValueChangeDetails, anatomy as radioGroupAnatomy } from '@wirekyt/dom/machines/radio-group';
4
+ import { UseMachineReturn } from '@wirekyt/angular';
5
+ import * as i0 from '@angular/core';
6
+ import { InputSignal, InputSignalWithTransform, Signal, InjectionToken, ModelSignal, OutputEmitterRef } from '@angular/core';
7
+ import { ControlValueAccessor } from '@angular/forms';
8
+
9
+ type RadioGroupOrientation = "horizontal" | "vertical";
10
+
11
+ type OptionalId<T extends {
12
+ id: string;
13
+ }> = Omit<T, "id"> & {
14
+ id?: string;
15
+ };
16
+ interface UseRadioGroupProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
17
+ }
18
+ type UseRadioGroupReturn = UseMachineReturn<radioGroup.Service["state"], radioGroup.Api, radioGroup.Service>;
19
+ interface UseRadioGroupOptions {
20
+ context: () => UseRadioGroupProps;
21
+ }
22
+ declare function useRadioGroup(options: UseRadioGroupOptions): UseRadioGroupReturn;
23
+
24
+ interface RadioGroupContextTemplate {
25
+ $implicit: UseRadioGroupReturn["api"];
26
+ api: UseRadioGroupReturn["api"];
27
+ }
28
+ declare class RadioGroupContext {
29
+ static ngTemplateContextGuard(_directive: RadioGroupContext, context: unknown): context is RadioGroupContextTemplate;
30
+ private readonly radioGroup;
31
+ private readonly templateRef;
32
+ private readonly viewContainer;
33
+ constructor();
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupContext, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupContext, "[radio-group-context]", ["radioGroupContext"], {}, {}, never, never, true, never>;
36
+ }
37
+
38
+ declare class RadioGroupIndicator {
39
+ constructor();
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupIndicator, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupIndicator, "[radio-group-indicator]", ["radioGroupIndicator"], {}, {}, never, never, true, never>;
42
+ }
43
+
44
+ declare class RadioGroupItem {
45
+ readonly value: InputSignal<string>;
46
+ readonly disabled: InputSignalWithTransform<boolean | undefined, unknown>;
47
+ readonly invalid: InputSignalWithTransform<boolean | undefined, unknown>;
48
+ private readonly context;
49
+ readonly itemProps: Signal<ItemProps>;
50
+ readonly itemState: Signal<ItemState>;
51
+ constructor();
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItem, never>;
53
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupItem, "[radio-group-item]", ["radioGroupItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
54
+ }
55
+
56
+ type RadioGroupItemContext = Signal<ItemState>;
57
+ type RadioGroupItemPropsContext = Signal<ItemProps>;
58
+ declare const RADIO_GROUP_ITEM_CONTEXT: InjectionToken<RadioGroupItemContext>;
59
+ declare const RADIO_GROUP_ITEM_PROPS_CONTEXT: InjectionToken<RadioGroupItemPropsContext>;
60
+ declare function injectRadioGroupItemContext(): RadioGroupItemContext;
61
+ declare function injectRadioGroupItemPropsContext(): RadioGroupItemPropsContext;
62
+
63
+ interface RadioGroupItemContextTemplate {
64
+ $implicit: RadioGroupItemContext;
65
+ item: RadioGroupItemContext;
66
+ }
67
+ declare class RadioGroupItemContextDirective {
68
+ static ngTemplateContextGuard(_directive: RadioGroupItemContextDirective, context: unknown): context is RadioGroupItemContextTemplate;
69
+ private readonly item;
70
+ private readonly templateRef;
71
+ private readonly viewContainer;
72
+ constructor();
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItemContextDirective, never>;
74
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupItemContextDirective, "[radio-group-item-context]", ["radioGroupItemContext"], {}, {}, never, never, true, never>;
75
+ }
76
+
77
+ declare class RadioGroupItemControl {
78
+ constructor();
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItemControl, never>;
80
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupItemControl, "[radio-group-item-control]", ["radioGroupItemControl"], {}, {}, never, never, true, never>;
81
+ }
82
+
83
+ declare class RadioGroupItemHiddenInput {
84
+ constructor();
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItemHiddenInput, never>;
86
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupItemHiddenInput, "[radio-group-item-hidden-input]", ["radioGroupItemHiddenInput"], {}, {}, never, never, true, never>;
87
+ }
88
+
89
+ declare class RadioGroupItemText {
90
+ constructor();
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItemText, never>;
92
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupItemText, "[radio-group-item-text]", ["radioGroupItemText"], {}, {}, never, never, true, never>;
93
+ }
94
+
95
+ declare class RadioGroupLabel {
96
+ constructor();
97
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupLabel, never>;
98
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupLabel, "[radio-group-label]", ["radioGroupLabel"], {}, {}, never, never, true, never>;
99
+ }
100
+
101
+ declare class RadioGroupRoot implements ControlValueAccessor, UseRadioGroupReturn {
102
+ readonly id: InputSignal<string | undefined>;
103
+ readonly elementIds: InputSignal<ElementIds | undefined>;
104
+ readonly value: ModelSignal<string | null | undefined>;
105
+ readonly defaultValue: InputSignal<string | null | undefined>;
106
+ readonly name: InputSignal<string | undefined>;
107
+ readonly form: InputSignal<string | undefined>;
108
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
109
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
110
+ readonly required: InputSignalWithTransform<boolean, unknown>;
111
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
112
+ readonly orientation: InputSignal<RadioGroupOrientation | undefined>;
113
+ readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
114
+ private readonly disabledFromForm;
115
+ private pendingInternalWrites;
116
+ private hasExternalBinding;
117
+ private hasReceivedFormWrite;
118
+ private readonly cva;
119
+ private readonly machine;
120
+ readonly state: Signal<radioGroup.Service["state"]>;
121
+ readonly api: Signal<radioGroup.Api>;
122
+ readonly service: radioGroup.Service;
123
+ readonly send: radioGroup.Service["send"];
124
+ constructor();
125
+ writeValue(value: string | null): void;
126
+ registerOnChange(fn: (value: string | null | undefined) => void): void;
127
+ registerOnTouched(fn: () => void): void;
128
+ setDisabledState(disabled: boolean): void;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupRoot, never>;
130
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupRoot, "[radio-group-root]", ["radioGroupRoot"], { "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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueDetailsChange": "valueDetailsChange"; }, never, never, true, never>;
131
+ }
132
+
133
+ declare class RadioGroupRootProvider implements UseRadioGroupReturn {
134
+ readonly value: InputSignal<UseRadioGroupReturn>;
135
+ get state(): Signal<radioGroup.Service["state"]>;
136
+ get api(): Signal<radioGroup.Api>;
137
+ get service(): radioGroup.Service;
138
+ get send(): radioGroup.Service["send"];
139
+ constructor();
140
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupRootProvider, never>;
141
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupRootProvider, "[radio-group-root-provider]", ["radioGroupRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
142
+ }
143
+
144
+ declare const RADIO_GROUP_CONTEXT: InjectionToken<UseRadioGroupReturn>;
145
+ declare function injectRadioGroupContext(): UseRadioGroupReturn;
146
+
147
+ export { RADIO_GROUP_CONTEXT, RADIO_GROUP_ITEM_CONTEXT, RADIO_GROUP_ITEM_PROPS_CONTEXT, RadioGroupContext, RadioGroupIndicator, RadioGroupItem, RadioGroupItemContextDirective, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemText, RadioGroupLabel, RadioGroupRoot, RadioGroupRootProvider, injectRadioGroupContext, injectRadioGroupItemContext, injectRadioGroupItemPropsContext, useRadioGroup };
148
+ export type { RadioGroupContextTemplate, RadioGroupItemContext, RadioGroupItemContextTemplate, RadioGroupItemPropsContext, RadioGroupOrientation, UseRadioGroupOptions, UseRadioGroupProps, UseRadioGroupReturn };
149
+ //# sourceMappingURL=wirekyt-angular-radio-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-radio-group.d.ts","sources":["../../src/components/radio-group/types.ts","../../src/components/radio-group/use.ts","../../src/components/radio-group/context.ts","../../src/components/radio-group/indicator.ts","../../src/components/radio-group/item.ts","../../src/components/radio-group/use-item-context.ts","../../src/components/radio-group/item-context.ts","../../src/components/radio-group/item-control.ts","../../src/components/radio-group/item-hidden-input.ts","../../src/components/radio-group/item-text.ts","../../src/components/radio-group/label.ts","../../src/components/radio-group/root.ts","../../src/components/radio-group/root-provider.ts","../../src/components/radio-group/use-context.ts"],"mappings":";;;;;;;;KAWY,qBAAqB;;ACGjC,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,kBAAmB,SAAQ,UAAU,CACpD,IAAI,CAACA,KAAsB;AACzB;AAEE,KAAM,mBAAmB,GAAG,gBAAgB,CAChD,UAAU,CAAC,OAAO,WAClB,UAAU,CAAC,GAAG,EACd,UAAU,CAAC,OAAO;UAGH,oBAAoB;mBACpB,kBAAkB;AAClC;AAKD,iBAAgB,aAAa,UAAU,oBAAoB,GAAG,mBAAmB;;UCpBhE,yBAAyB;AACxC,eAAW,mBAAmB;AAC9B,SAAK,mBAAmB;AACzB;AAED,cAKa,iBAAiB;AAC5B,8CACc,iBAAiB,gCAEjB,yBAAyB;AAKvC;AACA;AACA;;yCAXW,iBAAiB;2CAAjB,iBAAiB;AA0B7B;;AC5CD,cAKa,mBAAmB;;yCAAnB,mBAAmB;2CAAnB,mBAAmB;AAU/B;;ACID,cAiBa,cAAc;AACzB,oBAAgB,WAAW;uBACR,wBAAwB;sBAIzB,wBAAwB;AAK1C;AAEA,wBAAoB,MAAM,CAACC,SAAmB;AAK9C,wBAAoB,MAAM,CAACC,SAAmB;;yCAlBnC,cAAc;2CAAd,cAAc;AA8B1B;;KCnEW,qBAAqB,GAAG,MAAM,CAACA,SAAmB;KAClD,0BAA0B,GAAG,MAAM,CAACD,SAAmB;AAEnE,cAAa,wBAAwB,EAAA,cAAA,CAAA,qBAAA;AAGrC,cAAa,8BAA8B,EAAA,cAAA,CAAA,0BAAA;AAI3C,iBAAgB,2BAA2B,IAAI,qBAAqB;AAUpE,iBAAgB,gCAAgC,IAAI,0BAA0B;;UCX7D,6BAA6B;eACjC,qBAAqB;UAC1B,qBAAqB;AAC5B;AAED,cAKa,8BAA8B;AACzC,8CACc,8BAA8B,gC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ails"]}
@@ -0,0 +1,136 @@
1
+ import * as ratingGroup from '@wirekyt/dom/machines/rating-group';
2
+ import { Props, ItemProps, ItemState, ElementIds, IntlTranslations, ValueChangeDetails, HoverChangeDetails } from '@wirekyt/dom/machines/rating-group';
3
+ export { Api as RatingGroupApi, ElementIds as RatingGroupElementIds, HoverChangeDetails as RatingGroupHoverChangeDetails, IntlTranslations as RatingGroupIntlTranslations, ItemProps as RatingGroupItemProps, ItemState as RatingGroupItemState, Machine as RatingGroupMachine, Props as RatingGroupMachineProps, Service as RatingGroupService, ValueChangeDetails as RatingGroupValueChangeDetails, anatomy as ratingGroupAnatomy } from '@wirekyt/dom/machines/rating-group';
4
+ import { UseMachineReturn } from '@wirekyt/angular';
5
+ import * as i0 from '@angular/core';
6
+ import { InputSignalWithTransform, Signal, InjectionToken, InputSignal, ModelSignal, OutputEmitterRef } 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 UseRatingGroupProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
15
+ }
16
+ type UseRatingGroupReturn = UseMachineReturn<ratingGroup.Service["state"], ratingGroup.Api, ratingGroup.Service>;
17
+ interface UseRatingGroupOptions {
18
+ context: () => UseRatingGroupProps;
19
+ }
20
+ declare function useRatingGroup(options: UseRatingGroupOptions): UseRatingGroupReturn;
21
+
22
+ interface RatingGroupContextTemplate {
23
+ $implicit: UseRatingGroupReturn["api"];
24
+ api: UseRatingGroupReturn["api"];
25
+ }
26
+ declare class RatingGroupContext {
27
+ static ngTemplateContextGuard(_directive: RatingGroupContext, context: unknown): context is RatingGroupContextTemplate;
28
+ private readonly ratingGroup;
29
+ private readonly templateRef;
30
+ private readonly viewContainer;
31
+ constructor();
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupContext, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupContext, "[rating-group-context]", ["ratingGroupContext"], {}, {}, never, never, true, never>;
34
+ }
35
+
36
+ declare class RatingGroupControl {
37
+ constructor();
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupControl, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupControl, "[rating-group-control]", ["ratingGroupControl"], {}, {}, never, never, true, never>;
40
+ }
41
+
42
+ declare class RatingGroupHiddenInput {
43
+ constructor();
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupHiddenInput, never>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupHiddenInput, "[rating-group-hidden-input]", ["ratingGroupHiddenInput"], {}, {}, never, never, true, never>;
46
+ }
47
+
48
+ declare class RatingGroupItem {
49
+ readonly index: InputSignalWithTransform<number, unknown>;
50
+ private readonly ratingGroup;
51
+ readonly itemProps: Signal<ItemProps>;
52
+ readonly itemState: Signal<ItemState>;
53
+ constructor();
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupItem, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupItem, "[rating-group-item]", ["ratingGroupItem"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
56
+ }
57
+
58
+ type RatingGroupItemContext = Signal<ItemState>;
59
+ type RatingGroupItemPropsContext = Signal<ItemProps>;
60
+ declare const RATING_GROUP_ITEM_CONTEXT: InjectionToken<RatingGroupItemContext>;
61
+ declare const RATING_GROUP_ITEM_PROPS_CONTEXT: InjectionToken<RatingGroupItemPropsContext>;
62
+ declare function injectRatingGroupItemContext(): RatingGroupItemContext;
63
+ declare function injectRatingGroupItemPropsContext(): RatingGroupItemPropsContext;
64
+
65
+ interface RatingGroupItemContextTemplate {
66
+ $implicit: RatingGroupItemContext;
67
+ item: RatingGroupItemContext;
68
+ }
69
+ declare class RatingGroupItemContextDirective {
70
+ static ngTemplateContextGuard(_directive: RatingGroupItemContextDirective, context: unknown): context is RatingGroupItemContextTemplate;
71
+ private readonly item;
72
+ private readonly templateRef;
73
+ private readonly viewContainer;
74
+ constructor();
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupItemContextDirective, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupItemContextDirective, "[rating-group-item-context]", ["ratingGroupItemContext"], {}, {}, never, never, true, never>;
77
+ }
78
+
79
+ declare class RatingGroupLabel {
80
+ constructor();
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupLabel, never>;
82
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupLabel, "[rating-group-label]", ["ratingGroupLabel"], {}, {}, never, never, true, never>;
83
+ }
84
+
85
+ declare class RatingGroupRoot implements ControlValueAccessor, UseRatingGroupReturn {
86
+ readonly id: InputSignal<string | undefined>;
87
+ readonly elementIds: InputSignal<ElementIds | undefined>;
88
+ readonly value: ModelSignal<number | undefined>;
89
+ readonly defaultValue: InputSignalWithTransform<number | undefined, unknown>;
90
+ readonly count: InputSignalWithTransform<number | undefined, unknown>;
91
+ readonly name: InputSignal<string | undefined>;
92
+ readonly form: InputSignal<string | undefined>;
93
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
94
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
95
+ readonly required: InputSignalWithTransform<boolean, unknown>;
96
+ readonly allowHalf: InputSignalWithTransform<boolean, unknown>;
97
+ readonly autoFocus: InputSignalWithTransform<boolean, unknown>;
98
+ readonly translations: InputSignal<IntlTranslations | undefined>;
99
+ readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
100
+ readonly hoverChange: OutputEmitterRef<HoverChangeDetails>;
101
+ private readonly disabledFromForm;
102
+ private pendingInternalWrites;
103
+ private hasExternalBinding;
104
+ private hasReceivedFormWrite;
105
+ private readonly cva;
106
+ private readonly machine;
107
+ readonly state: Signal<ratingGroup.Service["state"]>;
108
+ readonly api: Signal<ratingGroup.Api>;
109
+ readonly service: ratingGroup.Service;
110
+ readonly send: ratingGroup.Service["send"];
111
+ constructor();
112
+ writeValue(value: number | null): void;
113
+ registerOnChange(fn: (value: number | undefined) => void): void;
114
+ registerOnTouched(fn: () => void): void;
115
+ setDisabledState(disabled: boolean): void;
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupRoot, never>;
117
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupRoot, "[rating-group-root]", ["ratingGroupRoot"], { "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; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "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; }; "allowHalf": { "alias": "allowHalf"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueDetailsChange": "valueDetailsChange"; "hoverChange": "hoverChange"; }, never, never, true, never>;
118
+ }
119
+
120
+ declare class RatingGroupRootProvider implements UseRatingGroupReturn {
121
+ readonly value: InputSignal<UseRatingGroupReturn>;
122
+ get state(): Signal<ratingGroup.Service["state"]>;
123
+ get api(): Signal<ratingGroup.Api>;
124
+ get service(): ratingGroup.Service;
125
+ get send(): ratingGroup.Service["send"];
126
+ constructor();
127
+ static ɵfac: i0.ɵɵFactoryDeclaration<RatingGroupRootProvider, never>;
128
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RatingGroupRootProvider, "[rating-group-root-provider]", ["ratingGroupRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
129
+ }
130
+
131
+ declare const RATING_GROUP_CONTEXT: InjectionToken<UseRatingGroupReturn>;
132
+ declare function injectRatingGroupContext(): UseRatingGroupReturn;
133
+
134
+ export { RATING_GROUP_CONTEXT, RATING_GROUP_ITEM_CONTEXT, RATING_GROUP_ITEM_PROPS_CONTEXT, RatingGroupContext, RatingGroupControl, RatingGroupHiddenInput, RatingGroupItem, RatingGroupItemContextDirective, RatingGroupLabel, RatingGroupRoot, RatingGroupRootProvider, injectRatingGroupContext, injectRatingGroupItemContext, injectRatingGroupItemPropsContext, useRatingGroup };
135
+ export type { RatingGroupContextTemplate, RatingGroupItemContext, RatingGroupItemContextTemplate, RatingGroupItemPropsContext, UseRatingGroupOptions, UseRatingGroupProps, UseRatingGroupReturn };
136
+ //# sourceMappingURL=wirekyt-angular-rating-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-rating-group.d.ts","sources":["../../src/components/rating-group/use.ts","../../src/components/rating-group/context.ts","../../src/components/rating-group/control.ts","../../src/components/rating-group/hidden-input.ts","../../src/components/rating-group/item.ts","../../src/components/rating-group/use-item-context.ts","../../src/components/rating-group/item-context.ts","../../src/components/rating-group/label.ts","../../src/components/rating-group/root.ts","../../src/components/rating-group/root-provider.ts","../../src/components/rating-group/use-context.ts"],"mappings":";;;;;;;;AAcA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,mBAAoB,SAAQ,UAAU,CACrD,IAAI,CAACA,KAAuB;AAC1B;AAEE,KAAM,oBAAoB,GAAG,gBAAgB,CACjD,WAAW,CAAC,OAAO,WACnB,WAAW,CAAC,GAAG,EACf,WAAW,CAAC,OAAO;UAGJ,qBAAqB;mBACrB,mBAAmB;AACnC;AAcD,iBAAgB,cAAc,UAAU,qBAAqB,GAAG,oBAAoB;;UC7BnE,0BAA0B;AACzC,eAAW,oBAAoB;AAC/B,SAAK,oBAAoB;AAC1B;AAED,cAKa,kBAAkB;AAC7B,8CACc,kBAAkB,gCAElB,0B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W,CAAC,OAAO;kBAC5B,MAAM,CAAC,WAAW,CAAC,GAAG;AACpC,sBAAkB,WAAW,CAAC,OAAO;mBACtB,WAAW,CAAC,OAAO;;AA0BlC;AAaA;AAIA;AAIA;yCAzIW,eAAe;2CAAf,eAAe;AA4I3B;;ACrKD,cAQa,uBAAwB,YAAW,oBAAoB;AAClE,oBAAgB,WAAW,CAAC,oBAAoB;iBAEnC,MAAM,CAAC,WAAW,CAAC,OAAO;eAG5B,MAAM,CAAC,WAAW,CAAC,GAAG;AAIjC,mBAAe,WAAW,CAAC,OAAO;gBAGtB,WAAW,CAAC,OAAO;;yCAbpB,uBAAuB;2CAAvB,uBAAuB;AAyBnC;;AChDD,cAAa,oBAAoB,EAAA,cAAA,CAAA,oBAAA;AAIjC,iBAAgB,wBAAwB,IAAI,oBAAoB;;;;","names":["RatingGroupMachineProps","RatingGroupItemProps","RatingGroupItemState","RatingGroupElementIds","RatingGroupIntlTranslations","RatingGroupValueChangeDetails","RatingGroupHoverChangeDetails"]}
@@ -0,0 +1,106 @@
1
+ import * as scrollArea from '@wirekyt/dom/machines/scroll-area';
2
+ import { ScrollbarProps, ElementIds } from '@wirekyt/dom/machines/scroll-area';
3
+ export { ElementIds as ScrollAreaElementIds, Machine as ScrollAreaMachine, Props as ScrollAreaMachineProps, ScrollEasingFunction as ScrollAreaScrollEasingFunction, ScrollRecord as ScrollAreaScrollRecord, ScrollToDetails as ScrollAreaScrollToDetails, ScrollToEdge as ScrollAreaScrollToEdge, ScrollToEdgeDetails as ScrollAreaScrollToEdgeDetails, ScrollbarEasing as ScrollAreaScrollbarEasing, ScrollbarHiddenState as ScrollAreaScrollbarHiddenState, ScrollbarProps as ScrollAreaScrollbarProps, ScrollbarState as ScrollAreaScrollbarState, Service as ScrollAreaService, ThumbProps as ScrollAreaThumbProps, anatomy as scrollAreaAnatomy } from '@wirekyt/dom/machines/scroll-area';
4
+ import { PropTypes } from '@wirekyt/dom/types';
5
+ import { UseMachineReturn } from '@wirekyt/angular';
6
+ import * as i0 from '@angular/core';
7
+ import { InjectionToken, Signal, InputSignal } from '@angular/core';
8
+
9
+ type ScrollAreaApi = scrollArea.Api<PropTypes>;
10
+
11
+ type OptionalId<T extends {
12
+ id: string;
13
+ }> = Omit<T, "id"> & {
14
+ id?: string;
15
+ };
16
+ interface UseScrollAreaProps extends OptionalId<Omit<scrollArea.Props, "dir" | "getRootNode">> {
17
+ }
18
+ type UseScrollAreaReturn = UseMachineReturn<scrollArea.Service["state"], ScrollAreaApi, scrollArea.Service>;
19
+ interface UseScrollAreaOptions {
20
+ context: () => UseScrollAreaProps;
21
+ }
22
+ declare function useScrollArea(options: UseScrollAreaOptions): UseScrollAreaReturn;
23
+
24
+ declare const SCROLL_AREA_CONTEXT: InjectionToken<UseScrollAreaReturn>;
25
+ declare function injectScrollAreaContext(): UseScrollAreaReturn;
26
+
27
+ interface UseScrollAreaScrollbarContext {
28
+ readonly orientation: Signal<ScrollbarProps["orientation"] | undefined>;
29
+ }
30
+ declare const SCROLL_AREA_SCROLLBAR_CONTEXT: InjectionToken<UseScrollAreaScrollbarContext>;
31
+ declare function injectScrollAreaScrollbarContext(): UseScrollAreaScrollbarContext;
32
+
33
+ declare class ScrollAreaRoot implements UseScrollAreaReturn {
34
+ readonly id: InputSignal<string | undefined>;
35
+ readonly ids: InputSignal<Partial<ElementIds> | undefined>;
36
+ private readonly machine;
37
+ readonly state: Signal<scrollArea.Service["state"]>;
38
+ readonly api: Signal<ScrollAreaApi>;
39
+ readonly service: scrollArea.Service;
40
+ readonly send: scrollArea.Service["send"];
41
+ constructor();
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaRoot, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaRoot, "[scroll-area-root]", ["scrollAreaRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
44
+ }
45
+
46
+ declare class ScrollAreaRootProvider implements UseScrollAreaReturn {
47
+ readonly value: InputSignal<UseScrollAreaReturn>;
48
+ readonly state: Signal<scrollArea.Service["state"]>;
49
+ readonly api: Signal<ScrollAreaApi>;
50
+ readonly send: scrollArea.Service["send"];
51
+ get service(): scrollArea.Service;
52
+ constructor();
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaRootProvider, never>;
54
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaRootProvider, "[scroll-area-root-provider]", ["scrollAreaRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
55
+ }
56
+
57
+ declare class ScrollAreaViewport {
58
+ constructor();
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaViewport, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaViewport, "[scroll-area-viewport]", ["scrollAreaViewport"], {}, {}, never, never, true, never>;
61
+ }
62
+
63
+ declare class ScrollAreaContent {
64
+ constructor();
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaContent, never>;
66
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaContent, "[scroll-area-content]", ["scrollAreaContent"], {}, {}, never, never, true, never>;
67
+ }
68
+
69
+ declare class ScrollAreaScrollbar {
70
+ readonly orientation: InputSignal<ScrollbarProps["orientation"] | undefined>;
71
+ private readonly scrollbarContext;
72
+ constructor();
73
+ getScrollbarContext(): UseScrollAreaScrollbarContext;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaScrollbar, never>;
75
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaScrollbar, "[scroll-area-scrollbar]", ["scrollAreaScrollbar"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
76
+ }
77
+
78
+ declare class ScrollAreaThumb {
79
+ constructor();
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaThumb, never>;
81
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaThumb, "[scroll-area-thumb]", ["scrollAreaThumb"], {}, {}, never, never, true, never>;
82
+ }
83
+
84
+ declare class ScrollAreaCorner {
85
+ constructor();
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaCorner, never>;
87
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaCorner, "[scroll-area-corner]", ["scrollAreaCorner"], {}, {}, never, never, true, never>;
88
+ }
89
+
90
+ interface ScrollAreaContextTemplate {
91
+ $implicit: UseScrollAreaReturn["api"];
92
+ api: UseScrollAreaReturn["api"];
93
+ }
94
+ declare class ScrollAreaContext {
95
+ static ngTemplateContextGuard(_directive: ScrollAreaContext, context: unknown): context is ScrollAreaContextTemplate;
96
+ private readonly scrollArea;
97
+ private readonly templateRef;
98
+ private readonly viewContainer;
99
+ constructor();
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAreaContext, never>;
101
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAreaContext, "[scroll-area-context]", ["scrollAreaContext"], {}, {}, never, never, true, never>;
102
+ }
103
+
104
+ export { SCROLL_AREA_CONTEXT, SCROLL_AREA_SCROLLBAR_CONTEXT, ScrollAreaContent, ScrollAreaContext, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaRootProvider, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, injectScrollAreaContext, injectScrollAreaScrollbarContext, useScrollArea };
105
+ export type { ScrollAreaApi, ScrollAreaContextTemplate, UseScrollAreaOptions, UseScrollAreaProps, UseScrollAreaReturn, UseScrollAreaScrollbarContext };
106
+ //# sourceMappingURL=wirekyt-angular-scroll-area.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-scroll-area.d.ts","sources":["../../src/components/scroll-area/types.ts","../../src/components/scroll-area/use.ts","../../src/components/scroll-area/use-context.ts","../../src/components/scroll-area/use-scrollbar-context.ts","../../src/components/scroll-area/root.ts","../../src/components/scroll-area/root-provider.ts","../../src/components/scroll-area/viewport.ts","../../src/components/scroll-area/content.ts","../../src/components/scroll-area/scrollbar.ts","../../src/components/scroll-area/thumb.ts","../../src/components/scroll-area/corner.ts","../../src/components/scroll-area/context.ts"],"mappings":";;;;;;;;AAGM,KAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS;;ACUpD,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,kBAAmB,SAAQ,UAAU,CACpD,IAAI,CAAC,UAAU,CAAC,KAAK;AACnB;KAEQ,mBAAmB,GAAG,gBAAgB,CAChD,UAAU,CAAC,OAAO,WAClB,aAAa,EACb,UAAU,CAAC,OAAO;UAGH,oBAAoB;mBACpB,kBAAkB;AAClC;AAKD,iBAAgB,aAAa,UAAU,oBAAoB,GAAG,mBAAmB;;AC5BjF,cAAa,mBAAmB,EAAA,cAAA,CAAA,mBAAA;AAIhC,iBAAgB,uBAAuB,IAAI,mBAAmB;;UCJ7C,6BAA6B;AAC5C,0BAAsB,MAAM,CAACA,cAAwB;AACtD;AAED,cAAa,6BAA6B,EAAA,cAAA,CAAA,6BAAA;AAI1C,iBAAgB,gCAAgC,IAAI,6BAA6B;;ACQjF,cAMa,cAAe,YAAW,mBAAmB;iBAC3C,WAAW;AACxB,kBAAc,WAAW,CAAC,OAAO,CAACC,UAAoB;AAItD;AAOA,oBAAgB,MAAM,CAAC,UAAU,CAAC,OAAO;AACzC,kBAAc,MAAM,CAAC,aAAa;AAClC,sBAAkB,UAAU,CAAC,OAAO;mBACrB,UAAU,CAAC,OAAO;;yCAhBtB,cAAc;2CAAd,cAAc;AA0B1B;;AC/BD,cAQa,sBAAuB,YAAW,mBAAmB;AAChE,oBAAgB,WAAW,CAAC,mBAAmB;AAC/C,oBAAgB,MAAM,CAAC,UAAU,CAAC,OAAO;AACzC,kBAAc,MAAM,CAAC,aAAa;mBACnB,UAAU,CAAC,OAAO;AAEjC,mBAAe,UAAU,CAAC,OAAO;;yCANtB,sBAAsB;2CAAtB,sBAAsB;AAkBlC;;AC1CD,cAKa,kBAAkB;;yCAAlB,kBAAkB;2CAAlB,kBAAkB;AAU9B;;ACfD,cAKa,iBAAiB;;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAU7B;;ACCD,cAYa,mBAAmB;AAC9B,0BAAsB,WAAW,CAACD,cAAwB;AAI1D;;AAcA,2BAAuB,6BAA6B;yCAnBzC,mBAAmB;2CAAnB,mBAAmB;AAsB/B;;ACjDD,cAKa,eAAe;;yCAAf,eAAe;2CAAf,eAAe;AAW3B;;ACjBD,cAKa,gBAAgB;;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAU5B;;UCPgB,yBAAyB;AACxC,eAAW,mBAAmB;AAC9B,SAAK,mBAAmB;AACzB;AAED,cAKa,iBAAiB;AAC5B,8CACc,iBAAiB,gCAEjB,yBAAyB;AAKvC;AACA;AACA;;yCAXW,iBAAiB;2CAAjB,iBAAiB;AA0B7B;;;;","names":["ScrollAreaScrollbarProps","ScrollAreaElementIds"]}
@@ -0,0 +1,152 @@
1
+ import * as _wirekyt_dom_anatomy from '@wirekyt/dom/anatomy';
2
+ import { UseMachineReturn } from '@wirekyt/angular';
3
+ import * as segmentGroup from '@wirekyt/dom/machines/radio-group';
4
+ import { Props, ItemProps, ItemState, ElementIds, ValueChangeDetails } from '@wirekyt/dom/machines/radio-group';
5
+ export { Api as SegmentGroupApi, ElementIds as SegmentGroupElementIds, ItemProps as SegmentGroupItemProps, ItemState as SegmentGroupItemState, Machine as SegmentGroupMachine, Props as SegmentGroupMachineProps, Service as SegmentGroupService, ValueChangeDetails as SegmentGroupValueChangeDetails } from '@wirekyt/dom/machines/radio-group';
6
+ import * as i0 from '@angular/core';
7
+ import { InputSignal, InputSignalWithTransform, Signal, InjectionToken, ModelSignal, OutputEmitterRef } from '@angular/core';
8
+ import { ControlValueAccessor } from '@angular/forms';
9
+
10
+ declare const segmentGroupAnatomy: _wirekyt_dom_anatomy.Anatomy<"root" | "label" | "indicator" | "item" | "itemText" | "itemControl">;
11
+
12
+ type SegmentGroupOrientation = "horizontal" | "vertical";
13
+
14
+ type OptionalId<T extends {
15
+ id?: string | undefined;
16
+ }> = Omit<T, "id"> & {
17
+ id?: string;
18
+ };
19
+ interface UseSegmentGroupProps extends OptionalId<Omit<Props, "dir" | "getRootNode">> {
20
+ }
21
+ type UseSegmentGroupReturn = UseMachineReturn<segmentGroup.Service["state"], segmentGroup.Api, segmentGroup.Service>;
22
+ interface UseSegmentGroupOptions {
23
+ context: () => UseSegmentGroupProps;
24
+ }
25
+ declare function useSegmentGroup(options: UseSegmentGroupOptions): UseSegmentGroupReturn;
26
+
27
+ interface SegmentGroupContextTemplate {
28
+ $implicit: UseSegmentGroupReturn["api"];
29
+ api: UseSegmentGroupReturn["api"];
30
+ }
31
+ declare class SegmentGroupContext {
32
+ static ngTemplateContextGuard(_directive: SegmentGroupContext, context: unknown): context is SegmentGroupContextTemplate;
33
+ private readonly segmentGroup;
34
+ private readonly templateRef;
35
+ private readonly viewContainer;
36
+ constructor();
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupContext, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupContext, "[segment-group-context]", ["segmentGroupContext"], {}, {}, never, never, true, never>;
39
+ }
40
+
41
+ declare class SegmentGroupIndicator {
42
+ constructor();
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupIndicator, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupIndicator, "[segment-group-indicator]", ["segmentGroupIndicator"], {}, {}, never, never, true, never>;
45
+ }
46
+
47
+ declare class SegmentGroupItem {
48
+ readonly value: InputSignal<string>;
49
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
50
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
51
+ private readonly segmentGroup;
52
+ readonly itemProps: Signal<ItemProps>;
53
+ readonly itemState: Signal<ItemState>;
54
+ constructor();
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupItem, never>;
56
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupItem, "[segment-group-item]", ["segmentGroupItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
57
+ }
58
+
59
+ type SegmentGroupItemContext = Signal<ItemState>;
60
+ type SegmentGroupItemPropsContext = Signal<ItemProps>;
61
+ declare const SEGMENT_GROUP_ITEM_CONTEXT: InjectionToken<SegmentGroupItemContext>;
62
+ declare const SEGMENT_GROUP_ITEM_PROPS_CONTEXT: InjectionToken<SegmentGroupItemPropsContext>;
63
+ declare function injectSegmentGroupItemContext(): SegmentGroupItemContext;
64
+ declare function injectSegmentGroupItemPropsContext(): SegmentGroupItemPropsContext;
65
+
66
+ interface SegmentGroupItemContextTemplate {
67
+ $implicit: SegmentGroupItemContext;
68
+ item: SegmentGroupItemContext;
69
+ }
70
+ declare class SegmentGroupItemContextDirective {
71
+ static ngTemplateContextGuard(_directive: SegmentGroupItemContextDirective, context: unknown): context is SegmentGroupItemContextTemplate;
72
+ private readonly item;
73
+ private readonly templateRef;
74
+ private readonly viewContainer;
75
+ constructor();
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupItemContextDirective, never>;
77
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupItemContextDirective, "[segment-group-item-context]", ["segmentGroupItemContext"], {}, {}, never, never, true, never>;
78
+ }
79
+
80
+ declare class SegmentGroupItemControl {
81
+ constructor();
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupItemControl, never>;
83
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupItemControl, "[segment-group-item-control]", ["segmentGroupItemControl"], {}, {}, never, never, true, never>;
84
+ }
85
+
86
+ declare class SegmentGroupItemHiddenInput {
87
+ constructor();
88
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupItemHiddenInput, never>;
89
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupItemHiddenInput, "[segment-group-item-hidden-input]", ["segmentGroupItemHiddenInput"], {}, {}, never, never, true, never>;
90
+ }
91
+
92
+ declare class SegmentGroupItemText {
93
+ constructor();
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupItemText, never>;
95
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupItemText, "[segment-group-item-text]", ["segmentGroupItemText"], {}, {}, never, never, true, never>;
96
+ }
97
+
98
+ declare class SegmentGroupLabel {
99
+ constructor();
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupLabel, never>;
101
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupLabel, "[segment-group-label]", ["segmentGroupLabel"], {}, {}, never, never, true, never>;
102
+ }
103
+
104
+ declare class SegmentGroupRoot implements ControlValueAccessor, UseSegmentGroupReturn {
105
+ readonly id: InputSignal<string | undefined>;
106
+ readonly elementIds: InputSignal<ElementIds | undefined>;
107
+ readonly value: ModelSignal<string | null | undefined>;
108
+ readonly defaultValue: InputSignal<string | null | undefined>;
109
+ readonly name: InputSignal<string | undefined>;
110
+ readonly form: InputSignal<string | undefined>;
111
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
112
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
113
+ readonly required: InputSignalWithTransform<boolean, unknown>;
114
+ readonly readOnly: InputSignalWithTransform<boolean, unknown>;
115
+ readonly orientation: InputSignal<SegmentGroupOrientation | undefined>;
116
+ readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
117
+ private readonly disabledFromForm;
118
+ private pendingInternalWrites;
119
+ private hasExternalBinding;
120
+ private hasReceivedFormWrite;
121
+ private readonly cva;
122
+ private readonly machine;
123
+ readonly state: Signal<segmentGroup.Service["state"]>;
124
+ readonly api: Signal<segmentGroup.Api>;
125
+ readonly service: segmentGroup.Service;
126
+ readonly send: segmentGroup.Service["send"];
127
+ constructor();
128
+ writeValue(value: string | null): void;
129
+ registerOnChange(fn: (value: string | null | undefined) => void): void;
130
+ registerOnTouched(fn: () => void): void;
131
+ setDisabledState(disabled: boolean): void;
132
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupRoot, never>;
133
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupRoot, "[segment-group-root]", ["segmentGroupRoot"], { "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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueDetailsChange": "valueDetailsChange"; }, never, never, true, never>;
134
+ }
135
+
136
+ declare class SegmentGroupRootProvider implements UseSegmentGroupReturn {
137
+ readonly value: InputSignal<UseSegmentGroupReturn>;
138
+ get state(): Signal<segmentGroup.Service["state"]>;
139
+ get api(): Signal<segmentGroup.Api>;
140
+ get service(): segmentGroup.Service;
141
+ get send(): segmentGroup.Service["send"];
142
+ constructor();
143
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentGroupRootProvider, never>;
144
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SegmentGroupRootProvider, "[segment-group-root-provider]", ["segmentGroupRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
145
+ }
146
+
147
+ declare const SEGMENT_GROUP_CONTEXT: InjectionToken<UseSegmentGroupReturn>;
148
+ declare function injectSegmentGroupContext(): UseSegmentGroupReturn;
149
+
150
+ export { SEGMENT_GROUP_CONTEXT, SEGMENT_GROUP_ITEM_CONTEXT, SEGMENT_GROUP_ITEM_PROPS_CONTEXT, SegmentGroupContext, SegmentGroupIndicator, SegmentGroupItem, SegmentGroupItemContextDirective, SegmentGroupItemControl, SegmentGroupItemHiddenInput, SegmentGroupItemText, SegmentGroupLabel, SegmentGroupRoot, SegmentGroupRootProvider, injectSegmentGroupContext, injectSegmentGroupItemContext, injectSegmentGroupItemPropsContext, segmentGroupAnatomy, useSegmentGroup };
151
+ export type { SegmentGroupContextTemplate, SegmentGroupItemContext, SegmentGroupItemContextTemplate, SegmentGroupItemPropsContext, SegmentGroupOrientation, UseSegmentGroupOptions, UseSegmentGroupProps, UseSegmentGroupReturn };
152
+ //# sourceMappingURL=wirekyt-angular-segment-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-segment-group.d.ts","sources":["../../src/components/segment-group/anatomy.ts","../../src/components/segment-group/types.ts","../../src/components/segment-group/use.ts","../../src/components/segment-group/context.ts","../../src/components/segment-group/indicator.ts","../../src/components/segment-group/item.ts","../../src/components/segment-group/use-item-context.ts","../../src/components/segment-group/item-context.ts","../../src/components/segment-group/item-control.ts","../../src/components/segment-group/item-hidden-input.ts","../../src/components/segment-group/item-text.ts","../../src/components/segment-group/label.ts","../../src/components/segment-group/root.ts","../../src/components/segment-group/root-provider.ts","../../src/components/segment-group/use-context.ts"],"mappings":";;;;;;;;;AAEA,cAAa,mBAAmB,EAAA,oBAAA,CAAA,OAAA;;KCSpB,uBAAuB;;ACGnC,KAAK,UAAU;AAAa;AAAyB,KAAI,IAAI;;;AAEvD,UAAW,oBAAqB,SAAQ,UAAU,CACtD,IAAI,CAACA,KAAwB;AAC3B;AAEE,KAAM,qBAAqB,GAAG,gBAAgB,CAClD,YAAY,CAAC,OAAO,WACpB,YAAY,CAAC,GAAG,EAChB,YAAY,CAAC,OAAO;UAGL,sBAAsB;mBACtB,oBAAoB;A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