Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/useProgram…
Browse files Browse the repository at this point in the history
…matically
  • Loading branch information
mlmoravek committed Jun 6, 2024
2 parents 37af850 + 66c09f4 commit 2e9c25e
Show file tree
Hide file tree
Showing 42 changed files with 673 additions and 418 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: '32 17 * * 2'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
6 changes: 3 additions & 3 deletions .scripts/gen-comp-types.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The file is not designed to run directly. `cwd` should be project root.
import fs from 'fs'
import path from 'path'
import process from 'process'
import fs from 'fs';
import path from 'path';
import process from 'process';

import { createChecker } from "vue-component-meta";

Expand Down
6 changes: 4 additions & 2 deletions .scripts/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@ export function exist (path) {
return fs.existsSync(path)
}

const filter = f => !f.includes("tests") && !f.includes("utils") && !f.includes(".ts") && !f.includes("examples")

export function getFolders(dir) {
const folders = fs.readdirSync(dir)
// remove test and util files
.filter(f => !f.includes("tests") && !f.includes("utils") && !f.includes(".ts"));
.filter(filter);
return folders;
}

export function getComponents(dir) {
const files = fs.readdirSync(dir, { recursive: true });
return files
// filter only vue files and remove test and util files
.filter(f => f.includes(".vue") && !f.includes("tests") && !f.includes("utils"))
.filter(filter)
// remove path
.map(f => path.basename(f))
// remove .vue suffix
Expand Down
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
## [0.8.11](https://github.com/oruga-ui/oruga/compare/v0.8.10...v0.8.11) (2024-06-05)


### Bug Fixes

* **datepicker:** always validate programmatic date updates ([#927](https://github.com/oruga-ui/oruga/issues/927)) ([20ceedd](https://github.com/oruga-ui/oruga/commit/20ceedda2566211b5c790a12a687a01ce26380b5))
* **datepicker:** update focused date on editing directly ([#941](https://github.com/oruga-ui/oruga/issues/941)) ([1af13cf](https://github.com/oruga-ui/oruga/commit/1af13cf1cc97703aa58820d99b403791b554f9ba))
* **taginput:** solve defineModel macro array constrains ([#942](https://github.com/oruga-ui/oruga/issues/942)) ([404c5f6](https://github.com/oruga-ui/oruga/commit/404c5f6d1aa61cbbbe7dfce089bf203ffde4259e))


### Features

* **inputs:** detect constraint validation attribute changes ([#930](https://github.com/oruga-ui/oruga/issues/930)) ([4de3bd7](https://github.com/oruga-ui/oruga/commit/4de3bd74f512a3a1b07363b0cb062d6f2b5cc95d))



## [0.8.10](https://github.com/oruga-ui/oruga/compare/v0.8.9...v0.8.10) (2024-06-03)


### Bug Fixes

* **datetimpicker:** fix inline value edit | make picker props reactive ([#932](https://github.com/oruga-ui/oruga/issues/932)) ([1e93773](https://github.com/oruga-ui/oruga/commit/1e93773fbbe38859ecac3deee8e651c340d01012))


### Features

* **modal:** set default `destroyOnHide` to `true` for programmatic usage ([#937](https://github.com/oruga-ui/oruga/issues/937)) ([0b0bdca](https://github.com/oruga-ui/oruga/commit/0b0bdca61e72bf471d2e8788d8737a47803f79b4))
* **steps:** add `destroyOnHide` prop ([#934](https://github.com/oruga-ui/oruga/issues/934)) ([d06ea1e](https://github.com/oruga-ui/oruga/commit/d06ea1ecf462b54c626a72286ba123d2a1489031))
* **tabs:** add `destroyOnHide` prop ([#926](https://github.com/oruga-ui/oruga/issues/926)) ([e87882b](https://github.com/oruga-ui/oruga/commit/e87882bcb633ba288228f77ddf885a3373bbd860))



## [0.8.9](https://github.com/oruga-ui/oruga/compare/v0.8.8...v0.8.9) (2024-05-01)


### Bug Fixes

* **field:** fix bug when prop `horizontal` is set ([#915](https://github.com/oruga-ui/oruga/issues/915)) ([962bfea](https://github.com/oruga-ui/oruga/commit/962bfea1d447aac2b6a2c3174e2becf49ebac926))
* **table:** fix filtering when table is not sorted ([#911](https://github.com/oruga-ui/oruga/issues/911)) ([10ee451](https://github.com/oruga-ui/oruga/commit/10ee45119d107ae35c9c25fc17f9dfe8d12116c3))
* **Table:** fix table async example backend sort function ([#910](https://github.com/oruga-ui/oruga/issues/910)) ([18f3c00](https://github.com/oruga-ui/oruga/commit/18f3c002bc295601948d111b005bc3f1e221cba5))
* **taginput:** fix infinite recursive update when updating modeValue ([#917](https://github.com/oruga-ui/oruga/issues/917)) ([e2e3c4a](https://github.com/oruga-ui/oruga/commit/e2e3c4a2d9347a3e01709379a4c6ee7bb98eba5f))


### Features

* **table:** make debounceSearch a global option ([#912](https://github.com/oruga-ui/oruga/issues/912)) ([517598f](https://github.com/oruga-ui/oruga/commit/517598f5220db093c282a108a427a36f97502e7d))



## [0.8.8](https://github.com/oruga-ui/oruga/compare/v0.8.7...v0.8.8) (2024-04-23)


Expand Down
38 changes: 19 additions & 19 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "0.8.8",
"version": "0.8.11",
"homepage": "https://oruga-ui.com",
"description": "UI components for Vue.js and CSS framework agnostic",
"author": "Walter Tommasi <[email protected]>",
Expand Down
3 changes: 3 additions & 0 deletions packages/docs/.vitepress/theme/components/ExampleViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,7 @@ function copy(val: string) {
}
}
}
.vp-doc .vp-code-group .blocks .lang {
color: var(--vp-code-copy-code-hover-border-color);
}
</style>
2 changes: 1 addition & 1 deletion packages/docs/components/Datepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ title: Datepicker
| closeOnClick | Close dropdown on click | boolean | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>datepicker: {<br>&nbsp;&nbsp;closeOnClick: true<br>}</code> |
| dateCreator | Date creator function, default is `new Date()` | () =&gt; Date | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>datepicker: {<br>&nbsp;&nbsp;dateCreator: () => new Date()<br>}</code> |
| dateFormatter | Custom function to format a date into a string | (date: Date \| Date[]) =&gt; string | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>datepicker: {<br>&nbsp;&nbsp;dateFormatter: defaultFunction<br>}</code> |
| dateParser | Custom function to parse a string into a date | (date: string) =&gt; Date | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>datepicker: {<br>&nbsp;&nbsp;dateParser: defaultFunction<br>}</code> |
| dateParser | Custom function to parse a string into a date | (date: string) =&gt; Date \| Date[] | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>datepicker: {<br>&nbsp;&nbsp;dateParser: defaultFunction<br>}</code> |
| dayNames | Set custom day names, else use names based on locale | string[] | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>datepicker: {<br>&nbsp;&nbsp;dayNames: undefined<br>}</code> |
| disabled | Same as native disabled | boolean | - | <code style='white-space: nowrap; padding: 0;'>false</code> |
| events | Events to display on picker | DatepickerEvent[] | - | |
Expand Down
Loading

0 comments on commit 2e9c25e

Please sign in to comment.