@acorex/components 19.10.5 → 19.10.7
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/conversation/lib/conversation-container/conversation-container.component.d.ts +2 -3
- package/conversation/lib/conversation-message/conversation-message.component.d.ts +1 -0
- package/data-table/lib/data-table/data-table.component.d.ts +19 -4
- package/datetime-box/lib/datetime-box.component.d.ts +2 -0
- package/datetime-picker/lib/datetime-picker.component.d.ts +3 -1
- package/decorators/lib/components/heading/heading.component.d.ts +1 -1
- package/fesm2022/acorex-components-avatar.mjs +3 -3
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +2 -2
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +2 -2
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +1 -1
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +13 -20
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +22 -19
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +6 -6
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +56 -79
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +10 -29
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +10 -4
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +2 -2
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs +167 -124
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +2 -2
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +2 -2
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +6 -16
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +4 -4
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +1 -1
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +4 -18
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +2 -2
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +6 -6
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +20 -12
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +24 -12
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/file-explorer/index.d.ts +2 -0
- package/file-explorer/lib/file-explorer-container/file-explorer-container.component.d.ts +1 -6
- package/file-explorer/lib/file-explorer-header/file-explorer-header.component.d.ts +9 -0
- package/file-explorer/lib/file-explorer-internal.service.d.ts +18 -0
- package/file-explorer/lib/file-explorer-tree/file-explorer-tree.component.d.ts +13 -0
- package/file-explorer/lib/file-explorer-view/file-explorer-view.component.d.ts +3 -16
- package/file-explorer/lib/file-explorer.module.d.ts +11 -8
- package/file-explorer/lib/file-explorer.service.d.ts +6 -1
- package/list/lib/list.component.d.ts +1 -1
- package/package.json +1 -1
- package/select-box/lib/select-box.component.d.ts +11 -4
- package/tree-view/lib/tree-view.class.d.ts +2 -0
- package/tree-view/lib/tree-view.component.d.ts +4 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-decorators.mjs","sources":["../../../../libs/components/decorators/src/lib/components/clear-button/clear-button.component.ts","../../../../libs/components/decorators/src/lib/components/close-button/close-button.component.ts","../../../../libs/components/decorators/src/lib/components/color-indicator/color-indicator.component.ts","../../../../libs/components/decorators/src/lib/components/color-indicator/color-indicator.component.html","../../../../libs/components/decorators/src/lib/components/full-screen/full-screen-button.component.ts","../../../../libs/components/decorators/src/lib/components/generic-content.component.ts","../../../../libs/components/decorators/src/lib/components/heading/heading.component.ts","../../../../libs/components/decorators/src/lib/components/icon/icon.component.ts","../../../../libs/components/decorators/src/lib/decorators.module.ts","../../../../libs/components/decorators/src/acorex-components-decorators.ts"],"sourcesContent":["import { AXClearableComponent, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Optional,\n ViewEncapsulation,\n} from '@angular/core';\n/**\n * A button component that allows users to clear or reset a value.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-clear-button',\n template: `<button type=\"button\" tabIndex=\"-1\" role=\"button\" aria-label=\"Clear\" title=\"Clear\">\n <i class=\"ax-icon-solid\" [ngClass]=\"icon\"></i>\n </button>`,\n styles: `\n ax-clear-button {\n max-width: fit-content;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorClearButtonComponent extends MXBaseComponent {\n /**\n * @ignore\n */\n constructor(\n @Optional()\n @Inject(AXClearableComponent)\n private _parent?: AXClearableComponent,\n ) {\n super();\n }\n\n /**\n * @ignore\n */\n private _icon = 'ax-icon ax-icon-clear';\n\n /**\n * The icon displayed on the clear button.\n */\n @Input()\n public get icon(): string {\n return this._icon || 'ax-icon-close';\n }\n\n /**\n * Sets the icon displayed on the clear button.\n *\n * @param v - The icon class to display. If not provided, defaults to 'ax-icon-close'.\n */\n public set icon(v: string) {\n this._icon = v;\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get hostClass(): string {\n const hidden =\n this._parent.disabled ||\n this._parent.readonly ||\n this._parent.value == null ||\n this._parent.value == '';\n return `ax-icon ax-clear-button ${hidden ? 'ax-hidden' : ''}`;\n }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n protected _handleOnClick() {\n if (!this._parent.disabled && !this._parent.readonly) this._parent?.reset(true);\n }\n}\n","import { AXClosbaleComponent, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostListener,\n Inject,\n input,\n Input,\n Optional,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * A button component that displays a close icon and triggers an action when clicked.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-close-button',\n template: `<button\n type=\"button\"\n role=\"button\"\n [attr.aria-label]=\"closeAll() ? 'Close All' : 'Close'\"\n [title]=\"closeAll() ? 'Close All' : 'Close'\"\n >\n <i [ngClass]=\"icon\"></i>\n </button>`,\n styleUrls: ['close-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorCloseButtonComponent extends MXBaseComponent {\n // @Inject(AXClosbaleComponent) private _parent?: AXClosbaleComponent,\n closeAll = input(false);\n\n /**\n * @ignore\n */\n constructor(\n @Optional()\n @Inject(AXClosbaleComponent)\n private _parent?: AXClosbaleComponent,\n ) {\n super();\n }\n\n /**\n * @ignore\n */\n private _icon = 'ax-icon ax-icon-close';\n\n /**\n * The icon class to be applied to the button.\n */\n @Input()\n public get icon(): string {\n return this._icon || 'ax-icon-close';\n }\n\n /**\n * Sets the icon class to be applied to the button.\n *\n * @param v The icon class.\n */\n public set icon(v: string) {\n this._icon = v;\n }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n protected _handleOnClick() {\n if (this.closeAll()) {\n this._parent?.closeAll();\n } else {\n this._parent?.close();\n }\n }\n}\n","import { Component, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-color-indicator',\n templateUrl: './color-indicator.component.html',\n styleUrls: ['./color-indicator.component.scss'],\n standalone: false,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXDecoratorColorIndicatorComponent {\n previewColor = input();\n}\n","<div [style]=\"{ backgroundColor: previewColor() }\" class=\"ax-indicator-color\"></div>\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, signal, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-fullscreen-button',\n template: ` <button type=\"button\" tabIndex=\"-1\" role=\"button\" aria-label=\"Clear\" title=\"Clear\">\n <i class=\"ax-icon {{ this.isActive() ? 'ax-icon-close' : 'ax-icon-full-screen' }} \"></i>\n </button>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorFullScreenButtonComponent extends MXBaseComponent {\n isActive = signal(false);\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * A flexible component for various UI elements like footer, header, content, and more.\n * @category Components\n */\n@Component({\n selector:\n 'ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay',\n template: `<ng-content></ng-content>`,\n styleUrls: ['./generic-content.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: 'ax-footer', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-header', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-content', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-divider', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-form-hint', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-prefix', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-suffix', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-text', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-title', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-subtitle', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-placeholder', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-overlay', useExisting: AXDecoratorGenericComponent },\n ],\n standalone: false,\n})\nexport class AXDecoratorGenericComponent extends MXBaseComponent {}\n","import { AXSurfaceType, MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, input, ViewEncapsulation } from '@angular/core';\n\ntype AXHeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';\n\n/**\n * A button component that displays a close icon and triggers an action when clicked.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-heading',\n template: `<ng-content select=\"h1, h2, h3, h4, h5, h6, p, ax-subtitle\"></ng-content>`,\n styleUrls: ['heading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorHeadingComponent extends MXBaseComponent {\n darkMode = input(true);\n color = input<AXSurfaceType>('lightest');\n weight = input<AXHeadingWeight>('semibold');\n\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-heading-${this.color()} ax-${this.weight()} ${!this.darkMode() && 'ax-heading-no-dark'}`;\n }\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\n/**\n * A component for displaying various types of icons including `<i>`, `<span>`, `<svg>`, and `<img>`.\n * @category Components\n */\n@Component({\n selector: 'ax-icon',\n template: '<ng-content></ng-content>',\n styles: `\n ax-icon {\n display: inherit;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: 'ax-icon', useExisting: AXDecoratorIconComponent }],\n standalone: false,\n})\nexport class AXDecoratorIconComponent extends MXBaseComponent {\n /**\n * Specifies the icon to be displayed.\n *\n * @defaultValue ''\n */\n @Input()\n icon = '';\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __iconClass(): string {\n this.cdr.detectChanges();\n return `${this.icon}`;\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXDecoratorClearButtonComponent } from './components/clear-button/clear-button.component';\nimport { AXDecoratorCloseButtonComponent } from './components/close-button/close-button.component';\nimport { AXDecoratorColorIndicatorComponent } from './components/color-indicator/color-indicator.component';\nimport { AXDecoratorFullScreenButtonComponent } from './components/full-screen/full-screen-button.component';\nimport { AXDecoratorGenericComponent } from './components/generic-content.component';\nimport { AXDecoratorHeadingComponent } from './components/heading/heading.component';\nimport { AXDecoratorIconComponent } from './components/icon/icon.component';\n\nconst COMPONENT = [\n AXDecoratorIconComponent,\n AXDecoratorClearButtonComponent,\n AXDecoratorCloseButtonComponent,\n AXDecoratorGenericComponent,\n AXDecoratorFullScreenButtonComponent,\n AXDecoratorHeadingComponent,\n AXDecoratorColorIndicatorComponent,\n];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDecoratorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAWA;;;;AAIG;AAeG,MAAO,+BAAgC,SAAQ,eAAe,CAAA;AAClE;;AAEG;AACH,IAAA,WAAA,CAGU,OAA8B,EAAA;AAEtC,QAAA,KAAK,EAAE;QAFC,IAAO,CAAA,OAAA,GAAP,OAAO;AAKjB;;AAEG;QACK,IAAK,CAAA,KAAA,GAAG,uBAAuB;;AAEvC;;AAEG;AACH,IAAA,IACW,IAAI,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,KAAK,IAAI,eAAe;;AAGtC;;;;AAIG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IAAA,EAAA,iBAAiB,YAJf,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;AC1BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-decorators.mjs","sources":["../../../../libs/components/decorators/src/lib/components/clear-button/clear-button.component.ts","../../../../libs/components/decorators/src/lib/components/close-button/close-button.component.ts","../../../../libs/components/decorators/src/lib/components/color-indicator/color-indicator.component.ts","../../../../libs/components/decorators/src/lib/components/color-indicator/color-indicator.component.html","../../../../libs/components/decorators/src/lib/components/full-screen/full-screen-button.component.ts","../../../../libs/components/decorators/src/lib/components/generic-content.component.ts","../../../../libs/components/decorators/src/lib/components/heading/heading.component.ts","../../../../libs/components/decorators/src/lib/components/icon/icon.component.ts","../../../../libs/components/decorators/src/lib/decorators.module.ts","../../../../libs/components/decorators/src/acorex-components-decorators.ts"],"sourcesContent":["import { AXClearableComponent, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Optional,\n ViewEncapsulation,\n} from '@angular/core';\n/**\n * A button component that allows users to clear or reset a value.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-clear-button',\n template: `<button type=\"button\" tabIndex=\"-1\" role=\"button\" aria-label=\"Clear\" title=\"Clear\">\n <i class=\"ax-icon-solid\" [ngClass]=\"icon\"></i>\n </button>`,\n styles: `\n ax-clear-button {\n max-width: fit-content;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorClearButtonComponent extends MXBaseComponent {\n /**\n * @ignore\n */\n constructor(\n @Optional()\n @Inject(AXClearableComponent)\n private _parent?: AXClearableComponent,\n ) {\n super();\n }\n\n /**\n * @ignore\n */\n private _icon = 'ax-icon ax-icon-clear';\n\n /**\n * The icon displayed on the clear button.\n */\n @Input()\n public get icon(): string {\n return this._icon || 'ax-icon-close';\n }\n\n /**\n * Sets the icon displayed on the clear button.\n *\n * @param v - The icon class to display. If not provided, defaults to 'ax-icon-close'.\n */\n public set icon(v: string) {\n this._icon = v;\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get hostClass(): string {\n const hidden =\n this._parent.disabled ||\n this._parent.readonly ||\n this._parent.value == null ||\n this._parent.value == '';\n return `ax-icon ax-clear-button ${hidden ? 'ax-hidden' : ''}`;\n }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n protected _handleOnClick() {\n if (!this._parent.disabled && !this._parent.readonly) this._parent?.reset(true);\n }\n}\n","import { AXClosbaleComponent, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostListener,\n Inject,\n input,\n Input,\n Optional,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * A button component that displays a close icon and triggers an action when clicked.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-close-button',\n template: `<button\n type=\"button\"\n role=\"button\"\n [attr.aria-label]=\"closeAll() ? 'Close All' : 'Close'\"\n [title]=\"closeAll() ? 'Close All' : 'Close'\"\n >\n <i [ngClass]=\"icon\"></i>\n </button>`,\n styleUrls: ['close-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorCloseButtonComponent extends MXBaseComponent {\n // @Inject(AXClosbaleComponent) private _parent?: AXClosbaleComponent,\n closeAll = input(false);\n\n /**\n * @ignore\n */\n constructor(\n @Optional()\n @Inject(AXClosbaleComponent)\n private _parent?: AXClosbaleComponent,\n ) {\n super();\n }\n\n /**\n * @ignore\n */\n private _icon = 'ax-icon ax-icon-close';\n\n /**\n * The icon class to be applied to the button.\n */\n @Input()\n public get icon(): string {\n return this._icon || 'ax-icon-close';\n }\n\n /**\n * Sets the icon class to be applied to the button.\n *\n * @param v The icon class.\n */\n public set icon(v: string) {\n this._icon = v;\n }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n protected _handleOnClick() {\n if (this.closeAll()) {\n this._parent?.closeAll();\n } else {\n this._parent?.close();\n }\n }\n}\n","import { Component, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-color-indicator',\n templateUrl: './color-indicator.component.html',\n styleUrls: ['./color-indicator.component.scss'],\n standalone: false,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXDecoratorColorIndicatorComponent {\n previewColor = input();\n}\n","<div [style]=\"{ backgroundColor: previewColor() }\" class=\"ax-indicator-color\"></div>\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, signal, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-fullscreen-button',\n template: ` <button type=\"button\" tabIndex=\"-1\" role=\"button\" aria-label=\"Clear\" title=\"Clear\">\n <i class=\"ax-icon {{ this.isActive() ? 'ax-icon-close' : 'ax-icon-full-screen' }} \"></i>\n </button>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorFullScreenButtonComponent extends MXBaseComponent {\n isActive = signal(false);\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * A flexible component for various UI elements like footer, header, content, and more.\n * @category Components\n */\n@Component({\n selector:\n 'ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay',\n template: `<ng-content></ng-content>`,\n styleUrls: ['./generic-content.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: 'ax-footer', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-header', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-content', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-divider', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-form-hint', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-prefix', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-suffix', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-text', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-title', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-subtitle', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-placeholder', useExisting: AXDecoratorGenericComponent },\n { provide: 'ax-overlay', useExisting: AXDecoratorGenericComponent },\n ],\n standalone: false,\n})\nexport class AXDecoratorGenericComponent extends MXBaseComponent {}\n","import { AXSurfaceType, MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, input, ViewEncapsulation } from '@angular/core';\n\ntype AXHeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';\n\n/**\n * A button component that displays a close icon and triggers an action when clicked.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-heading',\n template: `<ng-content></ng-content>`,\n styleUrls: ['heading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXDecoratorHeadingComponent extends MXBaseComponent {\n darkMode = input(true);\n color = input<AXSurfaceType>('lightest');\n weight = input<AXHeadingWeight>('semibold');\n\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-heading-${this.color()} ax-${this.weight()} ${!this.darkMode() && 'ax-heading-no-dark'}`;\n }\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\n/**\n * A component for displaying various types of icons including `<i>`, `<span>`, `<svg>`, and `<img>`.\n * @category Components\n */\n@Component({\n selector: 'ax-icon',\n template: '<ng-content></ng-content>',\n styles: `\n ax-icon {\n display: inherit;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: 'ax-icon', useExisting: AXDecoratorIconComponent }],\n standalone: false,\n})\nexport class AXDecoratorIconComponent extends MXBaseComponent {\n /**\n * Specifies the icon to be displayed.\n *\n * @defaultValue ''\n */\n @Input()\n icon = '';\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __iconClass(): string {\n this.cdr.detectChanges();\n return `${this.icon}`;\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXDecoratorClearButtonComponent } from './components/clear-button/clear-button.component';\nimport { AXDecoratorCloseButtonComponent } from './components/close-button/close-button.component';\nimport { AXDecoratorColorIndicatorComponent } from './components/color-indicator/color-indicator.component';\nimport { AXDecoratorFullScreenButtonComponent } from './components/full-screen/full-screen-button.component';\nimport { AXDecoratorGenericComponent } from './components/generic-content.component';\nimport { AXDecoratorHeadingComponent } from './components/heading/heading.component';\nimport { AXDecoratorIconComponent } from './components/icon/icon.component';\n\nconst COMPONENT = [\n AXDecoratorIconComponent,\n AXDecoratorClearButtonComponent,\n AXDecoratorCloseButtonComponent,\n AXDecoratorGenericComponent,\n AXDecoratorFullScreenButtonComponent,\n AXDecoratorHeadingComponent,\n AXDecoratorColorIndicatorComponent,\n];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDecoratorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAWA;;;;AAIG;AAeG,MAAO,+BAAgC,SAAQ,eAAe,CAAA;AAClE;;AAEG;AACH,IAAA,WAAA,CAGU,OAA8B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B,2BAA2B;YAC3B,oCAAoC;YACpC,2BAA2B;YAC3B,kCAAkC,CAAA,EAAA,CAAA,CAAA;AAUvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAJf,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;AC1BD;;AAEG;;;;"}
|
@@ -1,24 +1,112 @@
|
|
1
|
-
import * as i3 from '@acorex/components/drawer';
|
2
|
-
import { AXDrawerComponent, AXDrawerModule } from '@acorex/components/drawer';
|
3
1
|
import * as i0 from '@angular/core';
|
4
|
-
import { signal, Injectable, inject,
|
2
|
+
import { signal, Injectable, inject, ViewEncapsulation, Component, ChangeDetectionStrategy, input, output, viewChild, effect, afterNextRender, NgModule } from '@angular/core';
|
5
3
|
import * as i1 from '@acorex/components/decorators';
|
6
4
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
7
|
-
import * as i2 from '@
|
8
|
-
import { CommonModule } from '@angular/common';
|
9
|
-
import { MXBaseComponent } from '@acorex/components/common';
|
10
|
-
import * as i6 from '@acorex/components/menu';
|
11
|
-
import { AXContextMenuComponent, AXMenuModule } from '@acorex/components/menu';
|
12
|
-
import * as i2$1 from '@acorex/components/button';
|
5
|
+
import * as i2 from '@acorex/components/button';
|
13
6
|
import { AXButtonModule } from '@acorex/components/button';
|
14
|
-
import * as i3
|
7
|
+
import * as i3 from '@acorex/components/breadcrumbs';
|
15
8
|
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
9
|
+
import * as i2$1 from '@angular/common';
|
10
|
+
import { CommonModule } from '@angular/common';
|
16
11
|
import * as i5 from '@acorex/components/toolbar';
|
17
12
|
import { AXToolBarModule } from '@acorex/components/toolbar';
|
13
|
+
import * as i6 from '@acorex/components/menu';
|
14
|
+
import { AXContextMenuComponent, AXMenuModule } from '@acorex/components/menu';
|
15
|
+
import { MXBaseComponent } from '@acorex/components/common';
|
16
|
+
import * as i3$1 from '@acorex/components/drawer';
|
17
|
+
import { AXDrawerComponent, AXDrawerModule } from '@acorex/components/drawer';
|
18
|
+
import * as i4 from '@acorex/components/tree-view';
|
19
|
+
import { AXTreeViewComponent, AXTreeViewModule } from '@acorex/components/tree-view';
|
18
20
|
|
19
|
-
class
|
21
|
+
class AXFileExplorerInternalService {
|
20
22
|
constructor() {
|
23
|
+
this.viewMode = signal('ax-large-icon');
|
21
24
|
this.treeViewState = signal(false);
|
25
|
+
this.allData = signal([]);
|
26
|
+
this.showData = signal([]);
|
27
|
+
this.breadcrumbsData = signal(['root']);
|
28
|
+
this.activeFolderId = signal(null);
|
29
|
+
this.dataCallBack = signal(null);
|
30
|
+
this.treeViewInstant = signal(null);
|
31
|
+
this.clickedItems = new Set();
|
32
|
+
}
|
33
|
+
findItemInNestedArray(array, predicate) {
|
34
|
+
for (const item of array) {
|
35
|
+
if (predicate(item)) {
|
36
|
+
return item;
|
37
|
+
}
|
38
|
+
if (item.children) {
|
39
|
+
const found = this.findItemInNestedArray(item.children, predicate);
|
40
|
+
if (found)
|
41
|
+
return found;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return null;
|
45
|
+
}
|
46
|
+
async dbClickHandler(item, isTreeViewClicked = true) {
|
47
|
+
if (item.extension)
|
48
|
+
return;
|
49
|
+
if (!item?.id)
|
50
|
+
return;
|
51
|
+
if (isTreeViewClicked) {
|
52
|
+
this.treeViewInstant().executeOnTreeNode(item, 'active', true);
|
53
|
+
this.treeViewInstant().executeOnTreeNode(item, 'expand', true);
|
54
|
+
}
|
55
|
+
this.activeFolderId.set(item.id);
|
56
|
+
const clickedItem = this.findItemInNestedArray(this.allData(), (e) => e.id === item.id);
|
57
|
+
this.breadcrumbsData.update((prev) => [...prev, clickedItem.text]);
|
58
|
+
let canPass = true;
|
59
|
+
this.clickedItems.forEach((e) => {
|
60
|
+
if (e === item.id)
|
61
|
+
canPass = false;
|
62
|
+
});
|
63
|
+
this.clickedItems.add(item.id);
|
64
|
+
if (!canPass)
|
65
|
+
return;
|
66
|
+
const newChild = await this.dataCallBack()(item.id);
|
67
|
+
this.allData.update((prev) => {
|
68
|
+
const copy = [...prev];
|
69
|
+
const find = this.findItemInNestedArray(copy, (e) => e.id === item.id);
|
70
|
+
find.children = newChild;
|
71
|
+
return copy;
|
72
|
+
});
|
73
|
+
}
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerInternalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
75
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerInternalService }); }
|
76
|
+
}
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerInternalService, decorators: [{
|
78
|
+
type: Injectable
|
79
|
+
}] });
|
80
|
+
|
81
|
+
class AXFileExplorerService {
|
82
|
+
constructor() {
|
83
|
+
this.internalService = inject(AXFileExplorerInternalService);
|
84
|
+
}
|
85
|
+
backButtonHandler() {
|
86
|
+
this.internalService.breadcrumbsData.update((prev) => {
|
87
|
+
const copy = [...prev];
|
88
|
+
if (copy.length !== 1)
|
89
|
+
copy.pop();
|
90
|
+
return copy;
|
91
|
+
});
|
92
|
+
const parentId = this.internalService.showData()[0].parentId;
|
93
|
+
const parent = this.internalService.findItemInNestedArray(this.internalService.allData(), (item) => item.id === parentId);
|
94
|
+
if (parent?.parentId) {
|
95
|
+
this.internalService.activeFolderId.set(parent.parentId);
|
96
|
+
}
|
97
|
+
else {
|
98
|
+
this.internalService.activeFolderId.set(null);
|
99
|
+
}
|
100
|
+
this.internalService.treeViewInstant().executeOnTreeNode(parent, 'active', false);
|
101
|
+
}
|
102
|
+
menuToggleHandler() {
|
103
|
+
this.internalService.treeViewState.update((prev) => !prev);
|
104
|
+
}
|
105
|
+
changeViewHandler(v) {
|
106
|
+
this.internalService.viewMode.set(v);
|
107
|
+
}
|
108
|
+
async sortItemHandler(sort) {
|
109
|
+
await this.internalService.dataCallBack()(this.internalService.activeFolderId(), sort);
|
22
110
|
}
|
23
111
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
24
112
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerService }); }
|
@@ -28,25 +116,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
28
116
|
}] });
|
29
117
|
|
30
118
|
class AXFileExplorerContainerComponent {
|
119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
120
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXFileExplorerContainerComponent, isStandalone: false, selector: "ax-file-explorer-container", providers: [AXFileExplorerService, AXFileExplorerInternalService], ngImport: i0, template: "<ng-content select=\"ax-file-explorer-tree\"></ng-content>\n<ng-content select=\"ax-file-explorer-view\"></ng-content>\n", styles: ["ax-file-explorer-container{display:flex;min-width:30vw;max-height:40vh;overflow:hidden;border:1px solid rgba(var(--ax-sys-color-border-lightest-surface));border-radius:var(--ax-sys-border-radius)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
121
|
+
}
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerContainerComponent, decorators: [{
|
123
|
+
type: Component,
|
124
|
+
args: [{ selector: 'ax-file-explorer-container', standalone: false, encapsulation: ViewEncapsulation.None, providers: [AXFileExplorerService, AXFileExplorerInternalService], template: "<ng-content select=\"ax-file-explorer-tree\"></ng-content>\n<ng-content select=\"ax-file-explorer-view\"></ng-content>\n", styles: ["ax-file-explorer-container{display:flex;min-width:30vw;max-height:40vh;overflow:hidden;border:1px solid rgba(var(--ax-sys-color-border-lightest-surface));border-radius:var(--ax-sys-border-radius)}\n"] }]
|
125
|
+
}] });
|
126
|
+
|
127
|
+
class AXFileExplorerHeaderComponent {
|
31
128
|
constructor() {
|
32
129
|
this.service = inject(AXFileExplorerService);
|
33
|
-
this.
|
34
|
-
this.#effect = effect(() => {
|
35
|
-
if (this.service.treeViewState()) {
|
36
|
-
this.drawer().open();
|
37
|
-
}
|
38
|
-
else {
|
39
|
-
this.drawer().close();
|
40
|
-
}
|
41
|
-
});
|
130
|
+
this.internalService = inject(AXFileExplorerInternalService);
|
42
131
|
}
|
43
|
-
|
44
|
-
static { this.ɵ
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXFileExplorerContainerComponent, isStandalone: false, selector: "ax-file-explorer-container", providers: [AXFileExplorerService], viewQueries: [{ propertyName: "drawer", first: true, predicate: AXDrawerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-drawer-container [ngStyle]=\"this.service.treeViewState() ? { width: 'fit-content' } : { width: 0 }\">\n <ax-drawer location=\"start\" mode=\"push\">\n <ax-content>\n <ng-content select=\"ax-tree-view\"></ng-content>\n </ax-content>\n </ax-drawer>\n</ax-drawer-container>\n\n<ax-divider></ax-divider>\n\n<ng-content select=\"ax-file-explorer-view\"></ng-content>\n", styles: ["ax-file-explorer-container{display:flex;min-width:30vw;max-height:40vh;overflow:hidden;border:1px solid rgba(var(--ax-sys-color-border-lightest-surface));border-radius:var(--ax-sys-border-radius)}ax-file-explorer-container ax-divider{display:block;width:1px}ax-file-explorer-container ax-drawer-container{height:auto}ax-file-explorer-container ax-drawer-container ax-drawer ax-content{padding:.5rem;overflow-x:hidden}ax-file-explorer-container ax-drawer-container ax-drawer ax-text{white-space:nowrap;padding-inline-end:1rem}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.AXDrawerComponent, selector: "ax-drawer", inputs: ["location", "showBackdrop", "mode", "closeOthers", "collapsed"], outputs: ["locationChange", "modeChange", "collapsedChange"] }, { kind: "component", type: i3.AXDrawerContainerComponent, selector: "ax-drawer-container" }], encapsulation: i0.ViewEncapsulation.None }); }
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerHeaderComponent, isStandalone: false, selector: "ax-file-explorer-header", ngImport: i0, template: "<ax-toolbar>\n <ax-prefix>\n <ax-button (onClick)=\"service.menuToggleHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-menu\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-button (onClick)=\"service.backButtonHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-up-folder\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-breadcrumbs>\n <ng-template *ngIf=\"false\" #divider> '|' </ng-template>\n @for (item of internalService.breadcrumbsData(); track item; let idx = $last) {\n <ax-breadcrumbs-item [active]=\"idx\">\n <ax-text>{{ item }}</ax-text>\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </ax-prefix>\n\n <ax-suffix>\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-text>View</ax-text>\n\n <ax-menu-item (onClick)=\"service.changeViewHandler('ax-large-icon')\">\n <ax-text>Large</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"service.changeViewHandler('ax-small-icon')\">\n <ax-text>Small</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"service.changeViewHandler('ax-list-icon')\">\n <ax-text>List</ax-text>\n </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n\n <ax-divider></ax-divider>\n\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-prefix>\n <ax-icon class=\"ax-icon ax-icon-sort\"></ax-icon>\n </ax-prefix>\n <ax-menu-item (onClick)=\"service.sortItemHandler('name')\"> <ax-text>Name</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"service.sortItemHandler('date')\"> <ax-text>Date</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"service.sortItemHandler('type')\"> <ax-text>Type</ax-text> </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n </ax-suffix>\n</ax-toolbar>\n", styles: ["ax-file-explorer-header ax-toolbar{border-bottom:1px solid rgb(var(--ax-sys-color-border-lightest-surface));width:100%;justify-content:space-between}ax-file-explorer-header ax-toolbar ax-menu.ax-action-list-horizontal{min-width:fit-content}ax-file-explorer-header ax-toolbar ax-prefix{flex-wrap:nowrap}ax-file-explorer-header ax-toolbar .ax-start-toolbar-divider{display:none}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i3.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.AXToolBarComponent, selector: "ax-toolbar" }, { kind: "component", type: i6.AXMenuItemComponent, selector: "ax-menu-item", inputs: ["name", "data", "disabled", "color"], outputs: ["onClick"] }, { kind: "component", type: i6.AXMenuComponent, selector: "ax-menu", inputs: ["orientation", "openOn", "closeOn", "items", "hasArrow"], outputs: ["onItemClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
46
134
|
}
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerHeaderComponent, decorators: [{
|
48
136
|
type: Component,
|
49
|
-
args: [{ selector: 'ax-file-explorer-
|
137
|
+
args: [{ selector: 'ax-file-explorer-header', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-toolbar>\n <ax-prefix>\n <ax-button (onClick)=\"service.menuToggleHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-menu\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-button (onClick)=\"service.backButtonHandler()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-up-folder\"></ax-icon>\n </ax-button>\n\n <ax-divider></ax-divider>\n\n <ax-breadcrumbs>\n <ng-template *ngIf=\"false\" #divider> '|' </ng-template>\n @for (item of internalService.breadcrumbsData(); track item; let idx = $last) {\n <ax-breadcrumbs-item [active]=\"idx\">\n <ax-text>{{ item }}</ax-text>\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </ax-prefix>\n\n <ax-suffix>\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-text>View</ax-text>\n\n <ax-menu-item (onClick)=\"service.changeViewHandler('ax-large-icon')\">\n <ax-text>Large</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"service.changeViewHandler('ax-small-icon')\">\n <ax-text>Small</ax-text>\n </ax-menu-item>\n\n <ax-menu-item (onClick)=\"service.changeViewHandler('ax-list-icon')\">\n <ax-text>List</ax-text>\n </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n\n <ax-divider></ax-divider>\n\n <ax-menu openOn=\"click\" [hasArrow]=\"false\">\n <ax-menu-item>\n <ax-prefix>\n <ax-icon class=\"ax-icon ax-icon-sort\"></ax-icon>\n </ax-prefix>\n <ax-menu-item (onClick)=\"service.sortItemHandler('name')\"> <ax-text>Name</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"service.sortItemHandler('date')\"> <ax-text>Date</ax-text> </ax-menu-item>\n <ax-menu-item (onClick)=\"service.sortItemHandler('type')\"> <ax-text>Type</ax-text> </ax-menu-item>\n </ax-menu-item>\n </ax-menu>\n </ax-suffix>\n</ax-toolbar>\n", styles: ["ax-file-explorer-header ax-toolbar{border-bottom:1px solid rgb(var(--ax-sys-color-border-lightest-surface));width:100%;justify-content:space-between}ax-file-explorer-header ax-toolbar ax-menu.ax-action-list-horizontal{min-width:fit-content}ax-file-explorer-header ax-toolbar ax-prefix{flex-wrap:nowrap}ax-file-explorer-header ax-toolbar .ax-start-toolbar-divider{display:none}\n"] }]
|
50
138
|
}] });
|
51
139
|
|
52
140
|
class AXFileExplorerItemComponent extends MXBaseComponent {
|
@@ -60,98 +148,70 @@ class AXFileExplorerItemComponent extends MXBaseComponent {
|
|
60
148
|
this.dbClick.emit();
|
61
149
|
}
|
62
150
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerItemComponent, isStandalone: false, selector: "ax-file-explorer-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dbClick: "dbClick" }, usesInheritance: true, ngImport: i0, template: "@if (viewMode() === 'ax-list-icon') {\n <div class=\"ax-list-icon\" (dblclick)=\"dbClickHandler()\">\n <div class=\"ax-thumb-file\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n\n @if (data().extension) {\n <ax-text>\n {{ data().size }}\n </ax-text>\n }\n\n <ax-text>\n {{ data().description }}\n </ax-text>\n\n <ax-text>\n {{ data().lastModify }}\n </ax-text>\n </div>\n} @else {\n <div [ngClass]=\"viewMode()\" (dblclick)=\"dbClickHandler()\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n}\n", styles: ["ax-file-explorer-item{-webkit-user-select:none;user-select:none;cursor:pointer}ax-file-explorer-item .ax-large-icon,ax-file-explorer-item .ax-small-icon{display:flex;flex-direction:column;justify-content:center;align-items:center}ax-file-explorer-item .ax-small-icon ax-icon{font-size:.9rem}ax-file-explorer-item .ax-small-icon ax-text{font-size:.7rem}ax-file-explorer-item .ax-large-icon ax-icon{font-size:3rem}ax-file-explorer-item .ax-large-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.1rem;align-items:center;padding:.3rem;border-bottom:1px solid rgb(var(--ax-color-input-border));margin-bottom:.5rem}ax-file-explorer-item .ax-list-icon ax-icon{font-size:1.2rem;margin-inline-end:.5rem}ax-file-explorer-item .ax-list-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon .ax-thumb-file{display:flex}ax-file-explorer-item .ax-list-icon .ax-thumb-file ax-text{max-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-file-explorer-item .ax-list-icon>ax-text{color:rgb(var(--ax-color-neutral-500));max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:center}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
151
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerItemComponent, isStandalone: false, selector: "ax-file-explorer-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dbClick: "dbClick" }, usesInheritance: true, ngImport: i0, template: "@if (viewMode() === 'ax-list-icon') {\n <div class=\"ax-list-icon\" (dblclick)=\"dbClickHandler()\">\n <div class=\"ax-thumb-file\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n\n @if (data().extension) {\n <ax-text>\n {{ data().size }}\n </ax-text>\n }\n\n <ax-text>\n {{ data().description }}\n </ax-text>\n\n <ax-text>\n {{ data().lastModify }}\n </ax-text>\n </div>\n} @else {\n <div [ngClass]=\"viewMode()\" (dblclick)=\"dbClickHandler()\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n}\n", styles: ["ax-file-explorer-item{-webkit-user-select:none;user-select:none;cursor:pointer}ax-file-explorer-item .ax-large-icon,ax-file-explorer-item .ax-small-icon{display:flex;flex-direction:column;justify-content:center;align-items:center}ax-file-explorer-item .ax-small-icon ax-icon{font-size:.9rem}ax-file-explorer-item .ax-small-icon ax-text{font-size:.7rem}ax-file-explorer-item .ax-large-icon ax-icon{font-size:3rem}ax-file-explorer-item .ax-large-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.1rem;align-items:center;padding:.3rem;border-bottom:1px solid rgb(var(--ax-color-input-border));margin-bottom:.5rem}ax-file-explorer-item .ax-list-icon ax-icon{font-size:1.2rem;margin-inline-end:.5rem}ax-file-explorer-item .ax-list-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon .ax-thumb-file{display:flex}ax-file-explorer-item .ax-list-icon .ax-thumb-file ax-text{max-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-file-explorer-item .ax-list-icon>ax-text{color:rgb(var(--ax-color-neutral-500));max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:center}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
64
152
|
}
|
65
153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerItemComponent, decorators: [{
|
66
154
|
type: Component,
|
67
155
|
args: [{ selector: 'ax-file-explorer-item', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (viewMode() === 'ax-list-icon') {\n <div class=\"ax-list-icon\" (dblclick)=\"dbClickHandler()\">\n <div class=\"ax-thumb-file\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n\n @if (data().extension) {\n <ax-text>\n {{ data().size }}\n </ax-text>\n }\n\n <ax-text>\n {{ data().description }}\n </ax-text>\n\n <ax-text>\n {{ data().lastModify }}\n </ax-text>\n </div>\n} @else {\n <div [ngClass]=\"viewMode()\" (dblclick)=\"dbClickHandler()\">\n <ax-icon [icon]=\"data().icon\"></ax-icon>\n <ax-text>{{ data().text }}</ax-text>\n </div>\n}\n", styles: ["ax-file-explorer-item{-webkit-user-select:none;user-select:none;cursor:pointer}ax-file-explorer-item .ax-large-icon,ax-file-explorer-item .ax-small-icon{display:flex;flex-direction:column;justify-content:center;align-items:center}ax-file-explorer-item .ax-small-icon ax-icon{font-size:.9rem}ax-file-explorer-item .ax-small-icon ax-text{font-size:.7rem}ax-file-explorer-item .ax-large-icon ax-icon{font-size:3rem}ax-file-explorer-item .ax-large-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.1rem;align-items:center;padding:.3rem;border-bottom:1px solid rgb(var(--ax-color-input-border));margin-bottom:.5rem}ax-file-explorer-item .ax-list-icon ax-icon{font-size:1.2rem;margin-inline-end:.5rem}ax-file-explorer-item .ax-list-icon ax-text{font-size:.8rem}ax-file-explorer-item .ax-list-icon .ax-thumb-file{display:flex}ax-file-explorer-item .ax-list-icon .ax-thumb-file ax-text{max-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-file-explorer-item .ax-list-icon>ax-text{color:rgb(var(--ax-color-neutral-500));max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:center}\n"] }]
|
68
156
|
}] });
|
69
157
|
|
158
|
+
class AXFileExplorerTreeComponent {
|
159
|
+
constructor() {
|
160
|
+
this.internalService = inject(AXFileExplorerInternalService);
|
161
|
+
this.drawer = viewChild(AXDrawerComponent);
|
162
|
+
this.treeView = viewChild(AXTreeViewComponent);
|
163
|
+
this.#effect = effect(() => {
|
164
|
+
if (this.internalService.treeViewState()) {
|
165
|
+
this.drawer().open();
|
166
|
+
}
|
167
|
+
else {
|
168
|
+
this.drawer().close();
|
169
|
+
}
|
170
|
+
});
|
171
|
+
this.#init = afterNextRender(() => {
|
172
|
+
this.internalService.treeViewInstant.set(this.treeView());
|
173
|
+
});
|
174
|
+
}
|
175
|
+
#effect;
|
176
|
+
#init;
|
177
|
+
openFolderOnViewHandler(e) {
|
178
|
+
this.internalService.dbClickHandler(e.data, false);
|
179
|
+
}
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXFileExplorerTreeComponent, isStandalone: false, selector: "ax-file-explorer-tree", viewQueries: [{ propertyName: "drawer", first: true, predicate: AXDrawerComponent, descendants: true, isSignal: true }, { propertyName: "treeView", first: true, predicate: AXTreeViewComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-drawer-container\n [ngClass]=\"this.internalService.treeViewState() && 'ax-file-explore-drawer-border'\"\n [ngStyle]=\"this.internalService.treeViewState() ? { width: 'fit-content' } : { width: 0 }\"\n>\n <ax-drawer location=\"start\" mode=\"push\">\n <ax-content>\n <ax-tree-view\n (onNodeExpandClick)=\"openFolderOnViewHandler($event)\"\n [selectable]=\"false\"\n hasChildField=\"hasChild\"\n [items]=\"internalService.dataCallBack()\"\n ></ax-tree-view>\n </ax-content>\n </ax-drawer>\n</ax-drawer-container>\n", styles: ["ax-file-explorer-tree .ax-file-explore-drawer-border{border-inline-end:1px solid rgba(var(--ax-sys-color-border-lightest-surface))}ax-file-explorer-tree ax-drawer-container{height:auto}ax-file-explorer-tree ax-drawer-container ax-drawer ax-content{padding:.5rem;overflow-x:hidden}ax-file-explorer-tree ax-drawer-container ax-drawer ax-text{white-space:nowrap;padding-inline-end:1rem}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.AXDrawerComponent, selector: "ax-drawer", inputs: ["location", "showBackdrop", "mode", "closeOthers", "collapsed"], outputs: ["locationChange", "modeChange", "collapsedChange"] }, { kind: "component", type: i3$1.AXDrawerContainerComponent, selector: "ax-drawer-container" }, { kind: "component", type: i4.AXTreeViewComponent, selector: "ax-tree-view", inputs: ["items", "selectable", "selectionMode", "selectionBehavior", "showActiveNode", "valueField", "textField", "visibleField", "disableField", "hasChildField", "iconField", "expandBehavior"], outputs: ["onSelectionChange", "onItemClick", "onNodeClick", "onNodeExpandClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
182
|
+
}
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerTreeComponent, decorators: [{
|
184
|
+
type: Component,
|
185
|
+
args: [{ selector: 'ax-file-explorer-tree', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-drawer-container\n [ngClass]=\"this.internalService.treeViewState() && 'ax-file-explore-drawer-border'\"\n [ngStyle]=\"this.internalService.treeViewState() ? { width: 'fit-content' } : { width: 0 }\"\n>\n <ax-drawer location=\"start\" mode=\"push\">\n <ax-content>\n <ax-tree-view\n (onNodeExpandClick)=\"openFolderOnViewHandler($event)\"\n [selectable]=\"false\"\n hasChildField=\"hasChild\"\n [items]=\"internalService.dataCallBack()\"\n ></ax-tree-view>\n </ax-content>\n </ax-drawer>\n</ax-drawer-container>\n", styles: ["ax-file-explorer-tree .ax-file-explore-drawer-border{border-inline-end:1px solid rgba(var(--ax-sys-color-border-lightest-surface))}ax-file-explorer-tree ax-drawer-container{height:auto}ax-file-explorer-tree ax-drawer-container ax-drawer ax-content{padding:.5rem;overflow-x:hidden}ax-file-explorer-tree ax-drawer-container ax-drawer ax-text{white-space:nowrap;padding-inline-end:1rem}\n"] }]
|
186
|
+
}] });
|
187
|
+
|
70
188
|
class AXFileExplorerViewComponent {
|
71
189
|
constructor() {
|
72
|
-
this.dataCallBack = input();
|
73
|
-
this.allData = signal([]);
|
74
|
-
this.showData = signal([]);
|
75
|
-
this.activeFolderId = signal(null);
|
76
|
-
this.clickedItems = new Set();
|
77
|
-
this.breadcrumbsData = signal(['root']);
|
190
|
+
this.dataCallBack = input.required();
|
78
191
|
this.contextMenu = viewChild(AXContextMenuComponent);
|
79
|
-
this.
|
80
|
-
this
|
81
|
-
this.#effect = afterNextRender(() => {
|
192
|
+
this.internalService = inject(AXFileExplorerInternalService);
|
193
|
+
this.#init = effect(() => {
|
82
194
|
this.setInitialAllData();
|
195
|
+
this.internalService.dataCallBack.set(this.dataCallBack());
|
83
196
|
});
|
84
197
|
this.#effect2 = effect(() => {
|
85
|
-
if (this.activeFolderId()) {
|
86
|
-
const result = this.findItemInNestedArray(this.allData(), (item) => item.id === this.activeFolderId());
|
87
|
-
this.showData.set(result.
|
198
|
+
if (this.internalService.activeFolderId()) {
|
199
|
+
const result = this.internalService.findItemInNestedArray(this.internalService.allData(), (item) => item.id === this.internalService.activeFolderId());
|
200
|
+
this.internalService.showData.set(result.children);
|
88
201
|
}
|
89
202
|
else {
|
90
|
-
this.showData.set(this.allData());
|
203
|
+
this.internalService.showData.set(this.internalService.allData());
|
91
204
|
}
|
92
205
|
setTimeout(() => {
|
93
206
|
this.contextMenu().refresh();
|
94
207
|
});
|
95
208
|
});
|
96
209
|
}
|
97
|
-
#
|
210
|
+
#init;
|
98
211
|
#effect2;
|
99
212
|
async setInitialAllData() {
|
100
213
|
const rootData = await this.dataCallBack()();
|
101
|
-
this.allData.set(rootData);
|
102
|
-
}
|
103
|
-
async dbclickHandler(item) {
|
104
|
-
if (item.extension)
|
105
|
-
return;
|
106
|
-
if (!item?.id)
|
107
|
-
return;
|
108
|
-
this.activeFolderId.set(item.id);
|
109
|
-
const clickedItem = this.findItemInNestedArray(this.allData(), (e) => e.id === item.id);
|
110
|
-
this.breadcrumbsData.update((prev) => [...prev, clickedItem.text]);
|
111
|
-
let canPass = true;
|
112
|
-
this.clickedItems.forEach((e) => {
|
113
|
-
if (e === item.id)
|
114
|
-
canPass = false;
|
115
|
-
});
|
116
|
-
this.clickedItems.add(item.id);
|
117
|
-
if (!canPass)
|
118
|
-
return;
|
119
|
-
const newChild = await this.dataCallBack()(item.id);
|
120
|
-
this.allData.update((prev) => {
|
121
|
-
const copy = [...prev];
|
122
|
-
const find = this.findItemInNestedArray(copy, (e) => e.id === item.id);
|
123
|
-
find.childrens = newChild;
|
124
|
-
return copy;
|
125
|
-
});
|
126
|
-
}
|
127
|
-
findItemInNestedArray(array, predicate) {
|
128
|
-
for (const item of array) {
|
129
|
-
if (predicate(item)) {
|
130
|
-
return item;
|
131
|
-
}
|
132
|
-
if (item.childrens) {
|
133
|
-
const found = this.findItemInNestedArray(item.childrens, predicate);
|
134
|
-
if (found)
|
135
|
-
return found;
|
136
|
-
}
|
137
|
-
}
|
138
|
-
return null;
|
139
|
-
}
|
140
|
-
backButtonHandler() {
|
141
|
-
this.breadcrumbsData.update((prev) => {
|
142
|
-
const copy = [...prev];
|
143
|
-
if (copy.length !== 1)
|
144
|
-
copy.pop();
|
145
|
-
return copy;
|
146
|
-
});
|
147
|
-
const parentId = this.showData()[0].parentId;
|
148
|
-
const parent = this.findItemInNestedArray(this.allData(), (item) => item.id === parentId);
|
149
|
-
if (parent?.parentId) {
|
150
|
-
this.activeFolderId.set(parent.parentId);
|
151
|
-
}
|
152
|
-
else {
|
153
|
-
this.activeFolderId.set(null);
|
154
|
-
}
|
214
|
+
this.internalService.allData.set(rootData);
|
155
215
|
}
|
156
216
|
handleContextMenuOpening(e) {
|
157
217
|
const target = e.targetElement['__axContext__'];
|
@@ -164,52 +224,35 @@ class AXFileExplorerViewComponent {
|
|
164
224
|
// }
|
165
225
|
}
|
166
226
|
handleContextMenuItemClick(e) {
|
167
|
-
this.
|
168
|
-
}
|
169
|
-
changeViewHandler(v) {
|
170
|
-
this.viewMode.set(v);
|
171
|
-
}
|
172
|
-
async sortItemHandler(sort) {
|
173
|
-
const newChild = await this.dataCallBack()(this.activeFolderId(), sort);
|
174
|
-
}
|
175
|
-
menuToggleHandler() {
|
176
|
-
this.service.treeViewState.update((prev) => !prev);
|
227
|
+
this.internalService.dbClickHandler(e.item.data.data());
|
177
228
|
}
|
178
229
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
179
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerViewComponent, isStandalone: false, selector: "ax-file-explorer-view", inputs: { dataCallBack: { classPropertyName: "dataCallBack", publicName: "dataCallBack", isSignal: true, isRequired:
|
230
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileExplorerViewComponent, isStandalone: false, selector: "ax-file-explorer-view", inputs: { dataCallBack: { classPropertyName: "dataCallBack", publicName: "dataCallBack", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "contextMenu", first: true, predicate: AXContextMenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-content select=\"ax-file-explorer-header\"></ng-content>\n\n<div [ngClass]=\"internalService.viewMode()\" class=\"ax-file-container\">\n @for (item of internalService.showData(); track item.id) {\n <ax-file-explorer-item\n id=\"ax-file-explore-item-ref\"\n (dbClick)=\"internalService.dbClickHandler(item)\"\n [data]=\"item\"\n [viewMode]=\"internalService.viewMode()\"\n ></ax-file-explorer-item>\n }\n</div>\n<ax-context-menu\n target=\"#ax-file-explore-item-ref\"\n orientation=\"vertical\"\n (onOpening)=\"handleContextMenuOpening($event)\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n>\n</ax-context-menu>\n", styles: ["ax-file-explorer-view{flex-grow:1;overflow:hidden}ax-file-explorer-view .ax-file-container.ax-large-icon,ax-file-explorer-view .ax-file-container.ax-small-icon{display:flex;flex-wrap:wrap;padding:.5rem;overflow:auto;gap:.6rem}ax-file-explorer-view .ax-file-container.ax-list-icon{overflow:auto;height:100%;padding:.5rem}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i6.AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening"] }, { kind: "component", type: AXFileExplorerItemComponent, selector: "ax-file-explorer-item", inputs: ["data", "viewMode"], outputs: ["dbClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
180
231
|
}
|
181
232
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerViewComponent, decorators: [{
|
182
233
|
type: Component,
|
183
|
-
args: [{ selector: 'ax-file-explorer-view', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<
|
234
|
+
args: [{ selector: 'ax-file-explorer-view', standalone: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"ax-file-explorer-header\"></ng-content>\n\n<div [ngClass]=\"internalService.viewMode()\" class=\"ax-file-container\">\n @for (item of internalService.showData(); track item.id) {\n <ax-file-explorer-item\n id=\"ax-file-explore-item-ref\"\n (dbClick)=\"internalService.dbClickHandler(item)\"\n [data]=\"item\"\n [viewMode]=\"internalService.viewMode()\"\n ></ax-file-explorer-item>\n }\n</div>\n<ax-context-menu\n target=\"#ax-file-explore-item-ref\"\n orientation=\"vertical\"\n (onOpening)=\"handleContextMenuOpening($event)\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n>\n</ax-context-menu>\n", styles: ["ax-file-explorer-view{flex-grow:1;overflow:hidden}ax-file-explorer-view .ax-file-container.ax-large-icon,ax-file-explorer-view .ax-file-container.ax-small-icon{display:flex;flex-wrap:wrap;padding:.5rem;overflow:auto;gap:.6rem}ax-file-explorer-view .ax-file-container.ax-list-icon{overflow:auto;height:100%;padding:.5rem}\n"] }]
|
184
235
|
}] });
|
185
236
|
|
186
237
|
const COMPONENT = [
|
187
238
|
AXFileExplorerContainerComponent,
|
188
239
|
AXFileExplorerViewComponent,
|
189
240
|
AXFileExplorerItemComponent,
|
241
|
+
AXFileExplorerHeaderComponent,
|
242
|
+
AXFileExplorerTreeComponent,
|
190
243
|
];
|
191
|
-
const MODULES = [
|
192
|
-
AXDecoratorModule,
|
193
|
-
AXButtonModule,
|
194
|
-
AXBreadcrumbsModule,
|
195
|
-
CommonModule,
|
196
|
-
AXToolBarModule,
|
197
|
-
AXMenuModule,
|
198
|
-
AXDrawerModule,
|
199
|
-
];
|
244
|
+
const MODULES = [AXDecoratorModule, AXButtonModule, AXBreadcrumbsModule, CommonModule, AXToolBarModule, AXMenuModule, AXDrawerModule, AXTreeViewModule];
|
200
245
|
class AXFileExplorerModule {
|
201
246
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
202
247
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, declarations: [AXFileExplorerContainerComponent,
|
203
248
|
AXFileExplorerViewComponent,
|
204
|
-
AXFileExplorerItemComponent
|
205
|
-
|
206
|
-
AXBreadcrumbsModule,
|
207
|
-
CommonModule,
|
208
|
-
AXToolBarModule,
|
209
|
-
AXMenuModule,
|
210
|
-
AXDrawerModule], exports: [AXFileExplorerContainerComponent,
|
249
|
+
AXFileExplorerItemComponent,
|
250
|
+
AXFileExplorerHeaderComponent,
|
251
|
+
AXFileExplorerTreeComponent], imports: [AXDecoratorModule, AXButtonModule, AXBreadcrumbsModule, CommonModule, AXToolBarModule, AXMenuModule, AXDrawerModule, AXTreeViewModule], exports: [AXFileExplorerContainerComponent,
|
211
252
|
AXFileExplorerViewComponent,
|
212
|
-
AXFileExplorerItemComponent
|
253
|
+
AXFileExplorerItemComponent,
|
254
|
+
AXFileExplorerHeaderComponent,
|
255
|
+
AXFileExplorerTreeComponent] }); }
|
213
256
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, imports: [MODULES] }); }
|
214
257
|
}
|
215
258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileExplorerModule, decorators: [{
|
@@ -226,5 +269,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
226
269
|
* Generated bundle index. Do not edit.
|
227
270
|
*/
|
228
271
|
|
229
|
-
export { AXFileExplorerContainerComponent, AXFileExplorerItemComponent, AXFileExplorerModule, AXFileExplorerService, AXFileExplorerViewComponent };
|
272
|
+
export { AXFileExplorerContainerComponent, AXFileExplorerHeaderComponent, AXFileExplorerItemComponent, AXFileExplorerModule, AXFileExplorerService, AXFileExplorerTreeComponent, AXFileExplorerViewComponent };
|
230
273
|
//# sourceMappingURL=acorex-components-file-explorer.mjs.map
|