blue-web 1.21.1 → 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.
Files changed (73) hide show
  1. package/LICENSE +164 -164
  2. package/README.md +74 -74
  3. package/dist/js/actions.d.ts +6 -6
  4. package/dist/js/color-mode.d.ts +4 -4
  5. package/dist/js/dialog.d.ts +18 -18
  6. package/dist/js/edit-view.d.ts +14 -14
  7. package/dist/js/edit-view.js +2 -2
  8. package/dist/js/input-splitted.d.ts +19 -19
  9. package/dist/js/odometer.d.ts +30 -30
  10. package/dist/js/odometer.js +8 -8
  11. package/dist/js/progress.d.ts +2 -2
  12. package/dist/js/read-view.d.ts +35 -35
  13. package/dist/js/read-view.js +18 -18
  14. package/dist/js/select-list.d.ts +46 -46
  15. package/dist/js/select-list.js +17 -17
  16. package/dist/js/shared.d.ts +14 -14
  17. package/dist/js/side-layout.d.ts +7 -7
  18. package/dist/js/utils.d.ts +18 -18
  19. package/dist/js/utils.js +6 -6
  20. package/dist/merged.scss +2170 -2170
  21. package/dist/neu.scss +92 -92
  22. package/dist/style.css +1 -1
  23. package/dist/style.min.css +1 -1
  24. package/dist/style.scss +62 -62
  25. package/dist/styles/_action-menu.scss +57 -57
  26. package/dist/styles/_actions.scss +37 -37
  27. package/dist/styles/_anchor.scss +42 -42
  28. package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
  29. package/dist/styles/_bootstrap-variables.scss +46 -46
  30. package/dist/styles/_bootstrap.scss +64 -64
  31. package/dist/styles/_button-icon-wrapper.scss +28 -28
  32. package/dist/styles/_buttons.scss +120 -120
  33. package/dist/styles/_collapse.scss +72 -72
  34. package/dist/styles/_container-grid.scss +52 -52
  35. package/dist/styles/_devexpress.scss +104 -104
  36. package/dist/styles/_general.scss +55 -55
  37. package/dist/styles/_hover.scss +37 -37
  38. package/dist/styles/_input-group.scss +29 -29
  39. package/dist/styles/_inter.scss +19 -19
  40. package/dist/styles/_intro.scss +22 -22
  41. package/dist/styles/_keyframes.scss +73 -73
  42. package/dist/styles/_layout.scss +175 -175
  43. package/dist/styles/_menu-item.scss +86 -86
  44. package/dist/styles/_mixins.scss +6 -6
  45. package/dist/styles/_modal.scss +118 -118
  46. package/dist/styles/_page-header.scss +14 -14
  47. package/dist/styles/_scrollspy.scss +78 -78
  48. package/dist/styles/_status.scss +131 -131
  49. package/dist/styles/_text-icons.scss +15 -15
  50. package/dist/styles/_tooltips.scss +150 -150
  51. package/dist/styles/_utils.scss +20 -20
  52. package/dist/styles/_variables.scss +128 -128
  53. package/dist/styles/mixins/_action-menu.scss +64 -64
  54. package/dist/styles/mixins/_custom-property.scss +10 -10
  55. package/dist/styles/mixins/_menu-item.scss +136 -136
  56. package/dist/styles/mixins/_misc.scss +7 -7
  57. package/dist/styles/mixins/_scroll-shadow.scss +9 -9
  58. package/dist/styles/mixins/_switch.scss +91 -91
  59. package/package.json +88 -88
  60. package/dist/container-grid.css +0 -196
  61. package/dist/js/auto-theme.bundle.js +0 -1
  62. package/dist/js/auto-theme.d.ts +0 -26
  63. package/dist/js/auto-theme.js +0 -169
  64. package/dist/js/button.bundle.js +0 -1
  65. package/dist/js/button.d.ts +0 -6
  66. package/dist/js/button.js +0 -16
  67. package/dist/js/dialog.bundle.js.LICENSE.txt +0 -5
  68. package/dist/js/dxf-viewer.js +0 -129
  69. package/dist/js/searchbox.bundle.js +0 -2
  70. package/dist/js/searchbox.bundle.js.LICENSE.txt +0 -11
  71. package/dist/js/searchbox.d.ts +0 -16
  72. package/dist/js/searchbox.js +0 -158
  73. package/dist/tailwind-main.css +0 -737
@@ -1,30 +1,30 @@
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;
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;
@@ -1,14 +1,14 @@
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)
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
12
  */
13
13
  class Odometer extends HTMLElement {
14
14
  static get observedAttributes() {
@@ -1,2 +1,2 @@
1
- declare const _default: any;
2
- export default _default;
1
+ declare const _default: any;
2
+ export default _default;
@@ -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
+ }
@@ -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() {
@@ -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;
@@ -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 {
@@ -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 {};
@@ -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
+ }
@@ -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";