Skip to content

Commit

Permalink
feat(search-container): first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Badisi committed Jun 26, 2024
1 parent 496f605 commit f140942
Show file tree
Hide file tree
Showing 23 changed files with 629 additions and 79 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- message-box
- numeric-stepper
- overlay
- search-container
- sidenav
- snackbar
- splitter
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_test_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
needs: ci_test_core
uses: ./.github/workflows/ci_test_overlay.yml

ci_test_search-container:
needs: ci_test_core
uses: ./.github/workflows/ci_test_search-container.yml

ci_test_sidenav:
needs: ci_test_core
uses: ./.github/workflows/ci_test_sidenav.yml
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/ci_test_search-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test search-container

on:
workflow_dispatch:
workflow_call:
push:
branches:
- '**'
tags-ignore:
- '**'
paths:
- '.github/workflows/ci_test_search-container.yml'
- 'projects/search-container/**'

concurrency:
group: ci-test-search-container-group-${{ github.ref }}
cancel-in-progress: true

jobs:
ci_test_search-container:
if: "${{ !contains(github.event.head_commit.message, 'chore(release): publish') }}"
uses: dsi-hug/action/.github/workflows/action.yml@v1
with:
working-directory: projects/search-container
runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
node-versions: '[18, 20]'
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Package | Version | Downloads | Tests
[@hug/ngx-message-box](/projects/message-box) | [![npm version][npm-logo-message-box]][npm-message-box] | [![npm downloads][npm-dl-logo-message-box]][npm-dl-message-box] | [![build status][tests-logo-message-box]][tests-message-box]
[@hug/ngx-numeric-stepper](/projects/numeric-stepper) | [![npm version][npm-logo-numeric-stepper]][npm-numeric-stepper] | [![npm downloads][npm-dl-logo-numeric-stepper]][npm-dl-numeric-stepper] | [![build status][tests-logo-numeric-stepper]][tests-numeric-stepper]
[@hug/ngx-overlay](/projects/overlay) | [![npm version][npm-logo-overlay]][npm-overlay] | [![npm downloads][npm-dl-logo-overlay]][npm-dl-overlay] | [![build status][tests-logo-overlay]][tests-overlay]
[@hug/ngx-search-container](/projects/search-container) | [![npm version][npm-logo-search-container]][npm-search-container] | [![npm downloads][npm-dl-logo-search-container]][npm-dl-search-container] | [![build status][tests-logo-search-container]][tests-search-container]
[@hug/ngx-sidenav](/projects/sidenav) | [![npm version][npm-logo-sidenav]][npm-sidenav] | [![npm downloads][npm-dl-logo-sidenav]][npm-dl-sidenav] | [![build status][tests-logo-sidenav]][tests-sidenav]
[@hug/ngx-snackbar](/projects/snackbar) | [![npm version][npm-logo-snackbar]][npm-snackbar] | [![npm downloads][npm-dl-logo-snackbar]][npm-dl-snackbar] | [![build status][tests-logo-snackbar]][tests-snackbar]
[@hug/ngx-splitter](/projects/splitter) | [![npm version][npm-logo-splitter]][npm-splitter] | [![npm downloads][npm-dl-logo-splitter]][npm-dl-splitter] | [![build status][tests-logo-splitter]][tests-splitter]
Expand Down Expand Up @@ -120,6 +121,13 @@ Copyright (C) 2024 [HUG - Hôpitaux Universitaires Genève][dsi-hug]
[tests-overlay]: https://github.com/dsi-hug/ngx-components/actions/workflows/ci_test_overlay.yml
[tests-logo-overlay]: https://github.com/dsi-hug/ngx-components/actions/workflows/ci_test_overlay.yml/badge.svg

[npm-search-container]: https://www.npmjs.com/package/@hug/ngx-search-container
[npm-logo-search-container]: https://img.shields.io/npm/v/@hug/ngx-search-container.svg?color=blue&logo=npm
[npm-dl-search-container]: https://npmcharts.com/compare/@hug/ngx-search-container?minimal=true
[npm-dl-logo-search-container]: https://img.shields.io/npm/dw/@hug/ngx-search-container.svg?color=7986CB&logo=npm&label=npm
[tests-search-container]: https://github.com/dsi-hug/ngx-components/actions/workflows/ci_test_search-container.yml
[tests-logo-search-container]: https://github.com/dsi-hug/ngx-components/actions/workflows/ci_test_search-container.yml/badge.svg

[npm-sidenav]: https://www.npmjs.com/package/@hug/ngx-sidenav
[npm-logo-sidenav]: https://img.shields.io/npm/v/@hug/ngx-sidenav.svg?color=blue&logo=npm
[npm-dl-sidenav]: https://npmcharts.com/compare/@hug/ngx-sidenav?minimal=true
Expand Down
187 changes: 109 additions & 78 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,97 +447,128 @@
}
},
"layout": {
"projectType": "library",
"root": "projects/layout",
"sourceRoot": "projects/layout/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/layout/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/layout/tsconfig.lib.prod.json"
"projectType": "library",
"root": "projects/layout",
"sourceRoot": "projects/layout/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/layout/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/layout/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/layout/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"development": {
"tsConfig": "projects/layout/tsconfig.lib.json"
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/layout/src/test.ts",
"tsConfig": "projects/layout/tsconfig.spec.json",
"karmaConfig": "projects/layout/karma.conf.js"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/layout/src/test.ts",
"tsConfig": "projects/layout/tsconfig.spec.json",
"karmaConfig": "projects/layout/karma.conf.js"
}
}
}
},
"user-card": {
"projectType": "library",
"root": "projects/user-card",
"sourceRoot": "projects/user-card/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/user-card/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/user-card/tsconfig.lib.prod.json"
"projectType": "library",
"root": "projects/user-card",
"sourceRoot": "projects/user-card/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/user-card/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/user-card/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/user-card/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"development": {
"tsConfig": "projects/user-card/tsconfig.lib.json"
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/user-card/src/test.ts",
"tsConfig": "projects/user-card/tsconfig.spec.json",
"karmaConfig": "projects/user-card/karma.conf.js"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/user-card/src/test.ts",
"tsConfig": "projects/user-card/tsconfig.spec.json",
"karmaConfig": "projects/user-card/karma.conf.js"
}
}
}
},
"user-tooltip": {
"projectType": "library",
"root": "projects/user-tooltip",
"sourceRoot": "projects/user-tooltip/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/user-tooltip/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/user-tooltip/tsconfig.lib.prod.json"
"projectType": "library",
"root": "projects/user-tooltip",
"sourceRoot": "projects/user-tooltip/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/user-tooltip/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/user-tooltip/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/user-tooltip/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"development": {
"tsConfig": "projects/user-tooltip/tsconfig.lib.json"
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/user-tooltip/src/test.ts",
"tsConfig": "projects/user-tooltip/tsconfig.spec.json",
"karmaConfig": "projects/user-tooltip/karma.conf.js"
}
}
}
},
"search-container": {
"projectType": "library",
"root": "projects/search-container",
"sourceRoot": "projects/search-container/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/search-container/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/search-container/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/search-container/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/search-container/src/test.ts",
"tsConfig": "projects/search-container/tsconfig.spec.json",
"karmaConfig": "projects/search-container/karma.conf.js"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/user-tooltip/src/test.ts",
"tsConfig": "projects/user-tooltip/tsconfig.spec.json",
"karmaConfig": "projects/user-tooltip/karma.conf.js"
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"projects/message-box",
"projects/numeric-stepper",
"projects/overlay",
"projects/search-container",
"projects/sidenav",
"projects/snackbar",
"projects/splitter",
Expand Down
6 changes: 6 additions & 0 deletions projects/search-container/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@hug/search-container
=======

The sources for this package are in the main [DSI-HUG/ngx-components](https://github.com/dsi-hug/ngx-components) repo. Please file issues and pull requests against that repo.

License: GPL-3.0-only
45 changes: 45 additions & 0 deletions projects/search-container/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = config => {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, '../../coverage/search-container'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
failOnEmptyTestSuite: false,
restartOnFileChange: true
});
};
15 changes: 15 additions & 0 deletions projects/search-container/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/search-container",
"assets": [
"CHANGELOG.md",
{
"input": "src/",
"glob": "_search-container-theme.scss",
"output": "."
}
],
"lib": {
"entryFile": "src/index.ts"
}
}
Loading

0 comments on commit f140942

Please sign in to comment.