Skip to content

Commit

Permalink
Refactor tag namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sudheerj committed Aug 22, 2018
1 parent dbce1d2 commit 9d5b587
Show file tree
Hide file tree
Showing 84 changed files with 348 additions and 347 deletions.
76 changes: 38 additions & 38 deletions showcase/src/components/accordion/accordiondemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,74 +14,74 @@

<p>The accordion displays stacked group of information in the form of tabs.</p>

<p-accordion>
<p-accordionTab header="Godfather I" :selected="true">
<vf-accordion>
<vf-accordionTab header="Godfather I" :selected="true">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</p-accordionTab>
<p-accordionTab header="Godfather II">
</vf-accordionTab>
<vf-accordionTab header="Godfather II">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
</p-accordionTab>
<p-accordionTab header="Godfather III">
</vf-accordionTab>
<vf-accordionTab header="Godfather III">
After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
</p-accordionTab>
</p-accordion>
</vf-accordionTab>
</vf-accordion>

<h3>2. Multiple</h3>

<p>Enabled multiple tabs selected at the same time using multiple attribute.</p>
<p-accordion :multiple="true">
<p-accordionTab header="Godfather I">
<vf-accordion :multiple="true">
<vf-accordionTab header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</p-accordionTab>
<p-accordionTab header="Godfather II">
</vf-accordionTab>
<vf-accordionTab header="Godfather II">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
</p-accordionTab>
<p-accordionTab header="Godfather III">
</vf-accordionTab>
<vf-accordionTab header="Godfather III">
After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
</p-accordionTab>
</p-accordion>
</vf-accordionTab>
</vf-accordion>


<h3>3. Events</h3>
<p>The events such as onClose and onOpen invoked on tab change</p>

<p-accordion @onClose="onTabClose($event)" @onOpen="onTabOpen($event)">
<p-accordionTab header="Godfather I">
<vf-accordion @onClose="onTabClose($event)" @onOpen="onTabOpen($event)">
<vf-accordionTab header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</p-accordionTab>
<p-accordionTab header="Godfather II">
</vf-accordionTab>
<vf-accordionTab header="Godfather II">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
</p-accordionTab>
<p-accordionTab header="Godfather III">
</vf-accordionTab>
<vf-accordionTab header="Godfather III">
After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
</p-accordionTab>
<p-accordionTab header="Godfather IV" :disabled="true">
</vf-accordionTab>
<vf-accordionTab header="Godfather IV" :disabled="true">
After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
</p-accordionTab>
</p-accordion>
</vf-accordionTab>
</vf-accordion>

<h3>4. Programmatic</h3>
<p>The tabs interacted in a programmatic way using methods available</p>

<div style="margin-bottom: 1em">
<p-button type="button" icon="fa fa-chevron-up" @click="openPrev()"></p-button>
<p-button type="button" icon="fa fa-chevron-down" @click="openNext()"></p-button>
<vf-button type="button" icon="fa fa-chevron-up" @click="openPrev()"></vf-button>
<vf-button type="button" icon="fa fa-chevron-down" @click="openNext()"></vf-button>
</div>

<p-accordion :activeIndex="index">
<p-accordionTab header="Godfather I">
<vf-accordion :activeIndex="index">
<vf-accordionTab header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</p-accordionTab>
<p-accordionTab header="Godfather II">
</vf-accordionTab>
<vf-accordionTab header="Godfather II">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
</p-accordionTab>
<p-accordionTab header="Godfather III">
</vf-accordionTab>
<vf-accordionTab header="Godfather III">
After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
</p-accordionTab>
<p-accordionTab header="Godfather IV">
</vf-accordionTab>
<vf-accordionTab header="Godfather IV">
After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
</p-accordionTab>
</p-accordion>
</vf-accordionTab>
</vf-accordion>

</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions showcase/src/components/avatar/avatardemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</div>
<div id="wrapper">
<h2>Image</h2>
<p-avatar src="https://placekitten.com/500/350" color="blue" backgroundColor="orange" :size="30" :iconSize="20" imageClass="imageClass">Tom</p-avatar>
<vf-avatar src="https://placekitten.com/500/350" color="blue" backgroundColor="orange" :size="30" :iconSize="20" imageClass="imageClass">Tom</vf-avatar>

<h2>Icon</h2>
<p-avatar icon="fa-github-square" color="blue" backgroundColor="orange" :size="30" :iconSize="20">Github</p-avatar>
<vf-avatar icon="fa-github-square" color="blue" backgroundColor="orange" :size="30" :iconSize="20">Github</vf-avatar>

</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions showcase/src/components/backtotop/backtotopdemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<label for="">
<strong>Offset</strong>
</label><br>
<p-inputText type="text" v-model="offset" onkeypress="return event.charCode >= 48 && event.charCode <= 57"/>
<vf-inputText type="text" v-model="offset" onkeypress="return event.charCode >= 48 && event.charCode <= 57"/>
</div>
<div class="form-control">
<label for="">
<strong>Text</strong>
</label><br>
<p-inputText type="text" v-model="text"/>
<vf-inputText type="text" v-model="text"/>
</div>
<p-backToTop :offset="offset" :text="text"></p-backToTop>
<vf-backToTop :offset="offset" :text="text"></vf-backToTop>
</div>
</div>
</template>
Expand Down
60 changes: 30 additions & 30 deletions showcase/src/components/badge/badgedemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,44 @@
<div id="wrapper">

<h3 class="first">Numbers</h3>
<p-badge :value="100">
<p-button type="button" icon="fa-thumbs-up" label="Likes"></p-button>
</p-badge>
<p-badge :value="50">
<p-button type="button" icon="fa-thumbs-down" label="Dislikes"></p-button>
</p-badge>
<vf-badge :value="100">
<vf-button type="button" icon="fa-thumbs-up" label="Likes"></vf-button>
</vf-badge>
<vf-badge :value="50">
<vf-button type="button" icon="fa-thumbs-down" label="Dislikes"></vf-button>
</vf-badge>

<h3 class="first">Color</h3>
<p-badge :value="100" backgroundColor="red">
<p-button type="button" icon="fa-thumbs-up" label="Likes"></p-button>
</p-badge>
<p-badge :value="50" backgroundColor="blue">
<p-button type="button" icon="fa-thumbs-down" label="Dislikes"></p-button>
</p-badge>
<vf-badge :value="100" backgroundColor="red">
<vf-button type="button" icon="fa-thumbs-up" label="Likes"></vf-button>
</vf-badge>
<vf-badge :value="50" backgroundColor="blue">
<vf-button type="button" icon="fa-thumbs-down" label="Dislikes"></vf-button>
</vf-badge>

<h3>Max</h3>
<p-badge :value="200" :max="100">
<p-button type="button" icon="fa-thumbs-up" label="Likes"></p-button>
</p-badge>
<p-badge :value="100" :max="50">
<p-button type="button" icon="fa-thumbs-down" label="Dislikes"></p-button>
</p-badge>
<vf-badge :value="200" :max="100">
<vf-button type="button" icon="fa-thumbs-up" label="Likes"></vf-button>
</vf-badge>
<vf-badge :value="100" :max="50">
<vf-button type="button" icon="fa-thumbs-down" label="Dislikes"></vf-button>
</vf-badge>

<h3>Text</h3>
<p-badge value="new">
<p-button type="button" icon="fa-comments" label="Comments"></p-button>
</p-badge>
<p-badge value="old">
<p-button type="button" icon="fa-comments" label="Comments"></p-button>
</p-badge>
<vf-badge value="new">
<vf-button type="button" icon="fa-comments" label="Comments"></vf-button>
</vf-badge>
<vf-badge value="old">
<vf-button type="button" icon="fa-comments" label="Comments"></vf-button>
</vf-badge>

<h3>Notify</h3>
<p-badge :dot="true">
<p-button type="button" label="Alert"></p-button>
</p-badge>
<p-badge :dot="true">
<p-button type="button" icon="fa-exclamation-circle"></p-button>
</p-badge>
<vf-badge :dot="true">
<vf-button type="button" label="Alert"></vf-button>
</vf-badge>
<vf-badge :dot="true">
<vf-button type="button" icon="fa-exclamation-circle"></vf-button>
</vf-badge>

</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions showcase/src/components/blockui/blockuidemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@

<h3 class="first">1. Document</h3>
<p>The entire document is blocked</p>
<p-blockUI :blocked="blockedDocument"></p-blockUI>
<vf-blockUI :blocked="blockedDocument"></vf-blockUI>

<p-button type="button" label="Block" @click="blockDocument()"></p-button>
<vf-button type="button" label="Block" @click="blockDocument()"></vf-button>

<h3>2. Target</h3>
<p>Particular target</p>
<p-button type="button" label="Block" @click="blockPanel()"></p-button>
<p-button type="button" label="Unblock" @click="unblockPanel()"></p-button>
<vf-button type="button" label="Block" @click="blockPanel()"></vf-button>
<vf-button type="button" label="Unblock" @click="unblockPanel()"></vf-button>

<p-blockUI :target="target" :blocked="blockedPanel">
<vf-blockUI :target="target" :blocked="blockedPanel">
<i class="fa fa-lock fa-5x" style="position:absolute;top:25%;left:50%"></i>
</p-blockUI>
<p-panel id="pnl" header="Godfather I" :style="{"margin-top":"20px"}">
</vf-blockUI>
<vf-panel id="pnl" header="Godfather I" :style="{"margin-top":"20px"}">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</p-panel>
</vf-panel>

</div>
</div>
Expand Down
22 changes: 11 additions & 11 deletions showcase/src/components/button/buttondemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

<p>The icon of a button is specified using icon attribute and position is customized using iconPos attribute. The default icon position is left. To display only an icon, leave label as undefined.</p>

<p-button type="button" icon="fa-check" label="VueJS"></p-button>
<vf-button type="button" icon="fa-check" label="VueJS"></vf-button>

<p-button type="button" icon="fa-check" iconPos="right" label="VueJS"></p-button>
<vf-button type="button" icon="fa-check" iconPos="right" label="VueJS"></vf-button>

<p-button type="button" icon="fa-close"></p-button>
<vf-button type="button" icon="fa-close"></vf-button>

<h3>2. Severity Buttons</h3>

Expand All @@ -31,27 +31,27 @@
<li>.ui-button-danger</li>
</ul>

<p-button type="button" label="Primary"></p-button>
<vf-button type="button" label="Primary"></vf-button>

<p-button type="button" label="Secondary" class="ui-button-secondary"></p-button>
<vf-button type="button" label="Secondary" class="ui-button-secondary"></vf-button>

<p-button type="button" label="Success" class="ui-button-success"></p-button>
<vf-button type="button" label="Success" class="ui-button-success"></vf-button>

<p-button type="button" label="Info" class="ui-button-info"></p-button>
<vf-button type="button" label="Info" class="ui-button-info"></vf-button>

<p-button type="button" label="Warning" class="ui-button-warning"></p-button>
<vf-button type="button" label="Warning" class="ui-button-warning"></vf-button>

<p-button type="button" label="Danger" class="ui-button-danger"></p-button>
<vf-button type="button" label="Danger" class="ui-button-danger"></vf-button>

<h3>3. Events</h3>
<p>The button component supports click event</p>

<p-button type="button" label="Click" @click="clickMe"></p-button>
<vf-button type="button" label="Click" @click="clickMe"></vf-button>

<h3>4. Disabled</h3>
<p>The component disabled using disabled attribute</p>

<p-button type="button" icon="fa-check" :disabled="true" label="Disabled"></p-button>
<vf-button type="button" icon="fa-check" :disabled="true" label="Disabled"></vf-button>

</div>
</div>
Expand Down
Loading

0 comments on commit 9d5b587

Please sign in to comment.