aril 1.2.48 → 1.2.49
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/boot/config/apps/src/interfaces.d.ts +14 -0
- package/esm2022/boot/bridge/index.mjs +1 -1
- package/esm2022/boot/bridge/src/mfe-bridge.mjs +1 -1
- package/esm2022/boot/bridge/src/provide-mfe-bridge.mjs +1 -1
- package/esm2022/boot/config/api/index.mjs +1 -1
- package/esm2022/boot/config/apps/src/apps.service.mjs +1 -1
- package/esm2022/boot/config/apps/src/auth.guard.mjs +1 -1
- package/esm2022/boot/config/apps/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/apps/src/route-permissions.mjs +1 -1
- package/esm2022/boot/config/plugins/src/getNgZone.mjs +1 -1
- package/esm2022/boot/config/plugins/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/plugins/src/plugins.service.mjs +1 -1
- package/esm2022/boot/config/translate/primeng/i18n/tr.mjs +1 -1
- package/esm2022/boot/host/src/app.component.mjs +1 -1
- package/esm2022/boot/mfe/src/app.component.mjs +13 -13
- package/esm2022/boot/mfe/src/bootstrap.mjs +1 -1
- package/esm2022/boot/pages/index.mjs +1 -1
- package/esm2022/boot/pages/src/forbidden.component.mjs +51 -51
- package/esm2022/boot/pages/src/notFound.component.mjs +47 -47
- package/esm2022/http/lib/enums.mjs +1 -1
- package/esm2022/http/src/serviceBase.mjs +1 -1
- package/esm2022/http/src/serviceStateMethods.mjs +1 -1
- package/esm2022/keycloak/src/auth.interceptor.mjs +1 -1
- package/esm2022/provider/src/prodiveHostRouter.mjs +1 -1
- package/esm2022/provider/src/provideHostKeycloak.mjs +1 -1
- package/esm2022/superset/index.mjs +1 -1
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +1 -1
- package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +16 -8
- package/esm2022/theme/layout/app/general-search/general-search.component.mjs +1 -1
- package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +1 -1
- package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +19 -11
- package/esm2022/theme/layout/index.mjs +1 -1
- package/esm2022/theme/layout/service/interfaces/enum.mjs +1 -1
- package/esm2022/theme/layout/service/menu-action-confirm.mjs +73 -0
- package/esm2022/theme/layout/service/selection-group.service.mjs +1 -1
- package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +1 -1
- package/esm2022/ui/chip/src/chip.component.mjs +1 -1
- package/esm2022/ui/form/src/form-submit-button.component.mjs +3 -3
- package/esm2022/ui/table/src/table.component.mjs +3 -3
- package/esm2022/ui/table-expand/src/table.component.mjs +3 -3
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +1 -1
- package/esm2022/ui-business/assetPicker/index.mjs +1 -1
- package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +3 -3
- package/esm2022/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.mjs +3 -3
- package/esm2022/ui-business/enumPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/multiAssetPicker/index.mjs +1 -1
- package/esm2022/ui-business/multiAssetPicker/src/multi-asset-picker.component.mjs +3 -3
- package/esm2022/ui-business/pdf-preview-modal/index.mjs +1 -1
- package/esm2022/ui-business/pdf-preview-modal/src/open-pdf-preview.mjs +1 -1
- package/esm2022/ui-business/pdf-preview-modal/src/pdf-preview-modal.component.mjs +27 -27
- package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +3 -3
- package/esm2022/ui-business/trace-drawer/index.mjs +1 -1
- package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +1 -1
- package/esm2022/ui-business/trace-drawer/src/trace-log.service.mjs +1 -1
- package/esm2022/ui-business/trace-id/index.mjs +1 -1
- package/esm2022/ui-business/trace-id/src/trace-id.component.mjs +3 -3
- package/esm2022/util/activity/index.mjs +1 -1
- package/esm2022/util/activity/src/activity.constants.mjs +1 -1
- package/esm2022/util/activity/src/activity.service.mjs +1 -1
- package/esm2022/util/activity/src/activity.types.mjs +1 -1
- package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +1 -1
- package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +1 -1
- package/fesm2022/{aril-app.component-YBy2gyza.mjs → aril-app.component-BUjucZ0J.mjs} +13 -13
- package/fesm2022/aril-app.component-BUjucZ0J.mjs.map +1 -0
- package/fesm2022/aril-boot-bridge.mjs.map +1 -1
- package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
- package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
- package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-boot-mfe-app.component-GbZAGlTf.mjs → aril-boot-mfe-app.component-D1w8I2ug.mjs} +14 -14
- package/fesm2022/aril-boot-mfe-app.component-D1w8I2ug.mjs.map +1 -0
- package/fesm2022/{aril-boot-mfe-aril-boot-mfe-I5xT2fQx.mjs → aril-boot-mfe-aril-boot-mfe-JHrhKvhU.mjs} +2 -2
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-JHrhKvhU.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +1 -1
- package/fesm2022/aril-boot-pages.mjs +96 -96
- package/fesm2022/aril-boot-pages.mjs.map +1 -1
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-keycloak.mjs.map +1 -1
- package/fesm2022/aril-provider.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +113 -28
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
- package/fesm2022/aril-ui-business-assetPicker.mjs +2 -2
- package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +2 -2
- package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-business-multiAssetPicker.mjs +2 -2
- package/fesm2022/aril-ui-business-multiAssetPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-pdf-preview-modal.mjs +26 -26
- package/fesm2022/aril-ui-business-pdf-preview-modal.mjs.map +1 -1
- package/fesm2022/aril-ui-business-ref-value.mjs +2 -2
- package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
- package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
- package/fesm2022/aril-ui-business-trace-id.mjs +2 -2
- package/fesm2022/aril-ui-business-trace-id.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-chip.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +2 -2
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-table-expand.mjs +2 -2
- package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +2 -2
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-util-activity.mjs.map +1 -1
- package/fesm2022/aril-util-directives.mjs.map +1 -1
- package/fesm2022/aril-util-pipes.mjs.map +1 -1
- package/fesm2022/aril.mjs +1 -1
- package/fesm2022/aril.mjs.map +1 -1
- package/package.json +104 -104
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +127 -127
- package/theme/layout/app/expandableMenu/expandable-menu.component.d.ts +4 -1
- package/theme/layout/app/expandableMenu/expandable-menu.component.html +137 -137
- package/theme/layout/app/expandableMenu/expandable-menu.component.ts +387 -373
- package/theme/layout/app/general-search/general-search.component.ts +93 -93
- package/theme/layout/app/site-map/site-map-sidebar.component.ts +195 -195
- package/theme/layout/app/static-sidebar/static-sidebar.component.d.ts +4 -1
- package/theme/layout/app/static-sidebar/static-sidebar.component.html +162 -162
- package/theme/layout/app/static-sidebar/static-sidebar.component.ts +357 -343
- package/theme/layout/index.ts +9 -9
- package/theme/layout/service/interfaces/enum.ts +19 -19
- package/theme/layout/service/menu-action-confirm.d.ts +15 -0
- package/theme/layout/service/menu-action-confirm.ts +112 -0
- package/theme/layout/service/selection-group.service.ts +144 -144
- package/theme/styles/layout/_fonts.scss +81 -81
- package/theme/styles/theme/base/components/input/_inputtext.scss +104 -104
- package/theme/styles/theme/base/components/overlay/_sidebar.scss +27 -27
- package/theme/styles/theme/base/components/panel/_stepper.scss +205 -205
- package/theme/styles/theme/dark/_variables.scss +933 -933
- package/theme/styles/theme/light/_variables.scss +940 -940
- package/fesm2022/aril-app.component-YBy2gyza.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-GbZAGlTf.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-I5xT2fQx.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aril",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.49",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "~17.1.0",
|
|
6
6
|
"@angular/common": "^17.1.0",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"esm": "./esm2022/boot/aril-boot.mjs",
|
|
54
54
|
"default": "./fesm2022/aril-boot.mjs"
|
|
55
55
|
},
|
|
56
|
-
"./i18n": {
|
|
57
|
-
"types": "./i18n/index.d.ts",
|
|
58
|
-
"esm2022": "./esm2022/i18n/aril-i18n.mjs",
|
|
59
|
-
"esm": "./esm2022/i18n/aril-i18n.mjs",
|
|
60
|
-
"default": "./fesm2022/aril-i18n.mjs"
|
|
61
|
-
},
|
|
62
56
|
"./http": {
|
|
63
57
|
"types": "./http/index.d.ts",
|
|
64
58
|
"esm2022": "./esm2022/http/aril-http.mjs",
|
|
65
59
|
"esm": "./esm2022/http/aril-http.mjs",
|
|
66
60
|
"default": "./fesm2022/aril-http.mjs"
|
|
67
61
|
},
|
|
62
|
+
"./i18n": {
|
|
63
|
+
"types": "./i18n/index.d.ts",
|
|
64
|
+
"esm2022": "./esm2022/i18n/aril-i18n.mjs",
|
|
65
|
+
"esm": "./esm2022/i18n/aril-i18n.mjs",
|
|
66
|
+
"default": "./fesm2022/aril-i18n.mjs"
|
|
67
|
+
},
|
|
68
68
|
"./keycloak": {
|
|
69
69
|
"types": "./keycloak/index.d.ts",
|
|
70
70
|
"esm2022": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
@@ -149,18 +149,18 @@
|
|
|
149
149
|
"esm": "./esm2022/theme/layout/aril-theme-layout.mjs",
|
|
150
150
|
"default": "./fesm2022/aril-theme-layout.mjs"
|
|
151
151
|
},
|
|
152
|
-
"./ui/badge": {
|
|
153
|
-
"types": "./ui/badge/index.d.ts",
|
|
154
|
-
"esm2022": "./esm2022/ui/badge/aril-ui-badge.mjs",
|
|
155
|
-
"esm": "./esm2022/ui/badge/aril-ui-badge.mjs",
|
|
156
|
-
"default": "./fesm2022/aril-ui-badge.mjs"
|
|
157
|
-
},
|
|
158
152
|
"./ui/autoComplete": {
|
|
159
153
|
"types": "./ui/autoComplete/index.d.ts",
|
|
160
154
|
"esm2022": "./esm2022/ui/autoComplete/aril-ui-autoComplete.mjs",
|
|
161
155
|
"esm": "./esm2022/ui/autoComplete/aril-ui-autoComplete.mjs",
|
|
162
156
|
"default": "./fesm2022/aril-ui-autoComplete.mjs"
|
|
163
157
|
},
|
|
158
|
+
"./ui/badge": {
|
|
159
|
+
"types": "./ui/badge/index.d.ts",
|
|
160
|
+
"esm2022": "./esm2022/ui/badge/aril-ui-badge.mjs",
|
|
161
|
+
"esm": "./esm2022/ui/badge/aril-ui-badge.mjs",
|
|
162
|
+
"default": "./fesm2022/aril-ui-badge.mjs"
|
|
163
|
+
},
|
|
164
164
|
"./ui/button": {
|
|
165
165
|
"types": "./ui/button/index.d.ts",
|
|
166
166
|
"esm2022": "./esm2022/ui/button/aril-ui-button.mjs",
|
|
@@ -209,23 +209,23 @@
|
|
|
209
209
|
"esm": "./esm2022/ui/dxField/aril-ui-dxField.mjs",
|
|
210
210
|
"default": "./fesm2022/aril-ui-dxField.mjs"
|
|
211
211
|
},
|
|
212
|
-
"./ui/fileUpload": {
|
|
213
|
-
"types": "./ui/fileUpload/index.d.ts",
|
|
214
|
-
"esm2022": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
215
|
-
"esm": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
216
|
-
"default": "./fesm2022/aril-ui-fileUpload.mjs"
|
|
217
|
-
},
|
|
218
212
|
"./ui/editor": {
|
|
219
213
|
"types": "./ui/editor/index.d.ts",
|
|
220
214
|
"esm2022": "./esm2022/ui/editor/aril-ui-editor.mjs",
|
|
221
215
|
"esm": "./esm2022/ui/editor/aril-ui-editor.mjs",
|
|
222
216
|
"default": "./fesm2022/aril-ui-editor.mjs"
|
|
223
217
|
},
|
|
224
|
-
"./ui/
|
|
225
|
-
"types": "./ui/
|
|
226
|
-
"esm2022": "./esm2022/ui/
|
|
227
|
-
"esm": "./esm2022/ui/
|
|
228
|
-
"default": "./fesm2022/aril-ui-
|
|
218
|
+
"./ui/field": {
|
|
219
|
+
"types": "./ui/field/index.d.ts",
|
|
220
|
+
"esm2022": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
221
|
+
"esm": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
222
|
+
"default": "./fesm2022/aril-ui-field.mjs"
|
|
223
|
+
},
|
|
224
|
+
"./ui/fileUpload": {
|
|
225
|
+
"types": "./ui/fileUpload/index.d.ts",
|
|
226
|
+
"esm2022": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
227
|
+
"esm": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
228
|
+
"default": "./fesm2022/aril-ui-fileUpload.mjs"
|
|
229
229
|
},
|
|
230
230
|
"./ui/form": {
|
|
231
231
|
"types": "./ui/form/index.d.ts",
|
|
@@ -233,18 +233,18 @@
|
|
|
233
233
|
"esm": "./esm2022/ui/form/aril-ui-form.mjs",
|
|
234
234
|
"default": "./fesm2022/aril-ui-form.mjs"
|
|
235
235
|
},
|
|
236
|
-
"./ui/field": {
|
|
237
|
-
"types": "./ui/field/index.d.ts",
|
|
238
|
-
"esm2022": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
239
|
-
"esm": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
240
|
-
"default": "./fesm2022/aril-ui-field.mjs"
|
|
241
|
-
},
|
|
242
236
|
"./ui/json-diff-comparison": {
|
|
243
237
|
"types": "./ui/json-diff-comparison/index.d.ts",
|
|
244
238
|
"esm2022": "./esm2022/ui/json-diff-comparison/aril-ui-json-diff-comparison.mjs",
|
|
245
239
|
"esm": "./esm2022/ui/json-diff-comparison/aril-ui-json-diff-comparison.mjs",
|
|
246
240
|
"default": "./fesm2022/aril-ui-json-diff-comparison.mjs"
|
|
247
241
|
},
|
|
242
|
+
"./ui/img-viewer": {
|
|
243
|
+
"types": "./ui/img-viewer/index.d.ts",
|
|
244
|
+
"esm2022": "./esm2022/ui/img-viewer/aril-ui-img-viewer.mjs",
|
|
245
|
+
"esm": "./esm2022/ui/img-viewer/aril-ui-img-viewer.mjs",
|
|
246
|
+
"default": "./fesm2022/aril-ui-img-viewer.mjs"
|
|
247
|
+
},
|
|
248
248
|
"./ui/lib": {
|
|
249
249
|
"types": "./ui/lib/index.d.ts",
|
|
250
250
|
"esm2022": "./esm2022/ui/lib/aril-ui-lib.mjs",
|
|
@@ -257,23 +257,17 @@
|
|
|
257
257
|
"esm": "./esm2022/ui/loader/aril-ui-loader.mjs",
|
|
258
258
|
"default": "./fesm2022/aril-ui-loader.mjs"
|
|
259
259
|
},
|
|
260
|
-
"./ui/multiSelect": {
|
|
261
|
-
"types": "./ui/multiSelect/index.d.ts",
|
|
262
|
-
"esm2022": "./esm2022/ui/multiSelect/aril-ui-multiSelect.mjs",
|
|
263
|
-
"esm": "./esm2022/ui/multiSelect/aril-ui-multiSelect.mjs",
|
|
264
|
-
"default": "./fesm2022/aril-ui-multiSelect.mjs"
|
|
265
|
-
},
|
|
266
260
|
"./ui/mask": {
|
|
267
261
|
"types": "./ui/mask/index.d.ts",
|
|
268
262
|
"esm2022": "./esm2022/ui/mask/aril-ui-mask.mjs",
|
|
269
263
|
"esm": "./esm2022/ui/mask/aril-ui-mask.mjs",
|
|
270
264
|
"default": "./fesm2022/aril-ui-mask.mjs"
|
|
271
265
|
},
|
|
272
|
-
"./ui/
|
|
273
|
-
"types": "./ui/
|
|
274
|
-
"esm2022": "./esm2022/ui/
|
|
275
|
-
"esm": "./esm2022/ui/
|
|
276
|
-
"default": "./fesm2022/aril-ui-
|
|
266
|
+
"./ui/multiSelect": {
|
|
267
|
+
"types": "./ui/multiSelect/index.d.ts",
|
|
268
|
+
"esm2022": "./esm2022/ui/multiSelect/aril-ui-multiSelect.mjs",
|
|
269
|
+
"esm": "./esm2022/ui/multiSelect/aril-ui-multiSelect.mjs",
|
|
270
|
+
"default": "./fesm2022/aril-ui-multiSelect.mjs"
|
|
277
271
|
},
|
|
278
272
|
"./ui/number": {
|
|
279
273
|
"types": "./ui/number/index.d.ts",
|
|
@@ -281,6 +275,12 @@
|
|
|
281
275
|
"esm": "./esm2022/ui/number/aril-ui-number.mjs",
|
|
282
276
|
"default": "./fesm2022/aril-ui-number.mjs"
|
|
283
277
|
},
|
|
278
|
+
"./ui/operation-types-dialog": {
|
|
279
|
+
"types": "./ui/operation-types-dialog/index.d.ts",
|
|
280
|
+
"esm2022": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
281
|
+
"esm": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
282
|
+
"default": "./fesm2022/aril-ui-operation-types-dialog.mjs"
|
|
283
|
+
},
|
|
284
284
|
"./ui/overlayPanel": {
|
|
285
285
|
"types": "./ui/overlayPanel/index.d.ts",
|
|
286
286
|
"esm2022": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
@@ -293,30 +293,24 @@
|
|
|
293
293
|
"esm": "./esm2022/ui/panel/aril-ui-panel.mjs",
|
|
294
294
|
"default": "./fesm2022/aril-ui-panel.mjs"
|
|
295
295
|
},
|
|
296
|
-
"./ui/pdf-viewer": {
|
|
297
|
-
"types": "./ui/pdf-viewer/index.d.ts",
|
|
298
|
-
"esm2022": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
299
|
-
"esm": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
300
|
-
"default": "./fesm2022/aril-ui-pdf-viewer.mjs"
|
|
301
|
-
},
|
|
302
296
|
"./ui/password": {
|
|
303
297
|
"types": "./ui/password/index.d.ts",
|
|
304
298
|
"esm2022": "./esm2022/ui/password/aril-ui-password.mjs",
|
|
305
299
|
"esm": "./esm2022/ui/password/aril-ui-password.mjs",
|
|
306
300
|
"default": "./fesm2022/aril-ui-password.mjs"
|
|
307
301
|
},
|
|
302
|
+
"./ui/pdf-viewer": {
|
|
303
|
+
"types": "./ui/pdf-viewer/index.d.ts",
|
|
304
|
+
"esm2022": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
305
|
+
"esm": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
306
|
+
"default": "./fesm2022/aril-ui-pdf-viewer.mjs"
|
|
307
|
+
},
|
|
308
308
|
"./ui/progressbar": {
|
|
309
309
|
"types": "./ui/progressbar/index.d.ts",
|
|
310
310
|
"esm2022": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
311
311
|
"esm": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
312
312
|
"default": "./fesm2022/aril-ui-progressbar.mjs"
|
|
313
313
|
},
|
|
314
|
-
"./ui/relativeDateSelector": {
|
|
315
|
-
"types": "./ui/relativeDateSelector/index.d.ts",
|
|
316
|
-
"esm2022": "./esm2022/ui/relativeDateSelector/aril-ui-relativeDateSelector.mjs",
|
|
317
|
-
"esm": "./esm2022/ui/relativeDateSelector/aril-ui-relativeDateSelector.mjs",
|
|
318
|
-
"default": "./fesm2022/aril-ui-relativeDateSelector.mjs"
|
|
319
|
-
},
|
|
320
314
|
"./ui/radioButton": {
|
|
321
315
|
"types": "./ui/radioButton/index.d.ts",
|
|
322
316
|
"esm2022": "./esm2022/ui/radioButton/aril-ui-radioButton.mjs",
|
|
@@ -329,6 +323,12 @@
|
|
|
329
323
|
"esm": "./esm2022/ui/selectBox/aril-ui-selectBox.mjs",
|
|
330
324
|
"default": "./fesm2022/aril-ui-selectBox.mjs"
|
|
331
325
|
},
|
|
326
|
+
"./ui/relativeDateSelector": {
|
|
327
|
+
"types": "./ui/relativeDateSelector/index.d.ts",
|
|
328
|
+
"esm2022": "./esm2022/ui/relativeDateSelector/aril-ui-relativeDateSelector.mjs",
|
|
329
|
+
"esm": "./esm2022/ui/relativeDateSelector/aril-ui-relativeDateSelector.mjs",
|
|
330
|
+
"default": "./fesm2022/aril-ui-relativeDateSelector.mjs"
|
|
331
|
+
},
|
|
332
332
|
"./ui/switch": {
|
|
333
333
|
"types": "./ui/switch/index.d.ts",
|
|
334
334
|
"esm2022": "./esm2022/ui/switch/aril-ui-switch.mjs",
|
|
@@ -341,35 +341,29 @@
|
|
|
341
341
|
"esm": "./esm2022/ui/table/aril-ui-table.mjs",
|
|
342
342
|
"default": "./fesm2022/aril-ui-table.mjs"
|
|
343
343
|
},
|
|
344
|
+
"./ui/table-expand": {
|
|
345
|
+
"types": "./ui/table-expand/index.d.ts",
|
|
346
|
+
"esm2022": "./esm2022/ui/table-expand/aril-ui-table-expand.mjs",
|
|
347
|
+
"esm": "./esm2022/ui/table-expand/aril-ui-table-expand.mjs",
|
|
348
|
+
"default": "./fesm2022/aril-ui-table-expand.mjs"
|
|
349
|
+
},
|
|
344
350
|
"./ui/tag": {
|
|
345
351
|
"types": "./ui/tag/index.d.ts",
|
|
346
352
|
"esm2022": "./esm2022/ui/tag/aril-ui-tag.mjs",
|
|
347
353
|
"esm": "./esm2022/ui/tag/aril-ui-tag.mjs",
|
|
348
354
|
"default": "./fesm2022/aril-ui-tag.mjs"
|
|
349
355
|
},
|
|
350
|
-
"./ui/text": {
|
|
351
|
-
"types": "./ui/text/index.d.ts",
|
|
352
|
-
"esm2022": "./esm2022/ui/text/aril-ui-text.mjs",
|
|
353
|
-
"esm": "./esm2022/ui/text/aril-ui-text.mjs",
|
|
354
|
-
"default": "./fesm2022/aril-ui-text.mjs"
|
|
355
|
-
},
|
|
356
356
|
"./ui/tagBox": {
|
|
357
357
|
"types": "./ui/tagBox/index.d.ts",
|
|
358
358
|
"esm2022": "./esm2022/ui/tagBox/aril-ui-tagBox.mjs",
|
|
359
359
|
"esm": "./esm2022/ui/tagBox/aril-ui-tagBox.mjs",
|
|
360
360
|
"default": "./fesm2022/aril-ui-tagBox.mjs"
|
|
361
361
|
},
|
|
362
|
-
"./ui/
|
|
363
|
-
"types": "./ui/
|
|
364
|
-
"esm2022": "./esm2022/ui/
|
|
365
|
-
"esm": "./esm2022/ui/
|
|
366
|
-
"default": "./fesm2022/aril-ui-
|
|
367
|
-
},
|
|
368
|
-
"./ui/toggle-button": {
|
|
369
|
-
"types": "./ui/toggle-button/index.d.ts",
|
|
370
|
-
"esm2022": "./esm2022/ui/toggle-button/aril-ui-toggle-button.mjs",
|
|
371
|
-
"esm": "./esm2022/ui/toggle-button/aril-ui-toggle-button.mjs",
|
|
372
|
-
"default": "./fesm2022/aril-ui-toggle-button.mjs"
|
|
362
|
+
"./ui/text": {
|
|
363
|
+
"types": "./ui/text/index.d.ts",
|
|
364
|
+
"esm2022": "./esm2022/ui/text/aril-ui-text.mjs",
|
|
365
|
+
"esm": "./esm2022/ui/text/aril-ui-text.mjs",
|
|
366
|
+
"default": "./fesm2022/aril-ui-text.mjs"
|
|
373
367
|
},
|
|
374
368
|
"./ui/textArea": {
|
|
375
369
|
"types": "./ui/textArea/index.d.ts",
|
|
@@ -383,11 +377,11 @@
|
|
|
383
377
|
"esm": "./esm2022/ui/tooltip/aril-ui-tooltip.mjs",
|
|
384
378
|
"default": "./fesm2022/aril-ui-tooltip.mjs"
|
|
385
379
|
},
|
|
386
|
-
"./ui/
|
|
387
|
-
"types": "./ui/
|
|
388
|
-
"esm2022": "./esm2022/ui/
|
|
389
|
-
"esm": "./esm2022/ui/
|
|
390
|
-
"default": "./fesm2022/aril-ui-
|
|
380
|
+
"./ui/toggle-button": {
|
|
381
|
+
"types": "./ui/toggle-button/index.d.ts",
|
|
382
|
+
"esm2022": "./esm2022/ui/toggle-button/aril-ui-toggle-button.mjs",
|
|
383
|
+
"esm": "./esm2022/ui/toggle-button/aril-ui-toggle-button.mjs",
|
|
384
|
+
"default": "./fesm2022/aril-ui-toggle-button.mjs"
|
|
391
385
|
},
|
|
392
386
|
"./ui/translate-input": {
|
|
393
387
|
"types": "./ui/translate-input/index.d.ts",
|
|
@@ -401,6 +395,12 @@
|
|
|
401
395
|
"esm": "./esm2022/ui/treeSelect/aril-ui-treeSelect.mjs",
|
|
402
396
|
"default": "./fesm2022/aril-ui-treeSelect.mjs"
|
|
403
397
|
},
|
|
398
|
+
"./ui/tree": {
|
|
399
|
+
"types": "./ui/tree/index.d.ts",
|
|
400
|
+
"esm2022": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
401
|
+
"esm": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
402
|
+
"default": "./fesm2022/aril-ui-tree.mjs"
|
|
403
|
+
},
|
|
404
404
|
"./ui/treeTable": {
|
|
405
405
|
"types": "./ui/treeTable/index.d.ts",
|
|
406
406
|
"esm2022": "./esm2022/ui/treeTable/aril-ui-treeTable.mjs",
|
|
@@ -437,6 +437,12 @@
|
|
|
437
437
|
"esm": "./esm2022/ui-business/image-viewer/aril-ui-business-image-viewer.mjs",
|
|
438
438
|
"default": "./fesm2022/aril-ui-business-image-viewer.mjs"
|
|
439
439
|
},
|
|
440
|
+
"./ui-business/multiAssetPicker": {
|
|
441
|
+
"types": "./ui-business/multiAssetPicker/index.d.ts",
|
|
442
|
+
"esm2022": "./esm2022/ui-business/multiAssetPicker/aril-ui-business-multiAssetPicker.mjs",
|
|
443
|
+
"esm": "./esm2022/ui-business/multiAssetPicker/aril-ui-business-multiAssetPicker.mjs",
|
|
444
|
+
"default": "./fesm2022/aril-ui-business-multiAssetPicker.mjs"
|
|
445
|
+
},
|
|
440
446
|
"./ui-business/notification-templates-dialog": {
|
|
441
447
|
"types": "./ui-business/notification-templates-dialog/index.d.ts",
|
|
442
448
|
"esm2022": "./esm2022/ui-business/notification-templates-dialog/aril-ui-business-notification-templates-dialog.mjs",
|
|
@@ -449,36 +455,36 @@
|
|
|
449
455
|
"esm": "./esm2022/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.mjs",
|
|
450
456
|
"default": "./fesm2022/aril-ui-business-multiple-ref-value.mjs"
|
|
451
457
|
},
|
|
452
|
-
"./ui-business/multiAssetPicker": {
|
|
453
|
-
"types": "./ui-business/multiAssetPicker/index.d.ts",
|
|
454
|
-
"esm2022": "./esm2022/ui-business/multiAssetPicker/aril-ui-business-multiAssetPicker.mjs",
|
|
455
|
-
"esm": "./esm2022/ui-business/multiAssetPicker/aril-ui-business-multiAssetPicker.mjs",
|
|
456
|
-
"default": "./fesm2022/aril-ui-business-multiAssetPicker.mjs"
|
|
457
|
-
},
|
|
458
458
|
"./ui-business/pdf-preview-modal": {
|
|
459
459
|
"types": "./ui-business/pdf-preview-modal/index.d.ts",
|
|
460
460
|
"esm2022": "./esm2022/ui-business/pdf-preview-modal/aril-ui-business-pdf-preview-modal.mjs",
|
|
461
461
|
"esm": "./esm2022/ui-business/pdf-preview-modal/aril-ui-business-pdf-preview-modal.mjs",
|
|
462
462
|
"default": "./fesm2022/aril-ui-business-pdf-preview-modal.mjs"
|
|
463
463
|
},
|
|
464
|
-
"./ui-business/trace-drawer": {
|
|
465
|
-
"types": "./ui-business/trace-drawer/index.d.ts",
|
|
466
|
-
"esm2022": "./esm2022/ui-business/trace-drawer/aril-ui-business-trace-drawer.mjs",
|
|
467
|
-
"esm": "./esm2022/ui-business/trace-drawer/aril-ui-business-trace-drawer.mjs",
|
|
468
|
-
"default": "./fesm2022/aril-ui-business-trace-drawer.mjs"
|
|
469
|
-
},
|
|
470
464
|
"./ui-business/ref-value": {
|
|
471
465
|
"types": "./ui-business/ref-value/index.d.ts",
|
|
472
466
|
"esm2022": "./esm2022/ui-business/ref-value/aril-ui-business-ref-value.mjs",
|
|
473
467
|
"esm": "./esm2022/ui-business/ref-value/aril-ui-business-ref-value.mjs",
|
|
474
468
|
"default": "./fesm2022/aril-ui-business-ref-value.mjs"
|
|
475
469
|
},
|
|
470
|
+
"./ui-business/trace-drawer": {
|
|
471
|
+
"types": "./ui-business/trace-drawer/index.d.ts",
|
|
472
|
+
"esm2022": "./esm2022/ui-business/trace-drawer/aril-ui-business-trace-drawer.mjs",
|
|
473
|
+
"esm": "./esm2022/ui-business/trace-drawer/aril-ui-business-trace-drawer.mjs",
|
|
474
|
+
"default": "./fesm2022/aril-ui-business-trace-drawer.mjs"
|
|
475
|
+
},
|
|
476
476
|
"./ui-business/rolePicker": {
|
|
477
477
|
"types": "./ui-business/rolePicker/index.d.ts",
|
|
478
478
|
"esm2022": "./esm2022/ui-business/rolePicker/aril-ui-business-rolePicker.mjs",
|
|
479
479
|
"esm": "./esm2022/ui-business/rolePicker/aril-ui-business-rolePicker.mjs",
|
|
480
480
|
"default": "./fesm2022/aril-ui-business-rolePicker.mjs"
|
|
481
481
|
},
|
|
482
|
+
"./ui-business/trace-id": {
|
|
483
|
+
"types": "./ui-business/trace-id/index.d.ts",
|
|
484
|
+
"esm2022": "./esm2022/ui-business/trace-id/aril-ui-business-trace-id.mjs",
|
|
485
|
+
"esm": "./esm2022/ui-business/trace-id/aril-ui-business-trace-id.mjs",
|
|
486
|
+
"default": "./fesm2022/aril-ui-business-trace-id.mjs"
|
|
487
|
+
},
|
|
482
488
|
"./ui-business/userPicker": {
|
|
483
489
|
"types": "./ui-business/userPicker/index.d.ts",
|
|
484
490
|
"esm2022": "./esm2022/ui-business/userPicker/aril-ui-business-userPicker.mjs",
|
|
@@ -491,11 +497,11 @@
|
|
|
491
497
|
"esm": "./esm2022/util/activity/aril-util-activity.mjs",
|
|
492
498
|
"default": "./fesm2022/aril-util-activity.mjs"
|
|
493
499
|
},
|
|
494
|
-
"./
|
|
495
|
-
"types": "./
|
|
496
|
-
"esm2022": "./esm2022/
|
|
497
|
-
"esm": "./esm2022/
|
|
498
|
-
"default": "./fesm2022/aril-
|
|
500
|
+
"./util/directives": {
|
|
501
|
+
"types": "./util/directives/index.d.ts",
|
|
502
|
+
"esm2022": "./esm2022/util/directives/aril-util-directives.mjs",
|
|
503
|
+
"esm": "./esm2022/util/directives/aril-util-directives.mjs",
|
|
504
|
+
"default": "./fesm2022/aril-util-directives.mjs"
|
|
499
505
|
},
|
|
500
506
|
"./util/block": {
|
|
501
507
|
"types": "./util/block/index.d.ts",
|
|
@@ -503,12 +509,6 @@
|
|
|
503
509
|
"esm": "./esm2022/util/block/aril-util-block.mjs",
|
|
504
510
|
"default": "./fesm2022/aril-util-block.mjs"
|
|
505
511
|
},
|
|
506
|
-
"./util/directives": {
|
|
507
|
-
"types": "./util/directives/index.d.ts",
|
|
508
|
-
"esm2022": "./esm2022/util/directives/aril-util-directives.mjs",
|
|
509
|
-
"esm": "./esm2022/util/directives/aril-util-directives.mjs",
|
|
510
|
-
"default": "./fesm2022/aril-util-directives.mjs"
|
|
511
|
-
},
|
|
512
512
|
"./util/lib": {
|
|
513
513
|
"types": "./util/lib/index.d.ts",
|
|
514
514
|
"esm2022": "./esm2022/util/lib/aril-util-lib.mjs",
|
|
@@ -551,18 +551,18 @@
|
|
|
551
551
|
"esm": "./esm2022/boot/config/api/aril-boot-config-api.mjs",
|
|
552
552
|
"default": "./fesm2022/aril-boot-config-api.mjs"
|
|
553
553
|
},
|
|
554
|
-
"./boot/config/apps": {
|
|
555
|
-
"types": "./boot/config/apps/index.d.ts",
|
|
556
|
-
"esm2022": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
557
|
-
"esm": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
558
|
-
"default": "./fesm2022/aril-boot-config-apps.mjs"
|
|
559
|
-
},
|
|
560
554
|
"./boot/config/plugins": {
|
|
561
555
|
"types": "./boot/config/plugins/index.d.ts",
|
|
562
556
|
"esm2022": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
563
557
|
"esm": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
564
558
|
"default": "./fesm2022/aril-boot-config-plugins.mjs"
|
|
565
559
|
},
|
|
560
|
+
"./boot/config/apps": {
|
|
561
|
+
"types": "./boot/config/apps/index.d.ts",
|
|
562
|
+
"esm2022": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
563
|
+
"esm": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
564
|
+
"default": "./fesm2022/aril-boot-config-apps.mjs"
|
|
565
|
+
},
|
|
566
566
|
"./boot/config/translate": {
|
|
567
567
|
"types": "./boot/config/translate/index.d.ts",
|
|
568
568
|
"esm2022": "./esm2022/boot/config/translate/aril-boot-config-translate.mjs",
|
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import { NgClass } from '@angular/common';
|
|
2
|
-
import { Component, effect } from '@angular/core';
|
|
3
|
-
import { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';
|
|
4
|
-
|
|
5
|
-
import { MenuItem } from 'primeng/api';
|
|
6
|
-
import { BreadcrumbModule } from 'primeng/breadcrumb';
|
|
7
|
-
|
|
8
|
-
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
9
|
-
import { filter } from 'rxjs/operators';
|
|
10
|
-
|
|
11
|
-
import { bridge } from 'aril/boot/bridge';
|
|
12
|
-
import { PubSubService } from 'aril/util/pub-sub';
|
|
13
|
-
import { BreadcrumbService } from '../../service/breadcrumb.service';
|
|
14
|
-
|
|
15
|
-
interface Breadcrumb {
|
|
16
|
-
label: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Component({
|
|
21
|
-
standalone: true,
|
|
22
|
-
selector: 'app-breadcrumb',
|
|
23
|
-
imports: [RouterLink, BreadcrumbModule, NgClass],
|
|
24
|
-
templateUrl: './app.breadcrumb.component.html'
|
|
25
|
-
})
|
|
26
|
-
export class AppBreadcrumbComponent {
|
|
27
|
-
private readonly _breadcrumbs$ = new BehaviorSubject<Breadcrumb[]>([]);
|
|
28
|
-
private breadcrumbsSubscription!: Subscription;
|
|
29
|
-
|
|
30
|
-
readonly breadcrumbs$ = this._breadcrumbs$.asObservable();
|
|
31
|
-
breadcrumbs: MenuItem[] = [];
|
|
32
|
-
|
|
33
|
-
constructor(
|
|
34
|
-
private router: Router,
|
|
35
|
-
private breadcrumbService: BreadcrumbService,
|
|
36
|
-
private pubSubService: PubSubService
|
|
37
|
-
) {
|
|
38
|
-
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event) => {
|
|
39
|
-
const root = this.router.routerState.snapshot.root;
|
|
40
|
-
const breadcrumbs: Breadcrumb[] = [];
|
|
41
|
-
|
|
42
|
-
this.addBreadcrumb(root, [], breadcrumbs);
|
|
43
|
-
|
|
44
|
-
this._breadcrumbs$.next(breadcrumbs);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
effect(() => {
|
|
48
|
-
if (this.breadcrumbService.keyValues()) {
|
|
49
|
-
const root = this.router.routerState.snapshot.root;
|
|
50
|
-
const breadcrumbs: Breadcrumb[] = [];
|
|
51
|
-
|
|
52
|
-
this.addBreadcrumb(root, [], breadcrumbs);
|
|
53
|
-
|
|
54
|
-
this._breadcrumbs$.next(breadcrumbs);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
ngOnInit() {
|
|
60
|
-
this.breadcrumbsSubscription = this.breadcrumbs$.subscribe((breadcrumbs) => {
|
|
61
|
-
this.breadcrumbs = breadcrumbs.map((breadcrumb) => ({
|
|
62
|
-
label: breadcrumb.label,
|
|
63
|
-
url: breadcrumb.url
|
|
64
|
-
}));
|
|
65
|
-
this.breadcrumbs.unshift({ icon: 'pi pi-home', url: '/' });
|
|
66
|
-
|
|
67
|
-
// Update global page title signal with the last breadcrumb label
|
|
68
|
-
const pageTitle = bridge.pageTitle();
|
|
69
|
-
if (pageTitle) {
|
|
70
|
-
const lastBreadcrumb = breadcrumbs[breadcrumbs.length - 1];
|
|
71
|
-
bridge.pageTitle.set(lastBreadcrumb?.label || '');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const currentUrl = this.router.url;
|
|
75
|
-
this.pubSubService.publish({
|
|
76
|
-
name: 'breadcrumbUpdated',
|
|
77
|
-
data: {
|
|
78
|
-
path: currentUrl,
|
|
79
|
-
custom: {
|
|
80
|
-
breadcrumbs: breadcrumbs,
|
|
81
|
-
pageTitle: breadcrumbs.length > 0 ? breadcrumbs[breadcrumbs.length - 1].label : ''
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
ngOnDestroy() {
|
|
89
|
-
if (this.breadcrumbsSubscription) {
|
|
90
|
-
this.breadcrumbsSubscription.unsubscribe();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private addBreadcrumb(route: ActivatedRouteSnapshot, parentUrl: string[], breadcrumbs: Breadcrumb[]) {
|
|
95
|
-
const routeUrl = parentUrl.concat(route.url.map((url) => url.path));
|
|
96
|
-
const breadcrumb = route.data['breadcrumb'];
|
|
97
|
-
const parentBreadcrumb = route.parent && route.parent.data ? route.parent.data['breadcrumb'] : null;
|
|
98
|
-
|
|
99
|
-
if (breadcrumb && breadcrumb !== parentBreadcrumb) {
|
|
100
|
-
const keyRegex = new RegExp('(?<=\\{)([^}]+)(?=\\})');
|
|
101
|
-
const key = (keyRegex.exec(route.data['breadcrumb']) || [])[0]!;
|
|
102
|
-
const value = this.breadcrumbService.getValue(key);
|
|
103
|
-
|
|
104
|
-
if (key && value) {
|
|
105
|
-
breadcrumbs.push({
|
|
106
|
-
label: (route.data['breadcrumb'] as string).replace(`{${key}}`, value),
|
|
107
|
-
url: '/' + routeUrl.join('/')
|
|
108
|
-
});
|
|
109
|
-
} else if (key && !value) {
|
|
110
|
-
// Key exists but value not loaded yet - show loading placeholder
|
|
111
|
-
breadcrumbs.push({
|
|
112
|
-
label: '...',
|
|
113
|
-
url: '/' + routeUrl.join('/')
|
|
114
|
-
});
|
|
115
|
-
} else {
|
|
116
|
-
breadcrumbs.push({
|
|
117
|
-
label: route.data['breadcrumb'],
|
|
118
|
-
url: '/' + routeUrl.join('/')
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (route.firstChild) {
|
|
124
|
-
this.addBreadcrumb(route.firstChild, routeUrl, breadcrumbs);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
1
|
+
import { NgClass } from '@angular/common';
|
|
2
|
+
import { Component, effect } from '@angular/core';
|
|
3
|
+
import { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
import { MenuItem } from 'primeng/api';
|
|
6
|
+
import { BreadcrumbModule } from 'primeng/breadcrumb';
|
|
7
|
+
|
|
8
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
9
|
+
import { filter } from 'rxjs/operators';
|
|
10
|
+
|
|
11
|
+
import { bridge } from 'aril/boot/bridge';
|
|
12
|
+
import { PubSubService } from 'aril/util/pub-sub';
|
|
13
|
+
import { BreadcrumbService } from '../../service/breadcrumb.service';
|
|
14
|
+
|
|
15
|
+
interface Breadcrumb {
|
|
16
|
+
label: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
standalone: true,
|
|
22
|
+
selector: 'app-breadcrumb',
|
|
23
|
+
imports: [RouterLink, BreadcrumbModule, NgClass],
|
|
24
|
+
templateUrl: './app.breadcrumb.component.html'
|
|
25
|
+
})
|
|
26
|
+
export class AppBreadcrumbComponent {
|
|
27
|
+
private readonly _breadcrumbs$ = new BehaviorSubject<Breadcrumb[]>([]);
|
|
28
|
+
private breadcrumbsSubscription!: Subscription;
|
|
29
|
+
|
|
30
|
+
readonly breadcrumbs$ = this._breadcrumbs$.asObservable();
|
|
31
|
+
breadcrumbs: MenuItem[] = [];
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
private router: Router,
|
|
35
|
+
private breadcrumbService: BreadcrumbService,
|
|
36
|
+
private pubSubService: PubSubService
|
|
37
|
+
) {
|
|
38
|
+
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event) => {
|
|
39
|
+
const root = this.router.routerState.snapshot.root;
|
|
40
|
+
const breadcrumbs: Breadcrumb[] = [];
|
|
41
|
+
|
|
42
|
+
this.addBreadcrumb(root, [], breadcrumbs);
|
|
43
|
+
|
|
44
|
+
this._breadcrumbs$.next(breadcrumbs);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
effect(() => {
|
|
48
|
+
if (this.breadcrumbService.keyValues()) {
|
|
49
|
+
const root = this.router.routerState.snapshot.root;
|
|
50
|
+
const breadcrumbs: Breadcrumb[] = [];
|
|
51
|
+
|
|
52
|
+
this.addBreadcrumb(root, [], breadcrumbs);
|
|
53
|
+
|
|
54
|
+
this._breadcrumbs$.next(breadcrumbs);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ngOnInit() {
|
|
60
|
+
this.breadcrumbsSubscription = this.breadcrumbs$.subscribe((breadcrumbs) => {
|
|
61
|
+
this.breadcrumbs = breadcrumbs.map((breadcrumb) => ({
|
|
62
|
+
label: breadcrumb.label,
|
|
63
|
+
url: breadcrumb.url
|
|
64
|
+
}));
|
|
65
|
+
this.breadcrumbs.unshift({ icon: 'pi pi-home', url: '/' });
|
|
66
|
+
|
|
67
|
+
// Update global page title signal with the last breadcrumb label
|
|
68
|
+
const pageTitle = bridge.pageTitle();
|
|
69
|
+
if (pageTitle) {
|
|
70
|
+
const lastBreadcrumb = breadcrumbs[breadcrumbs.length - 1];
|
|
71
|
+
bridge.pageTitle.set(lastBreadcrumb?.label || '');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const currentUrl = this.router.url;
|
|
75
|
+
this.pubSubService.publish({
|
|
76
|
+
name: 'breadcrumbUpdated',
|
|
77
|
+
data: {
|
|
78
|
+
path: currentUrl,
|
|
79
|
+
custom: {
|
|
80
|
+
breadcrumbs: breadcrumbs,
|
|
81
|
+
pageTitle: breadcrumbs.length > 0 ? breadcrumbs[breadcrumbs.length - 1].label : ''
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
ngOnDestroy() {
|
|
89
|
+
if (this.breadcrumbsSubscription) {
|
|
90
|
+
this.breadcrumbsSubscription.unsubscribe();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private addBreadcrumb(route: ActivatedRouteSnapshot, parentUrl: string[], breadcrumbs: Breadcrumb[]) {
|
|
95
|
+
const routeUrl = parentUrl.concat(route.url.map((url) => url.path));
|
|
96
|
+
const breadcrumb = route.data['breadcrumb'];
|
|
97
|
+
const parentBreadcrumb = route.parent && route.parent.data ? route.parent.data['breadcrumb'] : null;
|
|
98
|
+
|
|
99
|
+
if (breadcrumb && breadcrumb !== parentBreadcrumb) {
|
|
100
|
+
const keyRegex = new RegExp('(?<=\\{)([^}]+)(?=\\})');
|
|
101
|
+
const key = (keyRegex.exec(route.data['breadcrumb']) || [])[0]!;
|
|
102
|
+
const value = this.breadcrumbService.getValue(key);
|
|
103
|
+
|
|
104
|
+
if (key && value) {
|
|
105
|
+
breadcrumbs.push({
|
|
106
|
+
label: (route.data['breadcrumb'] as string).replace(`{${key}}`, value),
|
|
107
|
+
url: '/' + routeUrl.join('/')
|
|
108
|
+
});
|
|
109
|
+
} else if (key && !value) {
|
|
110
|
+
// Key exists but value not loaded yet - show loading placeholder
|
|
111
|
+
breadcrumbs.push({
|
|
112
|
+
label: '...',
|
|
113
|
+
url: '/' + routeUrl.join('/')
|
|
114
|
+
});
|
|
115
|
+
} else {
|
|
116
|
+
breadcrumbs.push({
|
|
117
|
+
label: route.data['breadcrumb'],
|
|
118
|
+
url: '/' + routeUrl.join('/')
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (route.firstChild) {
|
|
124
|
+
this.addBreadcrumb(route.firstChild, routeUrl, breadcrumbs);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|