tango-app-ui-store-builder 1.2.17 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/esm2022/lib/components/access-denied/access-denied.component.mjs +31 -0
  2. package/esm2022/lib/components/collection-update-ai/collection-update-ai.component.mjs +3 -3
  3. package/esm2022/lib/components/collection-update-ai/find-replace-layout/prepare-template/prepare-template.component.mjs +3 -3
  4. package/esm2022/lib/components/collection-update-ai/find-replace-layout/review-replace/review-replace.component.mjs +3 -3
  5. package/esm2022/lib/components/fixture-template/template-assign-stores/preview-modal/preview-modal.component.mjs +3 -3
  6. package/esm2022/lib/components/fixture-template/template-assign-stores/template-assign-stores.component.mjs +3 -3
  7. package/esm2022/lib/components/fixture-template-table/find-and-replace/find-and-replace.component.mjs +3 -3
  8. package/esm2022/lib/components/fixture-template-table/fixture-template-table.component.mjs +25 -3
  9. package/esm2022/lib/components/fixture-template-tree/fixture-template-tree.component.mjs +3 -3
  10. package/esm2022/lib/components/manage-store-plano/manage-store-plano.component.mjs +3 -3
  11. package/esm2022/lib/components/manage-store-plano/plano-rollout/plano-rollout.component.mjs +3 -3
  12. package/esm2022/lib/components/manage-store-plano/verification-feedback/verification-feedback.component.mjs +9 -3
  13. package/esm2022/lib/components/manage-store-plano/zone-verification-feedback/zone-verification-feedback.component.mjs +9 -3
  14. package/esm2022/lib/components/onboard-store-plano/onboard-store-plano.component.mjs +133 -21
  15. package/esm2022/lib/components/plano-configurations/plano-configurations.component.mjs +8 -3
  16. package/esm2022/lib/components/plano-library/fixture-library/fixture-library.component.mjs +28 -5
  17. package/esm2022/lib/components/plano-tools/cad-render/cad-render.component.mjs +3 -3
  18. package/esm2022/lib/components/plano-tools/delete-floor/delete-floor.component.mjs +3 -3
  19. package/esm2022/lib/components/plano-tools/layout-touchup/layout-touchup.component.mjs +3 -3
  20. package/esm2022/lib/components/plano-tools/plano-migrate/plano-migrate.component.mjs +3 -3
  21. package/esm2022/lib/components/plano-tools/tool-page-header/tool-page-header.component.mjs +3 -3
  22. package/esm2022/lib/components/plano-tools/tools-parent/tools-parent.component.mjs +3 -3
  23. package/esm2022/lib/components/planogram/merch-compliance/merch-compliance.component.mjs +3 -3
  24. package/esm2022/lib/components/planogram/merch-compliance/product-locator/product-locator.component.mjs +3 -3
  25. package/esm2022/lib/components/planogram/plano-overview/plano-comparison/plano-comparison.component.mjs +3 -3
  26. package/esm2022/lib/components/planogram/plano-overview/plano-overview.component.mjs +3 -3
  27. package/esm2022/lib/components/popups/publish-plano-modal/publish-plano-modal.component.mjs +1 -1
  28. package/esm2022/lib/components/store-plano/store-plano-tree-view/store-plano-tree-view.component.mjs +3 -3
  29. package/esm2022/lib/components/store-plano/store-plano.component.mjs +3 -3
  30. package/esm2022/lib/functions/feature-access.guard.mjs +20 -0
  31. package/esm2022/lib/functions/plano.function.mjs +22 -1
  32. package/esm2022/lib/services/store-builder.service.mjs +15 -3
  33. package/esm2022/lib/tango-store-builder-routing.module.mjs +11 -1
  34. package/esm2022/lib/tango-store-builder.module.mjs +5 -2
  35. package/fesm2022/tango-app-ui-store-builder.mjs +318 -61
  36. package/fesm2022/tango-app-ui-store-builder.mjs.map +1 -1
  37. package/lib/components/access-denied/access-denied.component.d.ts +18 -0
  38. package/lib/components/fixture-template-table/fixture-template-table.component.d.ts +6 -0
  39. package/lib/components/manage-plano/rollout-table/rollout-table.component.d.ts +2 -2
  40. package/lib/components/manage-plano/verification-table/verification-table.component.d.ts +5 -5
  41. package/lib/components/manage-store-plano/verification-feedback/verification-feedback.component.d.ts +1 -0
  42. package/lib/components/manage-store-plano/zone-verification-feedback/zone-verification-feedback.component.d.ts +1 -0
  43. package/lib/components/onboard-store-plano/onboard-store-plano.component.d.ts +8 -0
  44. package/lib/components/plano-library/fixture-library/fixture-library.component.d.ts +5 -1
  45. package/lib/functions/feature-access.guard.d.ts +9 -0
  46. package/lib/functions/plano.function.d.ts +9 -0
  47. package/lib/services/store-builder.service.d.ts +6 -0
  48. package/lib/tango-store-builder.module.d.ts +38 -37
  49. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/router";
4
+ /**
5
+ * Shared "Access denied" panel for the email-gated features. Reused two ways:
6
+ * - Inline, with [feature] bound (e.g. inside the Find & Replace tab).
7
+ * - As a route component (the findReplaceAccessGuard redirect target), reading
8
+ * the feature name from the `feature` query param.
9
+ * Mirrors the access-denied markup used by the Looks page.
10
+ */
11
+ export class AccessDeniedComponent {
12
+ route;
13
+ feature = '';
14
+ constructor(route) {
15
+ this.route = route;
16
+ }
17
+ ngOnInit() {
18
+ if (!this.feature) {
19
+ this.feature = this.route.snapshot.queryParamMap.get('feature') || 'this feature';
20
+ }
21
+ }
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AccessDeniedComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AccessDeniedComponent, selector: "lib-access-denied", inputs: { feature: "feature" }, ngImport: i0, template: "<section class=\"access-denied-wrapper\">\r\n <div class=\"row mx-0 my-5\">\r\n <div class=\"card p-5 col-md-12\">\r\n <div class=\"access-denied text-center py-10\">\r\n <div class=\"access-denied-icon mb-4\">\r\n <i class=\"bi bi-shield-lock\"></i>\r\n </div>\r\n <h3 class=\"mb-2\">Access denied</h3>\r\n <p class=\"text-muted mb-0\">\r\n You don't have permission to access {{ feature }}. Contact your\r\n administrator to be added to the allowed users list.\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n", styles: [".access-denied-wrapper .access-denied .access-denied-icon i{font-size:48px;color:#ef4444;line-height:1}\n"] });
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AccessDeniedComponent, decorators: [{
26
+ type: Component,
27
+ args: [{ selector: 'lib-access-denied', template: "<section class=\"access-denied-wrapper\">\r\n <div class=\"row mx-0 my-5\">\r\n <div class=\"card p-5 col-md-12\">\r\n <div class=\"access-denied text-center py-10\">\r\n <div class=\"access-denied-icon mb-4\">\r\n <i class=\"bi bi-shield-lock\"></i>\r\n </div>\r\n <h3 class=\"mb-2\">Access denied</h3>\r\n <p class=\"text-muted mb-0\">\r\n You don't have permission to access {{ feature }}. Contact your\r\n administrator to be added to the allowed users list.\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n", styles: [".access-denied-wrapper .access-denied .access-denied-icon i{font-size:48px;color:#ef4444;line-height:1}\n"] }]
28
+ }], ctorParameters: () => [{ type: i1.ActivatedRoute }], propDecorators: { feature: [{
29
+ type: Input
30
+ }] } });
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjZXNzLWRlbmllZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90YW5nby1zdG9yZS1idWlsZGVyL3NyYy9saWIvY29tcG9uZW50cy9hY2Nlc3MtZGVuaWVkL2FjY2Vzcy1kZW5pZWQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdGFuZ28tc3RvcmUtYnVpbGRlci9zcmMvbGliL2NvbXBvbmVudHMvYWNjZXNzLWRlbmllZC9hY2Nlc3MtZGVuaWVkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDOzs7QUFHekQ7Ozs7OztHQU1HO0FBTUgsTUFBTSxPQUFPLHFCQUFxQjtJQUdaO0lBRlgsT0FBTyxHQUFHLEVBQUUsQ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