@tekus/design-system 2.0.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/_index.scss +1 -0
- package/assets/styles/_variables.scss +284 -0
- package/components/{search-bar → forms}/index.d.ts +1 -1
- package/components/forms/public-api.d.ts +3 -0
- package/components/forms/tk-form-autocomplete-field/index.d.ts +5 -0
- package/components/forms/tk-form-autocomplete-field/models/option.model.d.ts +4 -0
- package/components/forms/tk-form-autocomplete-field/public-api.d.ts +1 -0
- package/components/forms/tk-form-autocomplete-field/tk-form-autocomplete-field.component.d.ts +158 -0
- package/components/forms/tk-form-chips-autocomplete-field/index.d.ts +5 -0
- package/components/forms/tk-form-chips-autocomplete-field/models/option.model.d.ts +4 -0
- package/components/forms/tk-form-chips-autocomplete-field/public-api.d.ts +1 -0
- package/components/forms/tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component.d.ts +114 -0
- package/components/forms/tk-form-input-field/index.d.ts +5 -0
- package/components/forms/tk-form-input-field/models/validator-with-message.model.d.ts +5 -0
- package/components/forms/tk-form-input-field/public-api.d.ts +1 -0
- package/components/forms/tk-form-input-field/tk-form-input-field.component.d.ts +132 -0
- package/components/tk-dropdown-list/index.d.ts +5 -0
- package/components/tk-dropdown-list/public-api.d.ts +1 -0
- package/components/{dropdown-list/dropdown-list.component.d.ts → tk-dropdown-list/tk-dropdown-list.component.d.ts} +3 -3
- package/components/{dropdown-list → tk-search-bar}/index.d.ts +1 -1
- package/components/tk-search-bar/public-api.d.ts +1 -0
- package/components/{search-bar/search-bar.component.d.ts → tk-search-bar/tk-search-bar.component.d.ts} +3 -3
- package/components/tk-typography/index.d.ts +5 -0
- package/components/tk-typography/public-api.d.ts +1 -0
- package/components/tk-typography/tk-typography.component.d.ts +10 -0
- package/esm2022/components/forms/public-api.mjs +4 -0
- package/esm2022/components/forms/tekus-design-system-components-forms.mjs +5 -0
- package/esm2022/components/forms/tk-form-autocomplete-field/models/option.model.mjs +2 -0
- package/esm2022/components/forms/tk-form-autocomplete-field/public-api.mjs +2 -0
- package/esm2022/components/forms/tk-form-autocomplete-field/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs +5 -0
- package/esm2022/components/forms/tk-form-autocomplete-field/tk-form-autocomplete-field.component.mjs +238 -0
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/models/option.model.mjs +2 -0
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/public-api.mjs +2 -0
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs +5 -0
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component.mjs +167 -0
- package/esm2022/components/forms/tk-form-input-field/models/validator-with-message.model.mjs +2 -0
- package/esm2022/components/forms/tk-form-input-field/public-api.mjs +2 -0
- package/esm2022/components/forms/tk-form-input-field/tekus-design-system-components-forms-tk-form-input-field.mjs +5 -0
- package/esm2022/components/forms/tk-form-input-field/tk-form-input-field.component.mjs +199 -0
- package/esm2022/components/tk-dropdown-list/models/dropdown-list-item.model.mjs +2 -0
- package/esm2022/components/tk-dropdown-list/public-api.mjs +2 -0
- package/esm2022/components/tk-dropdown-list/tekus-design-system-components-tk-dropdown-list.mjs +5 -0
- package/esm2022/components/tk-dropdown-list/tk-dropdown-list.component.mjs +137 -0
- package/esm2022/components/tk-search-bar/public-api.mjs +2 -0
- package/esm2022/components/tk-search-bar/tekus-design-system-components-tk-search-bar.mjs +5 -0
- package/esm2022/components/tk-search-bar/tk-search-bar.component.mjs +49 -0
- package/esm2022/components/tk-typography/public-api.mjs +2 -0
- package/esm2022/components/tk-typography/tekus-design-system-components-tk-typography.mjs +5 -0
- package/esm2022/components/tk-typography/tk-typography.component.mjs +29 -0
- package/esm2022/services/typography/models/typographyStyles.model.mjs +2 -0
- package/esm2022/services/typography/public-api.mjs +2 -0
- package/esm2022/services/typography/tekus-design-system-services-typography.mjs +5 -0
- package/esm2022/services/typography/typography.service.mjs +84 -0
- package/fesm2022/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs +245 -0
- package/fesm2022/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs +174 -0
- package/fesm2022/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-forms-tk-form-input-field.mjs +206 -0
- package/fesm2022/tekus-design-system-components-forms-tk-form-input-field.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-forms.mjs +590 -0
- package/fesm2022/tekus-design-system-components-forms.mjs.map +1 -0
- package/fesm2022/{tekus-design-system-components-dropdown-list.mjs → tekus-design-system-components-tk-dropdown-list.mjs} +7 -7
- package/fesm2022/tekus-design-system-components-tk-dropdown-list.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-tk-search-bar.mjs +56 -0
- package/fesm2022/tekus-design-system-components-tk-search-bar.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-tk-typography.mjs +36 -0
- package/fesm2022/tekus-design-system-components-tk-typography.mjs.map +1 -0
- package/fesm2022/tekus-design-system-services-typography.mjs +91 -0
- package/fesm2022/tekus-design-system-services-typography.mjs.map +1 -0
- package/package.json +55 -15
- package/services/typography/index.d.ts +5 -0
- package/services/typography/models/typographyStyles.model.d.ts +36 -0
- package/services/typography/public-api.d.ts +1 -0
- package/services/typography/typography.service.d.ts +8 -0
- package/components/dropdown-list/public-api.d.ts +0 -2
- package/components/search-bar/public-api.d.ts +0 -1
- package/esm2022/components/dropdown-list/dropdown-list.component.mjs +0 -137
- package/esm2022/components/dropdown-list/models/dropdown-list-item.model.mjs +0 -2
- package/esm2022/components/dropdown-list/public-api.mjs +0 -3
- package/esm2022/components/dropdown-list/tekus-design-system-components-dropdown-list.mjs +0 -5
- package/esm2022/components/search-bar/public-api.mjs +0 -2
- package/esm2022/components/search-bar/search-bar.component.mjs +0 -83
- package/esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs +0 -5
- package/fesm2022/tekus-design-system-components-dropdown-list.mjs.map +0 -1
- package/fesm2022/tekus-design-system-components-search-bar.mjs +0 -90
- package/fesm2022/tekus-design-system-components-search-bar.mjs.map +0 -1
- /package/components/{dropdown-list → tk-dropdown-list}/models/dropdown-list-item.model.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward './variables';
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/* Colors -----------------------------------------*/
|
|
2
|
+
$tk-color-primary-900: var(--tk-color-primary-900);
|
|
3
|
+
$tk-color-primary-800: var(--tk-color-primary-800);
|
|
4
|
+
$tk-color-primary-700: var(--tk-color-primary-700);
|
|
5
|
+
$tk-color-primary-600: var(--tk-color-primary-600);
|
|
6
|
+
$tk-color-primary-500: var(--tk-color-primary-500);
|
|
7
|
+
$tk-color-primary-400: var(--tk-color-primary-400);
|
|
8
|
+
$tk-color-primary-300: var(--tk-color-primary-300);
|
|
9
|
+
$tk-color-primary-200: var(--tk-color-primary-200);
|
|
10
|
+
$tk-color-primary-100: var(--tk-color-primary-100);
|
|
11
|
+
$tk-color-primary: var(--tk-color-primary-900);
|
|
12
|
+
|
|
13
|
+
$tk-color-secondary-900: var(--tk-color-secondary-900);
|
|
14
|
+
$tk-color-secondary-800: var(--tk-color-secondary-800);
|
|
15
|
+
$tk-color-secondary-700: var(--tk-color-secondary-700);
|
|
16
|
+
$tk-color-secondary-600: var(--tk-color-secondary-600);
|
|
17
|
+
$tk-color-secondary-500: var(--tk-color-secondary-500);
|
|
18
|
+
$tk-color-secondary-400: var(--tk-color-secondary-400);
|
|
19
|
+
$tk-color-secondary-300: var(--tk-color-secondary-300);
|
|
20
|
+
$tk-color-secondary-200: var(--tk-color-secondary-200);
|
|
21
|
+
$tk-color-secondary-100: var(--tk-color-secondary-100);
|
|
22
|
+
$tk-color-secondary: var(--tk-color-secondary-900);
|
|
23
|
+
|
|
24
|
+
$tk-color-accent-900: var(--tk-color-accent-900);
|
|
25
|
+
$tk-color-accent-800: var(--tk-color-accent-800);
|
|
26
|
+
$tk-color-accent-700: var(--tk-color-accent-700);
|
|
27
|
+
$tk-color-accent-600: var(--tk-color-accent-600);
|
|
28
|
+
$tk-color-accent-500: var(--tk-color-accent-500);
|
|
29
|
+
$tk-color-accent-400: var(--tk-color-accent-400);
|
|
30
|
+
$tk-color-accent-300: var(--tk-color-accent-300);
|
|
31
|
+
$tk-color-accent-200: var(--tk-color-accent-200);
|
|
32
|
+
$tk-color-accent-100: var(--tk-color-accent-100);
|
|
33
|
+
$tk-color-accent: var(--tk-color-accent-500);
|
|
34
|
+
|
|
35
|
+
$tk-color-neutral-900: var(--tk-color-neutral-900);
|
|
36
|
+
$tk-color-neutral-800: var(--tk-color-neutral-800);
|
|
37
|
+
$tk-color-neutral-700: var(--tk-color-neutral-700);
|
|
38
|
+
$tk-color-neutral-600: var(--tk-color-neutral-600);
|
|
39
|
+
$tk-color-neutral-500: var(--tk-color-neutral-500);
|
|
40
|
+
$tk-color-neutral-400: var(--tk-color-neutral-400);
|
|
41
|
+
$tk-color-neutral-300: var(--tk-color-neutral-300);
|
|
42
|
+
$tk-color-neutral-200: var(--tk-color-neutral-200);
|
|
43
|
+
$tk-color-neutral-100: var(--tk-color-neutral-100);
|
|
44
|
+
$tk-color-neutral: var(--tk-color-neutral-500);
|
|
45
|
+
|
|
46
|
+
$tk-color-success-900: var(--tk-color-success-900);
|
|
47
|
+
$tk-color-success-800: var(--tk-color-success-800);
|
|
48
|
+
$tk-color-success-700: var(--tk-color-success-700);
|
|
49
|
+
$tk-color-success-600: var(--tk-color-success-600);
|
|
50
|
+
$tk-color-success-500: var(--tk-color-success-500);
|
|
51
|
+
$tk-color-success-400: var(--tk-color-success-400);
|
|
52
|
+
$tk-color-success-300: var(--tk-color-success-300);
|
|
53
|
+
$tk-color-success-200: var(--tk-color-success-200);
|
|
54
|
+
$tk-color-success-100: var(--tk-color-success-100);
|
|
55
|
+
$tk-color-success: var(--tk-color-success-500);
|
|
56
|
+
|
|
57
|
+
$tk-color-danger-900: var(--tk-color-danger-900);
|
|
58
|
+
$tk-color-danger-800: var(--tk-color-danger-800);
|
|
59
|
+
$tk-color-danger-700: var(--tk-color-danger-700);
|
|
60
|
+
$tk-color-danger-600: var(--tk-color-danger-600);
|
|
61
|
+
$tk-color-danger-500: var(--tk-color-danger-500);
|
|
62
|
+
$tk-color-danger-400: var(--tk-color-danger-400);
|
|
63
|
+
$tk-color-danger-300: var(--tk-color-danger-300);
|
|
64
|
+
$tk-color-danger-200: var(--tk-color-danger-200);
|
|
65
|
+
$tk-color-danger-100: var(--tk-color-danger-100);
|
|
66
|
+
$tk-color-danger: var(--tk-color-danger-500);
|
|
67
|
+
|
|
68
|
+
$tk-color-info-900: var(--tk-color-info-900);
|
|
69
|
+
$tk-color-info-800: var(--tk-color-info-800);
|
|
70
|
+
$tk-color-info-700: var(--tk-color-info-700);
|
|
71
|
+
$tk-color-info-600: var(--tk-color-info-600);
|
|
72
|
+
$tk-color-info-500: var(--tk-color-info-500);
|
|
73
|
+
$tk-color-info-400: var(--tk-color-info-400);
|
|
74
|
+
$tk-color-info-300: var(--tk-color-info-300);
|
|
75
|
+
$tk-color-info-200: var(--tk-color-info-200);
|
|
76
|
+
$tk-color-info-100: var(--tk-color-info-100);
|
|
77
|
+
$tk-color-info: var(--tk-color-info-500);
|
|
78
|
+
|
|
79
|
+
$tk-color-warning-900: var(--tk-color-warning-900);
|
|
80
|
+
$tk-color-warning-800: var(--tk-color-warning-800);
|
|
81
|
+
$tk-color-warning-600: var(--tk-color-warning-600);
|
|
82
|
+
$tk-color-warning-700: var(--tk-color-warning-700);
|
|
83
|
+
$tk-color-warning-500: var(--tk-color-warning-500);
|
|
84
|
+
$tk-color-warning-400: var(--tk-color-warning-400);
|
|
85
|
+
$tk-color-warning-300: var(--tk-color-warning-300);
|
|
86
|
+
$tk-color-warning-200: var(--tk-color-warning-200);
|
|
87
|
+
$tk-color-warning-100: var(--tk-color-warning-100);
|
|
88
|
+
$tk-color-warning: var(--tk-color-warning-500);
|
|
89
|
+
|
|
90
|
+
$tk-color-white: var(--tk-color-white-900);
|
|
91
|
+
$tk-color-white-900: var(--tk-color-white-900);
|
|
92
|
+
$tk-color-white-800: var(--tk-color-white-800);
|
|
93
|
+
|
|
94
|
+
$tk-color-black: var(--tk-color-black-900);
|
|
95
|
+
$tk-color-black-900: var(--tk-color-black-900);
|
|
96
|
+
/* Colors ----------------------------------------*/
|
|
97
|
+
|
|
98
|
+
// Utils ---------------------------------------------- */
|
|
99
|
+
|
|
100
|
+
$tk-color-text-900: var(--tk-color-text-900);
|
|
101
|
+
$tk-color-text-800: var(--tk-color-text-800);
|
|
102
|
+
$tk-color-text-700: var(--tk-color-text-700);
|
|
103
|
+
$tk-color-text-600: var(--tk-color-text-600);
|
|
104
|
+
$tk-color-text-500: var(--tk-color-text-500);
|
|
105
|
+
$tk-color-text: var(--tk-color-text-500);
|
|
106
|
+
|
|
107
|
+
$tk-color-text-primary-900: var(--tk-color-text-primary-900);
|
|
108
|
+
$tk-color-text-primary-800: var(--tk-color-text-primary-800);
|
|
109
|
+
$tk-color-text-primary-700: var(--tk-color-text-primary-700);
|
|
110
|
+
$tk-color-text-primary-500: var(--tk-color-text-primary-500);
|
|
111
|
+
$tk-color-text-primary-400: var(--tk-color-text-primary-400);
|
|
112
|
+
$tk-color-text-primary-300: var(--tk-color-text-primary-300);
|
|
113
|
+
$tk-color-text-primary-200: var(--tk-color-text-primary-200);
|
|
114
|
+
$tk-color-text-primary-100: var(--tk-color-text-primary-100);
|
|
115
|
+
$tk-color-text-primary: var(--tk-color-text-primary-500);
|
|
116
|
+
|
|
117
|
+
$tk-color-text-secondary-900: var(--tk-color-text-secondary-900);
|
|
118
|
+
$tk-color-text-secondary-800: var(--tk-color-text-secondary-800);
|
|
119
|
+
$tk-color-text-secondary-700: var(--tk-color-text-secondary-700);
|
|
120
|
+
$tk-color-text-secondary-500: var(--tk-color-text-secondary-500);
|
|
121
|
+
$tk-color-text-secondary-400: var(--tk-color-text-secondary-400);
|
|
122
|
+
$tk-color-text-secondary-300: var(--tk-color-text-secondary-300);
|
|
123
|
+
$tk-color-text-secondary-200: var(--tk-color-text-secondary-200);
|
|
124
|
+
$tk-color-text-secondary-100: var(--tk-color-text-secondary-100);
|
|
125
|
+
$tk-color-text-secondary: var(--tk-color-text-secondary-500);
|
|
126
|
+
|
|
127
|
+
$tk-color-text-accent-900: var(--tk-color-text-accent-900);
|
|
128
|
+
$tk-color-text-accent-800: var(--tk-color-text-accent-800);
|
|
129
|
+
$tk-color-text-accent-700: var(--tk-color-text-accent-700);
|
|
130
|
+
$tk-color-text-accent-500: var(--tk-color-text-accent-500);
|
|
131
|
+
$tk-color-text-accent-400: var(--tk-color-text-accent-400);
|
|
132
|
+
$tk-color-text-accent-300: var(--tk-color-text-accent-300);
|
|
133
|
+
$tk-color-text-accent-200: var(--tk-color-text-accent-200);
|
|
134
|
+
$tk-color-text-accent-100: var(--tk-color-text-accent-100);
|
|
135
|
+
$tk-color-text-accent: var(--tk-color-text-accent-500);
|
|
136
|
+
|
|
137
|
+
$tk-color-border-soft: var(--tk-color-border-soft);
|
|
138
|
+
$tk-color-border-hover: var(--tk-color-border-hover);
|
|
139
|
+
$tk-color-border-disabled: var(--tk-color-border-disabled);
|
|
140
|
+
$tk-color-border-focused: var(--tk-color-border-focused);
|
|
141
|
+
$tk-color-border-error: var(--tk-color-border-error);
|
|
142
|
+
|
|
143
|
+
$tk-color-shadow-x-small: var(--tk-color-shadow-x-small);
|
|
144
|
+
$tk-color-shadow-small: var(--tk-color-shadow-small);
|
|
145
|
+
$tk-color-shadow-medium: var(--tk-color-shadow-medium);
|
|
146
|
+
$tk-color-shadow-large: var(--tk-color-shadow-large);
|
|
147
|
+
$tk-color-shadow-x-large: var(--tk-color-border-x-large);
|
|
148
|
+
$tk-color-shadow-2x-large: var(--tk-color-border-2x-large);
|
|
149
|
+
|
|
150
|
+
/* Utils ---------------------------------------------- */
|
|
151
|
+
|
|
152
|
+
$colors: (
|
|
153
|
+
tk-color-primary-900: $tk-color-primary-900,
|
|
154
|
+
tk-color-primary-800: $tk-color-primary-800,
|
|
155
|
+
tk-color-primary-700: $tk-color-primary-700,
|
|
156
|
+
tk-color-primary-600: $tk-color-primary-600,
|
|
157
|
+
tk-color-primary-500: $tk-color-primary-500,
|
|
158
|
+
tk-color-primary-400: $tk-color-primary-400,
|
|
159
|
+
tk-color-primary-300: $tk-color-primary-300,
|
|
160
|
+
tk-color-primary-200: $tk-color-primary-200,
|
|
161
|
+
tk-color-primary-100: $tk-color-primary-100,
|
|
162
|
+
tk-color-primary: $tk-color-primary-900,
|
|
163
|
+
|
|
164
|
+
tk-color-secondary-900: $tk-color-secondary-900,
|
|
165
|
+
tk-color-secondary-800: $tk-color-secondary-800,
|
|
166
|
+
tk-color-secondary-700: $tk-color-secondary-700,
|
|
167
|
+
tk-color-secondary-600: $tk-color-secondary-600,
|
|
168
|
+
tk-color-secondary-500: $tk-color-secondary-500,
|
|
169
|
+
tk-color-secondary-400: $tk-color-secondary-400,
|
|
170
|
+
tk-color-secondary-300: $tk-color-secondary-300,
|
|
171
|
+
tk-color-secondary-200: $tk-color-secondary-200,
|
|
172
|
+
tk-color-secondary-100: $tk-color-secondary-100,
|
|
173
|
+
tk-color-secondary: $tk-color-secondary-900,
|
|
174
|
+
|
|
175
|
+
tk-color-accent-900: $tk-color-accent-900,
|
|
176
|
+
tk-color-accent-800: $tk-color-accent-800,
|
|
177
|
+
tk-color-accent-700: $tk-color-accent-700,
|
|
178
|
+
tk-color-accent-600: $tk-color-accent-600,
|
|
179
|
+
tk-color-accent-500: $tk-color-accent-500,
|
|
180
|
+
tk-color-accent-400: $tk-color-accent-400,
|
|
181
|
+
tk-color-accent-300: $tk-color-accent-300,
|
|
182
|
+
tk-color-accent-200: $tk-color-accent-200,
|
|
183
|
+
tk-color-accent-100: $tk-color-accent-100,
|
|
184
|
+
tk-color-accent: $tk-color-accent-500,
|
|
185
|
+
|
|
186
|
+
tk-color-neutral-900: $tk-color-neutral-900,
|
|
187
|
+
tk-color-neutral-800: $tk-color-neutral-800,
|
|
188
|
+
tk-color-neutral-700: $tk-color-neutral-700,
|
|
189
|
+
tk-color-neutral-600: $tk-color-neutral-600,
|
|
190
|
+
tk-color-neutral-500: $tk-color-neutral-500,
|
|
191
|
+
tk-color-neutral-400: $tk-color-neutral-400,
|
|
192
|
+
tk-color-neutral-300: $tk-color-neutral-300,
|
|
193
|
+
tk-color-neutral-200: $tk-color-neutral-200,
|
|
194
|
+
tk-color-neutral-100: $tk-color-neutral-100,
|
|
195
|
+
tk-color-neutral: $tk-color-neutral-500,
|
|
196
|
+
|
|
197
|
+
tk-color-success-900: $tk-color-success-900,
|
|
198
|
+
tk-color-success-800: $tk-color-success-800,
|
|
199
|
+
tk-color-success-700: $tk-color-success-700,
|
|
200
|
+
tk-color-success-600: $tk-color-success-600,
|
|
201
|
+
tk-color-success-500: $tk-color-success-500,
|
|
202
|
+
tk-color-success-400: $tk-color-success-400,
|
|
203
|
+
tk-color-success-300: $tk-color-success-300,
|
|
204
|
+
tk-color-success-200: $tk-color-success-200,
|
|
205
|
+
tk-color-success-100: $tk-color-success-100,
|
|
206
|
+
tk-color-success: $tk-color-success-500,
|
|
207
|
+
|
|
208
|
+
tk-color-danger-900: $tk-color-danger-900,
|
|
209
|
+
tk-color-danger-800: $tk-color-danger-800,
|
|
210
|
+
tk-color-danger-700: $tk-color-danger-700,
|
|
211
|
+
tk-color-danger-600: $tk-color-danger-600,
|
|
212
|
+
tk-color-danger-500: $tk-color-danger-500,
|
|
213
|
+
tk-color-danger-400: $tk-color-danger-400,
|
|
214
|
+
tk-color-danger-300: $tk-color-danger-300,
|
|
215
|
+
tk-color-danger-200: $tk-color-danger-200,
|
|
216
|
+
tk-color-danger-100: $tk-color-danger-100,
|
|
217
|
+
tk-color-danger: $tk-color-danger-500,
|
|
218
|
+
|
|
219
|
+
tk-color-info-900: $tk-color-info-900,
|
|
220
|
+
tk-color-info-800: $tk-color-info-800,
|
|
221
|
+
tk-color-info-700: $tk-color-info-700,
|
|
222
|
+
tk-color-info-600: $tk-color-info-600,
|
|
223
|
+
tk-color-info-500: $tk-color-info-500,
|
|
224
|
+
tk-color-info-400: $tk-color-info-400,
|
|
225
|
+
tk-color-info-300: $tk-color-info-300,
|
|
226
|
+
tk-color-info-200: $tk-color-info-200,
|
|
227
|
+
tk-color-info-100: $tk-color-info-100,
|
|
228
|
+
tk-color-info: $tk-color-info-500,
|
|
229
|
+
|
|
230
|
+
tk-color-warning-900: $tk-color-warning-900,
|
|
231
|
+
tk-color-warning-800: $tk-color-warning-800,
|
|
232
|
+
tk-color-warning-700: $tk-color-warning-700,
|
|
233
|
+
tk-color-warning-600: $tk-color-warning-600,
|
|
234
|
+
tk-color-warning-500: $tk-color-warning-500,
|
|
235
|
+
tk-color-warning-400: $tk-color-warning-400,
|
|
236
|
+
tk-color-warning-300: $tk-color-warning-300,
|
|
237
|
+
tk-color-warning-200: $tk-color-warning-200,
|
|
238
|
+
tk-color-warning-100: $tk-color-warning-100,
|
|
239
|
+
tk-color-warning: $tk-color-warning-500,
|
|
240
|
+
|
|
241
|
+
/* Colors */ tk-color-white: $tk-color-white-900,
|
|
242
|
+
tk-color-white-900: $tk-color-white-900,
|
|
243
|
+
tk-color-white-800: $tk-color-white-800,
|
|
244
|
+
|
|
245
|
+
tk-color-black: $tk-color-black-900,
|
|
246
|
+
tk-color-black-900: $tk-color-black-900,
|
|
247
|
+
|
|
248
|
+
tk-color-text-900: $tk-color-text-900,
|
|
249
|
+
tk-color-text-800: $tk-color-text-800,
|
|
250
|
+
tk-color-text-700: $tk-color-text-700,
|
|
251
|
+
tk-color-text-600: $tk-color-text-600,
|
|
252
|
+
tk-color-text-500: $tk-color-text-500,
|
|
253
|
+
tk-color-text: $tk-color-text-500,
|
|
254
|
+
|
|
255
|
+
tk-color-text-primary-900: $tk-color-text-primary-900,
|
|
256
|
+
tk-color-text-primary-800: $tk-color-text-primary-800,
|
|
257
|
+
tk-color-text-primary-700: $tk-color-text-primary-700,
|
|
258
|
+
tk-color-text-primary-500: $tk-color-text-primary-500,
|
|
259
|
+
tk-color-text-primary-400: $tk-color-text-primary-400,
|
|
260
|
+
tk-color-text-primary-300: $tk-color-text-primary-300,
|
|
261
|
+
tk-color-text-primary-200: $tk-color-text-primary-200,
|
|
262
|
+
tk-color-text-primary-100: $tk-color-text-primary-100,
|
|
263
|
+
tk-color-text-primary: $tk-color-text-primary-500,
|
|
264
|
+
|
|
265
|
+
tk-color-text-secondary-900: $tk-color-text-secondary-900,
|
|
266
|
+
tk-color-text-secondary-800: $tk-color-text-secondary-800,
|
|
267
|
+
tk-color-text-secondary-700: $tk-color-text-secondary-700,
|
|
268
|
+
tk-color-text-secondary-500: $tk-color-text-secondary-500,
|
|
269
|
+
tk-color-text-secondary-400: $tk-color-text-secondary-400,
|
|
270
|
+
tk-color-text-secondary-300: $tk-color-text-secondary-300,
|
|
271
|
+
tk-color-text-secondary-200: $tk-color-text-secondary-200,
|
|
272
|
+
tk-color-text-secondary-100: $tk-color-text-secondary-100,
|
|
273
|
+
tk-color-text-secondary: $tk-color-text-secondary-500,
|
|
274
|
+
|
|
275
|
+
tk-color-text-accent-900: $tk-color-text-accent-900,
|
|
276
|
+
tk-color-text-accent-800: $tk-color-text-accent-800,
|
|
277
|
+
tk-color-text-accent-700: $tk-color-text-accent-700,
|
|
278
|
+
tk-color-text-accent-500: $tk-color-text-accent-500,
|
|
279
|
+
tk-color-text-accent-400: $tk-color-text-accent-400,
|
|
280
|
+
tk-color-text-accent-300: $tk-color-text-accent-300,
|
|
281
|
+
tk-color-text-accent-200: $tk-color-text-accent-200,
|
|
282
|
+
tk-color-text-accent-100: $tk-color-text-accent-100,
|
|
283
|
+
tk-color-text-accent: $tk-color-text-accent-500,
|
|
284
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tk-form-autocomplete-field.component';
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, EventEmitter, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
|
+
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
4
|
+
import { Option } from './models/option.model';
|
|
5
|
+
import { ThemePalette } from '@angular/material/core';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { FormControl } from '@angular/forms';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TkFormAutocompleteFieldComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
10
|
+
/**
|
|
11
|
+
* Input field control
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
formControl: FormControl<string | Option | null>;
|
|
15
|
+
/**
|
|
16
|
+
* Optional input field width
|
|
17
|
+
* @default 100%
|
|
18
|
+
*/
|
|
19
|
+
fieldWidth?: string;
|
|
20
|
+
/**
|
|
21
|
+
* What color palette to use
|
|
22
|
+
* @default 'accent'
|
|
23
|
+
*/
|
|
24
|
+
theme?: ThemePalette;
|
|
25
|
+
/**
|
|
26
|
+
* Form field appearance
|
|
27
|
+
* @default 'fill'
|
|
28
|
+
*/
|
|
29
|
+
appearance: MatFormFieldAppearance;
|
|
30
|
+
/**
|
|
31
|
+
* Form field reserved space for one line by default.
|
|
32
|
+
* @default 'dynamic'
|
|
33
|
+
*/
|
|
34
|
+
subscriptSizing: SubscriptSizing;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the first option should be highlighted when the autocomplete panel is opened
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
autoActiveFirstOption?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the active option should be selected as the user is navigating.
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
autoSelectActiveOption?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the field is required
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
required: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Optional input field title
|
|
52
|
+
* @default null
|
|
53
|
+
*/
|
|
54
|
+
fieldTitle?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Input field label
|
|
57
|
+
*/
|
|
58
|
+
fieldLabel: string;
|
|
59
|
+
/**
|
|
60
|
+
* Input field placeholder
|
|
61
|
+
* @default ''
|
|
62
|
+
*/
|
|
63
|
+
placeHolder: string;
|
|
64
|
+
/**
|
|
65
|
+
* Filtered options
|
|
66
|
+
* @ignore
|
|
67
|
+
*/
|
|
68
|
+
filteredOptions: Observable<Option[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Options to be displayed
|
|
71
|
+
* @ignore
|
|
72
|
+
*/
|
|
73
|
+
options: Option[];
|
|
74
|
+
/**
|
|
75
|
+
* Option changes handler
|
|
76
|
+
*/
|
|
77
|
+
optionSelected: EventEmitter<string | number>;
|
|
78
|
+
/**
|
|
79
|
+
* Input field changes handler
|
|
80
|
+
*/
|
|
81
|
+
inputStatus: EventEmitter<FormControl<any>>;
|
|
82
|
+
/**
|
|
83
|
+
* Autocomplete bottom reached handler
|
|
84
|
+
*/
|
|
85
|
+
bottomReached: EventEmitter<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Subscriptions property to handle all subscriptions
|
|
88
|
+
* @ignore
|
|
89
|
+
*/
|
|
90
|
+
private subscriptions;
|
|
91
|
+
/**
|
|
92
|
+
* Mat-autocomplete reference
|
|
93
|
+
* @ignore
|
|
94
|
+
*/
|
|
95
|
+
matAutocomplete: MatAutocomplete;
|
|
96
|
+
/**
|
|
97
|
+
* Component lifecycle method
|
|
98
|
+
* @ignore
|
|
99
|
+
*/
|
|
100
|
+
ngOnInit(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Component lifecycle method
|
|
103
|
+
* @ignore
|
|
104
|
+
*/
|
|
105
|
+
ngAfterViewInit(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Starts the autocomplete subscriptions
|
|
108
|
+
* @ignore
|
|
109
|
+
*/
|
|
110
|
+
initAutocompleteListener(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Handles the autocomplete opened event
|
|
113
|
+
* @ignore
|
|
114
|
+
*/
|
|
115
|
+
private onAutocompleteOpened;
|
|
116
|
+
/**
|
|
117
|
+
* Handles the autocomplete closed event
|
|
118
|
+
* @ignore
|
|
119
|
+
*/
|
|
120
|
+
private onAutocompleteClosed;
|
|
121
|
+
/**
|
|
122
|
+
* Handles the scrolling event
|
|
123
|
+
* @ignore
|
|
124
|
+
*/
|
|
125
|
+
private onScroll;
|
|
126
|
+
/**
|
|
127
|
+
* Emits the bottomReached when the user reaches the end of the autocomplete panel
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
private onScrolledToEnd;
|
|
131
|
+
/**
|
|
132
|
+
* Conditions the options' view to display the view value
|
|
133
|
+
* @ignore
|
|
134
|
+
*/
|
|
135
|
+
displayFn(option: Option | null): string;
|
|
136
|
+
/**
|
|
137
|
+
* Filters the options according to the input value
|
|
138
|
+
* @ignore
|
|
139
|
+
*/
|
|
140
|
+
private _filterOptions;
|
|
141
|
+
/**
|
|
142
|
+
* Emits the selected option every time it changes
|
|
143
|
+
* @ignore
|
|
144
|
+
*/
|
|
145
|
+
onSelectionChanged(option: Option): void;
|
|
146
|
+
/**
|
|
147
|
+
* Emits the formControl variable every time the input value changes
|
|
148
|
+
* @ignore
|
|
149
|
+
*/
|
|
150
|
+
onInputChanged(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Unsubscribe from all subscriptions when the component is destroyed
|
|
153
|
+
* @ignore
|
|
154
|
+
*/
|
|
155
|
+
ngOnDestroy(): void;
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TkFormAutocompleteFieldComponent, never>;
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TkFormAutocompleteFieldComponent, "lib-tk-form-autocomplete-field", never, { "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "optionSelected": "optionSelected"; "inputStatus": "inputStatus"; "bottomReached": "bottomReached"; }, never, never, true, never>;
|
|
158
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tk-form-chips-autocomplete-field.component';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
4
|
+
import { Option } from './models/option.model';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ThemePalette } from '@angular/material/core';
|
|
7
|
+
import { FormControl } from '@angular/forms';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TkFormChipsAutocompleteFieldComponent {
|
|
10
|
+
/**
|
|
11
|
+
* Input field label
|
|
12
|
+
*/
|
|
13
|
+
fieldLabel: string;
|
|
14
|
+
/**
|
|
15
|
+
* Input field placeholder
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
placeHolder: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional input field title
|
|
21
|
+
* @default null
|
|
22
|
+
*/
|
|
23
|
+
fieldTitle?: string;
|
|
24
|
+
/**
|
|
25
|
+
* What color palette to use
|
|
26
|
+
* @default 'accent'
|
|
27
|
+
*/
|
|
28
|
+
theme?: ThemePalette;
|
|
29
|
+
/**
|
|
30
|
+
* Form field reserved space for one line by default.
|
|
31
|
+
* @default 'dynamic'
|
|
32
|
+
*/
|
|
33
|
+
subscriptSizing: SubscriptSizing;
|
|
34
|
+
/**
|
|
35
|
+
* Optional input field width
|
|
36
|
+
* @default 100%
|
|
37
|
+
*/
|
|
38
|
+
fieldWidth?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Form field appearance
|
|
41
|
+
* @default 'fill'
|
|
42
|
+
*/
|
|
43
|
+
appearance: MatFormFieldAppearance;
|
|
44
|
+
/**
|
|
45
|
+
* Input field control
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
formControl: FormControl<string | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Selected keywords
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
53
|
+
keywords: Option[];
|
|
54
|
+
/**
|
|
55
|
+
* Input field changes handler
|
|
56
|
+
*/
|
|
57
|
+
inputStatus: EventEmitter<FormControl<any>>;
|
|
58
|
+
/**
|
|
59
|
+
* Keywords changes handler
|
|
60
|
+
*/
|
|
61
|
+
selectedKeywords: EventEmitter<(string | number)[]>;
|
|
62
|
+
/**
|
|
63
|
+
* Separator constants
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
readonly separatorKeysCodes: number[];
|
|
67
|
+
/**
|
|
68
|
+
* Options to be displayed
|
|
69
|
+
* @ignore
|
|
70
|
+
*/
|
|
71
|
+
allKeywords: Option[];
|
|
72
|
+
/**
|
|
73
|
+
* Filtered keywords after the input field changes
|
|
74
|
+
* @ignore
|
|
75
|
+
*/
|
|
76
|
+
readonly filteredKeywords: Observable<Option[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Keyword Input element reference
|
|
79
|
+
* @ignore
|
|
80
|
+
*/
|
|
81
|
+
keywordInput: ElementRef<HTMLInputElement>;
|
|
82
|
+
/**
|
|
83
|
+
* @ignore
|
|
84
|
+
* Class constructor
|
|
85
|
+
*/
|
|
86
|
+
constructor();
|
|
87
|
+
/**
|
|
88
|
+
* Handles every keyword deletion
|
|
89
|
+
* @ignore
|
|
90
|
+
*/
|
|
91
|
+
remove(keyword: Option): void;
|
|
92
|
+
/**
|
|
93
|
+
* Emits the formControl variable every time the field value changes
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
96
|
+
onInputChanged(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Emits the selected keywords every time they changed
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
onKeywordsChanged(): void;
|
|
102
|
+
/**
|
|
103
|
+
* Handles the autocomplete selection
|
|
104
|
+
* @ignore
|
|
105
|
+
*/
|
|
106
|
+
selected(event: MatAutocompleteSelectedEvent): void;
|
|
107
|
+
/**
|
|
108
|
+
* Filters the keywords based on the input
|
|
109
|
+
* @ignore
|
|
110
|
+
*/
|
|
111
|
+
private _filter;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TkFormChipsAutocompleteFieldComponent, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TkFormChipsAutocompleteFieldComponent, "lib-tk-form-chips-autocomplete-field", never, { "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "allKeywords": { "alias": "allKeywords"; "required": false; }; }, { "inputStatus": "inputStatus"; "selectedKeywords": "selectedKeywords"; }, never, never, true, never>;
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tk-form-input-field.component';
|