apex-grid 4.0.0-beta.1 → 4.0.0-beta.2
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/CHANGELOG.md +66 -0
- package/LICENSE.md +2 -1
- package/README.md +39 -6
- package/components/grid.d.ts +40 -15
- package/components/grid.js +18 -0
- package/components/grid.js.map +1 -1
- package/controllers/state.d.ts +0 -5
- package/controllers/state.js +0 -4
- package/controllers/state.js.map +1 -1
- package/custom-elements.json +248 -14
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/ApexGrid.html +53 -25
- package/docs/classes/ApexGridPaginator.html +1 -1
- package/docs/classes/ApexGridToolbar.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +39 -6
- package/docs/interfaces/BaseApexCellContext.html +1 -1
- package/docs/interfaces/BaseApexEditorContext.html +1 -1
- package/docs/interfaces/CSVExportOptions.html +1 -1
- package/docs/interfaces/ExportOptions.html +1 -1
- package/docs/interfaces/PaginationState.html +1 -1
- package/docs/media/_token-values.scss +42 -16
- package/docs/media/package.json +6 -1
- package/ignite-ui.d.ts +1 -0
- package/ignite-ui.js +4 -0
- package/ignite-ui.js.map +1 -0
- package/internal/design-system.d.ts +32 -0
- package/internal/design-system.js +66 -0
- package/internal/design-system.js.map +1 -0
- package/internal/icons.d.ts +2 -16
- package/internal/icons.js +0 -8
- package/internal/icons.js.map +1 -1
- package/internal/ignite-ui.d.ts +10 -0
- package/internal/ignite-ui.js +118 -0
- package/internal/ignite-ui.js.map +1 -0
- package/internal/index.d.ts +2 -0
- package/internal/index.js +1 -0
- package/internal/index.js.map +1 -1
- package/package.json +6 -1
- package/styles/_token-blocks.css.d.ts +1 -0
- package/styles/_token-blocks.css.js +3 -0
- package/styles/_token-blocks.css.js.map +1 -0
- package/styles/_tokens.css.js +1 -1
- package/styles/_tokens.css.js.map +1 -1
- package/styles/document-tokens.css.js +1 -1
- package/styles/document-tokens.css.js.map +1 -1
- package/styles/grid/_grid.base.css.js +1 -1
- package/styles/grid/_grid.base.css.js.map +1 -1
- package/styles/grid/grid.css.js +1 -1
- package/styles/grid/grid.css.js.map +1 -1
- package/styles/ignite-ui/ignite-ui-dark.css.d.ts +1 -0
- package/styles/ignite-ui/ignite-ui-dark.css.js +3 -0
- package/styles/ignite-ui/ignite-ui-dark.css.js.map +1 -0
- package/styles/ignite-ui/ignite-ui-document.css.d.ts +1 -0
- package/styles/ignite-ui/ignite-ui-document.css.js +3 -0
- package/styles/ignite-ui/ignite-ui-document.css.js.map +1 -0
- package/styles/ignite-ui/ignite-ui.css.d.ts +1 -0
- package/styles/ignite-ui/ignite-ui.css.js +3 -0
- package/styles/ignite-ui/ignite-ui.css.js.map +1 -0
- package/tokens.css +14 -15
package/controllers/state.d.ts
CHANGED
|
@@ -70,11 +70,6 @@ export declare class StateController<T extends object> implements ReactiveContro
|
|
|
70
70
|
get scrollContainer(): import("../components/virtualizer.js").default;
|
|
71
71
|
get paginator(): import("../index.js").ApexGridPaginator<T>;
|
|
72
72
|
get toolbar(): import("../index.js").ApexGridToolbar<T>;
|
|
73
|
-
/**
|
|
74
|
-
* Cumulative pin offsets (in px) keyed by column key. Populated by the
|
|
75
|
-
* {@link GridDOMController} after each layout.
|
|
76
|
-
*/
|
|
77
|
-
get pinOffsets(): Map<unknown, number>;
|
|
78
73
|
constructor(host: GridHost<T>, extraModules?: ReadonlyArray<GridFeatureModule<T>>);
|
|
79
74
|
protected init(): void;
|
|
80
75
|
/**
|
package/controllers/state.js
CHANGED
|
@@ -50,10 +50,6 @@ export class StateController {
|
|
|
50
50
|
get toolbar() {
|
|
51
51
|
return this.host.toolbar;
|
|
52
52
|
}
|
|
53
|
-
get pinOffsets() {
|
|
54
|
-
const dom = this.host.DOM;
|
|
55
|
-
return dom?.pinOffsets ?? new Map();
|
|
56
|
-
}
|
|
57
53
|
constructor(host, extraModules = []) {
|
|
58
54
|
this.host = host;
|
|
59
55
|
this.extraModules = extraModules;
|
package/controllers/state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/controllers/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAKL,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,GAMrB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,OAAO,eAAe;IA6B1B,cAAc,CAAK;IAOZ,eAAe,CAAC,OAAe;QACpC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,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Context } from '@lit/context';\nimport type { ReactiveController } from 'lit';\nimport type { GridLocaleKey, LocaleParams } from '../i18n/index.js';\nimport {\n type CellDecoration,\n type CellDecoratorContext,\n type CellInteraction,\n type GridFeatureModule,\n isCellDecorator,\n isCellInteractionHandler,\n isColumnMenuProvider,\n isCoordinateLabeler,\n isRowAriaProvider,\n isRowPresenter,\n isRowTransformer,\n isSerializableModule,\n type PresentedRow,\n type RowAria,\n type RowAriaProvider,\n type RowPresenterContext,\n type RowTransformer,\n} from '../internal/feature-module.js';\nimport type { ActiveNode, ColumnConfiguration, GridHost } from '../internal/types.js';\nimport { isNumericColumn } from '../internal/utils.js';\nimport { EditingController } from './editing.js';\nimport { ExpansionController } from './expansion.js';\nimport { FilterController } from './filter.js';\nimport { HistoryController } from './history.js';\nimport { NavigationController } from './navigation.js';\nimport { PaginationController } from './pagination.js';\nimport { ReorderController } from './reorder.js';\nimport { ResizeController } from './resize.js';\nimport { RowPinController } from './row-pin.js';\nimport { RowReorderController } from './row-reorder.js';\nimport { SelectionController } from './selection.js';\nimport { SortController } from './sort.js';\nimport { TreeController } from './tree.js';\n\nexport class StateController<T extends object> implements ReactiveController {\n public sorting!: SortController<T>;\n public filtering!: FilterController<T>;\n public navigation!: NavigationController<T>;\n public resizing!: ResizeController<T>;\n public pagination!: PaginationController<T>;\n public reordering!: ReorderController<T>;\n public editing!: EditingController<T>;\n public history!: HistoryController<T>;\n public selection!: SelectionController<T>;\n public expansion!: ExpansionController<T>;\n public tree!: TreeController<T>;\n public rowPin!: RowPinController<T>;\n public rowReorder!: RowReorderController<T>;\n\n /**\n * Optional feature controllers contributed by {@link GridFeatureModule}s,\n * keyed by module id. Empty for the community `<apex-grid>` element; populated\n * by derived grids (e.g. `@apexcharts/grid-enterprise`) that pass modules to\n * the constructor.\n */\n public readonly modules = new Map<string, ReactiveController>();\n\n /**\n * Current message in the grid's polite live region. Bound by the host's\n * `renderLiveRegion()` template; mutated through {@link setAnnouncement}\n * so screen readers re-announce on every change.\n */\n public announcement = '';\n #announceToken = 0;\n\n /**\n * Updates the polite live region's text. Repeats are forced to fire by\n * appending a zero-width space — screen readers ignore unchanged content,\n * so two identical sort announcements wouldn't otherwise be read aloud.\n */\n public setAnnouncement(message: string): void {\n if (!message) {\n this.announcement = '';\n this.host.requestUpdate();\n return;\n }\n this.#announceToken = (this.#announceToken + 1) % 2;\n // Escaped on purpose: a literal zero-width space is invisible in review\n // and an ordinary space would be collapsed out of the accessible text.\n this.announcement = this.#announceToken ? message : `${message}\\u200B`;\n this.host.requestUpdate();\n }\n\n /**\n * Resolves a built-in locale key to its display string, honoring the host\n * grid's {@link ApexGrid.localeText} overrides. Thin proxy to\n * {@link ApexGrid.localize} so components can localize via `this.state`.\n */\n public localize(key: GridLocaleKey, params?: LocaleParams, fallback?: string): string {\n return this.host.localize(key, params, fallback);\n }\n\n /**\n * Whether `column` holds numbers (`'number'`, `'currency'`, `'rating'`,\n * `'progress'`), so it filters with the number operands and a numeric term.\n * The one numeric-type rule the core filter applies; features that classify\n * columns should read it here rather than keep their own list.\n */\n public isNumericColumn(column: Pick<ColumnConfiguration<T>, 'type'>): boolean {\n return isNumericColumn(column);\n }\n\n public get active() {\n return this.navigation.active;\n }\n\n public set active(node: ActiveNode<T>) {\n this.navigation.active = node;\n }\n\n public get headerRow() {\n // @ts-expect-error - Protected member access\n return this.host.headerRow;\n }\n\n public get scrollContainer() {\n // @ts-expect-error - Protected member access\n return this.host.scrollContainer;\n }\n\n public get paginator() {\n // @ts-expect-error - Protected member access\n return this.host.paginator;\n }\n\n public get toolbar() {\n // @ts-expect-error - Protected member access\n return this.host.toolbar;\n }\n\n /**\n * Cumulative pin offsets (in px) keyed by column key. Populated by the\n * {@link GridDOMController} after each layout.\n */\n public get pinOffsets(): Map<unknown, number> {\n // @ts-expect-error - Protected member access\n const dom = this.host.DOM as { pinOffsets?: Map<unknown, number> } | undefined;\n return dom?.pinOffsets ?? new Map();\n }\n\n constructor(\n public host: GridHost<T>,\n private extraModules: ReadonlyArray<GridFeatureModule<T>> = []\n ) {\n this.host.addController(this);\n this.init();\n }\n\n protected init() {\n this.sorting = new SortController(this.host);\n this.filtering = new FilterController(this.host);\n this.navigation = new NavigationController(this.host);\n this.resizing = new ResizeController(this.host);\n this.pagination = new PaginationController(this.host);\n this.reordering = new ReorderController(this.host);\n this.history = new HistoryController(this.host);\n this.editing = new EditingController(this.host, this.history);\n this.selection = new SelectionController(this.host);\n this.expansion = new ExpansionController(this.host);\n this.tree = new TreeController(this.host);\n this.rowPin = new RowPinController(this.host);\n this.rowReorder = new RowReorderController(this.host);\n\n for (const module of this.extraModules) {\n if (this.modules.has(module.id)) continue;\n this.modules.set(module.id, module.create(this.host, this));\n }\n\n // Resolve the row transforms once, in their declared order. Array sort is\n // stable, so equal (or unset) orders keep registration order.\n if (this.modules.size) {\n const transformers: RowTransformer<T>[] = [];\n for (const controller of this.modules.values()) {\n if (isRowTransformer<T>(controller)) transformers.push(controller);\n }\n transformers.sort((a, b) => (a.transformOrder ?? 0) - (b.transformOrder ?? 0));\n this.#transformers = transformers;\n this.#synthesizers = transformers.filter((t) => typeof t.isSyntheticRow === 'function');\n }\n }\n\n /** {@link RowTransformer}s sorted by `transformOrder`. Empty for the community grid. */\n #transformers: ReadonlyArray<RowTransformer<T>> = [];\n /** The transformers that can synthesize rows. Empty for the community grid. */\n #synthesizers: ReadonlyArray<RowTransformer<T>> = [];\n\n /** The controllers each hook guard matched, keyed by the guard. */\n #hooks = new Map<unknown, unknown[]>();\n\n /**\n * The module controllers implementing a hook, in registration order. The\n * module set is fixed once {@link init} returns (modules are passed to the\n * constructor only), so each hook's list is resolved on first use and the\n * per-row and per-cell dispatchers walk it instead of guarding every module.\n */\n #withHook<C>(guard: (controller: unknown) => controller is C): C[] {\n let list = this.#hooks.get(guard);\n if (!list) {\n list = [...this.modules.values()].filter(guard);\n this.#hooks.set(guard, list);\n }\n return list as C[];\n }\n\n /**\n * Look up a feature controller contributed by a {@link GridFeatureModule},\n * by its module id. Returns `undefined` when no such module is registered.\n */\n public module<C extends ReactiveController>(id: string): C | undefined {\n return this.modules.get(id) as C | undefined;\n }\n\n /**\n * Runs the post-pipeline row transforms contributed by feature modules\n * implementing {@link RowTransformer}, in ascending\n * {@link RowTransformer.transformOrder} (registration order breaks ties).\n * Returns the input unchanged when no such module is registered, so the\n * community grid path is a no-op pass-through.\n */\n public applyModuleTransforms(rows: T[]): T[] {\n let result = rows;\n for (const transformer of this.#transformers) {\n result = transformer.processRows(result);\n }\n return result;\n }\n\n /**\n * Whether `row` is a data record, as opposed to a row a feature module\n * synthesized into the view (a group header, a grand-total row). Every\n * consumer that treats the view as records (selection, export, paste, charts,\n * keyboard actions) should skip rows for which this is `false`. A row is\n * synthetic when any {@link RowTransformer} claims it through\n * {@link RowTransformer.isSyntheticRow}. Always `true` for the community grid,\n * which registers no modules, at the cost of one length check.\n */\n public isDataRow(row: T): boolean {\n for (const transformer of this.#synthesizers) {\n if (transformer.isSyntheticRow!(row)) return false;\n }\n return true;\n }\n\n /**\n * The data records of `rows` (see {@link isDataRow}), in order. Returns `rows`\n * itself, not a copy, when no module synthesizes rows (the community grid).\n */\n public dataRows(rows: ReadonlyArray<T>): ReadonlyArray<T> {\n if (this.#synthesizers.length === 0) return rows;\n return rows.filter((row) => this.isDataRow(row));\n }\n\n /**\n * Every data record `rows` (a view) covers, in order: its data rows plus the\n * records a synthesized row hides through\n * {@link RowTransformer.hiddenRecords} (a collapsed group's leaves). This is\n * what Select all selects and a `'view'` export writes. Returns `rows`\n * itself when no module synthesizes rows (the community grid).\n */\n public viewRecords(rows: ReadonlyArray<T>): ReadonlyArray<T> {\n if (this.#synthesizers.length === 0) return rows;\n const out: T[] = [];\n for (const row of rows) {\n if (this.isDataRow(row)) {\n out.push(row);\n continue;\n }\n for (const transformer of this.#synthesizers) {\n const hidden = transformer.hiddenRecords?.(row);\n if (!hidden?.length) continue;\n // A loop, not push(...hidden): a collapsed group can hold more leaves\n // than the engine accepts as call arguments.\n for (const record of hidden) out.push(record);\n break;\n }\n }\n return out;\n }\n\n /**\n * Asks feature modules implementing {@link RowPresenter} whether they render\n * the given row as full-width custom content (e.g. a group header). Returns\n * the first non-null result, or `null` when no module owns the row.\n */\n public presentRow(row: T, ctx: RowPresenterContext<T>): PresentedRow | null {\n for (const controller of this.#withHook(isRowPresenter<T>)) {\n const presented = controller.presentRow(row, ctx);\n if (presented) return presented;\n }\n return null;\n }\n\n /**\n * Columns in the `aria-colindex` sequence: the visible columns plus the\n * selection and expansion chrome columns. Shared by `aria-colcount` and the\n * cells that span a whole row.\n */\n public get colCount(): number {\n return (\n this.host.columns.filter((column) => !column.hidden).length +\n (this.selection.showCheckboxColumn ? 1 : 0) +\n (this.expansion.showToggleColumn ? 1 : 0)\n );\n }\n\n /**\n * Whether rows carry tree semantics (`aria-level` / `aria-expanded`), which\n * only a `treegrid` supports: the core tree, master-detail, or a feature\n * module that reports {@link RowPresenter.hierarchical} (row grouping, a\n * pivot tree, server-side groups). The grid role is read from here.\n */\n public get hierarchical(): boolean {\n // Master-detail rows can expand once there is a detail to show.\n if (this.tree.enabled || (this.expansion.enabled && this.host.expansion?.detailTemplate)) {\n return true;\n }\n for (const controller of this.modules.values()) {\n if ((controller as RowAriaProvider<T>).hierarchical) return true;\n }\n return false;\n }\n\n /**\n * Asks feature modules implementing {@link RowAriaProvider} for ARIA\n * tree/expansion semantics on a normal (cell-rendered) row — e.g. pivoting's\n * expandable parent rows. Returns the first non-null result, or `null`.\n */\n public describeRow(row: T, ctx: RowPresenterContext<T>): RowAria | null {\n for (const controller of this.#withHook(isRowAriaProvider<T>)) {\n const aria = controller.describeRow(row, ctx);\n if (aria) return aria;\n }\n return null;\n }\n\n /**\n * The coordinate-hint label a module gives a row ({@link CoordinateLabeler}),\n * `null` for none, or `undefined` when no module labels rows (the gutter then\n * shows the view position). Only asked while `coordinateHints` is on.\n */\n public rowCoordinate(row: T): string | null | undefined {\n for (const controller of this.#withHook(isCoordinateLabeler<T>)) {\n const label = controller.rowCoordinate(row);\n if (label !== undefined) return label;\n }\n return undefined;\n }\n\n /** The coordinate-hint letter a module gives a column; see {@link rowCoordinate}. */\n public columnCoordinate(key: string): string | null | undefined {\n for (const controller of this.#withHook(isCoordinateLabeler<T>)) {\n const label = controller.columnCoordinate(key);\n if (label !== undefined) return label;\n }\n return undefined;\n }\n\n /**\n * Monotonic token bumped by {@link bumpDecoration} whenever module-driven cell\n * decoration changes. Forwarded down to each cell as a reactive property so a\n * decoration-only change (e.g. dragging a selection range) re-decorates cells\n * without re-running the data pipeline. Always `0` for the community grid.\n */\n #decorationVersion = 0;\n\n public get decorationVersion(): number {\n return this.#decorationVersion;\n }\n\n /**\n * Monotonic token the grid bumps once per data pipeline run, forwarded to\n * each body row and cell, so a cell whose output reads more than its own\n * value (a `cellTemplate` reading other row fields, the tree group cell's\n * chevron) re-renders after an edit, a data change or a tree toggle,\n * although its own value binding did not change.\n */\n public dataVersion = 0;\n\n /**\n * Signals that {@link CellDecorator} output may have changed. Bumps the\n * {@link decorationVersion} and requests a host update so cells re-run their\n * decoration. Called by feature modules after mutating decoration state.\n */\n public bumpDecoration(): void {\n this.#decorationVersion += 1;\n this.host.requestUpdate();\n }\n\n /**\n * Whether any feature module implementing {@link ColumnMenuProvider} offers a\n * column header menu. The header uses this to show its kebab button even on\n * columns that are neither sortable nor resizable, so a module (the enterprise\n * context menu) can surface pin / hide / group / chart actions. Always `false`\n * for the community grid (no modules).\n */\n public get hasColumnMenu(): boolean {\n return this.#withHook(isColumnMenuProvider).some((controller) =>\n controller.providesColumnMenu()\n );\n }\n\n /**\n * Whether any feature module implements {@link CellDecorator}, so a cell can\n * skip decoration altogether when none does (the community grid).\n */\n public get hasCellDecorators(): boolean {\n return this.#withHook(isCellDecorator).length > 0;\n }\n\n /**\n * Collects per-cell decoration contributed by feature modules implementing\n * {@link CellDecorator}, merging their attribute maps (later modules win on a\n * key clash). Returns `null` when no module decorates the cell — the community\n * grid path, where each cell applies nothing.\n */\n public decorateCell(ctx: CellDecoratorContext<T>): CellDecoration | null {\n let attributes: Record<string, string | null | undefined> | null = null;\n for (const controller of this.#withHook(isCellDecorator<T>)) {\n const decoration = controller.decorateCell(ctx);\n if (decoration) {\n attributes ??= {};\n Object.assign(attributes, decoration.attributes);\n }\n }\n return attributes ? { attributes } : null;\n }\n\n /**\n * Forwards a body-cell pointer interaction to every feature module that\n * implements {@link CellInteractionHandler}. No-op for the community grid\n * (no modules); the grid only calls this when modules are registered.\n */\n public handleCellInteraction(interaction: CellInteraction<T>): void {\n for (const controller of this.#withHook(isCellInteractionHandler<T>)) {\n controller.handleCellInteraction(interaction);\n }\n }\n\n /**\n * Collects per-module snapshot state from feature controllers implementing\n * {@link SerializableModule}, keyed by module id. Returns an empty object for\n * the community grid (no modules). Used by `ApexGrid.getState`.\n */\n public serializeModuleState(): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const [id, controller] of this.modules) {\n if (isSerializableModule(controller)) {\n out[id] = controller.serializeState();\n }\n }\n return out;\n }\n\n /**\n * Dispatches previously-serialized state back to the matching feature modules\n * (by id) that implement {@link SerializableModule}, in registration order.\n * Returns the ids in `data` that no registered module consumed, so the caller\n * can report them instead of counting them as applied. Used by\n * `ApexGrid.setState`.\n */\n public restoreModuleState(data: Record<string, unknown> | undefined): string[] {\n if (!data) return [];\n for (const [id, controller] of this.modules) {\n if (isSerializableModule(controller) && Object.hasOwn(data, id)) {\n controller.restoreState(data[id]);\n }\n }\n return Object.keys(data).filter((id) => !isSerializableModule(this.modules.get(id)));\n }\n\n public hostConnected() {}\n\n public hostUpdate(): void {\n this.headerRow?.requestUpdate();\n this.scrollContainer?.requestUpdate();\n this.paginator?.requestUpdate();\n this.toolbar?.requestUpdate();\n }\n}\n\nexport const gridStateContext = createContext<StateController<any>>('gridStateController');\n"]}
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/controllers/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAA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C;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IASM,kBAAkB,CAAC,IAAyC;QACjE,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,KAAK,MAAM,CAAC,EAAE,EAAE,UAAU,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC5C,IAAI,oBAAoB,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC;gBAChE,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACvF,CAAC;IAEM,aAAa,KAAI,CAAC;IAElB,UAAU;QACf,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,CAAC;QAChC,IAAI,CAAC,eAAe,EAAE,aAAa,EAAE,CAAC;QACtC,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,CAAC;QAChC,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;IAChC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAuB,qBAAqB,CAAC,CAAC","sourcesContent":["import { createContext } from '@lit/context';\nimport type { ReactiveController } from 'lit';\nimport type { GridLocaleKey, LocaleParams } from '../i18n/index.js';\nimport {\n type CellDecoration,\n type CellDecoratorContext,\n type CellInteraction,\n type GridFeatureModule,\n isCellDecorator,\n isCellInteractionHandler,\n isColumnMenuProvider,\n isCoordinateLabeler,\n isRowAriaProvider,\n isRowPresenter,\n isRowTransformer,\n isSerializableModule,\n type PresentedRow,\n type RowAria,\n type RowAriaProvider,\n type RowPresenterContext,\n type RowTransformer,\n} from '../internal/feature-module.js';\nimport type { ActiveNode, ColumnConfiguration, GridHost } from '../internal/types.js';\nimport { isNumericColumn } from '../internal/utils.js';\nimport { EditingController } from './editing.js';\nimport { ExpansionController } from './expansion.js';\nimport { FilterController } from './filter.js';\nimport { HistoryController } from './history.js';\nimport { NavigationController } from './navigation.js';\nimport { PaginationController } from './pagination.js';\nimport { ReorderController } from './reorder.js';\nimport { ResizeController } from './resize.js';\nimport { RowPinController } from './row-pin.js';\nimport { RowReorderController } from './row-reorder.js';\nimport { SelectionController } from './selection.js';\nimport { SortController } from './sort.js';\nimport { TreeController } from './tree.js';\n\nexport class StateController<T extends object> implements ReactiveController {\n public sorting!: SortController<T>;\n public filtering!: FilterController<T>;\n public navigation!: NavigationController<T>;\n public resizing!: ResizeController<T>;\n public pagination!: PaginationController<T>;\n public reordering!: ReorderController<T>;\n public editing!: EditingController<T>;\n public history!: HistoryController<T>;\n public selection!: SelectionController<T>;\n public expansion!: ExpansionController<T>;\n public tree!: TreeController<T>;\n public rowPin!: RowPinController<T>;\n public rowReorder!: RowReorderController<T>;\n\n /**\n * Optional feature controllers contributed by {@link GridFeatureModule}s,\n * keyed by module id. Empty for the community `<apex-grid>` element; populated\n * by derived grids (e.g. `@apexcharts/grid-enterprise`) that pass modules to\n * the constructor.\n */\n public readonly modules = new Map<string, ReactiveController>();\n\n /**\n * Current message in the grid's polite live region. Bound by the host's\n * `renderLiveRegion()` template; mutated through {@link setAnnouncement}\n * so screen readers re-announce on every change.\n */\n public announcement = '';\n #announceToken = 0;\n\n /**\n * Updates the polite live region's text. Repeats are forced to fire by\n * appending a zero-width space — screen readers ignore unchanged content,\n * so two identical sort announcements wouldn't otherwise be read aloud.\n */\n public setAnnouncement(message: string): void {\n if (!message) {\n this.announcement = '';\n this.host.requestUpdate();\n return;\n }\n this.#announceToken = (this.#announceToken + 1) % 2;\n // Escaped on purpose: a literal zero-width space is invisible in review\n // and an ordinary space would be collapsed out of the accessible text.\n this.announcement = this.#announceToken ? message : `${message}\\u200B`;\n this.host.requestUpdate();\n }\n\n /**\n * Resolves a built-in locale key to its display string, honoring the host\n * grid's {@link ApexGrid.localeText} overrides. Thin proxy to\n * {@link ApexGrid.localize} so components can localize via `this.state`.\n */\n public localize(key: GridLocaleKey, params?: LocaleParams, fallback?: string): string {\n return this.host.localize(key, params, fallback);\n }\n\n /**\n * Whether `column` holds numbers (`'number'`, `'currency'`, `'rating'`,\n * `'progress'`), so it filters with the number operands and a numeric term.\n * The one numeric-type rule the core filter applies; features that classify\n * columns should read it here rather than keep their own list.\n */\n public isNumericColumn(column: Pick<ColumnConfiguration<T>, 'type'>): boolean {\n return isNumericColumn(column);\n }\n\n public get active() {\n return this.navigation.active;\n }\n\n public set active(node: ActiveNode<T>) {\n this.navigation.active = node;\n }\n\n public get headerRow() {\n // @ts-expect-error - Protected member access\n return this.host.headerRow;\n }\n\n public get scrollContainer() {\n // @ts-expect-error - Protected member access\n return this.host.scrollContainer;\n }\n\n public get paginator() {\n // @ts-expect-error - Protected member access\n return this.host.paginator;\n }\n\n public get toolbar() {\n // @ts-expect-error - Protected member access\n return this.host.toolbar;\n }\n\n constructor(\n public host: GridHost<T>,\n private extraModules: ReadonlyArray<GridFeatureModule<T>> = []\n ) {\n this.host.addController(this);\n this.init();\n }\n\n protected init() {\n this.sorting = new SortController(this.host);\n this.filtering = new FilterController(this.host);\n this.navigation = new NavigationController(this.host);\n this.resizing = new ResizeController(this.host);\n this.pagination = new PaginationController(this.host);\n this.reordering = new ReorderController(this.host);\n this.history = new HistoryController(this.host);\n this.editing = new EditingController(this.host, this.history);\n this.selection = new SelectionController(this.host);\n this.expansion = new ExpansionController(this.host);\n this.tree = new TreeController(this.host);\n this.rowPin = new RowPinController(this.host);\n this.rowReorder = new RowReorderController(this.host);\n\n for (const module of this.extraModules) {\n if (this.modules.has(module.id)) continue;\n this.modules.set(module.id, module.create(this.host, this));\n }\n\n // Resolve the row transforms once, in their declared order. Array sort is\n // stable, so equal (or unset) orders keep registration order.\n if (this.modules.size) {\n const transformers: RowTransformer<T>[] = [];\n for (const controller of this.modules.values()) {\n if (isRowTransformer<T>(controller)) transformers.push(controller);\n }\n transformers.sort((a, b) => (a.transformOrder ?? 0) - (b.transformOrder ?? 0));\n this.#transformers = transformers;\n this.#synthesizers = transformers.filter((t) => typeof t.isSyntheticRow === 'function');\n }\n }\n\n /** {@link RowTransformer}s sorted by `transformOrder`. Empty for the community grid. */\n #transformers: ReadonlyArray<RowTransformer<T>> = [];\n /** The transformers that can synthesize rows. Empty for the community grid. */\n #synthesizers: ReadonlyArray<RowTransformer<T>> = [];\n\n /** The controllers each hook guard matched, keyed by the guard. */\n #hooks = new Map<unknown, unknown[]>();\n\n /**\n * The module controllers implementing a hook, in registration order. The\n * module set is fixed once {@link init} returns (modules are passed to the\n * constructor only), so each hook's list is resolved on first use and the\n * per-row and per-cell dispatchers walk it instead of guarding every module.\n */\n #withHook<C>(guard: (controller: unknown) => controller is C): C[] {\n let list = this.#hooks.get(guard);\n if (!list) {\n list = [...this.modules.values()].filter(guard);\n this.#hooks.set(guard, list);\n }\n return list as C[];\n }\n\n /**\n * Look up a feature controller contributed by a {@link GridFeatureModule},\n * by its module id. Returns `undefined` when no such module is registered.\n */\n public module<C extends ReactiveController>(id: string): C | undefined {\n return this.modules.get(id) as C | undefined;\n }\n\n /**\n * Runs the post-pipeline row transforms contributed by feature modules\n * implementing {@link RowTransformer}, in ascending\n * {@link RowTransformer.transformOrder} (registration order breaks ties).\n * Returns the input unchanged when no such module is registered, so the\n * community grid path is a no-op pass-through.\n */\n public applyModuleTransforms(rows: T[]): T[] {\n let result = rows;\n for (const transformer of this.#transformers) {\n result = transformer.processRows(result);\n }\n return result;\n }\n\n /**\n * Whether `row` is a data record, as opposed to a row a feature module\n * synthesized into the view (a group header, a grand-total row). Every\n * consumer that treats the view as records (selection, export, paste, charts,\n * keyboard actions) should skip rows for which this is `false`. A row is\n * synthetic when any {@link RowTransformer} claims it through\n * {@link RowTransformer.isSyntheticRow}. Always `true` for the community grid,\n * which registers no modules, at the cost of one length check.\n */\n public isDataRow(row: T): boolean {\n for (const transformer of this.#synthesizers) {\n if (transformer.isSyntheticRow!(row)) return false;\n }\n return true;\n }\n\n /**\n * The data records of `rows` (see {@link isDataRow}), in order. Returns `rows`\n * itself, not a copy, when no module synthesizes rows (the community grid).\n */\n public dataRows(rows: ReadonlyArray<T>): ReadonlyArray<T> {\n if (this.#synthesizers.length === 0) return rows;\n return rows.filter((row) => this.isDataRow(row));\n }\n\n /**\n * Every data record `rows` (a view) covers, in order: its data rows plus the\n * records a synthesized row hides through\n * {@link RowTransformer.hiddenRecords} (a collapsed group's leaves). This is\n * what Select all selects and a `'view'` export writes. Returns `rows`\n * itself when no module synthesizes rows (the community grid).\n */\n public viewRecords(rows: ReadonlyArray<T>): ReadonlyArray<T> {\n if (this.#synthesizers.length === 0) return rows;\n const out: T[] = [];\n for (const row of rows) {\n if (this.isDataRow(row)) {\n out.push(row);\n continue;\n }\n for (const transformer of this.#synthesizers) {\n const hidden = transformer.hiddenRecords?.(row);\n if (!hidden?.length) continue;\n // A loop, not push(...hidden): a collapsed group can hold more leaves\n // than the engine accepts as call arguments.\n for (const record of hidden) out.push(record);\n break;\n }\n }\n return out;\n }\n\n /**\n * Asks feature modules implementing {@link RowPresenter} whether they render\n * the given row as full-width custom content (e.g. a group header). Returns\n * the first non-null result, or `null` when no module owns the row.\n */\n public presentRow(row: T, ctx: RowPresenterContext<T>): PresentedRow | null {\n for (const controller of this.#withHook(isRowPresenter<T>)) {\n const presented = controller.presentRow(row, ctx);\n if (presented) return presented;\n }\n return null;\n }\n\n /**\n * Columns in the `aria-colindex` sequence: the visible columns plus the\n * selection and expansion chrome columns. Shared by `aria-colcount` and the\n * cells that span a whole row.\n */\n public get colCount(): number {\n return (\n this.host.columns.filter((column) => !column.hidden).length +\n (this.selection.showCheckboxColumn ? 1 : 0) +\n (this.expansion.showToggleColumn ? 1 : 0)\n );\n }\n\n /**\n * Whether rows carry tree semantics (`aria-level` / `aria-expanded`), which\n * only a `treegrid` supports: the core tree, master-detail, or a feature\n * module that reports {@link RowPresenter.hierarchical} (row grouping, a\n * pivot tree, server-side groups). The grid role is read from here.\n */\n public get hierarchical(): boolean {\n // Master-detail rows can expand once there is a detail to show.\n if (this.tree.enabled || (this.expansion.enabled && this.host.expansion?.detailTemplate)) {\n return true;\n }\n for (const controller of this.modules.values()) {\n if ((controller as RowAriaProvider<T>).hierarchical) return true;\n }\n return false;\n }\n\n /**\n * Asks feature modules implementing {@link RowAriaProvider} for ARIA\n * tree/expansion semantics on a normal (cell-rendered) row — e.g. pivoting's\n * expandable parent rows. Returns the first non-null result, or `null`.\n */\n public describeRow(row: T, ctx: RowPresenterContext<T>): RowAria | null {\n for (const controller of this.#withHook(isRowAriaProvider<T>)) {\n const aria = controller.describeRow(row, ctx);\n if (aria) return aria;\n }\n return null;\n }\n\n /**\n * The coordinate-hint label a module gives a row ({@link CoordinateLabeler}),\n * `null` for none, or `undefined` when no module labels rows (the gutter then\n * shows the view position). Only asked while `coordinateHints` is on.\n */\n public rowCoordinate(row: T): string | null | undefined {\n for (const controller of this.#withHook(isCoordinateLabeler<T>)) {\n const label = controller.rowCoordinate(row);\n if (label !== undefined) return label;\n }\n return undefined;\n }\n\n /** The coordinate-hint letter a module gives a column; see {@link rowCoordinate}. */\n public columnCoordinate(key: string): string | null | undefined {\n for (const controller of this.#withHook(isCoordinateLabeler<T>)) {\n const label = controller.columnCoordinate(key);\n if (label !== undefined) return label;\n }\n return undefined;\n }\n\n /**\n * Monotonic token bumped by {@link bumpDecoration} whenever module-driven cell\n * decoration changes. Forwarded down to each cell as a reactive property so a\n * decoration-only change (e.g. dragging a selection range) re-decorates cells\n * without re-running the data pipeline. Always `0` for the community grid.\n */\n #decorationVersion = 0;\n\n public get decorationVersion(): number {\n return this.#decorationVersion;\n }\n\n /**\n * Monotonic token the grid bumps once per data pipeline run, forwarded to\n * each body row and cell, so a cell whose output reads more than its own\n * value (a `cellTemplate` reading other row fields, the tree group cell's\n * chevron) re-renders after an edit, a data change or a tree toggle,\n * although its own value binding did not change.\n */\n public dataVersion = 0;\n\n /**\n * Signals that {@link CellDecorator} output may have changed. Bumps the\n * {@link decorationVersion} and requests a host update so cells re-run their\n * decoration. Called by feature modules after mutating decoration state.\n */\n public bumpDecoration(): void {\n this.#decorationVersion += 1;\n this.host.requestUpdate();\n }\n\n /**\n * Whether any feature module implementing {@link ColumnMenuProvider} offers a\n * column header menu. The header uses this to show its kebab button even on\n * columns that are neither sortable nor resizable, so a module (the enterprise\n * context menu) can surface pin / hide / group / chart actions. Always `false`\n * for the community grid (no modules).\n */\n public get hasColumnMenu(): boolean {\n return this.#withHook(isColumnMenuProvider).some((controller) =>\n controller.providesColumnMenu()\n );\n }\n\n /**\n * Whether any feature module implements {@link CellDecorator}, so a cell can\n * skip decoration altogether when none does (the community grid).\n */\n public get hasCellDecorators(): boolean {\n return this.#withHook(isCellDecorator).length > 0;\n }\n\n /**\n * Collects per-cell decoration contributed by feature modules implementing\n * {@link CellDecorator}, merging their attribute maps (later modules win on a\n * key clash). Returns `null` when no module decorates the cell — the community\n * grid path, where each cell applies nothing.\n */\n public decorateCell(ctx: CellDecoratorContext<T>): CellDecoration | null {\n let attributes: Record<string, string | null | undefined> | null = null;\n for (const controller of this.#withHook(isCellDecorator<T>)) {\n const decoration = controller.decorateCell(ctx);\n if (decoration) {\n attributes ??= {};\n Object.assign(attributes, decoration.attributes);\n }\n }\n return attributes ? { attributes } : null;\n }\n\n /**\n * Forwards a body-cell pointer interaction to every feature module that\n * implements {@link CellInteractionHandler}. No-op for the community grid\n * (no modules); the grid only calls this when modules are registered.\n */\n public handleCellInteraction(interaction: CellInteraction<T>): void {\n for (const controller of this.#withHook(isCellInteractionHandler<T>)) {\n controller.handleCellInteraction(interaction);\n }\n }\n\n /**\n * Collects per-module snapshot state from feature controllers implementing\n * {@link SerializableModule}, keyed by module id. Returns an empty object for\n * the community grid (no modules). Used by `ApexGrid.getState`.\n */\n public serializeModuleState(): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const [id, controller] of this.modules) {\n if (isSerializableModule(controller)) {\n out[id] = controller.serializeState();\n }\n }\n return out;\n }\n\n /**\n * Dispatches previously-serialized state back to the matching feature modules\n * (by id) that implement {@link SerializableModule}, in registration order.\n * Returns the ids in `data` that no registered module consumed, so the caller\n * can report them instead of counting them as applied. Used by\n * `ApexGrid.setState`.\n */\n public restoreModuleState(data: Record<string, unknown> | undefined): string[] {\n if (!data) return [];\n for (const [id, controller] of this.modules) {\n if (isSerializableModule(controller) && Object.hasOwn(data, id)) {\n controller.restoreState(data[id]);\n }\n }\n return Object.keys(data).filter((id) => !isSerializableModule(this.modules.get(id)));\n }\n\n public hostConnected() {}\n\n public hostUpdate(): void {\n this.headerRow?.requestUpdate();\n this.scrollContainer?.requestUpdate();\n this.paginator?.requestUpdate();\n this.toolbar?.requestUpdate();\n }\n}\n\nexport const gridStateContext = createContext<StateController<any>>('gridStateController');\n"]}
|
package/custom-elements.json
CHANGED
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "javascript-module",
|
|
22
|
+
"path": "src/ignite-ui.ts",
|
|
23
|
+
"declarations": [],
|
|
24
|
+
"exports": []
|
|
25
|
+
},
|
|
20
26
|
{
|
|
21
27
|
"kind": "javascript-module",
|
|
22
28
|
"path": "src/index.ts",
|
|
@@ -1870,7 +1876,7 @@
|
|
|
1870
1876
|
"name": "ApexGrid",
|
|
1871
1877
|
"cssProperties": [
|
|
1872
1878
|
{
|
|
1873
|
-
"description": "Brand color for selection, focus rings, and accents.
|
|
1879
|
+
"description": "Brand color for selection, focus rings, and accents. Falls back to `--apx-accent`, then (with the `apex-grid/ignite-ui` add-on) the Ignite UI primary.",
|
|
1874
1880
|
"name": "--ag-brand"
|
|
1875
1881
|
},
|
|
1876
1882
|
{
|
|
@@ -1974,13 +1980,29 @@
|
|
|
1974
1980
|
"name": "--ag-header-h"
|
|
1975
1981
|
},
|
|
1976
1982
|
{
|
|
1977
|
-
"description": "Outer card corner radius.",
|
|
1983
|
+
"description": "Outer card corner radius. The radii (`--ag-radius`, `-sm`, `-xs`, not the pill) scale with `--apx-radius-factor` while it is set (single lengths only).",
|
|
1978
1984
|
"name": "--ag-radius"
|
|
1979
1985
|
},
|
|
1980
1986
|
{
|
|
1981
|
-
"description": "Grid font family.",
|
|
1987
|
+
"description": "Grid font family. Falls back to `--apx-font-family`, then (with the `apex-grid/ignite-ui` add-on) the Ignite UI `--ig-font-family`.",
|
|
1982
1988
|
"name": "--ag-font"
|
|
1983
1989
|
},
|
|
1990
|
+
{
|
|
1991
|
+
"description": "Background of the enterprise popups (filter builder, set filter, AI panel, tool panel, status bar). Unset, each keeps its built-in colour; set it with `--ag-overlay-text`.",
|
|
1992
|
+
"name": "--ag-overlay"
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"description": "Text color of the enterprise popups; their lines, muted text and hover wash are mixed from the two.",
|
|
1996
|
+
"name": "--ag-overlay-text"
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"description": "Popup background on dark grids.",
|
|
2000
|
+
"name": "--ag-dark-overlay"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"description": "Popup text color on dark grids.",
|
|
2004
|
+
"name": "--ag-dark-overlay-text"
|
|
2005
|
+
},
|
|
1984
2006
|
{
|
|
1985
2007
|
"description": "Cell font size.",
|
|
1986
2008
|
"name": "--ag-fs-cell"
|
|
@@ -2583,6 +2605,30 @@
|
|
|
2583
2605
|
"description": "Whether the column header rows are shown. On by default. Set to `false`\n(or the `show-header=\"false\"` attribute) for a compact table, such as a\nshort dashboard tile, where the rows get the header's room.",
|
|
2584
2606
|
"attribute": "show-header"
|
|
2585
2607
|
},
|
|
2608
|
+
{
|
|
2609
|
+
"kind": "field",
|
|
2610
|
+
"name": "designSystem",
|
|
2611
|
+
"type": {
|
|
2612
|
+
"text": "boolean"
|
|
2613
|
+
},
|
|
2614
|
+
"privacy": "public",
|
|
2615
|
+
"default": "true",
|
|
2616
|
+
"description": "Whether this grid follows the design-system add-on (`apex-grid/ignite-ui`).\n`false`, reflected as `design-system=\"off\"`, turns the Ignite UI colours\nand font off for this grid; the Ignite UI variant still picks its mode.\nWithout the add-on it changes nothing.",
|
|
2617
|
+
"attribute": "design-system",
|
|
2618
|
+
"reflects": true
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"kind": "field",
|
|
2622
|
+
"name": "tokens",
|
|
2623
|
+
"type": {
|
|
2624
|
+
"text": "boolean"
|
|
2625
|
+
},
|
|
2626
|
+
"privacy": "public",
|
|
2627
|
+
"default": "true",
|
|
2628
|
+
"description": "Whether this grid reads the family `--apx-*` tokens and, with the\n`apex-grid/ignite-ui` add-on, Ignite UI (the variant included). `false`,\nreflected as `tokens=\"off\"`, turns them off for the grid and the content\nit renders, so it keeps the built-in look and the `--ag-*` tokens you set.",
|
|
2629
|
+
"attribute": "tokens",
|
|
2630
|
+
"reflects": true
|
|
2631
|
+
},
|
|
2586
2632
|
{
|
|
2587
2633
|
"kind": "field",
|
|
2588
2634
|
"name": "columnGroups",
|
|
@@ -4614,11 +4660,31 @@
|
|
|
4614
4660
|
"fieldName": "showHeader",
|
|
4615
4661
|
"attribute": "show-header"
|
|
4616
4662
|
},
|
|
4663
|
+
{
|
|
4664
|
+
"name": "design-system",
|
|
4665
|
+
"type": {
|
|
4666
|
+
"text": "boolean"
|
|
4667
|
+
},
|
|
4668
|
+
"default": "true",
|
|
4669
|
+
"description": "Whether this grid follows the design-system add-on (`apex-grid/ignite-ui`).\n`false`, reflected as `design-system=\"off\"`, turns the Ignite UI colours\nand font off for this grid; the Ignite UI variant still picks its mode.\nWithout the add-on it changes nothing.",
|
|
4670
|
+
"fieldName": "designSystem",
|
|
4671
|
+
"attribute": "design-system"
|
|
4672
|
+
},
|
|
4673
|
+
{
|
|
4674
|
+
"name": "tokens",
|
|
4675
|
+
"type": {
|
|
4676
|
+
"text": "boolean"
|
|
4677
|
+
},
|
|
4678
|
+
"default": "true",
|
|
4679
|
+
"description": "Whether this grid reads the family `--apx-*` tokens and, with the\n`apex-grid/ignite-ui` add-on, Ignite UI (the variant included). `false`,\nreflected as `tokens=\"off\"`, turns them off for the grid and the content\nit renders, so it keeps the built-in look and the `--ag-*` tokens you set.",
|
|
4680
|
+
"fieldName": "tokens",
|
|
4681
|
+
"attribute": "tokens"
|
|
4682
|
+
},
|
|
4617
4683
|
{
|
|
4618
4684
|
"type": {
|
|
4619
4685
|
"text": "string"
|
|
4620
4686
|
},
|
|
4621
|
-
"description": "Space-separated theme flags. `dark` opts into the built-in dark palette; `tinted` mixes `--ag-brand` into the chrome surfaces. Combine as `theme=\"dark tinted\"`.",
|
|
4687
|
+
"description": "Space-separated theme flags. `dark` opts into the built-in dark palette; `tinted` mixes `--ag-brand` into the chrome surfaces. Combine as `theme=\"dark tinted\"`. With the `apex-grid/ignite-ui` add-on a grid without `dark` or `light` follows the Ignite UI variant, and `light` keeps it light.",
|
|
4622
4688
|
"name": "theme"
|
|
4623
4689
|
},
|
|
4624
4690
|
{
|
|
@@ -12410,16 +12476,6 @@
|
|
|
12410
12476
|
"privacy": "public",
|
|
12411
12477
|
"readonly": true
|
|
12412
12478
|
},
|
|
12413
|
-
{
|
|
12414
|
-
"kind": "field",
|
|
12415
|
-
"name": "pinOffsets",
|
|
12416
|
-
"type": {
|
|
12417
|
-
"text": "Map<unknown, number>"
|
|
12418
|
-
},
|
|
12419
|
-
"privacy": "public",
|
|
12420
|
-
"description": "Cumulative pin offsets (in px) keyed by column key. Populated by the\nGridDOMController after each layout.",
|
|
12421
|
-
"readonly": true
|
|
12422
|
-
},
|
|
12423
12479
|
{
|
|
12424
12480
|
"kind": "method",
|
|
12425
12481
|
"name": "init",
|
|
@@ -14020,6 +14076,136 @@
|
|
|
14020
14076
|
}
|
|
14021
14077
|
]
|
|
14022
14078
|
},
|
|
14079
|
+
{
|
|
14080
|
+
"kind": "javascript-module",
|
|
14081
|
+
"path": "src/internal/design-system.ts",
|
|
14082
|
+
"declarations": [
|
|
14083
|
+
{
|
|
14084
|
+
"kind": "function",
|
|
14085
|
+
"name": "registerDesignSystem",
|
|
14086
|
+
"return": {
|
|
14087
|
+
"type": {
|
|
14088
|
+
"text": "void"
|
|
14089
|
+
}
|
|
14090
|
+
},
|
|
14091
|
+
"parameters": [
|
|
14092
|
+
{
|
|
14093
|
+
"name": "styles",
|
|
14094
|
+
"type": {
|
|
14095
|
+
"text": "DesignSystemStyles"
|
|
14096
|
+
}
|
|
14097
|
+
}
|
|
14098
|
+
],
|
|
14099
|
+
"description": "Registers a design-system add-on. The first registration wins: a second\nimport of the same add-on (or of another one) changes nothing."
|
|
14100
|
+
},
|
|
14101
|
+
{
|
|
14102
|
+
"kind": "function",
|
|
14103
|
+
"name": "designSystemName",
|
|
14104
|
+
"return": {
|
|
14105
|
+
"type": {
|
|
14106
|
+
"text": "string | null"
|
|
14107
|
+
}
|
|
14108
|
+
},
|
|
14109
|
+
"description": "The id of the registered design-system add-on, or null when none is loaded."
|
|
14110
|
+
},
|
|
14111
|
+
{
|
|
14112
|
+
"kind": "function",
|
|
14113
|
+
"name": "onDesignSystemRegistered",
|
|
14114
|
+
"return": {
|
|
14115
|
+
"type": {
|
|
14116
|
+
"text": "() => void"
|
|
14117
|
+
}
|
|
14118
|
+
},
|
|
14119
|
+
"parameters": [
|
|
14120
|
+
{
|
|
14121
|
+
"name": "listener",
|
|
14122
|
+
"type": {
|
|
14123
|
+
"text": "() => void"
|
|
14124
|
+
}
|
|
14125
|
+
}
|
|
14126
|
+
],
|
|
14127
|
+
"description": "Calls `listener` when a design-system add-on registers (an import after the\ngrids connected). Returns the function that stops listening."
|
|
14128
|
+
},
|
|
14129
|
+
{
|
|
14130
|
+
"kind": "function",
|
|
14131
|
+
"name": "connectDesignSystem",
|
|
14132
|
+
"return": {
|
|
14133
|
+
"type": {
|
|
14134
|
+
"text": "void"
|
|
14135
|
+
}
|
|
14136
|
+
},
|
|
14137
|
+
"parameters": [
|
|
14138
|
+
{
|
|
14139
|
+
"name": "grid",
|
|
14140
|
+
"type": {
|
|
14141
|
+
"text": "HTMLElement"
|
|
14142
|
+
}
|
|
14143
|
+
}
|
|
14144
|
+
],
|
|
14145
|
+
"description": "Called by every grid as it connects, after its own document styles."
|
|
14146
|
+
},
|
|
14147
|
+
{
|
|
14148
|
+
"kind": "function",
|
|
14149
|
+
"name": "disconnectDesignSystem",
|
|
14150
|
+
"return": {
|
|
14151
|
+
"type": {
|
|
14152
|
+
"text": "void"
|
|
14153
|
+
}
|
|
14154
|
+
},
|
|
14155
|
+
"parameters": [
|
|
14156
|
+
{
|
|
14157
|
+
"name": "grid",
|
|
14158
|
+
"type": {
|
|
14159
|
+
"text": "HTMLElement"
|
|
14160
|
+
}
|
|
14161
|
+
}
|
|
14162
|
+
],
|
|
14163
|
+
"description": "Called by every grid as it disconnects."
|
|
14164
|
+
}
|
|
14165
|
+
],
|
|
14166
|
+
"exports": [
|
|
14167
|
+
{
|
|
14168
|
+
"kind": "js",
|
|
14169
|
+
"name": "registerDesignSystem",
|
|
14170
|
+
"declaration": {
|
|
14171
|
+
"name": "registerDesignSystem",
|
|
14172
|
+
"module": "src/internal/design-system.ts"
|
|
14173
|
+
}
|
|
14174
|
+
},
|
|
14175
|
+
{
|
|
14176
|
+
"kind": "js",
|
|
14177
|
+
"name": "designSystemName",
|
|
14178
|
+
"declaration": {
|
|
14179
|
+
"name": "designSystemName",
|
|
14180
|
+
"module": "src/internal/design-system.ts"
|
|
14181
|
+
}
|
|
14182
|
+
},
|
|
14183
|
+
{
|
|
14184
|
+
"kind": "js",
|
|
14185
|
+
"name": "onDesignSystemRegistered",
|
|
14186
|
+
"declaration": {
|
|
14187
|
+
"name": "onDesignSystemRegistered",
|
|
14188
|
+
"module": "src/internal/design-system.ts"
|
|
14189
|
+
}
|
|
14190
|
+
},
|
|
14191
|
+
{
|
|
14192
|
+
"kind": "js",
|
|
14193
|
+
"name": "connectDesignSystem",
|
|
14194
|
+
"declaration": {
|
|
14195
|
+
"name": "connectDesignSystem",
|
|
14196
|
+
"module": "src/internal/design-system.ts"
|
|
14197
|
+
}
|
|
14198
|
+
},
|
|
14199
|
+
{
|
|
14200
|
+
"kind": "js",
|
|
14201
|
+
"name": "disconnectDesignSystem",
|
|
14202
|
+
"declaration": {
|
|
14203
|
+
"name": "disconnectDesignSystem",
|
|
14204
|
+
"module": "src/internal/design-system.ts"
|
|
14205
|
+
}
|
|
14206
|
+
}
|
|
14207
|
+
]
|
|
14208
|
+
},
|
|
14023
14209
|
{
|
|
14024
14210
|
"kind": "javascript-module",
|
|
14025
14211
|
"path": "src/internal/document-styles.ts",
|
|
@@ -15021,6 +15207,30 @@
|
|
|
15021
15207
|
}
|
|
15022
15208
|
]
|
|
15023
15209
|
},
|
|
15210
|
+
{
|
|
15211
|
+
"kind": "javascript-module",
|
|
15212
|
+
"path": "src/internal/ignite-ui.ts",
|
|
15213
|
+
"declarations": [
|
|
15214
|
+
{
|
|
15215
|
+
"kind": "variable",
|
|
15216
|
+
"name": "IGNITE_UI_STYLES",
|
|
15217
|
+
"type": {
|
|
15218
|
+
"text": "DesignSystemStyles"
|
|
15219
|
+
},
|
|
15220
|
+
"description": "The add-on as the grid registers it."
|
|
15221
|
+
}
|
|
15222
|
+
],
|
|
15223
|
+
"exports": [
|
|
15224
|
+
{
|
|
15225
|
+
"kind": "js",
|
|
15226
|
+
"name": "IGNITE_UI_STYLES",
|
|
15227
|
+
"declaration": {
|
|
15228
|
+
"name": "IGNITE_UI_STYLES",
|
|
15229
|
+
"module": "src/internal/ignite-ui.ts"
|
|
15230
|
+
}
|
|
15231
|
+
}
|
|
15232
|
+
]
|
|
15233
|
+
},
|
|
15024
15234
|
{
|
|
15025
15235
|
"kind": "javascript-module",
|
|
15026
15236
|
"path": "src/internal/index.ts",
|
|
@@ -15114,6 +15324,30 @@
|
|
|
15114
15324
|
"module": "./constants.js"
|
|
15115
15325
|
}
|
|
15116
15326
|
},
|
|
15327
|
+
{
|
|
15328
|
+
"kind": "js",
|
|
15329
|
+
"name": "DesignSystemStyles",
|
|
15330
|
+
"declaration": {
|
|
15331
|
+
"name": "DesignSystemStyles",
|
|
15332
|
+
"module": "./design-system.js"
|
|
15333
|
+
}
|
|
15334
|
+
},
|
|
15335
|
+
{
|
|
15336
|
+
"kind": "js",
|
|
15337
|
+
"name": "designSystemName",
|
|
15338
|
+
"declaration": {
|
|
15339
|
+
"name": "designSystemName",
|
|
15340
|
+
"module": "./design-system.js"
|
|
15341
|
+
}
|
|
15342
|
+
},
|
|
15343
|
+
{
|
|
15344
|
+
"kind": "js",
|
|
15345
|
+
"name": "onDesignSystemRegistered",
|
|
15346
|
+
"declaration": {
|
|
15347
|
+
"name": "onDesignSystemRegistered",
|
|
15348
|
+
"module": "./design-system.js"
|
|
15349
|
+
}
|
|
15350
|
+
},
|
|
15117
15351
|
{
|
|
15118
15352
|
"kind": "js",
|
|
15119
15353
|
"name": "ExportCellValue",
|
package/docs/assets/hierarchy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
window.hierarchyData = "
|
|
1
|
+
window.hierarchyData = "eJyVkcFqwzAMht9FZ3eLncYtvm0h5xUKu4wcTKImZq4dbG0ESt59mMLISlibi0769X38ukDwniKoD84LzngmJOO52NUMAp4sNmS8i6AusN+m6fQZQcHLgONBd1j22nXYVt/oCBh8GteCEoVk8BUsKDCOMJx0g/F5KfLU09kCg8bqGEEBxXaTbmx+czAx4FkmZ+zy+F6Ngw/0Nlzl/uferj/KFHPmGuBaGoOmN7YN6NIXskzWic8LPuO/6oipwBKtLb0jHO/VvZBY7cJlfnWR+YJL1RryYZ3Nn8yDn8jFbkY/6M44nbo9kia8w73ZXtvAfltP0/QDDGAMqg=="
|