Skip to content

Commit

Permalink
release: v3.0.0-next.24 (#256)
Browse files Browse the repository at this point in the history
* fix(lib): MazLazyImg - lazy-img directive implementation

* chore(lib): npm publish automation script

* chore(ci): run actions when its necessary

* chore(release): bump version to 3.0.0-next.24

* chore(release): bump version to 3.0.0-next.24

* test(unit): maz-picker fix

* chore(ci): rename test unit action

* chore(lib): MazLazyImg - use alias for lazy-img directive
  • Loading branch information
LouisMazel committed May 3, 2022
1 parent db10596 commit 3e2ae67
Show file tree
Hide file tree
Showing 18 changed files with 112 additions and 50 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/lib-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Clean And Build Lib
run: |
make clean-build
make build
- name: Build Lib
run: make build

- run: npm publish --tag next --access public
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lib-test-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lib Build Test
name: Lib Test Build
on:
push:
branches:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lib-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ on:
paths:
- "packages/lib/**"
pull_request:
branches: [master, next]
branches:
- master
- next
- "release/**"
paths:
- "packages/lib/**"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lib-test-unit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lib Tests Units
name: Lib Tests Unit

on:
push:
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.0.0-next.24](https://github.com/LouisMazel/maz-ui/compare/v2.3.13...v3.0.0-next.24) (2022-05-03)

### Bug Fixes

- **docs:** aos implementation ([#218](https://github.com/LouisMazel/maz-ui/issues/218)) ([3849e05](https://github.com/LouisMazel/maz-ui/commit/3849e0566973906ae1a557d6dfa230429b550618))
- **docs:** aos installation on client side ([#217](https://github.com/LouisMazel/maz-ui/issues/217)) ([6790515](https://github.com/LouisMazel/maz-ui/commit/67905153973581418b4f807e531b1ee4f01b1331))
- **lib:** maz-radio-buttons - hover color ([#239](https://github.com/LouisMazel/maz-ui/issues/239)) ([8a945ab](https://github.com/LouisMazel/maz-ui/commit/8a945abe271d13a929a0def2966f566f3be20b73))
- **lib:** MazLazyImg - lazy-img directive implementation ([ecbceb2](https://github.com/LouisMazel/maz-ui/commit/ecbceb28a956995bb00fc1a71c53b5002e02f234))
- **root:** codeclimate build ([283ab56](https://github.com/LouisMazel/maz-ui/commit/283ab566520921abfb7351409db1af9ea2c09a7d))

### Features

- **lib:** add helpers about user activity ([#238](https://github.com/LouisMazel/maz-ui/issues/238)) ([#240](https://github.com/LouisMazel/maz-ui/issues/240)) ([fcdbccb](https://github.com/LouisMazel/maz-ui/commit/fcdbccbed451aa38e771fb118c2834e55015d14b))
- **lib:** add maz-picker component ([#197](https://github.com/LouisMazel/maz-ui/issues/197)) ([877515e](https://github.com/LouisMazel/maz-ui/commit/877515e585d1aa9a3febd83e222c12346e7401b5))
- **lib:** add wait plugin to manage loading state ([#214](https://github.com/LouisMazel/maz-ui/issues/214)) ([a6a1931](https://github.com/LouisMazel/maz-ui/commit/a6a1931ba7000c5e545cfc4808fe7205809629c4))
- **lib:** adding maz-input-number ([#195](https://github.com/LouisMazel/maz-ui/issues/195)) ([dfb835d](https://github.com/LouisMazel/maz-ui/commit/dfb835d796682955b53dfb82455aefc763895c86))
- **lib:** aos - adding anchor option ([#219](https://github.com/LouisMazel/maz-ui/issues/219)) ([b1c8b02](https://github.com/LouisMazel/maz-ui/commit/b1c8b028286d2154b86c5bb52fa7208d0c347d3e))
- **lib:** export tailwind config ([#201](https://github.com/LouisMazel/maz-ui/issues/201)) ([94fddb9](https://github.com/LouisMazel/maz-ui/commit/94fddb9d35e91a6f649bcb18ae7105048d048584))
- **lib:** MazInput - adding style color for autofill ([#208](https://github.com/LouisMazel/maz-ui/issues/208)) ([b3ae969](https://github.com/LouisMazel/maz-ui/commit/b3ae969584bda0e690179c1b6c9defdc1bbf0425))
- **lib:** new component - maz-radio-buttons ([#232](https://github.com/LouisMazel/maz-ui/issues/232)) ([#233](https://github.com/LouisMazel/maz-ui/issues/233)) ([ece3d19](https://github.com/LouisMazel/maz-ui/commit/ece3d19bdf393cffc8e883c3b6362f21204bbfc8)), closes [#231](https://github.com/LouisMazel/maz-ui/issues/231)

# [3.0.0-next.23](https://github.com/LouisMazel/maz-ui/compare/v2.3.13...3.0.0-next.23) (2022-05-02)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packages": ["packages/*"],
"loglevel": "verbose",
"version": "3.0.0-next.23",
"version": "3.0.0-next.24",
"npmClientArgs": ["--production=false", "--no-progress"],
"yes": true,
"granularPathspec": false,
Expand Down
24 changes: 24 additions & 0 deletions packages/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.0.0-next.24](https://github.com/LouisMazel/maz-ui/compare/v2.3.13...v3.0.0-next.24) (2022-05-03)


### Bug Fixes

* **docs:** aos implementation ([#218](https://github.com/LouisMazel/maz-ui/issues/218)) ([3849e05](https://github.com/LouisMazel/maz-ui/commit/3849e0566973906ae1a557d6dfa230429b550618))
* **docs:** aos installation on client side ([#217](https://github.com/LouisMazel/maz-ui/issues/217)) ([6790515](https://github.com/LouisMazel/maz-ui/commit/67905153973581418b4f807e531b1ee4f01b1331))
* **lib:** maz-radio-buttons - hover color ([#239](https://github.com/LouisMazel/maz-ui/issues/239)) ([8a945ab](https://github.com/LouisMazel/maz-ui/commit/8a945abe271d13a929a0def2966f566f3be20b73))


### Features

* **lib:** add helpers about user activity ([#238](https://github.com/LouisMazel/maz-ui/issues/238)) ([#240](https://github.com/LouisMazel/maz-ui/issues/240)) ([fcdbccb](https://github.com/LouisMazel/maz-ui/commit/fcdbccbed451aa38e771fb118c2834e55015d14b))
* **lib:** add maz-picker component ([#197](https://github.com/LouisMazel/maz-ui/issues/197)) ([877515e](https://github.com/LouisMazel/maz-ui/commit/877515e585d1aa9a3febd83e222c12346e7401b5))
* **lib:** add wait plugin to manage loading state ([#214](https://github.com/LouisMazel/maz-ui/issues/214)) ([a6a1931](https://github.com/LouisMazel/maz-ui/commit/a6a1931ba7000c5e545cfc4808fe7205809629c4))
* **lib:** adding maz-input-number ([#195](https://github.com/LouisMazel/maz-ui/issues/195)) ([dfb835d](https://github.com/LouisMazel/maz-ui/commit/dfb835d796682955b53dfb82455aefc763895c86))
* **lib:** aos - adding anchor option ([#219](https://github.com/LouisMazel/maz-ui/issues/219)) ([b1c8b02](https://github.com/LouisMazel/maz-ui/commit/b1c8b028286d2154b86c5bb52fa7208d0c347d3e))
* **lib:** export tailwind config ([#201](https://github.com/LouisMazel/maz-ui/issues/201)) ([94fddb9](https://github.com/LouisMazel/maz-ui/commit/94fddb9d35e91a6f649bcb18ae7105048d048584))
* **lib:** new component - maz-radio-buttons ([#232](https://github.com/LouisMazel/maz-ui/issues/232)) ([#233](https://github.com/LouisMazel/maz-ui/issues/233)) ([ece3d19](https://github.com/LouisMazel/maz-ui/commit/ece3d19bdf393cffc8e883c3b6362f21204bbfc8)), closes [#231](https://github.com/LouisMazel/maz-ui/issues/231)





# [3.0.0-next.23](https://github.com/LouisMazel/maz-ui/compare/v2.3.13...3.0.0-next.23) (2022-05-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "3.0.0-next.22",
"version": "3.0.0-next.24",
"description": "documentation of maz-ui",
"main": "index.js",
"browser": {
Expand Down
18 changes: 18 additions & 0 deletions packages/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.0.0-next.24](https://github.com/LouisMazel/maz-ui-3/compare/v2.3.13...v3.0.0-next.24) (2022-05-03)

### Bug Fixes

- **lib:** maz-radio-buttons - hover color ([#239](https://github.com/LouisMazel/maz-ui-3/issues/239)) ([8a945ab](https://github.com/LouisMazel/maz-ui-3/commit/8a945abe271d13a929a0def2966f566f3be20b73))
- **lib:** MazLazyImg - lazy-img directive implementation ([ecbceb2](https://github.com/LouisMazel/maz-ui-3/commit/ecbceb28a956995bb00fc1a71c53b5002e02f234))

### Features

- **lib:** add helpers about user activity ([#238](https://github.com/LouisMazel/maz-ui-3/issues/238)) ([#240](https://github.com/LouisMazel/maz-ui-3/issues/240)) ([fcdbccb](https://github.com/LouisMazel/maz-ui-3/commit/fcdbccbed451aa38e771fb118c2834e55015d14b))
- **lib:** add maz-picker component ([#197](https://github.com/LouisMazel/maz-ui-3/issues/197)) ([877515e](https://github.com/LouisMazel/maz-ui-3/commit/877515e585d1aa9a3febd83e222c12346e7401b5))
- **lib:** add wait plugin to manage loading state ([#214](https://github.com/LouisMazel/maz-ui-3/issues/214)) ([a6a1931](https://github.com/LouisMazel/maz-ui-3/commit/a6a1931ba7000c5e545cfc4808fe7205809629c4))
- **lib:** adding maz-input-number ([#195](https://github.com/LouisMazel/maz-ui-3/issues/195)) ([dfb835d](https://github.com/LouisMazel/maz-ui-3/commit/dfb835d796682955b53dfb82455aefc763895c86))
- **lib:** aos - adding anchor option ([#219](https://github.com/LouisMazel/maz-ui-3/issues/219)) ([b1c8b02](https://github.com/LouisMazel/maz-ui-3/commit/b1c8b028286d2154b86c5bb52fa7208d0c347d3e))
- **lib:** export tailwind config ([#201](https://github.com/LouisMazel/maz-ui-3/issues/201)) ([94fddb9](https://github.com/LouisMazel/maz-ui-3/commit/94fddb9d35e91a6f649bcb18ae7105048d048584))
- **lib:** MazInput - adding style color for autofill ([#208](https://github.com/LouisMazel/maz-ui-3/issues/208)) ([b3ae969](https://github.com/LouisMazel/maz-ui-3/commit/b3ae969584bda0e690179c1b6c9defdc1bbf0425))
- **lib:** new component - maz-radio-buttons ([#232](https://github.com/LouisMazel/maz-ui-3/issues/232)) ([#233](https://github.com/LouisMazel/maz-ui-3/issues/233)) ([ece3d19](https://github.com/LouisMazel/maz-ui-3/commit/ece3d19bdf393cffc8e883c3b6362f21204bbfc8)), closes [#231](https://github.com/LouisMazel/maz-ui-3/issues/231)

# [3.0.0-next.23](https://github.com/LouisMazel/maz-ui-3/compare/v2.3.13...3.0.0-next.23) (2022-05-02)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maz-ui",
"version": "3.0.0-next.23",
"version": "3.0.0-next.24",
"description": "A stand-alone components library for Vue.Js 3 & Nuxt.Js 3",
"author": "Louis Mazel <me@loicmazuel.com>",
"main": "modules/index.js",
Expand Down
16 changes: 9 additions & 7 deletions packages/lib/package/components/MazLazyImg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
</script>

<script lang="ts" setup>
import { computed } from 'vue'
import type { Prop } from 'vue'
import type { vLazyImgOptions, vLazyImg } from '../directives/v-lazy-img'
import { computed, type Prop } from 'vue'
import {
type vLazyImgOptions,
vLazyImg,
} from '@package/directives/v-lazy-img'
import MazSpinner from './MazSpinner.vue'
import type { Image } from './types'
Expand All @@ -56,11 +58,11 @@
defineEmits(['intersecting', 'loading', 'loaded', 'error'])
const sources = computed(() =>
typeof props.image === 'string'
const sources = computed(() => {
return typeof props.image === 'string'
? [{ srcset: props.image }]
: props.image?.sources,
)
: props.image?.sources
})
</script>

<style lang="postcss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ exports[`components/MazPicker.vue 1`] = `
<!--v-if--><span class=\\"maz-flex maz-flex-center\\" data-v-486cf628=\\"\\"><span data-v-4e1f3e64=\\"\\">1</span></span>
<!--v-if-->
<!--v-if-->
</button><button class=\\"--is-today m-btn --mini --transparent --cursor-pointer --is-button --is-today\\" type=\\"button\\" data-v-486cf628=\\"\\" data-v-4e1f3e64=\\"\\">
</button><button class=\\"m-btn --mini --transparent --cursor-pointer --is-button\\" type=\\"button\\" data-v-486cf628=\\"\\" data-v-4e1f3e64=\\"\\">
<!--v-if--><span class=\\"maz-flex maz-flex-center\\" data-v-486cf628=\\"\\"><span data-v-4e1f3e64=\\"\\">2</span></span>
<!--v-if-->
<!--v-if-->
</button><button class=\\"m-btn --mini --transparent --cursor-pointer --is-button\\" type=\\"button\\" data-v-486cf628=\\"\\" data-v-4e1f3e64=\\"\\">
</button><button class=\\"--is-today m-btn --mini --transparent --cursor-pointer --is-button --is-today\\" type=\\"button\\" data-v-486cf628=\\"\\" data-v-4e1f3e64=\\"\\">
<!--v-if--><span class=\\"maz-flex maz-flex-center\\" data-v-486cf628=\\"\\"><span data-v-4e1f3e64=\\"\\">3</span></span>
<!--v-if-->
<!--v-if-->
Expand Down
22 changes: 22 additions & 0 deletions packages/testing/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.0.0-next.24](https://github.com/LouisMazel/maz-ui/compare/v2.3.13...v3.0.0-next.24) (2022-05-03)


### Bug Fixes

* **lib:** maz-radio-buttons - hover color ([#239](https://github.com/LouisMazel/maz-ui/issues/239)) ([8a945ab](https://github.com/LouisMazel/maz-ui/commit/8a945abe271d13a929a0def2966f566f3be20b73))
* **lib:** MazLazyImg - lazy-img directive implementation ([ecbceb2](https://github.com/LouisMazel/maz-ui/commit/ecbceb28a956995bb00fc1a71c53b5002e02f234))


### Features

* **lib:** add helpers about user activity ([#238](https://github.com/LouisMazel/maz-ui/issues/238)) ([#240](https://github.com/LouisMazel/maz-ui/issues/240)) ([fcdbccb](https://github.com/LouisMazel/maz-ui/commit/fcdbccbed451aa38e771fb118c2834e55015d14b))
* **lib:** add maz-picker component ([#197](https://github.com/LouisMazel/maz-ui/issues/197)) ([877515e](https://github.com/LouisMazel/maz-ui/commit/877515e585d1aa9a3febd83e222c12346e7401b5))
* **lib:** add wait plugin to manage loading state ([#214](https://github.com/LouisMazel/maz-ui/issues/214)) ([a6a1931](https://github.com/LouisMazel/maz-ui/commit/a6a1931ba7000c5e545cfc4808fe7205809629c4))
* **lib:** export tailwind config ([#201](https://github.com/LouisMazel/maz-ui/issues/201)) ([94fddb9](https://github.com/LouisMazel/maz-ui/commit/94fddb9d35e91a6f649bcb18ae7105048d048584))
* **lib:** MazInput - adding style color for autofill ([#208](https://github.com/LouisMazel/maz-ui/issues/208)) ([b3ae969](https://github.com/LouisMazel/maz-ui/commit/b3ae969584bda0e690179c1b6c9defdc1bbf0425))
* **lib:** new component - maz-radio-buttons ([#232](https://github.com/LouisMazel/maz-ui/issues/232)) ([#233](https://github.com/LouisMazel/maz-ui/issues/233)) ([ece3d19](https://github.com/LouisMazel/maz-ui/commit/ece3d19bdf393cffc8e883c3b6362f21204bbfc8)), closes [#231](https://github.com/LouisMazel/maz-ui/issues/231)





# [3.0.0-next.23](https://github.com/LouisMazel/maz-ui/compare/v2.3.13...3.0.0-next.23) (2022-05-02)


Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "testing",
"version": "3.0.0-next.23",
"version": "3.0.0-next.24",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
28 changes: 1 addition & 27 deletions packages/testing/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,13 @@

<!-- Start Developing Area - Do not commit anything here -->

<p>
{{ dateValue }}
</p>


<MazPicker
v-model="rangeValues"
label="Select date"
format="YYYY-MM-DD"
:first-day-of-week="1"
locale="fr-FR"
color="secondary"
:min-date="minMaxDates.min"
:max-date="minMaxDates.max"
style="min-width: 400px;"
double
/>

<!-- End Developing Area -->
</main>
</template>

<script lang="ts" setup>
import { onMounted, ref } from 'vue'
import { MazBtn, MazIcon, MazPicker } from 'maz-ui/package/components'
import { MazBtn, MazIcon } from 'maz-ui/package/components'
import { aosInstance } from 'maz-ui/package/plugins'
import { useThemeHandler, ThemeHandlerOptions } from 'maz-ui/package/helpers'
Expand All @@ -53,14 +35,6 @@
autoSetTheme()
aosInstance.handleObserver()
})
const dateValue = ref('2022-01-03 10:10 am')
const rangeValues = ref({ start: "2022-05-02", end: "2022-06-28" })
const minMaxDates = ref({
min: '2022-05-05',
max: '2022-06-20',
})
</script>

<style lang="postcss">
Expand Down

0 comments on commit 3e2ae67

Please sign in to comment.