@hug/hospitality 1.0.0-alpha.47 → 1.0.0-alpha.48
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/fesm2022/chips.mjs +49 -0
- package/fesm2022/chips.mjs.map +1 -0
- package/material/chips/chips.scss +13 -9
- package/package.json +4 -2
- package/types/chips.d.ts +18 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Directive } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
+
class HyChipColorDirective {
|
|
6
|
+
hyColor = input(null, ...(ngDevMode ? [{ debugName: "hyColor" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyChipColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyChipColorDirective, isStandalone: true, selector: "mat-chip[hyColor]", inputs: { hyColor: { classPropertyName: "hyColor", publicName: "hyColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hyColor": "hyColor()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyChipColorDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'mat-chip[hyColor]',
|
|
14
|
+
standalone: true,
|
|
15
|
+
host: {
|
|
16
|
+
'[attr.hyColor]': 'hyColor()'
|
|
17
|
+
}
|
|
18
|
+
}]
|
|
19
|
+
}], propDecorators: { hyColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyColor", required: false }] }] } });
|
|
20
|
+
|
|
21
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
22
|
+
class HyChipSizeDirective {
|
|
23
|
+
hySize = input(null, ...(ngDevMode ? [{ debugName: "hySize" }] : []));
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyChipSizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyChipSizeDirective, isStandalone: true, selector: "mat-chip[hySize]", inputs: { hySize: { classPropertyName: "hySize", publicName: "hySize", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hySize": "hySize()" } }, ngImport: i0 });
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyChipSizeDirective, decorators: [{
|
|
28
|
+
type: Directive,
|
|
29
|
+
args: [{
|
|
30
|
+
selector: 'mat-chip[hySize]',
|
|
31
|
+
standalone: true,
|
|
32
|
+
host: {
|
|
33
|
+
'[attr.hySize]': 'hySize()'
|
|
34
|
+
}
|
|
35
|
+
}]
|
|
36
|
+
}], propDecorators: { hySize: [{ type: i0.Input, args: [{ isSignal: true, alias: "hySize", required: false }] }] } });
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
39
|
+
const HyChipStylingDirectives = [
|
|
40
|
+
HyChipSizeDirective,
|
|
41
|
+
HyChipColorDirective
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Generated bundle index. Do not edit.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
export { HyChipColorDirective, HyChipSizeDirective, HyChipStylingDirectives };
|
|
49
|
+
//# sourceMappingURL=chips.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chips.mjs","sources":["../../material/chips/directives/chips-color.directive.ts","../../material/chips/directives/chips-size.directive.ts","../../material/chips/directives/chips-styling.directives.ts","../../material/chips/chips.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\n@Directive({\n selector: 'mat-chip[hyColor]',\n standalone: true,\n host: {\n '[attr.hyColor]': 'hyColor()'\n }\n})\nexport class HyChipColorDirective {\n public hyColor = input<boolean | null>(null);\n}\n","/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HySizeType = 'x-small' | 'medium';\n\n@Directive({\n selector: 'mat-chip[hySize]',\n standalone: true,\n host: {\n '[attr.hySize]': 'hySize()'\n }\n})\nexport class HyChipSizeDirective {\n public hySize = input<HySizeType | null>(null);\n}\n","import { HyChipColorDirective } from './chips-color.directive';\nimport { HyChipSizeDirective } from './chips-size.directive';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HyChipStylingDirectives = [\n HyChipSizeDirective,\n HyChipColorDirective\n] as const;\n\nexport {\n HyChipColorDirective, HyChipSizeDirective\n};\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;MAUa,oBAAoB,CAAA;AACtB,IAAA,OAAO,GAAG,KAAK,CAAiB,IAAI,mDAAC;uGADnC,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EA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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
elevated-container-color: var(
|
|
8
|
+
--hy-chips-color-background,
|
|
9
|
+
var(--hy-color-warning-container)
|
|
10
|
+
),
|
|
11
|
+
label-text-color: var(
|
|
12
|
+
--hy-chips-text-icon-color,
|
|
13
|
+
var(--hy-color-on-warning-container)
|
|
13
14
|
),
|
|
14
15
|
outline-color: transparent,
|
|
15
16
|
disabled-outline-color: transparent,
|
|
16
|
-
hover-state-layer-color: var(
|
|
17
|
+
hover-state-layer-color: var(
|
|
18
|
+
--hy-chips-text-icon-color,
|
|
19
|
+
var(--hy-color-on-warning-container)
|
|
20
|
+
),
|
|
17
21
|
)
|
|
18
22
|
);
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
&[
|
|
25
|
+
&[hySize="x-small"] {
|
|
22
26
|
@include mat.chips-overrides(
|
|
23
27
|
(
|
|
24
28
|
container-height: 20px,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hug/hospitality",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.48",
|
|
4
4
|
"description": "Hospitality Design System",
|
|
5
5
|
"homepage": "https://github.com/dsi-hug/hospitality",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"default": "./fesm2022/checkbox.mjs"
|
|
35
35
|
},
|
|
36
36
|
"./material/chips": {
|
|
37
|
-
"sass": "./material/chips/chips.scss"
|
|
37
|
+
"sass": "./material/chips/chips.scss",
|
|
38
|
+
"types": "./types/chips.d.ts",
|
|
39
|
+
"default": "./fesm2022/chips.mjs"
|
|
38
40
|
},
|
|
39
41
|
"./material/dialog": {
|
|
40
42
|
"sass": "./material/dialog/dialog.scss"
|
package/types/chips.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class HyChipColorDirective {
|
|
4
|
+
hyColor: i0.InputSignal<boolean | null>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HyChipColorDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HyChipColorDirective, "mat-chip[hyColor]", never, { "hyColor": { "alias": "hyColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type HySizeType = 'x-small' | 'medium';
|
|
10
|
+
declare class HyChipSizeDirective {
|
|
11
|
+
hySize: i0.InputSignal<HySizeType | null>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HyChipSizeDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HyChipSizeDirective, "mat-chip[hySize]", never, { "hySize": { "alias": "hySize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const HyChipStylingDirectives: readonly [typeof HyChipSizeDirective, typeof HyChipColorDirective];
|
|
17
|
+
|
|
18
|
+
export { HyChipColorDirective, HyChipSizeDirective, HyChipStylingDirectives };
|