@oicl/openbridge-webcomponents-vue 2.0.0-next.34 → 2.0.0-next.36
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.
|
@@ -2,14 +2,15 @@ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/reado
|
|
|
2
2
|
import { ReadoutSourceType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
3
3
|
import { ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
4
|
import { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
+
import { ReadoutInputSize, ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
5
6
|
import { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
6
|
-
import { ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
7
7
|
export interface Props {
|
|
8
8
|
variant?: ReadoutVariant;
|
|
9
9
|
valuePriority?: Priority | undefined;
|
|
10
10
|
alertState?: ReadoutAlertState;
|
|
11
11
|
inputInteraction?: ReadoutInputInteraction;
|
|
12
12
|
direction?: ReadoutDirection;
|
|
13
|
+
inputSize?: ReadoutInputSize | undefined;
|
|
13
14
|
alignment?: ReadoutStackVerticalAlignment;
|
|
14
15
|
hug?: boolean;
|
|
15
16
|
hasAdvice?: boolean;
|
|
@@ -60,8 +61,8 @@ export interface Props {
|
|
|
60
61
|
export type { ReadoutSourceType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
61
62
|
export type { ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
62
63
|
export type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
64
|
+
export type { ReadoutInputSize, ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
63
65
|
export type { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
64
|
-
export type { ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
65
66
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
66
67
|
"source-flyout-click": (payload: CustomEvent<{
|
|
67
68
|
src: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as h,reactive as y,useSlots as v,withDirectives as g,openBlock as B,createBlock as m,h as f}from"vue";import{assignSlotNodes as
|
|
1
|
+
import{defineComponent as h,reactive as y,useSlots as v,withDirectives as g,openBlock as B,createBlock as m,h as f}from"vue";import{assignSlotNodes as S}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js";const x=h({__name:"ObcReadout",props:{variant:{},valuePriority:{},alertState:{},inputInteraction:{},direction:{},inputSize:{},alignment:{},hug:{type:Boolean},hasAdvice:{type:Boolean},hasInput:{type:Boolean},hasInputDivider:{type:Boolean},hasSourceDivider:{type:Boolean},hasSrc:{type:Boolean},value:{},maxDigits:{},showZeroPadding:{type:Boolean},fractionDigits:{},valueHasFixedLength:{type:Boolean},valueLength:{},valueHasHintedZeros:{type:Boolean},hasDegree:{type:Boolean},unit:{},src:{},sourceDeltaValue:{},labelOnly:{type:Boolean},hasSrcPicker:{type:Boolean},hasLeadingIcon:{type:Boolean},adviceValue:{},setpointValue:{},label:{},sourceType:{},sourceHug:{type:Boolean},hasSourceLeadingIcon:{type:Boolean},hasSourceTrailingIcon:{type:Boolean},hasLabelFixedLength:{type:Boolean},labelLength:{},hasUnitFixedLength:{type:Boolean},unitLength:{},adviceFormat:{},adviceState:{},advicePriority:{},adviceHasFixedLength:{type:Boolean},adviceSecondaryValue:{},adviceDescription:{},adviceValueLength:{},adviceHasHintedZeros:{type:Boolean},inputFormat:{},inputHasFixedLength:{type:Boolean},inputSecondaryValue:{},inputDescription:{},inputValueLength:{},inputHasHintedZeros:{type:Boolean}},emits:["source-flyout-click","source-change"],setup(r,{emit:l}){const t=r,a=y({}),u={created(n){for(const o in t)a[o]=n[o]}};let i=!1;const s=l,p=v(),d=()=>{const o={onSourceFlyoutClick:e=>s("source-flyout-click",e),onSourceChange:e=>s("source-change",e)};for(const e in t){const c=t[e];(c!==void 0||i)&&(o[e]=c??a[e])}return i=!0,f("obc-readout",o,S(p))};return(n,o)=>g((B(),m(d,null,null,512)),[[u]])}});export{x 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 {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';\nimport {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {
|
|
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 {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';\nimport {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {ReadoutInputSize, ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';\nimport {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';\n\n export interface Props {\n variant?: ReadoutVariant;\n valuePriority?: Priority | undefined;\n alertState?: ReadoutAlertState;\n inputInteraction?: ReadoutInputInteraction;\n direction?: ReadoutDirection;\n inputSize?: ReadoutInputSize | undefined;\n alignment?: ReadoutStackVerticalAlignment;\n hug?: boolean;\n hasAdvice?: boolean;\n hasInput?: boolean;\n hasInputDivider?: boolean;\n hasSourceDivider?: boolean;\n hasSrc?: boolean;\n value?: string | number | undefined;\n maxDigits?: number;\n showZeroPadding?: boolean;\n fractionDigits?: number;\n valueHasFixedLength?: boolean;\n valueLength?: string;\n valueHasHintedZeros?: boolean;\n hasDegree?: boolean;\n unit?: string;\n src?: string;\n sourceDeltaValue?: string;\n labelOnly?: boolean;\n hasSrcPicker?: boolean;\n hasLeadingIcon?: boolean;\n adviceValue?: string | number | undefined;\n setpointValue?: string | number | undefined;\n label?: string;\n sourceType?: ReadoutSourceType | undefined;\n sourceHug?: boolean;\n hasSourceLeadingIcon?: boolean;\n hasSourceTrailingIcon?: boolean;\n hasLabelFixedLength?: boolean;\n labelLength?: string;\n hasUnitFixedLength?: boolean;\n unitLength?: string;\n adviceFormat?: ReadoutAdviceFormat;\n adviceState?: ReadoutAdviceState;\n advicePriority?: Priority | undefined;\n adviceHasFixedLength?: boolean;\n adviceSecondaryValue?: string;\n adviceDescription?: string;\n adviceValueLength?: string;\n adviceHasHintedZeros?: boolean;\n inputFormat?: ReadoutInputFormat;\n inputHasFixedLength?: boolean;\n inputSecondaryValue?: string;\n inputDescription?: string;\n inputValueLength?: string;\n inputHasHintedZeros?: boolean\n }\n\n \n \n export type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';\nexport type {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {ReadoutInputSize, ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';\nexport type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcReadout',\n props: {\n variant: {},\n valuePriority: {},\n alertState: {},\n inputInteraction: {},\n direction: {},\n inputSize: {},\n alignment: {},\n hug: { type: Boolean },\n hasAdvice: { type: Boolean },\n hasInput: { type: Boolean },\n hasInputDivider: { type: Boolean },\n hasSourceDivider: { type: Boolean },\n hasSrc: { type: Boolean },\n value: {},\n maxDigits: {},\n showZeroPadding: { type: Boolean },\n fractionDigits: {},\n valueHasFixedLength: { type: Boolean },\n valueLength: {},\n valueHasHintedZeros: { type: Boolean },\n hasDegree: { type: Boolean },\n unit: {},\n src: {},\n sourceDeltaValue: {},\n labelOnly: { type: Boolean },\n hasSrcPicker: { type: Boolean },\n hasLeadingIcon: { type: Boolean },\n adviceValue: {},\n setpointValue: {},\n label: {},\n sourceType: {},\n sourceHug: { type: Boolean },\n hasSourceLeadingIcon: { type: Boolean },\n hasSourceTrailingIcon: { type: Boolean },\n hasLabelFixedLength: { type: Boolean },\n labelLength: {},\n hasUnitFixedLength: { type: Boolean },\n unitLength: {},\n adviceFormat: {},\n adviceState: {},\n advicePriority: {},\n adviceHasFixedLength: { type: Boolean },\n adviceSecondaryValue: {},\n adviceDescription: {},\n adviceValueLength: {},\n adviceHasHintedZeros: { type: Boolean },\n inputFormat: {},\n inputHasFixedLength: { type: Boolean },\n inputSecondaryValue: {},\n inputDescription: {},\n inputValueLength: {},\n inputHasHintedZeros: { type: Boolean }\n },\n emits: [\"source-flyout-click\", \"source-change\"],\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 onSourceFlyoutClick: (event: CustomEvent<{src: string, sourceType?: ReadoutSourceType}>) => emit('source-flyout-click', event as CustomEvent<{src: string, sourceType?: ReadoutSourceType}>),\nonSourceChange: (event: CustomEvent<{value: string, label?: string}>) => emit('source-change', event as CustomEvent<{value: string, label?: 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":"0RA2EA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,aACR,MAAO,CACL,QAAS,CAAA,EACT,cAAe,CAAA,EACf,WAAY,CAAA,EACZ,iBAAkB,CAAA,EAClB,UAAW,CAAA,EACX,UAAW,CAAA,EACX,UAAW,CAAA,EACX,IAAK,CAAE,KAAM,OAAA,EACb,UAAW,CAAE,KAAM,OAAA,EACnB,SAAU,CAAE,KAAM,OAAA,EAClB,gBAAiB,CAAE,KAAM,OAAA,EACzB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,OAAQ,CAAE,KAAM,OAAA,EAChB,MAAO,CAAA,EACP,UAAW,CAAA,EACX,gBAAiB,CAAE,KAAM,OAAA,EACzB,eAAgB,CAAA,EAChB,oBAAqB,CAAE,KAAM,OAAA,EAC7B,YAAa,CAAA,EACb,oBAAqB,CAAE,KAAM,OAAA,EAC7B,UAAW,CAAE,KAAM,OAAA,EACnB,KAAM,CAAA,EACN,IAAK,CAAA,EACL,iBAAkB,CAAA,EAClB,UAAW,CAAE,KAAM,OAAA,EACnB,aAAc,CAAE,KAAM,OAAA,EACtB,eAAgB,CAAE,KAAM,OAAA,EACxB,YAAa,CAAA,EACb,cAAe,CAAA,EACf,MAAO,CAAA,EACP,WAAY,CAAA,EACZ,UAAW,CAAE,KAAM,OAAA,EACnB,qBAAsB,CAAE,KAAM,OAAA,EAC9B,sBAAuB,CAAE,KAAM,OAAA,EAC/B,oBAAqB,CAAE,KAAM,OAAA,EAC7B,YAAa,CAAA,EACb,mBAAoB,CAAE,KAAM,OAAA,EAC5B,WAAY,CAAA,EACZ,aAAc,CAAA,EACd,YAAa,CAAA,EACb,eAAgB,CAAA,EAChB,qBAAsB,CAAE,KAAM,OAAA,EAC9B,qBAAsB,CAAA,EACtB,kBAAmB,CAAA,EACnB,kBAAmB,CAAA,EACnB,qBAAsB,CAAE,KAAM,OAAA,EAC9B,YAAa,CAAA,EACb,oBAAqB,CAAE,KAAM,OAAA,EAC7B,oBAAqB,CAAA,EACrB,iBAAkB,CAAA,EAClB,iBAAkB,CAAA,EAClB,oBAAqB,CAAE,KAAM,OAAA,CAAQ,EAEvC,MAAO,CAAC,sBAAuB,eAAe,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,oBAAsBC,GAAsEL,EAAK,sBAAuBK,CAAmE,EAC/L,eAAiBA,GAAwDL,EAAK,gBAAiBK,CAAqD,CAAA,EAK9I,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"}
|
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.36",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
13
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.35",
|
|
14
14
|
"vue": "^3.2.41",
|
|
15
15
|
"@lit-labs/vue-utils": "^0.1.0"
|
|
16
16
|
},
|