@hug/hospitality 0.0.4-alpha.15 → 0.0.4-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE +674 -0
- package/dist/README.md +85 -0
- package/dist/fesm2022/core.mjs +31 -0
- package/dist/fesm2022/core.mjs.map +1 -0
- package/dist/fesm2022/form-field.mjs +13 -0
- package/dist/fesm2022/form-field.mjs.map +1 -0
- package/dist/fesm2022/hug-hospitality.mjs +4 -0
- package/dist/fesm2022/hug-hospitality.mjs.map +1 -0
- package/dist/fesm2022/tokens.mjs +5053 -0
- package/dist/fesm2022/tokens.mjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/material/button/button.scss +237 -0
- package/dist/material/core/directives/components-styling.directive.d.ts +8 -0
- package/dist/material/core/index.d.ts +1 -0
- package/dist/material/dialog/dialog.scss +29 -0
- package/dist/material/form-field/form-field.provider.d.ts +2 -0
- package/dist/material/form-field/form-field.scss +97 -0
- package/dist/material/form-field/index.d.ts +1 -0
- package/dist/material/theme/theme.scss +69 -0
- package/dist/material/theme/utils.scss +10 -0
- package/dist/tokens/index.d.ts +30 -0
- package/dist/tokens/tokens.css +823 -0
- package/package.json +2 -2
package/dist/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
@hug/hospitality
|
|
3
|
+
</h1>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<br/>
|
|
7
|
+
<a href="https://www.hug.ch">
|
|
8
|
+
<img src="https://cdn.hug.ch/svgs/hug/hug-logo-horizontal.svg" alt="hug-logo" height="54px" />
|
|
9
|
+
</a>
|
|
10
|
+
<br/><br/>
|
|
11
|
+
<i>TODO: title</i>
|
|
12
|
+
<br/><br/>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@hug/hospitality">
|
|
17
|
+
<img src="https://img.shields.io/npm/v/@hug/hospitality.svg?color=blue&logo=npm" alt="npm version" /></a>
|
|
18
|
+
<a href="https://npmcharts.com/compare/@hug/hospitality?minimal=true">
|
|
19
|
+
<img src="https://img.shields.io/npm/dw/@hug/hospitality.svg?color=blue&logo=npm" alt="npm donwloads" /></a>
|
|
20
|
+
<a href="https://github.com/dsi-hug/hospitality/blob/main/LICENSE">
|
|
21
|
+
<img src="https://img.shields.io/badge/license-GPLv3-ff69b4.svg" alt="license GPLv3" /></a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<a href="https://github.com/dsi-hug/hospitality/blob/main/CONTRIBUTING.md#-submitting-a-pull-request-pr">
|
|
26
|
+
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome" /></a>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
<hr/>
|
|
30
|
+
|
|
31
|
+
## Getting started
|
|
32
|
+
|
|
33
|
+
TODO:
|
|
34
|
+
|
|
35
|
+
#### Installation
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
npm install @hug/hospitality --save-dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
yarn add @hug/hospitality --dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
TODO:
|
|
49
|
+
|
|
50
|
+
#### Examples
|
|
51
|
+
|
|
52
|
+
TODO:
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Development
|
|
56
|
+
|
|
57
|
+
See the [developer docs][developer].
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Contributing
|
|
61
|
+
|
|
62
|
+
#### > Want to Help?
|
|
63
|
+
|
|
64
|
+
Want to file a bug, contribute some code or improve documentation? Excellent!
|
|
65
|
+
|
|
66
|
+
But please read up first on the guidelines for [contributing][contributing], and learn about submission process, coding rules and more.
|
|
67
|
+
|
|
68
|
+
#### > Code of Conduct
|
|
69
|
+
|
|
70
|
+
Please read and follow the [Code of Conduct][codeofconduct], and help us keep this project open and inclusive.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## Credits
|
|
74
|
+
|
|
75
|
+
Copyright (C) 2025 [HUG - Hôpitaux Universitaires Genève][dsi-hug]
|
|
76
|
+
|
|
77
|
+
[][dsi-hug]
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
[developer]: https://github.com/dsi-hug/hospitality/blob/main/DEVELOPER.md
|
|
83
|
+
[contributing]: https://github.com/dsi-hug/hospitality/blob/main/CONTRIBUTING.md
|
|
84
|
+
[codeofconduct]: https://github.com/dsi-hug/hospitality/blob/main/CODE_OF_CONDUCT.md
|
|
85
|
+
[dsi-hug]: https://github.com/dsi-hug
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Directive } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
+
class ComponentsStylingDirective {
|
|
6
|
+
hySize = input(null, { alias: 'hy-size' });
|
|
7
|
+
hyAppearance = input(null, { alias: 'hy-appearance' });
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ComponentsStylingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: ComponentsStylingDirective, isStandalone: true, selector: "\n [hy-size],\n [hy-appearance]\n ", inputs: { hySize: { classPropertyName: "hySize", publicName: "hy-size", isSignal: true, isRequired: false, transformFunction: null }, hyAppearance: { classPropertyName: "hyAppearance", publicName: "hy-appearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hy-size": "hySize()", "attr.hy-appearance": "hyAppearance()" } }, ngImport: i0 });
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ComponentsStylingDirective, decorators: [{
|
|
12
|
+
type: Directive,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: `
|
|
15
|
+
[hy-size],
|
|
16
|
+
[hy-appearance]
|
|
17
|
+
`,
|
|
18
|
+
standalone: true,
|
|
19
|
+
host: {
|
|
20
|
+
'[attr.hy-size]': 'hySize()',
|
|
21
|
+
'[attr.hy-appearance]': 'hyAppearance()'
|
|
22
|
+
}
|
|
23
|
+
}]
|
|
24
|
+
}] });
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Generated bundle index. Do not edit.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
export { ComponentsStylingDirective };
|
|
31
|
+
//# sourceMappingURL=core.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.mjs","sources":["../../material/core/directives/components-styling.directive.ts","../../material/core/core.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HySizeType = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';\n\n@Directive({\n selector: `\n [hy-size],\n [hy-appearance]\n `,\n standalone: true,\n host: {\n '[attr.hy-size]': 'hySize()',\n '[attr.hy-appearance]': 'hyAppearance()'\n }\n})\nexport class ComponentsStylingDirective {\n public hySize = input<HySizeType | null>(null, { alias: 'hy-size' });\n public hyAppearance = input<string | null>(null, { alias: 'hy-appearance' });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;MAgBa,0BAA0B,CAAA;IAC5B,MAAM,GAAG,KAAK,CAAoB,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAC7D,YAAY,GAAG,KAAK,CAAgB,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;wGAFnE,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAXtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE;;;AAGT,IAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACF,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,sBAAsB,EAAE;AAC3B;AACJ,iBAAA;;;ACfD;;AAEG;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
2
|
+
|
|
3
|
+
const provideHyFormField = () => ({
|
|
4
|
+
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
5
|
+
useValue: { appearance: 'outline' }
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated bundle index. Do not edit.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export { provideHyFormField };
|
|
13
|
+
//# sourceMappingURL=form-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-field.mjs","sources":["../../material/form-field/form-field.provider.ts","../../material/form-field/form-field.ts"],"sourcesContent":["import type { Provider } from '@angular/core';\nimport { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';\n\nexport const provideHyFormField = (): Provider => ({\n provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,\n useValue: { appearance: 'outline' }\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGO,MAAM,kBAAkB,GAAG,OAAiB;AAC/C,IAAA,OAAO,EAAE,8BAA8B;AACvC,IAAA,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS;AACpC,CAAA;;ACND;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hug-hospitality.mjs","sources":["../../hug-hospitality.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|