@progress/kendo-vue-labels 7.1.0-develop.6 → 7.1.0-develop.7
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.
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-vue-intl")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-vue-intl"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueLabels={},e.Vue,e.KendoVueCommon,e.KendoVueIntl)}(this,(function(e,t,o,i){"use strict";const r="labels.optional",s={[r]:"(Optional)"},a={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1641721324,version:"7.1.0-develop.
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-vue-intl")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-vue-intl"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueLabels={},e.Vue,e.KendoVueCommon,e.KendoVueIntl)}(this,(function(e,t,o,i){"use strict";const r="labels.optional",s={[r]:"(Optional)"},a={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1641721324,version:"7.1.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},n=t.defineComponent({name:"KendoLabel",props:{id:String,editorId:String,editorRef:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,optional:Boolean},inject:{kendoLocalizationService:{default:null}},created(){o.validatePackage(a)},computed:{labelClassName(){return{"k-label":!0,"k-label-empty":!this.defaultSlots,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":!0===this.$props.editorDisabled}}},methods:{onLabelClick(e){if(this.$props.editorRef&&this.$props.editorRef.current&&!this.$props.editorDisabled){this.$props.editorRef.current.focus&&(e.preventDefault(),this.$props.editorRef.current.focus());const t=this.$props.editorRef.current.actionElement;t&&(e.preventDefault(),t.click())}}},setup:()=>({kendoLocalizationService:t.inject("kendoLocalizationService",{})}),render(){this.defaultSlots=o.getDefaultSlots(this);const e=i.provideLocalizationService(this),{id:a,editorId:n,optional:l}=this.$props,d=l?e.toLanguageString(r,s[r]):"",p=d&&t.createVNode("span",{class:"k-label-optional"},[d]);return t.createVNode("label",{id:a,for:n,onClick:this.onLabelClick,class:this.labelClassName},[this.defaultSlots,p])}}),l=t.defineComponent({name:"KendoError",props:{id:String,direction:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}}},created(){o.validatePackage(a)},computed:{errorClassName(){return{"k-form-error":!0,"k-text-start":"start"===this.$props.direction,"k-text-end":"end"===this.$props.direction}}},render(){const e=o.getDefaultSlots(this);return t.createVNode("div",{id:this.$props.id,role:"alert",class:this.errorClassName},[e])}}),d=t.defineComponent({name:"KendoHint",props:{id:String,direction:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}}},created(){o.validatePackage(a)},computed:{hintClassName(){return{"k-form-hint":!0,"k-text-start":"start"===this.$props.direction,"k-text-end":"end"===this.$props.direction}}},render(){const e=o.getDefaultSlots(this);return t.createVNode("div",{id:this.$props.id,class:this.hintClassName},[e])}}),p=t.defineComponent({name:"KendoFloatingLabel",props:{label:String,labelClass:String,editorId:String,editorValue:[String,Boolean,Number],editorPlaceholder:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,id:String,optional:Boolean,focused:{type:Boolean,default:void 0},dir:String},data:()=>({currentFocused:!1}),inject:{kendoLocalizationService:{default:null}},created(){o.validatePackage(a)},computed:{computedFocused(){return void 0!==this.$props.focused?this.$props.focused:this.currentFocused},spanClassNames(){return{"k-floating-label-container":!0,"k-focus":this.computedFocused,"k-empty":!this.$props.editorPlaceholder&&!this.$props.editorValue&&0!==this.$props.editorValue,"k-text-disabled":this.$props.editorDisabled,"k-rtl":"rtl"===this.$props.dir}},labelClassNames(){return{"k-floating-label":!0,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":this.$props.editorDisabled,[this.$props.labelClass]:this.$props.labelClass}}},methods:{handleFocus(){this.currentFocused=!0},handleBlur(){this.currentFocused=!1}},setup:()=>({kendoLocalizationService:t.inject("kendoLocalizationService",{})}),render(){const e=o.getDefaultSlots(this),{label:a,editorId:n,id:l,optional:d}=this.$props,p=i.provideLocalizationService(this),c=d?p.toLanguageString(r,s[r]):"",u=c&&t.createVNode("span",{class:"k-label-optional"},[c]);return t.createVNode("span",{class:this.spanClassNames,onFocusin:this.handleFocus,onFocusout:this.handleBlur,dir:this.$props.dir},[e,a?n?t.createVNode("label",{id:l,for:n,class:this.labelClassNames},[a,u]):t.createVNode("span",{id:l,class:this.labelClassNames},[a,u]):null])}});e.Error=l,e.FloatingLabel=p,e.Hint=d,e.Label=n}));
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1770355112,version:"7.1.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "7.1.0-develop.
|
|
13
|
+
publishDate: 1770355112,
|
|
14
|
+
version: "7.1.0-develop.7",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-labels",
|
|
3
|
-
"version": "7.1.0-develop.
|
|
3
|
+
"version": "7.1.0-develop.7",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@progress/kendo-licensing": "^1.7.2",
|
|
22
|
-
"@progress/kendo-vue-common": "7.1.0-develop.
|
|
23
|
-
"@progress/kendo-vue-intl": "7.1.0-develop.
|
|
22
|
+
"@progress/kendo-vue-common": "7.1.0-develop.7",
|
|
23
|
+
"@progress/kendo-vue-intl": "7.1.0-develop.7",
|
|
24
24
|
"vue": "^3.0.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"package": {
|
|
41
41
|
"productName": "Kendo UI for Vue",
|
|
42
42
|
"productCode": "KENDOUIVUE",
|
|
43
|
-
"publishDate":
|
|
43
|
+
"publishDate": 1770355112,
|
|
44
44
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
45
45
|
}
|
|
46
46
|
},
|