@acorex/components 20.2.20 → 20.2.22

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 (52) hide show
  1. package/drawer/README.md +2 -2
  2. package/drawer/index.d.ts +32 -57
  3. package/drawer-legacy/README.md +3 -0
  4. package/drawer-legacy/index.d.ts +86 -0
  5. package/fesm2022/acorex-components-color-palette.mjs +1 -1
  6. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  7. package/fesm2022/acorex-components-data-pager.mjs +1 -1
  8. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  9. package/fesm2022/acorex-components-drawer-legacy.mjs +218 -0
  10. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -0
  11. package/fesm2022/acorex-components-drawer.mjs +58 -143
  12. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  13. package/fesm2022/acorex-components-file-explorer.mjs +1 -1
  14. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  15. package/fesm2022/acorex-components-map.mjs +1 -0
  16. package/fesm2022/acorex-components-map.mjs.map +1 -1
  17. package/fesm2022/acorex-components-media-viewer.mjs +2 -2
  18. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  19. package/fesm2022/{acorex-components-modal-acorex-components-modal-ClSGRCam.mjs → acorex-components-modal-acorex-components-modal-BLjJGxLT.mjs} +2 -2
  20. package/fesm2022/{acorex-components-modal-acorex-components-modal-ClSGRCam.mjs.map → acorex-components-modal-acorex-components-modal-BLjJGxLT.mjs.map} +1 -1
  21. package/fesm2022/{acorex-components-modal-modal-content.component-BC-z7O0z.mjs → acorex-components-modal-modal-content.component-CC_L42pt.mjs} +4 -4
  22. package/fesm2022/acorex-components-modal-modal-content.component-CC_L42pt.mjs.map +1 -0
  23. package/fesm2022/acorex-components-modal.mjs +1 -1
  24. package/fesm2022/acorex-components-number-box-legacy.mjs +412 -0
  25. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -0
  26. package/fesm2022/acorex-components-number-box.mjs +97 -310
  27. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  28. package/fesm2022/acorex-components-query-builder.mjs +1 -1
  29. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  30. package/fesm2022/acorex-components-rrule.mjs +101 -6
  31. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  32. package/fesm2022/acorex-components-tag-box.mjs +10 -5
  33. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  34. package/fesm2022/acorex-components-tag.mjs +39 -3
  35. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  36. package/number-box/README.md +2 -2
  37. package/number-box/index.d.ts +31 -171
  38. package/number-box-legacy/README.md +3 -0
  39. package/number-box-legacy/index.d.ts +191 -0
  40. package/package.json +57 -49
  41. package/rrule/index.d.ts +96 -1
  42. package/tag/index.d.ts +8 -2
  43. package/tag-box/index.d.ts +7 -3
  44. package/drawer-2/README.md +0 -3
  45. package/drawer-2/index.d.ts +0 -62
  46. package/fesm2022/acorex-components-drawer-2.mjs +0 -134
  47. package/fesm2022/acorex-components-drawer-2.mjs.map +0 -1
  48. package/fesm2022/acorex-components-modal-modal-content.component-BC-z7O0z.mjs.map +0 -1
  49. package/fesm2022/acorex-components-number-box-2.mjs +0 -183
  50. package/fesm2022/acorex-components-number-box-2.mjs.map +0 -1
  51. package/number-box-2/README.md +0 -3
  52. package/number-box-2/index.d.ts +0 -41
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.2.20",
3
+ "version": "20.2.22",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.2.20",
6
- "@acorex/cdk": "20.2.20",
5
+ "@acorex/core": "20.2.22",
6
+ "@acorex/cdk": "20.2.22",
7
7
  "@angular/common": "^20.0.0",
8
8
  "@angular/core": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",
@@ -35,7 +35,15 @@
35
35
  "@codemirror/lang-sass": "^6.0.2",
36
36
  "@codemirror/theme-one-dark": "^6.1.0",
37
37
  "prettier": ">=3.0.0",
38
- "@editorjs/editorjs": "^2.31.0"
38
+ "@editorjs/code": "^2.9.3",
39
+ "@editorjs/editorjs": "2.28.2",
40
+ "@editorjs/header": "^2.8.8",
41
+ "@editorjs/list": "^2.0.8",
42
+ "@editorjs/quote": "^2.7.6",
43
+ "@editorjs/raw": "^2.5.1",
44
+ "@editorjs/simple-image": "^1.6.0",
45
+ "@editorjs/underline": "^1.2.1",
46
+ "editorjs-text-color-plugin": "^2.0.3"
39
47
  },
40
48
  "peerDependenciesMeta": {
41
49
  "prettier": {
@@ -60,6 +68,10 @@
60
68
  "types": "./accordion/index.d.ts",
61
69
  "default": "./fesm2022/acorex-components-accordion.mjs"
62
70
  },
71
+ "./action-sheet": {
72
+ "types": "./action-sheet/index.d.ts",
73
+ "default": "./fesm2022/acorex-components-action-sheet.mjs"
74
+ },
63
75
  "./alert": {
64
76
  "types": "./alert/index.d.ts",
65
77
  "default": "./fesm2022/acorex-components-alert.mjs"
@@ -72,10 +84,6 @@
72
84
  "types": "./audio-wave/index.d.ts",
73
85
  "default": "./fesm2022/acorex-components-audio-wave.mjs"
74
86
  },
75
- "./action-sheet": {
76
- "types": "./action-sheet/index.d.ts",
77
- "default": "./fesm2022/acorex-components-action-sheet.mjs"
78
- },
79
87
  "./autocomplete": {
80
88
  "types": "./autocomplete/index.d.ts",
81
89
  "default": "./fesm2022/acorex-components-autocomplete.mjs"
@@ -160,14 +168,14 @@
160
168
  "types": "./data-pager/index.d.ts",
161
169
  "default": "./fesm2022/acorex-components-data-pager.mjs"
162
170
  },
163
- "./datetime-box": {
164
- "types": "./datetime-box/index.d.ts",
165
- "default": "./fesm2022/acorex-components-datetime-box.mjs"
166
- },
167
171
  "./data-table": {
168
172
  "types": "./data-table/index.d.ts",
169
173
  "default": "./fesm2022/acorex-components-data-table.mjs"
170
174
  },
175
+ "./datetime-box": {
176
+ "types": "./datetime-box/index.d.ts",
177
+ "default": "./fesm2022/acorex-components-datetime-box.mjs"
178
+ },
171
179
  "./datetime-input": {
172
180
  "types": "./datetime-input/index.d.ts",
173
181
  "default": "./fesm2022/acorex-components-datetime-input.mjs"
@@ -188,9 +196,9 @@
188
196
  "types": "./drawer/index.d.ts",
189
197
  "default": "./fesm2022/acorex-components-drawer.mjs"
190
198
  },
191
- "./drawer-2": {
192
- "types": "./drawer-2/index.d.ts",
193
- "default": "./fesm2022/acorex-components-drawer-2.mjs"
199
+ "./drawer-legacy": {
200
+ "types": "./drawer-legacy/index.d.ts",
201
+ "default": "./fesm2022/acorex-components-drawer-legacy.mjs"
194
202
  },
195
203
  "./dropdown": {
196
204
  "types": "./dropdown/index.d.ts",
@@ -256,14 +264,14 @@
256
264
  "types": "./loading-dialog/index.d.ts",
257
265
  "default": "./fesm2022/acorex-components-loading-dialog.mjs"
258
266
  },
259
- "./media-viewer": {
260
- "types": "./media-viewer/index.d.ts",
261
- "default": "./fesm2022/acorex-components-media-viewer.mjs"
262
- },
263
267
  "./map": {
264
268
  "types": "./map/index.d.ts",
265
269
  "default": "./fesm2022/acorex-components-map.mjs"
266
270
  },
271
+ "./media-viewer": {
272
+ "types": "./media-viewer/index.d.ts",
273
+ "default": "./fesm2022/acorex-components-media-viewer.mjs"
274
+ },
267
275
  "./menu": {
268
276
  "types": "./menu/index.d.ts",
269
277
  "default": "./fesm2022/acorex-components-menu.mjs"
@@ -284,22 +292,22 @@
284
292
  "types": "./number-box/index.d.ts",
285
293
  "default": "./fesm2022/acorex-components-number-box.mjs"
286
294
  },
295
+ "./number-box-legacy": {
296
+ "types": "./number-box-legacy/index.d.ts",
297
+ "default": "./fesm2022/acorex-components-number-box-legacy.mjs"
298
+ },
287
299
  "./otp": {
288
300
  "types": "./otp/index.d.ts",
289
301
  "default": "./fesm2022/acorex-components-otp.mjs"
290
302
  },
291
- "./number-box-2": {
292
- "types": "./number-box-2/index.d.ts",
293
- "default": "./fesm2022/acorex-components-number-box-2.mjs"
303
+ "./page": {
304
+ "types": "./page/index.d.ts",
305
+ "default": "./fesm2022/acorex-components-page.mjs"
294
306
  },
295
307
  "./paint": {
296
308
  "types": "./paint/index.d.ts",
297
309
  "default": "./fesm2022/acorex-components-paint.mjs"
298
310
  },
299
- "./page": {
300
- "types": "./page/index.d.ts",
301
- "default": "./fesm2022/acorex-components-page.mjs"
302
- },
303
311
  "./password-box": {
304
312
  "types": "./password-box/index.d.ts",
305
313
  "default": "./fesm2022/acorex-components-password-box.mjs"
@@ -308,14 +316,14 @@
308
316
  "types": "./pdf-reader/index.d.ts",
309
317
  "default": "./fesm2022/acorex-components-pdf-reader.mjs"
310
318
  },
311
- "./picker": {
312
- "types": "./picker/index.d.ts",
313
- "default": "./fesm2022/acorex-components-picker.mjs"
314
- },
315
319
  "./phone-box": {
316
320
  "types": "./phone-box/index.d.ts",
317
321
  "default": "./fesm2022/acorex-components-phone-box.mjs"
318
322
  },
323
+ "./picker": {
324
+ "types": "./picker/index.d.ts",
325
+ "default": "./fesm2022/acorex-components-picker.mjs"
326
+ },
319
327
  "./popover": {
320
328
  "types": "./popover/index.d.ts",
321
329
  "default": "./fesm2022/acorex-components-popover.mjs"
@@ -352,22 +360,22 @@
352
360
  "types": "./rate-picker/index.d.ts",
353
361
  "default": "./fesm2022/acorex-components-rate-picker.mjs"
354
362
  },
355
- "./result": {
356
- "types": "./result/index.d.ts",
357
- "default": "./fesm2022/acorex-components-result.mjs"
358
- },
359
363
  "./rest-api-generator": {
360
364
  "types": "./rest-api-generator/index.d.ts",
361
365
  "default": "./fesm2022/acorex-components-rest-api-generator.mjs"
362
366
  },
363
- "./rrule": {
364
- "types": "./rrule/index.d.ts",
365
- "default": "./fesm2022/acorex-components-rrule.mjs"
367
+ "./result": {
368
+ "types": "./result/index.d.ts",
369
+ "default": "./fesm2022/acorex-components-result.mjs"
366
370
  },
367
371
  "./routing-progress": {
368
372
  "types": "./routing-progress/index.d.ts",
369
373
  "default": "./fesm2022/acorex-components-routing-progress.mjs"
370
374
  },
375
+ "./rrule": {
376
+ "types": "./rrule/index.d.ts",
377
+ "default": "./fesm2022/acorex-components-rrule.mjs"
378
+ },
371
379
  "./scheduler": {
372
380
  "types": "./scheduler/index.d.ts",
373
381
  "default": "./fesm2022/acorex-components-scheduler.mjs"
@@ -392,14 +400,14 @@
392
400
  "types": "./selection-list-2/index.d.ts",
393
401
  "default": "./fesm2022/acorex-components-selection-list-2.mjs"
394
402
  },
395
- "./skeleton": {
396
- "types": "./skeleton/index.d.ts",
397
- "default": "./fesm2022/acorex-components-skeleton.mjs"
398
- },
399
403
  "./side-menu": {
400
404
  "types": "./side-menu/index.d.ts",
401
405
  "default": "./fesm2022/acorex-components-side-menu.mjs"
402
406
  },
407
+ "./skeleton": {
408
+ "types": "./skeleton/index.d.ts",
409
+ "default": "./fesm2022/acorex-components-skeleton.mjs"
410
+ },
403
411
  "./slider": {
404
412
  "types": "./slider/index.d.ts",
405
413
  "default": "./fesm2022/acorex-components-slider.mjs"
@@ -444,14 +452,14 @@
444
452
  "types": "./time-line/index.d.ts",
445
453
  "default": "./fesm2022/acorex-components-time-line.mjs"
446
454
  },
447
- "./toolbar": {
448
- "types": "./toolbar/index.d.ts",
449
- "default": "./fesm2022/acorex-components-toolbar.mjs"
450
- },
451
455
  "./toast": {
452
456
  "types": "./toast/index.d.ts",
453
457
  "default": "./fesm2022/acorex-components-toast.mjs"
454
458
  },
459
+ "./toolbar": {
460
+ "types": "./toolbar/index.d.ts",
461
+ "default": "./fesm2022/acorex-components-toolbar.mjs"
462
+ },
455
463
  "./tooltip": {
456
464
  "types": "./tooltip/index.d.ts",
457
465
  "default": "./fesm2022/acorex-components-tooltip.mjs"
@@ -460,14 +468,14 @@
460
468
  "types": "./tree-view/index.d.ts",
461
469
  "default": "./fesm2022/acorex-components-tree-view.mjs"
462
470
  },
463
- "./video-player": {
464
- "types": "./video-player/index.d.ts",
465
- "default": "./fesm2022/acorex-components-video-player.mjs"
466
- },
467
471
  "./uploader": {
468
472
  "types": "./uploader/index.d.ts",
469
473
  "default": "./fesm2022/acorex-components-uploader.mjs"
470
474
  },
475
+ "./video-player": {
476
+ "types": "./video-player/index.d.ts",
477
+ "default": "./fesm2022/acorex-components-video-player.mjs"
478
+ },
471
479
  "./wysiwyg": {
472
480
  "types": "./wysiwyg/index.d.ts",
473
481
  "default": "./fesm2022/acorex-components-wysiwyg.mjs"
package/rrule/index.d.ts CHANGED
@@ -21,16 +21,79 @@ type AXRRuleType = rrule.RRule;
21
21
  declare const defaultOptions: AXROptionsType;
22
22
  declare const defaultRrule = "RRULE:FREQ=WEEKLY;INTERVAL=1;WKST=MO;COUNT=5";
23
23
 
24
+ /**
25
+ * Service for working with RRule recurrence patterns.
26
+ * Provides methods to create RRule instances from options or strings,
27
+ * convert between formats, and query occurrences.
28
+ */
24
29
  declare class AXRruleService {
30
+ /**
31
+ * Creates an RRule instance from options object.
32
+ * @param options Partial RRule options to create the rule from
33
+ * @returns Promise resolving to the RRule instance
34
+ */
25
35
  rruleFromOptions(options: Partial<AXROptionsType>): Promise<AXRRuleType>;
36
+ /**
37
+ * Creates an RRule instance from a RRULE string.
38
+ * @param ruleString Valid RRULE string (e.g., "RRULE:FREQ=WEEKLY;COUNT=5")
39
+ * @returns Promise resolving to the RRule instance
40
+ */
26
41
  rruleFromString(ruleString: string): Promise<AXRRuleType>;
42
+ /**
43
+ * Creates an RRule instance from human-readable text.
44
+ * @param ruleText Human-readable text describing the recurrence (e.g., "every Monday for 5 weeks")
45
+ * @returns Promise resolving to the RRule instance
46
+ */
27
47
  rruleFromText(ruleText: string): Promise<AXRRuleType>;
48
+ /**
49
+ * Extracts options from an RRule instance.
50
+ * @param rule RRule instance to extract options from
51
+ * @returns Parsed options with all required fields
52
+ */
28
53
  rruleToOptions(rule: AXRRuleType): AXParsedOptionsType;
54
+ /**
55
+ * Converts an RRule instance to RRULE string format.
56
+ * @param rule RRule instance to convert
57
+ * @returns RRULE string representation
58
+ */
29
59
  rruleToString(rule: AXRRuleType): string;
60
+ /**
61
+ * Converts an RRule instance to human-readable text.
62
+ * @param rule RRule instance to convert
63
+ * @returns Human-readable text description
64
+ */
30
65
  rruleToText(rule: AXRRuleType): string;
66
+ /**
67
+ * Gets all occurrences of the rule up to a limit.
68
+ * @param rule RRule instance to query
69
+ * @param limit Maximum number of occurrences to return (default: 500)
70
+ * @returns Array of occurrence dates
71
+ */
31
72
  rruleGetAll(rule: AXRRuleType, limit?: number): Date[];
73
+ /**
74
+ * Gets occurrences between two dates.
75
+ * @param rule RRule instance to query
76
+ * @param after Start date (exclusive by default)
77
+ * @param before End date (exclusive by default)
78
+ * @param inclusive Whether to include the boundary dates
79
+ * @returns Array of occurrence dates between the specified dates
80
+ */
32
81
  rruleGetBetween(rule: AXRRuleType, after: Date, before: Date, inclusive?: boolean): Date[];
82
+ /**
83
+ * Gets the last occurrence before the specified date.
84
+ * @param rule RRule instance to query
85
+ * @param date Date to search before
86
+ * @param inclusive Whether to include the specified date
87
+ * @returns Last occurrence before the date, or null if none found
88
+ */
33
89
  rruleGetBefore(rule: AXRRuleType, date: Date, inclusive?: boolean): Date | null;
90
+ /**
91
+ * Gets the first occurrence after the specified date.
92
+ * @param rule RRule instance to query
93
+ * @param date Date to search after
94
+ * @param inclusive Whether to include the specified date
95
+ * @returns First occurrence after the date, or null if none found
96
+ */
34
97
  rruleGetAfter(rule: AXRRuleType, date: Date, inclusive?: boolean): Date | null;
35
98
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXRruleService, never>;
36
99
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXRruleService>;
@@ -53,12 +116,36 @@ declare class AXRrulePreviewComponent implements OnInit {
53
116
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXRrulePreviewComponent, "ax-rrule-preview", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "repeat": { "alias": "repeat"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
54
117
  }
55
118
 
119
+ /**
120
+ * RRule component provides a user-friendly interface for creating and managing recurrence rules.
121
+ * Supports various frequencies, intervals, and date constraints with real-time preview and validation.
122
+ */
56
123
  declare class AXRruleComponent {
57
124
  #private;
125
+ /**
126
+ * Current recurrence rule model value (options object or RRULE string).
127
+ * @default null
128
+ */
58
129
  value: _angular_core.ModelSignal<string | rrule.Options>;
130
+ /**
131
+ * Emitted when the model value changes.
132
+ */
133
+ valueChange: _angular_core.OutputEmitterRef<string | rrule.Options>;
134
+ /**
135
+ * Emitted with the computed RRule instance when updated.
136
+ */
59
137
  rruleChange: _angular_core.OutputEmitterRef<rrule.RRule>;
138
+ /**
139
+ * Emitted with the normalized options whenever they change.
140
+ */
60
141
  optionsChange: _angular_core.OutputEmitterRef<rrule.Options>;
142
+ /**
143
+ * Emitted with the RRULE string representation.
144
+ */
61
145
  stringChange: _angular_core.OutputEmitterRef<string>;
146
+ /**
147
+ * Emitted with the human-readable text of the rule.
148
+ */
62
149
  textChange: _angular_core.OutputEmitterRef<string>;
63
150
  protected freqs: {
64
151
  text: string;
@@ -93,10 +180,18 @@ declare class AXRruleComponent {
93
180
  private _emitAll;
94
181
  private _areOptionValuesEqual;
95
182
  private _clearOptions;
183
+ /**
184
+ * Updates a single option and recomputes the rule.
185
+ * @param key The option key to update
186
+ * @param value The new value for the option
187
+ */
96
188
  updateOption<K extends keyof AXROptionsType>(key: K, value: AXROptionsType[K]): Promise<void>;
189
+ /**
190
+ * Resets options to defaults and recomputes the rule.
191
+ */
97
192
  resetOptions(): Promise<void>;
98
193
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXRruleComponent, never>;
99
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXRruleComponent, "ax-rrule", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "rruleChange": "rruleChange"; "optionsChange": "optionsChange"; "stringChange": "stringChange"; "textChange": "textChange"; }, never, never, true, never>;
194
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXRruleComponent, "ax-rrule", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; "rruleChange": "rruleChange"; "optionsChange": "optionsChange"; "stringChange": "stringChange"; "textChange": "textChange"; }, never, never, true, never>;
100
195
  }
101
196
 
102
197
  export { AXRruleComponent, AXRrulePreviewComponent, AXRruleService, defaultOptions, defaultRrule };
package/tag/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { MXColorLookComponent } from '@acorex/cdk/common';
2
1
  import * as i0 from '@angular/core';
2
+ import { MXColorLookComponent, AXClickEvent } from '@acorex/cdk/common';
3
3
  import * as i1 from '@angular/common';
4
4
 
5
5
  /**
@@ -11,10 +11,16 @@ declare class AXTagComponent extends MXColorLookComponent {
11
11
  * Represents the text content to be displayed or used within the component.
12
12
  */
13
13
  text: string;
14
+ onClick: i0.OutputEmitterRef<AXClickEvent>;
15
+ onDblClick: i0.OutputEmitterRef<AXClickEvent>;
16
+ onContextMenu: i0.OutputEmitterRef<AXClickEvent>;
14
17
  /** @ignore */
15
18
  private get __hostClass();
19
+ private hostClickListener;
20
+ private hostDblClickListener;
21
+ private hostContextMenuListener;
16
22
  static ɵfac: i0.ɵɵFactoryDeclaration<AXTagComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<AXTagComponent, "ax-tag", never, { "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["ax-prefix", "ax-suffix"], true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXTagComponent, "ax-tag", never, { "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "onClick": "onClick"; "onDblClick": "onDblClick"; "onContextMenu": "onContextMenu"; }, never, ["ax-prefix", "ax-suffix"], true, never>;
18
24
  }
19
25
 
20
26
  declare class AXTagModule {
@@ -1,7 +1,7 @@
1
1
  import * as polytype from 'polytype';
2
2
  import * as _angular_core from '@angular/core';
3
- import { OnInit } from '@angular/core';
4
- import { MXInputBaseValueComponent, MXLookComponent, AXAutocompleteParentComponent } from '@acorex/cdk/common';
3
+ import { OnInit, TemplateRef } from '@angular/core';
4
+ import { MXInputBaseValueComponent, MXLookComponent, AXAutocompleteParentComponent, AXClickEvent } from '@acorex/cdk/common';
5
5
  import { AXUnsubscriber } from '@acorex/core/utils';
6
6
 
7
7
  declare const AXTagBoxComponent_base: polytype.Polytype.ClusteredConstructor<[{
@@ -21,6 +21,10 @@ declare class AXTagBoxComponent extends AXTagBoxComponent_base implements OnInit
21
21
  textField: _angular_core.InputSignal<string>;
22
22
  readonlyField: _angular_core.InputSignal<string>;
23
23
  allowDuplicateValues: _angular_core.InputSignal<boolean>;
24
+ tagTemplate: _angular_core.InputSignal<TemplateRef<unknown>>;
25
+ onTagClick: _angular_core.OutputEmitterRef<AXClickEvent>;
26
+ onTagDblClick: _angular_core.OutputEmitterRef<AXClickEvent>;
27
+ onTagContextMenu: _angular_core.OutputEmitterRef<AXClickEvent>;
24
28
  inputValue: _angular_core.WritableSignal<string>;
25
29
  ngOnInit(): void;
26
30
  /**
@@ -46,7 +50,7 @@ declare class AXTagBoxComponent extends AXTagBoxComponent_base implements OnInit
46
50
  protected internalSetValue(value: unknown): unknown[];
47
51
  private get __hostName();
48
52
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTagBoxComponent, never>;
49
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTagBoxComponent, "ax-tag-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "addOnComma": { "alias": "addOnComma"; "required": false; "isSignal": true; }; "addOnEnter": { "alias": "addOnEnter"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "readonlyField": { "alias": "readonlyField"; "required": false; "isSignal": true; }; "allowDuplicateValues": { "alias": "allowDuplicateValues"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-autocomplete", "ax-validation-rule"], true, never>;
53
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTagBoxComponent, "ax-tag-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "addOnComma": { "alias": "addOnComma"; "required": false; "isSignal": true; }; "addOnEnter": { "alias": "addOnEnter"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "readonlyField": { "alias": "readonlyField"; "required": false; "isSignal": true; }; "allowDuplicateValues": { "alias": "allowDuplicateValues"; "required": false; "isSignal": true; }; "tagTemplate": { "alias": "tagTemplate"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; "onTagClick": "onTagClick"; "onTagDblClick": "onTagDblClick"; "onTagContextMenu": "onTagContextMenu"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-autocomplete", "ax-validation-rule"], true, never>;
50
54
  }
51
55
 
52
56
  declare class AXTagBoxModule {
@@ -1,3 +0,0 @@
1
- # @acorex/components/drawer-2
2
-
3
- Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/drawer-2`.
@@ -1,62 +0,0 @@
1
- import { MXBaseComponent, AXClickEvent } from '@acorex/cdk/common';
2
- import * as _angular_core from '@angular/core';
3
- import * as i1 from '@acorex/cdk/drawer';
4
- import { AXDrawerLocation, AXDrawerMode } from '@acorex/cdk/drawer';
5
- import * as i1$1 from '@angular/common';
6
-
7
- /**
8
- * A container component that organizes and positions drawer components.
9
- * @category component
10
- */
11
- declare class AXDrawer2ContainerComponent extends MXBaseComponent {
12
- #private;
13
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawer2ContainerComponent, never>;
14
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDrawer2ContainerComponent, "ax-drawer2-container", never, {}, {}, never, ["ax-drawer2", "ax-content"], true, [{ directive: typeof i1.AXDrawerContainerDirective; inputs: {}; outputs: {}; }]>;
15
- }
16
-
17
- /**
18
- * A component that represents a drawer with header and content sections.
19
- *
20
- * @category Components
21
- */
22
- declare class AXDrawer2Component extends MXBaseComponent {
23
- #private;
24
- readonly location: _angular_core.InputSignal<AXDrawerLocation>;
25
- readonly showBackdrop: _angular_core.InputSignal<boolean>;
26
- readonly mode: _angular_core.InputSignal<AXDrawerMode>;
27
- readonly transition: _angular_core.InputSignal<number>;
28
- readonly closeOnBackdropClick: _angular_core.InputSignal<boolean>;
29
- readonly backdropClass: _angular_core.InputSignal<string>;
30
- readonly collapsed: _angular_core.InputSignal<boolean>;
31
- onBackdropClick: _angular_core.OutputEmitterRef<AXClickEvent>;
32
- collapsedStateChanged: _angular_core.OutputEmitterRef<boolean>;
33
- private drawerItem;
34
- /**
35
- * Toggles the drawer state between open and closed.
36
- *
37
- * @returns void - No return value. The drawer state is toggled.
38
- */
39
- toggle(): void;
40
- /**
41
- * Closes the drawer.
42
- *
43
- * @returns void - No return value. The drawer is collapsed.
44
- */
45
- close(): void;
46
- /**
47
- * Opens the drawer.
48
- *
49
- * @returns void - No return value. The drawer is expanded.
50
- */
51
- open(): void;
52
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawer2Component, never>;
53
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDrawer2Component, "ax-drawer2", never, { "location": { "alias": "location"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "transition": { "alias": "transition"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "onBackdropClick": "onBackdropClick"; "collapsedStateChanged": "collapsedStateChanged"; }, never, ["ax-header", "ax-content"], true, [{ directive: typeof i1.AXDrawerItemDirective; inputs: {}; outputs: {}; }]>;
54
- }
55
-
56
- declare class AXDrawer2Module {
57
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawer2Module, never>;
58
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXDrawer2Module, never, [typeof i1$1.CommonModule, typeof AXDrawer2Component, typeof AXDrawer2ContainerComponent], [typeof AXDrawer2Component, typeof AXDrawer2ContainerComponent]>;
59
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXDrawer2Module>;
60
- }
61
-
62
- export { AXDrawer2Component, AXDrawer2ContainerComponent, AXDrawer2Module };
@@ -1,134 +0,0 @@
1
- import { MXBaseComponent, AXComponent, AXClosableComponent } from '@acorex/cdk/common';
2
- import * as i1 from '@acorex/cdk/drawer';
3
- import { AXDrawerContainerDirective, AXDrawerItemDirective } from '@acorex/cdk/drawer';
4
- import * as i0 from '@angular/core';
5
- import { afterNextRender, ViewEncapsulation, ChangeDetectionStrategy, Component, input, output, inject, effect, NgModule } from '@angular/core';
6
- import { CommonModule } from '@angular/common';
7
-
8
- /**
9
- * A container component that organizes and positions drawer components.
10
- * @category component
11
- */
12
- class AXDrawer2ContainerComponent extends MXBaseComponent {
13
- #init = afterNextRender(() => {
14
- const host = this.getHostElement();
15
- Array.from(host.querySelectorAll(`ax-drawer2`)).map((c) => c['__axContext__']);
16
- });
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2ContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: AXDrawer2ContainerComponent, isStandalone: true, selector: "ax-drawer2-container", providers: [{ provide: AXComponent, useExisting: AXDrawer2ContainerComponent }], usesInheritance: true, hostDirectives: [{ directive: i1.AXDrawerContainerDirective }], ngImport: i0, template: `
19
- <ng-content select="ax-drawer2"> </ng-content>
20
- <ng-content select="ax-content"> </ng-content>
21
- `, isInline: true, styles: ["ax-drawer2-container{width:100%;height:100%;z-index:10}ax-drawer2-container>ax-content{height:100%;flex:1 1 0%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2ContainerComponent, decorators: [{
24
- type: Component,
25
- args: [{ selector: 'ax-drawer2-container', template: `
26
- <ng-content select="ax-drawer2"> </ng-content>
27
- <ng-content select="ax-content"> </ng-content>
28
- `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXComponent, useExisting: AXDrawer2ContainerComponent }], hostDirectives: [AXDrawerContainerDirective], styles: ["ax-drawer2-container{width:100%;height:100%;z-index:10}ax-drawer2-container>ax-content{height:100%;flex:1 1 0%}\n"] }]
29
- }] });
30
-
31
- /**
32
- * A component that represents a drawer with header and content sections.
33
- *
34
- * @category Components
35
- */
36
- class AXDrawer2Component extends MXBaseComponent {
37
- constructor() {
38
- super(...arguments);
39
- this.location = input('start', ...(ngDevMode ? [{ debugName: "location" }] : []));
40
- this.showBackdrop = input(true, ...(ngDevMode ? [{ debugName: "showBackdrop" }] : []));
41
- this.mode = input('overlay', ...(ngDevMode ? [{ debugName: "mode" }] : []));
42
- this.transition = input(100, ...(ngDevMode ? [{ debugName: "transition" }] : []));
43
- this.closeOnBackdropClick = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : []));
44
- this.backdropClass = input('ax-bg-black/45', ...(ngDevMode ? [{ debugName: "backdropClass" }] : []));
45
- this.collapsed = input(true, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
46
- this.onBackdropClick = output();
47
- this.collapsedStateChanged = output();
48
- this.drawerItem = inject(AXDrawerItemDirective);
49
- this.#eff = effect(() => {
50
- this.drawerItem.mode.set(this.mode());
51
- this.drawerItem.transition.set(this.transition());
52
- this.drawerItem.backdropClass.set(this.backdropClass());
53
- this.drawerItem.closeOnBackdropClick.set(this.closeOnBackdropClick());
54
- this.drawerItem.location.set(this.location());
55
- this.drawerItem.backDrop.set(this.showBackdrop());
56
- this.drawerItem.collapsed.set(this.collapsed());
57
- }, ...(ngDevMode ? [{ debugName: "#eff" }] : []));
58
- this.#init = afterNextRender(() => {
59
- this.drawerItem.onBackdropClick.subscribe((event) => {
60
- this.onBackdropClick.emit({ nativeEvent: event, component: this });
61
- });
62
- this.drawerItem.collapseStateChanged.subscribe((event) => {
63
- this.collapsedStateChanged.emit(event);
64
- });
65
- });
66
- }
67
- #eff;
68
- #init;
69
- /**
70
- * Toggles the drawer state between open and closed.
71
- *
72
- * @returns void - No return value. The drawer state is toggled.
73
- */
74
- toggle() {
75
- this.drawerItem.toggle();
76
- }
77
- /**
78
- * Closes the drawer.
79
- *
80
- * @returns void - No return value. The drawer is collapsed.
81
- */
82
- close() {
83
- this.drawerItem.hide();
84
- }
85
- /**
86
- * Opens the drawer.
87
- *
88
- * @returns void - No return value. The drawer is expanded.
89
- */
90
- open() {
91
- this.drawerItem.show();
92
- }
93
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2Component, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
94
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.6", type: AXDrawer2Component, isStandalone: true, selector: "ax-drawer2", inputs: { location: { classPropertyName: "location", publicName: "location", isSignal: true, isRequired: false, transformFunction: null }, showBackdrop: { classPropertyName: "showBackdrop", publicName: "showBackdrop", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, transition: { classPropertyName: "transition", publicName: "transition", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, backdropClass: { classPropertyName: "backdropClass", publicName: "backdropClass", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onBackdropClick: "onBackdropClick", collapsedStateChanged: "collapsedStateChanged" }, providers: [
95
- { provide: AXComponent, useExisting: AXDrawer2Component },
96
- { provide: AXClosableComponent, useExisting: AXDrawer2Component },
97
- ], usesInheritance: true, hostDirectives: [{ directive: i1.AXDrawerItemDirective }], ngImport: i0, template: `
98
- <ng-content select="ax-header"></ng-content>
99
- <ng-content select="ax-content"></ng-content>
100
- `, isInline: true, styles: ["ax-drawer2>ax-content{flex:1 1 0%;width:100%;height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
101
- }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2Component, decorators: [{
103
- type: Component,
104
- args: [{ selector: 'ax-drawer2', template: `
105
- <ng-content select="ax-header"></ng-content>
106
- <ng-content select="ax-content"></ng-content>
107
- `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
108
- { provide: AXComponent, useExisting: AXDrawer2Component },
109
- { provide: AXClosableComponent, useExisting: AXDrawer2Component },
110
- ], hostDirectives: [AXDrawerItemDirective], styles: ["ax-drawer2>ax-content{flex:1 1 0%;width:100%;height:100%}\n"] }]
111
- }], propDecorators: { location: [{ type: i0.Input, args: [{ isSignal: true, alias: "location", required: false }] }], showBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBackdrop", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], transition: [{ type: i0.Input, args: [{ isSignal: true, alias: "transition", required: false }] }], closeOnBackdropClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdropClick", required: false }] }], backdropClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdropClass", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], onBackdropClick: [{ type: i0.Output, args: ["onBackdropClick"] }], collapsedStateChanged: [{ type: i0.Output, args: ["collapsedStateChanged"] }] } });
112
-
113
- const COMPONENT = [AXDrawer2Component, AXDrawer2ContainerComponent];
114
- const MODULES = [CommonModule];
115
- class AXDrawer2Module {
116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
117
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2Module, imports: [CommonModule, AXDrawer2Component, AXDrawer2ContainerComponent], exports: [AXDrawer2Component, AXDrawer2ContainerComponent] }); }
118
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2Module, imports: [MODULES] }); }
119
- }
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXDrawer2Module, decorators: [{
121
- type: NgModule,
122
- args: [{
123
- imports: [...MODULES, ...COMPONENT],
124
- exports: [...COMPONENT],
125
- providers: [],
126
- }]
127
- }] });
128
-
129
- /**
130
- * Generated bundle index. Do not edit.
131
- */
132
-
133
- export { AXDrawer2Component, AXDrawer2ContainerComponent, AXDrawer2Module };
134
- //# sourceMappingURL=acorex-components-drawer-2.mjs.map