@oicl/openbridge-webcomponents-vue 2.0.0-next.14 → 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.
- package/navigation-instruments/pitch-roll/ObcPitchRoll.vue.d.ts +1 -0
- package/navigation-instruments/pitch-roll/ObcPitchRoll.vue2.js +1 -1
- package/navigation-instruments/pitch-roll/ObcPitchRoll.vue2.js.map +1 -1
- package/navigation-instruments/roll/ObcRoll.vue.d.ts +1 -0
- package/navigation-instruments/roll/ObcRoll.vue2.js +1 -1
- package/navigation-instruments/roll/ObcRoll.vue2.js.map +1 -1
- package/navigation-instruments/wind-propulsion/ObcWindPropulsion.vue.d.ts +42 -0
- package/navigation-instruments/wind-propulsion/ObcWindPropulsion.vue.js +2 -0
- package/navigation-instruments/wind-propulsion/ObcWindPropulsion.vue.js.map +1 -0
- package/navigation-instruments/wind-propulsion/ObcWindPropulsion.vue2.js +2 -0
- package/navigation-instruments/wind-propulsion/ObcWindPropulsion.vue2.js.map +1 -0
- package/package.json +3 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as m,reactive as v,useSlots as d,withDirectives as g,openBlock as u,createBlock as f,h}from"vue";import{assignSlotNodes as A}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll/pitch-roll.js";const _=m({__name:"ObcPitchRoll",props:{pitch:{},roll:{},minAvgPitch:{},maxAvgPitch:{},minAvgRoll:{},maxAvgRoll:{},vesselImageFore:{},vesselImageSide:{},scaleForeImage:{},maxPitchAdvice:{},maxRollAdvice:{},triggerPitchAdvice:{type:Boolean},triggerRollAdvice:{type:Boolean},priority:{},priorityElements:{}},setup(l){const o=l,s=v({}),n={created(t){for(const e in o)s[e]=t[e]}};let c=!1;const a=d(),p=()=>{const e={};for(const r in o){const i=o[r];(i!==void 0||c)&&(e[r]=i??s[r])}return c=!0,h("obc-pitch-roll",e,A(a))};return(t,e)=>g((u(),f(p,null,null,512)),[[n]])}});export{_ as default};
|
|
2
2
|
//# sourceMappingURL=ObcPitchRoll.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcPitchRoll.vue2.js","sources":["../../src/navigation-instruments/pitch-roll/ObcPitchRoll.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/pitch-roll/pitch-roll.js';\n import {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {PitchRollPriorityElement} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll/pitch-roll.js';\n\n export interface Props {\n pitch?: number;\n roll?: number;\n minAvgPitch?: number;\n maxAvgPitch?: number;\n minAvgRoll?: number;\n maxAvgRoll?: number;\n vesselImageFore?: VesselImage;\n vesselImageSide?: VesselImage;\n maxPitchAdvice?: number | undefined;\n maxRollAdvice?: number | undefined;\n triggerPitchAdvice?: boolean;\n triggerRollAdvice?: boolean;\n priority?: Priority;\n priorityElements?: PitchRollPriorityElement[]\n }\n\n \n \n export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {PitchRollPriorityElement} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll/pitch-roll.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcPitchRoll',\n props: {\n pitch: {},\n roll: {},\n minAvgPitch: {},\n maxAvgPitch: {},\n minAvgRoll: {},\n maxAvgRoll: {},\n vesselImageFore: {},\n vesselImageSide: {},\n maxPitchAdvice: {},\n maxRollAdvice: {},\n triggerPitchAdvice: { type: Boolean },\n triggerRollAdvice: { type: Boolean },\n priority: {},\n priorityElements: {}\n },\n setup(__props: any) {\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 \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \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-pitch-roll',\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","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObcPitchRoll.vue2.js","sources":["../../src/navigation-instruments/pitch-roll/ObcPitchRoll.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/pitch-roll/pitch-roll.js';\n import {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {PitchRollPriorityElement} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll/pitch-roll.js';\n\n export interface Props {\n pitch?: number;\n roll?: number;\n minAvgPitch?: number;\n maxAvgPitch?: number;\n minAvgRoll?: number;\n maxAvgRoll?: number;\n vesselImageFore?: VesselImage;\n vesselImageSide?: VesselImage;\n scaleForeImage?: number;\n maxPitchAdvice?: number | undefined;\n maxRollAdvice?: number | undefined;\n triggerPitchAdvice?: boolean;\n triggerRollAdvice?: boolean;\n priority?: Priority;\n priorityElements?: PitchRollPriorityElement[]\n }\n\n \n \n export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {PitchRollPriorityElement} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll/pitch-roll.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcPitchRoll',\n props: {\n pitch: {},\n roll: {},\n minAvgPitch: {},\n maxAvgPitch: {},\n minAvgRoll: {},\n maxAvgRoll: {},\n vesselImageFore: {},\n vesselImageSide: {},\n scaleForeImage: {},\n maxPitchAdvice: {},\n maxRollAdvice: {},\n triggerPitchAdvice: { type: Boolean },\n triggerRollAdvice: { type: Boolean },\n priority: {},\n priorityElements: {}\n },\n setup(__props: any) {\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 \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \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-pitch-roll',\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","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"2RAkCA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,eACR,MAAO,CACL,MAAO,CAAA,EACP,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,WAAY,CAAA,EACZ,WAAY,CAAA,EACZ,gBAAiB,CAAA,EACjB,gBAAiB,CAAA,EACjB,eAAgB,CAAA,EAChB,eAAgB,CAAA,EAChB,cAAe,CAAA,EACf,mBAAoB,CAAE,KAAM,OAAA,EAC5B,kBAAmB,CAAE,KAAM,OAAA,EAC3B,SAAU,CAAA,EACV,iBAAkB,CAAA,CAAC,EAErB,MAAMC,EAAc,CAEhB,MAAMC,EAAWD,EAEfE,EAAWC,EAAS,EAAW,EAC/BC,EAAY,CAChB,QAAQC,EAAS,CACf,UAAWC,KAAKL,EACdC,EAASI,CAAgB,EAAID,EAAGC,CAAC,CAErC,CAAA,EAGF,IAAIC,EAAc,GAId,MAAMC,EAAQC,EAAA,EAERC,EAAS,IAAM,CAInB,MAAMC,EAHa,CAAA,EAMrB,UAAWL,KAAKL,EAAU,CACxB,MAAMW,EAAIX,EAASK,CAAgB,GAC9BM,IAAM,QAAcL,KACtBI,EAAML,CAAgB,EAAgBM,GAAKV,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGL,EACL,iBACAI,EACAE,EAAgBL,CAAK,CAAA,CAEzB,EAEN,MAAO,CAACM,EAAUC,IACTC,GAAiBC,IAAcC,EAAaR,EAAQ,KAAM,KAAM,GAAG,GAAI,CAC5E,CAACN,CAAS,CAAA,CACX,CAEH,CAEA,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as m,reactive as v,useSlots as u,withDirectives as d,openBlock as f,createBlock as g,h as R}from"vue";import{assignSlotNodes as _}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js";const B=m({__name:"ObcRoll",props:{roll:{},minAvgRoll:{},maxAvgRoll:{},vesselImageFore:{},scaleForeImage:{},maxRollAdvice:{},triggerRollAdvice:{type:Boolean}},setup(c){const o=c,r=v({}),a={created(t){for(const e in o)r[e]=t[e]}};let l=!1;const i=u(),p=()=>{const e={};for(const s in o){const n=o[s];(n!==void 0||l)&&(e[s]=n??r[s])}return l=!0,R("obc-roll",e,_(i))};return(t,e)=>d((f(),g(p,null,null,512)),[[a]])}});export{B as default};
|
|
2
2
|
//# sourceMappingURL=ObcRoll.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcRoll.vue2.js","sources":["../../src/navigation-instruments/roll/ObcRoll.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/roll/roll.js';\n import {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n\n export interface Props {\n roll?: number;\n minAvgRoll?: number;\n maxAvgRoll?: number;\n vesselImageFore?: VesselImage;\n maxRollAdvice?: number | undefined;\n triggerRollAdvice?: boolean\n }\n\n \n \n export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcRoll',\n props: {\n roll: {},\n minAvgRoll: {},\n maxAvgRoll: {},\n vesselImageFore: {},\n maxRollAdvice: {},\n triggerRollAdvice: { type: Boolean }\n },\n setup(__props: any) {\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 \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \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-roll',\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","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObcRoll.vue2.js","sources":["../../src/navigation-instruments/roll/ObcRoll.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/roll/roll.js';\n import {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n\n export interface Props {\n roll?: number;\n minAvgRoll?: number;\n maxAvgRoll?: number;\n vesselImageFore?: VesselImage;\n scaleForeImage?: number;\n maxRollAdvice?: number | undefined;\n triggerRollAdvice?: boolean\n }\n\n \n \n export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcRoll',\n props: {\n roll: {},\n minAvgRoll: {},\n maxAvgRoll: {},\n vesselImageFore: {},\n scaleForeImage: {},\n maxRollAdvice: {},\n triggerRollAdvice: { type: Boolean }\n },\n setup(__props: any) {\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 \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \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-roll',\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","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"oRAsBA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,UACR,MAAO,CACL,KAAM,CAAA,EACN,WAAY,CAAA,EACZ,WAAY,CAAA,EACZ,gBAAiB,CAAA,EACjB,eAAgB,CAAA,EAChB,cAAe,CAAA,EACf,kBAAmB,CAAE,KAAM,OAAA,CAAQ,EAErC,MAAMC,EAAc,CAEhB,MAAMC,EAAWD,EAEfE,EAAWC,EAAS,EAAW,EAC/BC,EAAY,CAChB,QAAQC,EAAS,CACf,UAAWC,KAAKL,EACdC,EAASI,CAAgB,EAAID,EAAGC,CAAC,CAErC,CAAA,EAGF,IAAIC,EAAc,GAId,MAAMC,EAAQC,EAAA,EAERC,EAAS,IAAM,CAInB,MAAMC,EAHa,CAAA,EAMrB,UAAWL,KAAKL,EAAU,CACxB,MAAMW,EAAIX,EAASK,CAAgB,GAC9BM,IAAM,QAAcL,KACtBI,EAAML,CAAgB,EAAgBM,GAAKV,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLM,EACL,WACAF,EACAG,EAAgBN,CAAK,CAAA,CAEzB,EAEN,MAAO,CAACO,EAAUC,IACTC,GAAiBC,IAAcC,EAAaT,EAAQ,KAAM,KAAM,GAAG,GAAI,CAC5E,CAACN,CAAS,CAAA,CACX,CAEH,CAEA,CAAC"}
|
|
@@ -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 @@
|
|
|
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.
|
|
11
|
+
"version": "2.0.0-next.16",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
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"
|