@oicl/openbridge-webcomponents 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +41 -0
- package/README.md +89 -0
- package/custom-elements.json +307 -307
- package/fix-generated.cjs +28 -0
- package/package.json +9 -3
- package/tsconfig.json +1 -0
package/CHANGELOG.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [0.1.0](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/compare/openbridge-webcomponents-v0.0.4...openbridge-webcomponents-v0.1.0) (2024-02-23)
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- ack alarms in demo ([d377466](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/d377466ece783e707503286e2d8ea623bd9f9ec5))
|
8
|
+
- add alertlist ([ad1283f](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/ad1283f08bd10490b3a67df54f23d637bd8499dd))
|
9
|
+
- add breadcrumb and pixel perfect ([0d4bf6f](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/0d4bf6fcdac5c0a5a92d6240a9bbacc235c5b52c))
|
10
|
+
- add checked button variant ([#25](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/25)) ([ebee8ff](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/ebee8ffcaef3345f159449b3980a903d5b4bee40))
|
11
|
+
- add react wrapper and demo ([#40](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/40)) ([cd81b77](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/cd81b77cddb6fb9e10871e3c469e6b574f946591))
|
12
|
+
- alert button ([986ffa7](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/986ffa74a629e6391041387a94e045f0b1f8ec7c))
|
13
|
+
- alert menu ([65d50c8](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/65d50c864e40c8a9a3dcdc6b878ee1ba5d7ed6f9))
|
14
|
+
- implemented alert logic and disabled buttons ([79e37c8](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/79e37c82205cafe45f64755e977b01628e50ee60))
|
15
|
+
- link to alert list ([ffa44e7](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/ffa44e7a3fca777d0d2e171f6357d2591257880c))
|
16
|
+
- multi color icons ([ab4bfa2](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/ab4bfa27034e5fc78a50b80fcab926dae01ba977))
|
17
|
+
- notification button ([9039f16](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/9039f16b432a7950c6e939d63d85f0095ff9cc73))
|
18
|
+
- notification message ([7fbc9b7](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/7fbc9b72764435a265c27d6bae2144e7509c2cda))
|
19
|
+
- reactive brightness ([#31](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/31)) ([be5a97e](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/be5a97e82857babfb5239117547d1d1c70b636bd))
|
20
|
+
- settings topbar, corner icons, divider ([540188a](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/540188a7e59c5ec407673597f3a610ebc8e7b431))
|
21
|
+
- slider buttons ([#37](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/37)) ([69c3d24](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/69c3d24de7804507e058c7c46f9fc4842d3ffeb8))
|
22
|
+
- snapshots ([a90d612](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/a90d6123edcad8bb2c962d5b0961d33b343b5a25))
|
23
|
+
- tooltip ([e85318a](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/e85318a36cbe1b9a1e65fe93b1b7eecbaf707f63))
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
- add images ([ec7917d](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/ec7917d8a54f9ce3cae39a8bc35ad3a35b6e55b0))
|
28
|
+
- alert list not showing ([#32](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/32)) ([ef282db](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/ef282db44684beda958f1d79b146329e329a5830))
|
29
|
+
- app menu ([#15](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/15)) ([3e31203](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/3e312037deb053b41e5d5c0ad2366870cb28064d))
|
30
|
+
- build and update custom-elements ([c5f8d94](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/c5f8d94f9dfc2242b1757109abcc425fd9b07a2b))
|
31
|
+
- cannot close dialogs ([cf8be0f](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/cf8be0f8cdd19279b04893fa785a96789a95141b))
|
32
|
+
- change prefix from ob- to obc- ([1dd2bf0](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/1dd2bf06010971d9affa930717b368e32e161e26))
|
33
|
+
- made alert message text clickable ([008fa50](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/008fa50394cf21af3142f23c1b9c690731509b1a))
|
34
|
+
- made storybook run ([3f74d8e](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/3f74d8e41d6c4100b7b3a929019c6dbe75019a57))
|
35
|
+
- minor ([#36](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/36)) ([4143a96](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/4143a96e09e3caf79bfd1a2aa67d7b6a856424b0))
|
36
|
+
- move search icon to the left ([#45](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/45)) ([5be4143](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/5be4143dcb6e6e1a05714ee8b575d6b54cdf6477))
|
37
|
+
- moved style mixin ([756c4a2](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/756c4a209d276a629a43f36214b947cf00c9c00c))
|
38
|
+
- padding last button in toggle button ([#54](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/54)) ([43ca15c](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/43ca15cee3488051cf95061d4e159061f8b63c22))
|
39
|
+
- range ([#34](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/34)) ([2dcb4be](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/2dcb4be665ea80c5febe451024d48b8d8156d3e5))
|
40
|
+
- scrollbar after review ([14cb0e1](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/14cb0e19e20219ad75163397fa7b43b827cabcc4))
|
41
|
+
- update icons ([7e0bf86](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/commit/7e0bf864b5be9476eac2022a0933581f07e77e5a))
|
package/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Openbridge Web Components
|
2
|
+
|
3
|
+
Welcome to the Openbridge Web Components! This readme file provides an overview of the project and its components.
|
4
|
+
|
5
|
+
> **❗Caution❗** This repository is currently in early development and may not be stable. Please use with caution.
|
6
|
+
|
7
|
+
## Table of Contents
|
8
|
+
|
9
|
+
- [Storybook](#storybook)
|
10
|
+
- [Demo](#demo)
|
11
|
+
- [CSS file for palettes](#css-file-for-palettes)
|
12
|
+
- [Installation](#installation)
|
13
|
+
- [Contributing](#contributing)
|
14
|
+
|
15
|
+
## Storybook
|
16
|
+
|
17
|
+
[Storybook](https://storybook.js.org/) is a development environment for UI components. It allows you to browse a component library, view the different states of each component, and interactively develop and test components in isolation.
|
18
|
+
|
19
|
+
To access the Storybook for this project, click [here](https://openbridge-storybook.web.app).
|
20
|
+
|
21
|
+
## Demo
|
22
|
+
|
23
|
+
The demo showcases the project's functionality using Vue.js. It provides a live demonstration of the project's features and allows you to interact with the application.
|
24
|
+
|
25
|
+
To access the demo, click [here](https://openbridge-demo.web.app/).
|
26
|
+
|
27
|
+
## CSS file for palettes
|
28
|
+
|
29
|
+
The CSS file for the palettes is located at [packages/openbridge-webcomponents/src/palettes/variables.css](packages/openbridge-webcomponents/src/palettes/variables.css) or by importing it directly from the package:
|
30
|
+
|
31
|
+
```javascript
|
32
|
+
import '@oicl/openbridge-webcomponents/src/palettes/variables.css';
|
33
|
+
```
|
34
|
+
|
35
|
+
The file is called `variables.css` and contains all the openbridge pallets (bright, day, dusk, night).
|
36
|
+
It can be used to set the color theme of components.
|
37
|
+
To select the pallet, set the `data-obc-theme` attribute on the `html` tag:
|
38
|
+
|
39
|
+
```html
|
40
|
+
<html lang="en" data-obc-theme="day"></html>
|
41
|
+
```
|
42
|
+
|
43
|
+
## Installation
|
44
|
+
|
45
|
+
If you want to use the components in a Vue.js or React project we suggest that you use the wrapper packages [@oicl/openbridge-webcomponents-vue](https://www.npmjs.com/package/@oicl/openbridge-webcomponents-vue) or [@oicl/openbridge-webcomponents-react](https://www.npmjs.com/package/@oicl/openbridge-webcomponents-react) respectively.
|
46
|
+
|
47
|
+
To use the components in your project, you can install the package from npm:
|
48
|
+
|
49
|
+
```bash
|
50
|
+
npm install @oicl/openbridge-webcomponents
|
51
|
+
```
|
52
|
+
|
53
|
+
### Setup
|
54
|
+
|
55
|
+
1. Add the css file to your project:
|
56
|
+
```javascript
|
57
|
+
import '@oicl/openbridge-webcomponents/src/palettes/variables.css';
|
58
|
+
```
|
59
|
+
2. Select the pallet by setting the `data-obc-theme` attribute on the `html` tag:
|
60
|
+
```html
|
61
|
+
<html lang="en" data-obc-theme="day"></html>
|
62
|
+
```
|
63
|
+
3. Install the Noto Sans font by using the attached `NotoSans.tff` file. Add the following to your css:
|
64
|
+
|
65
|
+
```css
|
66
|
+
@font-face {
|
67
|
+
font-family: 'Noto Sans';
|
68
|
+
src: url('path/to/NotoSans.tff');
|
69
|
+
}
|
70
|
+
|
71
|
+
* {
|
72
|
+
font-family: Noto Sans;
|
73
|
+
}
|
74
|
+
```
|
75
|
+
|
76
|
+
4. Import the desired components in your project, for instance:
|
77
|
+
|
78
|
+
```javascript
|
79
|
+
import '@oicl/openbridge-webcomponents/dist/components/top-bar/top-bar.js';
|
80
|
+
```
|
81
|
+
|
82
|
+
5. Use the components in your project:
|
83
|
+
```html
|
84
|
+
<obc-top-bar></obc-top-bar>
|
85
|
+
```
|
86
|
+
|
87
|
+
## Contributing
|
88
|
+
|
89
|
+
Contributions are welcome!
|
package/custom-elements.json
CHANGED
@@ -103,6 +103,12 @@
|
|
103
103
|
"declarations": [],
|
104
104
|
"exports": []
|
105
105
|
},
|
106
|
+
{
|
107
|
+
"kind": "javascript-module",
|
108
|
+
"path": "src/navigation-instruments/types.ts",
|
109
|
+
"declarations": [],
|
110
|
+
"exports": []
|
111
|
+
},
|
106
112
|
{
|
107
113
|
"kind": "javascript-module",
|
108
114
|
"path": "src/icons/icon-01-add.ts",
|
@@ -36853,12 +36859,6 @@
|
|
36853
36859
|
}
|
36854
36860
|
]
|
36855
36861
|
},
|
36856
|
-
{
|
36857
|
-
"kind": "javascript-module",
|
36858
|
-
"path": "src/navigation-instruments/types.ts",
|
36859
|
-
"declarations": [],
|
36860
|
-
"exports": []
|
36861
|
-
},
|
36862
36862
|
{
|
36863
36863
|
"kind": "javascript-module",
|
36864
36864
|
"path": "src/svghelpers/circle.ts",
|
@@ -37081,6 +37081,181 @@
|
|
37081
37081
|
}
|
37082
37082
|
]
|
37083
37083
|
},
|
37084
|
+
{
|
37085
|
+
"kind": "javascript-module",
|
37086
|
+
"path": "src/components/alert-topbar-element/alert-topbar-element.ts",
|
37087
|
+
"declarations": [
|
37088
|
+
{
|
37089
|
+
"kind": "class",
|
37090
|
+
"description": "Element that displays the alert in topbar\nUse the element in the alerts slot in topbar",
|
37091
|
+
"name": "ObcAlertTopbarElement",
|
37092
|
+
"slots": [
|
37093
|
+
{
|
37094
|
+
"description": "The message to display in the alert element of type `obc-notification-message-item`",
|
37095
|
+
"name": ""
|
37096
|
+
}
|
37097
|
+
],
|
37098
|
+
"members": [
|
37099
|
+
{
|
37100
|
+
"kind": "field",
|
37101
|
+
"name": "nAlerts",
|
37102
|
+
"type": {
|
37103
|
+
"text": "number"
|
37104
|
+
},
|
37105
|
+
"default": "0",
|
37106
|
+
"attribute": "n-alerts"
|
37107
|
+
},
|
37108
|
+
{
|
37109
|
+
"kind": "field",
|
37110
|
+
"name": "alertType",
|
37111
|
+
"type": {
|
37112
|
+
"text": "AlertType"
|
37113
|
+
},
|
37114
|
+
"attribute": "alert-type"
|
37115
|
+
},
|
37116
|
+
{
|
37117
|
+
"kind": "field",
|
37118
|
+
"name": "showAck",
|
37119
|
+
"type": {
|
37120
|
+
"text": "boolean"
|
37121
|
+
},
|
37122
|
+
"default": "false",
|
37123
|
+
"attribute": "show-ack"
|
37124
|
+
},
|
37125
|
+
{
|
37126
|
+
"kind": "field",
|
37127
|
+
"name": "alertMuted",
|
37128
|
+
"type": {
|
37129
|
+
"text": "boolean"
|
37130
|
+
},
|
37131
|
+
"default": "false",
|
37132
|
+
"attribute": "alert-muted"
|
37133
|
+
},
|
37134
|
+
{
|
37135
|
+
"kind": "field",
|
37136
|
+
"name": "minimized",
|
37137
|
+
"type": {
|
37138
|
+
"text": "boolean"
|
37139
|
+
},
|
37140
|
+
"default": "false",
|
37141
|
+
"attribute": "minimized"
|
37142
|
+
},
|
37143
|
+
{
|
37144
|
+
"kind": "field",
|
37145
|
+
"name": "maxWidth",
|
37146
|
+
"type": {
|
37147
|
+
"text": "number"
|
37148
|
+
},
|
37149
|
+
"default": "480",
|
37150
|
+
"attribute": "max-width"
|
37151
|
+
}
|
37152
|
+
],
|
37153
|
+
"events": [
|
37154
|
+
{
|
37155
|
+
"name": "muteclick",
|
37156
|
+
"type": {
|
37157
|
+
"text": "CustomEvent"
|
37158
|
+
},
|
37159
|
+
"description": "Fired when the mute button is clicked"
|
37160
|
+
},
|
37161
|
+
{
|
37162
|
+
"name": "messageclick",
|
37163
|
+
"type": {
|
37164
|
+
"text": "CustomEvent"
|
37165
|
+
},
|
37166
|
+
"description": "Fired when the message is clicked"
|
37167
|
+
},
|
37168
|
+
{
|
37169
|
+
"name": "ackclick",
|
37170
|
+
"type": {
|
37171
|
+
"text": "CustomEvent"
|
37172
|
+
},
|
37173
|
+
"description": "Fired when the ack button is clicked"
|
37174
|
+
},
|
37175
|
+
{
|
37176
|
+
"name": "alertclick",
|
37177
|
+
"type": {
|
37178
|
+
"text": "CustomEvent"
|
37179
|
+
},
|
37180
|
+
"description": "Fired when the alert button is clicked"
|
37181
|
+
}
|
37182
|
+
],
|
37183
|
+
"attributes": [
|
37184
|
+
{
|
37185
|
+
"name": "n-alerts",
|
37186
|
+
"type": {
|
37187
|
+
"text": "number"
|
37188
|
+
},
|
37189
|
+
"default": "0",
|
37190
|
+
"fieldName": "nAlerts"
|
37191
|
+
},
|
37192
|
+
{
|
37193
|
+
"name": "alert-type",
|
37194
|
+
"type": {
|
37195
|
+
"text": "AlertType"
|
37196
|
+
},
|
37197
|
+
"fieldName": "alertType"
|
37198
|
+
},
|
37199
|
+
{
|
37200
|
+
"name": "show-ack",
|
37201
|
+
"type": {
|
37202
|
+
"text": "boolean"
|
37203
|
+
},
|
37204
|
+
"default": "false",
|
37205
|
+
"fieldName": "showAck"
|
37206
|
+
},
|
37207
|
+
{
|
37208
|
+
"name": "alert-muted",
|
37209
|
+
"type": {
|
37210
|
+
"text": "boolean"
|
37211
|
+
},
|
37212
|
+
"default": "false",
|
37213
|
+
"fieldName": "alertMuted"
|
37214
|
+
},
|
37215
|
+
{
|
37216
|
+
"name": "minimized",
|
37217
|
+
"type": {
|
37218
|
+
"text": "boolean"
|
37219
|
+
},
|
37220
|
+
"default": "false",
|
37221
|
+
"fieldName": "minimized"
|
37222
|
+
},
|
37223
|
+
{
|
37224
|
+
"name": "max-width",
|
37225
|
+
"type": {
|
37226
|
+
"text": "number"
|
37227
|
+
},
|
37228
|
+
"default": "480",
|
37229
|
+
"fieldName": "maxWidth"
|
37230
|
+
}
|
37231
|
+
],
|
37232
|
+
"superclass": {
|
37233
|
+
"name": "LitElement",
|
37234
|
+
"package": "lit"
|
37235
|
+
},
|
37236
|
+
"tagName": "obc-alert-topbar-element",
|
37237
|
+
"customElement": true
|
37238
|
+
}
|
37239
|
+
],
|
37240
|
+
"exports": [
|
37241
|
+
{
|
37242
|
+
"kind": "js",
|
37243
|
+
"name": "ObcAlertTopbarElement",
|
37244
|
+
"declaration": {
|
37245
|
+
"name": "ObcAlertTopbarElement",
|
37246
|
+
"module": "src/components/alert-topbar-element/alert-topbar-element.ts"
|
37247
|
+
}
|
37248
|
+
},
|
37249
|
+
{
|
37250
|
+
"kind": "custom-element-definition",
|
37251
|
+
"name": "obc-alert-topbar-element",
|
37252
|
+
"declaration": {
|
37253
|
+
"name": "ObcAlertTopbarElement",
|
37254
|
+
"module": "src/components/alert-topbar-element/alert-topbar-element.ts"
|
37255
|
+
}
|
37256
|
+
}
|
37257
|
+
]
|
37258
|
+
},
|
37084
37259
|
{
|
37085
37260
|
"kind": "javascript-module",
|
37086
37261
|
"path": "src/components/alert-menu/alert-menu.ts",
|
@@ -37303,181 +37478,6 @@
|
|
37303
37478
|
}
|
37304
37479
|
]
|
37305
37480
|
},
|
37306
|
-
{
|
37307
|
-
"kind": "javascript-module",
|
37308
|
-
"path": "src/components/alert-topbar-element/alert-topbar-element.ts",
|
37309
|
-
"declarations": [
|
37310
|
-
{
|
37311
|
-
"kind": "class",
|
37312
|
-
"description": "Element that displays the alert in topbar\nUse the element in the alerts slot in topbar",
|
37313
|
-
"name": "ObcAlertTopbarElement",
|
37314
|
-
"slots": [
|
37315
|
-
{
|
37316
|
-
"description": "The message to display in the alert element of type `obc-notification-message-item`",
|
37317
|
-
"name": ""
|
37318
|
-
}
|
37319
|
-
],
|
37320
|
-
"members": [
|
37321
|
-
{
|
37322
|
-
"kind": "field",
|
37323
|
-
"name": "nAlerts",
|
37324
|
-
"type": {
|
37325
|
-
"text": "number"
|
37326
|
-
},
|
37327
|
-
"default": "0",
|
37328
|
-
"attribute": "n-alerts"
|
37329
|
-
},
|
37330
|
-
{
|
37331
|
-
"kind": "field",
|
37332
|
-
"name": "alertType",
|
37333
|
-
"type": {
|
37334
|
-
"text": "AlertType"
|
37335
|
-
},
|
37336
|
-
"attribute": "alert-type"
|
37337
|
-
},
|
37338
|
-
{
|
37339
|
-
"kind": "field",
|
37340
|
-
"name": "showAck",
|
37341
|
-
"type": {
|
37342
|
-
"text": "boolean"
|
37343
|
-
},
|
37344
|
-
"default": "false",
|
37345
|
-
"attribute": "show-ack"
|
37346
|
-
},
|
37347
|
-
{
|
37348
|
-
"kind": "field",
|
37349
|
-
"name": "alertMuted",
|
37350
|
-
"type": {
|
37351
|
-
"text": "boolean"
|
37352
|
-
},
|
37353
|
-
"default": "false",
|
37354
|
-
"attribute": "alert-muted"
|
37355
|
-
},
|
37356
|
-
{
|
37357
|
-
"kind": "field",
|
37358
|
-
"name": "minimized",
|
37359
|
-
"type": {
|
37360
|
-
"text": "boolean"
|
37361
|
-
},
|
37362
|
-
"default": "false",
|
37363
|
-
"attribute": "minimized"
|
37364
|
-
},
|
37365
|
-
{
|
37366
|
-
"kind": "field",
|
37367
|
-
"name": "maxWidth",
|
37368
|
-
"type": {
|
37369
|
-
"text": "number"
|
37370
|
-
},
|
37371
|
-
"default": "480",
|
37372
|
-
"attribute": "max-width"
|
37373
|
-
}
|
37374
|
-
],
|
37375
|
-
"events": [
|
37376
|
-
{
|
37377
|
-
"name": "muteclick",
|
37378
|
-
"type": {
|
37379
|
-
"text": "CustomEvent"
|
37380
|
-
},
|
37381
|
-
"description": "Fired when the mute button is clicked"
|
37382
|
-
},
|
37383
|
-
{
|
37384
|
-
"name": "messageclick",
|
37385
|
-
"type": {
|
37386
|
-
"text": "CustomEvent"
|
37387
|
-
},
|
37388
|
-
"description": "Fired when the message is clicked"
|
37389
|
-
},
|
37390
|
-
{
|
37391
|
-
"name": "ackclick",
|
37392
|
-
"type": {
|
37393
|
-
"text": "CustomEvent"
|
37394
|
-
},
|
37395
|
-
"description": "Fired when the ack button is clicked"
|
37396
|
-
},
|
37397
|
-
{
|
37398
|
-
"name": "alertclick",
|
37399
|
-
"type": {
|
37400
|
-
"text": "CustomEvent"
|
37401
|
-
},
|
37402
|
-
"description": "Fired when the alert button is clicked"
|
37403
|
-
}
|
37404
|
-
],
|
37405
|
-
"attributes": [
|
37406
|
-
{
|
37407
|
-
"name": "n-alerts",
|
37408
|
-
"type": {
|
37409
|
-
"text": "number"
|
37410
|
-
},
|
37411
|
-
"default": "0",
|
37412
|
-
"fieldName": "nAlerts"
|
37413
|
-
},
|
37414
|
-
{
|
37415
|
-
"name": "alert-type",
|
37416
|
-
"type": {
|
37417
|
-
"text": "AlertType"
|
37418
|
-
},
|
37419
|
-
"fieldName": "alertType"
|
37420
|
-
},
|
37421
|
-
{
|
37422
|
-
"name": "show-ack",
|
37423
|
-
"type": {
|
37424
|
-
"text": "boolean"
|
37425
|
-
},
|
37426
|
-
"default": "false",
|
37427
|
-
"fieldName": "showAck"
|
37428
|
-
},
|
37429
|
-
{
|
37430
|
-
"name": "alert-muted",
|
37431
|
-
"type": {
|
37432
|
-
"text": "boolean"
|
37433
|
-
},
|
37434
|
-
"default": "false",
|
37435
|
-
"fieldName": "alertMuted"
|
37436
|
-
},
|
37437
|
-
{
|
37438
|
-
"name": "minimized",
|
37439
|
-
"type": {
|
37440
|
-
"text": "boolean"
|
37441
|
-
},
|
37442
|
-
"default": "false",
|
37443
|
-
"fieldName": "minimized"
|
37444
|
-
},
|
37445
|
-
{
|
37446
|
-
"name": "max-width",
|
37447
|
-
"type": {
|
37448
|
-
"text": "number"
|
37449
|
-
},
|
37450
|
-
"default": "480",
|
37451
|
-
"fieldName": "maxWidth"
|
37452
|
-
}
|
37453
|
-
],
|
37454
|
-
"superclass": {
|
37455
|
-
"name": "LitElement",
|
37456
|
-
"package": "lit"
|
37457
|
-
},
|
37458
|
-
"tagName": "obc-alert-topbar-element",
|
37459
|
-
"customElement": true
|
37460
|
-
}
|
37461
|
-
],
|
37462
|
-
"exports": [
|
37463
|
-
{
|
37464
|
-
"kind": "js",
|
37465
|
-
"name": "ObcAlertTopbarElement",
|
37466
|
-
"declaration": {
|
37467
|
-
"name": "ObcAlertTopbarElement",
|
37468
|
-
"module": "src/components/alert-topbar-element/alert-topbar-element.ts"
|
37469
|
-
}
|
37470
|
-
},
|
37471
|
-
{
|
37472
|
-
"kind": "custom-element-definition",
|
37473
|
-
"name": "obc-alert-topbar-element",
|
37474
|
-
"declaration": {
|
37475
|
-
"name": "ObcAlertTopbarElement",
|
37476
|
-
"module": "src/components/alert-topbar-element/alert-topbar-element.ts"
|
37477
|
-
}
|
37478
|
-
}
|
37479
|
-
]
|
37480
|
-
},
|
37481
37481
|
{
|
37482
37482
|
"kind": "javascript-module",
|
37483
37483
|
"path": "src/components/app-button/app-button.ts",
|
@@ -38010,113 +38010,6 @@
|
|
38010
38010
|
}
|
38011
38011
|
]
|
38012
38012
|
},
|
38013
|
-
{
|
38014
|
-
"kind": "javascript-module",
|
38015
|
-
"path": "src/components/card-list-button/card-list-button.ts",
|
38016
|
-
"declarations": [
|
38017
|
-
{
|
38018
|
-
"kind": "class",
|
38019
|
-
"description": "",
|
38020
|
-
"name": "ObcCardListButton",
|
38021
|
-
"members": [
|
38022
|
-
{
|
38023
|
-
"kind": "field",
|
38024
|
-
"name": "icon",
|
38025
|
-
"type": {
|
38026
|
-
"text": "string"
|
38027
|
-
},
|
38028
|
-
"default": "'01-placeholder'",
|
38029
|
-
"attribute": "icon"
|
38030
|
-
},
|
38031
|
-
{
|
38032
|
-
"kind": "field",
|
38033
|
-
"name": "variant",
|
38034
|
-
"type": {
|
38035
|
-
"text": "string"
|
38036
|
-
},
|
38037
|
-
"default": "'normal'",
|
38038
|
-
"attribute": "variant"
|
38039
|
-
},
|
38040
|
-
{
|
38041
|
-
"kind": "field",
|
38042
|
-
"name": "leadingIcon",
|
38043
|
-
"type": {
|
38044
|
-
"text": "NodeListOf<HTMLElement>"
|
38045
|
-
},
|
38046
|
-
"privacy": "private"
|
38047
|
-
},
|
38048
|
-
{
|
38049
|
-
"kind": "field",
|
38050
|
-
"name": "trailingIcon",
|
38051
|
-
"type": {
|
38052
|
-
"text": "NodeListOf<HTMLElement>"
|
38053
|
-
},
|
38054
|
-
"privacy": "private"
|
38055
|
-
},
|
38056
|
-
{
|
38057
|
-
"kind": "field",
|
38058
|
-
"name": "hasIconLeading",
|
38059
|
-
"type": {
|
38060
|
-
"text": "boolean"
|
38061
|
-
},
|
38062
|
-
"privacy": "private",
|
38063
|
-
"default": "false"
|
38064
|
-
},
|
38065
|
-
{
|
38066
|
-
"kind": "field",
|
38067
|
-
"name": "hasIconTrailing",
|
38068
|
-
"type": {
|
38069
|
-
"text": "boolean"
|
38070
|
-
},
|
38071
|
-
"privacy": "private",
|
38072
|
-
"default": "false"
|
38073
|
-
}
|
38074
|
-
],
|
38075
|
-
"attributes": [
|
38076
|
-
{
|
38077
|
-
"name": "icon",
|
38078
|
-
"type": {
|
38079
|
-
"text": "string"
|
38080
|
-
},
|
38081
|
-
"default": "'01-placeholder'",
|
38082
|
-
"fieldName": "icon"
|
38083
|
-
},
|
38084
|
-
{
|
38085
|
-
"name": "variant",
|
38086
|
-
"type": {
|
38087
|
-
"text": "string"
|
38088
|
-
},
|
38089
|
-
"default": "'normal'",
|
38090
|
-
"fieldName": "variant"
|
38091
|
-
}
|
38092
|
-
],
|
38093
|
-
"superclass": {
|
38094
|
-
"name": "LitElement",
|
38095
|
-
"package": "lit"
|
38096
|
-
},
|
38097
|
-
"tagName": "obc-card-list-button",
|
38098
|
-
"customElement": true
|
38099
|
-
}
|
38100
|
-
],
|
38101
|
-
"exports": [
|
38102
|
-
{
|
38103
|
-
"kind": "js",
|
38104
|
-
"name": "ObcCardListButton",
|
38105
|
-
"declaration": {
|
38106
|
-
"name": "ObcCardListButton",
|
38107
|
-
"module": "src/components/card-list-button/card-list-button.ts"
|
38108
|
-
}
|
38109
|
-
},
|
38110
|
-
{
|
38111
|
-
"kind": "custom-element-definition",
|
38112
|
-
"name": "obc-card-list-button",
|
38113
|
-
"declaration": {
|
38114
|
-
"name": "ObcCardListButton",
|
38115
|
-
"module": "src/components/card-list-button/card-list-button.ts"
|
38116
|
-
}
|
38117
|
-
}
|
38118
|
-
]
|
38119
|
-
},
|
38120
38013
|
{
|
38121
38014
|
"kind": "javascript-module",
|
38122
38015
|
"path": "src/components/clock/clock.ts",
|
@@ -38209,72 +38102,143 @@
|
|
38209
38102
|
},
|
38210
38103
|
{
|
38211
38104
|
"kind": "javascript-module",
|
38212
|
-
"path": "src/components/
|
38105
|
+
"path": "src/components/divider/divider.ts",
|
38213
38106
|
"declarations": [
|
38214
38107
|
{
|
38215
38108
|
"kind": "class",
|
38216
38109
|
"description": "",
|
38217
|
-
"name": "
|
38110
|
+
"name": "ObcDivider",
|
38218
38111
|
"members": [],
|
38219
38112
|
"superclass": {
|
38220
38113
|
"name": "LitElement",
|
38221
38114
|
"package": "lit"
|
38222
38115
|
},
|
38223
|
-
"tagName": "obc-
|
38116
|
+
"tagName": "obc-divider",
|
38224
38117
|
"customElement": true
|
38225
38118
|
}
|
38226
38119
|
],
|
38227
38120
|
"exports": [
|
38228
38121
|
{
|
38229
38122
|
"kind": "js",
|
38230
|
-
"name": "
|
38123
|
+
"name": "ObcDivider",
|
38231
38124
|
"declaration": {
|
38232
|
-
"name": "
|
38233
|
-
"module": "src/components/
|
38125
|
+
"name": "ObcDivider",
|
38126
|
+
"module": "src/components/divider/divider.ts"
|
38234
38127
|
}
|
38235
38128
|
},
|
38236
38129
|
{
|
38237
38130
|
"kind": "custom-element-definition",
|
38238
|
-
"name": "obc-
|
38131
|
+
"name": "obc-divider",
|
38239
38132
|
"declaration": {
|
38240
|
-
"name": "
|
38241
|
-
"module": "src/components/
|
38133
|
+
"name": "ObcDivider",
|
38134
|
+
"module": "src/components/divider/divider.ts"
|
38242
38135
|
}
|
38243
38136
|
}
|
38244
38137
|
]
|
38245
38138
|
},
|
38246
38139
|
{
|
38247
38140
|
"kind": "javascript-module",
|
38248
|
-
"path": "src/components/
|
38141
|
+
"path": "src/components/card-list-button/card-list-button.ts",
|
38249
38142
|
"declarations": [
|
38250
38143
|
{
|
38251
38144
|
"kind": "class",
|
38252
38145
|
"description": "",
|
38253
|
-
"name": "
|
38254
|
-
"members": [
|
38146
|
+
"name": "ObcCardListButton",
|
38147
|
+
"members": [
|
38148
|
+
{
|
38149
|
+
"kind": "field",
|
38150
|
+
"name": "icon",
|
38151
|
+
"type": {
|
38152
|
+
"text": "string"
|
38153
|
+
},
|
38154
|
+
"default": "'01-placeholder'",
|
38155
|
+
"attribute": "icon"
|
38156
|
+
},
|
38157
|
+
{
|
38158
|
+
"kind": "field",
|
38159
|
+
"name": "variant",
|
38160
|
+
"type": {
|
38161
|
+
"text": "string"
|
38162
|
+
},
|
38163
|
+
"default": "'normal'",
|
38164
|
+
"attribute": "variant"
|
38165
|
+
},
|
38166
|
+
{
|
38167
|
+
"kind": "field",
|
38168
|
+
"name": "leadingIcon",
|
38169
|
+
"type": {
|
38170
|
+
"text": "NodeListOf<HTMLElement>"
|
38171
|
+
},
|
38172
|
+
"privacy": "private"
|
38173
|
+
},
|
38174
|
+
{
|
38175
|
+
"kind": "field",
|
38176
|
+
"name": "trailingIcon",
|
38177
|
+
"type": {
|
38178
|
+
"text": "NodeListOf<HTMLElement>"
|
38179
|
+
},
|
38180
|
+
"privacy": "private"
|
38181
|
+
},
|
38182
|
+
{
|
38183
|
+
"kind": "field",
|
38184
|
+
"name": "hasIconLeading",
|
38185
|
+
"type": {
|
38186
|
+
"text": "boolean"
|
38187
|
+
},
|
38188
|
+
"privacy": "private",
|
38189
|
+
"default": "false"
|
38190
|
+
},
|
38191
|
+
{
|
38192
|
+
"kind": "field",
|
38193
|
+
"name": "hasIconTrailing",
|
38194
|
+
"type": {
|
38195
|
+
"text": "boolean"
|
38196
|
+
},
|
38197
|
+
"privacy": "private",
|
38198
|
+
"default": "false"
|
38199
|
+
}
|
38200
|
+
],
|
38201
|
+
"attributes": [
|
38202
|
+
{
|
38203
|
+
"name": "icon",
|
38204
|
+
"type": {
|
38205
|
+
"text": "string"
|
38206
|
+
},
|
38207
|
+
"default": "'01-placeholder'",
|
38208
|
+
"fieldName": "icon"
|
38209
|
+
},
|
38210
|
+
{
|
38211
|
+
"name": "variant",
|
38212
|
+
"type": {
|
38213
|
+
"text": "string"
|
38214
|
+
},
|
38215
|
+
"default": "'normal'",
|
38216
|
+
"fieldName": "variant"
|
38217
|
+
}
|
38218
|
+
],
|
38255
38219
|
"superclass": {
|
38256
38220
|
"name": "LitElement",
|
38257
38221
|
"package": "lit"
|
38258
38222
|
},
|
38259
|
-
"tagName": "obc-
|
38223
|
+
"tagName": "obc-card-list-button",
|
38260
38224
|
"customElement": true
|
38261
38225
|
}
|
38262
38226
|
],
|
38263
38227
|
"exports": [
|
38264
38228
|
{
|
38265
38229
|
"kind": "js",
|
38266
|
-
"name": "
|
38230
|
+
"name": "ObcCardListButton",
|
38267
38231
|
"declaration": {
|
38268
|
-
"name": "
|
38269
|
-
"module": "src/components/
|
38232
|
+
"name": "ObcCardListButton",
|
38233
|
+
"module": "src/components/card-list-button/card-list-button.ts"
|
38270
38234
|
}
|
38271
38235
|
},
|
38272
38236
|
{
|
38273
38237
|
"kind": "custom-element-definition",
|
38274
|
-
"name": "obc-
|
38238
|
+
"name": "obc-card-list-button",
|
38275
38239
|
"declaration": {
|
38276
|
-
"name": "
|
38277
|
-
"module": "src/components/
|
38240
|
+
"name": "ObcCardListButton",
|
38241
|
+
"module": "src/components/card-list-button/card-list-button.ts"
|
38278
38242
|
}
|
38279
38243
|
}
|
38280
38244
|
]
|
@@ -38551,6 +38515,42 @@
|
|
38551
38515
|
}
|
38552
38516
|
]
|
38553
38517
|
},
|
38518
|
+
{
|
38519
|
+
"kind": "javascript-module",
|
38520
|
+
"path": "src/components/context-menu/context-menu.ts",
|
38521
|
+
"declarations": [
|
38522
|
+
{
|
38523
|
+
"kind": "class",
|
38524
|
+
"description": "",
|
38525
|
+
"name": "ObcContextMenu",
|
38526
|
+
"members": [],
|
38527
|
+
"superclass": {
|
38528
|
+
"name": "LitElement",
|
38529
|
+
"package": "lit"
|
38530
|
+
},
|
38531
|
+
"tagName": "obc-context-menu",
|
38532
|
+
"customElement": true
|
38533
|
+
}
|
38534
|
+
],
|
38535
|
+
"exports": [
|
38536
|
+
{
|
38537
|
+
"kind": "js",
|
38538
|
+
"name": "ObcContextMenu",
|
38539
|
+
"declaration": {
|
38540
|
+
"name": "ObcContextMenu",
|
38541
|
+
"module": "src/components/context-menu/context-menu.ts"
|
38542
|
+
}
|
38543
|
+
},
|
38544
|
+
{
|
38545
|
+
"kind": "custom-element-definition",
|
38546
|
+
"name": "obc-context-menu",
|
38547
|
+
"declaration": {
|
38548
|
+
"name": "ObcContextMenu",
|
38549
|
+
"module": "src/components/context-menu/context-menu.ts"
|
38550
|
+
}
|
38551
|
+
}
|
38552
|
+
]
|
38553
|
+
},
|
38554
38554
|
{
|
38555
38555
|
"kind": "javascript-module",
|
38556
38556
|
"path": "src/components/navigation-item/navigation-item.ts",
|
package/fix-generated.cjs
CHANGED
@@ -13,4 +13,32 @@ function fixIndexFiles() {
|
|
13
13
|
});
|
14
14
|
}
|
15
15
|
|
16
|
+
function addRepositoryToPackageJsonVue() {
|
17
|
+
const packageJson = require('../openbridge-webcomponents-vue/package.json');
|
18
|
+
packageJson.repository = {
|
19
|
+
type: 'git',
|
20
|
+
url: 'https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents.git',
|
21
|
+
directory: "packages/openbridge-webcomponents-vue"
|
22
|
+
}
|
23
|
+
fs.writeFileSync(
|
24
|
+
'../openbridge-webcomponents-vue/package.json',
|
25
|
+
JSON.stringify(packageJson, null, 2)
|
26
|
+
);
|
27
|
+
}
|
28
|
+
|
29
|
+
function addRepositoryToPackageJsonReact() {
|
30
|
+
const packageJson = require('../openbridge-webcomponents-react/package.json');
|
31
|
+
packageJson.repository = {
|
32
|
+
type: 'git',
|
33
|
+
url: 'https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents.git',
|
34
|
+
directory: "packages/openbridge-webcomponents-react"
|
35
|
+
}
|
36
|
+
fs.writeFileSync(
|
37
|
+
'../openbridge-webcomponents-react/package.json',
|
38
|
+
JSON.stringify(packageJson, null, 2)
|
39
|
+
);
|
40
|
+
}
|
41
|
+
|
16
42
|
fixIndexFiles();
|
43
|
+
addRepositoryToPackageJsonVue();
|
44
|
+
addRepositoryToPackageJsonReact();
|
package/package.json
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@oicl/openbridge-webcomponents",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.5",
|
4
4
|
"type": "module",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents.git",
|
8
|
+
"directory": "packages/openbridge-webcomponents"
|
9
|
+
},
|
5
10
|
"scripts": {
|
6
11
|
"build": "yarn run typecheck && yarn run build:ts && yarn run analyze && yarn run build:wrappers",
|
7
12
|
"build:ts": "vite build",
|
8
13
|
"build:ts:watch": "vite build --watch",
|
14
|
+
"build:wrappers": "lit labs gen --framework=vue --framework=react --out=.. && node fix-generated.cjs",
|
9
15
|
"typecheck": "tsc --noEmit",
|
10
16
|
"preview": "vite preview",
|
11
17
|
"storybook": "storybook dev -p 6006",
|
@@ -22,7 +28,7 @@
|
|
22
28
|
"lint:lit-analyzer": "lit-analyzer",
|
23
29
|
"analyze": "cem analyze --litelement --globs \"src/**/*.ts\" --exclude \"src/**/*.stories.ts\"",
|
24
30
|
"analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --exclude \"src/**/*.stories.ts\" --watch",
|
25
|
-
"
|
31
|
+
"release": "release-it"
|
26
32
|
},
|
27
33
|
"dependencies": {
|
28
34
|
"lit": "^3.1.0"
|
@@ -68,7 +74,7 @@
|
|
68
74
|
"vite-plugin-dts": "^3.6.3",
|
69
75
|
"xmldom": "^0.6.0"
|
70
76
|
},
|
71
|
-
"readme": "
|
77
|
+
"readme": "README.md",
|
72
78
|
"types": "./dist/index.d.ts",
|
73
79
|
"customElements": "custom-elements.json"
|
74
80
|
}
|