@tailng-ui/components 0.17.0 → 0.19.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/package.json +16 -5
- package/src/lib/feedback/empty/tng-empty.component.d.ts +16 -1
- package/src/lib/feedback/empty/tng-empty.component.d.ts.map +1 -1
- package/src/lib/feedback/empty/tng-empty.component.js +47 -57
- package/src/lib/feedback/empty/tng-empty.component.js.map +1 -1
- package/src/lib/feedback/index.d.ts +0 -5
- package/src/lib/feedback/index.d.ts.map +1 -1
- package/src/lib/feedback/index.js +4 -5
- package/src/lib/feedback/index.js.map +1 -1
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.d.ts +4 -0
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.d.ts.map +1 -1
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.js +16 -26
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.js.map +1 -1
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.d.ts +4 -0
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.d.ts.map +1 -1
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.js +18 -32
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.js.map +1 -1
- package/src/lib/feedback/skeleton/tng-skeleton.component.d.ts +4 -0
- package/src/lib/feedback/skeleton/tng-skeleton.component.d.ts.map +1 -1
- package/src/lib/feedback/skeleton/tng-skeleton.component.js +14 -20
- package/src/lib/feedback/skeleton/tng-skeleton.component.js.map +1 -1
- package/src/lib/feedback/toast/tng-toast.component.d.ts +4 -1
- package/src/lib/feedback/toast/tng-toast.component.d.ts.map +1 -1
- package/src/lib/feedback/toast/tng-toast.component.js +17 -19
- package/src/lib/feedback/toast/tng-toast.component.js.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.component.d.ts +4 -0
- package/src/lib/form/autocomplete/tng-autocomplete.component.d.ts.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.component.js +46 -49
- package/src/lib/form/autocomplete/tng-autocomplete.component.js.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.d.ts +3 -0
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.d.ts.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.js +33 -58
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.js.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle.component.d.ts +3 -0
- package/src/lib/form/button-toggle/tng-button-toggle.component.d.ts.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle.component.js +15 -26
- package/src/lib/form/button-toggle/tng-button-toggle.component.js.map +1 -1
- package/src/lib/form/checkbox/tng-checkbox.component.d.ts +3 -0
- package/src/lib/form/checkbox/tng-checkbox.component.d.ts.map +1 -1
- package/src/lib/form/checkbox/tng-checkbox.component.js +32 -42
- package/src/lib/form/checkbox/tng-checkbox.component.js.map +1 -1
- package/src/lib/form/chips/tng-chips.component.d.ts +3 -0
- package/src/lib/form/chips/tng-chips.component.d.ts.map +1 -1
- package/src/lib/form/chips/tng-chips.component.js +14 -19
- package/src/lib/form/chips/tng-chips.component.js.map +1 -1
- package/src/lib/form/combobox/tng-combobox.component.d.ts +3 -0
- package/src/lib/form/combobox/tng-combobox.component.d.ts.map +1 -1
- package/src/lib/form/combobox/tng-combobox.component.js +10 -13
- package/src/lib/form/combobox/tng-combobox.component.js.map +1 -1
- package/src/lib/form/datepicker/tng-datepicker.component.d.ts +4 -1
- package/src/lib/form/datepicker/tng-datepicker.component.d.ts.map +1 -1
- package/src/lib/form/datepicker/tng-datepicker.component.js +58 -98
- package/src/lib/form/datepicker/tng-datepicker.component.js.map +1 -1
- package/src/lib/form/form-field/tng-form-field.component.d.ts +3 -0
- package/src/lib/form/form-field/tng-form-field.component.d.ts.map +1 -1
- package/src/lib/form/form-field/tng-form-field.component.js +28 -33
- package/src/lib/form/form-field/tng-form-field.component.js.map +1 -1
- package/src/lib/form/index.d.ts +0 -20
- package/src/lib/form/index.d.ts.map +1 -1
- package/src/lib/form/index.js +4 -20
- package/src/lib/form/index.js.map +1 -1
- package/src/lib/form/input/tng-input.component.d.ts +3 -0
- package/src/lib/form/input/tng-input.component.d.ts.map +1 -1
- package/src/lib/form/input/tng-input.component.js +49 -60
- package/src/lib/form/input/tng-input.component.js.map +1 -1
- package/src/lib/form/input-otp/tng-input-otp.component.d.ts +3 -0
- package/src/lib/form/input-otp/tng-input-otp.component.d.ts.map +1 -1
- package/src/lib/form/input-otp/tng-input-otp.component.js +55 -69
- package/src/lib/form/input-otp/tng-input-otp.component.js.map +1 -1
- package/src/lib/form/label/tng-label.component.d.ts +3 -0
- package/src/lib/form/label/tng-label.component.d.ts.map +1 -1
- package/src/lib/form/label/tng-label.component.js +12 -19
- package/src/lib/form/label/tng-label.component.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.d.ts +4 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.js +40 -43
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.js.map +1 -1
- package/src/lib/form/multiselect/tng-multiselect.component.d.ts +4 -0
- package/src/lib/form/multiselect/tng-multiselect.component.d.ts.map +1 -1
- package/src/lib/form/multiselect/tng-multiselect.component.js +49 -52
- package/src/lib/form/multiselect/tng-multiselect.component.js.map +1 -1
- package/src/lib/form/radio/tng-radio.component.d.ts +3 -0
- package/src/lib/form/radio/tng-radio.component.d.ts.map +1 -1
- package/src/lib/form/radio/tng-radio.component.js +18 -33
- package/src/lib/form/radio/tng-radio.component.js.map +1 -1
- package/src/lib/form/select/tng-select.component.d.ts +4 -0
- package/src/lib/form/select/tng-select.component.d.ts.map +1 -1
- package/src/lib/form/select/tng-select.component.js +52 -53
- package/src/lib/form/select/tng-select.component.js.map +1 -1
- package/src/lib/form/select/tng-select.slots.d.ts +5 -0
- package/src/lib/form/select/tng-select.slots.d.ts.map +1 -1
- package/src/lib/form/select/tng-select.slots.js +21 -17
- package/src/lib/form/select/tng-select.slots.js.map +1 -1
- package/src/lib/form/slider/tng-slider.component.d.ts +3 -0
- package/src/lib/form/slider/tng-slider.component.d.ts.map +1 -1
- package/src/lib/form/slider/tng-slider.component.js +14 -27
- package/src/lib/form/slider/tng-slider.component.js.map +1 -1
- package/src/lib/form/switch/tng-switch.component.d.ts +3 -0
- package/src/lib/form/switch/tng-switch.component.d.ts.map +1 -1
- package/src/lib/form/switch/tng-switch.component.js +15 -24
- package/src/lib/form/switch/tng-switch.component.js.map +1 -1
- package/src/lib/form/textarea/tng-textarea.component.d.ts +3 -0
- package/src/lib/form/textarea/tng-textarea.component.d.ts.map +1 -1
- package/src/lib/form/textarea/tng-textarea.component.js +19 -36
- package/src/lib/form/textarea/tng-textarea.component.js.map +1 -1
- package/src/lib/form/toggle/tng-toggle.component.d.ts +3 -0
- package/src/lib/form/toggle/tng-toggle.component.d.ts.map +1 -1
- package/src/lib/form/toggle/tng-toggle.component.js +41 -41
- package/src/lib/form/toggle/tng-toggle.component.js.map +1 -1
- package/src/lib/form/toggle-group/tng-toggle-group.component.d.ts +4 -0
- package/src/lib/form/toggle-group/tng-toggle-group.component.d.ts.map +1 -1
- package/src/lib/form/toggle-group/tng-toggle-group.component.js +28 -31
- package/src/lib/form/toggle-group/tng-toggle-group.component.js.map +1 -1
- package/src/lib/layout/accordion/tng-accordion.component.d.ts +10 -0
- package/src/lib/layout/accordion/tng-accordion.component.d.ts.map +1 -1
- package/src/lib/layout/accordion/tng-accordion.component.js +49 -148
- package/src/lib/layout/accordion/tng-accordion.component.js.map +1 -1
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.d.ts +3 -0
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.d.ts.map +1 -1
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.js +10 -13
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.js.map +1 -1
- package/src/lib/layout/card/tng-card.component.d.ts +21 -0
- package/src/lib/layout/card/tng-card.component.d.ts.map +1 -1
- package/src/lib/layout/card/tng-card.component.js +92 -136
- package/src/lib/layout/card/tng-card.component.js.map +1 -1
- package/src/lib/layout/collapsible/tng-collapsible.component.d.ts +3 -0
- package/src/lib/layout/collapsible/tng-collapsible.component.d.ts.map +1 -1
- package/src/lib/layout/collapsible/tng-collapsible.component.js +17 -24
- package/src/lib/layout/collapsible/tng-collapsible.component.js.map +1 -1
- package/src/lib/layout/drawer/tng-drawer.component.d.ts +4 -0
- package/src/lib/layout/drawer/tng-drawer.component.d.ts.map +1 -1
- package/src/lib/layout/drawer/tng-drawer.component.js +48 -51
- package/src/lib/layout/drawer/tng-drawer.component.js.map +1 -1
- package/src/lib/layout/grid/tng-grid.component.d.ts +8 -0
- package/src/lib/layout/grid/tng-grid.component.d.ts.map +1 -1
- package/src/lib/layout/grid/tng-grid.component.js +48 -110
- package/src/lib/layout/grid/tng-grid.component.js.map +1 -1
- package/src/lib/layout/index.d.ts +1 -8
- package/src/lib/layout/index.d.ts.map +1 -1
- package/src/lib/layout/index.js +5 -8
- package/src/lib/layout/index.js.map +1 -1
- package/src/lib/layout/separator/tng-separator.component.d.ts +3 -0
- package/src/lib/layout/separator/tng-separator.component.d.ts.map +1 -1
- package/src/lib/layout/separator/tng-separator.component.js +11 -16
- package/src/lib/layout/separator/tng-separator.component.js.map +1 -1
- package/src/lib/layout/stepper/tng-stepper.component.d.ts +3 -0
- package/src/lib/layout/stepper/tng-stepper.component.d.ts.map +1 -1
- package/src/lib/layout/stepper/tng-stepper.component.js +10 -13
- package/src/lib/layout/stepper/tng-stepper.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.js +47 -49
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.js +16 -18
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.js +10 -12
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.d.ts +3 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.js +12 -10
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.js +12 -14
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.js +23 -25
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.js.map +1 -1
- package/src/lib/navigation/context-menu/tng-context-menu.component.d.ts +5 -0
- package/src/lib/navigation/context-menu/tng-context-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/context-menu/tng-context-menu.component.js +24 -26
- package/src/lib/navigation/context-menu/tng-context-menu.component.js.map +1 -1
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.d.ts +4 -0
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.js +19 -23
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.js.map +1 -1
- package/src/lib/navigation/index.d.ts +0 -12
- package/src/lib/navigation/index.d.ts.map +1 -1
- package/src/lib/navigation/index.js +4 -12
- package/src/lib/navigation/index.js.map +1 -1
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.d.ts +3 -0
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.d.ts.map +1 -1
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.js +22 -20
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.js.map +1 -1
- package/src/lib/navigation/menu/tng-menu.component.d.ts +5 -0
- package/src/lib/navigation/menu/tng-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/menu/tng-menu.component.js +21 -23
- package/src/lib/navigation/menu/tng-menu.component.js.map +1 -1
- package/src/lib/navigation/menubar/tng-menubar.component.d.ts +5 -0
- package/src/lib/navigation/menubar/tng-menubar.component.d.ts.map +1 -1
- package/src/lib/navigation/menubar/tng-menubar.component.js +20 -22
- package/src/lib/navigation/menubar/tng-menubar.component.js.map +1 -1
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.d.ts +4 -0
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.js +11 -13
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.js.map +1 -1
- package/src/lib/navigation/tabs/tng-tabs.component.d.ts +5 -0
- package/src/lib/navigation/tabs/tng-tabs.component.d.ts.map +1 -1
- package/src/lib/navigation/tabs/tng-tabs.component.js +32 -34
- package/src/lib/navigation/tabs/tng-tabs.component.js.map +1 -1
- package/src/lib/navigation/toolbar/tng-toolbar.component.d.ts +4 -0
- package/src/lib/navigation/toolbar/tng-toolbar.component.d.ts.map +1 -1
- package/src/lib/navigation/toolbar/tng-toolbar.component.js +11 -13
- package/src/lib/navigation/toolbar/tng-toolbar.component.js.map +1 -1
- package/src/lib/overlay/dialog/tng-dialog.component.d.ts +4 -0
- package/src/lib/overlay/dialog/tng-dialog.component.d.ts.map +1 -1
- package/src/lib/overlay/dialog/tng-dialog.component.js +18 -25
- package/src/lib/overlay/dialog/tng-dialog.component.js.map +1 -1
- package/src/lib/overlay/index.d.ts +0 -3
- package/src/lib/overlay/index.d.ts.map +1 -1
- package/src/lib/overlay/index.js +4 -3
- package/src/lib/overlay/index.js.map +1 -1
- package/src/lib/overlay/popover/tng-popover.component.d.ts +4 -0
- package/src/lib/overlay/popover/tng-popover.component.d.ts.map +1 -1
- package/src/lib/overlay/popover/tng-popover.component.js +23 -37
- package/src/lib/overlay/popover/tng-popover.component.js.map +1 -1
- package/src/lib/overlay/tooltip/tng-tooltip.component.d.ts +4 -0
- package/src/lib/overlay/tooltip/tng-tooltip.component.d.ts.map +1 -1
- package/src/lib/overlay/tooltip/tng-tooltip.component.js +17 -21
- package/src/lib/overlay/tooltip/tng-tooltip.component.js.map +1 -1
- package/src/lib/utility/avatar/tng-avatar.component.d.ts +4 -1
- package/src/lib/utility/avatar/tng-avatar.component.d.ts.map +1 -1
- package/src/lib/utility/avatar/tng-avatar.component.js +20 -22
- package/src/lib/utility/avatar/tng-avatar.component.js.map +1 -1
- package/src/lib/utility/badge/tng-badge.component.d.ts +4 -0
- package/src/lib/utility/badge/tng-badge.component.d.ts.map +1 -1
- package/src/lib/utility/badge/tng-badge.component.js +13 -10
- package/src/lib/utility/badge/tng-badge.component.js.map +1 -1
- package/src/lib/utility/button/tng-button.component.d.ts +4 -1
- package/src/lib/utility/button/tng-button.component.d.ts.map +1 -1
- package/src/lib/utility/button/tng-button.component.js +19 -29
- package/src/lib/utility/button/tng-button.component.js.map +1 -1
- package/src/lib/utility/code-block/tng-code-block.component.d.ts +4 -0
- package/src/lib/utility/code-block/tng-code-block.component.d.ts.map +1 -1
- package/src/lib/utility/code-block/tng-code-block.component.js +73 -103
- package/src/lib/utility/code-block/tng-code-block.component.js.map +1 -1
- package/src/lib/utility/copy-button/tng-copy-button.component.d.ts +4 -1
- package/src/lib/utility/copy-button/tng-copy-button.component.d.ts.map +1 -1
- package/src/lib/utility/copy-button/tng-copy-button.component.js +28 -36
- package/src/lib/utility/copy-button/tng-copy-button.component.js.map +1 -1
- package/src/lib/utility/index.d.ts +1 -9
- package/src/lib/utility/index.d.ts.map +1 -1
- package/src/lib/utility/index.js +5 -8
- package/src/lib/utility/index.js.map +1 -1
- package/src/lib/utility/tag/tng-tag.component.d.ts +4 -1
- package/src/lib/utility/tag/tng-tag.component.d.ts.map +1 -1
- package/src/lib/utility/tag/tng-tag.component.js +18 -24
- package/src/lib/utility/tag/tng-tag.component.js.map +1 -1
- package/src/lib/utility/tree/tng-tree.component.d.ts +4 -1
- package/src/lib/utility/tree/tng-tree.component.d.ts.map +1 -1
- package/src/lib/utility/tree/tng-tree.component.js +23 -25
- package/src/lib/utility/tree/tng-tree.component.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailng-ui/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/tailng/tailng-ui"
|
|
8
8
|
},
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"main": "./src/index.js",
|
|
11
|
+
"types": "./src/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./src/index.d.ts",
|
|
15
|
+
"default": "./src/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
9
18
|
"dependencies": {
|
|
19
|
+
"@tailng-ui/cdk": "^0.15.0",
|
|
10
20
|
"@tailng-ui/primitives": "^0.19.0"
|
|
11
21
|
},
|
|
12
22
|
"peerDependencies": {
|
|
23
|
+
"@angular/common": "^21.1.0",
|
|
13
24
|
"@angular/core": "^21.1.0",
|
|
25
|
+
"@angular/forms": "^21.1.0",
|
|
26
|
+
"@angular/platform-browser": "^21.1.0",
|
|
27
|
+
"@angular/router": "^21.1.0",
|
|
14
28
|
"tslib": "^2.3.0"
|
|
15
29
|
},
|
|
16
|
-
"sideEffects": false
|
|
17
|
-
"types": "./src/index.d.ts",
|
|
18
|
-
"main": "./src/index.js",
|
|
19
|
-
"type": "commonjs"
|
|
30
|
+
"sideEffects": false
|
|
20
31
|
}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
type TngEmptyAlign = 'center' | 'start';
|
|
2
3
|
export declare class TngEmptyComponent {
|
|
3
4
|
readonly align: import("@angular/core").InputSignal<TngEmptyAlign>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngEmptyComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngEmptyComponent, "tng-empty", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
4
7
|
}
|
|
5
8
|
export declare class TngEmptyIconComponent {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngEmptyIconComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngEmptyIconComponent, "tng-empty-icon", never, {}, {}, never, ["*"], true, never>;
|
|
6
11
|
}
|
|
7
12
|
export declare class TngEmptyTitleComponent {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngEmptyTitleComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngEmptyTitleComponent, "tng-empty-title", never, {}, {}, never, ["*"], true, never>;
|
|
8
15
|
}
|
|
9
16
|
export declare class TngEmptyDescriptionComponent {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngEmptyDescriptionComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngEmptyDescriptionComponent, "tng-empty-description", never, {}, {}, never, ["*"], true, never>;
|
|
10
19
|
}
|
|
11
20
|
export declare class TngEmptyActionsComponent {
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngEmptyActionsComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngEmptyActionsComponent, "tng-empty-actions", never, {}, {}, never, ["*"], true, never>;
|
|
12
23
|
}
|
|
13
|
-
export {};
|
|
24
|
+
export { TngEmptyComponent as TngEmpty };
|
|
25
|
+
export { TngEmptyIconComponent as TngEmptyIcon };
|
|
26
|
+
export { TngEmptyTitleComponent as TngEmptyTitle };
|
|
27
|
+
export { TngEmptyDescriptionComponent as TngEmptyDescription };
|
|
28
|
+
export { TngEmptyActionsComponent as TngEmptyActions };
|
|
14
29
|
//# sourceMappingURL=tng-empty.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-empty.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty.component.ts"],"names":[],"mappings":"AASA,KAAK,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExC,qBAMa,iBAAiB;IAC5B,SAAgB,KAAK,qDAAkC;
|
|
1
|
+
{"version":3,"file":"tng-empty.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty.component.ts"],"names":[],"mappings":";AASA,KAAK,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExC,qBAMa,iBAAiB;IAC5B,SAAgB,KAAK,qDAAkC;yCAD5C,iBAAiB;2CAAjB,iBAAiB;CAE7B;AAED,qBAMa,qBAAqB;yCAArB,qBAAqB;2CAArB,qBAAqB;CAAG;AAErC,qBAMa,sBAAsB;yCAAtB,sBAAsB;2CAAtB,sBAAsB;CAAG;AAEtC,qBAMa,4BAA4B;yCAA5B,4BAA4B;2CAA5B,4BAA4B;CAAG;AAE5C,qBAMa,wBAAwB;yCAAxB,wBAAwB;2CAAxB,wBAAwB;CAAG;AACxC,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,CAAC;AACzC,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC;AACjD,OAAO,EAAE,sBAAsB,IAAI,aAAa,EAAE,CAAC;AACnD,OAAO,EAAE,4BAA4B,IAAI,mBAAmB,EAAE,CAAC;AAC/D,OAAO,EAAE,wBAAwB,IAAI,eAAe,EAAE,CAAC"}
|
|
@@ -1,60 +1,50 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Component, input } from '@angular/core';
|
|
3
2
|
import { TngEmpty as TngEmptyPrimitive, TngEmptyActions as TngEmptyActionsPrimitive, TngEmptyDescription as TngEmptyDescriptionPrimitive, TngEmptyIcon as TngEmptyIconPrimitive, TngEmptyTitle as TngEmptyTitlePrimitive, } from '@tailng-ui/primitives';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
TngEmptyIconComponent
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
],
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
TngEmptyActionsComponent = __decorate([
|
|
52
|
-
Component({
|
|
53
|
-
selector: 'tng-empty-actions',
|
|
54
|
-
imports: [TngEmptyActionsPrimitive],
|
|
55
|
-
templateUrl: './tng-empty-actions.component.html',
|
|
56
|
-
styleUrl: './tng-empty.component.css',
|
|
57
|
-
})
|
|
58
|
-
], TngEmptyActionsComponent);
|
|
59
|
-
export { TngEmptyActionsComponent };
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class TngEmptyComponent {
|
|
5
|
+
align = input('center', ...(ngDevMode ? [{ debugName: "align" }] : []));
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: TngEmptyComponent, isStandalone: true, selector: "tng-empty", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<section tngEmpty class=\"tng-empty\" [attr.data-align]=\"align()\">\n <ng-content />\n</section>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"], dependencies: [{ kind: "directive", type: TngEmptyPrimitive, selector: "[tngEmpty]", exportAs: ["tngEmpty"] }] });
|
|
8
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: 'tng-empty', imports: [TngEmptyPrimitive], template: "<section tngEmpty class=\"tng-empty\" [attr.data-align]=\"align()\">\n <ng-content />\n</section>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"] }]
|
|
12
|
+
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
|
|
13
|
+
export class TngEmptyIconComponent {
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: TngEmptyIconComponent, isStandalone: true, selector: "tng-empty-icon", ngImport: i0, template: "<div tngEmptyIcon class=\"tng-empty-icon\">\n <ng-content />\n</div>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"], dependencies: [{ kind: "directive", type: TngEmptyIconPrimitive, selector: "[tngEmptyIcon]", exportAs: ["tngEmptyIcon"] }] });
|
|
16
|
+
}
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyIconComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'tng-empty-icon', imports: [TngEmptyIconPrimitive], template: "<div tngEmptyIcon class=\"tng-empty-icon\">\n <ng-content />\n</div>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"] }]
|
|
20
|
+
}] });
|
|
21
|
+
export class TngEmptyTitleComponent {
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: TngEmptyTitleComponent, isStandalone: true, selector: "tng-empty-title", ngImport: i0, template: "<h3 tngEmptyTitle class=\"tng-empty-title\">\n <ng-content />\n</h3>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"], dependencies: [{ kind: "directive", type: TngEmptyTitlePrimitive, selector: "[tngEmptyTitle]", exportAs: ["tngEmptyTitle"] }] });
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyTitleComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'tng-empty-title', imports: [TngEmptyTitlePrimitive], template: "<h3 tngEmptyTitle class=\"tng-empty-title\">\n <ng-content />\n</h3>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"] }]
|
|
28
|
+
}] });
|
|
29
|
+
export class TngEmptyDescriptionComponent {
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: TngEmptyDescriptionComponent, isStandalone: true, selector: "tng-empty-description", ngImport: i0, template: "<p tngEmptyDescription class=\"tng-empty-description\">\n <ng-content />\n</p>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"], dependencies: [{ kind: "directive", type: TngEmptyDescriptionPrimitive, selector: "[tngEmptyDescription]", exportAs: ["tngEmptyDescription"] }] });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyDescriptionComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{ selector: 'tng-empty-description', imports: [TngEmptyDescriptionPrimitive], template: "<p tngEmptyDescription class=\"tng-empty-description\">\n <ng-content />\n</p>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"] }]
|
|
36
|
+
}] });
|
|
37
|
+
export class TngEmptyActionsComponent {
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: TngEmptyActionsComponent, isStandalone: true, selector: "tng-empty-actions", ngImport: i0, template: "<div tngEmptyActions class=\"tng-empty-actions\">\n <ng-content />\n</div>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"], dependencies: [{ kind: "directive", type: TngEmptyActionsPrimitive, selector: "[tngEmptyActions]", exportAs: ["tngEmptyActions"] }] });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngEmptyActionsComponent, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'tng-empty-actions', imports: [TngEmptyActionsPrimitive], template: "<div tngEmptyActions class=\"tng-empty-actions\">\n <ng-content />\n</div>\n", styles: [":host {\n display: block;\n}\n\n.tng-empty {\n align-items: center;\n border: 1px dashed var(--tng-semantic-border-strong);\n border-radius: 1rem;\n color: var(--tng-semantic-foreground-primary);\n display: grid;\n gap: 0.75rem;\n justify-items: center;\n padding: 1.5rem;\n text-align: center;\n}\n\n.tng-empty[data-align='start'] {\n justify-items: start;\n text-align: left;\n}\n\n.tng-empty-icon {\n color: var(--tng-semantic-foreground-muted);\n display: inline-flex;\n font-size: 2rem;\n line-height: 1;\n}\n\n.tng-empty-title {\n font-size: 1.05rem;\n font-weight: 600;\n margin: 0;\n}\n\n.tng-empty-description {\n color: var(--tng-semantic-foreground-muted);\n font-size: 0.9rem;\n margin: 0;\n max-width: 30rem;\n}\n\n.tng-empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.65rem;\n}\n"] }]
|
|
44
|
+
}] });
|
|
45
|
+
export { TngEmptyComponent as TngEmpty };
|
|
46
|
+
export { TngEmptyIconComponent as TngEmptyIcon };
|
|
47
|
+
export { TngEmptyTitleComponent as TngEmptyTitle };
|
|
48
|
+
export { TngEmptyDescriptionComponent as TngEmptyDescription };
|
|
49
|
+
export { TngEmptyActionsComponent as TngEmptyActions };
|
|
60
50
|
//# sourceMappingURL=tng-empty.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-empty.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-empty.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty.component.html","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty-icon.component.html","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty-title.component.html","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty-description.component.html","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/empty/tng-empty-actions.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EACL,QAAQ,IAAI,iBAAiB,EAC7B,eAAe,IAAI,wBAAwB,EAC3C,mBAAmB,IAAI,4BAA4B,EACnD,YAAY,IAAI,qBAAqB,EACrC,aAAa,IAAI,sBAAsB,GACxC,MAAM,uBAAuB,CAAC;;AAU/B,MAAM,OAAO,iBAAiB;IACZ,KAAK,GAAG,KAAK,CAAgB,QAAQ,iDAAC,CAAC;uGAD5C,iBAAiB;2FAAjB,iBAAiB,yMCjB9B,sGAGA,y3BDUY,iBAAiB;;2FAIhB,iBAAiB;kBAN7B,SAAS;+BACE,WAAW,WACZ,CAAC,iBAAiB,CAAC;;AAc9B,MAAM,OAAO,qBAAqB;uGAArB,qBAAqB;2FAArB,qBAAqB,0EE3BlC,yEAGA,y3BFoBY,qBAAqB;;2FAIpB,qBAAqB;kBANjC,SAAS;+BACE,gBAAgB,WACjB,CAAC,qBAAqB,CAAC;;AAYlC,MAAM,OAAO,sBAAsB;uGAAtB,sBAAsB;2FAAtB,sBAAsB,2EGnCnC,yEAGA,y3BH4BY,sBAAsB;;2FAIrB,sBAAsB;kBANlC,SAAS;+BACE,iBAAiB,WAClB,CAAC,sBAAsB,CAAC;;AAYnC,MAAM,OAAO,4BAA4B;uGAA5B,4BAA4B;2FAA5B,4BAA4B,iFI3CzC,mFAGA,y3BJoCY,4BAA4B;;2FAI3B,4BAA4B;kBANxC,SAAS;+BACE,uBAAuB,WACxB,CAAC,4BAA4B,CAAC;;AAYzC,MAAM,OAAO,wBAAwB;uGAAxB,wBAAwB;2FAAxB,wBAAwB,6EKnDrC,+EAGA,y3BL4CY,wBAAwB;;2FAIvB,wBAAwB;kBANpC,SAAS;+BACE,mBAAmB,WACpB,CAAC,wBAAwB,CAAC;;AAKrC,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,CAAC;AACzC,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC;AACjD,OAAO,EAAE,sBAAsB,IAAI,aAAa,EAAE,CAAC;AACnD,OAAO,EAAE,4BAA4B,IAAI,mBAAmB,EAAE,CAAC;AAC/D,OAAO,EAAE,wBAAwB,IAAI,eAAe,EAAE,CAAC","sourcesContent":["import { Component, input } from '@angular/core';\nimport {\n TngEmpty as TngEmptyPrimitive,\n TngEmptyActions as TngEmptyActionsPrimitive,\n TngEmptyDescription as TngEmptyDescriptionPrimitive,\n TngEmptyIcon as TngEmptyIconPrimitive,\n TngEmptyTitle as TngEmptyTitlePrimitive,\n} from '@tailng-ui/primitives';\n\ntype TngEmptyAlign = 'center' | 'start';\n\n@Component({\n selector: 'tng-empty',\n imports: [TngEmptyPrimitive],\n templateUrl: './tng-empty.component.html',\n styleUrl: './tng-empty.component.css',\n})\nexport class TngEmptyComponent {\n public readonly align = input<TngEmptyAlign>('center');\n}\n\n@Component({\n selector: 'tng-empty-icon',\n imports: [TngEmptyIconPrimitive],\n templateUrl: './tng-empty-icon.component.html',\n styleUrl: './tng-empty.component.css',\n})\nexport class TngEmptyIconComponent {}\n\n@Component({\n selector: 'tng-empty-title',\n imports: [TngEmptyTitlePrimitive],\n templateUrl: './tng-empty-title.component.html',\n styleUrl: './tng-empty.component.css',\n})\nexport class TngEmptyTitleComponent {}\n\n@Component({\n selector: 'tng-empty-description',\n imports: [TngEmptyDescriptionPrimitive],\n templateUrl: './tng-empty-description.component.html',\n styleUrl: './tng-empty.component.css',\n})\nexport class TngEmptyDescriptionComponent {}\n\n@Component({\n selector: 'tng-empty-actions',\n imports: [TngEmptyActionsPrimitive],\n templateUrl: './tng-empty-actions.component.html',\n styleUrl: './tng-empty.component.css',\n})\nexport class TngEmptyActionsComponent {}\nexport { TngEmptyComponent as TngEmpty };\nexport { TngEmptyIconComponent as TngEmptyIcon };\nexport { TngEmptyTitleComponent as TngEmptyTitle };\nexport { TngEmptyDescriptionComponent as TngEmptyDescription };\nexport { TngEmptyActionsComponent as TngEmptyActions };\n","<section tngEmpty class=\"tng-empty\" [attr.data-align]=\"align()\">\n <ng-content />\n</section>\n","<div tngEmptyIcon class=\"tng-empty-icon\">\n <ng-content />\n</div>\n","<h3 tngEmptyTitle class=\"tng-empty-title\">\n <ng-content />\n</h3>\n","<p tngEmptyDescription class=\"tng-empty-description\">\n <ng-content />\n</p>\n","<div tngEmptyActions class=\"tng-empty-actions\">\n <ng-content />\n</div>\n"]}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export * from './empty/tng-empty.component';
|
|
2
|
-
export { TngEmptyComponent as TngEmpty, TngEmptyIconComponent as TngEmptyIcon, TngEmptyTitleComponent as TngEmptyTitle, TngEmptyDescriptionComponent as TngEmptyDescription, TngEmptyActionsComponent as TngEmptyActions, } from './empty/tng-empty.component';
|
|
3
2
|
export * from './progress-bar/tng-progress-bar.component';
|
|
4
|
-
export { TngProgressBarComponent as TngProgressBar } from './progress-bar/tng-progress-bar.component';
|
|
5
3
|
export * from './progress-spinner/tng-progress-spinner.component';
|
|
6
|
-
export { TngProgressSpinnerComponent as TngProgressSpinner } from './progress-spinner/tng-progress-spinner.component';
|
|
7
4
|
export * from './skeleton/tng-skeleton.component';
|
|
8
|
-
export { TngSkeletonComponent as TngSkeleton } from './skeleton/tng-skeleton.component';
|
|
9
5
|
export * from './toast/tng-toast.component';
|
|
10
|
-
export { TngToastComponent as TngToast } from './toast/tng-toast.component';
|
|
11
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/tailng-ui/components/src/lib/feedback/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/tailng-ui/components/src/lib/feedback/index.ts"],"names":[],"mappings":"AAKA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
// Feedback components
|
|
2
|
+
//
|
|
3
|
+
// Note: keep exports aligned with `src/index.ts` (root barrel) so the public API stays stable.
|
|
4
|
+
// The root barrel will re-export this file.
|
|
1
5
|
export * from './empty/tng-empty.component';
|
|
2
|
-
export { TngEmptyComponent as TngEmpty, TngEmptyIconComponent as TngEmptyIcon, TngEmptyTitleComponent as TngEmptyTitle, TngEmptyDescriptionComponent as TngEmptyDescription, TngEmptyActionsComponent as TngEmptyActions, } from './empty/tng-empty.component';
|
|
3
6
|
export * from './progress-bar/tng-progress-bar.component';
|
|
4
|
-
export { TngProgressBarComponent as TngProgressBar } from './progress-bar/tng-progress-bar.component';
|
|
5
7
|
export * from './progress-spinner/tng-progress-spinner.component';
|
|
6
|
-
export { TngProgressSpinnerComponent as TngProgressSpinner } from './progress-spinner/tng-progress-spinner.component';
|
|
7
8
|
export * from './skeleton/tng-skeleton.component';
|
|
8
|
-
export { TngSkeletonComponent as TngSkeleton } from './skeleton/tng-skeleton.component';
|
|
9
9
|
export * from './toast/tng-toast.component';
|
|
10
|
-
export { TngToastComponent as TngToast } from './toast/tng-toast.component';
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/tailng-ui/components/src/lib/feedback/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/tailng-ui/components/src/lib/feedback/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,EAAE;AACF,+FAA+F;AAC/F,4CAA4C;AAE5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["// Feedback components\n//\n// Note: keep exports aligned with `src/index.ts` (root barrel) so the public API stays stable.\n// The root barrel will re-export this file.\n\nexport * from './empty/tng-empty.component';\nexport * from './progress-bar/tng-progress-bar.component';\nexport * from './progress-spinner/tng-progress-spinner.component';\nexport * from './skeleton/tng-skeleton.component';\nexport * from './toast/tng-toast.component';\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare function toTngProgressBarPercent(min: number, max: number, value: number): number;
|
|
2
3
|
export declare class TngProgressBarComponent {
|
|
3
4
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
@@ -6,5 +7,8 @@ export declare class TngProgressBarComponent {
|
|
|
6
7
|
readonly min: import("@angular/core").InputSignalWithTransform<number, string | number>;
|
|
7
8
|
readonly value: import("@angular/core").InputSignalWithTransform<number, string | number>;
|
|
8
9
|
protected readonly indicatorPercent: import("@angular/core").Signal<number>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngProgressBarComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngProgressBarComponent, "tng-progress-bar", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
12
|
}
|
|
13
|
+
export { TngProgressBarComponent as TngProgressBar };
|
|
10
14
|
//# sourceMappingURL=tng-progress-bar.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-progress-bar.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-bar/tng-progress-bar.component.ts"],"names":[],"mappings":"AASA,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvF;AAED,qBAMa,uBAAuB;IAClC,SAAgB,SAAS,qDAA8B;IACvD,SAAgB,aAAa,8EAE1B;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,KAAK,4EAGlB;IAEH,SAAS,CAAC,QAAQ,CAAC,gBAAgB,yCAEjC;
|
|
1
|
+
{"version":3,"file":"tng-progress-bar.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-bar/tng-progress-bar.component.ts"],"names":[],"mappings":";AASA,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvF;AAED,qBAMa,uBAAuB;IAClC,SAAgB,SAAS,qDAA8B;IACvD,SAAgB,aAAa,8EAE1B;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,KAAK,4EAGlB;IAEH,SAAS,CAAC,QAAQ,CAAC,gBAAgB,yCAEjC;yCApBS,uBAAuB;2CAAvB,uBAAuB;CAqBnC;AACD,OAAO,EAAE,uBAAuB,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { booleanAttribute, Component, computed, input } from '@angular/core';
|
|
3
2
|
import { normalizeTngProgressBarMax, normalizeTngProgressBarMin, resolveTngProgressBarRange, TngProgressBar as TngProgressBarPrimitive, TngProgressBarIndicator, } from '@tailng-ui/primitives';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
4
|
export function toTngProgressBarPercent(min, max, value) {
|
|
5
5
|
const range = resolveTngProgressBarRange(min, max, value);
|
|
6
6
|
const denominator = range.max - range.min;
|
|
@@ -9,29 +9,19 @@ export function toTngProgressBarPercent(min, max, value) {
|
|
|
9
9
|
}
|
|
10
10
|
return ((range.value - range.min) / denominator) * 100;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
ariaLabel = input(null);
|
|
14
|
-
indeterminate = input(false, {
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
TngProgressBarComponent = __decorate([
|
|
29
|
-
Component({
|
|
30
|
-
selector: 'tng-progress-bar',
|
|
31
|
-
imports: [TngProgressBarPrimitive, TngProgressBarIndicator],
|
|
32
|
-
templateUrl: './tng-progress-bar.component.html',
|
|
33
|
-
styleUrl: './tng-progress-bar.component.css',
|
|
34
|
-
})
|
|
35
|
-
], TngProgressBarComponent);
|
|
36
|
-
export { TngProgressBarComponent };
|
|
12
|
+
export class TngProgressBarComponent {
|
|
13
|
+
ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
|
|
14
|
+
indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : {}), transform: booleanAttribute });
|
|
15
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : {}), transform: (value) => normalizeTngProgressBarMax(typeof value === 'number' ? value : Number(value)) });
|
|
16
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : {}), transform: (value) => normalizeTngProgressBarMin(typeof value === 'number' ? value : Number(value)) });
|
|
17
|
+
value = input(0, { ...(ngDevMode ? { debugName: "value" } : {}), transform: (value) => typeof value === 'number' ? value : Number(value) });
|
|
18
|
+
indicatorPercent = computed(() => toTngProgressBarPercent(this.min(), this.max(), this.value()), ...(ngDevMode ? [{ debugName: "indicatorPercent" }] : []));
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: TngProgressBarComponent, isStandalone: true, selector: "tng-progress-bar", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n tngProgressBar\n class=\"tng-progress-bar\"\n [attr.aria-label]=\"ariaLabel()\"\n [indeterminate]=\"indeterminate()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [value]=\"value()\"\n>\n <span\n tngProgressBarIndicator\n class=\"tng-progress-bar-indicator\"\n [attr.data-indeterminate]=\"indeterminate() ? '' : null\"\n [style.width.%]=\"indeterminate() ? 40 : indicatorPercent()\"\n ></span>\n</div>\n", styles: [":host {\n display: block;\n width: 100%;\n}\n\n.tng-progress-bar {\n background: var(--tng-semantic-background-surface);\n border-radius: 9999px;\n height: 0.625rem;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n\n.tng-progress-bar-indicator {\n background: var(--tng-semantic-accent-brand);\n border-radius: inherit;\n display: block;\n height: 100%;\n transition: width 180ms ease;\n}\n\n.tng-progress-bar-indicator[data-indeterminate] {\n animation: tng-progress-bar-indeterminate 1.1s ease-in-out infinite;\n}\n\n@keyframes tng-progress-bar-indeterminate {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n}\n"], dependencies: [{ kind: "directive", type: TngProgressBarPrimitive, selector: "[tngProgressBar]", inputs: ["indeterminate", "max", "min", "value"], exportAs: ["tngProgressBar"] }, { kind: "directive", type: TngProgressBarIndicator, selector: "[tngProgressBarIndicator]", exportAs: ["tngProgressBarIndicator"] }] });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngProgressBarComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'tng-progress-bar', imports: [TngProgressBarPrimitive, TngProgressBarIndicator], template: "<div\n tngProgressBar\n class=\"tng-progress-bar\"\n [attr.aria-label]=\"ariaLabel()\"\n [indeterminate]=\"indeterminate()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [value]=\"value()\"\n>\n <span\n tngProgressBarIndicator\n class=\"tng-progress-bar-indicator\"\n [attr.data-indeterminate]=\"indeterminate() ? '' : null\"\n [style.width.%]=\"indeterminate() ? 40 : indicatorPercent()\"\n ></span>\n</div>\n", styles: [":host {\n display: block;\n width: 100%;\n}\n\n.tng-progress-bar {\n background: var(--tng-semantic-background-surface);\n border-radius: 9999px;\n height: 0.625rem;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n\n.tng-progress-bar-indicator {\n background: var(--tng-semantic-accent-brand);\n border-radius: inherit;\n display: block;\n height: 100%;\n transition: width 180ms ease;\n}\n\n.tng-progress-bar-indicator[data-indeterminate] {\n animation: tng-progress-bar-indeterminate 1.1s ease-in-out infinite;\n}\n\n@keyframes tng-progress-bar-indeterminate {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n}\n"] }]
|
|
25
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
26
|
+
export { TngProgressBarComponent as TngProgressBar };
|
|
37
27
|
//# sourceMappingURL=tng-progress-bar.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-progress-bar.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-bar/tng-progress-bar.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-progress-bar.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-bar/tng-progress-bar.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-bar/tng-progress-bar.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,IAAI,uBAAuB,EACzC,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;;AAE/B,MAAM,UAAU,uBAAuB,CAAC,GAAW,EAAE,GAAW,EAAE,KAAa;IAC7E,MAAM,KAAK,GAAG,0BAA0B,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IAC1C,IAAI,WAAW,IAAI,CAAC,EAAE,CAAC;QACrB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC;AACzD,CAAC;AAQD,MAAM,OAAO,uBAAuB;IAClB,SAAS,GAAG,KAAK,CAAgB,IAAI,qDAAC,CAAC;IACvC,aAAa,GAAG,KAAK,CAA4B,KAAK,0DACpE,SAAS,EAAE,gBAAgB,GAC3B,CAAC;IACa,GAAG,GAAG,KAAK,CAA0B,GAAG,gDACtD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,0BAA0B,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAC/E,CAAC;IACa,GAAG,GAAG,KAAK,CAA0B,CAAC,gDACpD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,0BAA0B,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAC/E,CAAC;IACa,KAAK,GAAG,KAAK,CAA0B,CAAC,kDACtD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GACnD,CAAC;IAEgB,gBAAgB,GAAG,QAAQ,CAAS,GAAG,EAAE,CAC1D,uBAAuB,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,4DAC9D,CAAC;uGApBS,uBAAuB;2FAAvB,uBAAuB,wsBCzBpC,0aAgBA,6uBDKY,uBAAuB,6IAAE,uBAAuB;;2FAI/C,uBAAuB;kBANnC,SAAS;+BACE,kBAAkB,WACnB,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;;AA0B7D,OAAO,EAAE,uBAAuB,IAAI,cAAc,EAAE,CAAC","sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport {\n normalizeTngProgressBarMax,\n normalizeTngProgressBarMin,\n resolveTngProgressBarRange,\n TngProgressBar as TngProgressBarPrimitive,\n TngProgressBarIndicator,\n} from '@tailng-ui/primitives';\n\nexport function toTngProgressBarPercent(min: number, max: number, value: number): number {\n const range = resolveTngProgressBarRange(min, max, value);\n const denominator = range.max - range.min;\n if (denominator <= 0) {\n return 100;\n }\n\n return ((range.value - range.min) / denominator) * 100;\n}\n\n@Component({\n selector: 'tng-progress-bar',\n imports: [TngProgressBarPrimitive, TngProgressBarIndicator],\n templateUrl: './tng-progress-bar.component.html',\n styleUrl: './tng-progress-bar.component.css',\n})\nexport class TngProgressBarComponent {\n public readonly ariaLabel = input<string | null>(null);\n public readonly indeterminate = input<boolean, boolean | string>(false, {\n transform: booleanAttribute,\n });\n public readonly max = input<number, number | string>(100, {\n transform: (value: number | string): number =>\n normalizeTngProgressBarMax(typeof value === 'number' ? value : Number(value)),\n });\n public readonly min = input<number, number | string>(0, {\n transform: (value: number | string): number =>\n normalizeTngProgressBarMin(typeof value === 'number' ? value : Number(value)),\n });\n public readonly value = input<number, number | string>(0, {\n transform: (value: number | string): number =>\n typeof value === 'number' ? value : Number(value),\n });\n\n protected readonly indicatorPercent = computed<number>(() =>\n toTngProgressBarPercent(this.min(), this.max(), this.value()),\n );\n}\nexport { TngProgressBarComponent as TngProgressBar };\n","<div\n tngProgressBar\n class=\"tng-progress-bar\"\n [attr.aria-label]=\"ariaLabel()\"\n [indeterminate]=\"indeterminate()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [value]=\"value()\"\n>\n <span\n tngProgressBarIndicator\n class=\"tng-progress-bar-indicator\"\n [attr.data-indeterminate]=\"indeterminate() ? '' : null\"\n [style.width.%]=\"indeterminate() ? 40 : indicatorPercent()\"\n ></span>\n</div>\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare function toTngProgressSpinnerPercent(min: number, max: number, value: number): number;
|
|
2
3
|
export declare function toTngProgressSpinnerDashOffset(percent: number): number;
|
|
3
4
|
export declare class TngProgressSpinnerComponent {
|
|
@@ -10,5 +11,8 @@ export declare class TngProgressSpinnerComponent {
|
|
|
10
11
|
readonly value: import("@angular/core").InputSignalWithTransform<number, string | number>;
|
|
11
12
|
protected readonly circumference: number;
|
|
12
13
|
protected readonly dashOffset: import("@angular/core").Signal<number>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngProgressSpinnerComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngProgressSpinnerComponent, "tng-progress-spinner", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
16
|
}
|
|
17
|
+
export { TngProgressSpinnerComponent as TngProgressSpinner };
|
|
14
18
|
//# sourceMappingURL=tng-progress-spinner.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-progress-spinner.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-spinner/tng-progress-spinner.component.ts"],"names":[],"mappings":"AAmBA,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ3F;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,qBAMa,2BAA2B;IACtC,SAAgB,SAAS,qDAA8B;IACvD,SAAgB,aAAa,8EAE1B;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,IAAI,4EAGjB;IACH,SAAgB,WAAW,4EAGxB;IACH,SAAgB,KAAK,4EAGlB;IAEH,SAAS,CAAC,QAAQ,CAAC,aAAa,SAAwB;IACxD,SAAS,CAAC,QAAQ,CAAC,UAAU,yCAI3B;
|
|
1
|
+
{"version":3,"file":"tng-progress-spinner.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-spinner/tng-progress-spinner.component.ts"],"names":[],"mappings":";AAmBA,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ3F;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,qBAMa,2BAA2B;IACtC,SAAgB,SAAS,qDAA8B;IACvD,SAAgB,aAAa,8EAE1B;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,GAAG,4EAGhB;IACH,SAAgB,IAAI,4EAGjB;IACH,SAAgB,WAAW,4EAGxB;IACH,SAAgB,KAAK,4EAGlB;IAEH,SAAS,CAAC,QAAQ,CAAC,aAAa,SAAwB;IACxD,SAAS,CAAC,QAAQ,CAAC,UAAU,yCAI3B;yCA/BS,2BAA2B;2CAA3B,2BAA2B;CAgCvC;AACD,OAAO,EAAE,2BAA2B,IAAI,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { booleanAttribute, Component, computed, input } from '@angular/core';
|
|
3
2
|
import { normalizeTngProgressSpinnerMax, normalizeTngProgressSpinnerMin, resolveTngProgressSpinnerRange, TngProgressSpinner as TngProgressSpinnerPrimitive, } from '@tailng-ui/primitives';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
4
|
const spinnerRadius = 18;
|
|
5
5
|
const spinnerCircumference = 2 * Math.PI * spinnerRadius;
|
|
6
6
|
function normalizePositiveNumber(value, fallback) {
|
|
@@ -20,36 +20,22 @@ export function toTngProgressSpinnerPercent(min, max, value) {
|
|
|
20
20
|
export function toTngProgressSpinnerDashOffset(percent) {
|
|
21
21
|
return spinnerCircumference - (spinnerCircumference * percent) / 100;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
ariaLabel = input(null);
|
|
25
|
-
indeterminate = input(false, {
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
min = input(0, {
|
|
32
|
-
transform: (value) => normalizeTngProgressSpinnerMin(typeof value === 'number' ? value : Number(value)),
|
|
33
|
-
});
|
|
34
|
-
size = input(40, {
|
|
35
|
-
transform: (value) => normalizePositiveNumber(typeof value === 'number' ? value : Number(value), 40),
|
|
36
|
-
});
|
|
37
|
-
strokeWidth = input(4, {
|
|
38
|
-
transform: (value) => normalizePositiveNumber(typeof value === 'number' ? value : Number(value), 4),
|
|
39
|
-
});
|
|
40
|
-
value = input(0, {
|
|
41
|
-
transform: (value) => typeof value === 'number' ? value : Number(value),
|
|
42
|
-
});
|
|
23
|
+
export class TngProgressSpinnerComponent {
|
|
24
|
+
ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
|
|
25
|
+
indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : {}), transform: booleanAttribute });
|
|
26
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : {}), transform: (value) => normalizeTngProgressSpinnerMax(typeof value === 'number' ? value : Number(value)) });
|
|
27
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : {}), transform: (value) => normalizeTngProgressSpinnerMin(typeof value === 'number' ? value : Number(value)) });
|
|
28
|
+
size = input(40, { ...(ngDevMode ? { debugName: "size" } : {}), transform: (value) => normalizePositiveNumber(typeof value === 'number' ? value : Number(value), 40) });
|
|
29
|
+
strokeWidth = input(4, { ...(ngDevMode ? { debugName: "strokeWidth" } : {}), transform: (value) => normalizePositiveNumber(typeof value === 'number' ? value : Number(value), 4) });
|
|
30
|
+
value = input(0, { ...(ngDevMode ? { debugName: "value" } : {}), transform: (value) => typeof value === 'number' ? value : Number(value) });
|
|
43
31
|
circumference = spinnerCircumference;
|
|
44
|
-
dashOffset = computed(() => toTngProgressSpinnerDashOffset(toTngProgressSpinnerPercent(this.min(), this.max(), this.value())));
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
], TngProgressSpinnerComponent);
|
|
54
|
-
export { TngProgressSpinnerComponent };
|
|
32
|
+
dashOffset = computed(() => toTngProgressSpinnerDashOffset(toTngProgressSpinnerPercent(this.min(), this.max(), this.value())), ...(ngDevMode ? [{ debugName: "dashOffset" }] : []));
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngProgressSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: TngProgressSpinnerComponent, isStandalone: true, selector: "tng-progress-spinner", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\n tngProgressSpinner\n class=\"tng-progress-spinner\"\n [attr.aria-label]=\"ariaLabel()\"\n [indeterminate]=\"indeterminate()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [style.--tng-progress-spinner-size.px]=\"size()\"\n [style.--tng-progress-spinner-stroke-width.px]=\"strokeWidth()\"\n [value]=\"value()\"\n>\n <svg class=\"tng-progress-spinner-svg\" viewBox=\"0 0 40 40\">\n <circle class=\"tng-progress-spinner-track\" cx=\"20\" cy=\"20\" r=\"18\"></circle>\n <circle\n class=\"tng-progress-spinner-indicator\"\n [attr.data-indeterminate]=\"indeterminate() ? '' : null\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"indeterminate() ? null : dashOffset()\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n ></circle>\n </svg>\n</span>\n", styles: [":host {\n display: inline-flex;\n}\n\n.tng-progress-spinner {\n display: inline-flex;\n height: var(--tng-progress-spinner-size, 40px);\n width: var(--tng-progress-spinner-size, 40px);\n}\n\n.tng-progress-spinner-svg {\n display: block;\n height: 100%;\n width: 100%;\n}\n\n.tng-progress-spinner-track,\n.tng-progress-spinner-indicator {\n fill: none;\n stroke-linecap: round;\n stroke-width: var(--tng-progress-spinner-stroke-width, 4px);\n}\n\n.tng-progress-spinner-track {\n stroke: var(--tng-semantic-background-surface);\n}\n\n.tng-progress-spinner-indicator {\n stroke: var(--tng-semantic-accent-brand);\n transform: rotate(-90deg);\n transform-origin: center;\n transition: stroke-dashoffset 180ms ease;\n}\n\n.tng-progress-spinner-indicator[data-indeterminate] {\n animation: tng-progress-spinner-indeterminate 1s linear infinite;\n stroke-dasharray: 70;\n stroke-dashoffset: 20;\n}\n\n@keyframes tng-progress-spinner-indeterminate {\n 0% {\n transform: rotate(-90deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n}\n"], dependencies: [{ kind: "directive", type: TngProgressSpinnerPrimitive, selector: "[tngProgressSpinner]", inputs: ["indeterminate", "max", "min", "value"], exportAs: ["tngProgressSpinner"] }] });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngProgressSpinnerComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{ selector: 'tng-progress-spinner', imports: [TngProgressSpinnerPrimitive], template: "<span\n tngProgressSpinner\n class=\"tng-progress-spinner\"\n [attr.aria-label]=\"ariaLabel()\"\n [indeterminate]=\"indeterminate()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [style.--tng-progress-spinner-size.px]=\"size()\"\n [style.--tng-progress-spinner-stroke-width.px]=\"strokeWidth()\"\n [value]=\"value()\"\n>\n <svg class=\"tng-progress-spinner-svg\" viewBox=\"0 0 40 40\">\n <circle class=\"tng-progress-spinner-track\" cx=\"20\" cy=\"20\" r=\"18\"></circle>\n <circle\n class=\"tng-progress-spinner-indicator\"\n [attr.data-indeterminate]=\"indeterminate() ? '' : null\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"indeterminate() ? null : dashOffset()\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n ></circle>\n </svg>\n</span>\n", styles: [":host {\n display: inline-flex;\n}\n\n.tng-progress-spinner {\n display: inline-flex;\n height: var(--tng-progress-spinner-size, 40px);\n width: var(--tng-progress-spinner-size, 40px);\n}\n\n.tng-progress-spinner-svg {\n display: block;\n height: 100%;\n width: 100%;\n}\n\n.tng-progress-spinner-track,\n.tng-progress-spinner-indicator {\n fill: none;\n stroke-linecap: round;\n stroke-width: var(--tng-progress-spinner-stroke-width, 4px);\n}\n\n.tng-progress-spinner-track {\n stroke: var(--tng-semantic-background-surface);\n}\n\n.tng-progress-spinner-indicator {\n stroke: var(--tng-semantic-accent-brand);\n transform: rotate(-90deg);\n transform-origin: center;\n transition: stroke-dashoffset 180ms ease;\n}\n\n.tng-progress-spinner-indicator[data-indeterminate] {\n animation: tng-progress-spinner-indeterminate 1s linear infinite;\n stroke-dasharray: 70;\n stroke-dashoffset: 20;\n}\n\n@keyframes tng-progress-spinner-indeterminate {\n 0% {\n transform: rotate(-90deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n}\n"] }]
|
|
39
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
40
|
+
export { TngProgressSpinnerComponent as TngProgressSpinner };
|
|
55
41
|
//# sourceMappingURL=tng-progress-spinner.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-progress-spinner.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-spinner/tng-progress-spinner.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-progress-spinner.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-spinner/tng-progress-spinner.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/feedback/progress-spinner/tng-progress-spinner.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,kBAAkB,IAAI,2BAA2B,GAClD,MAAM,uBAAuB,CAAC;;AAE/B,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,oBAAoB,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,aAAa,CAAC;AAEzD,SAAS,uBAAuB,CAAC,KAAa,EAAE,QAAgB;IAC9D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,GAAW,EAAE,GAAW,EAAE,KAAa;IACjF,MAAM,KAAK,GAAG,8BAA8B,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IAC1C,IAAI,WAAW,IAAI,CAAC,EAAE,CAAC;QACrB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,OAAe;IAC5D,OAAO,oBAAoB,GAAG,CAAC,oBAAoB,GAAG,OAAO,CAAC,GAAG,GAAG,CAAC;AACvE,CAAC;AAQD,MAAM,OAAO,2BAA2B;IACtB,SAAS,GAAG,KAAK,CAAgB,IAAI,qDAAC,CAAC;IACvC,aAAa,GAAG,KAAK,CAA4B,KAAK,0DACpE,SAAS,EAAE,gBAAgB,GAC3B,CAAC;IACa,GAAG,GAAG,KAAK,CAA0B,GAAG,gDACtD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,8BAA8B,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GACnF,CAAC;IACa,GAAG,GAAG,KAAK,CAA0B,CAAC,gDACpD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,8BAA8B,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GACnF,CAAC;IACa,IAAI,GAAG,KAAK,CAA0B,EAAE,iDACtD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,uBAAuB,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,GAChF,CAAC;IACa,WAAW,GAAG,KAAK,CAA0B,CAAC,wDAC5D,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,uBAAuB,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAC/E,CAAC;IACa,KAAK,GAAG,KAAK,CAA0B,CAAC,kDACtD,SAAS,EAAE,CAAC,KAAsB,EAAU,EAAE,CAC5C,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GACnD,CAAC;IAEgB,aAAa,GAAG,oBAAoB,CAAC;IACrC,UAAU,GAAG,QAAQ,CAAS,GAAG,EAAE,CACpD,8BAA8B,CAC5B,2BAA2B,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAClE,sDACF,CAAC;uGA/BS,2BAA2B;2FAA3B,2BAA2B,28BCvCxC,+yBAwBA,0lCDWY,2BAA2B;;2FAI1B,2BAA2B;kBANvC,SAAS;+BACE,sBAAsB,WACvB,CAAC,2BAA2B,CAAC;;AAqCxC,OAAO,EAAE,2BAA2B,IAAI,kBAAkB,EAAE,CAAC","sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport {\n normalizeTngProgressSpinnerMax,\n normalizeTngProgressSpinnerMin,\n resolveTngProgressSpinnerRange,\n TngProgressSpinner as TngProgressSpinnerPrimitive,\n} from '@tailng-ui/primitives';\n\nconst spinnerRadius = 18;\nconst spinnerCircumference = 2 * Math.PI * spinnerRadius;\n\nfunction normalizePositiveNumber(value: number, fallback: number): number {\n if (!Number.isFinite(value)) {\n return fallback;\n }\n\n return value > 0 ? value : fallback;\n}\n\nexport function toTngProgressSpinnerPercent(min: number, max: number, value: number): number {\n const range = resolveTngProgressSpinnerRange(min, max, value);\n const denominator = range.max - range.min;\n if (denominator <= 0) {\n return 100;\n }\n\n return ((range.value - range.min) / denominator) * 100;\n}\n\nexport function toTngProgressSpinnerDashOffset(percent: number): number {\n return spinnerCircumference - (spinnerCircumference * percent) / 100;\n}\n\n@Component({\n selector: 'tng-progress-spinner',\n imports: [TngProgressSpinnerPrimitive],\n templateUrl: './tng-progress-spinner.component.html',\n styleUrl: './tng-progress-spinner.component.css',\n})\nexport class TngProgressSpinnerComponent {\n public readonly ariaLabel = input<string | null>(null);\n public readonly indeterminate = input<boolean, boolean | string>(false, {\n transform: booleanAttribute,\n });\n public readonly max = input<number, number | string>(100, {\n transform: (value: number | string): number =>\n normalizeTngProgressSpinnerMax(typeof value === 'number' ? value : Number(value)),\n });\n public readonly min = input<number, number | string>(0, {\n transform: (value: number | string): number =>\n normalizeTngProgressSpinnerMin(typeof value === 'number' ? value : Number(value)),\n });\n public readonly size = input<number, number | string>(40, {\n transform: (value: number | string): number =>\n normalizePositiveNumber(typeof value === 'number' ? value : Number(value), 40),\n });\n public readonly strokeWidth = input<number, number | string>(4, {\n transform: (value: number | string): number =>\n normalizePositiveNumber(typeof value === 'number' ? value : Number(value), 4),\n });\n public readonly value = input<number, number | string>(0, {\n transform: (value: number | string): number =>\n typeof value === 'number' ? value : Number(value),\n });\n\n protected readonly circumference = spinnerCircumference;\n protected readonly dashOffset = computed<number>(() =>\n toTngProgressSpinnerDashOffset(\n toTngProgressSpinnerPercent(this.min(), this.max(), this.value()),\n ),\n );\n}\nexport { TngProgressSpinnerComponent as TngProgressSpinner };\n","<span\n tngProgressSpinner\n class=\"tng-progress-spinner\"\n [attr.aria-label]=\"ariaLabel()\"\n [indeterminate]=\"indeterminate()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [style.--tng-progress-spinner-size.px]=\"size()\"\n [style.--tng-progress-spinner-stroke-width.px]=\"strokeWidth()\"\n [value]=\"value()\"\n>\n <svg class=\"tng-progress-spinner-svg\" viewBox=\"0 0 40 40\">\n <circle class=\"tng-progress-spinner-track\" cx=\"20\" cy=\"20\" r=\"18\"></circle>\n <circle\n class=\"tng-progress-spinner-indicator\"\n [attr.data-indeterminate]=\"indeterminate() ? '' : null\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"indeterminate() ? null : dashOffset()\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n ></circle>\n </svg>\n</span>\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare function resolveTngSkeletonCssSize(value: string, fallback: string): string;
|
|
2
3
|
export declare class TngSkeletonComponent {
|
|
3
4
|
readonly animated: import("@angular/core").InputSignalWithTransform<boolean, string | boolean>;
|
|
@@ -6,5 +7,8 @@ export declare class TngSkeletonComponent {
|
|
|
6
7
|
readonly width: import("@angular/core").InputSignal<string>;
|
|
7
8
|
resolveHeight(): string;
|
|
8
9
|
resolveWidth(): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngSkeletonComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngSkeletonComponent, "tng-skeleton", never, { "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
12
|
}
|
|
13
|
+
export { TngSkeletonComponent as TngSkeleton };
|
|
10
14
|
//# sourceMappingURL=tng-skeleton.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-skeleton.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/skeleton/tng-skeleton.component.ts"],"names":[],"mappings":"AAGA,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGjF;AAED,qBAMa,oBAAoB;IAC/B,SAAgB,QAAQ,8EAErB;IACH,SAAgB,MAAM,8CAAyB;IAC/C,SAAgB,OAAO,8EAEpB;IACH,SAAgB,KAAK,8CAAyB;IAEvC,aAAa,IAAI,MAAM;IAIvB,YAAY,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"tng-skeleton.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/feedback/skeleton/tng-skeleton.component.ts"],"names":[],"mappings":";AAGA,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGjF;AAED,qBAMa,oBAAoB;IAC/B,SAAgB,QAAQ,8EAErB;IACH,SAAgB,MAAM,8CAAyB;IAC/C,SAAgB,OAAO,8EAEpB;IACH,SAAgB,KAAK,8CAAyB;IAEvC,aAAa,IAAI,MAAM;IAIvB,YAAY,IAAI,MAAM;yCAdlB,oBAAoB;2CAApB,oBAAoB;CAiBhC;AACD,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,CAAC"}
|