@datorama/core 22.12.8-beta.1 → 22.12.8-rc.1
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/bundle.scss +9 -0
- package/bundles/datorama-core.umd.js +93 -49
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +31 -31
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.d.ts +1 -0
- package/datorama-core.metadata.json +1 -1
- package/esm2015/datorama-core.js +2 -1
- package/esm2015/lib/breadcrumbs/breadcrumbs.component.js +4 -2
- package/esm2015/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +5 -2
- package/esm2015/lib/grid-v2/grid-settings.js +2 -2
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +11 -3
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +13 -1
- package/esm2015/lib/icon/icon.types.js +1 -1
- package/esm2015/lib/rich-text/rich-text.directive.js +20 -38
- package/esm2015/lib/rich-text/rich-text.service.js +50 -0
- package/esm2015/lib/select/select.component.js +4 -9
- package/esm2015/lib/version.js +2 -2
- package/esm5/datorama-core.js +2 -1
- package/esm5/lib/breadcrumbs/breadcrumbs.component.js +4 -2
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +5 -2
- package/esm5/lib/grid-v2/grid-settings.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +11 -3
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +20 -1
- package/esm5/lib/icon/icon.types.js +1 -1
- package/esm5/lib/rich-text/rich-text.directive.js +21 -39
- package/esm5/lib/rich-text/rich-text.service.js +51 -0
- package/esm5/lib/select/select.component.js +4 -9
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +84 -49
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +93 -50
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -0
- package/lib/grid-v2/grid-settings.d.ts +2 -2
- package/lib/grid-v2/grid-store/grid.service.d.ts +4 -0
- package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +3 -0
- package/lib/icon/icon.types.d.ts +1 -1
- package/lib/rich-text/rich-text.directive.d.ts +4 -6
- package/lib/rich-text/rich-text.service.d.ts +10 -0
- package/package.json +2 -2
|
@@ -71,6 +71,7 @@ export interface DatoGridOptions extends GridOptions {
|
|
|
71
71
|
columnDefs: DatoGridColumnDef[];
|
|
72
72
|
saveSettings?: boolean;
|
|
73
73
|
enableV2_1?: boolean;
|
|
74
|
+
isGlobalSettings?: boolean;
|
|
74
75
|
exportGrid?(params: DatoGridExportParams): void;
|
|
75
76
|
defaultColDef?: DatoGridColumnDef;
|
|
76
77
|
datasource?: {
|
|
@@ -2,7 +2,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DatoGridSettings } from './grid-store/grid.store.types';
|
|
4
4
|
export interface GridStorageAPI {
|
|
5
|
-
get(gridName: string): Observable<Partial<DatoGridSettings>>;
|
|
6
|
-
set(gridName: string, state: Partial<DatoGridSettings
|
|
5
|
+
get(gridName: string, isGlobal?: boolean): Observable<Partial<DatoGridSettings>>;
|
|
6
|
+
set(gridName: string, state: Partial<DatoGridSettings>, isGlobal?: boolean): void;
|
|
7
7
|
}
|
|
8
8
|
export declare const DATO_GRID_STORAGE_API: InjectionToken<GridStorageAPI>;
|
|
@@ -12,6 +12,7 @@ import { GridStorageAPI } from '../grid-settings';
|
|
|
12
12
|
import { DatoGridColumnDef, DatoGridGetRowsParams, DatoGridOptions, DatoGridSort, DatoGridTreeConfig } from '../grid/grid-v2.types';
|
|
13
13
|
import { CoreEventLogger, CoreEventTypes } from '../../event-logger';
|
|
14
14
|
import { HashMap } from '../../utils/types';
|
|
15
|
+
import { Observable } from 'rxjs';
|
|
15
16
|
export declare class GridService implements OnDestroy {
|
|
16
17
|
private store;
|
|
17
18
|
private gridQuery;
|
|
@@ -32,6 +33,7 @@ export declare class GridService implements OnDestroy {
|
|
|
32
33
|
private isTreeData;
|
|
33
34
|
private pageNumberToReturnAfterRefresh;
|
|
34
35
|
private lastTotalRows;
|
|
36
|
+
private reloadGridActionsSubject;
|
|
35
37
|
private readonly CHECKBOX_SELECTION_COL_ID;
|
|
36
38
|
set treeData(isTreeData: boolean);
|
|
37
39
|
get treeData(): boolean;
|
|
@@ -41,6 +43,8 @@ export declare class GridService implements OnDestroy {
|
|
|
41
43
|
_setApi(api: DatoGridApi, gridRef: AgGridNg2): void;
|
|
42
44
|
private isServerSidePagination;
|
|
43
45
|
updateGridContext(context?: {}, replace?: boolean): void;
|
|
46
|
+
reloadGridActions(): void;
|
|
47
|
+
onReloadGridActions(): Observable<any>;
|
|
44
48
|
/**
|
|
45
49
|
* @deprecated use selectRows instead
|
|
46
50
|
* @param row
|
|
@@ -62,6 +62,8 @@ export declare class DatoGridV2ToolbarComponent implements OnInit, OnDestroy {
|
|
|
62
62
|
get hasActiveMoreActions(): boolean;
|
|
63
63
|
private get api();
|
|
64
64
|
ngOnInit(): void;
|
|
65
|
+
private getCellValueChangeEvent;
|
|
66
|
+
private getRowDataUpdatedEvent;
|
|
65
67
|
onActionClick(action: BaseToolbarAction): void;
|
|
66
68
|
resolveVisibleActions(): void;
|
|
67
69
|
private initWidthToHideActionsLabels;
|
|
@@ -87,6 +89,7 @@ export declare class DatoGridV2ToolbarComponent implements OnInit, OnDestroy {
|
|
|
87
89
|
private getCollapseState;
|
|
88
90
|
private registerGroupListeners;
|
|
89
91
|
private subscribeRowsSelectionData;
|
|
92
|
+
private subscribeReloadGridActions;
|
|
90
93
|
selectAllPages(): void;
|
|
91
94
|
}
|
|
92
95
|
export {};
|
package/lib/icon/icon.types.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export declare type IconInputs = {
|
|
|
5
5
|
width?: string;
|
|
6
6
|
height?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare type DatoIcons = 'account' | 'action-center' | 'action' | 'add-collection' | 'add-page' | 'add-widget' | 'advisor' | 'all-collections' | 'alternatives' | 'anyone' | 'app-page' | 'apps-tab' | 'apps' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'article' | 'authentication-enable' | 'authentication' | 'auto-format' | 'automate' | 'background' | 'branding' | 'builder' | 'calendar' | 'certificate' | 'certification' | 'charts' | 'chevron-down-double' | 'chevron-down' | 'chevron-left-double' | 'chevron-left' | 'chevron-right-double' | 'chevron-right' | 'chevron-up-double' | 'chevron-up' | 'classification' | 'close' | 'collaborate' | 'collapse' | 'comment-code' | 'comparrison' | 'connect' | 'connected' | 'copy-to' | 'copy' | 'cost-center' | 'current' | 'data-transformed' | 'data-classification' | 'data-fusion' | 'data-lakes' | 'data-model' | 'data-preview' | 'data-science' | 'data-stream' | 'deploy' | 'description' | 'design' | 'dev-portal' | 'diamond' | 'dimension-type-2' | 'dimension' | 'dirty' | 'dismiss' | 'dottie' | 'download' | 'drag-window' | 'drag' | 'edit-page' | 'edit-widget' | 'edit' | 'einstein-insights' | 'elements' | 'embed' | 'evaluate' | 'expand' | 'explore' | 'export-stats' | 'export' | 'extended-log' | 'external-data' | 'external-page' | 'external' | 'failed-full' | 'failed-line' | 'failed' | 'filter' | 'filters-page' | 'filters-widget' | 'find-and-replace' | 'focus' | 'folder-closed' | 'folder-open' | 'formula' | 'free-text' | 'full-entity' | 'fullscreen-enter' | 'fullscreen-exit' | 'generic-bucket' | 'goals' | 'grid-hide' | 'group' | 'hamburger' | 'harmonized-dimension' | 'heart-empty' | 'heart-full' | 'hide' | 'highlight' | 'history' | 'home' | 'hour-glass' | 'idle' | 'impersonate' | 'info-full' | 'info-line' | 'info' | 'instant' | 'interactive-filter' | 'interactive-filterset' | 'key' | 'knowledge-base' | 'label' | 'layout-filtered' | 'layout' | 'linked' | 'live' | 'localization-164' | 'logical-view' | 'magic-wand' | 'main-entity' | 'manage-collections' | 'map-right' | 'map-left' | 'mapping' | 'market' | 'maximize-horizontal' | 'maximize' | 'measurement-nav' | 'measurement' | 'minimize-horizontal' | 'minimize' | 'more-horizontal' | 'more-vertical' | 'move-to-folder' | '
|
|
8
|
+
export declare type DatoIcons = 'account' | 'action-center' | 'action' | 'add-collection' | 'add-page' | 'add-widget' | 'advisor' | 'all-collections' | 'alternatives' | 'anyone' | 'app-page' | 'apps-tab' | 'apps' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'article' | 'authentication-enable' | 'authentication' | 'auto-format' | 'automate' | 'background' | 'branding' | 'builder' | 'calendar' | 'certificate' | 'certification' | 'charts' | 'chevron-down-double' | 'chevron-down' | 'chevron-left-double' | 'chevron-left' | 'chevron-right-double' | 'chevron-right' | 'chevron-up-double' | 'chevron-up' | 'classification' | 'close' | 'collaborate' | 'collapse' | 'comment-code' | 'comparrison' | 'connect' | 'connected' | 'copy-to' | 'copy' | 'cost-center' | 'current' | 'data-transformed' | 'data-classification' | 'data-fusion' | 'data-lakes' | 'data-model' | 'data-preview' | 'data-science' | 'data-stream' | 'deploy' | 'description' | 'design' | 'dev-portal' | 'diamond' | 'dimension-type-2' | 'dimension' | 'dirty' | 'dismiss' | 'dottie' | 'download' | 'drag-window' | 'drag' | 'edit-page' | 'edit-widget' | 'edit' | 'einstein-insights' | 'elements' | 'embed' | 'evaluate' | 'expand' | 'explore' | 'export-stats' | 'export' | 'extended-log' | 'external-data' | 'external-page' | 'external' | 'failed-full' | 'failed-line' | 'failed' | 'filter' | 'filters-page' | 'filters-widget' | 'find-and-replace' | 'focus' | 'folder-closed' | 'folder-open' | 'formula' | 'free-text' | 'full-entity' | 'fullscreen-enter' | 'fullscreen-exit' | 'generic-bucket' | 'goals' | 'grid-hide' | 'group' | 'hamburger' | 'harmonized-dimension' | 'heart-empty' | 'heart-full' | 'hide' | 'highlight' | 'history' | 'home' | 'hour-glass' | 'idle' | 'impersonate' | 'info-full' | 'info-line' | 'info' | 'instant' | 'interactive-filter' | 'interactive-filterset' | 'key' | 'knowledge-base' | 'label' | 'layout-filtered' | 'layout' | 'linked' | 'live' | 'localization-164' | 'logical-view' | 'magic-wand' | 'main-entity' | 'manage-collections' | 'map-right' | 'map-left' | 'mapping' | 'market' | 'maximize-horizontal' | 'maximize' | 'measurement-nav' | 'measurement' | 'minimize-horizontal' | 'minimize' | 'more-horizontal' | 'more-vertical' | 'move-to-folder' | 'my-profile' | 'naming-conventions-patterns' | 'new-tab' | 'no-autentication' | 'no-entry' | 'no-file' | 'no-one' | 'notes-rouded' | 'notes' | 'notifications' | 'page' | 'panel-close' | 'panel-open' | 'pending' | 'people' | 'pin' | 'pivot-table' | 'play' | 'plus-btn' | 'plus-simple' | 'present' | 'process-tech-abort' | 'process-tech' | 'process-error' | 'process' | 'publish' | 'push-entity' | 'query-api' | 're-run' | 'recent' | 'redo' | 'refresh' | 'reoffer' | 'reorder' | 'reset-filters' | 'reset-table' | 'restore' | 'retrive-data' | 'rocket' | 'run-later' | 'sandbox-color' | 'sandbox-mid' | 'sandbox' | 'save-as' | 'save' | 'schedule-export' | 'screen-guide' | 'search' | 'send' | 'server' | 'share-dashboard' | 'share-to' | 'share' | 'sharing-add-outline' | 'sharing-outline' | 'sharing' | 'show-grid' | 'sign-out' | 'snippets' | 'sort-ascending' | 'sort-descending' | 'sort' | 'star-empty' | 'star-full-color' | 'star-full' | 'status' | 'success-full' | 'success-line' | 'success-simple' | 'switch' | 'table-regular' | 'table' | 'tableau' | 'template-full' | 'templates' | 'test' | 'thumbs-down' | 'thumbs-up' | 'time' | 'tip-full' | 'tip-line' | 'tip-simple' | 'tool' | 'transposed-table' | 'trash' | 'trend' | 'typeface' | 'uncomment-code' | 'undo' | 'ungroup' | 'university' | 'unlink' | 'unpublish' | 'upload' | 'user' | 'validate-code' | 'views-line' | 'views' | 'visualize' | 'warning-full' | 'warning-line' | 'warning-simple' | 'webinar' | 'widgets' | 'workflow' | 'workspace' | 'zoom-in';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
9
9
|
import { ControlValueAccessor } from '@angular/forms';
|
|
10
10
|
import { BaseCustomControl } from '../custom-control/base-custom-control';
|
|
11
|
-
import { HttpClient } from '@angular/common/http';
|
|
12
11
|
import { CoreConfig } from '../config';
|
|
12
|
+
import { RichTextService } from './rich-text.service';
|
|
13
13
|
declare global {
|
|
14
14
|
interface Window {
|
|
15
15
|
tinymce: any;
|
|
@@ -18,9 +18,9 @@ declare global {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class DatoRichTextDirective extends BaseCustomControl implements OnDestroy, AfterViewInit, ControlValueAccessor {
|
|
20
20
|
private ngZone;
|
|
21
|
-
private
|
|
22
|
-
private host;
|
|
21
|
+
private richTextService;
|
|
23
22
|
private config;
|
|
23
|
+
private host;
|
|
24
24
|
plugins: string | undefined;
|
|
25
25
|
toolbar: string | string[];
|
|
26
26
|
menubar: string | string[] | null;
|
|
@@ -42,10 +42,8 @@ export declare class DatoRichTextDirective extends BaseCustomControl implements
|
|
|
42
42
|
private editor;
|
|
43
43
|
private readonly defaultPlugins;
|
|
44
44
|
private readonly defaultToolbar;
|
|
45
|
-
constructor(ngZone: NgZone,
|
|
45
|
+
constructor(ngZone: NgZone, richTextService: RichTextService, config: CoreConfig, host: ElementRef<HTMLElement>);
|
|
46
46
|
ngAfterViewInit(): void;
|
|
47
|
-
private loadLib;
|
|
48
|
-
private loadAutoCompleteStyle;
|
|
49
47
|
private initEditor;
|
|
50
48
|
private defaultOptions;
|
|
51
49
|
private init;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { CoreConfig } from '../config';
|
|
3
|
+
export declare class RichTextService {
|
|
4
|
+
private http;
|
|
5
|
+
private config;
|
|
6
|
+
richTextScript$: any;
|
|
7
|
+
constructor(http: HttpClient, config: CoreConfig);
|
|
8
|
+
getLib(appendScriptFunc: any, appendStyleFunc: any): any;
|
|
9
|
+
private initLib;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datorama/core",
|
|
3
|
-
"version": "22.12.8-
|
|
3
|
+
"version": "22.12.8-rc.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "8.2.14",
|
|
6
6
|
"@angular/core": "8.2.14",
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"typings": "datorama-core.d.ts",
|
|
62
62
|
"metadata": "datorama-core.metadata.json",
|
|
63
63
|
"sideEffects": false
|
|
64
|
-
}
|
|
64
|
+
}
|