@entake/particle 17.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.
- package/LICENSE +7 -0
- package/README.md +396 -0
- package/app/modules/accordion/accordion.component.d.ts +26 -0
- package/app/modules/accordion/accordion.module.d.ts +11 -0
- package/app/modules/accordion/directives/accordion-content.directive.d.ts +8 -0
- package/app/modules/accordion/directives/accordion-header.directive.d.ts +8 -0
- package/app/modules/accordion/directives/accordion-item.directive.d.ts +13 -0
- package/app/modules/background-carousel/background-carousel.directive.d.ts +42 -0
- package/app/modules/background-carousel/carousel-options.model.d.ts +30 -0
- package/app/modules/background-carousel/particle-background-carousel.module.d.ts +8 -0
- package/app/modules/checkbox/checkbox.component.d.ts +43 -0
- package/app/modules/checkbox/checkbox.module.d.ts +9 -0
- package/app/modules/color-picker/color-picker.component.d.ts +149 -0
- package/app/modules/color-picker/color-picker.module.d.ts +9 -0
- package/app/modules/date-picker/components/calendar/calendar.component.d.ts +211 -0
- package/app/modules/date-picker/components/date-range-picker/date-range-picker.component.d.ts +95 -0
- package/app/modules/date-picker/date-picker.component.d.ts +259 -0
- package/app/modules/date-picker/date-picker.module.d.ts +15 -0
- package/app/modules/dialog/dialog.component.d.ts +87 -0
- package/app/modules/dialog/dialog.module.d.ts +9 -0
- package/app/modules/dropdown/dropdown.component.d.ts +288 -0
- package/app/modules/dropdown/dropdown.module.d.ts +9 -0
- package/app/modules/dropdown/models/dropdown-option-group.model.d.ts +16 -0
- package/app/modules/dropdown/models/dropdown-option.model.d.ts +25 -0
- package/app/modules/endpoint-state/components/endpoint-state.component.d.ts +46 -0
- package/app/modules/endpoint-state/endpoint-state.module.d.ts +8 -0
- package/app/modules/icons/components/icon-select.component.d.ts +229 -0
- package/app/modules/icons/models/fontawesome-icons-brands.model.d.ts +13 -0
- package/app/modules/icons/models/fontawesome-icons-regular.model.d.ts +13 -0
- package/app/modules/icons/models/fontawesome-icons-solid.model.d.ts +13 -0
- package/app/modules/icons/models/particle-icons-light.model.d.ts +197 -0
- package/app/modules/icons/models/particle-icons-regular.model.d.ts +205 -0
- package/app/modules/icons/models/particle-icons-solid.model.d.ts +365 -0
- package/app/modules/icons/particle-icons.module.d.ts +13 -0
- package/app/modules/icons/services/icons.service.d.ts +44 -0
- package/app/modules/idle-timeout/idle-timeout.component.d.ts +35 -0
- package/app/modules/idle-timeout/idle-timer.d.ts +14 -0
- package/app/modules/idle-timeout/particle-idle-timeout.module.d.ts +9 -0
- package/app/modules/input-mask/input-mask.component.d.ts +86 -0
- package/app/modules/input-mask/input-mask.module.d.ts +8 -0
- package/app/modules/keyfilter/keyfilter.directive.d.ts +60 -0
- package/app/modules/keyfilter/keyfilter.module.d.ts +8 -0
- package/app/modules/layout/components/layout-full-framing/layout-full-framing.component.d.ts +27 -0
- package/app/modules/layout/components/layout-fullwidth-sidebar/layout-fullwidth-sidebar.component.d.ts +23 -0
- package/app/modules/layout/layout.module.d.ts +10 -0
- package/app/modules/loader/components/loader.component.d.ts +11 -0
- package/app/modules/loader/loader.module.d.ts +8 -0
- package/app/modules/multi-select/models/multi-select-option-group.model.d.ts +16 -0
- package/app/modules/multi-select/models/multi-select-option.model.d.ts +25 -0
- package/app/modules/multi-select/multi-select.component.d.ts +279 -0
- package/app/modules/multi-select/multi-select.module.d.ts +8 -0
- package/app/modules/notification/models/notification.model.d.ts +21 -0
- package/app/modules/notification/notification.component.d.ts +46 -0
- package/app/modules/notification/notification.module.d.ts +8 -0
- package/app/modules/notification/services/notification.service.d.ts +54 -0
- package/app/modules/ordinal-number-pipe/ordinal-number-pipe.module.d.ts +8 -0
- package/app/modules/ordinal-number-pipe/ordinal-number.pipe.d.ts +15 -0
- package/app/modules/paginator/pagination-event.model.d.ts +24 -0
- package/app/modules/paginator/paginator.component.d.ts +103 -0
- package/app/modules/paginator/particle-paginator.module.d.ts +13 -0
- package/app/modules/popover/popover.component.d.ts +140 -0
- package/app/modules/popover/popover.module.d.ts +9 -0
- package/app/modules/profile-pic/particle-profile-pic.module.d.ts +9 -0
- package/app/modules/profile-pic/profile-pic.component.d.ts +32 -0
- package/app/modules/progress-bar/progress-bar.component.d.ts +16 -0
- package/app/modules/progress-bar/progress-bar.module.d.ts +8 -0
- package/app/modules/push-container/particle-push-container.module.d.ts +9 -0
- package/app/modules/push-container/push-container-state.model.d.ts +7 -0
- package/app/modules/push-container/push-container.component.d.ts +137 -0
- package/app/modules/rich-text/particle-rich-text.module.d.ts +15 -0
- package/app/modules/rich-text/render-rich-text.component.d.ts +6 -0
- package/app/modules/rich-text/rich-text-capabilities.model.d.ts +7 -0
- package/app/modules/rich-text/rich-text.component.d.ts +48 -0
- package/app/modules/scroll-to-top/particle-scroll-to-top.module.d.ts +8 -0
- package/app/modules/scroll-to-top/scroll-to-top.component.d.ts +19 -0
- package/app/modules/slideover/particle-slideover.module.d.ts +8 -0
- package/app/modules/slideover/slideover.component.d.ts +35 -0
- package/app/modules/slider/slider.component.d.ts +143 -0
- package/app/modules/slider/slider.module.d.ts +9 -0
- package/app/modules/theming/components/theming.component.d.ts +43 -0
- package/app/modules/theming/models/theme.model.d.ts +88 -0
- package/app/modules/theming/services/theme-change-detection.service.d.ts +26 -0
- package/app/modules/theming/services/theming.service.d.ts +142 -0
- package/app/modules/theming/theming.module.d.ts +12 -0
- package/app/modules/toggle-switch/models/toggle-options.model.d.ts +11 -0
- package/app/modules/toggle-switch/toggle-switch.component.d.ts +43 -0
- package/app/modules/toggle-switch/toggle-switch.module.d.ts +8 -0
- package/app/modules/tooltip/tooltip.directive.d.ts +157 -0
- package/app/modules/tooltip/tooltip.module.d.ts +8 -0
- package/app/modules/week-picker/week-picker.component.d.ts +289 -0
- package/app/modules/week-picker/week-picker.module.d.ts +13 -0
- package/app/shared/enums/endpoint-status.enum.d.ts +9 -0
- package/app/shared/interceptors/json.interceptor.d.ts +17 -0
- package/app/shared/models/auditable.model.d.ts +21 -0
- package/app/shared/models/data-list.model.d.ts +9 -0
- package/app/shared/models/id.model.d.ts +9 -0
- package/app/shared/models/observable-container.d.ts +8 -0
- package/app/shared/models/particle-component-text.model.d.ts +211 -0
- package/app/shared/services/base-data.service.d.ts +130 -0
- package/app/shared/services/dialog.service.d.ts +10 -0
- package/app/shared/services/local-storage.service.d.ts +41 -0
- package/esm2022/app/modules/accordion/accordion.component.mjs +101 -0
- package/esm2022/app/modules/accordion/accordion.module.mjs +37 -0
- package/esm2022/app/modules/accordion/directives/accordion-content.directive.mjs +17 -0
- package/esm2022/app/modules/accordion/directives/accordion-header.directive.mjs +17 -0
- package/esm2022/app/modules/accordion/directives/accordion-item.directive.mjs +36 -0
- package/esm2022/app/modules/background-carousel/background-carousel.directive.mjs +91 -0
- package/esm2022/app/modules/background-carousel/carousel-options.model.mjs +36 -0
- package/esm2022/app/modules/background-carousel/particle-background-carousel.module.mjs +24 -0
- package/esm2022/app/modules/checkbox/checkbox.component.mjs +108 -0
- package/esm2022/app/modules/checkbox/checkbox.module.mjs +28 -0
- package/esm2022/app/modules/color-picker/color-picker.component.mjs +306 -0
- package/esm2022/app/modules/color-picker/color-picker.module.mjs +19 -0
- package/esm2022/app/modules/date-picker/components/calendar/calendar.component.mjs +496 -0
- package/esm2022/app/modules/date-picker/components/date-range-picker/date-range-picker.component.mjs +250 -0
- package/esm2022/app/modules/date-picker/date-picker.component.mjs +538 -0
- package/esm2022/app/modules/date-picker/date-picker.module.mjs +56 -0
- package/esm2022/app/modules/dialog/dialog.component.mjs +177 -0
- package/esm2022/app/modules/dialog/dialog.module.mjs +28 -0
- package/esm2022/app/modules/dropdown/dropdown.component.mjs +682 -0
- package/esm2022/app/modules/dropdown/dropdown.module.mjs +28 -0
- package/esm2022/app/modules/dropdown/models/dropdown-option-group.model.mjs +2 -0
- package/esm2022/app/modules/dropdown/models/dropdown-option.model.mjs +2 -0
- package/esm2022/app/modules/endpoint-state/components/endpoint-state.component.mjs +75 -0
- package/esm2022/app/modules/endpoint-state/endpoint-state.module.mjs +22 -0
- package/esm2022/app/modules/icons/components/icon-select.component.mjs +377 -0
- package/esm2022/app/modules/icons/models/fontawesome-icons-brands.model.mjs +471 -0
- package/esm2022/app/modules/icons/models/fontawesome-icons-regular.model.mjs +166 -0
- package/esm2022/app/modules/icons/models/fontawesome-icons-solid.model.mjs +1016 -0
- package/esm2022/app/modules/icons/models/particle-icons-light.model.mjs +310 -0
- package/esm2022/app/modules/icons/models/particle-icons-regular.model.mjs +324 -0
- package/esm2022/app/modules/icons/models/particle-icons-solid.model.mjs +581 -0
- package/esm2022/app/modules/icons/particle-icons.module.mjs +66 -0
- package/esm2022/app/modules/icons/services/icons.service.mjs +86 -0
- package/esm2022/app/modules/idle-timeout/idle-timeout.component.mjs +85 -0
- package/esm2022/app/modules/idle-timeout/idle-timer.mjs +66 -0
- package/esm2022/app/modules/idle-timeout/particle-idle-timeout.module.mjs +28 -0
- package/esm2022/app/modules/input-mask/input-mask.component.mjs +594 -0
- package/esm2022/app/modules/input-mask/input-mask.module.mjs +18 -0
- package/esm2022/app/modules/keyfilter/keyfilter.directive.mjs +158 -0
- package/esm2022/app/modules/keyfilter/keyfilter.module.mjs +18 -0
- package/esm2022/app/modules/layout/components/layout-full-framing/layout-full-framing.component.mjs +79 -0
- package/esm2022/app/modules/layout/components/layout-fullwidth-sidebar/layout-fullwidth-sidebar.component.mjs +65 -0
- package/esm2022/app/modules/layout/layout.module.mjs +33 -0
- package/esm2022/app/modules/loader/components/loader.component.mjs +30 -0
- package/esm2022/app/modules/loader/loader.module.mjs +24 -0
- package/esm2022/app/modules/multi-select/models/multi-select-option-group.model.mjs +2 -0
- package/esm2022/app/modules/multi-select/models/multi-select-option.model.mjs +2 -0
- package/esm2022/app/modules/multi-select/multi-select.component.mjs +665 -0
- package/esm2022/app/modules/multi-select/multi-select.module.mjs +18 -0
- package/esm2022/app/modules/notification/models/notification.model.mjs +2 -0
- package/esm2022/app/modules/notification/notification.component.mjs +122 -0
- package/esm2022/app/modules/notification/notification.module.mjs +18 -0
- package/esm2022/app/modules/notification/services/notification.service.mjs +84 -0
- package/esm2022/app/modules/ordinal-number-pipe/ordinal-number-pipe.module.mjs +20 -0
- package/esm2022/app/modules/ordinal-number-pipe/ordinal-number.pipe.mjs +49 -0
- package/esm2022/app/modules/paginator/pagination-event.model.mjs +29 -0
- package/esm2022/app/modules/paginator/paginator.component.mjs +207 -0
- package/esm2022/app/modules/paginator/particle-paginator.module.mjs +48 -0
- package/esm2022/app/modules/popover/popover.component.mjs +352 -0
- package/esm2022/app/modules/popover/popover.module.mjs +24 -0
- package/esm2022/app/modules/profile-pic/particle-profile-pic.module.mjs +28 -0
- package/esm2022/app/modules/profile-pic/profile-pic.component.mjs +74 -0
- package/esm2022/app/modules/progress-bar/progress-bar.component.mjs +43 -0
- package/esm2022/app/modules/progress-bar/progress-bar.module.mjs +24 -0
- package/esm2022/app/modules/push-container/particle-push-container.module.mjs +26 -0
- package/esm2022/app/modules/push-container/push-container-state.model.mjs +2 -0
- package/esm2022/app/modules/push-container/push-container.component.mjs +363 -0
- package/esm2022/app/modules/rich-text/particle-rich-text.module.mjs +64 -0
- package/esm2022/app/modules/rich-text/render-rich-text.component.mjs +18 -0
- package/esm2022/app/modules/rich-text/rich-text-capabilities.model.mjs +2 -0
- package/esm2022/app/modules/rich-text/rich-text.component.mjs +187 -0
- package/esm2022/app/modules/scroll-to-top/particle-scroll-to-top.module.mjs +24 -0
- package/esm2022/app/modules/scroll-to-top/scroll-to-top.component.mjs +49 -0
- package/esm2022/app/modules/slideover/particle-slideover.module.mjs +24 -0
- package/esm2022/app/modules/slideover/slideover.component.mjs +115 -0
- package/esm2022/app/modules/slider/slider.component.mjs +243 -0
- package/esm2022/app/modules/slider/slider.module.mjs +26 -0
- package/esm2022/app/modules/theming/components/theming.component.mjs +86 -0
- package/esm2022/app/modules/theming/models/theme.model.mjs +9 -0
- package/esm2022/app/modules/theming/services/theme-change-detection.service.mjs +38 -0
- package/esm2022/app/modules/theming/services/theming.service.mjs +507 -0
- package/esm2022/app/modules/theming/theming.module.mjs +55 -0
- package/esm2022/app/modules/toggle-switch/models/toggle-options.model.mjs +2 -0
- package/esm2022/app/modules/toggle-switch/toggle-switch.component.mjs +107 -0
- package/esm2022/app/modules/toggle-switch/toggle-switch.module.mjs +24 -0
- package/esm2022/app/modules/tooltip/tooltip.directive.mjs +381 -0
- package/esm2022/app/modules/tooltip/tooltip.module.mjs +18 -0
- package/esm2022/app/modules/week-picker/week-picker.component.mjs +511 -0
- package/esm2022/app/modules/week-picker/week-picker.module.mjs +40 -0
- package/esm2022/app/shared/enums/endpoint-status.enum.mjs +11 -0
- package/esm2022/app/shared/interceptors/json.interceptor.mjs +23 -0
- package/esm2022/app/shared/models/auditable.model.mjs +2 -0
- package/esm2022/app/shared/models/data-list.model.mjs +2 -0
- package/esm2022/app/shared/models/id.model.mjs +2 -0
- package/esm2022/app/shared/models/observable-container.mjs +15 -0
- package/esm2022/app/shared/models/particle-component-text.model.mjs +2 -0
- package/esm2022/app/shared/services/base-data.service.mjs +190 -0
- package/esm2022/app/shared/services/dialog.service.mjs +50 -0
- package/esm2022/app/shared/services/local-storage.service.mjs +60 -0
- package/esm2022/entake-particle.mjs +5 -0
- package/esm2022/public_api.mjs +98 -0
- package/fesm2022/entake-particle.mjs +12477 -0
- package/fesm2022/entake-particle.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +65 -0
- package/particle.css +1 -0
- package/public_api.d.ts +97 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface representing a dropdown option
|
|
3
|
+
*/
|
|
4
|
+
export interface DropdownOption {
|
|
5
|
+
type?: 'option';
|
|
6
|
+
/**
|
|
7
|
+
* The value of the dropdown option
|
|
8
|
+
*/
|
|
9
|
+
value: string | number;
|
|
10
|
+
/**
|
|
11
|
+
* The label of the dropdown option
|
|
12
|
+
*/
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the option is disabled
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Data context object containing properties to fill
|
|
20
|
+
* dropdown option template placeholders
|
|
21
|
+
*/
|
|
22
|
+
dataContext?: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EndpointStateText } from '../../../shared/models/particle-component-text.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display different endpoint states
|
|
5
|
+
*/
|
|
6
|
+
export declare class EndpointStateComponent {
|
|
7
|
+
/**
|
|
8
|
+
* Flag to determine if in loading state
|
|
9
|
+
*/
|
|
10
|
+
loading: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Icon for loading state
|
|
13
|
+
*/
|
|
14
|
+
loadingIcon: 'double_helix' | string;
|
|
15
|
+
/**
|
|
16
|
+
* Flag to determine if in empty state
|
|
17
|
+
*/
|
|
18
|
+
empty: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Icon for empty state
|
|
21
|
+
*/
|
|
22
|
+
emptyIcon: string;
|
|
23
|
+
/**
|
|
24
|
+
* Flag to determine if in error state
|
|
25
|
+
*/
|
|
26
|
+
error: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Icon for error state
|
|
29
|
+
*/
|
|
30
|
+
errorIcon: string;
|
|
31
|
+
/**
|
|
32
|
+
* Flag to determine if overlay spinner
|
|
33
|
+
*/
|
|
34
|
+
loadingOverlay: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The icon on the overlay spinner
|
|
37
|
+
*/
|
|
38
|
+
loadingOverlayIcon: string;
|
|
39
|
+
text: EndpointStateText;
|
|
40
|
+
/**
|
|
41
|
+
* Component constructor
|
|
42
|
+
*/
|
|
43
|
+
constructor();
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EndpointStateComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EndpointStateComponent, "particle-endpoint-state", never, { "loading": { "alias": "loading"; "required": false; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; }; "empty": { "alias": "empty"; "required": false; }; "emptyIcon": { "alias": "emptyIcon"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorIcon": { "alias": "errorIcon"; "required": false; }; "loadingOverlay": { "alias": "loadingOverlay"; "required": false; }; "loadingOverlayIcon": { "alias": "loadingOverlayIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/endpoint-state.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class ParticleEndpointStateModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParticleEndpointStateModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ParticleEndpointStateModule, [typeof i1.EndpointStateComponent], [typeof i2.CommonModule], [typeof i1.EndpointStateComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ParticleEndpointStateModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
4
|
+
import { IconsService } from '../services/icons.service';
|
|
5
|
+
import { IconSelectText } from '../../../shared/models/particle-component-text.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Particle Icon Select component provides a button and an icon picker that includes all of the Particle Icons as well as the FAS icons.
|
|
9
|
+
*/
|
|
10
|
+
export declare class IconSelectComponent implements ControlValueAccessor, OnDestroy {
|
|
11
|
+
private service;
|
|
12
|
+
private changeDetectorRef;
|
|
13
|
+
/**
|
|
14
|
+
* The number of items to display per page
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
private static readonly PAGE_SIZE;
|
|
18
|
+
/**
|
|
19
|
+
* Set the value of the icon select
|
|
20
|
+
* @param value the value to set
|
|
21
|
+
*/
|
|
22
|
+
set value(value: string);
|
|
23
|
+
/**
|
|
24
|
+
* Set disabled
|
|
25
|
+
* @param disabled whether or not the icon picker should be disabled
|
|
26
|
+
*/
|
|
27
|
+
set disabled(disabled: boolean);
|
|
28
|
+
/**
|
|
29
|
+
* Color class of the button
|
|
30
|
+
*/
|
|
31
|
+
buttonColorClass: string;
|
|
32
|
+
/**
|
|
33
|
+
* The value to set to the button's width, min-width, height and min-height
|
|
34
|
+
*/
|
|
35
|
+
buttonSizing: string;
|
|
36
|
+
text: IconSelectText;
|
|
37
|
+
/**
|
|
38
|
+
* Icon select opened event emitter
|
|
39
|
+
*/
|
|
40
|
+
opened: EventEmitter<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Icon selected event emitter
|
|
43
|
+
*/
|
|
44
|
+
selected: EventEmitter<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Dialog closed event emitter
|
|
47
|
+
*/
|
|
48
|
+
closed: EventEmitter<any>;
|
|
49
|
+
/**
|
|
50
|
+
* The scrollable icon container
|
|
51
|
+
*/
|
|
52
|
+
iconScrollContainer: ElementRef<HTMLDivElement>;
|
|
53
|
+
/**
|
|
54
|
+
* BehaviorSubject tracking the input value destructed into its prefix and class name
|
|
55
|
+
*/
|
|
56
|
+
readonly _internalValue: BehaviorSubject<{
|
|
57
|
+
prefix: string;
|
|
58
|
+
name: string;
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* BehaviorSubject tracking the current filter value selection for icons
|
|
62
|
+
*/
|
|
63
|
+
readonly _filter: BehaviorSubject<{
|
|
64
|
+
style: 'all' | 'solid' | 'regular' | 'light' | 'brands';
|
|
65
|
+
type: 'all' | 'particle' | 'fontawesome';
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* BehaviorSubject tracking the current icon search text value
|
|
69
|
+
*/
|
|
70
|
+
readonly _searchText: BehaviorSubject<string>;
|
|
71
|
+
/**
|
|
72
|
+
* BehaviorSubject that emits when search button has been clicked
|
|
73
|
+
*/
|
|
74
|
+
readonly _searchClick: BehaviorSubject<string>;
|
|
75
|
+
/**
|
|
76
|
+
* BehaviorSubject tracking the active pagination page
|
|
77
|
+
*/
|
|
78
|
+
readonly _activePage: BehaviorSubject<number>;
|
|
79
|
+
/**
|
|
80
|
+
* Subject that emits on search input enter keyup
|
|
81
|
+
*/
|
|
82
|
+
readonly _searchInputEnterKeyup: Subject<void>;
|
|
83
|
+
/**
|
|
84
|
+
* An array of all icons (as strings) that meet the current filter/search criteria as an Observable
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
private readonly icons$;
|
|
88
|
+
/**
|
|
89
|
+
* The count of total paginator pages as an Observable
|
|
90
|
+
*/
|
|
91
|
+
readonly totalPages$: Observable<number>;
|
|
92
|
+
/**
|
|
93
|
+
* Observable boolean indicating whether or not the user can perform an icon text search
|
|
94
|
+
*/
|
|
95
|
+
readonly canSearch$: Observable<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Observable boolean indicating whether or not the user can paginate to the previous page
|
|
98
|
+
*/
|
|
99
|
+
readonly canPaginatePrevious$: Observable<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Observable boolean indicating whether or not the user can paginate to the next page
|
|
102
|
+
*/
|
|
103
|
+
readonly canPaginateNext$: Observable<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* Paginated icons array as an Observable
|
|
106
|
+
*/
|
|
107
|
+
readonly paginatedIcons$: Observable<Array<{
|
|
108
|
+
prefix: string;
|
|
109
|
+
name: string;
|
|
110
|
+
}>>;
|
|
111
|
+
/**
|
|
112
|
+
* Object that controls whether to show the dialog or not
|
|
113
|
+
*/
|
|
114
|
+
showDialog: any;
|
|
115
|
+
/**
|
|
116
|
+
* Whether or not to show the icon selection preview
|
|
117
|
+
*/
|
|
118
|
+
showIconSelectionPreview: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Subscription object to store search input enter keyup subscription
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
123
|
+
private readonly subscription;
|
|
124
|
+
/**
|
|
125
|
+
* The value of the icon select
|
|
126
|
+
* @private
|
|
127
|
+
*/
|
|
128
|
+
private _value;
|
|
129
|
+
/**
|
|
130
|
+
* Whether or not the icon picker is disabled
|
|
131
|
+
* @private
|
|
132
|
+
*/
|
|
133
|
+
private _disabled;
|
|
134
|
+
/**
|
|
135
|
+
* Function to call on change
|
|
136
|
+
*/
|
|
137
|
+
onChange: (value: any) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Function to call on touch
|
|
140
|
+
*/
|
|
141
|
+
onTouched: () => any;
|
|
142
|
+
/**
|
|
143
|
+
* Dependency injection site
|
|
144
|
+
* @param service the IconsService
|
|
145
|
+
* @param changeDetectorRef the Angular ChangeDetectorRef
|
|
146
|
+
*/
|
|
147
|
+
constructor(service: IconsService, changeDetectorRef: ChangeDetectorRef);
|
|
148
|
+
/**
|
|
149
|
+
* Get disabled
|
|
150
|
+
*/
|
|
151
|
+
get disabled(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Destroy component, unsubscribe from search input enter keyup subscription
|
|
154
|
+
*/
|
|
155
|
+
ngOnDestroy(): void;
|
|
156
|
+
/**
|
|
157
|
+
* Write the input value
|
|
158
|
+
* @param value the value to write
|
|
159
|
+
*/
|
|
160
|
+
writeValue(value: string): void;
|
|
161
|
+
/**
|
|
162
|
+
* Register onChange function
|
|
163
|
+
* @param fn the function to register
|
|
164
|
+
*/
|
|
165
|
+
registerOnChange(fn: any): void;
|
|
166
|
+
/**
|
|
167
|
+
* Register onTouched function
|
|
168
|
+
* @param fn the function to register
|
|
169
|
+
*/
|
|
170
|
+
registerOnTouched(fn: any): void;
|
|
171
|
+
/**
|
|
172
|
+
* Set disabled state
|
|
173
|
+
* @param isDisabled whether or not the icon picker should be disabled
|
|
174
|
+
*/
|
|
175
|
+
setDisabledState(isDisabled: boolean): void;
|
|
176
|
+
/**
|
|
177
|
+
* Open the icon select dialog
|
|
178
|
+
*/
|
|
179
|
+
openDialog(): void;
|
|
180
|
+
/**
|
|
181
|
+
* Close the icon select dialog
|
|
182
|
+
*/
|
|
183
|
+
closeDialog(): void;
|
|
184
|
+
/**
|
|
185
|
+
* Handle filter select
|
|
186
|
+
* @param filter the selected filter
|
|
187
|
+
*/
|
|
188
|
+
handleFilterSelect(filter: {
|
|
189
|
+
style: 'all' | 'solid' | 'regular' | 'light' | 'brands';
|
|
190
|
+
type: 'all' | 'particle' | 'fontawesome';
|
|
191
|
+
}): void;
|
|
192
|
+
/**
|
|
193
|
+
* Update internal value on icon select
|
|
194
|
+
* @param icon the selected icon
|
|
195
|
+
*/
|
|
196
|
+
handleIconSelect(icon: {
|
|
197
|
+
prefix: string;
|
|
198
|
+
name: string;
|
|
199
|
+
}): void;
|
|
200
|
+
/**
|
|
201
|
+
* Write value on confirm
|
|
202
|
+
*/
|
|
203
|
+
handleIconSelectConfirm(): void;
|
|
204
|
+
/**
|
|
205
|
+
* Go to the next pagination page
|
|
206
|
+
*/
|
|
207
|
+
paginateNext(): void;
|
|
208
|
+
/**
|
|
209
|
+
* Go to the previous pagination page
|
|
210
|
+
*/
|
|
211
|
+
paginatePrevious(): void;
|
|
212
|
+
/**
|
|
213
|
+
* Clear search text and reset paginator
|
|
214
|
+
*/
|
|
215
|
+
clearSearch(): void;
|
|
216
|
+
/**
|
|
217
|
+
* Update model
|
|
218
|
+
* @param value the new value of the model
|
|
219
|
+
* @private
|
|
220
|
+
*/
|
|
221
|
+
private updateModel;
|
|
222
|
+
/**
|
|
223
|
+
* Reset filtering/pagination BehaviorSubject values
|
|
224
|
+
* @private
|
|
225
|
+
*/
|
|
226
|
+
private reset;
|
|
227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconSelectComponent, never>;
|
|
228
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconSelectComponent, "particle-icon-select", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "buttonColorClass": { "alias": "buttonColorClass"; "required": false; }; "buttonSizing": { "alias": "buttonSizing"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "opened": "opened"; "selected": "selected"; "closed": "closed"; }, never, never, false, never>;
|
|
229
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Particle Icons - Light
|
|
3
|
+
*/
|
|
4
|
+
export declare class ParticleIconsLight {
|
|
5
|
+
/**
|
|
6
|
+
* wil fa-address
|
|
7
|
+
*/
|
|
8
|
+
static wilAddress: {
|
|
9
|
+
prefix: string;
|
|
10
|
+
iconName: string;
|
|
11
|
+
icon: (string | number | any[])[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* wil fa-alpha-text
|
|
15
|
+
*/
|
|
16
|
+
static wilAlphaText: {
|
|
17
|
+
prefix: string;
|
|
18
|
+
iconName: string;
|
|
19
|
+
icon: (string | number | any[])[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* wil fa-checkbox
|
|
23
|
+
*/
|
|
24
|
+
static wilCheckbox: {
|
|
25
|
+
prefix: string;
|
|
26
|
+
iconName: string;
|
|
27
|
+
icon: (string | number | any[])[];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* wil fa-date
|
|
31
|
+
*/
|
|
32
|
+
static wilDate: {
|
|
33
|
+
prefix: string;
|
|
34
|
+
iconName: string;
|
|
35
|
+
icon: (string | number | any[])[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* wil fa-date-range
|
|
39
|
+
*/
|
|
40
|
+
static wilDateRange: {
|
|
41
|
+
prefix: string;
|
|
42
|
+
iconName: string;
|
|
43
|
+
icon: (string | number | any[])[];
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* wil fa-document-upload
|
|
47
|
+
*/
|
|
48
|
+
static wilDocumentUpload: {
|
|
49
|
+
prefix: string;
|
|
50
|
+
iconName: string;
|
|
51
|
+
icon: (string | number | any[])[];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* wil fa-dropdown
|
|
55
|
+
*/
|
|
56
|
+
static wilDropdown: {
|
|
57
|
+
prefix: string;
|
|
58
|
+
iconName: string;
|
|
59
|
+
icon: (string | number | any[])[];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* wil fa-email
|
|
63
|
+
*/
|
|
64
|
+
static wilEmail: {
|
|
65
|
+
prefix: string;
|
|
66
|
+
iconName: string;
|
|
67
|
+
icon: (string | number | any[])[];
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* wil fa-fein
|
|
71
|
+
*/
|
|
72
|
+
static wilFEIN: {
|
|
73
|
+
prefix: string;
|
|
74
|
+
iconName: string;
|
|
75
|
+
icon: (string | number | any[])[];
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* wil fa-html
|
|
79
|
+
*/
|
|
80
|
+
static wilHTML: {
|
|
81
|
+
prefix: string;
|
|
82
|
+
iconName: string;
|
|
83
|
+
icon: (string | number | any[])[];
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* wil fa-license
|
|
87
|
+
*/
|
|
88
|
+
static wilLicense: {
|
|
89
|
+
prefix: string;
|
|
90
|
+
iconName: string;
|
|
91
|
+
icon: (string | number | any[])[];
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* wil fa-mmis-npi
|
|
95
|
+
*/
|
|
96
|
+
static wilMMISNPI: {
|
|
97
|
+
prefix: string;
|
|
98
|
+
iconName: string;
|
|
99
|
+
icon: (string | number | any[])[];
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* wil fa-money
|
|
103
|
+
*/
|
|
104
|
+
static wilMoney: {
|
|
105
|
+
prefix: string;
|
|
106
|
+
iconName: string;
|
|
107
|
+
icon: (string | number | any[])[];
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* wil fa-multi-select
|
|
111
|
+
*/
|
|
112
|
+
static wilMultiSelect: {
|
|
113
|
+
prefix: string;
|
|
114
|
+
iconName: string;
|
|
115
|
+
icon: (string | number | any[])[];
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* wil fa-npi
|
|
119
|
+
*/
|
|
120
|
+
static wilNPI: {
|
|
121
|
+
prefix: string;
|
|
122
|
+
iconName: string;
|
|
123
|
+
icon: (string | number | any[])[];
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* wil fa-numeric-text
|
|
127
|
+
*/
|
|
128
|
+
static wilNumericText: {
|
|
129
|
+
prefix: string;
|
|
130
|
+
iconName: string;
|
|
131
|
+
icon: (string | number | any[])[];
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* wil fa-person-name
|
|
135
|
+
*/
|
|
136
|
+
static wilPersonName: {
|
|
137
|
+
prefix: string;
|
|
138
|
+
iconName: string;
|
|
139
|
+
icon: (string | number | any[])[];
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* wil fa-phone
|
|
143
|
+
*/
|
|
144
|
+
static wilPhone: {
|
|
145
|
+
prefix: string;
|
|
146
|
+
iconName: string;
|
|
147
|
+
icon: (string | number | any[])[];
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* wil fa-pid
|
|
151
|
+
*/
|
|
152
|
+
static wilPID: {
|
|
153
|
+
prefix: string;
|
|
154
|
+
iconName: string;
|
|
155
|
+
icon: (string | number | any[])[];
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* wil fa-radio-buttons
|
|
159
|
+
*/
|
|
160
|
+
static wilRadioButtons: {
|
|
161
|
+
prefix: string;
|
|
162
|
+
iconName: string;
|
|
163
|
+
icon: (string | number | any[])[];
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* wil fa-ssn
|
|
167
|
+
*/
|
|
168
|
+
static wilSSN: {
|
|
169
|
+
prefix: string;
|
|
170
|
+
iconName: string;
|
|
171
|
+
icon: (string | number | any[])[];
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* wil fa-text-area
|
|
175
|
+
*/
|
|
176
|
+
static wilTextArea: {
|
|
177
|
+
prefix: string;
|
|
178
|
+
iconName: string;
|
|
179
|
+
icon: (string | number | any[])[];
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* wil fa-text-box
|
|
183
|
+
*/
|
|
184
|
+
static wilTextBox: {
|
|
185
|
+
prefix: string;
|
|
186
|
+
iconName: string;
|
|
187
|
+
icon: (string | number | any[])[];
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Full list of light icons
|
|
191
|
+
*/
|
|
192
|
+
static icons: {
|
|
193
|
+
prefix: string;
|
|
194
|
+
iconName: string;
|
|
195
|
+
icon: (string | number | any[])[];
|
|
196
|
+
}[];
|
|
197
|
+
}
|