@semantic-components/ui 0.66.0 → 0.67.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.
Files changed (168) hide show
  1. package/esm2022/lib/components/file-upload/file-upload-dropzone.js +91 -0
  2. package/esm2022/lib/components/file-upload/file-upload-dropzone.js.map +1 -0
  3. package/esm2022/lib/components/file-upload/file-upload-item-delete.js +29 -0
  4. package/esm2022/lib/components/file-upload/file-upload-item-delete.js.map +1 -0
  5. package/esm2022/lib/components/file-upload/file-upload-item-name.js +20 -0
  6. package/esm2022/lib/components/file-upload/file-upload-item-name.js.map +1 -0
  7. package/esm2022/lib/components/file-upload/file-upload-item-preview.js +51 -0
  8. package/esm2022/lib/components/file-upload/file-upload-item-preview.js.map +1 -0
  9. package/esm2022/lib/components/file-upload/file-upload-item-progress.js +34 -0
  10. package/esm2022/lib/components/file-upload/file-upload-item-progress.js.map +1 -0
  11. package/esm2022/lib/components/file-upload/file-upload-item-size.js +37 -0
  12. package/esm2022/lib/components/file-upload/file-upload-item-size.js.map +1 -0
  13. package/esm2022/lib/components/file-upload/file-upload-item.js +29 -0
  14. package/esm2022/lib/components/file-upload/file-upload-item.js.map +1 -0
  15. package/esm2022/lib/components/file-upload/file-upload-list.js +20 -0
  16. package/esm2022/lib/components/file-upload/file-upload-list.js.map +1 -0
  17. package/esm2022/lib/components/file-upload/file-upload-trigger.js +66 -0
  18. package/esm2022/lib/components/file-upload/file-upload-trigger.js.map +1 -0
  19. package/esm2022/lib/components/file-upload/file-upload.js +118 -0
  20. package/esm2022/lib/components/file-upload/file-upload.js.map +1 -0
  21. package/esm2022/lib/components/file-upload/index.js +11 -0
  22. package/esm2022/lib/components/file-upload/index.js.map +1 -0
  23. package/esm2022/lib/components/index.js +6 -0
  24. package/esm2022/lib/components/index.js.map +1 -1
  25. package/esm2022/lib/components/menu-bar/menu-bar-item.js +12 -4
  26. package/esm2022/lib/components/menu-bar/menu-bar-item.js.map +1 -1
  27. package/esm2022/lib/components/native-select/index.js +6 -0
  28. package/esm2022/lib/components/native-select/index.js.map +1 -0
  29. package/esm2022/lib/components/native-select/native-select-container.js +20 -0
  30. package/esm2022/lib/components/native-select/native-select-container.js.map +1 -0
  31. package/esm2022/lib/components/native-select/native-select-icon.js +20 -0
  32. package/esm2022/lib/components/native-select/native-select-icon.js.map +1 -0
  33. package/esm2022/lib/components/native-select/native-select-optgroup.js +20 -0
  34. package/esm2022/lib/components/native-select/native-select-optgroup.js.map +1 -0
  35. package/esm2022/lib/components/native-select/native-select-option.js +20 -0
  36. package/esm2022/lib/components/native-select/native-select-option.js.map +1 -0
  37. package/esm2022/lib/components/native-select/native-select.js +29 -0
  38. package/esm2022/lib/components/native-select/native-select.js.map +1 -0
  39. package/esm2022/lib/components/navigation-menu/index.js +8 -0
  40. package/esm2022/lib/components/navigation-menu/index.js.map +1 -0
  41. package/esm2022/lib/components/navigation-menu/navigation-menu-content.js +37 -0
  42. package/esm2022/lib/components/navigation-menu/navigation-menu-content.js.map +1 -0
  43. package/esm2022/lib/components/navigation-menu/navigation-menu-item.js +118 -0
  44. package/esm2022/lib/components/navigation-menu/navigation-menu-item.js.map +1 -0
  45. package/esm2022/lib/components/navigation-menu/navigation-menu-link.js +22 -0
  46. package/esm2022/lib/components/navigation-menu/navigation-menu-link.js.map +1 -0
  47. package/esm2022/lib/components/navigation-menu/navigation-menu-list.js +20 -0
  48. package/esm2022/lib/components/navigation-menu/navigation-menu-list.js.map +1 -0
  49. package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js +14 -0
  50. package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js.map +1 -0
  51. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js +22 -0
  52. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js.map +1 -0
  53. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js +41 -0
  54. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js.map +1 -0
  55. package/esm2022/lib/components/navigation-menu/navigation-menu.js +32 -0
  56. package/esm2022/lib/components/navigation-menu/navigation-menu.js.map +1 -0
  57. package/esm2022/lib/components/range-slider/index.js +4 -0
  58. package/esm2022/lib/components/range-slider/index.js.map +1 -0
  59. package/esm2022/lib/components/range-slider/range-slider-max.js +38 -0
  60. package/esm2022/lib/components/range-slider/range-slider-max.js.map +1 -0
  61. package/esm2022/lib/components/range-slider/range-slider-min.js +38 -0
  62. package/esm2022/lib/components/range-slider/range-slider-min.js.map +1 -0
  63. package/esm2022/lib/components/range-slider/range-slider-thumb-base.js +24 -0
  64. package/esm2022/lib/components/range-slider/range-slider-thumb-base.js.map +1 -0
  65. package/esm2022/lib/components/range-slider/range-slider.js +62 -0
  66. package/esm2022/lib/components/range-slider/range-slider.js.map +1 -0
  67. package/esm2022/lib/components/select/index.js +5 -1
  68. package/esm2022/lib/components/select/index.js.map +1 -1
  69. package/esm2022/lib/components/select/select-group-label.js +28 -0
  70. package/esm2022/lib/components/select/select-group-label.js.map +1 -0
  71. package/esm2022/lib/components/select/select-group.js +28 -0
  72. package/esm2022/lib/components/select/select-group.js.map +1 -0
  73. package/esm2022/lib/components/select/{select-icon.js → select-item-icon.js} +7 -7
  74. package/esm2022/lib/components/select/select-item-icon.js.map +1 -0
  75. package/esm2022/lib/components/select/select-list.js +1 -5
  76. package/esm2022/lib/components/select/select-list.js.map +1 -1
  77. package/esm2022/lib/components/select/select-popup.js +32 -0
  78. package/esm2022/lib/components/select/select-popup.js.map +1 -0
  79. package/esm2022/lib/components/select/select-separator.js +22 -0
  80. package/esm2022/lib/components/select/select-separator.js.map +1 -0
  81. package/esm2022/lib/components/select/select-trigger-icon.js +4 -2
  82. package/esm2022/lib/components/select/select-trigger-icon.js.map +1 -1
  83. package/esm2022/lib/components/select/select-trigger.js +4 -7
  84. package/esm2022/lib/components/select/select-trigger.js.map +1 -1
  85. package/esm2022/lib/components/select/select.js +6 -5
  86. package/esm2022/lib/components/select/select.js.map +1 -1
  87. package/esm2022/lib/components/slider/index.js +2 -0
  88. package/esm2022/lib/components/slider/index.js.map +1 -0
  89. package/esm2022/lib/components/slider/slider.js +46 -0
  90. package/esm2022/lib/components/slider/slider.js.map +1 -0
  91. package/esm2022/lib/components/time-picker/index.js +10 -0
  92. package/esm2022/lib/components/time-picker/index.js.map +1 -0
  93. package/esm2022/lib/components/time-picker/time-picker-hours-input.js +67 -0
  94. package/esm2022/lib/components/time-picker/time-picker-hours-input.js.map +1 -0
  95. package/esm2022/lib/components/time-picker/time-picker-input.js +26 -0
  96. package/esm2022/lib/components/time-picker/time-picker-input.js.map +1 -0
  97. package/esm2022/lib/components/time-picker/time-picker-minutes-input.js +57 -0
  98. package/esm2022/lib/components/time-picker/time-picker-minutes-input.js.map +1 -0
  99. package/esm2022/lib/components/time-picker/time-picker-period-am.js +26 -0
  100. package/esm2022/lib/components/time-picker/time-picker-period-am.js.map +1 -0
  101. package/esm2022/lib/components/time-picker/time-picker-period-pm.js +26 -0
  102. package/esm2022/lib/components/time-picker/time-picker-period-pm.js.map +1 -0
  103. package/esm2022/lib/components/time-picker/time-picker-period.js +46 -0
  104. package/esm2022/lib/components/time-picker/time-picker-period.js.map +1 -0
  105. package/esm2022/lib/components/time-picker/time-picker-seconds-input.js +57 -0
  106. package/esm2022/lib/components/time-picker/time-picker-seconds-input.js.map +1 -0
  107. package/esm2022/lib/components/time-picker/time-picker-separator.js +20 -0
  108. package/esm2022/lib/components/time-picker/time-picker-separator.js.map +1 -0
  109. package/esm2022/lib/components/time-picker/time-picker.js +58 -0
  110. package/esm2022/lib/components/time-picker/time-picker.js.map +1 -0
  111. package/lib/components/file-upload/file-upload-dropzone.d.ts +15 -0
  112. package/lib/components/file-upload/file-upload-item-delete.d.ts +10 -0
  113. package/lib/components/file-upload/file-upload-item-name.d.ts +7 -0
  114. package/lib/components/file-upload/file-upload-item-preview.d.ts +11 -0
  115. package/lib/components/file-upload/file-upload-item-progress.d.ts +9 -0
  116. package/lib/components/file-upload/file-upload-item-size.d.ts +10 -0
  117. package/lib/components/file-upload/file-upload-item.d.ts +9 -0
  118. package/lib/components/file-upload/file-upload-list.d.ts +7 -0
  119. package/lib/components/file-upload/file-upload-trigger.d.ts +11 -0
  120. package/lib/components/file-upload/file-upload.d.ts +32 -0
  121. package/lib/components/file-upload/index.d.ts +11 -0
  122. package/lib/components/index.d.ts +6 -0
  123. package/lib/components/menu-bar/menu-bar-item.d.ts +1 -0
  124. package/lib/components/native-select/index.d.ts +5 -0
  125. package/lib/components/native-select/native-select-container.d.ts +7 -0
  126. package/lib/components/native-select/native-select-icon.d.ts +7 -0
  127. package/lib/components/native-select/native-select-optgroup.d.ts +7 -0
  128. package/lib/components/native-select/native-select-option.d.ts +7 -0
  129. package/lib/components/native-select/native-select.d.ts +12 -0
  130. package/lib/components/navigation-menu/index.d.ts +7 -0
  131. package/lib/components/navigation-menu/navigation-menu-content.d.ts +10 -0
  132. package/lib/components/navigation-menu/navigation-menu-item.d.ts +27 -0
  133. package/lib/components/navigation-menu/navigation-menu-link.d.ts +8 -0
  134. package/lib/components/navigation-menu/navigation-menu-list.d.ts +7 -0
  135. package/lib/components/navigation-menu/navigation-menu-portal.d.ts +7 -0
  136. package/lib/components/navigation-menu/navigation-menu-trigger-icon.d.ts +8 -0
  137. package/lib/components/navigation-menu/navigation-menu-trigger.d.ts +12 -0
  138. package/lib/components/navigation-menu/navigation-menu.d.ts +10 -0
  139. package/lib/components/range-slider/index.d.ts +3 -0
  140. package/lib/components/range-slider/range-slider-max.d.ts +10 -0
  141. package/lib/components/range-slider/range-slider-min.d.ts +10 -0
  142. package/lib/components/range-slider/range-slider-thumb-base.d.ts +2 -0
  143. package/lib/components/range-slider/range-slider.d.ts +21 -0
  144. package/lib/components/select/index.d.ts +5 -1
  145. package/lib/components/select/select-group-label.d.ts +7 -0
  146. package/lib/components/select/select-group.d.ts +7 -0
  147. package/lib/components/select/select-item-icon.d.ts +7 -0
  148. package/lib/components/select/select-list.d.ts +0 -1
  149. package/lib/components/select/select-popup.d.ts +8 -0
  150. package/lib/components/select/select-separator.d.ts +7 -0
  151. package/lib/components/select/select-trigger-icon.d.ts +1 -0
  152. package/lib/components/select/select-trigger.d.ts +3 -4
  153. package/lib/components/select/select.d.ts +3 -2
  154. package/lib/components/slider/index.d.ts +1 -0
  155. package/lib/components/slider/slider.d.ts +15 -0
  156. package/lib/components/time-picker/index.d.ts +10 -0
  157. package/lib/components/time-picker/time-picker-hours-input.d.ts +14 -0
  158. package/lib/components/time-picker/time-picker-input.d.ts +9 -0
  159. package/lib/components/time-picker/time-picker-minutes-input.d.ts +12 -0
  160. package/lib/components/time-picker/time-picker-period-am.d.ts +8 -0
  161. package/lib/components/time-picker/time-picker-period-pm.d.ts +8 -0
  162. package/lib/components/time-picker/time-picker-period.d.ts +12 -0
  163. package/lib/components/time-picker/time-picker-seconds-input.d.ts +12 -0
  164. package/lib/components/time-picker/time-picker-separator.d.ts +7 -0
  165. package/lib/components/time-picker/time-picker.d.ts +26 -0
  166. package/package.json +1 -1
  167. package/esm2022/lib/components/select/select-icon.js.map +0 -1
  168. package/lib/components/select/select-icon.d.ts +0 -7
@@ -0,0 +1,57 @@
1
+ import { computed, Directive, inject } from '@angular/core';
2
+ import { ScTimePickerInput } from './time-picker-input';
3
+ import * as i0 from "@angular/core";
4
+ export class ScTimePickerSecondsInput {
5
+ input = inject(ScTimePickerInput);
6
+ timePicker = this.input.timePicker;
7
+ displayValue = computed(() => {
8
+ const val = this.timePicker.value();
9
+ if (!val)
10
+ return '00';
11
+ return (val.seconds ?? 0).toString().padStart(2, '0');
12
+ }, ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
13
+ onInput(event) {
14
+ const el = event.target;
15
+ const value = el.value.replace(/\D/g, '');
16
+ const num = parseInt(value, 10);
17
+ if (!isNaN(num)) {
18
+ this.timePicker.setSeconds(Math.min(num, 59));
19
+ }
20
+ }
21
+ onBlur() {
22
+ this.input.focused.set(false);
23
+ }
24
+ onFocus(event) {
25
+ this.input.focused.set(true);
26
+ event.target.select();
27
+ }
28
+ onKeydown(event) {
29
+ if (event.key === 'ArrowUp') {
30
+ event.preventDefault();
31
+ const val = this.timePicker.value() || { hours: 0, minutes: 0 };
32
+ this.timePicker.setSeconds((val.seconds ?? 0) >= 59 ? 0 : (val.seconds ?? 0) + 1);
33
+ }
34
+ else if (event.key === 'ArrowDown') {
35
+ event.preventDefault();
36
+ const val = this.timePicker.value() || { hours: 0, minutes: 0 };
37
+ this.timePicker.setSeconds((val.seconds ?? 0) <= 0 ? 59 : (val.seconds ?? 0) - 1);
38
+ }
39
+ }
40
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSecondsInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
41
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScTimePickerSecondsInput, isStandalone: true, selector: "input[scTimePickerSecondsInput]", host: { listeners: { "input": "onInput($event)", "blur": "onBlur()", "keydown": "onKeydown($event)", "focus": "onFocus($event)" }, properties: { "value": "displayValue()", "attr.aria-label": "\"Seconds\"" } }, ngImport: i0 });
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSecondsInput, decorators: [{
44
+ type: Directive,
45
+ args: [{
46
+ selector: 'input[scTimePickerSecondsInput]',
47
+ host: {
48
+ '[value]': 'displayValue()',
49
+ '[attr.aria-label]': '"Seconds"',
50
+ '(input)': 'onInput($event)',
51
+ '(blur)': 'onBlur()',
52
+ '(keydown)': 'onKeydown($event)',
53
+ '(focus)': 'onFocus($event)',
54
+ },
55
+ }]
56
+ }] });
57
+ //# sourceMappingURL=time-picker-seconds-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker-seconds-input.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-seconds-input.ts"],"names":[],"mappings":"AAAA,O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angular/core';\nimport { ScTimePickerInput } from './time-picker-input';\n\n@Directive({\n selector: 'input[scTimePickerSecondsInput]',\n host: {\n '[value]': 'displayValue()',\n '[attr.aria-label]': '\"Seconds\"',\n '(input)': 'onInput($event)',\n '(blur)': 'onBlur()',\n '(keydown)': 'onKeydown($event)',\n '(focus)': 'onFocus($event)',\n },\n})\nexport class ScTimePickerSecondsInput {\n private readonly input = inject(ScTimePickerInput);\n\n private readonly timePicker = this.input.timePicker;\n\n protected readonly displayValue = computed(() => {\n const val = this.timePicker.value();\n if (!val) return '00';\n return (val.seconds ?? 0).toString().padStart(2, '0');\n });\n\n protected onInput(event: Event): void {\n const el = event.target as HTMLInputElement;\n const value = el.value.replace(/\\D/g, '');\n const num = parseInt(value, 10);\n\n if (!isNaN(num)) {\n this.timePicker.setSeconds(Math.min(num, 59));\n }\n }\n\n protected onBlur(): void {\n this.input.focused.set(false);\n }\n\n protected onFocus(event: FocusEvent): void {\n this.input.focused.set(true);\n (event.target as HTMLInputElement).select();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n const val = this.timePicker.value() || { hours: 0, minutes: 0 };\n this.timePicker.setSeconds(\n (val.seconds ?? 0) >= 59 ? 0 : (val.seconds ?? 0) + 1,\n );\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n const val = this.timePicker.value() || { hours: 0, minutes: 0 };\n this.timePicker.setSeconds(\n (val.seconds ?? 0) <= 0 ? 59 : (val.seconds ?? 0) - 1,\n );\n }\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScTimePickerSeparator {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('text-lg font-medium text-muted-foreground', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScTimePickerSeparator, isStandalone: true, selector: "[scTimePickerSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "time-picker-separator" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSeparator, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scTimePickerSeparator]',
14
+ host: {
15
+ 'data-slot': 'time-picker-separator',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=time-picker-separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker-separator.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-separator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,qBAAqB;IACvB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,2CAA2C,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACnE,CAAC;uGALS,qBAAqB;2FAArB,qBAAqB;;2FAArB,qBAAqB;kBAPjC,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,IAAI,EAAE;wBACJ,WAAW,EAAE,uBAAuB;wBACpC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scTimePickerSeparator]',\n host: {\n 'data-slot': 'time-picker-separator',\n '[class]': 'class()',\n },\n})\nexport class ScTimePickerSeparator {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('text-lg font-medium text-muted-foreground', this.classInput()),\n );\n}\n"]}
@@ -0,0 +1,58 @@
1
+ import { computed, Directive, InjectionToken, input, model, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export const SC_TIME_PICKER = new InjectionToken('SC_TIME_PICKER');
5
+ export class ScTimePicker {
6
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
7
+ format = input('12h', ...(ngDevMode ? [{ debugName: "format" }] : []));
8
+ showSeconds = input(false, ...(ngDevMode ? [{ debugName: "showSeconds" }] : []));
9
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
10
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
11
+ class = computed(() => cn('inline-flex items-center gap-1', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
12
+ formattedTime = computed(() => {
13
+ const val = this.value();
14
+ if (!val)
15
+ return '';
16
+ const hours = this.format() === '12h' ? val.hours % 12 || 12 : val.hours;
17
+ const hoursStr = hours.toString().padStart(2, '0');
18
+ const minutesStr = val.minutes.toString().padStart(2, '0');
19
+ let time = `${hoursStr}:${minutesStr}`;
20
+ if (this.showSeconds() && val.seconds !== undefined) {
21
+ time += `:${val.seconds.toString().padStart(2, '0')}`;
22
+ }
23
+ if (this.format() === '12h' && val.period) {
24
+ time += ` ${val.period}`;
25
+ }
26
+ return time;
27
+ }, ...(ngDevMode ? [{ debugName: "formattedTime" }] : []));
28
+ setHours(hours) {
29
+ const current = this.value() || { hours: 0, minutes: 0 };
30
+ this.value.set({ ...current, hours });
31
+ }
32
+ setMinutes(minutes) {
33
+ const current = this.value() || { hours: 0, minutes: 0 };
34
+ this.value.set({ ...current, minutes });
35
+ }
36
+ setSeconds(seconds) {
37
+ const current = this.value() || { hours: 0, minutes: 0 };
38
+ this.value.set({ ...current, seconds });
39
+ }
40
+ setPeriod(period) {
41
+ const current = this.value() || { hours: 0, minutes: 0 };
42
+ this.value.set({ ...current, period });
43
+ }
44
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePicker, deps: [], target: i0.ɵɵFactoryTarget.Directive });
45
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScTimePicker, isStandalone: true, selector: "[scTimePicker]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-slot": "time-picker" }, properties: { "class": "class()" } }, providers: [{ provide: SC_TIME_PICKER, useExisting: ScTimePicker }], ngImport: i0 });
46
+ }
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePicker, decorators: [{
48
+ type: Directive,
49
+ args: [{
50
+ selector: '[scTimePicker]',
51
+ providers: [{ provide: SC_TIME_PICKER, useExisting: ScTimePicker }],
52
+ host: {
53
+ 'data-slot': 'time-picker',
54
+ '[class]': 'class()',
55
+ },
56
+ }]
57
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
58
+ //# sourceMappingURL=time-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAYjC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAC9C,gBAAgB,CACjB,CAAC;AAUF,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,MAAM,GAAG,KAAK,CAAe,KAAK,kDAAC,CAAC;IACpC,WAAW,GAAG,KAAK,CAAU,KAAK,uDAAC,CAAC;IACpC,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC,CAAC;IACjC,KAAK,GAAG,KAAK,CAAqB,IAAI,iDAAC,CAAC;IAE9B,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,gCAAgC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACxD,CAAC;IAEO,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,GAAG;YAAE,OAAO,EAAE,CAAC;QAEpB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAA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AAC;IAED,UAAU,CAAC,OAAe;QACxB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;QACzD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1C,CAAC;IAED,SAAS,CAAC,MAAoB;QAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;QACzD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;IACzC,CAAC;uGAlDU,YAAY;2FAAZ,YAAY,s0BANZ,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;;2FAMxD,YAAY;kBARxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,cAAc,EAAE,CAAC;oBACnE,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import {\n computed,\n Directive,\n InjectionToken,\n input,\n model,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\nexport type ScTimeFormat = '12h' | '24h';\nexport type ScTimePeriod = 'AM' | 'PM';\n\nexport interface ScTimeValue {\n hours: number;\n minutes: number;\n seconds?: number;\n period?: ScTimePeriod;\n}\n\nexport const SC_TIME_PICKER = new InjectionToken<ScTimePicker>(\n 'SC_TIME_PICKER',\n);\n\n@Directive({\n selector: '[scTimePicker]',\n providers: [{ provide: SC_TIME_PICKER, useExisting: ScTimePicker }],\n host: {\n 'data-slot': 'time-picker',\n '[class]': 'class()',\n },\n})\nexport class ScTimePicker {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly format = input<ScTimeFormat>('12h');\n readonly showSeconds = input<boolean>(false);\n readonly disabled = input<boolean>(false);\n readonly value = model<ScTimeValue | null>(null);\n\n protected readonly class = computed(() =>\n cn('inline-flex items-center gap-1', this.classInput()),\n );\n\n readonly formattedTime = computed(() => {\n const val = this.value();\n if (!val) return '';\n\n const hours = this.format() === '12h' ? val.hours % 12 || 12 : val.hours;\n const hoursStr = hours.toString().padStart(2, '0');\n const minutesStr = val.minutes.toString().padStart(2, '0');\n\n let time = `${hoursStr}:${minutesStr}`;\n\n if (this.showSeconds() && val.seconds !== undefined) {\n time += `:${val.seconds.toString().padStart(2, '0')}`;\n }\n\n if (this.format() === '12h' && val.period) {\n time += ` ${val.period}`;\n }\n\n return time;\n });\n\n setHours(hours: number): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, hours });\n }\n\n setMinutes(minutes: number): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, minutes });\n }\n\n setSeconds(seconds: number): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, seconds });\n }\n\n setPeriod(period: ScTimePeriod): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, period });\n }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScFileUploadDropzone {
3
+ readonly fileUpload: import("@semantic-components/ui").ScFileUpload;
4
+ private readonly elementRef;
5
+ readonly classInput: import("@angular/core").InputSignal<string>;
6
+ readonly isDragging: import("@angular/core").WritableSignal<boolean>;
7
+ protected readonly class: import("@angular/core").Signal<string>;
8
+ openFilePicker(): void;
9
+ onFileSelect(event: Event): void;
10
+ onDragOver(event: DragEvent): void;
11
+ onDragLeave(event: DragEvent): void;
12
+ onDrop(event: DragEvent): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadDropzone, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScFileUploadDropzone, "[scFileUploadDropzone]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
15
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScFileUploadItemDelete {
3
+ private readonly fileUpload;
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ readonly fileId: import("@angular/core").InputSignal<string>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ onClick(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadItemDelete, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScFileUploadItemDelete, "button[scFileUploadItemDelete]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "fileId": { "alias": "fileId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScFileUploadItemName {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadItemName, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScFileUploadItemName, "[scFileUploadItemName]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { ScFileUploadFile } from './file-upload';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScFileUploadItemPreview {
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ readonly file: import("@angular/core").InputSignal<ScFileUploadFile>;
6
+ protected readonly isImage: import("@angular/core").Signal<boolean>;
7
+ protected readonly previewUrl: import("@angular/core").Signal<string>;
8
+ protected readonly class: import("@angular/core").Signal<string>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadItemPreview, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScFileUploadItemPreview, "[scFileUploadItemPreview]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ScFileUploadFile } from './file-upload';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScFileUploadItemProgress {
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ readonly file: import("@angular/core").InputSignal<ScFileUploadFile>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadItemProgress, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScFileUploadItemProgress, "[scFileUploadItemProgress]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { ScFileUploadFile } from './file-upload';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScFileUploadItemSize {
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ readonly file: import("@angular/core").InputSignal<ScFileUploadFile>;
6
+ protected readonly formattedSize: import("@angular/core").Signal<string>;
7
+ protected readonly class: import("@angular/core").Signal<string>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadItemSize, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScFileUploadItemSize, "[scFileUploadItemSize]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { ScFileUploadFile } from './file-upload';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScFileUploadItem {
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ readonly file: import("@angular/core").InputSignal<ScFileUploadFile>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadItem, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScFileUploadItem, "[scFileUploadItem]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScFileUploadList {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadList, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScFileUploadList, "[scFileUploadList]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScFileUploadTrigger {
3
+ readonly fileUpload: import("@semantic-components/ui").ScFileUpload;
4
+ private readonly elementRef;
5
+ readonly classInput: import("@angular/core").InputSignal<string>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ openFilePicker(): void;
8
+ onFileSelect(event: Event): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUploadTrigger, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScFileUploadTrigger, "button[scFileUploadTrigger]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
11
+ }
@@ -0,0 +1,32 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const SC_FILE_UPLOAD: InjectionToken<ScFileUpload>;
4
+ export interface ScFileUploadFile {
5
+ file: File;
6
+ id: string;
7
+ progress?: number;
8
+ status: 'pending' | 'uploading' | 'complete' | 'error';
9
+ error?: string;
10
+ }
11
+ export declare class ScFileUpload {
12
+ readonly classInput: import("@angular/core").InputSignal<string>;
13
+ readonly multiple: import("@angular/core").InputSignal<boolean>;
14
+ readonly accept: import("@angular/core").InputSignal<string>;
15
+ readonly maxSize: import("@angular/core").InputSignal<number>;
16
+ readonly maxFiles: import("@angular/core").InputSignal<number>;
17
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
18
+ readonly files: import("@angular/core").ModelSignal<ScFileUploadFile[]>;
19
+ readonly filesSelected: import("@angular/core").OutputEmitterRef<File[]>;
20
+ readonly fileRemoved: import("@angular/core").OutputEmitterRef<ScFileUploadFile>;
21
+ readonly error: import("@angular/core").OutputEmitterRef<string>;
22
+ protected readonly class: import("@angular/core").Signal<string>;
23
+ private generateId;
24
+ addFiles(fileList: FileList | File[]): void;
25
+ removeFile(fileId: string): void;
26
+ updateFileProgress(fileId: string, progress: number): void;
27
+ updateFileStatus(fileId: string, status: ScFileUploadFile['status'], error?: string): void;
28
+ clearFiles(): void;
29
+ private isAcceptedType;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFileUpload, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScFileUpload, "[scFileUpload]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; }, { "files": "filesChange"; "filesSelected": "filesSelected"; "fileRemoved": "fileRemoved"; "error": "error"; }, never, never, true, never>;
32
+ }
@@ -0,0 +1,11 @@
1
+ export { SC_FILE_UPLOAD, ScFileUpload } from './file-upload';
2
+ export type { ScFileUploadFile } from './file-upload';
3
+ export { ScFileUploadDropzone } from './file-upload-dropzone';
4
+ export { ScFileUploadTrigger } from './file-upload-trigger';
5
+ export { ScFileUploadList } from './file-upload-list';
6
+ export { ScFileUploadItem } from './file-upload-item';
7
+ export { ScFileUploadItemPreview } from './file-upload-item-preview';
8
+ export { ScFileUploadItemName } from './file-upload-item-name';
9
+ export { ScFileUploadItemSize } from './file-upload-item-size';
10
+ export { ScFileUploadItemDelete } from './file-upload-item-delete';
11
+ export { ScFileUploadItemProgress } from './file-upload-item-progress';
@@ -17,6 +17,7 @@ export * from './dialog';
17
17
  export * from './drawer';
18
18
  export * from './empty';
19
19
  export * from './field';
20
+ export * from './file-upload';
20
21
  export * from './hover-card';
21
22
  export * from './input';
22
23
  export * from './input-group';
@@ -26,6 +27,8 @@ export * from './label';
26
27
  export * from './link';
27
28
  export * from './menu';
28
29
  export * from './menu-bar';
30
+ export * from './native-select';
31
+ export * from './navigation-menu';
29
32
  export * from './pagination';
30
33
  export * from './popover';
31
34
  export * from './progress';
@@ -34,8 +37,11 @@ export * from './select';
34
37
  export * from './separator';
35
38
  export * from './sheet';
36
39
  export * from './skeleton';
40
+ export * from './range-slider';
41
+ export * from './slider';
37
42
  export * from './spinner';
38
43
  export * from './switch';
44
+ export * from './time-picker';
39
45
  export * from './table';
40
46
  export * from './tabs';
41
47
  export * from './textarea';
@@ -8,6 +8,7 @@ export declare class ScMenuBarItem {
8
8
  readonly overlayOrigin: CdkOverlayOrigin;
9
9
  private readonly menuItem;
10
10
  protected readonly submenuPortal: import("@angular/core").Signal<ScMenuPortal | undefined>;
11
+ private readonly connectedOverlay;
11
12
  private readonly scMenuBar;
12
13
  protected readonly rendered: import("@angular/core").Signal<boolean>;
13
14
  protected readonly class: import("@angular/core").Signal<string>;
@@ -0,0 +1,5 @@
1
+ export * from './native-select-container';
2
+ export * from './native-select';
3
+ export * from './native-select-icon';
4
+ export * from './native-select-option';
5
+ export * from './native-select-optgroup';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNativeSelectContainer {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNativeSelectContainer, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNativeSelectContainer, "div[scNativeSelectContainer]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNativeSelectIcon {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNativeSelectIcon, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNativeSelectIcon, "[scNativeSelectIcon]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNativeSelectOptGroup {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNativeSelectOptGroup, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNativeSelectOptGroup, "optgroup[scNativeSelectOptgroup]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNativeSelectOption {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNativeSelectOption, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNativeSelectOption, "option[scNativeSelectOption]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNativeSelect {
3
+ private readonly field;
4
+ private readonly fallbackId;
5
+ readonly idInput: import("@angular/core").InputSignal<string>;
6
+ readonly classInput: import("@angular/core").InputSignal<string>;
7
+ readonly size: import("@angular/core").InputSignal<"default" | "sm">;
8
+ readonly id: import("@angular/core").Signal<string>;
9
+ protected readonly class: import("@angular/core").Signal<string>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNativeSelect, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNativeSelect, "select[scNativeSelect]", never, { "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,7 @@
1
+ export { ScNavigationMenu } from './navigation-menu';
2
+ export { ScNavigationMenuContent } from './navigation-menu-content';
3
+ export { ScNavigationMenuItem } from './navigation-menu-item';
4
+ export { ScNavigationMenuLink } from './navigation-menu-link';
5
+ export { ScNavigationMenuList } from './navigation-menu-list';
6
+ export { ScNavigationMenuPortal } from './navigation-menu-portal';
7
+ export { ScNavigationMenuTrigger } from './navigation-menu-trigger';
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNavigationMenuContent {
3
+ private readonly menuItem;
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ protected readonly class: import("@angular/core").Signal<string>;
6
+ onMouseEnter(): void;
7
+ onMouseLeave(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuContent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScNavigationMenuContent, "div[scNavigationMenuContent]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
10
+ }
@@ -0,0 +1,27 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
2
+ import { OnInit } from '@angular/core';
3
+ import { ScNavigationMenu } from './navigation-menu';
4
+ import { ScNavigationMenuPortal } from './navigation-menu-portal';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ScNavigationMenuItem implements OnInit {
7
+ readonly navigationMenu: ScNavigationMenu;
8
+ private readonly router;
9
+ private readonly destroyRef;
10
+ readonly classInput: import("@angular/core").InputSignal<string>;
11
+ readonly itemId: string;
12
+ /** Whether this item's content is open */
13
+ readonly open: import("@angular/core").WritableSignal<boolean>;
14
+ private readonly triggerChild;
15
+ protected readonly navigationMenuPortal: import("@angular/core").Signal<ScNavigationMenuPortal | undefined>;
16
+ readonly origin: import("@angular/core").Signal<import("@angular/cdk/overlay").CdkOverlayOrigin | undefined>;
17
+ protected readonly position: ConnectedPosition;
18
+ protected readonly class: import("@angular/core").Signal<string>;
19
+ private hideTimeout;
20
+ ngOnInit(): void;
21
+ onMouseEnter(): void;
22
+ onMouseLeave(): void;
23
+ private scheduleHide;
24
+ cancelHide(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuItem, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScNavigationMenuItem, "li[scNavigationMenuItem]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["triggerChild", "navigationMenuPortal"], ["*"], true, never>;
27
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNavigationMenuLink {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ readonly active: import("@angular/core").InputSignal<boolean>;
5
+ protected readonly class: import("@angular/core").Signal<string>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuLink, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNavigationMenuLink, "a[scNavigationMenuLink]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNavigationMenuList {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuList, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNavigationMenuList, "ul[scNavigationMenuList]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScNavigationMenuPortal {
4
+ readonly templateRef: TemplateRef<any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuPortal, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNavigationMenuPortal, "ng-template[scNavigationMenuPortal]", never, {}, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNavigationMenuTriggerIcon {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ private readonly menuItem;
5
+ protected readonly class: import("@angular/core").Signal<string>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuTriggerIcon, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScNavigationMenuTriggerIcon, "svg[scNavigationMenuTriggerIcon]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { CdkOverlayOrigin } from '@angular/cdk/overlay';
2
+ import { ScNavigationMenuItem } from './navigation-menu-item';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/cdk/overlay";
5
+ export declare class ScNavigationMenuTrigger {
6
+ readonly menuItem: ScNavigationMenuItem;
7
+ readonly overlayOrigin: CdkOverlayOrigin;
8
+ readonly classInput: import("@angular/core").InputSignal<string>;
9
+ protected readonly class: import("@angular/core").Signal<string>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuTrigger, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScNavigationMenuTrigger, "button[scNavigationMenuTrigger]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.CdkOverlayOrigin; inputs: {}; outputs: {}; }]>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScNavigationMenu {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ /** Currently active item ID */
5
+ readonly activeItem: import("@angular/core").WritableSignal<string | null>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ setActiveItem(id: string | null): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenu, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScNavigationMenu, "nav[scNavigationMenu]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
10
+ }
@@ -0,0 +1,3 @@
1
+ export { ScRangeSlider } from './range-slider';
2
+ export { ScRangeSliderMax } from './range-slider-max';
3
+ export { ScRangeSliderMin } from './range-slider-min';
@@ -0,0 +1,10 @@
1
+ import { ScRangeSlider } from './range-slider';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScRangeSliderMax {
4
+ protected readonly rangeSlider: ScRangeSlider;
5
+ readonly classInput: import("@angular/core").InputSignal<string>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ protected onInput(event: Event): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScRangeSliderMax, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScRangeSliderMax, "input[scRangeSliderMax]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { ScRangeSlider } from './range-slider';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScRangeSliderMin {
4
+ protected readonly rangeSlider: ScRangeSlider;
5
+ readonly classInput: import("@angular/core").InputSignal<string>;
6
+ protected readonly class: import("@angular/core").Signal<string>;
7
+ protected onInput(event: Event): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScRangeSliderMin, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScRangeSliderMin, "input[scRangeSliderMin]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export declare const MIN_THUMB_CLASSES: readonly ["pointer-events-none absolute top-0 h-full w-full cursor-pointer appearance-none bg-transparent", "disabled:pointer-events-none disabled:opacity-50", "[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:size-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-0 [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:transition-shadow", "[&::-webkit-slider-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:size-3 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:transition-shadow", "[&::-moz-range-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "focus-visible:outline-none [&:focus-visible::-webkit-slider-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "[&:focus-visible::-moz-range-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "z-10", "[&::-webkit-slider-thumb]:-mt-1.5", "[&::-webkit-slider-runnable-track]:appearance-none [&::-webkit-slider-runnable-track]:h-0 [&::-webkit-slider-runnable-track]:bg-transparent", "[&::-moz-range-track]:h-0 [&::-moz-range-track]:bg-transparent"];
2
+ export declare const MAX_THUMB_CLASSES: readonly ["pointer-events-none absolute top-0 h-full w-full cursor-pointer appearance-none bg-transparent", "disabled:pointer-events-none disabled:opacity-50", "[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:size-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-0 [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:transition-shadow", "[&::-webkit-slider-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:size-3 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:transition-shadow", "[&::-moz-range-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "focus-visible:outline-none [&:focus-visible::-webkit-slider-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "[&:focus-visible::-moz-range-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]", "[&::-webkit-slider-thumb]:-mt-1", "[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-[image:linear-gradient(to_right,var(--muted)_var(--min-percent),var(--primary)_var(--min-percent)_var(--max-percent),var(--muted)_var(--max-percent))]", "[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-[image:linear-gradient(to_right,var(--muted)_var(--min-percent),var(--primary)_var(--min-percent)_var(--max-percent),var(--muted)_var(--max-percent))]"];
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScRangeSlider {
3
+ private readonly el;
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ readonly minValue: import("@angular/core").ModelSignal<number>;
6
+ readonly maxValue: import("@angular/core").ModelSignal<number>;
7
+ readonly min: import("@angular/core").InputSignal<number>;
8
+ readonly max: import("@angular/core").InputSignal<number>;
9
+ readonly step: import("@angular/core").InputSignal<number>;
10
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
11
+ protected readonly class: import("@angular/core").Signal<string>;
12
+ readonly minPercent: import("@angular/core").Signal<number>;
13
+ readonly maxPercent: import("@angular/core").Signal<number>;
14
+ protected readonly minPercentCss: import("@angular/core").Signal<string>;
15
+ protected readonly maxPercentCss: import("@angular/core").Signal<string>;
16
+ protected onPointerDown(event: PointerEvent): void;
17
+ clampMin(val: number): number;
18
+ clampMax(val: number): number;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScRangeSlider, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScRangeSlider, "div[scRangeSlider]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "minValue": "minValueChange"; "maxValue": "maxValueChange"; }, never, never, true, never>;
21
+ }