@cdevhub/ngx-tw 0.2.0 → 0.3.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/README.md +264 -49
- package/fesm2022/cdevhub-ngx-tw-accordion.mjs +11 -7
- package/fesm2022/cdevhub-ngx-tw-accordion.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-alert.mjs +43 -29
- package/fesm2022/cdevhub-ngx-tw-alert.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-aspect-ratio.mjs +103 -0
- package/fesm2022/cdevhub-ngx-tw-aspect-ratio.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-avatar.mjs +56 -31
- package/fesm2022/cdevhub-ngx-tw-avatar.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-badge.mjs +61 -35
- package/fesm2022/cdevhub-ngx-tw-badge.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-breadcrumbs.mjs +154 -93
- package/fesm2022/cdevhub-ngx-tw-breadcrumbs.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-button.mjs +35 -22
- package/fesm2022/cdevhub-ngx-tw-button.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-calendar-luxon.mjs +3 -3
- package/fesm2022/cdevhub-ngx-tw-calendar-luxon.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-calendar.mjs +416 -216
- package/fesm2022/cdevhub-ngx-tw-calendar.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-card.mjs +33 -24
- package/fesm2022/cdevhub-ngx-tw-card.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-carousel.mjs +152 -81
- package/fesm2022/cdevhub-ngx-tw-carousel.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-checkbox.mjs +99 -47
- package/fesm2022/cdevhub-ngx-tw-checkbox.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-code-block.mjs +42 -29
- package/fesm2022/cdevhub-ngx-tw-code-block.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-collapsible.mjs +46 -29
- package/fesm2022/cdevhub-ngx-tw-collapsible.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-combobox.mjs +205 -110
- package/fesm2022/cdevhub-ngx-tw-combobox.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-command-palette.mjs +141 -74
- package/fesm2022/cdevhub-ngx-tw-command-palette.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-core.mjs +16 -11
- package/fesm2022/cdevhub-ngx-tw-core.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-date-picker.mjs +395 -149
- package/fesm2022/cdevhub-ngx-tw-date-picker.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-date-range-picker.mjs +305 -150
- package/fesm2022/cdevhub-ngx-tw-date-range-picker.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-dialog.mjs +56 -43
- package/fesm2022/cdevhub-ngx-tw-dialog.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-empty-state.mjs +51 -33
- package/fesm2022/cdevhub-ngx-tw-empty-state.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-file-upload.mjs +905 -0
- package/fesm2022/cdevhub-ngx-tw-file-upload.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-flip-card.mjs +49 -26
- package/fesm2022/cdevhub-ngx-tw-flip-card.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-form-field.mjs +133 -74
- package/fesm2022/cdevhub-ngx-tw-form-field.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-icon-lucide.mjs +2 -2
- package/fesm2022/cdevhub-ngx-tw-icon-lucide.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-icon.mjs +28 -17
- package/fesm2022/cdevhub-ngx-tw-icon.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-input.mjs +37 -21
- package/fesm2022/cdevhub-ngx-tw-input.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-item.mjs +33 -24
- package/fesm2022/cdevhub-ngx-tw-item.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-menu.mjs +63 -48
- package/fesm2022/cdevhub-ngx-tw-menu.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-number-input.mjs +622 -0
- package/fesm2022/cdevhub-ngx-tw-number-input.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-paginator.mjs +142 -72
- package/fesm2022/cdevhub-ngx-tw-paginator.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-popover.mjs +101 -46
- package/fesm2022/cdevhub-ngx-tw-popover.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-progress-bar.mjs +57 -30
- package/fesm2022/cdevhub-ngx-tw-progress-bar.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-radio.mjs +108 -57
- package/fesm2022/cdevhub-ngx-tw-radio.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-segmented-control.mjs +46 -26
- package/fesm2022/cdevhub-ngx-tw-segmented-control.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-select.mjs +227 -122
- package/fesm2022/cdevhub-ngx-tw-select.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-separator.mjs +21 -12
- package/fesm2022/cdevhub-ngx-tw-separator.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-sheet.mjs +58 -44
- package/fesm2022/cdevhub-ngx-tw-sheet.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-skeleton.mjs +25 -14
- package/fesm2022/cdevhub-ngx-tw-skeleton.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-slider.mjs +155 -79
- package/fesm2022/cdevhub-ngx-tw-slider.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-sort.mjs +47 -25
- package/fesm2022/cdevhub-ngx-tw-sort.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-spinner.mjs +29 -16
- package/fesm2022/cdevhub-ngx-tw-spinner.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-split.mjs +72 -42
- package/fesm2022/cdevhub-ngx-tw-split.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-stat.mjs +107 -64
- package/fesm2022/cdevhub-ngx-tw-stat.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-stepper.mjs +113 -47
- package/fesm2022/cdevhub-ngx-tw-stepper.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-switch.mjs +61 -32
- package/fesm2022/cdevhub-ngx-tw-switch.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tab-nav.mjs +88 -42
- package/fesm2022/cdevhub-ngx-tw-tab-nav.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-table.mjs +266 -118
- package/fesm2022/cdevhub-ngx-tw-table.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tabs.mjs +102 -52
- package/fesm2022/cdevhub-ngx-tw-tabs.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tags-input.mjs +798 -0
- package/fesm2022/cdevhub-ngx-tw-tags-input.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-textarea.mjs +16 -8
- package/fesm2022/cdevhub-ngx-tw-textarea.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-theme.mjs +22 -14
- package/fesm2022/cdevhub-ngx-tw-theme.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-time-picker.mjs +243 -95
- package/fesm2022/cdevhub-ngx-tw-time-picker.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-timeline.mjs +149 -82
- package/fesm2022/cdevhub-ngx-tw-timeline.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-toast.mjs +100 -55
- package/fesm2022/cdevhub-ngx-tw-toast.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tooltip.mjs +50 -28
- package/fesm2022/cdevhub-ngx-tw-tooltip.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-transfer.mjs +1129 -0
- package/fesm2022/cdevhub-ngx-tw-transfer.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-tree.mjs +554 -0
- package/fesm2022/cdevhub-ngx-tw-tree.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw.mjs +7 -0
- package/fesm2022/cdevhub-ngx-tw.mjs.map +1 -1
- package/package.json +45 -17
- package/theme/_dark.css +16 -12
- package/theme/_semantic.css +3 -2
- package/theme/index.css +10 -2
- package/types/cdevhub-ngx-tw-aspect-ratio.d.ts +40 -0
- package/types/cdevhub-ngx-tw-calendar.d.ts +39 -8
- package/types/cdevhub-ngx-tw-code-block.d.ts +8 -7
- package/types/cdevhub-ngx-tw-command-palette.d.ts +7 -0
- package/types/cdevhub-ngx-tw-date-picker.d.ts +36 -10
- package/types/cdevhub-ngx-tw-file-upload.d.ts +250 -0
- package/types/cdevhub-ngx-tw-form-field.d.ts +22 -3
- package/types/cdevhub-ngx-tw-icon-lucide.d.ts +21 -3
- package/types/cdevhub-ngx-tw-number-input.d.ts +130 -0
- package/types/cdevhub-ngx-tw-popover.d.ts +8 -0
- package/types/cdevhub-ngx-tw-select.d.ts +1 -1
- package/types/cdevhub-ngx-tw-stepper.d.ts +30 -2
- package/types/cdevhub-ngx-tw-tab-nav.d.ts +8 -0
- package/types/cdevhub-ngx-tw-table.d.ts +30 -1
- package/types/cdevhub-ngx-tw-tabs.d.ts +8 -0
- package/types/cdevhub-ngx-tw-tags-input.d.ts +217 -0
- package/types/cdevhub-ngx-tw-time-picker.d.ts +31 -6
- package/types/cdevhub-ngx-tw-toast.d.ts +1 -1
- package/types/cdevhub-ngx-tw-transfer.d.ts +330 -0
- package/types/cdevhub-ngx-tw-tree.d.ts +189 -0
- package/types/cdevhub-ngx-tw.d.ts +7 -0
|
@@ -59,26 +59,35 @@ const separatorVariants = tv({
|
|
|
59
59
|
});
|
|
60
60
|
class SeparatorComponent {
|
|
61
61
|
/** Controls layout direction. Defaults to `'horizontal'`. */
|
|
62
|
-
orientation = input('horizontal',
|
|
62
|
+
orientation = input('horizontal', /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
63
64
|
/** Controls the line style. Defaults to `'solid'`. */
|
|
64
|
-
variant = input('solid',
|
|
65
|
+
variant = input('solid', /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
65
67
|
/** Controls line thickness. Defaults to `'thin'`. */
|
|
66
|
-
weight = input('thin',
|
|
68
|
+
weight = input('thin', /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "weight" }] : /* istanbul ignore next */ []));
|
|
67
70
|
/** Sets the semantic color of the line. Defaults to `'neutral'`. */
|
|
68
|
-
color = input('neutral',
|
|
71
|
+
color = input('neutral', /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
69
73
|
/** When true, hides the separator from assistive technology. Defaults to `false`. */
|
|
70
|
-
decorative = input(false,
|
|
74
|
+
decorative = input(false, /* @ts-ignore */
|
|
75
|
+
...(ngDevMode ? [{ debugName: "decorative" }] : /* istanbul ignore next */ []));
|
|
71
76
|
variantResult = computed(() => separatorVariants({
|
|
72
77
|
orientation: this.orientation(),
|
|
73
78
|
variant: this.variant(),
|
|
74
79
|
weight: this.weight(),
|
|
75
80
|
color: this.color(),
|
|
76
|
-
}),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
}), /* @ts-ignore */
|
|
82
|
+
...(ngDevMode ? [{ debugName: "variantResult" }] : /* istanbul ignore next */ []));
|
|
83
|
+
rootClasses = computed(() => this.variantResult().root(), /* @ts-ignore */
|
|
84
|
+
...(ngDevMode ? [{ debugName: "rootClasses" }] : /* istanbul ignore next */ []));
|
|
85
|
+
lineClasses = computed(() => this.variantResult().line(), /* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "lineClasses" }] : /* istanbul ignore next */ []));
|
|
87
|
+
labelClasses = computed(() => this.variantResult().label(), /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "labelClasses" }] : /* istanbul ignore next */ []));
|
|
89
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: SeparatorComponent, isStandalone: true, selector: "tw-separator", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "rootClasses()", "attr.role": "decorative() ? \"none\" : \"separator\"", "attr.aria-orientation": "decorative() ? null : orientation()", "attr.aria-hidden": "decorative() ? \"true\" : null" } }, ngImport: i0, template: `
|
|
82
91
|
<span [class]="lineClasses()"></span>
|
|
83
92
|
@if (orientation() === 'horizontal') {
|
|
84
93
|
<span [class]="labelClasses()"><ng-content /></span>
|
|
@@ -86,7 +95,7 @@ class SeparatorComponent {
|
|
|
86
95
|
<span [class]="lineClasses()"></span>
|
|
87
96
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
88
97
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
90
99
|
type: Component,
|
|
91
100
|
args: [{
|
|
92
101
|
selector: 'tw-separator',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdevhub-ngx-tw-separator.mjs","sources":["../../../projects/ngx-tw/separator/separator.ts","../../../projects/ngx-tw/separator/cdevhub-ngx-tw-separator.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\nimport { tv } from 'tailwind-variants';\nimport type { TwColor } from '@cdevhub/ngx-tw/core';\n\n/** Line style of the separator. */\nexport type SeparatorVariant = 'solid' | 'dashed' | 'dotted';\n\n/** Line thickness of the separator. */\nexport type SeparatorWeight = 'thin' | 'medium' | 'thick';\n\nconst separatorVariants = tv({\n slots: {\n root: '',\n line: 'border-solid',\n label: 'px-3 text-sm text-fg-muted shrink-0 whitespace-nowrap empty:hidden',\n },\n variants: {\n orientation: {\n horizontal: {\n root: 'flex items-center w-full',\n line: 'flex-1 border-t',\n },\n vertical: {\n root: 'flex flex-col items-center self-stretch',\n line: 'flex-1 border-l',\n },\n },\n variant: {\n solid: { line: 'border-solid' },\n dashed: { line: 'border-dashed' },\n dotted: { line: 'border-dotted' },\n },\n weight: {\n thin: {},\n medium: {},\n thick: {},\n },\n color: {\n primary: { line: 'border-primary-300' },\n secondary: { line: 'border-secondary-300' },\n accent: { line: 'border-accent-300' },\n neutral: { line: 'border-border' },\n info: { line: 'border-info-300' },\n success: { line: 'border-success-300' },\n warning: { line: 'border-warning-300' },\n error: { line: 'border-error-300' },\n },\n },\n compoundVariants: [\n // Horizontal weight\n { orientation: 'horizontal', weight: 'medium', class: { line: 'border-t-2' } },\n { orientation: 'horizontal', weight: 'thick', class: { line: 'border-t-[3px]' } },\n // Vertical weight\n { orientation: 'vertical', weight: 'medium', class: { line: 'border-l-2' } },\n { orientation: 'vertical', weight: 'thick', class: { line: 'border-l-[3px]' } },\n ],\n defaultVariants: {\n orientation: 'horizontal',\n variant: 'solid',\n weight: 'thin',\n color: 'neutral',\n },\n}, {\n twMerge: true,\n});\n\n@Component({\n selector: 'tw-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'rootClasses()',\n '[attr.role]': 'decorative() ? \"none\" : \"separator\"',\n '[attr.aria-orientation]': 'decorative() ? null : orientation()',\n '[attr.aria-hidden]': 'decorative() ? \"true\" : null',\n },\n template: `\n <span [class]=\"lineClasses()\"></span>\n @if (orientation() === 'horizontal') {\n <span [class]=\"labelClasses()\"><ng-content /></span>\n }\n <span [class]=\"lineClasses()\"></span>\n `,\n})\nexport class SeparatorComponent {\n /** Controls layout direction. Defaults to `'horizontal'`. */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n /** Controls the line style. Defaults to `'solid'`. */\n readonly variant = input<SeparatorVariant>('solid');\n\n /** Controls line thickness. Defaults to `'thin'`. */\n readonly weight = input<SeparatorWeight>('thin');\n\n /** Sets the semantic color of the line. Defaults to `'neutral'`. */\n readonly color = input<TwColor>('neutral');\n\n /** When true, hides the separator from assistive technology. Defaults to `false`. */\n readonly decorative = input(false);\n\n private readonly variantResult = computed(() =>\n separatorVariants({\n orientation: this.orientation(),\n variant: this.variant(),\n weight: this.weight(),\n color: this.color(),\n }),\n );\n\n readonly rootClasses = computed(() => this.variantResult().root());\n readonly lineClasses = computed(() => this.variantResult().line());\n readonly labelClasses = computed(() => this.variantResult().label());\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAeA,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC3B,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,KAAK,EAAE,oEAAoE;AAC5E,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,WAAW,EAAE;AACX,YAAA,UAA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AAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE;;AAEjF,QAAA,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE;AAC5E,QAAA,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE;AAChF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,WAAW,EAAE,YAAY;AACzB,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;CACF,EAAE;AACD,IAAA,OAAO,EAAE,IAAI;AACd,CAAA,CAAC;MAmBW,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"cdevhub-ngx-tw-separator.mjs","sources":["../../../projects/ngx-tw/separator/separator.ts","../../../projects/ngx-tw/separator/cdevhub-ngx-tw-separator.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\nimport { tv } from 'tailwind-variants';\nimport type { TwColor } from '@cdevhub/ngx-tw/core';\n\n/** Line style of the separator. */\nexport type SeparatorVariant = 'solid' | 'dashed' | 'dotted';\n\n/** Line thickness of the separator. */\nexport type SeparatorWeight = 'thin' | 'medium' | 'thick';\n\nconst separatorVariants = tv({\n slots: {\n root: '',\n line: 'border-solid',\n label: 'px-3 text-sm text-fg-muted shrink-0 whitespace-nowrap empty:hidden',\n },\n variants: {\n orientation: {\n horizontal: {\n root: 'flex items-center w-full',\n line: 'flex-1 border-t',\n },\n vertical: {\n root: 'flex flex-col items-center self-stretch',\n line: 'flex-1 border-l',\n },\n },\n variant: {\n solid: { line: 'border-solid' },\n dashed: { line: 'border-dashed' },\n dotted: { line: 'border-dotted' },\n },\n weight: {\n thin: {},\n medium: {},\n thick: {},\n },\n color: {\n primary: { line: 'border-primary-300' },\n secondary: { line: 'border-secondary-300' },\n accent: { line: 'border-accent-300' },\n neutral: { line: 'border-border' },\n info: { line: 'border-info-300' },\n success: { line: 'border-success-300' },\n warning: { line: 'border-warning-300' },\n error: { line: 'border-error-300' },\n },\n },\n compoundVariants: [\n // Horizontal weight\n { orientation: 'horizontal', weight: 'medium', class: { line: 'border-t-2' } },\n { orientation: 'horizontal', weight: 'thick', class: { line: 'border-t-[3px]' } },\n // Vertical weight\n { orientation: 'vertical', weight: 'medium', class: { line: 'border-l-2' } },\n { orientation: 'vertical', weight: 'thick', class: { line: 'border-l-[3px]' } },\n ],\n defaultVariants: {\n orientation: 'horizontal',\n variant: 'solid',\n weight: 'thin',\n color: 'neutral',\n },\n}, {\n twMerge: true,\n});\n\n@Component({\n selector: 'tw-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'rootClasses()',\n '[attr.role]': 'decorative() ? \"none\" : \"separator\"',\n '[attr.aria-orientation]': 'decorative() ? null : orientation()',\n '[attr.aria-hidden]': 'decorative() ? \"true\" : null',\n },\n template: `\n <span [class]=\"lineClasses()\"></span>\n @if (orientation() === 'horizontal') {\n <span [class]=\"labelClasses()\"><ng-content /></span>\n }\n <span [class]=\"lineClasses()\"></span>\n `,\n})\nexport class SeparatorComponent {\n /** Controls layout direction. Defaults to `'horizontal'`. */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n /** Controls the line style. Defaults to `'solid'`. */\n readonly variant = input<SeparatorVariant>('solid');\n\n /** Controls line thickness. Defaults to `'thin'`. */\n readonly weight = input<SeparatorWeight>('thin');\n\n /** Sets the semantic color of the line. Defaults to `'neutral'`. */\n readonly color = input<TwColor>('neutral');\n\n /** When true, hides the separator from assistive technology. Defaults to `false`. */\n readonly decorative = input(false);\n\n private readonly variantResult = computed(() =>\n separatorVariants({\n orientation: this.orientation(),\n variant: this.variant(),\n weight: this.weight(),\n color: this.color(),\n }),\n );\n\n readonly rootClasses = computed(() => this.variantResult().root());\n readonly lineClasses = computed(() => this.variantResult().line());\n readonly labelClasses = computed(() => this.variantResult().label());\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAeA,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC3B,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,KAAK,EAAE,oEAAoE;AAC5E,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,WAAW,EAAE;AACX,YAAA,UAAU,EAAE;AACV,gBAAA,IAAI,EAAE,0BAA0B;AAChC,gBAAA,IAAI,EAAE,iBAAiB;AACxB,aAAA;AACD,YAAA,QAAQ,EAAE;AACR,gBAAA,IAAI,EAAE,yCAAyC;AAC/C,gBAAA,IAAI,EAAE,iBAAiB;AACxB,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;AAC/B,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;AACjC,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;AAClC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,KAAK,EAAE,EAAE;AACV,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;AACvC,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE;AAC3C,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;AACrC,YAAA,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;AAClC,YAAA,IAAI,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;AACjC,YAAA,OAAO,EAAE,EAAE,IAAI,EAAE,o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A,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,WAAA,EAAA,yCAAA,EAAA,uBAAA,EAAA,qCAAA,EAAA,kBAAA,EAAA,gCAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EARnB;;;;;;AAMT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;oBACxB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,eAAe;AAC1B,wBAAA,aAAa,EAAE,qCAAqC;AACpD,wBAAA,yBAAyB,EAAE,qCAAqC;AAChE,wBAAA,oBAAoB,EAAE,8BAA8B;AACrD,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;AAMT,EAAA,CAAA;AACF,iBAAA;;;ACvFD;;AAEG;;;;"}
|
|
@@ -168,16 +168,20 @@ class SheetContainer extends CdkDialogContainer {
|
|
|
168
168
|
enterAnimationDuration;
|
|
169
169
|
/** Resolved exit-animation duration in ms. */
|
|
170
170
|
exitAnimationDuration;
|
|
171
|
-
sideAttr = computed(() => this._config.side ?? 'right',
|
|
171
|
+
sideAttr = computed(() => this._config.side ?? 'right', /* @ts-ignore */
|
|
172
|
+
...(ngDevMode ? [{ debugName: "sideAttr" }] : /* istanbul ignore next */ []));
|
|
172
173
|
variants = computed(() => {
|
|
173
174
|
const side = this._config.side ?? 'right';
|
|
174
175
|
const size = this._config.size ?? 'md';
|
|
175
176
|
return sheetContainerVariants({ side, size });
|
|
176
|
-
},
|
|
177
|
-
|
|
177
|
+
}, /* @ts-ignore */
|
|
178
|
+
...(ngDevMode ? [{ debugName: "variants" }] : /* istanbul ignore next */ []));
|
|
179
|
+
hostClasses = computed(() => mergeOverlayPanelClass(this.variants().host(), this._config.panelClass), /* @ts-ignore */
|
|
180
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
178
181
|
ariaDescribedByAttr = computed(() => this._config.ariaDescribedBy ||
|
|
179
182
|
this.coordinator.describedByIds()[0] ||
|
|
180
|
-
null,
|
|
183
|
+
null, /* @ts-ignore */
|
|
184
|
+
...(ngDevMode ? [{ debugName: "ariaDescribedByAttr" }] : /* istanbul ignore next */ []));
|
|
181
185
|
transitionDuration = this.coordinator.transitionDuration;
|
|
182
186
|
constructor() {
|
|
183
187
|
super();
|
|
@@ -201,10 +205,10 @@ class SheetContainer extends CdkDialogContainer {
|
|
|
201
205
|
_removeAriaDescribedBy(id) {
|
|
202
206
|
this.coordinator.removeAriaDescribedBy(id);
|
|
203
207
|
}
|
|
204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
209
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: SheetContainer, isStandalone: true, selector: "tw-sheet-container", host: { attributes: { "tabindex": "-1" }, properties: { "attr.id": "_config.id || null", "attr.role": "_config.role", "attr.aria-modal": "_config.ariaModal", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "ariaDescribedByAttr()", "attr.data-state": "state()", "attr.data-side": "sideAttr()", "class": "hostClasses()", "style.transition-duration.ms": "transitionDuration()" } }, providers: [OverlayContainerCoordinator], usesInheritance: true, ngImport: i0, template: '<ng-template cdkPortalOutlet />', isInline: true, dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
206
210
|
}
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetContainer, decorators: [{
|
|
208
212
|
type: Component,
|
|
209
213
|
args: [{
|
|
210
214
|
selector: 'tw-sheet-container',
|
|
@@ -251,7 +255,8 @@ class SheetRef {
|
|
|
251
255
|
closeOnEscape;
|
|
252
256
|
/** When `false`, clicking the backdrop does not close the sheet. */
|
|
253
257
|
closeOnBackdropClick;
|
|
254
|
-
stateSignal = signal('opening',
|
|
258
|
+
stateSignal = signal('opening', /* @ts-ignore */
|
|
259
|
+
...(ngDevMode ? [{ debugName: "stateSignal" }] : /* istanbul ignore next */ []));
|
|
255
260
|
afterOpenedSubject = new ReplaySubject(1);
|
|
256
261
|
beforeClosedSubject = new ReplaySubject(1);
|
|
257
262
|
afterClosedSubject = new ReplaySubject(1);
|
|
@@ -375,7 +380,8 @@ class Sheet {
|
|
|
375
380
|
injector = inject(Injector);
|
|
376
381
|
defaultOptions = inject(SHEET_DEFAULT_OPTIONS, { optional: true }) ?? {};
|
|
377
382
|
parentSheet = inject(Sheet, { optional: true, skipSelf: true });
|
|
378
|
-
openSheetsAtThisLevel = signal([],
|
|
383
|
+
openSheetsAtThisLevel = signal([], /* @ts-ignore */
|
|
384
|
+
...(ngDevMode ? [{ debugName: "openSheetsAtThisLevel" }] : /* istanbul ignore next */ []));
|
|
379
385
|
afterOpenedSubject = new Subject();
|
|
380
386
|
afterAllClosedSubject = new Subject();
|
|
381
387
|
/** Reactively-readable list of currently-open sheets across the full sheet tree. */
|
|
@@ -528,10 +534,10 @@ class Sheet {
|
|
|
528
534
|
return strategy.top('0').right('0').bottom('0');
|
|
529
535
|
}
|
|
530
536
|
}
|
|
531
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
532
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
537
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: Sheet, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
538
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: Sheet });
|
|
533
539
|
}
|
|
534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: Sheet, decorators: [{
|
|
535
541
|
type: Injectable
|
|
536
542
|
}] });
|
|
537
543
|
/**
|
|
@@ -557,10 +563,10 @@ function provideSheet(defaultOptions) {
|
|
|
557
563
|
* content below.
|
|
558
564
|
*/
|
|
559
565
|
class SheetHeaderDirective {
|
|
560
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
561
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
566
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
567
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: SheetHeaderDirective, isStandalone: true, selector: "[twSheetHeader], tw-sheet-header", host: { classAttribute: "flex items-start gap-3 px-6 pt-6 pb-4" }, ngImport: i0 });
|
|
562
568
|
}
|
|
563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetHeaderDirective, decorators: [{
|
|
564
570
|
type: Directive,
|
|
565
571
|
args: [{
|
|
566
572
|
selector: '[twSheetHeader], tw-sheet-header',
|
|
@@ -587,16 +593,18 @@ const ICON_COLOR_CLASSES = {
|
|
|
587
593
|
*/
|
|
588
594
|
class SheetIconDirective {
|
|
589
595
|
/** Semantic color for the icon container. Defaults to a neutral surface. */
|
|
590
|
-
color = input(undefined,
|
|
596
|
+
color = input(undefined, /* @ts-ignore */
|
|
597
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
591
598
|
classes = computed(() => {
|
|
592
599
|
const base = 'flex size-10 shrink-0 items-center justify-center rounded-full';
|
|
593
600
|
const color = this.color();
|
|
594
601
|
return color ? `${base} ${ICON_COLOR_CLASSES[color]}` : `${base} bg-surface-muted text-fg`;
|
|
595
|
-
},
|
|
596
|
-
|
|
597
|
-
static
|
|
602
|
+
}, /* @ts-ignore */
|
|
603
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
604
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
605
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: SheetIconDirective, isStandalone: true, selector: "[twSheetIcon]", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0 });
|
|
598
606
|
}
|
|
599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetIconDirective, decorators: [{
|
|
600
608
|
type: Directive,
|
|
601
609
|
args: [{
|
|
602
610
|
selector: '[twSheetIcon]',
|
|
@@ -618,7 +626,8 @@ class SheetTitleDirective {
|
|
|
618
626
|
// directive lives inside `<tw-sheet-container>`'s DOM tree.
|
|
619
627
|
container = inject(SheetContainer, { optional: true, skipSelf: true });
|
|
620
628
|
/** Custom id for the title element. Defaults to a generated unique id. */
|
|
621
|
-
id = input(this.generatedId,
|
|
629
|
+
id = input(this.generatedId, /* @ts-ignore */
|
|
630
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
622
631
|
ngOnInit() {
|
|
623
632
|
const containerInstance = this.sheetRef?.containerInstance ?? this.container;
|
|
624
633
|
if (containerInstance)
|
|
@@ -629,10 +638,10 @@ class SheetTitleDirective {
|
|
|
629
638
|
if (containerInstance)
|
|
630
639
|
containerInstance._removeAriaLabelledBy(this.id());
|
|
631
640
|
}
|
|
632
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
633
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
641
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
642
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: SheetTitleDirective, isStandalone: true, selector: "[twSheetTitle], tw-sheet-title", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "id": "id()" }, classAttribute: "text-sm font-semibold text-fg" }, ngImport: i0 });
|
|
634
643
|
}
|
|
635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetTitleDirective, decorators: [{
|
|
636
645
|
type: Directive,
|
|
637
646
|
args: [{
|
|
638
647
|
selector: '[twSheetTitle], tw-sheet-title',
|
|
@@ -644,10 +653,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
644
653
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
645
654
|
/** Secondary line beneath the sheet title — intended for a short description. */
|
|
646
655
|
class SheetSubtitleDirective {
|
|
647
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
648
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
656
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
657
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: SheetSubtitleDirective, isStandalone: true, selector: "[twSheetSubtitle], tw-sheet-subtitle", host: { classAttribute: "text-sm text-fg-muted" }, ngImport: i0 });
|
|
649
658
|
}
|
|
650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetSubtitleDirective, decorators: [{
|
|
651
660
|
type: Directive,
|
|
652
661
|
args: [{
|
|
653
662
|
selector: '[twSheetSubtitle], tw-sheet-subtitle',
|
|
@@ -667,7 +676,8 @@ class SheetDescriptionDirective {
|
|
|
667
676
|
// Ancestor-DI fallback — see SheetTitleDirective.
|
|
668
677
|
container = inject(SheetContainer, { optional: true, skipSelf: true });
|
|
669
678
|
/** Custom id for the description element. Defaults to a generated unique id. */
|
|
670
|
-
id = input(this.generatedId,
|
|
679
|
+
id = input(this.generatedId, /* @ts-ignore */
|
|
680
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
671
681
|
ngOnInit() {
|
|
672
682
|
const containerInstance = this.sheetRef?.containerInstance ?? this.container;
|
|
673
683
|
if (containerInstance)
|
|
@@ -678,10 +688,10 @@ class SheetDescriptionDirective {
|
|
|
678
688
|
if (containerInstance)
|
|
679
689
|
containerInstance._removeAriaDescribedBy(this.id());
|
|
680
690
|
}
|
|
681
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
682
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
691
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
692
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: SheetDescriptionDirective, isStandalone: true, selector: "[twSheetDescription], tw-sheet-description", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "id": "id()" } }, ngImport: i0 });
|
|
683
693
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetDescriptionDirective, decorators: [{
|
|
685
695
|
type: Directive,
|
|
686
696
|
args: [{
|
|
687
697
|
selector: '[twSheetDescription], tw-sheet-description',
|
|
@@ -696,10 +706,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
696
706
|
* strategies and nested scrollables.
|
|
697
707
|
*/
|
|
698
708
|
class SheetContentDirective {
|
|
699
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
700
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
709
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
710
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: SheetContentDirective, isStandalone: true, selector: "[twSheetContent], tw-sheet-content", host: { classAttribute: "flex-1 overflow-y-auto px-6 py-4 text-sm text-fg" }, hostDirectives: [{ directive: i1.CdkScrollable }], ngImport: i0 });
|
|
701
711
|
}
|
|
702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetContentDirective, decorators: [{
|
|
703
713
|
type: Directive,
|
|
704
714
|
args: [{
|
|
705
715
|
selector: '[twSheetContent], tw-sheet-content',
|
|
@@ -715,16 +725,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
715
725
|
*/
|
|
716
726
|
class SheetActionsDirective {
|
|
717
727
|
/** Horizontal alignment of the action buttons. Defaults to `'end'`. */
|
|
718
|
-
align = input('end',
|
|
728
|
+
align = input('end', /* @ts-ignore */
|
|
729
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
719
730
|
classes = computed(() => {
|
|
720
731
|
const align = this.align();
|
|
721
732
|
const justify = align === 'start' ? 'justify-start' : align === 'center' ? 'justify-center' : 'justify-end';
|
|
722
733
|
return `flex flex-wrap items-center gap-2 px-6 py-4 border-t border-border-muted ${justify}`;
|
|
723
|
-
},
|
|
724
|
-
|
|
725
|
-
static
|
|
734
|
+
}, /* @ts-ignore */
|
|
735
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
736
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
737
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: SheetActionsDirective, isStandalone: true, selector: "[twSheetActions], tw-sheet-actions", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0 });
|
|
726
738
|
}
|
|
727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetActionsDirective, decorators: [{
|
|
728
740
|
type: Directive,
|
|
729
741
|
args: [{
|
|
730
742
|
selector: '[twSheetActions], tw-sheet-actions',
|
|
@@ -739,17 +751,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
739
751
|
*/
|
|
740
752
|
class SheetCloseDirective {
|
|
741
753
|
/** Value passed to `afterClosed()` when the button is clicked. */
|
|
742
|
-
twSheetClose = input(undefined,
|
|
754
|
+
twSheetClose = input(undefined, /* @ts-ignore */
|
|
755
|
+
...(ngDevMode ? [{ debugName: "twSheetClose" }] : /* istanbul ignore next */ []));
|
|
743
756
|
/** Native button `type`. Defaults to `'button'` to avoid accidental form submission. */
|
|
744
|
-
type = input('button',
|
|
757
|
+
type = input('button', /* @ts-ignore */
|
|
758
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
745
759
|
sheetRef = inject(SheetRef, { optional: true });
|
|
746
760
|
onClick() {
|
|
747
761
|
this.sheetRef?.close(this.twSheetClose());
|
|
748
762
|
}
|
|
749
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
750
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
763
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
764
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: SheetCloseDirective, isStandalone: true, selector: "[twSheetClose]", inputs: { twSheetClose: { classPropertyName: "twSheetClose", publicName: "twSheetClose", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "type()" } }, ngImport: i0 });
|
|
751
765
|
}
|
|
752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SheetCloseDirective, decorators: [{
|
|
753
767
|
type: Directive,
|
|
754
768
|
args: [{
|
|
755
769
|
selector: '[twSheetClose]',
|