@oicl/openbridge-webcomponents-vue 2.0.0-next.128 → 2.0.0-next.129
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/building-blocks/readout-block/ObcReadoutBlock.vue.d.ts +4 -2
- package/building-blocks/readout-block/ObcReadoutBlock.vue2.js +1 -1
- package/building-blocks/readout-block/ObcReadoutBlock.vue2.js.map +1 -1
- package/navigation-instruments/readout/ObcReadout.vue.d.ts +4 -2
- package/navigation-instruments/readout/ObcReadout.vue2.js +1 -1
- package/navigation-instruments/readout/ObcReadout.vue2.js.map +1 -1
- package/navigation-instruments/readout-list-item/ObcReadoutListItem.vue.d.ts +3 -2
- package/navigation-instruments/readout-list-item/ObcReadoutListItem.vue2.js +1 -1
- package/navigation-instruments/readout-list-item/ObcReadoutListItem.vue2.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
2
|
-
import { ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
2
|
+
import { ReadoutBlockVariant, ReadoutBlockSize, ReadoutAdviceCategory, ReadoutBlockDataQuality, ReadoutBlockHidePhase } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
3
3
|
import { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
|
|
4
4
|
import { ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment } from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
|
|
5
5
|
import { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
@@ -20,12 +20,14 @@ export interface Props {
|
|
|
20
20
|
off?: boolean;
|
|
21
21
|
offText?: string;
|
|
22
22
|
alignment?: ObcTextboxAlignment;
|
|
23
|
+
category?: ReadoutAdviceCategory;
|
|
24
|
+
active?: boolean;
|
|
23
25
|
dataQuality?: ReadoutBlockDataQuality | undefined;
|
|
24
26
|
alert?: boolean | AlertFrameConfig;
|
|
25
27
|
touching?: boolean;
|
|
26
28
|
hidePhase?: ReadoutBlockHidePhase;
|
|
27
29
|
}
|
|
28
|
-
export type { ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
30
|
+
export type { ReadoutBlockVariant, ReadoutBlockSize, ReadoutAdviceCategory, ReadoutBlockDataQuality, ReadoutBlockHidePhase } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
29
31
|
export type { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
|
|
30
32
|
export type { ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment } from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
|
|
31
33
|
export type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as u,reactive as f,useSlots as d,withDirectives as v,openBlock as h,createBlock as
|
|
1
|
+
import{defineComponent as u,reactive as f,useSlots as d,withDirectives as v,openBlock as h,createBlock as y,h as B}from"vue";import{assignSlotNodes as m}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js";const b=u({__name:"ObcReadoutBlock",props:{variant:{},value:{},valueType:{},size:{},valueSize:{},enhanced:{type:Boolean},weight:{},hasDegree:{type:Boolean},hasIcon:{type:Boolean},fractionDigits:{},maxDigits:{},hintedZeros:{type:Boolean},spaceReserver:{},off:{type:Boolean},offText:{},alignment:{},category:{},active:{type:Boolean},dataQuality:{},alert:{type:[Boolean,Object]},touching:{type:Boolean},hidePhase:{}},setup(c){const o=c,a=f({}),l={created(t){for(const e in o)a[e]=t[e]}};let s=!1;const i=d(),p=()=>{const e={};for(const n in o){const r=o[n];(r!==void 0||s)&&(e[n]=r??a[n])}return s=!0,B("obc-readout-block",e,m(i))};return(t,e)=>v((h(),y(p,null,null,512)),[[l]])}});export{b as default};
|
|
2
2
|
//# sourceMappingURL=ObcReadoutBlock.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcReadoutBlock.vue2.js","sources":["../../src/building-blocks/readout-block/ObcReadoutBlock.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/building-blocks/readout-block/readout-block.js';\n import {ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nimport {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nimport {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';\nimport {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n\n export interface Props {\n variant?: ReadoutBlockVariant;\n value?: string | number | null;\n valueType?: ReadoutValueType;\n size?: ReadoutBlockSize;\n valueSize?: ObcTextboxSize | undefined;\n enhanced?: boolean;\n weight?: ObcTextboxFontWeight;\n hasDegree?: boolean;\n hasIcon?: boolean;\n fractionDigits?: number;\n maxDigits?: number;\n hintedZeros?: boolean;\n spaceReserver?: string | undefined;\n off?: boolean;\n offText?: string;\n alignment?: ObcTextboxAlignment;\n dataQuality?: ReadoutBlockDataQuality | undefined;\n alert?: boolean | AlertFrameConfig;\n touching?: boolean;\n hidePhase?: ReadoutBlockHidePhase\n }\n\n \n \n export type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nexport type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nexport type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';\nexport type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadoutBlock',\n props: {\n variant: {},\n value: {},\n valueType: {},\n size: {},\n valueSize: {},\n enhanced: { type: Boolean },\n weight: {},\n hasDegree: { type: Boolean },\n hasIcon: { type: Boolean },\n fractionDigits: {},\n maxDigits: {},\n hintedZeros: { type: Boolean },\n spaceReserver: {},\n off: { type: Boolean },\n offText: {},\n alignment: {},\n dataQuality: {},\n alert: { type: [Boolean, Object] },\n touching: { type: Boolean },\n hidePhase: {}\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-readout-block',\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":"ObcReadoutBlock.vue2.js","sources":["../../src/building-blocks/readout-block/ObcReadoutBlock.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/building-blocks/readout-block/readout-block.js';\n import {ReadoutBlockVariant, ReadoutBlockSize, ReadoutAdviceCategory, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nimport {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nimport {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';\nimport {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n\n export interface Props {\n variant?: ReadoutBlockVariant;\n value?: string | number | null;\n valueType?: ReadoutValueType;\n size?: ReadoutBlockSize;\n valueSize?: ObcTextboxSize | undefined;\n enhanced?: boolean;\n weight?: ObcTextboxFontWeight;\n hasDegree?: boolean;\n hasIcon?: boolean;\n fractionDigits?: number;\n maxDigits?: number;\n hintedZeros?: boolean;\n spaceReserver?: string | undefined;\n off?: boolean;\n offText?: string;\n alignment?: ObcTextboxAlignment;\n category?: ReadoutAdviceCategory;\n active?: boolean;\n dataQuality?: ReadoutBlockDataQuality | undefined;\n alert?: boolean | AlertFrameConfig;\n touching?: boolean;\n hidePhase?: ReadoutBlockHidePhase\n }\n\n \n \n export type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutAdviceCategory, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nexport type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nexport type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';\nexport type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadoutBlock',\n props: {\n variant: {},\n value: {},\n valueType: {},\n size: {},\n valueSize: {},\n enhanced: { type: Boolean },\n weight: {},\n hasDegree: { type: Boolean },\n hasIcon: { type: Boolean },\n fractionDigits: {},\n maxDigits: {},\n hintedZeros: { type: Boolean },\n spaceReserver: {},\n off: { type: Boolean },\n offText: {},\n alignment: {},\n category: {},\n active: { type: Boolean },\n dataQuality: {},\n alert: { type: [Boolean, Object] },\n touching: { type: Boolean },\n hidePhase: {}\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-readout-block',\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":"+RA2CA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,kBACR,MAAO,CACL,QAAS,CAAA,EACT,MAAO,CAAA,EACP,UAAW,CAAA,EACX,KAAM,CAAA,EACN,UAAW,CAAA,EACX,SAAU,CAAE,KAAM,OAAA,EAClB,OAAQ,CAAA,EACR,UAAW,CAAE,KAAM,OAAA,EACnB,QAAS,CAAE,KAAM,OAAA,EACjB,eAAgB,CAAA,EAChB,UAAW,CAAA,EACX,YAAa,CAAE,KAAM,OAAA,EACrB,cAAe,CAAA,EACf,IAAK,CAAE,KAAM,OAAA,EACb,QAAS,CAAA,EACT,UAAW,CAAA,EACX,SAAU,CAAA,EACV,OAAQ,CAAE,KAAM,OAAA,EAChB,YAAa,CAAA,EACb,MAAO,CAAE,KAAM,CAAC,QAAS,MAAM,CAAA,EAC/B,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAA,CAAC,EAEd,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,oBACAF,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"}
|
|
@@ -4,7 +4,7 @@ import { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge-webc
|
|
|
4
4
|
import { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import { ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
6
6
|
import { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
7
|
-
import { ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
7
|
+
import { ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
8
8
|
export interface Props {
|
|
9
9
|
label?: string | undefined;
|
|
10
10
|
unit?: string | undefined;
|
|
@@ -25,6 +25,7 @@ export interface Props {
|
|
|
25
25
|
alignment?: ReadoutAlignment | undefined;
|
|
26
26
|
hasDegree?: boolean;
|
|
27
27
|
hasDegreeSpacer?: boolean;
|
|
28
|
+
hasLeadingIcon?: boolean;
|
|
28
29
|
fractionDigits?: number;
|
|
29
30
|
maxDigits?: number;
|
|
30
31
|
dataQuality?: ReadoutBlockDataQuality | undefined;
|
|
@@ -32,6 +33,7 @@ export interface Props {
|
|
|
32
33
|
valueOptions?: ReadoutValueOptions | undefined;
|
|
33
34
|
setpointOptions?: ReadoutSetpointOptions | undefined;
|
|
34
35
|
adviceOptions?: ReadoutAdviceOptions | undefined;
|
|
36
|
+
labelOptions?: ReadoutLabelOptions | undefined;
|
|
35
37
|
unitOptions?: ReadoutReserverOptions | undefined;
|
|
36
38
|
srcOptions?: ReadoutSourceOptions | undefined;
|
|
37
39
|
showDebugOverlay?: boolean;
|
|
@@ -41,7 +43,7 @@ export type { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge
|
|
|
41
43
|
export type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
42
44
|
export type { ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
43
45
|
export type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
44
|
-
export type { ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
46
|
+
export type { ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
45
47
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
46
48
|
"source-change": (payload: CustomEvent<{
|
|
47
49
|
value: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as d,reactive as
|
|
1
|
+
import{defineComponent as d,reactive as y,useSlots as v,withDirectives as h,openBlock as m,createBlock as g,h as B}from"vue";import{assignSlotNodes as O}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js";const S=d({__name:"ObcReadout",props:{label:{},unit:{},src:{},hasValue:{type:Boolean},value:{},valueType:{},off:{type:Boolean},offText:{},hasSetpoint:{type:Boolean},setpoint:{},hasAdvice:{type:Boolean},advice:{},size:{},priority:{},direction:{},stacking:{},alignment:{},hasDegree:{type:Boolean},hasDegreeSpacer:{type:Boolean},hasLeadingIcon:{type:Boolean},fractionDigits:{},maxDigits:{},dataQuality:{},alert:{type:[Boolean,Object]},valueOptions:{},setpointOptions:{},adviceOptions:{},labelOptions:{},unitOptions:{},srcOptions:{},showDebugOverlay:{type:Boolean}},emits:["source-change","source-flyout-click"],setup(r,{emit:l}){const t=r,s=y({}),p={created(n){for(const o in t)s[o]=n[o]}};let a=!1;const c=l,u=v(),f=()=>{const o={onSourceChange:e=>c("source-change",e),onSourceFlyoutClick:e=>c("source-flyout-click",e)};for(const e in t){const i=t[e];(i!==void 0||a)&&(o[e]=i??s[e])}return a=!0,B("obc-readout",o,O(u))};return(n,o)=>h((m(),g(f,null,null,512)),[[p]])}});export{S as default};
|
|
2
2
|
//# sourceMappingURL=ObcReadout.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcReadout.vue2.js","sources":["../../src/navigation-instruments/readout/ObcReadout.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/readout/readout.js';\n import {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nimport {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nimport {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\nimport {ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\n\n export interface Props {\n label?: string | undefined;\n unit?: string | undefined;\n src?: string | undefined;\n hasValue?: boolean;\n value?: string | number | null;\n valueType?: ReadoutValueType;\n off?: boolean;\n offText?: string;\n hasSetpoint?: boolean;\n setpoint?: number | undefined;\n hasAdvice?: boolean;\n advice?: number | undefined;\n size?: ReadoutBlockSize | undefined;\n priority?: Priority | undefined;\n direction?: ReadoutDirection | undefined;\n stacking?: ReadoutStacking | undefined;\n alignment?: ReadoutAlignment | undefined;\n hasDegree?: boolean;\n hasDegreeSpacer?: boolean;\n fractionDigits?: number;\n maxDigits?: number;\n dataQuality?: ReadoutBlockDataQuality | undefined;\n alert?: boolean | AlertFrameConfig;\n valueOptions?: ReadoutValueOptions | undefined;\n setpointOptions?: ReadoutSetpointOptions | undefined;\n adviceOptions?: ReadoutAdviceOptions | undefined;\n unitOptions?: ReadoutReserverOptions | undefined;\n srcOptions?: ReadoutSourceOptions | undefined;\n showDebugOverlay?: boolean\n }\n\n \n \n export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nexport type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nexport type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\nexport type {ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadout',\n props: {\n label: {},\n unit: {},\n src: {},\n hasValue: { type: Boolean },\n value: {},\n valueType: {},\n off: { type: Boolean },\n offText: {},\n hasSetpoint: { type: Boolean },\n setpoint: {},\n hasAdvice: { type: Boolean },\n advice: {},\n size: {},\n priority: {},\n direction: {},\n stacking: {},\n alignment: {},\n hasDegree: { type: Boolean },\n hasDegreeSpacer: { type: Boolean },\n fractionDigits: {},\n maxDigits: {},\n dataQuality: {},\n alert: { type: [Boolean, Object] },\n valueOptions: {},\n setpointOptions: {},\n adviceOptions: {},\n unitOptions: {},\n srcOptions: {},\n showDebugOverlay: { type: Boolean }\n },\n emits: [\"source-change\", \"source-flyout-click\"],\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 onSourceChange: (event: CustomEvent<{value: string, label?: string}>) => emit('source-change', event as CustomEvent<{value: string, label?: string}>),\nonSourceFlyoutClick: (event: CustomEvent<{src: string}>) => emit('source-flyout-click', event as CustomEvent<{src: string}>)\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-readout',\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":"
|
|
1
|
+
{"version":3,"file":"ObcReadout.vue2.js","sources":["../../src/navigation-instruments/readout/ObcReadout.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/readout/readout.js';\n import {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nimport {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nimport {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\nimport {ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\n\n export interface Props {\n label?: string | undefined;\n unit?: string | undefined;\n src?: string | undefined;\n hasValue?: boolean;\n value?: string | number | null;\n valueType?: ReadoutValueType;\n off?: boolean;\n offText?: string;\n hasSetpoint?: boolean;\n setpoint?: number | undefined;\n hasAdvice?: boolean;\n advice?: number | undefined;\n size?: ReadoutBlockSize | undefined;\n priority?: Priority | undefined;\n direction?: ReadoutDirection | undefined;\n stacking?: ReadoutStacking | undefined;\n alignment?: ReadoutAlignment | undefined;\n hasDegree?: boolean;\n hasDegreeSpacer?: boolean;\n hasLeadingIcon?: boolean;\n fractionDigits?: number;\n maxDigits?: number;\n dataQuality?: ReadoutBlockDataQuality | undefined;\n alert?: boolean | AlertFrameConfig;\n valueOptions?: ReadoutValueOptions | undefined;\n setpointOptions?: ReadoutSetpointOptions | undefined;\n adviceOptions?: ReadoutAdviceOptions | undefined;\n labelOptions?: ReadoutLabelOptions | undefined;\n unitOptions?: ReadoutReserverOptions | undefined;\n srcOptions?: ReadoutSourceOptions | undefined;\n showDebugOverlay?: boolean\n }\n\n \n \n export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nexport type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nexport type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\nexport type {ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadout',\n props: {\n label: {},\n unit: {},\n src: {},\n hasValue: { type: Boolean },\n value: {},\n valueType: {},\n off: { type: Boolean },\n offText: {},\n hasSetpoint: { type: Boolean },\n setpoint: {},\n hasAdvice: { type: Boolean },\n advice: {},\n size: {},\n priority: {},\n direction: {},\n stacking: {},\n alignment: {},\n hasDegree: { type: Boolean },\n hasDegreeSpacer: { type: Boolean },\n hasLeadingIcon: { type: Boolean },\n fractionDigits: {},\n maxDigits: {},\n dataQuality: {},\n alert: { type: [Boolean, Object] },\n valueOptions: {},\n setpointOptions: {},\n adviceOptions: {},\n labelOptions: {},\n unitOptions: {},\n srcOptions: {},\n showDebugOverlay: { type: Boolean }\n },\n emits: [\"source-change\", \"source-flyout-click\"],\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 onSourceChange: (event: CustomEvent<{value: string, label?: string}>) => emit('source-change', event as CustomEvent<{value: string, label?: string}>),\nonSourceFlyoutClick: (event: CustomEvent<{src: string}>) => emit('source-flyout-click', event as CustomEvent<{src: string}>)\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-readout',\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":"0RAwDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,aACR,MAAO,CACL,MAAO,CAAA,EACP,KAAM,CAAA,EACN,IAAK,CAAA,EACL,SAAU,CAAE,KAAM,OAAA,EAClB,MAAO,CAAA,EACP,UAAW,CAAA,EACX,IAAK,CAAE,KAAM,OAAA,EACb,QAAS,CAAA,EACT,YAAa,CAAE,KAAM,OAAA,EACrB,SAAU,CAAA,EACV,UAAW,CAAE,KAAM,OAAA,EACnB,OAAQ,CAAA,EACR,KAAM,CAAA,EACN,SAAU,CAAA,EACV,UAAW,CAAA,EACX,SAAU,CAAA,EACV,UAAW,CAAA,EACX,UAAW,CAAE,KAAM,OAAA,EACnB,gBAAiB,CAAE,KAAM,OAAA,EACzB,eAAgB,CAAE,KAAM,OAAA,EACxB,eAAgB,CAAA,EAChB,UAAW,CAAA,EACX,YAAa,CAAA,EACb,MAAO,CAAE,KAAM,CAAC,QAAS,MAAM,CAAA,EAC/B,aAAc,CAAA,EACd,gBAAiB,CAAA,EACjB,cAAe,CAAA,EACf,aAAc,CAAA,EACd,YAAa,CAAA,EACb,WAAY,CAAA,EACZ,iBAAkB,CAAE,KAAM,OAAA,CAAQ,EAEpC,MAAO,CAAC,gBAAiB,qBAAqB,EAC9C,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,CAKnB,MAAMC,EAJa,CACvB,eAAiBC,GAAwDL,EAAK,gBAAiBK,CAAqD,EACxJ,oBAAsBA,GAAsCL,EAAK,sBAAuBK,CAAmC,CAAA,EAKrH,UAAWP,KAAKL,EAAU,CACxB,MAAMa,EAAIb,EAASK,CAAgB,GAC9BQ,IAAM,QAAcP,KACtBK,EAAMN,CAAgB,EAAgBQ,GAAKZ,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLQ,EACL,cACAH,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
2
2
|
import { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
|
|
3
3
|
import { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
4
|
-
import { ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
4
|
+
import { ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
5
5
|
import { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
6
6
|
export interface Props {
|
|
7
7
|
label?: string | undefined;
|
|
@@ -30,13 +30,14 @@ export interface Props {
|
|
|
30
30
|
valueOptions?: ReadoutValueOptions | undefined;
|
|
31
31
|
setpointOptions?: ReadoutSetpointOptions | undefined;
|
|
32
32
|
adviceOptions?: ReadoutAdviceOptions | undefined;
|
|
33
|
+
labelOptions?: ReadoutLabelOptions | undefined;
|
|
33
34
|
unitOptions?: ReadoutReserverOptions | undefined;
|
|
34
35
|
srcOptions?: ReadoutSrcOptions | undefined;
|
|
35
36
|
showDebugOverlay?: boolean;
|
|
36
37
|
}
|
|
37
38
|
export type { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
|
|
38
39
|
export type { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
39
|
-
export type { ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
40
|
+
export type { ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
40
41
|
export type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
41
42
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
42
43
|
click: (payload: CustomEvent<unknown>) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as f,reactive as v,useSlots as m,withDirectives as y,openBlock as B,createBlock as h,h as O}from"vue";import{assignSlotNodes as
|
|
1
|
+
import{defineComponent as f,reactive as v,useSlots as m,withDirectives as y,openBlock as B,createBlock as h,h as O}from"vue";import{assignSlotNodes as b}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js";const _=f({__name:"ObcReadoutListItem",props:{label:{},unit:{},src:{},hasValue:{type:Boolean},value:{},valueType:{},off:{type:Boolean},offText:{},hasSetpoint:{type:Boolean},setpoint:{},hasAdvice:{type:Boolean},advice:{},size:{},priority:{},stacking:{},clickable:{type:[Boolean,Object]},hasLeadingIcon:{type:Boolean},hasDegree:{type:Boolean},hasDegreeSpacer:{type:Boolean},fractionDigits:{},maxDigits:{},dataQuality:{},alert:{type:[Boolean,Object]},valueOptions:{},setpointOptions:{},adviceOptions:{},labelOptions:{},unitOptions:{},srcOptions:{},showDebugOverlay:{type:Boolean}},emits:["click"],setup(c,{emit:l}){const o=c,s=v({}),p={created(n){for(const e in o)s[e]=n[e]}};let a=!1;const r=l,u=m(),d=()=>{const e={onClick:t=>r("click",t)};for(const t in o){const i=o[t];(i!==void 0||a)&&(e[t]=i??s[t])}return a=!0,O("obc-readout-list-item",e,b(u))};return(n,e)=>y((B(),h(d,null,null,512)),[[p]])}});export{_ as default};
|
|
2
2
|
//# sourceMappingURL=ObcReadoutListItem.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcReadoutListItem.vue2.js","sources":["../../src/navigation-instruments/readout-list-item/ObcReadoutListItem.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/readout-list-item/readout-list-item.js';\n import {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nimport {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nimport {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\nimport {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n\n export interface Props {\n label?: string | undefined;\n unit?: string | undefined;\n src?: string | undefined;\n hasValue?: boolean;\n value?: string | number | null;\n valueType?: ReadoutValueType;\n off?: boolean;\n offText?: string;\n hasSetpoint?: boolean;\n setpoint?: number | undefined;\n hasAdvice?: boolean;\n advice?: number | undefined;\n size?: ReadoutBlockSize | undefined;\n priority?: ReadoutListItemPriority | undefined;\n stacking?: ReadoutListItemStacking | undefined;\n clickable?: boolean | ReadoutListItemClickable;\n hasLeadingIcon?: boolean;\n hasDegree?: boolean;\n hasDegreeSpacer?: boolean;\n fractionDigits?: number;\n maxDigits?: number;\n dataQuality?: ReadoutBlockDataQuality | undefined;\n alert?: boolean | AlertFrameConfig;\n valueOptions?: ReadoutValueOptions | undefined;\n setpointOptions?: ReadoutSetpointOptions | undefined;\n adviceOptions?: ReadoutAdviceOptions | undefined;\n unitOptions?: ReadoutReserverOptions | undefined;\n srcOptions?: ReadoutSrcOptions | undefined;\n showDebugOverlay?: boolean\n }\n\n \n \n export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nexport type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nexport type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\nexport type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadoutListItem',\n props: {\n label: {},\n unit: {},\n src: {},\n hasValue: { type: Boolean },\n value: {},\n valueType: {},\n off: { type: Boolean },\n offText: {},\n hasSetpoint: { type: Boolean },\n setpoint: {},\n hasAdvice: { type: Boolean },\n advice: {},\n size: {},\n priority: {},\n stacking: {},\n clickable: { type: [Boolean, Object] },\n hasLeadingIcon: { type: Boolean },\n hasDegree: { type: Boolean },\n hasDegreeSpacer: { type: Boolean },\n fractionDigits: {},\n maxDigits: {},\n dataQuality: {},\n alert: { type: [Boolean, Object] },\n valueOptions: {},\n setpointOptions: {},\n adviceOptions: {},\n unitOptions: {},\n srcOptions: {},\n showDebugOverlay: { type: Boolean }\n },\n emits: [\"click\"],\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 onClick: (event: CustomEvent<unknown>) => emit('click', 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-readout-list-item',\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":"
|
|
1
|
+
{"version":3,"file":"ObcReadoutListItem.vue2.js","sources":["../../src/navigation-instruments/readout-list-item/ObcReadoutListItem.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/readout-list-item/readout-list-item.js';\n import {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nimport {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nimport {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\nimport {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n\n export interface Props {\n label?: string | undefined;\n unit?: string | undefined;\n src?: string | undefined;\n hasValue?: boolean;\n value?: string | number | null;\n valueType?: ReadoutValueType;\n off?: boolean;\n offText?: string;\n hasSetpoint?: boolean;\n setpoint?: number | undefined;\n hasAdvice?: boolean;\n advice?: number | undefined;\n size?: ReadoutBlockSize | undefined;\n priority?: ReadoutListItemPriority | undefined;\n stacking?: ReadoutListItemStacking | undefined;\n clickable?: boolean | ReadoutListItemClickable;\n hasLeadingIcon?: boolean;\n hasDegree?: boolean;\n hasDegreeSpacer?: boolean;\n fractionDigits?: number;\n maxDigits?: number;\n dataQuality?: ReadoutBlockDataQuality | undefined;\n alert?: boolean | AlertFrameConfig;\n valueOptions?: ReadoutValueOptions | undefined;\n setpointOptions?: ReadoutSetpointOptions | undefined;\n adviceOptions?: ReadoutAdviceOptions | undefined;\n labelOptions?: ReadoutLabelOptions | undefined;\n unitOptions?: ReadoutReserverOptions | undefined;\n srcOptions?: ReadoutSrcOptions | undefined;\n showDebugOverlay?: boolean\n }\n\n \n \n export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';\nexport type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';\nexport type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutLabelOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';\nexport type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadoutListItem',\n props: {\n label: {},\n unit: {},\n src: {},\n hasValue: { type: Boolean },\n value: {},\n valueType: {},\n off: { type: Boolean },\n offText: {},\n hasSetpoint: { type: Boolean },\n setpoint: {},\n hasAdvice: { type: Boolean },\n advice: {},\n size: {},\n priority: {},\n stacking: {},\n clickable: { type: [Boolean, Object] },\n hasLeadingIcon: { type: Boolean },\n hasDegree: { type: Boolean },\n hasDegreeSpacer: { type: Boolean },\n fractionDigits: {},\n maxDigits: {},\n dataQuality: {},\n alert: { type: [Boolean, Object] },\n valueOptions: {},\n setpointOptions: {},\n adviceOptions: {},\n labelOptions: {},\n unitOptions: {},\n srcOptions: {},\n showDebugOverlay: { type: Boolean }\n },\n emits: [\"click\"],\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 onClick: (event: CustomEvent<unknown>) => emit('click', 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-readout-list-item',\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":"8SAmDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,qBACR,MAAO,CACL,MAAO,CAAA,EACP,KAAM,CAAA,EACN,IAAK,CAAA,EACL,SAAU,CAAE,KAAM,OAAA,EAClB,MAAO,CAAA,EACP,UAAW,CAAA,EACX,IAAK,CAAE,KAAM,OAAA,EACb,QAAS,CAAA,EACT,YAAa,CAAE,KAAM,OAAA,EACrB,SAAU,CAAA,EACV,UAAW,CAAE,KAAM,OAAA,EACnB,OAAQ,CAAA,EACR,KAAM,CAAA,EACN,SAAU,CAAA,EACV,SAAU,CAAA,EACV,UAAW,CAAE,KAAM,CAAC,QAAS,MAAM,CAAA,EACnC,eAAgB,CAAE,KAAM,OAAA,EACxB,UAAW,CAAE,KAAM,OAAA,EACnB,gBAAiB,CAAE,KAAM,OAAA,EACzB,eAAgB,CAAA,EAChB,UAAW,CAAA,EACX,YAAa,CAAA,EACb,MAAO,CAAE,KAAM,CAAC,QAAS,MAAM,CAAA,EAC/B,aAAc,CAAA,EACd,gBAAiB,CAAA,EACjB,cAAe,CAAA,EACf,aAAc,CAAA,EACd,YAAa,CAAA,EACb,WAAY,CAAA,EACZ,iBAAkB,CAAE,KAAM,OAAA,CAAQ,EAEpC,MAAO,CAAC,OAAO,EACf,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,QAAUC,GAAgCL,EAAK,QAASK,CAA6B,CAAA,EAKnF,UAAWP,KAAKL,EAAU,CACxB,MAAMa,EAAIb,EAASK,CAAgB,GAC9BQ,IAAM,QAAcP,KACtBK,EAAMN,CAAgB,EAAgBQ,GAAKZ,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLQ,EACL,wBACAH,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.129",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
13
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.129",
|
|
14
14
|
"vue": "^3.2.41",
|
|
15
15
|
"@lit-labs/vue-utils": "^0.1.0"
|
|
16
16
|
},
|