@oicl/openbridge-webcomponents-vue 2.0.0-next.41 → 2.0.0-next.42

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.
@@ -1,15 +1,47 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
2
2
  import { LineMedium } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
3
- import { TankTrend, TankVariant } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
3
+ import { TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
4
+ import { ChartLineDataItem } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
5
+ import { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
6
+ import { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
7
+ import { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
8
+ import { AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
4
9
  export interface Props {
5
10
  medium?: LineMedium;
6
11
  value?: number;
7
12
  max?: number;
8
13
  trend?: TankTrend;
9
- variant?: TankVariant;
14
+ type?: TankType;
15
+ orientation?: TankOrientation;
16
+ compact?: boolean;
17
+ positioning?: TankPositioning;
18
+ static?: boolean;
10
19
  tag?: string;
20
+ chartMode?: TankChartMode;
21
+ chartData?: ChartLineDataItem[];
22
+ priority?: Priority;
23
+ advice?: LinearAdvice[];
24
+ hasAdvice?: boolean;
25
+ hasGraphIcon?: boolean;
26
+ alert?: boolean;
27
+ alertFrameType?: ObcAlertFrameType;
28
+ alertFrameThickness?: ObcAlertFrameThickness;
29
+ alertFrameStatus?: ObcAlertFrameStatus;
30
+ showAlertCategoryIcon?: boolean;
31
+ showAlertIcon?: boolean;
32
+ showTrendSymbol?: boolean;
33
+ percentFractionDigits?: number;
34
+ badgeControl?: AutomationButtonBadgeControl;
35
+ badgeAlert?: AutomationButtonBadgeAlert;
36
+ badgeInterlock?: AutomationButtonBadgeInterlock;
37
+ badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
11
38
  }
12
39
  export type { LineMedium } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
13
- export type { TankTrend, TankVariant } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
40
+ export type { TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
41
+ export type { ChartLineDataItem } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
42
+ export type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
43
+ export type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
44
+ export type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
45
+ export type { AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
14
46
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
47
  export default _default;
@@ -1,2 +1,2 @@
1
- import{defineComponent as l,reactive as m,useSlots as d,withDirectives as f,openBlock as v,createBlock as _,h}from"vue";import{assignSlotNodes as k}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js";const g=l({__name:"ObcAutomationTank",props:{medium:{},value:{},max:{},trend:{},variant:{},tag:{}},setup(c){const e=c,s=m({}),i={created(o){for(const t in e)s[t]=o[t]}};let r=!1;const p=d(),u=()=>{const t={};for(const n in e){const a=e[n];(a!==void 0||r)&&(t[n]=a??s[n])}return r=!0,h("obc-automation-tank",t,k(p))};return(o,t)=>f((v(),_(u,null,null,512)),[[i]])}});export{g as default};
1
+ import{defineComponent as d,reactive as m,useSlots as u,withDirectives as h,openBlock as y,createBlock as f,h as v}from"vue";import{assignSlotNodes as B}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js";const _=d({__name:"ObcAutomationTank",props:{medium:{},value:{},max:{},trend:{},type:{},orientation:{},compact:{type:Boolean},positioning:{},static:{type:Boolean},tag:{},chartMode:{},chartData:{},priority:{},advice:{},hasAdvice:{type:Boolean},hasGraphIcon:{type:Boolean},alert:{type:Boolean},alertFrameType:{},alertFrameThickness:{},alertFrameStatus:{},showAlertCategoryIcon:{type:Boolean},showAlertIcon:{type:Boolean},showTrendSymbol:{type:Boolean},percentFractionDigits:{},badgeControl:{},badgeAlert:{},badgeInterlock:{},badgeCommandLocked:{}},setup(c){const t=c,a=m({}),l={created(o){for(const e in t)a[e]=o[e]}};let r=!1;const i=u(),p=()=>{const e={};for(const n in t){const s=t[n];(s!==void 0||r)&&(e[n]=s??a[n])}return r=!0,v("obc-automation-tank",e,B(i))};return(o,e)=>h((y(),f(p,null,null,512)),[[l]])}});export{_ as default};
2
2
  //# sourceMappingURL=ObcAutomationTank.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObcAutomationTank.vue2.js","sources":["../../src/automation/automation-tank/ObcAutomationTank.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/automation/automation-tank/automation-tank.js';\n import {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';\nimport {TankTrend, TankVariant} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';\n\n export interface Props {\n medium?: LineMedium;\n value?: number;\n max?: number;\n trend?: TankTrend;\n variant?: TankVariant;\n tag?: string\n }\n\n \n \n export type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';\nexport type {TankTrend, TankVariant} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcAutomationTank',\n props: {\n medium: {},\n value: {},\n max: {},\n trend: {},\n variant: {},\n tag: {}\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-automation-tank',\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":"yRAuBA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,oBACR,MAAO,CACL,OAAQ,CAAA,EACR,MAAO,CAAA,EACP,IAAK,CAAA,EACL,MAAO,CAAA,EACP,QAAS,CAAA,EACT,IAAK,CAAA,CAAC,EAER,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,sBACAI,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
+ {"version":3,"file":"ObcAutomationTank.vue2.js","sources":["../../src/automation/automation-tank/ObcAutomationTank.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/automation/automation-tank/automation-tank.js';\n import {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';\nimport {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';\nimport {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';\nimport {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\nimport {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';\n\n export interface Props {\n medium?: LineMedium;\n value?: number;\n max?: number;\n trend?: TankTrend;\n type?: TankType;\n orientation?: TankOrientation;\n compact?: boolean;\n positioning?: TankPositioning;\n static?: boolean;\n tag?: string;\n chartMode?: TankChartMode;\n chartData?: ChartLineDataItem[];\n priority?: Priority;\n advice?: LinearAdvice[];\n hasAdvice?: boolean;\n hasGraphIcon?: boolean;\n alert?: boolean;\n alertFrameType?: ObcAlertFrameType;\n alertFrameThickness?: ObcAlertFrameThickness;\n alertFrameStatus?: ObcAlertFrameStatus;\n showAlertCategoryIcon?: boolean;\n showAlertIcon?: boolean;\n showTrendSymbol?: boolean;\n percentFractionDigits?: number;\n badgeControl?: AutomationButtonBadgeControl;\n badgeAlert?: AutomationButtonBadgeAlert;\n badgeInterlock?: AutomationButtonBadgeInterlock;\n badgeCommandLocked?: AutomationButtonBadgeCommandLocked\n }\n\n \n \n export type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';\nexport type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';\nexport type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';\nexport type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';\nexport type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcAutomationTank',\n props: {\n medium: {},\n value: {},\n max: {},\n trend: {},\n type: {},\n orientation: {},\n compact: { type: Boolean },\n positioning: {},\n static: { type: Boolean },\n tag: {},\n chartMode: {},\n chartData: {},\n priority: {},\n advice: {},\n hasAdvice: { type: Boolean },\n hasGraphIcon: { type: Boolean },\n alert: { type: Boolean },\n alertFrameType: {},\n alertFrameThickness: {},\n alertFrameStatus: {},\n showAlertCategoryIcon: { type: Boolean },\n showAlertIcon: { type: Boolean },\n showTrendSymbol: { type: Boolean },\n percentFractionDigits: {},\n badgeControl: {},\n badgeAlert: {},\n badgeInterlock: {},\n badgeCommandLocked: {}\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-automation-tank',\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":"8RAuDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,oBACR,MAAO,CACL,OAAQ,CAAA,EACR,MAAO,CAAA,EACP,IAAK,CAAA,EACL,MAAO,CAAA,EACP,KAAM,CAAA,EACN,YAAa,CAAA,EACb,QAAS,CAAE,KAAM,OAAA,EACjB,YAAa,CAAA,EACb,OAAQ,CAAE,KAAM,OAAA,EAChB,IAAK,CAAA,EACL,UAAW,CAAA,EACX,UAAW,CAAA,EACX,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,UAAW,CAAE,KAAM,OAAA,EACnB,aAAc,CAAE,KAAM,OAAA,EACtB,MAAO,CAAE,KAAM,OAAA,EACf,eAAgB,CAAA,EAChB,oBAAqB,CAAA,EACrB,iBAAkB,CAAA,EAClB,sBAAuB,CAAE,KAAM,OAAA,EAC/B,cAAe,CAAE,KAAM,OAAA,EACvB,gBAAiB,CAAE,KAAM,OAAA,EACzB,sBAAuB,CAAA,EACvB,aAAc,CAAA,EACd,WAAY,CAAA,EACZ,eAAgB,CAAA,EAChB,mBAAoB,CAAA,CAAC,EAEvB,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,sBACAF,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"}
@@ -26,6 +26,7 @@ export interface Props {
26
26
  showGridX?: boolean;
27
27
  showGridY?: boolean;
28
28
  showTickMarks?: boolean;
29
+ hasLabelPadding?: boolean;
29
30
  showPoints?: boolean;
30
31
  lineMode?: LineMode;
31
32
  unit?: string;
@@ -1,2 +1,2 @@
1
- import{defineComponent as d,reactive as y,useSlots as u,withDirectives as f,openBlock as h,createBlock as m,h as B}from"vue";import{assignSlotNodes as x}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js";const b=d({__name:"ObcAreaGraph",props:{fillMode:{},stacked:{type:Boolean},data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(a){const o=a,i=y({}),l={created(t){for(const e in o)i[e]=t[e]}};let n=!1;const p=u(),c=()=>{const e={};for(const s in o){const r=o[s];(r!==void 0||n)&&(e[s]=r??i[s])}return n=!0,B("obc-area-graph",e,x(p))};return(t,e)=>f((h(),m(c,null,null,512)),[[l]])}});export{b as default};
1
+ import{defineComponent as d,reactive as y,useSlots as u,withDirectives as h,openBlock as f,createBlock as m,h as B}from"vue";import{assignSlotNodes as x}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js";const w=d({__name:"ObcAreaGraph",props:{fillMode:{},stacked:{type:Boolean},data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},hasLabelPadding:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(r){const o=r,i=y({}),l={created(t){for(const e in o)i[e]=t[e]}};let n=!1;const p=u(),c=()=>{const e={};for(const s in o){const a=o[s];(a!==void 0||n)&&(e[s]=a??i[s])}return n=!0,B("obc-area-graph",e,x(p))};return(t,e)=>h((f(),m(c,null,null,512)),[[l]])}});export{w as default};
2
2
  //# sourceMappingURL=ObcAreaGraph.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObcAreaGraph.vue2.js","sources":["../../src/bars-graphs/area-graph/ObcAreaGraph.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/bars-graphs/area-graph/area-graph.js';\n import {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';\nimport {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n fillMode?: AreaFillMode;\n stacked?: boolean;\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';\nexport type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcAreaGraph',\n props: {\n fillMode: {},\n stacked: { type: Boolean },\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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-area-graph',\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":"qRAuDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,eACR,MAAO,CACL,SAAU,CAAA,EACV,QAAS,CAAE,KAAM,OAAA,EACjB,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,iBACAF,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"}
1
+ {"version":3,"file":"ObcAreaGraph.vue2.js","sources":["../../src/bars-graphs/area-graph/ObcAreaGraph.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/bars-graphs/area-graph/area-graph.js';\n import {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';\nimport {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n fillMode?: AreaFillMode;\n stacked?: boolean;\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n hasLabelPadding?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';\nexport type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcAreaGraph',\n props: {\n fillMode: {},\n stacked: { type: Boolean },\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n hasLabelPadding: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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-area-graph',\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":"qRAwDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,eACR,MAAO,CACL,SAAU,CAAA,EACV,QAAS,CAAE,KAAM,OAAA,EACjB,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,gBAAiB,CAAE,KAAM,OAAA,EACzB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,iBACAF,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"}
@@ -23,6 +23,7 @@ export interface Props {
23
23
  showGridX?: boolean;
24
24
  showGridY?: boolean;
25
25
  showTickMarks?: boolean;
26
+ hasLabelPadding?: boolean;
26
27
  showPoints?: boolean;
27
28
  lineMode?: LineMode;
28
29
  unit?: string;
@@ -1,2 +1,2 @@
1
- import{defineComponent as d,reactive as u,useSlots as y,withDirectives as h,openBlock as f,createBlock as m,h as B}from"vue";import{assignSlotNodes as x}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/bars-graphs/line-graph/line-graph.js";const b=d({__name:"ObcLineGraph",props:{data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(a){const o=a,i=u({}),l={created(t){for(const e in o)i[e]=t[e]}};let n=!1;const p=y(),c=()=>{const e={};for(const s in o){const r=o[s];(r!==void 0||n)&&(e[s]=r??i[s])}return n=!0,B("obc-line-graph",e,x(p))};return(t,e)=>h((f(),m(c,null,null,512)),[[l]])}});export{b as default};
1
+ import{defineComponent as d,reactive as y,useSlots as u,withDirectives as h,openBlock as f,createBlock as m,h as B}from"vue";import{assignSlotNodes as x}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/bars-graphs/line-graph/line-graph.js";const w=d({__name:"ObcLineGraph",props:{data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},hasLabelPadding:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(a){const o=a,i=y({}),l={created(t){for(const e in o)i[e]=t[e]}};let n=!1;const p=u(),c=()=>{const e={};for(const s in o){const r=o[s];(r!==void 0||n)&&(e[s]=r??i[s])}return n=!0,B("obc-line-graph",e,x(p))};return(t,e)=>h((f(),m(c,null,null,512)),[[l]])}});export{w as default};
2
2
  //# sourceMappingURL=ObcLineGraph.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObcLineGraph.vue2.js","sources":["../../src/bars-graphs/line-graph/ObcLineGraph.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/bars-graphs/line-graph/line-graph.js';\n import {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcLineGraph',\n props: {\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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-line-graph',\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":"qRAmDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,eACR,MAAO,CACL,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,iBACAF,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"}
1
+ {"version":3,"file":"ObcLineGraph.vue2.js","sources":["../../src/bars-graphs/line-graph/ObcLineGraph.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/bars-graphs/line-graph/line-graph.js';\n import {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n hasLabelPadding?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcLineGraph',\n props: {\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n hasLabelPadding: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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-line-graph',\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":"qRAoDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,eACR,MAAO,CACL,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,gBAAiB,CAAE,KAAM,OAAA,EACzB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,iBACAF,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"}
@@ -23,6 +23,7 @@ export interface Props {
23
23
  showGridX?: boolean;
24
24
  showGridY?: boolean;
25
25
  showTickMarks?: boolean;
26
+ hasLabelPadding?: boolean;
26
27
  showPoints?: boolean;
27
28
  lineMode?: LineMode;
28
29
  unit?: string;
@@ -1,2 +1,2 @@
1
- import{defineComponent as d,reactive as u,useSlots as y,withDirectives as f,openBlock as h,createBlock as m,h as B}from"vue";import{assignSlotNodes as x}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js";const P=d({__name:"ObcChartLineBase",props:{data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(a){const o=a,i=u({}),l={created(t){for(const e in o)i[e]=t[e]}};let n=!1;const c=y(),p=()=>{const e={};for(const s in o){const r=o[s];(r!==void 0||n)&&(e[s]=r??i[s])}return n=!0,B("undefined",e,x(c))};return(t,e)=>f((h(),m(p,null,null,512)),[[l]])}});export{P as default};
1
+ import{defineComponent as d,reactive as u,useSlots as y,withDirectives as f,openBlock as h,createBlock as m,h as B}from"vue";import{assignSlotNodes as x}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js";const P=d({__name:"ObcChartLineBase",props:{data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},hasLabelPadding:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(r){const o=r,n=u({}),l={created(t){for(const e in o)n[e]=t[e]}};let i=!1;const p=y(),c=()=>{const e={};for(const s in o){const a=o[s];(a!==void 0||i)&&(e[s]=a??n[s])}return i=!0,B("undefined",e,x(p))};return(t,e)=>f((h(),m(c,null,null,512)),[[l]])}});export{P as default};
2
2
  //# sourceMappingURL=ObcChartLineBase.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObcChartLineBase.vue2.js","sources":["../../src/building-blocks/chart-line/ObcChartLineBase.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/chart-line/chart-line-base.js';\n import {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcChartLineBase',\n props: {\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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 'undefined',\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":"8RAmDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,mBACR,MAAO,CACL,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,YACAF,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"}
1
+ {"version":3,"file":"ObcChartLineBase.vue2.js","sources":["../../src/building-blocks/chart-line/ObcChartLineBase.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/chart-line/chart-line-base.js';\n import {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n hasLabelPadding?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcChartLineBase',\n props: {\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n hasLabelPadding: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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 'undefined',\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":"8RAoDA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,mBACR,MAAO,CACL,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,gBAAiB,CAAE,KAAM,OAAA,EACzB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,YACAF,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"}
@@ -1,10 +1,11 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
2
+ import { Priority, InstrumentState, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
2
3
  import { ScaleType, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
3
4
  import { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
4
5
  import { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
5
6
  import { ChartDataset } from 'chart.js';
6
- import { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
7
7
  export interface Props {
8
+ priority?: Priority;
8
9
  scaleType?: ScaleType;
9
10
  minValue?: number;
10
11
  maxValue?: number;
@@ -51,6 +52,7 @@ export interface Props {
51
52
  showGridX?: boolean;
52
53
  showGridY?: boolean;
53
54
  showTickMarks?: boolean;
55
+ hasLabelPadding?: boolean;
54
56
  showPoints?: boolean;
55
57
  lineMode?: LineMode;
56
58
  unit?: string;
@@ -60,17 +62,16 @@ export interface Props {
60
62
  yTicksLimit?: number | undefined;
61
63
  yStepSize?: number | undefined;
62
64
  state?: InstrumentState;
63
- priority?: Priority;
64
65
  frameStyle?: FrameStyle;
65
66
  borderRadiusPosition?: BorderRadiusPosition | undefined;
66
67
  borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;
67
68
  instrumentMode?: boolean;
68
69
  borderRadius?: number | undefined;
69
70
  }
71
+ export type { Priority, InstrumentState, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
70
72
  export type { ScaleType, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
71
73
  export type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
72
74
  export type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
73
75
  export type { ChartDataset } from 'chart.js';
74
- export type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
75
76
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
76
77
  export default _default;
@@ -1,2 +1,2 @@
1
- import{defineComponent as d,reactive as y,useSlots as u,withDirectives as B,openBlock as h,createBlock as m,h as f}from"vue";import{assignSlotNodes as v}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js";const b=d({__name:"ObcGaugeTrend",props:{scaleType:{},minValue:{},maxValue:{},chartMinValue:{},chartMaxValue:{},value:{},hasBar:{type:Boolean},hasScale:{type:Boolean},hasAdvice:{type:Boolean},fillMode:{},fillMin:{},fillMax:{},advice:{},primaryTickmarkInterval:{},secondaryTickmarkInterval:{},tertiaryTickmarkInterval:{},chartFill:{type:Boolean},setpoint:{},newSetpoint:{},atSetpoint:{type:Boolean},touching:{type:Boolean},autoAtSetpoint:{type:Boolean},autoAtSetpointDeadband:{},setpointAtZeroDeadband:{},setpointOverride:{type:Boolean},animateSetpoint:{type:Boolean},data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},priority:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(r){const t=r,n=y({}),l={created(o){for(const e in t)n[e]=o[e]}};let i=!1;const p=u(),c=()=>{const e={};for(const a in t){const s=t[a];(s!==void 0||i)&&(e[a]=s??n[a])}return i=!0,f("obc-gauge-trend",e,v(p))};return(o,e)=>B((h(),m(c,null,null,512)),[[l]])}});export{b as default};
1
+ import{defineComponent as d,reactive as y,useSlots as u,withDirectives as B,openBlock as h,createBlock as m,h as f}from"vue";import{assignSlotNodes as v}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js";const b=d({__name:"ObcGaugeTrend",props:{priority:{},scaleType:{},minValue:{},maxValue:{},chartMinValue:{},chartMaxValue:{},value:{},hasBar:{type:Boolean},hasScale:{type:Boolean},hasAdvice:{type:Boolean},fillMode:{},fillMin:{},fillMax:{},advice:{},primaryTickmarkInterval:{},secondaryTickmarkInterval:{},tertiaryTickmarkInterval:{},chartFill:{type:Boolean},setpoint:{},newSetpoint:{},atSetpoint:{type:Boolean},touching:{type:Boolean},autoAtSetpoint:{type:Boolean},autoAtSetpointDeadband:{},setpointAtZeroDeadband:{},setpointOverride:{type:Boolean},animateSetpoint:{type:Boolean},data:{},datasets:{},labels:{},colors:{},legend:{type:Boolean},showDebugOverlay:{type:Boolean},width:{},height:{},fixedAspectRatioScaling:{type:Boolean},scaleReferenceSize:{},xAxisType:{},yAxisPosition:{},yAxes:{},showGrid:{type:Boolean},showGridX:{type:Boolean},showGridY:{type:Boolean},showTickMarks:{type:Boolean},hasLabelPadding:{type:Boolean},showPoints:{type:Boolean},lineMode:{},unit:{},timeDisplay:{},xTicksLimit:{},xStepSize:{},yTicksLimit:{},yStepSize:{},state:{},frameStyle:{},borderRadiusPosition:{},borderRadiusPositionExternalScales:{},instrumentMode:{type:Boolean},borderRadius:{}},setup(r){const t=r,n=y({}),l={created(o){for(const e in t)n[e]=o[e]}};let i=!1;const p=u(),c=()=>{const e={};for(const a in t){const s=t[a];(s!==void 0||i)&&(e[a]=s??n[a])}return i=!0,f("obc-gauge-trend",e,v(p))};return(o,e)=>B((h(),m(c,null,null,512)),[[l]])}});export{b as default};
2
2
  //# sourceMappingURL=ObcGaugeTrend.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObcGaugeTrend.vue2.js","sources":["../../src/navigation-instruments/gauge-trend/ObcGaugeTrend.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/gauge-trend/gauge-trend.js';\n import {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';\nimport {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';\nimport {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\nimport {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n scaleType?: ScaleType;\n minValue?: number;\n maxValue?: number;\n chartMinValue?: number | undefined;\n chartMaxValue?: number | undefined;\n value?: number | undefined;\n hasBar?: boolean;\n hasScale?: boolean;\n hasAdvice?: boolean;\n fillMode?: FillMode;\n fillMin?: number;\n fillMax?: number | undefined;\n advice?: LinearAdvice[];\n primaryTickmarkInterval?: number | undefined;\n secondaryTickmarkInterval?: number;\n tertiaryTickmarkInterval?: number | undefined;\n chartFill?: boolean;\n setpoint?: number | undefined;\n newSetpoint?: number | undefined;\n atSetpoint?: boolean;\n touching?: boolean;\n autoAtSetpoint?: boolean;\n autoAtSetpointDeadband?: number;\n setpointAtZeroDeadband?: number;\n setpointOverride?: boolean;\n animateSetpoint?: boolean;\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n priority?: Priority;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';\nexport type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';\nexport type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\nexport type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcGaugeTrend',\n props: {\n scaleType: {},\n minValue: {},\n maxValue: {},\n chartMinValue: {},\n chartMaxValue: {},\n value: {},\n hasBar: { type: Boolean },\n hasScale: { type: Boolean },\n hasAdvice: { type: Boolean },\n fillMode: {},\n fillMin: {},\n fillMax: {},\n advice: {},\n primaryTickmarkInterval: {},\n secondaryTickmarkInterval: {},\n tertiaryTickmarkInterval: {},\n chartFill: { type: Boolean },\n setpoint: {},\n newSetpoint: {},\n atSetpoint: { type: Boolean },\n touching: { type: Boolean },\n autoAtSetpoint: { type: Boolean },\n autoAtSetpointDeadband: {},\n setpointAtZeroDeadband: {},\n setpointOverride: { type: Boolean },\n animateSetpoint: { type: Boolean },\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n priority: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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-gauge-trend',\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":"kSAiFA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,gBACR,MAAO,CACL,UAAW,CAAA,EACX,SAAU,CAAA,EACV,SAAU,CAAA,EACV,cAAe,CAAA,EACf,cAAe,CAAA,EACf,MAAO,CAAA,EACP,OAAQ,CAAE,KAAM,OAAA,EAChB,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,SAAU,CAAA,EACV,QAAS,CAAA,EACT,QAAS,CAAA,EACT,OAAQ,CAAA,EACR,wBAAyB,CAAA,EACzB,0BAA2B,CAAA,EAC3B,yBAA0B,CAAA,EAC1B,UAAW,CAAE,KAAM,OAAA,EACnB,SAAU,CAAA,EACV,YAAa,CAAA,EACb,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAE,KAAM,OAAA,EAClB,eAAgB,CAAE,KAAM,OAAA,EACxB,uBAAwB,CAAA,EACxB,uBAAwB,CAAA,EACxB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,gBAAiB,CAAE,KAAM,OAAA,EACzB,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,SAAU,CAAA,EACV,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,kBACAF,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"}
1
+ {"version":3,"file":"ObcGaugeTrend.vue2.js","sources":["../../src/navigation-instruments/gauge-trend/ObcGaugeTrend.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/gauge-trend/gauge-trend.js';\n import {Priority, InstrumentState, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';\nimport {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';\nimport {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nimport {ChartDataset} from 'chart.js';\n\n export interface Props {\n priority?: Priority;\n scaleType?: ScaleType;\n minValue?: number;\n maxValue?: number;\n chartMinValue?: number | undefined;\n chartMaxValue?: number | undefined;\n value?: number | undefined;\n hasBar?: boolean;\n hasScale?: boolean;\n hasAdvice?: boolean;\n fillMode?: FillMode;\n fillMin?: number;\n fillMax?: number | undefined;\n advice?: LinearAdvice[];\n primaryTickmarkInterval?: number | undefined;\n secondaryTickmarkInterval?: number;\n tertiaryTickmarkInterval?: number | undefined;\n chartFill?: boolean;\n setpoint?: number | undefined;\n newSetpoint?: number | undefined;\n atSetpoint?: boolean;\n touching?: boolean;\n autoAtSetpoint?: boolean;\n autoAtSetpointDeadband?: number;\n setpointAtZeroDeadband?: number;\n setpointOverride?: boolean;\n animateSetpoint?: boolean;\n data?: ChartLineDataItem[];\n datasets?: ChartDataset<\"line\", (number | { x: string | number | Date; y: number; })[]>[] | undefined;\n labels?: (string | number)[] | undefined;\n colors?: string[];\n legend?: boolean;\n showDebugOverlay?: boolean;\n width?: number;\n height?: number;\n fixedAspectRatioScaling?: boolean;\n scaleReferenceSize?: number;\n xAxisType?: XAxisType;\n yAxisPosition?: YAxisPosition;\n yAxes?: ChartLineYAxisConfig[] | undefined;\n showGrid?: boolean;\n showGridX?: boolean;\n showGridY?: boolean;\n showTickMarks?: boolean;\n hasLabelPadding?: boolean;\n showPoints?: boolean;\n lineMode?: LineMode;\n unit?: string;\n timeDisplay?: TimeDisplay;\n xTicksLimit?: number | undefined;\n xStepSize?: number | undefined;\n yTicksLimit?: number | undefined;\n yStepSize?: number | undefined;\n state?: InstrumentState;\n frameStyle?: FrameStyle;\n borderRadiusPosition?: BorderRadiusPosition | undefined;\n borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;\n instrumentMode?: boolean;\n borderRadius?: number | undefined\n }\n\n \n \n export type {Priority, InstrumentState, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';\nexport type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';\nexport type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';\nexport type {ChartDataset} from 'chart.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcGaugeTrend',\n props: {\n priority: {},\n scaleType: {},\n minValue: {},\n maxValue: {},\n chartMinValue: {},\n chartMaxValue: {},\n value: {},\n hasBar: { type: Boolean },\n hasScale: { type: Boolean },\n hasAdvice: { type: Boolean },\n fillMode: {},\n fillMin: {},\n fillMax: {},\n advice: {},\n primaryTickmarkInterval: {},\n secondaryTickmarkInterval: {},\n tertiaryTickmarkInterval: {},\n chartFill: { type: Boolean },\n setpoint: {},\n newSetpoint: {},\n atSetpoint: { type: Boolean },\n touching: { type: Boolean },\n autoAtSetpoint: { type: Boolean },\n autoAtSetpointDeadband: {},\n setpointAtZeroDeadband: {},\n setpointOverride: { type: Boolean },\n animateSetpoint: { type: Boolean },\n data: {},\n datasets: {},\n labels: {},\n colors: {},\n legend: { type: Boolean },\n showDebugOverlay: { type: Boolean },\n width: {},\n height: {},\n fixedAspectRatioScaling: { type: Boolean },\n scaleReferenceSize: {},\n xAxisType: {},\n yAxisPosition: {},\n yAxes: {},\n showGrid: { type: Boolean },\n showGridX: { type: Boolean },\n showGridY: { type: Boolean },\n showTickMarks: { type: Boolean },\n hasLabelPadding: { type: Boolean },\n showPoints: { type: Boolean },\n lineMode: {},\n unit: {},\n timeDisplay: {},\n xTicksLimit: {},\n xStepSize: {},\n yTicksLimit: {},\n yStepSize: {},\n state: {},\n frameStyle: {},\n borderRadiusPosition: {},\n borderRadiusPositionExternalScales: {},\n instrumentMode: { type: Boolean },\n borderRadius: {}\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-gauge-trend',\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":"kSAkFA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,gBACR,MAAO,CACL,SAAU,CAAA,EACV,UAAW,CAAA,EACX,SAAU,CAAA,EACV,SAAU,CAAA,EACV,cAAe,CAAA,EACf,cAAe,CAAA,EACf,MAAO,CAAA,EACP,OAAQ,CAAE,KAAM,OAAA,EAChB,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,SAAU,CAAA,EACV,QAAS,CAAA,EACT,QAAS,CAAA,EACT,OAAQ,CAAA,EACR,wBAAyB,CAAA,EACzB,0BAA2B,CAAA,EAC3B,yBAA0B,CAAA,EAC1B,UAAW,CAAE,KAAM,OAAA,EACnB,SAAU,CAAA,EACV,YAAa,CAAA,EACb,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAE,KAAM,OAAA,EAClB,eAAgB,CAAE,KAAM,OAAA,EACxB,uBAAwB,CAAA,EACxB,uBAAwB,CAAA,EACxB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,gBAAiB,CAAE,KAAM,OAAA,EACzB,KAAM,CAAA,EACN,SAAU,CAAA,EACV,OAAQ,CAAA,EACR,OAAQ,CAAA,EACR,OAAQ,CAAE,KAAM,OAAA,EAChB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,MAAO,CAAA,EACP,OAAQ,CAAA,EACR,wBAAyB,CAAE,KAAM,OAAA,EACjC,mBAAoB,CAAA,EACpB,UAAW,CAAA,EACX,cAAe,CAAA,EACf,MAAO,CAAA,EACP,SAAU,CAAE,KAAM,OAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,UAAW,CAAE,KAAM,OAAA,EACnB,cAAe,CAAE,KAAM,OAAA,EACvB,gBAAiB,CAAE,KAAM,OAAA,EACzB,WAAY,CAAE,KAAM,OAAA,EACpB,SAAU,CAAA,EACV,KAAM,CAAA,EACN,YAAa,CAAA,EACb,YAAa,CAAA,EACb,UAAW,CAAA,EACX,YAAa,CAAA,EACb,UAAW,CAAA,EACX,MAAO,CAAA,EACP,WAAY,CAAA,EACZ,qBAAsB,CAAA,EACtB,mCAAoC,CAAA,EACpC,eAAgB,CAAE,KAAM,OAAA,EACxB,aAAc,CAAA,CAAC,EAEjB,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,kBACAF,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"}
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.41",
11
+ "version": "2.0.0-next.42",
12
12
  "dependencies": {
13
- "@oicl/openbridge-webcomponents": "^2.0.0-next.40",
13
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.41",
14
14
  "vue": "^3.2.41",
15
15
  "@lit-labs/vue-utils": "^0.1.0"
16
16
  },