Giter VIP home page Giter VIP logo

react-stepzilla's Introduction

react stepzilla npm version

is a multi-step, wizard component for sequential data collection. It basically lets you throw a bunch of react components at it (data forms, text / html components etc) and it will take the user through those components in steps. If it's a data-entry form it can trigger validation and only proceed if the data is valid.

πŸŽ‰ whats new:

v7.0.0: React hooks support! (finally)
v6.0.0: dev tools updated to latest versions for security and stability (webpack, gulp, babel, node env)
v5.0.0: ported to react and react-dom 16.4.1. Redux demo implementation (finally!)
v4.8.0: multiple examples. includes a cool demo of i18n - Internationalization and localization (tnx @tomtoxx)
v4.7.2: optimised react, react-dom dependency loading (peerDependencies)
v4.3.0: now supporting higher order component based validation via react-validation-mixin!

what can it do?

something like this of course:

react-stepzilla

better yet, have a look at a live example

🀘🀘🀘🀘🀘🀘🀘

Full example usage code is available in the src/examples directory. Have a look at a live working version here

get started (how to use it in your apps)

  • run
npm install --save react-stepzilla
  • require into your project via
import StepZilla from "react-stepzilla";
  • define the list of all the components* you want to step through. The name indicates the title of the UI step and component is what loads.
const steps =
    [
      {name: 'Step 1', component: <Step1 />},
      {name: 'Step 2', component: <Step2 />},
      {name: 'Step 3', component: <Step3 />},
      {name: 'Step 4', component: <Step4 />},
      {name: 'Step 5', component: <Step5 />}
    ]

as of v7.0.0 you can use React Hooks based function components that also support custom state based validation using the isValidated method (see Step5.js in the examples directory). Note that Pure Components (functions without state or refs) can also be used but they wont support validation, see Step2.js in the examples directory for more info.

  • and now render it out somewhere in your app
    <div className='step-progress'>
        <StepZilla steps={steps}/>
    </div>
  • pass in following options as well if you want to customise it further
// hide or show Next and Previous Buttons at the bottom
showNavigation: true | false

// disable or enable the steps UI navigation on top
showSteps: true | false

// disable or enable onClick step jumping from the UI navigation on top
stepsNavigation: true | false

// show or hide the previous button in the last step (maybe the last step is a thank you message and you don't want them to go back)
prevBtnOnLastStep: true | false

// dev control to disable validation rules called in step components **
dontValidate: true | false

// by default if you hit the Enter key on any element it validates the form and moves to next step if validation passes. Use this to prevent this behaviour
preventEnterSubmission: true | false

// specify what step to start from in the case you need to skip steps (send in a 0 based index for the item in the steps array. e.g. 2 will load <Step3 /> initially)
startAtStep: [stepIndex]

// specify the next button text (if not given it defaults to "Next")
nextButtonText: "Siguiente"

// specify the back button text (if not given it default to "Previous")
backButtonText: "AtrΓ‘s"

// specify the next button class (if not given it defaults to "btn btn-prev btn-primary btn-lg" which depends on bootstrap)
nextButtonCls: "btn btn-prev btn-primary btn-lg pull-right"

// specify the back button text (if not given it default to "btn btn-next btn-primary btn-lg")
backButtonCls: "btn btn-next btn-primary btn-lg pull-left"

// specify what the next button text should be in the step before the last (This is usually the last "Actionable" step. You can use this option to change the Next button to say Save - if you save the form data collected in previous steps)
nextTextOnFinalActionStep: "Save"

// its recommended that you use basic javascript validation (i.e simple validation implemented inside your step component. But stepzilla steps can also use 'react-validation-mixin' which wraps your steps as higher order components. If you use this then you need to specify those steps indexes that use 'react-validation-mixin' below in this array)
hocValidationAppliedTo: [1, 2]

// function, which is called every time the index of the current step changes (it uses a zero based index)
onStepChange: (step) => console.log(step)

example options usage:

<div className='step-progress'>
    <StepZilla steps={steps} stepsNavigation={false} prevBtnOnLastStep={false} startAtStep=2 />
</div>

jumpToStep() utility

  • stepzilla injects an utility method called jumpToStep as a prop into all your react step components
  • this utility methods lets you jump between steps from inside your react component e.g. this.props.jumpToStep(2) will jump to your 3rd step (it uses a zero based index)
  • check out src/examples/Step2 for an actual usage example
  • important!! this jumpToStep() utility method will not validate data! so use with caution. its only meant to be a utility to break from the standard flow of steps

step validation & the isValidated() utility

each component step can expose a local isValidated method that will be invoked during runtime by StepZilla to determine if we can go to next step. This utility is available to Class based component and Hooks components.

  • to use this feature, you need to implement a isValidated() method in your react step component.
  • this isValidated() method should return a bool true/false (true to proceed and false to prevent). It can also return a Promise which in turn should resolve or reject (which maps to the static true/false behaviour)
  • if your step is a from, note that stepzilla also supports advanced form validation via react-validation-mixin
  • validation can also be Async and therefore Promise based. This is useful if you do server side validation or you want to save data to a server and only proceed if it was a success. For an e.g. on this have a look at the src/examples/Step5 component.
  • for class components, check out sample code in the src/examples directory. (Step3.js and Step4.js show you all this in action)
  • for hooks components, you will need to use the forwardRef and the useImperativeHandle primitives to make this work, a full example is in src/examples/Step5.js

styling & custom step change logic

  • if you want some default style, copy the source from src/css/main.css code into your project (the above look in the picture also requires bootstrap)

  • check out src/examples/ for how onStepChange can be used to persist last known step state across browser reloads (using startAtStep pulled from session storage)

dev (upgrade core library)

  • all node source is in src/main.js
  • you need to install dependencies first npm install
  • make any changes and run npm run build to transpile the jsx into dist
  • the transpilation is run as an auto pre-publish task so it should usually be up to date when consumed via npm
  • npm run build-example builds and packs the example app into the 'docs' folder so it can be accessed via ghpages

dev with TDD

  • test driven development has been setup and its recommended you follow these steps when you are developing
  • follow steps below in run and view example in browser to launch the dev server that live reloads
  • in a seperate terminal run npm run test:watch to trigger TDD
  • now all code updates you make are sent through lint and test and you can monitor any quality regression in real time

run and view example in browser

A full example is found in the src/examples directory.

  • run npm install
  • then run npm start
  • then go to http://localhost:8080/webpack-dev-server/src/examples/index.html in your browser
  • hot reload will work as you dev

tests

  • tests are written in the mocha, chai, sinon, enzyme stack
  • located in the 'tests' folder and supports es6
  • run the npm run test command run tests
  • run the npm run test:watch command run test in watch mode

code test coverage

  • test coverage is done via istanbul
  • run the npm run test:coverage command to generate full coverage report (shown in terminal and as lcov report in coverage directory)
  • all code is run against coverage, not just the unit tested modules
  • test coverage improvement is currently a work in progress
  • Note: As of v5.0.1 (the gulp / webpack upgrade) istanbul no longer works. We will replace with a new coverage tool soon.

Current coverage sitting at v5.0.0:

Statements   : 86.39% ( 146/169 ), 4 ignored
Branches     : 73.1% ( 106/145 ), 13 ignored
Functions    : 83.33% ( 35/42 ), 1 ignored
Lines        : 82.93% ( 102/123 )

dev todo

  • improve code coverage
  • migrate to jest

community dev tips

our brilliant community sometimes solves implementation issues themselves, head over to the Useful Dev Tips page for a curated list of the most useful tips. For e.g. How to persist Step State on "Previous/Back" button click or How to hide navigation buttons in some steps

help us improve stepzilla?

do you have any ideas for new features or improvements to stepzilla? we would love to hear from you. head over to the issues section here and raise a new thread about what you would like. make sure you include some use cases for your request, or upvote existing community requests here

known issues

change log

react-stepzilla's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-stepzilla's Issues

JumptoState is throwing "Cannot update during an existing state transition" warnings

whenever i use JumptoState(); everythings works fine but i get warning as:

Warning: setState(...): Cannot update during an existing state transition (such as within render or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to componentWillMount.

is there a solution for this problem

Option preventEnterSubmission disables linebreaks in child textareas

Hi there,

I just encountered an issue regarding the option preventEnterSubmission which disables enter submissions in all child inputs. I believe this behaviour isn't intended for textareas. I suggest updating the handleKeyDown method as follows:

  // handles keydown on enter being pressed in any Child component input area. in this case it goes to the next
  handleKeyDown(evt) {
    if (evt.which === 13) {
      if (!this.props.preventEnterSubmission && evt.target.type != 'textarea') {
        this.next();
      }
      else if(evt.target.type != 'textarea') {
        evt.preventDefault();
      }
    }
  }

I get an error using the component

I added the component:

const StepZilla = require('react-stepzilla');

And my render method:

    render() {
        const stepOne = (
            <div >
                <h1> Hello </h1>
            </div>
        );
        const stepTwo = (
            <div >
                <h1> World </h1>
            </div>
        );
        const stepThree = (
            <div >
                <h1> !!! </h1>
            </div>
        );
        const steps =
            [
              { name: 'Step 1', component: <stepOne /> },
              { name: 'Step 2', component: <StepTwo /> },
              { name: 'Step 3', component: <stepThree /> },
            ];

        return (
            <div className="step-progress">
                <StepZilla steps={steps} />
            </div>
        );
    }

I get this error:
React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components)

Custom Button Text

Hi is it possible to change the text of the buttons? I'm from Latin America, and i need it in Spanish, with other legend.

Thks!

Chrome Maintains focus on 'Next' and 'Previous' buttons, even if `preventEnterSubmission` is true

You can see this in the example app, there is a blue highlight around the next button after you click it to move to step two.

I think this is the expected behavior of chrome, the focus is kept on a button after it is clicked. It is confusing for users (they try to press enter and nothing happens).

I added a ref to a div in my step component and tried to manually set the focus to that in the componentDidMount function- but focus snaps back to the next clicked button. It would be nice if focus was blurred on the selected button between steps, or if there was a ref to the buttons that I could use to blur/set focus as I wanted.

Use external prop-types package

Hi!

I'm using react-stepzilla, but I'm encountering these warnings:

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

They're pretty trivial, but they're messing up my CI runs.

I checked the source and noticed that stepzilla is importing PropTypes from react, which is in the process of being moved into that external package.

I can put up a PR if you'd like!

Able to Skip past Validation Steps

I noticed I can skip right to Step 4 from the overhead step options, even though Step 2 (let's take it from the example) requires form input - if I'm on step 2 it works fine, but if i'm on step 1 or 3 i can skip through. Is there a simple way to solve this?

stepsNavigation doesn't work in all cases

Even in the Example it's not working reliable. If you click on the text (span element) e.g. "Step 1" it's not navigating back, and all styles are loss. If you click at the hook (before pseudo element of the span) it's working.

A fix would be great to guarantee consistency

Next/Previous Buttons submit form

Hello,
I am creating a form using redux-form and I have a custom survey where each page is displaying as a step. The next/previous buttons that are created do not have the type attribute set so when they are clicked within the form the default behavior for a button is to submit. Adding type="button" fixed my issue.

passing Data

how can i pass data from one step to another. can i use props.getStore(). to store and change the values.

Module Not Found

There is no "dist" folder in the NPM package so the module can't be used in a project.

Catch on Promises silent other errors

Hi @newbreedofgeek me again. Yours .catch are silent other errors on components used as steps don't be raised.
Try follow. Make a component with a development error, like use an undefined as function and should get it reproduced.

Issue with NPM installing

When I enter:
meteor npm install react-stepzilla --save

I get:
npm WARN [email protected] requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.

I have webpack 2.3.3 installed, any ideas?

Thanks

License

Thank you for donating your time and talent to this project, I appreciate your efforts.

I've started using and modifying the code for a project and it's going well. However, I wasn't able to find the licensing terms for your code and I was wondering if you could please clarify what they are. I want to be sure that I'm not violating your license :)

Thank you for your help

jumpToStep issue

Hi again... when use jumpToStep on lastStep (where apply nextTextOnFinalActionStep to footer button) step target of jumpToStep render same text as nextTextOnFinalActionStep.

It happen inclusive in your live demo example. You can see if click next button on step target will say Save in place of Next.

disabling steps

Is their a way to disable the steps. I am needing this during the review step. when the click save, i want to disable the button to prevent them from submitting more then one since saving is going to be done server side. Is it possible?

not start isValidated method (react refs new style)

I cannot start isValidated() method in my step
I found what stepMoveAllowed(skipValidationExecution = false) method in StepZIlla cannot properly check this because this.refs is empty

else if (Object.keys(this.refs).length == 0 || typeof this.refs.activeComponent.isValidated == 'undefined') {
				console.log(this.refs); // return EMPTY OBJECT
				// if its a form component, it should have implemeted a public isValidated class (also pure componenets wont even have refs - i.e. a empty object). If not then continue
				proceed = true;
			}
my libraries
"react": "^15.3.2",
    "react-addons-css-transition-group": "^15.5.2",
    "react-bootstrap": "^0.30.10",
    "react-dom": "^15.5.4",
    "react-dropzone": "^3.13.0",
    "react-hot-loader": "^3.0.0-beta.6",
    "react-overlays": "^0.6.12",
    "react-redux": "^5.0.4",
    "react-router": "3.0.5",
    "react-router-bootstrap": "^0.23.2",
    "react-router-dom": "^4.1.1",
    "react-router-redux": "^4.0.8",

Support for Higher Order Components

@newbreedofgeek
Can we use a wrapped component. I am using the react-validation-mixin to validate the form input an as a setup we need to wrap the component around the selected strategy. It seems that the isValidated() method not applied ??

Styling the buttons

i have a question. i want to customize the next and previous button to match my layout. can i resize the buttons also please guide if i can manipulate the length of navigation bar

IsValidated not working with redux

Hi,

I'm opening a new issue on that.

My steps are using redux and implementing isValidated() as mentioned in the documents.
The problem:
IsValidated method isn't called.

I've debug it a little bit and found in the method "stepMoveAllowed" it get ProxyComponent and not the step itself, so isValidted doesn't exist on this path.

Support Stateless Pure Components

I got this error while implement it on stateless component

Warning: Stateless function components cannot be given refs (See ref "activeComponent" in ProductForm created by StepZilla). Attempts to access this ref will fail.

Let's Discuss Customizations...

Upto what level customizations can be done ?
For an example:

  • Styling the step name
  • Adding custom previous and next buttons

Async step validation

Hi, first of all, great work. I start to use it and let more easy my life ;)

I need to make some validation with backend service in step component. What should I return on validated method ? maybe you can support a Promise.

Wizard progress bar is not rendering

Why progress bar is broken?
Perhaps is it related with other dependencies?

I am using following..

"dependencies": { "canvas-gauges": "^2.1.0", "centrifuge": "^1.4.1", "classnames": "^2.2.5", "crypto-js": "^3.1.9-1", "express": "^4.14.0", "express-history-api-fallback": "^2.1.0", "fs": "0.0.1-security", "gulp-util": "^3.0.7", "history": "^2.1.2", "pubsub-js": "^1.5.3", "rc-tabs": "^7.1.0", "react": "^15.3.2", "react-addons-css-transition-group": "^15.3.2", "react-bootstrap": "^0.30.3", "react-day-picker": "^5.1.1", "react-dom": "^15.3.2", "react-dropzone": "^3.13.1", "react-router": "^3.0.0", "react-router-bootstrap": "^0.23.1", "react-select": "^1.0.0-rc.3", "react-stepzilla": "^4.5.0", "sha256": "^0.2.0", "webpack-dev-server": "^1.16.2" }, "devDependencies": { "babel-core": "^6.14.0", "babel-loader": "^6.2.5", "babel-preset-es2015": "^6.14.0", "babel-preset-react": "^6.11.1", "browser-sync": "^2.16.0", "connect-history-api-fallback": "^1.3.0", "css-loader": "^0.25.0", "del": "^2.2.2", "exports-loader": "^0.6.3", "file-loader": "^0.9.0", "gulp": "^3.9.1", "gulp-changed": "^1.3.2", "gulp-concat": "^2.6.0", "gulp-cssnano": "^2.1.2", "gulp-expect-file": "0.0.7", "gulp-filter": "^4.0.0", "gulp-flatten": "^0.3.1", "gulp-html-prettify": "0.0.1", "gulp-if": "^2.0.1", "gulp-ignore": "^2.0.1", "gulp-jade": "^1.1.0", "gulp-jsvalidate": "^2.1.0", "gulp-less": "^3.1.0", "gulp-load-plugins": "^1.3.0", "gulp-rename": "^1.2.2", "gulp-rtlcss": "^1.0.0", "gulp-sass": "^2.3.2", "gulp-sourcemaps": "^1.6.0", "gulp-sync": "^0.1.4", "gulp-uglify": "^2.0.0", "gulp-util": "^3.0.7", "imports-loader": "^0.6.5", "marked": "^0.3.6", "modernizr-webpack-plugin": "^1.0.5", "react-hot-loader": "^3.0.0-beta.4", "style-loader": "^0.13.1", "url-loader": "^0.5.7", "webpack": "^1.13.2", "webpack-dev-middleware": "^1.7.0", "webpack-hot-middleware": "^2.12.2", "webpack-stream": "^3.2.0", "yargs": "^5.0.0" }

untitled
Looking forward to be solved.
Thanks.

Cannot seem to get isValidated to work with ES6 React Component

I always hate to open an issue (and rarely do), but I have been banging my head against this for a long time now and I just can't seem to get the isVaildated() function to stop the user from hitting enter or hitting the next button when validation is failing:

Example component (I am using Redux so the siteRegistration object includes all of the user account registration data and booleans for whether each field is valid):

import React, { PropTypes, Component } from 'react'
import { connect } from 'react-redux'
import { Row, Col, FormGroup, ControlLabel, FormControl, Button, Alert } from 'react-bootstrap'
import { checkPassphrase, setPassphrase } from '../modules/siteRegistration'

class PassphraseStep1 extends Component {

    static propTypes = {
        siteRegistration: PropTypes.object.isRequired
    };

    constructor(props) {
      super(props);
      this.state = { passphrase: '' }
      /* Used this from the examples but not sure it is doing anything */
      this.isValidated = this.isValidated.bind(this);
    }

    componentDidMount() {
        this.setState({ passphrase: this.props.siteRegistration.passphrase })
    }

    handleChange(e) {
        this.setState({ [e.target.name]: e.target.value }, 
            () => {
                this.props.setPassphrase(this.state.passphrase)
                this.props.checkPassphrase(this.state.passphrase)
            }
        )
    }

    isValidated() {
        /* this properly returns true and false from the props */
        return this.props.siteRegistration.passphraseIsValid
    }

    render() {
        const { siteRegistration } = this.props
        return (
            <div>
                <form>
                    <FormGroup bsSize="lg" controlId="passphrase">
                        <ControlLabel>Passphrase</ControlLabel>
                        <FormControl type="text" name="passphrase" value={this.state.passphrase} onChange={(e) => this.handleChange(e)} />
                        <FormControl.Feedback />
                    </FormGroup>
                    <div className={s.alertContainer}>
                        {this.isValidated() ? <Alert bsStyle="success">This is valid!</Alert> : null}
                    </div>
                </form>
            </div>
        )
    }
}

const mapDispatchToProps = (dispatch, ownProps) => ({
    setPassphrase: (passphrase) => dispatch(setPassphrase(passphrase)),
    checkPassphrase: (passphrase) => dispatch(checkPassphrase(passphrase))
})

const mapStateToProps = (state, ownProps) => ({
    siteRegistration: state.siteRegistration
})

export default connect(mapStateToProps, mapDispatchToProps)(PassphraseStep1)

Is there something I am doing wrong with isValidated()?

When a Promise is returned, prevent click spam on next button

When a Promise is returned we should have a way to disable the next button as to prevent click spam. This can be done within the component by using local state and ignoring calls to the isValidated() method but ideally this should be handled as core functionality.

Direct Steps Navigation to un-validated react-validation-mixin step fails

Version: 4.4.4

Steps to repro:

  1. Jump to Step 3 (this steps uses basic form validation) - it will work
  2. Jump back to Step 1 - it will work
  3. Jump to Step 4 - it won't work as Step 3 needs to pass validation (intended behaviour)
  4. Jump to Step 3, fill the form and Jump to Step 4 - this will validate the form and it will jump to step 5. Jump back to Step 1 - it will work
  5. Jump back to Step 4 - this will work now as we have validated data in Step 3 already
  6. Jump back to Step 1 - it will work
  7. Jump to Step 5 - THIS SHOULD NOT WORK as Step 4 is react-validation-mixin based validation

But....
Repeat Steps 1 - 6

And now...

  • Don't fill the Step 4 form and jump to Step 5 - this will trigger validation and it will fail
  • Not jump back to Step 1 and then try and Jump to Step 5 (as in Step 8 above) - This wont be allowed now!

Looks like validation needs to be triggered at least once on react-validation-mixin steps before the Direct Steps Navigation rules will apply.

How to Hide navigation buttons in some steps

hi, i have a form and i want next and previous navigation buttons in some steps, while in some steps i dont want them to show,
i defined showNavigation false in step 2 as follow
i did following but it didnt work
const steps=[
{name: 'Step 1', component: <Step1 getStore={() => (this.getStore())} /> },
{name: 'Step 2', component: <Step2 showNavigation={false} getStore={() => (this.getStore())} />},
{name: 'Step 3', component: <Step3 getStore={() => (this.getStore())} />}
]
when i pass it in
it removes navigation altogether

but it is showing next button in step 2 and there is no syntax error
regards

Unknown prop `jumpToStep`

warning.js:36Warning: Unknown prop jumpToStep on

tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

seem to be on the components in the steps

   const steps =
      [
        {name: 'Step 1', component: <div><h1>1</h1></div>},
        {name: 'Step 2', component: <div><h1>2</h1></div>}
      ];

<StepZilla steps={steps} />

App not loading in IE

Hi,

I tried to open this app in IE. Blank page only loading not components are getting rendered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.