@entake/particle 19.1.3 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/fesm2022/entake-particle.mjs +267 -264
  2. package/fesm2022/entake-particle.mjs.map +1 -1
  3. package/index.d.ts +3850 -3
  4. package/package.json +14 -14
  5. package/app/shared/components/accordion/accordion.component.d.ts +0 -26
  6. package/app/shared/components/calendar/calendar.component.d.ts +0 -206
  7. package/app/shared/components/checkbox/checkbox.component.d.ts +0 -41
  8. package/app/shared/components/color-picker/color-picker.component.d.ts +0 -143
  9. package/app/shared/components/date-picker/date-picker.component.d.ts +0 -253
  10. package/app/shared/components/date-range-picker/date-range-picker.component.d.ts +0 -94
  11. package/app/shared/components/dialog/dialog.component.d.ts +0 -79
  12. package/app/shared/components/dropdown/dropdown.component.d.ts +0 -290
  13. package/app/shared/components/icon-select/icon-select.component.d.ts +0 -226
  14. package/app/shared/components/idle-timeout/idle-timeout.component.d.ts +0 -34
  15. package/app/shared/components/input-mask/input-mask.component.d.ts +0 -85
  16. package/app/shared/components/layout-full-framing/layout-full-framing.component.d.ts +0 -27
  17. package/app/shared/components/layout-fullwidth-sidebar/layout-fullwidth-sidebar.component.d.ts +0 -23
  18. package/app/shared/components/loader/loader.component.d.ts +0 -11
  19. package/app/shared/components/multi-select/multi-select.component.d.ts +0 -273
  20. package/app/shared/components/notification/notification.component.d.ts +0 -38
  21. package/app/shared/components/paginator/paginator.component.d.ts +0 -112
  22. package/app/shared/components/popover/popover.component.d.ts +0 -135
  23. package/app/shared/components/profile-pic/profile-pic.component.d.ts +0 -33
  24. package/app/shared/components/progress-bar/progress-bar.component.d.ts +0 -15
  25. package/app/shared/components/radio-buttons/radio-buttons.component.d.ts +0 -36
  26. package/app/shared/components/rich-text/rich-text.component.d.ts +0 -50
  27. package/app/shared/components/scroll-to-top/scroll-to-top.component.d.ts +0 -18
  28. package/app/shared/components/slideover/slideover.component.d.ts +0 -35
  29. package/app/shared/components/slider/slider.component.d.ts +0 -129
  30. package/app/shared/components/toggle-switch/toggle-switch.component.d.ts +0 -41
  31. package/app/shared/components/week-picker/week-picker.component.d.ts +0 -288
  32. package/app/shared/directives/accordion-content.directive.d.ts +0 -7
  33. package/app/shared/directives/accordion-header.directive.d.ts +0 -7
  34. package/app/shared/directives/accordion-item.directive.d.ts +0 -13
  35. package/app/shared/directives/background-carousel.directive.d.ts +0 -42
  36. package/app/shared/directives/keyfilter.directive.d.ts +0 -60
  37. package/app/shared/directives/tooltip.directive.d.ts +0 -151
  38. package/app/shared/interceptors/json.interceptor.d.ts +0 -17
  39. package/app/shared/models/auditable.model.d.ts +0 -21
  40. package/app/shared/models/carousel-options.model.d.ts +0 -21
  41. package/app/shared/models/data-list.model.d.ts +0 -9
  42. package/app/shared/models/dropdown-option-group.model.d.ts +0 -16
  43. package/app/shared/models/dropdown-option.model.d.ts +0 -25
  44. package/app/shared/models/fontawesome-icons-brands.model.d.ts +0 -13
  45. package/app/shared/models/fontawesome-icons-regular.model.d.ts +0 -13
  46. package/app/shared/models/fontawesome-icons-solid.model.d.ts +0 -13
  47. package/app/shared/models/id.model.d.ts +0 -9
  48. package/app/shared/models/multi-select-option-group.model.d.ts +0 -16
  49. package/app/shared/models/multi-select-option.model.d.ts +0 -25
  50. package/app/shared/models/notification.model.d.ts +0 -21
  51. package/app/shared/models/observable-container.d.ts +0 -8
  52. package/app/shared/models/pagination-event.model.d.ts +0 -8
  53. package/app/shared/models/particle-component-text.model.d.ts +0 -191
  54. package/app/shared/models/particle-icons-brands.model.d.ts +0 -21
  55. package/app/shared/models/particle-icons-regular.model.d.ts +0 -37
  56. package/app/shared/models/particle-icons-solid.model.d.ts +0 -61
  57. package/app/shared/models/rich-text-capabilities.model.d.ts +0 -8
  58. package/app/shared/models/theme.model.d.ts +0 -88
  59. package/app/shared/models/toggle-options.model.d.ts +0 -11
  60. package/app/shared/modules/icons/particle-icons.module.d.ts +0 -7
  61. package/app/shared/pipes/ordinal-number.pipe.d.ts +0 -15
  62. package/app/shared/services/base-data.service.d.ts +0 -130
  63. package/app/shared/services/dialog.service.d.ts +0 -10
  64. package/app/shared/services/icons.service.d.ts +0 -40
  65. package/app/shared/services/idle-timer.d.ts +0 -14
  66. package/app/shared/services/local-storage.service.d.ts +0 -41
  67. package/app/shared/services/notification.service.d.ts +0 -50
  68. package/app/shared/services/theme-change-detection.service.d.ts +0 -26
  69. package/app/shared/services/theming.service.d.ts +0 -123
  70. package/public_api.d.ts +0 -63
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entake/particle",
3
- "version": "19.1.3",
3
+ "version": "20.0.0",
4
4
  "license": "MIT",
5
5
  "description": "Reusable Angular components from the team at Entake",
6
6
  "repository": {
@@ -20,23 +20,23 @@
20
20
  "homepage": "https://github.com/entake-org/particle-ng#readme",
21
21
  "private": false,
22
22
  "peerDependencies": {
23
- "@angular/cdk": "^19.0.4",
24
- "@fortawesome/fontawesome-free": "^6.7.2",
25
- "@tiptap/core": "^2.11.0",
26
- "@tiptap/extension-bubble-menu": "^2.11.0",
27
- "@tiptap/extension-floating-menu": "^2.11.0",
28
- "@tiptap/extension-image": "^2.11.0",
29
- "@tiptap/extension-link": "^2.11.0",
30
- "@tiptap/extension-placeholder": "^2.11.0",
31
- "@tiptap/extension-text-align": "^2.11.0",
32
- "@tiptap/starter-kit": "^2.11.0",
23
+ "@angular/cdk": "^20.2.2",
24
+ "@fortawesome/fontawesome-free": "^7.0.1",
25
+ "@tiptap/core": "^3.4.1",
26
+ "@tiptap/extension-bubble-menu": "^3.4.1",
27
+ "@tiptap/extension-floating-menu": "^3.4.1",
28
+ "@tiptap/extension-image": "^3.4.1",
29
+ "@tiptap/extension-link": "^3.4.1",
30
+ "@tiptap/extension-placeholder": "^3.4.1",
31
+ "@tiptap/extension-text-align": "^3.4.1",
32
+ "@tiptap/starter-kit": "^3.4.1",
33
33
  "classlist.js": "^1.1.20150312",
34
- "core-js": "^3.39.0",
34
+ "core-js": "^3.45.1",
35
35
  "date-fns": "^4.1.0",
36
36
  "intl": "^1.2.5",
37
37
  "md5-typescript": "^1.0.5",
38
- "ngx-tiptap": "^12.0.0",
39
- "rxjs": "^7.8.1",
38
+ "ngx-tiptap": "^14.0.1",
39
+ "rxjs": "^7.8.2",
40
40
  "web-animations-js": "^2.3.2"
41
41
  },
42
42
  "dependencies": {
@@ -1,26 +0,0 @@
1
- import { AfterContentInit, AfterViewInit, QueryList } from '@angular/core';
2
- import { AccordionText } from '../../models/particle-component-text.model';
3
- import { AccordionItemDirective } from '../../directives/accordion-item.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class AccordionComponent implements AfterContentInit, AfterViewInit {
6
- expanded: Set<number>;
7
- multiple: boolean;
8
- height: string;
9
- headerClass: string;
10
- textClass: string;
11
- iconCollapsed: string;
12
- iconExpanded: string;
13
- showIcon: boolean;
14
- text: AccordionText;
15
- items: QueryList<AccordionItemDirective>;
16
- contentDivs: QueryList<any>;
17
- ngAfterContentInit(): void;
18
- ngAfterViewInit(): void;
19
- /**
20
- * @param index - index of the accordion item
21
- */
22
- getToggleState: (index: number) => any;
23
- toggleState: (index: number) => void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "particle-accordion", never, { "multiple": { "alias": "multiple"; "required": false; }; "height": { "alias": "height"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "textClass": { "alias": "textClass"; "required": false; }; "iconCollapsed": { "alias": "iconCollapsed"; "required": false; }; "iconExpanded": { "alias": "iconExpanded"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, ["items"], never, true, never>;
26
- }
@@ -1,206 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { BehaviorSubject, Observable } from 'rxjs';
3
- import { CalendarText } from '../../models/particle-component-text.model';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Interface representing a date interval
7
- */
8
- export declare interface Interval {
9
- start: Date | number;
10
- end: Date | number;
11
- }
12
- /**
13
- * Interface representing a Date broken down by date/month/year
14
- * with extended metadata
15
- */
16
- declare interface MetaDate {
17
- /**
18
- * The day of the week (starting at 0)
19
- */
20
- day: number;
21
- /**
22
- * The day of the month (starting at 1)
23
- */
24
- date: number;
25
- /**
26
- * The month (starting at 0)
27
- */
28
- month: number;
29
- /**
30
- * The full year
31
- */
32
- year: number;
33
- /**
34
- * Whether the day is selectable
35
- */
36
- selectable: boolean;
37
- }
38
- /**
39
- * Component that allows a user to select a date from a calendar
40
- */
41
- export declare class CalendarComponent implements OnDestroy, OnInit {
42
- /**
43
- * The keyboard arrow keys
44
- * @private
45
- */
46
- private static readonly ARROW_KEYS;
47
- /**
48
- * ViewChild of the calendar widget parent div element
49
- */
50
- calendarWidgetDiv: ElementRef<HTMLDivElement>;
51
- /**
52
- * ViewChild of the month select element
53
- */
54
- yearSelect: ElementRef<HTMLSelectElement>;
55
- /**
56
- * ViewChild of the done button
57
- */
58
- doneButton: ElementRef<HTMLButtonElement>;
59
- /**
60
- * QueryList of the calendar date buttons for the currently selected month/year
61
- */
62
- calendarDates: QueryList<ElementRef<HTMLButtonElement>>;
63
- /**
64
- * The selected date value
65
- */
66
- set value(value: Date);
67
- /**
68
- * The range of available dates to choose from
69
- */
70
- set dateRange(dateRange: {
71
- minDate: Date;
72
- maxDate: Date;
73
- });
74
- set text(text: CalendarText);
75
- get text(): CalendarText;
76
- readonly showControls: import("@angular/core").InputSignal<boolean>;
77
- private _text;
78
- /**
79
- * Event emitted on date select
80
- */
81
- readonly selected: import("@angular/core").OutputEmitterRef<Date>;
82
- /**
83
- * Event emitted on close (either through the button, escape keyup or click off of widget).
84
- * Note: it is the parent component's job to actually hide the calendar, this event
85
- * acts as a signal that that action should be taken
86
- */
87
- readonly closed: import("@angular/core").OutputEmitterRef<void>;
88
- /**
89
- * The current Date broken down by day/month/year
90
- */
91
- readonly currentDate: MetaDate;
92
- /**
93
- * Array of days of the week
94
- */
95
- weekDays: string[];
96
- /**
97
- * BehaviorSubject tracking the current value
98
- */
99
- readonly _value: BehaviorSubject<MetaDate>;
100
- /**
101
- * BehaviorSubject tracking the valid selection interval
102
- */
103
- readonly _validSelectionInterval: BehaviorSubject<Interval>;
104
- /**
105
- * BehaviorSubject tracking the currently selected month
106
- */
107
- readonly _selectedMonth: BehaviorSubject<number>;
108
- /**
109
- * BehaviorSubject tracking the currently selected year
110
- */
111
- readonly _selectedYear: BehaviorSubject<number>;
112
- /**
113
- * The full month for the current selected month/year
114
- */
115
- readonly fullMonth$: Observable<Array<MetaDate>>;
116
- /**
117
- * The range of selectable years as an Observable
118
- */
119
- readonly validYearRange$: Observable<Array<number>>;
120
- /**
121
- * Subscription for the combination of value and valid selection interval
122
- * @private
123
- */
124
- private readonly subscription;
125
- /**
126
- * The currently selected date
127
- */
128
- selectedDate: MetaDate | null;
129
- /**
130
- * Generate a 42 element array representing the input month's days with
131
- * padding from the previous/following month
132
- * @param month the month to generate dates for
133
- * @param year the year to generate the month for
134
- * @param selectionInterval the selection interval
135
- */
136
- private static generateMonth;
137
- /**
138
- * Generate an Array of numbers representing the span of years between the input
139
- * @param minYear the start of the range
140
- * @param maxYear the end of the range
141
- * @param currentYear the current year
142
- */
143
- private static generateYearRange;
144
- constructor();
145
- /**
146
- * Init component
147
- */
148
- ngOnInit(): void;
149
- /**
150
- * Destroy component, unsubscribe from any active subscriptions
151
- */
152
- ngOnDestroy(): void;
153
- /**
154
- * Handle window keyup events
155
- * @param event the keyup KeyboardEvent
156
- */
157
- onKeyUp(event: KeyboardEvent): void;
158
- /**
159
- * Emit closed event on click if clicked outside calendar widget
160
- * @param event the click MouseEvent
161
- */
162
- handleClick(event: MouseEvent): void;
163
- /**
164
- * Update selected date and emit selection event
165
- * @param selectedDate the selected date
166
- */
167
- handleDateSelection(selectedDate: MetaDate): void;
168
- /**
169
- * Select the current date and toggle selected month/year to match
170
- */
171
- selectToday(): void;
172
- /**
173
- * Handle arrow key navigation for calendar date buttons
174
- * @param key the pressed arrow key
175
- * @private
176
- */
177
- private onArrowKeyUp;
178
- /**
179
- * Attempt to focus on date indexed immediately to the left of the input date
180
- * @param date the day of the month
181
- * @private
182
- */
183
- private navigateLeft;
184
- /**
185
- * Attempt to focus on date indexed immediately to the right of the input date
186
- * @param date the day of the month
187
- * @private
188
- */
189
- private navigateRight;
190
- /**
191
- * Attempt to navigate one week in the past from the input date
192
- * @param date the day of the month
193
- * @private
194
- */
195
- private navigateUp;
196
- /**
197
- * Attempt to navigate one week in the future from the input date
198
- * @param date the day of the month
199
- * @private
200
- */
201
- private navigateDown;
202
- clear(): void;
203
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
204
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "particle-calendar", never, { "value": { "alias": "value"; "required": false; }; "dateRange": { "alias": "dateRange"; "required": false; }; "text": { "alias": "text"; "required": false; }; "showControls": { "alias": "showControls"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "closed": "closed"; }, never, never, true, never>;
205
- }
206
- export {};
@@ -1,41 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { CheckboxText } from '../../models/particle-component-text.model';
3
- import * as i0 from "@angular/core";
4
- export declare class CheckboxComponent implements ControlValueAccessor {
5
- private changeDetectorRef;
6
- _value: boolean;
7
- private _disabled;
8
- onChange: (value: any) => void;
9
- onTouched: () => any;
10
- set disabled(disabled: boolean);
11
- get disabled(): boolean;
12
- set value(value: string | boolean);
13
- get value(): string | boolean;
14
- readonly size: import("@angular/core").InputSignal<number>;
15
- readonly inputId: import("@angular/core").InputSignal<string>;
16
- readonly text: import("@angular/core").InputSignal<CheckboxText>;
17
- type: string;
18
- /**
19
- * Write value
20
- * @param value the value to write
21
- */
22
- writeValue(value: string): void;
23
- /**
24
- * Register control value accessor change function
25
- * @param fn the function to register
26
- */
27
- registerOnChange(fn: (value: any) => void): void;
28
- /**
29
- * Register touch handler
30
- * @param fn the touch handler to register
31
- */
32
- registerOnTouched(fn: any): void;
33
- /**
34
- * Set the disabled state
35
- * @param isDisabled whether or not the component should be disabled
36
- */
37
- setDisabledState?(isDisabled: boolean): void;
38
- click(): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "particle-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
41
- }
@@ -1,143 +0,0 @@
1
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { ColorPickerText } from '../../models/particle-component-text.model';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Component that wraps the native HTML5 color picker for supported browsers
7
- */
8
- export declare class ColorPickerComponent implements ControlValueAccessor, OnInit {
9
- private renderer;
10
- private changeDetectorRef;
11
- /**
12
- * Regex to match a hexadecimal string (000000)
13
- * @private
14
- */
15
- private static readonly FULL_HEX_REGEX;
16
- /**
17
- * Regex to match a short hexadecimal string (000)
18
- * @private
19
- */
20
- private static readonly SHORT_HEX_REGEX;
21
- /**
22
- * Regex to match a valid hex character (A-F, a-f, 0-9)
23
- * @private
24
- */
25
- private static readonly HEX_CHARACTER_REGEX;
26
- /**
27
- * Navigation keys
28
- * @private
29
- */
30
- private static readonly NAVIGATION_KEYS;
31
- /**
32
- * Set the value of the color picker
33
- * @param value the value to set
34
- */
35
- set value(value: string);
36
- /**
37
- * Set disabled
38
- * @param disabled whether or not the control should be disabled
39
- */
40
- set disabled(disabled: boolean);
41
- /**
42
- * Class list to apply to the hex string input
43
- */
44
- classList: string;
45
- text: ColorPickerText;
46
- /**
47
- * Event emitted on hex string input event. Emits the current value of the input
48
- */
49
- input: EventEmitter<string>;
50
- /**
51
- * Event emitted on color selection from color picker (color picker widget dismissed)
52
- * or valid hex string typed in input. Emits the current value of the input
53
- */
54
- colorSelected: EventEmitter<string>;
55
- /**
56
- * ViewChild of the color input element
57
- */
58
- colorInput: ElementRef<HTMLInputElement>;
59
- /**
60
- * Whether to render the component
61
- */
62
- render: boolean;
63
- /**
64
- * Whether the native HTML5 color picker is supported
65
- */
66
- colorPickerSupported: boolean;
67
- /**
68
- * The value of the color picker
69
- */
70
- _value: string;
71
- /**
72
- * Whether the color picker is disabled
73
- * @private
74
- */
75
- _disabled: boolean;
76
- /**
77
- * Expand a short hex string (#abc) into its full form (#aabbcc)
78
- * @param hexString the short hex string to expand
79
- * @private
80
- */
81
- private static expandShortHexString;
82
- /**
83
- * Function to call on change
84
- */
85
- onChange: (value: any) => void;
86
- /**
87
- * Function to call on touch
88
- */
89
- onTouched: () => any;
90
- /**
91
- * Init component, check for color picker browser support
92
- */
93
- ngOnInit(): void;
94
- /**
95
- * Write value
96
- * @param value the value to write
97
- */
98
- writeValue(value: string): void;
99
- /**
100
- * Register on change function
101
- * @param fn the function to register
102
- */
103
- registerOnChange(fn: any): void;
104
- /**
105
- * Register on touched function
106
- * @param fn the function to register
107
- */
108
- registerOnTouched(fn: any): void;
109
- /**
110
- * Set whether the control should be disabled
111
- * @param isDisabled disabled or not
112
- */
113
- setDisabledState(isDisabled: boolean): void;
114
- /**
115
- * Prevent illegal input
116
- * @param event the keydown KeyboardEvent
117
- */
118
- handleKeyDown(event: KeyboardEvent): void;
119
- /**
120
- * Update model
121
- * @param value the new value of the model
122
- * @param emitColorSelected whether or not emit the color selected event
123
- * @private
124
- */
125
- updateModel(value: string, emitColorSelected?: boolean): void;
126
- /**
127
- * Null out value on blur if not valid hex string, otherwise update model
128
- * @param value the value to check
129
- */
130
- handleBlur(value: string): void;
131
- /**
132
- * Prevent pasting a non-hex string
133
- * @param event the paste ClipboardEvent
134
- */
135
- handlePaste(event: ClipboardEvent): void;
136
- /**
137
- * Determine if the browser supports the HTML5 color picker
138
- * @private
139
- */
140
- private isColorPickerSupported;
141
- static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
142
- static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "particle-color-picker", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "classList": { "alias": "classList"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "input": "input"; "colorSelected": "colorSelected"; }, never, never, true, never>;
143
- }