@progress/kendo-react-labels 6.1.1-dev.202311151536 → 7.0.0-develop.1

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.
Files changed (42) hide show
  1. package/{dist/es/Error.d.ts → Error.d.ts} +5 -1
  2. package/{dist/npm/FloatingLabel.d.ts → FloatingLabel.d.ts} +5 -1
  3. package/{dist/es/Hint.d.ts → Hint.d.ts} +5 -1
  4. package/LICENSE.md +1 -1
  5. package/{dist/es/Label.d.ts → Label.d.ts} +5 -1
  6. package/dist/cdn/js/kendo-react-labels.js +5 -1
  7. package/index.d.ts +9 -0
  8. package/index.js +5 -0
  9. package/index.mjs +203 -0
  10. package/messages/index.d.ts +14 -0
  11. package/package-metadata.d.ts +9 -0
  12. package/package.json +27 -40
  13. package/about.md +0 -3
  14. package/dist/es/Error.js +0 -41
  15. package/dist/es/FloatingLabel.d.ts +0 -123
  16. package/dist/es/FloatingLabel.js +0 -124
  17. package/dist/es/Hint.js +0 -43
  18. package/dist/es/Label.js +0 -81
  19. package/dist/es/main.d.ts +0 -5
  20. package/dist/es/main.js +0 -5
  21. package/dist/es/messages/index.d.ts +0 -10
  22. package/dist/es/messages/index.js +0 -11
  23. package/dist/es/package-metadata.d.ts +0 -5
  24. package/dist/es/package-metadata.js +0 -11
  25. package/dist/npm/Error.d.ts +0 -47
  26. package/dist/npm/Error.js +0 -45
  27. package/dist/npm/FloatingLabel.js +0 -127
  28. package/dist/npm/Hint.d.ts +0 -52
  29. package/dist/npm/Hint.js +0 -47
  30. package/dist/npm/Label.d.ts +0 -95
  31. package/dist/npm/Label.js +0 -85
  32. package/dist/npm/main.d.ts +0 -5
  33. package/dist/npm/main.js +0 -11
  34. package/dist/npm/messages/index.d.ts +0 -10
  35. package/dist/npm/messages/index.js +0 -14
  36. package/dist/npm/package-metadata.d.ts +0 -5
  37. package/dist/npm/package-metadata.js +0 -14
  38. package/dist/systemjs/kendo-react-labels.js +0 -1
  39. package/e2e-next/error.basic.tests.ts +0 -23
  40. package/e2e-next/floatinglabel.basic.tests.ts +0 -24
  41. package/e2e-next/hint.basic.tests.ts +0 -23
  42. package/e2e-next/label.basic.tests.ts +0 -24
@@ -1,52 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- /**
4
- * Represents the props of the KendoReact Hint component.
5
- */
6
- export interface HintProps {
7
- /**
8
- * Represents the id of the Hint element.
9
- * The value should be set to the editor `ariaDescribedBy` property.
10
- */
11
- id?: string;
12
- /**
13
- * Spcifies the alignment of the Hint text.
14
- *
15
- * The possible values are:
16
- * *(Default) `start`
17
- * * `end`
18
- */
19
- direction?: 'start' | 'end';
20
- /**
21
- * @hidden
22
- */
23
- children: any;
24
- /**
25
- * The styles that are applied to the Hint.
26
- */
27
- style?: React.CSSProperties;
28
- /**
29
- * Sets a class of the Hint DOM element.
30
- */
31
- className?: string;
32
- /**
33
- * Specifies if the editor is disabled.
34
- */
35
- editorDisabled?: boolean;
36
- }
37
- /**
38
- * Represents the KendoReact Hint component.
39
- * Render the hint text that will be shown underneath the form editor.
40
- */
41
- export declare const Hint: {
42
- (props: HintProps): JSX.Element;
43
- propTypes: {
44
- id: PropTypes.Requireable<string>;
45
- direction: PropTypes.Requireable<string>;
46
- children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
47
- style: PropTypes.Requireable<object>;
48
- className: PropTypes.Requireable<string>;
49
- editorDisabled: PropTypes.Requireable<boolean>;
50
- };
51
- displayName: string;
52
- };
package/dist/npm/Hint.js DELETED
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Hint = void 0;
15
- var React = require("react");
16
- var PropTypes = require("prop-types");
17
- var kendo_react_common_1 = require("@progress/kendo-react-common");
18
- var kendo_react_common_2 = require("@progress/kendo-react-common");
19
- var package_metadata_1 = require("./package-metadata");
20
- /**
21
- * Represents the KendoReact Hint component.
22
- * Render the hint text that will be shown underneath the form editor.
23
- */
24
- var Hint = function (props) {
25
- var combinedProps = __assign({ direction: 'start' }, props);
26
- (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
27
- var hintClassName = (0, kendo_react_common_1.classNames)({
28
- 'k-form-hint': true,
29
- 'k-text-start': combinedProps.direction === 'start',
30
- 'k-text-end': combinedProps.direction === 'end',
31
- 'k-text-disabled': combinedProps.editorDisabled === true
32
- }, combinedProps.className);
33
- return (React.createElement("div", { id: combinedProps.id, style: combinedProps.style, className: hintClassName }, combinedProps.children));
34
- };
35
- exports.Hint = Hint;
36
- exports.Hint.propTypes = {
37
- id: PropTypes.string,
38
- direction: PropTypes.oneOf(['start', 'end']),
39
- children: PropTypes.oneOfType([
40
- PropTypes.element,
41
- PropTypes.node
42
- ]),
43
- style: PropTypes.object,
44
- className: PropTypes.string,
45
- editorDisabled: PropTypes.bool
46
- };
47
- exports.Hint.displayName = 'KendoReactHint';
@@ -1,95 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- /**
4
- * Represents the props of the KendoReact Label component.
5
- */
6
- export interface LabelProps {
7
- /**
8
- * Represents the id of the label element.
9
- * The value should be set to the editor `ariaLabelledBy` property.
10
- * Can be used when the editor is not containing native form element.
11
- */
12
- id?: string;
13
- /**
14
- * The id of the editor.
15
- * Represent the [`htmlFor`](https://reactjs.org/docs/dom-elements.html#htmlfor) property, which will be set to the `label` element.
16
- */
17
- editorId?: string;
18
- /**
19
- * An optional React ref to the editor.
20
- * Used to redirect the click event to the editor when it does not contain native form element.
21
- * To be able to work, the editor should have `focus` method or `actionElement` prop on it's ref.
22
- */
23
- editorRef?: any;
24
- /**
25
- * The text that will be rendered inside the label element.
26
- * Can be omitted for editors without label to keep form layout.
27
- */
28
- children?: any;
29
- /**
30
- * Specifies the validity of the editor. Used to define the editor is invalid.
31
- */
32
- editorValid?: boolean;
33
- /**
34
- * Specifies if the editor is disabled.
35
- */
36
- editorDisabled?: boolean;
37
- /**
38
- * If enabled marks the label as optional.
39
- */
40
- optional?: boolean;
41
- /**
42
- * The styles that are applied to the Label.
43
- */
44
- style?: React.CSSProperties;
45
- /**
46
- * Sets a class of the Label DOM element.
47
- */
48
- className?: string;
49
- }
50
- /**
51
- * Represents the KendoReact Label component.
52
- *
53
- * @example
54
- * ```jsx
55
- * const sizes = ["X-Small", "Small", "Medium", "Large", "X-Large", "2X-Large"];
56
- * const App = () => {
57
- * const ddlRef = React.useRef(null);
58
- * const labelId = 'ddl-sizes-label';
59
- * const editorId = 'ddl-sizes';
60
- *
61
- * return (
62
- * <div>
63
- * <Label id={labelId} editorId={editorId} editorRef={ddlRef}>
64
- * Shirt Size:
65
- * </Label>
66
- * <DropDownList
67
- * ref={ddlRef}
68
- * id={editorId}
69
- * ariaLabelledBy={labelId}
70
- * data={sizes}
71
- * />
72
- * <br />
73
- * </div>
74
- * );
75
- * };
76
- *
77
- * ReactDOM.render(<App />, document.querySelector('my-app'));
78
- * ```
79
- */
80
- export declare const Label: {
81
- (props: LabelProps): JSX.Element;
82
- propTypes: {
83
- id: PropTypes.Requireable<string>;
84
- editorId: PropTypes.Requireable<string>;
85
- editorRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
86
- current: PropTypes.Requireable<any>;
87
- }> | null | undefined>>;
88
- editorValid: PropTypes.Requireable<boolean>;
89
- editorDisabled: PropTypes.Requireable<boolean>;
90
- style: PropTypes.Requireable<object>;
91
- className: PropTypes.Requireable<string>;
92
- optional: PropTypes.Requireable<boolean>;
93
- };
94
- displayName: string;
95
- };
package/dist/npm/Label.js DELETED
@@ -1,85 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Label = void 0;
4
- var React = require("react");
5
- var PropTypes = require("prop-types");
6
- var kendo_react_common_1 = require("@progress/kendo-react-common");
7
- var messages_1 = require("./messages");
8
- var kendo_react_intl_1 = require("@progress/kendo-react-intl");
9
- var kendo_react_common_2 = require("@progress/kendo-react-common");
10
- var package_metadata_1 = require("./package-metadata");
11
- /**
12
- * Represents the KendoReact Label component.
13
- *
14
- * @example
15
- * ```jsx
16
- * const sizes = ["X-Small", "Small", "Medium", "Large", "X-Large", "2X-Large"];
17
- * const App = () => {
18
- * const ddlRef = React.useRef(null);
19
- * const labelId = 'ddl-sizes-label';
20
- * const editorId = 'ddl-sizes';
21
- *
22
- * return (
23
- * <div>
24
- * <Label id={labelId} editorId={editorId} editorRef={ddlRef}>
25
- * Shirt Size:
26
- * </Label>
27
- * <DropDownList
28
- * ref={ddlRef}
29
- * id={editorId}
30
- * ariaLabelledBy={labelId}
31
- * data={sizes}
32
- * />
33
- * <br />
34
- * </div>
35
- * );
36
- * };
37
- *
38
- * ReactDOM.render(<App />, document.querySelector('my-app'));
39
- * ```
40
- */
41
- var Label = function (props) {
42
- (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
43
- var id = props.id, editorId = props.editorId, editorRef = props.editorRef, editorDisabled = props.editorDisabled, children = props.children, editorValid = props.editorValid, style = props.style, className = props.className, optional = props.optional;
44
- var localizationService = (0, kendo_react_intl_1.useLocalization)();
45
- var localizedOptional = optional ? localizationService
46
- .toLanguageString(messages_1.labelsOptional, messages_1.messages[messages_1.labelsOptional]) : '';
47
- var optionalElement = localizedOptional && (React.createElement("span", { className: 'k-label-optional' }, localizedOptional));
48
- var onLabelClick = React.useCallback(function (e) {
49
- if (editorRef && editorRef.current && !editorDisabled) {
50
- if (editorRef.current.focus) {
51
- e.preventDefault();
52
- editorRef.current.focus();
53
- }
54
- var editorActionElement = editorRef.current.actionElement;
55
- if (editorActionElement) {
56
- e.preventDefault();
57
- editorActionElement.click();
58
- }
59
- }
60
- }, [editorRef]);
61
- var labelClassName = (0, kendo_react_common_1.classNames)({
62
- 'k-label': true,
63
- 'k-label-empty': !children,
64
- 'k-text-error': editorValid === false,
65
- 'k-text-disabled': editorDisabled === true
66
- }, className);
67
- return (React.createElement("label", { id: id, htmlFor: editorId, onClick: onLabelClick, style: style, className: labelClassName },
68
- children,
69
- optionalElement));
70
- };
71
- exports.Label = Label;
72
- exports.Label.propTypes = {
73
- id: PropTypes.string,
74
- editorId: PropTypes.string,
75
- editorRef: PropTypes.oneOfType([
76
- PropTypes.func,
77
- PropTypes.shape({ current: PropTypes.any })
78
- ]),
79
- editorValid: PropTypes.bool,
80
- editorDisabled: PropTypes.bool,
81
- style: PropTypes.object,
82
- className: PropTypes.string,
83
- optional: PropTypes.bool
84
- };
85
- exports.Label.displayName = 'KendoReactLabel';
@@ -1,5 +0,0 @@
1
- import { Label, LabelProps } from './Label';
2
- import { Error, ErrorProps } from './Error';
3
- import { Hint, HintProps } from './Hint';
4
- import { FloatingLabel, FloatingLabelProps } from './FloatingLabel';
5
- export { FloatingLabel, FloatingLabelProps, Label, LabelProps, Error, ErrorProps, Hint, HintProps };
package/dist/npm/main.js DELETED
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Hint = exports.Error = exports.Label = exports.FloatingLabel = void 0;
4
- var Label_1 = require("./Label");
5
- Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return Label_1.Label; } });
6
- var Error_1 = require("./Error");
7
- Object.defineProperty(exports, "Error", { enumerable: true, get: function () { return Error_1.Error; } });
8
- var Hint_1 = require("./Hint");
9
- Object.defineProperty(exports, "Hint", { enumerable: true, get: function () { return Hint_1.Hint; } });
10
- var FloatingLabel_1 = require("./FloatingLabel");
11
- Object.defineProperty(exports, "FloatingLabel", { enumerable: true, get: function () { return FloatingLabel_1.FloatingLabel; } });
@@ -1,10 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare const labelsOptional = "labels.optional";
5
- /**
6
- * @hidden
7
- */
8
- export declare const messages: {
9
- "labels.optional": string;
10
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.messages = exports.labelsOptional = void 0;
5
- /**
6
- * @hidden
7
- */
8
- exports.labelsOptional = 'labels.optional';
9
- /**
10
- * @hidden
11
- */
12
- exports.messages = (_a = {},
13
- _a[exports.labelsOptional] = '(Optional)',
14
- _a);
@@ -1,5 +0,0 @@
1
- import { PackageMetadata } from '@progress/kendo-licensing';
2
- /**
3
- * @hidden
4
- */
5
- export declare const packageMetadata: PackageMetadata;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.packageMetadata = void 0;
4
- /**
5
- * @hidden
6
- */
7
- exports.packageMetadata = {
8
- name: '@progress/kendo-react-labels',
9
- productName: 'KendoReact',
10
- productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1700060084,
12
- version: '',
13
- licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
- };
@@ -1 +0,0 @@
1
- System.register("@progress/kendo-react-labels",["@progress/kendo-react-common","@progress/kendo-react-intl","prop-types","react"],function(e,t){var c={},d={},u={},p={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})}],execute:function(){e((()=>{"use strict";var r={883:function(e,t,r){var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.Error=void 0,r(954)),n=r(895),i=r(811),l=r(811),s=r(363);t.Error=function(e){var e=a({direction:"start"},e),t=((0,l.validatePackage)(s.packageMetadata),(0,i.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className));return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)},t.Error.propTypes={id:n.string,direction:n.oneOf(["start","end"]),children:n.oneOfType([n.element,n.node]),style:n.object,className:n.string},t.Error.displayName="KendoReactError"},669:function(e,t,r){var a,o,n=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=(Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingLabel=void 0,r(954)),i=r(895),b=r(811),f=r(987),m=r(364),l=r(811),s=r(363),r=(o=p.Component,n(c,o),c.prototype.render=function(){var e=this.props,t=e.label,r=e.editorId,a=e.className,o=e.labelClassName,n=e.editorValue,i=e.editorPlaceholder,l=e.editorValid,s=e.editorDisabled,c=e.style,d=e.id,e=e.optional,u=(0,f.provideLocalizationService)(this),e=e?u.toLanguageString(m.labelsOptional,m.messages[m.labelsOptional]):"",u=e&&p.createElement("span",{className:"k-label-optional"},e),e=(0,b.classNames)({"k-floating-label-container":!0,"k-focus":this.state.focused,"k-empty":!i&&!n&&0!==n,"k-text-disabled":s,"k-rtl":"rtl"===this.props.dir},a),i=(0,b.classNames)({"k-label":!0,"k-text-error":!1===l,"k-text-disabled":s},o);return p.createElement("span",{id:this.props.id,className:e,onFocus:this.handleFocus,onBlur:this.handleBlur,style:c,dir:this.props.dir},this.props.children,t?r?p.createElement("label",{id:d,htmlFor:r,className:i},t,u):p.createElement("span",{id:d,className:i},t,u):null)},c.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,labelClassName:i.string,optional:i.bool},c);function c(e){var t=o.call(this,e)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},(0,l.validatePackage)(s.packageMetadata),t}t.FloatingLabel=r,(0,f.registerForLocalization)(r)},419:function(e,t,r){var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.Hint=void 0,r(954)),n=r(895),i=r(811),l=r(811),s=r(363);t.Hint=function(e){var e=a({direction:"start"},e),t=((0,l.validatePackage)(s.packageMetadata),(0,i.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className));return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)},t.Hint.propTypes={id:n.string,direction:n.oneOf(["start","end"]),children:n.oneOfType([n.element,n.node]),style:n.object,className:n.string,editorDisabled:n.bool},t.Hint.displayName="KendoReactHint"},848:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Label=void 0;var d=r(954),a=r(895),u=r(811),p=r(364),b=r(987),f=r(811),m=r(363);t.Label=function(e){(0,f.validatePackage)(m.packageMetadata);var t=e.id,r=e.editorId,a=e.editorRef,o=e.editorDisabled,n=e.children,i=e.editorValid,l=e.style,s=e.className,e=e.optional,c=(0,b.useLocalization)(),e=e?c.toLanguageString(p.labelsOptional,p.messages[p.labelsOptional]):"",c=e&&d.createElement("span",{className:"k-label-optional"},e),e=d.useCallback(function(e){var t;a&&a.current&&!o&&(a.current.focus&&(e.preventDefault(),a.current.focus()),t=a.current.actionElement)&&(e.preventDefault(),t.click())},[a]),i=(0,u.classNames)({"k-label":!0,"k-label-empty":!n,"k-text-error":!1===i,"k-text-disabled":!0===o},s);return d.createElement("label",{id:t,htmlFor:r,onClick:e,style:l,className:i},n,c)},t.Label.propTypes={id:a.string,editorId:a.string,editorRef:a.oneOfType([a.func,a.shape({current:a.any})]),editorValid:a.bool,editorDisabled:a.bool,style:a.object,className:a.string,optional:a.bool},t.Label.displayName="KendoReactLabel"},364:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.labelsOptional=void 0,t.labelsOptional="labels.optional",t.messages=((r={})[t.labelsOptional]="(Optional)",r)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060084,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},811:e=>{e.exports=c},987:e=>{e.exports=d},895:e=>{e.exports=u},954:e=>{e.exports=p}},a={};function o(e){var t=a[e];return void 0!==t||(t=a[e]={exports:{}},r[e].call(t.exports,t,t.exports,o)),t.exports}var e,t,n,i,l,s={};return e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.Hint=e.Error=e.Label=e.FloatingLabel=void 0,t=o(848),Object.defineProperty(e,"Label",{enumerable:!0,get:function(){return t.Label}}),n=o(883),Object.defineProperty(e,"Error",{enumerable:!0,get:function(){return n.Error}}),i=o(419),Object.defineProperty(e,"Hint",{enumerable:!0,get:function(){return i.Hint}}),l=o(669),Object.defineProperty(e,"FloatingLabel",{enumerable:!0,get:function(){return l.FloatingLabel}}),s})())}}});
@@ -1,23 +0,0 @@
1
- import { Browser, By } from '@progress/kendo-e2e';
2
-
3
- let browser: Browser;
4
-
5
- beforeAll(() => {
6
- browser = new Browser();
7
- });
8
-
9
- beforeEach(async () => {
10
- await browser.navigateTo('http://localhost:3000/error/overview');
11
- });
12
-
13
- afterEach(async () => {
14
- expect(await browser.getErrorLogs()).toEqual([]);
15
- });
16
-
17
- afterAll(async () => {
18
- await browser.close();
19
- });
20
-
21
- it('should not have errors', async () => {
22
- expect(await browser.isVisible(By.css('.k-form-error'))).toBe(true);
23
- });
@@ -1,24 +0,0 @@
1
- import { Browser } from '@progress/kendo-e2e';
2
- import { LOCATORS } from '../../../e2eUtils/const';
3
-
4
- let browser: Browser;
5
-
6
- beforeAll(() => {
7
- browser = new Browser();
8
- });
9
-
10
- beforeEach(async () => {
11
- await browser.navigateTo('http://localhost:3000/floatinglabel/overview');
12
- });
13
-
14
- afterEach(async () => {
15
- expect(await browser.getErrorLogs()).toEqual([]);
16
- });
17
-
18
- afterAll(async () => {
19
- await browser.close();
20
- });
21
-
22
- it('should not have errors', async () => {
23
- expect(await browser.isVisible(LOCATORS.LABEL)).toBe(true);
24
- });
@@ -1,23 +0,0 @@
1
- import { Browser, By } from '@progress/kendo-e2e';
2
-
3
- let browser: Browser;
4
-
5
- beforeAll(() => {
6
- browser = new Browser();
7
- });
8
-
9
- beforeEach(async () => {
10
- await browser.navigateTo('http://localhost:3000/hint/overview');
11
- });
12
-
13
- afterEach(async () => {
14
- expect(await browser.getErrorLogs()).toEqual([]);
15
- });
16
-
17
- afterAll(async () => {
18
- await browser.close();
19
- });
20
-
21
- it('should not have errors', async () => {
22
- expect(await browser.isVisible(By.css('.k-form-hint'))).toBe(true);
23
- });
@@ -1,24 +0,0 @@
1
- import { Browser } from '@progress/kendo-e2e';
2
- import { LOCATORS } from '../../../e2eUtils/const';
3
-
4
- let browser: Browser;
5
-
6
- beforeAll(() => {
7
- browser = new Browser();
8
- });
9
-
10
- beforeEach(async () => {
11
- await browser.navigateTo('http://localhost:3000/label/overview');
12
- });
13
-
14
- afterEach(async () => {
15
- expect(await browser.getErrorLogs()).toEqual([]);
16
- });
17
-
18
- afterAll(async () => {
19
- await browser.close();
20
- });
21
-
22
- it('should not have errors', async () => {
23
- expect(await browser.isVisible(LOCATORS.LABEL)).toBe(true);
24
- });