@4sh/ui-kit 0.1.0
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/LICENSE +201 -0
- package/NOTICE +7 -0
- package/README.md +229 -0
- package/fesm2022/4sh-ui-kit-forms.mjs +501 -0
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-motion.mjs +155 -0
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-overlay.mjs +61 -0
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-theming.mjs +120 -0
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-types.mjs +12 -0
- package/fesm2022/4sh-ui-kit-types.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs +244 -0
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-alert.mjs +160 -0
- package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs +926 -0
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs +34 -0
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs +122 -0
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-badge.mjs +95 -0
- package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs +190 -0
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs +151 -0
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-button.mjs +222 -0
- package/fesm2022/4sh-ui-kit-ui-button.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-card.mjs +164 -0
- package/fesm2022/4sh-ui-kit-ui-card.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs +118 -0
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-chip.mjs +205 -0
- package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs +219 -0
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs +1508 -0
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs +300 -0
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs +148 -0
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-field.mjs +102 -0
- package/fesm2022/4sh-ui-kit-ui-field.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs +568 -0
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-helper.mjs +85 -0
- package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-icon.mjs +98 -0
- package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-image.mjs +201 -0
- package/fesm2022/4sh-ui-kit-ui-image.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs +119 -0
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs +125 -0
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs +234 -0
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs +288 -0
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs +679 -0
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input.mjs +121 -0
- package/fesm2022/4sh-ui-kit-ui-input.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-label.mjs +61 -0
- package/fesm2022/4sh-ui-kit-ui-label.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-link.mjs +147 -0
- package/fesm2022/4sh-ui-kit-ui-link.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-menu.mjs +484 -0
- package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-modal.mjs +555 -0
- package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs +168 -0
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs +245 -0
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-popover.mjs +296 -0
- package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs +124 -0
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-radio.mjs +92 -0
- package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-rating.mjs +185 -0
- package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs +146 -0
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs +386 -0
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-select.mjs +868 -0
- package/fesm2022/4sh-ui-kit-ui-select.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-separator.mjs +77 -0
- package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs +577 -0
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs +81 -0
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-slider.mjs +340 -0
- package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs +132 -0
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs +389 -0
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-table.mjs +1406 -0
- package/fesm2022/4sh-ui-kit-ui-table.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs +503 -0
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tag.mjs +84 -0
- package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs +119 -0
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-toast.mjs +424 -0
- package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs +120 -0
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs +445 -0
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit.mjs +16 -0
- package/fesm2022/4sh-ui-kit.mjs.map +1 -0
- package/package.json +287 -0
- package/styles/base/_base.scss +19 -0
- package/styles/base/_motion.scss +144 -0
- package/styles/base/_typography.scss +99 -0
- package/styles/generated/_tokens-breakpoint.scss +8 -0
- package/styles/generated/_tokens-metrics.scss +37 -0
- package/styles/generated/_tokens-primitives.scss +284 -0
- package/styles/generated/_tokens-responsive.scss +99 -0
- package/styles/generated/_tokens-semantics.scss +1274 -0
- package/styles/generated/_tokens-styles.scss +35 -0
- package/styles/generated/_tokens-transitions.scss +11 -0
- package/styles/generated/_tokens-typography.scss +14 -0
- package/styles/generated/_tokens.scss +10 -0
- package/styles/index.scss +25 -0
- package/styles/settings/_ui-config.scss +67 -0
- package/styles/utils/_functions.scss +67 -0
- package/styles/utils/_helpers.scss +129 -0
- package/styles/utils/_mixins.scss +186 -0
- package/styles/utils/_motion.scss +47 -0
- package/styles/utils/_overlay.scss +26 -0
- package/styles/utils.scss +15 -0
- package/styles.css +1 -0
- package/types/4sh-ui-kit-forms.d.ts +259 -0
- package/types/4sh-ui-kit-motion.d.ts +111 -0
- package/types/4sh-ui-kit-overlay.d.ts +31 -0
- package/types/4sh-ui-kit-theming.d.ts +54 -0
- package/types/4sh-ui-kit-types.d.ts +13 -0
- package/types/4sh-ui-kit-ui-accordion.d.ts +140 -0
- package/types/4sh-ui-kit-ui-alert.d.ts +89 -0
- package/types/4sh-ui-kit-ui-autocomplete.d.ts +411 -0
- package/types/4sh-ui-kit-ui-avatar-group.d.ts +17 -0
- package/types/4sh-ui-kit-ui-avatar.d.ts +55 -0
- package/types/4sh-ui-kit-ui-badge.d.ts +38 -0
- package/types/4sh-ui-kit-ui-breadcrumb.d.ts +131 -0
- package/types/4sh-ui-kit-ui-button-split.d.ts +102 -0
- package/types/4sh-ui-kit-ui-button.d.ts +91 -0
- package/types/4sh-ui-kit-ui-card.d.ts +102 -0
- package/types/4sh-ui-kit-ui-checkbox.d.ts +54 -0
- package/types/4sh-ui-kit-ui-chip.d.ts +114 -0
- package/types/4sh-ui-kit-ui-context-menu.d.ts +105 -0
- package/types/4sh-ui-kit-ui-datepicker.d.ts +539 -0
- package/types/4sh-ui-kit-ui-drawer.d.ts +147 -0
- package/types/4sh-ui-kit-ui-empty-state.d.ts +93 -0
- package/types/4sh-ui-kit-ui-field.d.ts +53 -0
- package/types/4sh-ui-kit-ui-file-upload.d.ts +268 -0
- package/types/4sh-ui-kit-ui-helper.d.ts +46 -0
- package/types/4sh-ui-kit-ui-icon.d.ts +69 -0
- package/types/4sh-ui-kit-ui-image.d.ts +88 -0
- package/types/4sh-ui-kit-ui-input-group.d.ts +54 -0
- package/types/4sh-ui-kit-ui-input-mask.d.ts +63 -0
- package/types/4sh-ui-kit-ui-input-number.d.ts +96 -0
- package/types/4sh-ui-kit-ui-input-otp.d.ts +130 -0
- package/types/4sh-ui-kit-ui-input-tags.d.ts +350 -0
- package/types/4sh-ui-kit-ui-input.d.ts +78 -0
- package/types/4sh-ui-kit-ui-label.d.ts +36 -0
- package/types/4sh-ui-kit-ui-link.d.ts +72 -0
- package/types/4sh-ui-kit-ui-menu.d.ts +235 -0
- package/types/4sh-ui-kit-ui-modal.d.ts +241 -0
- package/types/4sh-ui-kit-ui-nudger.d.ts +79 -0
- package/types/4sh-ui-kit-ui-paginator.d.ts +150 -0
- package/types/4sh-ui-kit-ui-popover.d.ts +125 -0
- package/types/4sh-ui-kit-ui-progress-bar.d.ts +82 -0
- package/types/4sh-ui-kit-ui-radio.d.ts +44 -0
- package/types/4sh-ui-kit-ui-rating.d.ts +90 -0
- package/types/4sh-ui-kit-ui-read-only.d.ts +70 -0
- package/types/4sh-ui-kit-ui-segment-control.d.ts +184 -0
- package/types/4sh-ui-kit-ui-select.d.ts +392 -0
- package/types/4sh-ui-kit-ui-separator.d.ts +43 -0
- package/types/4sh-ui-kit-ui-sidebar.d.ts +358 -0
- package/types/4sh-ui-kit-ui-skeleton.d.ts +52 -0
- package/types/4sh-ui-kit-ui-slider.d.ts +127 -0
- package/types/4sh-ui-kit-ui-spinner.d.ts +67 -0
- package/types/4sh-ui-kit-ui-stepper.d.ts +220 -0
- package/types/4sh-ui-kit-ui-table.d.ts +570 -0
- package/types/4sh-ui-kit-ui-tabs.d.ts +225 -0
- package/types/4sh-ui-kit-ui-tag.d.ts +46 -0
- package/types/4sh-ui-kit-ui-textarea.d.ts +61 -0
- package/types/4sh-ui-kit-ui-toast.d.ts +247 -0
- package/types/4sh-ui-kit-ui-toggle.d.ts +67 -0
- package/types/4sh-ui-kit-ui-tooltip.d.ts +167 -0
- package/types/4sh-ui-kit.d.ts +4 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, computed, isDevMode, effect, Component } from '@angular/core';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* ui-tag — informative label / status pill.
|
|
7
|
+
*
|
|
8
|
+
* design system: `level` × `subLevel` (informative color families) instead of a
|
|
9
|
+
* flat `severity`, an optional icon on each side, and a pill/square shape.
|
|
10
|
+
*
|
|
11
|
+
* Fully token-driven (like `ui-badge`) — the color families are the built-in
|
|
12
|
+
* customization surface; no per-component CSS hooks.
|
|
13
|
+
*/
|
|
14
|
+
class UiTag {
|
|
15
|
+
constructor() {
|
|
16
|
+
/** Text content of the tag. */
|
|
17
|
+
this.label = input(/* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
19
|
+
/** Color family. */
|
|
20
|
+
this.level = input('default', /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
|
|
22
|
+
/** Intensity: high (solid) or low (subtle). */
|
|
23
|
+
this.subLevel = input('high', /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []));
|
|
25
|
+
/** Size. */
|
|
26
|
+
this.size = input('default', /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
28
|
+
/** FontAwesome name of the leading icon (optional). */
|
|
29
|
+
this.iconLeft = input(/* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [undefined, { debugName: "iconLeft" }] : /* istanbul ignore next */ []));
|
|
31
|
+
/** FontAwesome name of the trailing icon (optional). */
|
|
32
|
+
this.iconRight = input(/* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [undefined, { debugName: "iconRight" }] : /* istanbul ignore next */ []));
|
|
34
|
+
/** Pill shape when true (default); rounded-rectangle when false. */
|
|
35
|
+
this.rounded = input(true, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
36
|
+
/** Accessible name (recommended when the tag has no textual label). */
|
|
37
|
+
this.ariaLabel = input(/* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
39
|
+
/** @ignore There is a textual label. */
|
|
40
|
+
this.hasLabel = computed(() => !!this.label()?.length, /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "hasLabel" }] : /* istanbul ignore next */ []));
|
|
42
|
+
/** @ignore At least one icon and no label. */
|
|
43
|
+
this.isIconOnly = computed(() => (!!this.iconLeft() || !!this.iconRight()) && !this.hasLabel(), /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "isIconOnly" }] : /* istanbul ignore next */ []));
|
|
45
|
+
/** @ignore Icon size derived from the tag size. */
|
|
46
|
+
this.iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'md'), /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/** @ignore */
|
|
49
|
+
this.classes = computed(() => {
|
|
50
|
+
const c = ['ui-tag', `_${this.level()}`, `_${this.subLevel()}`];
|
|
51
|
+
if (this.size() !== 'default')
|
|
52
|
+
c.push(`_${this.size()}`);
|
|
53
|
+
if (!this.rounded())
|
|
54
|
+
c.push('_square');
|
|
55
|
+
return c.join(' ');
|
|
56
|
+
}, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
58
|
+
// A11y safeguard: an icon-only tag needs an accessible name.
|
|
59
|
+
if (isDevMode()) {
|
|
60
|
+
effect(() => {
|
|
61
|
+
if (this.isIconOnly() && !this.ariaLabel()) {
|
|
62
|
+
console.warn('[ui-tag] Tag has no text: provide `label` or `ariaLabel`.');
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
68
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiTag, isStandalone: true, selector: "ui-tag", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n", styles: [".ui-tag{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--units-sm);border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--size-components-2xs);min-width:var(--size-components-2xs);gap:var(--units-sm);font-size:var(--size-typography-text-default)}.ui-tag-icon{line-height:0;flex:none}.ui-tag-label{display:inline-block}.ui-tag._square{border-radius:var(--radius-sm)}.ui-tag._small{height:22px;min-width:22px;gap:var(--units-xs);font-size:var(--size-typography-text-md)}.ui-tag._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-tag._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-tag._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-tag._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-tag._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-tag._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-tag._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-tag._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-tag._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-tag._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTag, decorators: [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{ selector: 'ui-tag', imports: [UiIcon], template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n", styles: [".ui-tag{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--units-sm);border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--size-components-2xs);min-width:var(--size-components-2xs);gap:var(--units-sm);font-size:var(--size-typography-text-default)}.ui-tag-icon{line-height:0;flex:none}.ui-tag-label{display:inline-block}.ui-tag._square{border-radius:var(--radius-sm)}.ui-tag._small{height:22px;min-width:22px;gap:var(--units-xs);font-size:var(--size-typography-text-md)}.ui-tag._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-tag._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-tag._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-tag._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-tag._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-tag._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-tag._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-tag._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-tag._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-tag._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
|
|
73
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
74
|
+
|
|
75
|
+
/*
|
|
76
|
+
* Public API Surface of ui-kit/ui-tag
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Generated bundle index. Do not edit.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
export { UiTag };
|
|
84
|
+
//# sourceMappingURL=4sh-ui-kit-ui-tag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-ui-tag.mjs","sources":["../../../projects/ui-kit/ui-tag/src/lib/ui-tag.ts","../../../projects/ui-kit/ui-tag/src/lib/ui-tag.html","../../../projects/ui-kit/ui-tag/src/public-api.ts","../../../projects/ui-kit/ui-tag/src/4sh-ui-kit-ui-tag.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n input,\n isDevMode,\n} from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type TagSize = 'default' | 'small';\n\n/**\n * ui-tag — informative label / status pill.\n *\n * design system: `level` × `subLevel` (informative color families) instead of a\n * flat `severity`, an optional icon on each side, and a pill/square shape.\n *\n * Fully token-driven (like `ui-badge`) — the color families are the built-in\n * customization surface; no per-component CSS hooks.\n */\n@Component({\n selector: 'ui-tag',\n imports: [UiIcon],\n templateUrl: './ui-tag.html',\n styleUrl: './ui-tag.scss',\n})\nexport class UiTag {\n /** Text content of the tag. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Size. */\n size = input<TagSize>('default');\n /** FontAwesome name of the leading icon (optional). */\n iconLeft = input<string>();\n /** FontAwesome name of the trailing icon (optional). */\n iconRight = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Accessible name (recommended when the tag has no textual label). */\n ariaLabel = input<string>();\n\n constructor() {\n // A11y safeguard: an icon-only tag needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-tag] Tag has no text: provide `label` or `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore At least one icon and no label. */\n protected readonly isIconOnly = computed(\n () => (!!this.iconLeft() || !!this.iconRight()) && !this.hasLabel(),\n );\n\n /** @ignore Icon size derived from the tag size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tag', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-tag\n */\n\nexport * from './lib/ui-tag';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAaA;;;;;;;;AAQG;MAOU,KAAK,CAAA;AAkBhB,IAAA,WAAA,GAAA;;AAhBA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KA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KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,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,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BlB,wYAWA,EAAA,MAAA,EAAA,CAAA,okFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDaY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,KAAK,EAAA,UAAA,EAAA,CAAA;kBANjB,SAAS;+BACE,QAAQ,EAAA,OAAA,EACT,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,wYAAA,EAAA,MAAA,EAAA,CAAA,okFAAA,CAAA,EAAA;;;AExBnB;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, output, viewChild, computed, effect, forwardRef, Component } from '@angular/core';
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { BaseFormField } from '@4sh/ui-kit/forms';
|
|
5
|
+
import { UiField } from '@4sh/ui-kit/ui-field';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* ui-textarea — headless multiline text field, built on the `ui-field` shell
|
|
9
|
+
* (label + box + helper) in **multiline** mode + a native `<textarea>`.
|
|
10
|
+
*
|
|
11
|
+
* The native `<textarea>` provides the resize grip (`resize: vertical`, the
|
|
12
|
+
* Figma "resizer" affordance). `autoResize` grows the box with the content and
|
|
13
|
+
* disables the manual grip.
|
|
14
|
+
*
|
|
15
|
+
* Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).
|
|
16
|
+
*/
|
|
17
|
+
class UiTextarea extends BaseFormField {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
/** Native placeholder. */
|
|
21
|
+
this.placeholder = input(/* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
23
|
+
/** Initial number of visible text rows. */
|
|
24
|
+
this.rows = input(3, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
26
|
+
/** Native maxlength (caps the character count). */
|
|
27
|
+
this.maxlength = input(/* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [undefined, { debugName: "maxlength" }] : /* istanbul ignore next */ []));
|
|
29
|
+
/** Grows the box height with the content (disables the manual resize grip). */
|
|
30
|
+
this.autoResize = input(false, { ...(ngDevMode ? { debugName: "autoResize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
31
|
+
/** Manual resize axis (`vertical` by default; ignored when `autoResize`). */
|
|
32
|
+
this.resize = input('vertical', /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []));
|
|
34
|
+
/** Shows a character counter under the field (`count` or `count / maxlength`). */
|
|
35
|
+
this.showCount = input(false, { ...(ngDevMode ? { debugName: "showCount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
36
|
+
/** Emitted on each input with the new value. */
|
|
37
|
+
this.valueChange = output();
|
|
38
|
+
/** Emitted when the textarea receives focus. */
|
|
39
|
+
this.textareaFocus = output();
|
|
40
|
+
/** Emitted when the textarea loses focus. */
|
|
41
|
+
this.textareaBlur = output();
|
|
42
|
+
/** @ignore */
|
|
43
|
+
this.textareaEl = viewChild('textareaEl', /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "textareaEl" }] : /* istanbul ignore next */ []));
|
|
45
|
+
/** @ignore Effective resize axis (`none` while auto-resizing). */
|
|
46
|
+
this.effectiveResize = computed(() => (this.autoResize() ? 'none' : this.resize()), /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "effectiveResize" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/** @ignore Current character count. */
|
|
49
|
+
this.charCount = computed(() => (this.modelValue() ?? '').length, /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "charCount" }] : /* istanbul ignore next */ []));
|
|
51
|
+
/** @ignore Over the maxlength (only reachable programmatically). */
|
|
52
|
+
this.overLimit = computed(() => {
|
|
53
|
+
const max = this.maxlength();
|
|
54
|
+
return max != null && this.charCount() > max;
|
|
55
|
+
}, /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "overLimit" }] : /* istanbul ignore next */ []));
|
|
57
|
+
/** @ignore id of the character counter (for `aria-describedby`). */
|
|
58
|
+
this.countId = computed(() => `${this.resolvedId()}-count`, /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "countId" }] : /* istanbul ignore next */ []));
|
|
60
|
+
/** @ignore `aria-describedby` combines the message and the counter, whichever are shown. */
|
|
61
|
+
this.describedByIds = computed(() => {
|
|
62
|
+
const ids = [this.displayMessage() ? this.messageId() : null, this.showCount() ? this.countId() : null].filter(Boolean);
|
|
63
|
+
return ids.length ? ids.join(' ') : null;
|
|
64
|
+
}, /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "describedByIds" }] : /* istanbul ignore next */ []));
|
|
66
|
+
// Keep the height in sync when the value changes programmatically (forms).
|
|
67
|
+
effect(() => {
|
|
68
|
+
this.modelValue();
|
|
69
|
+
if (this.autoResize())
|
|
70
|
+
this.resizeToContent();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/** Focuses the textarea. */
|
|
74
|
+
focus(options) {
|
|
75
|
+
this.textareaEl()?.nativeElement.focus(options);
|
|
76
|
+
}
|
|
77
|
+
/** @ignore Input: single source of the value (view → form). */
|
|
78
|
+
onInput() {
|
|
79
|
+
const el = this.textareaEl()?.nativeElement;
|
|
80
|
+
if (!el)
|
|
81
|
+
return;
|
|
82
|
+
const value = el.value;
|
|
83
|
+
this.modelValue.set(value);
|
|
84
|
+
this.emitChange(value);
|
|
85
|
+
this.valueChange.emit(value);
|
|
86
|
+
if (this.autoResize())
|
|
87
|
+
this.resizeToContent();
|
|
88
|
+
}
|
|
89
|
+
/** @ignore */
|
|
90
|
+
onBlur(event) {
|
|
91
|
+
this.emitTouch();
|
|
92
|
+
this.textareaBlur.emit(event);
|
|
93
|
+
}
|
|
94
|
+
/** @ignore Recomputes the height to fit the content. */
|
|
95
|
+
resizeToContent() {
|
|
96
|
+
const el = this.textareaEl()?.nativeElement;
|
|
97
|
+
if (!el)
|
|
98
|
+
return;
|
|
99
|
+
el.style.height = 'auto';
|
|
100
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
101
|
+
}
|
|
102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTextarea, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
103
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiTextarea, isStandalone: true, selector: "ui-textarea", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, autoResize: { classPropertyName: "autoResize", publicName: "autoResize", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", textareaFocus: "textareaFocus", textareaBlur: "textareaBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiTextarea), multi: true }], viewQueries: [{ propertyName: "textareaEl", first: true, predicate: ["textareaEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n multiline\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [hasFooter]=\"showCount()\"\n>\n <textarea\n #textareaEl\n class=\"ui-textarea-native\"\n [class._small]=\"size() === 'small'\"\n [class._auto-resize]=\"autoResize()\"\n [style.resize]=\"effectiveResize()\"\n [id]=\"resolvedId()\"\n [value]=\"displayValue()\"\n [rows]=\"rows()\"\n [placeholder]=\"placeholder() ?? ''\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"describedByIds()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"textareaFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n ></textarea>\n\n @if (showCount()) {\n <span\n uiFieldFooter\n class=\"ui-textarea-count\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n [class._over]=\"overLimit()\"\n [attr.id]=\"countId()\"\n >\n {{ charCount() }}@if (maxlength(); as max) { / {{ max }}}\n </span>\n }\n</ui-field>\n", styles: [".ui-textarea-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-textarea-native:first-child{padding-inline-start:var(--units-md)}.ui-textarea-native:last-child{padding-inline-end:var(--units-md)}.ui-textarea-native::placeholder{color:var(--form-low-content-default);opacity:1}.ui-textarea-native:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-textarea-native{box-sizing:border-box;width:100%;min-height:var(--size-components-sm);line-height:1.5;padding-block:calc((var(--size-components-sm) - 1.5em) / 2);max-width:100%}.ui-textarea-native._small{min-height:var(--size-components-sm);padding-block:calc((var(--size-components-sm) - 1.5em) / 2);font-size:var(--size-typography-text-md)}.ui-textarea-native._auto-resize{overflow:hidden}.ui-textarea-count{margin-left:auto;flex-shrink:0;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-low-content-default);-webkit-user-select:none;user-select:none}.ui-textarea-count._small{font-size:var(--size-typography-text-sm)}.ui-textarea-count._over{color:var(--form-error-content-default)}.ui-textarea-count._disabled{color:var(--form-high-content-disabled)}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }] }); }
|
|
104
|
+
}
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTextarea, decorators: [{
|
|
106
|
+
type: Component,
|
|
107
|
+
args: [{ selector: 'ui-textarea', imports: [UiField], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiTextarea), multi: true }], template: "<ui-field\n multiline\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [hasFooter]=\"showCount()\"\n>\n <textarea\n #textareaEl\n class=\"ui-textarea-native\"\n [class._small]=\"size() === 'small'\"\n [class._auto-resize]=\"autoResize()\"\n [style.resize]=\"effectiveResize()\"\n [id]=\"resolvedId()\"\n [value]=\"displayValue()\"\n [rows]=\"rows()\"\n [placeholder]=\"placeholder() ?? ''\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"describedByIds()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"textareaFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n ></textarea>\n\n @if (showCount()) {\n <span\n uiFieldFooter\n class=\"ui-textarea-count\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n [class._over]=\"overLimit()\"\n [attr.id]=\"countId()\"\n >\n {{ charCount() }}@if (maxlength(); as max) { / {{ max }}}\n </span>\n }\n</ui-field>\n", styles: [".ui-textarea-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-textarea-native:first-child{padding-inline-start:var(--units-md)}.ui-textarea-native:last-child{padding-inline-end:var(--units-md)}.ui-textarea-native::placeholder{color:var(--form-low-content-default);opacity:1}.ui-textarea-native:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-textarea-native{box-sizing:border-box;width:100%;min-height:var(--size-components-sm);line-height:1.5;padding-block:calc((var(--size-components-sm) - 1.5em) / 2);max-width:100%}.ui-textarea-native._small{min-height:var(--size-components-sm);padding-block:calc((var(--size-components-sm) - 1.5em) / 2);font-size:var(--size-typography-text-md)}.ui-textarea-native._auto-resize{overflow:hidden}.ui-textarea-count{margin-left:auto;flex-shrink:0;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-low-content-default);-webkit-user-select:none;user-select:none}.ui-textarea-count._small{font-size:var(--size-typography-text-sm)}.ui-textarea-count._over{color:var(--form-error-content-default)}.ui-textarea-count._disabled{color:var(--form-high-content-disabled)}\n"] }]
|
|
108
|
+
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], autoResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoResize", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], textareaFocus: [{ type: i0.Output, args: ["textareaFocus"] }], textareaBlur: [{ type: i0.Output, args: ["textareaBlur"] }], textareaEl: [{ type: i0.ViewChild, args: ['textareaEl', { isSignal: true }] }] } });
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
* Public API Surface of ui-kit/ui-textarea
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Generated bundle index. Do not edit.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
export { UiTextarea };
|
|
119
|
+
//# sourceMappingURL=4sh-ui-kit-ui-textarea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-ui-textarea.mjs","sources":["../../../projects/ui-kit/ui-textarea/src/lib/ui-textarea.ts","../../../projects/ui-kit/ui-textarea/src/lib/ui-textarea.html","../../../projects/ui-kit/ui-textarea/src/public-api.ts","../../../projects/ui-kit/ui-textarea/src/4sh-ui-kit-ui-textarea.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/ui-field';\n\n/** Which axes the user can manually resize (ignored when `autoResize` is on). */\nexport type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';\n\n/**\n * ui-textarea — headless multiline text field, built on the `ui-field` shell\n * (label + box + helper) in **multiline** mode + a native `<textarea>`.\n *\n * The native `<textarea>` provides the resize grip (`resize: vertical`, the\n * Figma \"resizer\" affordance). `autoResize` grows the box with the content and\n * disables the manual grip.\n *\n * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).\n */\n@Component({\n selector: 'ui-textarea',\n imports: [UiField],\n templateUrl: './ui-textarea.html',\n styleUrl: './ui-textarea.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiTextarea), multi: true }],\n})\nexport class UiTextarea extends BaseFormField<string> {\n /** Native placeholder. */\n placeholder = input<string>();\n /** Initial number of visible text rows. */\n rows = input<number>(3);\n /** Native maxlength (caps the character count). */\n maxlength = input<number>();\n /** Grows the box height with the content (disables the manual resize grip). */\n autoResize = input(false, { transform: booleanAttribute });\n /** Manual resize axis (`vertical` by default; ignored when `autoResize`). */\n resize = input<TextareaResize>('vertical');\n /** Shows a character counter under the field (`count` or `count / maxlength`). */\n showCount = input(false, { transform: booleanAttribute });\n\n /** Emitted on each input with the new value. */\n valueChange = output<string>();\n /** Emitted when the textarea receives focus. */\n textareaFocus = output<FocusEvent>();\n /** Emitted when the textarea loses focus. */\n textareaBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly textareaEl = viewChild<ElementRef<HTMLTextAreaElement>>('textareaEl');\n\n /** @ignore Effective resize axis (`none` while auto-resizing). */\n protected readonly effectiveResize = computed<TextareaResize>(() => (this.autoResize() ? 'none' : this.resize()));\n /** @ignore Current character count. */\n protected readonly charCount = computed(() => (this.modelValue() ?? '').length);\n /** @ignore Over the maxlength (only reachable programmatically). */\n protected readonly overLimit = computed(() => {\n const max = this.maxlength();\n return max != null && this.charCount() > max;\n });\n /** @ignore id of the character counter (for `aria-describedby`). */\n protected readonly countId = computed(() => `${this.resolvedId()}-count`);\n /** @ignore `aria-describedby` combines the message and the counter, whichever are shown. */\n protected readonly describedByIds = computed(() => {\n const ids = [this.displayMessage() ? this.messageId() : null, this.showCount() ? this.countId() : null].filter(\n Boolean,\n );\n return ids.length ? ids.join(' ') : null;\n });\n\n constructor() {\n super();\n // Keep the height in sync when the value changes programmatically (forms).\n effect(() => {\n this.modelValue();\n if (this.autoResize()) this.resizeToContent();\n });\n }\n\n /** Focuses the textarea. */\n focus(options?: FocusOptions): void {\n this.textareaEl()?.nativeElement.focus(options);\n }\n\n /** @ignore Input: single source of the value (view → form). */\n protected onInput(): void {\n const el = this.textareaEl()?.nativeElement;\n if (!el) return;\n const value = el.value;\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n if (this.autoResize()) this.resizeToContent();\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.textareaBlur.emit(event);\n }\n\n /** @ignore Recomputes the height to fit the content. */\n private resizeToContent(): void {\n const el = this.textareaEl()?.nativeElement;\n if (!el) return;\n el.style.height = 'auto';\n el.style.height = `${el.scrollHeight}px`;\n }\n}\n","<ui-field\n multiline\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [hasFooter]=\"showCount()\"\n>\n <textarea\n #textareaEl\n class=\"ui-textarea-native\"\n [class._small]=\"size() === 'small'\"\n [class._auto-resize]=\"autoResize()\"\n [style.resize]=\"effectiveResize()\"\n [id]=\"resolvedId()\"\n [value]=\"displayValue()\"\n [rows]=\"rows()\"\n [placeholder]=\"placeholder() ?? ''\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"describedByIds()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"textareaFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n ></textarea>\n\n @if (showCount()) {\n <span\n uiFieldFooter\n class=\"ui-textarea-count\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n [class._over]=\"overLimit()\"\n [attr.id]=\"countId()\"\n >\n {{ charCount() }}@if (maxlength(); as max) { / {{ max }}}\n </span>\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-textarea\n */\n\nexport * from './lib/ui-textarea';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAkBA;;;;;;;;;AASG;AAQG,MAAO,UAAW,SAAQ,aAAqB,CAAA;AA2CnD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;AA1CT,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAE7B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,CAAC;iFAAC;;A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