@oicl/openbridge-webcomponents 0.0.4 → 0.0.6

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/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!
@@ -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",
@@ -38207,78 +38207,6 @@
38207
38207
  }
38208
38208
  ]
38209
38209
  },
38210
- {
38211
- "kind": "javascript-module",
38212
- "path": "src/components/context-menu/context-menu.ts",
38213
- "declarations": [
38214
- {
38215
- "kind": "class",
38216
- "description": "",
38217
- "name": "ObcContextMenu",
38218
- "members": [],
38219
- "superclass": {
38220
- "name": "LitElement",
38221
- "package": "lit"
38222
- },
38223
- "tagName": "obc-context-menu",
38224
- "customElement": true
38225
- }
38226
- ],
38227
- "exports": [
38228
- {
38229
- "kind": "js",
38230
- "name": "ObcContextMenu",
38231
- "declaration": {
38232
- "name": "ObcContextMenu",
38233
- "module": "src/components/context-menu/context-menu.ts"
38234
- }
38235
- },
38236
- {
38237
- "kind": "custom-element-definition",
38238
- "name": "obc-context-menu",
38239
- "declaration": {
38240
- "name": "ObcContextMenu",
38241
- "module": "src/components/context-menu/context-menu.ts"
38242
- }
38243
- }
38244
- ]
38245
- },
38246
- {
38247
- "kind": "javascript-module",
38248
- "path": "src/components/divider/divider.ts",
38249
- "declarations": [
38250
- {
38251
- "kind": "class",
38252
- "description": "",
38253
- "name": "ObcDivider",
38254
- "members": [],
38255
- "superclass": {
38256
- "name": "LitElement",
38257
- "package": "lit"
38258
- },
38259
- "tagName": "obc-divider",
38260
- "customElement": true
38261
- }
38262
- ],
38263
- "exports": [
38264
- {
38265
- "kind": "js",
38266
- "name": "ObcDivider",
38267
- "declaration": {
38268
- "name": "ObcDivider",
38269
- "module": "src/components/divider/divider.ts"
38270
- }
38271
- },
38272
- {
38273
- "kind": "custom-element-definition",
38274
- "name": "obc-divider",
38275
- "declaration": {
38276
- "name": "ObcDivider",
38277
- "module": "src/components/divider/divider.ts"
38278
- }
38279
- }
38280
- ]
38281
- },
38282
38210
  {
38283
38211
  "kind": "javascript-module",
38284
38212
  "path": "src/components/icon-button/icon-button.ts",
@@ -38420,6 +38348,78 @@
38420
38348
  }
38421
38349
  ]
38422
38350
  },
38351
+ {
38352
+ "kind": "javascript-module",
38353
+ "path": "src/components/divider/divider.ts",
38354
+ "declarations": [
38355
+ {
38356
+ "kind": "class",
38357
+ "description": "",
38358
+ "name": "ObcDivider",
38359
+ "members": [],
38360
+ "superclass": {
38361
+ "name": "LitElement",
38362
+ "package": "lit"
38363
+ },
38364
+ "tagName": "obc-divider",
38365
+ "customElement": true
38366
+ }
38367
+ ],
38368
+ "exports": [
38369
+ {
38370
+ "kind": "js",
38371
+ "name": "ObcDivider",
38372
+ "declaration": {
38373
+ "name": "ObcDivider",
38374
+ "module": "src/components/divider/divider.ts"
38375
+ }
38376
+ },
38377
+ {
38378
+ "kind": "custom-element-definition",
38379
+ "name": "obc-divider",
38380
+ "declaration": {
38381
+ "name": "ObcDivider",
38382
+ "module": "src/components/divider/divider.ts"
38383
+ }
38384
+ }
38385
+ ]
38386
+ },
38387
+ {
38388
+ "kind": "javascript-module",
38389
+ "path": "src/components/context-menu/context-menu.ts",
38390
+ "declarations": [
38391
+ {
38392
+ "kind": "class",
38393
+ "description": "",
38394
+ "name": "ObcContextMenu",
38395
+ "members": [],
38396
+ "superclass": {
38397
+ "name": "LitElement",
38398
+ "package": "lit"
38399
+ },
38400
+ "tagName": "obc-context-menu",
38401
+ "customElement": true
38402
+ }
38403
+ ],
38404
+ "exports": [
38405
+ {
38406
+ "kind": "js",
38407
+ "name": "ObcContextMenu",
38408
+ "declaration": {
38409
+ "name": "ObcContextMenu",
38410
+ "module": "src/components/context-menu/context-menu.ts"
38411
+ }
38412
+ },
38413
+ {
38414
+ "kind": "custom-element-definition",
38415
+ "name": "obc-context-menu",
38416
+ "declaration": {
38417
+ "name": "ObcContextMenu",
38418
+ "module": "src/components/context-menu/context-menu.ts"
38419
+ }
38420
+ }
38421
+ ]
38422
+ },
38423
38423
  {
38424
38424
  "kind": "javascript-module",
38425
38425
  "path": "src/components/input/input.ts",
package/fix-generated.cjs CHANGED
@@ -13,4 +13,44 @@ 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: 'git+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: 'git+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
+
42
+ function fixFilePathInPackageJsonReact() {
43
+ const packageJson = require('../openbridge-webcomponents-react/package.json');
44
+ packageJson.files = packageJson.files.map((file) => {
45
+ return file.replace('dist/', '');
46
+ });
47
+ fs.writeFileSync(
48
+ '../openbridge-webcomponents-react/package.json',
49
+ JSON.stringify(packageJson, null, 2)
50
+ );
51
+ }
52
+
16
53
  fixIndexFiles();
54
+ addRepositoryToPackageJsonVue();
55
+ addRepositoryToPackageJsonReact();
56
+ fixFilePathInPackageJsonReact();
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
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
- "build:wrappers": "lit labs gen --framework=vue --framework=react --out=.. && node fix-generated.cjs"
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": "ERROR: No README data found!",
77
+ "readme": "README.md",
72
78
  "types": "./dist/index.d.ts",
73
79
  "customElements": "custom-elements.json"
74
80
  }
package/tsconfig.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "experimentalDecorators": true,
22
22
  "forceConsistentCasingInFileNames": true,
23
23
  "noImplicitOverride": true,
24
+ "skipLibCheck": true,
24
25
  "plugins": [
25
26
  {
26
27
  "name": "ts-lit-plugin",