@natec/mef-dev-ui-kit 20.1.245 → 20.1.248
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, ViewEncapsulation, Component, EventEmitter, Output, HostBinding, ContentChild, Host, NgModule, Injectable, ChangeDetectionStrategy, ViewChild,
|
|
2
|
+
import { Input, ViewEncapsulation, Component, EventEmitter, Output, HostBinding, ContentChild, Host, NgModule, Injectable, ChangeDetectionStrategy, ViewChild, InjectionToken, inject, TemplateRef, Directive, ViewContainerRef, DOCUMENT, NgZone, ElementRef, Renderer2, booleanAttribute, ChangeDetectorRef, HostAttributeToken, numberAttribute, QueryList, ContentChildren, Injector, Optional, SkipSelf, signal, ViewChildren, ApplicationRef, afterNextRender, input, computed, forwardRef, HostListener, EnvironmentInjector, HOST_TAG_NAME, contentChildren, viewChildren } from '@angular/core';
|
|
3
3
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
6
6
|
import { Subject, Subscription, EMPTY, merge, defer, timer, Observable, of, filter as filter$1, map as map$1, startWith as startWith$1, switchMap as switchMap$1, takeUntil as takeUntil$1, take as take$1, BehaviorSubject } from 'rxjs';
|
|
7
|
-
import { FormsModule,
|
|
7
|
+
import { FormsModule, NgControl, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, NgForm, FormGroupDirective } from '@angular/forms';
|
|
8
8
|
import { CdkAccordionItem, CdkAccordion } from '@angular/cdk/accordion';
|
|
9
9
|
import { _IdGenerator, FocusMonitor, FocusKeyManager, isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader, ActiveDescendantKeyManager, CdkMonitorFocus, removeAriaReferencedId, addAriaReferencedId } from '@angular/cdk/a11y';
|
|
10
10
|
import { startWith, filter, take, switchMap, map, takeUntil, debounceTime, skip, skipWhile, tap, delay } from 'rxjs/operators';
|
|
@@ -1747,393 +1747,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
1747
1747
|
}]
|
|
1748
1748
|
}] });
|
|
1749
1749
|
|
|
1750
|
-
/**
|
|
1751
|
-
* Component representing a progress bar.
|
|
1752
|
-
*
|
|
1753
|
-
* Example of usage:
|
|
1754
|
-
*
|
|
1755
|
-
* ```
|
|
1756
|
-
* <mefdev-progress type="linear" color="blue" [thick]="true"></mefdev-progress>
|
|
1757
|
-
* <mefdev-progress type="circle" color="red" [indeterminate]="true"></mefdev-progress>
|
|
1758
|
-
* ```
|
|
1759
|
-
*/
|
|
1760
|
-
class MefDevProgressComponent {
|
|
1761
|
-
_value;
|
|
1762
|
-
_value2;
|
|
1763
|
-
/**
|
|
1764
|
-
* The type of progress bar.
|
|
1765
|
-
* Possible values: "linear" | "circle".
|
|
1766
|
-
* Default value: "linear".
|
|
1767
|
-
*/
|
|
1768
|
-
type;
|
|
1769
|
-
/**
|
|
1770
|
-
* The color of the progress bar.
|
|
1771
|
-
* Possible values: any valid CSS color value.
|
|
1772
|
-
* Default value: none.
|
|
1773
|
-
*/
|
|
1774
|
-
color;
|
|
1775
|
-
/**
|
|
1776
|
-
* Determines whether the progress bar is thick.
|
|
1777
|
-
* Default value: false.
|
|
1778
|
-
*/
|
|
1779
|
-
thick;
|
|
1780
|
-
/**
|
|
1781
|
-
* Determines whether the progress bar is indeterminate.
|
|
1782
|
-
* Default value: false.
|
|
1783
|
-
*/
|
|
1784
|
-
indeterminate;
|
|
1785
|
-
/**
|
|
1786
|
-
* The value of the progress bar.
|
|
1787
|
-
* For the "circle" type, it should be a number between 0 and 100.
|
|
1788
|
-
*/
|
|
1789
|
-
set value(value) {
|
|
1790
|
-
if (this.type == "circle") {
|
|
1791
|
-
this._value = (value / 100) * 360;
|
|
1792
|
-
if (this.value >= 50) {
|
|
1793
|
-
this._value2 = true;
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
else
|
|
1797
|
-
this._value = value;
|
|
1798
|
-
}
|
|
1799
|
-
get value() {
|
|
1800
|
-
return this._value;
|
|
1801
|
-
}
|
|
1802
|
-
/**
|
|
1803
|
-
* Additional value property.
|
|
1804
|
-
*/
|
|
1805
|
-
get value2() {
|
|
1806
|
-
return this._value2;
|
|
1807
|
-
}
|
|
1808
|
-
constructor() { }
|
|
1809
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1810
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: MefDevProgressComponent, isStandalone: false, selector: "mefdev-progress", inputs: { type: "type", color: "color", thick: "thick", indeterminate: "indeterminate", value: "value" }, ngImport: i0, template: "<div *ngIf=\"type === 'bar'; else circleBlock\">\r\n <div *ngIf=\"indeterminate; else determineBarBlock\">\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar-{{ color }}\" [class.progress-bar-indeterminate]=\"indeterminate\"></div>\r\n </div>\r\n </div>\r\n <ng-template #determineBarBlock>\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar progress-bar-{{ color }}\" [ngStyle]=\"{ width: value + '%' }\"></div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n<ng-template #circleBlock>\r\n <div class=\"progress-circle-{{ color }}\" [class.progress-circle-indeterminate]=\"indeterminate\"\r\n [class.progress-circle]=\"!indeterminate\" [class.progress-circle-thick]=\"thick\">\r\n <div *ngIf=\"indeterminate; else determineBlock\"></div>\r\n <ng-template #determineBlock>\r\n <div class=\"pie\" [ngStyle]=\"_value2 && { clip: 'rect(auto, auto, auto, auto)' }\">\r\n <div class=\"left-side half-circle\" [ngStyle]=\"_value2 && { transform: 'rotate(' + value + 'deg)' }\"></div>\r\n <div class=\"right-side half-circle\" [ngStyle]=\"{\r\n transform:\r\n _value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'\r\n }\"></div>\r\n </div>\r\n <div class=\"shadow\"></div>\r\n </ng-template>\r\n </div>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1811
|
-
}
|
|
1812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevProgressComponent, decorators: [{
|
|
1813
|
-
type: Component,
|
|
1814
|
-
args: [{ selector: "mefdev-progress", standalone: false, template: "<div *ngIf=\"type === 'bar'; else circleBlock\">\r\n <div *ngIf=\"indeterminate; else determineBarBlock\">\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar-{{ color }}\" [class.progress-bar-indeterminate]=\"indeterminate\"></div>\r\n </div>\r\n </div>\r\n <ng-template #determineBarBlock>\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar progress-bar-{{ color }}\" [ngStyle]=\"{ width: value + '%' }\"></div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n<ng-template #circleBlock>\r\n <div class=\"progress-circle-{{ color }}\" [class.progress-circle-indeterminate]=\"indeterminate\"\r\n [class.progress-circle]=\"!indeterminate\" [class.progress-circle-thick]=\"thick\">\r\n <div *ngIf=\"indeterminate; else determineBlock\"></div>\r\n <ng-template #determineBlock>\r\n <div class=\"pie\" [ngStyle]=\"_value2 && { clip: 'rect(auto, auto, auto, auto)' }\">\r\n <div class=\"left-side half-circle\" [ngStyle]=\"_value2 && { transform: 'rotate(' + value + 'deg)' }\"></div>\r\n <div class=\"right-side half-circle\" [ngStyle]=\"{\r\n transform:\r\n _value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'\r\n }\"></div>\r\n </div>\r\n <div class=\"shadow\"></div>\r\n </ng-template>\r\n </div>\r\n</ng-template>" }]
|
|
1815
|
-
}], ctorParameters: () => [], propDecorators: { type: [{
|
|
1816
|
-
type: Input
|
|
1817
|
-
}], color: [{
|
|
1818
|
-
type: Input
|
|
1819
|
-
}], thick: [{
|
|
1820
|
-
type: Input
|
|
1821
|
-
}], indeterminate: [{
|
|
1822
|
-
type: Input
|
|
1823
|
-
}], value: [{
|
|
1824
|
-
type: Input
|
|
1825
|
-
}] } });
|
|
1826
|
-
|
|
1827
|
-
class ProgressConfig {
|
|
1828
|
-
color = "primary";
|
|
1829
|
-
thickness = 1;
|
|
1830
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: ProgressConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1831
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: ProgressConfig });
|
|
1832
|
-
}
|
|
1833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: ProgressConfig, decorators: [{
|
|
1834
|
-
type: Injectable
|
|
1835
|
-
}] });
|
|
1836
|
-
|
|
1837
|
-
class MefDevProgressModule {
|
|
1838
|
-
static forRoot() {
|
|
1839
|
-
return { ngModule: MefDevProgressModule, providers: [ProgressConfig] };
|
|
1840
|
-
}
|
|
1841
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1842
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevProgressModule, declarations: [MefDevProgressComponent], imports: [CommonModule], exports: [MefDevProgressComponent] });
|
|
1843
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevProgressModule, imports: [CommonModule] });
|
|
1844
|
-
}
|
|
1845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevProgressModule, decorators: [{
|
|
1846
|
-
type: NgModule,
|
|
1847
|
-
args: [{
|
|
1848
|
-
imports: [CommonModule],
|
|
1849
|
-
declarations: [MefDevProgressComponent],
|
|
1850
|
-
exports: [MefDevProgressComponent]
|
|
1851
|
-
}]
|
|
1852
|
-
}] });
|
|
1853
|
-
|
|
1854
|
-
function toBoolean(value) {
|
|
1855
|
-
return value === '' || (value && value !== 'false');
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
/**
|
|
1859
|
-
* @component
|
|
1860
|
-
* @skipTemplateDoc: true
|
|
1861
|
-
* Example of usage:
|
|
1862
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/controls/switch</example-url>
|
|
1863
|
-
*/
|
|
1864
|
-
class MefDevSwitchComponent {
|
|
1865
|
-
// Private variables
|
|
1866
|
-
_disabled = false;
|
|
1867
|
-
_prefixCls = "toggle-switch";
|
|
1868
|
-
_color = "primary";
|
|
1869
|
-
_innerPrefixCls = `${this._prefixCls}-inner `;
|
|
1870
|
-
_classMap;
|
|
1871
|
-
_size;
|
|
1872
|
-
_checked = false;
|
|
1873
|
-
// ngModel Access
|
|
1874
|
-
// Output event triggered when the switch value changes
|
|
1875
|
-
/**
|
|
1876
|
-
* Event emitted when the value of the switch changes.
|
|
1877
|
-
*
|
|
1878
|
-
* @output
|
|
1879
|
-
* @param value The new value of the switch.
|
|
1880
|
-
*
|
|
1881
|
-
* Usage example:
|
|
1882
|
-
* ```
|
|
1883
|
-
* <mefdev-switch (onChange)="handleSwitchChange($event)"></mefdev-switch>
|
|
1884
|
-
* ```
|
|
1885
|
-
*/
|
|
1886
|
-
onChange = () => null;
|
|
1887
|
-
onTouched = () => null;
|
|
1888
|
-
// Input properties
|
|
1889
|
-
/**
|
|
1890
|
-
* Sets the value of the switch.
|
|
1891
|
-
*
|
|
1892
|
-
* @input
|
|
1893
|
-
* @param value The value of the switch.
|
|
1894
|
-
*
|
|
1895
|
-
* Usage example:
|
|
1896
|
-
* ```
|
|
1897
|
-
* <mefdev-switch [Value]="true"></mefdev-switch>
|
|
1898
|
-
* ```
|
|
1899
|
-
*/
|
|
1900
|
-
set Value(value) {
|
|
1901
|
-
this.updateValue(value);
|
|
1902
|
-
}
|
|
1903
|
-
/**
|
|
1904
|
-
* Sets the size of the switch.
|
|
1905
|
-
*
|
|
1906
|
-
* @input
|
|
1907
|
-
* @param value The size of the switch (e.g., "small", "large").
|
|
1908
|
-
*
|
|
1909
|
-
* Usage example:
|
|
1910
|
-
* ```
|
|
1911
|
-
* <mefdev-switch [Size]="'small'"></mefdev-switch>
|
|
1912
|
-
* ```
|
|
1913
|
-
*/
|
|
1914
|
-
set Size(value) {
|
|
1915
|
-
this._size = value;
|
|
1916
|
-
this.setClassMap();
|
|
1917
|
-
}
|
|
1918
|
-
/**
|
|
1919
|
-
* Sets the color of the switch.
|
|
1920
|
-
*
|
|
1921
|
-
* @input
|
|
1922
|
-
* @param value The color of the switch (e.g., "primary", "secondary").
|
|
1923
|
-
*
|
|
1924
|
-
* Usage example:
|
|
1925
|
-
* ```
|
|
1926
|
-
* <mefdev-switch [Color]="'primary'"></mefdev-switch>
|
|
1927
|
-
* ```
|
|
1928
|
-
*/
|
|
1929
|
-
set Color(value) {
|
|
1930
|
-
this._color = value;
|
|
1931
|
-
this.setClassMap();
|
|
1932
|
-
}
|
|
1933
|
-
/**
|
|
1934
|
-
* Gets the current size of the switch.
|
|
1935
|
-
*
|
|
1936
|
-
* @input
|
|
1937
|
-
* @returns The size of the switch.
|
|
1938
|
-
*
|
|
1939
|
-
* Usage example:
|
|
1940
|
-
* ```
|
|
1941
|
-
* const size = mySwitchComponent.Size;
|
|
1942
|
-
* ```
|
|
1943
|
-
*/
|
|
1944
|
-
get Size() {
|
|
1945
|
-
return this._size;
|
|
1946
|
-
}
|
|
1947
|
-
/**
|
|
1948
|
-
* Sets the disabled state of the switch.
|
|
1949
|
-
*
|
|
1950
|
-
* @input
|
|
1951
|
-
* @param value The disabled state of the switch.
|
|
1952
|
-
*
|
|
1953
|
-
* Usage example:
|
|
1954
|
-
* ```
|
|
1955
|
-
* <mefdev-switch [Disabled]="true"></mefdev-switch>
|
|
1956
|
-
* ```
|
|
1957
|
-
*/
|
|
1958
|
-
set Disabled(value) {
|
|
1959
|
-
this._disabled = toBoolean(value);
|
|
1960
|
-
this.setClassMap();
|
|
1961
|
-
}
|
|
1962
|
-
/**
|
|
1963
|
-
* Gets the current disabled state of the switch.
|
|
1964
|
-
*
|
|
1965
|
-
* @input
|
|
1966
|
-
* @returns The disabled state of the switch.
|
|
1967
|
-
*
|
|
1968
|
-
* Usage example:
|
|
1969
|
-
* ```
|
|
1970
|
-
* const disabled = mySwitchComponent.Disabled;
|
|
1971
|
-
* ```
|
|
1972
|
-
*/
|
|
1973
|
-
get Disabled() {
|
|
1974
|
-
return this._disabled;
|
|
1975
|
-
}
|
|
1976
|
-
// Host listener for click event
|
|
1977
|
-
/**
|
|
1978
|
-
* Handles the click event of the switch.
|
|
1979
|
-
*
|
|
1980
|
-
* @param e The click event object.
|
|
1981
|
-
*
|
|
1982
|
-
* Usage example:
|
|
1983
|
-
* ```
|
|
1984
|
-
* <mefdev-switch (click)="handleSwitchClick($event)"></mefdev-switch>
|
|
1985
|
-
* ```
|
|
1986
|
-
*/
|
|
1987
|
-
onClick(e) {
|
|
1988
|
-
e.preventDefault();
|
|
1989
|
-
if (!this._disabled) {
|
|
1990
|
-
this.updateValue(!this._checked);
|
|
1991
|
-
this.onChange(this._checked);
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
// Helper functions
|
|
1995
|
-
/**
|
|
1996
|
-
* Updates the value of the switch.
|
|
1997
|
-
*
|
|
1998
|
-
* @param value The new value of the switch.
|
|
1999
|
-
*
|
|
2000
|
-
* Usage example:
|
|
2001
|
-
* ```
|
|
2002
|
-
* this.updateValue(true);
|
|
2003
|
-
* ```
|
|
2004
|
-
*/
|
|
2005
|
-
updateValue(value) {
|
|
2006
|
-
if (this._checked === value) {
|
|
2007
|
-
return;
|
|
2008
|
-
}
|
|
2009
|
-
this._checked = value;
|
|
2010
|
-
this.setClassMap();
|
|
2011
|
-
}
|
|
2012
|
-
/**
|
|
2013
|
-
* Sets the class map for the switch.
|
|
2014
|
-
*
|
|
2015
|
-
* Usage example:
|
|
2016
|
-
* ```
|
|
2017
|
-
* this.setClassMap();
|
|
2018
|
-
* ```
|
|
2019
|
-
*/
|
|
2020
|
-
setClassMap() {
|
|
2021
|
-
this._classMap = {
|
|
2022
|
-
[this._prefixCls]: true,
|
|
2023
|
-
[`${this._prefixCls}-checked`]: this._checked,
|
|
2024
|
-
[`${this._prefixCls}-disabled`]: this._disabled,
|
|
2025
|
-
[`${this._prefixCls}-small`]: this._size === "small",
|
|
2026
|
-
[this._color]: this._color
|
|
2027
|
-
};
|
|
2028
|
-
}
|
|
2029
|
-
// ControlValueAccessor interface implementation
|
|
2030
|
-
/**
|
|
2031
|
-
* Writes a new value to the switch.
|
|
2032
|
-
*
|
|
2033
|
-
* @param value The new value of the switch.
|
|
2034
|
-
*
|
|
2035
|
-
* Usage example:
|
|
2036
|
-
* ```
|
|
2037
|
-
* this.writeValue(true);
|
|
2038
|
-
* ```
|
|
2039
|
-
*/
|
|
2040
|
-
writeValue(value) {
|
|
2041
|
-
this.updateValue(value);
|
|
2042
|
-
}
|
|
2043
|
-
/**
|
|
2044
|
-
* Registers a callback function to be executed when the switch value changes.
|
|
2045
|
-
*
|
|
2046
|
-
* @param fn The callback function.
|
|
2047
|
-
*
|
|
2048
|
-
* Usage example:
|
|
2049
|
-
* ```
|
|
2050
|
-
* this.registerOnChange(value => {
|
|
2051
|
-
* // Do something with the new value
|
|
2052
|
-
* });
|
|
2053
|
-
* ```
|
|
2054
|
-
*/
|
|
2055
|
-
registerOnChange(fn) {
|
|
2056
|
-
this.onChange = fn;
|
|
2057
|
-
}
|
|
2058
|
-
/**
|
|
2059
|
-
* Registers a callback function to be executed when the switch is touched.
|
|
2060
|
-
*
|
|
2061
|
-
* @param fn The callback function.
|
|
2062
|
-
*
|
|
2063
|
-
* Usage example:
|
|
2064
|
-
* ```
|
|
2065
|
-
* this.registerOnTouched(() => {
|
|
2066
|
-
* // Do something when the switch is touched
|
|
2067
|
-
* });
|
|
2068
|
-
* ```
|
|
2069
|
-
*/
|
|
2070
|
-
registerOnTouched(fn) {
|
|
2071
|
-
this.onTouched = fn;
|
|
2072
|
-
}
|
|
2073
|
-
/**
|
|
2074
|
-
* Sets the disabled state of the switch.
|
|
2075
|
-
*
|
|
2076
|
-
* @param isDisabled The disabled state of the switch.
|
|
2077
|
-
*
|
|
2078
|
-
* Usage example:
|
|
2079
|
-
* ```
|
|
2080
|
-
* this.setDisabledState(true);
|
|
2081
|
-
* ```
|
|
2082
|
-
*/
|
|
2083
|
-
setDisabledState(isDisabled) {
|
|
2084
|
-
this.Disabled = isDisabled;
|
|
2085
|
-
}
|
|
2086
|
-
// OnInit lifecycle hook
|
|
2087
|
-
ngOnInit() {
|
|
2088
|
-
this.setClassMap();
|
|
2089
|
-
}
|
|
2090
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2091
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: MefDevSwitchComponent, isStandalone: false, selector: "mefdev-switch", inputs: { Value: "Value", Size: "Size", Color: "Color", Disabled: "Disabled" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
|
|
2092
|
-
{
|
|
2093
|
-
provide: NG_VALUE_ACCESSOR,
|
|
2094
|
-
useExisting: forwardRef(() => MefDevSwitchComponent),
|
|
2095
|
-
multi: true
|
|
2096
|
-
}
|
|
2097
|
-
], ngImport: i0, template: "<span [ngClass]=\"_classMap\" tabindex=\"0\">\r\n <span [ngClass]=\"_innerPrefixCls\">\r\n <ng-template [ngIf]=\"_checked\">\r\n <ng-content select=\"[checked]\"></ng-content>\r\n </ng-template>\r\n <ng-template [ngIf]=\"!_checked\">\r\n <ng-content select=\"[unchecked]\"></ng-content>\r\n </ng-template>\r\n </span>\r\n</span>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2098
|
-
}
|
|
2099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevSwitchComponent, decorators: [{
|
|
2100
|
-
type: Component,
|
|
2101
|
-
args: [{ selector: "mefdev-switch", encapsulation: ViewEncapsulation.None, providers: [
|
|
2102
|
-
{
|
|
2103
|
-
provide: NG_VALUE_ACCESSOR,
|
|
2104
|
-
useExisting: forwardRef(() => MefDevSwitchComponent),
|
|
2105
|
-
multi: true
|
|
2106
|
-
}
|
|
2107
|
-
], standalone: false, template: "<span [ngClass]=\"_classMap\" tabindex=\"0\">\r\n <span [ngClass]=\"_innerPrefixCls\">\r\n <ng-template [ngIf]=\"_checked\">\r\n <ng-content select=\"[checked]\"></ng-content>\r\n </ng-template>\r\n <ng-template [ngIf]=\"!_checked\">\r\n <ng-content select=\"[unchecked]\"></ng-content>\r\n </ng-template>\r\n </span>\r\n</span>" }]
|
|
2108
|
-
}], propDecorators: { onChange: [{
|
|
2109
|
-
type: Output
|
|
2110
|
-
}], Value: [{
|
|
2111
|
-
type: Input
|
|
2112
|
-
}], Size: [{
|
|
2113
|
-
type: Input
|
|
2114
|
-
}], Color: [{
|
|
2115
|
-
type: Input
|
|
2116
|
-
}], Disabled: [{
|
|
2117
|
-
type: Input
|
|
2118
|
-
}], onClick: [{
|
|
2119
|
-
type: HostListener,
|
|
2120
|
-
args: ["click", ["$event"]]
|
|
2121
|
-
}] } });
|
|
2122
|
-
|
|
2123
|
-
class MefDevSwitchModule {
|
|
2124
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2125
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevSwitchModule, declarations: [MefDevSwitchComponent], imports: [CommonModule], exports: [MefDevSwitchComponent] });
|
|
2126
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevSwitchModule, imports: [CommonModule] });
|
|
2127
|
-
}
|
|
2128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevSwitchModule, decorators: [{
|
|
2129
|
-
type: NgModule,
|
|
2130
|
-
args: [{
|
|
2131
|
-
exports: [MefDevSwitchComponent],
|
|
2132
|
-
declarations: [MefDevSwitchComponent],
|
|
2133
|
-
imports: [CommonModule]
|
|
2134
|
-
}]
|
|
2135
|
-
}] });
|
|
2136
|
-
|
|
2137
1750
|
const ACCORDION = new InjectionToken('ACCORDION');
|
|
2138
1751
|
|
|
2139
1752
|
const MD_EXPANSION_PANEL = new InjectionToken('MD_EXPANSION_PANEL');
|
|
@@ -14578,5 +14191,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
14578
14191
|
* Generated bundle index. Do not edit.
|
|
14579
14192
|
*/
|
|
14580
14193
|
|
|
14581
|
-
export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, INK_BAR_POSITIONER, INK_BAR_POSITIONER_FACTORY, InkBar, MDAccordion, MDAutocomplete, MDAutocompleteModule, MDAutocompleteOrigin, MDAutocompleteSelectedEvent, MDAutocompleteTrigger, MDCard, MDCardActions, MDCardAvatar, MDCardContent, MDCardFooter, MDCardHeader, MDCardImage, MDCardLgImage, MDCardMdImage, MDCardModule, MDCardSmImage, MDCardSubtitle, MDCardTitle, MDCardTitleGroup, MDCardXlImage, MDCheckBox, MDCheckBoxModule, MDCheckboxChange, MDChip, MDChipAvatar, MDChipEdit, MDChipEditInput, MDChipGrid, MDChipGridChange, MDChipInput, MDChipListbox, MDChipListboxChange, MDChipOption, MDChipRemove, MDChipRow, MDChipSelectionChange, MDChipSet, MDChipTrailingIcon, MDChipsModule, MDCollapseModule, MDContextMenuTrigger, MDDialog, MDDialogActions, MDDialogClose, MDDialogContainer, MDDialogContent, MDDialogTitle, MDExpansionPanel, MDExpansionPanelContent, MDExpansionPanelHeader, MDGridActionsColumnDirective, MDGridAutoSizeDirective, MDGridCellTemplateDirective, MDGridColumnDirective, MDGridComponent, MDGridEditTemplateDirective, MDGridHeaderTemplateDirective, MDGridIdColumnDirective, MDGridModule, MDGridResetFlexSizingDirective, MDGridToolbarTemplateDirective, MDHeaderCardComponent, MDHeaderCardModule, MDHeaderCardSetComponent, MDMenu, MDMenuContent, MDMenuItem, MDMenuModule, MDMenuTrigger, MDModalModule, MDOption, MDOptionGroup, MDOptionModule, MDOptionSelectionChange, MDPaginatorComponent, MDPaginatorModule, MDPseudoCheckboxModule, MDRadioButton, MDRadioGroup, MDRadioModule, MDSelect, MDSelectModule, MDSelectTrigger, MDStep, MDStepContent, MDStepExecutorModule, MDStepFooter, MDStepHeader, MDStepLabel, MDStepper, MDStepperIcon, MDStepperNext, MDStepperPrevious, MDSwitch, MDSwitchModule, MDTab, MDTabBody, MDTabChangeEvent, MDTabContent, MDTabGroup, MDTabHeader, MDTabLabel, MDTabLabelWrapper, MDTabLink, MDTabNav, MDTabNavPanel, MDTabsModule, MD_AUTOCOMPLETE_DEFAULT_OPTIONS, MD_AUTOCOMPLETE_SCROLL_STRATEGY, MD_AUTOCOMPLETE_VALUE_ACCESSOR, MD_CHIP, MD_CHIPS_DEFAULT_OPTIONS, MD_CHIP_AVATAR, MD_CHIP_EDIT, MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MD_CHIP_REMOVE, MD_CHIP_TRAILING_ICON, MD_EXPANSION_PANEL, MD_MENU_CONTENT, MD_MENU_DEFAULT_OPTIONS, MD_MENU_PANEL, MD_MENU_SCROLL_STRATEGY, MD_OPTION_PARENT_COMPONENT, MD_RADIO_GROUP, MD_SELECT_TRIGGER, MD_TAB, MD_TAB_LABEL, MENU_PANEL_TOP_PADDING, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevDialogConfig, MefDevDialogRef, MefDevDropDownMenuModule, MefDevFilteredFieldModule, MefDevModalModule, MefDevPageLayoutsModule,
|
|
14194
|
+
export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, INK_BAR_POSITIONER, INK_BAR_POSITIONER_FACTORY, InkBar, MDAccordion, MDAutocomplete, MDAutocompleteModule, MDAutocompleteOrigin, MDAutocompleteSelectedEvent, MDAutocompleteTrigger, MDCard, MDCardActions, MDCardAvatar, MDCardContent, MDCardFooter, MDCardHeader, MDCardImage, MDCardLgImage, MDCardMdImage, MDCardModule, MDCardSmImage, MDCardSubtitle, MDCardTitle, MDCardTitleGroup, MDCardXlImage, MDCheckBox, MDCheckBoxModule, MDCheckboxChange, MDChip, MDChipAvatar, MDChipEdit, MDChipEditInput, MDChipGrid, MDChipGridChange, MDChipInput, MDChipListbox, MDChipListboxChange, MDChipOption, MDChipRemove, MDChipRow, MDChipSelectionChange, MDChipSet, MDChipTrailingIcon, MDChipsModule, MDCollapseModule, MDContextMenuTrigger, MDDialog, MDDialogActions, MDDialogClose, MDDialogContainer, MDDialogContent, MDDialogTitle, MDExpansionPanel, MDExpansionPanelContent, MDExpansionPanelHeader, MDGridActionsColumnDirective, MDGridAutoSizeDirective, MDGridCellTemplateDirective, MDGridColumnDirective, MDGridComponent, MDGridEditTemplateDirective, MDGridHeaderTemplateDirective, MDGridIdColumnDirective, MDGridModule, MDGridResetFlexSizingDirective, MDGridToolbarTemplateDirective, MDHeaderCardComponent, MDHeaderCardModule, MDHeaderCardSetComponent, MDMenu, MDMenuContent, MDMenuItem, MDMenuModule, MDMenuTrigger, MDModalModule, MDOption, MDOptionGroup, MDOptionModule, MDOptionSelectionChange, MDPaginatorComponent, MDPaginatorModule, MDPseudoCheckboxModule, MDRadioButton, MDRadioGroup, MDRadioModule, MDSelect, MDSelectModule, MDSelectTrigger, MDStep, MDStepContent, MDStepExecutorModule, MDStepFooter, MDStepHeader, MDStepLabel, MDStepper, MDStepperIcon, MDStepperNext, MDStepperPrevious, MDSwitch, MDSwitchModule, MDTab, MDTabBody, MDTabChangeEvent, MDTabContent, MDTabGroup, MDTabHeader, MDTabLabel, MDTabLabelWrapper, MDTabLink, MDTabNav, MDTabNavPanel, MDTabsModule, MD_AUTOCOMPLETE_DEFAULT_OPTIONS, MD_AUTOCOMPLETE_SCROLL_STRATEGY, MD_AUTOCOMPLETE_VALUE_ACCESSOR, MD_CHIP, MD_CHIPS_DEFAULT_OPTIONS, MD_CHIP_AVATAR, MD_CHIP_EDIT, MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MD_CHIP_REMOVE, MD_CHIP_TRAILING_ICON, MD_EXPANSION_PANEL, MD_MENU_CONTENT, MD_MENU_DEFAULT_OPTIONS, MD_MENU_PANEL, MD_MENU_SCROLL_STRATEGY, MD_OPTION_PARENT_COMPONENT, MD_RADIO_GROUP, MD_SELECT_TRIGGER, MD_TAB, MD_TAB_LABEL, MENU_PANEL_TOP_PADDING, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevDialogConfig, MefDevDialogRef, MefDevDropDownMenuModule, MefDevFilteredFieldModule, MefDevModalModule, MefDevPageLayoutsModule, MefDevStepExecutorModule, MefdevDropdownMenuComponent, MefdevExecutorPageComponent, PaginatedTabHeader, PseudoCheckbox, RADIO_GROUP_CONTROL_VALUE_ACCESSOR, RadioChange, RightFilterComponent, STEPPER_INTL_PROVIDER, STEPPER_INTL_PROVIDER_FACTORY, SelectChange, ShowOnDirtyErrorStateMatcher, SlideRightComponent, SlideUpComponent, SortDirection, SortType, StageComponent, StepExecutorComponent, StepperErrorStateMatcher, StepperIntl, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TabBodyPortal, TablePageComponent, TransitionCheckState, _ErrorStateTracker, _closeDialogVia, _countGroupLabelsBeforeOption, _getOptionScrollPosition, components, getMDAutocompleteMissingPanelError, getMDSelectDynamicMultipleError, getMDSelectNonArrayValueError, getMDSelectNonFunctionValueError, groupRowsByProperty, mefDevCardComponents, mefDevCollapseModuleComponents, sortRows };
|
|
14582
14195
|
//# sourceMappingURL=natec-mef-dev-ui-kit.mjs.map
|