blue-web 1.21.0 → 1.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +164 -164
- package/README.md +74 -74
- package/dist/js/actions.d.ts +6 -6
- package/dist/js/color-mode.d.ts +4 -4
- package/dist/js/dialog.d.ts +18 -18
- package/dist/js/edit-view.d.ts +14 -14
- package/dist/js/edit-view.js +2 -2
- package/dist/js/input-splitted.d.ts +19 -19
- package/dist/js/odometer.bundle.js +1 -1
- package/dist/js/odometer.d.ts +30 -17
- package/dist/js/odometer.js +38 -3
- package/dist/js/progress.d.ts +2 -2
- package/dist/js/read-view.d.ts +35 -35
- package/dist/js/read-view.js +18 -18
- package/dist/js/select-list.d.ts +46 -46
- package/dist/js/select-list.js +17 -17
- package/dist/js/shared.d.ts +14 -14
- package/dist/js/side-layout.d.ts +7 -7
- package/dist/js/utils.d.ts +18 -18
- package/dist/js/utils.js +6 -6
- package/dist/merged.scss +2170 -2323
- package/dist/neu.scss +92 -92
- package/dist/style.css +48 -55
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +4 -4
- package/dist/style.scss +62 -61
- package/dist/styles/_action-menu.scss +57 -57
- package/dist/styles/_actions.scss +37 -37
- package/dist/styles/_anchor.scss +42 -42
- package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
- package/dist/styles/_bootstrap-variables.scss +46 -46
- package/dist/styles/_bootstrap.scss +64 -65
- package/dist/styles/_button-icon-wrapper.scss +28 -28
- package/dist/styles/_buttons.scss +120 -110
- package/dist/styles/_collapse.scss +72 -72
- package/dist/styles/_container-grid.scss +52 -52
- package/dist/styles/_devexpress.scss +104 -104
- package/dist/styles/_general.scss +55 -74
- package/dist/styles/_hover.scss +37 -37
- package/dist/styles/_input-group.scss +29 -29
- package/dist/styles/_inter.scss +19 -19
- package/dist/styles/_intro.scss +22 -0
- package/dist/styles/_keyframes.scss +73 -73
- package/dist/styles/_layout.scss +175 -178
- package/dist/styles/_menu-item.scss +86 -255
- package/dist/styles/_mixins.scss +6 -6
- package/dist/styles/_modal.scss +118 -118
- package/dist/styles/_page-header.scss +14 -14
- package/dist/styles/_scrollspy.scss +78 -73
- package/dist/styles/_status.scss +131 -131
- package/dist/styles/_text-icons.scss +15 -15
- package/dist/styles/_tooltips.scss +150 -150
- package/dist/styles/_utils.scss +20 -20
- package/dist/styles/_variables.scss +128 -127
- package/dist/styles/mixins/_action-menu.scss +64 -64
- package/dist/styles/mixins/_custom-property.scss +10 -10
- package/dist/styles/mixins/_menu-item.scss +136 -136
- package/dist/styles/mixins/_misc.scss +7 -7
- package/dist/styles/mixins/_scroll-shadow.scss +9 -9
- package/dist/styles/mixins/_switch.scss +91 -91
- package/package.json +88 -88
- package/dist/container-grid.css +0 -196
- package/dist/js/auto-theme.bundle.js +0 -1
- package/dist/js/auto-theme.d.ts +0 -26
- package/dist/js/auto-theme.js +0 -169
- package/dist/js/button.bundle.js +0 -1
- package/dist/js/button.d.ts +0 -6
- package/dist/js/button.js +0 -16
- package/dist/js/dialog.bundle.js.LICENSE.txt +0 -5
- package/dist/js/dxf-viewer.js +0 -129
- package/dist/js/searchbox.bundle.js +0 -2
- package/dist/js/searchbox.bundle.js.LICENSE.txt +0 -11
- package/dist/js/searchbox.d.ts +0 -16
- package/dist/js/searchbox.js +0 -158
- package/dist/tailwind-main.css +0 -737
package/dist/js/odometer.d.ts
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
get
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Odometer web component for animated number display
|
|
3
|
+
*
|
|
4
|
+
* @element bl-odometer
|
|
5
|
+
* @attr {number} value - Current value to display
|
|
6
|
+
* @attr {number} max - Maximum value before showing "+"
|
|
7
|
+
* @fires change - Fired when value changes
|
|
8
|
+
* @cssprop --bl-odometer-duration - Transition duration for number animation (default: 0.4s)
|
|
9
|
+
*/
|
|
10
|
+
declare class Odometer extends HTMLElement {
|
|
11
|
+
private wrapper;
|
|
12
|
+
private _initialized;
|
|
13
|
+
private _resetTimer;
|
|
14
|
+
static get observedAttributes(): string[];
|
|
15
|
+
constructor();
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
private setup;
|
|
18
|
+
private rebuildNumbers;
|
|
19
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
20
|
+
private updateValue;
|
|
21
|
+
private clearResetTimer;
|
|
22
|
+
private scheduleResetChange;
|
|
23
|
+
private applyChangeState;
|
|
24
|
+
set value(value: number);
|
|
25
|
+
get value(): number;
|
|
26
|
+
set max(value: number);
|
|
27
|
+
get max(): number;
|
|
28
|
+
}
|
|
29
|
+
export { Odometer };
|
|
30
|
+
export default Odometer;
|
package/dist/js/odometer.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
/**
|
|
5
|
+
* Odometer web component for animated number display
|
|
6
|
+
*
|
|
7
|
+
* @element bl-odometer
|
|
8
|
+
* @attr {number} value - Current value to display
|
|
9
|
+
* @attr {number} max - Maximum value before showing "+"
|
|
10
|
+
* @fires change - Fired when value changes
|
|
11
|
+
* @cssprop --bl-odometer-duration - Transition duration for number animation (default: 0.4s)
|
|
12
|
+
*/
|
|
4
13
|
class Odometer extends HTMLElement {
|
|
5
14
|
static get observedAttributes() {
|
|
6
15
|
return ["value", "max"];
|
|
@@ -8,6 +17,7 @@ class Odometer extends HTMLElement {
|
|
|
8
17
|
constructor() {
|
|
9
18
|
super();
|
|
10
19
|
_defineProperty(this, "_initialized", false);
|
|
20
|
+
_defineProperty(this, "_resetTimer", null);
|
|
11
21
|
this.attachShadow({
|
|
12
22
|
mode: "open"
|
|
13
23
|
});
|
|
@@ -22,7 +32,7 @@ class Odometer extends HTMLElement {
|
|
|
22
32
|
}
|
|
23
33
|
setup() {
|
|
24
34
|
const style = document.createElement("style");
|
|
25
|
-
style.textContent = /* CSS */"\n :host {\n display: inline-flex;\n min-width: 1em;\n height: 1em;\n text-align: center;\n overflow: hidden;\n line-height: 1em;\n
|
|
35
|
+
style.textContent = /* CSS */"\n :host {\n display: inline-flex;\n min-width: 1em;\n height: 1em;\n text-align: center;\n overflow: hidden;\n line-height: 1em;\n }\n .numbers {\n display: flex;\n flex-direction: column;\n transition: transform var(--bl-odometer-duration, 0.4s) cubic-bezier(0.34, 1.56, 0.64, 1);\n }\n .numbers span {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 1em;\n }";
|
|
26
36
|
const wrapper = document.createElement("span");
|
|
27
37
|
wrapper.classList.add("numbers");
|
|
28
38
|
wrapper.setAttribute("aria-hidden", "true");
|
|
@@ -50,7 +60,10 @@ class Odometer extends HTMLElement {
|
|
|
50
60
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
51
61
|
if (newValue !== oldValue && this._initialized) {
|
|
52
62
|
if (name === "value") {
|
|
53
|
-
|
|
63
|
+
const prev = parseInt(oldValue !== null && oldValue !== void 0 ? oldValue : "0", 10) || 0;
|
|
64
|
+
const next = parseInt(newValue !== null && newValue !== void 0 ? newValue : "0", 10) || 0;
|
|
65
|
+
this.applyChangeState(prev, next);
|
|
66
|
+
this.updateValue(next);
|
|
54
67
|
} else if (name === "max") {
|
|
55
68
|
this.rebuildNumbers();
|
|
56
69
|
}
|
|
@@ -64,12 +77,34 @@ class Odometer extends HTMLElement {
|
|
|
64
77
|
const displayValue = value > max ? "".concat(max, "+") : "".concat(value);
|
|
65
78
|
this.setAttribute("aria-label", displayValue);
|
|
66
79
|
}
|
|
80
|
+
clearResetTimer() {
|
|
81
|
+
if (this._resetTimer !== null) {
|
|
82
|
+
clearTimeout(this._resetTimer);
|
|
83
|
+
this._resetTimer = null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
scheduleResetChange() {
|
|
87
|
+
this.clearResetTimer();
|
|
88
|
+
const delay = 3000;
|
|
89
|
+
this._resetTimer = window.setTimeout(() => {
|
|
90
|
+
this.removeAttribute("data-change");
|
|
91
|
+
this._resetTimer = null;
|
|
92
|
+
}, delay);
|
|
93
|
+
}
|
|
94
|
+
applyChangeState(previous, next) {
|
|
95
|
+
if (next > previous) {
|
|
96
|
+
this.setAttribute("data-change", "up");
|
|
97
|
+
this.scheduleResetChange();
|
|
98
|
+
} else if (next < previous) {
|
|
99
|
+
this.setAttribute("data-change", "down");
|
|
100
|
+
this.scheduleResetChange();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
67
103
|
set value(value) {
|
|
68
104
|
const current = this.value;
|
|
69
105
|
if (current !== value) {
|
|
70
106
|
this.setAttribute("value", String(value));
|
|
71
107
|
if (this._initialized) {
|
|
72
|
-
this.updateValue(value);
|
|
73
108
|
this.dispatchEvent(new CustomEvent("change", {
|
|
74
109
|
detail: {
|
|
75
110
|
value
|
package/dist/js/progress.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
package/dist/js/read-view.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A Web Component that displays a read view of its content and allows the user to switch to an edit view.
|
|
3
|
-
* Fires event "EditRequested" when the user clicks the read view.
|
|
4
|
-
* @element read-view
|
|
5
|
-
* @fires EditRequested
|
|
6
|
-
* @attr {boolean} disabled - Disables the component, preventing interactions and removing hover effects.
|
|
7
|
-
* @cssprop --bs-primary-rgb - The primary color as an RGB value.
|
|
8
|
-
* @cssprop --bs-secondary-bg-subtle - The subtle background color for the read view.
|
|
9
|
-
* @cssprop --bs-border-radius-sm - The border radius for the read view.
|
|
10
|
-
* @slot - The content to display in the read view.
|
|
11
|
-
* @example
|
|
12
|
-
* <bl-read-view id="my-read-view" onEditRequested="setEditing(true)">
|
|
13
|
-
* <a href="#">bla</a> {value}
|
|
14
|
-
* </bl-read-view>
|
|
15
|
-
* @example
|
|
16
|
-
* document.getElementById("my-read-view").addEventListener("EditRequested", () => {
|
|
17
|
-
* setEditing(true)
|
|
18
|
-
* })
|
|
19
|
-
*/
|
|
20
|
-
export declare class ReadView extends HTMLElement {
|
|
21
|
-
private button;
|
|
22
|
-
private container;
|
|
23
|
-
private startX;
|
|
24
|
-
private startY;
|
|
25
|
-
constructor();
|
|
26
|
-
static get observedAttributes(): string[];
|
|
27
|
-
connectedCallback(): void;
|
|
28
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
29
|
-
private render;
|
|
30
|
-
private updateDisabledState;
|
|
31
|
-
private onEditRequested;
|
|
32
|
-
private onMouseDown;
|
|
33
|
-
private mouseHasMovedAfterMouseDown;
|
|
34
|
-
private onReadViewClick;
|
|
35
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* A Web Component that displays a read view of its content and allows the user to switch to an edit view.
|
|
3
|
+
* Fires event "EditRequested" when the user clicks the read view.
|
|
4
|
+
* @element read-view
|
|
5
|
+
* @fires EditRequested
|
|
6
|
+
* @attr {boolean} disabled - Disables the component, preventing interactions and removing hover effects.
|
|
7
|
+
* @cssprop --bs-primary-rgb - The primary color as an RGB value.
|
|
8
|
+
* @cssprop --bs-secondary-bg-subtle - The subtle background color for the read view.
|
|
9
|
+
* @cssprop --bs-border-radius-sm - The border radius for the read view.
|
|
10
|
+
* @slot - The content to display in the read view.
|
|
11
|
+
* @example
|
|
12
|
+
* <bl-read-view id="my-read-view" onEditRequested="setEditing(true)">
|
|
13
|
+
* <a href="#">bla</a> {value}
|
|
14
|
+
* </bl-read-view>
|
|
15
|
+
* @example
|
|
16
|
+
* document.getElementById("my-read-view").addEventListener("EditRequested", () => {
|
|
17
|
+
* setEditing(true)
|
|
18
|
+
* })
|
|
19
|
+
*/
|
|
20
|
+
export declare class ReadView extends HTMLElement {
|
|
21
|
+
private button;
|
|
22
|
+
private container;
|
|
23
|
+
private startX;
|
|
24
|
+
private startY;
|
|
25
|
+
constructor();
|
|
26
|
+
static get observedAttributes(): string[];
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
29
|
+
private render;
|
|
30
|
+
private updateDisabledState;
|
|
31
|
+
private onEditRequested;
|
|
32
|
+
private onMouseDown;
|
|
33
|
+
private mouseHasMovedAfterMouseDown;
|
|
34
|
+
private onReadViewClick;
|
|
35
|
+
}
|
package/dist/js/read-view.js
CHANGED
|
@@ -3,24 +3,24 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
const DRAG_THRESHOLD = 5;
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* A Web Component that displays a read view of its content and allows the user to switch to an edit view.
|
|
8
|
-
* Fires event "EditRequested" when the user clicks the read view.
|
|
9
|
-
* @element read-view
|
|
10
|
-
* @fires EditRequested
|
|
11
|
-
* @attr {boolean} disabled - Disables the component, preventing interactions and removing hover effects.
|
|
12
|
-
* @cssprop --bs-primary-rgb - The primary color as an RGB value.
|
|
13
|
-
* @cssprop --bs-secondary-bg-subtle - The subtle background color for the read view.
|
|
14
|
-
* @cssprop --bs-border-radius-sm - The border radius for the read view.
|
|
15
|
-
* @slot - The content to display in the read view.
|
|
16
|
-
* @example
|
|
17
|
-
* <bl-read-view id="my-read-view" onEditRequested="setEditing(true)">
|
|
18
|
-
* <a href="#">bla</a> {value}
|
|
19
|
-
* </bl-read-view>
|
|
20
|
-
* @example
|
|
21
|
-
* document.getElementById("my-read-view").addEventListener("EditRequested", () => {
|
|
22
|
-
* setEditing(true)
|
|
23
|
-
* })
|
|
6
|
+
/**
|
|
7
|
+
* A Web Component that displays a read view of its content and allows the user to switch to an edit view.
|
|
8
|
+
* Fires event "EditRequested" when the user clicks the read view.
|
|
9
|
+
* @element read-view
|
|
10
|
+
* @fires EditRequested
|
|
11
|
+
* @attr {boolean} disabled - Disables the component, preventing interactions and removing hover effects.
|
|
12
|
+
* @cssprop --bs-primary-rgb - The primary color as an RGB value.
|
|
13
|
+
* @cssprop --bs-secondary-bg-subtle - The subtle background color for the read view.
|
|
14
|
+
* @cssprop --bs-border-radius-sm - The border radius for the read view.
|
|
15
|
+
* @slot - The content to display in the read view.
|
|
16
|
+
* @example
|
|
17
|
+
* <bl-read-view id="my-read-view" onEditRequested="setEditing(true)">
|
|
18
|
+
* <a href="#">bla</a> {value}
|
|
19
|
+
* </bl-read-view>
|
|
20
|
+
* @example
|
|
21
|
+
* document.getElementById("my-read-view").addEventListener("EditRequested", () => {
|
|
22
|
+
* setEditing(true)
|
|
23
|
+
* })
|
|
24
24
|
*/
|
|
25
25
|
export class ReadView extends HTMLElement {
|
|
26
26
|
constructor() {
|
package/dist/js/select-list.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
declare class BlSelectEvent extends Event {
|
|
2
|
-
static readonly eventName = "bl-select";
|
|
3
|
-
readonly index: number;
|
|
4
|
-
readonly item: HTMLElement;
|
|
5
|
-
constructor(index: number, item: HTMLElement);
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A Web Component that provides a keyboard-accessible selectable list, typically used for dropdowns or autocomplete lists.
|
|
9
|
-
* Together with `popover` and CSS Anchoring, it's also useful to create a dropdown list.
|
|
10
|
-
* Supports keyboard navigation and selection, and integrates with an input element for combobox behavior.
|
|
11
|
-
*
|
|
12
|
-
* The Web Component will automatically set attributes for accessibility.
|
|
13
|
-
*
|
|
14
|
-
* @element bl-select-list
|
|
15
|
-
* @attr {string} for - The id of the input element to associate as the combobox controller.
|
|
16
|
-
* @attr {string} active-class - The CSS class name to apply to the active item (default: "active").
|
|
17
|
-
* @slot - The list options.
|
|
18
|
-
* @example
|
|
19
|
-
* <input id="my-input" />
|
|
20
|
-
* <bl-select-list for="my-input">
|
|
21
|
-
* <div>Option 1</div>
|
|
22
|
-
* <div>Option 2</div>
|
|
23
|
-
* </bl-select-list>
|
|
24
|
-
*/
|
|
25
|
-
declare class SelectList extends HTMLElement {
|
|
26
|
-
activeIndex: number;
|
|
27
|
-
items: HTMLElement[];
|
|
28
|
-
inputElement: HTMLElement | null;
|
|
29
|
-
slotElement: HTMLSlotElement | null;
|
|
30
|
-
observer: MutationObserver | null;
|
|
31
|
-
constructor();
|
|
32
|
-
get activeClass(): string;
|
|
33
|
-
connectedCallback(): void;
|
|
34
|
-
disconnectedCallback(): void;
|
|
35
|
-
handleChildrenChanged: () => void;
|
|
36
|
-
syncActiveIndexFromDataSelected(): void;
|
|
37
|
-
updateItems(): void;
|
|
38
|
-
onKeyDown(e: {
|
|
39
|
-
key: string;
|
|
40
|
-
preventDefault: () => void;
|
|
41
|
-
}): void;
|
|
42
|
-
updateActiveItem(): void;
|
|
43
|
-
select(index: number): void;
|
|
44
|
-
}
|
|
45
|
-
export { SelectList, BlSelectEvent };
|
|
46
|
-
export default SelectList;
|
|
1
|
+
declare class BlSelectEvent extends Event {
|
|
2
|
+
static readonly eventName = "bl-select";
|
|
3
|
+
readonly index: number;
|
|
4
|
+
readonly item: HTMLElement;
|
|
5
|
+
constructor(index: number, item: HTMLElement);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A Web Component that provides a keyboard-accessible selectable list, typically used for dropdowns or autocomplete lists.
|
|
9
|
+
* Together with `popover` and CSS Anchoring, it's also useful to create a dropdown list.
|
|
10
|
+
* Supports keyboard navigation and selection, and integrates with an input element for combobox behavior.
|
|
11
|
+
*
|
|
12
|
+
* The Web Component will automatically set attributes for accessibility.
|
|
13
|
+
*
|
|
14
|
+
* @element bl-select-list
|
|
15
|
+
* @attr {string} for - The id of the input element to associate as the combobox controller.
|
|
16
|
+
* @attr {string} active-class - The CSS class name to apply to the active item (default: "active").
|
|
17
|
+
* @slot - The list options.
|
|
18
|
+
* @example
|
|
19
|
+
* <input id="my-input" />
|
|
20
|
+
* <bl-select-list for="my-input">
|
|
21
|
+
* <div>Option 1</div>
|
|
22
|
+
* <div>Option 2</div>
|
|
23
|
+
* </bl-select-list>
|
|
24
|
+
*/
|
|
25
|
+
declare class SelectList extends HTMLElement {
|
|
26
|
+
activeIndex: number;
|
|
27
|
+
items: HTMLElement[];
|
|
28
|
+
inputElement: HTMLElement | null;
|
|
29
|
+
slotElement: HTMLSlotElement | null;
|
|
30
|
+
observer: MutationObserver | null;
|
|
31
|
+
constructor();
|
|
32
|
+
get activeClass(): string;
|
|
33
|
+
connectedCallback(): void;
|
|
34
|
+
disconnectedCallback(): void;
|
|
35
|
+
handleChildrenChanged: () => void;
|
|
36
|
+
syncActiveIndexFromDataSelected(): void;
|
|
37
|
+
updateItems(): void;
|
|
38
|
+
onKeyDown(e: {
|
|
39
|
+
key: string;
|
|
40
|
+
preventDefault: () => void;
|
|
41
|
+
}): void;
|
|
42
|
+
updateActiveItem(): void;
|
|
43
|
+
select(index: number): void;
|
|
44
|
+
}
|
|
45
|
+
export { SelectList, BlSelectEvent };
|
|
46
|
+
export default SelectList;
|
package/dist/js/select-list.js
CHANGED
|
@@ -12,23 +12,23 @@ class BlSelectEvent extends Event {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* A Web Component that provides a keyboard-accessible selectable list, typically used for dropdowns or autocomplete lists.
|
|
17
|
-
* Together with `popover` and CSS Anchoring, it's also useful to create a dropdown list.
|
|
18
|
-
* Supports keyboard navigation and selection, and integrates with an input element for combobox behavior.
|
|
19
|
-
*
|
|
20
|
-
* The Web Component will automatically set attributes for accessibility.
|
|
21
|
-
*
|
|
22
|
-
* @element bl-select-list
|
|
23
|
-
* @attr {string} for - The id of the input element to associate as the combobox controller.
|
|
24
|
-
* @attr {string} active-class - The CSS class name to apply to the active item (default: "active").
|
|
25
|
-
* @slot - The list options.
|
|
26
|
-
* @example
|
|
27
|
-
* <input id="my-input" />
|
|
28
|
-
* <bl-select-list for="my-input">
|
|
29
|
-
* <div>Option 1</div>
|
|
30
|
-
* <div>Option 2</div>
|
|
31
|
-
* </bl-select-list>
|
|
15
|
+
/**
|
|
16
|
+
* A Web Component that provides a keyboard-accessible selectable list, typically used for dropdowns or autocomplete lists.
|
|
17
|
+
* Together with `popover` and CSS Anchoring, it's also useful to create a dropdown list.
|
|
18
|
+
* Supports keyboard navigation and selection, and integrates with an input element for combobox behavior.
|
|
19
|
+
*
|
|
20
|
+
* The Web Component will automatically set attributes for accessibility.
|
|
21
|
+
*
|
|
22
|
+
* @element bl-select-list
|
|
23
|
+
* @attr {string} for - The id of the input element to associate as the combobox controller.
|
|
24
|
+
* @attr {string} active-class - The CSS class name to apply to the active item (default: "active").
|
|
25
|
+
* @slot - The list options.
|
|
26
|
+
* @example
|
|
27
|
+
* <input id="my-input" />
|
|
28
|
+
* <bl-select-list for="my-input">
|
|
29
|
+
* <div>Option 1</div>
|
|
30
|
+
* <div>Option 2</div>
|
|
31
|
+
* </bl-select-list>
|
|
32
32
|
*/
|
|
33
33
|
_defineProperty(BlSelectEvent, "eventName", "bl-select");
|
|
34
34
|
class SelectList extends HTMLElement {
|
package/dist/js/shared.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export type breakOption = "sm" | "md" | "lg" | "xl";
|
|
2
|
-
export type StatusType = null | "loading" | "success" | "info" | "warning" | "danger";
|
|
3
|
-
export interface StatusAlert {
|
|
4
|
-
title?: string;
|
|
5
|
-
alertClassName?: string;
|
|
6
|
-
close?: boolean;
|
|
7
|
-
detailText?: string;
|
|
8
|
-
status?: StatusType;
|
|
9
|
-
}
|
|
10
|
-
interface Phrases {
|
|
11
|
-
[key: string]: string[];
|
|
12
|
-
}
|
|
13
|
-
export declare function getPhrase(keyword: string, countryCode?: string | undefined, _phrases?: Phrases | undefined): string;
|
|
14
|
-
export {};
|
|
1
|
+
export type breakOption = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
export type StatusType = null | "loading" | "success" | "info" | "warning" | "danger";
|
|
3
|
+
export interface StatusAlert {
|
|
4
|
+
title?: string;
|
|
5
|
+
alertClassName?: string;
|
|
6
|
+
close?: boolean;
|
|
7
|
+
detailText?: string;
|
|
8
|
+
status?: StatusType;
|
|
9
|
+
}
|
|
10
|
+
interface Phrases {
|
|
11
|
+
[key: string]: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare function getPhrase(keyword: string, countryCode?: string | undefined, _phrases?: Phrases | undefined): string;
|
|
14
|
+
export {};
|
package/dist/js/side-layout.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class SideLayout extends HTMLElement {
|
|
2
|
-
constructor();
|
|
3
|
-
connectedCallback(): void;
|
|
4
|
-
render(): void;
|
|
5
|
-
addEventListeners(): void;
|
|
6
|
-
handleLayoutExpandChange(event: Event): void;
|
|
7
|
-
}
|
|
1
|
+
export declare class SideLayout extends HTMLElement {
|
|
2
|
+
constructor();
|
|
3
|
+
connectedCallback(): void;
|
|
4
|
+
render(): void;
|
|
5
|
+
addEventListeners(): void;
|
|
6
|
+
handleLayoutExpandChange(event: Event): void;
|
|
7
|
+
}
|
package/dist/js/utils.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { StatusType } from "./shared";
|
|
2
|
-
export declare function startLoading(): void;
|
|
3
|
-
export declare function finishLoading(): void;
|
|
4
|
-
export declare function showSuccess(): void;
|
|
5
|
-
export declare function hideSuccess(): void;
|
|
6
|
-
/**
|
|
7
|
-
* Resets alert messages that was set with `setAlertMessage`.
|
|
8
|
-
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
9
|
-
* @param alertClassName Leave empty to reset messages of any status type
|
|
10
|
-
*/
|
|
11
|
-
export declare function resetAlertMessage(alertClassName?: StatusType): void;
|
|
12
|
-
/**
|
|
13
|
-
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
14
|
-
*/
|
|
15
|
-
export declare function setAlertMessage(message: string, alertClassName?: StatusType, close?: boolean, detailText?: string): void;
|
|
16
|
-
export declare const guid: () => string;
|
|
17
|
-
export declare function scrollToTop(): void;
|
|
18
|
-
export declare function fetchData(input: RequestInfo | URL, init?: RequestInit | undefined, showErrorDetail?: boolean | undefined, onError?: (errorMessage: string, reason: Response) => void): Promise<Response>;
|
|
1
|
+
import { StatusType } from "./shared";
|
|
2
|
+
export declare function startLoading(): void;
|
|
3
|
+
export declare function finishLoading(): void;
|
|
4
|
+
export declare function showSuccess(): void;
|
|
5
|
+
export declare function hideSuccess(): void;
|
|
6
|
+
/**
|
|
7
|
+
* Resets alert messages that was set with `setAlertMessage`.
|
|
8
|
+
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
9
|
+
* @param alertClassName Leave empty to reset messages of any status type
|
|
10
|
+
*/
|
|
11
|
+
export declare function resetAlertMessage(alertClassName?: StatusType): void;
|
|
12
|
+
/**
|
|
13
|
+
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
14
|
+
*/
|
|
15
|
+
export declare function setAlertMessage(message: string, alertClassName?: StatusType, close?: boolean, detailText?: string): void;
|
|
16
|
+
export declare const guid: () => string;
|
|
17
|
+
export declare function scrollToTop(): void;
|
|
18
|
+
export declare function fetchData(input: RequestInfo | URL, init?: RequestInit | undefined, showErrorDetail?: boolean | undefined, onError?: (errorMessage: string, reason: Response) => void): Promise<Response>;
|
package/dist/js/utils.js
CHANGED
|
@@ -15,10 +15,10 @@ export function hideSuccess() {
|
|
|
15
15
|
document.querySelector(".blue-status-success").style.display = "";
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Resets alert messages that was set with `setAlertMessage`.
|
|
20
|
-
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
21
|
-
* @param alertClassName Leave empty to reset messages of any status type
|
|
18
|
+
/**
|
|
19
|
+
* Resets alert messages that was set with `setAlertMessage`.
|
|
20
|
+
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
21
|
+
* @param alertClassName Leave empty to reset messages of any status type
|
|
22
22
|
*/
|
|
23
23
|
export function resetAlertMessage(alertClassName) {
|
|
24
24
|
if (!alertClassName) {
|
|
@@ -37,8 +37,8 @@ export function resetAlertMessage(alertClassName) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
40
|
+
/**
|
|
41
|
+
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
42
42
|
*/
|
|
43
43
|
export function setAlertMessage(message) {
|
|
44
44
|
let alertClassName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "info";
|