@oicl/openbridge-webcomponents-vue 2.0.0-next.15 → 2.0.0-next.16

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.
@@ -0,0 +1,42 @@
1
+ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js';
2
+ import { SailType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/sail-type.js';
3
+ import { InstrumentState, Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
+ import { WindPropulsionPriorityElement } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js';
5
+ import { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
6
+ import { AngleAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';
7
+ export interface Props {
8
+ forceAngle?: number;
9
+ sailAngle?: number;
10
+ sailAngleSetpoint?: number | undefined;
11
+ newSailAngleSetpoint?: number | undefined;
12
+ atSailAngleSetpoint?: boolean;
13
+ autoAtSailAngleSetpoint?: boolean;
14
+ autoAtSailAngleSetpointDeadband?: number;
15
+ sailAngleSetpointAtZeroDeadband?: number;
16
+ sailAngleSetpointOverride?: boolean;
17
+ animateSetpoint?: boolean;
18
+ touching?: boolean;
19
+ force?: number;
20
+ maxForce?: number;
21
+ sailType?: SailType;
22
+ state?: InstrumentState;
23
+ priority?: Priority;
24
+ priorityElements?: WindPropulsionPriorityElement[];
25
+ showLabels?: boolean;
26
+ tickmarksInside?: boolean;
27
+ tickmarkStyle?: TickmarkStyle;
28
+ currentWindSpeedBeaufort?: number | null;
29
+ currentWindFromDirection?: number | null;
30
+ sailAngleAdvices?: AngleAdvice[];
31
+ }
32
+ export type { SailType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/sail-type.js';
33
+ export type { InstrumentState, Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
34
+ export type { WindPropulsionPriorityElement } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js';
35
+ export type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
36
+ export type { AngleAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';
37
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
38
+ None: (payload: CustomEvent<unknown>) => any;
39
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
40
+ onNone?: ((payload: CustomEvent<unknown>) => any) | undefined;
41
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import f from"./ObcWindPropulsion.vue2.js";export{f as default};
2
+ //# sourceMappingURL=ObcWindPropulsion.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObcWindPropulsion.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{defineComponent as m,reactive as S,useSlots as f,withDirectives as A,openBlock as g,createBlock as y,h as v}from"vue";import{assignSlotNodes as B}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js";const b=m({__name:"ObcWindPropulsion",props:{forceAngle:{},sailAngle:{},sailAngleSetpoint:{},newSailAngleSetpoint:{},atSailAngleSetpoint:{type:Boolean},autoAtSailAngleSetpoint:{type:Boolean},autoAtSailAngleSetpointDeadband:{},sailAngleSetpointAtZeroDeadband:{},sailAngleSetpointOverride:{type:Boolean},animateSetpoint:{type:Boolean},touching:{type:Boolean},force:{},maxForce:{},sailType:{},state:{},priority:{},priorityElements:{},showLabels:{type:Boolean},tickmarksInside:{type:Boolean},tickmarkStyle:{},currentWindSpeedBeaufort:{},currentWindFromDirection:{},sailAngleAdvices:{}},emits:["None"],setup(l,{emit:a}){const o=l,i=S({}),p={created(n){for(const e in o)i[e]=n[e]}};let r=!1;const c=a,d=f(),u=()=>{const e={onNone:t=>c("None",t)};for(const t in o){const s=o[t];(s!==void 0||r)&&(e[t]=s??i[t])}return r=!0,v("obc-wind-propulsion",e,B(d))};return(n,e)=>A((g(),y(u,null,null,512)),[[p]])}});export{b as default};
2
+ //# sourceMappingURL=ObcWindPropulsion.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObcWindPropulsion.vue2.js","sources":["../../src/navigation-instruments/wind-propulsion/ObcWindPropulsion.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { h, useSlots, reactive } from \"vue\";\n import { assignSlotNodes, Slots } from \"@lit-labs/vue-utils/wrapper-utils.js\";\n import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js';\n import {SailType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/sail-type.js';\nimport {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {WindPropulsionPriorityElement} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js';\nimport {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';\nimport {AngleAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';\n\n export interface Props {\n forceAngle?: number;\n sailAngle?: number;\n sailAngleSetpoint?: number | undefined;\n newSailAngleSetpoint?: number | undefined;\n atSailAngleSetpoint?: boolean;\n autoAtSailAngleSetpoint?: boolean;\n autoAtSailAngleSetpointDeadband?: number;\n sailAngleSetpointAtZeroDeadband?: number;\n sailAngleSetpointOverride?: boolean;\n animateSetpoint?: boolean;\n touching?: boolean;\n force?: number;\n maxForce?: number;\n sailType?: SailType;\n state?: InstrumentState;\n priority?: Priority;\n priorityElements?: WindPropulsionPriorityElement[];\n showLabels?: boolean;\n tickmarksInside?: boolean;\n tickmarkStyle?: TickmarkStyle;\n currentWindSpeedBeaufort?: number | null;\n currentWindFromDirection?: number | null;\n sailAngleAdvices?: AngleAdvice[]\n }\n\n \n \n export type {SailType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/sail-type.js';\nexport type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {WindPropulsionPriorityElement} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-propulsion/wind-propulsion.js';\nexport type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';\nexport type {AngleAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcWindPropulsion',\n props: {\n forceAngle: {},\n sailAngle: {},\n sailAngleSetpoint: {},\n newSailAngleSetpoint: {},\n atSailAngleSetpoint: { type: Boolean },\n autoAtSailAngleSetpoint: { type: Boolean },\n autoAtSailAngleSetpointDeadband: {},\n sailAngleSetpointAtZeroDeadband: {},\n sailAngleSetpointOverride: { type: Boolean },\n animateSetpoint: { type: Boolean },\n touching: { type: Boolean },\n force: {},\n maxForce: {},\n sailType: {},\n state: {},\n priority: {},\n priorityElements: {},\n showLabels: { type: Boolean },\n tickmarksInside: { type: Boolean },\n tickmarkStyle: {},\n currentWindSpeedBeaufort: {},\n currentWindFromDirection: {},\n sailAngleAdvices: {}\n },\n emits: [\"None\"],\n setup(__props: any, { emit: __emit }) {\n\n const vueProps = __props;\n\n const defaults = reactive({} as Props);\n const vDefaults = {\n created(el: any) {\n for (const p in vueProps) {\n defaults[p as keyof Props] = el[p];\n }\n }\n };\n\n let hasRendered = false;\n\n const emit = __emit;\n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n onNone: (event: CustomEvent<unknown>) => emit('None', event as CustomEvent<unknown>)\n };\n const props = eventProps as (typeof eventProps & Props);\n\n \n for (const p in vueProps) {\n const v = vueProps[p as keyof Props];\n if ((v !== undefined) || hasRendered) {\n (props[p as keyof Props] as unknown) = v ?? defaults[p as keyof Props];\n }\n }\n\n hasRendered = true;\n \n\n return h(\n 'obc-wind-propulsion',\n props,\n assignSlotNodes(slots)\n );\n };\n \nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createBlock(render, null, null, 512)), [\n [vDefaults]\n ])\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","emit","slots","useSlots","render","props","event","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"0SA8CA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,oBACR,MAAO,CACL,WAAY,CAAA,EACZ,UAAW,CAAA,EACX,kBAAmB,CAAA,EACnB,qBAAsB,CAAA,EACtB,oBAAqB,CAAE,KAAM,OAAA,EAC7B,wBAAyB,CAAE,KAAM,OAAA,EACjC,gCAAiC,CAAA,EACjC,gCAAiC,CAAA,EACjC,0BAA2B,CAAE,KAAM,OAAA,EACnC,gBAAiB,CAAE,KAAM,OAAA,EACzB,SAAU,CAAE,KAAM,OAAA,EAClB,MAAO,CAAA,EACP,SAAU,CAAA,EACV,SAAU,CAAA,EACV,MAAO,CAAA,EACP,SAAU,CAAA,EACV,iBAAkB,CAAA,EAClB,WAAY,CAAE,KAAM,OAAA,EACpB,gBAAiB,CAAE,KAAM,OAAA,EACzB,cAAe,CAAA,EACf,yBAA0B,CAAA,EAC1B,yBAA0B,CAAA,EAC1B,iBAAkB,CAAA,CAAC,EAErB,MAAO,CAAC,MAAM,EACd,MAAMC,EAAc,CAAE,KAAMC,GAAU,CAElC,MAAMC,EAAWF,EAEfG,EAAWC,EAAS,EAAW,EAC/BC,EAAY,CAChB,QAAQC,EAAS,CACf,UAAWC,KAAKL,EACdC,EAASI,CAAgB,EAAID,EAAGC,CAAC,CAErC,CAAA,EAGF,IAAIC,EAAc,GAEd,MAAMC,EAAOR,EAEPS,EAAQC,EAAA,EAERC,EAAS,IAAM,CAInB,MAAMC,EAHa,CACvB,OAASC,GAAgCL,EAAK,OAAQK,CAA6B,CAAA,EAKjF,UAAWP,KAAKL,EAAU,CACxB,MAAMa,EAAIb,EAASK,CAAgB,GAC9BQ,IAAM,QAAcP,KACtBK,EAAMN,CAAgB,EAAgBQ,GAAKZ,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLQ,EACL,sBACAH,EACAI,EAAgBP,CAAK,CAAA,CAEzB,EAEN,MAAO,CAACQ,EAAUC,IACTC,GAAiBC,IAAcC,EAAaV,EAAQ,KAAM,KAAM,GAAG,GAAI,CAC5E,CAACP,CAAS,CAAA,CACX,CAEH,CAEA,CAAC"}
package/package.json CHANGED
@@ -8,9 +8,9 @@
8
8
  "build:declarations": "vue-tsc --declaration --emitDeclarationOnly",
9
9
  "preview": "vite preview"
10
10
  },
11
- "version": "2.0.0-next.15",
11
+ "version": "2.0.0-next.16",
12
12
  "dependencies": {
13
- "@oicl/openbridge-webcomponents": "^2.0.0-next.14",
13
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.15",
14
14
  "vue": "^3.2.41",
15
15
  "@lit-labs/vue-utils": "^0.1.0"
16
16
  },
@@ -2222,6 +2222,7 @@
2222
2222
  "navigation-instruments/watch-flat/ObcWatchFlat.*",
2223
2223
  "navigation-instruments/wind/ObcWind.*",
2224
2224
  "navigation-instruments/wind-indicator/ObcWindIndicator.*",
2225
+ "navigation-instruments/wind-propulsion/ObcWindPropulsion.*",
2225
2226
  "pages/alert-detail-page/ObcAlertDetailPage.*",
2226
2227
  "pages/alert-list-page-small/ObcAlertListPageSmall.*",
2227
2228
  "README.md"