@lucca/prisme 21.1.0-rc.2 → 21.1.0-rc.3
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/lucca-prisme-button.mjs +21 -0
- package/fesm2022/lucca-prisme-button.mjs.map +1 -1
- package/fesm2022/lucca-prisme-icon.mjs +19 -4
- package/fesm2022/lucca-prisme-icon.mjs.map +1 -1
- package/package.json +3 -3
- package/types/lucca-prisme-button.d.ts +21 -0
- package/types/lucca-prisme-icon.d.ts +16 -5
|
@@ -25,12 +25,33 @@ class ButtonComponent {
|
|
|
25
25
|
this.#prClass = inject(PrClass);
|
|
26
26
|
this.#elementRef = inject(ElementRef);
|
|
27
27
|
this.notifyError = signal(false, ...(ngDevMode ? [{ debugName: "notifyError" }] : []));
|
|
28
|
+
/**
|
|
29
|
+
* Change the size of the Button
|
|
30
|
+
*/
|
|
28
31
|
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
32
|
+
/**
|
|
33
|
+
* Apply block display
|
|
34
|
+
*/
|
|
29
35
|
this.block = input(false, { ...(ngDevMode ? { debugName: "block" } : {}), transform: booleanAttribute });
|
|
36
|
+
/**
|
|
37
|
+
* Indicates an action with significant or irreversible consequences on hover and focus. Only compatible with outlined and ghost
|
|
38
|
+
*/
|
|
30
39
|
this.critical = input(false, { ...(ngDevMode ? { debugName: "critical" } : {}), transform: booleanAttribute });
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated use `critical` input instead
|
|
42
|
+
*/
|
|
31
43
|
this.delete = input(false, { ...(ngDevMode ? { debugName: "delete" } : {}), transform: booleanAttribute });
|
|
44
|
+
/**
|
|
45
|
+
* Indicates the presence of a menu
|
|
46
|
+
*/
|
|
32
47
|
this.disclosure = input(false, { ...(ngDevMode ? { debugName: "disclosure" } : {}), transform: booleanAttribute });
|
|
48
|
+
/**
|
|
49
|
+
* Applies a color palette to the Button
|
|
50
|
+
*/
|
|
33
51
|
this.palette = input('none', ...(ngDevMode ? [{ debugName: "palette" }] : []));
|
|
52
|
+
/**
|
|
53
|
+
* Modifies the state of the Button
|
|
54
|
+
*/
|
|
34
55
|
this.state = input('default', ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
35
56
|
this.luButton = input('', ...(ngDevMode ? [{ debugName: "luButton" }] : []));
|
|
36
57
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-prisme-button.mjs","sources":["../../../packages/prisme/button/button.component.ts","../../../packages/prisme/button/lucca-prisme-button.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChild, ElementRef, inject, input, signal, ViewEncapsulation } from '@angular/core';\nimport { Palette, PrClass, ɵeffectWithDeps } from '@lucca/prisme/core';\nimport { IconComponent } from '@lucca/prisme/icon';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'button[prButton],a[prButton],button[luButton],a[luButton]',\n\tproviders: [PrClass],\n\ttemplate: '<ng-content />',\n\tstyleUrl: './button.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'button',\n\t\t'[class.is-error]': 'notifyError()',\n\t\t'(click)': 'triggerErrorIfNeeded()',\n\t\t'(animationend)': 'notifyError.set(false)',\n\t},\n})\nexport class ButtonComponent {\n\t#prClass = inject(PrClass);\n\t#elementRef = inject<ElementRef<HTMLButtonElement>>(ElementRef);\n\n\treadonly notifyError = signal(false);\n\n\treadonly size = input<'M' | 'S' | 'XS'>();\n\n\treadonly block = input(false, { transform: booleanAttribute });\n\n\treadonly critical = input(false, { transform: booleanAttribute });\n\n\treadonly delete = input(false, { transform: booleanAttribute });\n\n\treadonly disclosure = input(false, { transform: booleanAttribute });\n\n\treadonly palette = input<Palette>('none');\n\n\treadonly state = input<'default' | 'loading' | 'error' | 'success'>('default');\n\n\treadonly luButton = input<'' | 'outlined' | 'AI' | 'AI-invert' | 'ghost' | 'ghost-invert' | 'text' | 'text-invert'>('');\n\n\t/**\n\t * '' is the default value when you just set the `prButton` directive without a value attached to it.\n\t * We just make this explicit here.\n\t */\n\treadonly prButton = input<'' | 'outlined' | 'AI' | 'ghost' | 'ghost-invert' | 'text' | 'text-invert'>('');\n\n\treadonly buttonType = computed(() => this.luButton() || this.prButton());\n\n\treadonly iconComponentRef = contentChild<IconComponent, ElementRef<HTMLElement>>(IconComponent, { read: ElementRef });\n\n\treadonly classesConfig = computed(() => {\n\t\tconst config = {\n\t\t\t[`mod-${this.size()}`]: !!this.size(),\n\t\t\t[`mod-block`]: this.block(),\n\t\t\t[`palette-${this.palette()}`]: !!this.palette(),\n\t\t\t[`is-${this.state()}`]: !!this.state() && this.state() !== 'error',\n\t\t\t['mod-onlyIcon']: this.iconOnly,\n\t\t\t['mod-iconOnLeft']: this.iconOnLeft,\n\t\t\t['mod-iconOnRight']: this.iconOnRight,\n\t\t\t['mod-withIcon']: this.iconComponentRef() !== undefined && !this.disclosure() && !this.iconOnly,\n\t\t\t['mod-critical']: this.critical() || this.delete(),\n\t\t\t['mod-disclosure']: this.disclosure(),\n\t\t};\n\n\t\tif (this.buttonType() !== '') {\n\t\t\tif (this.buttonType() === 'ghost-invert') {\n\t\t\t\tconfig['mod-ghost'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else if (this.luButton() === 'AI-invert') {\n\t\t\t\tconfig['mod-AI'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else {\n\t\t\t\tconfig[`mod-${this.buttonType()}`] = true;\n\t\t\t}\n\t\t}\n\t\treturn config;\n\t});\n\n\tprivate get iconOnly(): boolean {\n\t\tconst childNodes = Array.from(this.#elementRef?.nativeElement?.childNodes || []);\n\t\tconst noText = childNodes.every(({ nodeName }) => nodeName !== '#text');\n\t\t// ignore icon and comment\n\t\tconst noSpan =\n\t\t\tchildNodes.filter((node: HTMLElement) => {\n\t\t\t\treturn node.nodeName !== '#comment' && node.nodeName.toLowerCase() !== 'lu-icon' && !node?.className?.includes('mask');\n\t\t\t}).length == 0;\n\t\treturn !!this.iconComponentRef() && noSpan && noText;\n\t}\n\n\tprivate get iconOnLeft(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.firstChild;\n\t}\n\n\tprivate get iconOnRight(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.lastChild;\n\t}\n\n\tconstructor() {\n\t\tɵeffectWithDeps([this.state], (state) => {\n\t\t\tif (state) {\n\t\t\t\tthis.triggerErrorIfNeeded();\n\t\t\t}\n\t\t});\n\n\t\tɵeffectWithDeps([this.classesConfig], (config) => {\n\t\t\tif (config) {\n\t\t\t\tthis.#prClass.setState(config);\n\t\t\t}\n\t\t});\n\t}\n\n\ttriggerErrorIfNeeded(): void {\n\t\tif (this.state() === 'error') {\n\t\t\tthis.notifyError.set(true);\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵeffectWithDeps"],"mappings":";;;;;MAmBa,eAAe,CAAA;AAC3B,IAAA,QAAQ;AACR,IAAA,WAAW;AA0DX,IAAA,IAAY,QAAQ,GAAA;AACnB,QAAA,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,IAAI,EAAE,CAAC;AAChF,QAAA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,QAAQ,KAAK,OAAO,CAAC;;QAEvE,MAAM,MAAM,GACX,UAAU,CAAC,MAAM,CAAC,CAAC,IAAiB,KAAI;YACvC,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,SAAS,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC;AACvH,QAAA,CA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EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,aAAa,CAAA,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACjDrH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-prisme-button.mjs","sources":["../../../packages/prisme/button/button.component.ts","../../../packages/prisme/button/lucca-prisme-button.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChild, ElementRef, inject, input, signal, ViewEncapsulation } from '@angular/core';\nimport { Palette, PrClass, ɵeffectWithDeps } from '@lucca/prisme/core';\nimport { IconComponent } from '@lucca/prisme/icon';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'button[prButton],a[prButton],button[luButton],a[luButton]',\n\tproviders: [PrClass],\n\ttemplate: '<ng-content />',\n\tstyleUrl: './button.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'button',\n\t\t'[class.is-error]': 'notifyError()',\n\t\t'(click)': 'triggerErrorIfNeeded()',\n\t\t'(animationend)': 'notifyError.set(false)',\n\t},\n})\nexport class ButtonComponent {\n\t#prClass = inject(PrClass);\n\t#elementRef = inject<ElementRef<HTMLButtonElement>>(ElementRef);\n\n\treadonly notifyError = signal(false);\n\n\t/**\n\t * Change the size of the Button\n\t */\n\treadonly size = input<'M' | 'S' | 'XS'>();\n\n\t/**\n\t * Apply block display\n\t */\n\treadonly block = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates an action with significant or irreversible consequences on hover and focus. Only compatible with outlined and ghost\n\t */\n\treadonly critical = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * @deprecated use `critical` input instead\n\t */\n\treadonly delete = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates the presence of a menu\n\t */\n\treadonly disclosure = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Applies a color palette to the Button\n\t */\n\treadonly palette = input<Palette>('none');\n\n\t/**\n\t * Modifies the state of the Button\n\t */\n\treadonly state = input<'default' | 'loading' | 'error' | 'success'>('default');\n\n\treadonly luButton = input<'' | 'outlined' | 'AI' | 'AI-invert' | 'ghost' | 'ghost-invert' | 'text' | 'text-invert'>('');\n\n\t/**\n\t * '' is the default value when you just set the `prButton` directive without a value attached to it.\n\t * We just make this explicit here.\n\t */\n\treadonly prButton = input<'' | 'outlined' | 'AI' | 'ghost' | 'ghost-invert' | 'text' | 'text-invert'>('');\n\n\treadonly buttonType = computed(() => this.luButton() || this.prButton());\n\n\treadonly iconComponentRef = contentChild<IconComponent, ElementRef<HTMLElement>>(IconComponent, { read: ElementRef });\n\n\treadonly classesConfig = computed(() => {\n\t\tconst config = {\n\t\t\t[`mod-${this.size()}`]: !!this.size(),\n\t\t\t[`mod-block`]: this.block(),\n\t\t\t[`palette-${this.palette()}`]: !!this.palette(),\n\t\t\t[`is-${this.state()}`]: !!this.state() && this.state() !== 'error',\n\t\t\t['mod-onlyIcon']: this.iconOnly,\n\t\t\t['mod-iconOnLeft']: this.iconOnLeft,\n\t\t\t['mod-iconOnRight']: this.iconOnRight,\n\t\t\t['mod-withIcon']: this.iconComponentRef() !== undefined && !this.disclosure() && !this.iconOnly,\n\t\t\t['mod-critical']: this.critical() || this.delete(),\n\t\t\t['mod-disclosure']: this.disclosure(),\n\t\t};\n\n\t\tif (this.buttonType() !== '') {\n\t\t\tif (this.buttonType() === 'ghost-invert') {\n\t\t\t\tconfig['mod-ghost'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else if (this.luButton() === 'AI-invert') {\n\t\t\t\tconfig['mod-AI'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else {\n\t\t\t\tconfig[`mod-${this.buttonType()}`] = true;\n\t\t\t}\n\t\t}\n\t\treturn config;\n\t});\n\n\tprivate get iconOnly(): boolean {\n\t\tconst childNodes = Array.from(this.#elementRef?.nativeElement?.childNodes || []);\n\t\tconst noText = childNodes.every(({ nodeName }) => nodeName !== '#text');\n\t\t// ignore icon and comment\n\t\tconst noSpan =\n\t\t\tchildNodes.filter((node: HTMLElement) => {\n\t\t\t\treturn node.nodeName !== '#comment' && node.nodeName.toLowerCase() !== 'lu-icon' && !node?.className?.includes('mask');\n\t\t\t}).length == 0;\n\t\treturn !!this.iconComponentRef() && noSpan && noText;\n\t}\n\n\tprivate get iconOnLeft(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.firstChild;\n\t}\n\n\tprivate get iconOnRight(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.lastChild;\n\t}\n\n\tconstructor() {\n\t\tɵeffectWithDeps([this.state], (state) => {\n\t\t\tif (state) {\n\t\t\t\tthis.triggerErrorIfNeeded();\n\t\t\t}\n\t\t});\n\n\t\tɵeffectWithDeps([this.classesConfig], (config) => {\n\t\t\tif (config) {\n\t\t\t\tthis.#prClass.setState(config);\n\t\t\t}\n\t\t});\n\t}\n\n\ttriggerErrorIfNeeded(): void {\n\t\tif (this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IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,aAAa,CAAA,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACtErH;;AAEG;;;;"}
|
|
@@ -4,10 +4,25 @@ import { input, booleanAttribute, computed, ViewEncapsulation, ChangeDetectionSt
|
|
|
4
4
|
|
|
5
5
|
class IconComponent {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Defines icon to display
|
|
9
|
+
*/
|
|
7
10
|
this.icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
11
|
+
/**
|
|
12
|
+
* Information conveyed by the screen reader
|
|
13
|
+
*/
|
|
8
14
|
this.alt = input(...(ngDevMode ? [undefined, { debugName: "alt" }] : []));
|
|
15
|
+
/**
|
|
16
|
+
* Which size should the icon be? XXS to XXL
|
|
17
|
+
*/
|
|
9
18
|
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
19
|
+
/**
|
|
20
|
+
* Changes the color of the icon (inherit by default)
|
|
21
|
+
*/
|
|
10
22
|
this.color = input('inherit', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
23
|
+
/**
|
|
24
|
+
* Display icon in AI mode
|
|
25
|
+
*/
|
|
11
26
|
this.AI = input(false, { ...(ngDevMode ? { debugName: "AI" } : {}), transform: booleanAttribute });
|
|
12
27
|
this.iconClasses = computed(() => {
|
|
13
28
|
const size = this.size();
|
|
@@ -24,10 +39,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
24
39
|
args: [{ selector: 'pr-icon,lu-icon', imports: [NgClass], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<span\n\taria-hidden=\"true\"\n\t[class.mod-AI]=\"AI()\"\n\tclass=\"lucca-icon icon-{{ icon() }} icon-color-{{ color() }}\"\n\t[ngClass]=\"iconClasses()\"\n></span>\n@if (alt()) {\n\t<span class=\"pr-u-mask\">{{ alt() }}</span>\n}\n", styles: ["@layer base{lu-icon{display:inline-flex}}@layer mods{.icon-color-primary,.icon-color-secondary,.icon-color-product{color:var(--palettes-product-700)}.icon-color-error{color:var(--palettes-error-700)}.icon-color-warning{color:var(--palettes-warning-700)}.icon-color-success{color:var(--palettes-success-700)}.icon-color-light{color:var(--palettes-neutral-600)}.icon-color-placeholder{color:var(--palettes-neutral-400)}}\n"] }]
|
|
25
40
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], AI: [{ type: i0.Input, args: [{ isSignal: true, alias: "AI", required: false }] }] } });
|
|
26
41
|
|
|
27
|
-
|
|
28
|
-
***
|
|
29
|
-
***
|
|
30
|
-
|
|
42
|
+
// *******************************************
|
|
43
|
+
// *** THIS FILE IS GENERATED, DO NOT EDIT ***
|
|
44
|
+
// *** The generator is update-icons.js ***
|
|
45
|
+
// *******************************************
|
|
31
46
|
|
|
32
47
|
/**
|
|
33
48
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-prisme-icon.mjs","sources":["../../../packages/prisme/icon/icon.component.ts","../../../packages/prisme/icon/icon.component.html","../../../packages/prisme/icon/icons.ts","../../../packages/prisme/icon/lucca-prisme-icon.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport type { LuccaIcon } from './icons';\n\n@Component({\n\tselector: 'pr-icon,lu-icon',\n\timports: [NgClass],\n\ttemplateUrl: './icon.component.html',\n\tstyleUrl: './icon.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class IconComponent {\n\treadonly icon = input.required<LuccaIcon>();\n\n\treadonly alt = input<string>();\n\n\treadonly size = input<'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'>();\n\n\treadonly color = input<'primary' | 'secondary' | 'product' | 'error' | 'warning' | 'success' | 'light' | 'placeholder' | 'inherit'>('inherit');\n\n\treadonly AI = input(false, { transform: booleanAttribute });\n\n\treadonly iconClasses = computed(() => {\n\t\tconst size = this.size();\n\t\treturn {\n\t\t\t[`mod-${size}`]: !!size,\n\t\t};\n\t});\n}\n","<span\n\taria-hidden=\"true\"\n\t[class.mod-AI]=\"AI()\"\n\tclass=\"lucca-icon icon-{{ icon() }} icon-color-{{ color() }}\"\n\t[ngClass]=\"iconClasses()\"\n></span>\n@if (alt()) {\n\t<span class=\"pr-u-mask\">{{ alt() }}</span>\n}\n","/***********************************************\n ***\t\tTHIS FILE IS GENERATED, DO NOT EDIT\t\t***\n ***\t\tThe generator is update-icons.js\t\t\t***\n ***********************************************/\n\nexport type LuccaIcon =\n\t| 'app'\n\t| 'apps'\n\t| 'nineTiles'\n\t| 'mosaic'\n\t| 'tiles'\n\t| 'arrowBackward'\n\t| 'backward'\n\t| 'arrowBottom'\n\t| 'arrowFullSouth'\n\t| 'arrowBottomLeft'\n\t| 'arrowBottomRight'\n\t| 'arrowCenterReduce'\n\t| 'arrowChevronBottom'\n\t| 'arrowSouth'\n\t| 'southArrow'\n\t| 'southThinArrow'\n\t| 'chevronSouth'\n\t| 'chevronBottom'\n\t| 'arrowChevronLeft'\n\t| 'arrowWest'\n\t| 'westArrow'\n\t| 'westThinArrow'\n\t| 'chevronWest'\n\t| 'chevronLeft'\n\t| 'arrowChevronRight'\n\t| 'arrowEast'\n\t| 'eastArrow'\n\t| 'eastThinArrow'\n\t| 'chevronEast'\n\t| 'chevronRight'\n\t| 'arrowChevronTop'\n\t| 'arrowNorth'\n\t| 'northArrow'\n\t| 'northThinArrow'\n\t| 'chevronNorth'\n\t| 'chevronTop'\n\t| 'arrowCorner'\n\t| 'distribute'\n\t| 'arrowCornerExpand'\n\t| 'arrowCurvedDownRight'\n\t| 'arrowDownload'\n\t| 'download'\n\t| 'arrowExternal'\n\t| 'outside'\n\t| 'arrowForward'\n\t| 'arrowDouble'\n\t| 'forward'\n\t| 'arrowLeft'\n\t| 'arrowFullWest'\n\t| 'arrowLineBottom'\n\t| 'arrowLineTop'\n\t| 'arrowLogin'\n\t| 'login'\n\t| 'arrowLogout'\n\t| 'logout'\n\t| 'arrowOppositeHorizontal'\n\t| 'swap'\n\t| 'arrowOppositeVertical'\n\t| 'creditDebit'\n\t| 'arrowReply'\n\t| 'reply'\n\t| 'arrowReset'\n\t| 'refresh'\n\t| 'update'\n\t| 'arrowRight'\n\t| 'arrowFullEast'\n\t| 'arrowSync'\n\t| 'sync'\n\t| 'arrowSyncStrikethrough'\n\t| 'syncDisabled'\n\t| 'arrowTop'\n\t| 'arrowFullNorth'\n\t| 'arrowTopLeft'\n\t| 'arrowTopRight'\n\t| 'arrowUnfoldLess'\n\t| 'collapse'\n\t| 'arrowUnfoldMore'\n\t| 'expand'\n\t| 'arrowUpload'\n\t| 'upload'\n\t| 'cloudUpload'\n\t| 'bell'\n\t| 'notification'\n\t| 'bellStrikethrough'\n\t| 'book'\n\t| 'bookmark'\n\t| 'bookmarkFilled'\n\t| 'boxArchive'\n\t| 'archive'\n\t| 'boxUnarchive'\n\t| 'unarchive'\n\t| 'branch'\n\t| 'bubbleAnswer'\n\t| 'answer'\n\t| 'bubbleConversation'\n\t| 'messenger'\n\t| 'bubbleSpeech'\n\t| 'chat'\n\t| 'talk'\n\t| 'dialog'\n\t| 'buildingCompany'\n\t| 'building'\n\t| 'establishment'\n\t| 'buildingHouse'\n\t| 'house'\n\t| 'home'\n\t| 'buildingHouseFilled'\n\t| 'houseFilled'\n\t| 'homeFill'\n\t| 'buildingHouseStarred'\n\t| 'houseStarred'\n\t| 'homeStarred'\n\t| 'buildingStore'\n\t| 'store'\n\t| 'bulb'\n\t| 'lightBulb'\n\t| 'calendarChecked'\n\t| 'calendarDate'\n\t| 'calendar'\n\t| 'planning'\n\t| 'calendarEdit'\n\t| 'planningEdit'\n\t| 'calendarPlanning'\n\t| 'payPeriod'\n\t| 'calendarSettings'\n\t| 'planningManage'\n\t| 'calendarStrikethrough'\n\t| 'calendarOff'\n\t| 'capCrown'\n\t| 'crown'\n\t| 'capGraduate'\n\t| 'graduate'\n\t| 'school'\n\t| 'certificationFailed'\n\t| 'certifKo'\n\t| 'certificationSuccess'\n\t| 'certifOk'\n\t| 'certificationWaiting'\n\t| 'certifWaiting'\n\t| 'chartDonut'\n\t| 'donut'\n\t| 'donutChart'\n\t| 'chartFlow'\n\t| 'familyTree'\n\t| 'orgTree'\n\t| 'chartHorizontalBar'\n\t| 'horizontalBarChart'\n\t| 'chartLevels'\n\t| 'level'\n\t| 'chartPie'\n\t| 'dashboard'\n\t| 'chartSpider'\n\t| 'chartVerticalBar'\n\t| 'analytics'\n\t| 'charts'\n\t| 'clipboard'\n\t| 'paste'\n\t| 'completion'\n\t| 'cornersFullscreenExit'\n\t| 'fullscreenExit'\n\t| 'cornersFullscreenOpen'\n\t| 'fullscreen'\n\t| 'dataTable'\n\t| 'table'\n\t| 'database'\n\t| 'databaseArrow'\n\t| 'apiSync'\n\t| 'deviceCamera'\n\t| 'camera'\n\t| 'deviceComputer'\n\t| 'computer'\n\t| 'deviceLaptop'\n\t| 'laptop'\n\t| 'deviceMobile'\n\t| 'deviceMouse'\n\t| 'computerMouse'\n\t| 'devicePrinter'\n\t| 'print'\n\t| 'deviceVideo'\n\t| 'dotsDrag'\n\t| 'drag'\n\t| 'eye'\n\t| 'watch'\n\t| 'eyeStrikethrough'\n\t| 'unwatch'\n\t| 'fileContract'\n\t| 'contract'\n\t| 'fileCopy'\n\t| 'copy'\n\t| 'fileDocument'\n\t| 'file'\n\t| 'fileExport'\n\t| 'fileFolder'\n\t| 'folder'\n\t| 'fileImport'\n\t| 'importDirty'\n\t| 'importPristine'\n\t| 'filePlus'\n\t| 'fileSign'\n\t| 'sign'\n\t| 'filtersDescending'\n\t| 'filterAbstract'\n\t| 'filtersFunnel'\n\t| 'funnel'\n\t| 'filter'\n\t| 'filtersSort'\n\t| 'sort'\n\t| 'reorder'\n\t| 'flag'\n\t| 'floppyDiskSave'\n\t| 'save'\n\t| 'foodBirthdayCake'\n\t| 'birthday'\n\t| 'foodBobun'\n\t| 'lunchAlternative'\n\t| 'foodBurger'\n\t| 'lunch'\n\t| 'foodChefHat'\n\t| 'restaurant'\n\t| 'foodClocheDish'\n\t| 'diner'\n\t| 'foodCocktail'\n\t| 'drink'\n\t| 'foodCoffee'\n\t| 'coffee'\n\t| 'breaktime'\n\t| 'foodCroissant'\n\t| 'breakfast'\n\t| 'foodCutlery'\n\t| 'meal'\n\t| 'foodSandwich'\n\t| 'snack'\n\t| 'formatBulletedList'\n\t| 'list'\n\t| 'formatClipperAttachment'\n\t| 'attach'\n\t| 'formatCornerUpLeft'\n\t| 'formatUndo'\n\t| 'formatCornerUpRight'\n\t| 'formatRedo'\n\t| 'formatLink'\n\t| 'formatNumberedList'\n\t| 'formatListNb'\n\t| 'formatText'\n\t| 'formatJustify'\n\t| 'formatTextBold'\n\t| 'formatBold'\n\t| 'formatTextClear'\n\t| 'formatClear'\n\t| 'formatTextItalic'\n\t| 'formatItalic'\n\t| 'formatTextSize'\n\t| 'formatSize'\n\t| 'formatTextStrikethrough'\n\t| 'formatStrikethrough'\n\t| 'formatTextUnderline'\n\t| 'formatUnderlined'\n\t| 'formatUnlink'\n\t| 'unlink'\n\t| 'gift'\n\t| 'present'\n\t| 'heart'\n\t| 'heartFilled'\n\t| 'heartStrikethrough'\n\t| 'brokenHeart'\n\t| 'hotelBed'\n\t| 'bed'\n\t| 'hotel'\n\t| 'hotelHanger'\n\t| 'hanger'\n\t| 'hotelIron'\n\t| 'iron'\n\t| 'pressing'\n\t| 'hotelLuggage'\n\t| 'luggage'\n\t| 'jigsawPuzzle'\n\t| 'puzzle'\n\t| 'journey'\n\t| 'milestone'\n\t| 'jumpingCc'\n\t| 'lucca'\n\t| 'laboratoryTestFlask'\n\t| 'test'\n\t| 'layers'\n\t| 'floor'\n\t| 'listChecked'\n\t| 'listChecklist'\n\t| 'listTodo'\n\t| 'lockClose'\n\t| 'lock'\n\t| 'lockKey'\n\t| 'key'\n\t| 'lockOpen'\n\t| 'unlock'\n\t| 'mailEnvelope'\n\t| 'mail'\n\t| 'mailMailbox'\n\t| 'mailbox'\n\t| 'stamp'\n\t| 'postage'\n\t| 'mailPaperPlane'\n\t| 'send'\n\t| 'mapGlobe'\n\t| 'globe'\n\t| 'mapLocation'\n\t| 'location'\n\t| 'mapPin'\n\t| 'pin'\n\t| 'mathsDivide'\n\t| 'divide'\n\t| 'mathsEquals'\n\t| 'equal'\n\t| 'mathsMinus'\n\t| 'minus'\n\t| 'partial'\n\t| 'minimize'\n\t| 'mathsMultiplicate'\n\t| 'close'\n\t| 'thinCross'\n\t| 'cross'\n\t| 'crossBold'\n\t| 'mathsPlus'\n\t| 'plus'\n\t| 'plusBold'\n\t| 'medicalDoctor'\n\t| 'menuBurger'\n\t| 'menu'\n\t| 'hamburgerMenu'\n\t| 'menuDots'\n\t| 'menuEllipsis'\n\t| 'ellipsis'\n\t| 'moneyBag'\n\t| 'moneybag'\n\t| 'moneyBagStrikethrough'\n\t| 'noMoney'\n\t| 'moneyBankImport'\n\t| 'moneyBanknoteStrikethrough'\n\t| 'moneyBill'\n\t| 'bill'\n\t| 'moneyBuildingBank'\n\t| 'bank'\n\t| 'moneyCardCheck'\n\t| 'moneyCardImport'\n\t| 'importCb'\n\t| 'moneyCheck'\n\t| 'moneyCoins'\n\t| 'money'\n\t| 'payment'\n\t| 'moneyCurrencyDollar'\n\t| 'dollar'\n\t| 'moneyCurrencyEuro'\n\t| 'euro'\n\t| 'moneyPaymentCard'\n\t| 'bankingCard'\n\t| 'moneyPiggyBank'\n\t| 'piggyBank'\n\t| 'moneyWallet'\n\t| 'wallet'\n\t| 'officeBriefcase'\n\t| 'officeChair'\n\t| 'chair'\n\t| 'officeCompass'\n\t| 'compass'\n\t| 'officeElectricalPlug'\n\t| 'officePen'\n\t| 'edit'\n\t| 'editMini'\n\t| 'officePenWriting'\n\t| 'editWrite'\n\t| 'editFrame'\n\t| 'officePhone'\n\t| 'telephone'\n\t| 'officeScissors'\n\t| 'cut'\n\t| 'officeSupplies'\n\t| 'supplies'\n\t| 'peopleAdd'\n\t| 'userAdd'\n\t| 'adduser'\n\t| 'peopleGroup'\n\t| 'userGroup'\n\t| 'group'\n\t| 'peopleId'\n\t| 'identityCard'\n\t| 'userFile'\n\t| 'dossierRh'\n\t| 'peopleLocked'\n\t| 'userRoles'\n\t| 'peoplePerson'\n\t| 'user'\n\t| 'face'\n\t| 'peopleRemove'\n\t| 'userRemove'\n\t| 'peopleSwitch'\n\t| 'send2user'\n\t| 'userSendTo'\n\t| 'peopleTeacher'\n\t| 'teacher'\n\t| 'pictureGallery'\n\t| 'gallery'\n\t| 'pictureImage'\n\t| 'image'\n\t| 'picturePalette'\n\t| 'palette'\n\t| 'playerPauseCircle'\n\t| 'pause'\n\t| 'playerPlay'\n\t| 'playFull'\n\t| 'playerPlayCircle'\n\t| 'play'\n\t| 'playerStopCircle'\n\t| 'stop'\n\t| 'priceTag'\n\t| 'pricetag'\n\t| 'priorityHigh'\n\t| 'high'\n\t| 'priorityHigher'\n\t| 'higher'\n\t| 'priorityHighest'\n\t| 'highest'\n\t| 'priorityLow'\n\t| 'low'\n\t| 'priorityLower'\n\t| 'lower'\n\t| 'priorityLowest'\n\t| 'lowest'\n\t| 'priorityMedium'\n\t| 'medium'\n\t| 'rotationLeft'\n\t| 'rotate'\n\t| 'rotationRight'\n\t| 'rotateRight'\n\t| 'searchMagnifyingGlass'\n\t| 'search'\n\t| 'searchZoomIn'\n\t| 'searchZoomOut'\n\t| 'settingsEqualizer'\n\t| 'sliders'\n\t| 'settingsGear'\n\t| 'settings'\n\t| 'settingsTools'\n\t| 'tools'\n\t| 'share'\n\t| 'signBan'\n\t| 'forbidden'\n\t| 'signCancel'\n\t| 'cancel'\n\t| 'signClose'\n\t| 'signConfirm'\n\t| 'confirm'\n\t| 'tick'\n\t| 'tickThin'\n\t| 'tickBold'\n\t| 'signConstruction'\n\t| 'build'\n\t| 'signDiscount'\n\t| 'discount'\n\t| 'signError'\n\t| 'error'\n\t| 'signHelp'\n\t| 'help'\n\t| 'helpOutline'\n\t| 'signInfo'\n\t| 'info'\n\t| 'signParking'\n\t| 'parking'\n\t| 'signShieldError'\n\t| 'signShieldSuccess'\n\t| 'signShieldWarning'\n\t| 'signWebhook'\n\t| 'signSuccess'\n\t| 'success'\n\t| 'signTranslation'\n\t| 'signWarning'\n\t| 'warning'\n\t| 'star'\n\t| 'unstared'\n\t| 'starFilled'\n\t| 'target'\n\t| 'thumbDown'\n\t| 'thumbDownFilled'\n\t| 'thumbUp'\n\t| 'thumbUpFilled'\n\t| 'thumbnail'\n\t| 'timeAlarm'\n\t| 'alarm'\n\t| 'timeClock'\n\t| 'clock'\n\t| 'timeFuture'\n\t| 'postpone'\n\t| 'timeHourglass'\n\t| 'timer'\n\t| 'timePast'\n\t| 'history'\n\t| 'timeTimer'\n\t| 'chronoOn'\n\t| 'timeTimerStrikethrough'\n\t| 'overplanned'\n\t| 'timeTimesheet'\n\t| 'timesheet'\n\t| 'transportBus'\n\t| 'bus'\n\t| 'transportCar'\n\t| 'car'\n\t| 'transportCarwashStation'\n\t| 'cleanCar'\n\t| 'transportGazStation'\n\t| 'gasoline'\n\t| 'transportPlane'\n\t| 'plane'\n\t| 'transportRocket'\n\t| 'rocket'\n\t| 'transportSpeedometer'\n\t| 'speedometer'\n\t| 'mileage'\n\t| 'transportSubway'\n\t| 'subway'\n\t| 'transportTaxi'\n\t| 'taxi'\n\t| 'transportToll'\n\t| 'toll'\n\t| 'tollDollar'\n\t| 'tollEuro'\n\t| 'transportTrain'\n\t| 'train'\n\t| 'transportTruck'\n\t| 'truck'\n\t| 'trashDelete'\n\t| 'trash'\n\t| 'trendingGrowth'\n\t| 'evolution'\n\t| 'trendingLoss'\n\t| 'evolutionDown'\n\t| 'weatherCloudy'\n\t| 'weatherLightning'\n\t| 'weatherStars'\n\t| 'weatherStormy'\n\t| 'weatherStorm'\n\t| 'weatherSunny'\n\t| 'weatherSun'\n\t| 'weight';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAYa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;AASU,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAa;QAElC,IAAA,CAAA,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;QAErB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAiD;AAE7D,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA8G,SAAS,iDAAC;QAErI,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,KAAK,+CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAElD,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AACpC,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;YACxB,OAAO;AACN,gBAAA,CAAC,OAAO,IAAI,CAAA,CAAE,GAAG,CAAC,CAAC,IAAI;aACvB;AACF,QAAA,CAAC,uDAAC;AACF,IAAA;8GAjBY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA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AAA;kBARzB,SAAS;+BACC,iBAAiB,EAAA,OAAA,EAClB,CAAC,OAAO,CAAC,EAAA,eAAA,EAGD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,0OAAA,EAAA,MAAA,EAAA,CAAA,saAAA,CAAA,EAAA;;;AEVtC;;;AAGiD;;ACHjD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-prisme-icon.mjs","sources":["../../../packages/prisme/icon/icon.component.ts","../../../packages/prisme/icon/icon.component.html","../../../packages/prisme/icon/icons.ts","../../../packages/prisme/icon/lucca-prisme-icon.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport type { LuccaIcon } from './icons';\n\n@Component({\n\tselector: 'pr-icon,lu-icon',\n\timports: [NgClass],\n\ttemplateUrl: './icon.component.html',\n\tstyleUrl: './icon.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class IconComponent {\n\t/**\n\t * Defines icon to display\n\t */\n\treadonly icon = input.required<LuccaIcon>();\n\n\t/**\n\t * Information conveyed by the screen reader\n\t */\n\treadonly alt = input<string>();\n\n\t/**\n\t * Which size should the icon be? XXS to XXL\n\t */\n\treadonly size = input<'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'>();\n\n\t/**\n\t * Changes the color of the icon (inherit by default)\n\t */\n\treadonly color = input<'primary' | 'secondary' | 'product' | 'error' | 'warning' | 'success' | 'light' | 'placeholder' | 'inherit'>('inherit');\n\n\t/**\n\t * Display icon in AI mode\n\t */\n\treadonly AI = input(false, { transform: booleanAttribute });\n\n\treadonly iconClasses = computed(() => {\n\t\tconst size = this.size();\n\t\treturn {\n\t\t\t[`mod-${size}`]: !!size,\n\t\t};\n\t});\n}\n","<span\n\taria-hidden=\"true\"\n\t[class.mod-AI]=\"AI()\"\n\tclass=\"lucca-icon icon-{{ icon() }} icon-color-{{ color() }}\"\n\t[ngClass]=\"iconClasses()\"\n></span>\n@if (alt()) {\n\t<span class=\"pr-u-mask\">{{ alt() }}</span>\n}\n","// *******************************************\n// *** THIS FILE IS GENERATED, DO NOT EDIT ***\n// *** The generator is update-icons.js\t\t ***\n// *******************************************\n\nexport type LuccaIcon =\n\t| 'app'\n\t| 'apps'\n\t| 'nineTiles'\n\t| 'mosaic'\n\t| 'tiles'\n\t| 'appWidget'\n\t| 'arrowBackward'\n\t| 'backward'\n\t| 'arrowBottom'\n\t| 'arrowFullSouth'\n\t| 'arrowBottomLeft'\n\t| 'arrowBottomRight'\n\t| 'arrowCenterReduce'\n\t| 'arrowChevronBottom'\n\t| 'arrowSouth'\n\t| 'southArrow'\n\t| 'southThinArrow'\n\t| 'chevronSouth'\n\t| 'chevronBottom'\n\t| 'arrowChevronLeft'\n\t| 'arrowWest'\n\t| 'westArrow'\n\t| 'westThinArrow'\n\t| 'chevronWest'\n\t| 'chevronLeft'\n\t| 'arrowChevronRight'\n\t| 'arrowEast'\n\t| 'eastArrow'\n\t| 'eastThinArrow'\n\t| 'chevronEast'\n\t| 'chevronRight'\n\t| 'arrowChevronTop'\n\t| 'arrowNorth'\n\t| 'northArrow'\n\t| 'northThinArrow'\n\t| 'chevronNorth'\n\t| 'chevronTop'\n\t| 'arrowCorner'\n\t| 'distribute'\n\t| 'arrowCornerExpand'\n\t| 'arrowCurvedDownRight'\n\t| 'arrowDownload'\n\t| 'download'\n\t| 'arrowExternal'\n\t| 'outside'\n\t| 'arrowForward'\n\t| 'arrowDouble'\n\t| 'forward'\n\t| 'arrowLeft'\n\t| 'arrowFullWest'\n\t| 'arrowLineBottom'\n\t| 'arrowLineTop'\n\t| 'arrowLogin'\n\t| 'login'\n\t| 'arrowLogout'\n\t| 'logout'\n\t| 'arrowOppositeLeftRight'\n\t| 'arrowOppositeHorizontal'\n\t| 'swap'\n\t| 'arrowOppositeRightLeft'\n\t| 'arrowOppositeTopBottom'\n\t| 'arrowOppositeVertical'\n\t| 'creditDebit'\n\t| 'arrowReply'\n\t| 'reply'\n\t| 'arrowReset'\n\t| 'refresh'\n\t| 'update'\n\t| 'arrowRight'\n\t| 'arrowFullEast'\n\t| 'arrowSync'\n\t| 'sync'\n\t| 'arrowSyncStrikethrough'\n\t| 'syncDisabled'\n\t| 'arrowTop'\n\t| 'arrowFullNorth'\n\t| 'arrowTopLeft'\n\t| 'arrowTopRight'\n\t| 'arrowUnfoldLess'\n\t| 'collapse'\n\t| 'arrowUnfoldMore'\n\t| 'expand'\n\t| 'arrowUpload'\n\t| 'upload'\n\t| 'cloudUpload'\n\t| 'bell'\n\t| 'notification'\n\t| 'bellStrikethrough'\n\t| 'book'\n\t| 'bookmark'\n\t| 'bookmarkFilled'\n\t| 'boxArchive'\n\t| 'archive'\n\t| 'boxUnarchive'\n\t| 'unarchive'\n\t| 'branch'\n\t| 'bubbleAnswer'\n\t| 'answer'\n\t| 'bubbleConversation'\n\t| 'messenger'\n\t| 'bubbleSpeech'\n\t| 'chat'\n\t| 'talk'\n\t| 'dialog'\n\t| 'bubbleStars'\n\t| 'buildingCompany'\n\t| 'building'\n\t| 'establishment'\n\t| 'buildingHouse'\n\t| 'house'\n\t| 'home'\n\t| 'buildingHouseFilled'\n\t| 'houseFilled'\n\t| 'homeFill'\n\t| 'buildingHouseStarred'\n\t| 'houseStarred'\n\t| 'homeStarred'\n\t| 'buildingStore'\n\t| 'store'\n\t| 'bulb'\n\t| 'lightBulb'\n\t| 'calendarChecked'\n\t| 'calendarDate'\n\t| 'calendar'\n\t| 'planning'\n\t| 'calendarEdit'\n\t| 'planningEdit'\n\t| 'calendarPlanning'\n\t| 'payPeriod'\n\t| 'calendarSettings'\n\t| 'planningManage'\n\t| 'calendarStrikethrough'\n\t| 'calendarOff'\n\t| 'capCrown'\n\t| 'crown'\n\t| 'capGraduate'\n\t| 'graduate'\n\t| 'school'\n\t| 'certificationFailed'\n\t| 'certifKo'\n\t| 'certificationSuccess'\n\t| 'certifOk'\n\t| 'certificationWaiting'\n\t| 'certifWaiting'\n\t| 'chartDonut'\n\t| 'donut'\n\t| 'donutChart'\n\t| 'chartFlow'\n\t| 'familyTree'\n\t| 'orgTree'\n\t| 'chartHorizontalBar'\n\t| 'horizontalBarChart'\n\t| 'chartLevels'\n\t| 'level'\n\t| 'chartPie'\n\t| 'dashboard'\n\t| 'chartSpider'\n\t| 'chartVerticalBar'\n\t| 'analytics'\n\t| 'charts'\n\t| 'clipboard'\n\t| 'paste'\n\t| 'completion'\n\t| 'cornersFocus'\n\t| 'cornersFullscreenExit'\n\t| 'fullscreenExit'\n\t| 'cornersFullscreenOpen'\n\t| 'fullscreen'\n\t| 'dataTable'\n\t| 'table'\n\t| 'database'\n\t| 'databaseArrow'\n\t| 'apiSync'\n\t| 'deviceCamera'\n\t| 'camera'\n\t| 'deviceComputer'\n\t| 'computer'\n\t| 'deviceLaptop'\n\t| 'laptop'\n\t| 'deviceMobile'\n\t| 'deviceMouse'\n\t| 'computerMouse'\n\t| 'devicePrinter'\n\t| 'print'\n\t| 'deviceVideo'\n\t| 'dotsDrag'\n\t| 'drag'\n\t| 'emojiSmile'\n\t| 'eye'\n\t| 'watch'\n\t| 'eyeStrikethrough'\n\t| 'unwatch'\n\t| 'fileContract'\n\t| 'contract'\n\t| 'fileCopy'\n\t| 'copy'\n\t| 'fileDocument'\n\t| 'file'\n\t| 'files'\n\t| 'fileExport'\n\t| 'fileFolder'\n\t| 'folder'\n\t| 'fileImport'\n\t| 'importDirty'\n\t| 'importPristine'\n\t| 'filePlus'\n\t| 'fileSign'\n\t| 'sign'\n\t| 'filtersDescending'\n\t| 'filterAbstract'\n\t| 'filtersFunnel'\n\t| 'funnel'\n\t| 'filter'\n\t| 'filtersSort'\n\t| 'sort'\n\t| 'reorder'\n\t| 'flag'\n\t| 'floppyDiskSave'\n\t| 'save'\n\t| 'foodBirthdayCake'\n\t| 'birthday'\n\t| 'foodBobun'\n\t| 'lunchAlternative'\n\t| 'foodBurger'\n\t| 'lunch'\n\t| 'foodChefHat'\n\t| 'restaurant'\n\t| 'foodClocheDish'\n\t| 'diner'\n\t| 'foodCocktail'\n\t| 'drink'\n\t| 'foodCoffee'\n\t| 'coffee'\n\t| 'breaktime'\n\t| 'foodCroissant'\n\t| 'breakfast'\n\t| 'foodCutlery'\n\t| 'meal'\n\t| 'foodSandwich'\n\t| 'snack'\n\t| 'formatBulletedList'\n\t| 'list'\n\t| 'formatClipperAttachment'\n\t| 'attach'\n\t| 'formatCornerUpLeft'\n\t| 'formatUndo'\n\t| 'formatCornerUpRight'\n\t| 'formatRedo'\n\t| 'formatLink'\n\t| 'formatNumberedList'\n\t| 'formatListNb'\n\t| 'formatText'\n\t| 'formatJustify'\n\t| 'formatTextBold'\n\t| 'formatBold'\n\t| 'formatTextClear'\n\t| 'formatClear'\n\t| 'formatTextItalic'\n\t| 'formatItalic'\n\t| 'formatTextSize'\n\t| 'formatSize'\n\t| 'formatTextStrikethrough'\n\t| 'formatStrikethrough'\n\t| 'formatTextUnderline'\n\t| 'formatUnderlined'\n\t| 'formatUnlink'\n\t| 'unlink'\n\t| 'gift'\n\t| 'present'\n\t| 'heart'\n\t| 'heartFilled'\n\t| 'heartStrikethrough'\n\t| 'brokenHeart'\n\t| 'hotelBed'\n\t| 'bed'\n\t| 'hotel'\n\t| 'hotelHanger'\n\t| 'hanger'\n\t| 'hotelIron'\n\t| 'iron'\n\t| 'pressing'\n\t| 'hotelLuggage'\n\t| 'luggage'\n\t| 'jigsawPuzzle'\n\t| 'puzzle'\n\t| 'journey'\n\t| 'milestone'\n\t| 'jumpingCc'\n\t| 'lucca'\n\t| 'laboratoryTestFlask'\n\t| 'test'\n\t| 'layers'\n\t| 'floor'\n\t| 'listChecked'\n\t| 'listChecklist'\n\t| 'listTodo'\n\t| 'lockClose'\n\t| 'lock'\n\t| 'lockKey'\n\t| 'key'\n\t| 'lockOpen'\n\t| 'unlock'\n\t| 'mailEnvelope'\n\t| 'mail'\n\t| 'mailMailbox'\n\t| 'mailbox'\n\t| 'stamp'\n\t| 'postage'\n\t| 'mailPaperPlane'\n\t| 'send'\n\t| 'mapGlobe'\n\t| 'globe'\n\t| 'mapLocation'\n\t| 'location'\n\t| 'mapPin'\n\t| 'pin'\n\t| 'mapPlan'\n\t| 'mapTripStep'\n\t| 'mathsDivide'\n\t| 'divide'\n\t| 'mathsEquals'\n\t| 'mathsMinus'\n\t| 'minus'\n\t| 'partial'\n\t| 'minimize'\n\t| 'mathsMultiplicate'\n\t| 'close'\n\t| 'thinCross'\n\t| 'cross'\n\t| 'crossBold'\n\t| 'mathsNotEqual'\n\t| 'mathsPlus'\n\t| 'plus'\n\t| 'plusBold'\n\t| 'medicalDoctor'\n\t| 'menuBurger'\n\t| 'menu'\n\t| 'hamburgerMenu'\n\t| 'menuDots'\n\t| 'menuEllipsis'\n\t| 'ellipsis'\n\t| 'moneyBag'\n\t| 'moneybag'\n\t| 'moneyBagStrikethrough'\n\t| 'noMoney'\n\t| 'moneyBankImport'\n\t| 'moneyBanknoteStrikethrough'\n\t| 'moneyBill'\n\t| 'bill'\n\t| 'moneyBuildingBank'\n\t| 'bank'\n\t| 'moneyCardCheck'\n\t| 'moneyCardImport'\n\t| 'importCb'\n\t| 'moneyCheck'\n\t| 'moneyCoins'\n\t| 'money'\n\t| 'payment'\n\t| 'moneyCurrencyDollar'\n\t| 'dollar'\n\t| 'moneyCurrencyEuro'\n\t| 'euro'\n\t| 'moneyPaymentCard'\n\t| 'bankingCard'\n\t| 'moneyPaymentCards'\n\t| 'moneyPiggyBank'\n\t| 'piggyBank'\n\t| 'moneyWallet'\n\t| 'wallet'\n\t| 'officeBriefcase'\n\t| 'officeChair'\n\t| 'chair'\n\t| 'officeCompass'\n\t| 'compass'\n\t| 'officeElectricalPlug'\n\t| 'officeFirstAid'\n\t| 'officeMicrophone'\n\t| 'officePen'\n\t| 'edit'\n\t| 'editMini'\n\t| 'officePenStar'\n\t| 'officePenWriting'\n\t| 'editWrite'\n\t| 'editFrame'\n\t| 'officePhone'\n\t| 'telephone'\n\t| 'officeScissors'\n\t| 'cut'\n\t| 'officeSupplies'\n\t| 'supplies'\n\t| 'peopleAccessibility'\n\t| 'peopleAdd'\n\t| 'userAdd'\n\t| 'adduser'\n\t| 'peopleArrowUp'\n\t| 'peopleEdit'\n\t| 'peopleFolder'\n\t| 'peopleGroup'\n\t| 'userGroup'\n\t| 'group'\n\t| 'peopleHouse'\n\t| 'peopleId'\n\t| 'identityCard'\n\t| 'userFile'\n\t| 'dossierRh'\n\t| 'peopleLocked'\n\t| 'userRoles'\n\t| 'peoplePerson'\n\t| 'user'\n\t| 'face'\n\t| 'peopleRemove'\n\t| 'userRemove'\n\t| 'peopleSwitch'\n\t| 'send2user'\n\t| 'userSendTo'\n\t| 'peopleTeacher'\n\t| 'teacher'\n\t| 'pictureGallery'\n\t| 'gallery'\n\t| 'pictureImage'\n\t| 'image'\n\t| 'picturePalette'\n\t| 'palette'\n\t| 'playerPauseCircle'\n\t| 'pause'\n\t| 'playerPlay'\n\t| 'playFull'\n\t| 'playerPlayCircle'\n\t| 'play'\n\t| 'playerRecording'\n\t| 'playerStopCircle'\n\t| 'stop'\n\t| 'priceTag'\n\t| 'pricetag'\n\t| 'priorityHigh'\n\t| 'high'\n\t| 'priorityHigher'\n\t| 'higher'\n\t| 'priorityHighest'\n\t| 'highest'\n\t| 'priorityLow'\n\t| 'low'\n\t| 'priorityLower'\n\t| 'lower'\n\t| 'priorityLowest'\n\t| 'lowest'\n\t| 'priorityMedium'\n\t| 'medium'\n\t| 'rotationLeft'\n\t| 'rotate'\n\t| 'rotationRight'\n\t| 'rotateRight'\n\t| 'searchMagnifyingGlass'\n\t| 'search'\n\t| 'searchZoomIn'\n\t| 'searchZoomOut'\n\t| 'settingsEqualizer'\n\t| 'sliders'\n\t| 'settingsGear'\n\t| 'settings'\n\t| 'settingsTools'\n\t| 'tools'\n\t| 'share'\n\t| 'signAt'\n\t| 'signBan'\n\t| 'forbidden'\n\t| 'signCancel'\n\t| 'cancel'\n\t| 'signCheckbox'\n\t| 'signClose'\n\t| 'signConfirm'\n\t| 'confirm'\n\t| 'tick'\n\t| 'tickThin'\n\t| 'tickBold'\n\t| 'signConstruction'\n\t| 'build'\n\t| 'signDiscount'\n\t| 'discount'\n\t| 'signError'\n\t| 'error'\n\t| 'signHelp'\n\t| 'help'\n\t| 'helpOutline'\n\t| 'signInfo'\n\t| 'info'\n\t| 'signParking'\n\t| 'parking'\n\t| 'signShieldError'\n\t| 'signShieldSuccess'\n\t| 'signShieldWarning'\n\t| 'signSuccess'\n\t| 'success'\n\t| 'signTranslation'\n\t| 'signWarning'\n\t| 'warning'\n\t| 'signWebhook'\n\t| 'soundMegaphone'\n\t| 'star'\n\t| 'unstared'\n\t| 'starFilled'\n\t| 'target'\n\t| 'thumbDown'\n\t| 'thumbDownFilled'\n\t| 'thumbUp'\n\t| 'thumbUpFilled'\n\t| 'thumbnail'\n\t| 'timeAlarm'\n\t| 'alarm'\n\t| 'timeClock'\n\t| 'clock'\n\t| 'timeFuture'\n\t| 'postpone'\n\t| 'timeHourglass'\n\t| 'timer'\n\t| 'timePast'\n\t| 'history'\n\t| 'timeTimer'\n\t| 'chronoOn'\n\t| 'timeTimerStrikethrough'\n\t| 'overplanned'\n\t| 'timeTimesheet'\n\t| 'timesheet'\n\t| 'transportBus'\n\t| 'bus'\n\t| 'transportCar'\n\t| 'car'\n\t| 'transportCarElectric'\n\t| 'transportCarwashStation'\n\t| 'cleanCar'\n\t| 'transportGazStation'\n\t| 'gasoline'\n\t| 'transportMotocycle'\n\t| 'transportMotocycleElectric'\n\t| 'transportPlane'\n\t| 'plane'\n\t| 'transportRocket'\n\t| 'rocket'\n\t| 'transportScooter'\n\t| 'transportScooterElectric'\n\t| 'transportSpeedometer'\n\t| 'speedometer'\n\t| 'mileage'\n\t| 'transportSubway'\n\t| 'subway'\n\t| 'transportTaxi'\n\t| 'taxi'\n\t| 'transportToll'\n\t| 'toll'\n\t| 'tollDollar'\n\t| 'tollEuro'\n\t| 'transportTrain'\n\t| 'train'\n\t| 'transportTruck'\n\t| 'truck'\n\t| 'trashDelete'\n\t| 'trash'\n\t| 'trendingGrowth'\n\t| 'evolution'\n\t| 'trendingLoss'\n\t| 'evolutionDown'\n\t| 'weatherCloudy'\n\t| 'weatherLightning'\n\t| 'weatherStars'\n\t| 'weatherStormy'\n\t| 'weatherStorm'\n\t| 'weatherSunny'\n\t| 'weatherSun'\n\t| 'weight';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAYa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;AASC;;AAEG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAa;AAE3C;;AAEG;QACM,IAAA,CAAA,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAE9B;;AAEG;QACM,IAAA,CAAA,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAiD;AAEtE;;AAEG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA8G,SAAS,iDAAC;AAE9I;;AAEG;QACM,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,KAAK,+CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAElD,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AACpC,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;YACxB,OAAO;AACN,gBAAA,CAAC,OAAO,IAAI,CAAA,CAAE,GAAG,CAAC,CAAC,IAAI;aACvB;AACF,QAAA,CAAC,uDAAC;AACF,IAAA;8GAhCY,aA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AAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAML,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;+BACC,iBAAiB,EAAA,OAAA,EAClB,CAAC,OAAO,CAAC,EAAA,eAAA,EAGD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,0OAAA,EAAA,MAAA,EAAA,CAAA,saAAA,CAAA,EAAA;;;AEVtC;AACA;AACA;AACA;;ACHA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca/prisme",
|
|
3
|
-
"version": "21.1.0-rc.
|
|
3
|
+
"version": "21.1.0-rc.3",
|
|
4
4
|
"description": "Design system made by @lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@angular/cdk": "^21.0.0",
|
|
21
21
|
"@angular/animations": "^21.0.0",
|
|
22
22
|
"@types/dompurify": "^3.0.0",
|
|
23
|
-
"@lucca-front/icons": "21.1.0-rc.
|
|
24
|
-
"@lucca-front/scss": "21.1.0-rc.
|
|
23
|
+
"@lucca-front/icons": "21.1.0-rc.3",
|
|
24
|
+
"@lucca-front/scss": "21.1.0-rc.3",
|
|
25
25
|
"isomorphic-dompurify": "^2.11.0",
|
|
26
26
|
"date-fns": "^3.6.0",
|
|
27
27
|
"rxjs": "^7.8.0"
|
|
@@ -5,12 +5,33 @@ import { Palette } from '@lucca/prisme/core';
|
|
|
5
5
|
declare class ButtonComponent {
|
|
6
6
|
#private;
|
|
7
7
|
readonly notifyError: _angular_core.WritableSignal<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Change the size of the Button
|
|
10
|
+
*/
|
|
8
11
|
readonly size: _angular_core.InputSignal<"M" | "S" | "XS">;
|
|
12
|
+
/**
|
|
13
|
+
* Apply block display
|
|
14
|
+
*/
|
|
9
15
|
readonly block: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates an action with significant or irreversible consequences on hover and focus. Only compatible with outlined and ghost
|
|
18
|
+
*/
|
|
10
19
|
readonly critical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use `critical` input instead
|
|
22
|
+
*/
|
|
11
23
|
readonly delete: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates the presence of a menu
|
|
26
|
+
*/
|
|
12
27
|
readonly disclosure: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* Applies a color palette to the Button
|
|
30
|
+
*/
|
|
13
31
|
readonly palette: _angular_core.InputSignal<Palette>;
|
|
32
|
+
/**
|
|
33
|
+
* Modifies the state of the Button
|
|
34
|
+
*/
|
|
14
35
|
readonly state: _angular_core.InputSignal<"success" | "error" | "default" | "loading">;
|
|
15
36
|
readonly luButton: _angular_core.InputSignal<"" | "outlined" | "AI" | "AI-invert" | "ghost" | "ghost-invert" | "text" | "text-invert">;
|
|
16
37
|
/**
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
*** THIS FILE IS GENERATED, DO NOT EDIT ***
|
|
5
|
-
*** The generator is update-icons.js ***
|
|
6
|
-
***********************************************/
|
|
7
|
-
type LuccaIcon = 'app' | 'apps' | 'nineTiles' | 'mosaic' | 'tiles' | 'arrowBackward' | 'backward' | 'arrowBottom' | 'arrowFullSouth' | 'arrowBottomLeft' | 'arrowBottomRight' | 'arrowCenterReduce' | 'arrowChevronBottom' | 'arrowSouth' | 'southArrow' | 'southThinArrow' | 'chevronSouth' | 'chevronBottom' | 'arrowChevronLeft' | 'arrowWest' | 'westArrow' | 'westThinArrow' | 'chevronWest' | 'chevronLeft' | 'arrowChevronRight' | 'arrowEast' | 'eastArrow' | 'eastThinArrow' | 'chevronEast' | 'chevronRight' | 'arrowChevronTop' | 'arrowNorth' | 'northArrow' | 'northThinArrow' | 'chevronNorth' | 'chevronTop' | 'arrowCorner' | 'distribute' | 'arrowCornerExpand' | 'arrowCurvedDownRight' | 'arrowDownload' | 'download' | 'arrowExternal' | 'outside' | 'arrowForward' | 'arrowDouble' | 'forward' | 'arrowLeft' | 'arrowFullWest' | 'arrowLineBottom' | 'arrowLineTop' | 'arrowLogin' | 'login' | 'arrowLogout' | 'logout' | 'arrowOppositeHorizontal' | 'swap' | 'arrowOppositeVertical' | 'creditDebit' | 'arrowReply' | 'reply' | 'arrowReset' | 'refresh' | 'update' | 'arrowRight' | 'arrowFullEast' | 'arrowSync' | 'sync' | 'arrowSyncStrikethrough' | 'syncDisabled' | 'arrowTop' | 'arrowFullNorth' | 'arrowTopLeft' | 'arrowTopRight' | 'arrowUnfoldLess' | 'collapse' | 'arrowUnfoldMore' | 'expand' | 'arrowUpload' | 'upload' | 'cloudUpload' | 'bell' | 'notification' | 'bellStrikethrough' | 'book' | 'bookmark' | 'bookmarkFilled' | 'boxArchive' | 'archive' | 'boxUnarchive' | 'unarchive' | 'branch' | 'bubbleAnswer' | 'answer' | 'bubbleConversation' | 'messenger' | 'bubbleSpeech' | 'chat' | 'talk' | 'dialog' | 'buildingCompany' | 'building' | 'establishment' | 'buildingHouse' | 'house' | 'home' | 'buildingHouseFilled' | 'houseFilled' | 'homeFill' | 'buildingHouseStarred' | 'houseStarred' | 'homeStarred' | 'buildingStore' | 'store' | 'bulb' | 'lightBulb' | 'calendarChecked' | 'calendarDate' | 'calendar' | 'planning' | 'calendarEdit' | 'planningEdit' | 'calendarPlanning' | 'payPeriod' | 'calendarSettings' | 'planningManage' | 'calendarStrikethrough' | 'calendarOff' | 'capCrown' | 'crown' | 'capGraduate' | 'graduate' | 'school' | 'certificationFailed' | 'certifKo' | 'certificationSuccess' | 'certifOk' | 'certificationWaiting' | 'certifWaiting' | 'chartDonut' | 'donut' | 'donutChart' | 'chartFlow' | 'familyTree' | 'orgTree' | 'chartHorizontalBar' | 'horizontalBarChart' | 'chartLevels' | 'level' | 'chartPie' | 'dashboard' | 'chartSpider' | 'chartVerticalBar' | 'analytics' | 'charts' | 'clipboard' | 'paste' | 'completion' | 'cornersFullscreenExit' | 'fullscreenExit' | 'cornersFullscreenOpen' | 'fullscreen' | 'dataTable' | 'table' | 'database' | 'databaseArrow' | 'apiSync' | 'deviceCamera' | 'camera' | 'deviceComputer' | 'computer' | 'deviceLaptop' | 'laptop' | 'deviceMobile' | 'deviceMouse' | 'computerMouse' | 'devicePrinter' | 'print' | 'deviceVideo' | 'dotsDrag' | 'drag' | 'eye' | 'watch' | 'eyeStrikethrough' | 'unwatch' | 'fileContract' | 'contract' | 'fileCopy' | 'copy' | 'fileDocument' | 'file' | 'fileExport' | 'fileFolder' | 'folder' | 'fileImport' | 'importDirty' | 'importPristine' | 'filePlus' | 'fileSign' | 'sign' | 'filtersDescending' | 'filterAbstract' | 'filtersFunnel' | 'funnel' | 'filter' | 'filtersSort' | 'sort' | 'reorder' | 'flag' | 'floppyDiskSave' | 'save' | 'foodBirthdayCake' | 'birthday' | 'foodBobun' | 'lunchAlternative' | 'foodBurger' | 'lunch' | 'foodChefHat' | 'restaurant' | 'foodClocheDish' | 'diner' | 'foodCocktail' | 'drink' | 'foodCoffee' | 'coffee' | 'breaktime' | 'foodCroissant' | 'breakfast' | 'foodCutlery' | 'meal' | 'foodSandwich' | 'snack' | 'formatBulletedList' | 'list' | 'formatClipperAttachment' | 'attach' | 'formatCornerUpLeft' | 'formatUndo' | 'formatCornerUpRight' | 'formatRedo' | 'formatLink' | 'formatNumberedList' | 'formatListNb' | 'formatText' | 'formatJustify' | 'formatTextBold' | 'formatBold' | 'formatTextClear' | 'formatClear' | 'formatTextItalic' | 'formatItalic' | 'formatTextSize' | 'formatSize' | 'formatTextStrikethrough' | 'formatStrikethrough' | 'formatTextUnderline' | 'formatUnderlined' | 'formatUnlink' | 'unlink' | 'gift' | 'present' | 'heart' | 'heartFilled' | 'heartStrikethrough' | 'brokenHeart' | 'hotelBed' | 'bed' | 'hotel' | 'hotelHanger' | 'hanger' | 'hotelIron' | 'iron' | 'pressing' | 'hotelLuggage' | 'luggage' | 'jigsawPuzzle' | 'puzzle' | 'journey' | 'milestone' | 'jumpingCc' | 'lucca' | 'laboratoryTestFlask' | 'test' | 'layers' | 'floor' | 'listChecked' | 'listChecklist' | 'listTodo' | 'lockClose' | 'lock' | 'lockKey' | 'key' | 'lockOpen' | 'unlock' | 'mailEnvelope' | 'mail' | 'mailMailbox' | 'mailbox' | 'stamp' | 'postage' | 'mailPaperPlane' | 'send' | 'mapGlobe' | 'globe' | 'mapLocation' | 'location' | 'mapPin' | 'pin' | 'mathsDivide' | 'divide' | 'mathsEquals' | 'equal' | 'mathsMinus' | 'minus' | 'partial' | 'minimize' | 'mathsMultiplicate' | 'close' | 'thinCross' | 'cross' | 'crossBold' | 'mathsPlus' | 'plus' | 'plusBold' | 'medicalDoctor' | 'menuBurger' | 'menu' | 'hamburgerMenu' | 'menuDots' | 'menuEllipsis' | 'ellipsis' | 'moneyBag' | 'moneybag' | 'moneyBagStrikethrough' | 'noMoney' | 'moneyBankImport' | 'moneyBanknoteStrikethrough' | 'moneyBill' | 'bill' | 'moneyBuildingBank' | 'bank' | 'moneyCardCheck' | 'moneyCardImport' | 'importCb' | 'moneyCheck' | 'moneyCoins' | 'money' | 'payment' | 'moneyCurrencyDollar' | 'dollar' | 'moneyCurrencyEuro' | 'euro' | 'moneyPaymentCard' | 'bankingCard' | 'moneyPiggyBank' | 'piggyBank' | 'moneyWallet' | 'wallet' | 'officeBriefcase' | 'officeChair' | 'chair' | 'officeCompass' | 'compass' | 'officeElectricalPlug' | 'officePen' | 'edit' | 'editMini' | 'officePenWriting' | 'editWrite' | 'editFrame' | 'officePhone' | 'telephone' | 'officeScissors' | 'cut' | 'officeSupplies' | 'supplies' | 'peopleAdd' | 'userAdd' | 'adduser' | 'peopleGroup' | 'userGroup' | 'group' | 'peopleId' | 'identityCard' | 'userFile' | 'dossierRh' | 'peopleLocked' | 'userRoles' | 'peoplePerson' | 'user' | 'face' | 'peopleRemove' | 'userRemove' | 'peopleSwitch' | 'send2user' | 'userSendTo' | 'peopleTeacher' | 'teacher' | 'pictureGallery' | 'gallery' | 'pictureImage' | 'image' | 'picturePalette' | 'palette' | 'playerPauseCircle' | 'pause' | 'playerPlay' | 'playFull' | 'playerPlayCircle' | 'play' | 'playerStopCircle' | 'stop' | 'priceTag' | 'pricetag' | 'priorityHigh' | 'high' | 'priorityHigher' | 'higher' | 'priorityHighest' | 'highest' | 'priorityLow' | 'low' | 'priorityLower' | 'lower' | 'priorityLowest' | 'lowest' | 'priorityMedium' | 'medium' | 'rotationLeft' | 'rotate' | 'rotationRight' | 'rotateRight' | 'searchMagnifyingGlass' | 'search' | 'searchZoomIn' | 'searchZoomOut' | 'settingsEqualizer' | 'sliders' | 'settingsGear' | 'settings' | 'settingsTools' | 'tools' | 'share' | 'signBan' | 'forbidden' | 'signCancel' | 'cancel' | 'signClose' | 'signConfirm' | 'confirm' | 'tick' | 'tickThin' | 'tickBold' | 'signConstruction' | 'build' | 'signDiscount' | 'discount' | 'signError' | 'error' | 'signHelp' | 'help' | 'helpOutline' | 'signInfo' | 'info' | 'signParking' | 'parking' | 'signShieldError' | 'signShieldSuccess' | 'signShieldWarning' | 'signWebhook' | 'signSuccess' | 'success' | 'signTranslation' | 'signWarning' | 'warning' | 'star' | 'unstared' | 'starFilled' | 'target' | 'thumbDown' | 'thumbDownFilled' | 'thumbUp' | 'thumbUpFilled' | 'thumbnail' | 'timeAlarm' | 'alarm' | 'timeClock' | 'clock' | 'timeFuture' | 'postpone' | 'timeHourglass' | 'timer' | 'timePast' | 'history' | 'timeTimer' | 'chronoOn' | 'timeTimerStrikethrough' | 'overplanned' | 'timeTimesheet' | 'timesheet' | 'transportBus' | 'bus' | 'transportCar' | 'car' | 'transportCarwashStation' | 'cleanCar' | 'transportGazStation' | 'gasoline' | 'transportPlane' | 'plane' | 'transportRocket' | 'rocket' | 'transportSpeedometer' | 'speedometer' | 'mileage' | 'transportSubway' | 'subway' | 'transportTaxi' | 'taxi' | 'transportToll' | 'toll' | 'tollDollar' | 'tollEuro' | 'transportTrain' | 'train' | 'transportTruck' | 'truck' | 'trashDelete' | 'trash' | 'trendingGrowth' | 'evolution' | 'trendingLoss' | 'evolutionDown' | 'weatherCloudy' | 'weatherLightning' | 'weatherStars' | 'weatherStormy' | 'weatherStorm' | 'weatherSunny' | 'weatherSun' | 'weight';
|
|
3
|
+
type LuccaIcon = 'app' | 'apps' | 'nineTiles' | 'mosaic' | 'tiles' | 'appWidget' | 'arrowBackward' | 'backward' | 'arrowBottom' | 'arrowFullSouth' | 'arrowBottomLeft' | 'arrowBottomRight' | 'arrowCenterReduce' | 'arrowChevronBottom' | 'arrowSouth' | 'southArrow' | 'southThinArrow' | 'chevronSouth' | 'chevronBottom' | 'arrowChevronLeft' | 'arrowWest' | 'westArrow' | 'westThinArrow' | 'chevronWest' | 'chevronLeft' | 'arrowChevronRight' | 'arrowEast' | 'eastArrow' | 'eastThinArrow' | 'chevronEast' | 'chevronRight' | 'arrowChevronTop' | 'arrowNorth' | 'northArrow' | 'northThinArrow' | 'chevronNorth' | 'chevronTop' | 'arrowCorner' | 'distribute' | 'arrowCornerExpand' | 'arrowCurvedDownRight' | 'arrowDownload' | 'download' | 'arrowExternal' | 'outside' | 'arrowForward' | 'arrowDouble' | 'forward' | 'arrowLeft' | 'arrowFullWest' | 'arrowLineBottom' | 'arrowLineTop' | 'arrowLogin' | 'login' | 'arrowLogout' | 'logout' | 'arrowOppositeLeftRight' | 'arrowOppositeHorizontal' | 'swap' | 'arrowOppositeRightLeft' | 'arrowOppositeTopBottom' | 'arrowOppositeVertical' | 'creditDebit' | 'arrowReply' | 'reply' | 'arrowReset' | 'refresh' | 'update' | 'arrowRight' | 'arrowFullEast' | 'arrowSync' | 'sync' | 'arrowSyncStrikethrough' | 'syncDisabled' | 'arrowTop' | 'arrowFullNorth' | 'arrowTopLeft' | 'arrowTopRight' | 'arrowUnfoldLess' | 'collapse' | 'arrowUnfoldMore' | 'expand' | 'arrowUpload' | 'upload' | 'cloudUpload' | 'bell' | 'notification' | 'bellStrikethrough' | 'book' | 'bookmark' | 'bookmarkFilled' | 'boxArchive' | 'archive' | 'boxUnarchive' | 'unarchive' | 'branch' | 'bubbleAnswer' | 'answer' | 'bubbleConversation' | 'messenger' | 'bubbleSpeech' | 'chat' | 'talk' | 'dialog' | 'bubbleStars' | 'buildingCompany' | 'building' | 'establishment' | 'buildingHouse' | 'house' | 'home' | 'buildingHouseFilled' | 'houseFilled' | 'homeFill' | 'buildingHouseStarred' | 'houseStarred' | 'homeStarred' | 'buildingStore' | 'store' | 'bulb' | 'lightBulb' | 'calendarChecked' | 'calendarDate' | 'calendar' | 'planning' | 'calendarEdit' | 'planningEdit' | 'calendarPlanning' | 'payPeriod' | 'calendarSettings' | 'planningManage' | 'calendarStrikethrough' | 'calendarOff' | 'capCrown' | 'crown' | 'capGraduate' | 'graduate' | 'school' | 'certificationFailed' | 'certifKo' | 'certificationSuccess' | 'certifOk' | 'certificationWaiting' | 'certifWaiting' | 'chartDonut' | 'donut' | 'donutChart' | 'chartFlow' | 'familyTree' | 'orgTree' | 'chartHorizontalBar' | 'horizontalBarChart' | 'chartLevels' | 'level' | 'chartPie' | 'dashboard' | 'chartSpider' | 'chartVerticalBar' | 'analytics' | 'charts' | 'clipboard' | 'paste' | 'completion' | 'cornersFocus' | 'cornersFullscreenExit' | 'fullscreenExit' | 'cornersFullscreenOpen' | 'fullscreen' | 'dataTable' | 'table' | 'database' | 'databaseArrow' | 'apiSync' | 'deviceCamera' | 'camera' | 'deviceComputer' | 'computer' | 'deviceLaptop' | 'laptop' | 'deviceMobile' | 'deviceMouse' | 'computerMouse' | 'devicePrinter' | 'print' | 'deviceVideo' | 'dotsDrag' | 'drag' | 'emojiSmile' | 'eye' | 'watch' | 'eyeStrikethrough' | 'unwatch' | 'fileContract' | 'contract' | 'fileCopy' | 'copy' | 'fileDocument' | 'file' | 'files' | 'fileExport' | 'fileFolder' | 'folder' | 'fileImport' | 'importDirty' | 'importPristine' | 'filePlus' | 'fileSign' | 'sign' | 'filtersDescending' | 'filterAbstract' | 'filtersFunnel' | 'funnel' | 'filter' | 'filtersSort' | 'sort' | 'reorder' | 'flag' | 'floppyDiskSave' | 'save' | 'foodBirthdayCake' | 'birthday' | 'foodBobun' | 'lunchAlternative' | 'foodBurger' | 'lunch' | 'foodChefHat' | 'restaurant' | 'foodClocheDish' | 'diner' | 'foodCocktail' | 'drink' | 'foodCoffee' | 'coffee' | 'breaktime' | 'foodCroissant' | 'breakfast' | 'foodCutlery' | 'meal' | 'foodSandwich' | 'snack' | 'formatBulletedList' | 'list' | 'formatClipperAttachment' | 'attach' | 'formatCornerUpLeft' | 'formatUndo' | 'formatCornerUpRight' | 'formatRedo' | 'formatLink' | 'formatNumberedList' | 'formatListNb' | 'formatText' | 'formatJustify' | 'formatTextBold' | 'formatBold' | 'formatTextClear' | 'formatClear' | 'formatTextItalic' | 'formatItalic' | 'formatTextSize' | 'formatSize' | 'formatTextStrikethrough' | 'formatStrikethrough' | 'formatTextUnderline' | 'formatUnderlined' | 'formatUnlink' | 'unlink' | 'gift' | 'present' | 'heart' | 'heartFilled' | 'heartStrikethrough' | 'brokenHeart' | 'hotelBed' | 'bed' | 'hotel' | 'hotelHanger' | 'hanger' | 'hotelIron' | 'iron' | 'pressing' | 'hotelLuggage' | 'luggage' | 'jigsawPuzzle' | 'puzzle' | 'journey' | 'milestone' | 'jumpingCc' | 'lucca' | 'laboratoryTestFlask' | 'test' | 'layers' | 'floor' | 'listChecked' | 'listChecklist' | 'listTodo' | 'lockClose' | 'lock' | 'lockKey' | 'key' | 'lockOpen' | 'unlock' | 'mailEnvelope' | 'mail' | 'mailMailbox' | 'mailbox' | 'stamp' | 'postage' | 'mailPaperPlane' | 'send' | 'mapGlobe' | 'globe' | 'mapLocation' | 'location' | 'mapPin' | 'pin' | 'mapPlan' | 'mapTripStep' | 'mathsDivide' | 'divide' | 'mathsEquals' | 'mathsMinus' | 'minus' | 'partial' | 'minimize' | 'mathsMultiplicate' | 'close' | 'thinCross' | 'cross' | 'crossBold' | 'mathsNotEqual' | 'mathsPlus' | 'plus' | 'plusBold' | 'medicalDoctor' | 'menuBurger' | 'menu' | 'hamburgerMenu' | 'menuDots' | 'menuEllipsis' | 'ellipsis' | 'moneyBag' | 'moneybag' | 'moneyBagStrikethrough' | 'noMoney' | 'moneyBankImport' | 'moneyBanknoteStrikethrough' | 'moneyBill' | 'bill' | 'moneyBuildingBank' | 'bank' | 'moneyCardCheck' | 'moneyCardImport' | 'importCb' | 'moneyCheck' | 'moneyCoins' | 'money' | 'payment' | 'moneyCurrencyDollar' | 'dollar' | 'moneyCurrencyEuro' | 'euro' | 'moneyPaymentCard' | 'bankingCard' | 'moneyPaymentCards' | 'moneyPiggyBank' | 'piggyBank' | 'moneyWallet' | 'wallet' | 'officeBriefcase' | 'officeChair' | 'chair' | 'officeCompass' | 'compass' | 'officeElectricalPlug' | 'officeFirstAid' | 'officeMicrophone' | 'officePen' | 'edit' | 'editMini' | 'officePenStar' | 'officePenWriting' | 'editWrite' | 'editFrame' | 'officePhone' | 'telephone' | 'officeScissors' | 'cut' | 'officeSupplies' | 'supplies' | 'peopleAccessibility' | 'peopleAdd' | 'userAdd' | 'adduser' | 'peopleArrowUp' | 'peopleEdit' | 'peopleFolder' | 'peopleGroup' | 'userGroup' | 'group' | 'peopleHouse' | 'peopleId' | 'identityCard' | 'userFile' | 'dossierRh' | 'peopleLocked' | 'userRoles' | 'peoplePerson' | 'user' | 'face' | 'peopleRemove' | 'userRemove' | 'peopleSwitch' | 'send2user' | 'userSendTo' | 'peopleTeacher' | 'teacher' | 'pictureGallery' | 'gallery' | 'pictureImage' | 'image' | 'picturePalette' | 'palette' | 'playerPauseCircle' | 'pause' | 'playerPlay' | 'playFull' | 'playerPlayCircle' | 'play' | 'playerRecording' | 'playerStopCircle' | 'stop' | 'priceTag' | 'pricetag' | 'priorityHigh' | 'high' | 'priorityHigher' | 'higher' | 'priorityHighest' | 'highest' | 'priorityLow' | 'low' | 'priorityLower' | 'lower' | 'priorityLowest' | 'lowest' | 'priorityMedium' | 'medium' | 'rotationLeft' | 'rotate' | 'rotationRight' | 'rotateRight' | 'searchMagnifyingGlass' | 'search' | 'searchZoomIn' | 'searchZoomOut' | 'settingsEqualizer' | 'sliders' | 'settingsGear' | 'settings' | 'settingsTools' | 'tools' | 'share' | 'signAt' | 'signBan' | 'forbidden' | 'signCancel' | 'cancel' | 'signCheckbox' | 'signClose' | 'signConfirm' | 'confirm' | 'tick' | 'tickThin' | 'tickBold' | 'signConstruction' | 'build' | 'signDiscount' | 'discount' | 'signError' | 'error' | 'signHelp' | 'help' | 'helpOutline' | 'signInfo' | 'info' | 'signParking' | 'parking' | 'signShieldError' | 'signShieldSuccess' | 'signShieldWarning' | 'signSuccess' | 'success' | 'signTranslation' | 'signWarning' | 'warning' | 'signWebhook' | 'soundMegaphone' | 'star' | 'unstared' | 'starFilled' | 'target' | 'thumbDown' | 'thumbDownFilled' | 'thumbUp' | 'thumbUpFilled' | 'thumbnail' | 'timeAlarm' | 'alarm' | 'timeClock' | 'clock' | 'timeFuture' | 'postpone' | 'timeHourglass' | 'timer' | 'timePast' | 'history' | 'timeTimer' | 'chronoOn' | 'timeTimerStrikethrough' | 'overplanned' | 'timeTimesheet' | 'timesheet' | 'transportBus' | 'bus' | 'transportCar' | 'car' | 'transportCarElectric' | 'transportCarwashStation' | 'cleanCar' | 'transportGazStation' | 'gasoline' | 'transportMotocycle' | 'transportMotocycleElectric' | 'transportPlane' | 'plane' | 'transportRocket' | 'rocket' | 'transportScooter' | 'transportScooterElectric' | 'transportSpeedometer' | 'speedometer' | 'mileage' | 'transportSubway' | 'subway' | 'transportTaxi' | 'taxi' | 'transportToll' | 'toll' | 'tollDollar' | 'tollEuro' | 'transportTrain' | 'train' | 'transportTruck' | 'truck' | 'trashDelete' | 'trash' | 'trendingGrowth' | 'evolution' | 'trendingLoss' | 'evolutionDown' | 'weatherCloudy' | 'weatherLightning' | 'weatherStars' | 'weatherStormy' | 'weatherStorm' | 'weatherSunny' | 'weatherSun' | 'weight';
|
|
8
4
|
|
|
9
5
|
declare class IconComponent {
|
|
6
|
+
/**
|
|
7
|
+
* Defines icon to display
|
|
8
|
+
*/
|
|
10
9
|
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
10
|
+
/**
|
|
11
|
+
* Information conveyed by the screen reader
|
|
12
|
+
*/
|
|
11
13
|
readonly alt: _angular_core.InputSignal<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Which size should the icon be? XXS to XXL
|
|
16
|
+
*/
|
|
12
17
|
readonly size: _angular_core.InputSignal<"XXS" | "XS" | "S" | "M" | "L" | "XL" | "XXL">;
|
|
18
|
+
/**
|
|
19
|
+
* Changes the color of the icon (inherit by default)
|
|
20
|
+
*/
|
|
13
21
|
readonly color: _angular_core.InputSignal<"error" | "success" | "warning" | "primary" | "secondary" | "product" | "light" | "placeholder" | "inherit">;
|
|
22
|
+
/**
|
|
23
|
+
* Display icon in AI mode
|
|
24
|
+
*/
|
|
14
25
|
readonly AI: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
26
|
readonly iconClasses: _angular_core.Signal<{
|
|
16
27
|
[x: string]: boolean;
|