@oicl/openbridge-webcomponents-vue 2.0.0-next.124 → 2.0.0-next.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/automation/transmitter/ObcTransmitter.vue.d.ts +29 -0
- package/automation/transmitter/ObcTransmitter.vue.js +2 -0
- package/automation/transmitter/ObcTransmitter.vue.js.map +1 -0
- package/automation/transmitter/ObcTransmitter.vue2.js +2 -0
- package/automation/transmitter/ObcTransmitter.vue2.js.map +1 -0
- package/automation/transmitter-button/ObcTransmitterButton.vue.d.ts +20 -0
- package/automation/transmitter-button/ObcTransmitterButton.vue.js +2 -0
- package/automation/transmitter-button/ObcTransmitterButton.vue.js.map +1 -0
- package/automation/transmitter-button/ObcTransmitterButton.vue2.js +2 -0
- package/automation/transmitter-button/ObcTransmitterButton.vue2.js.map +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
2
|
+
import { TransmitterOrientation, TransmitterType } from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
3
|
+
import { LineType } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
4
|
+
import { TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
5
|
+
export interface Props {
|
|
6
|
+
orientation?: TransmitterOrientation;
|
|
7
|
+
type?: TransmitterType;
|
|
8
|
+
lineType?: LineType | undefined;
|
|
9
|
+
value?: number | null | undefined;
|
|
10
|
+
unit?: string;
|
|
11
|
+
fractionDigits?: number;
|
|
12
|
+
maxDigits?: number;
|
|
13
|
+
hintedZeros?: boolean;
|
|
14
|
+
size?: TransmitterButtonSize;
|
|
15
|
+
hasIcon?: boolean;
|
|
16
|
+
hasAdvice?: boolean;
|
|
17
|
+
hasAlert?: boolean;
|
|
18
|
+
adviceValue?: number | null | undefined;
|
|
19
|
+
hasSetPoint?: boolean;
|
|
20
|
+
setpointValue?: number | null | undefined;
|
|
21
|
+
tag?: string;
|
|
22
|
+
idTag?: string;
|
|
23
|
+
data?: [number[], number[]];
|
|
24
|
+
}
|
|
25
|
+
export type { TransmitterOrientation, TransmitterType } from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
26
|
+
export type { LineType } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
27
|
+
export type { TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
28
|
+
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>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObcTransmitter.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineComponent as u,reactive as d,useSlots as f,withDirectives as m,openBlock as v,createBlock as h,h as y}from"vue";import{assignSlotNodes as B}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js";const P=u({__name:"ObcTransmitter",props:{orientation:{},type:{},lineType:{},value:{},unit:{},fractionDigits:{},maxDigits:{},hintedZeros:{type:Boolean},size:{},hasIcon:{type:Boolean},hasAdvice:{type:Boolean},hasAlert:{type:Boolean},adviceValue:{},hasSetPoint:{type:Boolean},setpointValue:{},tag:{},idTag:{},data:{}},setup(i){const t=i,s=d({}),c={created(o){for(const e in t)s[e]=o[e]}};let a=!1;const l=f(),p=()=>{const e={};for(const n in t){const r=t[n];(r!==void 0||a)&&(e[n]=r??s[n])}return a=!0,y("obc-transmitter",e,B(l))};return(o,e)=>m((v(),h(p,null,null,512)),[[c]])}});export{P as default};
|
|
2
|
+
//# sourceMappingURL=ObcTransmitter.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObcTransmitter.vue2.js","sources":["../../src/automation/transmitter/ObcTransmitter.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/transmitter/transmitter.js';\n import {TransmitterOrientation, TransmitterType} from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';\nimport {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';\nimport {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';\n\n export interface Props {\n orientation?: TransmitterOrientation;\n type?: TransmitterType;\n lineType?: LineType | undefined;\n value?: number | null | undefined;\n unit?: string;\n fractionDigits?: number;\n maxDigits?: number;\n hintedZeros?: boolean;\n size?: TransmitterButtonSize;\n hasIcon?: boolean;\n hasAdvice?: boolean;\n hasAlert?: boolean;\n adviceValue?: number | null | undefined;\n hasSetPoint?: boolean;\n setpointValue?: number | null | undefined;\n tag?: string;\n idTag?: string;\n data?: [number[], number[]]\n }\n\n \n \n export type {TransmitterOrientation, TransmitterType} from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';\nexport type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';\nexport type {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcTransmitter',\n props: {\n orientation: {},\n type: {},\n lineType: {},\n value: {},\n unit: {},\n fractionDigits: {},\n maxDigits: {},\n hintedZeros: { type: Boolean },\n size: {},\n hasIcon: { type: Boolean },\n hasAdvice: { type: Boolean },\n hasAlert: { type: Boolean },\n adviceValue: {},\n hasSetPoint: { type: Boolean },\n setpointValue: {},\n tag: {},\n idTag: {},\n data: {}\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-transmitter',\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":"sRAqCA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,iBACR,MAAO,CACL,YAAa,CAAA,EACb,KAAM,CAAA,EACN,SAAU,CAAA,EACV,MAAO,CAAA,EACP,KAAM,CAAA,EACN,eAAgB,CAAA,EAChB,UAAW,CAAA,EACX,YAAa,CAAE,KAAM,OAAA,EACrB,KAAM,CAAA,EACN,QAAS,CAAE,KAAM,OAAA,EACjB,UAAW,CAAE,KAAM,OAAA,EACnB,SAAU,CAAE,KAAM,OAAA,EAClB,YAAa,CAAA,EACb,YAAa,CAAE,KAAM,OAAA,EACrB,cAAe,CAAA,EACf,IAAK,CAAA,EACL,MAAO,CAAA,EACP,KAAM,CAAA,CAAC,EAET,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
2
|
+
import { TransmitterButtonVariant, TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
3
|
+
export interface Props {
|
|
4
|
+
variant?: TransmitterButtonVariant;
|
|
5
|
+
size?: TransmitterButtonSize;
|
|
6
|
+
value?: number | null | undefined;
|
|
7
|
+
unit?: string;
|
|
8
|
+
fractionDigits?: number;
|
|
9
|
+
maxDigits?: number;
|
|
10
|
+
hintedZeros?: boolean;
|
|
11
|
+
hasIcon?: boolean;
|
|
12
|
+
hasAdvice?: boolean;
|
|
13
|
+
adviceValue?: number | null | undefined;
|
|
14
|
+
hasSetPoint?: boolean;
|
|
15
|
+
setpointValue?: number | null | undefined;
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
export type { TransmitterButtonVariant, TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
19
|
+
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>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObcTransmitterButton.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineComponent as u,reactive as d,useSlots as f,withDirectives as v,openBlock as m,createBlock as h,h as B}from"vue";import{assignSlotNodes as _}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js";const P=u({__name:"ObcTransmitterButton",props:{variant:{},size:{},value:{},unit:{},fractionDigits:{},maxDigits:{},hintedZeros:{type:Boolean},hasIcon:{type:Boolean},hasAdvice:{type:Boolean},adviceValue:{},hasSetPoint:{type:Boolean},setpointValue:{},label:{}},setup(i){const e=i,s=d({}),c={created(o){for(const t in e)s[t]=o[t]}};let r=!1;const l=f(),p=()=>{const t={};for(const n in e){const a=e[n];(a!==void 0||r)&&(t[n]=a??s[n])}return r=!0,B("obc-transmitter-button",t,_(l))};return(o,t)=>v((m(),h(p,null,null,512)),[[c]])}});export{P as default};
|
|
2
|
+
//# sourceMappingURL=ObcTransmitterButton.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObcTransmitterButton.vue2.js","sources":["../../src/automation/transmitter-button/ObcTransmitterButton.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/transmitter-button/transmitter-button.js';\n import {TransmitterButtonVariant, TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';\n\n export interface Props {\n variant?: TransmitterButtonVariant;\n size?: TransmitterButtonSize;\n value?: number | null | undefined;\n unit?: string;\n fractionDigits?: number;\n maxDigits?: number;\n hintedZeros?: boolean;\n hasIcon?: boolean;\n hasAdvice?: boolean;\n adviceValue?: number | null | undefined;\n hasSetPoint?: boolean;\n setpointValue?: number | null | undefined;\n label?: string\n }\n\n \n \n export type {TransmitterButtonVariant, TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcTransmitterButton',\n props: {\n variant: {},\n size: {},\n value: {},\n unit: {},\n fractionDigits: {},\n maxDigits: {},\n hintedZeros: { type: Boolean },\n hasIcon: { type: Boolean },\n hasAdvice: { type: Boolean },\n adviceValue: {},\n hasSetPoint: { type: Boolean },\n setpointValue: {},\n label: {}\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-transmitter-button',\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":"oSA4BA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,uBACR,MAAO,CACL,QAAS,CAAA,EACT,KAAM,CAAA,EACN,MAAO,CAAA,EACP,KAAM,CAAA,EACN,eAAgB,CAAA,EAChB,UAAW,CAAA,EACX,YAAa,CAAE,KAAM,OAAA,EACrB,QAAS,CAAE,KAAM,OAAA,EACjB,UAAW,CAAE,KAAM,OAAA,EACnB,YAAa,CAAA,EACb,YAAa,CAAE,KAAM,OAAA,EACrB,cAAe,CAAA,EACf,MAAO,CAAA,CAAC,EAEV,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,yBACAF,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.
|
|
11
|
+
"version": "2.0.0-next.126",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
13
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.126",
|
|
14
14
|
"vue": "^3.2.41",
|
|
15
15
|
"@lit-labs/vue-utils": "^0.1.0"
|
|
16
16
|
},
|
|
@@ -88,6 +88,8 @@
|
|
|
88
88
|
"automation/switch/ObcSwitch.*",
|
|
89
89
|
"automation/three-way-line/ObcThreeWayLine.*",
|
|
90
90
|
"automation/transformer/ObcTransformer.*",
|
|
91
|
+
"automation/transmitter/ObcTransmitter.*",
|
|
92
|
+
"automation/transmitter-button/ObcTransmitterButton.*",
|
|
91
93
|
"automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.*",
|
|
92
94
|
"automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.*",
|
|
93
95
|
"automation/vertical-line/ObcVerticalLine.*",
|