@oicl/openbridge-webcomponents 2.0.0-next.50 → 2.0.0-next.51
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/bundle/openbridge-webcomponents.bundle.js +18016 -17042
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +857 -3
- package/dist/components/icon-button/icon-button.css.js +18 -18
- package/dist/components/icon-button/icon-button.d.ts +2 -0
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/integration-systems/integration-bar/integration-bar.css.js +97 -0
- package/dist/integration-systems/integration-bar/integration-bar.css.js.map +1 -0
- package/dist/integration-systems/integration-bar/integration-bar.d.ts +91 -0
- package/dist/integration-systems/integration-bar/integration-bar.d.ts.map +1 -0
- package/dist/integration-systems/integration-bar/integration-bar.js +279 -0
- package/dist/integration-systems/integration-bar/integration-bar.js.map +1 -0
- package/dist/integration-systems/integration-button/integration-button.css.js +457 -149
- package/dist/integration-systems/integration-button/integration-button.css.js.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.d.ts +37 -1
- package/dist/integration-systems/integration-button/integration-button.d.ts.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.js +202 -36
- package/dist/integration-systems/integration-button/integration-button.js.map +1 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.css.js +7 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.css.js.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js +75 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js.map +1 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts +37 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts.map +1 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js +72 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js.map +1 -0
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.css.js +21 -8
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.css.js.map +1 -1
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.d.ts +2 -0
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.d.ts.map +1 -1
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.js +5 -0
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-vessel-menu.js","sources":["../../../src/integration-systems/integration-vessel-menu/integration-vessel-menu.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {customElement} from '../../decorator.js';\nimport componentStyle from './integration-vessel-menu.css?inline';\n\nimport '../../components/button/button.js';\nimport '../../components/icon-button/icon-button.js';\nimport '../../icons/icon-placeholder.js';\nimport '../../building-blocks/alert-list/alert-list.js';\n\n/**\n * `<obc-integration-vessel-menu>` – A menu to be shown when selecting a obc-integration-button from a obc-integration-bar.\n *\n * @slot leading-icon - Icon shown in the header.\n * @slot title - Header title text.\n * @slot button-1-leading-icon - Leading icon for the first button.\n * @slot button-1-label - Label for the first button.\n * @slot button-2-leading-icon - Leading icon for the second button.\n * @slot button-2-label - Label for the second button.\n * @slot button-3-leading-icon - Leading icon for the third button.\n * @slot button-3-label - Label for the third button.\n * @slot content - Main content shown in the content area.\n * @slot alarms - Alarm items rendered inside the alert list.\n *\n * @property {number} numberOfButtons - Number of buttons to render (up to 3).\n *\n * @fires button1-click - Fired when the first button is clicked.\n * @fires button2-click - Fired when the second button is clicked.\n * @fires button3-click - Fired when the third button is clicked.\n */\n\n@customElement('obc-integration-vessel-menu')\nexport class ObcIntegrationVesselMenu extends LitElement {\n @property({type: Number}) numberOfButtons = 3;\n\n private renderButtons() {\n return html`${Array.from({length: this.numberOfButtons}, (_, i) => {\n const buttonNum = i + 1;\n return html`<obc-button\n @click=${() =>\n this.dispatchEvent(new CustomEvent(`button${buttonNum}-click`))}\n ?showLeadingIcon=${true}\n ?fullWidth=${true}\n class=\"button\"\n >\n <slot\n name=\"button-${buttonNum}-leading-icon\"\n slot=\"leading-icon\"\n ></slot>\n <slot name=\"button-${buttonNum}-label\"></slot>\n </obc-button>`;\n })}`;\n }\n\n protected override render() {\n return html`\n <div\n class=${classMap({\n wrapper: true,\n })}\n >\n <div class=\"footer-container\">${this.renderButtons()}</div>\n <div class=\"content-area\">\n <slot name=\"content\"></slot>\n </div>\n <div class=\"content-container\">\n <obc-alert-list class=\"alert-list\"\n ><slot name=\"alarms\"> </slot>\n </obc-alert-list>\n </div>\n </div>\n `;\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-integration-vessel-menu': ObcIntegrationVesselMenu;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAiCO,IAAM,2BAAN,cAAuC,WAAW;AAAA,EAAlD,cAAA;AAAA,UAAA,GAAA,SAAA;AACqB,SAAA,kBAAkB;AAAA,EAAA;AAAA,EAEpC,gBAAgB;AACtB,WAAO,OAAO,MAAM,KAAK,EAAC,QAAQ,KAAK,gBAAA,GAAkB,CAAC,GAAG,MAAM;AACjE,YAAM,YAAY,IAAI;AACtB,aAAO;AAAA,iBACI,MACP,KAAK,cAAc,IAAI,YAAY,SAAS,SAAS,QAAQ,CAAC,CAAC;AAAA,2BAC9C,IAAI;AAAA,qBACV,IAAI;AAAA;AAAA;AAAA;AAAA,yBAIA,SAAS;AAAA;AAAA;AAAA,6BAGL,SAAS;AAAA;AAAA,IAElC,CAAC,CAAC;AAAA,EACJ;AAAA,EAEmB,SAAS;AAC1B,WAAO;AAAA;AAAA,gBAEK,SAAS;AAAA,MACf,SAAS;AAAA,IAAA,CACV,CAAC;AAAA;AAAA,wCAE8B,KAAK,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAW1D;AAGF;AA3Ca,yBA0CK,SAAS,UAAU,cAAc;AAzCvB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GADb,yBACe,WAAA,mBAAA,CAAA;AADf,2BAAN,gBAAA;AAAA,EADN,cAAc,6BAA6B;AAAA,GAC/B,wBAAA;"}
|
package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.css.js
CHANGED
|
@@ -18,14 +18,27 @@ const compentStyle = css`
|
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.wrapper .fleet-wrapper
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
.wrapper .fleet-wrapper,
|
|
22
|
+
.wrapper .vessel-wrapper {
|
|
23
|
+
width: 100%;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: stretch;
|
|
27
|
+
justify-content: stretch;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.wrapper .fleet-wrapper {
|
|
31
|
+
padding: 4px 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.wrapper .vessel-wrapper {
|
|
35
|
+
padding: 0px 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wrapper .topbar-wrapper {
|
|
39
|
+
display: flex;
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
29
42
|
`;
|
|
30
43
|
export {
|
|
31
44
|
compentStyle as default
|
package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.css.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-vessel-selector.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integration-vessel-selector.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ import { LitElement } from 'lit';
|
|
|
4
4
|
*
|
|
5
5
|
* @slot - The vessel to select.
|
|
6
6
|
* @slot fleet - The fleet of vessels.
|
|
7
|
+
* @slot topbar - The top bar, displayed when `hasTopbar` is true.
|
|
7
8
|
*/
|
|
8
9
|
export declare class ObcIntegrationVesselSelector extends LitElement {
|
|
10
|
+
hasTopbar: boolean;
|
|
9
11
|
hasFleet: boolean;
|
|
10
12
|
render(): import('lit-html').TemplateResult<1>;
|
|
11
13
|
static styles: import('lit').CSSResult;
|
package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-vessel-selector.d.ts","sourceRoot":"","sources":["../../../src/integration-systems/integration-vessel-selector/integration-vessel-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAA2B,MAAM,KAAK,CAAC;AAKzD
|
|
1
|
+
{"version":3,"file":"integration-vessel-selector.d.ts","sourceRoot":"","sources":["../../../src/integration-systems/integration-vessel-selector/integration-vessel-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAA2B,MAAM,KAAK,CAAC;AAKzD;;;;;;GAMG;AACH,qBACa,4BAA6B,SAAQ,UAAU;IAC/B,SAAS,UAAS;IAClB,QAAQ,UAAS;IAEnC,MAAM;IAgBf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iCAAiC,EAAE,4BAA4B,CAAC;KACjE;CACF"}
|
|
@@ -15,11 +15,13 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
let ObcIntegrationVesselSelector = class extends LitElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
|
+
this.hasTopbar = false;
|
|
18
19
|
this.hasFleet = false;
|
|
19
20
|
}
|
|
20
21
|
render() {
|
|
21
22
|
return html`
|
|
22
23
|
<div class="wrapper">
|
|
24
|
+
${this.hasTopbar ? html`<div class="topbar-wrapper"><slot name="topbar"></slot></div>` : nothing}
|
|
23
25
|
${this.hasFleet ? html`<div class="fleet-wrapper">
|
|
24
26
|
<slot name="fleet"></slot>
|
|
25
27
|
</div>` : nothing}
|
|
@@ -29,6 +31,9 @@ let ObcIntegrationVesselSelector = class extends LitElement {
|
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
33
|
ObcIntegrationVesselSelector.styles = unsafeCSS(compentStyle);
|
|
34
|
+
__decorateClass([
|
|
35
|
+
property({ type: Boolean })
|
|
36
|
+
], ObcIntegrationVesselSelector.prototype, "hasTopbar", 2);
|
|
32
37
|
__decorateClass([
|
|
33
38
|
property({ type: Boolean })
|
|
34
39
|
], ObcIntegrationVesselSelector.prototype, "hasFleet", 2);
|
package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-vessel-selector.js","sources":["../../../src/integration-systems/integration-vessel-selector/integration-vessel-selector.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {customElement} from '../../decorator.js';\nimport compentStyle from './integration-vessel-selector.css?inline';\nimport {property} from 'lit/decorators.js';\n\n/**\n * `<obc-integration-vessel-selector>` – A component that allows the user to select a vessel from a fleet.\n *\n * @slot - The vessel to select.\n * @slot fleet - The fleet of vessels.\n */\n@customElement('obc-integration-vessel-selector')\nexport class ObcIntegrationVesselSelector extends LitElement {\n @property({type: Boolean}) hasFleet = false;\n\n override render() {\n return html`\n <div class=\"wrapper\">\n ${this.hasFleet\n ? html`<div class=\"fleet-wrapper\">\n <slot name=\"fleet\"></slot>\n </div>`\n : nothing}\n <slot class=\"vessel-wrapper\"></slot>\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-integration-vessel-selector': ObcIntegrationVesselSelector;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"integration-vessel-selector.js","sources":["../../../src/integration-systems/integration-vessel-selector/integration-vessel-selector.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {customElement} from '../../decorator.js';\nimport compentStyle from './integration-vessel-selector.css?inline';\nimport {property} from 'lit/decorators.js';\n\n/**\n * `<obc-integration-vessel-selector>` – A component that allows the user to select a vessel from a fleet.\n *\n * @slot - The vessel to select.\n * @slot fleet - The fleet of vessels.\n * @slot topbar - The top bar, displayed when `hasTopbar` is true.\n */\n@customElement('obc-integration-vessel-selector')\nexport class ObcIntegrationVesselSelector extends LitElement {\n @property({type: Boolean}) hasTopbar = false;\n @property({type: Boolean}) hasFleet = false;\n\n override render() {\n return html`\n <div class=\"wrapper\">\n ${this.hasTopbar\n ? html`<div class=\"topbar-wrapper\"><slot name=\"topbar\"></slot></div>`\n : nothing}\n ${this.hasFleet\n ? html`<div class=\"fleet-wrapper\">\n <slot name=\"fleet\"></slot>\n </div>`\n : nothing}\n <slot class=\"vessel-wrapper\"></slot>\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-integration-vessel-selector': ObcIntegrationVesselSelector;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAaO,IAAM,+BAAN,cAA2C,WAAW;AAAA,EAAtD,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,YAAY;AACZ,SAAA,WAAW;AAAA,EAAA;AAAA,EAE7B,SAAS;AAChB,WAAO;AAAA;AAAA,UAED,KAAK,YACH,sEACA,OAAO;AAAA,UACT,KAAK,WACH;AAAA;AAAA,sBAGA,OAAO;AAAA;AAAA;AAAA;AAAA,EAIjB;AAGF;AArBa,6BAoBK,SAAS,UAAU,YAAY;AAnBpB,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GADd,6BACgB,WAAA,aAAA,CAAA;AACA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAFd,6BAEgB,WAAA,YAAA,CAAA;AAFhB,+BAAN,gBAAA;AAAA,EADN,cAAc,iCAAiC;AAAA,GACnC,4BAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.51",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@lit-labs/gen-wrapper-svelte": "file:lit-labs-gen-wrapper-svelte-397bf119.tgz",
|
|
77
77
|
"@lit-labs/gen-wrapper-vue": "file:lit-labs-gen-wrapper-vue-0.4.1.tgz",
|
|
78
78
|
"@open-wc/lit-helpers": "^0.7.0",
|
|
79
|
-
"@playwright/test": "
|
|
79
|
+
"@playwright/test": "1.60.0",
|
|
80
80
|
"@semantic-release/changelog": "^6.0.3",
|
|
81
81
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
82
82
|
"@semantic-release/exec": "^7.1.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"lit-analyzer": "^2.0.3",
|
|
110
110
|
"nodemon": "^3.1.14",
|
|
111
111
|
"openai": "^6.27.0",
|
|
112
|
-
"playwright": "^1.
|
|
112
|
+
"playwright": "^1.60.0",
|
|
113
113
|
"postcss": "^8.5.8",
|
|
114
114
|
"postcss-cli": "^11.0.1",
|
|
115
115
|
"postcss-import": "^16.1.1",
|