cloud-ide-layout 1.0.44 → 1.0.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.
Files changed (15) hide show
  1. package/fesm2022/{cloud-ide-layout-cloud-ide-layout-DkJCqrlp.mjs → cloud-ide-layout-cloud-ide-layout-Dp5qc3C5.mjs} +18 -13
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-Dp5qc3C5.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BDULJLAW.mjs → cloud-ide-layout-drawer-theme.component-BkX1xh6A.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BDULJLAW.mjs.map → cloud-ide-layout-drawer-theme.component-BkX1xh6A.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-yajHQLu2.mjs → cloud-ide-layout-floating-entity-selection.component-BwrKdQB4.mjs} +3 -5
  6. package/fesm2022/cloud-ide-layout-floating-entity-selection.component-BwrKdQB4.mjs.map +1 -0
  7. package/fesm2022/{cloud-ide-layout-home-wrapper.component-CetsHnKT.mjs → cloud-ide-layout-home-wrapper.component-DE5lpCxu.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-home-wrapper.component-CetsHnKT.mjs.map → cloud-ide-layout-home-wrapper.component-DE5lpCxu.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CutP-7dJ.mjs → cloud-ide-layout-sidedrawer-notes.component-CDIHnAIJ.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CutP-7dJ.mjs.map → cloud-ide-layout-sidedrawer-notes.component-CDIHnAIJ.mjs.map} +1 -1
  11. package/fesm2022/cloud-ide-layout.mjs +1 -1
  12. package/index.d.ts +6 -1
  13. package/package.json +1 -1
  14. package/fesm2022/cloud-ide-layout-cloud-ide-layout-DkJCqrlp.mjs.map +0 -1
  15. package/fesm2022/cloud-ide-layout-floating-entity-selection.component-yajHQLu2.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloud-ide-layout-floating-entity-selection.component-yajHQLu2.mjs","sources":["../../../projects/cloud-ide-layout/src/lib/components/floating-entity-selection/floating-entity-selection.component.ts"],"sourcesContent":["import { Component, OnInit, inject, signal, computed, ChangeDetectionStrategy, input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CideEleButtonComponent } from 'cloud-ide-element';\nimport { CideIconComponent } from 'cloud-ide-element';\nimport { CideSpinnerComponent } from 'cloud-ide-element';\nimport { CideEleFileImageDirective } from 'cloud-ide-element';\nimport { AppStateService } from '../../services/app-state/app-state.service';\nimport { CideEleFloatingContainerService } from 'cloud-ide-element';\nimport { CideSharedOrgStructureComponent } from 'cloud-ide-shared';\nimport { CoreSystemEntityListResponse } from 'cloud-ide-lms-model';\n\n@Component({\n selector: 'cide-lyt-floating-entity-selection',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n CideEleButtonComponent,\n CideIconComponent,\n CideSpinnerComponent,\n CideEleFileImageDirective,\n CideSharedOrgStructureComponent\n ],\n template: `\n <!-- Entity Selection Content using Org Structure Component -->\n <div class=\"tw-flex tw-flex-col tw-h-full\">\n <!-- Header -->\n <div class=\"tw-bg-white tw-border-b tw-border-gray-200 tw-px-4 tw-py-3 tw-flex-shrink-0\">\n <div class=\"tw-flex tw-items-center tw-justify-between\">\n <div class=\"tw-flex tw-items-center tw-space-x-2\">\n <cide-ele-icon class=\"tw-text-blue-600\">account_tree</cide-ele-icon>\n <h3 class=\"tw-text-sm tw-font-semibold tw-text-gray-900\">Entity Structure</h3>\n </div>\n @if (mode() === 'selection') {\n <button cideEleButton variant=\"secondary\" size=\"xs\" type=\"button\" (click)=\"onCancel()\">\n Cancel\n </button>\n }\n </div>\n </div>\n \n <!-- Org Structure Component -->\n <div class=\"tw-flex-1 tw-overflow-hidden\">\n <cide-shared-org-structure\n [allowSwitching]=\"allowSwitching()\"\n [showActions]=\"showActions()\"\n [mode]=\"mode()\"\n (entityClick)=\"onEntityClick($event)\"\n (entitySelect)=\"onEntitySelect($event)\"\n (entityView)=\"onEntityView($event)\">\n </cide-shared-org-structure>\n </div>\n </div>\n `,\n styles: [`\n .tw-dashed {\n border-style: dashed;\n }\n .tw-bg-gray-300 {\n background-color: #d1d5db;\n }\n \n /* Level-based styling for entity cards */\n .level-0 {\n border-top-color: #3b82f6 !important; /* Blue */\n }\n .level-1 {\n border-top-color: #f59e0b !important; /* Amber */\n }\n .level-2 {\n border-top-color: #10b981 !important; /* Emerald */\n }\n .level-3 {\n border-top-color: #8b5cf6 !important; /* Violet */\n }\n .level-4 {\n border-top-color: #ef4444 !important; /* Red */\n }\n .level-5 {\n border-top-color: #06b6d4 !important; /* Cyan */\n }\n \n /* Connection line styling */\n .connection-line-compact {\n pointer-events: none;\n }\n `]\n})\nexport class CideLytFloatingEntitySelectionComponent implements OnInit {\n // Input parameters for configuration\n allowSwitching = input<boolean>(true); // Allow entity switching (default: true)\n showActions = input<boolean>(true); // Show action buttons (default: true)\n mode = input<'selection' | 'view'>('selection'); // Mode: selection or view-only\n\n // Service injections\n private appStateService = inject(AppStateService);\n private floatingContainerService = inject(CideEleFloatingContainerService);\n\n ngOnInit() {\n // No initialization needed - shared org structure component handles everything\n }\n\n /**\n * Handle entity click event from org structure\n */\n onEntityClick(entity: CoreSystemEntityListResponse): void {\n console.log('🏢 Entity clicked:', entity);\n // This is just a click event, no action needed unless specific handling is required\n }\n\n /**\n * Handle entity select event from org structure (for switching)\n */\n onEntitySelect(entity: CoreSystemEntityListResponse): void {\n console.log('🏢 Entity selected for switching:', entity);\n this.appStateService.setActiveEntity(entity);\n this.closeContainer();\n }\n\n /**\n * Handle entity view event from org structure (for viewing)\n */\n onEntityView(entity: any): void {\n console.log('👁️ Entity viewed:', entity);\n // Handle view-only mode - could show entity details or navigate\n // This can be customized based on your needs\n }\n\n /**\n * Cancel selection\n */\n onCancel(): void {\n this.closeContainer();\n }\n\n /**\n * Close the floating container\n */\n private closeContainer(): void {\n this.floatingContainerService.hideAll();\n }\n}"],"names":[],"mappings":";;;;;;;MAwFa,uCAAuC,CAAA;;AAElD,IAAA,cAAc,GAAG,KAAK,CAAU,IAAI,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC,CAAC;AACtC,IAAA,WAAW,GAAG,KAAK,CAAU,IAAI,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,aAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC,CAAC;AACnC,IAAA,IAAI,GAAG,KAAK,CAAuB,WAAW,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC,CAAC;;AAGxC,IAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,IAAA,wBAAwB,GAAG,MAAM,CAAC,+BAA+B,CAAC;IAE1E,QAAQ,GAAA;;;AAIR;;AAEG;AACH,IAAA,aAAa,CAAC,MAAoC,EAAA;AAChD,QAAA,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC;;;AAI3C;;AAEG;AACH,IAAA,cAAc,CAAC,MAAoC,EAAA;AACjD,QAAA,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,MAAM,CAAC;AACxD,QAAA,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,MAAM,CAAC;QAC5C,IAAI,CAAC,cAAc,EAAE;;AAGvB;;AAEG;AACH,IAAA,YAAY,CAAC,MAAW,EAAA;AACtB,QAAA,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC;;;;AAK3C;;AAEG;IACH,QAAQ,GAAA;QACN,IAAI,CAAC,cAAc,EAAE;;AAGvB;;AAEG;IACK,cAAc,GAAA;AACpB,QAAA,IAAI,CAAC,wBAAw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