@ship-ui/core 0.19.5 → 0.22.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 (153) hide show
  1. package/README.md +3 -0
  2. package/assets/mcp/components.json +66 -4243
  3. package/bin/mcp/index.js +6027 -273
  4. package/bin/ship-fg-scanner +0 -0
  5. package/bin/ship-fg.mjs +14 -12
  6. package/bin/src/subset.ts +3 -1
  7. package/fesm2022/ship-ui-core-sh-form-field-experimental.mjs +42 -0
  8. package/fesm2022/ship-ui-core-sh-form-field-experimental.mjs.map +1 -0
  9. package/fesm2022/ship-ui-core-ship-accordion.mjs +127 -0
  10. package/fesm2022/ship-ui-core-ship-accordion.mjs.map +1 -0
  11. package/fesm2022/ship-ui-core-ship-alert.mjs +305 -0
  12. package/fesm2022/ship-ui-core-ship-alert.mjs.map +1 -0
  13. package/fesm2022/ship-ui-core-ship-blueprint.mjs +1156 -0
  14. package/fesm2022/ship-ui-core-ship-blueprint.mjs.map +1 -0
  15. package/fesm2022/ship-ui-core-ship-button-group.mjs +41 -0
  16. package/fesm2022/ship-ui-core-ship-button-group.mjs.map +1 -0
  17. package/fesm2022/ship-ui-core-ship-button.mjs +38 -0
  18. package/fesm2022/ship-ui-core-ship-button.mjs.map +1 -0
  19. package/fesm2022/ship-ui-core-ship-card.mjs +35 -0
  20. package/fesm2022/ship-ui-core-ship-card.mjs.map +1 -0
  21. package/fesm2022/ship-ui-core-ship-checkbox.mjs +113 -0
  22. package/fesm2022/ship-ui-core-ship-checkbox.mjs.map +1 -0
  23. package/fesm2022/ship-ui-core-ship-chip.mjs +44 -0
  24. package/fesm2022/ship-ui-core-ship-chip.mjs.map +1 -0
  25. package/fesm2022/ship-ui-core-ship-color-picker.mjs +947 -0
  26. package/fesm2022/ship-ui-core-ship-color-picker.mjs.map +1 -0
  27. package/fesm2022/ship-ui-core-ship-datepicker.mjs +951 -0
  28. package/fesm2022/ship-ui-core-ship-datepicker.mjs.map +1 -0
  29. package/fesm2022/ship-ui-core-ship-dialog.mjs +263 -0
  30. package/fesm2022/ship-ui-core-ship-dialog.mjs.map +1 -0
  31. package/fesm2022/ship-ui-core-ship-divider.mjs +22 -0
  32. package/fesm2022/ship-ui-core-ship-divider.mjs.map +1 -0
  33. package/fesm2022/ship-ui-core-ship-event-card.mjs +50 -0
  34. package/fesm2022/ship-ui-core-ship-event-card.mjs.map +1 -0
  35. package/fesm2022/ship-ui-core-ship-file-upload.mjs +112 -0
  36. package/fesm2022/ship-ui-core-ship-file-upload.mjs.map +1 -0
  37. package/fesm2022/ship-ui-core-ship-form-field.mjs +310 -0
  38. package/fesm2022/ship-ui-core-ship-form-field.mjs.map +1 -0
  39. package/fesm2022/ship-ui-core-ship-icon.mjs +81 -0
  40. package/fesm2022/ship-ui-core-ship-icon.mjs.map +1 -0
  41. package/fesm2022/ship-ui-core-ship-list.mjs +22 -0
  42. package/fesm2022/ship-ui-core-ship-list.mjs.map +1 -0
  43. package/fesm2022/ship-ui-core-ship-menu.mjs +545 -0
  44. package/fesm2022/ship-ui-core-ship-menu.mjs.map +1 -0
  45. package/fesm2022/ship-ui-core-ship-popover.mjs +286 -0
  46. package/fesm2022/ship-ui-core-ship-popover.mjs.map +1 -0
  47. package/fesm2022/ship-ui-core-ship-progress-bar.mjs +37 -0
  48. package/fesm2022/ship-ui-core-ship-progress-bar.mjs.map +1 -0
  49. package/fesm2022/ship-ui-core-ship-radio.mjs +102 -0
  50. package/fesm2022/ship-ui-core-ship-radio.mjs.map +1 -0
  51. package/fesm2022/ship-ui-core-ship-range-slider.mjs +277 -0
  52. package/fesm2022/ship-ui-core-ship-range-slider.mjs.map +1 -0
  53. package/fesm2022/ship-ui-core-ship-select.mjs +971 -0
  54. package/fesm2022/ship-ui-core-ship-select.mjs.map +1 -0
  55. package/fesm2022/ship-ui-core-ship-sidenav.mjs +248 -0
  56. package/fesm2022/ship-ui-core-ship-sidenav.mjs.map +1 -0
  57. package/fesm2022/ship-ui-core-ship-sortable.mjs +485 -0
  58. package/fesm2022/ship-ui-core-ship-sortable.mjs.map +1 -0
  59. package/fesm2022/ship-ui-core-ship-spinner.mjs +28 -0
  60. package/fesm2022/ship-ui-core-ship-spinner.mjs.map +1 -0
  61. package/fesm2022/ship-ui-core-ship-stepper.mjs +76 -0
  62. package/fesm2022/ship-ui-core-ship-stepper.mjs.map +1 -0
  63. package/fesm2022/ship-ui-core-ship-table-filter-bar.mjs +28 -0
  64. package/fesm2022/ship-ui-core-ship-table-filter-bar.mjs.map +1 -0
  65. package/fesm2022/ship-ui-core-ship-table.mjs +442 -0
  66. package/fesm2022/ship-ui-core-ship-table.mjs.map +1 -0
  67. package/fesm2022/ship-ui-core-ship-tabs.mjs +38 -0
  68. package/fesm2022/ship-ui-core-ship-tabs.mjs.map +1 -0
  69. package/fesm2022/ship-ui-core-ship-theme-toggle.mjs +119 -0
  70. package/fesm2022/ship-ui-core-ship-theme-toggle.mjs.map +1 -0
  71. package/fesm2022/ship-ui-core-ship-toggle-card.mjs +75 -0
  72. package/fesm2022/ship-ui-core-ship-toggle-card.mjs.map +1 -0
  73. package/fesm2022/ship-ui-core-ship-toggle.mjs +105 -0
  74. package/fesm2022/ship-ui-core-ship-toggle.mjs.map +1 -0
  75. package/fesm2022/ship-ui-core-ship-virtual-scroll.mjs +186 -0
  76. package/fesm2022/ship-ui-core-ship-virtual-scroll.mjs.map +1 -0
  77. package/fesm2022/ship-ui-core.mjs +880 -8782
  78. package/fesm2022/ship-ui-core.mjs.map +1 -1
  79. package/package.json +147 -3
  80. package/styles/core.scss +43 -0
  81. package/styles/helpers.scss +2 -0
  82. package/styles/index.scss +12 -123
  83. package/types/ship-ui-core-sh-form-field-experimental.d.ts +11 -0
  84. package/types/ship-ui-core-ship-accordion.d.ts +19 -0
  85. package/types/ship-ui-core-ship-alert.d.ts +68 -0
  86. package/types/ship-ui-core-ship-blueprint.d.ts +112 -0
  87. package/types/ship-ui-core-ship-button-group.d.ts +15 -0
  88. package/types/ship-ui-core-ship-button.d.ts +13 -0
  89. package/types/ship-ui-core-ship-card.d.ts +11 -0
  90. package/types/ship-ui-core-ship-checkbox.d.ts +22 -0
  91. package/types/ship-ui-core-ship-chip.d.ts +15 -0
  92. package/types/ship-ui-core-ship-color-picker.d.ts +105 -0
  93. package/types/ship-ui-core-ship-datepicker.d.ts +96 -0
  94. package/types/ship-ui-core-ship-dialog.d.ts +76 -0
  95. package/types/ship-ui-core-ship-divider.d.ts +8 -0
  96. package/types/ship-ui-core-ship-event-card.d.ts +11 -0
  97. package/types/ship-ui-core-ship-file-upload.d.ts +20 -0
  98. package/types/ship-ui-core-ship-form-field.d.ts +32 -0
  99. package/types/ship-ui-core-ship-icon.d.ts +18 -0
  100. package/types/ship-ui-core-ship-list.d.ts +8 -0
  101. package/types/ship-ui-core-ship-menu.d.ts +49 -0
  102. package/types/ship-ui-core-ship-popover.d.ts +40 -0
  103. package/types/ship-ui-core-ship-progress-bar.d.ts +14 -0
  104. package/types/ship-ui-core-ship-radio.d.ts +22 -0
  105. package/types/ship-ui-core-ship-range-slider.d.ts +31 -0
  106. package/types/ship-ui-core-ship-select.d.ts +81 -0
  107. package/types/ship-ui-core-ship-sidenav.d.ts +36 -0
  108. package/types/ship-ui-core-ship-sortable.d.ts +72 -0
  109. package/types/ship-ui-core-ship-spinner.d.ts +10 -0
  110. package/types/ship-ui-core-ship-stepper.d.ts +13 -0
  111. package/types/ship-ui-core-ship-table-filter-bar.d.ts +8 -0
  112. package/types/ship-ui-core-ship-table.d.ts +69 -0
  113. package/types/ship-ui-core-ship-tabs.d.ts +14 -0
  114. package/types/ship-ui-core-ship-theme-toggle.d.ts +28 -0
  115. package/types/ship-ui-core-ship-toggle-card.d.ts +15 -0
  116. package/types/ship-ui-core-ship-toggle.d.ts +21 -0
  117. package/types/ship-ui-core-ship-virtual-scroll.d.ts +22 -0
  118. package/types/ship-ui-core.d.ts +88 -1070
  119. package/styles/components/ship-accordion.scss +0 -113
  120. package/styles/components/ship-alert-container.scss +0 -49
  121. package/styles/components/ship-alert.scss +0 -177
  122. package/styles/components/ship-blueprint.scss +0 -242
  123. package/styles/components/ship-button-group.scss +0 -165
  124. package/styles/components/ship-button.scss +0 -141
  125. package/styles/components/ship-card.scss +0 -57
  126. package/styles/components/ship-checkbox.scss +0 -116
  127. package/styles/components/ship-chip.scss +0 -104
  128. package/styles/components/ship-color-picker.scss +0 -150
  129. package/styles/components/ship-datepicker.scss +0 -317
  130. package/styles/components/ship-dialog.scss +0 -152
  131. package/styles/components/ship-divider.scss +0 -27
  132. package/styles/components/ship-event-card.scss +0 -51
  133. package/styles/components/ship-file-upload.scss +0 -47
  134. package/styles/components/ship-form-field.scss +0 -408
  135. package/styles/components/ship-icon.scss +0 -54
  136. package/styles/components/ship-list.scss +0 -165
  137. package/styles/components/ship-menu.scss +0 -237
  138. package/styles/components/ship-popover.scss +0 -205
  139. package/styles/components/ship-progress-bar.scss +0 -173
  140. package/styles/components/ship-radio.scss +0 -113
  141. package/styles/components/ship-range-slider.scss +0 -421
  142. package/styles/components/ship-select.scss +0 -153
  143. package/styles/components/ship-sidenav.scss +0 -195
  144. package/styles/components/ship-sortable.scss +0 -45
  145. package/styles/components/ship-spinner.scss +0 -53
  146. package/styles/components/ship-stepper.scss +0 -158
  147. package/styles/components/ship-table.scss +0 -443
  148. package/styles/components/ship-tabs.scss +0 -125
  149. package/styles/components/ship-theme-toggle.scss +0 -41
  150. package/styles/components/ship-toggle-card.scss +0 -69
  151. package/styles/components/ship-toggle.scss +0 -255
  152. package/styles/components/ship-tooltip.scss +0 -151
  153. package/styles/components/ship-virtual-scroll.scss +0 -12
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.19.5",
4
+ "version": "0.22.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=20",
7
7
  "@angular/core": ">=20",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@phosphor-icons/web": "^2.1.1",
27
- "harfbuzzjs": "^0.10.1",
27
+ "harfbuzzjs": "^1.2.0",
28
28
  "wawoff2": "^2.0.1",
29
29
  "tslib": "^2.3.0"
30
30
  },
@@ -59,7 +59,7 @@
59
59
  ],
60
60
  "exports": {
61
61
  ".": {
62
- "sass": "./styles/*",
62
+ "sass": "./styles/index.scss",
63
63
  "assets": [
64
64
  "./assets/**/*"
65
65
  ],
@@ -67,8 +67,152 @@
67
67
  "types": "./types/ship-ui-core.d.ts",
68
68
  "default": "./fesm2022/ship-ui-core.mjs"
69
69
  },
70
+ "./styles/*": {
71
+ "sass": "./styles/*",
72
+ "default": "./styles/*"
73
+ },
70
74
  "./package.json": {
71
75
  "default": "./package.json"
76
+ },
77
+ "./sh-form-field-experimental": {
78
+ "types": "./types/ship-ui-core-sh-form-field-experimental.d.ts",
79
+ "default": "./fesm2022/ship-ui-core-sh-form-field-experimental.mjs"
80
+ },
81
+ "./ship-accordion": {
82
+ "types": "./types/ship-ui-core-ship-accordion.d.ts",
83
+ "default": "./fesm2022/ship-ui-core-ship-accordion.mjs"
84
+ },
85
+ "./ship-alert": {
86
+ "types": "./types/ship-ui-core-ship-alert.d.ts",
87
+ "default": "./fesm2022/ship-ui-core-ship-alert.mjs"
88
+ },
89
+ "./ship-blueprint": {
90
+ "types": "./types/ship-ui-core-ship-blueprint.d.ts",
91
+ "default": "./fesm2022/ship-ui-core-ship-blueprint.mjs"
92
+ },
93
+ "./ship-button": {
94
+ "types": "./types/ship-ui-core-ship-button.d.ts",
95
+ "default": "./fesm2022/ship-ui-core-ship-button.mjs"
96
+ },
97
+ "./ship-button-group": {
98
+ "types": "./types/ship-ui-core-ship-button-group.d.ts",
99
+ "default": "./fesm2022/ship-ui-core-ship-button-group.mjs"
100
+ },
101
+ "./ship-card": {
102
+ "types": "./types/ship-ui-core-ship-card.d.ts",
103
+ "default": "./fesm2022/ship-ui-core-ship-card.mjs"
104
+ },
105
+ "./ship-checkbox": {
106
+ "types": "./types/ship-ui-core-ship-checkbox.d.ts",
107
+ "default": "./fesm2022/ship-ui-core-ship-checkbox.mjs"
108
+ },
109
+ "./ship-chip": {
110
+ "types": "./types/ship-ui-core-ship-chip.d.ts",
111
+ "default": "./fesm2022/ship-ui-core-ship-chip.mjs"
112
+ },
113
+ "./ship-color-picker": {
114
+ "types": "./types/ship-ui-core-ship-color-picker.d.ts",
115
+ "default": "./fesm2022/ship-ui-core-ship-color-picker.mjs"
116
+ },
117
+ "./ship-datepicker": {
118
+ "types": "./types/ship-ui-core-ship-datepicker.d.ts",
119
+ "default": "./fesm2022/ship-ui-core-ship-datepicker.mjs"
120
+ },
121
+ "./ship-dialog": {
122
+ "types": "./types/ship-ui-core-ship-dialog.d.ts",
123
+ "default": "./fesm2022/ship-ui-core-ship-dialog.mjs"
124
+ },
125
+ "./ship-divider": {
126
+ "types": "./types/ship-ui-core-ship-divider.d.ts",
127
+ "default": "./fesm2022/ship-ui-core-ship-divider.mjs"
128
+ },
129
+ "./ship-event-card": {
130
+ "types": "./types/ship-ui-core-ship-event-card.d.ts",
131
+ "default": "./fesm2022/ship-ui-core-ship-event-card.mjs"
132
+ },
133
+ "./ship-file-upload": {
134
+ "types": "./types/ship-ui-core-ship-file-upload.d.ts",
135
+ "default": "./fesm2022/ship-ui-core-ship-file-upload.mjs"
136
+ },
137
+ "./ship-form-field": {
138
+ "types": "./types/ship-ui-core-ship-form-field.d.ts",
139
+ "default": "./fesm2022/ship-ui-core-ship-form-field.mjs"
140
+ },
141
+ "./ship-icon": {
142
+ "types": "./types/ship-ui-core-ship-icon.d.ts",
143
+ "default": "./fesm2022/ship-ui-core-ship-icon.mjs"
144
+ },
145
+ "./ship-list": {
146
+ "types": "./types/ship-ui-core-ship-list.d.ts",
147
+ "default": "./fesm2022/ship-ui-core-ship-list.mjs"
148
+ },
149
+ "./ship-menu": {
150
+ "types": "./types/ship-ui-core-ship-menu.d.ts",
151
+ "default": "./fesm2022/ship-ui-core-ship-menu.mjs"
152
+ },
153
+ "./ship-popover": {
154
+ "types": "./types/ship-ui-core-ship-popover.d.ts",
155
+ "default": "./fesm2022/ship-ui-core-ship-popover.mjs"
156
+ },
157
+ "./ship-progress-bar": {
158
+ "types": "./types/ship-ui-core-ship-progress-bar.d.ts",
159
+ "default": "./fesm2022/ship-ui-core-ship-progress-bar.mjs"
160
+ },
161
+ "./ship-radio": {
162
+ "types": "./types/ship-ui-core-ship-radio.d.ts",
163
+ "default": "./fesm2022/ship-ui-core-ship-radio.mjs"
164
+ },
165
+ "./ship-range-slider": {
166
+ "types": "./types/ship-ui-core-ship-range-slider.d.ts",
167
+ "default": "./fesm2022/ship-ui-core-ship-range-slider.mjs"
168
+ },
169
+ "./ship-select": {
170
+ "types": "./types/ship-ui-core-ship-select.d.ts",
171
+ "default": "./fesm2022/ship-ui-core-ship-select.mjs"
172
+ },
173
+ "./ship-sidenav": {
174
+ "types": "./types/ship-ui-core-ship-sidenav.d.ts",
175
+ "default": "./fesm2022/ship-ui-core-ship-sidenav.mjs"
176
+ },
177
+ "./ship-sortable": {
178
+ "types": "./types/ship-ui-core-ship-sortable.d.ts",
179
+ "default": "./fesm2022/ship-ui-core-ship-sortable.mjs"
180
+ },
181
+ "./ship-spinner": {
182
+ "types": "./types/ship-ui-core-ship-spinner.d.ts",
183
+ "default": "./fesm2022/ship-ui-core-ship-spinner.mjs"
184
+ },
185
+ "./ship-stepper": {
186
+ "types": "./types/ship-ui-core-ship-stepper.d.ts",
187
+ "default": "./fesm2022/ship-ui-core-ship-stepper.mjs"
188
+ },
189
+ "./ship-table": {
190
+ "types": "./types/ship-ui-core-ship-table.d.ts",
191
+ "default": "./fesm2022/ship-ui-core-ship-table.mjs"
192
+ },
193
+ "./ship-table-filter-bar": {
194
+ "types": "./types/ship-ui-core-ship-table-filter-bar.d.ts",
195
+ "default": "./fesm2022/ship-ui-core-ship-table-filter-bar.mjs"
196
+ },
197
+ "./ship-tabs": {
198
+ "types": "./types/ship-ui-core-ship-tabs.d.ts",
199
+ "default": "./fesm2022/ship-ui-core-ship-tabs.mjs"
200
+ },
201
+ "./ship-theme-toggle": {
202
+ "types": "./types/ship-ui-core-ship-theme-toggle.d.ts",
203
+ "default": "./fesm2022/ship-ui-core-ship-theme-toggle.mjs"
204
+ },
205
+ "./ship-toggle": {
206
+ "types": "./types/ship-ui-core-ship-toggle.d.ts",
207
+ "default": "./fesm2022/ship-ui-core-ship-toggle.mjs"
208
+ },
209
+ "./ship-toggle-card": {
210
+ "types": "./types/ship-ui-core-ship-toggle-card.d.ts",
211
+ "default": "./fesm2022/ship-ui-core-ship-toggle-card.mjs"
212
+ },
213
+ "./ship-virtual-scroll": {
214
+ "types": "./types/ship-ui-core-ship-virtual-scroll.d.ts",
215
+ "default": "./fesm2022/ship-ui-core-ship-virtual-scroll.mjs"
72
216
  }
73
217
  },
74
218
  "sideEffects": false,
@@ -0,0 +1,43 @@
1
+ $useInterTight: true !default;
2
+ $useApexcharts: false !default;
3
+
4
+ @use './core/fonts/inter-tight' with (
5
+ $useInterTight: $useInterTight
6
+ );
7
+
8
+ @use './core/apexcharts/apexcharts' with (
9
+ $useApexcharts: $useApexcharts
10
+ );
11
+
12
+ @use './core/core';
13
+
14
+ $shipSheet: true !default;
15
+ $shipFormFieldShadow: false !default;
16
+ $shipButtonShadow: false !default;
17
+ $shipChipShadow: false !default;
18
+
19
+ @use './components/ship-sheet.utility.scss' with (
20
+ $shipSheet: $shipSheet
21
+ );
22
+
23
+ $form-field-shadow-val: none;
24
+ @if $shipFormFieldShadow != false {
25
+ $form-field-shadow-val: var(--box-shadow-10);
26
+ }
27
+
28
+ $button-shadow-val: none;
29
+ @if $shipButtonShadow != false {
30
+ $button-shadow-val: var(--box-shadow-10);
31
+ }
32
+
33
+ $chip-shadow-val: none;
34
+ @if $shipChipShadow != false {
35
+ $chip-shadow-val: var(--box-shadow-10);
36
+ }
37
+
38
+ :root {
39
+ --ship-form-field-shadow: #{$form-field-shadow-val};
40
+ --ship-button-shadow: #{$button-shadow-val};
41
+ --ship-chip-shadow: #{$chip-shadow-val};
42
+ }
43
+
@@ -12,3 +12,5 @@
12
12
  @forward './core/helpers/mixins/overflow-scrolling';
13
13
  @forward './core/helpers/mixins/scroll-shadows';
14
14
  // @forward './core/helpers/mixins/border-gradient';
15
+
16
+ @use './core/helpers/fn/p2r' as *;
package/styles/index.scss CHANGED
@@ -1,20 +1,20 @@
1
1
  $useInterTight: true !default;
2
2
  $useApexcharts: false !default;
3
+ $shipSheet: true !default;
4
+ $shipFormFieldShadow: false !default;
5
+ $shipButtonShadow: false !default;
6
+ $shipChipShadow: false !default;
3
7
 
4
- @use './core/fonts/inter-tight' with (
5
- $useInterTight: $useInterTight
6
- );
7
-
8
- @use './core/apexcharts/apexcharts' with (
9
- $useApexcharts: $useApexcharts
8
+ @use './core.scss' with (
9
+ $useInterTight: $useInterTight,
10
+ $useApexcharts: $useApexcharts,
11
+ $shipSheet: $shipSheet,
12
+ $shipFormFieldShadow: $shipFormFieldShadow,
13
+ $shipButtonShadow: $shipButtonShadow,
14
+ $shipChipShadow: $shipChipShadow
10
15
  );
11
16
 
12
- @use './core/core';
13
-
14
17
  $shipBaseTypes: ('base', 'simple', 'raised', 'outlined', 'flat');
15
- $shipFormFieldShadow: false !default;
16
- $shipButtonShadow: false !default;
17
- $shipChipShadow: false !default;
18
18
 
19
19
  $shipAlert: true !default;
20
20
  $shipBlueprint: true !default;
@@ -52,115 +52,4 @@ $shipTabs: true !default;
52
52
  $shipFileUpload: true !default;
53
53
  $shipAccordion: true !default;
54
54
 
55
- @use './components/ship-alert-container.scss' with (
56
- $shipAlert: $shipAlert
57
- );
58
- @use './components/ship-alert.scss' with (
59
- $shipAlert: $shipAlert
60
- );
61
- @use './components/ship-blueprint.scss' with (
62
- $shipBlueprint: $shipBlueprint
63
- );
64
- @use './components/ship-toggle.scss' with (
65
- $shipToggle: $shipToggle
66
- );
67
- @use './components/ship-theme-toggle.scss' with (
68
- $shipThemeToggle: $shipThemeToggle
69
- );
70
- @use './components/ship-button.scss' with (
71
- $shipButton: $shipButton,
72
- $shipButtonShadow: $shipButtonShadow
73
- );
74
- @use './components/ship-progress-bar.scss' with (
75
- $shipProgressBar: $shipProgressBar
76
- );
77
- @use './components/ship-checkbox.scss' with (
78
- $shipCheckbox: $shipCheckbox
79
- );
80
- @use './components/ship-datepicker.scss' with (
81
- $shipDatepicker: $shipDatepicker
82
- );
83
- @use './components/ship-event-card.scss' with (
84
- $shipEventCard: $shipEventCard
85
- );
86
- @use './components/ship-icon.scss' with (
87
- $shipIcon: $shipIcon
88
- );
89
- @use './components/ship-menu.scss' with (
90
- $shipMenu: $shipMenu
91
- );
92
- @use './components/ship-divider.scss' with (
93
- $shipDivider: $shipDivider
94
- );
95
- @use './components/ship-dialog.scss' with (
96
- $shipDialog: $shipDialog
97
- );
98
- @use './components/ship-popover.scss' with (
99
- $shipPopover: $shipPopover
100
- );
101
- @use './components/ship-chip.scss' with (
102
- $shipChip: $shipChip,
103
- $shipChipShadow: $shipChipShadow
104
- );
105
- @use './components/ship-form-field.scss' with (
106
- $shipFormField: $shipFormField,
107
- $shipDatepicker: $shipDatepicker,
108
- $shipFormFieldShadow: $shipFormFieldShadow
109
- );
110
- @use './components/ship-color-picker.scss' with (
111
- $shipColorPicker: $shipColorPicker
112
- );
113
- @use './components/ship-sidenav.scss' with (
114
- $shipSidenav: $shipSidenav
115
- );
116
- @use './components/ship-list.scss' with (
117
- $shipList: $shipList
118
- );
119
- @use './components/ship-radio.scss' with (
120
- $shipRadio: $shipRadio
121
- );
122
- @use './components/ship-button-group.scss' with (
123
- $shipButtonGroup: $shipButtonGroup
124
- );
125
- @use './components/ship-range-slider.scss' with (
126
- $shipRangeSlider: $shipRangeSlider
127
- );
128
- @use './components/ship-tooltip.scss' with (
129
- $shipTooltip: $shipTooltip
130
- );
131
- @use './components/ship-virtual-scroll.scss' with (
132
- $shipVirtualScroll: $shipVirtualScroll
133
- );
134
- @use './components/ship-select.scss' with (
135
- $shipSelect: $shipSelect
136
- );
137
- @use './components/ship-card.scss' with (
138
- $shipCard: $shipCard
139
- );
140
- @use './components/ship-sheet.utility.scss' with (
141
- $shipSheet: $shipSheet
142
- );
143
- @use './components/ship-stepper.scss' with (
144
- $shipStepper: $shipStepper
145
- );
146
- @use './components/ship-spinner.scss' with (
147
- $shipSpinner: $shipSpinner
148
- );
149
- @use './components/ship-sortable.scss' with (
150
- $shipSortable: $shipSortable
151
- );
152
- @use './components/ship-toggle-card.scss' with (
153
- $shipToggleCard: $shipToggleCard
154
- );
155
- @use './components/ship-table.scss' with (
156
- $shipTable: $shipTable
157
- );
158
- @use './components/ship-tabs.scss' with (
159
- $shipTabs: $shipTabs
160
- );
161
- @use './components/ship-file-upload.scss' with (
162
- $shipFileUpload: $shipFileUpload
163
- );
164
- @use './components/ship-accordion.scss' with (
165
- $shipAccordion: $shipAccordion
166
- );
55
+
@@ -0,0 +1,11 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ declare class ShipFormFieldExperimental {
4
+ firstInput: _angular_core.WritableSignal<string | undefined>;
5
+ hello: _angular_core.EffectRef;
6
+ myClick(): void;
7
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipFormFieldExperimental, never>;
8
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipFormFieldExperimental, "sh-form-field-experimental", never, {}, {}, never, ["*"], true, never>;
9
+ }
10
+
11
+ export { ShipFormFieldExperimental };
@@ -0,0 +1,19 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ShipVariant } from '@ship-ui/core';
3
+
4
+ declare class ShipAccordion {
5
+ private selfElement;
6
+ readonly name: _angular_core.InputSignal<string>;
7
+ readonly value: _angular_core.ModelSignal<string | null>;
8
+ readonly allowMultiple: _angular_core.InputSignal<boolean>;
9
+ readonly variant: _angular_core.InputSignal<ShipVariant | null>;
10
+ readonly size: _angular_core.InputSignal<string | null>;
11
+ hostClasses: _angular_core.Signal<string>;
12
+ protected items: _angular_core.Signal<HTMLDetailsElement[]>;
13
+ constructor();
14
+ onToggle(event: Event): void;
15
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipAccordion, never>;
16
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipAccordion, "sh-accordion", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
17
+ }
18
+
19
+ export { ShipAccordion };
@@ -0,0 +1,68 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ElementRef, QueryList } from '@angular/core';
3
+
4
+ type ShipAlertItem = {
5
+ type: ShipAlertType;
6
+ title: string;
7
+ content?: string;
8
+ };
9
+ type ShipAlertItemInternal = ShipAlertItem & {
10
+ id: string;
11
+ isOpen: boolean;
12
+ animateOut: boolean;
13
+ animateIn: boolean;
14
+ };
15
+ declare class ShipAlertService {
16
+ alertHistory: _angular_core.WritableSignal<ShipAlertItemInternal[]>;
17
+ alertHistoryIsOpen: _angular_core.WritableSignal<boolean>;
18
+ alertHistoryIsHidden: _angular_core.WritableSignal<boolean>;
19
+ error(message: string | null | undefined): void;
20
+ success(message: string): void;
21
+ question(message: string): void;
22
+ warning(message: string): void;
23
+ info(message: string): void;
24
+ addAlert(alert: ShipAlertItem): void;
25
+ removeAlert(id: string): void;
26
+ hideAlert(id: string): void;
27
+ setHidden(isHidden: boolean): void;
28
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipAlertService, never>;
29
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ShipAlertService>;
30
+ }
31
+
32
+ type ShipAlertType = 'error' | 'success' | 'warn' | 'primary' | 'accent' | 'question';
33
+ declare class ShipAlert {
34
+ color: _angular_core.InputSignal<"" | "error" | "success" | "warn" | "primary" | "accent" | null>;
35
+ variant: _angular_core.InputSignal<"" | "simple" | "outlined" | "flat" | "raised" | null>;
36
+ hostClasses: _angular_core.Signal<string>;
37
+ _el: ElementRef<any>;
38
+ alertService: _angular_core.InputSignal<ShipAlertService | null>;
39
+ id: _angular_core.InputSignal<string | null>;
40
+ removeAlert(): void;
41
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipAlert, never>;
42
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipAlert, "sh-alert", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "alertService": { "alias": "alertService"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, ["[icon]", "sh-icon", "[title]", "*", "button", "[actions]", "[content]", "p"], true, never>;
43
+ }
44
+
45
+ declare class ShipAlertContainer {
46
+ #private;
47
+ inline: _angular_core.InputSignal<string | null>;
48
+ alerts: _angular_core.Signal<QueryList<ShipAlert>>;
49
+ scroller: _angular_core.Signal<ElementRef<HTMLDivElement>>;
50
+ alertService: _angular_core.InputSignal<ShipAlertService>;
51
+ numberOfOpenAlerts: _angular_core.Signal<number>;
52
+ onMouseOver(): void;
53
+ onMouseOut(): void;
54
+ getElementHeight(i: number): number;
55
+ transformY(i: number): string;
56
+ transitionDelay(i: number, allOpen?: boolean): string;
57
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipAlertContainer, never>;
58
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipAlertContainer, "ship-alert-container", never, { "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "alertService": { "alias": "alertService"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
59
+ }
60
+
61
+ declare class ShipAlertModule {
62
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipAlertModule, never>;
63
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ShipAlertModule, never, [typeof ShipAlert, typeof ShipAlertContainer], [typeof ShipAlert, typeof ShipAlertContainer]>;
64
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<ShipAlertModule>;
65
+ }
66
+
67
+ export { ShipAlert, ShipAlertContainer, ShipAlertModule, ShipAlertService };
68
+ export type { ShipAlertItem, ShipAlertItemInternal, ShipAlertType };
@@ -0,0 +1,112 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
3
+
4
+ type Port = {
5
+ id: string;
6
+ name: string;
7
+ };
8
+ type BlueprintNode = {
9
+ id: string;
10
+ name?: string;
11
+ coordinates: Coordinates;
12
+ inputs: Port[];
13
+ outputs: Port[];
14
+ connections: Connection[];
15
+ };
16
+ type Connection = {
17
+ fromNode: string;
18
+ fromPort: string;
19
+ toNode: string;
20
+ toPort: string;
21
+ };
22
+ type DragState = {
23
+ fromNode: string;
24
+ fromPort: string;
25
+ x2: number;
26
+ y2: number;
27
+ };
28
+ type Coordinates = [x: number, y: number];
29
+ declare const TEST_NODES: BlueprintNode[];
30
+ type ValidationErrors = {
31
+ duplicateNodeIds: string[];
32
+ duplicatePortIds: {
33
+ nodeId: string;
34
+ duplicatePortIds: string[];
35
+ }[];
36
+ };
37
+ declare class ShipBlueprint implements AfterViewInit, OnDestroy {
38
+ #private;
39
+ asDots: _angular_core.Signal<boolean>;
40
+ lightMode: _angular_core.Signal<boolean>;
41
+ forceUnique: _angular_core.InputSignal<boolean>;
42
+ autoLayout: _angular_core.InputSignal<boolean>;
43
+ gridSize: _angular_core.InputSignal<number>;
44
+ snapToGrid: _angular_core.InputSignal<boolean>;
45
+ gridColor: _angular_core.InputSignal<[string, string]>;
46
+ nodes: _angular_core.ModelSignal<BlueprintNode[]>;
47
+ panX: _angular_core.WritableSignal<number>;
48
+ panY: _angular_core.WritableSignal<number>;
49
+ zoomLevel: _angular_core.WritableSignal<number>;
50
+ gridSnapSize: _angular_core.WritableSignal<number>;
51
+ isHoveringNode: _angular_core.WritableSignal<boolean>;
52
+ midpointDivPosition: _angular_core.WritableSignal<{
53
+ x: number;
54
+ y: number;
55
+ } | null>;
56
+ showMidpointDiv: _angular_core.WritableSignal<boolean>;
57
+ isLocked: _angular_core.WritableSignal<boolean>;
58
+ draggingConnection: _angular_core.WritableSignal<DragState | null>;
59
+ validationErrors: _angular_core.WritableSignal<ValidationErrors | null>;
60
+ highlightedConnection: _angular_core.WritableSignal<Connection | null>;
61
+ canvasRef: ElementRef<HTMLCanvasElement>;
62
+ visibleNodes: _angular_core.Signal<BlueprintNode[]>;
63
+ constructor();
64
+ ngAfterViewInit(): void;
65
+ ngOnDestroy(): void;
66
+ onMouseUp(event: MouseEvent): void;
67
+ onClick(event: MouseEvent): void;
68
+ onEscape(): void;
69
+ onMouseMove(event: MouseEvent): void;
70
+ onTouchMove(event: TouchEvent): void;
71
+ onDocumentTouchEnd(event: TouchEvent): void;
72
+ applyAutolayout(): void;
73
+ updateCanvasSize(): void;
74
+ drawCanvas(): void;
75
+ drawGrid(ctx: CanvasRenderingContext2D): void;
76
+ drawConnections(ctx: CanvasRenderingContext2D): void;
77
+ drawDraggingPath(ctx: CanvasRenderingContext2D): void;
78
+ drawCurvedPath(ctx: CanvasRenderingContext2D, start: Coordinates, end: Coordinates): void;
79
+ startNodeDrag(event: MouseEvent | TouchEvent, nodeId: string): void;
80
+ endNodeDrag(): void;
81
+ nodeDrag(event: MouseEvent | Touch): void;
82
+ startPortDrag(event: MouseEvent, nodeId: string, portId: string): void;
83
+ endPortDrag(_: MouseEvent, toNodeId: string, toPortId: string): void;
84
+ cancelPortDrag(): void;
85
+ updatePathOnMove(event: MouseEvent | Touch): void;
86
+ getNodePortPosition(nodeId: string, portId: string): Coordinates;
87
+ startPan(event: MouseEvent): void;
88
+ endPan(): void;
89
+ pan(event: MouseEvent): void;
90
+ zoom(event: WheelEvent): void;
91
+ handleTouchStart(event: TouchEvent): void;
92
+ handleTouchMove(event: TouchEvent): void;
93
+ handleTouchEnd(): void;
94
+ closeMidpointDiv(): void;
95
+ getDisplayCoordinates(node: BlueprintNode): string;
96
+ removeConnection(): void;
97
+ getNewNodeCoordinates(panToCoordinates?: boolean): Coordinates;
98
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipBlueprint, never>;
99
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipBlueprint, "sh-blueprint", never, { "forceUnique": { "alias": "forceUnique"; "required": false; "isSignal": true; }; "autoLayout": { "alias": "autoLayout"; "required": false; "isSignal": true; }; "gridSize": { "alias": "gridSize"; "required": false; "isSignal": true; }; "snapToGrid": { "alias": "snapToGrid"; "required": false; "isSignal": true; }; "gridColor": { "alias": "gridColor"; "required": false; "isSignal": true; }; "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; }, { "nodes": "nodesChange"; }, never, ["*"], true, never>;
100
+ }
101
+
102
+ declare function layoutNodes(nodes: BlueprintNode[]): BlueprintNode[];
103
+
104
+ type PortValidationError = {
105
+ nodeId: string;
106
+ duplicatePortIds: string[];
107
+ };
108
+ declare function findDuplicatePortIDs(nodes: BlueprintNode[]): PortValidationError[];
109
+ declare function findDuplicateNodeIDs(nodes: BlueprintNode[]): string[];
110
+
111
+ export { ShipBlueprint, TEST_NODES, findDuplicateNodeIDs, findDuplicatePortIDs, layoutNodes };
112
+ export type { BlueprintNode, Coordinates, PortValidationError };
@@ -0,0 +1,15 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ShipSelectionGroup } from '@ship-ui/core';
3
+
4
+ declare class ShipButtonGroup extends ShipSelectionGroup<string> {
5
+ id: string;
6
+ color: _angular_core.InputSignal<"" | "primary" | "accent" | "warn" | "error" | "success" | null>;
7
+ variant: _angular_core.InputSignal<"" | null>;
8
+ size: _angular_core.InputSignal<"" | "small" | "xsmall" | null>;
9
+ constructor();
10
+ hostClasses: _angular_core.Signal<string>;
11
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipButtonGroup, never>;
12
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipButtonGroup, "sh-button-group", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
13
+ }
14
+
15
+ export { ShipButtonGroup };
@@ -0,0 +1,13 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ declare class ShipButton {
4
+ color: _angular_core.InputSignal<"" | "primary" | "accent" | "warn" | "error" | "success" | null>;
5
+ variant: _angular_core.InputSignal<"" | "simple" | "outlined" | "flat" | "raised" | null>;
6
+ size: _angular_core.InputSignal<"" | "small" | "xsmall" | null>;
7
+ readonly: _angular_core.InputSignal<boolean>;
8
+ hostClasses: _angular_core.Signal<string>;
9
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipButton, never>;
10
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipButton, "[shButton]", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
11
+ }
12
+
13
+ export { ShipButton };
@@ -0,0 +1,11 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ declare class ShipCard {
4
+ color: _angular_core.InputSignal<"" | "primary" | "accent" | "warn" | "error" | "success" | null>;
5
+ variant: _angular_core.InputSignal<"" | "type-a" | "type-b" | "type-c" | null>;
6
+ hostClasses: _angular_core.Signal<string>;
7
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipCard, never>;
8
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipCard, "sh-card", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
9
+ }
10
+
11
+ export { ShipCard };
@@ -0,0 +1,22 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ElementRef } from '@angular/core';
3
+
4
+ declare class ShipCheckbox {
5
+ private readonly _elementRef;
6
+ internalInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
7
+ projectedInputs: _angular_core.Signal<HTMLInputElement[]>;
8
+ checked: _angular_core.ModelSignal<boolean>;
9
+ currentClassList: _angular_core.Signal<string>;
10
+ color: _angular_core.InputSignal<"" | "primary" | "accent" | "warn" | "error" | "success" | null>;
11
+ variant: _angular_core.InputSignal<"" | "simple" | "outlined" | "flat" | "raised" | null>;
12
+ readonly: _angular_core.InputSignal<boolean>;
13
+ disabled: _angular_core.InputSignal<boolean>;
14
+ noInternalInput: _angular_core.InputSignal<boolean>;
15
+ protected onInternalInputChange(event: Event): void;
16
+ hostClasses: _angular_core.Signal<string>;
17
+ protected onEnter(event: Event): void;
18
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipCheckbox, never>;
19
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipCheckbox, "sh-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "noInternalInput": { "alias": "noInternalInput"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
20
+ }
21
+
22
+ export { ShipCheckbox };