Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rv 276 #830

Closed
wants to merge 106 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
ba35c83
OHRM-945:Add storybook sass support
RajithaKumara Jan 15, 2021
86ab74f
OHRM-945:Add OXD colors
RajithaKumara Jan 20, 2021
fb35d49
OHRM-945:Bump Vue to 3.x and Storybook 6.2.0-alpha.7
RajithaKumara Jan 20, 2021
b195963
OHRM-945:Add input component
RajithaKumara Jan 21, 2021
a4fb604
OHRM-945:Initiate textarea component
RajithaKumara Jan 22, 2021
d00ea52
OHRM-945:Add snapshot tests and improve code formatting
RajithaKumara Jan 22, 2021
9da6241
OHRM-945:Implement button effects
RajithaKumara Jan 23, 2021
d685770
OHRM-945:Initiate file input component
RajithaKumara Jan 25, 2021
ee49dde
OHRM-945:Add snapshot tests for file input component
RajithaKumara Jan 25, 2021
093481d
OHRM-1008:Initiate Form layout
RajithaKumara Feb 2, 2021
5fb59e3
OHRM-1009:Attempt to customize Sass variables
RajithaKumara Feb 2, 2021
4193318
OHRM-1009:Make Sass variables as default
RajithaKumara Feb 2, 2021
13cf111
OHRM-1008:Add text & divider components
RajithaKumara Feb 3, 2021
236d4a2
OHRM-1015:Improve Card component (#11)
samanthajayasinghe Feb 12, 2021
ee28727
OHRM-1008:Improve form layouts (#10)
RajithaKumara Feb 15, 2021
b705b72
OHRM-1017:Add action cell type (#12)
RajithaKumara Feb 16, 2021
c1340aa
OHRM-1021:Develop loading spinner (#13)
RajithaKumara Feb 17, 2021
954fcb8
OHRM-1041:Configure PostCSS (#14)
RajithaKumara Feb 21, 2021
cb0715b
OHRM-1043:Initiate sheet component (#15)
RajithaKumara Feb 25, 2021
d09fa95
OHRM-1070:Develop grid component (#16)
samanthajayasinghe Mar 15, 2021
7721b0b
OHRM-1049:Form Validation Added (#17)
Super-Chama Mar 24, 2021
117417f
OHRM-1008:Refactor form-group to input-group (#20)
RajithaKumara Mar 25, 2021
a9db28f
OHRM5X-7:OXD Layout Components (#19)
Super-Chama Mar 30, 2021
205efe4
OHRM5X-20:Card Table Type Error Fixes (#22)
Super-Chama Mar 31, 2021
026d132
OHRM5X-10:User Screen core modules (#23)
Super-Chama Apr 7, 2021
3af1da9
OHRM5X-29:User screen core component improvements (#24)
Super-Chama Apr 12, 2021
6c22d2d
OHRM5X-31: Improve Card component (#25)
Super-Chama Apr 20, 2021
66adbd7
OHRM5X-24: OXD-TreeView, OXD-SwitchInput components added (#27)
May 2, 2021
b9deffd
OHRM5X-99: Improve Data tables with responsiveness + a11y (#29)
May 11, 2021
d650947
OHRM5X-99: Data tables improvements (#30)
May 12, 2021
1ab8fe9
OHRM5X-162: Develop radio input component (#31)
May 21, 2021
805a593
OHRM5X-224: Oxd cardtable event bus issue fixed (#32)
May 31, 2021
59d935a
OHRM5X-129: OXD-Calendar and OXD-Date-Input components added (#33)
Jun 8, 2021
37d476d
OHRM5X-165: General defects fixes (#34)
Jun 12, 2021
897e675
OHRM5X-322: Change validation message colors (#35)
Jun 17, 2021
cefd1d7
OHRM5X-154: Treeview line rendering issue fix (#36)
Jun 28, 2021
7045824
OHRM5X-217: Develop cardtable sorting & row selectable (#38)
Jun 30, 2021
c076828
OHRM5X-354: Add brand image to storybook (#37)
RajithaKumara Jul 2, 2021
8fab07e
OHRM5X-383: oxd-cardtable row height fixes (#40)
Jul 12, 2021
63df0ea
OHRM5X-356: OXD-Autocomplete Input field added (#41)
Jul 14, 2021
96ee921
OHRM5X-427: Fixed oxd-select label text wrap (#42)
Jul 20, 2021
146bbea
OHRM5X-440: oxd-file input disabled fixes (#44)
Jul 27, 2021
1bc5b68
OHRM5X-434: OXD-Time input field added (#43)
Jul 27, 2021
aabc18a
OHRM5X-432: oxd-calendar attributes & events props added (#45)
Jul 28, 2021
e81151d
OHRM5X-478: Make oxd-time input output in 24h format (#46)
Aug 9, 2021
624f8b7
OHRM5X-480: OXD-Form asynchronous validation added (#47)
Aug 24, 2021
4dbd61c
OHRM5X-570: Show/Hide Individual OXD-Cardtable Actions Per Row (#49)
Sep 6, 2021
0101530
OHRM5X-574: Fix unregistered fields not removing from oxd-form fields…
Sep 10, 2021
a98d2d3
OHRM5X-611: Add GPL v3 code header (#59)
samanthajayasinghe Sep 20, 2021
f192531
OHRM5X-611 : Update Read me file with license
samanthajayasinghe Sep 20, 2021
df9bc5d
Add oxd build script (#62)
RajithaKumara Sep 27, 2021
ca44a55
OHRM5X-405: OXD-Report Table component added Develop (#68)
samanthajayasinghe Oct 5, 2021
3303fe9
OHRM5X-709: Add auto column width oxd-report table (#71)
Oct 11, 2021
9d54bbe
OHRM5X-171: Improve layout, topbar, sidepanel (#74)
Oct 28, 2021
7176d75
OHRM5X-171: OXD-Navigation adjust dynamically to the screen width (#75)
Nov 3, 2021
2b42386
OHRM5X-575: Add form reset ability (#77)
Nov 8, 2021
a8f6239
OHRM5X-899: Improve OXD-Report table (#78)
Nov 9, 2021
f72dc91
OHRM5X-611: bum v1.1 version
samanthajayasinghe Nov 9, 2021
0cfbdc3
OHRM5X-611: bum v1.0.1 version
samanthajayasinghe Nov 9, 2021
b2b870a
OHRM5X-934: Change @orangehrm/oxd namespace to @ohrm/oxd (#80)
Nov 11, 2021
9f53f16
OHRM5X-320: Improve card table, report table, autocomplete (#81)
Nov 12, 2021
c242d52
OHRM5X-611: bump version to 1.0.2
samanthajayasinghe Nov 11, 2021
b3e270c
OHRM5X-233: OXD-Card table hide field header in mobile if no data (#82)
Nov 12, 2021
02013b9
OHRM5X-655: OXD-Calendar scroll year/month dropdown to selected value…
Nov 16, 2021
82a013f
OHRM5X-655: Bump version to 1.0.4 (#84)
RajithaKumara Nov 16, 2021
c6e756f
OHRM5X-980: OXD-Datepicker, OXD-Icon Button Improvements (#87)
Dec 7, 2021
0cdc84e
OHRM5X-1040: Bump version to 1.0.5-alpha1 (#91)
RajithaKumara Dec 31, 2021
039e6ce
OHRM5X-1123: Config store and i18n support added (#121)
Feb 11, 2022
d08994c
OHRM5X-1123: Bump version to 1.0.5-alpha.2
RajithaKumara Feb 11, 2022
0deaf18
OHRM5X-1129: Implement github action to publish @ohrm/oxd (#123)
RajithaKumara Feb 21, 2022
bbb6222
OHRM5X-1070: Fix disabled background color of textarea (#124)
Feb 21, 2022
775b88b
OHRM5X-1233: Add i18n support for components (#262)
Apr 12, 2022
ef25a3e
OHRM5X-819: Develop progress bar component (#263)
Apr 12, 2022
5e6fd08
OHRM5X-1250: Add OXD-Icon guide svg icon (#269)
Apr 20, 2022
dac928a
OHRM5X-1263: Prevent click event propagation on clicking checkbox car…
Apr 27, 2022
e9c2fd1
OHRM5X-1202: Add topbar navigation i18n string (#280)
Apr 27, 2022
251b02c
OHRM5X-1302: Bump version to 1.0.5 (#286)
RajithaKumara Apr 29, 2022
3fac47b
Add PR Template
pathumhdes May 30, 2022
5bcfab9
OHRM5X-1627: OXD 1.0.6 Release (#484)
Jul 22, 2022
4572b24
OHRM5X-1129: Fix publish action failure if version already released
RajithaKumara Jul 24, 2022
3171ac4
OHRM5X-966: OXD Autocomplete support pass through search term (#496)
Aug 4, 2022
da14c8b
OHRM5X-1674: Add OXD Pie chart component (#545)
Aug 29, 2022
bbc28f5
OHRM5X-1652: Add OXD svg icons (#576)
Sep 2, 2022
f67ef68
OHRM5X-1652: Fix publish action failure while checking current versio…
RajithaKumara Sep 2, 2022
e63cb25
OHRM5X-1700: Add OXD Bar chart component (#588)
Sep 9, 2022
9915309
OHRM5X-1657: Add OXD svg icons (#601)
Sep 19, 2022
dbe4907
OHRM5X-1731: Add OXD tab component (#603)
Oct 3, 2022
afb7e1d
OHRM5X-1762: Fix OXD select dropdown toggle behavior (#616)
Oct 6, 2022
eaf0a5a
OHRM5X-1786: Bump version to 1.0.7 (#628)
Oct 14, 2022
5b55cc4
OHRM5X-1734: Add OXD glass button disabled prop (#635)
Oct 24, 2022
5b1fd88
OHRM5X-1913: Fix OXD buzz post input not showing line breaks in firef…
Dec 22, 2022
c25fd60
OHRM5X-1888: Upgrade oxd dependencies (#658)
Jan 5, 2023
a200797
OHRM5X-1928: Fix card-table broken issues (#668)
Jan 5, 2023
fdee6a4
OHRM5X-1292: Form validation run async validation sequentially (#678)
Jan 27, 2023
54fb861
OHRM5X-797: OXD Navigation action slot added (#679)
Feb 7, 2023
1c4ad5c
OHRM5X-959: Migrate to Vite (#670)
Feb 14, 2023
6f524ba
OHRM5X-2063: Add claim icon to svg icons (#680)
Feb 17, 2023
3b81741
OHRM5X-1269: Add truncate cell type to OXD Cardtable (#681)
Apr 25, 2023
09e6433
OHRM5X-2151: Bump version to 2.0.0 (#693)
RajithaKumara Apr 25, 2023
4eb97b2
OHRM5X-2202: Fix descending typo issue (#700)
ManulMax May 31, 2023
40ae216
OHRM5X-2151: Enable npm publish by github action (#694)
RajithaKumara May 31, 2023
45d8ced
OHRM5X-2258: Bump version to 2.0.1
RajithaKumara Jul 4, 2023
238f38d
Merge branch 'ent' of https://github.com/ShachiniMekala/oxd into ent
shachiniM Nov 22, 2024
9c5a834
Merge branch 'ent' of https://github.com/ShachiniMekala/oxd into ent
shachiniM Dec 10, 2024
48c54ec
Merge branch 'ent' of https://github.com/ShachiniMekala/oxd into ent
shachiniM Dec 16, 2024
1822981
Increase the max-width of tooltips in the system
shachiniM Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
root: true,
extends: [
'plugin:vue/vue3-recommended',
'plugin:vue/vue3-strongly-recommended',
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier',
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'vue/multi-word-component-names': 'off',
},
};
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Checklist

- [ ] Test Coverage is 100% for the newly added code
- [ ] Storybook stories are added/updated for the changed areas
- [ ] Components standards defined [in this document](https://docs.google.com/document/d/16_Nd3VxE_lTD9pVkONQ0egn7IiwyX1pVXZjzl-V4tU8/) are followed
- [ ] Code is linted properly
- [ ] Developer testing is done for the affected areas
- [ ] Package version updated (not applicable to ent branch)
- [ ] Changelog.md updated on possible breaking (applicable to ent branch)
71 changes: 71 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Publish

on:
push:
branches:
- develop

jobs:
publish:
if: github.repository == 'orangehrm/oxd'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Check version already published
run: |
set -x
npm -v
current_version=$(npm pkg get version | sed 's/"//g')
fetched_current_version=$(npm show @ohrm/oxd@$current_version version) || fetched_current_version=''
echo "current_version=$current_version" >> $GITHUB_ENV
echo "fetched_current_version=$fetched_current_version" >> $GITHUB_ENV
echo "current_published_version=$(npm show @ohrm/oxd version)" >> $GITHUB_ENV

- name: Allow only make patch, pre-releases
if: ${{ env.fetched_current_version == '' }}
run: |
npm i -g semver
current_published_version=${{ env.current_published_version }}
current_version=${{ env.current_version }}
fetched_current_version=${{ env.fetched_current_version }}
allowed_max_version=$(semver $current_published_version -i minor)
echo "-----"
echo "Latest published: $current_published_version"
echo "Allowed upper bound: $allowed_max_version"
echo "Current version: $current_version"
echo "-----"
version=$(semver -r ">$current_published_version <$allowed_max_version" $current_version -p)
if [[ $version != $current_version ]];
then
exit 1
fi

- name: Build
if: ${{ env.fetched_current_version == '' }}
run: |
yarn install
yarn build:oxd
cp LICENSE dist/LICENSE
cp README.md dist/README.md
cp THIRD-PARTY-LICENSE dist/THIRD-PARTY-LICENSE
(cat package.json | jq '.peerDependencies += {"vue": "3.x"}' | jq 'del(.private, .scripts, .dependencies.vue, .devDependencies)') > dist/package.json

- name: Upload build files
uses: actions/upload-artifact@v3
with:
name: oxd-build
path: dist

- name: Publish
if: ${{ env.fetched_current_version == '' }}
run: |
cd dist
npm publish --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Type Check

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: yarn install
- name: Type check
run: yarn type-check
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.DS_Store
node_modules
/dist

/build
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# local env files
.env.local
Expand All @@ -21,3 +26,10 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

# Coverage report
src/coverage/*

# Build
dist/
tsconfig.build.tsbuildinfo
25 changes: 25 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const path = require('path');
module.exports = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/vue3-vite',
options: {},
},
docs: {
autodocs: 'tag',
},
async viteFinal(config) {
config.resolve.alias = {
...config.resolve.alias,
'@': path.resolve(__dirname, '../src'),
};

return config;
},
staticDirs: ['../public'],
};
1 change: 1 addition & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="shortcut icon" href="orange.ico" />
15 changes: 15 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {version} from '../package.json';
import {addons} from '@storybook/addons';
import {create} from '@storybook/theming';

const orangehrmTheme = create({
base: 'light',
brandTitle: `OXD Storybook - ${version}`,
brandUrl: 'https://www.orangehrm.com',
brandImage:
'https://www.orangehrm.com/_resources/themes/orangehrm/dist/images/OrangeHRM_Logo.svg',
});

addons.setConfig({
theme: orangehrmTheme,
});
5 changes: 5 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<link rel="stylesheet" href="fonts.css" />
<link rel="stylesheet" href="icons.css" />
<script>
window.global = window;
</script>
56 changes: 56 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import {MINIMAL_VIEWPORTS} from '@storybook/addon-viewport';

// https://storybook.js.org/docs/react/essentials/viewport
const customViewports = {
xs: {
name: 'XS',
styles: {
width: '480px',
height: '600px',
},
},
s: {
name: 'S',
styles: {
width: '640px',
height: '801px',
},
},
m: {
name: 'M',
styles: {
width: '960px',
height: '700px',
},
},
l: {
name: 'L',
styles: {
width: '1200px',
height: '800px',
},
},
xl: {
name: 'XL',
styles: {
width: '1400px',
height: '900px',
},
},
};

export const parameters = {
actions: {argTypesRegex: '^on[A-Z].*'},
viewport: {
viewports: {
...MINIMAL_VIEWPORTS,
...customViewports,
},
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
550 changes: 550 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

823 changes: 823 additions & 0 deletions .yarn/releases/yarn-3.3.1.cjs

Large diffs are not rendered by default.

Empty file added .yarn/versions/04cfad93.yml
Empty file.
7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.3.1.cjs
17 changes: 17 additions & 0 deletions THIRD-PARTY-LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Third Party Licenses
====================

This project includes material from the projects listed below.
The original copyright notice and the license under which we received
such Third Party IP, are set forth below.

- Bootstrap Icons (https://github.com/twbs/icons)
Copyright (c) 2019-2021 The Bootstrap Authors
The MIT License, https://opensource.org/licenses/MIT

- Nunito Font (https://github.com/googlefonts/NunitoSans)
Copyright (c) Vernon Adams <[email protected]>
Jacques Le Bailly <[email protected]>
Manvel Shmavonyan <[email protected]>
Alexei Vanyashin <[email protected]>
SIL OPEN FONT LICENSE, https://opensource.org/licenses/OFL-1.1
6 changes: 0 additions & 6 deletions components/src/shims-vue.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion components/src/styles/_utility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
overflow: hidden;
text-overflow: ellipsis;
width: max-content;
max-width: 300px;
max-width: 200px;
padding: 0.25rem 0.5rem;
border-radius: 0.5rem;
box-shadow: 0px 25px 25px 0 rgba(0, 0, 0, 0.18);
Expand Down
78 changes: 78 additions & 0 deletions public/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 200;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-200.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-200.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 300;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-300.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-300.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 400;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-regular.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-regular.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: italic;
font-weight: 400;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-italic.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-italic.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 600;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-600.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-600.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 700;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-700.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-700.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 800;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-800.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-800.woff') format('woff');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 900;
src: local(''),
url('./fonts/nunito-sans-v6-latin-ext_latin-900.woff2') format('woff2'),
url('./fonts/nunito-sans-v6-latin-ext_latin-900.woff') format('woff');
}

@font-face {
font-family: 'bootstrap-icons';
font-display: block;
src: url('./fonts/bootstrap-icons.woff2') format('woff2'),
url('./fonts/bootstrap-icons.woff') format('woff');
}
Binary file added public/fonts/bootstrap-icons.woff
Binary file not shown.
Binary file added public/fonts/bootstrap-icons.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading