@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,297 @@
1
+ import * as qrCode from '@wirekyt/dom/machines/qr-code';
2
+ export { anatomy as qrCodeAnatomy } from '@wirekyt/dom/machines/qr-code';
3
+ import * as i0 from '@angular/core';
4
+ import { InjectionToken, inject, input, model, output, DestroyRef, Renderer2, ElementRef, forwardRef, Directive, computed, effect, TemplateRef, ViewContainerRef } from '@angular/core';
5
+ import { injectLocale, injectEnvironment, createId, useMachine, bindProps } from '@wirekyt/angular';
6
+
7
+ const QR_CODE_CONTEXT = new InjectionToken("WIREKYT.QR_CODE_CONTEXT");
8
+ function injectQrCodeContext() {
9
+ return inject(QR_CODE_CONTEXT);
10
+ }
11
+
12
+ function useQrCode(options) {
13
+ const locale = injectLocale();
14
+ const environment = injectEnvironment();
15
+ const fallbackId = createId();
16
+ return useMachine({
17
+ machine: qrCode.machine,
18
+ context: () => {
19
+ const props = options.context();
20
+ return {
21
+ ...props,
22
+ dir: locale.dir,
23
+ getRootNode: environment.getRootNode,
24
+ id: props.id ?? fallbackId,
25
+ };
26
+ },
27
+ connect: (service, normalize) => qrCode.connect(service, normalize),
28
+ });
29
+ }
30
+
31
+ class QrCodeRoot {
32
+ id = input(undefined, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
34
+ ids = input(undefined, /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "ids" }] : /* istanbul ignore next */ []));
36
+ value = model(undefined, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
38
+ defaultValue = input(undefined, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
40
+ encoding = input(undefined, /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "encoding" }] : /* istanbul ignore next */ []));
42
+ pixelSize = input(undefined, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "pixelSize" }] : /* istanbul ignore next */ []));
44
+ valueDetailsChange = output();
45
+ machine = useQrCode({
46
+ context: () => ({
47
+ id: this.id(),
48
+ ids: this.ids(),
49
+ value: this.value(),
50
+ defaultValue: this.defaultValue(),
51
+ encoding: this.encoding(),
52
+ pixelSize: this.pixelSize(),
53
+ onValueChange: (details) => {
54
+ if (this.value() !== details.value)
55
+ this.value.set(details.value);
56
+ this.valueDetailsChange.emit(details);
57
+ },
58
+ }),
59
+ });
60
+ state = this.machine.state;
61
+ api = this.machine.api;
62
+ service = this.machine.service;
63
+ send = this.machine.send;
64
+ constructor() {
65
+ bindProps({
66
+ elementRef: inject(ElementRef),
67
+ renderer: inject(Renderer2),
68
+ destroyRef: inject(DestroyRef),
69
+ props: () => this.api().getRootProps(),
70
+ });
71
+ }
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
73
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: QrCodeRoot, isStandalone: true, selector: "[qr-code-root]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ids: { classPropertyName: "ids", publicName: "ids", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, encoding: { classPropertyName: "encoding", publicName: "encoding", isSignal: true, isRequired: false, transformFunction: null }, pixelSize: { classPropertyName: "pixelSize", publicName: "pixelSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueDetailsChange: "valueDetailsChange" }, providers: [{ provide: QR_CODE_CONTEXT, useExisting: forwardRef(() => QrCodeRoot) }], exportAs: ["qrCodeRoot"], ngImport: i0 });
74
+ }
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeRoot, decorators: [{
76
+ type: Directive,
77
+ args: [{
78
+ selector: "[qr-code-root]",
79
+ standalone: true,
80
+ exportAs: "qrCodeRoot",
81
+ providers: [{ provide: QR_CODE_CONTEXT, useExisting: forwardRef(() => QrCodeRoot) }],
82
+ }]
83
+ }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ids: [{ type: i0.Input, args: [{ isSignal: true, alias: "ids", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], encoding: [{ type: i0.Input, args: [{ isSignal: true, alias: "encoding", required: false }] }], pixelSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pixelSize", required: false }] }], valueDetailsChange: [{ type: i0.Output, args: ["valueDetailsChange"] }] } });
84
+
85
+ class QrCodeRootProvider {
86
+ value = input.required(/* @ts-ignore */
87
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
88
+ state = computed(() => this.value().state(), /* @ts-ignore */
89
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
90
+ api = computed(() => this.value().api(), /* @ts-ignore */
91
+ ...(ngDevMode ? [{ debugName: "api" }] : /* istanbul ignore next */ []));
92
+ send = (event) => this.value().send(event);
93
+ get service() {
94
+ return this.value().service;
95
+ }
96
+ resolveValue() {
97
+ return this.value();
98
+ }
99
+ constructor() {
100
+ bindProps({
101
+ elementRef: inject(ElementRef),
102
+ renderer: inject(Renderer2),
103
+ destroyRef: inject(DestroyRef),
104
+ props: () => this.api().getRootProps(),
105
+ });
106
+ }
107
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeRootProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
108
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: QrCodeRootProvider, isStandalone: true, selector: "[qr-code-root-provider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, providers: [{ provide: QR_CODE_CONTEXT, useExisting: forwardRef(() => QrCodeRootProvider) }], exportAs: ["qrCodeRootProvider"], ngImport: i0 });
109
+ }
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeRootProvider, decorators: [{
111
+ type: Directive,
112
+ args: [{
113
+ selector: "[qr-code-root-provider]",
114
+ standalone: true,
115
+ exportAs: "qrCodeRootProvider",
116
+ providers: [{ provide: QR_CODE_CONTEXT, useExisting: forwardRef(() => QrCodeRootProvider) }],
117
+ }]
118
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
119
+
120
+ const SVG_ATTRIBUTE_KEYS = new Set(["d", "viewBox", "xmlns"]);
121
+ function omitQrCodeSvgAttributes(props) {
122
+ const next = { ...props };
123
+ for (const key of SVG_ATTRIBUTE_KEYS) {
124
+ delete next[key];
125
+ }
126
+ return next;
127
+ }
128
+ function applyQrCodeSvgAttributes(elementRef, renderer, destroyRef, props) {
129
+ const applied = new Set();
130
+ effect(() => {
131
+ const next = props() ?? {};
132
+ for (const key of SVG_ATTRIBUTE_KEYS) {
133
+ const value = next[key];
134
+ if (value == null || value === false) {
135
+ if (applied.has(key)) {
136
+ renderer.removeAttribute(elementRef.nativeElement, key);
137
+ applied.delete(key);
138
+ }
139
+ continue;
140
+ }
141
+ renderer.setAttribute(elementRef.nativeElement, key, String(value));
142
+ applied.add(key);
143
+ }
144
+ });
145
+ destroyRef.onDestroy(() => {
146
+ for (const key of applied) {
147
+ renderer.removeAttribute(elementRef.nativeElement, key);
148
+ }
149
+ applied.clear();
150
+ });
151
+ }
152
+
153
+ class QrCodeFrame {
154
+ constructor() {
155
+ const context = injectQrCodeContext();
156
+ const elementRef = inject(ElementRef);
157
+ const renderer = inject(Renderer2);
158
+ const destroyRef = inject(DestroyRef);
159
+ const props = () => context.api().getFrameProps();
160
+ bindProps({
161
+ elementRef: elementRef,
162
+ renderer,
163
+ destroyRef,
164
+ props: () => omitQrCodeSvgAttributes(props()),
165
+ });
166
+ applyQrCodeSvgAttributes(elementRef, renderer, destroyRef, props);
167
+ }
168
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeFrame, deps: [], target: i0.ɵɵFactoryTarget.Directive });
169
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: QrCodeFrame, isStandalone: true, selector: "svg[qr-code-frame]", exportAs: ["qrCodeFrame"], ngImport: i0 });
170
+ }
171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeFrame, decorators: [{
172
+ type: Directive,
173
+ args: [{
174
+ selector: "svg[qr-code-frame]",
175
+ standalone: true,
176
+ exportAs: "qrCodeFrame",
177
+ }]
178
+ }], ctorParameters: () => [] });
179
+
180
+ class QrCodePattern {
181
+ constructor() {
182
+ const context = injectQrCodeContext();
183
+ const elementRef = inject(ElementRef);
184
+ const renderer = inject(Renderer2);
185
+ const destroyRef = inject(DestroyRef);
186
+ const props = () => context.api().getPatternProps();
187
+ bindProps({
188
+ elementRef: elementRef,
189
+ renderer,
190
+ destroyRef,
191
+ props: () => omitQrCodeSvgAttributes(props()),
192
+ });
193
+ applyQrCodeSvgAttributes(elementRef, renderer, destroyRef, props);
194
+ }
195
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodePattern, deps: [], target: i0.ɵɵFactoryTarget.Directive });
196
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: QrCodePattern, isStandalone: true, selector: "path[qr-code-pattern]", exportAs: ["qrCodePattern"], ngImport: i0 });
197
+ }
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodePattern, decorators: [{
199
+ type: Directive,
200
+ args: [{
201
+ selector: "path[qr-code-pattern]",
202
+ standalone: true,
203
+ exportAs: "qrCodePattern",
204
+ }]
205
+ }], ctorParameters: () => [] });
206
+
207
+ class QrCodeOverlay {
208
+ constructor() {
209
+ const context = injectQrCodeContext();
210
+ bindProps({
211
+ elementRef: inject(ElementRef),
212
+ renderer: inject(Renderer2),
213
+ destroyRef: inject(DestroyRef),
214
+ props: () => context.api().getOverlayProps(),
215
+ });
216
+ }
217
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
218
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: QrCodeOverlay, isStandalone: true, selector: "[qr-code-overlay]", exportAs: ["qrCodeOverlay"], ngImport: i0 });
219
+ }
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeOverlay, decorators: [{
221
+ type: Directive,
222
+ args: [{
223
+ selector: "[qr-code-overlay]",
224
+ standalone: true,
225
+ exportAs: "qrCodeOverlay",
226
+ }]
227
+ }], ctorParameters: () => [] });
228
+
229
+ class QrCodeDownloadTrigger {
230
+ mimeType = input.required(/* @ts-ignore */
231
+ ...(ngDevMode ? [{ debugName: "mimeType" }] : /* istanbul ignore next */ []));
232
+ quality = input(undefined, /* @ts-ignore */
233
+ ...(ngDevMode ? [{ debugName: "quality" }] : /* istanbul ignore next */ []));
234
+ fileName = input.required(/* @ts-ignore */
235
+ ...(ngDevMode ? [{ debugName: "fileName" }] : /* istanbul ignore next */ []));
236
+ constructor() {
237
+ const context = injectQrCodeContext();
238
+ bindProps({
239
+ elementRef: inject(ElementRef),
240
+ renderer: inject(Renderer2),
241
+ destroyRef: inject(DestroyRef),
242
+ props: () => context.api().getDownloadTriggerProps({
243
+ mimeType: this.mimeType(),
244
+ quality: this.quality(),
245
+ fileName: this.fileName(),
246
+ }),
247
+ });
248
+ }
249
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeDownloadTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
250
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: QrCodeDownloadTrigger, isStandalone: true, selector: "button[qr-code-download-trigger]", inputs: { mimeType: { classPropertyName: "mimeType", publicName: "mimeType", isSignal: true, isRequired: true, transformFunction: null }, quality: { classPropertyName: "quality", publicName: "quality", isSignal: true, isRequired: false, transformFunction: null }, fileName: { classPropertyName: "fileName", publicName: "fileName", isSignal: true, isRequired: true, transformFunction: null } }, exportAs: ["qrCodeDownloadTrigger"], ngImport: i0 });
251
+ }
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeDownloadTrigger, decorators: [{
253
+ type: Directive,
254
+ args: [{
255
+ selector: "button[qr-code-download-trigger]",
256
+ standalone: true,
257
+ exportAs: "qrCodeDownloadTrigger",
258
+ }]
259
+ }], ctorParameters: () => [], propDecorators: { mimeType: [{ type: i0.Input, args: [{ isSignal: true, alias: "mimeType", required: true }] }], quality: [{ type: i0.Input, args: [{ isSignal: true, alias: "quality", required: false }] }], fileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileName", required: true }] }] } });
260
+
261
+ class QrCodeContext {
262
+ static ngTemplateContextGuard(_directive, context) {
263
+ void context;
264
+ return true;
265
+ }
266
+ qrCode = injectQrCodeContext();
267
+ templateRef = inject(TemplateRef);
268
+ viewContainer = inject(ViewContainerRef);
269
+ constructor() {
270
+ const view = this.viewContainer.createEmbeddedView(this.templateRef, {
271
+ $implicit: this.qrCode.api,
272
+ api: this.qrCode.api,
273
+ });
274
+ effect(() => {
275
+ this.qrCode.api();
276
+ view.detectChanges();
277
+ });
278
+ inject(DestroyRef).onDestroy(() => view.destroy());
279
+ }
280
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeContext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
281
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: QrCodeContext, isStandalone: true, selector: "[qr-code-context]", exportAs: ["qrCodeContext"], ngImport: i0 });
282
+ }
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: QrCodeContext, decorators: [{
284
+ type: Directive,
285
+ args: [{
286
+ selector: "[qr-code-context]",
287
+ standalone: true,
288
+ exportAs: "qrCodeContext",
289
+ }]
290
+ }], ctorParameters: () => [] });
291
+
292
+ /**
293
+ * Generated bundle index. Do not edit.
294
+ */
295
+
296
+ export { QR_CODE_CONTEXT, QrCodeContext, QrCodeDownloadTrigger, QrCodeFrame, QrCodeOverlay, QrCodePattern, QrCodeRoot, QrCodeRootProvider, injectQrCodeContext, useQrCode };
297
+ //# sourceMappingURL=wirekyt-angular-qr-code.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-qr-code.mjs","sources":["../../src/components/qr-code/use-context.ts","../../src/components/qr-code/use.ts","../../src/components/qr-code/root.ts","../../src/components/qr-code/root-provider.ts","../../src/components/qr-code/svg-props.ts","../../src/components/qr-code/frame.ts","../../src/components/qr-code/pattern.ts","../../src/components/qr-code/overlay.ts","../../src/components/qr-code/download-trigger.ts","../../src/components/qr-code/context.ts","../../src/components/qr-code/wirekyt-angular-qr-code.ts"],"sourcesContent":["import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UseQrCodeReturn } from \"./use\";\n\nexport const QR_CODE_CONTEXT = new InjectionToken<UseQrCodeReturn>(\"WIREKYT.QR_CODE_CONTEXT\");\n\nexport function injectQrCodeContext(): UseQrCodeReturn {\n return inject(QR_CODE_CONTEXT);\n}\n","import type { Machine } from \"@wirekyt/dom\";\n\nimport {\n createId,\n injectEnvironment,\n injectLocale,\n useMachine,\n type UseMachineReturn,\n} from \"@wirekyt/angular\";\nimport * as qrCode from \"@wirekyt/dom/machines/qr-code\";\n\ntype OptionalId<T extends { id: string }> = Omit<T, \"id\"> & { id?: string };\n\nexport interface UseQrCodeProps extends OptionalId<Omit<qrCode.Props, \"dir\" | \"getRootNode\">> {}\n\nexport type UseQrCodeReturn = UseMachineReturn<qrCode.Service[\"state\"], qrCode.Api, qrCode.Service>;\n\nexport interface UseQrCodeOptions {\n context: () => UseQrCodeProps;\n}\n\ntype QrCodeContext = Record<string, unknown>;\ntype QrCodeSchema = qrCode.Machine extends Machine<infer TSchema> ? TSchema : never;\n\nexport function useQrCode(options: UseQrCodeOptions): UseQrCodeReturn {\n const locale = injectLocale();\n const environment = injectEnvironment();\n const fallbackId = createId();\n\n return useMachine<QrCodeSchema, qrCode.Api>({\n machine: qrCode.machine,\n context: () => {\n const props = options.context();\n return {\n ...props,\n dir: locale.dir,\n getRootNode: environment.getRootNode,\n id: props.id ?? fallbackId,\n } as QrCodeContext;\n },\n connect: (service, normalize) => qrCode.connect(service, normalize),\n });\n}\n","import type * as qrCode from \"@wirekyt/dom/machines/qr-code\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n forwardRef,\n inject,\n input,\n model,\n output,\n type InputSignal,\n type ModelSignal,\n type OutputEmitterRef,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { QrCodeElementIds, QrCodeGenerateOptions, QrCodeValueChangeDetails } from \"./types\";\n\nimport { useQrCode, type UseQrCodeReturn } from \"./use\";\nimport { QR_CODE_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[qr-code-root]\",\n standalone: true,\n exportAs: \"qrCodeRoot\",\n providers: [{ provide: QR_CODE_CONTEXT, useExisting: forwardRef(() => QrCodeRoot) }],\n})\nexport class QrCodeRoot implements UseQrCodeReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly ids: InputSignal<QrCodeElementIds | undefined> = input<QrCodeElementIds | undefined>(\n undefined,\n );\n readonly value: ModelSignal<string | undefined> = model<string | undefined>(undefined);\n readonly defaultValue: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly encoding: InputSignal<QrCodeGenerateOptions | undefined> = input<\n QrCodeGenerateOptions | undefined\n >(undefined);\n readonly pixelSize: InputSignal<number | undefined> = input<number | undefined>(undefined);\n readonly valueDetailsChange: OutputEmitterRef<QrCodeValueChangeDetails> =\n output<QrCodeValueChangeDetails>();\n\n private readonly machine = useQrCode({\n context: () => ({\n id: this.id(),\n ids: this.ids(),\n value: this.value(),\n defaultValue: this.defaultValue(),\n encoding: this.encoding(),\n pixelSize: this.pixelSize(),\n onValueChange: (details) => {\n if (this.value() !== details.value) this.value.set(details.value);\n this.valueDetailsChange.emit(details);\n },\n }),\n });\n\n readonly state: Signal<qrCode.Service[\"state\"]> = this.machine.state;\n readonly api: Signal<qrCode.Api> = this.machine.api;\n readonly service: qrCode.Service = this.machine.service;\n readonly send: qrCode.Service[\"send\"] = this.machine.send;\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n}\n","import type * as qrCode from \"@wirekyt/dom/machines/qr-code\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n type InputSignal,\n type Signal,\n computed,\n forwardRef,\n inject,\n input,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { UseQrCodeReturn } from \"./use\";\n\nimport { QR_CODE_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[qr-code-root-provider]\",\n standalone: true,\n exportAs: \"qrCodeRootProvider\",\n providers: [{ provide: QR_CODE_CONTEXT, useExisting: forwardRef(() => QrCodeRootProvider) }],\n})\nexport class QrCodeRootProvider implements UseQrCodeReturn {\n readonly value: InputSignal<UseQrCodeReturn> = input.required<UseQrCodeReturn>();\n readonly state: Signal<qrCode.Service[\"state\"]> = computed(() => this.value().state());\n readonly api: Signal<qrCode.Api> = computed(() => this.value().api());\n readonly send: qrCode.Service[\"send\"] = (event) => this.value().send(event);\n\n get service(): qrCode.Service {\n return this.value().service;\n }\n\n resolveValue(): UseQrCodeReturn {\n return this.value();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n}\n","import { type DestroyRef, type ElementRef, type Renderer2, effect } from \"@angular/core\";\n\nconst SVG_ATTRIBUTE_KEYS = new Set([\"d\", \"viewBox\", \"xmlns\"]);\n\nexport function omitQrCodeSvgAttributes(props: Record<string, unknown>): Record<string, unknown> {\n const next = { ...props };\n for (const key of SVG_ATTRIBUTE_KEYS) {\n delete next[key];\n }\n return next;\n}\n\nexport function applyQrCodeSvgAttributes(\n elementRef: ElementRef<SVGElement>,\n renderer: Renderer2,\n destroyRef: DestroyRef,\n props: () => Record<string, unknown> | undefined,\n): void {\n const applied = new Set<string>();\n\n effect(() => {\n const next = props() ?? {};\n for (const key of SVG_ATTRIBUTE_KEYS) {\n const value = next[key];\n if (value == null || value === false) {\n if (applied.has(key)) {\n renderer.removeAttribute(elementRef.nativeElement, key);\n applied.delete(key);\n }\n continue;\n }\n renderer.setAttribute(elementRef.nativeElement, key, String(value));\n applied.add(key);\n }\n });\n\n destroyRef.onDestroy(() => {\n for (const key of applied) {\n renderer.removeAttribute(elementRef.nativeElement, key);\n }\n applied.clear();\n });\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { applyQrCodeSvgAttributes, omitQrCodeSvgAttributes } from \"./svg-props\";\nimport { injectQrCodeContext } from \"./use-context\";\n\n@Directive({\n selector: \"svg[qr-code-frame]\",\n standalone: true,\n exportAs: \"qrCodeFrame\",\n})\nexport class QrCodeFrame {\n constructor() {\n const context = injectQrCodeContext();\n const elementRef = inject<ElementRef<SVGSVGElement>>(ElementRef);\n const renderer = inject(Renderer2);\n const destroyRef = inject(DestroyRef);\n const props = () => context.api().getFrameProps() as Record<string, unknown>;\n\n bindProps({\n elementRef: elementRef as unknown as ElementRef<HTMLElement>,\n renderer,\n destroyRef,\n props: () => omitQrCodeSvgAttributes(props()),\n });\n applyQrCodeSvgAttributes(\n elementRef as unknown as ElementRef<SVGElement>,\n renderer,\n destroyRef,\n props,\n );\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { applyQrCodeSvgAttributes, omitQrCodeSvgAttributes } from \"./svg-props\";\nimport { injectQrCodeContext } from \"./use-context\";\n\n@Directive({\n selector: \"path[qr-code-pattern]\",\n standalone: true,\n exportAs: \"qrCodePattern\",\n})\nexport class QrCodePattern {\n constructor() {\n const context = injectQrCodeContext();\n const elementRef = inject<ElementRef<SVGPathElement>>(ElementRef);\n const renderer = inject(Renderer2);\n const destroyRef = inject(DestroyRef);\n const props = () => context.api().getPatternProps() as Record<string, unknown>;\n\n bindProps({\n elementRef: elementRef as unknown as ElementRef<HTMLElement>,\n renderer,\n destroyRef,\n props: () => omitQrCodeSvgAttributes(props()),\n });\n applyQrCodeSvgAttributes(\n elementRef as unknown as ElementRef<SVGElement>,\n renderer,\n destroyRef,\n props,\n );\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectQrCodeContext } from \"./use-context\";\n\n@Directive({\n selector: \"[qr-code-overlay]\",\n standalone: true,\n exportAs: \"qrCodeOverlay\",\n})\nexport class QrCodeOverlay {\n constructor() {\n const context = injectQrCodeContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.api().getOverlayProps(),\n });\n }\n}\n","import type { DataUrlType } from \"@wirekyt/dom/dom-query\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n inject,\n input,\n type InputSignal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectQrCodeContext } from \"./use-context\";\n\n@Directive({\n selector: \"button[qr-code-download-trigger]\",\n standalone: true,\n exportAs: \"qrCodeDownloadTrigger\",\n})\nexport class QrCodeDownloadTrigger {\n readonly mimeType: InputSignal<DataUrlType> = input.required<DataUrlType>();\n readonly quality: InputSignal<number | undefined> = input<number | undefined>(undefined);\n readonly fileName: InputSignal<string> = input.required<string>();\n\n constructor() {\n const context = injectQrCodeContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () =>\n context.api().getDownloadTriggerProps({\n mimeType: this.mimeType(),\n quality: this.quality(),\n fileName: this.fileName(),\n }),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n TemplateRef,\n ViewContainerRef,\n effect,\n inject,\n} from \"@angular/core\";\n\nimport type { UseQrCodeReturn } from \"./use\";\n\nimport { injectQrCodeContext } from \"./use-context\";\n\nexport interface QrCodeContextTemplate {\n $implicit: UseQrCodeReturn[\"api\"];\n api: UseQrCodeReturn[\"api\"];\n}\n\n@Directive({\n selector: \"[qr-code-context]\",\n standalone: true,\n exportAs: \"qrCodeContext\",\n})\nexport class QrCodeContext {\n static ngTemplateContextGuard(\n _directive: QrCodeContext,\n context: unknown,\n ): context is QrCodeContextTemplate {\n void context;\n return true;\n }\n\n private readonly qrCode = injectQrCodeContext();\n private readonly templateRef = inject<TemplateRef<QrCodeContextTemplate>>(TemplateRef);\n private readonly viewContainer = inject(ViewContainerRef);\n\n constructor() {\n const view = this.viewContainer.createEmbeddedView(this.templateRef, {\n $implicit: this.qrCode.api,\n api: this.qrCode.api,\n });\n\n effect(() => {\n this.qrCode.api();\n view.detectChanges();\n });\n\n inject(DestroyRef).onDestroy(() => view.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAIa,eAAe,GAAG,IAAI,cAAc,CAAkB,yBAAyB;SAE5E,mBAAmB,GAAA;AACjC,IAAA,OAAO,MAAM,CAAC,eAAe,CAAC;AAChC;;ACgBM,SAAU,SAAS,CAAC,OAAyB,EAAA;AACjD,IAAA,MAAM,MAAM,GAAG,YAAY,EAAE;AAC7B,IAAA,MAAM,WAAW,GAAG,iBAAiB,EAAE;AACvC,IAAA,MAAM,UAAU,GAAG,QAAQ,EAAE;AAE7B,IAAA,OAAO,UAAU,CAA2B;QAC1C,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,OAAO,EAAE,MAAK;AACZ,YAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE;YAC/B,OAAO;AACL,gBAAA,GAAG,KAAK;gBACR,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,WAAW,EAAE,WAAW,CAAC,WAAW;AACpC,gBAAA,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,UAAU;aACV;QACpB,CAAC;AACD,QAAA,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,KAAK,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC;AACpE,KAAA,CAAC;AACJ;;MCZa,UAAU,CAAA;IACZ,EAAE,GAAoC,KAAK,CAAqB,SAAS;2EAAC;IAC1E,GAAG,GAA8C,KAAK,CAC7D,SAAS;4EACV;IACQ,KAAK,GAAoC,KAAK,CAAqB,SAAS;8EAA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