@taon-dev/ui 21.0.13 → 21.0.14
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/ui-browser-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs +19 -0
- package/browser/fesm2022/ui-browser-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs.map +1 -0
- package/browser/fesm2022/ui-browser-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs +19 -0
- package/browser/fesm2022/ui-browser-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs.map +1 -0
- package/browser/fesm2022/ui-browser.mjs +27 -8
- package/browser/fesm2022/ui-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/ui-browser.d.ts +32 -3
- package/browser-prod/fesm2022/ui-browser-prod-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs +19 -0
- package/browser-prod/fesm2022/ui-browser-prod-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs.map +1 -0
- package/browser-prod/fesm2022/ui-browser-prod-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs +19 -0
- package/browser-prod/fesm2022/ui-browser-prod-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs.map +1 -0
- package/browser-prod/fesm2022/ui-browser-prod.mjs +27 -8
- package/browser-prod/fesm2022/ui-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/ui-browser-prod.d.ts +32 -3
- package/full-dts/build-info._auto-generated_.d.ts +1 -1
- package/full-dts/index._auto-generated_.d.ts +3 -1
- package/full-dts/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.d.ts +17 -0
- package/full-dts/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.d.ts +17 -0
- package/full-dts/taon-under-construction/i18n/taon-under-construction.translation.d.ts +5 -0
- package/full-dts/taon-under-construction/taon-under-construction.component.d.ts +8 -0
- package/html/lib/taon-under-construction/taon-under-construction.component.html +14 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/index._auto-generated_.d.ts +1 -0
- package/lib/index._auto-generated_.js +2 -0
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/taon-admin-layout/index.d.ts +1 -1
- package/lib/taon-admin-layout/index.js +2 -2
- package/lib/taon-datatable/index.d.ts +1 -1
- package/lib/taon-datatable/index.js +2 -2
- package/lib/taon-draggable-button-panel/index.d.ts +1 -1
- package/lib/taon-draggable-button-panel/index.js +2 -2
- package/lib/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.d.ts +16 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.js +19 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.js.map +1 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.d.ts +16 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.js +19 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.translation.d.ts +4 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.translation.js +5 -0
- package/lib/taon-under-construction/i18n/taon-under-construction.translation.js.map +1 -0
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/index._auto-generated_.d.ts +1 -0
- package/lib-esm/lib/index._auto-generated_.js +2 -0
- package/lib-esm/lib/index._auto-generated_.js.map +1 -1
- package/lib-esm/lib/taon-admin-layout/index.d.ts +1 -1
- package/lib-esm/lib/taon-admin-layout/index.js +1 -1
- package/lib-esm/lib/taon-datatable/index.d.ts +1 -1
- package/lib-esm/lib/taon-datatable/index.js +1 -1
- package/lib-esm/lib/taon-draggable-button-panel/index.d.ts +1 -1
- package/lib-esm/lib/taon-draggable-button-panel/index.js +1 -1
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.d.ts +16 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.js +17 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.d.ts +16 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.js +17 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.translation.d.ts +4 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.translation.js +4 -0
- package/lib-esm/lib/taon-under-construction/i18n/taon-under-construction.translation.js.map +1 -0
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/index._auto-generated_.d.ts +1 -0
- package/lib-prod/index._auto-generated_.js +2 -0
- package/lib-prod/index._auto-generated_.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/taon-admin-layout/index.d.ts +1 -1
- package/lib-prod/taon-admin-layout/index.js +1 -1
- package/lib-prod/taon-datatable/index.d.ts +1 -1
- package/lib-prod/taon-datatable/index.js +1 -1
- package/lib-prod/taon-draggable-button-panel/index.d.ts +1 -1
- package/lib-prod/taon-draggable-button-panel/index.js +1 -1
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.d.ts +16 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.js +17 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.js.map +1 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.d.ts +16 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.js +17 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.translation.d.ts +4 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.translation.js +4 -0
- package/lib-prod/taon-under-construction/i18n/taon-under-construction.translation.js.map +1 -0
- package/package.json +1 -1
- package/scss/lib/taon-under-construction/taon-under-construction.component.scss +78 -0
- package/ts-source/browser-code/build-info._auto-generated_.ts +13 -0
- package/ts-source/browser-code/directives/taon-horizontal-wheel-scrolling.directive.ts +49 -0
- package/ts-source/browser-code/i18n/lib.translation.ts +12 -0
- package/ts-source/browser-code/i18n/my-organization-proj.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/browser-code/i18n/my-organization-proj.ts.en-US.po +9 -0
- package/ts-source/browser-code/i18n/my-organization-proj.ts.pl-PL.i18n.data.ts +24 -0
- package/ts-source/browser-code/i18n/my-organization-proj.ts.pl-PL.po +9 -0
- package/ts-source/browser-code/index._auto-generated_.ts +33 -0
- package/ts-source/browser-code/index.scss +6 -0
- package/ts-source/browser-code/index.ts +11 -0
- package/ts-source/browser-code/lib-info.md +8 -0
- package/ts-source/browser-code/migrations/index.ts +8 -0
- package/ts-source/browser-code/migrations/migrations-info.md +6 -0
- package/ts-source/browser-code/migrations/migrations_index._auto-generated_.ts +7 -0
- package/ts-source/browser-code/my-organization-proj.ts +13 -0
- package/ts-source/browser-code/start-cli.ts +38 -0
- package/ts-source/browser-code/taon-admin-layout/index.ts +8 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-layout.component.html +240 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-layout.component.scss +331 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-layout.component.ts +398 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-layout.models.ts +52 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-menu-context.ts +31 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-page-tabs.component.html +34 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-page-tabs.component.scss +18 -0
- package/ts-source/browser-code/taon-admin-layout/taon-admin-page-tabs.component.ts +180 -0
- package/ts-source/browser-code/taon-admin-layout/taon-base-admin-page.component.ts +19 -0
- package/ts-source/browser-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/browser-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.po +9 -0
- package/ts-source/browser-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.i18n.data.ts +23 -0
- package/ts-source/browser-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.po +9 -0
- package/ts-source/browser-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.translation.ts +12 -0
- package/ts-source/browser-code/taon-backoffice-notifications/index.ts +11 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-backoffice-notifications.component.html +8 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-backoffice-notifications.component.scss +9 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-backoffice-notifications.component.ts +53 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-backoffice-notifications.models.ts +14 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-backoffice-notifications.service.ts +44 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-error-details-dialog.component.html +44 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-error-details-dialog.component.scss +64 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-error-details-dialog.component.ts +81 -0
- package/ts-source/browser-code/taon-backoffice-notifications/taon-error-toast.component.ts +57 -0
- package/ts-source/browser-code/taon-confirm-dialog/taon-confirm-dialog.component.html +42 -0
- package/ts-source/browser-code/taon-confirm-dialog/taon-confirm-dialog.component.scss +9 -0
- package/ts-source/browser-code/taon-confirm-dialog/taon-confirm-dialog.component.ts +32 -0
- package/ts-source/browser-code/taon-confirm-dialog/taon-confirm-dialog.md +34 -0
- package/ts-source/browser-code/taon-confirm-dialog/taon-confirm-dialog.models.ts +8 -0
- package/ts-source/browser-code/taon-datatable/index.ts +8 -0
- package/ts-source/browser-code/taon-datatable/taon-datatable.component.html +169 -0
- package/ts-source/browser-code/taon-datatable/taon-datatable.component.scss +17 -0
- package/ts-source/browser-code/taon-datatable/taon-datatable.component.ts +333 -0
- package/ts-source/browser-code/taon-datatable/taon-datatable.models.ts +8 -0
- package/ts-source/browser-code/taon-datatable/taon-datatable.routes.ts +16 -0
- package/ts-source/browser-code/taon-draggable-button-panel/index.ts +8 -0
- package/ts-source/browser-code/taon-draggable-button-panel/taon-draggable-button-panel.component.html +116 -0
- package/ts-source/browser-code/taon-draggable-button-panel/taon-draggable-button-panel.component.scss +70 -0
- package/ts-source/browser-code/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +262 -0
- package/ts-source/browser-code/taon-draggable-button-panel/taon-draggable-button-panel.models.ts +14 -0
- package/ts-source/browser-code/taon-draggable-button-panel/taon-draggable-button-panel.routes.ts +16 -0
- package/ts-source/browser-code/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.ts +28 -0
- package/ts-source/browser-code/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.po +13 -0
- package/ts-source/browser-code/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.ts +28 -0
- package/ts-source/browser-code/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.po +13 -0
- package/ts-source/browser-code/taon-under-construction/i18n/taon-under-construction.translation.ts +12 -0
- package/ts-source/browser-code/taon-under-construction/taon-under-construction.component.html +22 -0
- package/ts-source/browser-code/taon-under-construction/taon-under-construction.component.scss +84 -0
- package/ts-source/browser-code/taon-under-construction/taon-under-construction.component.ts +26 -0
- package/ts-source/browser-code-prod/build-info._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/build-info._auto-generated_.ts +13 -0
- package/ts-source/browser-code-prod/directives/taon-horizontal-wheel-scrolling.directive.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/directives/taon-horizontal-wheel-scrolling.directive.ts +49 -0
- package/ts-source/browser-code-prod/i18n/lib.translation.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/i18n/lib.translation.ts +12 -0
- package/ts-source/browser-code-prod/i18n/my-organization-proj.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/browser-code-prod/i18n/my-organization-proj.ts.en-US.po +9 -0
- package/ts-source/browser-code-prod/i18n/my-organization-proj.ts.pl-PL.i18n.data.ts +24 -0
- package/ts-source/browser-code-prod/i18n/my-organization-proj.ts.pl-PL.po +9 -0
- package/ts-source/browser-code-prod/index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/index._auto-generated_.ts +33 -0
- package/ts-source/browser-code-prod/index.scss +6 -0
- package/ts-source/browser-code-prod/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/index.ts +11 -0
- package/ts-source/browser-code-prod/lib-info.md +8 -0
- package/ts-source/browser-code-prod/migrations/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/migrations/index.ts +8 -0
- package/ts-source/browser-code-prod/migrations/migrations-info.md +6 -0
- package/ts-source/browser-code-prod/migrations/migrations_index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/migrations/migrations_index._auto-generated_.ts +7 -0
- package/ts-source/browser-code-prod/my-organization-proj.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/my-organization-proj.ts +13 -0
- package/ts-source/browser-code-prod/start-cli.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/start-cli.ts +38 -0
- package/ts-source/browser-code-prod/taon-admin-layout/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-admin-layout/index.ts +8 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-layout.component.html +240 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-layout.component.scss +331 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-layout.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-layout.component.ts +398 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-layout.models.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-layout.models.ts +52 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-menu-context.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-menu-context.ts +31 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-page-tabs.component.html +34 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-page-tabs.component.scss +18 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-page-tabs.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-admin-page-tabs.component.ts +180 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-base-admin-page.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-admin-layout/taon-base-admin-page.component.ts +19 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.po +9 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.i18n.data.ts +23 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.po +9 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.translation.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.translation.ts +12 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/index.ts +11 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.html +8 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.scss +9 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.ts +53 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.models.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.models.ts +14 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.service.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.service.ts +44 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.html +44 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.scss +64 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.ts +81 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-error-toast.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-backoffice-notifications/taon-error-toast.component.ts +57 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.html +42 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.scss +9 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.ts +32 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.md +34 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.models.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-confirm-dialog/taon-confirm-dialog.models.ts +7 -0
- package/ts-source/browser-code-prod/taon-datatable/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-datatable/index.ts +8 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.component.html +169 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.component.scss +17 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.component.ts +333 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.models.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.models.ts +7 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.routes.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-datatable/taon-datatable.routes.ts +16 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/index.ts +8 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.html +116 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.scss +70 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +262 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.models.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.models.ts +13 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.routes.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.routes.ts +16 -0
- package/ts-source/browser-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.ts +28 -0
- package/ts-source/browser-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.po +13 -0
- package/ts-source/browser-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.ts +28 -0
- package/ts-source/browser-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.po +13 -0
- package/ts-source/browser-code-prod/taon-under-construction/i18n/taon-under-construction.translation.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-under-construction/i18n/taon-under-construction.translation.ts +12 -0
- package/ts-source/browser-code-prod/taon-under-construction/taon-under-construction.component.html +22 -0
- package/ts-source/browser-code-prod/taon-under-construction/taon-under-construction.component.scss +84 -0
- package/ts-source/browser-code-prod/taon-under-construction/taon-under-construction.component.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/taon-under-construction/taon-under-construction.component.ts +26 -0
- package/ts-source/websql-code/build-info._auto-generated_.ts +13 -0
- package/ts-source/websql-code/directives/taon-horizontal-wheel-scrolling.directive.ts +49 -0
- package/ts-source/websql-code/i18n/lib.translation.ts +12 -0
- package/ts-source/websql-code/i18n/my-organization-proj.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/websql-code/i18n/my-organization-proj.ts.en-US.po +9 -0
- package/ts-source/websql-code/i18n/my-organization-proj.ts.pl-PL.i18n.data.ts +24 -0
- package/ts-source/websql-code/i18n/my-organization-proj.ts.pl-PL.po +9 -0
- package/ts-source/websql-code/index._auto-generated_.ts +33 -0
- package/ts-source/websql-code/index.scss +6 -0
- package/ts-source/websql-code/index.ts +11 -0
- package/ts-source/websql-code/lib-info.md +8 -0
- package/ts-source/websql-code/migrations/index.ts +8 -0
- package/ts-source/websql-code/migrations/migrations-info.md +6 -0
- package/ts-source/websql-code/migrations/migrations_index._auto-generated_.ts +7 -0
- package/ts-source/websql-code/my-organization-proj.ts +13 -0
- package/ts-source/websql-code/start-cli.ts +38 -0
- package/ts-source/websql-code/taon-admin-layout/index.ts +8 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-layout.component.html +240 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-layout.component.scss +331 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-layout.component.ts +398 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-layout.models.ts +52 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-menu-context.ts +31 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-page-tabs.component.html +34 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-page-tabs.component.scss +18 -0
- package/ts-source/websql-code/taon-admin-layout/taon-admin-page-tabs.component.ts +180 -0
- package/ts-source/websql-code/taon-admin-layout/taon-base-admin-page.component.ts +19 -0
- package/ts-source/websql-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/websql-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.po +9 -0
- package/ts-source/websql-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.i18n.data.ts +23 -0
- package/ts-source/websql-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.po +9 -0
- package/ts-source/websql-code/taon-backoffice-notifications/i18n/taon-backoffice-notifications.translation.ts +12 -0
- package/ts-source/websql-code/taon-backoffice-notifications/index.ts +11 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-backoffice-notifications.component.html +8 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-backoffice-notifications.component.scss +9 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-backoffice-notifications.component.ts +53 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-backoffice-notifications.models.ts +14 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-backoffice-notifications.service.ts +44 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-error-details-dialog.component.html +44 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-error-details-dialog.component.scss +64 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-error-details-dialog.component.ts +81 -0
- package/ts-source/websql-code/taon-backoffice-notifications/taon-error-toast.component.ts +57 -0
- package/ts-source/websql-code/taon-confirm-dialog/taon-confirm-dialog.component.html +42 -0
- package/ts-source/websql-code/taon-confirm-dialog/taon-confirm-dialog.component.scss +9 -0
- package/ts-source/websql-code/taon-confirm-dialog/taon-confirm-dialog.component.ts +32 -0
- package/ts-source/websql-code/taon-confirm-dialog/taon-confirm-dialog.md +34 -0
- package/ts-source/websql-code/taon-confirm-dialog/taon-confirm-dialog.models.ts +8 -0
- package/ts-source/websql-code/taon-datatable/index.ts +8 -0
- package/ts-source/websql-code/taon-datatable/taon-datatable.component.html +169 -0
- package/ts-source/websql-code/taon-datatable/taon-datatable.component.scss +17 -0
- package/ts-source/websql-code/taon-datatable/taon-datatable.component.ts +333 -0
- package/ts-source/websql-code/taon-datatable/taon-datatable.models.ts +8 -0
- package/ts-source/websql-code/taon-datatable/taon-datatable.routes.ts +16 -0
- package/ts-source/websql-code/taon-draggable-button-panel/index.ts +8 -0
- package/ts-source/websql-code/taon-draggable-button-panel/taon-draggable-button-panel.component.html +116 -0
- package/ts-source/websql-code/taon-draggable-button-panel/taon-draggable-button-panel.component.scss +70 -0
- package/ts-source/websql-code/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +262 -0
- package/ts-source/websql-code/taon-draggable-button-panel/taon-draggable-button-panel.models.ts +14 -0
- package/ts-source/websql-code/taon-draggable-button-panel/taon-draggable-button-panel.routes.ts +16 -0
- package/ts-source/websql-code/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.ts +28 -0
- package/ts-source/websql-code/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.po +13 -0
- package/ts-source/websql-code/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.ts +28 -0
- package/ts-source/websql-code/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.po +13 -0
- package/ts-source/websql-code/taon-under-construction/i18n/taon-under-construction.translation.ts +12 -0
- package/ts-source/websql-code/taon-under-construction/taon-under-construction.component.html +22 -0
- package/ts-source/websql-code/taon-under-construction/taon-under-construction.component.scss +84 -0
- package/ts-source/websql-code/taon-under-construction/taon-under-construction.component.ts +26 -0
- package/ts-source/websql-code-prod/build-info._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/build-info._auto-generated_.ts +13 -0
- package/ts-source/websql-code-prod/directives/taon-horizontal-wheel-scrolling.directive.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/directives/taon-horizontal-wheel-scrolling.directive.ts +49 -0
- package/ts-source/websql-code-prod/i18n/lib.translation.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/i18n/lib.translation.ts +12 -0
- package/ts-source/websql-code-prod/i18n/my-organization-proj.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/websql-code-prod/i18n/my-organization-proj.ts.en-US.po +9 -0
- package/ts-source/websql-code-prod/i18n/my-organization-proj.ts.pl-PL.i18n.data.ts +24 -0
- package/ts-source/websql-code-prod/i18n/my-organization-proj.ts.pl-PL.po +9 -0
- package/ts-source/websql-code-prod/index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/index._auto-generated_.ts +33 -0
- package/ts-source/websql-code-prod/index.scss +6 -0
- package/ts-source/websql-code-prod/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/index.ts +11 -0
- package/ts-source/websql-code-prod/lib-info.md +8 -0
- package/ts-source/websql-code-prod/migrations/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/migrations/index.ts +8 -0
- package/ts-source/websql-code-prod/migrations/migrations-info.md +6 -0
- package/ts-source/websql-code-prod/migrations/migrations_index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/migrations/migrations_index._auto-generated_.ts +7 -0
- package/ts-source/websql-code-prod/my-organization-proj.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/my-organization-proj.ts +13 -0
- package/ts-source/websql-code-prod/start-cli.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/start-cli.ts +38 -0
- package/ts-source/websql-code-prod/taon-admin-layout/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-admin-layout/index.ts +8 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-layout.component.html +240 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-layout.component.scss +331 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-layout.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-layout.component.ts +398 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-layout.models.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-layout.models.ts +52 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-menu-context.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-menu-context.ts +31 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-page-tabs.component.html +34 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-page-tabs.component.scss +18 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-page-tabs.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-admin-page-tabs.component.ts +180 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-base-admin-page.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-admin-layout/taon-base-admin-page.component.ts +19 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.i18n.data.ts +23 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.en-US.po +9 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.i18n.data.ts +23 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.component.ts.pl-PL.po +9 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.translation.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/i18n/taon-backoffice-notifications.translation.ts +12 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/index.ts +11 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.html +8 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.scss +9 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.component.ts +53 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.models.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.models.ts +14 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.service.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-backoffice-notifications.service.ts +44 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.html +44 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.scss +64 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-error-details-dialog.component.ts +81 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-error-toast.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-backoffice-notifications/taon-error-toast.component.ts +57 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.html +42 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.scss +9 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.component.ts +32 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.md +34 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.models.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-confirm-dialog/taon-confirm-dialog.models.ts +7 -0
- package/ts-source/websql-code-prod/taon-datatable/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-datatable/index.ts +8 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.component.html +169 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.component.scss +17 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.component.ts +333 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.models.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.models.ts +7 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.routes.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-datatable/taon-datatable.routes.ts +16 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/index.ts +8 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.html +116 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.scss +70 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +262 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.models.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.models.ts +13 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.routes.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.routes.ts +16 -0
- package/ts-source/websql-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.i18n.data.ts +28 -0
- package/ts-source/websql-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.en-US.po +13 -0
- package/ts-source/websql-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.i18n.data.ts +28 -0
- package/ts-source/websql-code-prod/taon-under-construction/i18n/taon-under-construction.component.ts.pl-PL.po +13 -0
- package/ts-source/websql-code-prod/taon-under-construction/i18n/taon-under-construction.translation.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-under-construction/i18n/taon-under-construction.translation.ts +12 -0
- package/ts-source/websql-code-prod/taon-under-construction/taon-under-construction.component.html +22 -0
- package/ts-source/websql-code-prod/taon-under-construction/taon-under-construction.component.scss +84 -0
- package/ts-source/websql-code-prod/taon-under-construction/taon-under-construction.component.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/taon-under-construction/taon-under-construction.component.ts +26 -0
- package/websql/fesm2022/ui-websql-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs +19 -0
- package/websql/fesm2022/ui-websql-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs.map +1 -0
- package/websql/fesm2022/ui-websql-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs +19 -0
- package/websql/fesm2022/ui-websql-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs.map +1 -0
- package/websql/fesm2022/ui-websql.mjs +27 -8
- package/websql/fesm2022/ui-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/ui-websql.d.ts +32 -3
- package/websql-prod/fesm2022/ui-websql-prod-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs +19 -0
- package/websql-prod/fesm2022/ui-websql-prod-taon-under-construction.component.ts.en-US.i18n.data-CJznhYEs.mjs.map +1 -0
- package/websql-prod/fesm2022/ui-websql-prod-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs +19 -0
- package/websql-prod/fesm2022/ui-websql-prod-taon-under-construction.component.ts.pl-PL.i18n.data-5S7xoosG.mjs.map +1 -0
- package/websql-prod/fesm2022/ui-websql-prod.mjs +27 -8
- package/websql-prod/fesm2022/ui-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/ui-websql-prod.d.ts +32 -3
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
import { ChangeDetectionStrategy, Component, inject, Input, OnInit, signal, } from '@angular/core';
|
|
9
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
10
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
11
|
+
import { NavigationEnd, Route, Router, Routes } from '@angular/router';
|
|
12
|
+
import { filter } from 'rxjs';
|
|
13
|
+
import { TaonAdminRoute } from './taon-admin-layout.models';
|
|
14
|
+
import { TaonAdminMenuContext } from './taon-admin-menu-context';
|
|
15
|
+
export interface TaonAdminTabLevel {
|
|
16
|
+
level: number;
|
|
17
|
+
routes: Routes;
|
|
18
|
+
baseSegments: string[];
|
|
19
|
+
}
|
|
20
|
+
@Component({
|
|
21
|
+
selector: 'taon-admin-page-tabs',
|
|
22
|
+
standalone: true,
|
|
23
|
+
imports: [MatTabsModule, MatTooltipModule],
|
|
24
|
+
templateUrl: './taon-admin-page-tabs.component.html',
|
|
25
|
+
styleUrl: './taon-admin-page-tabs.component.scss',
|
|
26
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
})
|
|
28
|
+
export class TaonAdminPageTabsComponent implements OnInit {
|
|
29
|
+
protected readonly menuContext = inject(TaonAdminMenuContext, { optional: true }) ??
|
|
30
|
+
new TaonAdminMenuContext();
|
|
31
|
+
@Input({ required: true })
|
|
32
|
+
routes!: Routes;
|
|
33
|
+
@Input()
|
|
34
|
+
basePath = '';
|
|
35
|
+
@Input()
|
|
36
|
+
outlet?: string;
|
|
37
|
+
protected readonly levels = signal<TaonAdminTabLevel[]>([]);
|
|
38
|
+
constructor(private readonly router: Router) { }
|
|
39
|
+
async ngOnInit(): Promise<void> {
|
|
40
|
+
await this.refresh();
|
|
41
|
+
this.router.events
|
|
42
|
+
.pipe(filter(event => event instanceof NavigationEnd))
|
|
43
|
+
.subscribe(async () => {
|
|
44
|
+
await this.refresh();
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
protected label(route: Route): string {
|
|
48
|
+
return route.data?.['menuItem'] ?? this.startCase(route.path ?? '');
|
|
49
|
+
}
|
|
50
|
+
protected isActive(level: TaonAdminTabLevel, route: Route): boolean {
|
|
51
|
+
if (!route.path) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const expected = [...level.baseSegments, route.path];
|
|
55
|
+
const current = this.currentOutletSegments();
|
|
56
|
+
if (current.length < expected.length) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return expected.every((segment, index) => current[index] === segment);
|
|
60
|
+
}
|
|
61
|
+
protected async tabClicked(level: TaonAdminTabLevel, route: Route): Promise<void> {
|
|
62
|
+
if (!route.path ||
|
|
63
|
+
!this.menuContext.isVisible(route) ||
|
|
64
|
+
this.menuContext.isDisabled(route)) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
await this.navigateTo([
|
|
68
|
+
...level.baseSegments.slice(this.basePathSegments.length),
|
|
69
|
+
route.path,
|
|
70
|
+
]);
|
|
71
|
+
}
|
|
72
|
+
private outletBaseMatrixParams(): Record<string, string> {
|
|
73
|
+
if (!this.outlet) {
|
|
74
|
+
return {};
|
|
75
|
+
}
|
|
76
|
+
const tree = this.router.parseUrl(this.router.url);
|
|
77
|
+
const outletGroup = tree.root.children[this.outlet];
|
|
78
|
+
return {
|
|
79
|
+
...outletGroup?.segments[0]?.parameters,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
private async navigateTo(routeSegments: string[]): Promise<boolean> {
|
|
83
|
+
const segments = [...this.basePathSegments, ...routeSegments];
|
|
84
|
+
if (this.outlet) {
|
|
85
|
+
const [firstSegment, ...remainingSegments] = segments;
|
|
86
|
+
if (!firstSegment) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
const matrixParams = this.outletBaseMatrixParams();
|
|
90
|
+
return this.router.navigate([
|
|
91
|
+
{
|
|
92
|
+
outlets: {
|
|
93
|
+
[this.outlet]: [
|
|
94
|
+
firstSegment,
|
|
95
|
+
matrixParams,
|
|
96
|
+
...remainingSegments,
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
]);
|
|
101
|
+
}
|
|
102
|
+
return this.router.navigate(['/', ...segments]);
|
|
103
|
+
}
|
|
104
|
+
private async refresh(): Promise<void> {
|
|
105
|
+
const current = this.currentOutletSegments();
|
|
106
|
+
const base = this.basePathSegments;
|
|
107
|
+
const relative = current.slice(base.length);
|
|
108
|
+
const levels: TaonAdminTabLevel[] = [];
|
|
109
|
+
await this.walk(this.routes, relative, base, 1, levels);
|
|
110
|
+
this.levels.set(levels.filter(level => level.level >= 3));
|
|
111
|
+
}
|
|
112
|
+
private async walk(routes: Routes, remainingUrl: string[], baseSegments: string[], level: number, result: TaonAdminTabLevel[]): Promise<void> {
|
|
113
|
+
routes = this.unwrapEmptyPathRoutes(routes);
|
|
114
|
+
const visibleRoutes = this.navigationRoutes(routes);
|
|
115
|
+
if (level >= 3 && visibleRoutes.length > 0) {
|
|
116
|
+
result.push({
|
|
117
|
+
level,
|
|
118
|
+
routes: visibleRoutes,
|
|
119
|
+
baseSegments,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
const currentSegment = remainingUrl[0];
|
|
123
|
+
if (!currentSegment) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const activeRoute = routes.find(route => route.path === currentSegment);
|
|
127
|
+
if (!activeRoute) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
let children = await this.loadChildren(activeRoute);
|
|
131
|
+
children = this.unwrapEmptyPathRoutes(children);
|
|
132
|
+
if (!children.length) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
await this.walk(children, remainingUrl.slice(1), [...baseSegments, currentSegment], level + 1, result);
|
|
136
|
+
}
|
|
137
|
+
private async loadChildren(route: Route): Promise<Routes> {
|
|
138
|
+
if (route.children) {
|
|
139
|
+
return route.children;
|
|
140
|
+
}
|
|
141
|
+
const adminRoute = route as TaonAdminRoute;
|
|
142
|
+
if (adminRoute.loadAdminChildren) {
|
|
143
|
+
return await adminRoute.loadAdminChildren();
|
|
144
|
+
}
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
147
|
+
private unwrapEmptyPathRoutes(routes: Routes): Routes {
|
|
148
|
+
const result: Routes = [];
|
|
149
|
+
for (const route of routes) {
|
|
150
|
+
if (route.path === '' && route.children) {
|
|
151
|
+
result.push(...this.unwrapEmptyPathRoutes(route.children));
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
result.push(route);
|
|
155
|
+
}
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
private navigationRoutes(routes: Routes): Routes {
|
|
159
|
+
return routes.filter(route => !!route.path &&
|
|
160
|
+
route.redirectTo === undefined &&
|
|
161
|
+
!route.data?.['hideInNavigation']);
|
|
162
|
+
}
|
|
163
|
+
private currentOutletSegments(): string[] {
|
|
164
|
+
const tree = this.router.parseUrl(this.router.url);
|
|
165
|
+
const outletName = this.outlet || 'primary';
|
|
166
|
+
const group = tree.root.children[outletName];
|
|
167
|
+
if (!group) {
|
|
168
|
+
return [];
|
|
169
|
+
}
|
|
170
|
+
return group.segments.map(segment => segment.path);
|
|
171
|
+
}
|
|
172
|
+
private get basePathSegments(): string[] {
|
|
173
|
+
return this.basePath.split('/').filter(Boolean);
|
|
174
|
+
}
|
|
175
|
+
private startCase(value: string): string {
|
|
176
|
+
return value
|
|
177
|
+
.replace(/[-_]+/g, ' ')
|
|
178
|
+
.replace(/\b\w/g, char => char.toUpperCase());
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
import { Component, ViewChild } from '@angular/core';
|
|
9
|
+
import { RouterOutlet } from '@angular/router';
|
|
10
|
+
@Component({
|
|
11
|
+
template: '',
|
|
12
|
+
})
|
|
13
|
+
export abstract class TaonBaseAdminLayoutPage {
|
|
14
|
+
@ViewChild(RouterOutlet)
|
|
15
|
+
routerOutlet!: RouterOutlet;
|
|
16
|
+
get hasActiveChildRoute(): boolean {
|
|
17
|
+
return this.routerOutlet?.isActivated ?? false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
export interface EnUsTraslationOverrideSrcLibTaonBackofficeNotificationsTaonBackofficeNotificationsComponentTs {
|
|
9
|
+
"en-US": {
|
|
10
|
+
"": {
|
|
11
|
+
"Unknown error"?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default {
|
|
16
|
+
"fileRelativePath": "src/lib/taon-backoffice-notifications/taon-backoffice-notifications.component.ts",
|
|
17
|
+
"tags": [
|
|
18
|
+
{
|
|
19
|
+
"gettextString": "Unknown error",
|
|
20
|
+
"lineNumber": 64
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
export interface PlPlTraslationOverrideSrcLibTaonBackofficeNotificationsTaonBackofficeNotificationsComponentTs {
|
|
9
|
+
"pl-PL": {
|
|
10
|
+
"": {
|
|
11
|
+
"Unknown error"?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default {
|
|
16
|
+
"fileRelativePath": "src/lib/taon-backoffice-notifications/taon-backoffice-notifications.component.ts",
|
|
17
|
+
"tags": [
|
|
18
|
+
{
|
|
19
|
+
"gettextString": "Unknown error",
|
|
20
|
+
"lineNumber": 64
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
import { CoreModels__NS__BaseProjectType, CoreModels__NS__BaseProjectTypeArr, CoreModels__NS__BuildType, CoreModels__NS__BuildTypeArr, CoreModels__NS__buildTypeToWatcherFn, CoreModels__NS__BuildWatcherErrorType, CoreModels__NS__BuildWatcherType, CoreModels__NS__BuildWatcherTypeArr, CoreModels__NS__CfontAlign, CoreModels__NS__CfontStyle, CoreModels__NS__ClassNameStaticProperty, CoreModels__NS__ContentType, CoreModels__NS__ContentTypeKeys, CoreModels__NS__CoreLibCategory, CoreModels__NS__CutableFileExt, CoreModels__NS__DatabaseType, CoreModels__NS__DeepPartial, CoreModels__NS__FileEvent, CoreModels__NS__FileExtension, CoreModels__NS__FirstParamsFrom, CoreModels__NS__FrameworkVersion, CoreModels__NS__GitConnection, CoreModels__NS__GitConnectionArr, CoreModels__NS__GlobalDependencies, CoreModels__NS__hasExitCleaningFunction, CoreModels__NS__HttpCode, CoreModels__NS__HttpMethod, CoreModels__NS__HttpMethodArr, CoreModels__NS__ImageFileExtension, CoreModels__NS__ImageFileExtensionArr, CoreModels__NS__InstalationType, CoreModels__NS__InstalationTypeArr, CoreModels__NS__LibType, CoreModels__NS__localhostDomain, CoreModels__NS__localhostIp127, CoreModels__NS__ManifestIcon, CoreModels__NS__MediaType, CoreModels__NS__MediaTypeAllArr, CoreModels__NS__mimeTypes, CoreModels__NS__NewFactoryType, CoreModels__NS__NpmInstallOptions, CoreModels__NS__NpmPublishOptions, CoreModels__NS__NpmSpecialVersions, CoreModels__NS__OrignalClassKey, CoreModels__NS__OutFolder, CoreModels__NS__Package, CoreModels__NS__ParamType, CoreModels__NS__parentLocation, CoreModels__NS__pathToChildren, CoreModels__NS__Position, CoreModels__NS__PreReleaseVersionTag, CoreModels__NS__PROGRESS_DATA_TYPE, CoreModels__NS__PUSHTYPE, CoreModels__NS__PwaManifest, CoreModels__NS__ReleaseVersionType, CoreModels__NS__ReleaseVersionTypeEnum, CoreModels__NS__RunOptions, CoreModels__NS__Size, CoreModels__NS__SPECIAL_APP_READY_MESSAGE, CoreModels__NS__SPECIAL_WORKER_READY_MESSAGE, CoreModels__NS__StatusCode401, CoreModels__NS__tagForTaskName, CoreModels__NS__TaonHttpErrorCustomProp, CoreModels__NS__TsUsage, CoreModels__NS__UIFramework, CoreModels__NS__ValueOf, CoreModels__NS__VSCodeSettings } from 'tnp-core/websql-prod';
|
|
9
|
+
import { EnUsTraslationOverrideSrcLibTaonBackofficeNotificationsTaonBackofficeNotificationsComponentTs } from './taon-backoffice-notifications.component.ts.en-US.i18n.data';
|
|
10
|
+
import { PlPlTraslationOverrideSrcLibTaonBackofficeNotificationsTaonBackofficeNotificationsComponentTs } from './taon-backoffice-notifications.component.ts.pl-PL.i18n.data';
|
|
11
|
+
;
|
|
12
|
+
export type TaonBackofficeNotificationsOverride = CoreModels__NS__DeepPartial<EnUsTraslationOverrideSrcLibTaonBackofficeNotificationsTaonBackofficeNotificationsComponentTs | PlPlTraslationOverrideSrcLibTaonBackofficeNotificationsTaonBackofficeNotificationsComponentTs>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
export * from './taon-backoffice-notifications.component';
|
|
9
|
+
export * from './taon-backoffice-notifications.models';
|
|
10
|
+
export * from './taon-backoffice-notifications.module';
|
|
11
|
+
export * from './taon-backoffice-notifications.service';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* TAON READONLY SOURCE
|
|
3
|
+
* DO NOT MODIFY THIS FILE.
|
|
4
|
+
* Changes may be overwritten.
|
|
5
|
+
* ========================================================================== */
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
import { Component, DestroyRef, inject, Input } from '@angular/core';
|
|
9
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
10
|
+
import { Translation } from '@taon-dev/i18n/websql-prod';
|
|
11
|
+
import { HttpResponseError, RestErrorResponseWrapper, Resource__NS__Cookies, Resource__NS__create, Resource__NS__globalInterceptors, Resource__NS__listenErrors, Resource__NS__methodsInterceptors } from 'ng2-rest/websql-prod';
|
|
12
|
+
import { getHttpStatus, TaonAdminService, Taon__NS____FILE_RELATIVE_PATH, Taon__NS__asset, Taon__NS__assetsFrom, Taon__NS__assetsListFrom, Taon__NS__createContext, Taon__NS__createContextTemplate, Taon__NS__error, Taon__NS__getResponseValue, Taon__NS__isBrowser, Taon__NS__isElectron, Taon__NS__isNode, Taon__NS__isWebSQL, Taon__NS__LANG_IMPORT_MAP, Taon__NS__removeLoader, Taon__NS__Response, Taon__NS__ResponseHtml, Taon__NS__StartParams } from 'taon/websql-prod';
|
|
13
|
+
import { ___NS__add, ___NS__after, ___NS__ary, ___NS__assign, ___NS__assignIn, ___NS__assignInWith, ___NS__assignWith, ___NS__at, ___NS__attempt, ___NS__before, ___NS__bind, ___NS__bindAll, ___NS__bindKey, ___NS__camelCase, ___NS__capitalize, ___NS__castArray, ___NS__ceil, ___NS__chain, ___NS__chunk, ___NS__clamp, ___NS__clone, ___NS__cloneDeep, ___NS__cloneDeepWith, ___NS__cloneWith, ___NS__compact, ___NS__concat, ___NS__cond, ___NS__conforms, ___NS__conformsTo, ___NS__constant, ___NS__countBy, ___NS__create, ___NS__curry, ___NS__curryRight, ___NS__debounce, ___NS__deburr, ___NS__defaults, ___NS__defaultsDeep, ___NS__defaultTo, ___NS__defer, ___NS__delay, ___NS__difference, ___NS__differenceBy, ___NS__differenceWith, ___NS__divide, ___NS__drop, ___NS__dropRight, ___NS__dropRightWhile, ___NS__dropWhile, ___NS__each, ___NS__eachRight, ___NS__endsWith, ___NS__entries, ___NS__entriesIn, ___NS__eq, ___NS__escape, ___NS__escapeRegExp, ___NS__every, ___NS__extend, ___NS__extendWith, ___NS__fill, ___NS__filter, ___NS__find, ___NS__findIndex, ___NS__findKey, ___NS__findLast, ___NS__findLastIndex, ___NS__findLastKey, ___NS__first, ___NS__flatMap, ___NS__flatMapDeep, ___NS__flatMapDepth, ___NS__flatten, ___NS__flattenDeep, ___NS__flattenDepth, ___NS__flip, ___NS__floor, ___NS__flow, ___NS__flowRight, ___NS__forEach, ___NS__forEachRight, ___NS__forIn, ___NS__forInRight, ___NS__forOwn, ___NS__forOwnRight, ___NS__fromPairs, ___NS__functions, ___NS__functionsIn, ___NS__get, ___NS__groupBy, ___NS__gt, ___NS__gte, ___NS__has, ___NS__hasIn, ___NS__head, ___NS__identity, ___NS__includes, ___NS__indexOf, ___NS__initial, ___NS__inRange, ___NS__intersection, ___NS__intersectionBy, ___NS__intersectionWith, ___NS__invert, ___NS__invertBy, ___NS__invoke, ___NS__invokeMap, ___NS__isArguments, ___NS__isArray, ___NS__isArrayBuffer, ___NS__isArrayLike, ___NS__isArrayLikeObject, ___NS__isBoolean, ___NS__isBuffer, ___NS__isDate, ___NS__isElement, ___NS__isEmpty, ___NS__isEqual, ___NS__isEqualWith, ___NS__isError, ___NS__isFinite, ___NS__isFunction, ___NS__isInteger, ___NS__isLeafObject, ___NS__isLength, ___NS__isMap, ___NS__isMatch, ___NS__isMatchWith, ___NS__isNaN, ___NS__isNative, ___NS__isNil, ___NS__isNull, ___NS__isNumber, ___NS__isObject, ___NS__isObjectLike, ___NS__isPlainObject, ___NS__isRegExp, ___NS__isSafeInteger, ___NS__isSet, ___NS__isString, ___NS__isSymbol, ___NS__isTypedArray, ___NS__isUndefined, ___NS__isWeakMap, ___NS__isWeakSet, ___NS__iteratee, ___NS__join, ___NS__kebabCase, ___NS__keyBy, ___NS__keys, ___NS__keysIn, ___NS__last, ___NS__lastIndexOf, ___NS__lowerCase, ___NS__lowerFirst, ___NS__lt, ___NS__lte, ___NS__map, ___NS__mapKeys, ___NS__mapValues, ___NS__matches, ___NS__matchesProperty, ___NS__max, ___NS__maxBy, ___NS__mean, ___NS__meanBy, ___NS__memoize, ___NS__merge, ___NS__mergeWith, ___NS__method, ___NS__methodOf, ___NS__min, ___NS__minBy, ___NS__mixin, ___NS__multiply, ___NS__negate, ___NS__noop, ___NS__now, ___NS__nth, ___NS__nthArg, ___NS__omit, ___NS__omitBy, ___NS__once, ___NS__orderBy, ___NS__over, ___NS__overArgs, ___NS__overEvery, ___NS__overSome, ___NS__pad, ___NS__padEnd, ___NS__padStart, ___NS__parseInt, ___NS__partial, ___NS__partialRight, ___NS__partition, ___NS__pick, ___NS__pickBy, ___NS__property, ___NS__propertyOf, ___NS__pull, ___NS__pullAll, ___NS__pullAllBy, ___NS__pullAllWith, ___NS__pullAt, ___NS__random, ___NS__range, ___NS__rangeRight, ___NS__rearg, ___NS__reduce, ___NS__reduceRight, ___NS__reject, ___NS__remove, ___NS__repeat, ___NS__replace, ___NS__rest, ___NS__result, ___NS__reverse, ___NS__round, ___NS__sample, ___NS__sampleSize, ___NS__set, ___NS__setWith, ___NS__shuffle, ___NS__size, ___NS__slice, ___NS__snakeCase, ___NS__some, ___NS__sortBy, ___NS__sortedIndex, ___NS__sortedIndexBy, ___NS__sortedIndexOf, ___NS__sortedLastIndex, ___NS__sortedLastIndexBy, ___NS__sortedLastIndexOf, ___NS__sortedUniq, ___NS__sortedUniqBy, ___NS__split, ___NS__spread, ___NS__startCase, ___NS__startsWith, ___NS__stubArray, ___NS__stubFalse, ___NS__stubObject, ___NS__stubString, ___NS__stubTrue, ___NS__subtract, ___NS__sum, ___NS__sumBy, ___NS__tail, ___NS__take, ___NS__takeRight, ___NS__takeRightWhile, ___NS__takeWhile, ___NS__tap, ___NS__template, ___NS__templateSettings, ___NS__throttle, ___NS__thru, ___NS__times, ___NS__toArray, ___NS__toFinite, ___NS__toInteger, ___NS__toLength, ___NS__toLower, ___NS__toNumber, ___NS__toPairs, ___NS__toPairsIn, ___NS__toPath, ___NS__toPlainObject, ___NS__toSafeInteger, ___NS__toString, ___NS__toUpper, ___NS__transform, ___NS__trim, ___NS__trimEnd, ___NS__trimStart, ___NS__truncate, ___NS__unary, ___NS__unescape, ___NS__union, ___NS__unionBy, ___NS__unionWith, ___NS__uniq, ___NS__uniqBy, ___NS__uniqueId, ___NS__uniqWith, ___NS__unset, ___NS__unzip, ___NS__unzipWith, ___NS__update, ___NS__updateWith, ___NS__upperCase, ___NS__upperFirst, ___NS__values, ___NS__valuesIn, ___NS__without, ___NS__words, ___NS__wrap, ___NS__xor, ___NS__xorBy, ___NS__xorWith, ___NS__zip, ___NS__zipObject, ___NS__zipObjectDeep, ___NS__zipWith } from 'tnp-core/websql-prod';
|
|
14
|
+
import { TaonBackofficeNotificationsService } from './taon-backoffice-notifications.service';
|
|
15
|
+
const t = Translation.for('src/lib/taon-backoffice-notifications/taon-backoffice-notifications.component.ts', { "src/lib/taon-backoffice-notifications/taon-backoffice-notifications.component.ts": { "en-US": async () => (await import('./i18n/taon-backoffice-notifications.component.ts.en-US.i18n.data')).default, "pl-PL": async () => (await import('./i18n/taon-backoffice-notifications.component.ts.pl-PL.i18n.data')).default } } as any);
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'taon-backoffice-notifications',
|
|
18
|
+
standalone: true,
|
|
19
|
+
templateUrl: './taon-backoffice-notifications.component.html',
|
|
20
|
+
styleUrls: ['./taon-backoffice-notifications.component.scss'],
|
|
21
|
+
})
|
|
22
|
+
export class TaonBackofficeNotificationsComponent {
|
|
23
|
+
t = t.for(this);
|
|
24
|
+
private readonly notification = inject(TaonBackofficeNotificationsService);
|
|
25
|
+
private readonly destroyRef = inject(DestroyRef);
|
|
26
|
+
private readonly taonAdminService = inject(TaonAdminService);
|
|
27
|
+
@Input()
|
|
28
|
+
filter: (err: HttpResponseError<RestErrorResponseWrapper>) => HttpResponseError<RestErrorResponseWrapper>;
|
|
29
|
+
constructor() {
|
|
30
|
+
Resource__NS__listenErrors
|
|
31
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
32
|
+
.subscribe((error: HttpResponseError<RestErrorResponseWrapper>) => {
|
|
33
|
+
if (___NS__isFunction(this.filter)) {
|
|
34
|
+
error = this.filter(error);
|
|
35
|
+
}
|
|
36
|
+
const jsonMsg = error?.body?.json;
|
|
37
|
+
if (!jsonMsg?.message) {
|
|
38
|
+
console.log({ error });
|
|
39
|
+
}
|
|
40
|
+
const statusCode = jsonMsg.status ?? error.statusCode;
|
|
41
|
+
const code = jsonMsg?.code || getHttpStatus(statusCode);
|
|
42
|
+
if (this.taonAdminService.shouldSkipShowingError(code as any)) {
|
|
43
|
+
console.log(`[@taon-dev/sudo] Skipping notificaiton for message "${jsonMsg.message}" (code=${statusCode})`);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.notification.error({
|
|
47
|
+
title: t.translate(jsonMsg.message) || t.gettext('Unknown error'),
|
|
48
|
+
details: jsonMsg?.details,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
export interface TaonNotificationOptions {
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
details?: string;
|
|
12
|
+
}
|
|
13
|
+
export type TaonNotificationType = 'success' | 'error' | 'warning' | 'info';
|
|
14
|
+
export type TaonNotificationInput = TaonNotificationOptions | string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* TAON READONLY SOURCE
|
|
4
|
+
* DO NOT MODIFY THIS FILE.
|
|
5
|
+
* Changes may be overwritten.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
import { inject, Injectable } from '@angular/core';
|
|
9
|
+
import { HotToastService } from '@ngneat/hot-toast';
|
|
10
|
+
import { TaonNotificationInput, TaonNotificationOptions, } from './taon-backoffice-notifications.models';
|
|
11
|
+
import { TaonErrorToastComponent, TaonErrorToastData, } from './taon-error-toast.component';
|
|
12
|
+
@Injectable({
|
|
13
|
+
providedIn: 'root',
|
|
14
|
+
})
|
|
15
|
+
export class TaonBackofficeNotificationsService {
|
|
16
|
+
private readonly toast = inject(HotToastService);
|
|
17
|
+
private normalize(input: TaonNotificationInput): TaonNotificationOptions {
|
|
18
|
+
return typeof input === 'string' ? { title: input } : input;
|
|
19
|
+
}
|
|
20
|
+
success(input: TaonNotificationInput) {
|
|
21
|
+
const { title } = this.normalize(input);
|
|
22
|
+
return this.toast.success(title);
|
|
23
|
+
}
|
|
24
|
+
error(input: TaonNotificationInput) {
|
|
25
|
+
const { title, details } = this.normalize(input);
|
|
26
|
+
if (!details) {
|
|
27
|
+
return this.toast.error(title);
|
|
28
|
+
}
|
|
29
|
+
return this.toast.error<TaonErrorToastData>(TaonErrorToastComponent, {
|
|
30
|
+
data: {
|
|
31
|
+
title,
|
|
32
|
+
details,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
warn(input: TaonNotificationInput) {
|
|
37
|
+
const { title } = this.normalize(input);
|
|
38
|
+
return this.toast.warning(title);
|
|
39
|
+
}
|
|
40
|
+
info(input: TaonNotificationInput) {
|
|
41
|
+
const { title } = this.normalize(input);
|
|
42
|
+
return this.toast.info(title);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
==============================================================================
|
|
3
|
+
TAON READONLY SOURCE
|
|
4
|
+
DO NOT MODIFY THIS FILE.
|
|
5
|
+
Changes may be overwritten.
|
|
6
|
+
==============================================================================
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<h2 mat-dialog-title>Error details</h2>
|
|
10
|
+
|
|
11
|
+
<mat-dialog-content>
|
|
12
|
+
<div class="error-message">
|
|
13
|
+
{{ data.message }}
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="editor-selector">
|
|
17
|
+
<span class="editor-selector-label"> I am using editor: </span>
|
|
18
|
+
|
|
19
|
+
<mat-button-toggle-group
|
|
20
|
+
[value]="editor"
|
|
21
|
+
(change)="setEditor($event.value)"
|
|
22
|
+
aria-label="Code editor">
|
|
23
|
+
<mat-button-toggle value="vscode"> VS Code </mat-button-toggle>
|
|
24
|
+
|
|
25
|
+
<mat-button-toggle value="vscodium"> VSCodium </mat-button-toggle>
|
|
26
|
+
</mat-button-toggle-group>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<pre
|
|
30
|
+
class="error-details"><code>@for (stackLine of stackLines; track $index) {
|
|
31
|
+
@if (stackLine.file) {<a
|
|
32
|
+
class="stack-link"
|
|
33
|
+
title="Open {{ stackLine.file }}:{{ stackLine.line }}:{{ stackLine.column }}"
|
|
34
|
+
(click)="openStackLine(stackLine)">{{ stackLine.text }}</a>} @else {{{ stackLine.text }}}{{ '\n' }}
|
|
35
|
+
}</code></pre>
|
|
36
|
+
</mat-dialog-content>
|
|
37
|
+
|
|
38
|
+
<mat-dialog-actions align="end">
|
|
39
|
+
<button
|
|
40
|
+
mat-button
|
|
41
|
+
mat-dialog-close>
|
|
42
|
+
Close
|
|
43
|
+
</button>
|
|
44
|
+
</mat-dialog-actions>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* TAON READONLY SOURCE
|
|
3
|
+
* DO NOT MODIFY THIS FILE.
|
|
4
|
+
* Changes may be overwritten.
|
|
5
|
+
* ========================================================================== */
|
|
6
|
+
|
|
7
|
+
.error-message {
|
|
8
|
+
margin-bottom: 16px;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.editor-selector {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 12px;
|
|
16
|
+
|
|
17
|
+
margin-bottom: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.editor-selector-label {
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
.error-details {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
max-width: 100%;
|
|
28
|
+
max-height: 60vh;
|
|
29
|
+
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 16px;
|
|
32
|
+
|
|
33
|
+
overflow-y: auto;
|
|
34
|
+
overflow-x: hidden;
|
|
35
|
+
|
|
36
|
+
border-radius: 6px;
|
|
37
|
+
|
|
38
|
+
background: rgba(0, 0, 0, 0.06);
|
|
39
|
+
|
|
40
|
+
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
41
|
+
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
line-height: 1.5;
|
|
44
|
+
|
|
45
|
+
white-space: pre-wrap;
|
|
46
|
+
overflow-wrap: anywhere;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.stack-link {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
text-decoration: underline;
|
|
52
|
+
text-decoration-style: dotted;
|
|
53
|
+
text-underline-offset: 2px;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background: rgba(0, 0, 0, 0.08);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.stack-line {
|
|
61
|
+
white-space: pre-wrap;
|
|
62
|
+
overflow-wrap: anywhere;
|
|
63
|
+
word-break: break-word;
|
|
64
|
+
}
|