@db-ux/ngx-core-components 4.4.0-loading-567cd0c → 4.4.1-floating-components-066d296
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.
|
@@ -272,7 +272,7 @@ const getNotificationRole = ({ semantic, role, ariaLive }) => {
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
const defaultProps$
|
|
275
|
+
const defaultProps$z = {};
|
|
276
276
|
class DBAccordionItem {
|
|
277
277
|
handleNameAttribute() {
|
|
278
278
|
if (this._ref()?.nativeElement) {
|
|
@@ -426,7 +426,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
426
426
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
427
427
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
428
428
|
|
|
429
|
-
const defaultProps$
|
|
429
|
+
const defaultProps$y = {};
|
|
430
430
|
class DBAccordion {
|
|
431
431
|
convertItems() {
|
|
432
432
|
try {
|
|
@@ -620,7 +620,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
620
620
|
const AccordionVariantList = ['divider', 'card'];
|
|
621
621
|
const AccordionBehaviorList = ['multiple', 'single'];
|
|
622
622
|
|
|
623
|
-
const defaultProps$
|
|
623
|
+
const defaultProps$x = {};
|
|
624
624
|
class DBBadge {
|
|
625
625
|
constructor() {
|
|
626
626
|
this.cls = cls;
|
|
@@ -731,7 +731,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
731
731
|
|
|
732
732
|
const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'];
|
|
733
733
|
|
|
734
|
-
const defaultProps$
|
|
734
|
+
const defaultProps$w = {};
|
|
735
735
|
class DBBrand {
|
|
736
736
|
constructor() {
|
|
737
737
|
this.DEFAULT_ICON = DEFAULT_ICON;
|
|
@@ -811,7 +811,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
811
811
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
812
812
|
}], ctorParameters: () => [], propDecorators: { hideLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLogo", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
813
813
|
|
|
814
|
-
const defaultProps$
|
|
814
|
+
const defaultProps$v = {};
|
|
815
815
|
class DBButton {
|
|
816
816
|
getButtonType() {
|
|
817
817
|
if (this.type()) {
|
|
@@ -938,7 +938,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
938
938
|
const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'];
|
|
939
939
|
const ButtonTypeList = ['button', 'reset', 'submit'];
|
|
940
940
|
|
|
941
|
-
const defaultProps$
|
|
941
|
+
const defaultProps$u = {};
|
|
942
942
|
class DBCard {
|
|
943
943
|
handleClick(event) {
|
|
944
944
|
if (this.click) {
|
|
@@ -1075,7 +1075,7 @@ const addValueResetEventListener = (element, props, resetFunction, signal) => {
|
|
|
1075
1075
|
}, signal);
|
|
1076
1076
|
};
|
|
1077
1077
|
|
|
1078
|
-
const defaultProps$
|
|
1078
|
+
const defaultProps$t = {};
|
|
1079
1079
|
class DBInfotext {
|
|
1080
1080
|
constructor() {
|
|
1081
1081
|
this.cls = cls;
|
|
@@ -1157,7 +1157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1157
1157
|
> `, styles: [":host{display:contents}\n"] }]
|
|
1158
1158
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], semantic: [{ type: i0.Input, args: [{ isSignal: true, alias: "semantic", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1159
1159
|
|
|
1160
|
-
const defaultProps$
|
|
1160
|
+
const defaultProps$s = {};
|
|
1161
1161
|
class DBCheckbox {
|
|
1162
1162
|
hasValidState() {
|
|
1163
1163
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -1818,9 +1818,53 @@ const getFloatingProps = (element, parent, placement) => {
|
|
|
1818
1818
|
innerHeight
|
|
1819
1819
|
};
|
|
1820
1820
|
};
|
|
1821
|
+
const MAX_ANCESTOR_DEPTH = 10;
|
|
1822
|
+
const ancestorCache = new WeakMap();
|
|
1823
|
+
const getAncestorHasCorrectedPlacement = (element) => {
|
|
1824
|
+
if (ancestorCache.has(element)) {
|
|
1825
|
+
return ancestorCache.get(element);
|
|
1826
|
+
}
|
|
1827
|
+
let current = element.parentElement;
|
|
1828
|
+
let anchor = 0;
|
|
1829
|
+
while (current && anchor < MAX_ANCESTOR_DEPTH) {
|
|
1830
|
+
if (current.dataset['correctedPlacement']) {
|
|
1831
|
+
ancestorCache.set(element, current);
|
|
1832
|
+
return current;
|
|
1833
|
+
}
|
|
1834
|
+
current = current.parentElement;
|
|
1835
|
+
anchor += 1;
|
|
1836
|
+
}
|
|
1837
|
+
ancestorCache.set(element, null);
|
|
1838
|
+
return null;
|
|
1839
|
+
};
|
|
1821
1840
|
const handleFixedPopover = (element, parent, placement) => {
|
|
1822
|
-
const
|
|
1823
|
-
const
|
|
1841
|
+
const parentComputedStyles = getComputedStyle(parent);
|
|
1842
|
+
const parentHasFloatingPosition = ['absolute', 'fixed'].includes(parentComputedStyles.position);
|
|
1843
|
+
const ancestorWithCorrectedPlacement = getAncestorHasCorrectedPlacement(element);
|
|
1844
|
+
const noFloatingAncestor = !ancestorWithCorrectedPlacement && !parentHasFloatingPosition;
|
|
1845
|
+
const distance = getComputedStyle(element)?.getPropertyValue('--db-popover-distance') ?? '0px';
|
|
1846
|
+
let { top, height, width, childHeight, childWidth, right, left, bottom, correctedPlacement, innerWidth, innerHeight } = getFloatingProps(element, parent, placement);
|
|
1847
|
+
if (ancestorWithCorrectedPlacement) {
|
|
1848
|
+
const ancestorRect = ancestorWithCorrectedPlacement.getBoundingClientRect();
|
|
1849
|
+
left = Math.abs(left - ancestorRect.left);
|
|
1850
|
+
right = (width + Math.abs(right - ancestorRect.right)) * 1.5; // We add a transform -50% later
|
|
1851
|
+
top = Math.abs(top - ancestorRect.top);
|
|
1852
|
+
bottom = (height + Math.abs(bottom - ancestorRect.bottom)) * 1.5; // We add a transform -50% later
|
|
1853
|
+
}
|
|
1854
|
+
if (parentHasFloatingPosition) {
|
|
1855
|
+
/*
|
|
1856
|
+
* If we have a floating element inside an element with position:absolute/fixed
|
|
1857
|
+
* we need to calculate with relative values
|
|
1858
|
+
* */
|
|
1859
|
+
left = 0;
|
|
1860
|
+
right = width;
|
|
1861
|
+
top = 0;
|
|
1862
|
+
bottom = height;
|
|
1863
|
+
if (['auto', 'inherit', '0'].includes(parentComputedStyles.zIndex)) {
|
|
1864
|
+
// We need the default zIndex for floating elements on the parent
|
|
1865
|
+
parent.style.zIndex = '1';
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1824
1868
|
// Tooltip arrow position
|
|
1825
1869
|
if (childWidth > width && (correctedPlacement.startsWith('bottom') || correctedPlacement.startsWith('top'))) {
|
|
1826
1870
|
const diff = width / 2 / childWidth * 100;
|
|
@@ -1830,6 +1874,9 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1830
1874
|
else if (correctedPlacement.endsWith('end')) {
|
|
1831
1875
|
element.style.setProperty('--db-tooltip-arrow-inline-start', `${100 - diff}%`);
|
|
1832
1876
|
}
|
|
1877
|
+
else {
|
|
1878
|
+
element.style.setProperty('--db-tooltip-arrow-inline-start', `50%`);
|
|
1879
|
+
}
|
|
1833
1880
|
}
|
|
1834
1881
|
if (childHeight > height && (correctedPlacement.startsWith('left') || correctedPlacement.startsWith('bottom'))) {
|
|
1835
1882
|
const diff = height / 2 / childHeight * 100;
|
|
@@ -1839,6 +1886,9 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1839
1886
|
else if (correctedPlacement.endsWith('end')) {
|
|
1840
1887
|
element.style.setProperty('--db-tooltip-arrow-block-start', `${100 - diff}%`);
|
|
1841
1888
|
}
|
|
1889
|
+
else {
|
|
1890
|
+
element.style.setProperty('--db-tooltip-arrow-block-start', `50%`);
|
|
1891
|
+
}
|
|
1842
1892
|
}
|
|
1843
1893
|
// Popover position
|
|
1844
1894
|
if (correctedPlacement === 'right' || correctedPlacement === 'left') {
|
|
@@ -1848,11 +1898,11 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1848
1898
|
else if (correctedPlacement === 'right-start' || correctedPlacement === 'left-start') {
|
|
1849
1899
|
const end = top + childHeight;
|
|
1850
1900
|
element.style.insetBlockStart = `${top}px`;
|
|
1851
|
-
element.style.insetBlockEnd = `${end > innerHeight ? innerHeight : end}px`;
|
|
1901
|
+
element.style.insetBlockEnd = `${!parentHasFloatingPosition && end > innerHeight ? innerHeight : end}px`;
|
|
1852
1902
|
}
|
|
1853
1903
|
else if (correctedPlacement === 'right-end' || correctedPlacement === 'left-end') {
|
|
1854
1904
|
const start = bottom - childHeight;
|
|
1855
|
-
element.style.insetBlockStart = `${start < 0 ? 0 : start}px`;
|
|
1905
|
+
element.style.insetBlockStart = `${!parentHasFloatingPosition && start < 0 ? 0 : start}px`;
|
|
1856
1906
|
element.style.insetBlockEnd = `${bottom}px`;
|
|
1857
1907
|
}
|
|
1858
1908
|
else if (correctedPlacement === 'top' || correctedPlacement === 'bottom') {
|
|
@@ -1862,44 +1912,44 @@ const handleFixedPopover = (element, parent, placement) => {
|
|
|
1862
1912
|
else if (correctedPlacement === 'top-start' || correctedPlacement === 'bottom-start') {
|
|
1863
1913
|
const end = left + childWidth;
|
|
1864
1914
|
element.style.insetInlineStart = `${left}px`;
|
|
1865
|
-
element.style.insetInlineEnd = `${end > innerWidth ? innerWidth : end}px`;
|
|
1915
|
+
element.style.insetInlineEnd = `${!parentHasFloatingPosition && end > innerWidth ? innerWidth : end}px`;
|
|
1866
1916
|
}
|
|
1867
1917
|
else if (correctedPlacement === 'top-end' || correctedPlacement === 'bottom-end') {
|
|
1868
|
-
const start =
|
|
1869
|
-
element.style.insetInlineStart = `${
|
|
1870
|
-
element.style.insetInlineEnd = `${
|
|
1918
|
+
const start = right - childWidth;
|
|
1919
|
+
element.style.insetInlineStart = `${!parentHasFloatingPosition && start < 0 ? 0 : start}px`;
|
|
1920
|
+
element.style.insetInlineEnd = `${right}px`;
|
|
1871
1921
|
}
|
|
1872
1922
|
if (correctedPlacement?.startsWith('right')) {
|
|
1873
1923
|
const end = right + childWidth;
|
|
1874
1924
|
element.style.insetInlineStart = `calc(${right}px + ${distance})`;
|
|
1875
|
-
element.style.insetInlineEnd = `calc(${end > innerWidth ? innerWidth : end}px + ${distance})`;
|
|
1925
|
+
element.style.insetInlineEnd = `calc(${noFloatingAncestor && end > innerWidth ? innerWidth : end}px + ${distance})`;
|
|
1876
1926
|
}
|
|
1877
1927
|
else if (correctedPlacement?.startsWith('left')) {
|
|
1878
1928
|
const start = left - childWidth;
|
|
1879
|
-
element.style.insetInlineStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
|
|
1929
|
+
element.style.insetInlineStart = `calc(${noFloatingAncestor && start < 0 ? 0 : start}px - ${distance})`;
|
|
1880
1930
|
element.style.insetInlineEnd = `calc(${right}px - ${distance})`;
|
|
1881
1931
|
}
|
|
1882
1932
|
else if (correctedPlacement?.startsWith('top')) {
|
|
1883
1933
|
const start = top - childHeight;
|
|
1884
|
-
element.style.insetBlockStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
|
|
1885
|
-
element.style.insetBlockEnd = `calc(${bottom}px - ${distance})`;
|
|
1934
|
+
element.style.insetBlockStart = `calc(${noFloatingAncestor && start < 0 ? 0 : start}px - ${distance})`;
|
|
1935
|
+
element.style.insetBlockEnd = `calc(${parentHasFloatingPosition ? start : bottom}px - ${distance})`;
|
|
1886
1936
|
}
|
|
1887
1937
|
else if (correctedPlacement?.startsWith('bottom')) {
|
|
1888
1938
|
const end = bottom + childHeight;
|
|
1889
|
-
element.style.insetBlockStart = `calc(${bottom}px + ${distance})`;
|
|
1890
|
-
element.style.insetBlockEnd = `calc(${end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
1939
|
+
element.style.insetBlockStart = `calc(${parentHasFloatingPosition ? end : bottom}px + ${distance})`;
|
|
1940
|
+
element.style.insetBlockEnd = `calc(${noFloatingAncestor && end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
1891
1941
|
}
|
|
1892
1942
|
element.style.position = 'fixed';
|
|
1893
1943
|
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
1894
1944
|
};
|
|
1895
1945
|
|
|
1896
|
-
const defaultProps$
|
|
1946
|
+
const defaultProps$r = { width: "fixed" };
|
|
1897
1947
|
class DBCustomSelectDropdown {
|
|
1898
1948
|
constructor() {
|
|
1899
1949
|
this.cls = cls;
|
|
1900
1950
|
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
1901
1951
|
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
1902
|
-
this.width = input(defaultProps$
|
|
1952
|
+
this.width = input(defaultProps$r["width"], ...(ngDevMode ? [{ debugName: "width" }] : []));
|
|
1903
1953
|
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
1904
1954
|
}
|
|
1905
1955
|
/**
|
|
@@ -1964,7 +2014,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1964
2014
|
</article> `, styles: [":host{display:contents}\n"] }]
|
|
1965
2015
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
1966
2016
|
|
|
1967
|
-
const defaultProps$
|
|
2017
|
+
const defaultProps$q = {};
|
|
1968
2018
|
class DBCustomSelectListItem {
|
|
1969
2019
|
handleChange(event) {
|
|
1970
2020
|
event.stopPropagation();
|
|
@@ -2147,7 +2197,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2147
2197
|
</li> `, styles: [":host{display:contents}\n"] }]
|
|
2148
2198
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], isGroupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "isGroupTitle", required: false }] }], showDivider: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDivider", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], groupTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupTitle", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], change: [{ type: i0.Output, args: ["change"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2149
2199
|
|
|
2150
|
-
const defaultProps$
|
|
2200
|
+
const defaultProps$p = {};
|
|
2151
2201
|
class DBCustomSelectList {
|
|
2152
2202
|
constructor() {
|
|
2153
2203
|
this.cls = cls;
|
|
@@ -2223,7 +2273,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2223
2273
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2224
2274
|
}], ctorParameters: () => [], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2225
2275
|
|
|
2226
|
-
const defaultProps$
|
|
2276
|
+
const defaultProps$o = {};
|
|
2227
2277
|
class DBInput {
|
|
2228
2278
|
hasValidState() {
|
|
2229
2279
|
return !!(this.validMessage() ?? this.validation() === "valid");
|
|
@@ -2693,340 +2743,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2693
2743
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
2694
2744
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], dataListId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataListId", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], dataList: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataList", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], showIconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconLeading", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconLeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTrailing", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showIconTrailing: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIconTrailing", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], fieldSizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldSizing", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], enterkeyhint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterkeyhint", required: false }] }], inputmode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputmode", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], messageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageSize", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], validMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessageSize", required: false }] }], invalidMessageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessageSize", required: false }] }], input: [{ type: i0.Output, args: ["input"] }], change: [{ type: i0.Output, args: ["change"] }], blur: [{ type: i0.Output, args: ["blur"] }], focus: [{ type: i0.Output, args: ["focus"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
2695
2745
|
|
|
2696
|
-
const defaultProps$o = {
|
|
2697
|
-
indeterminate: true,
|
|
2698
|
-
variant: "inline",
|
|
2699
|
-
size: "medium",
|
|
2700
|
-
autoDisable: true,
|
|
2701
|
-
};
|
|
2702
|
-
class DBLoadingIndicator {
|
|
2703
|
-
getPercentage() {
|
|
2704
|
-
if (this.indeterminate() || !this.value() || !this.max()) {
|
|
2705
|
-
return;
|
|
2706
|
-
}
|
|
2707
|
-
return `${(Number(this.value()) / Number(this.max())).toFixed(2)}`;
|
|
2708
|
-
}
|
|
2709
|
-
getRole() {
|
|
2710
|
-
if (this.role()) {
|
|
2711
|
-
if (this.role() === "none") {
|
|
2712
|
-
return;
|
|
2713
|
-
}
|
|
2714
|
-
return this.role();
|
|
2715
|
-
}
|
|
2716
|
-
return "status";
|
|
2717
|
-
}
|
|
2718
|
-
handleParentDisabled() {
|
|
2719
|
-
if (this._ref()?.nativeElement &&
|
|
2720
|
-
this.autoDisable() &&
|
|
2721
|
-
this.initialized()) {
|
|
2722
|
-
let parent = (this._ref()?.nativeElement).parentElement;
|
|
2723
|
-
if (parent && parent.localName === "db-loading-indicator") {
|
|
2724
|
-
parent = parent.parentElement;
|
|
2725
|
-
}
|
|
2726
|
-
if (parent && "disabled" in parent) {
|
|
2727
|
-
parent.disabled = this._loadingState() !== "inactive";
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
}
|
|
2731
|
-
handleParentAria(remove) {
|
|
2732
|
-
if (this._ref()?.nativeElement && this._id() && this.initialized()) {
|
|
2733
|
-
let parent = (this._ref()?.nativeElement).parentElement;
|
|
2734
|
-
if (parent && parent.localName === "db-loading-indicator") {
|
|
2735
|
-
parent = parent.parentElement;
|
|
2736
|
-
}
|
|
2737
|
-
if (!parent)
|
|
2738
|
-
return;
|
|
2739
|
-
const isButton = parent?.localName === "button";
|
|
2740
|
-
if (!(isButton || this.overlay()))
|
|
2741
|
-
return;
|
|
2742
|
-
const ariaAttribute = isButton ? "aria-labelledby" : "aria-describedby";
|
|
2743
|
-
const ariaLabelledBy = parent.getAttribute(ariaAttribute);
|
|
2744
|
-
let labelledByElements = ariaLabelledBy ? ariaLabelledBy.split(",") : [];
|
|
2745
|
-
if (remove || this._loadingState() === "inactive") {
|
|
2746
|
-
if (labelledByElements.includes(this._id())) {
|
|
2747
|
-
labelledByElements = labelledByElements.filter((elementId) => elementId !== this._id());
|
|
2748
|
-
if (!isButton) {
|
|
2749
|
-
parent.ariaBusy = null;
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
else {
|
|
2753
|
-
return;
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
else {
|
|
2757
|
-
if (!labelledByElements.includes(this._id())) {
|
|
2758
|
-
labelledByElements.push(this._id());
|
|
2759
|
-
}
|
|
2760
|
-
if (!isButton) {
|
|
2761
|
-
parent.ariaBusy = this._loadingState() === "active" ? "true" : null;
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
if (labelledByElements.length) {
|
|
2765
|
-
parent.setAttribute(ariaAttribute, labelledByElements.join(","));
|
|
2766
|
-
}
|
|
2767
|
-
else {
|
|
2768
|
-
parent.removeAttribute(ariaAttribute);
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
constructor() {
|
|
2773
|
-
this.cls = cls;
|
|
2774
|
-
this.getBooleanAsString = getBooleanAsString;
|
|
2775
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
2776
|
-
this.autoDisable = input(defaultProps$o["autoDisable"], ...(ngDevMode ? [{ debugName: "autoDisable" }] : []));
|
|
2777
|
-
this.overlay = input(...(ngDevMode ? [undefined, { debugName: "overlay" }] : []));
|
|
2778
|
-
this.state = input(...(ngDevMode ? [undefined, { debugName: "state" }] : []));
|
|
2779
|
-
this.indeterminate = input(defaultProps$o["indeterminate"], ...(ngDevMode ? [{ debugName: "indeterminate" }] : []));
|
|
2780
|
-
this.delay = input(...(ngDevMode ? [undefined, { debugName: "delay" }] : []));
|
|
2781
|
-
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
2782
|
-
this.max = input(...(ngDevMode ? [undefined, { debugName: "max" }] : []));
|
|
2783
|
-
this.role = input(...(ngDevMode ? [undefined, { debugName: "role" }] : []));
|
|
2784
|
-
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : []));
|
|
2785
|
-
this.size = input(defaultProps$o["size"], ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
2786
|
-
this.variant = input(defaultProps$o["variant"], ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
2787
|
-
this.showLabel = input(...(ngDevMode ? [undefined, { debugName: "showLabel" }] : []));
|
|
2788
|
-
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
2789
|
-
this.progressText = input(...(ngDevMode ? [undefined, { debugName: "progressText" }] : []));
|
|
2790
|
-
this.showProgressText = input(...(ngDevMode ? [undefined, { debugName: "showProgressText" }] : []));
|
|
2791
|
-
this.timeout = output();
|
|
2792
|
-
this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : []));
|
|
2793
|
-
this._id = signal(DEFAULT_ID, ...(ngDevMode ? [{ debugName: "_id" }] : []));
|
|
2794
|
-
this._loadingState = signal("inactive", ...(ngDevMode ? [{ debugName: "_loadingState" }] : []));
|
|
2795
|
-
this._previousLoadingState = signal(undefined, ...(ngDevMode ? [{ debugName: "_previousLoadingState" }] : []));
|
|
2796
|
-
this._style = signal({}, ...(ngDevMode ? [{ debugName: "_style" }] : []));
|
|
2797
|
-
this.initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : []));
|
|
2798
|
-
if (typeof window !== "undefined") {
|
|
2799
|
-
effect(() => {
|
|
2800
|
-
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2801
|
-
this._ref();
|
|
2802
|
-
this.initialized();
|
|
2803
|
-
this.autoDisable();
|
|
2804
|
-
this._loadingState();
|
|
2805
|
-
// ---
|
|
2806
|
-
this.handleParentDisabled();
|
|
2807
|
-
}, {
|
|
2808
|
-
// Enable writing to signals inside effects
|
|
2809
|
-
});
|
|
2810
|
-
effect(() => {
|
|
2811
|
-
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2812
|
-
this._ref();
|
|
2813
|
-
this.initialized();
|
|
2814
|
-
this._loadingState();
|
|
2815
|
-
this.overlay();
|
|
2816
|
-
this._id();
|
|
2817
|
-
// ---
|
|
2818
|
-
this.handleParentAria(false);
|
|
2819
|
-
}, {
|
|
2820
|
-
// Enable writing to signals inside effects
|
|
2821
|
-
});
|
|
2822
|
-
effect(() => {
|
|
2823
|
-
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2824
|
-
this._loadingState();
|
|
2825
|
-
// "props.timeout" is an event skip it.
|
|
2826
|
-
// ---
|
|
2827
|
-
if (this.timeout) {
|
|
2828
|
-
// Not merged if as workaround for angular
|
|
2829
|
-
if (this._loadingState() !== "inactive" &&
|
|
2830
|
-
this._loadingState() !== this._previousLoadingState()) {
|
|
2831
|
-
this._previousLoadingState.set(this._loadingState());
|
|
2832
|
-
void delay(() => {
|
|
2833
|
-
if (this.timeout) {
|
|
2834
|
-
this.timeout.emit(this._loadingState());
|
|
2835
|
-
}
|
|
2836
|
-
}, this._loadingState() === "active" ? 5000 : 2000);
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
}, {
|
|
2840
|
-
// Enable writing to signals inside effects
|
|
2841
|
-
});
|
|
2842
|
-
effect(() => {
|
|
2843
|
-
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2844
|
-
this.state();
|
|
2845
|
-
// ---
|
|
2846
|
-
if (this._loadingState() === this.state())
|
|
2847
|
-
return;
|
|
2848
|
-
if (this.state()) {
|
|
2849
|
-
this._loadingState.set(this.state());
|
|
2850
|
-
}
|
|
2851
|
-
else if (this.indeterminate() === undefined ||
|
|
2852
|
-
this.indeterminate()) {
|
|
2853
|
-
this._loadingState.set("active");
|
|
2854
|
-
}
|
|
2855
|
-
else {
|
|
2856
|
-
this._loadingState.set("inactive");
|
|
2857
|
-
}
|
|
2858
|
-
}, {
|
|
2859
|
-
// Enable writing to signals inside effects
|
|
2860
|
-
});
|
|
2861
|
-
effect(() => {
|
|
2862
|
-
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2863
|
-
this._ref();
|
|
2864
|
-
this.delay();
|
|
2865
|
-
// ---
|
|
2866
|
-
if (this._ref()?.nativeElement) {
|
|
2867
|
-
if (this.delay() === "slow" || this.delay() === "fast") {
|
|
2868
|
-
void delay(() => {
|
|
2869
|
-
if (this._ref()?.nativeElement) {
|
|
2870
|
-
(this._ref()?.nativeElement).dataset["delay"] = "";
|
|
2871
|
-
}
|
|
2872
|
-
}, this.delay() === "slow" ? 500 : 250);
|
|
2873
|
-
}
|
|
2874
|
-
}
|
|
2875
|
-
}, {
|
|
2876
|
-
// Enable writing to signals inside effects
|
|
2877
|
-
});
|
|
2878
|
-
effect(() => {
|
|
2879
|
-
// --- Mitosis: Workaround to make sure the effect() is triggered ---
|
|
2880
|
-
this.indeterminate();
|
|
2881
|
-
this.value();
|
|
2882
|
-
this.max();
|
|
2883
|
-
// ---
|
|
2884
|
-
this._style.set({
|
|
2885
|
-
"--db-loading-indicator-percentage": this.getPercentage(),
|
|
2886
|
-
});
|
|
2887
|
-
}, {
|
|
2888
|
-
// Enable writing to signals inside effects
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
/**
|
|
2893
|
-
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2894
|
-
* @param element the ref for the component
|
|
2895
|
-
* @param customElementSelector the custom element like `my-component`
|
|
2896
|
-
*/
|
|
2897
|
-
enableAttributePassing(element, customElementSelector) {
|
|
2898
|
-
const parent = element?.closest(customElementSelector);
|
|
2899
|
-
if (element && parent) {
|
|
2900
|
-
const attributes = parent.attributes;
|
|
2901
|
-
for (let i = 0; i < attributes.length; i++) {
|
|
2902
|
-
const attr = attributes.item(i);
|
|
2903
|
-
if (attr &&
|
|
2904
|
-
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
2905
|
-
element.setAttribute(attr.name, attr.value);
|
|
2906
|
-
parent.removeAttribute(attr.name);
|
|
2907
|
-
}
|
|
2908
|
-
if (attr && attr.name === "class") {
|
|
2909
|
-
const isWebComponent = attr.value.includes("hydrated");
|
|
2910
|
-
const value = attr.value.replace("hydrated", "").trim();
|
|
2911
|
-
const currentClass = element.getAttribute("class");
|
|
2912
|
-
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
2913
|
-
if (isWebComponent) {
|
|
2914
|
-
// Stencil is using this class for lazy loading component
|
|
2915
|
-
parent.setAttribute("class", "hydrated");
|
|
2916
|
-
}
|
|
2917
|
-
else {
|
|
2918
|
-
parent.removeAttribute(attr.name);
|
|
2919
|
-
}
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
ngAfterViewInit() {
|
|
2925
|
-
if (typeof window !== "undefined") {
|
|
2926
|
-
const element = this._ref()?.nativeElement;
|
|
2927
|
-
this.enableAttributePassing(element, "db-loading-indicator");
|
|
2928
|
-
this._id.set(this.id() || "loading-indicator-" + uuid());
|
|
2929
|
-
this.initialized.set(true);
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
ngOnDestroy() {
|
|
2933
|
-
this.handleParentAria(true);
|
|
2934
|
-
this.handleParentDisabled();
|
|
2935
|
-
}
|
|
2936
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBLoadingIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2937
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBLoadingIndicator, isStandalone: true, selector: "db-loading-indicator", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, autoDisable: { classPropertyName: "autoDisable", publicName: "autoDisable", isSignal: true, isRequired: false, transformFunction: null }, overlay: { classPropertyName: "overlay", publicName: "overlay", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, progressText: { classPropertyName: "progressText", publicName: "progressText", isSignal: true, isRequired: false, transformFunction: null }, showProgressText: { classPropertyName: "showProgressText", publicName: "showProgressText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { timeout: "timeout" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<div
|
|
2938
|
-
#_ref
|
|
2939
|
-
[class]="cls('db-loading-indicator', className())"
|
|
2940
|
-
[ngStyle]="_style()"
|
|
2941
|
-
[attr.data-indeterminate]="getBooleanAsString(indeterminate())"
|
|
2942
|
-
[attr.data-size]="size()"
|
|
2943
|
-
[attr.data-variant]="variant()"
|
|
2944
|
-
[attr.data-delay]="delay()"
|
|
2945
|
-
[attr.data-state]="_loadingState()"
|
|
2946
|
-
[attr.data-overlay]="getBooleanAsString(overlay())"
|
|
2947
|
-
>
|
|
2948
|
-
@if(variant() !== 'progress-bar'){
|
|
2949
|
-
<svg
|
|
2950
|
-
class="db-loading-indicator-circle"
|
|
2951
|
-
aria-hidden="true"
|
|
2952
|
-
[attr.viewBox]="variant() === 'inline' ? '10 10 20 20' : '32 32 64 64'"
|
|
2953
|
-
>
|
|
2954
|
-
<circle class="db-loading-indicator-circle-track"></circle>
|
|
2955
|
-
<circle class="db-loading-indicator-circle-segment"></circle>
|
|
2956
|
-
</svg>
|
|
2957
|
-
}
|
|
2958
|
-
<div [attr.role]="getRole()">
|
|
2959
|
-
<label
|
|
2960
|
-
[attr.data-show-label]="getBooleanAsString(showLabel())"
|
|
2961
|
-
[attr.id]="_id()"
|
|
2962
|
-
>@if(label()){ {{label()}} }@else{
|
|
2963
|
-
<ng-content></ng-content>
|
|
2964
|
-
}
|
|
2965
|
-
<progress
|
|
2966
|
-
[attr.value]="indeterminate() ? undefined : value() ?? 0"
|
|
2967
|
-
[attr.max]="indeterminate() ? undefined : max() ?? 100"
|
|
2968
|
-
>
|
|
2969
|
-
@if(indeterminate()){ {{undefined}} }@else{ {{progressText()}} }
|
|
2970
|
-
</progress></label
|
|
2971
|
-
>
|
|
2972
|
-
@if(!indeterminate()){
|
|
2973
|
-
<span
|
|
2974
|
-
aria-hidden="true"
|
|
2975
|
-
[attr.data-show-progress-text]="getBooleanAsString(showProgressText())"
|
|
2976
|
-
>{{progressText()}}</span
|
|
2977
|
-
>
|
|
2978
|
-
}
|
|
2979
|
-
</div>
|
|
2980
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
2981
|
-
}
|
|
2982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBLoadingIndicator, decorators: [{
|
|
2983
|
-
type: Component,
|
|
2984
|
-
args: [{ selector: "db-loading-indicator", standalone: true, imports: [CommonModule], template: `<div
|
|
2985
|
-
#_ref
|
|
2986
|
-
[class]="cls('db-loading-indicator', className())"
|
|
2987
|
-
[ngStyle]="_style()"
|
|
2988
|
-
[attr.data-indeterminate]="getBooleanAsString(indeterminate())"
|
|
2989
|
-
[attr.data-size]="size()"
|
|
2990
|
-
[attr.data-variant]="variant()"
|
|
2991
|
-
[attr.data-delay]="delay()"
|
|
2992
|
-
[attr.data-state]="_loadingState()"
|
|
2993
|
-
[attr.data-overlay]="getBooleanAsString(overlay())"
|
|
2994
|
-
>
|
|
2995
|
-
@if(variant() !== 'progress-bar'){
|
|
2996
|
-
<svg
|
|
2997
|
-
class="db-loading-indicator-circle"
|
|
2998
|
-
aria-hidden="true"
|
|
2999
|
-
[attr.viewBox]="variant() === 'inline' ? '10 10 20 20' : '32 32 64 64'"
|
|
3000
|
-
>
|
|
3001
|
-
<circle class="db-loading-indicator-circle-track"></circle>
|
|
3002
|
-
<circle class="db-loading-indicator-circle-segment"></circle>
|
|
3003
|
-
</svg>
|
|
3004
|
-
}
|
|
3005
|
-
<div [attr.role]="getRole()">
|
|
3006
|
-
<label
|
|
3007
|
-
[attr.data-show-label]="getBooleanAsString(showLabel())"
|
|
3008
|
-
[attr.id]="_id()"
|
|
3009
|
-
>@if(label()){ {{label()}} }@else{
|
|
3010
|
-
<ng-content></ng-content>
|
|
3011
|
-
}
|
|
3012
|
-
<progress
|
|
3013
|
-
[attr.value]="indeterminate() ? undefined : value() ?? 0"
|
|
3014
|
-
[attr.max]="indeterminate() ? undefined : max() ?? 100"
|
|
3015
|
-
>
|
|
3016
|
-
@if(indeterminate()){ {{undefined}} }@else{ {{progressText()}} }
|
|
3017
|
-
</progress></label
|
|
3018
|
-
>
|
|
3019
|
-
@if(!indeterminate()){
|
|
3020
|
-
<span
|
|
3021
|
-
aria-hidden="true"
|
|
3022
|
-
[attr.data-show-progress-text]="getBooleanAsString(showProgressText())"
|
|
3023
|
-
>{{progressText()}}</span
|
|
3024
|
-
>
|
|
3025
|
-
}
|
|
3026
|
-
</div>
|
|
3027
|
-
</div> `, styles: [":host{display:contents}\n"] }]
|
|
3028
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], autoDisable: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisable", required: false }] }], overlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlay", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], progressText: [{ type: i0.Input, args: [{ isSignal: true, alias: "progressText", required: false }] }], showProgressText: [{ type: i0.Input, args: [{ isSignal: true, alias: "showProgressText", required: false }] }], timeout: [{ type: i0.Output, args: ["timeout"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
|
|
3029
|
-
|
|
3030
2746
|
const defaultProps$n = {};
|
|
3031
2747
|
class DBTooltip {
|
|
3032
2748
|
handleClick(event) {
|
|
@@ -3052,7 +2768,7 @@ class DBTooltip {
|
|
|
3052
2768
|
return;
|
|
3053
2769
|
if (this._ref()?.nativeElement) {
|
|
3054
2770
|
// This is a workaround for angular
|
|
3055
|
-
delay(() => {
|
|
2771
|
+
void delay(() => {
|
|
3056
2772
|
// Due to race conditions we need to check for _ref again
|
|
3057
2773
|
if (this._ref()?.nativeElement) {
|
|
3058
2774
|
handleFixedPopover(this._ref()?.nativeElement, parent, this.placement() ?? "bottom");
|
|
@@ -3103,6 +2819,7 @@ class DBTooltip {
|
|
|
3103
2819
|
if (this._ref()?.nativeElement && this.initialized() && this._id()) {
|
|
3104
2820
|
const parent = this.getParent();
|
|
3105
2821
|
if (parent) {
|
|
2822
|
+
this.handleAutoPlacement(parent);
|
|
3106
2823
|
["mouseenter", "focusin"].forEach((event) => {
|
|
3107
2824
|
parent.addEventListener(event, () => this.handleEnter(parent));
|
|
3108
2825
|
});
|
|
@@ -3826,8 +3543,8 @@ class DBCustomSelect {
|
|
|
3826
3543
|
this.searchLabel = input(...(ngDevMode ? [undefined, { debugName: "searchLabel" }] : []));
|
|
3827
3544
|
this.searchPlaceholder = input(...(ngDevMode ? [undefined, { debugName: "searchPlaceholder" }] : []));
|
|
3828
3545
|
this.listLabel = input(...(ngDevMode ? [undefined, { debugName: "listLabel" }] : []));
|
|
3829
|
-
this.noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : []));
|
|
3830
3546
|
this.loadingText = input(...(ngDevMode ? [undefined, { debugName: "loadingText" }] : []));
|
|
3547
|
+
this.noResultsText = input(...(ngDevMode ? [undefined, { debugName: "noResultsText" }] : []));
|
|
3831
3548
|
this.mobileCloseButtonText = input(...(ngDevMode ? [undefined, { debugName: "mobileCloseButtonText" }] : []));
|
|
3832
3549
|
this.showClearSelection = input(defaultProps$l["showClearSelection"], ...(ngDevMode ? [{ debugName: "showClearSelection" }] : []));
|
|
3833
3550
|
this.clearSelectionText = input(defaultProps$l["clearSelectionText"], ...(ngDevMode ? [{ debugName: "clearSelectionText" }] : []));
|
|
@@ -4221,7 +3938,7 @@ class DBCustomSelect {
|
|
|
4221
3938
|
this.abortController()?.abort();
|
|
4222
3939
|
}
|
|
4223
3940
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4224
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBCustomSelect, isStandalone: true, selector: "db-custom-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, showNoResults: { classPropertyName: "showNoResults", publicName: "showNoResults", isSignal: true, isRequired: false, transformFunction: null }, showLoading: { classPropertyName: "showLoading", publicName: "showLoading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, showSelectAll: { classPropertyName: "showSelectAll", publicName: "showSelectAll", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectedLabels: { classPropertyName: "selectedLabels", publicName: "selectedLabels", isSignal: true, isRequired: false, transformFunction: null }, transformSelectedLabels: { classPropertyName: "transformSelectedLabels", publicName: "transformSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectedType: { classPropertyName: "selectedType", publicName: "selectedType", isSignal: true, isRequired: false, transformFunction: null }, amountText: { classPropertyName: "amountText", publicName: "amountText", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagsTexts: { classPropertyName: "removeTagsTexts", publicName: "removeTagsTexts", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, searchFilter: { classPropertyName: "searchFilter", publicName: "searchFilter", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, formFieldWidth: { classPropertyName: "formFieldWidth", publicName: "formFieldWidth", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, selectedPrefix: { classPropertyName: "selectedPrefix", publicName: "selectedPrefix", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null }, searchLabel: { classPropertyName: "searchLabel", publicName: "searchLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, listLabel: { classPropertyName: "listLabel", publicName: "listLabel", isSignal: true, isRequired: false, transformFunction: null },
|
|
3941
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DBCustomSelect, isStandalone: true, selector: "db-custom-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalidMessage: { classPropertyName: "invalidMessage", publicName: "invalidMessage", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showMessage: { classPropertyName: "showMessage", publicName: "showMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, showNoResults: { classPropertyName: "showNoResults", publicName: "showNoResults", isSignal: true, isRequired: false, transformFunction: null }, showLoading: { classPropertyName: "showLoading", publicName: "showLoading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, showSelectAll: { classPropertyName: "showSelectAll", publicName: "showSelectAll", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectedLabels: { classPropertyName: "selectedLabels", publicName: "selectedLabels", isSignal: true, isRequired: false, transformFunction: null }, transformSelectedLabels: { classPropertyName: "transformSelectedLabels", publicName: "transformSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectedType: { classPropertyName: "selectedType", publicName: "selectedType", isSignal: true, isRequired: false, transformFunction: null }, amountText: { classPropertyName: "amountText", publicName: "amountText", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagsTexts: { classPropertyName: "removeTagsTexts", publicName: "removeTagsTexts", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, searchFilter: { classPropertyName: "searchFilter", publicName: "searchFilter", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, formFieldWidth: { classPropertyName: "formFieldWidth", publicName: "formFieldWidth", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showRequiredAsterisk: { classPropertyName: "showRequiredAsterisk", publicName: "showRequiredAsterisk", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, selectedPrefix: { classPropertyName: "selectedPrefix", publicName: "selectedPrefix", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null }, searchLabel: { classPropertyName: "searchLabel", publicName: "searchLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, listLabel: { classPropertyName: "listLabel", publicName: "listLabel", isSignal: true, isRequired: false, transformFunction: null }, loadingText: { classPropertyName: "loadingText", publicName: "loadingText", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, mobileCloseButtonText: { classPropertyName: "mobileCloseButtonText", publicName: "mobileCloseButtonText", isSignal: true, isRequired: false, transformFunction: null }, showClearSelection: { classPropertyName: "showClearSelection", publicName: "showClearSelection", isSignal: true, isRequired: false, transformFunction: null }, clearSelectionText: { classPropertyName: "clearSelectionText", publicName: "clearSelectionText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { values: "valuesChange", disabled: "disabledChange", amountChange: "amountChange", dropdownToggle: "dropdownToggle", optionSelected: "optionSelected", search: "search" }, providers: [{
|
|
4225
3942
|
provide: NG_VALUE_ACCESSOR,
|
|
4226
3943
|
useExisting: DBCustomSelect,
|
|
4227
3944
|
multi: true
|
|
@@ -4316,18 +4033,15 @@ class DBCustomSelect {
|
|
|
4316
4033
|
(input)="handleSearch($event)"
|
|
4317
4034
|
></db-input>
|
|
4318
4035
|
</div>
|
|
4319
|
-
} @if(_hasNoOptions() || showLoading()){
|
|
4320
|
-
<db-loading-indicator
|
|
4321
|
-
[id]="_infoTextId()"
|
|
4322
|
-
>{{loadingText() ?? DEFAULT_MESSAGE}}</db-loading-indicator
|
|
4323
|
-
>
|
|
4324
|
-
}@else{
|
|
4036
|
+
} @if(_hasNoOptions() || showLoading()){
|
|
4325
4037
|
<db-infotext
|
|
4326
|
-
semantic="warning"
|
|
4327
4038
|
[id]="_infoTextId()"
|
|
4328
|
-
|
|
4039
|
+
[icon]="showLoading() ? 'circular_arrows' : undefined"
|
|
4040
|
+
[semantic]="showLoading() ? 'informational' : 'warning'"
|
|
4041
|
+
>{{(showLoading() ? loadingText() : noResultsText()) ??
|
|
4042
|
+
DEFAULT_MESSAGE}}</db-infotext
|
|
4329
4043
|
>
|
|
4330
|
-
}
|
|
4044
|
+
}@else{
|
|
4331
4045
|
<ng-container
|
|
4332
4046
|
>@if(selectAllEnabled()){
|
|
4333
4047
|
<div>
|
|
@@ -4433,7 +4147,7 @@ class DBCustomSelect {
|
|
|
4433
4147
|
role="status"
|
|
4434
4148
|
>{{_voiceOverFallback()}}</span
|
|
4435
4149
|
>
|
|
4436
|
-
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "invalidMessage", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIconLeading", "showIcon", "iconLeading", "icon", "iconTrailing", "showRequiredAsterisk", "showIconTrailing", "label", "fieldSizing", "name", "type", "multiple", "accept", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "enterkeyhint", "inputmode", "ariaDescribedBy", "messageSize", "messageIcon", "validMessageSize", "invalidMessageSize"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["id", "isGroupTitle", "showDivider", "type", "checked", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }, { kind: "component", type:
|
|
4150
|
+
</div> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBTag, selector: "db-tag", inputs: ["removeButton", "id", "className", "semantic", "emphasis", "icon", "showCheckState", "showIcon", "noText", "overflow", "text", "behavior"], outputs: ["remove"] }, { kind: "component", type: DBCustomSelectDropdown, selector: "db-custom-select-dropdown", inputs: ["id", "className", "width"] }, { kind: "component", type: DBInput, selector: "db-input", inputs: ["id", "invalidMessage", "dataListId", "message", "showMessage", "value", "validMessage", "validation", "required", "minLength", "maxLength", "pattern", "dataList", "className", "variant", "showLabel", "showIconLeading", "showIcon", "iconLeading", "icon", "iconTrailing", "showRequiredAsterisk", "showIconTrailing", "label", "fieldSizing", "name", "type", "multiple", "accept", "placeholder", "disabled", "step", "maxlength", "minlength", "max", "min", "readOnly", "readonly", "form", "size", "autocomplete", "autofocus", "enterkeyhint", "inputmode", "ariaDescribedBy", "messageSize", "messageIcon", "validMessageSize", "invalidMessageSize"], outputs: ["valueChange", "disabledChange", "input", "change", "blur", "focus"] }, { kind: "component", type: DBCustomSelectList, selector: "db-custom-select-list", inputs: ["multiple", "label", "id", "className"] }, { kind: "component", type: DBCustomSelectListItem, selector: "db-custom-select-list-item", inputs: ["id", "isGroupTitle", "showDivider", "type", "checked", "className", "groupTitle", "icon", "showIcon", "name", "disabled", "value", "label"], outputs: ["checkedChange", "disabledChange", "change"] }, { kind: "component", type: DBInfotext, selector: "db-infotext", inputs: ["id", "className", "icon", "semantic", "size", "showIcon", "text"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBTooltip, selector: "db-tooltip", inputs: ["id", "variant", "placement", "className", "emphasis", "animation", "delay", "width", "showArrow"] }] }); }
|
|
4437
4151
|
}
|
|
4438
4152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DBCustomSelect, decorators: [{
|
|
4439
4153
|
type: Component,
|
|
@@ -4449,7 +4163,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4449
4163
|
DBCustomSelectList,
|
|
4450
4164
|
DBCustomSelectListItem,
|
|
4451
4165
|
DBInfotext,
|
|
4452
|
-
DBLoadingIndicator,
|
|
4453
4166
|
DBButton,
|
|
4454
4167
|
DBTooltip,
|
|
4455
4168
|
], template: `<div
|
|
@@ -4543,18 +4256,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4543
4256
|
(input)="handleSearch($event)"
|
|
4544
4257
|
></db-input>
|
|
4545
4258
|
</div>
|
|
4546
|
-
} @if(_hasNoOptions() || showLoading()){
|
|
4547
|
-
<db-loading-indicator
|
|
4548
|
-
[id]="_infoTextId()"
|
|
4549
|
-
>{{loadingText() ?? DEFAULT_MESSAGE}}</db-loading-indicator
|
|
4550
|
-
>
|
|
4551
|
-
}@else{
|
|
4259
|
+
} @if(_hasNoOptions() || showLoading()){
|
|
4552
4260
|
<db-infotext
|
|
4553
|
-
semantic="warning"
|
|
4554
4261
|
[id]="_infoTextId()"
|
|
4555
|
-
|
|
4262
|
+
[icon]="showLoading() ? 'circular_arrows' : undefined"
|
|
4263
|
+
[semantic]="showLoading() ? 'informational' : 'warning'"
|
|
4264
|
+
>{{(showLoading() ? loadingText() : noResultsText()) ??
|
|
4265
|
+
DEFAULT_MESSAGE}}</db-infotext
|
|
4556
4266
|
>
|
|
4557
|
-
}
|
|
4267
|
+
}@else{
|
|
4558
4268
|
<ng-container
|
|
4559
4269
|
>@if(selectAllEnabled()){
|
|
4560
4270
|
<div>
|
|
@@ -4661,7 +4371,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4661
4371
|
>{{_voiceOverFallback()}}</span
|
|
4662
4372
|
>
|
|
4663
4373
|
</div> `, styles: [":host{display:contents}\n"] }]
|
|
4664
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], showNoResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNoResults", required: false }] }], showLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoading", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectAll", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }], selectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedLabels", required: false }] }], transformSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformSelectedLabels", required: false }] }], selectedType: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedType", required: false }] }], amountText: [{ type: i0.Input, args: [{ isSignal: true, alias: "amountText", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], removeTagsTexts: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagsTexts", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], searchFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchFilter", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], formFieldWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "formFieldWidth", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], selectedPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPrefix", required: false }] }], dropdownWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownWidth", required: false }] }], searchLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLabel", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], listLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listLabel", required: false }] }],
|
|
4374
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], invalidMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidMessage", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessage", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], showNoResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNoResults", required: false }] }], showLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoading", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectAll", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }], selectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedLabels", required: false }] }], transformSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "transformSelectedLabels", required: false }] }], selectedType: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedType", required: false }] }], amountText: [{ type: i0.Input, args: [{ isSignal: true, alias: "amountText", required: false }] }], validMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "validMessage", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], removeTagsTexts: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagsTexts", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], searchFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchFilter", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], formFieldWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "formFieldWidth", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showRequiredAsterisk: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredAsterisk", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], selectedPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPrefix", required: false }] }], dropdownWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownWidth", required: false }] }], searchLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLabel", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], listLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listLabel", required: false }] }], loadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingText", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], mobileCloseButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileCloseButtonText", required: false }] }], showClearSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClearSelection", required: false }] }], clearSelectionText: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearSelectionText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], amountChange: [{ type: i0.Output, args: ["amountChange"] }], dropdownToggle: [{ type: i0.Output, args: ["dropdownToggle"] }], optionSelected: [{ type: i0.Output, args: ["optionSelected"] }], search: [{ type: i0.Output, args: ["search"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }], selectRef: [{ type: i0.ViewChild, args: ["selectRef", { isSignal: true }] }], detailsRef: [{ type: i0.ViewChild, args: ["detailsRef", { isSignal: true }] }], searchInputRef: [{ type: i0.ViewChild, args: ["searchInputRef", { isSignal: true }] }], selectAllRef: [{ type: i0.ViewChild, args: ["selectAllRef", { isSignal: true }] }] } });
|
|
4665
4375
|
|
|
4666
4376
|
const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'];
|
|
4667
4377
|
|
|
@@ -6243,7 +5953,7 @@ class DBPopover {
|
|
|
6243
5953
|
const article = this._ref()?.nativeElement.querySelector("article");
|
|
6244
5954
|
if (article) {
|
|
6245
5955
|
// This is a workaround for angular
|
|
6246
|
-
delay(() => {
|
|
5956
|
+
void delay(() => {
|
|
6247
5957
|
handleFixedPopover(article, this._ref()?.nativeElement, this.placement() ?? "bottom");
|
|
6248
5958
|
}, 1);
|
|
6249
5959
|
}
|
|
@@ -8784,12 +8494,9 @@ const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
|
8784
8494
|
const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
8785
8495
|
const AlignmentList = ['start', 'center'];
|
|
8786
8496
|
|
|
8787
|
-
const LoadingIndicatorVariantList = ['progress-bar', 'onsite', 'inline'];
|
|
8788
|
-
const LoadingIndicatorStateList = ['inactive', 'active', 'successful', 'critical'];
|
|
8789
|
-
|
|
8790
8497
|
/**
|
|
8791
8498
|
* Generated bundle index. Do not edit.
|
|
8792
8499
|
*/
|
|
8793
8500
|
|
|
8794
|
-
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink,
|
|
8501
|
+
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTabs, DBTag, DBTextarea, DBTooltip, DB_UX_LOCAL_STORAGE_FRAMEWORK, DB_UX_LOCAL_STORAGE_MODE, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNotificationRole, getNumber, getOptionKey, getSearchInput, getStep, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
8795
8502
|
//# sourceMappingURL=db-ux-ngx-core-components.mjs.map
|