@design-system-rte/angular 0.5.3 → 0.6.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/esm2022/lib/components/icon/icon-map.mjs +131 -127
- package/esm2022/lib/components/icon/icon.service.mjs +6 -6
- package/fesm2022/design-system-rte-angular.mjs +134 -130
- package/fesm2022/design-system-rte-angular.mjs.map +1 -1
- package/lib/components/icon/icon-map.d.ts +127 -126
- package/lib/components/icon/icon.component.d.ts +1 -1
- package/lib/components/icon/icon.service.d.ts +3 -3
- package/lib/components/icon-button/icon-button.component.d.ts +2 -2
- package/lib/components/icon-button-toggle/icon-button-toggle.component.d.ts +1 -1
- package/lib/components/split-button/split-button.component.d.ts +1 -1
- package/package.json +2 -2
|
@@ -102,7 +102,131 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
102
102
|
args: ["class"]
|
|
103
103
|
}] } });
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
// This file is auto-generated. Do not edit manually.
|
|
106
|
+
const RegularIcons = {
|
|
107
|
+
add: "add",
|
|
108
|
+
"alt-route": "alt_route",
|
|
109
|
+
apps: "apps",
|
|
110
|
+
"arrow-alt-down": "arrow_alt_down",
|
|
111
|
+
"arrow-alt-down-left": "arrow_alt_down_left",
|
|
112
|
+
"arrow-alt-down-right": "arrow_alt_down_right",
|
|
113
|
+
"arrow-alt-left": "arrow_alt_left",
|
|
114
|
+
"arrow-alt-right": "arrow_alt_right",
|
|
115
|
+
"arrow-alt-up": "arrow_alt_up",
|
|
116
|
+
"arrow-alt-up-left": "arrow_alt_up_left",
|
|
117
|
+
"arrow-alt-up-right": "arrow_alt_up_right",
|
|
118
|
+
"arrow-angle-down-left": "arrow_angle_down_left",
|
|
119
|
+
"arrow-angle-down-right": "arrow_angle_down_right",
|
|
120
|
+
"arrow-angle-up-left": "arrow_angle_up_left",
|
|
121
|
+
"arrow-angle-up-right": "arrow_angle_up_right",
|
|
122
|
+
"arrow-chevron-down": "arrow_chevron_down",
|
|
123
|
+
"arrow-chevron-left": "arrow_chevron_left",
|
|
124
|
+
"arrow-chevron-right": "arrow_chevron_right",
|
|
125
|
+
"arrow-chevron-up": "arrow_chevron_up",
|
|
126
|
+
"arrow-double-down": "arrow_double_down",
|
|
127
|
+
"arrow-double-left": "arrow_double_left",
|
|
128
|
+
"arrow-double-right": "arrow_double_right",
|
|
129
|
+
"arrow-double-up": "arrow_double_up",
|
|
130
|
+
"arrow-down": "arrow_down",
|
|
131
|
+
"arrow-down-left": "arrow_down_left",
|
|
132
|
+
"arrow-down-right": "arrow_down_right",
|
|
133
|
+
"arrow-drop-down": "arrow_drop_down",
|
|
134
|
+
"arrow-drop-up": "arrow_drop_up",
|
|
135
|
+
"arrow-left": "arrow_left",
|
|
136
|
+
"arrow-right": "arrow_right",
|
|
137
|
+
"arrow-up": "arrow_up",
|
|
138
|
+
"arrow-up-left": "arrow_up_left",
|
|
139
|
+
"arrow-up-right": "arrow_up_right",
|
|
140
|
+
asterisk: "asterisk",
|
|
141
|
+
"attach-file": "attach_file",
|
|
142
|
+
"battery-alt-empty": "battery_alt_empty",
|
|
143
|
+
"battery-alt-full": "battery_alt_full",
|
|
144
|
+
"battery-charging": "battery_charging",
|
|
145
|
+
"battery-empty": "battery_empty",
|
|
146
|
+
"battery-full": "battery_full",
|
|
147
|
+
bluetooth: "bluetooth",
|
|
148
|
+
"bluetooth-off": "bluetooth_off",
|
|
149
|
+
"chart-bar": "chart_bar",
|
|
150
|
+
"chart-bar-stacked": "chart_bar_stacked",
|
|
151
|
+
check: "check",
|
|
152
|
+
"check-indeterminate": "check_indeterminate",
|
|
153
|
+
"check-small": "check_small",
|
|
154
|
+
"checkbox-empty": "checkbox_empty",
|
|
155
|
+
close: "close",
|
|
156
|
+
compare: "compare",
|
|
157
|
+
"copy-all": "copy_all",
|
|
158
|
+
"crisis-alert": "crisis_alert",
|
|
159
|
+
cut: "cut",
|
|
160
|
+
download: "download",
|
|
161
|
+
"download-done": "download_done",
|
|
162
|
+
"drag-handle": "drag_handle",
|
|
163
|
+
"drag-indicator": "drag_indicator",
|
|
164
|
+
exclamation: "exclamation",
|
|
165
|
+
"explore-travel": "explore_travel",
|
|
166
|
+
"external-link": "external_link",
|
|
167
|
+
filter: "filter",
|
|
168
|
+
"filter-off": "filter_off",
|
|
169
|
+
"first-page": "first_page",
|
|
170
|
+
forward: "forward",
|
|
171
|
+
fullscreen: "fullscreen",
|
|
172
|
+
"fullscreen-exit": "fullscreen_exit",
|
|
173
|
+
history: "history",
|
|
174
|
+
"hourglass-empty": "hourglass_empty",
|
|
175
|
+
"info-i": "info_i",
|
|
176
|
+
language: "language",
|
|
177
|
+
"last-page": "last_page",
|
|
178
|
+
link: "link",
|
|
179
|
+
"link-off": "link_off",
|
|
180
|
+
list: "list",
|
|
181
|
+
"location-disabled": "location_disabled",
|
|
182
|
+
login: "login",
|
|
183
|
+
logout: "logout",
|
|
184
|
+
menu: "menu",
|
|
185
|
+
"menu-open": "menu_open",
|
|
186
|
+
monitoring: "monitoring",
|
|
187
|
+
"more-down": "more_down",
|
|
188
|
+
"more-horiz": "more_horiz",
|
|
189
|
+
"more-up": "more_up",
|
|
190
|
+
"more-vert": "more_vert",
|
|
191
|
+
ohm: "ohm",
|
|
192
|
+
"open-in-full": "open_in_full",
|
|
193
|
+
paste: "paste",
|
|
194
|
+
"play-pause": "play_pause",
|
|
195
|
+
"power-input": "power_input",
|
|
196
|
+
"power-plug": "power_plug",
|
|
197
|
+
"power-settings": "power_settings",
|
|
198
|
+
"priority-high": "priority_high",
|
|
199
|
+
public: "public",
|
|
200
|
+
publish: "publish",
|
|
201
|
+
"question-mark": "question_mark",
|
|
202
|
+
radar: "radar",
|
|
203
|
+
"radio-button-empty": "radio_button_empty",
|
|
204
|
+
redo: "redo",
|
|
205
|
+
reload: "reload",
|
|
206
|
+
remove: "remove",
|
|
207
|
+
reply: "reply",
|
|
208
|
+
"reply-all": "reply_all",
|
|
209
|
+
route: "route",
|
|
210
|
+
search: "search",
|
|
211
|
+
"side-navigation": "side_navigation",
|
|
212
|
+
sort: "sort",
|
|
213
|
+
"support-agent": "support_agent",
|
|
214
|
+
timeline: "timeline",
|
|
215
|
+
"trending-down": "trending_down",
|
|
216
|
+
"trending-flat": "trending_flat",
|
|
217
|
+
"trending-up": "trending_up",
|
|
218
|
+
tune: "tune",
|
|
219
|
+
undo: "undo",
|
|
220
|
+
upload: "upload",
|
|
221
|
+
water: "water",
|
|
222
|
+
"water-alt": "water_alt",
|
|
223
|
+
wifi: "wifi",
|
|
224
|
+
"wifi-off": "wifi_off",
|
|
225
|
+
windmill: "windmill",
|
|
226
|
+
"zoom-in": "zoom_in",
|
|
227
|
+
"zoom-out": "zoom_out",
|
|
228
|
+
};
|
|
229
|
+
const TogglableIcons = {
|
|
106
230
|
"add-circle": ["add_circle_outlined", "add_circle_filled"],
|
|
107
231
|
"admin-panel-settings": ["admin_panel_settings_outlined", "admin_panel_settings_filled"],
|
|
108
232
|
analytics: ["analytics_outlined", "analytics_filled"],
|
|
@@ -132,6 +256,7 @@ const togglableIcons = {
|
|
|
132
256
|
"calendar-month": ["calendar_month_outlined", "calendar_month_filled"],
|
|
133
257
|
"calendar-today": ["calendar_today_outlined", "calendar_today_filled"],
|
|
134
258
|
call: ["call_outlined", "call_filled"],
|
|
259
|
+
cancel: ["cancel_outlined", "cancel_filled"],
|
|
135
260
|
category: ["category_outlined", "category_filled"],
|
|
136
261
|
"chart-add": ["chart_add_outlined", "chart_add_filled"],
|
|
137
262
|
"chart-area": ["chart_area_outlined", "chart_area_filled"],
|
|
@@ -201,8 +326,8 @@ const togglableIcons = {
|
|
|
201
326
|
"keep-off": ["keep_off_outlined", "keep_off_filled"],
|
|
202
327
|
label: ["label_outlined", "label_filled"],
|
|
203
328
|
laptop: ["laptop_outlined", "laptop_filled"],
|
|
204
|
-
"left-panel-open": ["left_panel_open_outlined", "left_panel_open_filled"],
|
|
205
329
|
"left-panel-close": ["left_panel_close_outlined", "left_panel_close_filled"],
|
|
330
|
+
"left-panel-open": ["left_panel_open_outlined", "left_panel_open_filled"],
|
|
206
331
|
"light-off": ["light_off_outlined", "light_off_filled"],
|
|
207
332
|
"lightbulb-alt": ["lightbulb_alt_outlined", "lightbulb_alt_filled"],
|
|
208
333
|
"lightbulb-circle": ["lightbulb_circle_outlined", "lightbulb_circle_filled"],
|
|
@@ -279,130 +404,9 @@ const togglableIcons = {
|
|
|
279
404
|
warning: ["warning_outlined", "warning_filled"],
|
|
280
405
|
waterdrop: ["waterdrop_outlined", "waterdrop_filled"],
|
|
281
406
|
};
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
apps: "apps",
|
|
286
|
-
"arrow-alt-down": "arrow_alt_down",
|
|
287
|
-
"arrow-alt-down-left": "arrow_alt_down_left",
|
|
288
|
-
"arrow-alt-down-right": "arrow_alt_down_right",
|
|
289
|
-
"arrow-alt-left": "arrow_alt_left",
|
|
290
|
-
"arrow-alt-right": "arrow_alt_right",
|
|
291
|
-
"arrow-alt-up": "arrow_alt_up",
|
|
292
|
-
"arrow-alt-up-left": "arrow_alt_up_left",
|
|
293
|
-
"arrow-alt-up-right": "arrow_alt_up_right",
|
|
294
|
-
"arrow-angle-down-left": "arrow_angle_down_left",
|
|
295
|
-
"arrow-angle-down-right": "arrow_angle_down_right",
|
|
296
|
-
"arrow-angle-up-left": "arrow_angle_up_left",
|
|
297
|
-
"arrow-angle-up-right": "arrow_angle_up_right",
|
|
298
|
-
"arrow-chevron-down": "arrow_chevron_down",
|
|
299
|
-
"arrow-chevron-left": "arrow_chevron_left",
|
|
300
|
-
"arrow-chevron-right": "arrow_chevron_right",
|
|
301
|
-
"arrow-chevron-up": "arrow_chevron_up",
|
|
302
|
-
"arrow-double-down": "arrow_double_down",
|
|
303
|
-
"arrow-double-left": "arrow_double_left",
|
|
304
|
-
"arrow-double-right": "arrow_double_right",
|
|
305
|
-
"arrow-double-up": "arrow_double_up",
|
|
306
|
-
"arrow-down": "arrow_down",
|
|
307
|
-
"arrow-down-left": "arrow_down_left",
|
|
308
|
-
"arrow-down-right": "arrow_down_right",
|
|
309
|
-
"arrow-drop-down": "arrow_drop_down",
|
|
310
|
-
"arrow-drop-up": "arrow_drop_up",
|
|
311
|
-
"arrow-left": "arrow_left",
|
|
312
|
-
"arrow-right": "arrow_right",
|
|
313
|
-
"arrow-up": "arrow_up",
|
|
314
|
-
"arrow-up-left": "arrow_up_left",
|
|
315
|
-
"arrow-up-right": "arrow_up_right",
|
|
316
|
-
asterisk: "asterisk",
|
|
317
|
-
"attach-file": "attach_file",
|
|
318
|
-
"battery-alt-empty": "battery_alt_empty",
|
|
319
|
-
"battery-alt-full": "battery_alt_full",
|
|
320
|
-
"battery-charging": "battery_charging",
|
|
321
|
-
"battery-empty": "battery_empty",
|
|
322
|
-
"battery-full": "battery_full",
|
|
323
|
-
bluetooth: "bluetooth",
|
|
324
|
-
"bluetooth-off": "bluetooth_off",
|
|
325
|
-
"chart-bar": "chart_bar",
|
|
326
|
-
"chart-bar-stacked": "chart_bar_stacked",
|
|
327
|
-
check: "check",
|
|
328
|
-
"check-indeterminate": "check_indeterminate",
|
|
329
|
-
"check-small": "check_small",
|
|
330
|
-
"checkbox-empty": "checkbox_empty",
|
|
331
|
-
close: "close",
|
|
332
|
-
compare: "compare",
|
|
333
|
-
"copy-all": "copy_all",
|
|
334
|
-
"crisis-alert": "crisis_alert",
|
|
335
|
-
cut: "cut",
|
|
336
|
-
download: "download",
|
|
337
|
-
"download-done": "download_done",
|
|
338
|
-
"drag-handle": "drag_handle",
|
|
339
|
-
"drag-indicator": "drag_indicator",
|
|
340
|
-
exclamation: "exclamation",
|
|
341
|
-
"explore-travel": "explore_travel",
|
|
342
|
-
"external-link": "external_link",
|
|
343
|
-
filter: "filter",
|
|
344
|
-
"filter-off": "filter_off",
|
|
345
|
-
"first-page": "first_page",
|
|
346
|
-
forward: "forward",
|
|
347
|
-
fullscreen: "fullscreen",
|
|
348
|
-
"fullscreen-exit": "fullscreen_exit",
|
|
349
|
-
history: "history",
|
|
350
|
-
"hourglass-empty": "hourglass_empty",
|
|
351
|
-
"info-i": "info_i",
|
|
352
|
-
language: "language",
|
|
353
|
-
"last-page": "last_page",
|
|
354
|
-
link: "link",
|
|
355
|
-
"link-off": "link_off",
|
|
356
|
-
list: "list",
|
|
357
|
-
"location-disabled": "location_disabled",
|
|
358
|
-
login: "login",
|
|
359
|
-
logout: "logout",
|
|
360
|
-
menu: "menu",
|
|
361
|
-
"menu-open": "menu_open",
|
|
362
|
-
monitoring: "monitoring",
|
|
363
|
-
"more-down": "more_down",
|
|
364
|
-
"more-horiz": "more_horiz",
|
|
365
|
-
"more-up": "more_up",
|
|
366
|
-
"more-vert": "more_vert",
|
|
367
|
-
ohm: "ohm",
|
|
368
|
-
"open-in-full": "open_in_full",
|
|
369
|
-
paste: "paste",
|
|
370
|
-
"play-pause": "play_pause",
|
|
371
|
-
"power-input": "power_input",
|
|
372
|
-
"power-plug": "power_plug",
|
|
373
|
-
"power-settings": "power_settings",
|
|
374
|
-
"priority-high": "priority_high",
|
|
375
|
-
public: "public",
|
|
376
|
-
publish: "publish",
|
|
377
|
-
"question-mark": "question_mark",
|
|
378
|
-
radar: "radar",
|
|
379
|
-
"radio-button-empty": "radio_button_empty",
|
|
380
|
-
redo: "redo",
|
|
381
|
-
reload: "reload",
|
|
382
|
-
remove: "remove",
|
|
383
|
-
reply: "reply",
|
|
384
|
-
"reply-all": "reply_all",
|
|
385
|
-
route: "route",
|
|
386
|
-
search: "search",
|
|
387
|
-
"side-navigation": "side_navigation",
|
|
388
|
-
sort: "sort",
|
|
389
|
-
"support-agent": "support_agent",
|
|
390
|
-
timeline: "timeline",
|
|
391
|
-
"trending-down": "trending_down",
|
|
392
|
-
"trending-flat": "trending_flat",
|
|
393
|
-
"trending-up": "trending_up",
|
|
394
|
-
tune: "tune",
|
|
395
|
-
undo: "undo",
|
|
396
|
-
upload: "upload",
|
|
397
|
-
water: "water",
|
|
398
|
-
"water-alt": "water_alt",
|
|
399
|
-
wifi: "wifi",
|
|
400
|
-
"wifi-off": "wifi_off",
|
|
401
|
-
windmill: "windmill",
|
|
402
|
-
"zoom-out": "zoom_out",
|
|
403
|
-
"zoom-in": "zoom_in",
|
|
404
|
-
};
|
|
405
|
-
const isValidIconName = (name) => isValidIconName$1(name, regularIcons, togglableIcons);
|
|
407
|
+
function isValidIconName(iconName) {
|
|
408
|
+
return isValidIconName$1(iconName, RegularIcons, TogglableIcons);
|
|
409
|
+
}
|
|
406
410
|
|
|
407
411
|
class IconService {
|
|
408
412
|
constructor() {
|
|
@@ -412,14 +416,14 @@ class IconService {
|
|
|
412
416
|
if (!this.http) {
|
|
413
417
|
throw new Error("HttpClient is not available");
|
|
414
418
|
}
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
const [outlinedIconName, filledIconName] =
|
|
419
|
+
const togglableIcon = TogglableIcons[name];
|
|
420
|
+
if (togglableIcon) {
|
|
421
|
+
const [outlinedIconName, filledIconName] = togglableIcon;
|
|
418
422
|
const iconName = appearance === "filled" ? filledIconName : outlinedIconName;
|
|
419
423
|
return this.http.get(`assets/icons/${iconName}.svg`, { responseType: "text" });
|
|
420
424
|
}
|
|
421
425
|
else {
|
|
422
|
-
const iconName =
|
|
426
|
+
const iconName = RegularIcons[name];
|
|
423
427
|
if (!iconName) {
|
|
424
428
|
throw new Error(`Icon ${name} not found`);
|
|
425
429
|
}
|