@@ -42,7 +42,7 @@ import { all } from './themes/tile.js';
4242import { createTileDragGhost , createTileGhost } from './tile-ghost-util.js' ;
4343import type IgcTileManagerComponent from './tile-manager.js' ;
4444
45- type IgcTileChangeState = {
45+ export type IgcTileChangeState = {
4646 tile : IgcTileComponent ;
4747 state : boolean ;
4848} ;
@@ -75,11 +75,11 @@ export interface IgcTileComponentEventMap {
7575 * @fires igcTileResizeEnd - Fired when a resize operation on a tile is successfully completed.
7676 * @fires igcTileResizeCancel - Fired when a resize operation on a tile is canceled by the user.
7777 *
78+ * @slot - Default slot for the tile's content.
7879 * @slot title - Renders the title of the tile header.
7980 * @slot maximize-action - Renders the maximize action element.
8081 * @slot fullscreen-action - Renders the fullscreen action element.
8182 * @slot actions - Renders items after the default actions.
82- * @slot Default slot for the tile's content.
8383 * @slot side-adorner - Renders the side resize handle.
8484 * @slot corner-adorner - Renders the corner resize handle.
8585 * @slot bottom-adorner - Renders the bottom resize handle.
@@ -222,9 +222,11 @@ export default class IgcTileComponent extends EventEmitterMixin<
222222 * The number of columns the tile will span.
223223 *
224224 * @remarks
225- * Values <= 1 will be coerced to 1.
225+ * When setting a value that is less than 1, it will be
226+ * coerced to 1.
226227 *
227228 * @attr col-span
229+ * @default 1
228230 */
229231 @property ( { type : Number , attribute : 'col-span' } )
230232 public set colSpan ( value : number ) {
@@ -240,9 +242,11 @@ export default class IgcTileComponent extends EventEmitterMixin<
240242 * The number of rows the tile will span.
241243 *
242244 * @remarks
243- * Values <= 1 will be coerced to 1.
245+ * When setting a value that is less than 1, it will be
246+ * coerced to 1.
244247 *
245248 * @attr row-span
249+ * @default 1
246250 */
247251 @property ( { type : Number , attribute : 'row-span' } )
248252 public set rowSpan ( value : number ) {
@@ -318,30 +322,38 @@ export default class IgcTileComponent extends EventEmitterMixin<
318322 }
319323
320324 /**
321- * Indicates whether the tile can be resized.
325+ * Indicates whether to disable tile resize behavior regardless
326+ * ot its tile manager parent settings.
327+ *
322328 * @attr disable-resize
329+ * @default false
323330 */
324331 @property ( { type : Boolean , reflect : true , attribute : 'disable-resize' } )
325332 public disableResize = false ;
326333
327334 /**
328- * Indicates whether the fullscreen action is displayed.
335+ * Whether to disable the rendering of the tile `fullscreen-action` slot and its
336+ * default fullscreen action button.
337+ *
329338 * @attr disable-fullscreen
339+ * @default false
330340 */
331341 @property ( { type : Boolean , reflect : true , attribute : 'disable-fullscreen' } )
332342 public disableFullscreen = false ;
333343
334344 /**
335- * Indicates whether the maximize action is displayed.
345+ * Whether to disable the rendering of the tile `maximize-action` slot and its
346+ * default maximize action button.
347+ *
336348 * @attr disable-maximize
349+ * @default false
337350 */
338351 @property ( { type : Boolean , reflect : true , attribute : 'disable-maximize' } )
339352 public disableMaximize = false ;
340353
341354 /**
342355 * Gets/sets the tile's visual position in the layout.
343- *
344- * Corresponds to the CSS order property.
356+ * Corresponds to the CSS `order` property.
345357 *
346358 * @attr position
347359 */
@@ -595,21 +607,28 @@ export default class IgcTileComponent extends EventEmitterMixin<
595607 this . disableMaximize &&
596608 this . disableFullscreen ;
597609
610+ const hasMaximizeSlot = ! ( this . disableMaximize || this . fullscreen ) ;
611+ const hasFullscreenSlot = ! this . disableFullscreen ;
612+
598613 return html `
599614 < section part ="header " ?hidden =${ hideHeader } ${ ref ( this . _headerRef ) } >
600615 < header part ="title ">
601616 < slot name ="title "> </ slot >
602617 </ header >
603618 < section id ="tile-actions " part ="actions ">
604- ${ ! this . disableMaximize && ! this . fullscreen
605- ? html `< slot name ="maximize-action "
606- > ${ this . _renderDefaultAction ( 'maximize' ) } </ slot
607- > `
619+ ${ hasMaximizeSlot
620+ ? html `
621+ < slot name ="maximize-action ">
622+ ${ this . _renderDefaultAction ( 'maximize' ) }
623+ </ slot >
624+ `
608625 : nothing }
609- ${ ! this . disableFullscreen
610- ? html `< slot name ="fullscreen-action "
611- > ${ this . _renderDefaultAction ( 'fullscreen' ) } </ slot
612- > `
626+ ${ hasFullscreenSlot
627+ ? html `
628+ < slot name ="fullscreen-action ">
629+ ${ this . _renderDefaultAction ( 'fullscreen' ) }
630+ </ slot >
631+ `
613632 : nothing }
614633
615634 < slot name ="actions "> </ slot >
0 commit comments