@bryntum/grid-angular-thin 7.2.3 → 7.3.0
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/README.md +4 -4
- package/bundles/bryntum-grid-angular-thin.umd.js +761 -230
- package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
- package/esm2015/lib/bryntum-a-i-filter-field.component.js +62 -14
- package/esm2015/lib/bryntum-checklist-filter-combo.component.js +62 -14
- package/esm2015/lib/bryntum-grid-base.component.js +78 -35
- package/esm2015/lib/bryntum-grid-chart-designer.component.js +61 -12
- package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +65 -21
- package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +65 -21
- package/esm2015/lib/bryntum-grid.component.js +78 -35
- package/esm2015/lib/bryntum-group-bar.component.js +61 -12
- package/esm2015/lib/bryntum-tree-combo.component.js +62 -14
- package/esm2015/lib/bryntum-tree-grid.component.js +78 -35
- package/esm2015/lib/grid.module.js +5 -4
- package/esm2015/lib/shadowdom.helper.js +82 -0
- package/fesm2015/bryntum-grid-angular-thin.js +738 -207
- package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
- package/lib/bryntum-a-i-filter-field.component.d.ts +87 -133
- package/lib/bryntum-checklist-filter-combo.component.d.ts +106 -166
- package/lib/bryntum-grid-base.component.d.ts +238 -303
- package/lib/bryntum-grid-chart-designer.component.d.ts +71 -108
- package/lib/bryntum-grid-field-filter-picker-group.component.d.ts +93 -143
- package/lib/bryntum-grid-field-filter-picker.component.d.ts +94 -145
- package/lib/bryntum-grid.component.d.ts +238 -303
- package/lib/bryntum-group-bar.component.d.ts +77 -118
- package/lib/bryntum-tree-combo.component.d.ts +107 -168
- package/lib/bryntum-tree-grid.component.d.ts +238 -303
- package/lib/grid.module.d.ts +2 -1
- package/lib/shadowdom.helper.d.ts +3 -0
- package/package.json +1 -1
- package/src/lib/bryntum-a-i-filter-field.component.ts +146 -141
- package/src/lib/bryntum-checklist-filter-combo.component.ts +166 -175
- package/src/lib/bryntum-grid-base.component.ts +275 -319
- package/src/lib/bryntum-grid-chart-designer.component.ts +126 -112
- package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +152 -152
- package/src/lib/bryntum-grid-field-filter-picker.component.ts +152 -153
- package/src/lib/bryntum-grid.component.ts +275 -319
- package/src/lib/bryntum-group-bar.component.ts +132 -122
- package/src/lib/bryntum-theme-combo.component.ts +128 -0
- package/src/lib/bryntum-tree-combo.component.ts +166 -176
- package/src/lib/bryntum-tree-grid.component.ts +275 -319
- package/src/lib/grid.module.ts +2 -1
- package/src/lib/shadowdom.helper.ts +91 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@bryntum/core-thin'), require('@bryntum/grid-thin')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@bryntum/grid-angular-thin', ['exports', '@angular/core', '@bryntum/core-thin', '@bryntum/grid-thin'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bryntum = global.bryntum || {}, global.bryntum["grid-angular-thin"] = {}), global.ng.core, global["@bryntum/core-thin"], global["@bryntum/grid-thin"]));
|
|
5
|
-
})(this, (function (exports, i0, coreThin, gridThin) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@bryntum/core-thin'), require('@bryntum/grid-thin')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@bryntum/grid-angular-thin', ['exports', '@angular/common', '@angular/core', '@bryntum/core-thin', '@bryntum/grid-thin'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bryntum = global.bryntum || {}, global.bryntum["grid-angular-thin"] = {}), global.ng.common, global.ng.core, global["@bryntum/core-thin"], global["@bryntum/grid-thin"]));
|
|
5
|
+
})(this, (function (exports, common, i0, coreThin, gridThin) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -486,6 +486,88 @@
|
|
|
486
486
|
return WrapperHelper;
|
|
487
487
|
}());
|
|
488
488
|
|
|
489
|
+
// Module-level registry of all open shadow roots that host Bryntum widgets.
|
|
490
|
+
// Populated lazily by collectOpenShadowRoots() the first time it is called, and
|
|
491
|
+
// kept up to date via registerShadowRoot / unregisterShadowRoot.
|
|
492
|
+
var openShadowRoots = new Set();
|
|
493
|
+
// Walks the DOM tree starting from `root` and collects every open shadow root found.
|
|
494
|
+
// Results are cached in openShadowRoots after the first traversal so subsequent calls
|
|
495
|
+
// are O(1). Recursive so nested shadow roots are also discovered.
|
|
496
|
+
function collectOpenShadowRoots(root) {
|
|
497
|
+
if (root === void 0) { root = document; }
|
|
498
|
+
if (openShadowRoots.size > 0) {
|
|
499
|
+
return Array.from(openShadowRoots);
|
|
500
|
+
}
|
|
501
|
+
var roots = [];
|
|
502
|
+
Array.from(root.querySelectorAll('*')).forEach(function (el) {
|
|
503
|
+
if (el.shadowRoot) {
|
|
504
|
+
roots.push(el.shadowRoot);
|
|
505
|
+
roots.push.apply(roots, __spreadArray([], __read(collectOpenShadowRoots(el.shadowRoot))));
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
roots.forEach(function (r) { return openShadowRoots.add(r); });
|
|
509
|
+
return roots;
|
|
510
|
+
}
|
|
511
|
+
// Updates the href and data-bryntum-theme attribute of every theme <link> inside all
|
|
512
|
+
// registered shadow roots to mirror the new head link after a theme change.
|
|
513
|
+
function syncThemeToShadowRoots(headLink) {
|
|
514
|
+
var _a;
|
|
515
|
+
var href = headLink.href;
|
|
516
|
+
var themeAttr = (_a = headLink.getAttribute('data-bryntum-theme')) !== null && _a !== void 0 ? _a : '';
|
|
517
|
+
collectOpenShadowRoots().forEach(function (shadowRoot) {
|
|
518
|
+
Array.from(shadowRoot.querySelectorAll('link[data-bryntum-theme]')).forEach(function (link) {
|
|
519
|
+
link.setAttribute('data-bryntum-theme', themeAttr);
|
|
520
|
+
link.href = href;
|
|
521
|
+
});
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
// Adds a shadow root to the registry so it is included in theme sync operations.
|
|
525
|
+
// Called by BryntumThemeComboComponent.ngOnInit when it detects it is inside a shadow root.
|
|
526
|
+
function registerShadowRoot(shadowRoot) {
|
|
527
|
+
openShadowRoots.add(shadowRoot);
|
|
528
|
+
}
|
|
529
|
+
// Removes a shadow root from the registry.
|
|
530
|
+
// Called by BryntumThemeComboComponent.ngOnDestroy to clean up on component teardown.
|
|
531
|
+
function unregisterShadowRoot(shadowRoot) {
|
|
532
|
+
openShadowRoots.delete(shadowRoot);
|
|
533
|
+
}
|
|
534
|
+
// Injects a clone of each document.head theme <link> into every registered shadow root
|
|
535
|
+
// that does not already have one. This is required because CSS from document.head does
|
|
536
|
+
// not cascade into shadow DOM, so Bryntum theme styles would be absent without this.
|
|
537
|
+
// Safe to call multiple times — the presence check prevents duplicate injection.
|
|
538
|
+
function initThemeInShadowRoots() {
|
|
539
|
+
var headThemeLinks = Array.from(document.head.querySelectorAll('link[data-bryntum-theme]'));
|
|
540
|
+
if (!headThemeLinks.length) {
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
collectOpenShadowRoots().forEach(function (shadowRoot) {
|
|
544
|
+
if (shadowRoot.querySelector('link[data-bryntum-theme]')) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
headThemeLinks.forEach(function (headLink) {
|
|
548
|
+
if (!headLink.href) {
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
// Clone the head link to preserve all attributes, then ensure absolute href
|
|
552
|
+
var clone = headLink.cloneNode();
|
|
553
|
+
clone.href = headLink.href;
|
|
554
|
+
shadowRoot.appendChild(clone);
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
// Listens for Bryntum's internal theme-change event and keeps every shadow root's
|
|
559
|
+
// theme link in sync with the new document.head link. Fires after the old <link>s
|
|
560
|
+
// are removed and the new one is fully loaded in document.head.
|
|
561
|
+
// @ts-ignore - ion() is public but not present on GlobalEventsSingleton typings
|
|
562
|
+
coreThin.GlobalEvents.ion({
|
|
563
|
+
theme: function () {
|
|
564
|
+
var link = document.head.querySelector('link[data-bryntum-theme]');
|
|
565
|
+
if (link === null || link === void 0 ? void 0 : link.href) {
|
|
566
|
+
syncThemeToShadowRoots(link);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
|
|
489
571
|
var BryntumAIFilterFieldComponent = /** @class */ (function () {
|
|
490
572
|
function BryntumAIFilterFieldComponent(element) {
|
|
491
573
|
this.bryntumConfig = {
|
|
@@ -531,8 +613,7 @@
|
|
|
531
613
|
this.onBeforeShow = new i0.EventEmitter();
|
|
532
614
|
/**
|
|
533
615
|
* Fires when any other event is fired from the object.
|
|
534
|
-
* ...
|
|
535
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-catchAll)
|
|
616
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-catchAll)
|
|
536
617
|
* @param {object} event Event object
|
|
537
618
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
538
619
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -552,8 +633,7 @@
|
|
|
552
633
|
this.onChange = new i0.EventEmitter();
|
|
553
634
|
/**
|
|
554
635
|
* Fired when this field is [cleared](https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-clear).
|
|
555
|
-
* ...
|
|
556
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-clear)
|
|
636
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-clear)
|
|
557
637
|
* @param {object} event Event object
|
|
558
638
|
* @param {Core.widget.Field,any} event.source This Field
|
|
559
639
|
*/
|
|
@@ -611,8 +691,7 @@
|
|
|
611
691
|
/**
|
|
612
692
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
613
693
|
* achieves visibility.
|
|
614
|
-
* ...
|
|
615
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-paint)
|
|
694
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-paint)
|
|
616
695
|
* @param {object} event Event object
|
|
617
696
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
618
697
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -699,9 +778,61 @@
|
|
|
699
778
|
else {
|
|
700
779
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
701
780
|
}
|
|
781
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
782
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
783
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
784
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
785
|
+
// included in document.fonts across all browsers).
|
|
786
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
787
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
788
|
+
initThemeInShadowRoots();
|
|
789
|
+
BryntumAIFilterFieldComponent.ensureFontsInDocument(shadowRoot);
|
|
790
|
+
}
|
|
702
791
|
// @ts-ignore
|
|
703
792
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
704
793
|
};
|
|
794
|
+
/**
|
|
795
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
796
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
797
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
798
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
799
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
800
|
+
*/
|
|
801
|
+
BryntumAIFilterFieldComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
802
|
+
var _a;
|
|
803
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
804
|
+
return;
|
|
805
|
+
}
|
|
806
|
+
var fontFaceRules = [];
|
|
807
|
+
var extractFromSheet = function (sheet) {
|
|
808
|
+
try {
|
|
809
|
+
var rules = sheet.cssRules;
|
|
810
|
+
for (var i = 0; i < rules.length; i++) {
|
|
811
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
812
|
+
fontFaceRules.push(rules[i].cssText);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
catch (_e) {
|
|
817
|
+
// Cross-origin access may throw; silently skip
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
821
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
822
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
823
|
+
// <style> elements (older Angular or fallback)
|
|
824
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
825
|
+
if (el.sheet) {
|
|
826
|
+
extractFromSheet(el.sheet);
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
if (fontFaceRules.length > 0) {
|
|
830
|
+
var style = document.createElement('style');
|
|
831
|
+
style.id = 'b-shadow-root-fonts';
|
|
832
|
+
style.textContent = fontFaceRules.join('\n');
|
|
833
|
+
document.head.appendChild(style);
|
|
834
|
+
}
|
|
835
|
+
};
|
|
705
836
|
/**
|
|
706
837
|
* Watch for changes
|
|
707
838
|
* @param changes
|
|
@@ -713,8 +844,8 @@
|
|
|
713
844
|
return;
|
|
714
845
|
}
|
|
715
846
|
// Iterate over all changes
|
|
716
|
-
Object.entries(changes).forEach(function (
|
|
717
|
-
var
|
|
847
|
+
Object.entries(changes).forEach(function (_b) {
|
|
848
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
718
849
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumAIFilterFieldComponent.bryntumConfigsOnly, bryntumProps = BryntumAIFilterFieldComponent.bryntumProps;
|
|
719
850
|
if (bryntumProps.includes(prop)) {
|
|
720
851
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -845,6 +976,7 @@
|
|
|
845
976
|
'required',
|
|
846
977
|
'revertOnEscape',
|
|
847
978
|
'ripple',
|
|
979
|
+
'role',
|
|
848
980
|
'rootElement',
|
|
849
981
|
'rtl',
|
|
850
982
|
'scrollAction',
|
|
@@ -926,6 +1058,7 @@
|
|
|
926
1058
|
'relayStoreEvents',
|
|
927
1059
|
'revertOnEscape',
|
|
928
1060
|
'ripple',
|
|
1061
|
+
'role',
|
|
929
1062
|
'rootElement',
|
|
930
1063
|
'scrollAction',
|
|
931
1064
|
'showAnimation',
|
|
@@ -943,7 +1076,6 @@
|
|
|
943
1076
|
];
|
|
944
1077
|
BryntumAIFilterFieldComponent.bryntumProps = BryntumAIFilterFieldComponent.bryntumFeatureNames.concat([
|
|
945
1078
|
'alignSelf',
|
|
946
|
-
'anchorSize',
|
|
947
1079
|
'appendTo',
|
|
948
1080
|
'badge',
|
|
949
1081
|
'callOnFunctions',
|
|
@@ -956,7 +1088,6 @@
|
|
|
956
1088
|
'editable',
|
|
957
1089
|
'extraData',
|
|
958
1090
|
'flex',
|
|
959
|
-
'focusVisible',
|
|
960
1091
|
'formula',
|
|
961
1092
|
'height',
|
|
962
1093
|
'hidden',
|
|
@@ -990,7 +1121,7 @@
|
|
|
990
1121
|
'y'
|
|
991
1122
|
]);
|
|
992
1123
|
BryntumAIFilterFieldComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumAIFilterFieldComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
993
|
-
BryntumAIFilterFieldComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumAIFilterFieldComponent, selector: "bryntum-a-i-filter-field", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoComplete: "autoComplete", autoSelect: "autoSelect", bubbleEvents: "bubbleEvents", centered: "centered", clearable: "clearable", client: "client", color: "color", config: "config", constrainTo: "constrainTo", container: "container", containValues: "containValues", contentElementCls: "contentElementCls", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", floating: "floating", hideAnimation: "hideAnimation", highlightExternalChange: "highlightExternalChange", hint: "hint", hintHtml: "hintHtml", ignoreParentReadOnly: "ignoreParentReadOnly", inline: "inline", inputAlign: "inputAlign", inputAttributes: "inputAttributes", inputTag: "inputTag", inputType: "inputType", inputWidth: "inputWidth", keyStrokeChangeDelay: "keyStrokeChangeDelay", labelCls: "labelCls", labelPosition: "labelPosition", labels: "labels", labelWidth: "labelWidth", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", maxLength: "maxLength", minLength: "minLength", monitorResize: "monitorResize", name: "name", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", progressText: "progressText", relayStoreEvents: "relayStoreEvents", revertOnEscape: "revertOnEscape", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", skipValidation: "skipValidation", spellCheck: "spellCheck", tab: "tab", tabIndex: "tabIndex", textAlign: "textAlign", title: "title", type: "type", ui: "ui", validateOnInput: "validateOnInput", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", badge: "badge", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", dataset: "dataset", disabled: "disabled", editable: "editable", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", label: "label", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", placeholder: "placeholder", readOnly: "readOnly", rendition: "rendition", required: "required", rtl: "rtl", showRequiredIndicator: "showRequiredIndicator", span: "span", tooltip: "tooltip", triggers: "triggers", value: "value", width: "width", x: "x", y: "y",
|
|
1124
|
+
BryntumAIFilterFieldComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumAIFilterFieldComponent, selector: "bryntum-a-i-filter-field", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoComplete: "autoComplete", autoSelect: "autoSelect", bubbleEvents: "bubbleEvents", centered: "centered", clearable: "clearable", client: "client", color: "color", config: "config", constrainTo: "constrainTo", container: "container", containValues: "containValues", contentElementCls: "contentElementCls", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", floating: "floating", hideAnimation: "hideAnimation", highlightExternalChange: "highlightExternalChange", hint: "hint", hintHtml: "hintHtml", ignoreParentReadOnly: "ignoreParentReadOnly", inline: "inline", inputAlign: "inputAlign", inputAttributes: "inputAttributes", inputTag: "inputTag", inputType: "inputType", inputWidth: "inputWidth", keyStrokeChangeDelay: "keyStrokeChangeDelay", labelCls: "labelCls", labelPosition: "labelPosition", labels: "labels", labelWidth: "labelWidth", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", maxLength: "maxLength", minLength: "minLength", monitorResize: "monitorResize", name: "name", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", progressText: "progressText", relayStoreEvents: "relayStoreEvents", revertOnEscape: "revertOnEscape", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", skipValidation: "skipValidation", spellCheck: "spellCheck", tab: "tab", tabIndex: "tabIndex", textAlign: "textAlign", title: "title", type: "type", ui: "ui", validateOnInput: "validateOnInput", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", badge: "badge", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", dataset: "dataset", disabled: "disabled", editable: "editable", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", label: "label", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", placeholder: "placeholder", readOnly: "readOnly", rendition: "rendition", required: "required", rtl: "rtl", showRequiredIndicator: "showRequiredIndicator", span: "span", tooltip: "tooltip", triggers: "triggers", value: "value", width: "width", x: "x", y: "y", content: "content", formula: "formula", html: "html", input: "input", parent: "parent", scrollable: "scrollable" }, outputs: { onAction: "onAction", onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onChange: "onChange", onClear: "onClear", onDestroy: "onDestroy", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onInput: "onInput", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onShow: "onShow", onTrigger: "onTrigger" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
994
1125
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumAIFilterFieldComponent, decorators: [{
|
|
995
1126
|
type: i0.Component,
|
|
996
1127
|
args: [{
|
|
@@ -1109,6 +1240,8 @@
|
|
|
1109
1240
|
type: i0.Input
|
|
1110
1241
|
}], ripple: [{
|
|
1111
1242
|
type: i0.Input
|
|
1243
|
+
}], role: [{
|
|
1244
|
+
type: i0.Input
|
|
1112
1245
|
}], rootElement: [{
|
|
1113
1246
|
type: i0.Input
|
|
1114
1247
|
}], scrollAction: [{
|
|
@@ -1213,12 +1346,8 @@
|
|
|
1213
1346
|
type: i0.Input
|
|
1214
1347
|
}], y: [{
|
|
1215
1348
|
type: i0.Input
|
|
1216
|
-
}], anchorSize: [{
|
|
1217
|
-
type: i0.Input
|
|
1218
1349
|
}], content: [{
|
|
1219
1350
|
type: i0.Input
|
|
1220
|
-
}], focusVisible: [{
|
|
1221
|
-
type: i0.Input
|
|
1222
1351
|
}], formula: [{
|
|
1223
1352
|
type: i0.Input
|
|
1224
1353
|
}], html: [{
|
|
@@ -1310,8 +1439,7 @@
|
|
|
1310
1439
|
this.onBeforeShow = new i0.EventEmitter();
|
|
1311
1440
|
/**
|
|
1312
1441
|
* Fires when any other event is fired from the object.
|
|
1313
|
-
* ...
|
|
1314
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-catchAll)
|
|
1442
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-catchAll)
|
|
1315
1443
|
* @param {object} event Event object
|
|
1316
1444
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
1317
1445
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -1331,8 +1459,7 @@
|
|
|
1331
1459
|
this.onChange = new i0.EventEmitter();
|
|
1332
1460
|
/**
|
|
1333
1461
|
* Fired when this field is [cleared](https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-clear).
|
|
1334
|
-
* ...
|
|
1335
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-clear)
|
|
1462
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-clear)
|
|
1336
1463
|
* @param {object} event Event object
|
|
1337
1464
|
* @param {Core.widget.Field,any} event.source This Field
|
|
1338
1465
|
*/
|
|
@@ -1391,8 +1518,7 @@
|
|
|
1391
1518
|
/**
|
|
1392
1519
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
1393
1520
|
* achieves visibility.
|
|
1394
|
-
* ...
|
|
1395
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-paint)
|
|
1521
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-paint)
|
|
1396
1522
|
* @param {object} event Event object
|
|
1397
1523
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
1398
1524
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -1488,9 +1614,61 @@
|
|
|
1488
1614
|
else {
|
|
1489
1615
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
1490
1616
|
}
|
|
1617
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
1618
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
1619
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
1620
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
1621
|
+
// included in document.fonts across all browsers).
|
|
1622
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
1623
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
1624
|
+
initThemeInShadowRoots();
|
|
1625
|
+
BryntumChecklistFilterComboComponent.ensureFontsInDocument(shadowRoot);
|
|
1626
|
+
}
|
|
1491
1627
|
// @ts-ignore
|
|
1492
1628
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
1493
1629
|
};
|
|
1630
|
+
/**
|
|
1631
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
1632
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
1633
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
1634
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
1635
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
1636
|
+
*/
|
|
1637
|
+
BryntumChecklistFilterComboComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
1638
|
+
var _a;
|
|
1639
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
1640
|
+
return;
|
|
1641
|
+
}
|
|
1642
|
+
var fontFaceRules = [];
|
|
1643
|
+
var extractFromSheet = function (sheet) {
|
|
1644
|
+
try {
|
|
1645
|
+
var rules = sheet.cssRules;
|
|
1646
|
+
for (var i = 0; i < rules.length; i++) {
|
|
1647
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
1648
|
+
fontFaceRules.push(rules[i].cssText);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
catch (_e) {
|
|
1653
|
+
// Cross-origin access may throw; silently skip
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
1657
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
1658
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
1659
|
+
// <style> elements (older Angular or fallback)
|
|
1660
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
1661
|
+
if (el.sheet) {
|
|
1662
|
+
extractFromSheet(el.sheet);
|
|
1663
|
+
}
|
|
1664
|
+
});
|
|
1665
|
+
if (fontFaceRules.length > 0) {
|
|
1666
|
+
var style = document.createElement('style');
|
|
1667
|
+
style.id = 'b-shadow-root-fonts';
|
|
1668
|
+
style.textContent = fontFaceRules.join('\n');
|
|
1669
|
+
document.head.appendChild(style);
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1494
1672
|
/**
|
|
1495
1673
|
* Watch for changes
|
|
1496
1674
|
* @param changes
|
|
@@ -1502,8 +1680,8 @@
|
|
|
1502
1680
|
return;
|
|
1503
1681
|
}
|
|
1504
1682
|
// Iterate over all changes
|
|
1505
|
-
Object.entries(changes).forEach(function (
|
|
1506
|
-
var
|
|
1683
|
+
Object.entries(changes).forEach(function (_b) {
|
|
1684
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
1507
1685
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumChecklistFilterComboComponent.bryntumConfigsOnly, bryntumProps = BryntumChecklistFilterComboComponent.bryntumProps;
|
|
1508
1686
|
if (bryntumProps.includes(prop)) {
|
|
1509
1687
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -1664,6 +1842,7 @@
|
|
|
1664
1842
|
'required',
|
|
1665
1843
|
'revertOnEscape',
|
|
1666
1844
|
'ripple',
|
|
1845
|
+
'role',
|
|
1667
1846
|
'rootElement',
|
|
1668
1847
|
'rtl',
|
|
1669
1848
|
'scrollAction',
|
|
@@ -1777,6 +1956,7 @@
|
|
|
1777
1956
|
'relayStoreEvents',
|
|
1778
1957
|
'revertOnEscape',
|
|
1779
1958
|
'ripple',
|
|
1959
|
+
'role',
|
|
1780
1960
|
'rootElement',
|
|
1781
1961
|
'scrollAction',
|
|
1782
1962
|
'showAnimation',
|
|
@@ -1797,7 +1977,6 @@
|
|
|
1797
1977
|
];
|
|
1798
1978
|
BryntumChecklistFilterComboComponent.bryntumProps = BryntumChecklistFilterComboComponent.bryntumFeatureNames.concat([
|
|
1799
1979
|
'alignSelf',
|
|
1800
|
-
'anchorSize',
|
|
1801
1980
|
'appendTo',
|
|
1802
1981
|
'badge',
|
|
1803
1982
|
'callOnFunctions',
|
|
@@ -1811,7 +1990,6 @@
|
|
|
1811
1990
|
'extraData',
|
|
1812
1991
|
'filterOperator',
|
|
1813
1992
|
'flex',
|
|
1814
|
-
'focusVisible',
|
|
1815
1993
|
'formula',
|
|
1816
1994
|
'height',
|
|
1817
1995
|
'hidden',
|
|
@@ -1851,7 +2029,7 @@
|
|
|
1851
2029
|
'y'
|
|
1852
2030
|
]);
|
|
1853
2031
|
BryntumChecklistFilterComboComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumChecklistFilterComboComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1854
|
-
BryntumChecklistFilterComboComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumChecklistFilterComboComponent, selector: "bryntum-checklist-filter-combo", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoComplete: "autoComplete", autoExpand: "autoExpand", autoSelect: "autoSelect", bubbleEvents: "bubbleEvents", cacheLastResult: "cacheLastResult", caseSensitive: "caseSensitive", centered: "centered", chipView: "chipView", clearable: "clearable", clearTextOnPickerHide: "clearTextOnPickerHide", clearTextOnSelection: "clearTextOnSelection", clearWhenInputEmpty: "clearWhenInputEmpty", color: "color", config: "config", constrainTo: "constrainTo", container: "container", containValues: "containValues", contentElementCls: "contentElementCls", createOnUnmatched: "createOnUnmatched", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", displayField: "displayField", displayValueRenderer: "displayValueRenderer", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", emptyText: "emptyText", encodeFilterParams: "encodeFilterParams", filterOnEnter: "filterOnEnter", filterParamName: "filterParamName", filterSelected: "filterSelected", floating: "floating", hideAnimation: "hideAnimation", hidePickerOnSelect: "hidePickerOnSelect", hideTrigger: "hideTrigger", highlightExternalChange: "highlightExternalChange", hint: "hint", hintHtml: "hintHtml", ignoreParentReadOnly: "ignoreParentReadOnly", inline: "inline", inlinePicker: "inlinePicker", inputAlign: "inputAlign", inputAttributes: "inputAttributes", inputTag: "inputTag", inputType: "inputType", inputWidth: "inputWidth", items: "items", keyStrokeChangeDelay: "keyStrokeChangeDelay", keyStrokeFilterDelay: "keyStrokeFilterDelay", labelCls: "labelCls", labelPosition: "labelPosition", labels: "labels", labelWidth: "labelWidth", listCls: "listCls", listeners: "listeners", listItemTpl: "listItemTpl", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", maxLength: "maxLength", minChars: "minChars", minLength: "minLength", monitorResize: "monitorResize", multiValueSeparator: "multiValueSeparator", name: "name", overlayAnchor: "overlayAnchor", pickerAlignElement: "pickerAlignElement", pickerWidth: "pickerWidth", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", primaryFilter: "primaryFilter", relayStoreEvents: "relayStoreEvents", revertOnEscape: "revertOnEscape", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", skipValidation: "skipValidation", spellCheck: "spellCheck", tab: "tab", tabIndex: "tabIndex", textAlign: "textAlign", title: "title", triggerAction: "triggerAction", type: "type", ui: "ui", validateFilter: "validateFilter", validateOnInput: "validateOnInput", valueField: "valueField", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", badge: "badge", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", dataset: "dataset", disabled: "disabled", editable: "editable", extraData: "extraData", filterOperator: "filterOperator", flex: "flex", height: "height", hidden: "hidden", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", label: "label", listItemPillTpl: "listItemPillTpl", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", picker: "picker", placeholder: "placeholder", readOnly: "readOnly", rendition: "rendition", required: "required", rtl: "rtl", searchText: "searchText", showApplyButton: "showApplyButton", showRequiredIndicator: "showRequiredIndicator", span: "span", store: "store", tooltip: "tooltip", triggers: "triggers", value: "value", width: "width", x: "x", y: "y",
|
|
2032
|
+
BryntumChecklistFilterComboComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumChecklistFilterComboComponent, selector: "bryntum-checklist-filter-combo", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoComplete: "autoComplete", autoExpand: "autoExpand", autoSelect: "autoSelect", bubbleEvents: "bubbleEvents", cacheLastResult: "cacheLastResult", caseSensitive: "caseSensitive", centered: "centered", chipView: "chipView", clearable: "clearable", clearTextOnPickerHide: "clearTextOnPickerHide", clearTextOnSelection: "clearTextOnSelection", clearWhenInputEmpty: "clearWhenInputEmpty", color: "color", config: "config", constrainTo: "constrainTo", container: "container", containValues: "containValues", contentElementCls: "contentElementCls", createOnUnmatched: "createOnUnmatched", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", displayField: "displayField", displayValueRenderer: "displayValueRenderer", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", emptyText: "emptyText", encodeFilterParams: "encodeFilterParams", filterOnEnter: "filterOnEnter", filterParamName: "filterParamName", filterSelected: "filterSelected", floating: "floating", hideAnimation: "hideAnimation", hidePickerOnSelect: "hidePickerOnSelect", hideTrigger: "hideTrigger", highlightExternalChange: "highlightExternalChange", hint: "hint", hintHtml: "hintHtml", ignoreParentReadOnly: "ignoreParentReadOnly", inline: "inline", inlinePicker: "inlinePicker", inputAlign: "inputAlign", inputAttributes: "inputAttributes", inputTag: "inputTag", inputType: "inputType", inputWidth: "inputWidth", items: "items", keyStrokeChangeDelay: "keyStrokeChangeDelay", keyStrokeFilterDelay: "keyStrokeFilterDelay", labelCls: "labelCls", labelPosition: "labelPosition", labels: "labels", labelWidth: "labelWidth", listCls: "listCls", listeners: "listeners", listItemTpl: "listItemTpl", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", maxLength: "maxLength", minChars: "minChars", minLength: "minLength", monitorResize: "monitorResize", multiValueSeparator: "multiValueSeparator", name: "name", overlayAnchor: "overlayAnchor", pickerAlignElement: "pickerAlignElement", pickerWidth: "pickerWidth", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", primaryFilter: "primaryFilter", relayStoreEvents: "relayStoreEvents", revertOnEscape: "revertOnEscape", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", skipValidation: "skipValidation", spellCheck: "spellCheck", tab: "tab", tabIndex: "tabIndex", textAlign: "textAlign", title: "title", triggerAction: "triggerAction", type: "type", ui: "ui", validateFilter: "validateFilter", validateOnInput: "validateOnInput", valueField: "valueField", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", badge: "badge", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", dataset: "dataset", disabled: "disabled", editable: "editable", extraData: "extraData", filterOperator: "filterOperator", flex: "flex", height: "height", hidden: "hidden", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", label: "label", listItemPillTpl: "listItemPillTpl", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", picker: "picker", placeholder: "placeholder", readOnly: "readOnly", rendition: "rendition", required: "required", rtl: "rtl", searchText: "searchText", showApplyButton: "showApplyButton", showRequiredIndicator: "showRequiredIndicator", span: "span", store: "store", tooltip: "tooltip", triggers: "triggers", value: "value", width: "width", x: "x", y: "y", content: "content", formula: "formula", html: "html", input: "input", multiSelect: "multiSelect", parent: "parent", scrollable: "scrollable" }, outputs: { onAction: "onAction", onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onChange: "onChange", onClear: "onClear", onDestroy: "onDestroy", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onInput: "onInput", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onSelect: "onSelect", onShow: "onShow", onTrigger: "onTrigger" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
1855
2033
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumChecklistFilterComboComponent, decorators: [{
|
|
1856
2034
|
type: i0.Component,
|
|
1857
2035
|
args: [{
|
|
@@ -2022,6 +2200,8 @@
|
|
|
2022
2200
|
type: i0.Input
|
|
2023
2201
|
}], ripple: [{
|
|
2024
2202
|
type: i0.Input
|
|
2203
|
+
}], role: [{
|
|
2204
|
+
type: i0.Input
|
|
2025
2205
|
}], rootElement: [{
|
|
2026
2206
|
type: i0.Input
|
|
2027
2207
|
}], scrollAction: [{
|
|
@@ -2144,12 +2324,8 @@
|
|
|
2144
2324
|
type: i0.Input
|
|
2145
2325
|
}], y: [{
|
|
2146
2326
|
type: i0.Input
|
|
2147
|
-
}], anchorSize: [{
|
|
2148
|
-
type: i0.Input
|
|
2149
2327
|
}], content: [{
|
|
2150
2328
|
type: i0.Input
|
|
2151
|
-
}], focusVisible: [{
|
|
2152
|
-
type: i0.Input
|
|
2153
2329
|
}], formula: [{
|
|
2154
2330
|
type: i0.Input
|
|
2155
2331
|
}], html: [{
|
|
@@ -2224,8 +2400,7 @@
|
|
|
2224
2400
|
this.onBeforeCancelCellEdit = new i0.EventEmitter();
|
|
2225
2401
|
/**
|
|
2226
2402
|
* Fires on the owning Grid before the row editing is canceled, return false to signal that the value is invalid and editing should not be finalized.
|
|
2227
|
-
* ...
|
|
2228
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeCancelRowEdit)
|
|
2403
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeCancelRowEdit)
|
|
2229
2404
|
* @param {object} event Event object
|
|
2230
2405
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
2231
2406
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -2340,8 +2515,7 @@
|
|
|
2340
2515
|
this.onBeforeFinishCellEdit = new i0.EventEmitter();
|
|
2341
2516
|
/**
|
|
2342
2517
|
* Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
2343
|
-
* ...
|
|
2344
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeFinishRowEdit)
|
|
2518
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeFinishRowEdit)
|
|
2345
2519
|
* @param {object} event Event object
|
|
2346
2520
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
2347
2521
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -2386,16 +2560,14 @@
|
|
|
2386
2560
|
this.onBeforeRenderRows = new i0.EventEmitter();
|
|
2387
2561
|
/**
|
|
2388
2562
|
* This event fires before row collapse is started.
|
|
2389
|
-
* ...
|
|
2390
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeRowCollapse)
|
|
2563
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeRowCollapse)
|
|
2391
2564
|
* @param {object} event Event object
|
|
2392
2565
|
* @param {Core.data.Model} event.record Record
|
|
2393
2566
|
*/
|
|
2394
2567
|
this.onBeforeRowCollapse = new i0.EventEmitter();
|
|
2395
2568
|
/**
|
|
2396
2569
|
* This event fires before row expand is started.
|
|
2397
|
-
* ...
|
|
2398
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeRowExpand)
|
|
2570
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeRowExpand)
|
|
2399
2571
|
* @param {object} event Event object
|
|
2400
2572
|
* @param {Core.data.Model} event.record Record
|
|
2401
2573
|
*/
|
|
@@ -2475,8 +2647,7 @@
|
|
|
2475
2647
|
this.onCancelCellEdit = new i0.EventEmitter();
|
|
2476
2648
|
/**
|
|
2477
2649
|
* Fires when any other event is fired from the object.
|
|
2478
|
-
* ...
|
|
2479
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-catchAll)
|
|
2650
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-catchAll)
|
|
2480
2651
|
* @param {object} event Event object
|
|
2481
2652
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
2482
2653
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -2518,8 +2689,7 @@
|
|
|
2518
2689
|
/**
|
|
2519
2690
|
* This event fires on the owning grid before the context menu is shown for a cell.
|
|
2520
2691
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/CellMenu#config-processItems).
|
|
2521
|
-
* ...
|
|
2522
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-cellMenuBeforeShow)
|
|
2692
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-cellMenuBeforeShow)
|
|
2523
2693
|
* @param {object} event Event object
|
|
2524
2694
|
* @param {Grid.view.Grid} event.source The grid
|
|
2525
2695
|
* @param {Core.widget.Menu} event.menu The menu
|
|
@@ -2700,8 +2870,7 @@
|
|
|
2700
2870
|
this.onCopy = new i0.EventEmitter();
|
|
2701
2871
|
/**
|
|
2702
2872
|
* Fired when data in the store changes.
|
|
2703
|
-
* ...
|
|
2704
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
2873
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
2705
2874
|
* @param {object} event Event object
|
|
2706
2875
|
* @param {Grid.view.GridBase} event.source Owning grid
|
|
2707
2876
|
* @param {Core.data.Store} event.store The originating store
|
|
@@ -2805,8 +2974,7 @@
|
|
|
2805
2974
|
this.onFinishCellEdit = new i0.EventEmitter();
|
|
2806
2975
|
/**
|
|
2807
2976
|
* Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
2808
|
-
* ...
|
|
2809
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-finishRowEdit)
|
|
2977
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-finishRowEdit)
|
|
2810
2978
|
* @param {object} event Event object
|
|
2811
2979
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
2812
2980
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -2906,8 +3074,7 @@
|
|
|
2906
3074
|
this.onGridRowDrop = new i0.EventEmitter();
|
|
2907
3075
|
/**
|
|
2908
3076
|
* Fired when a grid header is clicked on.
|
|
2909
|
-
* ...
|
|
2910
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-headerClick)
|
|
3077
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-headerClick)
|
|
2911
3078
|
* @param {object} event Event object
|
|
2912
3079
|
* @param {Event} event.domEvent The triggering DOM event.
|
|
2913
3080
|
* @param {Grid.column.Column} event.column The column clicked on.
|
|
@@ -2916,8 +3083,7 @@
|
|
|
2916
3083
|
/**
|
|
2917
3084
|
* This event fires on the owning Grid before the context menu is shown for a header.
|
|
2918
3085
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu#config-processItems).
|
|
2919
|
-
* ...
|
|
2920
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-headerMenuBeforeShow)
|
|
3086
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-headerMenuBeforeShow)
|
|
2921
3087
|
* @param {object} event Event object
|
|
2922
3088
|
* @param {Grid.view.Grid} event.source The grid
|
|
2923
3089
|
* @param {Core.widget.Menu} event.menu The menu
|
|
@@ -2980,8 +3146,7 @@
|
|
|
2980
3146
|
/**
|
|
2981
3147
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
2982
3148
|
* achieves visibility.
|
|
2983
|
-
* ...
|
|
2984
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-paint)
|
|
3149
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-paint)
|
|
2985
3150
|
* @param {object} event Event object
|
|
2986
3151
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
2987
3152
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -3000,8 +3165,8 @@
|
|
|
3000
3165
|
/**
|
|
3001
3166
|
* Fires on the owning Grid when export has finished
|
|
3002
3167
|
* @param {object} event Event object
|
|
3003
|
-
* @param {Response} event.response Optional response, if received
|
|
3004
|
-
* @param {Error} event.error Optional error, if exception occurred
|
|
3168
|
+
* @param {Response} [event.response] Optional response, if received
|
|
3169
|
+
* @param {Error} [event.error] Optional error, if exception occurred
|
|
3005
3170
|
*/
|
|
3006
3171
|
this.onPdfExport = new i0.EventEmitter();
|
|
3007
3172
|
/**
|
|
@@ -3058,8 +3223,7 @@
|
|
|
3058
3223
|
this.onRowCollapse = new i0.EventEmitter();
|
|
3059
3224
|
/**
|
|
3060
3225
|
* This event fires when a row expand has finished expanding.
|
|
3061
|
-
* ...
|
|
3062
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-rowExpand)
|
|
3226
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-rowExpand)
|
|
3063
3227
|
* @param {object} event Event object
|
|
3064
3228
|
* @param {Core.data.Model} event.record Record
|
|
3065
3229
|
* @param {object} event.expandedElements An object with the Grid region name as property and the expanded body element as value
|
|
@@ -3197,7 +3361,7 @@
|
|
|
3197
3361
|
* @param {Core.data.Model} event.groupRecord [DEPRECATED] Use `groupRecords` param instead
|
|
3198
3362
|
* @param {Core.data.Model[]} event.groupRecords The group records being toggled
|
|
3199
3363
|
* @param {boolean} event.collapse Collapsed (true) or expanded (false)
|
|
3200
|
-
* @param {boolean} event.allRecords True if this event is part of toggling all groups
|
|
3364
|
+
* @param {boolean} [event.allRecords] True if this event is part of toggling all groups
|
|
3201
3365
|
*/
|
|
3202
3366
|
this.onToggleGroup = new i0.EventEmitter();
|
|
3203
3367
|
/**
|
|
@@ -3279,6 +3443,16 @@
|
|
|
3279
3443
|
else {
|
|
3280
3444
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
3281
3445
|
}
|
|
3446
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
3447
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
3448
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
3449
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
3450
|
+
// included in document.fonts across all browsers).
|
|
3451
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
3452
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
3453
|
+
initThemeInShadowRoots();
|
|
3454
|
+
BryntumGridComponent.ensureFontsInDocument(shadowRoot);
|
|
3455
|
+
}
|
|
3282
3456
|
// @ts-ignore
|
|
3283
3457
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
3284
3458
|
// Backwards compatibility for gridInstance, schedulerInstance etc.
|
|
@@ -3286,6 +3460,48 @@
|
|
|
3286
3460
|
me[coreThin.StringHelper.uncapitalize(instanceName) + 'Instance'] = me.instance;
|
|
3287
3461
|
//
|
|
3288
3462
|
};
|
|
3463
|
+
/**
|
|
3464
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
3465
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
3466
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
3467
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
3468
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
3469
|
+
*/
|
|
3470
|
+
BryntumGridComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
3471
|
+
var _a;
|
|
3472
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
3473
|
+
return;
|
|
3474
|
+
}
|
|
3475
|
+
var fontFaceRules = [];
|
|
3476
|
+
var extractFromSheet = function (sheet) {
|
|
3477
|
+
try {
|
|
3478
|
+
var rules = sheet.cssRules;
|
|
3479
|
+
for (var i = 0; i < rules.length; i++) {
|
|
3480
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
3481
|
+
fontFaceRules.push(rules[i].cssText);
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
catch (_e) {
|
|
3486
|
+
// Cross-origin access may throw; silently skip
|
|
3487
|
+
}
|
|
3488
|
+
};
|
|
3489
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
3490
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
3491
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
3492
|
+
// <style> elements (older Angular or fallback)
|
|
3493
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
3494
|
+
if (el.sheet) {
|
|
3495
|
+
extractFromSheet(el.sheet);
|
|
3496
|
+
}
|
|
3497
|
+
});
|
|
3498
|
+
if (fontFaceRules.length > 0) {
|
|
3499
|
+
var style = document.createElement('style');
|
|
3500
|
+
style.id = 'b-shadow-root-fonts';
|
|
3501
|
+
style.textContent = fontFaceRules.join('\n');
|
|
3502
|
+
document.head.appendChild(style);
|
|
3503
|
+
}
|
|
3504
|
+
};
|
|
3289
3505
|
/**
|
|
3290
3506
|
* Watch for changes
|
|
3291
3507
|
* @param changes
|
|
@@ -3297,8 +3513,8 @@
|
|
|
3297
3513
|
return;
|
|
3298
3514
|
}
|
|
3299
3515
|
// Iterate over all changes
|
|
3300
|
-
Object.entries(changes).forEach(function (
|
|
3301
|
-
var
|
|
3516
|
+
Object.entries(changes).forEach(function (_b) {
|
|
3517
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
3302
3518
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumGridComponent.bryntumConfigsOnly, bryntumProps = BryntumGridComponent.bryntumProps;
|
|
3303
3519
|
if (bryntumProps.includes(prop)) {
|
|
3304
3520
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -3551,6 +3767,7 @@
|
|
|
3551
3767
|
'insertFirst',
|
|
3552
3768
|
'keyMap',
|
|
3553
3769
|
'labelPosition',
|
|
3770
|
+
'labelWidth',
|
|
3554
3771
|
'listeners',
|
|
3555
3772
|
'loadMask',
|
|
3556
3773
|
'loadMaskDefaults',
|
|
@@ -3577,6 +3794,7 @@
|
|
|
3577
3794
|
'resizeToFitIncludesHeader',
|
|
3578
3795
|
'responsiveLevels',
|
|
3579
3796
|
'ripple',
|
|
3797
|
+
'role',
|
|
3580
3798
|
'rootElement',
|
|
3581
3799
|
'rowHeight',
|
|
3582
3800
|
'rowLines',
|
|
@@ -3663,6 +3881,7 @@
|
|
|
3663
3881
|
'resizeToFitIncludesHeader',
|
|
3664
3882
|
'responsiveLevels',
|
|
3665
3883
|
'ripple',
|
|
3884
|
+
'role',
|
|
3666
3885
|
'rootElement',
|
|
3667
3886
|
'scrollerClass',
|
|
3668
3887
|
'scrollManager',
|
|
@@ -3700,8 +3919,6 @@
|
|
|
3700
3919
|
'enableUndoRedoKeys',
|
|
3701
3920
|
'extraData',
|
|
3702
3921
|
'flex',
|
|
3703
|
-
'focusVisible',
|
|
3704
|
-
'hasChanges',
|
|
3705
3922
|
'height',
|
|
3706
3923
|
'hidden',
|
|
3707
3924
|
'hideFooters',
|
|
@@ -3712,6 +3929,7 @@
|
|
|
3712
3929
|
'insertFirst',
|
|
3713
3930
|
'keyMap',
|
|
3714
3931
|
'labelPosition',
|
|
3932
|
+
'labelWidth',
|
|
3715
3933
|
'longPressTime',
|
|
3716
3934
|
'margin',
|
|
3717
3935
|
'maxHeight',
|
|
@@ -3745,7 +3963,7 @@
|
|
|
3745
3963
|
'width'
|
|
3746
3964
|
]);
|
|
3747
3965
|
BryntumGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3748
|
-
BryntumGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridComponent, selector: "bryntum-grid", inputs: { adopt: "adopt", animateFilterRemovals: "animateFilterRemovals", animateRemovingRows: "animateRemovingRows", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoHeight: "autoHeight", bbar: "bbar", bodyCls: "bodyCls", border: "border", bubbleEvents: "bubbleEvents", collapsible: "collapsible", color: "color", config: "config", contentElementCls: "contentElementCls", contextMenuTriggerEvent: "contextMenuTriggerEvent", dataField: "dataField", defaultRegion: "defaultRegion", destroyStore: "destroyStore", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", disableGridColumnIdWarning: "disableGridColumnIdWarning", disableGridRowModelWarning: "disableGridRowModelWarning", dock: "dock", drawer: "drawer", elementAttributes: "elementAttributes", enableSticky: "enableSticky", enableTextSelection: "enableTextSelection", fillLastColumn: "fillLastColumn", fixedRowHeight: "fixedRowHeight", footer: "footer", formulaProviders: "formulaProviders", fullRowRefresh: "fullRowRefresh", getRowHeight: "getRowHeight", header: "header", hideHorizontalScrollbar: "hideHorizontalScrollbar", hoverCls: "hoverCls", icon: "icon", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", loadMask: "loadMask", loadMaskDefaults: "loadMaskDefaults", loadMaskError: "loadMaskError", localizable: "localizable", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", plugins: "plugins", preserveFocusOnDatasetChange: "preserveFocusOnDatasetChange", preserveScrollOnDatasetChange: "preserveScrollOnDatasetChange", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", resizable: "resizable", resizeToFitIncludesHeader: "resizeToFitIncludesHeader", responsiveLevels: "responsiveLevels", ripple: "ripple", rootElement: "rootElement", scrollerClass: "scrollerClass", scrollManager: "scrollManager", showDirty: "showDirty", stateful: "stateful", statefulEvents: "statefulEvents", stateId: "stateId", stateProvider: "stateProvider", strips: "strips", subGridConfigs: "subGridConfigs", syncMask: "syncMask", tab: "tab", tabBarItems: "tabBarItems", tbar: "tbar", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", animateTreeNodeToggle: "animateTreeNodeToggle", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cellEllipsis: "cellEllipsis", cls: "cls", collapsed: "collapsed", column: "column", columnLines: "columnLines", columns: "columns", data: "data", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", enableUndoRedoKeys: "enableUndoRedoKeys", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", hideFooters: "hideFooters", hideHeaders: "hideHeaders", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", labelPosition: "labelPosition", longPressTime: "longPressTime", margin: "margin", maxHeight: "maxHeight", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", preserveScroll: "preserveScroll", readOnly: "readOnly", rendition: "rendition", rowHeight: "rowHeight", rowLines: "rowLines", rtl: "rtl", scrollable: "scrollable", selectionMode: "selectionMode", span: "span", stateSettings: "stateSettings", store: "store", title: "title", tools: "tools", transition: "transition", transitionDuration: "transitionDuration", width: "width",
|
|
3966
|
+
BryntumGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridComponent, selector: "bryntum-grid", inputs: { adopt: "adopt", animateFilterRemovals: "animateFilterRemovals", animateRemovingRows: "animateRemovingRows", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoHeight: "autoHeight", bbar: "bbar", bodyCls: "bodyCls", border: "border", bubbleEvents: "bubbleEvents", collapsible: "collapsible", color: "color", config: "config", contentElementCls: "contentElementCls", contextMenuTriggerEvent: "contextMenuTriggerEvent", dataField: "dataField", defaultRegion: "defaultRegion", destroyStore: "destroyStore", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", disableGridColumnIdWarning: "disableGridColumnIdWarning", disableGridRowModelWarning: "disableGridRowModelWarning", dock: "dock", drawer: "drawer", elementAttributes: "elementAttributes", enableSticky: "enableSticky", enableTextSelection: "enableTextSelection", fillLastColumn: "fillLastColumn", fixedRowHeight: "fixedRowHeight", footer: "footer", formulaProviders: "formulaProviders", fullRowRefresh: "fullRowRefresh", getRowHeight: "getRowHeight", header: "header", hideHorizontalScrollbar: "hideHorizontalScrollbar", hoverCls: "hoverCls", icon: "icon", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", loadMask: "loadMask", loadMaskDefaults: "loadMaskDefaults", loadMaskError: "loadMaskError", localizable: "localizable", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", plugins: "plugins", preserveFocusOnDatasetChange: "preserveFocusOnDatasetChange", preserveScrollOnDatasetChange: "preserveScrollOnDatasetChange", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", resizable: "resizable", resizeToFitIncludesHeader: "resizeToFitIncludesHeader", responsiveLevels: "responsiveLevels", ripple: "ripple", role: "role", rootElement: "rootElement", scrollerClass: "scrollerClass", scrollManager: "scrollManager", showDirty: "showDirty", stateful: "stateful", statefulEvents: "statefulEvents", stateId: "stateId", stateProvider: "stateProvider", strips: "strips", subGridConfigs: "subGridConfigs", syncMask: "syncMask", tab: "tab", tabBarItems: "tabBarItems", tbar: "tbar", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", animateTreeNodeToggle: "animateTreeNodeToggle", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cellEllipsis: "cellEllipsis", cls: "cls", collapsed: "collapsed", column: "column", columnLines: "columnLines", columns: "columns", data: "data", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", enableUndoRedoKeys: "enableUndoRedoKeys", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", hideFooters: "hideFooters", hideHeaders: "hideHeaders", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", labelPosition: "labelPosition", labelWidth: "labelWidth", longPressTime: "longPressTime", margin: "margin", maxHeight: "maxHeight", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", preserveScroll: "preserveScroll", readOnly: "readOnly", rendition: "rendition", rowHeight: "rowHeight", rowLines: "rowLines", rtl: "rtl", scrollable: "scrollable", selectionMode: "selectionMode", span: "span", stateSettings: "stateSettings", store: "store", title: "title", tools: "tools", transition: "transition", transitionDuration: "transitionDuration", width: "width", originalStore: "originalStore", parent: "parent", selectedCell: "selectedCell", selectedCells: "selectedCells", selectedRecord: "selectedRecord", selectedRecords: "selectedRecords", selectedRows: "selectedRows", state: "state", tooltip: "tooltip", aiFeature: "aiFeature", aiFilterFeature: "aiFilterFeature", cellCopyPasteFeature: "cellCopyPasteFeature", cellEditFeature: "cellEditFeature", cellMenuFeature: "cellMenuFeature", cellTooltipFeature: "cellTooltipFeature", chartsFeature: "chartsFeature", columnAutoWidthFeature: "columnAutoWidthFeature", columnDragToolbarFeature: "columnDragToolbarFeature", columnPickerFeature: "columnPickerFeature", columnRenameFeature: "columnRenameFeature", columnReorderFeature: "columnReorderFeature", columnResizeFeature: "columnResizeFeature", excelExporterFeature: "excelExporterFeature", fileDropFeature: "fileDropFeature", fillHandleFeature: "fillHandleFeature", filterFeature: "filterFeature", filterBarFeature: "filterBarFeature", groupFeature: "groupFeature", groupSummaryFeature: "groupSummaryFeature", headerMenuFeature: "headerMenuFeature", lockRowsFeature: "lockRowsFeature", mergeCellsFeature: "mergeCellsFeature", pdfExportFeature: "pdfExportFeature", pinColumnsFeature: "pinColumnsFeature", printFeature: "printFeature", quickFindFeature: "quickFindFeature", regionResizeFeature: "regionResizeFeature", rowCopyPasteFeature: "rowCopyPasteFeature", rowEditFeature: "rowEditFeature", rowExpanderFeature: "rowExpanderFeature", rowReorderFeature: "rowReorderFeature", rowResizeFeature: "rowResizeFeature", searchFeature: "searchFeature", sortFeature: "sortFeature", splitFeature: "splitFeature", stickyCellsFeature: "stickyCellsFeature", stripeFeature: "stripeFeature", summaryFeature: "summaryFeature", treeFeature: "treeFeature", treeGroupFeature: "treeGroupFeature" }, outputs: { onBeforeCancelCellEdit: "onBeforeCancelCellEdit", onBeforeCancelRowEdit: "onBeforeCancelRowEdit", onBeforeCellEditStart: "onBeforeCellEditStart", onBeforeCellRangeDelete: "onBeforeCellRangeDelete", onBeforeCellRangeEdit: "onBeforeCellRangeEdit", onBeforeColumnCollapseToggle: "onBeforeColumnCollapseToggle", onBeforeColumnDragStart: "onBeforeColumnDragStart", onBeforeColumnDropFinalize: "onBeforeColumnDropFinalize", onBeforeColumnResize: "onBeforeColumnResize", onBeforeCopy: "onBeforeCopy", onBeforeCSVExport: "onBeforeCSVExport", onBeforeDestroy: "onBeforeDestroy", onBeforeExcelExport: "onBeforeExcelExport", onBeforeFillHandleDragStart: "onBeforeFillHandleDragStart", onBeforeFinishCellEdit: "onBeforeFinishCellEdit", onBeforeFinishRowEdit: "onBeforeFinishRowEdit", onBeforeHide: "onBeforeHide", onBeforePaste: "onBeforePaste", onBeforePdfExport: "onBeforePdfExport", onBeforeRenderRow: "onBeforeRenderRow", onBeforeRenderRows: "onBeforeRenderRows", onBeforeRowCollapse: "onBeforeRowCollapse", onBeforeRowExpand: "onBeforeRowExpand", onBeforeSelectionChange: "onBeforeSelectionChange", onBeforeSetRecord: "onBeforeSetRecord", onBeforeShow: "onBeforeShow", onBeforeStartRowEdit: "onBeforeStartRowEdit", onBeforeStateApply: "onBeforeStateApply", onBeforeStateSave: "onBeforeStateSave", onBeforeToggleGroup: "onBeforeToggleGroup", onBeforeToggleNode: "onBeforeToggleNode", onCancelCellEdit: "onCancelCellEdit", onCatchAll: "onCatchAll", onCellClick: "onCellClick", onCellContextMenu: "onCellContextMenu", onCellDblClick: "onCellDblClick", onCellMenuBeforeShow: "onCellMenuBeforeShow", onCellMenuItem: "onCellMenuItem", onCellMenuShow: "onCellMenuShow", onCellMenuToggleItem: "onCellMenuToggleItem", onCellMouseEnter: "onCellMouseEnter", onCellMouseLeave: "onCellMouseLeave", onCellMouseOut: "onCellMouseOut", onCellMouseOver: "onCellMouseOver", onCollapse: "onCollapse", onCollapseNode: "onCollapseNode", onColumnCollapseToggle: "onColumnCollapseToggle", onColumnDrag: "onColumnDrag", onColumnDragStart: "onColumnDragStart", onColumnDrop: "onColumnDrop", onColumnResize: "onColumnResize", onColumnResizeStart: "onColumnResizeStart", onContextMenuItem: "onContextMenuItem", onContextMenuToggleItem: "onContextMenuToggleItem", onCopy: "onCopy", onDataChange: "onDataChange", onDestroy: "onDestroy", onDirtyStateChange: "onDirtyStateChange", onDragSelecting: "onDragSelecting", onElementCreated: "onElementCreated", onExpand: "onExpand", onExpandNode: "onExpandNode", onFileDrop: "onFileDrop", onFillHandleBeforeDragFinalize: "onFillHandleBeforeDragFinalize", onFillHandleDrag: "onFillHandleDrag", onFillHandleDragAbort: "onFillHandleDragAbort", onFillHandleDragEnd: "onFillHandleDragEnd", onFillHandleDragStart: "onFillHandleDragStart", onFinishCellEdit: "onFinishCellEdit", onFinishRowEdit: "onFinishRowEdit", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onGridRowBeforeDragStart: "onGridRowBeforeDragStart", onGridRowBeforeDropFinalize: "onGridRowBeforeDropFinalize", onGridRowDrag: "onGridRowDrag", onGridRowDragAbort: "onGridRowDragAbort", onGridRowDragStart: "onGridRowDragStart", onGridRowDrop: "onGridRowDrop", onHeaderClick: "onHeaderClick", onHeaderMenuBeforeShow: "onHeaderMenuBeforeShow", onHeaderMenuItem: "onHeaderMenuItem", onHeaderMenuShow: "onHeaderMenuShow", onHeaderMenuToggleItem: "onHeaderMenuToggleItem", onHide: "onHide", onLockRows: "onLockRows", onMouseOut: "onMouseOut", onMouseOver: "onMouseOver", onPaint: "onPaint", onPaste: "onPaste", onPdfExport: "onPdfExport", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onRenderRow: "onRenderRow", onRenderRows: "onRenderRows", onResize: "onResize", onResponsive: "onResponsive", onRowCollapse: "onRowCollapse", onRowExpand: "onRowExpand", onRowMouseEnter: "onRowMouseEnter", onRowMouseLeave: "onRowMouseLeave", onScroll: "onScroll", onSelectionChange: "onSelectionChange", onSelectionModeChange: "onSelectionModeChange", onShow: "onShow", onSplit: "onSplit", onSplitterCollapseClick: "onSplitterCollapseClick", onSplitterDragEnd: "onSplitterDragEnd", onSplitterDragStart: "onSplitterDragStart", onSplitterExpandClick: "onSplitterExpandClick", onStartCellEdit: "onStartCellEdit", onStartRowEdit: "onStartRowEdit", onSubGridCollapse: "onSubGridCollapse", onSubGridExpand: "onSubGridExpand", onToggleGroup: "onToggleGroup", onToggleNode: "onToggleNode", onToolClick: "onToolClick", onTreeGroup: "onTreeGroup", onUnlockRows: "onUnlockRows", onUnsplit: "onUnsplit" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
3749
3967
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridComponent, decorators: [{
|
|
3750
3968
|
type: i0.Component,
|
|
3751
3969
|
args: [{
|
|
@@ -3860,6 +4078,8 @@
|
|
|
3860
4078
|
type: i0.Input
|
|
3861
4079
|
}], ripple: [{
|
|
3862
4080
|
type: i0.Input
|
|
4081
|
+
}], role: [{
|
|
4082
|
+
type: i0.Input
|
|
3863
4083
|
}], rootElement: [{
|
|
3864
4084
|
type: i0.Input
|
|
3865
4085
|
}], scrollerClass: [{
|
|
@@ -3950,6 +4170,8 @@
|
|
|
3950
4170
|
type: i0.Input
|
|
3951
4171
|
}], labelPosition: [{
|
|
3952
4172
|
type: i0.Input
|
|
4173
|
+
}], labelWidth: [{
|
|
4174
|
+
type: i0.Input
|
|
3953
4175
|
}], longPressTime: [{
|
|
3954
4176
|
type: i0.Input
|
|
3955
4177
|
}], margin: [{
|
|
@@ -3994,10 +4216,6 @@
|
|
|
3994
4216
|
type: i0.Input
|
|
3995
4217
|
}], width: [{
|
|
3996
4218
|
type: i0.Input
|
|
3997
|
-
}], focusVisible: [{
|
|
3998
|
-
type: i0.Input
|
|
3999
|
-
}], hasChanges: [{
|
|
4000
|
-
type: i0.Input
|
|
4001
4219
|
}], originalStore: [{
|
|
4002
4220
|
type: i0.Input
|
|
4003
4221
|
}], parent: [{
|
|
@@ -4358,8 +4576,7 @@
|
|
|
4358
4576
|
this.onBeforeCancelCellEdit = new i0.EventEmitter();
|
|
4359
4577
|
/**
|
|
4360
4578
|
* Fires on the owning Grid before the row editing is canceled, return false to signal that the value is invalid and editing should not be finalized.
|
|
4361
|
-
* ...
|
|
4362
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeCancelRowEdit)
|
|
4579
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeCancelRowEdit)
|
|
4363
4580
|
* @param {object} event Event object
|
|
4364
4581
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
4365
4582
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -4474,8 +4691,7 @@
|
|
|
4474
4691
|
this.onBeforeFinishCellEdit = new i0.EventEmitter();
|
|
4475
4692
|
/**
|
|
4476
4693
|
* Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
4477
|
-
* ...
|
|
4478
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeFinishRowEdit)
|
|
4694
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeFinishRowEdit)
|
|
4479
4695
|
* @param {object} event Event object
|
|
4480
4696
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
4481
4697
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -4520,16 +4736,14 @@
|
|
|
4520
4736
|
this.onBeforeRenderRows = new i0.EventEmitter();
|
|
4521
4737
|
/**
|
|
4522
4738
|
* This event fires before row collapse is started.
|
|
4523
|
-
* ...
|
|
4524
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeRowCollapse)
|
|
4739
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeRowCollapse)
|
|
4525
4740
|
* @param {object} event Event object
|
|
4526
4741
|
* @param {Core.data.Model} event.record Record
|
|
4527
4742
|
*/
|
|
4528
4743
|
this.onBeforeRowCollapse = new i0.EventEmitter();
|
|
4529
4744
|
/**
|
|
4530
4745
|
* This event fires before row expand is started.
|
|
4531
|
-
* ...
|
|
4532
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeRowExpand)
|
|
4746
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-beforeRowExpand)
|
|
4533
4747
|
* @param {object} event Event object
|
|
4534
4748
|
* @param {Core.data.Model} event.record Record
|
|
4535
4749
|
*/
|
|
@@ -4609,8 +4823,7 @@
|
|
|
4609
4823
|
this.onCancelCellEdit = new i0.EventEmitter();
|
|
4610
4824
|
/**
|
|
4611
4825
|
* Fires when any other event is fired from the object.
|
|
4612
|
-
* ...
|
|
4613
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-catchAll)
|
|
4826
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-catchAll)
|
|
4614
4827
|
* @param {object} event Event object
|
|
4615
4828
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
4616
4829
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -4652,8 +4865,7 @@
|
|
|
4652
4865
|
/**
|
|
4653
4866
|
* This event fires on the owning grid before the context menu is shown for a cell.
|
|
4654
4867
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/CellMenu#config-processItems).
|
|
4655
|
-
* ...
|
|
4656
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-cellMenuBeforeShow)
|
|
4868
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-cellMenuBeforeShow)
|
|
4657
4869
|
* @param {object} event Event object
|
|
4658
4870
|
* @param {Grid.view.Grid} event.source The grid
|
|
4659
4871
|
* @param {Core.widget.Menu} event.menu The menu
|
|
@@ -4834,8 +5046,7 @@
|
|
|
4834
5046
|
this.onCopy = new i0.EventEmitter();
|
|
4835
5047
|
/**
|
|
4836
5048
|
* Fired when data in the store changes.
|
|
4837
|
-
* ...
|
|
4838
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
5049
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
4839
5050
|
* @param {object} event Event object
|
|
4840
5051
|
* @param {Grid.view.GridBase} event.source Owning grid
|
|
4841
5052
|
* @param {Core.data.Store} event.store The originating store
|
|
@@ -4939,8 +5150,7 @@
|
|
|
4939
5150
|
this.onFinishCellEdit = new i0.EventEmitter();
|
|
4940
5151
|
/**
|
|
4941
5152
|
* Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
4942
|
-
* ...
|
|
4943
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-finishRowEdit)
|
|
5153
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-finishRowEdit)
|
|
4944
5154
|
* @param {object} event Event object
|
|
4945
5155
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
4946
5156
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -5040,8 +5250,7 @@
|
|
|
5040
5250
|
this.onGridRowDrop = new i0.EventEmitter();
|
|
5041
5251
|
/**
|
|
5042
5252
|
* Fired when a grid header is clicked on.
|
|
5043
|
-
* ...
|
|
5044
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-headerClick)
|
|
5253
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-headerClick)
|
|
5045
5254
|
* @param {object} event Event object
|
|
5046
5255
|
* @param {Event} event.domEvent The triggering DOM event.
|
|
5047
5256
|
* @param {Grid.column.Column} event.column The column clicked on.
|
|
@@ -5050,8 +5259,7 @@
|
|
|
5050
5259
|
/**
|
|
5051
5260
|
* This event fires on the owning Grid before the context menu is shown for a header.
|
|
5052
5261
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu#config-processItems).
|
|
5053
|
-
* ...
|
|
5054
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-headerMenuBeforeShow)
|
|
5262
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-headerMenuBeforeShow)
|
|
5055
5263
|
* @param {object} event Event object
|
|
5056
5264
|
* @param {Grid.view.Grid} event.source The grid
|
|
5057
5265
|
* @param {Core.widget.Menu} event.menu The menu
|
|
@@ -5114,8 +5322,7 @@
|
|
|
5114
5322
|
/**
|
|
5115
5323
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
5116
5324
|
* achieves visibility.
|
|
5117
|
-
* ...
|
|
5118
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-paint)
|
|
5325
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-paint)
|
|
5119
5326
|
* @param {object} event Event object
|
|
5120
5327
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
5121
5328
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -5134,8 +5341,8 @@
|
|
|
5134
5341
|
/**
|
|
5135
5342
|
* Fires on the owning Grid when export has finished
|
|
5136
5343
|
* @param {object} event Event object
|
|
5137
|
-
* @param {Response} event.response Optional response, if received
|
|
5138
|
-
* @param {Error} event.error Optional error, if exception occurred
|
|
5344
|
+
* @param {Response} [event.response] Optional response, if received
|
|
5345
|
+
* @param {Error} [event.error] Optional error, if exception occurred
|
|
5139
5346
|
*/
|
|
5140
5347
|
this.onPdfExport = new i0.EventEmitter();
|
|
5141
5348
|
/**
|
|
@@ -5192,8 +5399,7 @@
|
|
|
5192
5399
|
this.onRowCollapse = new i0.EventEmitter();
|
|
5193
5400
|
/**
|
|
5194
5401
|
* This event fires when a row expand has finished expanding.
|
|
5195
|
-
* ...
|
|
5196
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-rowExpand)
|
|
5402
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-rowExpand)
|
|
5197
5403
|
* @param {object} event Event object
|
|
5198
5404
|
* @param {Core.data.Model} event.record Record
|
|
5199
5405
|
* @param {object} event.expandedElements An object with the Grid region name as property and the expanded body element as value
|
|
@@ -5331,7 +5537,7 @@
|
|
|
5331
5537
|
* @param {Core.data.Model} event.groupRecord [DEPRECATED] Use `groupRecords` param instead
|
|
5332
5538
|
* @param {Core.data.Model[]} event.groupRecords The group records being toggled
|
|
5333
5539
|
* @param {boolean} event.collapse Collapsed (true) or expanded (false)
|
|
5334
|
-
* @param {boolean} event.allRecords True if this event is part of toggling all groups
|
|
5540
|
+
* @param {boolean} [event.allRecords] True if this event is part of toggling all groups
|
|
5335
5541
|
*/
|
|
5336
5542
|
this.onToggleGroup = new i0.EventEmitter();
|
|
5337
5543
|
/**
|
|
@@ -5413,6 +5619,16 @@
|
|
|
5413
5619
|
else {
|
|
5414
5620
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
5415
5621
|
}
|
|
5622
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
5623
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
5624
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
5625
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
5626
|
+
// included in document.fonts across all browsers).
|
|
5627
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
5628
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
5629
|
+
initThemeInShadowRoots();
|
|
5630
|
+
BryntumGridBaseComponent.ensureFontsInDocument(shadowRoot);
|
|
5631
|
+
}
|
|
5416
5632
|
// @ts-ignore
|
|
5417
5633
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
5418
5634
|
// Backwards compatibility for gridInstance, schedulerInstance etc.
|
|
@@ -5420,6 +5636,48 @@
|
|
|
5420
5636
|
me[coreThin.StringHelper.uncapitalize(instanceName) + 'Instance'] = me.instance;
|
|
5421
5637
|
//
|
|
5422
5638
|
};
|
|
5639
|
+
/**
|
|
5640
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
5641
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
5642
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
5643
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
5644
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
5645
|
+
*/
|
|
5646
|
+
BryntumGridBaseComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
5647
|
+
var _a;
|
|
5648
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
5649
|
+
return;
|
|
5650
|
+
}
|
|
5651
|
+
var fontFaceRules = [];
|
|
5652
|
+
var extractFromSheet = function (sheet) {
|
|
5653
|
+
try {
|
|
5654
|
+
var rules = sheet.cssRules;
|
|
5655
|
+
for (var i = 0; i < rules.length; i++) {
|
|
5656
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
5657
|
+
fontFaceRules.push(rules[i].cssText);
|
|
5658
|
+
}
|
|
5659
|
+
}
|
|
5660
|
+
}
|
|
5661
|
+
catch (_e) {
|
|
5662
|
+
// Cross-origin access may throw; silently skip
|
|
5663
|
+
}
|
|
5664
|
+
};
|
|
5665
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
5666
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
5667
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
5668
|
+
// <style> elements (older Angular or fallback)
|
|
5669
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
5670
|
+
if (el.sheet) {
|
|
5671
|
+
extractFromSheet(el.sheet);
|
|
5672
|
+
}
|
|
5673
|
+
});
|
|
5674
|
+
if (fontFaceRules.length > 0) {
|
|
5675
|
+
var style = document.createElement('style');
|
|
5676
|
+
style.id = 'b-shadow-root-fonts';
|
|
5677
|
+
style.textContent = fontFaceRules.join('\n');
|
|
5678
|
+
document.head.appendChild(style);
|
|
5679
|
+
}
|
|
5680
|
+
};
|
|
5423
5681
|
/**
|
|
5424
5682
|
* Watch for changes
|
|
5425
5683
|
* @param changes
|
|
@@ -5431,8 +5689,8 @@
|
|
|
5431
5689
|
return;
|
|
5432
5690
|
}
|
|
5433
5691
|
// Iterate over all changes
|
|
5434
|
-
Object.entries(changes).forEach(function (
|
|
5435
|
-
var
|
|
5692
|
+
Object.entries(changes).forEach(function (_b) {
|
|
5693
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
5436
5694
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumGridBaseComponent.bryntumConfigsOnly, bryntumProps = BryntumGridBaseComponent.bryntumProps;
|
|
5437
5695
|
if (bryntumProps.includes(prop)) {
|
|
5438
5696
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -5685,6 +5943,7 @@
|
|
|
5685
5943
|
'insertFirst',
|
|
5686
5944
|
'keyMap',
|
|
5687
5945
|
'labelPosition',
|
|
5946
|
+
'labelWidth',
|
|
5688
5947
|
'listeners',
|
|
5689
5948
|
'loadMask',
|
|
5690
5949
|
'loadMaskDefaults',
|
|
@@ -5711,6 +5970,7 @@
|
|
|
5711
5970
|
'resizeToFitIncludesHeader',
|
|
5712
5971
|
'responsiveLevels',
|
|
5713
5972
|
'ripple',
|
|
5973
|
+
'role',
|
|
5714
5974
|
'rootElement',
|
|
5715
5975
|
'rowHeight',
|
|
5716
5976
|
'rowLines',
|
|
@@ -5796,6 +6056,7 @@
|
|
|
5796
6056
|
'resizeToFitIncludesHeader',
|
|
5797
6057
|
'responsiveLevels',
|
|
5798
6058
|
'ripple',
|
|
6059
|
+
'role',
|
|
5799
6060
|
'rootElement',
|
|
5800
6061
|
'scrollerClass',
|
|
5801
6062
|
'scrollManager',
|
|
@@ -5832,8 +6093,6 @@
|
|
|
5832
6093
|
'enableUndoRedoKeys',
|
|
5833
6094
|
'extraData',
|
|
5834
6095
|
'flex',
|
|
5835
|
-
'focusVisible',
|
|
5836
|
-
'hasChanges',
|
|
5837
6096
|
'height',
|
|
5838
6097
|
'hidden',
|
|
5839
6098
|
'hideFooters',
|
|
@@ -5844,6 +6103,7 @@
|
|
|
5844
6103
|
'insertFirst',
|
|
5845
6104
|
'keyMap',
|
|
5846
6105
|
'labelPosition',
|
|
6106
|
+
'labelWidth',
|
|
5847
6107
|
'longPressTime',
|
|
5848
6108
|
'margin',
|
|
5849
6109
|
'maxHeight',
|
|
@@ -5877,7 +6137,7 @@
|
|
|
5877
6137
|
'width'
|
|
5878
6138
|
]);
|
|
5879
6139
|
BryntumGridBaseComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridBaseComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5880
|
-
BryntumGridBaseComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridBaseComponent, selector: "bryntum-grid-base", inputs: { adopt: "adopt", animateFilterRemovals: "animateFilterRemovals", animateRemovingRows: "animateRemovingRows", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoHeight: "autoHeight", bbar: "bbar", bodyCls: "bodyCls", border: "border", bubbleEvents: "bubbleEvents", collapsible: "collapsible", color: "color", config: "config", contentElementCls: "contentElementCls", contextMenuTriggerEvent: "contextMenuTriggerEvent", dataField: "dataField", defaultRegion: "defaultRegion", destroyStore: "destroyStore", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", disableGridColumnIdWarning: "disableGridColumnIdWarning", disableGridRowModelWarning: "disableGridRowModelWarning", dock: "dock", drawer: "drawer", elementAttributes: "elementAttributes", enableSticky: "enableSticky", enableTextSelection: "enableTextSelection", fillLastColumn: "fillLastColumn", fixedRowHeight: "fixedRowHeight", footer: "footer", formulaProviders: "formulaProviders", fullRowRefresh: "fullRowRefresh", getRowHeight: "getRowHeight", header: "header", hideHorizontalScrollbar: "hideHorizontalScrollbar", hoverCls: "hoverCls", icon: "icon", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", loadMask: "loadMask", loadMaskDefaults: "loadMaskDefaults", loadMaskError: "loadMaskError", localizable: "localizable", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", plugins: "plugins", preserveFocusOnDatasetChange: "preserveFocusOnDatasetChange", preserveScrollOnDatasetChange: "preserveScrollOnDatasetChange", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", resizable: "resizable", resizeToFitIncludesHeader: "resizeToFitIncludesHeader", responsiveLevels: "responsiveLevels", ripple: "ripple", rootElement: "rootElement", scrollerClass: "scrollerClass", scrollManager: "scrollManager", showDirty: "showDirty", stateful: "stateful", statefulEvents: "statefulEvents", stateId: "stateId", stateProvider: "stateProvider", strips: "strips", subGridConfigs: "subGridConfigs", syncMask: "syncMask", tab: "tab", tabBarItems: "tabBarItems", tbar: "tbar", ui: "ui", weight: "weight", alignSelf: "alignSelf", animateTreeNodeToggle: "animateTreeNodeToggle", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cellEllipsis: "cellEllipsis", cls: "cls", collapsed: "collapsed", column: "column", columnLines: "columnLines", columns: "columns", data: "data", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", enableUndoRedoKeys: "enableUndoRedoKeys", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", hideFooters: "hideFooters", hideHeaders: "hideHeaders", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", labelPosition: "labelPosition", longPressTime: "longPressTime", margin: "margin", maxHeight: "maxHeight", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", preserveScroll: "preserveScroll", readOnly: "readOnly", rendition: "rendition", rowHeight: "rowHeight", rowLines: "rowLines", rtl: "rtl", scrollable: "scrollable", selectionMode: "selectionMode", span: "span", stateSettings: "stateSettings", store: "store", title: "title", tools: "tools", transition: "transition", transitionDuration: "transitionDuration", width: "width",
|
|
6140
|
+
BryntumGridBaseComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridBaseComponent, selector: "bryntum-grid-base", inputs: { adopt: "adopt", animateFilterRemovals: "animateFilterRemovals", animateRemovingRows: "animateRemovingRows", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoHeight: "autoHeight", bbar: "bbar", bodyCls: "bodyCls", border: "border", bubbleEvents: "bubbleEvents", collapsible: "collapsible", color: "color", config: "config", contentElementCls: "contentElementCls", contextMenuTriggerEvent: "contextMenuTriggerEvent", dataField: "dataField", defaultRegion: "defaultRegion", destroyStore: "destroyStore", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", disableGridColumnIdWarning: "disableGridColumnIdWarning", disableGridRowModelWarning: "disableGridRowModelWarning", dock: "dock", drawer: "drawer", elementAttributes: "elementAttributes", enableSticky: "enableSticky", enableTextSelection: "enableTextSelection", fillLastColumn: "fillLastColumn", fixedRowHeight: "fixedRowHeight", footer: "footer", formulaProviders: "formulaProviders", fullRowRefresh: "fullRowRefresh", getRowHeight: "getRowHeight", header: "header", hideHorizontalScrollbar: "hideHorizontalScrollbar", hoverCls: "hoverCls", icon: "icon", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", loadMask: "loadMask", loadMaskDefaults: "loadMaskDefaults", loadMaskError: "loadMaskError", localizable: "localizable", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", plugins: "plugins", preserveFocusOnDatasetChange: "preserveFocusOnDatasetChange", preserveScrollOnDatasetChange: "preserveScrollOnDatasetChange", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", resizable: "resizable", resizeToFitIncludesHeader: "resizeToFitIncludesHeader", responsiveLevels: "responsiveLevels", ripple: "ripple", role: "role", rootElement: "rootElement", scrollerClass: "scrollerClass", scrollManager: "scrollManager", showDirty: "showDirty", stateful: "stateful", statefulEvents: "statefulEvents", stateId: "stateId", stateProvider: "stateProvider", strips: "strips", subGridConfigs: "subGridConfigs", syncMask: "syncMask", tab: "tab", tabBarItems: "tabBarItems", tbar: "tbar", ui: "ui", weight: "weight", alignSelf: "alignSelf", animateTreeNodeToggle: "animateTreeNodeToggle", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cellEllipsis: "cellEllipsis", cls: "cls", collapsed: "collapsed", column: "column", columnLines: "columnLines", columns: "columns", data: "data", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", enableUndoRedoKeys: "enableUndoRedoKeys", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", hideFooters: "hideFooters", hideHeaders: "hideHeaders", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", labelPosition: "labelPosition", labelWidth: "labelWidth", longPressTime: "longPressTime", margin: "margin", maxHeight: "maxHeight", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", preserveScroll: "preserveScroll", readOnly: "readOnly", rendition: "rendition", rowHeight: "rowHeight", rowLines: "rowLines", rtl: "rtl", scrollable: "scrollable", selectionMode: "selectionMode", span: "span", stateSettings: "stateSettings", store: "store", title: "title", tools: "tools", transition: "transition", transitionDuration: "transitionDuration", width: "width", originalStore: "originalStore", parent: "parent", selectedCell: "selectedCell", selectedCells: "selectedCells", selectedRecord: "selectedRecord", selectedRecords: "selectedRecords", selectedRows: "selectedRows", state: "state", tooltip: "tooltip", aiFeature: "aiFeature", aiFilterFeature: "aiFilterFeature", cellCopyPasteFeature: "cellCopyPasteFeature", cellEditFeature: "cellEditFeature", cellMenuFeature: "cellMenuFeature", cellTooltipFeature: "cellTooltipFeature", chartsFeature: "chartsFeature", columnAutoWidthFeature: "columnAutoWidthFeature", columnDragToolbarFeature: "columnDragToolbarFeature", columnPickerFeature: "columnPickerFeature", columnRenameFeature: "columnRenameFeature", columnReorderFeature: "columnReorderFeature", columnResizeFeature: "columnResizeFeature", excelExporterFeature: "excelExporterFeature", fileDropFeature: "fileDropFeature", fillHandleFeature: "fillHandleFeature", filterFeature: "filterFeature", filterBarFeature: "filterBarFeature", groupFeature: "groupFeature", groupSummaryFeature: "groupSummaryFeature", headerMenuFeature: "headerMenuFeature", lockRowsFeature: "lockRowsFeature", mergeCellsFeature: "mergeCellsFeature", pdfExportFeature: "pdfExportFeature", pinColumnsFeature: "pinColumnsFeature", printFeature: "printFeature", quickFindFeature: "quickFindFeature", regionResizeFeature: "regionResizeFeature", rowCopyPasteFeature: "rowCopyPasteFeature", rowEditFeature: "rowEditFeature", rowExpanderFeature: "rowExpanderFeature", rowReorderFeature: "rowReorderFeature", rowResizeFeature: "rowResizeFeature", searchFeature: "searchFeature", sortFeature: "sortFeature", splitFeature: "splitFeature", stickyCellsFeature: "stickyCellsFeature", stripeFeature: "stripeFeature", summaryFeature: "summaryFeature", treeFeature: "treeFeature", treeGroupFeature: "treeGroupFeature" }, outputs: { onBeforeCancelCellEdit: "onBeforeCancelCellEdit", onBeforeCancelRowEdit: "onBeforeCancelRowEdit", onBeforeCellEditStart: "onBeforeCellEditStart", onBeforeCellRangeDelete: "onBeforeCellRangeDelete", onBeforeCellRangeEdit: "onBeforeCellRangeEdit", onBeforeColumnCollapseToggle: "onBeforeColumnCollapseToggle", onBeforeColumnDragStart: "onBeforeColumnDragStart", onBeforeColumnDropFinalize: "onBeforeColumnDropFinalize", onBeforeColumnResize: "onBeforeColumnResize", onBeforeCopy: "onBeforeCopy", onBeforeCSVExport: "onBeforeCSVExport", onBeforeDestroy: "onBeforeDestroy", onBeforeExcelExport: "onBeforeExcelExport", onBeforeFillHandleDragStart: "onBeforeFillHandleDragStart", onBeforeFinishCellEdit: "onBeforeFinishCellEdit", onBeforeFinishRowEdit: "onBeforeFinishRowEdit", onBeforeHide: "onBeforeHide", onBeforePaste: "onBeforePaste", onBeforePdfExport: "onBeforePdfExport", onBeforeRenderRow: "onBeforeRenderRow", onBeforeRenderRows: "onBeforeRenderRows", onBeforeRowCollapse: "onBeforeRowCollapse", onBeforeRowExpand: "onBeforeRowExpand", onBeforeSelectionChange: "onBeforeSelectionChange", onBeforeSetRecord: "onBeforeSetRecord", onBeforeShow: "onBeforeShow", onBeforeStartRowEdit: "onBeforeStartRowEdit", onBeforeStateApply: "onBeforeStateApply", onBeforeStateSave: "onBeforeStateSave", onBeforeToggleGroup: "onBeforeToggleGroup", onBeforeToggleNode: "onBeforeToggleNode", onCancelCellEdit: "onCancelCellEdit", onCatchAll: "onCatchAll", onCellClick: "onCellClick", onCellContextMenu: "onCellContextMenu", onCellDblClick: "onCellDblClick", onCellMenuBeforeShow: "onCellMenuBeforeShow", onCellMenuItem: "onCellMenuItem", onCellMenuShow: "onCellMenuShow", onCellMenuToggleItem: "onCellMenuToggleItem", onCellMouseEnter: "onCellMouseEnter", onCellMouseLeave: "onCellMouseLeave", onCellMouseOut: "onCellMouseOut", onCellMouseOver: "onCellMouseOver", onCollapse: "onCollapse", onCollapseNode: "onCollapseNode", onColumnCollapseToggle: "onColumnCollapseToggle", onColumnDrag: "onColumnDrag", onColumnDragStart: "onColumnDragStart", onColumnDrop: "onColumnDrop", onColumnResize: "onColumnResize", onColumnResizeStart: "onColumnResizeStart", onContextMenuItem: "onContextMenuItem", onContextMenuToggleItem: "onContextMenuToggleItem", onCopy: "onCopy", onDataChange: "onDataChange", onDestroy: "onDestroy", onDirtyStateChange: "onDirtyStateChange", onDragSelecting: "onDragSelecting", onElementCreated: "onElementCreated", onExpand: "onExpand", onExpandNode: "onExpandNode", onFileDrop: "onFileDrop", onFillHandleBeforeDragFinalize: "onFillHandleBeforeDragFinalize", onFillHandleDrag: "onFillHandleDrag", onFillHandleDragAbort: "onFillHandleDragAbort", onFillHandleDragEnd: "onFillHandleDragEnd", onFillHandleDragStart: "onFillHandleDragStart", onFinishCellEdit: "onFinishCellEdit", onFinishRowEdit: "onFinishRowEdit", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onGridRowBeforeDragStart: "onGridRowBeforeDragStart", onGridRowBeforeDropFinalize: "onGridRowBeforeDropFinalize", onGridRowDrag: "onGridRowDrag", onGridRowDragAbort: "onGridRowDragAbort", onGridRowDragStart: "onGridRowDragStart", onGridRowDrop: "onGridRowDrop", onHeaderClick: "onHeaderClick", onHeaderMenuBeforeShow: "onHeaderMenuBeforeShow", onHeaderMenuItem: "onHeaderMenuItem", onHeaderMenuShow: "onHeaderMenuShow", onHeaderMenuToggleItem: "onHeaderMenuToggleItem", onHide: "onHide", onLockRows: "onLockRows", onMouseOut: "onMouseOut", onMouseOver: "onMouseOver", onPaint: "onPaint", onPaste: "onPaste", onPdfExport: "onPdfExport", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onRenderRow: "onRenderRow", onRenderRows: "onRenderRows", onResize: "onResize", onResponsive: "onResponsive", onRowCollapse: "onRowCollapse", onRowExpand: "onRowExpand", onRowMouseEnter: "onRowMouseEnter", onRowMouseLeave: "onRowMouseLeave", onScroll: "onScroll", onSelectionChange: "onSelectionChange", onSelectionModeChange: "onSelectionModeChange", onShow: "onShow", onSplit: "onSplit", onSplitterCollapseClick: "onSplitterCollapseClick", onSplitterDragEnd: "onSplitterDragEnd", onSplitterDragStart: "onSplitterDragStart", onSplitterExpandClick: "onSplitterExpandClick", onStartCellEdit: "onStartCellEdit", onStartRowEdit: "onStartRowEdit", onSubGridCollapse: "onSubGridCollapse", onSubGridExpand: "onSubGridExpand", onToggleGroup: "onToggleGroup", onToggleNode: "onToggleNode", onToolClick: "onToolClick", onTreeGroup: "onTreeGroup", onUnlockRows: "onUnlockRows", onUnsplit: "onUnsplit" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
5881
6141
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridBaseComponent, decorators: [{
|
|
5882
6142
|
type: i0.Component,
|
|
5883
6143
|
args: [{
|
|
@@ -5992,6 +6252,8 @@
|
|
|
5992
6252
|
type: i0.Input
|
|
5993
6253
|
}], ripple: [{
|
|
5994
6254
|
type: i0.Input
|
|
6255
|
+
}], role: [{
|
|
6256
|
+
type: i0.Input
|
|
5995
6257
|
}], rootElement: [{
|
|
5996
6258
|
type: i0.Input
|
|
5997
6259
|
}], scrollerClass: [{
|
|
@@ -6080,6 +6342,8 @@
|
|
|
6080
6342
|
type: i0.Input
|
|
6081
6343
|
}], labelPosition: [{
|
|
6082
6344
|
type: i0.Input
|
|
6345
|
+
}], labelWidth: [{
|
|
6346
|
+
type: i0.Input
|
|
6083
6347
|
}], longPressTime: [{
|
|
6084
6348
|
type: i0.Input
|
|
6085
6349
|
}], margin: [{
|
|
@@ -6124,10 +6388,6 @@
|
|
|
6124
6388
|
type: i0.Input
|
|
6125
6389
|
}], width: [{
|
|
6126
6390
|
type: i0.Input
|
|
6127
|
-
}], focusVisible: [{
|
|
6128
|
-
type: i0.Input
|
|
6129
|
-
}], hasChanges: [{
|
|
6130
|
-
type: i0.Input
|
|
6131
6391
|
}], originalStore: [{
|
|
6132
6392
|
type: i0.Input
|
|
6133
6393
|
}], parent: [{
|
|
@@ -6499,8 +6759,7 @@
|
|
|
6499
6759
|
this.onBeforeShow = new i0.EventEmitter();
|
|
6500
6760
|
/**
|
|
6501
6761
|
* Fires when any other event is fired from the object.
|
|
6502
|
-
* ...
|
|
6503
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#event-catchAll)
|
|
6762
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#event-catchAll)
|
|
6504
6763
|
* @param {object} event Event object
|
|
6505
6764
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
6506
6765
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -6551,8 +6810,7 @@
|
|
|
6551
6810
|
/**
|
|
6552
6811
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
6553
6812
|
* achieves visibility.
|
|
6554
|
-
* ...
|
|
6555
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#event-paint)
|
|
6813
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#event-paint)
|
|
6556
6814
|
* @param {object} event Event object
|
|
6557
6815
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
6558
6816
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -6632,9 +6890,61 @@
|
|
|
6632
6890
|
else {
|
|
6633
6891
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
6634
6892
|
}
|
|
6893
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
6894
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
6895
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
6896
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
6897
|
+
// included in document.fonts across all browsers).
|
|
6898
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
6899
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
6900
|
+
initThemeInShadowRoots();
|
|
6901
|
+
BryntumGridChartDesignerComponent.ensureFontsInDocument(shadowRoot);
|
|
6902
|
+
}
|
|
6635
6903
|
// @ts-ignore
|
|
6636
6904
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
6637
6905
|
};
|
|
6906
|
+
/**
|
|
6907
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
6908
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
6909
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
6910
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
6911
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
6912
|
+
*/
|
|
6913
|
+
BryntumGridChartDesignerComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
6914
|
+
var _a;
|
|
6915
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
6916
|
+
return;
|
|
6917
|
+
}
|
|
6918
|
+
var fontFaceRules = [];
|
|
6919
|
+
var extractFromSheet = function (sheet) {
|
|
6920
|
+
try {
|
|
6921
|
+
var rules = sheet.cssRules;
|
|
6922
|
+
for (var i = 0; i < rules.length; i++) {
|
|
6923
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
6924
|
+
fontFaceRules.push(rules[i].cssText);
|
|
6925
|
+
}
|
|
6926
|
+
}
|
|
6927
|
+
}
|
|
6928
|
+
catch (_e) {
|
|
6929
|
+
// Cross-origin access may throw; silently skip
|
|
6930
|
+
}
|
|
6931
|
+
};
|
|
6932
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
6933
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
6934
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
6935
|
+
// <style> elements (older Angular or fallback)
|
|
6936
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
6937
|
+
if (el.sheet) {
|
|
6938
|
+
extractFromSheet(el.sheet);
|
|
6939
|
+
}
|
|
6940
|
+
});
|
|
6941
|
+
if (fontFaceRules.length > 0) {
|
|
6942
|
+
var style = document.createElement('style');
|
|
6943
|
+
style.id = 'b-shadow-root-fonts';
|
|
6944
|
+
style.textContent = fontFaceRules.join('\n');
|
|
6945
|
+
document.head.appendChild(style);
|
|
6946
|
+
}
|
|
6947
|
+
};
|
|
6638
6948
|
/**
|
|
6639
6949
|
* Watch for changes
|
|
6640
6950
|
* @param changes
|
|
@@ -6646,8 +6956,8 @@
|
|
|
6646
6956
|
return;
|
|
6647
6957
|
}
|
|
6648
6958
|
// Iterate over all changes
|
|
6649
|
-
Object.entries(changes).forEach(function (
|
|
6650
|
-
var
|
|
6959
|
+
Object.entries(changes).forEach(function (_b) {
|
|
6960
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
6651
6961
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumGridChartDesignerComponent.bryntumConfigsOnly, bryntumProps = BryntumGridChartDesignerComponent.bryntumProps;
|
|
6652
6962
|
if (bryntumProps.includes(prop)) {
|
|
6653
6963
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -6746,6 +7056,7 @@
|
|
|
6746
7056
|
'readOnly',
|
|
6747
7057
|
'relayStoreEvents',
|
|
6748
7058
|
'ripple',
|
|
7059
|
+
'role',
|
|
6749
7060
|
'rootElement',
|
|
6750
7061
|
'rtl',
|
|
6751
7062
|
'scrollable',
|
|
@@ -6800,6 +7111,7 @@
|
|
|
6800
7111
|
'preventTooltipOnTouch',
|
|
6801
7112
|
'relayStoreEvents',
|
|
6802
7113
|
'ripple',
|
|
7114
|
+
'role',
|
|
6803
7115
|
'rootElement',
|
|
6804
7116
|
'scrollAction',
|
|
6805
7117
|
'showAnimation',
|
|
@@ -6815,7 +7127,6 @@
|
|
|
6815
7127
|
];
|
|
6816
7128
|
BryntumGridChartDesignerComponent.bryntumProps = BryntumGridChartDesignerComponent.bryntumFeatureNames.concat([
|
|
6817
7129
|
'alignSelf',
|
|
6818
|
-
'anchorSize',
|
|
6819
7130
|
'appendTo',
|
|
6820
7131
|
'callOnFunctions',
|
|
6821
7132
|
'catchEventHandlerExceptions',
|
|
@@ -6826,7 +7137,6 @@
|
|
|
6826
7137
|
'disabled',
|
|
6827
7138
|
'extraData',
|
|
6828
7139
|
'flex',
|
|
6829
|
-
'focusVisible',
|
|
6830
7140
|
'height',
|
|
6831
7141
|
'hidden',
|
|
6832
7142
|
'html',
|
|
@@ -6851,7 +7161,7 @@
|
|
|
6851
7161
|
'y'
|
|
6852
7162
|
]);
|
|
6853
7163
|
BryntumGridChartDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridChartDesignerComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6854
|
-
BryntumGridChartDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridChartDesignerComponent, selector: "bryntum-grid-chart-designer", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", bubbleEvents: "bubbleEvents", centered: "centered", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", floating: "floating", grid: "grid", hideAnimation: "hideAnimation", htmlCls: "htmlCls", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", sync: "sync", tab: "tab", tag: "tag", textAlign: "textAlign", title: "title", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", content: "content", dataset: "dataset", disabled: "disabled", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", readOnly: "readOnly", rtl: "rtl", scrollable: "scrollable", span: "span", tooltip: "tooltip", width: "width", x: "x", y: "y",
|
|
7164
|
+
BryntumGridChartDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridChartDesignerComponent, selector: "bryntum-grid-chart-designer", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", bubbleEvents: "bubbleEvents", centered: "centered", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", floating: "floating", grid: "grid", hideAnimation: "hideAnimation", htmlCls: "htmlCls", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", sync: "sync", tab: "tab", tag: "tag", textAlign: "textAlign", title: "title", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", content: "content", dataset: "dataset", disabled: "disabled", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", readOnly: "readOnly", rtl: "rtl", scrollable: "scrollable", span: "span", tooltip: "tooltip", width: "width", x: "x", y: "y", parent: "parent" }, outputs: { onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onDestroy: "onDestroy", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onShow: "onShow" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
6855
7165
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridChartDesignerComponent, decorators: [{
|
|
6856
7166
|
type: i0.Component,
|
|
6857
7167
|
args: [{
|
|
@@ -6924,6 +7234,8 @@
|
|
|
6924
7234
|
type: i0.Input
|
|
6925
7235
|
}], ripple: [{
|
|
6926
7236
|
type: i0.Input
|
|
7237
|
+
}], role: [{
|
|
7238
|
+
type: i0.Input
|
|
6927
7239
|
}], rootElement: [{
|
|
6928
7240
|
type: i0.Input
|
|
6929
7241
|
}], scrollAction: [{
|
|
@@ -7012,10 +7324,6 @@
|
|
|
7012
7324
|
type: i0.Input
|
|
7013
7325
|
}], y: [{
|
|
7014
7326
|
type: i0.Input
|
|
7015
|
-
}], anchorSize: [{
|
|
7016
|
-
type: i0.Input
|
|
7017
|
-
}], focusVisible: [{
|
|
7018
|
-
type: i0.Input
|
|
7019
7327
|
}], parent: [{
|
|
7020
7328
|
type: i0.Input
|
|
7021
7329
|
}], onBeforeDestroy: [{
|
|
@@ -7087,8 +7395,7 @@
|
|
|
7087
7395
|
this.onBeforeShow = new i0.EventEmitter();
|
|
7088
7396
|
/**
|
|
7089
7397
|
* Fires when any other event is fired from the object.
|
|
7090
|
-
* ...
|
|
7091
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPicker#event-catchAll)
|
|
7398
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPicker#event-catchAll)
|
|
7092
7399
|
* @param {object} event Event object
|
|
7093
7400
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
7094
7401
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -7154,8 +7461,7 @@
|
|
|
7154
7461
|
/**
|
|
7155
7462
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
7156
7463
|
* achieves visibility.
|
|
7157
|
-
* ...
|
|
7158
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPicker#event-paint)
|
|
7464
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPicker#event-paint)
|
|
7159
7465
|
* @param {object} event Event object
|
|
7160
7466
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
7161
7467
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -7235,9 +7541,61 @@
|
|
|
7235
7541
|
else {
|
|
7236
7542
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
7237
7543
|
}
|
|
7544
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
7545
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
7546
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
7547
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
7548
|
+
// included in document.fonts across all browsers).
|
|
7549
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
7550
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
7551
|
+
initThemeInShadowRoots();
|
|
7552
|
+
BryntumGridFieldFilterPickerComponent.ensureFontsInDocument(shadowRoot);
|
|
7553
|
+
}
|
|
7238
7554
|
// @ts-ignore
|
|
7239
7555
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
7240
7556
|
};
|
|
7557
|
+
/**
|
|
7558
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
7559
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
7560
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
7561
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
7562
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
7563
|
+
*/
|
|
7564
|
+
BryntumGridFieldFilterPickerComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
7565
|
+
var _a;
|
|
7566
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
7567
|
+
return;
|
|
7568
|
+
}
|
|
7569
|
+
var fontFaceRules = [];
|
|
7570
|
+
var extractFromSheet = function (sheet) {
|
|
7571
|
+
try {
|
|
7572
|
+
var rules = sheet.cssRules;
|
|
7573
|
+
for (var i = 0; i < rules.length; i++) {
|
|
7574
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
7575
|
+
fontFaceRules.push(rules[i].cssText);
|
|
7576
|
+
}
|
|
7577
|
+
}
|
|
7578
|
+
}
|
|
7579
|
+
catch (_e) {
|
|
7580
|
+
// Cross-origin access may throw; silently skip
|
|
7581
|
+
}
|
|
7582
|
+
};
|
|
7583
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
7584
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
7585
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
7586
|
+
// <style> elements (older Angular or fallback)
|
|
7587
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
7588
|
+
if (el.sheet) {
|
|
7589
|
+
extractFromSheet(el.sheet);
|
|
7590
|
+
}
|
|
7591
|
+
});
|
|
7592
|
+
if (fontFaceRules.length > 0) {
|
|
7593
|
+
var style = document.createElement('style');
|
|
7594
|
+
style.id = 'b-shadow-root-fonts';
|
|
7595
|
+
style.textContent = fontFaceRules.join('\n');
|
|
7596
|
+
document.head.appendChild(style);
|
|
7597
|
+
}
|
|
7598
|
+
};
|
|
7241
7599
|
/**
|
|
7242
7600
|
* Watch for changes
|
|
7243
7601
|
* @param changes
|
|
@@ -7249,8 +7607,8 @@
|
|
|
7249
7607
|
return;
|
|
7250
7608
|
}
|
|
7251
7609
|
// Iterate over all changes
|
|
7252
|
-
Object.entries(changes).forEach(function (
|
|
7253
|
-
var
|
|
7610
|
+
Object.entries(changes).forEach(function (_b) {
|
|
7611
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
7254
7612
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumGridFieldFilterPickerComponent.bryntumConfigsOnly, bryntumProps = BryntumGridFieldFilterPickerComponent.bryntumProps;
|
|
7255
7613
|
if (bryntumProps.includes(prop)) {
|
|
7256
7614
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -7348,6 +7706,7 @@
|
|
|
7348
7706
|
'items',
|
|
7349
7707
|
'keyMap',
|
|
7350
7708
|
'labelPosition',
|
|
7709
|
+
'labelWidth',
|
|
7351
7710
|
'layout',
|
|
7352
7711
|
'layoutStyle',
|
|
7353
7712
|
'lazyItems',
|
|
@@ -7376,6 +7735,7 @@
|
|
|
7376
7735
|
'relayStoreEvents',
|
|
7377
7736
|
'rendition',
|
|
7378
7737
|
'ripple',
|
|
7738
|
+
'role',
|
|
7379
7739
|
'rootElement',
|
|
7380
7740
|
'rtl',
|
|
7381
7741
|
'scrollable',
|
|
@@ -7452,6 +7812,7 @@
|
|
|
7452
7812
|
'propertyLocked',
|
|
7453
7813
|
'relayStoreEvents',
|
|
7454
7814
|
'ripple',
|
|
7815
|
+
'role',
|
|
7455
7816
|
'rootElement',
|
|
7456
7817
|
'scrollAction',
|
|
7457
7818
|
'showAnimation',
|
|
@@ -7471,7 +7832,6 @@
|
|
|
7471
7832
|
];
|
|
7472
7833
|
BryntumGridFieldFilterPickerComponent.bryntumProps = BryntumGridFieldFilterPickerComponent.bryntumFeatureNames.concat([
|
|
7473
7834
|
'alignSelf',
|
|
7474
|
-
'anchorSize',
|
|
7475
7835
|
'appendTo',
|
|
7476
7836
|
'callOnFunctions',
|
|
7477
7837
|
'catchEventHandlerExceptions',
|
|
@@ -7482,8 +7842,6 @@
|
|
|
7482
7842
|
'disabled',
|
|
7483
7843
|
'extraData',
|
|
7484
7844
|
'flex',
|
|
7485
|
-
'focusVisible',
|
|
7486
|
-
'hasChanges',
|
|
7487
7845
|
'height',
|
|
7488
7846
|
'hidden',
|
|
7489
7847
|
'html',
|
|
@@ -7491,11 +7849,10 @@
|
|
|
7491
7849
|
'inputFieldAlign',
|
|
7492
7850
|
'insertBefore',
|
|
7493
7851
|
'insertFirst',
|
|
7494
|
-
'isSettingValues',
|
|
7495
|
-
'isValid',
|
|
7496
7852
|
'items',
|
|
7497
7853
|
'keyMap',
|
|
7498
7854
|
'labelPosition',
|
|
7855
|
+
'labelWidth',
|
|
7499
7856
|
'layout',
|
|
7500
7857
|
'layoutStyle',
|
|
7501
7858
|
'margin',
|
|
@@ -7519,7 +7876,7 @@
|
|
|
7519
7876
|
'y'
|
|
7520
7877
|
]);
|
|
7521
7878
|
BryntumGridFieldFilterPickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridFieldFilterPickerComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7522
|
-
BryntumGridFieldFilterPickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridFieldFilterPickerComponent, selector: "bryntum-grid-field-filter-picker", inputs: { adopt: "adopt", align: "align", allowedFieldNames: "allowedFieldNames", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoUpdateRecord: "autoUpdateRecord", border: "border", bubbleEvents: "bubbleEvents", centered: "centered", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", dateFormat: "dateFormat", defaultBindProperty: "defaultBindProperty", defaultFocus: "defaultFocus", defaults: "defaults", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", fields: "fields", filter: "filter", floating: "floating", getValueFieldConfig: "getValueFieldConfig", grid: "grid", hideAnimation: "hideAnimation", hideWhenEmpty: "hideWhenEmpty", htmlCls: "htmlCls", ignoreParentReadOnly: "ignoreParentReadOnly", itemCls: "itemCls", lazyItems: "lazyItems", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", namedItems: "namedItems", operatorLocked: "operatorLocked", operators: "operators", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", propertyFieldConfig: "propertyFieldConfig", propertyLocked: "propertyLocked", relayStoreEvents: "relayStoreEvents", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", tab: "tab", tabBarItems: "tabBarItems", tag: "tag", textAlign: "textAlign", textContent: "textContent", title: "title", triggerChangeOnInput: "triggerChangeOnInput", type: "type", ui: "ui", valueFieldPlaceholders: "valueFieldPlaceholders", valueLocked: "valueLocked", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", content: "content", dataset: "dataset", disabled: "disabled", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", items: "items", keyMap: "keyMap", labelPosition: "labelPosition", layout: "layout", layoutStyle: "layoutStyle", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", readOnly: "readOnly", record: "record", rendition: "rendition", rtl: "rtl", scrollable: "scrollable", span: "span", strictRecordMapping: "strictRecordMapping", tooltip: "tooltip", width: "width", x: "x", y: "y",
|
|
7879
|
+
BryntumGridFieldFilterPickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridFieldFilterPickerComponent, selector: "bryntum-grid-field-filter-picker", inputs: { adopt: "adopt", align: "align", allowedFieldNames: "allowedFieldNames", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoUpdateRecord: "autoUpdateRecord", border: "border", bubbleEvents: "bubbleEvents", centered: "centered", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", dateFormat: "dateFormat", defaultBindProperty: "defaultBindProperty", defaultFocus: "defaultFocus", defaults: "defaults", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", fields: "fields", filter: "filter", floating: "floating", getValueFieldConfig: "getValueFieldConfig", grid: "grid", hideAnimation: "hideAnimation", hideWhenEmpty: "hideWhenEmpty", htmlCls: "htmlCls", ignoreParentReadOnly: "ignoreParentReadOnly", itemCls: "itemCls", lazyItems: "lazyItems", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", namedItems: "namedItems", operatorLocked: "operatorLocked", operators: "operators", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", propertyFieldConfig: "propertyFieldConfig", propertyLocked: "propertyLocked", relayStoreEvents: "relayStoreEvents", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", tab: "tab", tabBarItems: "tabBarItems", tag: "tag", textAlign: "textAlign", textContent: "textContent", title: "title", triggerChangeOnInput: "triggerChangeOnInput", type: "type", ui: "ui", valueFieldPlaceholders: "valueFieldPlaceholders", valueLocked: "valueLocked", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", content: "content", dataset: "dataset", disabled: "disabled", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", items: "items", keyMap: "keyMap", labelPosition: "labelPosition", labelWidth: "labelWidth", layout: "layout", layoutStyle: "layoutStyle", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", readOnly: "readOnly", record: "record", rendition: "rendition", rtl: "rtl", scrollable: "scrollable", span: "span", strictRecordMapping: "strictRecordMapping", tooltip: "tooltip", width: "width", x: "x", y: "y", parent: "parent", values: "values" }, outputs: { onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeSetRecord: "onBeforeSetRecord", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onChange: "onChange", onDestroy: "onDestroy", onDirtyStateChange: "onDirtyStateChange", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onShow: "onShow" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
7523
7880
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridFieldFilterPickerComponent, decorators: [{
|
|
7524
7881
|
type: i0.Component,
|
|
7525
7882
|
args: [{
|
|
@@ -7626,6 +7983,8 @@
|
|
|
7626
7983
|
type: i0.Input
|
|
7627
7984
|
}], ripple: [{
|
|
7628
7985
|
type: i0.Input
|
|
7986
|
+
}], role: [{
|
|
7987
|
+
type: i0.Input
|
|
7629
7988
|
}], rootElement: [{
|
|
7630
7989
|
type: i0.Input
|
|
7631
7990
|
}], scrollAction: [{
|
|
@@ -7700,6 +8059,8 @@
|
|
|
7700
8059
|
type: i0.Input
|
|
7701
8060
|
}], labelPosition: [{
|
|
7702
8061
|
type: i0.Input
|
|
8062
|
+
}], labelWidth: [{
|
|
8063
|
+
type: i0.Input
|
|
7703
8064
|
}], layout: [{
|
|
7704
8065
|
type: i0.Input
|
|
7705
8066
|
}], layoutStyle: [{
|
|
@@ -7738,16 +8099,6 @@
|
|
|
7738
8099
|
type: i0.Input
|
|
7739
8100
|
}], y: [{
|
|
7740
8101
|
type: i0.Input
|
|
7741
|
-
}], anchorSize: [{
|
|
7742
|
-
type: i0.Input
|
|
7743
|
-
}], focusVisible: [{
|
|
7744
|
-
type: i0.Input
|
|
7745
|
-
}], hasChanges: [{
|
|
7746
|
-
type: i0.Input
|
|
7747
|
-
}], isSettingValues: [{
|
|
7748
|
-
type: i0.Input
|
|
7749
|
-
}], isValid: [{
|
|
7750
|
-
type: i0.Input
|
|
7751
8102
|
}], parent: [{
|
|
7752
8103
|
type: i0.Input
|
|
7753
8104
|
}], values: [{
|
|
@@ -7835,8 +8186,7 @@
|
|
|
7835
8186
|
this.onBeforeShow = new i0.EventEmitter();
|
|
7836
8187
|
/**
|
|
7837
8188
|
* Fires when any other event is fired from the object.
|
|
7838
|
-
* ...
|
|
7839
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPickerGroup#event-catchAll)
|
|
8189
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPickerGroup#event-catchAll)
|
|
7840
8190
|
* @param {object} event Event object
|
|
7841
8191
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
7842
8192
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -7902,8 +8252,7 @@
|
|
|
7902
8252
|
/**
|
|
7903
8253
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
7904
8254
|
* achieves visibility.
|
|
7905
|
-
* ...
|
|
7906
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPickerGroup#event-paint)
|
|
8255
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPickerGroup#event-paint)
|
|
7907
8256
|
* @param {object} event Event object
|
|
7908
8257
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
7909
8258
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -7983,9 +8332,61 @@
|
|
|
7983
8332
|
else {
|
|
7984
8333
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
7985
8334
|
}
|
|
8335
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
8336
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
8337
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
8338
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
8339
|
+
// included in document.fonts across all browsers).
|
|
8340
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
8341
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
8342
|
+
initThemeInShadowRoots();
|
|
8343
|
+
BryntumGridFieldFilterPickerGroupComponent.ensureFontsInDocument(shadowRoot);
|
|
8344
|
+
}
|
|
7986
8345
|
// @ts-ignore
|
|
7987
8346
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
7988
8347
|
};
|
|
8348
|
+
/**
|
|
8349
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
8350
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
8351
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
8352
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
8353
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
8354
|
+
*/
|
|
8355
|
+
BryntumGridFieldFilterPickerGroupComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
8356
|
+
var _a;
|
|
8357
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
8358
|
+
return;
|
|
8359
|
+
}
|
|
8360
|
+
var fontFaceRules = [];
|
|
8361
|
+
var extractFromSheet = function (sheet) {
|
|
8362
|
+
try {
|
|
8363
|
+
var rules = sheet.cssRules;
|
|
8364
|
+
for (var i = 0; i < rules.length; i++) {
|
|
8365
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
8366
|
+
fontFaceRules.push(rules[i].cssText);
|
|
8367
|
+
}
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
8370
|
+
catch (_e) {
|
|
8371
|
+
// Cross-origin access may throw; silently skip
|
|
8372
|
+
}
|
|
8373
|
+
};
|
|
8374
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
8375
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
8376
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
8377
|
+
// <style> elements (older Angular or fallback)
|
|
8378
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
8379
|
+
if (el.sheet) {
|
|
8380
|
+
extractFromSheet(el.sheet);
|
|
8381
|
+
}
|
|
8382
|
+
});
|
|
8383
|
+
if (fontFaceRules.length > 0) {
|
|
8384
|
+
var style = document.createElement('style');
|
|
8385
|
+
style.id = 'b-shadow-root-fonts';
|
|
8386
|
+
style.textContent = fontFaceRules.join('\n');
|
|
8387
|
+
document.head.appendChild(style);
|
|
8388
|
+
}
|
|
8389
|
+
};
|
|
7989
8390
|
/**
|
|
7990
8391
|
* Watch for changes
|
|
7991
8392
|
* @param changes
|
|
@@ -7997,8 +8398,8 @@
|
|
|
7997
8398
|
return;
|
|
7998
8399
|
}
|
|
7999
8400
|
// Iterate over all changes
|
|
8000
|
-
Object.entries(changes).forEach(function (
|
|
8001
|
-
var
|
|
8401
|
+
Object.entries(changes).forEach(function (_b) {
|
|
8402
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
8002
8403
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumGridFieldFilterPickerGroupComponent.bryntumConfigsOnly, bryntumProps = BryntumGridFieldFilterPickerGroupComponent.bryntumProps;
|
|
8003
8404
|
if (bryntumProps.includes(prop)) {
|
|
8004
8405
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -8099,6 +8500,7 @@
|
|
|
8099
8500
|
'items',
|
|
8100
8501
|
'keyMap',
|
|
8101
8502
|
'labelPosition',
|
|
8503
|
+
'labelWidth',
|
|
8102
8504
|
'layout',
|
|
8103
8505
|
'layoutStyle',
|
|
8104
8506
|
'lazyItems',
|
|
@@ -8125,6 +8527,7 @@
|
|
|
8125
8527
|
'relayStoreEvents',
|
|
8126
8528
|
'rendition',
|
|
8127
8529
|
'ripple',
|
|
8530
|
+
'role',
|
|
8128
8531
|
'rootElement',
|
|
8129
8532
|
'rtl',
|
|
8130
8533
|
'scrollable',
|
|
@@ -8200,6 +8603,7 @@
|
|
|
8200
8603
|
'preventTooltipOnTouch',
|
|
8201
8604
|
'relayStoreEvents',
|
|
8202
8605
|
'ripple',
|
|
8606
|
+
'role',
|
|
8203
8607
|
'rootElement',
|
|
8204
8608
|
'scrollAction',
|
|
8205
8609
|
'showAddFilterButton',
|
|
@@ -8218,7 +8622,6 @@
|
|
|
8218
8622
|
];
|
|
8219
8623
|
BryntumGridFieldFilterPickerGroupComponent.bryntumProps = BryntumGridFieldFilterPickerGroupComponent.bryntumFeatureNames.concat([
|
|
8220
8624
|
'alignSelf',
|
|
8221
|
-
'anchorSize',
|
|
8222
8625
|
'appendTo',
|
|
8223
8626
|
'callOnFunctions',
|
|
8224
8627
|
'catchEventHandlerExceptions',
|
|
@@ -8229,8 +8632,6 @@
|
|
|
8229
8632
|
'disabled',
|
|
8230
8633
|
'extraData',
|
|
8231
8634
|
'flex',
|
|
8232
|
-
'focusVisible',
|
|
8233
|
-
'hasChanges',
|
|
8234
8635
|
'height',
|
|
8235
8636
|
'hidden',
|
|
8236
8637
|
'html',
|
|
@@ -8238,11 +8639,10 @@
|
|
|
8238
8639
|
'inputFieldAlign',
|
|
8239
8640
|
'insertBefore',
|
|
8240
8641
|
'insertFirst',
|
|
8241
|
-
'isSettingValues',
|
|
8242
|
-
'isValid',
|
|
8243
8642
|
'items',
|
|
8244
8643
|
'keyMap',
|
|
8245
8644
|
'labelPosition',
|
|
8645
|
+
'labelWidth',
|
|
8246
8646
|
'layout',
|
|
8247
8647
|
'layoutStyle',
|
|
8248
8648
|
'margin',
|
|
@@ -8267,7 +8667,7 @@
|
|
|
8267
8667
|
'y'
|
|
8268
8668
|
]);
|
|
8269
8669
|
BryntumGridFieldFilterPickerGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridFieldFilterPickerGroupComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8270
|
-
BryntumGridFieldFilterPickerGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridFieldFilterPickerGroupComponent, selector: "bryntum-grid-field-filter-picker-group", inputs: { addFilterButtonText: "addFilterButtonText", adopt: "adopt", align: "align", allowedFieldNames: "allowedFieldNames", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoUpdateRecord: "autoUpdateRecord", border: "border", bubbleEvents: "bubbleEvents", canDeleteFilter: "canDeleteFilter", canManageFilter: "canManageFilter", centered: "centered", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", dateFormat: "dateFormat", defaultBindProperty: "defaultBindProperty", defaultFocus: "defaultFocus", defaults: "defaults", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", filters: "filters", floating: "floating", getFieldFilterPickerConfig: "getFieldFilterPickerConfig", grid: "grid", hideAnimation: "hideAnimation", hideWhenEmpty: "hideWhenEmpty", htmlCls: "htmlCls", ignoreParentReadOnly: "ignoreParentReadOnly", itemCls: "itemCls", lazyItems: "lazyItems", limitToProperty: "limitToProperty", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", namedItems: "namedItems", operators: "operators", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", showAddFilterButton: "showAddFilterButton", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", tab: "tab", tabBarItems: "tabBarItems", tag: "tag", textAlign: "textAlign", textContent: "textContent", title: "title", triggerChangeOnInput: "triggerChangeOnInput", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", content: "content", dataset: "dataset", disabled: "disabled", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", items: "items", keyMap: "keyMap", labelPosition: "labelPosition", layout: "layout", layoutStyle: "layoutStyle", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", readOnly: "readOnly", record: "record", rendition: "rendition", rtl: "rtl", scrollable: "scrollable", span: "span", strictRecordMapping: "strictRecordMapping", tooltip: "tooltip", width: "width", x: "x", y: "y",
|
|
8670
|
+
BryntumGridFieldFilterPickerGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGridFieldFilterPickerGroupComponent, selector: "bryntum-grid-field-filter-picker-group", inputs: { addFilterButtonText: "addFilterButtonText", adopt: "adopt", align: "align", allowedFieldNames: "allowedFieldNames", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoUpdateRecord: "autoUpdateRecord", border: "border", bubbleEvents: "bubbleEvents", canDeleteFilter: "canDeleteFilter", canManageFilter: "canManageFilter", centered: "centered", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", dateFormat: "dateFormat", defaultBindProperty: "defaultBindProperty", defaultFocus: "defaultFocus", defaults: "defaults", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", filters: "filters", floating: "floating", getFieldFilterPickerConfig: "getFieldFilterPickerConfig", grid: "grid", hideAnimation: "hideAnimation", hideWhenEmpty: "hideWhenEmpty", htmlCls: "htmlCls", ignoreParentReadOnly: "ignoreParentReadOnly", itemCls: "itemCls", lazyItems: "lazyItems", limitToProperty: "limitToProperty", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", namedItems: "namedItems", operators: "operators", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", showAddFilterButton: "showAddFilterButton", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", tab: "tab", tabBarItems: "tabBarItems", tag: "tag", textAlign: "textAlign", textContent: "textContent", title: "title", triggerChangeOnInput: "triggerChangeOnInput", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", content: "content", dataset: "dataset", disabled: "disabled", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", items: "items", keyMap: "keyMap", labelPosition: "labelPosition", labelWidth: "labelWidth", layout: "layout", layoutStyle: "layoutStyle", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", readOnly: "readOnly", record: "record", rendition: "rendition", rtl: "rtl", scrollable: "scrollable", span: "span", strictRecordMapping: "strictRecordMapping", tooltip: "tooltip", width: "width", x: "x", y: "y", parent: "parent", value: "value", values: "values" }, outputs: { onBeforeAddFilter: "onBeforeAddFilter", onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeSetRecord: "onBeforeSetRecord", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onChange: "onChange", onDestroy: "onDestroy", onDirtyStateChange: "onDirtyStateChange", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onShow: "onShow" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
8271
8671
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridFieldFilterPickerGroupComponent, decorators: [{
|
|
8272
8672
|
type: i0.Component,
|
|
8273
8673
|
args: [{
|
|
@@ -8374,6 +8774,8 @@
|
|
|
8374
8774
|
type: i0.Input
|
|
8375
8775
|
}], ripple: [{
|
|
8376
8776
|
type: i0.Input
|
|
8777
|
+
}], role: [{
|
|
8778
|
+
type: i0.Input
|
|
8377
8779
|
}], rootElement: [{
|
|
8378
8780
|
type: i0.Input
|
|
8379
8781
|
}], scrollAction: [{
|
|
@@ -8446,6 +8848,8 @@
|
|
|
8446
8848
|
type: i0.Input
|
|
8447
8849
|
}], labelPosition: [{
|
|
8448
8850
|
type: i0.Input
|
|
8851
|
+
}], labelWidth: [{
|
|
8852
|
+
type: i0.Input
|
|
8449
8853
|
}], layout: [{
|
|
8450
8854
|
type: i0.Input
|
|
8451
8855
|
}], layoutStyle: [{
|
|
@@ -8484,16 +8888,6 @@
|
|
|
8484
8888
|
type: i0.Input
|
|
8485
8889
|
}], y: [{
|
|
8486
8890
|
type: i0.Input
|
|
8487
|
-
}], anchorSize: [{
|
|
8488
|
-
type: i0.Input
|
|
8489
|
-
}], focusVisible: [{
|
|
8490
|
-
type: i0.Input
|
|
8491
|
-
}], hasChanges: [{
|
|
8492
|
-
type: i0.Input
|
|
8493
|
-
}], isSettingValues: [{
|
|
8494
|
-
type: i0.Input
|
|
8495
|
-
}], isValid: [{
|
|
8496
|
-
type: i0.Input
|
|
8497
8891
|
}], parent: [{
|
|
8498
8892
|
type: i0.Input
|
|
8499
8893
|
}], value: [{
|
|
@@ -8581,8 +8975,7 @@
|
|
|
8581
8975
|
this.onBeforeShow = new i0.EventEmitter();
|
|
8582
8976
|
/**
|
|
8583
8977
|
* Fires when any other event is fired from the object.
|
|
8584
|
-
* ...
|
|
8585
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#event-catchAll)
|
|
8978
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#event-catchAll)
|
|
8586
8979
|
* @param {object} event Event object
|
|
8587
8980
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
8588
8981
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -8644,8 +9037,7 @@
|
|
|
8644
9037
|
/**
|
|
8645
9038
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
8646
9039
|
* achieves visibility.
|
|
8647
|
-
* ...
|
|
8648
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#event-paint)
|
|
9040
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#event-paint)
|
|
8649
9041
|
* @param {object} event Event object
|
|
8650
9042
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
8651
9043
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -8746,9 +9138,61 @@
|
|
|
8746
9138
|
else {
|
|
8747
9139
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
8748
9140
|
}
|
|
9141
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
9142
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
9143
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
9144
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
9145
|
+
// included in document.fonts across all browsers).
|
|
9146
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
9147
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
9148
|
+
initThemeInShadowRoots();
|
|
9149
|
+
BryntumGroupBarComponent.ensureFontsInDocument(shadowRoot);
|
|
9150
|
+
}
|
|
8749
9151
|
// @ts-ignore
|
|
8750
9152
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
8751
9153
|
};
|
|
9154
|
+
/**
|
|
9155
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
9156
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
9157
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
9158
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
9159
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
9160
|
+
*/
|
|
9161
|
+
BryntumGroupBarComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
9162
|
+
var _a;
|
|
9163
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
9164
|
+
return;
|
|
9165
|
+
}
|
|
9166
|
+
var fontFaceRules = [];
|
|
9167
|
+
var extractFromSheet = function (sheet) {
|
|
9168
|
+
try {
|
|
9169
|
+
var rules = sheet.cssRules;
|
|
9170
|
+
for (var i = 0; i < rules.length; i++) {
|
|
9171
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
9172
|
+
fontFaceRules.push(rules[i].cssText);
|
|
9173
|
+
}
|
|
9174
|
+
}
|
|
9175
|
+
}
|
|
9176
|
+
catch (_e) {
|
|
9177
|
+
// Cross-origin access may throw; silently skip
|
|
9178
|
+
}
|
|
9179
|
+
};
|
|
9180
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
9181
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
9182
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
9183
|
+
// <style> elements (older Angular or fallback)
|
|
9184
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
9185
|
+
if (el.sheet) {
|
|
9186
|
+
extractFromSheet(el.sheet);
|
|
9187
|
+
}
|
|
9188
|
+
});
|
|
9189
|
+
if (fontFaceRules.length > 0) {
|
|
9190
|
+
var style = document.createElement('style');
|
|
9191
|
+
style.id = 'b-shadow-root-fonts';
|
|
9192
|
+
style.textContent = fontFaceRules.join('\n');
|
|
9193
|
+
document.head.appendChild(style);
|
|
9194
|
+
}
|
|
9195
|
+
};
|
|
8752
9196
|
/**
|
|
8753
9197
|
* Watch for changes
|
|
8754
9198
|
* @param changes
|
|
@@ -8760,8 +9204,8 @@
|
|
|
8760
9204
|
return;
|
|
8761
9205
|
}
|
|
8762
9206
|
// Iterate over all changes
|
|
8763
|
-
Object.entries(changes).forEach(function (
|
|
8764
|
-
var
|
|
9207
|
+
Object.entries(changes).forEach(function (_b) {
|
|
9208
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
8765
9209
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumGroupBarComponent.bryntumConfigsOnly, bryntumProps = BryntumGroupBarComponent.bryntumProps;
|
|
8766
9210
|
if (bryntumProps.includes(prop)) {
|
|
8767
9211
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -8880,6 +9324,7 @@
|
|
|
8880
9324
|
'readOnly',
|
|
8881
9325
|
'relayStoreEvents',
|
|
8882
9326
|
'ripple',
|
|
9327
|
+
'role',
|
|
8883
9328
|
'rootElement',
|
|
8884
9329
|
'rtl',
|
|
8885
9330
|
'scrollable',
|
|
@@ -8948,6 +9393,7 @@
|
|
|
8948
9393
|
'preventTooltipOnTouch',
|
|
8949
9394
|
'relayStoreEvents',
|
|
8950
9395
|
'ripple',
|
|
9396
|
+
'role',
|
|
8951
9397
|
'rootElement',
|
|
8952
9398
|
'scrollAction',
|
|
8953
9399
|
'selectAllItem',
|
|
@@ -8965,7 +9411,6 @@
|
|
|
8965
9411
|
BryntumGroupBarComponent.bryntumProps = BryntumGroupBarComponent.bryntumFeatureNames.concat([
|
|
8966
9412
|
'alignSelf',
|
|
8967
9413
|
'allowGroupSelect',
|
|
8968
|
-
'anchorSize',
|
|
8969
9414
|
'appendTo',
|
|
8970
9415
|
'callOnFunctions',
|
|
8971
9416
|
'catchEventHandlerExceptions',
|
|
@@ -8979,7 +9424,6 @@
|
|
|
8979
9424
|
'emptyText',
|
|
8980
9425
|
'extraData',
|
|
8981
9426
|
'flex',
|
|
8982
|
-
'focusVisible',
|
|
8983
9427
|
'height',
|
|
8984
9428
|
'hidden',
|
|
8985
9429
|
'html',
|
|
@@ -9010,7 +9454,7 @@
|
|
|
9010
9454
|
'y'
|
|
9011
9455
|
]);
|
|
9012
9456
|
BryntumGroupBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGroupBarComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9013
|
-
BryntumGroupBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGroupBarComponent, selector: "bryntum-group-bar", inputs: { activateOnMouseover: "activateOnMouseover", adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", bubbleEvents: "bubbleEvents", centered: "centered", closable: "closable", closeHandler: "closeHandler", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", displayField: "displayField", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", floating: "floating", getItemCls: "getItemCls", getItemStyle: "getItemStyle", groupHeaderTpl: "groupHeaderTpl", hideAnimation: "hideAnimation", htmlCls: "htmlCls", iconTpl: "iconTpl", ignoreParentReadOnly: "ignoreParentReadOnly", isSelectable: "isSelectable", itemTpl: "itemTpl", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", selectAllItem: "selectAllItem", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", tab: "tab", tag: "tag", textAlign: "textAlign", tooltipTemplate: "tooltipTemplate", type: "type", ui: "ui", virtualize: "virtualize", weight: "weight", alignSelf: "alignSelf", allowGroupSelect: "allowGroupSelect", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", clearSelectionOnEmptySpaceClick: "clearSelectionOnEmptySpaceClick", cls: "cls", collapsibleGroups: "collapsibleGroups", column: "column", content: "content", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", items: "items", keyMap: "keyMap", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", multiSelect: "multiSelect", readOnly: "readOnly", rtl: "rtl", scrollable: "scrollable", selected: "selected", span: "span", store: "store", title: "title", toggleAllIfCtrlPressed: "toggleAllIfCtrlPressed", tooltip: "tooltip", width: "width", x: "x", y: "y",
|
|
9457
|
+
BryntumGroupBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumGroupBarComponent, selector: "bryntum-group-bar", inputs: { activateOnMouseover: "activateOnMouseover", adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", bubbleEvents: "bubbleEvents", centered: "centered", closable: "closable", closeHandler: "closeHandler", color: "color", config: "config", constrainTo: "constrainTo", contentElementCls: "contentElementCls", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", displayField: "displayField", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", floating: "floating", getItemCls: "getItemCls", getItemStyle: "getItemStyle", groupHeaderTpl: "groupHeaderTpl", hideAnimation: "hideAnimation", htmlCls: "htmlCls", iconTpl: "iconTpl", ignoreParentReadOnly: "ignoreParentReadOnly", isSelectable: "isSelectable", itemTpl: "itemTpl", listeners: "listeners", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", selectAllItem: "selectAllItem", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", tab: "tab", tag: "tag", textAlign: "textAlign", tooltipTemplate: "tooltipTemplate", type: "type", ui: "ui", virtualize: "virtualize", weight: "weight", alignSelf: "alignSelf", allowGroupSelect: "allowGroupSelect", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", clearSelectionOnEmptySpaceClick: "clearSelectionOnEmptySpaceClick", cls: "cls", collapsibleGroups: "collapsibleGroups", column: "column", content: "content", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", html: "html", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", items: "items", keyMap: "keyMap", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", multiSelect: "multiSelect", readOnly: "readOnly", rtl: "rtl", scrollable: "scrollable", selected: "selected", span: "span", store: "store", title: "title", toggleAllIfCtrlPressed: "toggleAllIfCtrlPressed", tooltip: "tooltip", width: "width", x: "x", y: "y", parent: "parent" }, outputs: { onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeItem: "onBeforeItem", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onDestroy: "onDestroy", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onItem: "onItem", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onSelectionChange: "onSelectionChange", onShow: "onShow", onToggleGroup: "onToggleGroup", onToggleNode: "onToggleNode" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
9014
9458
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGroupBarComponent, decorators: [{
|
|
9015
9459
|
type: i0.Component,
|
|
9016
9460
|
args: [{
|
|
@@ -9101,6 +9545,8 @@
|
|
|
9101
9545
|
type: i0.Input
|
|
9102
9546
|
}], ripple: [{
|
|
9103
9547
|
type: i0.Input
|
|
9548
|
+
}], role: [{
|
|
9549
|
+
type: i0.Input
|
|
9104
9550
|
}], rootElement: [{
|
|
9105
9551
|
type: i0.Input
|
|
9106
9552
|
}], scrollAction: [{
|
|
@@ -9211,10 +9657,6 @@
|
|
|
9211
9657
|
type: i0.Input
|
|
9212
9658
|
}], y: [{
|
|
9213
9659
|
type: i0.Input
|
|
9214
|
-
}], anchorSize: [{
|
|
9215
|
-
type: i0.Input
|
|
9216
|
-
}], focusVisible: [{
|
|
9217
|
-
type: i0.Input
|
|
9218
9660
|
}], parent: [{
|
|
9219
9661
|
type: i0.Input
|
|
9220
9662
|
}], onBeforeDestroy: [{
|
|
@@ -9298,8 +9740,7 @@
|
|
|
9298
9740
|
this.onBeforeShow = new i0.EventEmitter();
|
|
9299
9741
|
/**
|
|
9300
9742
|
* Fires when any other event is fired from the object.
|
|
9301
|
-
* ...
|
|
9302
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-catchAll)
|
|
9743
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-catchAll)
|
|
9303
9744
|
* @param {object} event Event object
|
|
9304
9745
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
9305
9746
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -9319,8 +9760,7 @@
|
|
|
9319
9760
|
this.onChange = new i0.EventEmitter();
|
|
9320
9761
|
/**
|
|
9321
9762
|
* Fired when this field is [cleared](https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-clear).
|
|
9322
|
-
* ...
|
|
9323
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-clear)
|
|
9763
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-clear)
|
|
9324
9764
|
* @param {object} event Event object
|
|
9325
9765
|
* @param {Core.widget.Field,any} event.source This Field
|
|
9326
9766
|
*/
|
|
@@ -9379,8 +9819,7 @@
|
|
|
9379
9819
|
/**
|
|
9380
9820
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
9381
9821
|
* achieves visibility.
|
|
9382
|
-
* ...
|
|
9383
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-paint)
|
|
9822
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-paint)
|
|
9384
9823
|
* @param {object} event Event object
|
|
9385
9824
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
9386
9825
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -9476,9 +9915,61 @@
|
|
|
9476
9915
|
else {
|
|
9477
9916
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
9478
9917
|
}
|
|
9918
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
9919
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
9920
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
9921
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
9922
|
+
// included in document.fonts across all browsers).
|
|
9923
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
9924
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
9925
|
+
initThemeInShadowRoots();
|
|
9926
|
+
BryntumTreeComboComponent.ensureFontsInDocument(shadowRoot);
|
|
9927
|
+
}
|
|
9479
9928
|
// @ts-ignore
|
|
9480
9929
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
9481
9930
|
};
|
|
9931
|
+
/**
|
|
9932
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
9933
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
9934
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
9935
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
9936
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
9937
|
+
*/
|
|
9938
|
+
BryntumTreeComboComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
9939
|
+
var _a;
|
|
9940
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
9941
|
+
return;
|
|
9942
|
+
}
|
|
9943
|
+
var fontFaceRules = [];
|
|
9944
|
+
var extractFromSheet = function (sheet) {
|
|
9945
|
+
try {
|
|
9946
|
+
var rules = sheet.cssRules;
|
|
9947
|
+
for (var i = 0; i < rules.length; i++) {
|
|
9948
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
9949
|
+
fontFaceRules.push(rules[i].cssText);
|
|
9950
|
+
}
|
|
9951
|
+
}
|
|
9952
|
+
}
|
|
9953
|
+
catch (_e) {
|
|
9954
|
+
// Cross-origin access may throw; silently skip
|
|
9955
|
+
}
|
|
9956
|
+
};
|
|
9957
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
9958
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
9959
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
9960
|
+
// <style> elements (older Angular or fallback)
|
|
9961
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
9962
|
+
if (el.sheet) {
|
|
9963
|
+
extractFromSheet(el.sheet);
|
|
9964
|
+
}
|
|
9965
|
+
});
|
|
9966
|
+
if (fontFaceRules.length > 0) {
|
|
9967
|
+
var style = document.createElement('style');
|
|
9968
|
+
style.id = 'b-shadow-root-fonts';
|
|
9969
|
+
style.textContent = fontFaceRules.join('\n');
|
|
9970
|
+
document.head.appendChild(style);
|
|
9971
|
+
}
|
|
9972
|
+
};
|
|
9482
9973
|
/**
|
|
9483
9974
|
* Watch for changes
|
|
9484
9975
|
* @param changes
|
|
@@ -9490,8 +9981,8 @@
|
|
|
9490
9981
|
return;
|
|
9491
9982
|
}
|
|
9492
9983
|
// Iterate over all changes
|
|
9493
|
-
Object.entries(changes).forEach(function (
|
|
9494
|
-
var
|
|
9984
|
+
Object.entries(changes).forEach(function (_b) {
|
|
9985
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
9495
9986
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumTreeComboComponent.bryntumConfigsOnly, bryntumProps = BryntumTreeComboComponent.bryntumProps;
|
|
9496
9987
|
if (bryntumProps.includes(prop)) {
|
|
9497
9988
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -9652,6 +10143,7 @@
|
|
|
9652
10143
|
'required',
|
|
9653
10144
|
'revertOnEscape',
|
|
9654
10145
|
'ripple',
|
|
10146
|
+
'role',
|
|
9655
10147
|
'rootElement',
|
|
9656
10148
|
'rtl',
|
|
9657
10149
|
'scrollAction',
|
|
@@ -9763,6 +10255,7 @@
|
|
|
9763
10255
|
'relayStoreEvents',
|
|
9764
10256
|
'revertOnEscape',
|
|
9765
10257
|
'ripple',
|
|
10258
|
+
'role',
|
|
9766
10259
|
'rootElement',
|
|
9767
10260
|
'scrollAction',
|
|
9768
10261
|
'showAnimation',
|
|
@@ -9783,7 +10276,6 @@
|
|
|
9783
10276
|
];
|
|
9784
10277
|
BryntumTreeComboComponent.bryntumProps = BryntumTreeComboComponent.bryntumFeatureNames.concat([
|
|
9785
10278
|
'alignSelf',
|
|
9786
|
-
'anchorSize',
|
|
9787
10279
|
'appendTo',
|
|
9788
10280
|
'badge',
|
|
9789
10281
|
'callOnFunctions',
|
|
@@ -9797,7 +10289,6 @@
|
|
|
9797
10289
|
'extraData',
|
|
9798
10290
|
'filterOperator',
|
|
9799
10291
|
'flex',
|
|
9800
|
-
'focusVisible',
|
|
9801
10292
|
'formula',
|
|
9802
10293
|
'height',
|
|
9803
10294
|
'hidden',
|
|
@@ -9834,7 +10325,7 @@
|
|
|
9834
10325
|
'y'
|
|
9835
10326
|
]);
|
|
9836
10327
|
BryntumTreeComboComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumTreeComboComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9837
|
-
BryntumTreeComboComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumTreeComboComponent, selector: "bryntum-tree-combo", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoComplete: "autoComplete", autoExpand: "autoExpand", autoSelect: "autoSelect", bubbleEvents: "bubbleEvents", cacheLastResult: "cacheLastResult", caseSensitive: "caseSensitive", centered: "centered", chipView: "chipView", clearable: "clearable", clearTextOnPickerHide: "clearTextOnPickerHide", clearTextOnSelection: "clearTextOnSelection", clearWhenInputEmpty: "clearWhenInputEmpty", color: "color", config: "config", constrainTo: "constrainTo", container: "container", containValues: "containValues", contentElementCls: "contentElementCls", createOnUnmatched: "createOnUnmatched", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", displayField: "displayField", displayValueRenderer: "displayValueRenderer", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", emptyText: "emptyText", encodeFilterParams: "encodeFilterParams", filterOnEnter: "filterOnEnter", filterParamName: "filterParamName", filterSelected: "filterSelected", floating: "floating", hideAnimation: "hideAnimation", hidePickerOnSelect: "hidePickerOnSelect", hideTrigger: "hideTrigger", highlightExternalChange: "highlightExternalChange", hint: "hint", hintHtml: "hintHtml", ignoreParentReadOnly: "ignoreParentReadOnly", inline: "inline", inlinePicker: "inlinePicker", inputAlign: "inputAlign", inputAttributes: "inputAttributes", inputTag: "inputTag", inputType: "inputType", inputWidth: "inputWidth", items: "items", keyStrokeChangeDelay: "keyStrokeChangeDelay", keyStrokeFilterDelay: "keyStrokeFilterDelay", labelCls: "labelCls", labelPosition: "labelPosition", labels: "labels", labelWidth: "labelWidth", listCls: "listCls", listeners: "listeners", listItemTpl: "listItemTpl", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", maxLength: "maxLength", minChars: "minChars", minLength: "minLength", monitorResize: "monitorResize", multiValueSeparator: "multiValueSeparator", name: "name", overlayAnchor: "overlayAnchor", pickerAlignElement: "pickerAlignElement", pickerWidth: "pickerWidth", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", primaryFilter: "primaryFilter", relayStoreEvents: "relayStoreEvents", revertOnEscape: "revertOnEscape", ripple: "ripple", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", skipValidation: "skipValidation", spellCheck: "spellCheck", tab: "tab", tabIndex: "tabIndex", textAlign: "textAlign", title: "title", triggerAction: "triggerAction", type: "type", ui: "ui", validateFilter: "validateFilter", validateOnInput: "validateOnInput", valueField: "valueField", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", badge: "badge", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", dataset: "dataset", disabled: "disabled", editable: "editable", extraData: "extraData", filterOperator: "filterOperator", flex: "flex", height: "height", hidden: "hidden", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", label: "label", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", multiSelect: "multiSelect", picker: "picker", placeholder: "placeholder", readOnly: "readOnly", rendition: "rendition", required: "required", rtl: "rtl", showRequiredIndicator: "showRequiredIndicator", span: "span", store: "store", tooltip: "tooltip", triggers: "triggers", value: "value", width: "width", x: "x", y: "y",
|
|
10328
|
+
BryntumTreeComboComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumTreeComboComponent, selector: "bryntum-tree-combo", inputs: { adopt: "adopt", align: "align", anchor: "anchor", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoComplete: "autoComplete", autoExpand: "autoExpand", autoSelect: "autoSelect", bubbleEvents: "bubbleEvents", cacheLastResult: "cacheLastResult", caseSensitive: "caseSensitive", centered: "centered", chipView: "chipView", clearable: "clearable", clearTextOnPickerHide: "clearTextOnPickerHide", clearTextOnSelection: "clearTextOnSelection", clearWhenInputEmpty: "clearWhenInputEmpty", color: "color", config: "config", constrainTo: "constrainTo", container: "container", containValues: "containValues", contentElementCls: "contentElementCls", createOnUnmatched: "createOnUnmatched", dataField: "dataField", defaultBindProperty: "defaultBindProperty", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", displayField: "displayField", displayValueRenderer: "displayValueRenderer", dock: "dock", draggable: "draggable", elementAttributes: "elementAttributes", emptyText: "emptyText", encodeFilterParams: "encodeFilterParams", filterOnEnter: "filterOnEnter", filterParamName: "filterParamName", filterSelected: "filterSelected", floating: "floating", hideAnimation: "hideAnimation", hidePickerOnSelect: "hidePickerOnSelect", hideTrigger: "hideTrigger", highlightExternalChange: "highlightExternalChange", hint: "hint", hintHtml: "hintHtml", ignoreParentReadOnly: "ignoreParentReadOnly", inline: "inline", inlinePicker: "inlinePicker", inputAlign: "inputAlign", inputAttributes: "inputAttributes", inputTag: "inputTag", inputType: "inputType", inputWidth: "inputWidth", items: "items", keyStrokeChangeDelay: "keyStrokeChangeDelay", keyStrokeFilterDelay: "keyStrokeFilterDelay", labelCls: "labelCls", labelPosition: "labelPosition", labels: "labels", labelWidth: "labelWidth", listCls: "listCls", listeners: "listeners", listItemTpl: "listItemTpl", localeClass: "localeClass", localizable: "localizable", localizableProperties: "localizableProperties", maskDefaults: "maskDefaults", masked: "masked", maxLength: "maxLength", minChars: "minChars", minLength: "minLength", monitorResize: "monitorResize", multiValueSeparator: "multiValueSeparator", name: "name", overlayAnchor: "overlayAnchor", pickerAlignElement: "pickerAlignElement", pickerWidth: "pickerWidth", positioned: "positioned", preventTooltipOnTouch: "preventTooltipOnTouch", primaryFilter: "primaryFilter", relayStoreEvents: "relayStoreEvents", revertOnEscape: "revertOnEscape", ripple: "ripple", role: "role", rootElement: "rootElement", scrollAction: "scrollAction", showAnimation: "showAnimation", showTooltipWhenDisabled: "showTooltipWhenDisabled", skipValidation: "skipValidation", spellCheck: "spellCheck", tab: "tab", tabIndex: "tabIndex", textAlign: "textAlign", title: "title", triggerAction: "triggerAction", type: "type", ui: "ui", validateFilter: "validateFilter", validateOnInput: "validateOnInput", valueField: "valueField", weight: "weight", alignSelf: "alignSelf", appendTo: "appendTo", badge: "badge", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cls: "cls", column: "column", dataset: "dataset", disabled: "disabled", editable: "editable", extraData: "extraData", filterOperator: "filterOperator", flex: "flex", height: "height", hidden: "hidden", id: "id", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", label: "label", margin: "margin", maxHeight: "maxHeight", maximizeOnMobile: "maximizeOnMobile", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", multiSelect: "multiSelect", picker: "picker", placeholder: "placeholder", readOnly: "readOnly", rendition: "rendition", required: "required", rtl: "rtl", showRequiredIndicator: "showRequiredIndicator", span: "span", store: "store", tooltip: "tooltip", triggers: "triggers", value: "value", width: "width", x: "x", y: "y", content: "content", formula: "formula", html: "html", input: "input", parent: "parent", scrollable: "scrollable" }, outputs: { onAction: "onAction", onBeforeDestroy: "onBeforeDestroy", onBeforeHide: "onBeforeHide", onBeforeShow: "onBeforeShow", onCatchAll: "onCatchAll", onChange: "onChange", onClear: "onClear", onDestroy: "onDestroy", onElementCreated: "onElementCreated", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onHide: "onHide", onInput: "onInput", onPaint: "onPaint", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onResize: "onResize", onSelect: "onSelect", onShow: "onShow", onTrigger: "onTrigger" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
9838
10329
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumTreeComboComponent, decorators: [{
|
|
9839
10330
|
type: i0.Component,
|
|
9840
10331
|
args: [{
|
|
@@ -10005,6 +10496,8 @@
|
|
|
10005
10496
|
type: i0.Input
|
|
10006
10497
|
}], ripple: [{
|
|
10007
10498
|
type: i0.Input
|
|
10499
|
+
}], role: [{
|
|
10500
|
+
type: i0.Input
|
|
10008
10501
|
}], rootElement: [{
|
|
10009
10502
|
type: i0.Input
|
|
10010
10503
|
}], scrollAction: [{
|
|
@@ -10123,12 +10616,8 @@
|
|
|
10123
10616
|
type: i0.Input
|
|
10124
10617
|
}], y: [{
|
|
10125
10618
|
type: i0.Input
|
|
10126
|
-
}], anchorSize: [{
|
|
10127
|
-
type: i0.Input
|
|
10128
10619
|
}], content: [{
|
|
10129
10620
|
type: i0.Input
|
|
10130
|
-
}], focusVisible: [{
|
|
10131
|
-
type: i0.Input
|
|
10132
10621
|
}], formula: [{
|
|
10133
10622
|
type: i0.Input
|
|
10134
10623
|
}], html: [{
|
|
@@ -10201,8 +10690,7 @@
|
|
|
10201
10690
|
this.onBeforeCancelCellEdit = new i0.EventEmitter();
|
|
10202
10691
|
/**
|
|
10203
10692
|
* Fires on the owning Grid before the row editing is canceled, return false to signal that the value is invalid and editing should not be finalized.
|
|
10204
|
-
* ...
|
|
10205
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeCancelRowEdit)
|
|
10693
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeCancelRowEdit)
|
|
10206
10694
|
* @param {object} event Event object
|
|
10207
10695
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
10208
10696
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -10317,8 +10805,7 @@
|
|
|
10317
10805
|
this.onBeforeFinishCellEdit = new i0.EventEmitter();
|
|
10318
10806
|
/**
|
|
10319
10807
|
* Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
10320
|
-
* ...
|
|
10321
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeFinishRowEdit)
|
|
10808
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeFinishRowEdit)
|
|
10322
10809
|
* @param {object} event Event object
|
|
10323
10810
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
10324
10811
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -10363,16 +10850,14 @@
|
|
|
10363
10850
|
this.onBeforeRenderRows = new i0.EventEmitter();
|
|
10364
10851
|
/**
|
|
10365
10852
|
* This event fires before row collapse is started.
|
|
10366
|
-
* ...
|
|
10367
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeRowCollapse)
|
|
10853
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeRowCollapse)
|
|
10368
10854
|
* @param {object} event Event object
|
|
10369
10855
|
* @param {Core.data.Model} event.record Record
|
|
10370
10856
|
*/
|
|
10371
10857
|
this.onBeforeRowCollapse = new i0.EventEmitter();
|
|
10372
10858
|
/**
|
|
10373
10859
|
* This event fires before row expand is started.
|
|
10374
|
-
* ...
|
|
10375
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeRowExpand)
|
|
10860
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeRowExpand)
|
|
10376
10861
|
* @param {object} event Event object
|
|
10377
10862
|
* @param {Core.data.Model} event.record Record
|
|
10378
10863
|
*/
|
|
@@ -10452,8 +10937,7 @@
|
|
|
10452
10937
|
this.onCancelCellEdit = new i0.EventEmitter();
|
|
10453
10938
|
/**
|
|
10454
10939
|
* Fires when any other event is fired from the object.
|
|
10455
|
-
* ...
|
|
10456
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-catchAll)
|
|
10940
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-catchAll)
|
|
10457
10941
|
* @param {object} event Event object
|
|
10458
10942
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
10459
10943
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -10495,8 +10979,7 @@
|
|
|
10495
10979
|
/**
|
|
10496
10980
|
* This event fires on the owning grid before the context menu is shown for a cell.
|
|
10497
10981
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/CellMenu#config-processItems).
|
|
10498
|
-
* ...
|
|
10499
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-cellMenuBeforeShow)
|
|
10982
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-cellMenuBeforeShow)
|
|
10500
10983
|
* @param {object} event Event object
|
|
10501
10984
|
* @param {Grid.view.Grid} event.source The grid
|
|
10502
10985
|
* @param {Core.widget.Menu} event.menu The menu
|
|
@@ -10677,8 +11160,7 @@
|
|
|
10677
11160
|
this.onCopy = new i0.EventEmitter();
|
|
10678
11161
|
/**
|
|
10679
11162
|
* Fired when data in the store changes.
|
|
10680
|
-
* ...
|
|
10681
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
11163
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
10682
11164
|
* @param {object} event Event object
|
|
10683
11165
|
* @param {Grid.view.GridBase} event.source Owning grid
|
|
10684
11166
|
* @param {Core.data.Store} event.store The originating store
|
|
@@ -10782,8 +11264,7 @@
|
|
|
10782
11264
|
this.onFinishCellEdit = new i0.EventEmitter();
|
|
10783
11265
|
/**
|
|
10784
11266
|
* Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
10785
|
-
* ...
|
|
10786
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-finishRowEdit)
|
|
11267
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-finishRowEdit)
|
|
10787
11268
|
* @param {object} event Event object
|
|
10788
11269
|
* @param {Grid.view.Grid} event.grid Target grid
|
|
10789
11270
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
@@ -10883,8 +11364,7 @@
|
|
|
10883
11364
|
this.onGridRowDrop = new i0.EventEmitter();
|
|
10884
11365
|
/**
|
|
10885
11366
|
* Fired when a grid header is clicked on.
|
|
10886
|
-
* ...
|
|
10887
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-headerClick)
|
|
11367
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-headerClick)
|
|
10888
11368
|
* @param {object} event Event object
|
|
10889
11369
|
* @param {Event} event.domEvent The triggering DOM event.
|
|
10890
11370
|
* @param {Grid.column.Column} event.column The column clicked on.
|
|
@@ -10893,8 +11373,7 @@
|
|
|
10893
11373
|
/**
|
|
10894
11374
|
* This event fires on the owning Grid before the context menu is shown for a header.
|
|
10895
11375
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu#config-processItems).
|
|
10896
|
-
* ...
|
|
10897
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-headerMenuBeforeShow)
|
|
11376
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-headerMenuBeforeShow)
|
|
10898
11377
|
* @param {object} event Event object
|
|
10899
11378
|
* @param {Grid.view.Grid} event.source The grid
|
|
10900
11379
|
* @param {Core.widget.Menu} event.menu The menu
|
|
@@ -10957,8 +11436,7 @@
|
|
|
10957
11436
|
/**
|
|
10958
11437
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
10959
11438
|
* achieves visibility.
|
|
10960
|
-
* ...
|
|
10961
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-paint)
|
|
11439
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-paint)
|
|
10962
11440
|
* @param {object} event Event object
|
|
10963
11441
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
10964
11442
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -10977,8 +11455,8 @@
|
|
|
10977
11455
|
/**
|
|
10978
11456
|
* Fires on the owning Grid when export has finished
|
|
10979
11457
|
* @param {object} event Event object
|
|
10980
|
-
* @param {Response} event.response Optional response, if received
|
|
10981
|
-
* @param {Error} event.error Optional error, if exception occurred
|
|
11458
|
+
* @param {Response} [event.response] Optional response, if received
|
|
11459
|
+
* @param {Error} [event.error] Optional error, if exception occurred
|
|
10982
11460
|
*/
|
|
10983
11461
|
this.onPdfExport = new i0.EventEmitter();
|
|
10984
11462
|
/**
|
|
@@ -11035,8 +11513,7 @@
|
|
|
11035
11513
|
this.onRowCollapse = new i0.EventEmitter();
|
|
11036
11514
|
/**
|
|
11037
11515
|
* This event fires when a row expand has finished expanding.
|
|
11038
|
-
* ...
|
|
11039
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-rowExpand)
|
|
11516
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-rowExpand)
|
|
11040
11517
|
* @param {object} event Event object
|
|
11041
11518
|
* @param {Core.data.Model} event.record Record
|
|
11042
11519
|
* @param {object} event.expandedElements An object with the Grid region name as property and the expanded body element as value
|
|
@@ -11174,7 +11651,7 @@
|
|
|
11174
11651
|
* @param {Core.data.Model} event.groupRecord [DEPRECATED] Use `groupRecords` param instead
|
|
11175
11652
|
* @param {Core.data.Model[]} event.groupRecords The group records being toggled
|
|
11176
11653
|
* @param {boolean} event.collapse Collapsed (true) or expanded (false)
|
|
11177
|
-
* @param {boolean} event.allRecords True if this event is part of toggling all groups
|
|
11654
|
+
* @param {boolean} [event.allRecords] True if this event is part of toggling all groups
|
|
11178
11655
|
*/
|
|
11179
11656
|
this.onToggleGroup = new i0.EventEmitter();
|
|
11180
11657
|
/**
|
|
@@ -11256,6 +11733,16 @@
|
|
|
11256
11733
|
else {
|
|
11257
11734
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
11258
11735
|
}
|
|
11736
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
11737
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
11738
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
11739
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
11740
|
+
// included in document.fonts across all browsers).
|
|
11741
|
+
var shadowRoot = elementRef.nativeElement.getRootNode();
|
|
11742
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
11743
|
+
initThemeInShadowRoots();
|
|
11744
|
+
BryntumTreeGridComponent.ensureFontsInDocument(shadowRoot);
|
|
11745
|
+
}
|
|
11259
11746
|
// @ts-ignore
|
|
11260
11747
|
me.instance = instanceName === 'Widget' ? coreThin.Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
11261
11748
|
// Backwards compatibility for gridInstance, schedulerInstance etc.
|
|
@@ -11263,6 +11750,48 @@
|
|
|
11263
11750
|
me[coreThin.StringHelper.uncapitalize(instanceName) + 'Instance'] = me.instance;
|
|
11264
11751
|
//
|
|
11265
11752
|
};
|
|
11753
|
+
/**
|
|
11754
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
11755
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
11756
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
11757
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
11758
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
11759
|
+
*/
|
|
11760
|
+
BryntumTreeGridComponent.ensureFontsInDocument = function (shadowRoot) {
|
|
11761
|
+
var _a;
|
|
11762
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
11763
|
+
return;
|
|
11764
|
+
}
|
|
11765
|
+
var fontFaceRules = [];
|
|
11766
|
+
var extractFromSheet = function (sheet) {
|
|
11767
|
+
try {
|
|
11768
|
+
var rules = sheet.cssRules;
|
|
11769
|
+
for (var i = 0; i < rules.length; i++) {
|
|
11770
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
11771
|
+
fontFaceRules.push(rules[i].cssText);
|
|
11772
|
+
}
|
|
11773
|
+
}
|
|
11774
|
+
}
|
|
11775
|
+
catch (_e) {
|
|
11776
|
+
// Cross-origin access may throw; silently skip
|
|
11777
|
+
}
|
|
11778
|
+
};
|
|
11779
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
11780
|
+
var adoptedSheets = (_a = shadowRoot.adoptedStyleSheets) !== null && _a !== void 0 ? _a : [];
|
|
11781
|
+
adoptedSheets.forEach(function (sheet) { return extractFromSheet(sheet); });
|
|
11782
|
+
// <style> elements (older Angular or fallback)
|
|
11783
|
+
shadowRoot.querySelectorAll('style').forEach(function (el) {
|
|
11784
|
+
if (el.sheet) {
|
|
11785
|
+
extractFromSheet(el.sheet);
|
|
11786
|
+
}
|
|
11787
|
+
});
|
|
11788
|
+
if (fontFaceRules.length > 0) {
|
|
11789
|
+
var style = document.createElement('style');
|
|
11790
|
+
style.id = 'b-shadow-root-fonts';
|
|
11791
|
+
style.textContent = fontFaceRules.join('\n');
|
|
11792
|
+
document.head.appendChild(style);
|
|
11793
|
+
}
|
|
11794
|
+
};
|
|
11266
11795
|
/**
|
|
11267
11796
|
* Watch for changes
|
|
11268
11797
|
* @param changes
|
|
@@ -11274,8 +11803,8 @@
|
|
|
11274
11803
|
return;
|
|
11275
11804
|
}
|
|
11276
11805
|
// Iterate over all changes
|
|
11277
|
-
Object.entries(changes).forEach(function (
|
|
11278
|
-
var
|
|
11806
|
+
Object.entries(changes).forEach(function (_b) {
|
|
11807
|
+
var _c = __read(_b, 2), prop = _c[0], change = _c[1];
|
|
11279
11808
|
var newValue = change.currentValue, instance = _this.instance, bryntumConfigsOnly = BryntumTreeGridComponent.bryntumConfigsOnly, bryntumProps = BryntumTreeGridComponent.bryntumProps;
|
|
11280
11809
|
if (bryntumProps.includes(prop)) {
|
|
11281
11810
|
WrapperHelper.applyPropValue(instance, prop, newValue, false);
|
|
@@ -11528,6 +12057,7 @@
|
|
|
11528
12057
|
'insertFirst',
|
|
11529
12058
|
'keyMap',
|
|
11530
12059
|
'labelPosition',
|
|
12060
|
+
'labelWidth',
|
|
11531
12061
|
'listeners',
|
|
11532
12062
|
'loadMask',
|
|
11533
12063
|
'loadMaskDefaults',
|
|
@@ -11554,6 +12084,7 @@
|
|
|
11554
12084
|
'resizeToFitIncludesHeader',
|
|
11555
12085
|
'responsiveLevels',
|
|
11556
12086
|
'ripple',
|
|
12087
|
+
'role',
|
|
11557
12088
|
'rootElement',
|
|
11558
12089
|
'rowHeight',
|
|
11559
12090
|
'rowLines',
|
|
@@ -11640,6 +12171,7 @@
|
|
|
11640
12171
|
'resizeToFitIncludesHeader',
|
|
11641
12172
|
'responsiveLevels',
|
|
11642
12173
|
'ripple',
|
|
12174
|
+
'role',
|
|
11643
12175
|
'rootElement',
|
|
11644
12176
|
'scrollerClass',
|
|
11645
12177
|
'scrollManager',
|
|
@@ -11677,8 +12209,6 @@
|
|
|
11677
12209
|
'enableUndoRedoKeys',
|
|
11678
12210
|
'extraData',
|
|
11679
12211
|
'flex',
|
|
11680
|
-
'focusVisible',
|
|
11681
|
-
'hasChanges',
|
|
11682
12212
|
'height',
|
|
11683
12213
|
'hidden',
|
|
11684
12214
|
'hideFooters',
|
|
@@ -11689,6 +12219,7 @@
|
|
|
11689
12219
|
'insertFirst',
|
|
11690
12220
|
'keyMap',
|
|
11691
12221
|
'labelPosition',
|
|
12222
|
+
'labelWidth',
|
|
11692
12223
|
'longPressTime',
|
|
11693
12224
|
'margin',
|
|
11694
12225
|
'maxHeight',
|
|
@@ -11722,7 +12253,7 @@
|
|
|
11722
12253
|
'width'
|
|
11723
12254
|
]);
|
|
11724
12255
|
BryntumTreeGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumTreeGridComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11725
|
-
BryntumTreeGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumTreeGridComponent, selector: "bryntum-tree-grid", inputs: { adopt: "adopt", animateFilterRemovals: "animateFilterRemovals", animateRemovingRows: "animateRemovingRows", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoHeight: "autoHeight", bbar: "bbar", bodyCls: "bodyCls", border: "border", bubbleEvents: "bubbleEvents", collapsible: "collapsible", color: "color", config: "config", contentElementCls: "contentElementCls", contextMenuTriggerEvent: "contextMenuTriggerEvent", dataField: "dataField", defaultRegion: "defaultRegion", destroyStore: "destroyStore", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", disableGridColumnIdWarning: "disableGridColumnIdWarning", disableGridRowModelWarning: "disableGridRowModelWarning", dock: "dock", drawer: "drawer", elementAttributes: "elementAttributes", enableSticky: "enableSticky", enableTextSelection: "enableTextSelection", fillLastColumn: "fillLastColumn", fixedRowHeight: "fixedRowHeight", footer: "footer", formulaProviders: "formulaProviders", fullRowRefresh: "fullRowRefresh", getRowHeight: "getRowHeight", header: "header", hideHorizontalScrollbar: "hideHorizontalScrollbar", hoverCls: "hoverCls", icon: "icon", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", loadMask: "loadMask", loadMaskDefaults: "loadMaskDefaults", loadMaskError: "loadMaskError", localizable: "localizable", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", plugins: "plugins", preserveFocusOnDatasetChange: "preserveFocusOnDatasetChange", preserveScrollOnDatasetChange: "preserveScrollOnDatasetChange", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", resizable: "resizable", resizeToFitIncludesHeader: "resizeToFitIncludesHeader", responsiveLevels: "responsiveLevels", ripple: "ripple", rootElement: "rootElement", scrollerClass: "scrollerClass", scrollManager: "scrollManager", showDirty: "showDirty", stateful: "stateful", statefulEvents: "statefulEvents", stateId: "stateId", stateProvider: "stateProvider", strips: "strips", subGridConfigs: "subGridConfigs", syncMask: "syncMask", tab: "tab", tabBarItems: "tabBarItems", tbar: "tbar", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", animateTreeNodeToggle: "animateTreeNodeToggle", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cellEllipsis: "cellEllipsis", cls: "cls", collapsed: "collapsed", column: "column", columnLines: "columnLines", columns: "columns", data: "data", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", enableUndoRedoKeys: "enableUndoRedoKeys", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", hideFooters: "hideFooters", hideHeaders: "hideHeaders", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", labelPosition: "labelPosition", longPressTime: "longPressTime", margin: "margin", maxHeight: "maxHeight", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", preserveScroll: "preserveScroll", readOnly: "readOnly", rendition: "rendition", rowHeight: "rowHeight", rowLines: "rowLines", rtl: "rtl", scrollable: "scrollable", selectionMode: "selectionMode", span: "span", stateSettings: "stateSettings", store: "store", title: "title", tools: "tools", transition: "transition", transitionDuration: "transitionDuration", width: "width", focusVisible: "focusVisible", hasChanges: "hasChanges", originalStore: "originalStore", parent: "parent", selectedCell: "selectedCell", selectedCells: "selectedCells", selectedRecord: "selectedRecord", selectedRecords: "selectedRecords", selectedRows: "selectedRows", state: "state", tooltip: "tooltip", aiFeature: "aiFeature", aiFilterFeature: "aiFilterFeature", cellCopyPasteFeature: "cellCopyPasteFeature", cellEditFeature: "cellEditFeature", cellMenuFeature: "cellMenuFeature", cellTooltipFeature: "cellTooltipFeature", chartsFeature: "chartsFeature", columnAutoWidthFeature: "columnAutoWidthFeature", columnDragToolbarFeature: "columnDragToolbarFeature", columnPickerFeature: "columnPickerFeature", columnRenameFeature: "columnRenameFeature", columnReorderFeature: "columnReorderFeature", columnResizeFeature: "columnResizeFeature", excelExporterFeature: "excelExporterFeature", fileDropFeature: "fileDropFeature", fillHandleFeature: "fillHandleFeature", filterFeature: "filterFeature", filterBarFeature: "filterBarFeature", groupFeature: "groupFeature", groupSummaryFeature: "groupSummaryFeature", headerMenuFeature: "headerMenuFeature", lockRowsFeature: "lockRowsFeature", mergeCellsFeature: "mergeCellsFeature", pdfExportFeature: "pdfExportFeature", pinColumnsFeature: "pinColumnsFeature", printFeature: "printFeature", quickFindFeature: "quickFindFeature", regionResizeFeature: "regionResizeFeature", rowCopyPasteFeature: "rowCopyPasteFeature", rowEditFeature: "rowEditFeature", rowExpanderFeature: "rowExpanderFeature", rowReorderFeature: "rowReorderFeature", rowResizeFeature: "rowResizeFeature", searchFeature: "searchFeature", sortFeature: "sortFeature", splitFeature: "splitFeature", stickyCellsFeature: "stickyCellsFeature", stripeFeature: "stripeFeature", summaryFeature: "summaryFeature", treeFeature: "treeFeature", treeGroupFeature: "treeGroupFeature" }, outputs: { onBeforeCancelCellEdit: "onBeforeCancelCellEdit", onBeforeCancelRowEdit: "onBeforeCancelRowEdit", onBeforeCellEditStart: "onBeforeCellEditStart", onBeforeCellRangeDelete: "onBeforeCellRangeDelete", onBeforeCellRangeEdit: "onBeforeCellRangeEdit", onBeforeColumnCollapseToggle: "onBeforeColumnCollapseToggle", onBeforeColumnDragStart: "onBeforeColumnDragStart", onBeforeColumnDropFinalize: "onBeforeColumnDropFinalize", onBeforeColumnResize: "onBeforeColumnResize", onBeforeCopy: "onBeforeCopy", onBeforeCSVExport: "onBeforeCSVExport", onBeforeDestroy: "onBeforeDestroy", onBeforeExcelExport: "onBeforeExcelExport", onBeforeFillHandleDragStart: "onBeforeFillHandleDragStart", onBeforeFinishCellEdit: "onBeforeFinishCellEdit", onBeforeFinishRowEdit: "onBeforeFinishRowEdit", onBeforeHide: "onBeforeHide", onBeforePaste: "onBeforePaste", onBeforePdfExport: "onBeforePdfExport", onBeforeRenderRow: "onBeforeRenderRow", onBeforeRenderRows: "onBeforeRenderRows", onBeforeRowCollapse: "onBeforeRowCollapse", onBeforeRowExpand: "onBeforeRowExpand", onBeforeSelectionChange: "onBeforeSelectionChange", onBeforeSetRecord: "onBeforeSetRecord", onBeforeShow: "onBeforeShow", onBeforeStartRowEdit: "onBeforeStartRowEdit", onBeforeStateApply: "onBeforeStateApply", onBeforeStateSave: "onBeforeStateSave", onBeforeToggleGroup: "onBeforeToggleGroup", onBeforeToggleNode: "onBeforeToggleNode", onCancelCellEdit: "onCancelCellEdit", onCatchAll: "onCatchAll", onCellClick: "onCellClick", onCellContextMenu: "onCellContextMenu", onCellDblClick: "onCellDblClick", onCellMenuBeforeShow: "onCellMenuBeforeShow", onCellMenuItem: "onCellMenuItem", onCellMenuShow: "onCellMenuShow", onCellMenuToggleItem: "onCellMenuToggleItem", onCellMouseEnter: "onCellMouseEnter", onCellMouseLeave: "onCellMouseLeave", onCellMouseOut: "onCellMouseOut", onCellMouseOver: "onCellMouseOver", onCollapse: "onCollapse", onCollapseNode: "onCollapseNode", onColumnCollapseToggle: "onColumnCollapseToggle", onColumnDrag: "onColumnDrag", onColumnDragStart: "onColumnDragStart", onColumnDrop: "onColumnDrop", onColumnResize: "onColumnResize", onColumnResizeStart: "onColumnResizeStart", onContextMenuItem: "onContextMenuItem", onContextMenuToggleItem: "onContextMenuToggleItem", onCopy: "onCopy", onDataChange: "onDataChange", onDestroy: "onDestroy", onDirtyStateChange: "onDirtyStateChange", onDragSelecting: "onDragSelecting", onElementCreated: "onElementCreated", onExpand: "onExpand", onExpandNode: "onExpandNode", onFileDrop: "onFileDrop", onFillHandleBeforeDragFinalize: "onFillHandleBeforeDragFinalize", onFillHandleDrag: "onFillHandleDrag", onFillHandleDragAbort: "onFillHandleDragAbort", onFillHandleDragEnd: "onFillHandleDragEnd", onFillHandleDragStart: "onFillHandleDragStart", onFinishCellEdit: "onFinishCellEdit", onFinishRowEdit: "onFinishRowEdit", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onGridRowBeforeDragStart: "onGridRowBeforeDragStart", onGridRowBeforeDropFinalize: "onGridRowBeforeDropFinalize", onGridRowDrag: "onGridRowDrag", onGridRowDragAbort: "onGridRowDragAbort", onGridRowDragStart: "onGridRowDragStart", onGridRowDrop: "onGridRowDrop", onHeaderClick: "onHeaderClick", onHeaderMenuBeforeShow: "onHeaderMenuBeforeShow", onHeaderMenuItem: "onHeaderMenuItem", onHeaderMenuShow: "onHeaderMenuShow", onHeaderMenuToggleItem: "onHeaderMenuToggleItem", onHide: "onHide", onLockRows: "onLockRows", onMouseOut: "onMouseOut", onMouseOver: "onMouseOver", onPaint: "onPaint", onPaste: "onPaste", onPdfExport: "onPdfExport", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onRenderRow: "onRenderRow", onRenderRows: "onRenderRows", onResize: "onResize", onResponsive: "onResponsive", onRowCollapse: "onRowCollapse", onRowExpand: "onRowExpand", onRowMouseEnter: "onRowMouseEnter", onRowMouseLeave: "onRowMouseLeave", onScroll: "onScroll", onSelectionChange: "onSelectionChange", onSelectionModeChange: "onSelectionModeChange", onShow: "onShow", onSplit: "onSplit", onSplitterCollapseClick: "onSplitterCollapseClick", onSplitterDragEnd: "onSplitterDragEnd", onSplitterDragStart: "onSplitterDragStart", onSplitterExpandClick: "onSplitterExpandClick", onStartCellEdit: "onStartCellEdit", onStartRowEdit: "onStartRowEdit", onSubGridCollapse: "onSubGridCollapse", onSubGridExpand: "onSubGridExpand", onToggleGroup: "onToggleGroup", onToggleNode: "onToggleNode", onToolClick: "onToolClick", onTreeGroup: "onTreeGroup", onUnlockRows: "onUnlockRows", onUnsplit: "onUnsplit" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
12256
|
+
BryntumTreeGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BryntumTreeGridComponent, selector: "bryntum-tree-grid", inputs: { adopt: "adopt", animateFilterRemovals: "animateFilterRemovals", animateRemovingRows: "animateRemovingRows", ariaDescription: "ariaDescription", ariaLabel: "ariaLabel", autoHeight: "autoHeight", bbar: "bbar", bodyCls: "bodyCls", border: "border", bubbleEvents: "bubbleEvents", collapsible: "collapsible", color: "color", config: "config", contentElementCls: "contentElementCls", contextMenuTriggerEvent: "contextMenuTriggerEvent", dataField: "dataField", defaultRegion: "defaultRegion", destroyStore: "destroyStore", detectCSSCompatibilityIssues: "detectCSSCompatibilityIssues", disableGridColumnIdWarning: "disableGridColumnIdWarning", disableGridRowModelWarning: "disableGridRowModelWarning", dock: "dock", drawer: "drawer", elementAttributes: "elementAttributes", enableSticky: "enableSticky", enableTextSelection: "enableTextSelection", fillLastColumn: "fillLastColumn", fixedRowHeight: "fixedRowHeight", footer: "footer", formulaProviders: "formulaProviders", fullRowRefresh: "fullRowRefresh", getRowHeight: "getRowHeight", header: "header", hideHorizontalScrollbar: "hideHorizontalScrollbar", hoverCls: "hoverCls", icon: "icon", ignoreParentReadOnly: "ignoreParentReadOnly", listeners: "listeners", loadMask: "loadMask", loadMaskDefaults: "loadMaskDefaults", loadMaskError: "loadMaskError", localizable: "localizable", maskDefaults: "maskDefaults", masked: "masked", monitorResize: "monitorResize", plugins: "plugins", preserveFocusOnDatasetChange: "preserveFocusOnDatasetChange", preserveScrollOnDatasetChange: "preserveScrollOnDatasetChange", preventTooltipOnTouch: "preventTooltipOnTouch", relayStoreEvents: "relayStoreEvents", resizable: "resizable", resizeToFitIncludesHeader: "resizeToFitIncludesHeader", responsiveLevels: "responsiveLevels", ripple: "ripple", role: "role", rootElement: "rootElement", scrollerClass: "scrollerClass", scrollManager: "scrollManager", showDirty: "showDirty", stateful: "stateful", statefulEvents: "statefulEvents", stateId: "stateId", stateProvider: "stateProvider", strips: "strips", subGridConfigs: "subGridConfigs", syncMask: "syncMask", tab: "tab", tabBarItems: "tabBarItems", tbar: "tbar", type: "type", ui: "ui", weight: "weight", alignSelf: "alignSelf", animateTreeNodeToggle: "animateTreeNodeToggle", appendTo: "appendTo", callOnFunctions: "callOnFunctions", catchEventHandlerExceptions: "catchEventHandlerExceptions", cellEllipsis: "cellEllipsis", cls: "cls", collapsed: "collapsed", column: "column", columnLines: "columnLines", columns: "columns", data: "data", dataset: "dataset", disabled: "disabled", emptyText: "emptyText", enableUndoRedoKeys: "enableUndoRedoKeys", extraData: "extraData", flex: "flex", height: "height", hidden: "hidden", hideFooters: "hideFooters", hideHeaders: "hideHeaders", id: "id", inputFieldAlign: "inputFieldAlign", insertBefore: "insertBefore", insertFirst: "insertFirst", keyMap: "keyMap", labelPosition: "labelPosition", labelWidth: "labelWidth", longPressTime: "longPressTime", margin: "margin", maxHeight: "maxHeight", maxWidth: "maxWidth", minHeight: "minHeight", minWidth: "minWidth", preserveScroll: "preserveScroll", readOnly: "readOnly", rendition: "rendition", rowHeight: "rowHeight", rowLines: "rowLines", rtl: "rtl", scrollable: "scrollable", selectionMode: "selectionMode", span: "span", stateSettings: "stateSettings", store: "store", title: "title", tools: "tools", transition: "transition", transitionDuration: "transitionDuration", width: "width", originalStore: "originalStore", parent: "parent", selectedCell: "selectedCell", selectedCells: "selectedCells", selectedRecord: "selectedRecord", selectedRecords: "selectedRecords", selectedRows: "selectedRows", state: "state", tooltip: "tooltip", aiFeature: "aiFeature", aiFilterFeature: "aiFilterFeature", cellCopyPasteFeature: "cellCopyPasteFeature", cellEditFeature: "cellEditFeature", cellMenuFeature: "cellMenuFeature", cellTooltipFeature: "cellTooltipFeature", chartsFeature: "chartsFeature", columnAutoWidthFeature: "columnAutoWidthFeature", columnDragToolbarFeature: "columnDragToolbarFeature", columnPickerFeature: "columnPickerFeature", columnRenameFeature: "columnRenameFeature", columnReorderFeature: "columnReorderFeature", columnResizeFeature: "columnResizeFeature", excelExporterFeature: "excelExporterFeature", fileDropFeature: "fileDropFeature", fillHandleFeature: "fillHandleFeature", filterFeature: "filterFeature", filterBarFeature: "filterBarFeature", groupFeature: "groupFeature", groupSummaryFeature: "groupSummaryFeature", headerMenuFeature: "headerMenuFeature", lockRowsFeature: "lockRowsFeature", mergeCellsFeature: "mergeCellsFeature", pdfExportFeature: "pdfExportFeature", pinColumnsFeature: "pinColumnsFeature", printFeature: "printFeature", quickFindFeature: "quickFindFeature", regionResizeFeature: "regionResizeFeature", rowCopyPasteFeature: "rowCopyPasteFeature", rowEditFeature: "rowEditFeature", rowExpanderFeature: "rowExpanderFeature", rowReorderFeature: "rowReorderFeature", rowResizeFeature: "rowResizeFeature", searchFeature: "searchFeature", sortFeature: "sortFeature", splitFeature: "splitFeature", stickyCellsFeature: "stickyCellsFeature", stripeFeature: "stripeFeature", summaryFeature: "summaryFeature", treeFeature: "treeFeature", treeGroupFeature: "treeGroupFeature" }, outputs: { onBeforeCancelCellEdit: "onBeforeCancelCellEdit", onBeforeCancelRowEdit: "onBeforeCancelRowEdit", onBeforeCellEditStart: "onBeforeCellEditStart", onBeforeCellRangeDelete: "onBeforeCellRangeDelete", onBeforeCellRangeEdit: "onBeforeCellRangeEdit", onBeforeColumnCollapseToggle: "onBeforeColumnCollapseToggle", onBeforeColumnDragStart: "onBeforeColumnDragStart", onBeforeColumnDropFinalize: "onBeforeColumnDropFinalize", onBeforeColumnResize: "onBeforeColumnResize", onBeforeCopy: "onBeforeCopy", onBeforeCSVExport: "onBeforeCSVExport", onBeforeDestroy: "onBeforeDestroy", onBeforeExcelExport: "onBeforeExcelExport", onBeforeFillHandleDragStart: "onBeforeFillHandleDragStart", onBeforeFinishCellEdit: "onBeforeFinishCellEdit", onBeforeFinishRowEdit: "onBeforeFinishRowEdit", onBeforeHide: "onBeforeHide", onBeforePaste: "onBeforePaste", onBeforePdfExport: "onBeforePdfExport", onBeforeRenderRow: "onBeforeRenderRow", onBeforeRenderRows: "onBeforeRenderRows", onBeforeRowCollapse: "onBeforeRowCollapse", onBeforeRowExpand: "onBeforeRowExpand", onBeforeSelectionChange: "onBeforeSelectionChange", onBeforeSetRecord: "onBeforeSetRecord", onBeforeShow: "onBeforeShow", onBeforeStartRowEdit: "onBeforeStartRowEdit", onBeforeStateApply: "onBeforeStateApply", onBeforeStateSave: "onBeforeStateSave", onBeforeToggleGroup: "onBeforeToggleGroup", onBeforeToggleNode: "onBeforeToggleNode", onCancelCellEdit: "onCancelCellEdit", onCatchAll: "onCatchAll", onCellClick: "onCellClick", onCellContextMenu: "onCellContextMenu", onCellDblClick: "onCellDblClick", onCellMenuBeforeShow: "onCellMenuBeforeShow", onCellMenuItem: "onCellMenuItem", onCellMenuShow: "onCellMenuShow", onCellMenuToggleItem: "onCellMenuToggleItem", onCellMouseEnter: "onCellMouseEnter", onCellMouseLeave: "onCellMouseLeave", onCellMouseOut: "onCellMouseOut", onCellMouseOver: "onCellMouseOver", onCollapse: "onCollapse", onCollapseNode: "onCollapseNode", onColumnCollapseToggle: "onColumnCollapseToggle", onColumnDrag: "onColumnDrag", onColumnDragStart: "onColumnDragStart", onColumnDrop: "onColumnDrop", onColumnResize: "onColumnResize", onColumnResizeStart: "onColumnResizeStart", onContextMenuItem: "onContextMenuItem", onContextMenuToggleItem: "onContextMenuToggleItem", onCopy: "onCopy", onDataChange: "onDataChange", onDestroy: "onDestroy", onDirtyStateChange: "onDirtyStateChange", onDragSelecting: "onDragSelecting", onElementCreated: "onElementCreated", onExpand: "onExpand", onExpandNode: "onExpandNode", onFileDrop: "onFileDrop", onFillHandleBeforeDragFinalize: "onFillHandleBeforeDragFinalize", onFillHandleDrag: "onFillHandleDrag", onFillHandleDragAbort: "onFillHandleDragAbort", onFillHandleDragEnd: "onFillHandleDragEnd", onFillHandleDragStart: "onFillHandleDragStart", onFinishCellEdit: "onFinishCellEdit", onFinishRowEdit: "onFinishRowEdit", onFocusIn: "onFocusIn", onFocusOut: "onFocusOut", onGridRowBeforeDragStart: "onGridRowBeforeDragStart", onGridRowBeforeDropFinalize: "onGridRowBeforeDropFinalize", onGridRowDrag: "onGridRowDrag", onGridRowDragAbort: "onGridRowDragAbort", onGridRowDragStart: "onGridRowDragStart", onGridRowDrop: "onGridRowDrop", onHeaderClick: "onHeaderClick", onHeaderMenuBeforeShow: "onHeaderMenuBeforeShow", onHeaderMenuItem: "onHeaderMenuItem", onHeaderMenuShow: "onHeaderMenuShow", onHeaderMenuToggleItem: "onHeaderMenuToggleItem", onHide: "onHide", onLockRows: "onLockRows", onMouseOut: "onMouseOut", onMouseOver: "onMouseOver", onPaint: "onPaint", onPaste: "onPaste", onPdfExport: "onPdfExport", onReadOnly: "onReadOnly", onRecompose: "onRecompose", onRenderRow: "onRenderRow", onRenderRows: "onRenderRows", onResize: "onResize", onResponsive: "onResponsive", onRowCollapse: "onRowCollapse", onRowExpand: "onRowExpand", onRowMouseEnter: "onRowMouseEnter", onRowMouseLeave: "onRowMouseLeave", onScroll: "onScroll", onSelectionChange: "onSelectionChange", onSelectionModeChange: "onSelectionModeChange", onShow: "onShow", onSplit: "onSplit", onSplitterCollapseClick: "onSplitterCollapseClick", onSplitterDragEnd: "onSplitterDragEnd", onSplitterDragStart: "onSplitterDragStart", onSplitterExpandClick: "onSplitterExpandClick", onStartCellEdit: "onStartCellEdit", onStartRowEdit: "onStartRowEdit", onSubGridCollapse: "onSubGridCollapse", onSubGridExpand: "onSubGridExpand", onToggleGroup: "onToggleGroup", onToggleNode: "onToggleNode", onToolClick: "onToolClick", onTreeGroup: "onTreeGroup", onUnlockRows: "onUnlockRows", onUnsplit: "onUnsplit" }, usesOnChanges: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
11726
12257
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumTreeGridComponent, decorators: [{
|
|
11727
12258
|
type: i0.Component,
|
|
11728
12259
|
args: [{
|
|
@@ -11837,6 +12368,8 @@
|
|
|
11837
12368
|
type: i0.Input
|
|
11838
12369
|
}], ripple: [{
|
|
11839
12370
|
type: i0.Input
|
|
12371
|
+
}], role: [{
|
|
12372
|
+
type: i0.Input
|
|
11840
12373
|
}], rootElement: [{
|
|
11841
12374
|
type: i0.Input
|
|
11842
12375
|
}], scrollerClass: [{
|
|
@@ -11927,6 +12460,8 @@
|
|
|
11927
12460
|
type: i0.Input
|
|
11928
12461
|
}], labelPosition: [{
|
|
11929
12462
|
type: i0.Input
|
|
12463
|
+
}], labelWidth: [{
|
|
12464
|
+
type: i0.Input
|
|
11930
12465
|
}], longPressTime: [{
|
|
11931
12466
|
type: i0.Input
|
|
11932
12467
|
}], margin: [{
|
|
@@ -11971,10 +12506,6 @@
|
|
|
11971
12506
|
type: i0.Input
|
|
11972
12507
|
}], width: [{
|
|
11973
12508
|
type: i0.Input
|
|
11974
|
-
}], focusVisible: [{
|
|
11975
|
-
type: i0.Input
|
|
11976
|
-
}], hasChanges: [{
|
|
11977
|
-
type: i0.Input
|
|
11978
12509
|
}], originalStore: [{
|
|
11979
12510
|
type: i0.Input
|
|
11980
12511
|
}], parent: [{
|
|
@@ -12333,7 +12864,7 @@
|
|
|
12333
12864
|
BryntumGridFieldFilterPickerGroupComponent,
|
|
12334
12865
|
BryntumGroupBarComponent,
|
|
12335
12866
|
BryntumTreeComboComponent,
|
|
12336
|
-
BryntumTreeGridComponent], exports: [BryntumAIFilterFieldComponent,
|
|
12867
|
+
BryntumTreeGridComponent], imports: [common.CommonModule], exports: [BryntumAIFilterFieldComponent,
|
|
12337
12868
|
BryntumChecklistFilterComboComponent,
|
|
12338
12869
|
BryntumGridComponent,
|
|
12339
12870
|
BryntumGridBaseComponent,
|
|
@@ -12343,7 +12874,7 @@
|
|
|
12343
12874
|
BryntumGroupBarComponent,
|
|
12344
12875
|
BryntumTreeComboComponent,
|
|
12345
12876
|
BryntumTreeGridComponent] });
|
|
12346
|
-
BryntumGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridModule, imports: [[]] });
|
|
12877
|
+
BryntumGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridModule, imports: [[common.CommonModule]] });
|
|
12347
12878
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BryntumGridModule, decorators: [{
|
|
12348
12879
|
type: i0.NgModule,
|
|
12349
12880
|
args: [{
|
|
@@ -12359,7 +12890,7 @@
|
|
|
12359
12890
|
BryntumTreeComboComponent,
|
|
12360
12891
|
BryntumTreeGridComponent
|
|
12361
12892
|
],
|
|
12362
|
-
imports: [],
|
|
12893
|
+
imports: [common.CommonModule],
|
|
12363
12894
|
exports: [
|
|
12364
12895
|
BryntumAIFilterFieldComponent,
|
|
12365
12896
|
BryntumChecklistFilterComboComponent,
|