@ai-table/grid 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,7 +195,7 @@ function createListener(instance) {
|
|
|
195
195
|
|
|
196
196
|
class KoShape {
|
|
197
197
|
constructor() {
|
|
198
|
-
this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] :
|
|
198
|
+
this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
199
199
|
this.koMouseover = new EventEmitter();
|
|
200
200
|
this.koMousemove = new EventEmitter();
|
|
201
201
|
this.koMouseout = new EventEmitter();
|
|
@@ -277,10 +277,10 @@ class KoShape {
|
|
|
277
277
|
ngOnDestroy() {
|
|
278
278
|
this._node?.destroy();
|
|
279
279
|
}
|
|
280
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
281
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
280
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KoShape, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
281
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: KoShape, isStandalone: true, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { koMouseover: "koMouseover", koMousemove: "koMousemove", koMouseout: "koMouseout", koMouseenter: "koMouseenter", koMouseleave: "koMouseleave", koMousedown: "koMousedown", koMouseup: "koMouseup", koWheel: "koWheel", koContextmenu: "koContextmenu", koClick: "koClick", koDblclick: "koDblclick", koTouchstart: "koTouchstart", koTouchmove: "koTouchmove", koTouchend: "koTouchend", koTap: "koTap", koDbltap: "koDbltap", koDragstart: "koDragstart", koDragmove: "koDragmove", koDragend: "koDragend" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
282
282
|
}
|
|
283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KoShape, decorators: [{
|
|
284
284
|
type: Component,
|
|
285
285
|
args: [{
|
|
286
286
|
selector: 'ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer',
|
|
@@ -328,15 +328,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
328
328
|
}] } });
|
|
329
329
|
|
|
330
330
|
class KoContainer extends KoShape {
|
|
331
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
332
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KoContainer, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: KoContainer, isStandalone: true, selector: "ko-layer, ko-fastlayer, ko-group", providers: [
|
|
333
333
|
{
|
|
334
334
|
provide: KO_CONTAINER_TOKEN,
|
|
335
335
|
useExisting: KoContainer
|
|
336
336
|
}
|
|
337
337
|
], usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
338
338
|
}
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KoContainer, decorators: [{
|
|
340
340
|
type: Component,
|
|
341
341
|
args: [{
|
|
342
342
|
selector: 'ko-layer, ko-fastlayer, ko-group',
|
|
@@ -353,7 +353,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
353
353
|
|
|
354
354
|
class KoStage {
|
|
355
355
|
constructor() {
|
|
356
|
-
this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] :
|
|
356
|
+
this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
357
357
|
this.koMouseover = new EventEmitter();
|
|
358
358
|
this.koMousemove = new EventEmitter();
|
|
359
359
|
this.koMouseout = new EventEmitter();
|
|
@@ -407,15 +407,15 @@ class KoStage {
|
|
|
407
407
|
ngOnDestroy() {
|
|
408
408
|
this._stage?.destroy();
|
|
409
409
|
}
|
|
410
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
411
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KoStage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: KoStage, isStandalone: true, selector: "ko-stage", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { koMouseover: "koMouseover", koMousemove: "koMousemove", koMouseout: "koMouseout", koMouseenter: "koMouseenter", koMouseleave: "koMouseleave", koMousedown: "koMousedown", koMouseup: "koMouseup", koWheel: "koWheel", koContextmenu: "koContextmenu", koClick: "koClick", koDblclick: "koDblclick", koTouchstart: "koTouchstart", koTouchmove: "koTouchmove", koTouchend: "koTouchend", koTap: "koTap", koDbltap: "koDbltap", koDragstart: "koDragstart", koDragmove: "koDragmove", koDragend: "koDragend" }, providers: [
|
|
412
412
|
{
|
|
413
413
|
provide: KO_CONTAINER_TOKEN,
|
|
414
414
|
useExisting: KoStage
|
|
415
415
|
}
|
|
416
416
|
], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
417
417
|
}
|
|
418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KoStage, decorators: [{
|
|
419
419
|
type: Component,
|
|
420
420
|
args: [{
|
|
421
421
|
selector: 'ko-stage',
|
|
@@ -1677,15 +1677,15 @@ class RendererContext {
|
|
|
1677
1677
|
|
|
1678
1678
|
class AbstractEditCellEditor {
|
|
1679
1679
|
constructor() {
|
|
1680
|
-
this.recordHeight = input(AI_TABLE_RECORD_HEIGHT_LEVELS.low, ...(ngDevMode ? [{ debugName: "recordHeight" }] :
|
|
1681
|
-
this.autoFocus = input(true,
|
|
1680
|
+
this.recordHeight = input(AI_TABLE_RECORD_HEIGHT_LEVELS.low, ...(ngDevMode ? [{ debugName: "recordHeight" }] : []));
|
|
1681
|
+
this.autoFocus = input(true, ...(ngDevMode ? [{ debugName: "autoFocus", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
1682
1682
|
this.updateFieldValues = output();
|
|
1683
1683
|
this.field = computed(() => {
|
|
1684
1684
|
return this.aiTable.fieldsMap()[this.fieldId];
|
|
1685
|
-
}, ...(ngDevMode ? [{ debugName: "field" }] :
|
|
1685
|
+
}, ...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
1686
1686
|
this.record = computed(() => {
|
|
1687
1687
|
return this.aiTable.recordsMap()[this.recordId];
|
|
1688
|
-
}, ...(ngDevMode ? [{ debugName: "record" }] :
|
|
1688
|
+
}, ...(ngDevMode ? [{ debugName: "record" }] : []));
|
|
1689
1689
|
this.elementRef = inject((ElementRef));
|
|
1690
1690
|
this.thyPopoverRef = inject((ThyPopoverRef), { optional: true });
|
|
1691
1691
|
this.render2 = inject(Renderer2);
|
|
@@ -1739,10 +1739,10 @@ class AbstractEditCellEditor {
|
|
|
1739
1739
|
});
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1743
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1742
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractEditCellEditor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1743
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AbstractEditCellEditor, isStandalone: true, selector: "abstract-edit-cell", inputs: { aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: false, isRequired: true, transformFunction: null }, fieldId: { classPropertyName: "fieldId", publicName: "fieldId", isSignal: false, isRequired: true, transformFunction: null }, recordId: { classPropertyName: "recordId", publicName: "recordId", isSignal: false, isRequired: true, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: false, isRequired: true, transformFunction: null }, recordHeight: { classPropertyName: "recordHeight", publicName: "recordHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { updateFieldValues: "updateFieldValues" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1744
1744
|
}
|
|
1745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractEditCellEditor, decorators: [{
|
|
1746
1746
|
type: Component,
|
|
1747
1747
|
args: [{
|
|
1748
1748
|
selector: 'abstract-edit-cell',
|
|
@@ -1795,8 +1795,8 @@ class DateCellEditorComponent extends AbstractEditCellEditor {
|
|
|
1795
1795
|
this.closePopover();
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1799
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DateCellEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1799
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: DateCellEditorComponent, isStandalone: true, selector: "date-cell-editor", host: { classAttribute: "date-cell-editor" }, usesInheritance: true, ngImport: i0, template: `
|
|
1800
1800
|
<thy-date-picker
|
|
1801
1801
|
class="h-100"
|
|
1802
1802
|
thyTimestampPrecision="seconds"
|
|
@@ -1814,7 +1814,7 @@ class DateCellEditorComponent extends AbstractEditCellEditor {
|
|
|
1814
1814
|
</thy-date-picker>
|
|
1815
1815
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ThyDatePicker, selector: "thy-date-picker", exportAs: ["thyDatePicker"] }, { kind: "ngmodule", type: ThyTimePickerModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1816
1816
|
}
|
|
1817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DateCellEditorComponent, decorators: [{
|
|
1818
1818
|
type: Component,
|
|
1819
1819
|
args: [{
|
|
1820
1820
|
selector: 'date-cell-editor',
|
|
@@ -1851,7 +1851,7 @@ class LinkEditComponent {
|
|
|
1851
1851
|
this.thyPopoverRef = thyPopoverRef;
|
|
1852
1852
|
this.url = '';
|
|
1853
1853
|
this.text = '';
|
|
1854
|
-
this.aiTable = input(...(ngDevMode ? [undefined, { debugName: "aiTable" }] :
|
|
1854
|
+
this.aiTable = input(...(ngDevMode ? [undefined, { debugName: "aiTable" }] : []));
|
|
1855
1855
|
this.confirm = new EventEmitter();
|
|
1856
1856
|
this.i18nTexts = computed(() => {
|
|
1857
1857
|
return {
|
|
@@ -1862,7 +1862,7 @@ class LinkEditComponent {
|
|
|
1862
1862
|
cancel: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.cancel),
|
|
1863
1863
|
apply: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.apply)
|
|
1864
1864
|
};
|
|
1865
|
-
}, ...(ngDevMode ? [{ debugName: "i18nTexts" }] :
|
|
1865
|
+
}, ...(ngDevMode ? [{ debugName: "i18nTexts" }] : []));
|
|
1866
1866
|
this.validatorConfig = computed(() => {
|
|
1867
1867
|
return {
|
|
1868
1868
|
validationMessages: {
|
|
@@ -1871,7 +1871,7 @@ class LinkEditComponent {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
|
-
}, ...(ngDevMode ? [{ debugName: "validatorConfig" }] :
|
|
1874
|
+
}, ...(ngDevMode ? [{ debugName: "validatorConfig" }] : []));
|
|
1875
1875
|
}
|
|
1876
1876
|
ngOnInit() { }
|
|
1877
1877
|
close() {
|
|
@@ -1892,10 +1892,10 @@ class LinkEditComponent {
|
|
|
1892
1892
|
const link = url ? { text: text || url, url: url } : undefined;
|
|
1893
1893
|
this.confirm.emit(link);
|
|
1894
1894
|
}
|
|
1895
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1896
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1895
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LinkEditComponent, deps: [{ token: i1$1.ThyPopoverRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1896
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: LinkEditComponent, isStandalone: true, selector: "link-edit", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirm: "confirm" }, ngImport: i0, template: "<form\n thyLayout=\"vertical\"\n thyStopPropagation\n thyForm\n #linkForm=\"thyForm\"\n [thyFormValidatorConfig]=\"validatorConfig()\"\n name=\"linkForm\"\n class=\"p-5\"\n>\n <thy-form-group [thyLabelText]=\"i18nTexts().linkText\">\n <input thyInput [placeholder]=\"i18nTexts().textPlaceholder\" name=\"text\" [(ngModel)]=\"text\" />\n </thy-form-group>\n <thy-form-group [thyLabelText]=\"i18nTexts().urlLabel\">\n <input name=\"url\" thyInput [placeholder]=\"i18nTexts().urlPlaceholder\" type=\"text\" [(ngModel)]=\"url\" />\n </thy-form-group>\n <thy-form-group-footer thyAlign=\"right\">\n <div class=\"btn-pair\">\n <button thyStopPropagation thyButton=\"link-secondary\" thySize=\"sm\" (click)=\"close()\">{{ i18nTexts().cancel }}</button>\n <button thyStopPropagation thyButton=\"primary\" thySize=\"sm\" (thyFormSubmit)=\"apply(linkForm)\">{{ i18nTexts().apply }}</button>\n </div>\n </thy-form-group-footer>\n</form>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "directive", type: ThyInputDirective, selector: "input[thyInput], select[thyInput], textarea[thyInput]", inputs: ["thySize"], exportAs: ["thyInput"] }, { kind: "component", type: ThyButton, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thyBlock"] }, { kind: "directive", type: ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }, { kind: "ngmodule", type: ThyFormModule }, { kind: "directive", type: i2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { kind: "component", type: i2.ThyFormGroup, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { kind: "component", type: i2.ThyFormGroupFooter, selector: "thy-form-group-footer", inputs: ["thyAlign"] }] }); }
|
|
1897
1897
|
}
|
|
1898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LinkEditComponent, decorators: [{
|
|
1899
1899
|
type: Component,
|
|
1900
1900
|
args: [{ selector: 'link-edit', imports: [FormsModule, ThyStopPropagationDirective, ThyInputDirective, ThyButton, ThyFormSubmitDirective, ThyFormModule], template: "<form\n thyLayout=\"vertical\"\n thyStopPropagation\n thyForm\n #linkForm=\"thyForm\"\n [thyFormValidatorConfig]=\"validatorConfig()\"\n name=\"linkForm\"\n class=\"p-5\"\n>\n <thy-form-group [thyLabelText]=\"i18nTexts().linkText\">\n <input thyInput [placeholder]=\"i18nTexts().textPlaceholder\" name=\"text\" [(ngModel)]=\"text\" />\n </thy-form-group>\n <thy-form-group [thyLabelText]=\"i18nTexts().urlLabel\">\n <input name=\"url\" thyInput [placeholder]=\"i18nTexts().urlPlaceholder\" type=\"text\" [(ngModel)]=\"url\" />\n </thy-form-group>\n <thy-form-group-footer thyAlign=\"right\">\n <div class=\"btn-pair\">\n <button thyStopPropagation thyButton=\"link-secondary\" thySize=\"sm\" (click)=\"close()\">{{ i18nTexts().cancel }}</button>\n <button thyStopPropagation thyButton=\"primary\" thySize=\"sm\" (thyFormSubmit)=\"apply(linkForm)\">{{ i18nTexts().apply }}</button>\n </div>\n </thy-form-group-footer>\n</form>\n" }]
|
|
1901
1901
|
}], ctorParameters: () => [{ type: i1$1.ThyPopoverRef }], propDecorators: { url: [{
|
|
@@ -1918,7 +1918,7 @@ class LinkCellEditorComponent extends AbstractEditCellEditor {
|
|
|
1918
1918
|
this.isOpened = false;
|
|
1919
1919
|
this.linkTooltip = computed(() => {
|
|
1920
1920
|
return getI18nTextByKey(this.aiTable, AITableGridI18nKey.linkTooltip);
|
|
1921
|
-
}, ...(ngDevMode ? [{ debugName: "linkTooltip" }] :
|
|
1921
|
+
}, ...(ngDevMode ? [{ debugName: "linkTooltip" }] : []));
|
|
1922
1922
|
}
|
|
1923
1923
|
isValidLink(link) {
|
|
1924
1924
|
if (!link.text) {
|
|
@@ -1987,10 +1987,10 @@ class LinkCellEditorComponent extends AbstractEditCellEditor {
|
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1991
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LinkCellEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1991
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: LinkCellEditorComponent, isStandalone: true, selector: "link-cell-editor", host: { classAttribute: "ai-table-link-editor" }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<thy-input-group class=\"link-input-group h-100\" thySize=\"lg\">\n <input\n #inputElement\n class=\"h-100\"\n class=\"link-input\"\n thyInput\n thySize=\"md\"\n [thyAutofocus]=\"autoFocus()\"\n [(ngModel)]=\"text\"\n (blur)=\"blur($event)\"\n (thyEnter)=\"updateValue()\"\n />\n <ng-template #suffix>\n <a\n thyAction\n thyIcon=\"link-insert\"\n [thyTooltip]=\"linkTooltip()\"\n class=\"font-size-base edit-icon\"\n [class.active]=\"isOpened\"\n href=\"javascript:;\"\n (click)=\"openEdit()\"\n ></a>\n </ng-template>\n</thy-input-group>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutofocus", "thyAutoSelect"] }, { kind: "directive", type: ThyEnterDirective, selector: "[thyEnter]", outputs: ["thyEnter"] }, { kind: "component", type: ThyInputGroup, selector: "thy-input-group", inputs: ["thyAppendText", "thyAppendTextTranslateKey", "thyPrependText", "thyPrependTextTranslateKey", "thySize"] }, { kind: "ngmodule", type: ThyTooltipModule }, { kind: "directive", type: i2$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: ThyAction, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "ngmodule", type: ThyInputModule }, { kind: "directive", type: i3.ThyInputDirective, selector: "input[thyInput], select[thyInput], textarea[thyInput]", inputs: ["thySize"], exportAs: ["thyInput"] }, { kind: "ngmodule", type: ThyFlexibleTextModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1992
1992
|
}
|
|
1993
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LinkCellEditorComponent, decorators: [{
|
|
1994
1994
|
type: Component,
|
|
1995
1995
|
args: [{ selector: 'link-cell-editor', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1996
1996
|
FormsModule,
|
|
@@ -4177,7 +4177,7 @@ const isCellMatchKeywords = (aiTable, field, recordId, keywords, references) =>
|
|
|
4177
4177
|
|
|
4178
4178
|
class AITableTextComponent {
|
|
4179
4179
|
constructor() {
|
|
4180
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
4180
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
4181
4181
|
// @Output() koClick = new EventEmitter<KoEventObject<MouseEvent>>();
|
|
4182
4182
|
this.koClick = output();
|
|
4183
4183
|
this.koMouseMove = output();
|
|
@@ -4204,7 +4204,7 @@ class AITableTextComponent {
|
|
|
4204
4204
|
...rest
|
|
4205
4205
|
};
|
|
4206
4206
|
return result;
|
|
4207
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
4207
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
4208
4208
|
}
|
|
4209
4209
|
onClick(e) {
|
|
4210
4210
|
this.koClick.emit(e);
|
|
@@ -4212,10 +4212,10 @@ class AITableTextComponent {
|
|
|
4212
4212
|
onMousemove(e) {
|
|
4213
4213
|
this.koMouseMove.emit(e);
|
|
4214
4214
|
}
|
|
4215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4216
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
4215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableTextComponent, isStandalone: true, selector: "ai-table-text", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { koClick: "koClick", koMouseMove: "koMouseMove" }, ngImport: i0, template: ` <ko-text [config]="textConfig()" (koClick)="onClick($event)" (koMousemove)="onMousemove($event)"></ko-text> `, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4217
4217
|
}
|
|
4218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableTextComponent, decorators: [{
|
|
4219
4219
|
type: Component,
|
|
4220
4220
|
args: [{
|
|
4221
4221
|
selector: 'ai-table-text',
|
|
@@ -5247,17 +5247,17 @@ const drawer = new Drawer();
|
|
|
5247
5247
|
|
|
5248
5248
|
class CoverCellBase {
|
|
5249
5249
|
constructor() {
|
|
5250
|
-
this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] :
|
|
5251
|
-
this.onlyDisplayBorder = input(false, ...(ngDevMode ? [{ debugName: "onlyDisplayBorder" }] :
|
|
5250
|
+
this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
5251
|
+
this.onlyDisplayBorder = input(false, ...(ngDevMode ? [{ debugName: "onlyDisplayBorder" }] : []));
|
|
5252
5252
|
this.isExpand = computed(() => {
|
|
5253
5253
|
const { isExpand } = this.config();
|
|
5254
5254
|
return isExpand;
|
|
5255
|
-
}, ...(ngDevMode ? [{ debugName: "isExpand" }] :
|
|
5255
|
+
}, ...(ngDevMode ? [{ debugName: "isExpand" }] : []));
|
|
5256
5256
|
}
|
|
5257
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5258
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
5257
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CoverCellBase, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5258
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: CoverCellBase, isStandalone: true, selector: "ai-table-cover-cell-base", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, onlyDisplayBorder: { classPropertyName: "onlyDisplayBorder", publicName: "onlyDisplayBorder", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5259
5259
|
}
|
|
5260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CoverCellBase, decorators: [{
|
|
5261
5261
|
type: Component,
|
|
5262
5262
|
args: [{
|
|
5263
5263
|
selector: 'ai-table-cover-cell-base',
|
|
@@ -5270,9 +5270,9 @@ class AITableCellLink extends CoverCellBase {
|
|
|
5270
5270
|
constructor() {
|
|
5271
5271
|
super(...arguments);
|
|
5272
5272
|
this.textOffset = AI_TABLE_CELL_PADDING + AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE;
|
|
5273
|
-
this.render = computed(() => this.config()?.render, ...(ngDevMode ? [{ debugName: "render" }] :
|
|
5274
|
-
this.transformValue = computed(() => this.render()?.transformValue, ...(ngDevMode ? [{ debugName: "transformValue" }] :
|
|
5275
|
-
this.showLink = computed(() => !!this.transformValue()?.text, ...(ngDevMode ? [{ debugName: "showLink" }] :
|
|
5273
|
+
this.render = computed(() => this.config()?.render, ...(ngDevMode ? [{ debugName: "render" }] : []));
|
|
5274
|
+
this.transformValue = computed(() => this.render()?.transformValue, ...(ngDevMode ? [{ debugName: "transformValue" }] : []));
|
|
5275
|
+
this.showLink = computed(() => !!this.transformValue()?.text, ...(ngDevMode ? [{ debugName: "showLink" }] : []));
|
|
5276
5276
|
this.textConfig = computed(() => {
|
|
5277
5277
|
const render = this.config()?.render;
|
|
5278
5278
|
if (render) {
|
|
@@ -5307,7 +5307,7 @@ class AITableCellLink extends CoverCellBase {
|
|
|
5307
5307
|
};
|
|
5308
5308
|
}
|
|
5309
5309
|
return;
|
|
5310
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
5310
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
5311
5311
|
}
|
|
5312
5312
|
static { this.fieldType = AITableFieldType.link; }
|
|
5313
5313
|
linkClick(e) {
|
|
@@ -5327,14 +5327,14 @@ class AITableCellLink extends CoverCellBase {
|
|
|
5327
5327
|
const curMousePosition = getMousePosition(aiTable, x, y, coordinate, AITable.getVisibleFields(aiTable), context, targetName);
|
|
5328
5328
|
handleMouseStyle(AI_TABLE_FIELD_HEAD_MORE, curMousePosition.areaType, coordinate.container);
|
|
5329
5329
|
}
|
|
5330
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5331
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellLink, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5331
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCellLink, isStandalone: true, selector: "ai-table-link", usesInheritance: true, ngImport: i0, template: `
|
|
5332
5332
|
@if (showLink()) {
|
|
5333
5333
|
<ai-table-text [config]="textConfig()!" (koClick)="linkClick($event)" (koMouseMove)="linkMouseMove($event)"></ai-table-text>
|
|
5334
5334
|
}
|
|
5335
5335
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5336
5336
|
}
|
|
5337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellLink, decorators: [{
|
|
5338
5338
|
type: Component,
|
|
5339
5339
|
args: [{
|
|
5340
5340
|
selector: 'ai-table-link',
|
|
@@ -5354,12 +5354,12 @@ class AITableActionIcon {
|
|
|
5354
5354
|
this.onMousemove = output();
|
|
5355
5355
|
this.onMouseenter = output();
|
|
5356
5356
|
this.onMouseleave = output();
|
|
5357
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
5358
|
-
this.isHover = signal(false, ...(ngDevMode ? [{ debugName: "isHover" }] :
|
|
5357
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
5358
|
+
this.isHover = signal(false, ...(ngDevMode ? [{ debugName: "isHover" }] : []));
|
|
5359
5359
|
this.groupConfig = computed(() => {
|
|
5360
5360
|
const { x, y, listening } = this.config();
|
|
5361
5361
|
return { x, y, listening };
|
|
5362
|
-
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] :
|
|
5362
|
+
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] : []));
|
|
5363
5363
|
this.squareShapeConfig = computed(() => {
|
|
5364
5364
|
const { name, backgroundWidth, backgroundHeight, hoverFill: coverFill, size = DEFAULT_ICON_SIZE, strokeWidth = 1, cornerRadius, source } = this.config();
|
|
5365
5365
|
return {
|
|
@@ -5372,7 +5372,7 @@ class AITableActionIcon {
|
|
|
5372
5372
|
cornerRadius,
|
|
5373
5373
|
source
|
|
5374
5374
|
};
|
|
5375
|
-
}, ...(ngDevMode ? [{ debugName: "squareShapeConfig" }] :
|
|
5375
|
+
}, ...(ngDevMode ? [{ debugName: "squareShapeConfig" }] : []));
|
|
5376
5376
|
this.iconGroupConfig = computed(() => {
|
|
5377
5377
|
let { backgroundWidth, backgroundHeight, size = DEFAULT_ICON_SIZE, scaleX, scaleY, offsetX, offsetY } = this.config();
|
|
5378
5378
|
return {
|
|
@@ -5383,7 +5383,7 @@ class AITableActionIcon {
|
|
|
5383
5383
|
scaleX: scaleX || size / DEFAULT_ICON_SIZE,
|
|
5384
5384
|
scaleY: scaleY || size / DEFAULT_ICON_SIZE
|
|
5385
5385
|
};
|
|
5386
|
-
}, ...(ngDevMode ? [{ debugName: "iconGroupConfig" }] :
|
|
5386
|
+
}, ...(ngDevMode ? [{ debugName: "iconGroupConfig" }] : []));
|
|
5387
5387
|
this.iconConfig = computed(() => {
|
|
5388
5388
|
let { type, data, size = DEFAULT_ICON_SIZE, stroke, strokeWidth = 1, scaleX, scaleY, offsetX, offsetY, rotation, fill, hoverFill: hoverFill, transformsEnabled = DEFAULT_TEXT_TRANSFORMS_ENABLED } = this.config();
|
|
5389
5389
|
fill = fill || Colors.gray600;
|
|
@@ -5412,7 +5412,7 @@ class AITableActionIcon {
|
|
|
5412
5412
|
perfectDrawEnabled: false,
|
|
5413
5413
|
listening: false
|
|
5414
5414
|
};
|
|
5415
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
5415
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
5416
5416
|
}
|
|
5417
5417
|
koClick(e) {
|
|
5418
5418
|
this.onClick.emit(e);
|
|
@@ -5432,8 +5432,8 @@ class AITableActionIcon {
|
|
|
5432
5432
|
const { coordinate } = this.config();
|
|
5433
5433
|
setMouseStyle('default', coordinate.container);
|
|
5434
5434
|
}
|
|
5435
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5436
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
5435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableActionIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5436
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableActionIcon, isStandalone: true, selector: "ai-table-action-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onClick: "onClick", onMousemove: "onMousemove", onMouseenter: "onMouseenter", onMouseleave: "onMouseleave" }, ngImport: i0, template: `
|
|
5437
5437
|
<ko-group
|
|
5438
5438
|
[config]="groupConfig()"
|
|
5439
5439
|
(koClick)="koClick($event)"
|
|
@@ -5448,7 +5448,7 @@ class AITableActionIcon {
|
|
|
5448
5448
|
</ko-group>
|
|
5449
5449
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5450
5450
|
}
|
|
5451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableActionIcon, decorators: [{
|
|
5452
5452
|
type: Component,
|
|
5453
5453
|
args: [{
|
|
5454
5454
|
selector: 'ai-table-action-icon',
|
|
@@ -5720,7 +5720,7 @@ class AITableCellAttachment extends CoverCellBase {
|
|
|
5720
5720
|
});
|
|
5721
5721
|
}
|
|
5722
5722
|
return [];
|
|
5723
|
-
}, ...(ngDevMode ? [{ debugName: "attachments" }] :
|
|
5723
|
+
}, ...(ngDevMode ? [{ debugName: "attachments" }] : []));
|
|
5724
5724
|
this.iconConfig = computed(() => {
|
|
5725
5725
|
const { coordinate, render, field, recordId, readonly } = this.config();
|
|
5726
5726
|
const offsetX = render.columnWidth - AI_TABLE_ACTION_COMMON_SIZE - AI_TABLE_ACTION_COMMON_RIGHT_PADDING;
|
|
@@ -5745,18 +5745,18 @@ class AITableCellAttachment extends CoverCellBase {
|
|
|
5745
5745
|
cornerRadius: AI_TABLE_ACTION_COMMON_RADIUS,
|
|
5746
5746
|
listening: true
|
|
5747
5747
|
};
|
|
5748
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
5748
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
5749
5749
|
}
|
|
5750
5750
|
static { this.fieldType = AITableFieldType.attachment; }
|
|
5751
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5752
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5751
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellAttachment, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5752
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCellAttachment, isStandalone: true, selector: "ai-table-attachments", usesInheritance: true, ngImport: i0, template: `
|
|
5753
5753
|
@for (attachment of attachments(); track attachment.attachmentInfo._id) {
|
|
5754
5754
|
<ko-image [config]="attachment"></ko-image>
|
|
5755
5755
|
}
|
|
5756
5756
|
<ai-table-action-icon [config]="iconConfig()"></ai-table-action-icon>
|
|
5757
5757
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableActionIcon, selector: "ai-table-action-icon", inputs: ["config"], outputs: ["onClick", "onMousemove", "onMouseenter", "onMouseleave"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5758
5758
|
}
|
|
5759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellAttachment, decorators: [{
|
|
5760
5760
|
type: Component,
|
|
5761
5761
|
args: [{
|
|
5762
5762
|
selector: 'ai-table-attachments',
|
|
@@ -5800,7 +5800,7 @@ class AITableCellRichText extends CoverCellBase {
|
|
|
5800
5800
|
};
|
|
5801
5801
|
}
|
|
5802
5802
|
return;
|
|
5803
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
5803
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
5804
5804
|
this.iconConfig = computed(() => {
|
|
5805
5805
|
const { coordinate, render, field, recordId, readonly } = this.config();
|
|
5806
5806
|
const offsetX = render.columnWidth - AI_TABLE_ACTION_COMMON_SIZE - AI_TABLE_ACTION_COMMON_RIGHT_PADDING;
|
|
@@ -5825,18 +5825,18 @@ class AITableCellRichText extends CoverCellBase {
|
|
|
5825
5825
|
cornerRadius: AI_TABLE_ACTION_COMMON_RADIUS,
|
|
5826
5826
|
listening: true
|
|
5827
5827
|
};
|
|
5828
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
5828
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
5829
5829
|
}
|
|
5830
5830
|
static { this.fieldType = AITableFieldType.richText; }
|
|
5831
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5832
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellRichText, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5832
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCellRichText, isStandalone: true, selector: "ai-table-rich-text", usesInheritance: true, ngImport: i0, template: `
|
|
5833
5833
|
@if (textConfig()) {
|
|
5834
5834
|
<ai-table-text [config]="textConfig()!"></ai-table-text>
|
|
5835
5835
|
}
|
|
5836
5836
|
<ai-table-action-icon [config]="iconConfig()"></ai-table-action-icon>
|
|
5837
5837
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableActionIcon, selector: "ai-table-action-icon", inputs: ["config"], outputs: ["onClick", "onMousemove", "onMouseenter", "onMouseleave"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5838
5838
|
}
|
|
5839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellRichText, decorators: [{
|
|
5840
5840
|
type: Component,
|
|
5841
5841
|
args: [{
|
|
5842
5842
|
selector: 'ai-table-rich-text',
|
|
@@ -7318,12 +7318,12 @@ const isHoverRecord = (isHover, targetName) => {
|
|
|
7318
7318
|
|
|
7319
7319
|
class AITableIcon {
|
|
7320
7320
|
constructor() {
|
|
7321
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7321
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7322
7322
|
this.koClick = output();
|
|
7323
7323
|
this.groupConfig = computed(() => {
|
|
7324
7324
|
const { x, y, listening } = this.config();
|
|
7325
7325
|
return { x, y, listening };
|
|
7326
|
-
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] :
|
|
7326
|
+
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] : []));
|
|
7327
7327
|
this.squareShapeConfig = computed(() => {
|
|
7328
7328
|
const { name, backgroundWidth, backgroundHeight, size = DEFAULT_ICON_SIZE, strokeWidth = 1, background, cornerRadius, opacity } = this.config();
|
|
7329
7329
|
return {
|
|
@@ -7335,7 +7335,7 @@ class AITableIcon {
|
|
|
7335
7335
|
cornerRadius,
|
|
7336
7336
|
opacity
|
|
7337
7337
|
};
|
|
7338
|
-
}, ...(ngDevMode ? [{ debugName: "squareShapeConfig" }] :
|
|
7338
|
+
}, ...(ngDevMode ? [{ debugName: "squareShapeConfig" }] : []));
|
|
7339
7339
|
this.iconConfig = computed(() => {
|
|
7340
7340
|
const { type, data, backgroundWidth, backgroundHeight, size = DEFAULT_ICON_SIZE, stroke, strokeWidth = 1, scaleX, scaleY, offsetX, offsetY, rotation, fill = Colors.gray600, transformsEnabled = DEFAULT_TEXT_TRANSFORMS_ENABLED, disabled } = this.config();
|
|
7341
7341
|
let pathData = data;
|
|
@@ -7368,17 +7368,17 @@ class AITableIcon {
|
|
|
7368
7368
|
perfectDrawEnabled: false,
|
|
7369
7369
|
listening: false
|
|
7370
7370
|
};
|
|
7371
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
7371
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
7372
7372
|
}
|
|
7373
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7374
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
7373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7374
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableIcon, isStandalone: true, selector: "ai-table-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { koClick: "koClick" }, ngImport: i0, template: `
|
|
7375
7375
|
<ko-group [config]="groupConfig()" (koClick)="koClick.emit($event)">
|
|
7376
7376
|
<ko-rect [config]="squareShapeConfig()"></ko-rect>
|
|
7377
7377
|
<ko-path [config]="iconConfig()"></ko-path>
|
|
7378
7378
|
</ko-group>
|
|
7379
7379
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7380
7380
|
}
|
|
7381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableIcon, decorators: [{
|
|
7382
7382
|
type: Component,
|
|
7383
7383
|
args: [{
|
|
7384
7384
|
selector: 'ai-table-icon',
|
|
@@ -7395,13 +7395,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
7395
7395
|
|
|
7396
7396
|
class AITableAddField {
|
|
7397
7397
|
constructor() {
|
|
7398
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7398
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7399
7399
|
this.btnWidth = AI_TABLE_FIELD_ADD_BUTTON_WIDTH;
|
|
7400
7400
|
this.x = computed(() => {
|
|
7401
7401
|
const lastColumnWidth = this.config().coordinate.getColumnWidth(this.config().columnStopIndex);
|
|
7402
7402
|
const lastColumnOffset = this.config().coordinate.getColumnOffset(this.config().columnStopIndex);
|
|
7403
7403
|
return lastColumnWidth + lastColumnOffset;
|
|
7404
|
-
}, ...(ngDevMode ? [{ debugName: "x" }] :
|
|
7404
|
+
}, ...(ngDevMode ? [{ debugName: "x" }] : []));
|
|
7405
7405
|
this.rectConfig = computed(() => {
|
|
7406
7406
|
const { pointPosition: { targetName }, readonly, maxFields, aiTable } = this.config();
|
|
7407
7407
|
const fill = targetName === AI_TABLE_FIELD_ADD_BUTTON ? Colors.gray80 : Colors.white;
|
|
@@ -7426,7 +7426,7 @@ class AITableAddField {
|
|
|
7426
7426
|
listening: true,
|
|
7427
7427
|
fill
|
|
7428
7428
|
};
|
|
7429
|
-
}, ...(ngDevMode ? [{ debugName: "rectConfig" }] :
|
|
7429
|
+
}, ...(ngDevMode ? [{ debugName: "rectConfig" }] : []));
|
|
7430
7430
|
this.addIconConfig = computed(() => {
|
|
7431
7431
|
const { readonly, maxFields, aiTable } = this.config();
|
|
7432
7432
|
const offsetY = (AI_TABLE_FIELD_HEAD_HEIGHT - AI_TABLE_ICON_COMMON_SIZE) / 2;
|
|
@@ -7439,10 +7439,10 @@ class AITableAddField {
|
|
|
7439
7439
|
visible: !readonly,
|
|
7440
7440
|
disabled: maxFields ? aiTable.fields().length >= maxFields : false
|
|
7441
7441
|
};
|
|
7442
|
-
}, ...(ngDevMode ? [{ debugName: "addIconConfig" }] :
|
|
7442
|
+
}, ...(ngDevMode ? [{ debugName: "addIconConfig" }] : []));
|
|
7443
7443
|
}
|
|
7444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7445
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
7444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableAddField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7445
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableAddField, isStandalone: true, selector: "ai-table-add-field", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
7446
7446
|
<ko-group [config]="{ x: x() }">
|
|
7447
7447
|
<ko-group>
|
|
7448
7448
|
<ko-rect [config]="rectConfig()"></ko-rect>
|
|
@@ -7455,7 +7455,7 @@ class AITableAddField {
|
|
|
7455
7455
|
</ko-group>
|
|
7456
7456
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7457
7457
|
}
|
|
7458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableAddField, decorators: [{
|
|
7459
7459
|
type: Component,
|
|
7460
7460
|
args: [{
|
|
7461
7461
|
selector: 'ai-table-add-field',
|
|
@@ -7478,7 +7478,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
7478
7478
|
|
|
7479
7479
|
class AITableCells {
|
|
7480
7480
|
constructor() {
|
|
7481
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7481
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7482
7482
|
this.cellsShapeConfig = computed(() => {
|
|
7483
7483
|
const { coordinate, columnStartIndex } = this.config();
|
|
7484
7484
|
const { frozenColumnCount } = coordinate;
|
|
@@ -7491,12 +7491,12 @@ class AITableCells {
|
|
|
7491
7491
|
columnStartIndex: Math.max(columnStartIndex, frozenColumnCount)
|
|
7492
7492
|
})
|
|
7493
7493
|
};
|
|
7494
|
-
}, ...(ngDevMode ? [{ debugName: "cellsShapeConfig" }] :
|
|
7494
|
+
}, ...(ngDevMode ? [{ debugName: "cellsShapeConfig" }] : []));
|
|
7495
7495
|
}
|
|
7496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7497
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
7496
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCells, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7497
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableCells, isStandalone: true, selector: "ai-table-cells", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: ` <ko-shape [config]="cellsShapeConfig()"></ko-shape> `, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7498
7498
|
}
|
|
7499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCells, decorators: [{
|
|
7500
7500
|
type: Component,
|
|
7501
7501
|
args: [{
|
|
7502
7502
|
selector: 'ai-table-cells',
|
|
@@ -7508,7 +7508,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
7508
7508
|
|
|
7509
7509
|
class AITableFieldIcon {
|
|
7510
7510
|
constructor() {
|
|
7511
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7511
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7512
7512
|
this.iconConfig = computed(() => {
|
|
7513
7513
|
const { field, x, y, width, height, fill, path } = this.config();
|
|
7514
7514
|
const data = getFieldIconPath(field) || path;
|
|
@@ -7521,12 +7521,12 @@ class AITableFieldIcon {
|
|
|
7521
7521
|
data,
|
|
7522
7522
|
fill
|
|
7523
7523
|
};
|
|
7524
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
7524
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
7525
7525
|
}
|
|
7526
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7527
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
7526
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7527
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableFieldIcon, isStandalone: true, selector: "ai-table-field-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: ` <ai-table-icon [config]="iconConfig()"></ai-table-icon> `, isInline: true, dependencies: [{ kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7528
7528
|
}
|
|
7529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldIcon, decorators: [{
|
|
7530
7530
|
type: Component,
|
|
7531
7531
|
args: [{
|
|
7532
7532
|
selector: 'ai-table-field-icon',
|
|
@@ -7538,7 +7538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
7538
7538
|
|
|
7539
7539
|
class AITableFieldHead {
|
|
7540
7540
|
constructor() {
|
|
7541
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7541
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7542
7542
|
this.textOffset = AI_TABLE_CELL_PADDING + AI_TABLE_ICON_COMMON_SIZE + AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE;
|
|
7543
7543
|
this.textMeasure = TextMeasure();
|
|
7544
7544
|
this.availableTextWidth = computed(() => {
|
|
@@ -7547,7 +7547,7 @@ class AITableFieldHead {
|
|
|
7547
7547
|
(iconVisible
|
|
7548
7548
|
? 2 * (AI_TABLE_CELL_PADDING + AI_TABLE_ICON_COMMON_SIZE + AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE)
|
|
7549
7549
|
: 2 * AI_TABLE_CELL_PADDING + AI_TABLE_ICON_COMMON_SIZE + AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE));
|
|
7550
|
-
}, ...(ngDevMode ? [{ debugName: "availableTextWidth" }] :
|
|
7550
|
+
}, ...(ngDevMode ? [{ debugName: "availableTextWidth" }] : []));
|
|
7551
7551
|
this.textData = computed(() => {
|
|
7552
7552
|
const fieldName = this.config().field.name.replace(/\r|\n/g, ' ');
|
|
7553
7553
|
this.textMeasure.setFont({ fontSize: DEFAULT_FONT_SIZE });
|
|
@@ -7557,13 +7557,13 @@ class AITableFieldHead {
|
|
|
7557
7557
|
height,
|
|
7558
7558
|
isOverflow
|
|
7559
7559
|
};
|
|
7560
|
-
}, ...(ngDevMode ? [{ debugName: "textData" }] :
|
|
7560
|
+
}, ...(ngDevMode ? [{ debugName: "textData" }] : []));
|
|
7561
7561
|
this.groupConfig = computed(() => {
|
|
7562
7562
|
return {
|
|
7563
7563
|
x: this.config().x,
|
|
7564
7564
|
y: this.config().y
|
|
7565
7565
|
};
|
|
7566
|
-
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] :
|
|
7566
|
+
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] : []));
|
|
7567
7567
|
this.bgConfig = computed(() => {
|
|
7568
7568
|
const { field, width, height, stroke, isSelected, iconVisible, isFirstHead, showExpandIcon } = this.config();
|
|
7569
7569
|
const shouldExtendLeft = isFirstHead && showExpandIcon && !isSelected;
|
|
@@ -7583,7 +7583,7 @@ class AITableFieldHead {
|
|
|
7583
7583
|
strokeWidth: 1,
|
|
7584
7584
|
opacity: 1
|
|
7585
7585
|
};
|
|
7586
|
-
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] :
|
|
7586
|
+
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] : []));
|
|
7587
7587
|
this.fieldIconConfig = computed(() => {
|
|
7588
7588
|
const { field, height } = this.config();
|
|
7589
7589
|
return {
|
|
@@ -7595,7 +7595,7 @@ class AITableFieldHead {
|
|
|
7595
7595
|
fill: Colors.gray600,
|
|
7596
7596
|
path: IconPathMap[field.icon]
|
|
7597
7597
|
};
|
|
7598
|
-
}, ...(ngDevMode ? [{ debugName: "fieldIconConfig" }] :
|
|
7598
|
+
}, ...(ngDevMode ? [{ debugName: "fieldIconConfig" }] : []));
|
|
7599
7599
|
this.textConfig = computed(() => {
|
|
7600
7600
|
const { field, height } = this.config();
|
|
7601
7601
|
return {
|
|
@@ -7606,7 +7606,7 @@ class AITableFieldHead {
|
|
|
7606
7606
|
text: field.name,
|
|
7607
7607
|
lineHeight: AI_TABLE_TEXT_LINE_HEIGHT
|
|
7608
7608
|
};
|
|
7609
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
7609
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
7610
7610
|
this.moreIconConfig = computed(() => {
|
|
7611
7611
|
const { field, width, height, isHoverIcon, isSelected } = this.config();
|
|
7612
7612
|
const commonIconOffsetY = (height - AI_TABLE_ACTION_COMMON_SIZE) / 2;
|
|
@@ -7624,7 +7624,7 @@ class AITableFieldHead {
|
|
|
7624
7624
|
backgroundHeight: AI_TABLE_ACTION_COMMON_SIZE,
|
|
7625
7625
|
cornerRadius: 4
|
|
7626
7626
|
};
|
|
7627
|
-
}, ...(ngDevMode ? [{ debugName: "moreIconConfig" }] :
|
|
7627
|
+
}, ...(ngDevMode ? [{ debugName: "moreIconConfig" }] : []));
|
|
7628
7628
|
this.fieldOpacityLineConfig = computed(() => {
|
|
7629
7629
|
const { field, width, height } = this.config();
|
|
7630
7630
|
return {
|
|
@@ -7638,10 +7638,10 @@ class AITableFieldHead {
|
|
|
7638
7638
|
stroke: Colors.transparent,
|
|
7639
7639
|
strokeWidth: 6
|
|
7640
7640
|
};
|
|
7641
|
-
}, ...(ngDevMode ? [{ debugName: "fieldOpacityLineConfig" }] :
|
|
7641
|
+
}, ...(ngDevMode ? [{ debugName: "fieldOpacityLineConfig" }] : []));
|
|
7642
7642
|
}
|
|
7643
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7644
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
7643
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldHead, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7644
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFieldHead, isStandalone: true, selector: "ai-table-field-head", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
7645
7645
|
<ko-group [config]="groupConfig()">
|
|
7646
7646
|
<ko-rect [config]="bgConfig()"></ko-rect>
|
|
7647
7647
|
<ko-group>
|
|
@@ -7655,7 +7655,7 @@ class AITableFieldHead {
|
|
|
7655
7655
|
</ko-group>
|
|
7656
7656
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableFieldIcon, selector: "ai-table-field-icon", inputs: ["config"] }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7657
7657
|
}
|
|
7658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldHead, decorators: [{
|
|
7659
7659
|
type: Component,
|
|
7660
7660
|
args: [{
|
|
7661
7661
|
selector: 'ai-table-field-head',
|
|
@@ -7679,7 +7679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
7679
7679
|
|
|
7680
7680
|
class AITableFrozenCells {
|
|
7681
7681
|
constructor() {
|
|
7682
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7682
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7683
7683
|
this.frozenCellsConfig = computed(() => {
|
|
7684
7684
|
const { coordinate } = this.config();
|
|
7685
7685
|
const { frozenColumnCount } = coordinate;
|
|
@@ -7693,12 +7693,12 @@ class AITableFrozenCells {
|
|
|
7693
7693
|
columnStopIndex: frozenColumnCount - 1
|
|
7694
7694
|
})
|
|
7695
7695
|
};
|
|
7696
|
-
}, ...(ngDevMode ? [{ debugName: "frozenCellsConfig" }] :
|
|
7696
|
+
}, ...(ngDevMode ? [{ debugName: "frozenCellsConfig" }] : []));
|
|
7697
7697
|
}
|
|
7698
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7699
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
7698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenCells, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7699
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableFrozenCells, isStandalone: true, selector: "ai-table-frozen-cells", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `<ko-shape [config]="frozenCellsConfig()"></ko-shape>`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7700
7700
|
}
|
|
7701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenCells, decorators: [{
|
|
7702
7702
|
type: Component,
|
|
7703
7703
|
args: [{
|
|
7704
7704
|
selector: 'ai-table-frozen-cells',
|
|
@@ -7762,31 +7762,31 @@ const createColumnHeads = (config) => {
|
|
|
7762
7762
|
|
|
7763
7763
|
class AITableFrozenColumnHeads {
|
|
7764
7764
|
constructor() {
|
|
7765
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
7765
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
7766
7766
|
this.textMeasure = TextMeasure();
|
|
7767
|
-
this.emptyRecordsSelectAllStatus = signal(AITableSelectAllState.none, ...(ngDevMode ? [{ debugName: "emptyRecordsSelectAllStatus" }] :
|
|
7767
|
+
this.emptyRecordsSelectAllStatus = signal(AITableSelectAllState.none, ...(ngDevMode ? [{ debugName: "emptyRecordsSelectAllStatus" }] : []));
|
|
7768
7768
|
this.coordinate = computed(() => {
|
|
7769
7769
|
const config = this.config();
|
|
7770
7770
|
if (!config)
|
|
7771
7771
|
return null;
|
|
7772
7772
|
return config.coordinate;
|
|
7773
|
-
}, ...(ngDevMode ? [{ debugName: "coordinate" }] :
|
|
7773
|
+
}, ...(ngDevMode ? [{ debugName: "coordinate" }] : []));
|
|
7774
7774
|
this.hiddenIndexColumn = computed(() => {
|
|
7775
7775
|
const context = this.context();
|
|
7776
7776
|
if (!context)
|
|
7777
7777
|
return false;
|
|
7778
7778
|
return context?.aiFieldConfig()?.hiddenIndexColumn;
|
|
7779
|
-
}, ...(ngDevMode ? [{ debugName: "hiddenIndexColumn" }] :
|
|
7779
|
+
}, ...(ngDevMode ? [{ debugName: "hiddenIndexColumn" }] : []));
|
|
7780
7780
|
this.context = computed(() => {
|
|
7781
7781
|
const config = this.config();
|
|
7782
7782
|
if (!config)
|
|
7783
7783
|
return null;
|
|
7784
7784
|
return config?.aiTable.context;
|
|
7785
|
-
}, ...(ngDevMode ? [{ debugName: "context" }] :
|
|
7785
|
+
}, ...(ngDevMode ? [{ debugName: "context" }] : []));
|
|
7786
7786
|
this.readonly = computed(() => {
|
|
7787
7787
|
const context = this.context();
|
|
7788
7788
|
return !!context?.readonly?.();
|
|
7789
|
-
}, ...(ngDevMode ? [{ debugName: "readonly" }] :
|
|
7789
|
+
}, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
7790
7790
|
this.isChecked = computed(() => {
|
|
7791
7791
|
const config = this.config();
|
|
7792
7792
|
if (!config) {
|
|
@@ -7802,14 +7802,14 @@ class AITableFrozenColumnHeads {
|
|
|
7802
7802
|
? AITableSelectAllState.none
|
|
7803
7803
|
: AITableSelectAllState.partial;
|
|
7804
7804
|
return selectedAllState === AITableSelectAllState.all;
|
|
7805
|
-
}, ...(ngDevMode ? [{ debugName: "isChecked" }] :
|
|
7805
|
+
}, ...(ngDevMode ? [{ debugName: "isChecked" }] : []));
|
|
7806
7806
|
this.fieldHeadHeight = computed(() => {
|
|
7807
7807
|
const coord = this.coordinate();
|
|
7808
7808
|
if (!coord)
|
|
7809
7809
|
return 0;
|
|
7810
7810
|
// return coord.rowInitSize;
|
|
7811
7811
|
return AI_TABLE_FIELD_HEAD_HEIGHT;
|
|
7812
|
-
}, ...(ngDevMode ? [{ debugName: "fieldHeadHeight" }] :
|
|
7812
|
+
}, ...(ngDevMode ? [{ debugName: "fieldHeadHeight" }] : []));
|
|
7813
7813
|
this.headConfigs = computed(() => {
|
|
7814
7814
|
const coord = this.coordinate();
|
|
7815
7815
|
if (!coord)
|
|
@@ -7819,7 +7819,7 @@ class AITableFrozenColumnHeads {
|
|
|
7819
7819
|
columnStartIndex: 0,
|
|
7820
7820
|
columnStopIndex: coord.frozenColumnCount - 1
|
|
7821
7821
|
});
|
|
7822
|
-
}, ...(ngDevMode ? [{ debugName: "headConfigs" }] :
|
|
7822
|
+
}, ...(ngDevMode ? [{ debugName: "headConfigs" }] : []));
|
|
7823
7823
|
this.dragHeadBgConfig = computed(() => {
|
|
7824
7824
|
return {
|
|
7825
7825
|
x: AI_TABLE_OFFSET,
|
|
@@ -7829,7 +7829,7 @@ class AITableFrozenColumnHeads {
|
|
|
7829
7829
|
fill: Colors.white,
|
|
7830
7830
|
listening: false
|
|
7831
7831
|
};
|
|
7832
|
-
}, ...(ngDevMode ? [{ debugName: "dragHeadBgConfig" }] :
|
|
7832
|
+
}, ...(ngDevMode ? [{ debugName: "dragHeadBgConfig" }] : []));
|
|
7833
7833
|
this.numberHeadBgConfig = computed(() => {
|
|
7834
7834
|
const ctx = this.context();
|
|
7835
7835
|
if (!ctx)
|
|
@@ -7842,7 +7842,7 @@ class AITableFrozenColumnHeads {
|
|
|
7842
7842
|
fill: Colors.white,
|
|
7843
7843
|
listening: false
|
|
7844
7844
|
};
|
|
7845
|
-
}, ...(ngDevMode ? [{ debugName: "numberHeadBgConfig" }] :
|
|
7845
|
+
}, ...(ngDevMode ? [{ debugName: "numberHeadBgConfig" }] : []));
|
|
7846
7846
|
this.topLineConfig = computed(() => {
|
|
7847
7847
|
const ctx = this.context();
|
|
7848
7848
|
if (!ctx)
|
|
@@ -7855,7 +7855,7 @@ class AITableFrozenColumnHeads {
|
|
|
7855
7855
|
strokeWidth: 1,
|
|
7856
7856
|
listening: false
|
|
7857
7857
|
};
|
|
7858
|
-
}, ...(ngDevMode ? [{ debugName: "topLineConfig" }] :
|
|
7858
|
+
}, ...(ngDevMode ? [{ debugName: "topLineConfig" }] : []));
|
|
7859
7859
|
this.bottomLineConfig = computed(() => {
|
|
7860
7860
|
const ctx = this.context();
|
|
7861
7861
|
if (!ctx)
|
|
@@ -7868,7 +7868,7 @@ class AITableFrozenColumnHeads {
|
|
|
7868
7868
|
strokeWidth: 1,
|
|
7869
7869
|
listening: false
|
|
7870
7870
|
};
|
|
7871
|
-
}, ...(ngDevMode ? [{ debugName: "bottomLineConfig" }] :
|
|
7871
|
+
}, ...(ngDevMode ? [{ debugName: "bottomLineConfig" }] : []));
|
|
7872
7872
|
this.iconConfig = computed(() => {
|
|
7873
7873
|
return {
|
|
7874
7874
|
name: AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX,
|
|
@@ -7879,7 +7879,7 @@ class AITableFrozenColumnHeads {
|
|
|
7879
7879
|
? Colors.primary
|
|
7880
7880
|
: Colors.gray300
|
|
7881
7881
|
};
|
|
7882
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
7882
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
7883
7883
|
this.textConfig = computed(() => {
|
|
7884
7884
|
const text = AI_TABLE_INDEX_FIELD_TEXT;
|
|
7885
7885
|
const lineHeight = AI_TABLE_TEXT_LINE_HEIGHT;
|
|
@@ -7892,7 +7892,7 @@ class AITableFrozenColumnHeads {
|
|
|
7892
7892
|
text,
|
|
7893
7893
|
lineHeight
|
|
7894
7894
|
};
|
|
7895
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
7895
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
7896
7896
|
this.headBgConfig = computed(() => {
|
|
7897
7897
|
const coord = this.coordinate();
|
|
7898
7898
|
const ctx = this.context();
|
|
@@ -7909,7 +7909,7 @@ class AITableFrozenColumnHeads {
|
|
|
7909
7909
|
listening: false,
|
|
7910
7910
|
zIndex: 10
|
|
7911
7911
|
};
|
|
7912
|
-
}, ...(ngDevMode ? [{ debugName: "headBgConfig" }] :
|
|
7912
|
+
}, ...(ngDevMode ? [{ debugName: "headBgConfig" }] : []));
|
|
7913
7913
|
this.cellLinesConfig = computed(() => {
|
|
7914
7914
|
const coord = this.coordinate();
|
|
7915
7915
|
const ctx = this.context();
|
|
@@ -7971,15 +7971,15 @@ class AITableFrozenColumnHeads {
|
|
|
7971
7971
|
});
|
|
7972
7972
|
}
|
|
7973
7973
|
return lines;
|
|
7974
|
-
}, ...(ngDevMode ? [{ debugName: "cellLinesConfig" }] :
|
|
7974
|
+
}, ...(ngDevMode ? [{ debugName: "cellLinesConfig" }] : []));
|
|
7975
7975
|
}
|
|
7976
7976
|
selectAllClick(e) {
|
|
7977
7977
|
if (this.config()?.aiTable?.records().length === 0) {
|
|
7978
7978
|
this.emptyRecordsSelectAllStatus.set(this.emptyRecordsSelectAllStatus() === AITableSelectAllState.all ? AITableSelectAllState.none : AITableSelectAllState.all);
|
|
7979
7979
|
}
|
|
7980
7980
|
}
|
|
7981
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7982
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
7981
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenColumnHeads, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7982
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFrozenColumnHeads, isStandalone: true, selector: "ai-table-frozen-column-heads", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
7983
7983
|
@if (!hiddenIndexColumn()) {
|
|
7984
7984
|
<ko-group>
|
|
7985
7985
|
@if (!readonly()) {
|
|
@@ -7998,7 +7998,7 @@ class AITableFrozenColumnHeads {
|
|
|
7998
7998
|
}
|
|
7999
7999
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableFieldHead, selector: "ai-table-field-head", inputs: ["config"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8000
8000
|
}
|
|
8001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenColumnHeads, decorators: [{
|
|
8002
8002
|
type: Component,
|
|
8003
8003
|
args: [{
|
|
8004
8004
|
selector: 'ai-table-frozen-column-heads',
|
|
@@ -8027,7 +8027,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8027
8027
|
|
|
8028
8028
|
class AITableFrozenPlaceholderCells {
|
|
8029
8029
|
constructor() {
|
|
8030
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8030
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8031
8031
|
this.frozenPlaceHolderCellsConfig = computed(() => {
|
|
8032
8032
|
const { coordinate } = this.config();
|
|
8033
8033
|
return getPlaceHolderCellsConfigs({
|
|
@@ -8035,16 +8035,16 @@ class AITableFrozenPlaceholderCells {
|
|
|
8035
8035
|
columnStartIndex: 0,
|
|
8036
8036
|
columnStopIndex: coordinate.frozenColumnCount - 1
|
|
8037
8037
|
});
|
|
8038
|
-
}, ...(ngDevMode ? [{ debugName: "frozenPlaceHolderCellsConfig" }] :
|
|
8038
|
+
}, ...(ngDevMode ? [{ debugName: "frozenPlaceHolderCellsConfig" }] : []));
|
|
8039
8039
|
}
|
|
8040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8041
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8040
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenPlaceholderCells, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8041
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFrozenPlaceholderCells, isStandalone: true, selector: "ai-table-frozen-placeholder-cells", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
8042
8042
|
@for (item of frozenPlaceHolderCellsConfig(); track $index) {
|
|
8043
8043
|
<ko-rect [config]="item"></ko-rect>
|
|
8044
8044
|
}
|
|
8045
8045
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8046
8046
|
}
|
|
8047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenPlaceholderCells, decorators: [{
|
|
8048
8048
|
type: Component,
|
|
8049
8049
|
args: [{
|
|
8050
8050
|
selector: 'ai-table-frozen-placeholder-cells',
|
|
@@ -8060,7 +8060,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8060
8060
|
|
|
8061
8061
|
class AITableColumnHeads {
|
|
8062
8062
|
constructor() {
|
|
8063
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8063
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8064
8064
|
this.headConfigs = computed(() => {
|
|
8065
8065
|
const { coordinate, columnStartIndex } = this.config();
|
|
8066
8066
|
const { frozenColumnCount } = coordinate;
|
|
@@ -8068,16 +8068,16 @@ class AITableColumnHeads {
|
|
|
8068
8068
|
...this.config(),
|
|
8069
8069
|
columnStartIndex: Math.max(columnStartIndex, frozenColumnCount)
|
|
8070
8070
|
});
|
|
8071
|
-
}, ...(ngDevMode ? [{ debugName: "headConfigs" }] :
|
|
8071
|
+
}, ...(ngDevMode ? [{ debugName: "headConfigs" }] : []));
|
|
8072
8072
|
}
|
|
8073
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8074
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8073
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableColumnHeads, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8074
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableColumnHeads, isStandalone: true, selector: "ai-table-column-heads", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
8075
8075
|
@for (config of headConfigs(); track $index) {
|
|
8076
8076
|
<ai-table-field-head [config]="config"></ai-table-field-head>
|
|
8077
8077
|
}
|
|
8078
8078
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableFieldHead, selector: "ai-table-field-head", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8079
8079
|
}
|
|
8080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableColumnHeads, decorators: [{
|
|
8081
8081
|
type: Component,
|
|
8082
8082
|
args: [{
|
|
8083
8083
|
selector: 'ai-table-column-heads',
|
|
@@ -8093,19 +8093,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8093
8093
|
|
|
8094
8094
|
class AITableHoverRowHeads {
|
|
8095
8095
|
constructor() {
|
|
8096
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8096
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8097
8097
|
this.pointPosition = computed(() => {
|
|
8098
8098
|
return this.config().aiTable.context.pointPosition();
|
|
8099
|
-
}, ...(ngDevMode ? [{ debugName: "pointPosition" }] :
|
|
8099
|
+
}, ...(ngDevMode ? [{ debugName: "pointPosition" }] : []));
|
|
8100
8100
|
this.headConfigs = computed(() => {
|
|
8101
8101
|
return this.createHoverRowHeads(this.pointPosition());
|
|
8102
|
-
}, ...(ngDevMode ? [{ debugName: "headConfigs" }] :
|
|
8102
|
+
}, ...(ngDevMode ? [{ debugName: "headConfigs" }] : []));
|
|
8103
8103
|
this.readonly = computed(() => {
|
|
8104
8104
|
return this.config().readonly;
|
|
8105
|
-
}, ...(ngDevMode ? [{ debugName: "readonly" }] :
|
|
8105
|
+
}, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
8106
8106
|
this.hiddenRowDrag = computed(() => {
|
|
8107
8107
|
return this.config()?.aiTable.context?.aiFieldConfig()?.hiddenRowDrag;
|
|
8108
|
-
}, ...(ngDevMode ? [{ debugName: "hiddenRowDrag" }] :
|
|
8108
|
+
}, ...(ngDevMode ? [{ debugName: "hiddenRowDrag" }] : []));
|
|
8109
8109
|
this.createHoverRowHeads = (pointPosition) => {
|
|
8110
8110
|
const { coordinate, rowStartIndex, rowStopIndex, aiTable } = this.config();
|
|
8111
8111
|
const context = aiTable.context;
|
|
@@ -8175,8 +8175,8 @@ class AITableHoverRowHeads {
|
|
|
8175
8175
|
return headConfigs;
|
|
8176
8176
|
};
|
|
8177
8177
|
}
|
|
8178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8179
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableHoverRowHeads, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableHoverRowHeads, isStandalone: true, selector: "ai-table-hover-row-heads", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
8180
8180
|
@for (config of headConfigs(); track config.recordId) {
|
|
8181
8181
|
<ko-group [config]="{ x: 0, y: config.y, name: 'hover-heads' }">
|
|
8182
8182
|
@if (config.bgConfig) {
|
|
@@ -8192,7 +8192,7 @@ class AITableHoverRowHeads {
|
|
|
8192
8192
|
}
|
|
8193
8193
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8194
8194
|
}
|
|
8195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableHoverRowHeads, decorators: [{
|
|
8196
8196
|
type: Component,
|
|
8197
8197
|
args: [{
|
|
8198
8198
|
selector: 'ai-table-hover-row-heads',
|
|
@@ -8218,11 +8218,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8218
8218
|
|
|
8219
8219
|
class AITableOtherRows {
|
|
8220
8220
|
constructor() {
|
|
8221
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8221
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8222
8222
|
this.AITableRowType = AITableRowType;
|
|
8223
8223
|
this.otherConfigs = computed(() => {
|
|
8224
8224
|
return this.createOtherRows(this.config());
|
|
8225
|
-
}, ...(ngDevMode ? [{ debugName: "otherConfigs" }] :
|
|
8225
|
+
}, ...(ngDevMode ? [{ debugName: "otherConfigs" }] : []));
|
|
8226
8226
|
this.createOtherRows = (config) => {
|
|
8227
8227
|
const { coordinate, rowStartIndex, rowStopIndex, aiTable, maxRecords } = config;
|
|
8228
8228
|
const otherRowConfigs = [];
|
|
@@ -8255,8 +8255,8 @@ class AITableOtherRows {
|
|
|
8255
8255
|
return otherRowConfigs;
|
|
8256
8256
|
};
|
|
8257
8257
|
}
|
|
8258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8259
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableOtherRows, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8259
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableOtherRows, isStandalone: true, selector: "ai-table-other-rows", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
8260
8260
|
@for (config of otherConfigs(); track $index) {
|
|
8261
8261
|
@switch (config.type) {
|
|
8262
8262
|
@case (AITableRowType.add) {
|
|
@@ -8266,7 +8266,7 @@ class AITableOtherRows {
|
|
|
8266
8266
|
}
|
|
8267
8267
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8268
8268
|
}
|
|
8269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableOtherRows, decorators: [{
|
|
8270
8270
|
type: Component,
|
|
8271
8271
|
args: [{
|
|
8272
8272
|
selector: 'ai-table-other-rows',
|
|
@@ -8286,19 +8286,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8286
8286
|
|
|
8287
8287
|
class AITablePlaceholderCells {
|
|
8288
8288
|
constructor() {
|
|
8289
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8289
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8290
8290
|
this.frozenPlaceHolderCellsConfig = computed(() => {
|
|
8291
8291
|
return getPlaceHolderCellsConfigs(this.config());
|
|
8292
|
-
}, ...(ngDevMode ? [{ debugName: "frozenPlaceHolderCellsConfig" }] :
|
|
8292
|
+
}, ...(ngDevMode ? [{ debugName: "frozenPlaceHolderCellsConfig" }] : []));
|
|
8293
8293
|
}
|
|
8294
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8295
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITablePlaceholderCells, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8295
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITablePlaceholderCells, isStandalone: true, selector: "ai-table-placeholder-cells", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
8296
8296
|
@for (item of frozenPlaceHolderCellsConfig(); track $index) {
|
|
8297
8297
|
<ko-rect [config]="item"></ko-rect>
|
|
8298
8298
|
}
|
|
8299
8299
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8300
8300
|
}
|
|
8301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITablePlaceholderCells, decorators: [{
|
|
8302
8302
|
type: Component,
|
|
8303
8303
|
args: [{
|
|
8304
8304
|
selector: 'ai-table-placeholder-cells',
|
|
@@ -8314,7 +8314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8314
8314
|
|
|
8315
8315
|
class AITableExpandRecord {
|
|
8316
8316
|
constructor() {
|
|
8317
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8317
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8318
8318
|
this.backgroundConfig = computed(() => {
|
|
8319
8319
|
const { coordinate, aiTable } = this.config();
|
|
8320
8320
|
const context = aiTable.context;
|
|
@@ -8340,7 +8340,7 @@ class AITableExpandRecord {
|
|
|
8340
8340
|
hoverFill: Colors.transparent,
|
|
8341
8341
|
listening: true
|
|
8342
8342
|
};
|
|
8343
|
-
}, ...(ngDevMode ? [{ debugName: "backgroundConfig" }] :
|
|
8343
|
+
}, ...(ngDevMode ? [{ debugName: "backgroundConfig" }] : []));
|
|
8344
8344
|
this.shouldShowIcon = computed(() => {
|
|
8345
8345
|
const { aiTable, rowStartIndex, rowStopIndex } = this.config();
|
|
8346
8346
|
const context = aiTable.context;
|
|
@@ -8351,7 +8351,7 @@ class AITableExpandRecord {
|
|
|
8351
8351
|
const { rowIndex: pointRowIndex } = context.pointPosition();
|
|
8352
8352
|
const row = context.linearRows()[pointRowIndex];
|
|
8353
8353
|
return pointRowIndex >= rowStartIndex && pointRowIndex <= rowStopIndex && row && row.type === AITableRowType.record;
|
|
8354
|
-
}, ...(ngDevMode ? [{ debugName: "shouldShowIcon" }] :
|
|
8354
|
+
}, ...(ngDevMode ? [{ debugName: "shouldShowIcon" }] : []));
|
|
8355
8355
|
this.expandIconConfig = computed(() => {
|
|
8356
8356
|
const { coordinate, aiTable } = this.config();
|
|
8357
8357
|
const context = aiTable.context;
|
|
@@ -8377,10 +8377,10 @@ class AITableExpandRecord {
|
|
|
8377
8377
|
cornerRadius: AI_TABLE_ACTION_COMMON_RADIUS,
|
|
8378
8378
|
listening: true
|
|
8379
8379
|
};
|
|
8380
|
-
}, ...(ngDevMode ? [{ debugName: "expandIconConfig" }] :
|
|
8380
|
+
}, ...(ngDevMode ? [{ debugName: "expandIconConfig" }] : []));
|
|
8381
8381
|
}
|
|
8382
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8383
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8382
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableExpandRecord, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8383
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableExpandRecord, isStandalone: true, selector: "ai-table-expand-record", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
8384
8384
|
<ko-group>
|
|
8385
8385
|
@if (shouldShowIcon()) {
|
|
8386
8386
|
<ai-table-action-icon [config]="expandIconConfig()"></ai-table-action-icon>
|
|
@@ -8388,7 +8388,7 @@ class AITableExpandRecord {
|
|
|
8388
8388
|
</ko-group>
|
|
8389
8389
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableActionIcon, selector: "ai-table-action-icon", inputs: ["config"], outputs: ["onClick", "onMousemove", "onMouseenter", "onMouseleave"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8390
8390
|
}
|
|
8391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableExpandRecord, decorators: [{
|
|
8392
8392
|
type: Component,
|
|
8393
8393
|
args: [{
|
|
8394
8394
|
selector: 'ai-table-expand-record',
|
|
@@ -8406,8 +8406,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8406
8406
|
|
|
8407
8407
|
class AITableBackground {
|
|
8408
8408
|
constructor() {
|
|
8409
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8410
|
-
this.isActive = input(false, ...(ngDevMode ? [{ debugName: "isActive" }] :
|
|
8409
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8410
|
+
this.isActive = input(false, ...(ngDevMode ? [{ debugName: "isActive" }] : []));
|
|
8411
8411
|
this.koClick = output();
|
|
8412
8412
|
this.hover = output();
|
|
8413
8413
|
this.koMouseenter = output();
|
|
@@ -8415,14 +8415,14 @@ class AITableBackground {
|
|
|
8415
8415
|
this.groupConfig = computed(() => {
|
|
8416
8416
|
const { x, y } = this.config();
|
|
8417
8417
|
return { x, y, listening: false };
|
|
8418
|
-
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] :
|
|
8419
|
-
this.isHover = model(false, ...(ngDevMode ? [{ debugName: "isHover" }] :
|
|
8418
|
+
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] : []));
|
|
8419
|
+
this.isHover = model(false, ...(ngDevMode ? [{ debugName: "isHover" }] : []));
|
|
8420
8420
|
this.isShowSpecialBorderConfig = computed(() => {
|
|
8421
8421
|
const { borders } = this.config();
|
|
8422
8422
|
const stroke = this.stroke();
|
|
8423
8423
|
const strokeWidth = this.strokeWidth();
|
|
8424
8424
|
return borders && stroke && strokeWidth && ___default.some(borders, (item) => !item) && ___default.some(borders, (item) => !!item);
|
|
8425
|
-
}, ...(ngDevMode ? [{ debugName: "isShowSpecialBorderConfig" }] :
|
|
8425
|
+
}, ...(ngDevMode ? [{ debugName: "isShowSpecialBorderConfig" }] : []));
|
|
8426
8426
|
this.borderLinesConfig = computed(() => {
|
|
8427
8427
|
const { borders, height, width } = this.config();
|
|
8428
8428
|
const stroke = this.stroke();
|
|
@@ -8470,21 +8470,21 @@ class AITableBackground {
|
|
|
8470
8470
|
});
|
|
8471
8471
|
}
|
|
8472
8472
|
return result;
|
|
8473
|
-
}, ...(ngDevMode ? [{ debugName: "borderLinesConfig" }] :
|
|
8473
|
+
}, ...(ngDevMode ? [{ debugName: "borderLinesConfig" }] : []));
|
|
8474
8474
|
this.stroke = computed(() => {
|
|
8475
8475
|
const { stroke, hoverStroke } = this.config();
|
|
8476
8476
|
const active = this.isHover() || this.isActive();
|
|
8477
8477
|
return active ? hoverStroke || stroke : stroke;
|
|
8478
|
-
}, ...(ngDevMode ? [{ debugName: "stroke" }] :
|
|
8478
|
+
}, ...(ngDevMode ? [{ debugName: "stroke" }] : []));
|
|
8479
8479
|
this.strokeWidth = computed(() => {
|
|
8480
8480
|
const { strokeWidth, hoverStrokeWidth } = this.config();
|
|
8481
8481
|
const active = this.isHover() || this.isActive();
|
|
8482
8482
|
return active ? hoverStrokeWidth || strokeWidth : strokeWidth;
|
|
8483
|
-
}, ...(ngDevMode ? [{ debugName: "strokeWidth" }] :
|
|
8483
|
+
}, ...(ngDevMode ? [{ debugName: "strokeWidth" }] : []));
|
|
8484
8484
|
this.containerConfig = computed(() => {
|
|
8485
8485
|
const { x, y } = this.config();
|
|
8486
8486
|
return { x, y };
|
|
8487
|
-
}, ...(ngDevMode ? [{ debugName: "containerConfig" }] :
|
|
8487
|
+
}, ...(ngDevMode ? [{ debugName: "containerConfig" }] : []));
|
|
8488
8488
|
this.bgConfig = computed(() => {
|
|
8489
8489
|
const { name, width, height, fill = Colors.transparent, opacity, hoverFill, hoverOpacity, listening, borders } = this.config();
|
|
8490
8490
|
const [top, right, bottom, left] = borders || [false, false, false, false];
|
|
@@ -8505,7 +8505,7 @@ class AITableBackground {
|
|
|
8505
8505
|
result.strokeWidth = this.strokeWidth();
|
|
8506
8506
|
}
|
|
8507
8507
|
return result;
|
|
8508
|
-
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] :
|
|
8508
|
+
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] : []));
|
|
8509
8509
|
}
|
|
8510
8510
|
onClick(e) {
|
|
8511
8511
|
this.koClick.emit(e);
|
|
@@ -8527,8 +8527,8 @@ class AITableBackground {
|
|
|
8527
8527
|
this.koMouseleave.emit(e);
|
|
8528
8528
|
this.hover.emit(this.isHover());
|
|
8529
8529
|
}
|
|
8530
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8531
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableBackground, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8531
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableBackground, isStandalone: true, selector: "ai-table-background", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null }, isHover: { classPropertyName: "isHover", publicName: "isHover", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { koClick: "koClick", hover: "hover", koMouseenter: "koMouseenter", koMouseleave: "koMouseleave", isHover: "isHoverChange" }, ngImport: i0, template: `
|
|
8532
8532
|
<ko-group [config]="containerConfig()">
|
|
8533
8533
|
<ko-group>
|
|
8534
8534
|
<ko-rect
|
|
@@ -8547,7 +8547,7 @@ class AITableBackground {
|
|
|
8547
8547
|
</ko-group>
|
|
8548
8548
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8549
8549
|
}
|
|
8550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableBackground, decorators: [{
|
|
8551
8551
|
type: Component,
|
|
8552
8552
|
args: [{
|
|
8553
8553
|
selector: 'ai-table-background',
|
|
@@ -8576,7 +8576,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8576
8576
|
|
|
8577
8577
|
class AITableShadow {
|
|
8578
8578
|
constructor() {
|
|
8579
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8579
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8580
8580
|
this.shadowConfig = computed(() => {
|
|
8581
8581
|
const { visible, x, y, width = AI_TABLE_SHADOW_DEFAULT_WIDTH, height } = this.config();
|
|
8582
8582
|
return {
|
|
@@ -8589,12 +8589,12 @@ class AITableShadow {
|
|
|
8589
8589
|
fillLinearGradientEndPoint: { x: width, y: 0 },
|
|
8590
8590
|
fillLinearGradientColorStops: [0, 'rgba(0,0,0,0.05)', 1, Colors.transparent]
|
|
8591
8591
|
};
|
|
8592
|
-
}, ...(ngDevMode ? [{ debugName: "shadowConfig" }] :
|
|
8592
|
+
}, ...(ngDevMode ? [{ debugName: "shadowConfig" }] : []));
|
|
8593
8593
|
}
|
|
8594
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8595
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
8594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableShadow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8595
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableShadow, isStandalone: true, selector: "ai-table-shadow", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `<ko-rect [config]="shadowConfig()"></ko-rect>`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8596
8596
|
}
|
|
8597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableShadow, decorators: [{
|
|
8598
8598
|
type: Component,
|
|
8599
8599
|
args: [{
|
|
8600
8600
|
selector: 'ai-table-shadow',
|
|
@@ -8606,16 +8606,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
8606
8606
|
|
|
8607
8607
|
class AITableScrollableGroup {
|
|
8608
8608
|
constructor() {
|
|
8609
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
8610
|
-
this.contentTemplate = input.required(...(ngDevMode ? [{ debugName: "contentTemplate" }] :
|
|
8611
|
-
this.parentContainer = input(...(ngDevMode ? [undefined, { debugName: "parentContainer" }] :
|
|
8609
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
8610
|
+
this.contentTemplate = input.required(...(ngDevMode ? [{ debugName: "contentTemplate" }] : []));
|
|
8611
|
+
this.parentContainer = input(...(ngDevMode ? [undefined, { debugName: "parentContainer" }] : []));
|
|
8612
8612
|
this.scrollPosition = output();
|
|
8613
|
-
this.displayScrollbarTime = signal(null, ...(ngDevMode ? [{ debugName: "displayScrollbarTime" }] :
|
|
8614
|
-
this.hiddenScrollbar = signal(true, ...(ngDevMode ? [{ debugName: "hiddenScrollbar" }] :
|
|
8615
|
-
this.isHoverScrollbar = signal(false, ...(ngDevMode ? [{ debugName: "isHoverScrollbar" }] :
|
|
8613
|
+
this.displayScrollbarTime = signal(null, ...(ngDevMode ? [{ debugName: "displayScrollbarTime" }] : []));
|
|
8614
|
+
this.hiddenScrollbar = signal(true, ...(ngDevMode ? [{ debugName: "hiddenScrollbar" }] : []));
|
|
8615
|
+
this.isHoverScrollbar = signal(false, ...(ngDevMode ? [{ debugName: "isHoverScrollbar" }] : []));
|
|
8616
8616
|
// 滚动位置信号
|
|
8617
|
-
this.scrollX = signal(0, ...(ngDevMode ? [{ debugName: "scrollX" }] :
|
|
8618
|
-
this.scrollY = signal(0, ...(ngDevMode ? [{ debugName: "scrollY" }] :
|
|
8617
|
+
this.scrollX = signal(0, ...(ngDevMode ? [{ debugName: "scrollX" }] : []));
|
|
8618
|
+
this.scrollY = signal(0, ...(ngDevMode ? [{ debugName: "scrollY" }] : []));
|
|
8619
8619
|
// 容器配置
|
|
8620
8620
|
this.containerConfig = computed(() => {
|
|
8621
8621
|
const { x = 0, y = 0, width, height } = this.config();
|
|
@@ -8632,7 +8632,7 @@ class AITableScrollableGroup {
|
|
|
8632
8632
|
clipHeight: height,
|
|
8633
8633
|
name: 'scrollable-group'
|
|
8634
8634
|
};
|
|
8635
|
-
}, ...(ngDevMode ? [{ debugName: "containerConfig" }] :
|
|
8635
|
+
}, ...(ngDevMode ? [{ debugName: "containerConfig" }] : []));
|
|
8636
8636
|
this.bgConfig = computed(() => {
|
|
8637
8637
|
const { x = 0, y = 0, width, height, bgName } = this.config();
|
|
8638
8638
|
const config = {
|
|
@@ -8647,7 +8647,7 @@ class AITableScrollableGroup {
|
|
|
8647
8647
|
config.name = bgName;
|
|
8648
8648
|
}
|
|
8649
8649
|
return config;
|
|
8650
|
-
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] :
|
|
8650
|
+
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] : []));
|
|
8651
8651
|
// 内容区域配置
|
|
8652
8652
|
this.contentConfig = computed(() => {
|
|
8653
8653
|
if (this.config().contentNotScrollbar) {
|
|
@@ -8660,17 +8660,17 @@ class AITableScrollableGroup {
|
|
|
8660
8660
|
offsetX: this.scrollX(),
|
|
8661
8661
|
offsetY: this.scrollY()
|
|
8662
8662
|
};
|
|
8663
|
-
}, ...(ngDevMode ? [{ debugName: "contentConfig" }] :
|
|
8663
|
+
}, ...(ngDevMode ? [{ debugName: "contentConfig" }] : []));
|
|
8664
8664
|
// 是否显示竖向滚动条
|
|
8665
8665
|
this.showVerticalScrollbar = computed(() => {
|
|
8666
8666
|
const { height, contentHeight, verticalScrollbar } = this.config();
|
|
8667
8667
|
return verticalScrollbar && contentHeight > height;
|
|
8668
|
-
}, ...(ngDevMode ? [{ debugName: "showVerticalScrollbar" }] :
|
|
8668
|
+
}, ...(ngDevMode ? [{ debugName: "showVerticalScrollbar" }] : []));
|
|
8669
8669
|
// 是否显示横向滚动条
|
|
8670
8670
|
this.showHorizontalScrollbar = computed(() => {
|
|
8671
8671
|
const { width, contentWidth, horizontalScrollbar } = this.config();
|
|
8672
8672
|
return horizontalScrollbar && contentWidth > width;
|
|
8673
|
-
}, ...(ngDevMode ? [{ debugName: "showHorizontalScrollbar" }] :
|
|
8673
|
+
}, ...(ngDevMode ? [{ debugName: "showHorizontalScrollbar" }] : []));
|
|
8674
8674
|
// 竖向滚动条配置
|
|
8675
8675
|
this.verticalScrollbarConfig = computed(() => {
|
|
8676
8676
|
const { width, scrollbarSize = 12 } = this.config();
|
|
@@ -8680,7 +8680,7 @@ class AITableScrollableGroup {
|
|
|
8680
8680
|
width: scrollbarSize,
|
|
8681
8681
|
height: this.verticalScrollbarHeight()
|
|
8682
8682
|
};
|
|
8683
|
-
}, ...(ngDevMode ? [{ debugName: "verticalScrollbarConfig" }] :
|
|
8683
|
+
}, ...(ngDevMode ? [{ debugName: "verticalScrollbarConfig" }] : []));
|
|
8684
8684
|
// 横向滚动条配置
|
|
8685
8685
|
this.horizontalScrollbarConfig = computed(() => {
|
|
8686
8686
|
const { height, scrollbarSize = 12 } = this.config();
|
|
@@ -8690,7 +8690,7 @@ class AITableScrollableGroup {
|
|
|
8690
8690
|
width: this.horizontalScrollbarHeight(),
|
|
8691
8691
|
height: scrollbarSize
|
|
8692
8692
|
};
|
|
8693
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalScrollbarConfig" }] :
|
|
8693
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalScrollbarConfig" }] : []));
|
|
8694
8694
|
// 竖向滚动条轨道配置
|
|
8695
8695
|
this.verticalTrackConfig = computed(() => {
|
|
8696
8696
|
const { scrollbarSize = 12, scrollbarTrackColor, height } = this.config();
|
|
@@ -8702,7 +8702,7 @@ class AITableScrollableGroup {
|
|
|
8702
8702
|
fill: scrollbarTrackColor,
|
|
8703
8703
|
cornerRadius: 2
|
|
8704
8704
|
};
|
|
8705
|
-
}, ...(ngDevMode ? [{ debugName: "verticalTrackConfig" }] :
|
|
8705
|
+
}, ...(ngDevMode ? [{ debugName: "verticalTrackConfig" }] : []));
|
|
8706
8706
|
// 横向滚动条轨道配置
|
|
8707
8707
|
this.horizontalTrackConfig = computed(() => {
|
|
8708
8708
|
const { scrollbarSize = 12, scrollbarTrackColor } = this.config();
|
|
@@ -8714,40 +8714,40 @@ class AITableScrollableGroup {
|
|
|
8714
8714
|
fill: scrollbarTrackColor,
|
|
8715
8715
|
cornerRadius: 2
|
|
8716
8716
|
};
|
|
8717
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalTrackConfig" }] :
|
|
8717
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalTrackConfig" }] : []));
|
|
8718
8718
|
this.verticalThumbMinY = computed(() => {
|
|
8719
8719
|
const getAbsolutePositionY = this.verticalTrack.getNode().getAbsolutePosition().y;
|
|
8720
8720
|
return getAbsolutePositionY;
|
|
8721
|
-
}, ...(ngDevMode ? [{ debugName: "verticalThumbMinY" }] :
|
|
8721
|
+
}, ...(ngDevMode ? [{ debugName: "verticalThumbMinY" }] : []));
|
|
8722
8722
|
// 垂直滚动条滑块的最大Y坐标
|
|
8723
8723
|
this.verticalThumbMaxY = computed(() => {
|
|
8724
8724
|
const { height, contentHeight } = this.config();
|
|
8725
8725
|
const getAbsolutePositionY = this.verticalTrack.getNode().getAbsolutePosition().y;
|
|
8726
8726
|
return getAbsolutePositionY + height - this.verticalThumbHeight();
|
|
8727
|
-
}, ...(ngDevMode ? [{ debugName: "verticalThumbMaxY" }] :
|
|
8727
|
+
}, ...(ngDevMode ? [{ debugName: "verticalThumbMaxY" }] : []));
|
|
8728
8728
|
// 横向滚动条滑块的最小X坐标
|
|
8729
8729
|
this.horizontalThumbMinX = computed(() => {
|
|
8730
8730
|
const getAbsolutePositionX = this.horizontalTrack.getNode().getAbsolutePosition().x;
|
|
8731
8731
|
return getAbsolutePositionX;
|
|
8732
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalThumbMinX" }] :
|
|
8732
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalThumbMinX" }] : []));
|
|
8733
8733
|
// 横向滚动条滑块的最大X坐标
|
|
8734
8734
|
this.horizontalThumbMaxX = computed(() => {
|
|
8735
8735
|
const { width } = this.config();
|
|
8736
8736
|
const getAbsolutePositionX = this.horizontalTrack.getNode().getAbsolutePosition().x;
|
|
8737
8737
|
return getAbsolutePositionX + width - this.horizontalThumbWidth();
|
|
8738
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalThumbMaxX" }] :
|
|
8738
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalThumbMaxX" }] : []));
|
|
8739
8739
|
// 竖向滚动条滑块高度
|
|
8740
8740
|
this.verticalThumbHeight = computed(() => {
|
|
8741
8741
|
const { height, contentHeight } = this.config();
|
|
8742
8742
|
const thumbHeight = Math.max(20, (height / contentHeight) * this.verticalScrollbarHeight());
|
|
8743
8743
|
return thumbHeight;
|
|
8744
|
-
}, ...(ngDevMode ? [{ debugName: "verticalThumbHeight" }] :
|
|
8744
|
+
}, ...(ngDevMode ? [{ debugName: "verticalThumbHeight" }] : []));
|
|
8745
8745
|
// 横向滚动条滑块宽度
|
|
8746
8746
|
this.horizontalThumbWidth = computed(() => {
|
|
8747
8747
|
const { width, contentWidth } = this.config();
|
|
8748
8748
|
const thumbWidth = Math.max(20, (width / contentWidth) * this.horizontalScrollbarHeight());
|
|
8749
8749
|
return thumbWidth;
|
|
8750
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalThumbWidth" }] :
|
|
8750
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalThumbWidth" }] : []));
|
|
8751
8751
|
// 竖向滚动条滑块配置
|
|
8752
8752
|
this.verticalConfig = computed(() => {
|
|
8753
8753
|
const { scrollbarSize = 12, scrollbarColor = Colors.black, scrollbarOpacity = 0.8 } = this.config();
|
|
@@ -8779,7 +8779,7 @@ class AITableScrollableGroup {
|
|
|
8779
8779
|
};
|
|
8780
8780
|
}
|
|
8781
8781
|
};
|
|
8782
|
-
}, ...(ngDevMode ? [{ debugName: "verticalConfig" }] :
|
|
8782
|
+
}, ...(ngDevMode ? [{ debugName: "verticalConfig" }] : []));
|
|
8783
8783
|
// 横向滚动条滑块配置
|
|
8784
8784
|
this.horizontalThumbConfig = computed(() => {
|
|
8785
8785
|
const { scrollbarSize = 12, scrollbarColor = Colors.black, scrollbarOpacity = 0.8 } = this.config();
|
|
@@ -8811,17 +8811,17 @@ class AITableScrollableGroup {
|
|
|
8811
8811
|
};
|
|
8812
8812
|
}
|
|
8813
8813
|
};
|
|
8814
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalThumbConfig" }] :
|
|
8814
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalThumbConfig" }] : []));
|
|
8815
8815
|
// 横向滚动条滑块配置
|
|
8816
8816
|
this.verticalScrollbarHeight = computed(() => {
|
|
8817
8817
|
const { height } = this.config();
|
|
8818
8818
|
return height;
|
|
8819
|
-
}, ...(ngDevMode ? [{ debugName: "verticalScrollbarHeight" }] :
|
|
8819
|
+
}, ...(ngDevMode ? [{ debugName: "verticalScrollbarHeight" }] : []));
|
|
8820
8820
|
// 获取横向滚动条宽度
|
|
8821
8821
|
this.horizontalScrollbarHeight = computed(() => {
|
|
8822
8822
|
const { width } = this.config();
|
|
8823
8823
|
return width;
|
|
8824
|
-
}, ...(ngDevMode ? [{ debugName: "horizontalScrollbarHeight" }] :
|
|
8824
|
+
}, ...(ngDevMode ? [{ debugName: "horizontalScrollbarHeight" }] : []));
|
|
8825
8825
|
// 滚动条延迟隐藏
|
|
8826
8826
|
effect(() => {
|
|
8827
8827
|
const displayScrollbarTime = this.displayScrollbarTime();
|
|
@@ -8943,8 +8943,8 @@ class AITableScrollableGroup {
|
|
|
8943
8943
|
const { width, contentWidth } = this.config();
|
|
8944
8944
|
this.scrollX.set(Math.max(0, contentWidth - width));
|
|
8945
8945
|
}
|
|
8946
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8947
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableScrollableGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8947
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableScrollableGroup, isStandalone: true, selector: "ai-table-scrollable-group", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: true, transformFunction: null }, parentContainer: { classPropertyName: "parentContainer", publicName: "parentContainer", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { scrollPosition: "scrollPosition" }, viewQueries: [{ propertyName: "verticalTrack", first: true, predicate: ["verticalTrack"], descendants: true }, { propertyName: "verticalThumb", first: true, predicate: ["verticalThumb"], descendants: true }, { propertyName: "horizontalTrack", first: true, predicate: ["horizontalTrack"], descendants: true }, { propertyName: "contentGroup", first: true, predicate: ["contentGroup"], descendants: true }, { propertyName: "rootGroup", first: true, predicate: ["rootGroup"], descendants: true }], ngImport: i0, template: `
|
|
8948
8948
|
<ko-group #rootGroup [config]="containerConfig()" (koWheel)="stageWheel($event)">
|
|
8949
8949
|
<ko-group>
|
|
8950
8950
|
<ko-rect [config]="bgConfig()"></ko-rect>
|
|
@@ -8992,7 +8992,7 @@ class AITableScrollableGroup {
|
|
|
8992
8992
|
</ko-group>
|
|
8993
8993
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8994
8994
|
}
|
|
8995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableScrollableGroup, decorators: [{
|
|
8996
8996
|
type: Component,
|
|
8997
8997
|
args: [{
|
|
8998
8998
|
selector: 'ai-table-scrollable-group',
|
|
@@ -9180,11 +9180,11 @@ const createGroupFieldStats = (config) => {
|
|
|
9180
9180
|
class AITableStatTypeMenu extends ThyDropdownAbstractMenu {
|
|
9181
9181
|
constructor() {
|
|
9182
9182
|
super(...arguments);
|
|
9183
|
-
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] :
|
|
9184
|
-
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] :
|
|
9185
|
-
this.statMenus = input.required(...(ngDevMode ? [{ debugName: "statMenus" }] :
|
|
9183
|
+
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
9184
|
+
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] : []));
|
|
9185
|
+
this.statMenus = input.required(...(ngDevMode ? [{ debugName: "statMenus" }] : []));
|
|
9186
9186
|
this.menuClick = output();
|
|
9187
|
-
this.selectStatType = computed(() => this.field().stat_type || AITableStatType.None, ...(ngDevMode ? [{ debugName: "selectStatType" }] :
|
|
9187
|
+
this.selectStatType = computed(() => this.field().stat_type || AITableStatType.None, ...(ngDevMode ? [{ debugName: "selectStatType" }] : []));
|
|
9188
9188
|
}
|
|
9189
9189
|
execute(menu) {
|
|
9190
9190
|
this.menuClick.emit({
|
|
@@ -9192,10 +9192,10 @@ class AITableStatTypeMenu extends ThyDropdownAbstractMenu {
|
|
|
9192
9192
|
field: this.field()
|
|
9193
9193
|
});
|
|
9194
9194
|
}
|
|
9195
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9196
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableStatTypeMenu, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9196
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableStatTypeMenu, isStandalone: true, selector: "ai-table-stat-type-menu", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: true, isRequired: true, transformFunction: null }, statMenus: { classPropertyName: "statMenus", publicName: "statMenus", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { menuClick: "menuClick" }, host: { classAttribute: "stat-type-menu" }, usesInheritance: true, ngImport: i0, template: "@if (field()) {\n @for (menu of statMenus(); track index; let index = $index) {\n <a\n thyDropdownMenuItem\n href=\"javascript:;\"\n [ngClass]=\"{\n active: selectStatType() === menu.type\n }\"\n (click)=\"execute(menu)\"\n >\n <span>{{ menu.name }}</span>\n </a>\n }\n}\n", dependencies: [{ kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9197
9197
|
}
|
|
9198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableStatTypeMenu, decorators: [{
|
|
9199
9199
|
type: Component,
|
|
9200
9200
|
args: [{ selector: 'ai-table-stat-type-menu', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
9201
9201
|
class: 'stat-type-menu'
|
|
@@ -9205,28 +9205,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
9205
9205
|
class AITableFieldStat {
|
|
9206
9206
|
constructor() {
|
|
9207
9207
|
this.thyPopover = inject(ThyPopover);
|
|
9208
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
9208
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
9209
9209
|
this.hover = output();
|
|
9210
|
-
this.isActive = signal(false, ...(ngDevMode ? [{ debugName: "isActive" }] :
|
|
9211
|
-
this.isHover = signal(false, ...(ngDevMode ? [{ debugName: "isHover" }] :
|
|
9210
|
+
this.isActive = signal(false, ...(ngDevMode ? [{ debugName: "isActive" }] : []));
|
|
9211
|
+
this.isHover = signal(false, ...(ngDevMode ? [{ debugName: "isHover" }] : []));
|
|
9212
9212
|
this.isShowSelectedCount = false;
|
|
9213
9213
|
this.availableTextWidth = computed(() => {
|
|
9214
9214
|
const { width } = this.config();
|
|
9215
9215
|
return width - AI_TABLE_ACTION_COMMON_SIZE - AI_TABLE_CELL_PADDING;
|
|
9216
|
-
}, ...(ngDevMode ? [{ debugName: "availableTextWidth" }] :
|
|
9216
|
+
}, ...(ngDevMode ? [{ debugName: "availableTextWidth" }] : []));
|
|
9217
9217
|
this.groupConfig = computed(() => {
|
|
9218
9218
|
return {
|
|
9219
9219
|
x: this.config().x,
|
|
9220
9220
|
y: this.config().y
|
|
9221
9221
|
};
|
|
9222
|
-
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] :
|
|
9222
|
+
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] : []));
|
|
9223
9223
|
this.isGroupStat = computed(() => {
|
|
9224
9224
|
return this.config().isGroupStat;
|
|
9225
|
-
}, ...(ngDevMode ? [{ debugName: "isGroupStat" }] :
|
|
9225
|
+
}, ...(ngDevMode ? [{ debugName: "isGroupStat" }] : []));
|
|
9226
9226
|
this.groupStatContainerWidthMap = computed(() => {
|
|
9227
9227
|
const { aiTable } = this.config();
|
|
9228
9228
|
return aiTable.context?.groupStatContainerWidthMap();
|
|
9229
|
-
}, ...(ngDevMode ? [{ debugName: "groupStatContainerWidthMap" }] :
|
|
9229
|
+
}, ...(ngDevMode ? [{ debugName: "groupStatContainerWidthMap" }] : []));
|
|
9230
9230
|
this.bgConfig = computed(() => {
|
|
9231
9231
|
const { field, width, height, coordinate, readonly, aiTable, isGroupStat, columnIndex, groupRow } = this.config();
|
|
9232
9232
|
const rowHeadWidth = aiTable.context.rowHeadWidth();
|
|
@@ -9289,21 +9289,21 @@ class AITableFieldStat {
|
|
|
9289
9289
|
}
|
|
9290
9290
|
}
|
|
9291
9291
|
return config;
|
|
9292
|
-
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] :
|
|
9292
|
+
}, ...(ngDevMode ? [{ debugName: "bgConfig" }] : []));
|
|
9293
9293
|
this.field = computed(() => {
|
|
9294
9294
|
const { field } = this.config();
|
|
9295
9295
|
return field;
|
|
9296
|
-
}, ...(ngDevMode ? [{ debugName: "field" }] :
|
|
9296
|
+
}, ...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
9297
9297
|
this.linearRows = computed(() => {
|
|
9298
9298
|
const { aiTable } = this.config();
|
|
9299
9299
|
return aiTable.context?.linearRows();
|
|
9300
|
-
}, ...(ngDevMode ? [{ debugName: "linearRows" }] :
|
|
9300
|
+
}, ...(ngDevMode ? [{ debugName: "linearRows" }] : []));
|
|
9301
9301
|
this.recordsMap = computed(() => {
|
|
9302
9302
|
const { aiTable } = this.config();
|
|
9303
9303
|
return aiTable.recordsMap();
|
|
9304
|
-
}, ...(ngDevMode ? [{ debugName: "recordsMap" }] :
|
|
9305
|
-
this.groupRow = computed(() => this.config().groupRow, ...(ngDevMode ? [{ debugName: "groupRow" }] :
|
|
9306
|
-
this.gridData = computed(() => this.config().aiTable.gridData(), ...(ngDevMode ? [{ debugName: "gridData" }] :
|
|
9304
|
+
}, ...(ngDevMode ? [{ debugName: "recordsMap" }] : []));
|
|
9305
|
+
this.groupRow = computed(() => this.config().groupRow, ...(ngDevMode ? [{ debugName: "groupRow" }] : []));
|
|
9306
|
+
this.gridData = computed(() => this.config().aiTable.gridData(), ...(ngDevMode ? [{ debugName: "gridData" }] : []));
|
|
9307
9307
|
this.records = computed(() => {
|
|
9308
9308
|
let records = [];
|
|
9309
9309
|
const groupRow = this.groupRow();
|
|
@@ -9316,15 +9316,15 @@ class AITableFieldStat {
|
|
|
9316
9316
|
records = this.gridData().records;
|
|
9317
9317
|
}
|
|
9318
9318
|
return records;
|
|
9319
|
-
}, ...(ngDevMode ? [{ debugName: "records" }] :
|
|
9319
|
+
}, ...(ngDevMode ? [{ debugName: "records" }] : []));
|
|
9320
9320
|
this.aiFieldConfig = computed(() => {
|
|
9321
9321
|
const { aiTable } = this.config();
|
|
9322
9322
|
return aiTable.context?.aiFieldConfig;
|
|
9323
|
-
}, ...(ngDevMode ? [{ debugName: "aiFieldConfig" }] :
|
|
9323
|
+
}, ...(ngDevMode ? [{ debugName: "aiFieldConfig" }] : []));
|
|
9324
9324
|
this.aiTable = computed(() => {
|
|
9325
9325
|
const { aiTable } = this.config();
|
|
9326
9326
|
return aiTable;
|
|
9327
|
-
}, ...(ngDevMode ? [{ debugName: "aiTable" }] :
|
|
9327
|
+
}, ...(ngDevMode ? [{ debugName: "aiTable" }] : []));
|
|
9328
9328
|
this.options = computed(() => {
|
|
9329
9329
|
const aiTable = this.aiTable();
|
|
9330
9330
|
return {
|
|
@@ -9335,18 +9335,18 @@ class AITableFieldStat {
|
|
|
9335
9335
|
return AITableQueries.getFieldValue(aiTable, [record._id, field._id]);
|
|
9336
9336
|
}
|
|
9337
9337
|
};
|
|
9338
|
-
}, ...(ngDevMode ? [{ debugName: "options" }] :
|
|
9338
|
+
}, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
9339
9339
|
this.isActiveOrHover = computed(() => {
|
|
9340
9340
|
return this.isActive() || this.isHover();
|
|
9341
|
-
}, ...(ngDevMode ? [{ debugName: "isActiveOrHover" }] :
|
|
9341
|
+
}, ...(ngDevMode ? [{ debugName: "isActiveOrHover" }] : []));
|
|
9342
9342
|
this.containerBoxHeight = computed(() => {
|
|
9343
9343
|
const { height } = this.config();
|
|
9344
9344
|
return height;
|
|
9345
|
-
}, ...(ngDevMode ? [{ debugName: "containerBoxHeight" }] :
|
|
9345
|
+
}, ...(ngDevMode ? [{ debugName: "containerBoxHeight" }] : []));
|
|
9346
9346
|
this.containerBoxWidth = computed(() => {
|
|
9347
9347
|
const { width } = this.config();
|
|
9348
9348
|
return width;
|
|
9349
|
-
}, ...(ngDevMode ? [{ debugName: "containerBoxWidth" }] :
|
|
9349
|
+
}, ...(ngDevMode ? [{ debugName: "containerBoxWidth" }] : []));
|
|
9350
9350
|
this.noneStatWidth = computed(() => {
|
|
9351
9351
|
const noneStatString = getI18nTextByKey(this.aiTable(), AITableGridI18nKey.stat);
|
|
9352
9352
|
const { text, textWidth } = drawer.textEllipsis({
|
|
@@ -9355,7 +9355,7 @@ class AITableFieldStat {
|
|
|
9355
9355
|
fontWeight: DEFAULT_FONT_WEIGHT
|
|
9356
9356
|
});
|
|
9357
9357
|
return textWidth + AI_TABLE_ACTION_COMMON_SIZE + AI_TABLE_OFFSET;
|
|
9358
|
-
}, ...(ngDevMode ? [{ debugName: "noneStatWidth" }] :
|
|
9358
|
+
}, ...(ngDevMode ? [{ debugName: "noneStatWidth" }] : []));
|
|
9359
9359
|
this.renderTexts = computed(() => {
|
|
9360
9360
|
const width = this.containerBoxWidth();
|
|
9361
9361
|
const field = this.field();
|
|
@@ -9405,10 +9405,10 @@ class AITableFieldStat {
|
|
|
9405
9405
|
totalWidth: textWidth,
|
|
9406
9406
|
statValue: statValue || ''
|
|
9407
9407
|
};
|
|
9408
|
-
}, ...(ngDevMode ? [{ debugName: "renderTexts" }] :
|
|
9408
|
+
}, ...(ngDevMode ? [{ debugName: "renderTexts" }] : []));
|
|
9409
9409
|
this.fontSize = computed(() => {
|
|
9410
9410
|
return this.isGroupStat() ? GROUP_STAT_DEFAULT_FONT_SIZE : DEFAULT_FONT_SIZE;
|
|
9411
|
-
}, ...(ngDevMode ? [{ debugName: "fontSize" }] :
|
|
9411
|
+
}, ...(ngDevMode ? [{ debugName: "fontSize" }] : []));
|
|
9412
9412
|
this.textsConfig = computed(() => {
|
|
9413
9413
|
const height = this.containerBoxHeight();
|
|
9414
9414
|
const width = this.containerBoxWidth();
|
|
@@ -9470,17 +9470,17 @@ class AITableFieldStat {
|
|
|
9470
9470
|
return result;
|
|
9471
9471
|
}
|
|
9472
9472
|
return null;
|
|
9473
|
-
}, ...(ngDevMode ? [{ debugName: "textsConfig" }] :
|
|
9473
|
+
}, ...(ngDevMode ? [{ debugName: "textsConfig" }] : []));
|
|
9474
9474
|
this.selectedRecordCount = computed(() => {
|
|
9475
9475
|
const aiTable = this.aiTable();
|
|
9476
9476
|
const selectedRecords = aiTable.selection().selectedRecords;
|
|
9477
9477
|
return selectedRecords.size;
|
|
9478
|
-
}, ...(ngDevMode ? [{ debugName: "selectedRecordCount" }] :
|
|
9478
|
+
}, ...(ngDevMode ? [{ debugName: "selectedRecordCount" }] : []));
|
|
9479
9479
|
this.selectedCellCount = computed(() => {
|
|
9480
9480
|
const aiTable = this.aiTable();
|
|
9481
9481
|
const selectedCells = aiTable.selection().selectedCells;
|
|
9482
9482
|
return selectedCells.size;
|
|
9483
|
-
}, ...(ngDevMode ? [{ debugName: "selectedCellCount" }] :
|
|
9483
|
+
}, ...(ngDevMode ? [{ debugName: "selectedCellCount" }] : []));
|
|
9484
9484
|
this.selectedInfo = computed(() => {
|
|
9485
9485
|
const selectedRecordCount = this.selectedRecordCount();
|
|
9486
9486
|
const selectedCellCount = this.selectedCellCount();
|
|
@@ -9493,15 +9493,15 @@ class AITableFieldStat {
|
|
|
9493
9493
|
selectedCount
|
|
9494
9494
|
};
|
|
9495
9495
|
return result;
|
|
9496
|
-
}, ...(ngDevMode ? [{ debugName: "selectedInfo" }] :
|
|
9496
|
+
}, ...(ngDevMode ? [{ debugName: "selectedInfo" }] : []));
|
|
9497
9497
|
this.isFirstColumn = computed(() => {
|
|
9498
9498
|
const { columnIndex } = this.config();
|
|
9499
9499
|
return columnIndex === 0;
|
|
9500
|
-
}, ...(ngDevMode ? [{ debugName: "isFirstColumn" }] :
|
|
9500
|
+
}, ...(ngDevMode ? [{ debugName: "isFirstColumn" }] : []));
|
|
9501
9501
|
this.isLastFrozenColumn = computed(() => {
|
|
9502
9502
|
const { columnIndex, coordinate } = this.config();
|
|
9503
9503
|
return columnIndex === coordinate.frozenColumnCount - 1;
|
|
9504
|
-
}, ...(ngDevMode ? [{ debugName: "isLastFrozenColumn" }] :
|
|
9504
|
+
}, ...(ngDevMode ? [{ debugName: "isLastFrozenColumn" }] : []));
|
|
9505
9505
|
this.iconConfig = computed(() => {
|
|
9506
9506
|
const { field, width, height } = this.config();
|
|
9507
9507
|
const commonIconOffsetY = (height - AI_TABLE_ACTION_COMMON_SIZE) / 2;
|
|
@@ -9516,7 +9516,7 @@ class AITableFieldStat {
|
|
|
9516
9516
|
cornerRadius: 4,
|
|
9517
9517
|
listening: false
|
|
9518
9518
|
};
|
|
9519
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] :
|
|
9519
|
+
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
9520
9520
|
effect(() => {
|
|
9521
9521
|
const isGroupStat = this.isGroupStat();
|
|
9522
9522
|
const bgConfigWidth = this.bgConfig().width;
|
|
@@ -9597,8 +9597,8 @@ class AITableFieldStat {
|
|
|
9597
9597
|
});
|
|
9598
9598
|
}
|
|
9599
9599
|
}
|
|
9600
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9601
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldStat, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9601
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFieldStat, isStandalone: true, selector: "ai-table-field-stat", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { hover: "hover" }, ngImport: i0, template: `
|
|
9602
9602
|
<ko-group [config]="groupConfig()">
|
|
9603
9603
|
<ai-table-background
|
|
9604
9604
|
[config]="bgConfig()"
|
|
@@ -9620,7 +9620,7 @@ class AITableFieldStat {
|
|
|
9620
9620
|
</ko-group>
|
|
9621
9621
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }, { kind: "component", type: AITableBackground, selector: "ai-table-background", inputs: ["config", "isActive", "isHover"], outputs: ["koClick", "hover", "koMouseenter", "koMouseleave", "isHoverChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9622
9622
|
}
|
|
9623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldStat, decorators: [{
|
|
9624
9624
|
type: Component,
|
|
9625
9625
|
args: [{
|
|
9626
9626
|
selector: 'ai-table-field-stat',
|
|
@@ -9652,24 +9652,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
9652
9652
|
|
|
9653
9653
|
class AITableGroups {
|
|
9654
9654
|
constructor() {
|
|
9655
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
9655
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
9656
9656
|
this.trackBy = (groupStat) => {
|
|
9657
9657
|
return groupStat.groupRow._id + groupStat.columnIndex;
|
|
9658
9658
|
};
|
|
9659
9659
|
this.frozenColumnCount = computed(() => {
|
|
9660
9660
|
const { coordinate } = this.config();
|
|
9661
9661
|
return coordinate.frozenColumnCount ?? 0;
|
|
9662
|
-
}, ...(ngDevMode ? [{ debugName: "frozenColumnCount" }] :
|
|
9662
|
+
}, ...(ngDevMode ? [{ debugName: "frozenColumnCount" }] : []));
|
|
9663
9663
|
this.columnStartIndex = computed(() => {
|
|
9664
9664
|
const { columnStartIndex } = this.config();
|
|
9665
9665
|
return Math.max(columnStartIndex, this.frozenColumnCount());
|
|
9666
|
-
}, ...(ngDevMode ? [{ debugName: "columnStartIndex" }] :
|
|
9666
|
+
}, ...(ngDevMode ? [{ debugName: "columnStartIndex" }] : []));
|
|
9667
9667
|
this.groups = computed(() => {
|
|
9668
9668
|
return createGroupCells({
|
|
9669
9669
|
...this.config(),
|
|
9670
9670
|
columnStartIndex: this.columnStartIndex()
|
|
9671
9671
|
});
|
|
9672
|
-
}, ...(ngDevMode ? [{ debugName: "groups" }] :
|
|
9672
|
+
}, ...(ngDevMode ? [{ debugName: "groups" }] : []));
|
|
9673
9673
|
this.groupCells = computed(() => {
|
|
9674
9674
|
const groups = this.groups();
|
|
9675
9675
|
const groupCells = [];
|
|
@@ -9687,16 +9687,16 @@ class AITableGroups {
|
|
|
9687
9687
|
});
|
|
9688
9688
|
});
|
|
9689
9689
|
return groupCells;
|
|
9690
|
-
}, ...(ngDevMode ? [{ debugName: "groupCells" }] :
|
|
9690
|
+
}, ...(ngDevMode ? [{ debugName: "groupCells" }] : []));
|
|
9691
9691
|
}
|
|
9692
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9693
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9692
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGroups, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9693
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableGroups, isStandalone: true, selector: "ai-table-groups", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
9694
9694
|
@for (groupCell of groupCells(); track trackBy(groupCell.groupStat!)) {
|
|
9695
9695
|
<ai-table-field-stat [config]="groupCell.groupStat!"></ai-table-field-stat>
|
|
9696
9696
|
}
|
|
9697
9697
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableFieldStat, selector: "ai-table-field-stat", inputs: ["config"], outputs: ["hover"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9698
9698
|
}
|
|
9699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGroups, decorators: [{
|
|
9700
9700
|
type: Component,
|
|
9701
9701
|
args: [{
|
|
9702
9702
|
selector: 'ai-table-groups',
|
|
@@ -9712,25 +9712,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
9712
9712
|
|
|
9713
9713
|
class AITableFrozenGroups {
|
|
9714
9714
|
constructor() {
|
|
9715
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
9715
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
9716
9716
|
this.frozenColumnCount = computed(() => {
|
|
9717
9717
|
const { coordinate } = this.config();
|
|
9718
9718
|
return coordinate.frozenColumnCount ?? 0;
|
|
9719
|
-
}, ...(ngDevMode ? [{ debugName: "frozenColumnCount" }] :
|
|
9719
|
+
}, ...(ngDevMode ? [{ debugName: "frozenColumnCount" }] : []));
|
|
9720
9720
|
this.columnStopIndex = computed(() => {
|
|
9721
9721
|
return this.frozenColumnCount() - 1;
|
|
9722
|
-
}, ...(ngDevMode ? [{ debugName: "columnStopIndex" }] :
|
|
9722
|
+
}, ...(ngDevMode ? [{ debugName: "columnStopIndex" }] : []));
|
|
9723
9723
|
this.groups = computed(() => {
|
|
9724
9724
|
return createGroupCells({
|
|
9725
9725
|
...this.config(),
|
|
9726
9726
|
columnStartIndex: 0,
|
|
9727
9727
|
columnStopIndex: this.columnStopIndex()
|
|
9728
9728
|
});
|
|
9729
|
-
}, ...(ngDevMode ? [{ debugName: "groups" }] :
|
|
9729
|
+
}, ...(ngDevMode ? [{ debugName: "groups" }] : []));
|
|
9730
9730
|
this.groupCollapseDisabled = computed(() => {
|
|
9731
9731
|
const { aiTable } = this.config();
|
|
9732
9732
|
return aiTable.context.groupCollapseDisabled();
|
|
9733
|
-
}, ...(ngDevMode ? [{ debugName: "groupCollapseDisabled" }] :
|
|
9733
|
+
}, ...(ngDevMode ? [{ debugName: "groupCollapseDisabled" }] : []));
|
|
9734
9734
|
this.groupCells = computed(() => {
|
|
9735
9735
|
const groups = this.groups();
|
|
9736
9736
|
const groupCells = [];
|
|
@@ -9769,15 +9769,15 @@ class AITableFrozenGroups {
|
|
|
9769
9769
|
});
|
|
9770
9770
|
});
|
|
9771
9771
|
return groupCells;
|
|
9772
|
-
}, ...(ngDevMode ? [{ debugName: "groupCells" }] :
|
|
9772
|
+
}, ...(ngDevMode ? [{ debugName: "groupCells" }] : []));
|
|
9773
9773
|
}
|
|
9774
9774
|
collapseClick(e) {
|
|
9775
9775
|
if (this.groupCollapseDisabled()) {
|
|
9776
9776
|
e.event.cancelBubble = true;
|
|
9777
9777
|
}
|
|
9778
9778
|
}
|
|
9779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9780
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenGroups, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9780
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFrozenGroups, isStandalone: true, selector: "ai-table-frozen-groups", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
9781
9781
|
@for (groupCell of groupCells(); track $index) {
|
|
9782
9782
|
@if (groupCell.collapsedIcon) {
|
|
9783
9783
|
<ai-table-icon [config]="groupCell.collapsedIcon" (koClick)="collapseClick($event)"></ai-table-icon>
|
|
@@ -9786,7 +9786,7 @@ class AITableFrozenGroups {
|
|
|
9786
9786
|
}
|
|
9787
9787
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }, { kind: "component", type: AITableFieldStat, selector: "ai-table-field-stat", inputs: ["config"], outputs: ["hover"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9788
9788
|
}
|
|
9789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFrozenGroups, decorators: [{
|
|
9790
9790
|
type: Component,
|
|
9791
9791
|
args: [{
|
|
9792
9792
|
selector: 'ai-table-frozen-groups',
|
|
@@ -9805,14 +9805,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
9805
9805
|
|
|
9806
9806
|
class AITableFillHandle {
|
|
9807
9807
|
constructor() {
|
|
9808
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
9808
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
9809
9809
|
this.showFillHandle = computed(() => {
|
|
9810
9810
|
const { aiTable, readonly } = this.config();
|
|
9811
9811
|
const selection = aiTable.selection();
|
|
9812
9812
|
const hasSelectedCells = selection.selectedCells.size > 0;
|
|
9813
9813
|
const isEditingCell = !!aiTable.editingCell()?.path;
|
|
9814
9814
|
return hasSelectedCells && !readonly && !isEditingCell;
|
|
9815
|
-
}, ...(ngDevMode ? [{ debugName: "showFillHandle" }] :
|
|
9815
|
+
}, ...(ngDevMode ? [{ debugName: "showFillHandle" }] : []));
|
|
9816
9816
|
this.handleConfig = computed(() => {
|
|
9817
9817
|
const { aiTable, coordinate } = this.config();
|
|
9818
9818
|
const selectedCells = Array.from(aiTable.selection().selectedCells);
|
|
@@ -9846,16 +9846,16 @@ class AITableFillHandle {
|
|
|
9846
9846
|
recordId
|
|
9847
9847
|
})
|
|
9848
9848
|
};
|
|
9849
|
-
}, ...(ngDevMode ? [{ debugName: "handleConfig" }] :
|
|
9849
|
+
}, ...(ngDevMode ? [{ debugName: "handleConfig" }] : []));
|
|
9850
9850
|
}
|
|
9851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9852
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9851
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFillHandle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9852
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFillHandle, isStandalone: true, selector: "ai-table-fill-handle", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
9853
9853
|
@if (showFillHandle()) {
|
|
9854
9854
|
<ko-rect [config]="handleConfig()"></ko-rect>
|
|
9855
9855
|
}
|
|
9856
9856
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }] }); }
|
|
9857
9857
|
}
|
|
9858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFillHandle, decorators: [{
|
|
9859
9859
|
type: Component,
|
|
9860
9860
|
args: [{
|
|
9861
9861
|
selector: 'ai-table-fill-handle',
|
|
@@ -9870,8 +9870,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
9870
9870
|
|
|
9871
9871
|
class AITableCoverCellEntry {
|
|
9872
9872
|
constructor() {
|
|
9873
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
9874
|
-
this.onlyDisplayBorder = input(false, ...(ngDevMode ? [{ debugName: "onlyDisplayBorder" }] :
|
|
9873
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
9874
|
+
this.onlyDisplayBorder = input(false, ...(ngDevMode ? [{ debugName: "onlyDisplayBorder" }] : []));
|
|
9875
9875
|
this.componentMap = {};
|
|
9876
9876
|
this.groupConfig = computed(() => {
|
|
9877
9877
|
return {
|
|
@@ -9879,7 +9879,7 @@ class AITableCoverCellEntry {
|
|
|
9879
9879
|
y: this.coverCellConfig()?.y,
|
|
9880
9880
|
listening: true
|
|
9881
9881
|
};
|
|
9882
|
-
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] :
|
|
9882
|
+
}, ...(ngDevMode ? [{ debugName: "groupConfig" }] : []));
|
|
9883
9883
|
this.coverCellConfig = computed(() => {
|
|
9884
9884
|
const { aiTable, coordinate, references, readonly, actions } = this.config();
|
|
9885
9885
|
const coverCell = this.coverCell();
|
|
@@ -9943,11 +9943,11 @@ class AITableCoverCellEntry {
|
|
|
9943
9943
|
}
|
|
9944
9944
|
};
|
|
9945
9945
|
return result;
|
|
9946
|
-
}, ...(ngDevMode ? [{ debugName: "coverCellConfig" }] :
|
|
9947
|
-
this.coverCell = computed(() => getCoverCell(this.config().aiTable), ...(ngDevMode ? [{ debugName: "coverCell" }] :
|
|
9946
|
+
}, ...(ngDevMode ? [{ debugName: "coverCellConfig" }] : []));
|
|
9947
|
+
this.coverCell = computed(() => getCoverCell(this.config().aiTable), ...(ngDevMode ? [{ debugName: "coverCell" }] : []));
|
|
9948
9948
|
}
|
|
9949
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9950
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9949
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCoverCellEntry, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9950
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCoverCellEntry, isStandalone: true, selector: "ai-table-cover-cell-entry", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, onlyDisplayBorder: { classPropertyName: "onlyDisplayBorder", publicName: "onlyDisplayBorder", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
9951
9951
|
@if (coverCell()) {
|
|
9952
9952
|
<ko-group #rootGroup [config]="groupConfig()">
|
|
9953
9953
|
<ng-container
|
|
@@ -9959,9 +9959,9 @@ class AITableCoverCellEntry {
|
|
|
9959
9959
|
</ng-container>
|
|
9960
9960
|
</ko-group>
|
|
9961
9961
|
}
|
|
9962
|
-
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9962
|
+
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9963
9963
|
}
|
|
9964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCoverCellEntry, decorators: [{
|
|
9965
9965
|
type: Component,
|
|
9966
9966
|
args: [{
|
|
9967
9967
|
selector: 'ai-table-cover-cell-entry',
|
|
@@ -9985,13 +9985,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
9985
9985
|
|
|
9986
9986
|
class AITableFieldStats {
|
|
9987
9987
|
constructor() {
|
|
9988
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
9988
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
9989
9989
|
this.hover = output();
|
|
9990
|
-
this.isHover = signal(false, ...(ngDevMode ? [{ debugName: "isHover" }] :
|
|
9990
|
+
this.isHover = signal(false, ...(ngDevMode ? [{ debugName: "isHover" }] : []));
|
|
9991
9991
|
this.trackBy = (groupStat) => {
|
|
9992
9992
|
return groupStat.columnIndex;
|
|
9993
9993
|
};
|
|
9994
|
-
this.statConfigs = computed(() => createFieldStats(this.config()), ...(ngDevMode ? [{ debugName: "statConfigs" }] :
|
|
9994
|
+
this.statConfigs = computed(() => createFieldStats(this.config()), ...(ngDevMode ? [{ debugName: "statConfigs" }] : []));
|
|
9995
9995
|
}
|
|
9996
9996
|
onMouseenter(e) {
|
|
9997
9997
|
this.isHover.set(true);
|
|
@@ -9999,8 +9999,8 @@ class AITableFieldStats {
|
|
|
9999
9999
|
onMouseleave(e) {
|
|
10000
10000
|
this.isHover.set(false);
|
|
10001
10001
|
}
|
|
10002
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10003
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
10002
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldStats, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10003
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFieldStats, isStandalone: true, selector: "ai-table-column-stats", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { hover: "hover" }, ngImport: i0, template: `
|
|
10004
10004
|
<ko-group>
|
|
10005
10005
|
@for (config of statConfigs(); track trackBy(config)) {
|
|
10006
10006
|
<ai-table-field-stat [config]="config" (hover)="hover.emit($event)"></ai-table-field-stat>
|
|
@@ -10008,7 +10008,7 @@ class AITableFieldStats {
|
|
|
10008
10008
|
</ko-group>
|
|
10009
10009
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableFieldStat, selector: "ai-table-field-stat", inputs: ["config"], outputs: ["hover"] }, { kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10010
10010
|
}
|
|
10011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldStats, decorators: [{
|
|
10012
10012
|
type: Component,
|
|
10013
10013
|
args: [{
|
|
10014
10014
|
selector: 'ai-table-column-stats',
|
|
@@ -10027,7 +10027,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
10027
10027
|
Konva.pixelRatio = 2;
|
|
10028
10028
|
class AITableRenderer {
|
|
10029
10029
|
constructor() {
|
|
10030
|
-
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] :
|
|
10030
|
+
this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
10031
10031
|
this.koMousemove = output();
|
|
10032
10032
|
this.koMousedown = output();
|
|
10033
10033
|
this.koMouseup = output();
|
|
@@ -10036,50 +10036,53 @@ class AITableRenderer {
|
|
|
10036
10036
|
this.koClick = output();
|
|
10037
10037
|
this.koDblclick = output();
|
|
10038
10038
|
this.koMouseleave = output();
|
|
10039
|
+
this.koTouchstart = output();
|
|
10040
|
+
this.koTouchmove = output();
|
|
10041
|
+
this.koTouchend = output();
|
|
10039
10042
|
this.onScrollPosition = output();
|
|
10040
|
-
this.isHoverStatContainer = signal(false, ...(ngDevMode ? [{ debugName: "isHoverStatContainer" }] :
|
|
10043
|
+
this.isHoverStatContainer = signal(false, ...(ngDevMode ? [{ debugName: "isHoverStatContainer" }] : []));
|
|
10041
10044
|
this.fields = computed(() => {
|
|
10042
10045
|
return AITable.getVisibleFields(this.config().aiTable);
|
|
10043
|
-
}, ...(ngDevMode ? [{ debugName: "fields" }] :
|
|
10046
|
+
}, ...(ngDevMode ? [{ debugName: "fields" }] : []));
|
|
10044
10047
|
this.readonly = computed(() => {
|
|
10045
10048
|
return this.config()?.readonly;
|
|
10046
|
-
}, ...(ngDevMode ? [{ debugName: "readonly" }] :
|
|
10049
|
+
}, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
10047
10050
|
this.hiddenIndexColumn = computed(() => {
|
|
10048
10051
|
return this.config()?.aiTable.context?.aiFieldConfig()?.hiddenIndexColumn;
|
|
10049
|
-
}, ...(ngDevMode ? [{ debugName: "hiddenIndexColumn" }] :
|
|
10052
|
+
}, ...(ngDevMode ? [{ debugName: "hiddenIndexColumn" }] : []));
|
|
10050
10053
|
this.showExpandIcon = computed(() => {
|
|
10051
10054
|
return !!this.config()?.aiTable.context?.recordDetailConfig?.()?.showExpandIcon;
|
|
10052
|
-
}, ...(ngDevMode ? [{ debugName: "showExpandIcon" }] :
|
|
10055
|
+
}, ...(ngDevMode ? [{ debugName: "showExpandIcon" }] : []));
|
|
10053
10056
|
this.coordinate = computed(() => {
|
|
10054
10057
|
return this.config()?.coordinate;
|
|
10055
|
-
}, ...(ngDevMode ? [{ debugName: "coordinate" }] :
|
|
10058
|
+
}, ...(ngDevMode ? [{ debugName: "coordinate" }] : []));
|
|
10056
10059
|
this.containerWidth = computed(() => {
|
|
10057
10060
|
return this.config().containerWidth;
|
|
10058
|
-
}, ...(ngDevMode ? [{ debugName: "containerWidth" }] :
|
|
10061
|
+
}, ...(ngDevMode ? [{ debugName: "containerWidth" }] : []));
|
|
10059
10062
|
this.containerHeight = computed(() => {
|
|
10060
10063
|
return this.config().containerHeight;
|
|
10061
|
-
}, ...(ngDevMode ? [{ debugName: "containerHeight" }] :
|
|
10064
|
+
}, ...(ngDevMode ? [{ debugName: "containerHeight" }] : []));
|
|
10062
10065
|
this.gridContainerHeight = computed(() => {
|
|
10063
10066
|
return this.containerHeight() - AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT;
|
|
10064
|
-
}, ...(ngDevMode ? [{ debugName: "gridContainerHeight" }] :
|
|
10067
|
+
}, ...(ngDevMode ? [{ debugName: "gridContainerHeight" }] : []));
|
|
10065
10068
|
this.scrollState = computed(() => {
|
|
10066
10069
|
return this.config()?.aiTable.context.scrollState();
|
|
10067
|
-
}, ...(ngDevMode ? [{ debugName: "scrollState" }] :
|
|
10070
|
+
}, ...(ngDevMode ? [{ debugName: "scrollState" }] : []));
|
|
10068
10071
|
this.visibleRangeInfo = computed(() => {
|
|
10069
10072
|
return getVisibleRangeInfo(this.coordinate(), this.scrollState());
|
|
10070
|
-
}, ...(ngDevMode ? [{ debugName: "visibleRangeInfo" }] :
|
|
10073
|
+
}, ...(ngDevMode ? [{ debugName: "visibleRangeInfo" }] : []));
|
|
10071
10074
|
this.frozenAreaWidth = computed(() => {
|
|
10072
10075
|
return this.config().aiTable.context.rowHeadWidth() + this.coordinate().frozenColumnWidth;
|
|
10073
|
-
}, ...(ngDevMode ? [{ debugName: "frozenAreaWidth" }] :
|
|
10076
|
+
}, ...(ngDevMode ? [{ debugName: "frozenAreaWidth" }] : []));
|
|
10074
10077
|
this.lastColumnWidth = computed(() => {
|
|
10075
10078
|
return this.coordinate().getColumnWidth(this.visibleRangeInfo().columnStopIndex);
|
|
10076
|
-
}, ...(ngDevMode ? [{ debugName: "lastColumnWidth" }] :
|
|
10079
|
+
}, ...(ngDevMode ? [{ debugName: "lastColumnWidth" }] : []));
|
|
10077
10080
|
this.lastColumnOffset = computed(() => {
|
|
10078
10081
|
return this.coordinate().getColumnOffset(this.visibleRangeInfo().columnStopIndex);
|
|
10079
|
-
}, ...(ngDevMode ? [{ debugName: "lastColumnOffset" }] :
|
|
10082
|
+
}, ...(ngDevMode ? [{ debugName: "lastColumnOffset" }] : []));
|
|
10080
10083
|
this.cellGroupClipWidth = computed(() => {
|
|
10081
10084
|
return this.containerWidth() - this.frozenAreaWidth();
|
|
10082
|
-
}, ...(ngDevMode ? [{ debugName: "cellGroupClipWidth" }] :
|
|
10085
|
+
}, ...(ngDevMode ? [{ debugName: "cellGroupClipWidth" }] : []));
|
|
10083
10086
|
this.stageConfig = computed(() => {
|
|
10084
10087
|
const { isScrolling } = this.scrollState();
|
|
10085
10088
|
return {
|
|
@@ -10087,7 +10090,7 @@ class AITableRenderer {
|
|
|
10087
10090
|
height: this.containerHeight(),
|
|
10088
10091
|
listening: isScrolling ? false : true
|
|
10089
10092
|
};
|
|
10090
|
-
}, ...(ngDevMode ? [{ debugName: "stageConfig" }] :
|
|
10093
|
+
}, ...(ngDevMode ? [{ debugName: "stageConfig" }] : []));
|
|
10091
10094
|
this.gridGroupConfig = computed(() => {
|
|
10092
10095
|
return {
|
|
10093
10096
|
clipX: 0,
|
|
@@ -10095,7 +10098,7 @@ class AITableRenderer {
|
|
|
10095
10098
|
clipWidth: this.containerWidth(),
|
|
10096
10099
|
clipHeight: this.gridContainerHeight()
|
|
10097
10100
|
};
|
|
10098
|
-
}, ...(ngDevMode ? [{ debugName: "gridGroupConfig" }] :
|
|
10101
|
+
}, ...(ngDevMode ? [{ debugName: "gridGroupConfig" }] : []));
|
|
10099
10102
|
this.statGroupConfig = computed(() => {
|
|
10100
10103
|
return {
|
|
10101
10104
|
x: 0,
|
|
@@ -10103,13 +10106,13 @@ class AITableRenderer {
|
|
|
10103
10106
|
width: this.containerWidth(),
|
|
10104
10107
|
height: AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT
|
|
10105
10108
|
};
|
|
10106
|
-
}, ...(ngDevMode ? [{ debugName: "statGroupConfig" }] :
|
|
10109
|
+
}, ...(ngDevMode ? [{ debugName: "statGroupConfig" }] : []));
|
|
10107
10110
|
this.scrollTotalHeight = computed(() => {
|
|
10108
10111
|
return Math.max(this.coordinate().totalHeight, this.containerHeight() - AI_TABLE_FIELD_HEAD_HEIGHT);
|
|
10109
|
-
}, ...(ngDevMode ? [{ debugName: "scrollTotalHeight" }] :
|
|
10112
|
+
}, ...(ngDevMode ? [{ debugName: "scrollTotalHeight" }] : []));
|
|
10110
10113
|
this.scrollTotalWidth = computed(() => {
|
|
10111
10114
|
return this.coordinate().totalWidth + AI_TABLE_FIELD_ADD_BUTTON_WIDTH;
|
|
10112
|
-
}, ...(ngDevMode ? [{ debugName: "scrollTotalWidth" }] :
|
|
10115
|
+
}, ...(ngDevMode ? [{ debugName: "scrollTotalWidth" }] : []));
|
|
10113
10116
|
this.frozenCommonGroupConfig = computed(() => {
|
|
10114
10117
|
return {
|
|
10115
10118
|
clipX: 0,
|
|
@@ -10117,7 +10120,7 @@ class AITableRenderer {
|
|
|
10117
10120
|
clipWidth: this.containerWidth(),
|
|
10118
10121
|
clipHeight: this.gridContainerHeight()
|
|
10119
10122
|
};
|
|
10120
|
-
}, ...(ngDevMode ? [{ debugName: "frozenCommonGroupConfig" }] :
|
|
10123
|
+
}, ...(ngDevMode ? [{ debugName: "frozenCommonGroupConfig" }] : []));
|
|
10121
10124
|
this.commonGroupConfig = computed(() => {
|
|
10122
10125
|
return {
|
|
10123
10126
|
clipX: this.frozenAreaWidth() + 1,
|
|
@@ -10125,7 +10128,7 @@ class AITableRenderer {
|
|
|
10125
10128
|
clipWidth: this.cellGroupClipWidth(),
|
|
10126
10129
|
clipHeight: this.gridContainerHeight()
|
|
10127
10130
|
};
|
|
10128
|
-
}, ...(ngDevMode ? [{ debugName: "commonGroupConfig" }] :
|
|
10131
|
+
}, ...(ngDevMode ? [{ debugName: "commonGroupConfig" }] : []));
|
|
10129
10132
|
this.statCommonGroupConfig = computed(() => {
|
|
10130
10133
|
return {
|
|
10131
10134
|
x: AI_TABLE_OFFSET,
|
|
@@ -10134,7 +10137,7 @@ class AITableRenderer {
|
|
|
10134
10137
|
clipWidth: this.cellGroupClipWidth(),
|
|
10135
10138
|
clipHeight: this.gridContainerHeight()
|
|
10136
10139
|
};
|
|
10137
|
-
}, ...(ngDevMode ? [{ debugName: "statCommonGroupConfig" }] :
|
|
10140
|
+
}, ...(ngDevMode ? [{ debugName: "statCommonGroupConfig" }] : []));
|
|
10138
10141
|
this.attachGroupConfig = computed(() => {
|
|
10139
10142
|
return {
|
|
10140
10143
|
clipX: this.frozenAreaWidth() - 1,
|
|
@@ -10142,7 +10145,7 @@ class AITableRenderer {
|
|
|
10142
10145
|
clipWidth: this.containerWidth() - this.frozenAreaWidth(),
|
|
10143
10146
|
clipHeight: this.gridContainerHeight() - AI_TABLE_FIELD_HEAD_HEIGHT
|
|
10144
10147
|
};
|
|
10145
|
-
}, ...(ngDevMode ? [{ debugName: "attachGroupConfig" }] :
|
|
10148
|
+
}, ...(ngDevMode ? [{ debugName: "attachGroupConfig" }] : []));
|
|
10146
10149
|
this.frozenAttachGroupConfig = computed(() => {
|
|
10147
10150
|
return {
|
|
10148
10151
|
clipX: 0,
|
|
@@ -10150,7 +10153,7 @@ class AITableRenderer {
|
|
|
10150
10153
|
clipWidth: this.frozenAreaWidth() + 10,
|
|
10151
10154
|
clipHeight: this.gridContainerHeight() - AI_TABLE_FIELD_HEAD_HEIGHT
|
|
10152
10155
|
};
|
|
10153
|
-
}, ...(ngDevMode ? [{ debugName: "frozenAttachGroupConfig" }] :
|
|
10156
|
+
}, ...(ngDevMode ? [{ debugName: "frozenAttachGroupConfig" }] : []));
|
|
10154
10157
|
this.frozenCoverAttachGroupConfig = computed(() => {
|
|
10155
10158
|
return {
|
|
10156
10159
|
clipX: 0,
|
|
@@ -10158,26 +10161,26 @@ class AITableRenderer {
|
|
|
10158
10161
|
clipWidth: this.frozenAreaWidth(),
|
|
10159
10162
|
clipHeight: this.gridContainerHeight() - AI_TABLE_FIELD_HEAD_HEIGHT
|
|
10160
10163
|
};
|
|
10161
|
-
}, ...(ngDevMode ? [{ debugName: "frozenCoverAttachGroupConfig" }] :
|
|
10164
|
+
}, ...(ngDevMode ? [{ debugName: "frozenCoverAttachGroupConfig" }] : []));
|
|
10162
10165
|
this.offsetYConfig = computed(() => {
|
|
10163
10166
|
const { scrollTop } = this.scrollState();
|
|
10164
10167
|
return {
|
|
10165
10168
|
offsetY: scrollTop
|
|
10166
10169
|
};
|
|
10167
|
-
}, ...(ngDevMode ? [{ debugName: "offsetYConfig" }] :
|
|
10170
|
+
}, ...(ngDevMode ? [{ debugName: "offsetYConfig" }] : []));
|
|
10168
10171
|
this.offsetXConfig = computed(() => {
|
|
10169
10172
|
const { scrollLeft } = this.scrollState();
|
|
10170
10173
|
return {
|
|
10171
10174
|
offsetX: scrollLeft
|
|
10172
10175
|
};
|
|
10173
|
-
}, ...(ngDevMode ? [{ debugName: "offsetXConfig" }] :
|
|
10176
|
+
}, ...(ngDevMode ? [{ debugName: "offsetXConfig" }] : []));
|
|
10174
10177
|
this.offsetConfig = computed(() => {
|
|
10175
10178
|
const { scrollLeft, scrollTop } = this.scrollState();
|
|
10176
10179
|
return {
|
|
10177
10180
|
offsetX: scrollLeft,
|
|
10178
10181
|
offsetY: scrollTop
|
|
10179
10182
|
};
|
|
10180
|
-
}, ...(ngDevMode ? [{ debugName: "offsetConfig" }] :
|
|
10183
|
+
}, ...(ngDevMode ? [{ debugName: "offsetConfig" }] : []));
|
|
10181
10184
|
this.columnFrozenHeadFieldConfig = computed(() => {
|
|
10182
10185
|
const { columnStartIndex, columnStopIndex } = this.visibleRangeInfo();
|
|
10183
10186
|
const { aiTable, coordinate, readonly, maxFields, actions } = this.config();
|
|
@@ -10194,7 +10197,7 @@ class AITableRenderer {
|
|
|
10194
10197
|
readonly,
|
|
10195
10198
|
maxFields
|
|
10196
10199
|
};
|
|
10197
|
-
}, ...(ngDevMode ? [{ debugName: "columnFrozenHeadFieldConfig" }] :
|
|
10200
|
+
}, ...(ngDevMode ? [{ debugName: "columnFrozenHeadFieldConfig" }] : []));
|
|
10198
10201
|
this.columnHeadFieldConfig = computed(() => {
|
|
10199
10202
|
const { columnStartIndex, columnStopIndex } = this.visibleRangeInfo();
|
|
10200
10203
|
const { aiTable, coordinate, readonly, maxFields, actions } = this.config();
|
|
@@ -10211,7 +10214,7 @@ class AITableRenderer {
|
|
|
10211
10214
|
readonly,
|
|
10212
10215
|
maxFields
|
|
10213
10216
|
};
|
|
10214
|
-
}, ...(ngDevMode ? [{ debugName: "columnHeadFieldConfig" }] :
|
|
10217
|
+
}, ...(ngDevMode ? [{ debugName: "columnHeadFieldConfig" }] : []));
|
|
10215
10218
|
this.columnFieldStatsConfig = computed(() => {
|
|
10216
10219
|
return {
|
|
10217
10220
|
...this.columnHeadFieldConfig(),
|
|
@@ -10221,10 +10224,10 @@ class AITableRenderer {
|
|
|
10221
10224
|
height: AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT,
|
|
10222
10225
|
isHoverStatContainer: this.isHoverStatContainer()
|
|
10223
10226
|
};
|
|
10224
|
-
}, ...(ngDevMode ? [{ debugName: "columnFieldStatsConfig" }] :
|
|
10227
|
+
}, ...(ngDevMode ? [{ debugName: "columnFieldStatsConfig" }] : []));
|
|
10225
10228
|
this.xIsScroll = computed(() => {
|
|
10226
10229
|
return this.scrollState().scrollLeft > 0;
|
|
10227
|
-
}, ...(ngDevMode ? [{ debugName: "xIsScroll" }] :
|
|
10230
|
+
}, ...(ngDevMode ? [{ debugName: "xIsScroll" }] : []));
|
|
10228
10231
|
this.statShadowConfig = computed(() => {
|
|
10229
10232
|
return {
|
|
10230
10233
|
width: 8,
|
|
@@ -10233,7 +10236,7 @@ class AITableRenderer {
|
|
|
10233
10236
|
height: AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT,
|
|
10234
10237
|
visible: this.xIsScroll()
|
|
10235
10238
|
};
|
|
10236
|
-
}, ...(ngDevMode ? [{ debugName: "statShadowConfig" }] :
|
|
10239
|
+
}, ...(ngDevMode ? [{ debugName: "statShadowConfig" }] : []));
|
|
10237
10240
|
this.fieldHeadShadowConfig = computed(() => {
|
|
10238
10241
|
return {
|
|
10239
10242
|
width: AI_TABLE_SHADOW_DEFAULT_WIDTH,
|
|
@@ -10242,7 +10245,7 @@ class AITableRenderer {
|
|
|
10242
10245
|
height: AI_TABLE_FIELD_HEAD_HEIGHT,
|
|
10243
10246
|
visible: this.xIsScroll()
|
|
10244
10247
|
};
|
|
10245
|
-
}, ...(ngDevMode ? [{ debugName: "fieldHeadShadowConfig" }] :
|
|
10248
|
+
}, ...(ngDevMode ? [{ debugName: "fieldHeadShadowConfig" }] : []));
|
|
10246
10249
|
this.columnFieldStatsBgConfig = computed(() => {
|
|
10247
10250
|
return {
|
|
10248
10251
|
x: 0,
|
|
@@ -10257,7 +10260,7 @@ class AITableRenderer {
|
|
|
10257
10260
|
listening: true,
|
|
10258
10261
|
coordinate: this.coordinate()
|
|
10259
10262
|
};
|
|
10260
|
-
}, ...(ngDevMode ? [{ debugName: "columnFieldStatsBgConfig" }] :
|
|
10263
|
+
}, ...(ngDevMode ? [{ debugName: "columnFieldStatsBgConfig" }] : []));
|
|
10261
10264
|
this.columnFrozenFieldStatsConfig = computed(() => {
|
|
10262
10265
|
return {
|
|
10263
10266
|
...this.columnHeadFieldConfig(),
|
|
@@ -10269,7 +10272,7 @@ class AITableRenderer {
|
|
|
10269
10272
|
height: AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT,
|
|
10270
10273
|
isHoverStatContainer: this.isHoverStatContainer()
|
|
10271
10274
|
};
|
|
10272
|
-
}, ...(ngDevMode ? [{ debugName: "columnFrozenFieldStatsConfig" }] :
|
|
10275
|
+
}, ...(ngDevMode ? [{ debugName: "columnFrozenFieldStatsConfig" }] : []));
|
|
10273
10276
|
this.cellsConfig = computed(() => {
|
|
10274
10277
|
const { aiTable, readonly, coordinate, references, actions, maxRecords } = this.config();
|
|
10275
10278
|
const keywordsMatchedCells = aiTable.keywordsMatchedCells();
|
|
@@ -10287,7 +10290,7 @@ class AITableRenderer {
|
|
|
10287
10290
|
maxRecords,
|
|
10288
10291
|
keywordsMatchedCells
|
|
10289
10292
|
};
|
|
10290
|
-
}, ...(ngDevMode ? [{ debugName: "cellsConfig" }] :
|
|
10293
|
+
}, ...(ngDevMode ? [{ debugName: "cellsConfig" }] : []));
|
|
10291
10294
|
this.expandRecordConfig = computed(() => {
|
|
10292
10295
|
const { aiTable, coordinate } = this.config();
|
|
10293
10296
|
const { rowStartIndex, rowStopIndex } = this.visibleRangeInfo();
|
|
@@ -10297,14 +10300,14 @@ class AITableRenderer {
|
|
|
10297
10300
|
rowStartIndex,
|
|
10298
10301
|
rowStopIndex
|
|
10299
10302
|
};
|
|
10300
|
-
}, ...(ngDevMode ? [{ debugName: "expandRecordConfig" }] :
|
|
10303
|
+
}, ...(ngDevMode ? [{ debugName: "expandRecordConfig" }] : []));
|
|
10301
10304
|
this.fillHandleConfig = computed(() => {
|
|
10302
10305
|
return {
|
|
10303
10306
|
aiTable: this.config().aiTable,
|
|
10304
10307
|
coordinate: this.coordinate(),
|
|
10305
10308
|
readonly: this.readonly()
|
|
10306
10309
|
};
|
|
10307
|
-
}, ...(ngDevMode ? [{ debugName: "fillHandleConfig" }] :
|
|
10310
|
+
}, ...(ngDevMode ? [{ debugName: "fillHandleConfig" }] : []));
|
|
10308
10311
|
this.isLastSelectedCellInFrozenColumn = computed(() => {
|
|
10309
10312
|
const { aiTable } = this.config();
|
|
10310
10313
|
const selectedCells = Array.from(aiTable.selection().selectedCells);
|
|
@@ -10314,10 +10317,10 @@ class AITableRenderer {
|
|
|
10314
10317
|
const [, fieldId] = lastCell.split(':');
|
|
10315
10318
|
const columnIndex = aiTable.context.visibleColumnsIndexMap().get(fieldId);
|
|
10316
10319
|
return AITable.isFrozenColumn(aiTable, columnIndex);
|
|
10317
|
-
}, ...(ngDevMode ? [{ debugName: "isLastSelectedCellInFrozenColumn" }] :
|
|
10320
|
+
}, ...(ngDevMode ? [{ debugName: "isLastSelectedCellInFrozenColumn" }] : []));
|
|
10318
10321
|
this.activeCellBorderConfig = computed(() => {
|
|
10319
10322
|
return createActiveCellBorder(this.cellsConfig());
|
|
10320
|
-
}, ...(ngDevMode ? [{ debugName: "activeCellBorderConfig" }] :
|
|
10323
|
+
}, ...(ngDevMode ? [{ debugName: "activeCellBorderConfig" }] : []));
|
|
10321
10324
|
this.showExpandCellBorder = computed(() => {
|
|
10322
10325
|
let expandCellBorder = false;
|
|
10323
10326
|
let frozenExpandCellBorder = false;
|
|
@@ -10340,7 +10343,7 @@ class AITableRenderer {
|
|
|
10340
10343
|
expandCellBorder,
|
|
10341
10344
|
frozenExpandCellBorder
|
|
10342
10345
|
};
|
|
10343
|
-
}, ...(ngDevMode ? [{ debugName: "showExpandCellBorder" }] :
|
|
10346
|
+
}, ...(ngDevMode ? [{ debugName: "showExpandCellBorder" }] : []));
|
|
10344
10347
|
}
|
|
10345
10348
|
stageMousemove(e) {
|
|
10346
10349
|
this.koMousemove.emit(e);
|
|
@@ -10363,16 +10366,25 @@ class AITableRenderer {
|
|
|
10363
10366
|
stageMouseleave(e) {
|
|
10364
10367
|
this.koMouseleave.emit(e);
|
|
10365
10368
|
}
|
|
10369
|
+
stageTouchstart(e) {
|
|
10370
|
+
this.koTouchstart.emit(e);
|
|
10371
|
+
}
|
|
10372
|
+
stageTouchmove(e) {
|
|
10373
|
+
this.koTouchmove.emit(e);
|
|
10374
|
+
}
|
|
10375
|
+
stageTouchend(e) {
|
|
10376
|
+
this.koTouchend.emit(e);
|
|
10377
|
+
}
|
|
10366
10378
|
stageWheel(e) {
|
|
10367
10379
|
this.koWheel.emit(e);
|
|
10368
10380
|
}
|
|
10369
10381
|
onStatContainerHover(isHover) {
|
|
10370
10382
|
this.isHoverStatContainer.set(isHover);
|
|
10371
10383
|
}
|
|
10372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10373
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
10384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10385
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableRenderer, isStandalone: true, selector: "ai-table-renderer", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { koMousemove: "koMousemove", koMousedown: "koMousedown", koMouseup: "koMouseup", koContextmenu: "koContextmenu", koWheel: "koWheel", koClick: "koClick", koDblclick: "koDblclick", koMouseleave: "koMouseleave", koTouchstart: "koTouchstart", koTouchmove: "koTouchmove", koTouchend: "koTouchend", onScrollPosition: "onScrollPosition" }, ngImport: i0, template: "<ko-stage\n [config]=\"stageConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n (koWheel)=\"stageWheel($event)\"\n (koTouchstart)=\"stageTouchstart($event)\"\n (koTouchmove)=\"stageTouchmove($event)\"\n (koTouchend)=\"stageTouchend($event)\"\n>\n <ko-layer>\n <ko-group [config]=\"gridGroupConfig()\">\n <!-- \u53F3\u4FA7\u975E\u56FA\u5B9A\u5217\u7684\u533A\u57DF -->\n <ko-group [config]=\"commonGroupConfig()\">\n <!-- \u53F3\u4FA7x,y\u6EDA\u52A8\u533A\u57DF\u7684 cell -->\n <ko-group #commonOffsetGroup [config]=\"offsetConfig()\">\n <ai-table-cells [config]=\"cellsConfig()\"></ai-table-cells>\n <ai-table-placeholder-cells [config]=\"cellsConfig()\"></ai-table-placeholder-cells>\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\"></ai-table-cover-cell-entry>\n <ai-table-groups [config]=\"cellsConfig()\"></ai-table-groups>\n </ko-group>\n\n <!-- \u53F3\u4FA7\u8868\u5934head \u548C \u65B0\u589E\u5217 + \u533A\u57DF -->\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-heads [config]=\"columnHeadFieldConfig()\"></ai-table-column-heads>\n <ai-table-add-field [config]=\"columnHeadFieldConfig()\"></ai-table-add-field>\n </ko-group>\n </ko-group>\n\n <!-- \u5DE6\u4FA7\u56FA\u5B9A\u5217 y\u6EDA\u52A8\u533A\u57DF\u7684cell -->\n <ko-group [config]=\"frozenCommonGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n <ai-table-frozen-cells [config]=\"cellsConfig()\"></ai-table-frozen-cells>\n <ai-table-other-rows [config]=\"cellsConfig()\"></ai-table-other-rows>\n @if (!hiddenIndexColumn()) {\n <ai-table-hover-row-heads [config]=\"cellsConfig()\"></ai-table-hover-row-heads>\n }\n <ai-table-frozen-groups [config]=\"cellsConfig()\"></ai-table-frozen-groups>\n <ai-table-frozen-placeholder-cells [config]=\"cellsConfig()\"></ai-table-frozen-placeholder-cells>\n <ko-group>\n @if (showExpandIcon()) {\n <ai-table-expand-record [config]=\"expandRecordConfig()\"></ai-table-expand-record>\n }\n </ko-group>\n </ko-group>\n </ko-group>\n\n <!-- \u5DE6\u4FA7\u56FA\u5B9A\u5217 \u8868\u5934 + \u8868\u5934\u53F3\u4FA7\u5206\u5272\u9634\u5F71 -->\n <ko-group>\n <ai-table-frozen-column-heads [config]=\"columnFrozenHeadFieldConfig()\"></ai-table-frozen-column-heads>\n <ai-table-shadow [config]=\"fieldHeadShadowConfig()\"></ai-table-shadow>\n </ko-group>\n\n <ko-group [config]=\"attachGroupConfig()\">\n <ko-group [config]=\"offsetConfig()\">\n @if (activeCellBorderConfig().activeCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().activeCellBorder!\"></ko-rect>\n }\n @if (showExpandCellBorder().expandCellBorder) {\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\" [onlyDisplayBorder]=\"true\"></ai-table-cover-cell-entry>\n }\n @if (!isLastSelectedCellInFrozenColumn()) {\n <ai-table-fill-handle [config]=\"fillHandleConfig()\"></ai-table-fill-handle>\n }\n </ko-group>\n </ko-group>\n <ko-group [config]=\"frozenCoverAttachGroupConfig()\">\n <ko-group #frozenCoverAttachOffsetGroup [config]=\"offsetYConfig()\">\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\"></ai-table-cover-cell-entry>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"frozenAttachGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n @if (activeCellBorderConfig().frozenActiveCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().frozenActiveCellBorder!\"></ko-rect>\n }\n @if (showExpandCellBorder().frozenExpandCellBorder) {\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\" [onlyDisplayBorder]=\"true\"></ai-table-cover-cell-entry>\n }\n @if (isLastSelectedCellInFrozenColumn()) {\n <ai-table-fill-handle [config]=\"fillHandleConfig()\"></ai-table-fill-handle>\n }\n </ko-group>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"statGroupConfig()\">\n <ai-table-background [config]=\"columnFieldStatsBgConfig()\"></ai-table-background>\n <ko-group>\n <ai-table-column-stats\n [config]=\"columnFrozenFieldStatsConfig()\"\n (hover)=\"onStatContainerHover($event)\"\n ></ai-table-column-stats>\n </ko-group>\n <ko-group [config]=\"statCommonGroupConfig()\">\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-stats\n [config]=\"columnFieldStatsConfig()\"\n (hover)=\"onStatContainerHover($event)\"\n ></ai-table-column-stats>\n </ko-group>\n </ko-group>\n <ko-group>\n <ai-table-shadow [config]=\"statShadowConfig()\"></ai-table-shadow>\n </ko-group>\n </ko-group>\n </ko-layer>\n</ko-stage>\n\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoStage, selector: "ko-stage", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableColumnHeads, selector: "ai-table-column-heads", inputs: ["config"] }, { kind: "component", type: AITableFrozenColumnHeads, selector: "ai-table-frozen-column-heads", inputs: ["config"] }, { kind: "component", type: AITableCells, selector: "ai-table-cells", inputs: ["config"] }, { kind: "component", type: AITableFrozenCells, selector: "ai-table-frozen-cells", inputs: ["config"] }, { kind: "component", type: AITableFrozenPlaceholderCells, selector: "ai-table-frozen-placeholder-cells", inputs: ["config"] }, { kind: "component", type: AITableCoverCellEntry, selector: "ai-table-cover-cell-entry", inputs: ["config", "onlyDisplayBorder"] }, { kind: "component", type: AITablePlaceholderCells, selector: "ai-table-placeholder-cells", inputs: ["config"] }, { kind: "component", type: AITableAddField, selector: "ai-table-add-field", inputs: ["config"] }, { kind: "component", type: AITableHoverRowHeads, selector: "ai-table-hover-row-heads", inputs: ["config"] }, { kind: "component", type: AITableOtherRows, selector: "ai-table-other-rows", inputs: ["config"] }, { kind: "component", type: AITableFillHandle, selector: "ai-table-fill-handle", inputs: ["config"] }, { kind: "component", type: AITableFieldStats, selector: "ai-table-column-stats", inputs: ["config"], outputs: ["hover"] }, { kind: "component", type: AITableBackground, selector: "ai-table-background", inputs: ["config", "isActive", "isHover"], outputs: ["koClick", "hover", "koMouseenter", "koMouseleave", "isHoverChange"] }, { kind: "component", type: AITableFrozenGroups, selector: "ai-table-frozen-groups", inputs: ["config"] }, { kind: "component", type: AITableGroups, selector: "ai-table-groups", inputs: ["config"] }, { kind: "component", type: AITableShadow, selector: "ai-table-shadow", inputs: ["config"] }, { kind: "component", type: AITableExpandRecord, selector: "ai-table-expand-record", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10374
10386
|
}
|
|
10375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableRenderer, decorators: [{
|
|
10376
10388
|
type: Component,
|
|
10377
10389
|
args: [{ selector: 'ai-table-renderer', imports: [
|
|
10378
10390
|
KoContainer,
|
|
@@ -10396,18 +10408,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
10396
10408
|
AITableShadow,
|
|
10397
10409
|
AITableFrozenGroups,
|
|
10398
10410
|
AITableExpandRecord
|
|
10399
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ko-stage\n [config]=\"stageConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n (koWheel)=\"stageWheel($event)\"\n>\n <ko-layer>\n <ko-group [config]=\"gridGroupConfig()\">\n <!-- \u53F3\u4FA7\u975E\u56FA\u5B9A\u5217\u7684\u533A\u57DF -->\n <ko-group [config]=\"commonGroupConfig()\">\n <!-- \u53F3\u4FA7x,y\u6EDA\u52A8\u533A\u57DF\u7684 cell -->\n <ko-group #commonOffsetGroup [config]=\"offsetConfig()\">\n <ai-table-cells [config]=\"cellsConfig()\"></ai-table-cells>\n <ai-table-placeholder-cells [config]=\"cellsConfig()\"></ai-table-placeholder-cells>\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\"></ai-table-cover-cell-entry>\n <ai-table-groups [config]=\"cellsConfig()\"></ai-table-groups>\n </ko-group>\n\n <!-- \u53F3\u4FA7\u8868\u5934head \u548C \u65B0\u589E\u5217 + \u533A\u57DF -->\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-heads [config]=\"columnHeadFieldConfig()\"></ai-table-column-heads>\n <ai-table-add-field [config]=\"columnHeadFieldConfig()\"></ai-table-add-field>\n </ko-group>\n </ko-group>\n\n <!-- \u5DE6\u4FA7\u56FA\u5B9A\u5217 y\u6EDA\u52A8\u533A\u57DF\u7684cell -->\n <ko-group [config]=\"frozenCommonGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n <ai-table-frozen-cells [config]=\"cellsConfig()\"></ai-table-frozen-cells>\n <ai-table-other-rows [config]=\"cellsConfig()\"></ai-table-other-rows>\n @if (!hiddenIndexColumn()) {\n <ai-table-hover-row-heads [config]=\"cellsConfig()\"></ai-table-hover-row-heads>\n }\n <ai-table-frozen-groups [config]=\"cellsConfig()\"></ai-table-frozen-groups>\n <ai-table-frozen-placeholder-cells [config]=\"cellsConfig()\"></ai-table-frozen-placeholder-cells>\n <ko-group>\n @if (showExpandIcon()) {\n <ai-table-expand-record [config]=\"expandRecordConfig()\"></ai-table-expand-record>\n }\n </ko-group>\n </ko-group>\n </ko-group>\n\n <!-- \u5DE6\u4FA7\u56FA\u5B9A\u5217 \u8868\u5934 + \u8868\u5934\u53F3\u4FA7\u5206\u5272\u9634\u5F71 -->\n <ko-group>\n <ai-table-frozen-column-heads [config]=\"columnFrozenHeadFieldConfig()\"></ai-table-frozen-column-heads>\n <ai-table-shadow [config]=\"fieldHeadShadowConfig()\"></ai-table-shadow>\n </ko-group>\n\n <ko-group [config]=\"attachGroupConfig()\">\n <ko-group [config]=\"offsetConfig()\">\n @if (activeCellBorderConfig().activeCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().activeCellBorder!\"></ko-rect>\n }\n @if (showExpandCellBorder().expandCellBorder) {\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\" [onlyDisplayBorder]=\"true\"></ai-table-cover-cell-entry>\n }\n @if (!isLastSelectedCellInFrozenColumn()) {\n <ai-table-fill-handle [config]=\"fillHandleConfig()\"></ai-table-fill-handle>\n }\n </ko-group>\n </ko-group>\n <ko-group [config]=\"frozenCoverAttachGroupConfig()\">\n <ko-group #frozenCoverAttachOffsetGroup [config]=\"offsetYConfig()\">\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\"></ai-table-cover-cell-entry>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"frozenAttachGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n @if (activeCellBorderConfig().frozenActiveCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().frozenActiveCellBorder!\"></ko-rect>\n }\n @if (showExpandCellBorder().frozenExpandCellBorder) {\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\" [onlyDisplayBorder]=\"true\"></ai-table-cover-cell-entry>\n }\n @if (isLastSelectedCellInFrozenColumn()) {\n <ai-table-fill-handle [config]=\"fillHandleConfig()\"></ai-table-fill-handle>\n }\n </ko-group>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"statGroupConfig()\">\n <ai-table-background [config]=\"columnFieldStatsBgConfig()\"></ai-table-background>\n <ko-group>\n <ai-table-column-stats\n [config]=\"columnFrozenFieldStatsConfig()\"\n (hover)=\"onStatContainerHover($event)\"\n ></ai-table-column-stats>\n </ko-group>\n <ko-group [config]=\"statCommonGroupConfig()\">\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-stats\n [config]=\"columnFieldStatsConfig()\"\n (hover)=\"onStatContainerHover($event)\"\n ></ai-table-column-stats>\n </ko-group>\n </ko-group>\n <ko-group>\n <ai-table-shadow [config]=\"statShadowConfig()\"></ai-table-shadow>\n </ko-group>\n </ko-group>\n </ko-layer>\n</ko-stage>\n\n<ng-content></ng-content>\n" }]
|
|
10400
|
-
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], koMousemove: [{ type: i0.Output, args: ["koMousemove"] }], koMousedown: [{ type: i0.Output, args: ["koMousedown"] }], koMouseup: [{ type: i0.Output, args: ["koMouseup"] }], koContextmenu: [{ type: i0.Output, args: ["koContextmenu"] }], koWheel: [{ type: i0.Output, args: ["koWheel"] }], koClick: [{ type: i0.Output, args: ["koClick"] }], koDblclick: [{ type: i0.Output, args: ["koDblclick"] }], koMouseleave: [{ type: i0.Output, args: ["koMouseleave"] }], onScrollPosition: [{ type: i0.Output, args: ["onScrollPosition"] }] } });
|
|
10411
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ko-stage\n [config]=\"stageConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n (koWheel)=\"stageWheel($event)\"\n (koTouchstart)=\"stageTouchstart($event)\"\n (koTouchmove)=\"stageTouchmove($event)\"\n (koTouchend)=\"stageTouchend($event)\"\n>\n <ko-layer>\n <ko-group [config]=\"gridGroupConfig()\">\n <!-- \u53F3\u4FA7\u975E\u56FA\u5B9A\u5217\u7684\u533A\u57DF -->\n <ko-group [config]=\"commonGroupConfig()\">\n <!-- \u53F3\u4FA7x,y\u6EDA\u52A8\u533A\u57DF\u7684 cell -->\n <ko-group #commonOffsetGroup [config]=\"offsetConfig()\">\n <ai-table-cells [config]=\"cellsConfig()\"></ai-table-cells>\n <ai-table-placeholder-cells [config]=\"cellsConfig()\"></ai-table-placeholder-cells>\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\"></ai-table-cover-cell-entry>\n <ai-table-groups [config]=\"cellsConfig()\"></ai-table-groups>\n </ko-group>\n\n <!-- \u53F3\u4FA7\u8868\u5934head \u548C \u65B0\u589E\u5217 + \u533A\u57DF -->\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-heads [config]=\"columnHeadFieldConfig()\"></ai-table-column-heads>\n <ai-table-add-field [config]=\"columnHeadFieldConfig()\"></ai-table-add-field>\n </ko-group>\n </ko-group>\n\n <!-- \u5DE6\u4FA7\u56FA\u5B9A\u5217 y\u6EDA\u52A8\u533A\u57DF\u7684cell -->\n <ko-group [config]=\"frozenCommonGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n <ai-table-frozen-cells [config]=\"cellsConfig()\"></ai-table-frozen-cells>\n <ai-table-other-rows [config]=\"cellsConfig()\"></ai-table-other-rows>\n @if (!hiddenIndexColumn()) {\n <ai-table-hover-row-heads [config]=\"cellsConfig()\"></ai-table-hover-row-heads>\n }\n <ai-table-frozen-groups [config]=\"cellsConfig()\"></ai-table-frozen-groups>\n <ai-table-frozen-placeholder-cells [config]=\"cellsConfig()\"></ai-table-frozen-placeholder-cells>\n <ko-group>\n @if (showExpandIcon()) {\n <ai-table-expand-record [config]=\"expandRecordConfig()\"></ai-table-expand-record>\n }\n </ko-group>\n </ko-group>\n </ko-group>\n\n <!-- \u5DE6\u4FA7\u56FA\u5B9A\u5217 \u8868\u5934 + \u8868\u5934\u53F3\u4FA7\u5206\u5272\u9634\u5F71 -->\n <ko-group>\n <ai-table-frozen-column-heads [config]=\"columnFrozenHeadFieldConfig()\"></ai-table-frozen-column-heads>\n <ai-table-shadow [config]=\"fieldHeadShadowConfig()\"></ai-table-shadow>\n </ko-group>\n\n <ko-group [config]=\"attachGroupConfig()\">\n <ko-group [config]=\"offsetConfig()\">\n @if (activeCellBorderConfig().activeCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().activeCellBorder!\"></ko-rect>\n }\n @if (showExpandCellBorder().expandCellBorder) {\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\" [onlyDisplayBorder]=\"true\"></ai-table-cover-cell-entry>\n }\n @if (!isLastSelectedCellInFrozenColumn()) {\n <ai-table-fill-handle [config]=\"fillHandleConfig()\"></ai-table-fill-handle>\n }\n </ko-group>\n </ko-group>\n <ko-group [config]=\"frozenCoverAttachGroupConfig()\">\n <ko-group #frozenCoverAttachOffsetGroup [config]=\"offsetYConfig()\">\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\"></ai-table-cover-cell-entry>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"frozenAttachGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n @if (activeCellBorderConfig().frozenActiveCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().frozenActiveCellBorder!\"></ko-rect>\n }\n @if (showExpandCellBorder().frozenExpandCellBorder) {\n <ai-table-cover-cell-entry [config]=\"cellsConfig()\" [onlyDisplayBorder]=\"true\"></ai-table-cover-cell-entry>\n }\n @if (isLastSelectedCellInFrozenColumn()) {\n <ai-table-fill-handle [config]=\"fillHandleConfig()\"></ai-table-fill-handle>\n }\n </ko-group>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"statGroupConfig()\">\n <ai-table-background [config]=\"columnFieldStatsBgConfig()\"></ai-table-background>\n <ko-group>\n <ai-table-column-stats\n [config]=\"columnFrozenFieldStatsConfig()\"\n (hover)=\"onStatContainerHover($event)\"\n ></ai-table-column-stats>\n </ko-group>\n <ko-group [config]=\"statCommonGroupConfig()\">\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-stats\n [config]=\"columnFieldStatsConfig()\"\n (hover)=\"onStatContainerHover($event)\"\n ></ai-table-column-stats>\n </ko-group>\n </ko-group>\n <ko-group>\n <ai-table-shadow [config]=\"statShadowConfig()\"></ai-table-shadow>\n </ko-group>\n </ko-group>\n </ko-layer>\n</ko-stage>\n\n<ng-content></ng-content>\n" }]
|
|
10412
|
+
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], koMousemove: [{ type: i0.Output, args: ["koMousemove"] }], koMousedown: [{ type: i0.Output, args: ["koMousedown"] }], koMouseup: [{ type: i0.Output, args: ["koMouseup"] }], koContextmenu: [{ type: i0.Output, args: ["koContextmenu"] }], koWheel: [{ type: i0.Output, args: ["koWheel"] }], koClick: [{ type: i0.Output, args: ["koClick"] }], koDblclick: [{ type: i0.Output, args: ["koDblclick"] }], koMouseleave: [{ type: i0.Output, args: ["koMouseleave"] }], koTouchstart: [{ type: i0.Output, args: ["koTouchstart"] }], koTouchmove: [{ type: i0.Output, args: ["koTouchmove"] }], koTouchend: [{ type: i0.Output, args: ["koTouchend"] }], onScrollPosition: [{ type: i0.Output, args: ["onScrollPosition"] }] } });
|
|
10401
10413
|
|
|
10402
10414
|
class AITableCellRate extends CoverCellBase {
|
|
10403
10415
|
constructor() {
|
|
10404
10416
|
super(...arguments);
|
|
10405
|
-
this.pointerX = signal(0, ...(ngDevMode ? [{ debugName: "pointerX" }] :
|
|
10406
|
-
this.pointerY = signal(0, ...(ngDevMode ? [{ debugName: "pointerY" }] :
|
|
10407
|
-
this.resetStatus = signal(false, ...(ngDevMode ? [{ debugName: "resetStatus" }] :
|
|
10417
|
+
this.pointerX = signal(0, ...(ngDevMode ? [{ debugName: "pointerX" }] : []));
|
|
10418
|
+
this.pointerY = signal(0, ...(ngDevMode ? [{ debugName: "pointerY" }] : []));
|
|
10419
|
+
this.resetStatus = signal(false, ...(ngDevMode ? [{ debugName: "resetStatus" }] : []));
|
|
10408
10420
|
this.readonly = computed(() => {
|
|
10409
10421
|
return this.config()?.readonly;
|
|
10410
|
-
}, ...(ngDevMode ? [{ debugName: "readonly" }] :
|
|
10422
|
+
}, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
10411
10423
|
this.whiteBgConfig = computed(() => {
|
|
10412
10424
|
const { aiTable, render, field, recordId, coordinate } = this.config();
|
|
10413
10425
|
const pointPosition = aiTable.context.pointPosition();
|
|
@@ -10431,7 +10443,7 @@ class AITableCellRate extends CoverCellBase {
|
|
|
10431
10443
|
recordId
|
|
10432
10444
|
})
|
|
10433
10445
|
};
|
|
10434
|
-
}, ...(ngDevMode ? [{ debugName: "whiteBgConfig" }] :
|
|
10446
|
+
}, ...(ngDevMode ? [{ debugName: "whiteBgConfig" }] : []));
|
|
10435
10447
|
this.starConfigs = computed(() => {
|
|
10436
10448
|
const { render, field, recordId, readonly, aiTable, coordinate } = this.config();
|
|
10437
10449
|
const { x, columnWidth, transformValue } = render;
|
|
@@ -10485,7 +10497,7 @@ class AITableCellRate extends CoverCellBase {
|
|
|
10485
10497
|
})
|
|
10486
10498
|
};
|
|
10487
10499
|
});
|
|
10488
|
-
}, ...(ngDevMode ? [{ debugName: "starConfigs" }] :
|
|
10500
|
+
}, ...(ngDevMode ? [{ debugName: "starConfigs" }] : []));
|
|
10489
10501
|
}
|
|
10490
10502
|
static { this.fieldType = AITableFieldType.rate; }
|
|
10491
10503
|
koMousemove(e) {
|
|
@@ -10523,8 +10535,8 @@ class AITableCellRate extends CoverCellBase {
|
|
|
10523
10535
|
]);
|
|
10524
10536
|
}
|
|
10525
10537
|
}
|
|
10526
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10527
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
10538
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10539
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCellRate, isStandalone: true, selector: "ai-table-rate", usesInheritance: true, ngImport: i0, template: `
|
|
10528
10540
|
@if (!readonly()) {
|
|
10529
10541
|
<ko-rect [config]="whiteBgConfig()" (koMousemove)="koMousemove($event)"></ko-rect>
|
|
10530
10542
|
}
|
|
@@ -10533,7 +10545,7 @@ class AITableCellRate extends CoverCellBase {
|
|
|
10533
10545
|
}
|
|
10534
10546
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10535
10547
|
}
|
|
10536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellRate, decorators: [{
|
|
10537
10549
|
type: Component,
|
|
10538
10550
|
args: [{
|
|
10539
10551
|
selector: 'ai-table-rate',
|
|
@@ -10555,18 +10567,18 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10555
10567
|
super(...arguments);
|
|
10556
10568
|
this.readonly = computed(() => {
|
|
10557
10569
|
return this.config()?.readonly;
|
|
10558
|
-
}, ...(ngDevMode ? [{ debugName: "readonly" }] :
|
|
10559
|
-
this.dragPointerX = signal(null, ...(ngDevMode ? [{ debugName: "dragPointerX" }] :
|
|
10570
|
+
}, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
10571
|
+
this.dragPointerX = signal(null, ...(ngDevMode ? [{ debugName: "dragPointerX" }] : []));
|
|
10560
10572
|
this.railWidth = computed(() => {
|
|
10561
10573
|
const { columnWidth } = this.config().render;
|
|
10562
10574
|
return columnWidth - 2 * AI_TABLE_CELL_PADDING - AI_TABLE_PROGRESS_TEXT_WIDTH;
|
|
10563
|
-
}, ...(ngDevMode ? [{ debugName: "railWidth" }] :
|
|
10575
|
+
}, ...(ngDevMode ? [{ debugName: "railWidth" }] : []));
|
|
10564
10576
|
this.trackWidth = computed(() => {
|
|
10565
10577
|
return (this.progressValue() / 100) * this.railWidth();
|
|
10566
|
-
}, ...(ngDevMode ? [{ debugName: "trackWidth" }] :
|
|
10578
|
+
}, ...(ngDevMode ? [{ debugName: "trackWidth" }] : []));
|
|
10567
10579
|
this.pointerWidth = AI_TABLE_PROGRESS_BAR_POINTER_WIDTH;
|
|
10568
10580
|
this.progressOffsetY = (AI_TABLE_ROW_BLANK_HEIGHT - AI_TABLE_PROGRESS_BAR_HEIGHT) / 2 + AI_TABLE_OFFSET;
|
|
10569
|
-
this.dragProgressValue = signal(null, ...(ngDevMode ? [{ debugName: "dragProgressValue" }] :
|
|
10581
|
+
this.dragProgressValue = signal(null, ...(ngDevMode ? [{ debugName: "dragProgressValue" }] : []));
|
|
10570
10582
|
this.progressValue = computed(() => {
|
|
10571
10583
|
const dragValue = this.dragProgressValue();
|
|
10572
10584
|
if (dragValue !== null) {
|
|
@@ -10578,7 +10590,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10578
10590
|
return 0;
|
|
10579
10591
|
}
|
|
10580
10592
|
return transformValue;
|
|
10581
|
-
}, ...(ngDevMode ? [{ debugName: "progressValue" }] :
|
|
10593
|
+
}, ...(ngDevMode ? [{ debugName: "progressValue" }] : []));
|
|
10582
10594
|
this.whiteBgConfig = computed(() => {
|
|
10583
10595
|
const { aiTable, render, field, recordId, coordinate } = this.config();
|
|
10584
10596
|
const pointPosition = aiTable.context.pointPosition();
|
|
@@ -10601,7 +10613,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10601
10613
|
recordId
|
|
10602
10614
|
})
|
|
10603
10615
|
};
|
|
10604
|
-
}, ...(ngDevMode ? [{ debugName: "whiteBgConfig" }] :
|
|
10616
|
+
}, ...(ngDevMode ? [{ debugName: "whiteBgConfig" }] : []));
|
|
10605
10617
|
this.railConfig = computed(() => {
|
|
10606
10618
|
const { render, field, recordId } = this.config();
|
|
10607
10619
|
const { x } = render;
|
|
@@ -10619,7 +10631,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10619
10631
|
mouseStyle: this.readonly() ? 'default' : 'pointer'
|
|
10620
10632
|
})
|
|
10621
10633
|
};
|
|
10622
|
-
}, ...(ngDevMode ? [{ debugName: "railConfig" }] :
|
|
10634
|
+
}, ...(ngDevMode ? [{ debugName: "railConfig" }] : []));
|
|
10623
10635
|
this.trackConfig = computed(() => {
|
|
10624
10636
|
const { render, field, recordId } = this.config();
|
|
10625
10637
|
const { x } = render;
|
|
@@ -10637,7 +10649,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10637
10649
|
mouseStyle: this.readonly() ? 'default' : 'pointer'
|
|
10638
10650
|
})
|
|
10639
10651
|
};
|
|
10640
|
-
}, ...(ngDevMode ? [{ debugName: "trackConfig" }] :
|
|
10652
|
+
}, ...(ngDevMode ? [{ debugName: "trackConfig" }] : []));
|
|
10641
10653
|
this.pointerConfig = computed(() => {
|
|
10642
10654
|
const { render, field, recordId } = this.config();
|
|
10643
10655
|
const { x } = render;
|
|
@@ -10676,7 +10688,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10676
10688
|
mouseStyle: this.readonly() ? 'default' : 'pointer'
|
|
10677
10689
|
})
|
|
10678
10690
|
};
|
|
10679
|
-
}, ...(ngDevMode ? [{ debugName: "pointerConfig" }] :
|
|
10691
|
+
}, ...(ngDevMode ? [{ debugName: "pointerConfig" }] : []));
|
|
10680
10692
|
this.textConfig = computed(() => {
|
|
10681
10693
|
const { render, field, recordId } = this.config();
|
|
10682
10694
|
const { x } = render;
|
|
@@ -10695,7 +10707,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10695
10707
|
recordId
|
|
10696
10708
|
})
|
|
10697
10709
|
};
|
|
10698
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
10710
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
10699
10711
|
}
|
|
10700
10712
|
static { this.fieldType = AITableFieldType.progress; }
|
|
10701
10713
|
calculatePercentage(clickX) {
|
|
@@ -10778,8 +10790,8 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10778
10790
|
]);
|
|
10779
10791
|
}
|
|
10780
10792
|
}
|
|
10781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10782
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
10793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellProgress, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10794
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCellProgress, isStandalone: true, selector: "ai-table-progress", usesInheritance: true, ngImport: i0, template: `
|
|
10783
10795
|
@if (!readonly()) {
|
|
10784
10796
|
<ko-rect [config]="whiteBgConfig()"></ko-rect>
|
|
10785
10797
|
}
|
|
@@ -10794,7 +10806,7 @@ class AITableCellProgress extends CoverCellBase {
|
|
|
10794
10806
|
<ko-text [config]="textConfig()"></ko-text>
|
|
10795
10807
|
`, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10796
10808
|
}
|
|
10797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellProgress, decorators: [{
|
|
10798
10810
|
type: Component,
|
|
10799
10811
|
args: [{
|
|
10800
10812
|
selector: 'ai-table-progress',
|
|
@@ -10824,7 +10836,7 @@ class AITableCellCheckbox extends CoverCellBase {
|
|
|
10824
10836
|
const { render } = this.config();
|
|
10825
10837
|
const { transformValue } = render;
|
|
10826
10838
|
return !isEmpty(transformValue) && !!transformValue;
|
|
10827
|
-
}, ...(ngDevMode ? [{ debugName: "isChecked" }] :
|
|
10839
|
+
}, ...(ngDevMode ? [{ debugName: "isChecked" }] : []));
|
|
10828
10840
|
this.checkbox = computed(() => {
|
|
10829
10841
|
const { render, field, recordId, readonly } = this.config();
|
|
10830
10842
|
if (render) {
|
|
@@ -10848,7 +10860,7 @@ class AITableCellCheckbox extends CoverCellBase {
|
|
|
10848
10860
|
};
|
|
10849
10861
|
}
|
|
10850
10862
|
return null;
|
|
10851
|
-
}, ...(ngDevMode ? [{ debugName: "checkbox" }] :
|
|
10863
|
+
}, ...(ngDevMode ? [{ debugName: "checkbox" }] : []));
|
|
10852
10864
|
}
|
|
10853
10865
|
static { this.fieldType = AITableFieldType.checkbox; }
|
|
10854
10866
|
switchChecked() {
|
|
@@ -10860,14 +10872,14 @@ class AITableCellCheckbox extends CoverCellBase {
|
|
|
10860
10872
|
}
|
|
10861
10873
|
]);
|
|
10862
10874
|
}
|
|
10863
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10864
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10876
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AITableCellCheckbox, isStandalone: true, selector: "ai-table-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
10865
10877
|
<ko-group>
|
|
10866
10878
|
<ai-table-icon [config]="checkbox()" (koClick)="switchChecked()"></ai-table-icon>
|
|
10867
10879
|
</ko-group>
|
|
10868
10880
|
`, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10869
10881
|
}
|
|
10870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellCheckbox, decorators: [{
|
|
10871
10883
|
type: Component,
|
|
10872
10884
|
args: [{
|
|
10873
10885
|
selector: 'ai-table-checkbox',
|
|
@@ -10892,7 +10904,7 @@ class AITableCellText extends CoverCellBase {
|
|
|
10892
10904
|
fieldId: field._id,
|
|
10893
10905
|
recordId
|
|
10894
10906
|
});
|
|
10895
|
-
}, ...(ngDevMode ? [{ debugName: "cellName" }] :
|
|
10907
|
+
}, ...(ngDevMode ? [{ debugName: "cellName" }] : []));
|
|
10896
10908
|
this.expandBorderConfig = computed(() => {
|
|
10897
10909
|
const { render, field, recordId, readonly, isExpand } = this.config();
|
|
10898
10910
|
const { columnWidth } = render;
|
|
@@ -10911,7 +10923,7 @@ class AITableCellText extends CoverCellBase {
|
|
|
10911
10923
|
};
|
|
10912
10924
|
}
|
|
10913
10925
|
return null;
|
|
10914
|
-
}, ...(ngDevMode ? [{ debugName: "expandBorderConfig" }] :
|
|
10926
|
+
}, ...(ngDevMode ? [{ debugName: "expandBorderConfig" }] : []));
|
|
10915
10927
|
this.scrollConfig = computed(() => {
|
|
10916
10928
|
const { render, field, recordId, readonly, isExpand, coordinate } = this.config();
|
|
10917
10929
|
const { columnWidth } = render;
|
|
@@ -10931,7 +10943,7 @@ class AITableCellText extends CoverCellBase {
|
|
|
10931
10943
|
contentNotScrollbar: false,
|
|
10932
10944
|
bgName: this.cellName()
|
|
10933
10945
|
};
|
|
10934
|
-
}, ...(ngDevMode ? [{ debugName: "scrollConfig" }] :
|
|
10946
|
+
}, ...(ngDevMode ? [{ debugName: "scrollConfig" }] : []));
|
|
10935
10947
|
this.expandTextBounds = computed(() => {
|
|
10936
10948
|
const textRender = this.textString();
|
|
10937
10949
|
const render = this.config()?.render;
|
|
@@ -10958,11 +10970,11 @@ class AITableCellText extends CoverCellBase {
|
|
|
10958
10970
|
...text,
|
|
10959
10971
|
height: text.height + AI_TABLE_CELL_PADDING + AI_TABLE_CELL_LINE_BORDER
|
|
10960
10972
|
};
|
|
10961
|
-
}, ...(ngDevMode ? [{ debugName: "expandTextBounds" }] :
|
|
10973
|
+
}, ...(ngDevMode ? [{ debugName: "expandTextBounds" }] : []));
|
|
10962
10974
|
this.textMaxWidth = computed(() => {
|
|
10963
10975
|
const { columnWidth } = this.config()?.render;
|
|
10964
10976
|
return columnWidth - AI_TABLE_CELL_PADDING - AI_TABLE_CELL_PADDING;
|
|
10965
|
-
}, ...(ngDevMode ? [{ debugName: "textMaxWidth" }] :
|
|
10977
|
+
}, ...(ngDevMode ? [{ debugName: "textMaxWidth" }] : []));
|
|
10966
10978
|
this.textString = computed(() => {
|
|
10967
10979
|
const { transformValue } = this.config()?.render;
|
|
10968
10980
|
let textRender = transformValue;
|
|
@@ -10970,18 +10982,18 @@ class AITableCellText extends CoverCellBase {
|
|
|
10970
10982
|
return;
|
|
10971
10983
|
}
|
|
10972
10984
|
return textRender.replace(/\r|\n/g, ' ');
|
|
10973
|
-
}, ...(ngDevMode ? [{ debugName: "textString" }] :
|
|
10985
|
+
}, ...(ngDevMode ? [{ debugName: "textString" }] : []));
|
|
10974
10986
|
this.height = computed(() => {
|
|
10975
10987
|
const { height } = this.expandTextBounds() || { height: 0 };
|
|
10976
10988
|
return Math.min(Math.max(height, this.config().render.rowHeight - AI_TABLE_CELL_LINE_BORDER || AI_TABLE_ROW_BLANK_HEIGHT), 146);
|
|
10977
|
-
}, ...(ngDevMode ? [{ debugName: "height" }] :
|
|
10989
|
+
}, ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
10978
10990
|
this.startY = computed(() => {
|
|
10979
10991
|
const { y, rowHeight } = this.config()?.render;
|
|
10980
10992
|
return (y +
|
|
10981
10993
|
(AI_TABLE_ROW_HEIGHT - DEFAULT_FONT_SIZE) / 2 -
|
|
10982
10994
|
(DEFAULT_FONT_SIZE * (AI_TABLE_TEXT_LINE_HEIGHT - 1)) / 2 +
|
|
10983
10995
|
AI_TABLE_CELL_LINE_BORDER);
|
|
10984
|
-
}, ...(ngDevMode ? [{ debugName: "startY" }] :
|
|
10996
|
+
}, ...(ngDevMode ? [{ debugName: "startY" }] : []));
|
|
10985
10997
|
this.expandTextConfig = computed(() => {
|
|
10986
10998
|
const render = this.config()?.render;
|
|
10987
10999
|
if (render) {
|
|
@@ -11018,7 +11030,7 @@ class AITableCellText extends CoverCellBase {
|
|
|
11018
11030
|
};
|
|
11019
11031
|
}
|
|
11020
11032
|
return;
|
|
11021
|
-
}, ...(ngDevMode ? [{ debugName: "expandTextConfig" }] :
|
|
11033
|
+
}, ...(ngDevMode ? [{ debugName: "expandTextConfig" }] : []));
|
|
11022
11034
|
this.textConfig = computed(() => {
|
|
11023
11035
|
const render = this.config()?.render;
|
|
11024
11036
|
if (render) {
|
|
@@ -11043,7 +11055,7 @@ class AITableCellText extends CoverCellBase {
|
|
|
11043
11055
|
};
|
|
11044
11056
|
}
|
|
11045
11057
|
return;
|
|
11046
|
-
}, ...(ngDevMode ? [{ debugName: "textConfig" }] :
|
|
11058
|
+
}, ...(ngDevMode ? [{ debugName: "textConfig" }] : []));
|
|
11047
11059
|
effect(() => {
|
|
11048
11060
|
const height = this.height();
|
|
11049
11061
|
if (this.isExpand()) {
|
|
@@ -11055,8 +11067,8 @@ class AITableCellText extends CoverCellBase {
|
|
|
11055
11067
|
}
|
|
11056
11068
|
});
|
|
11057
11069
|
}
|
|
11058
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11059
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
11070
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellText, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11071
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableCellText, isStandalone: true, selector: "ai-table-single-text", usesInheritance: true, ngImport: i0, template: `
|
|
11060
11072
|
<ko-group>
|
|
11061
11073
|
@if (isExpand()) {
|
|
11062
11074
|
<ko-group>
|
|
@@ -11081,7 +11093,7 @@ class AITableCellText extends CoverCellBase {
|
|
|
11081
11093
|
</ko-group>
|
|
11082
11094
|
`, isInline: true, dependencies: [{ kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableScrollableGroup, selector: "ai-table-scrollable-group", inputs: ["config", "contentTemplate", "parentContainer"], outputs: ["scrollPosition"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11083
11095
|
}
|
|
11084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableCellText, decorators: [{
|
|
11085
11097
|
type: Component,
|
|
11086
11098
|
args: [{
|
|
11087
11099
|
selector: 'ai-table-single-text',
|
|
@@ -11902,8 +11914,8 @@ class NumberCellEditorComponent extends AbstractEditCellEditor {
|
|
|
11902
11914
|
super.update();
|
|
11903
11915
|
this.closePopover();
|
|
11904
11916
|
}
|
|
11905
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11906
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
11917
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: NumberCellEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
11918
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: NumberCellEditorComponent, isStandalone: true, selector: "number-cell-editor", host: { classAttribute: "number-cell-editor" }, usesInheritance: true, ngImport: i0, template: `<thy-input-number
|
|
11907
11919
|
class="h-100"
|
|
11908
11920
|
[thyAutoFocus]="autoFocus()"
|
|
11909
11921
|
[thyShowStepControls]="false"
|
|
@@ -11912,7 +11924,7 @@ class NumberCellEditorComponent extends AbstractEditCellEditor {
|
|
|
11912
11924
|
(thyBlur)="updateValue()"
|
|
11913
11925
|
/> `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ThyEnterDirective, selector: "[thyEnter]", outputs: ["thyEnter"] }, { kind: "component", type: ThyInputNumber, selector: "thy-input-number", inputs: ["thyAutoFocus", "thyPlaceholder", "thyDisabled", "thyMax", "thyMin", "thyStep", "thyShowStepControls", "thyStepDelay", "thySize", "thyPrecision", "thySuffix"], outputs: ["thyBlur", "thyFocus", "thyStepChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11914
11926
|
}
|
|
11915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: NumberCellEditorComponent, decorators: [{
|
|
11916
11928
|
type: Component,
|
|
11917
11929
|
args: [{
|
|
11918
11930
|
selector: 'number-cell-editor',
|
|
@@ -11934,17 +11946,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
11934
11946
|
|
|
11935
11947
|
class SelectOptionComponent {
|
|
11936
11948
|
constructor() {
|
|
11937
|
-
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] :
|
|
11938
|
-
this.displayOption = input.required(...(ngDevMode ? [{ debugName: "displayOption" }] :
|
|
11949
|
+
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
11950
|
+
this.displayOption = input.required(...(ngDevMode ? [{ debugName: "displayOption" }] : []));
|
|
11939
11951
|
this.optionStyle = computed(() => {
|
|
11940
11952
|
return this.field().settings.option_style || AITableSelectOptionStyle.text;
|
|
11941
|
-
}, ...(ngDevMode ? [{ debugName: "optionStyle" }] :
|
|
11953
|
+
}, ...(ngDevMode ? [{ debugName: "optionStyle" }] : []));
|
|
11942
11954
|
this.AITableSelectOptionStyle = AITableSelectOptionStyle;
|
|
11943
11955
|
}
|
|
11944
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11945
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
11956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11957
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: SelectOptionComponent, isStandalone: true, selector: "select-option", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, displayOption: { classPropertyName: "displayOption", publicName: "displayOption", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.select-option-tag": "optionStyle() === AITableSelectOptionStyle.tag" }, classAttribute: "select-option thy-text" }, ngImport: i0, template: "@if (displayOption(); as displayOption) {\n @switch (optionStyle()) {\n @case (AITableSelectOptionStyle.dot) {\n @if (displayOption.bg_color || displayOption.color; as color) {\n <thy-dot [thyColor]=\"color\" [thySize]=\"'md'\" class=\"mr-2\"></thy-dot>\n }\n <span thyFlexibleText [thyTooltipContent]=\"displayOption.text\">{{ displayOption.text }}</span>\n }\n @case (AITableSelectOptionStyle.tag) {\n @if (displayOption.bg_color || displayOption.color || 'default'; as color) {\n <thy-tag thyTheme=\"fill\" thyShape=\"pill\" [thyColor]=\"color\">\n @if (displayOption['icon']) {\n <thy-icon class=\"text-white\" [thyIconName]=\"displayOption['icon']\"></thy-icon>\n }\n <span thyFlexibleText [thyTooltipContent]=\"displayOption.text\">{{ displayOption.text }}</span>\n </thy-tag>\n }\n }\n @case (AITableSelectOptionStyle.piece) {\n @if (displayOption.bg_color || displayOption.color; as color) {\n <thy-dot thyShape=\"square\" [thyColor]=\"color\" [thySize]=\"'md'\" class=\"mr-2\"></thy-dot>\n }\n <span thyFlexibleText [thyTooltipContent]=\"displayOption.text\">{{ displayOption.text }}</span>\n }\n @default {\n @if (displayOption['icon']) {\n <thy-icon [thyIconName]=\"displayOption['icon']\" [style.color]=\"displayOption.color\"></thy-icon>\n }\n <span thyFlexibleText [thyTooltipContent]=\"displayOption.text\">{{ displayOption.text }}</span>\n }\n }\n}\n", dependencies: [{ kind: "component", type: ThyTag, selector: "thy-tag,[thyTag]", inputs: ["thyTag", "thyShape", "thyColor", "thyTheme", "thySize", "thyHoverable"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "ngmodule", type: ThyTooltipModule }, { kind: "component", type: ThyDot, selector: "thy-dot,[thy-dot],[thyDot]", inputs: ["thyColor", "thySize", "thyTheme", "thyShape"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11946
11958
|
}
|
|
11947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionComponent, decorators: [{
|
|
11948
11960
|
type: Component,
|
|
11949
11961
|
args: [{ selector: 'select-option', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
11950
11962
|
class: 'select-option thy-text',
|
|
@@ -11960,10 +11972,10 @@ class SelectCellEditorComponent extends AbstractEditCellEditor {
|
|
|
11960
11972
|
super();
|
|
11961
11973
|
this.selectOptions = computed(() => {
|
|
11962
11974
|
return this.field().settings.options;
|
|
11963
|
-
}, ...(ngDevMode ? [{ debugName: "selectOptions" }] :
|
|
11975
|
+
}, ...(ngDevMode ? [{ debugName: "selectOptions" }] : []));
|
|
11964
11976
|
this.preset = computed(() => {
|
|
11965
11977
|
return this.field().settings.is_multiple && this.field().settings.option_style === AITableSelectOptionStyle.tag ? 'tag' : '';
|
|
11966
|
-
}, ...(ngDevMode ? [{ debugName: "preset" }] :
|
|
11978
|
+
}, ...(ngDevMode ? [{ debugName: "preset" }] : []));
|
|
11967
11979
|
}
|
|
11968
11980
|
ngOnInit() {
|
|
11969
11981
|
super.ngOnInit();
|
|
@@ -12009,10 +12021,10 @@ class SelectCellEditorComponent extends AbstractEditCellEditor {
|
|
|
12009
12021
|
this.thyPopoverRef?.updatePosition();
|
|
12010
12022
|
});
|
|
12011
12023
|
}
|
|
12012
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12013
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
12024
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectCellEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12025
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: SelectCellEditorComponent, isStandalone: true, selector: "select-cell-editor", host: { classAttribute: "d-block h-100 select-cell-editor" }, usesInheritance: true, ngImport: i0, template: "<thy-select\n [(ngModel)]=\"modelValue\"\n [thyAutoExpand]=\"autoFocus()\"\n [thyAllowClear]=\"true\"\n [thyPlaceHolder]=\"''\"\n [thyPreset]=\"preset()\"\n [thyMode]=\"field().settings.is_multiple ? 'multiple' : ''\"\n (ngModelChange)=\"onModelChange($event)\"\n (thyOnExpandStatusChange)=\"onOpenChange($event)\"\n>\n <ng-template #selectedDisplay let-option>\n <select-option [field]=\"field()\" [displayOption]=\"option\"></select-option>\n </ng-template>\n @for (option of selectOptions(); track option._id) {\n <thy-option\n [thyValue]=\"option._id\"\n [hidden]=\"!!option.is_disabled\"\n [thyRawValue]=\"option\"\n [thyShowOptionCustom]=\"true\"\n [thyLabelText]=\"option.text\"\n >\n <select-option [field]=\"field()\" [displayOption]=\"option\"></select-option>\n </thy-option>\n }\n</thy-select>\n", dependencies: [{ kind: "component", type: ThySelect, selector: "thy-select,thy-custom-select", inputs: ["thyDropdownWidthMode", "thyShowSearch", "thyPlaceHolder", "thyServerSearch", "thyLoadState", "thyAutoActiveFirstItem", "thyMode", "thySize", "thyEmptyStateText", "thyEmptySearchMessageText", "thyEnableScrollLoad", "thyAllowClear", "thyDisabled", "thySortComparator", "thyFooterTemplate", "thyPlacement", "thyOrigin", "thyFooterClass", "thyAutoExpand", "thyHasBackdrop", "thyMaxTagCount", "thyBorderless", "thyOptions", "thyPreset"], outputs: ["thyOnSearch", "thyOnScrollToBottom", "thyOnExpandStatusChange"], exportAs: ["thySelect"] }, { kind: "component", type: ThyOption, selector: "thy-option", inputs: ["thyValue", "thyRawValue", "thyLabelText", "thyShowOptionCustom", "thySearchKey", "thyDisabled"], outputs: ["selectionChange", "visibleChange"] }, { kind: "ngmodule", type: ThyTooltipModule }, { kind: "component", type: SelectOptionComponent, selector: "select-option", inputs: ["field", "displayOption"] }, { kind: "ngmodule", type: ThyEmptyModule }, { kind: "ngmodule", type: ThyFormModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ThySelectModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12014
12026
|
}
|
|
12015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectCellEditorComponent, decorators: [{
|
|
12016
12028
|
type: Component,
|
|
12017
12029
|
args: [{ selector: 'select-cell-editor', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
12018
12030
|
class: 'd-block h-100 select-cell-editor'
|
|
@@ -12031,7 +12043,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
12031
12043
|
class TextCellEditorComponent extends AbstractEditCellEditor {
|
|
12032
12044
|
constructor() {
|
|
12033
12045
|
super();
|
|
12034
|
-
this.isSelectAll = input(false, ...(ngDevMode ? [{ debugName: "isSelectAll" }] :
|
|
12046
|
+
this.isSelectAll = input(false, ...(ngDevMode ? [{ debugName: "isSelectAll" }] : []));
|
|
12035
12047
|
}
|
|
12036
12048
|
ngOnInit() {
|
|
12037
12049
|
super.ngOnInit();
|
|
@@ -12060,8 +12072,8 @@ class TextCellEditorComponent extends AbstractEditCellEditor {
|
|
|
12060
12072
|
super.update();
|
|
12061
12073
|
this.closePopover();
|
|
12062
12074
|
}
|
|
12063
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12064
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
12075
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: TextCellEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12076
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: TextCellEditorComponent, isStandalone: true, selector: "text-cell-editor", inputs: { isSelectAll: { classPropertyName: "isSelectAll", publicName: "isSelectAll", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "text-cell-editor" }, usesInheritance: true, ngImport: i0, template: `
|
|
12065
12077
|
<textarea
|
|
12066
12078
|
#textarea
|
|
12067
12079
|
placeholder=""
|
|
@@ -12075,7 +12087,7 @@ class TextCellEditorComponent extends AbstractEditCellEditor {
|
|
|
12075
12087
|
></textarea>
|
|
12076
12088
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutofocus", "thyAutoSelect"] }, { kind: "directive", type: ThyInputDirective, selector: "input[thyInput], select[thyInput], textarea[thyInput]", inputs: ["thySize"], exportAs: ["thyInput"] }, { kind: "directive", type: ThyEnterDirective, selector: "[thyEnter]", outputs: ["thyEnter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12077
12089
|
}
|
|
12078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: TextCellEditorComponent, decorators: [{
|
|
12079
12091
|
type: Component,
|
|
12080
12092
|
args: [{
|
|
12081
12093
|
selector: 'text-cell-editor',
|
|
@@ -12104,10 +12116,10 @@ class SelectOptionPipe {
|
|
|
12104
12116
|
transform(_id, options) {
|
|
12105
12117
|
return options?.length && options.find((item) => item._id === _id);
|
|
12106
12118
|
}
|
|
12107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12108
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12120
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionPipe, isStandalone: true, name: "selectOption" }); }
|
|
12109
12121
|
}
|
|
12110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionPipe, decorators: [{
|
|
12111
12123
|
type: Pipe,
|
|
12112
12124
|
args: [{
|
|
12113
12125
|
name: 'selectOption'
|
|
@@ -12121,10 +12133,10 @@ class SelectOptionsPipe {
|
|
|
12121
12133
|
})) ||
|
|
12122
12134
|
[]);
|
|
12123
12135
|
}
|
|
12124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12125
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12137
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionsPipe, isStandalone: true, name: "selectOptions" }); }
|
|
12126
12138
|
}
|
|
12127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectOptionsPipe, decorators: [{
|
|
12128
12140
|
type: Pipe,
|
|
12129
12141
|
args: [{
|
|
12130
12142
|
name: 'selectOptions'
|
|
@@ -12134,10 +12146,10 @@ class IsSelectRecordPipe {
|
|
|
12134
12146
|
transform(recordId, selection) {
|
|
12135
12147
|
return selection.selectedRecords.has(recordId);
|
|
12136
12148
|
}
|
|
12137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12138
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: IsSelectRecordPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12150
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: IsSelectRecordPipe, isStandalone: true, name: "isSelectRecord" }); }
|
|
12139
12151
|
}
|
|
12140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: IsSelectRecordPipe, decorators: [{
|
|
12141
12153
|
type: Pipe,
|
|
12142
12154
|
args: [{
|
|
12143
12155
|
name: 'isSelectRecord'
|
|
@@ -12151,10 +12163,10 @@ class UserPipe {
|
|
|
12151
12163
|
})) ||
|
|
12152
12164
|
[]);
|
|
12153
12165
|
}
|
|
12154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12155
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: UserPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12167
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: UserPipe, isStandalone: true, name: "user" }); }
|
|
12156
12168
|
}
|
|
12157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: UserPipe, decorators: [{
|
|
12158
12170
|
type: Pipe,
|
|
12159
12171
|
args: [{
|
|
12160
12172
|
name: 'user'
|
|
@@ -12164,10 +12176,10 @@ class SelectSettingPipe {
|
|
|
12164
12176
|
transform(settings) {
|
|
12165
12177
|
return settings;
|
|
12166
12178
|
}
|
|
12167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12168
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12179
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectSettingPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12180
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: SelectSettingPipe, isStandalone: true, name: "selectSetting" }); }
|
|
12169
12181
|
}
|
|
12170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: SelectSettingPipe, decorators: [{
|
|
12171
12183
|
type: Pipe,
|
|
12172
12184
|
args: [{
|
|
12173
12185
|
name: 'selectSetting'
|
|
@@ -12177,10 +12189,10 @@ class MemberSettingPipe {
|
|
|
12177
12189
|
transform(settings) {
|
|
12178
12190
|
return settings;
|
|
12179
12191
|
}
|
|
12180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12181
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MemberSettingPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12193
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: MemberSettingPipe, isStandalone: true, name: "memberSetting" }); }
|
|
12182
12194
|
}
|
|
12183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MemberSettingPipe, decorators: [{
|
|
12184
12196
|
type: Pipe,
|
|
12185
12197
|
args: [{
|
|
12186
12198
|
name: 'memberSetting'
|
|
@@ -12190,10 +12202,10 @@ class AITableFieldIsSameOptionPipe {
|
|
|
12190
12202
|
transform(fieldOption, field) {
|
|
12191
12203
|
return isSameFieldOption(fieldOption, field);
|
|
12192
12204
|
}
|
|
12193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12194
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
12205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldIsSameOptionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12206
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldIsSameOptionPipe, isStandalone: true, name: "fieldIsSameOption" }); }
|
|
12195
12207
|
}
|
|
12196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldIsSameOptionPipe, decorators: [{
|
|
12197
12209
|
type: Pipe,
|
|
12198
12210
|
args: [{
|
|
12199
12211
|
name: 'fieldIsSameOption'
|
|
@@ -12202,10 +12214,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
12202
12214
|
|
|
12203
12215
|
class AITableFieldSettingBase {
|
|
12204
12216
|
constructor() {
|
|
12205
|
-
this.aiEditField = model.required(...(ngDevMode ? [{ debugName: "aiEditField" }] :
|
|
12206
|
-
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] :
|
|
12207
|
-
this.aiReferences = input(...(ngDevMode ? [undefined, { debugName: "aiReferences" }] :
|
|
12208
|
-
this.isUpdate = input(false,
|
|
12217
|
+
this.aiEditField = model.required(...(ngDevMode ? [{ debugName: "aiEditField" }] : []));
|
|
12218
|
+
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] : []));
|
|
12219
|
+
this.aiReferences = input(...(ngDevMode ? [undefined, { debugName: "aiReferences" }] : []));
|
|
12220
|
+
this.isUpdate = input(false, ...(ngDevMode ? [{ debugName: "isUpdate", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
12209
12221
|
this.addField = output();
|
|
12210
12222
|
this.setField = output();
|
|
12211
12223
|
this.thyPopoverRef = inject((ThyPopoverRef));
|
|
@@ -12232,10 +12244,10 @@ class AITableFieldSettingBase {
|
|
|
12232
12244
|
cancel() {
|
|
12233
12245
|
this.thyPopoverRef.close();
|
|
12234
12246
|
}
|
|
12235
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12236
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
12247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldSettingBase, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12248
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableFieldSettingBase, isStandalone: true, selector: "ai-table-field-setting-base", inputs: { aiEditField: { classPropertyName: "aiEditField", publicName: "aiEditField", isSignal: true, isRequired: true, transformFunction: null }, aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: true, isRequired: true, transformFunction: null }, aiReferences: { classPropertyName: "aiReferences", publicName: "aiReferences", isSignal: true, isRequired: false, transformFunction: null }, isUpdate: { classPropertyName: "isUpdate", publicName: "isUpdate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { aiEditField: "aiEditFieldChange", addField: "addField", setField: "setField" }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12237
12249
|
}
|
|
12238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldSettingBase, decorators: [{
|
|
12239
12251
|
type: Component,
|
|
12240
12252
|
args: [{
|
|
12241
12253
|
selector: 'ai-table-field-setting-base',
|
|
@@ -12247,10 +12259,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
12247
12259
|
class AITableFieldSetting extends AITableFieldSettingBase {
|
|
12248
12260
|
constructor() {
|
|
12249
12261
|
super(...arguments);
|
|
12250
|
-
this.aiExternalTemplate = input(null, ...(ngDevMode ? [{ debugName: "aiExternalTemplate" }] :
|
|
12262
|
+
this.aiExternalTemplate = input(null, ...(ngDevMode ? [{ debugName: "aiExternalTemplate" }] : []));
|
|
12251
12263
|
this.selectedFieldOption = computed(() => {
|
|
12252
12264
|
return getFieldOptionByField(this.aiTable(), this.aiEditField());
|
|
12253
|
-
}, ...(ngDevMode ? [{ debugName: "selectedFieldOption" }] :
|
|
12265
|
+
}, ...(ngDevMode ? [{ debugName: "selectedFieldOption" }] : []));
|
|
12254
12266
|
this.fieldMaxLength = 32;
|
|
12255
12267
|
this.validatorConfig = computed(() => {
|
|
12256
12268
|
return {
|
|
@@ -12261,14 +12273,14 @@ class AITableFieldSetting extends AITableFieldSettingBase {
|
|
|
12261
12273
|
}
|
|
12262
12274
|
}
|
|
12263
12275
|
};
|
|
12264
|
-
}, ...(ngDevMode ? [{ debugName: "validatorConfig" }] :
|
|
12276
|
+
}, ...(ngDevMode ? [{ debugName: "validatorConfig" }] : []));
|
|
12265
12277
|
this.fieldOptions = computed(() => {
|
|
12266
12278
|
const fieldOptions = getFieldOptions(this.aiTable());
|
|
12267
12279
|
return _.groupBy(fieldOptions, 'group');
|
|
12268
|
-
}, ...(ngDevMode ? [{ debugName: "fieldOptions" }] :
|
|
12280
|
+
}, ...(ngDevMode ? [{ debugName: "fieldOptions" }] : []));
|
|
12269
12281
|
this.aITableFieldType = AITableFieldType;
|
|
12270
12282
|
this.isMultipleMember = false;
|
|
12271
|
-
this.isManualInputName = signal(false, ...(ngDevMode ? [{ debugName: "isManualInputName" }] :
|
|
12283
|
+
this.isManualInputName = signal(false, ...(ngDevMode ? [{ debugName: "isManualInputName" }] : []));
|
|
12272
12284
|
this.checkUniqueName = (fieldName) => {
|
|
12273
12285
|
fieldName = fieldName?.trim();
|
|
12274
12286
|
return of(!!this.aiTable()
|
|
@@ -12286,7 +12298,7 @@ class AITableFieldSetting extends AITableFieldSettingBase {
|
|
|
12286
12298
|
base: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.fieldGroupBase),
|
|
12287
12299
|
advanced: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.fieldGroupAdvanced)
|
|
12288
12300
|
};
|
|
12289
|
-
}, ...(ngDevMode ? [{ debugName: "i18nTexts" }] :
|
|
12301
|
+
}, ...(ngDevMode ? [{ debugName: "i18nTexts" }] : []));
|
|
12290
12302
|
}
|
|
12291
12303
|
ngOnInit() {
|
|
12292
12304
|
super.ngOnInit();
|
|
@@ -12332,10 +12344,10 @@ class AITableFieldSetting extends AITableFieldSettingBase {
|
|
|
12332
12344
|
nameChange(event) {
|
|
12333
12345
|
this.isManualInputName.set(true);
|
|
12334
12346
|
}
|
|
12335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12336
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
12347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldSetting, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12348
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFieldSetting, isStandalone: true, selector: "ai-table-field-setting", inputs: { aiExternalTemplate: { classPropertyName: "aiExternalTemplate", publicName: "aiExternalTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "field-setting d-block pl-5 pr-5 pb-5 pt-4" }, usesInheritance: true, ngImport: i0, template: "<form thyForm name=\"createPropertyForm\" [thyFormValidatorConfig]=\"validatorConfig()\" thyLayout=\"vertical\">\n <thy-form-group thyLabelRequired [thyLabelText]=\"i18nTexts().columnName\">\n <thy-input-group>\n <input\n thyInput\n [thyAutofocus]=\"true\"\n name=\"fieldName\"\n [maxlength]=\"fieldMaxLength\"\n [(ngModel)]=\"aiEditField().name\"\n (ngModelChange)=\"nameChange($event)\"\n required\n [placeholder]=\"i18nTexts().columnNamePlaceholder\"\n [thyUniqueCheck]=\"checkUniqueName\"\n />\n <ng-template #suffix>\n <thy-input-count></thy-input-count>\n </ng-template>\n </thy-input-group>\n </thy-form-group>\n <thy-form-group [thyLabelText]=\"i18nTexts().fieldType\">\n <div class=\"thy-dropdown-menu py-0\">\n <div class=\"ml-n5 mr-n5\">\n <span thyDropdownMenuItem [thyDropdown]=\"menu\" thyTrigger=\"hover\" thyPlacement=\"right\" (click)=\"fieldTypeClick($event)\">\n <thy-icon thyDropdownMenuItemIcon [thyIconName]=\"selectedFieldOption().icon\"></thy-icon>\n <span thyDropdownMenuItemName>{{ selectedFieldOption().name }}</span>\n <thy-icon thyDropdownMenuItemExtendIcon thyIconName=\"angle-right\" class=\"text-desc\"></thy-icon>\n </span>\n </div>\n </div>\n\n @if (selectedFieldOption().type === aITableFieldType.member) {\n <div class=\"d-flex justify-content-between mt-3\">\n {{ i18nTexts().allowMultipleMembers }}\n <thy-switch\n name=\"isMultipleMember\"\n [(ngModel)]=\"isMultipleMember\"\n (ngModelChange)=\"multipleMemberChange()\"\n thySize=\"sm\"\n ></thy-switch>\n </div>\n }\n </thy-form-group>\n @if (aiExternalTemplate()) {\n <ng-container *ngTemplateOutlet=\"aiExternalTemplate()\"></ng-container>\n }\n <thy-form-group-footer thyAlign=\"right\">\n <button thyButton=\"link-secondary\" (click)=\"cancel()\" thySize=\"sm\">{{ i18nTexts().cancel }}</button>\n <button thyButton=\"primary\" (thyFormSubmit)=\"editFieldProperty()\" thySize=\"sm\">{{ i18nTexts().confirm }}</button>\n </thy-form-group-footer>\n</form>\n\n<thy-dropdown-menu #menu>\n <div class=\"ai-table-field-type-menu\">\n <thy-dropdown-menu-group [thyTitle]=\"i18nTexts().base\">\n @for (item of fieldOptions().base; track $index) {\n <a\n thyDropdownMenuItem\n href=\"javascript:;\"\n [ngClass]=\"{\n active: (item | fieldIsSameOption: aiEditField())\n }\"\n (click)=\"selectFieldType(item)\"\n >\n <thy-icon [thyIconName]=\"item.icon!\"></thy-icon>\n <span thyDropdownMenuItemName>{{ item.name }}</span>\n </a>\n }\n </thy-dropdown-menu-group>\n <thy-dropdown-menu-group [thyTitle]=\"i18nTexts().advanced\">\n @for (item of fieldOptions().advanced; track $index) {\n <a\n thyDropdownMenuItem\n href=\"javascript:;\"\n [ngClass]=\"{\n active: (item | fieldIsSameOption: aiEditField())\n }\"\n (click)=\"selectFieldType(item)\"\n >\n <thy-icon [thyIconName]=\"item.icon!\"></thy-icon>\n <span thyDropdownMenuItemName>{{ item.name }}</span>\n </a>\n }\n </thy-dropdown-menu-group>\n </div>\n</thy-dropdown-menu>\n", styles: [":host{width:350px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyInputGroup, selector: "thy-input-group", inputs: ["thyAppendText", "thyAppendTextTranslateKey", "thyPrependText", "thyPrependTextTranslateKey", "thySize"] }, { kind: "component", type: ThyInputCount, selector: "thy-input-count", inputs: ["thyInput"] }, { kind: "directive", type: ThyInputDirective, selector: "input[thyInput], select[thyInput], textarea[thyInput]", inputs: ["thySize"], exportAs: ["thyInput"] }, { kind: "directive", type: ThyUniqueCheckValidator, selector: "[thyUniqueCheck]", inputs: ["thyUniqueCheck"] }, { kind: "component", type: ThyDropdownMenuComponent, selector: "thy-dropdown-menu", inputs: ["thyWidth", "thyImmediateRender"] }, { kind: "component", type: ThyDropdownMenuGroup, selector: "thy-dropdown-menu-group", inputs: ["thyTitle"] }, { kind: "directive", type: ThyDropdownDirective, selector: "[thyDropdown]", inputs: ["thyDropdownMenu", "thyDropdown", "thyTrigger", "thyShowDelay", "thyHideDelay", "thyActiveClass", "thyPopoverOptions", "thyPlacement", "thyMenuInsideClosable", "thyPanelClass"], outputs: ["thyActiveChange"] }, { kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: ThyDropdownMenuItemIconDirective, selector: "[thyDropdownMenuItemIcon]" }, { kind: "directive", type: ThyDropdownMenuItemNameDirective, selector: "[thyDropdownMenuItemName]" }, { kind: "directive", type: ThyDropdownMenuItemExtendIconDirective, selector: "[thyDropdownMenuItemExtendIcon]" }, { kind: "component", type: ThyButton, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thyBlock"] }, { kind: "component", type: ThySwitch, selector: "thy-switch", inputs: ["thyType", "thySize", "thyDisabled", "thyLoading"], outputs: ["thyChange"] }, { kind: "ngmodule", type: ThyFormModule }, { kind: "directive", type: i2.ThyFormDirective, selector: "[thyForm],[thy-form]", inputs: ["thyLayout", "thyEnterKeyMode", "thyFormValidatorConfig"], exportAs: ["thyForm"] }, { kind: "component", type: i2.ThyFormGroup, selector: "thy-form-group", inputs: ["thyLabelText", "thyLabelTextTranslateKey", "thyLabelRequired", "thyLabelPaddingTopClear", "thyFeedbackIcon", "thyTipsMode", "thyTips", "thyTipsTranslateKey", "thyRowFill"] }, { kind: "directive", type: i2.ThyFormSubmitDirective, selector: "[thyFormSubmit],[thy-form-submit]", outputs: ["thyFormSubmit"] }, { kind: "component", type: i2.ThyFormGroupFooter, selector: "thy-form-group-footer", inputs: ["thyAlign"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ThyAutofocusDirective, selector: "input[thyAutofocus],textarea[thyAutofocus]", inputs: ["thyAutofocus", "thyAutoSelect"] }, { kind: "pipe", type: AITableFieldIsSameOptionPipe, name: "fieldIsSameOption" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12337
12349
|
}
|
|
12338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldSetting, decorators: [{
|
|
12339
12351
|
type: Component,
|
|
12340
12352
|
args: [{ selector: 'ai-table-field-setting', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
12341
12353
|
NgClass,
|
|
@@ -12368,11 +12380,11 @@ class AITableContextMenu extends ThyDropdownAbstractMenu {
|
|
|
12368
12380
|
super(...arguments);
|
|
12369
12381
|
this.notifyService = inject(ThyNotifyService);
|
|
12370
12382
|
this.thyPopoverRef = inject(ThyPopoverRef);
|
|
12371
|
-
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] :
|
|
12372
|
-
this.menuItems = input.required(...(ngDevMode ? [{ debugName: "menuItems" }] :
|
|
12373
|
-
this.targetName = input.required(...(ngDevMode ? [{ debugName: "targetName" }] :
|
|
12374
|
-
this.position = input.required(...(ngDevMode ? [{ debugName: "position" }] :
|
|
12375
|
-
this.maxCount = computed(() => this.aiTable().context?.maxRecords() - this.aiTable().records().length, ...(ngDevMode ? [{ debugName: "maxCount" }] :
|
|
12383
|
+
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] : []));
|
|
12384
|
+
this.menuItems = input.required(...(ngDevMode ? [{ debugName: "menuItems" }] : []));
|
|
12385
|
+
this.targetName = input.required(...(ngDevMode ? [{ debugName: "targetName" }] : []));
|
|
12386
|
+
this.position = input.required(...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
12387
|
+
this.maxCount = computed(() => this.aiTable().context?.maxRecords() - this.aiTable().records().length, ...(ngDevMode ? [{ debugName: "maxCount" }] : []));
|
|
12376
12388
|
}
|
|
12377
12389
|
execute(menu) {
|
|
12378
12390
|
if ((menu.disabled && !menu.disabled(this.aiTable(), this.targetName(), this.position())) || !menu.disabled) {
|
|
@@ -12386,10 +12398,10 @@ class AITableContextMenu extends ThyDropdownAbstractMenu {
|
|
|
12386
12398
|
this.execute(menu);
|
|
12387
12399
|
this.thyPopoverRef.close();
|
|
12388
12400
|
}
|
|
12389
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12390
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
12401
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableContextMenu, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12402
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableContextMenu, isStandalone: true, selector: "ai-table-context-menu", inputs: { aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: true, isRequired: true, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: true, transformFunction: null }, targetName: { classPropertyName: "targetName", publicName: "targetName", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "context-menu" }, usesInheritance: true, ngImport: i0, template: "@for (menu of menuItems(); track $index) {\n @if ((menu.hidden && !menu.hidden(aiTable(), targetName(), position())) || !menu.hidden) {\n @if (menu.type === 'divider') {\n <thy-divider thyStyle=\"solid\"></thy-divider>\n } @else {\n @let disabled = !!(menu.disabled && menu.disabled(aiTable(), targetName(), position()));\n @let isRemoveRecords = menu.type === 'removeRecords';\n @let isPreventClearSelection =\n menu.type === 'copyCells' ||\n menu.type === 'pasteCells' ||\n menu.type === 'removeRecords' ||\n menu.type === 'insertUpwardRecords' ||\n menu.type === 'insertDownwardRecords';\n\n <a\n thyDropdownMenuItem\n href=\"javascript:;\"\n [ngClass]=\"{\n 'remove-record': isRemoveRecords && !disabled,\n 'ai-table-prevent-clear-selection': isPreventClearSelection && !disabled\n }\"\n draggable=\"false\"\n (click)=\"execute(menu)\"\n [thyDisabled]=\"disabled\"\n >\n <thy-icon thyDropdownMenuItemIcon [thyIconName]=\"menu.icon!\"></thy-icon>\n @if (menu?.isInputNumber) {\n <span thyDropdownMenuItemName class=\"d-flex align-items-center\">\n {{ menu.name }}\n <thy-input-number\n #inputNumber\n class=\"mx-2\"\n thySize=\"sm\"\n [(ngModel)]=\"menu.count\"\n [thyStep]=\"1\"\n [thyMin]=\"1\"\n [thyMax]=\"maxCount()\"\n (click)=\"inputNumberFocus($event)\"\n (thyEnter)=\"itemEnterHandle($event, menu)\"\n thyStopPropagation\n ></thy-input-number>\n {{ menu.nameSuffix }}\n </span>\n } @else {\n <span thyDropdownMenuItemName>{{ menu.name }}</span>\n }\n <span thyDropdownMenuItemMeta class=\"text-desc\">{{ menu.shortcutKey }}</span>\n </a>\n }\n }\n}\n", dependencies: [{ kind: "component", type: ThyInputNumber, selector: "thy-input-number", inputs: ["thyAutoFocus", "thyPlaceholder", "thyDisabled", "thyMax", "thyMin", "thyStep", "thyShowStepControls", "thyStepDelay", "thySize", "thyPrecision", "thySuffix"], outputs: ["thyBlur", "thyFocus", "thyStepChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ThyEnterDirective, selector: "[thyEnter]", outputs: ["thyEnter"] }, { kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: ThyDropdownMenuItemNameDirective, selector: "[thyDropdownMenuItemName]" }, { kind: "directive", type: ThyDropdownMenuItemIconDirective, selector: "[thyDropdownMenuItemIcon]" }, { kind: "directive", type: ThyDropdownMenuItemMetaDirective, selector: "[thyDropdownMenuItemMeta]" }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyDivider, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12391
12403
|
}
|
|
12392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableContextMenu, decorators: [{
|
|
12393
12405
|
type: Component,
|
|
12394
12406
|
args: [{ selector: 'ai-table-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
12395
12407
|
class: 'context-menu'
|
|
@@ -12410,8 +12422,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
12410
12422
|
|
|
12411
12423
|
class CheckboxMenuSort {
|
|
12412
12424
|
constructor() {
|
|
12413
|
-
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] :
|
|
12414
|
-
this.menu = input.required(...(ngDevMode ? [{ debugName: "menu" }] :
|
|
12425
|
+
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
12426
|
+
this.menu = input.required(...(ngDevMode ? [{ debugName: "menu" }] : []));
|
|
12415
12427
|
this.Direction = {
|
|
12416
12428
|
ascending: 'ascending',
|
|
12417
12429
|
descending: 'descending'
|
|
@@ -12427,8 +12439,8 @@ class CheckboxMenuSort {
|
|
|
12427
12439
|
}
|
|
12428
12440
|
return '按 Z → A 排序';
|
|
12429
12441
|
}
|
|
12430
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12431
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
12442
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CheckboxMenuSort, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12443
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: CheckboxMenuSort, isStandalone: true, selector: "checkbox-menu-sort", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, menu: { classPropertyName: "menu", publicName: "menu", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "checkbox-menu-sort" }, ngImport: i0, template: `
|
|
12432
12444
|
<thy-icon class="sort-icon" [thyIconName]="menu().icon!"></thy-icon>
|
|
12433
12445
|
<div class="sort-state">
|
|
12434
12446
|
@if (menu().type === 'sortByAsc') {
|
|
@@ -12443,7 +12455,7 @@ class CheckboxMenuSort {
|
|
|
12443
12455
|
</div>
|
|
12444
12456
|
`, isInline: true, dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyCheckbox, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: ["thyIndeterminate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12445
12457
|
}
|
|
12446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CheckboxMenuSort, decorators: [{
|
|
12447
12459
|
type: Component,
|
|
12448
12460
|
args: [{
|
|
12449
12461
|
selector: 'checkbox-menu-sort',
|
|
@@ -12472,10 +12484,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
12472
12484
|
class AITableFieldMenu extends ThyDropdownAbstractMenu {
|
|
12473
12485
|
constructor() {
|
|
12474
12486
|
super(...arguments);
|
|
12475
|
-
this.execMenuCallback = input(...(ngDevMode ? [undefined, { debugName: "execMenuCallback" }] :
|
|
12487
|
+
this.execMenuCallback = input(...(ngDevMode ? [undefined, { debugName: "execMenuCallback" }] : []));
|
|
12476
12488
|
this.field = computed(() => {
|
|
12477
12489
|
return this.aiTable.fields().find((item) => item._id === this.fieldId);
|
|
12478
|
-
}, ...(ngDevMode ? [{ debugName: "field" }] :
|
|
12490
|
+
}, ...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
12479
12491
|
}
|
|
12480
12492
|
getCustomComponent(menu) {
|
|
12481
12493
|
return menu.customComponent?.(this.aiTable, this.field());
|
|
@@ -12494,10 +12506,10 @@ class AITableFieldMenu extends ThyDropdownAbstractMenu {
|
|
|
12494
12506
|
}
|
|
12495
12507
|
return menu.name || '';
|
|
12496
12508
|
}
|
|
12497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12498
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
12509
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldMenu, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12510
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableFieldMenu, isStandalone: true, selector: "ai-table-field-menu", inputs: { fieldId: { classPropertyName: "fieldId", publicName: "fieldId", isSignal: false, isRequired: true, transformFunction: null }, aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: false, isRequired: true, transformFunction: null }, fieldMenus: { classPropertyName: "fieldMenus", publicName: "fieldMenus", isSignal: false, isRequired: true, transformFunction: null }, origin: { classPropertyName: "origin", publicName: "origin", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: false, isRequired: false, transformFunction: null }, execMenuCallback: { classPropertyName: "execMenuCallback", publicName: "execMenuCallback", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "field-menu" }, usesInheritance: true, ngImport: i0, template: "@if (field()) {\n @for (menu of fieldMenus; track index; let index = $index) {\n @if ((menu.hidden && !menu.hidden(aiTable, field)) || !menu.hidden) {\n @if (menu.type === 'divider') {\n <thy-divider [thyStyle]=\"'solid'\"></thy-divider>\n } @else {\n @let disabled = !!(menu.disabled && menu.disabled(aiTable, field));\n @let isRemoveField = menu.type === 'removeField';\n @let customComponent = getCustomComponent(menu);\n <a\n thyDropdownMenuItem\n href=\"javascript:;\"\n [ngClass]=\"{ 'remove-field': isRemoveField && !disabled }\"\n (click)=\"execute(menu)\"\n [thyDisabled]=\"disabled\"\n >\n @if (customComponent) {\n <ng-container *ngComponentOutlet=\"customComponent; inputs: { field: field(), menu: menu }\"> </ng-container>\n } @else {\n <thy-icon [thyIconName]=\"menu.icon!\"></thy-icon>\n <span>{{ getMenuName(menu, field()) }}</span>\n }\n </a>\n }\n }\n }\n}\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyDivider, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12499
12511
|
}
|
|
12500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableFieldMenu, decorators: [{
|
|
12501
12513
|
type: Component,
|
|
12502
12514
|
args: [{ selector: 'ai-table-field-menu', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
12503
12515
|
class: 'field-menu'
|
|
@@ -12528,18 +12540,18 @@ const GRID_CELL_EDITOR_MAP = {
|
|
|
12528
12540
|
|
|
12529
12541
|
class DynamicCellEditorComponent {
|
|
12530
12542
|
constructor() {
|
|
12531
|
-
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] :
|
|
12532
|
-
this.fieldId = input.required(...(ngDevMode ? [{ debugName: "fieldId" }] :
|
|
12533
|
-
this.recordId = input.required(...(ngDevMode ? [{ debugName: "recordId" }] :
|
|
12534
|
-
this.references = input.required(...(ngDevMode ? [{ debugName: "references" }] :
|
|
12543
|
+
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] : []));
|
|
12544
|
+
this.fieldId = input.required(...(ngDevMode ? [{ debugName: "fieldId" }] : []));
|
|
12545
|
+
this.recordId = input.required(...(ngDevMode ? [{ debugName: "recordId" }] : []));
|
|
12546
|
+
this.references = input.required(...(ngDevMode ? [{ debugName: "references" }] : []));
|
|
12535
12547
|
this.updateFieldValues = output();
|
|
12536
|
-
this.editorHost = viewChild('editorHost',
|
|
12548
|
+
this.editorHost = viewChild('editorHost', ...(ngDevMode ? [{ debugName: "editorHost", read: ViewContainerRef }] : [{ read: ViewContainerRef }]));
|
|
12537
12549
|
this.field = computed(() => {
|
|
12538
12550
|
return this.aiTable().fieldsMap()[this.fieldId()];
|
|
12539
|
-
}, ...(ngDevMode ? [{ debugName: "field" }] :
|
|
12551
|
+
}, ...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
12540
12552
|
this.cellValue = computed(() => {
|
|
12541
12553
|
return AITableQueries.getFieldValue(this.aiTable(), [this.recordId(), this.fieldId()]);
|
|
12542
|
-
}, ...(ngDevMode ? [{ debugName: "cellValue" }] :
|
|
12554
|
+
}, ...(ngDevMode ? [{ debugName: "cellValue" }] : []));
|
|
12543
12555
|
effect(() => {
|
|
12544
12556
|
this.recordId();
|
|
12545
12557
|
this.fieldId();
|
|
@@ -12589,14 +12601,14 @@ class DynamicCellEditorComponent {
|
|
|
12589
12601
|
}
|
|
12590
12602
|
return GRID_CELL_EDITOR_MAP[fieldType];
|
|
12591
12603
|
}
|
|
12592
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12593
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
12604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DynamicCellEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12605
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: DynamicCellEditorComponent, isStandalone: true, selector: "ai-dynamic-cell-editor", inputs: { aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: true, isRequired: true, transformFunction: null }, fieldId: { classPropertyName: "fieldId", publicName: "fieldId", isSignal: true, isRequired: true, transformFunction: null }, recordId: { classPropertyName: "recordId", publicName: "recordId", isSignal: true, isRequired: true, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { updateFieldValues: "updateFieldValues" }, viewQueries: [{ propertyName: "editorHost", first: true, predicate: ["editorHost"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `
|
|
12594
12606
|
<div class="ai-dynamic-cell-editor-wrapper">
|
|
12595
12607
|
<ng-container #editorHost></ng-container>
|
|
12596
12608
|
</div>
|
|
12597
12609
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12598
12610
|
}
|
|
12599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DynamicCellEditorComponent, decorators: [{
|
|
12600
12612
|
type: Component,
|
|
12601
12613
|
args: [{
|
|
12602
12614
|
selector: 'ai-dynamic-cell-editor',
|
|
@@ -12614,39 +12626,39 @@ class RecordDetailComponent {
|
|
|
12614
12626
|
return getFieldIconPath(field) || IconPathMap[field.icon];
|
|
12615
12627
|
}
|
|
12616
12628
|
constructor() {
|
|
12617
|
-
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] :
|
|
12618
|
-
this.recordId = model.required(...(ngDevMode ? [{ debugName: "recordId" }] :
|
|
12619
|
-
this.references = input.required(...(ngDevMode ? [{ debugName: "references" }] :
|
|
12620
|
-
this.actions = input(...(ngDevMode ? [undefined, { debugName: "actions" }] :
|
|
12629
|
+
this.aiTable = input.required(...(ngDevMode ? [{ debugName: "aiTable" }] : []));
|
|
12630
|
+
this.recordId = model.required(...(ngDevMode ? [{ debugName: "recordId" }] : []));
|
|
12631
|
+
this.references = input.required(...(ngDevMode ? [{ debugName: "references" }] : []));
|
|
12632
|
+
this.actions = input(...(ngDevMode ? [undefined, { debugName: "actions" }] : []));
|
|
12621
12633
|
this.recordIdChange = output();
|
|
12622
|
-
this.internalRecordId = signal('', ...(ngDevMode ? [{ debugName: "internalRecordId" }] :
|
|
12634
|
+
this.internalRecordId = signal('', ...(ngDevMode ? [{ debugName: "internalRecordId" }] : []));
|
|
12623
12635
|
this.readonly = computed(() => {
|
|
12624
12636
|
return this.aiTable()?.context?.readonly?.();
|
|
12625
|
-
}, ...(ngDevMode ? [{ debugName: "readonly" }] :
|
|
12637
|
+
}, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
12626
12638
|
this.currentRecordId = computed(() => {
|
|
12627
12639
|
const inputId = this.recordId();
|
|
12628
12640
|
const internalId = this.internalRecordId();
|
|
12629
12641
|
return internalId || inputId;
|
|
12630
|
-
}, ...(ngDevMode ? [{ debugName: "currentRecordId" }] :
|
|
12631
|
-
this.fieldOperationsMenuTemplate = viewChild('fieldOperationsMenuTemplate', ...(ngDevMode ? [{ debugName: "fieldOperationsMenuTemplate" }] :
|
|
12642
|
+
}, ...(ngDevMode ? [{ debugName: "currentRecordId" }] : []));
|
|
12643
|
+
this.fieldOperationsMenuTemplate = viewChild('fieldOperationsMenuTemplate', ...(ngDevMode ? [{ debugName: "fieldOperationsMenuTemplate" }] : []));
|
|
12632
12644
|
this.record = computed(() => {
|
|
12633
12645
|
return this.aiTable().recordsMap()[this.currentRecordId()];
|
|
12634
|
-
}, ...(ngDevMode ? [{ debugName: "record" }] :
|
|
12646
|
+
}, ...(ngDevMode ? [{ debugName: "record" }] : []));
|
|
12635
12647
|
this.fields = computed(() => {
|
|
12636
12648
|
return this.aiTable().gridData().fields;
|
|
12637
|
-
}, ...(ngDevMode ? [{ debugName: "fields" }] :
|
|
12649
|
+
}, ...(ngDevMode ? [{ debugName: "fields" }] : []));
|
|
12638
12650
|
this.firstField = computed(() => {
|
|
12639
12651
|
return this.aiTable().gridData().fields[0];
|
|
12640
|
-
}, ...(ngDevMode ? [{ debugName: "firstField" }] :
|
|
12652
|
+
}, ...(ngDevMode ? [{ debugName: "firstField" }] : []));
|
|
12641
12653
|
this.lastField = computed(() => {
|
|
12642
12654
|
const fields = this.aiTable().gridData().fields;
|
|
12643
12655
|
return fields[fields.length - 1];
|
|
12644
|
-
}, ...(ngDevMode ? [{ debugName: "lastField" }] :
|
|
12656
|
+
}, ...(ngDevMode ? [{ debugName: "lastField" }] : []));
|
|
12645
12657
|
this.i18nTexts = computed(() => ({
|
|
12646
12658
|
recordUntitled: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.recordUntitled),
|
|
12647
12659
|
deleteRecord: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.deleteRecord),
|
|
12648
12660
|
addField: getI18nTextByKey(this.aiTable(), AITableGridI18nKey.addField)
|
|
12649
|
-
}), ...(ngDevMode ? [{ debugName: "i18nTexts" }] :
|
|
12661
|
+
}), ...(ngDevMode ? [{ debugName: "i18nTexts" }] : []));
|
|
12650
12662
|
this.recordTitle = computed(() => {
|
|
12651
12663
|
let title = this.i18nTexts().recordUntitled;
|
|
12652
12664
|
const field = this.firstField();
|
|
@@ -12662,19 +12674,19 @@ class RecordDetailComponent {
|
|
|
12662
12674
|
}
|
|
12663
12675
|
}
|
|
12664
12676
|
return title;
|
|
12665
|
-
}, ...(ngDevMode ? [{ debugName: "recordTitle" }] :
|
|
12677
|
+
}, ...(ngDevMode ? [{ debugName: "recordTitle" }] : []));
|
|
12666
12678
|
this.recordNavigation = computed(() => {
|
|
12667
12679
|
return getRecordNavigationInfo(this.aiTable(), this.currentRecordId());
|
|
12668
|
-
}, ...(ngDevMode ? [{ debugName: "recordNavigation" }] :
|
|
12680
|
+
}, ...(ngDevMode ? [{ debugName: "recordNavigation" }] : []));
|
|
12669
12681
|
this.fieldMenus = computed(() => {
|
|
12670
12682
|
const fieldMenusFn = this.aiTable()?.context?.aiFieldConfig()?.recordDetailFieldMenus;
|
|
12671
12683
|
if (fieldMenusFn && this.aiTable()) {
|
|
12672
12684
|
return fieldMenusFn(this.aiTable());
|
|
12673
12685
|
}
|
|
12674
12686
|
return [];
|
|
12675
|
-
}, ...(ngDevMode ? [{ debugName: "fieldMenus" }] :
|
|
12687
|
+
}, ...(ngDevMode ? [{ debugName: "fieldMenus" }] : []));
|
|
12676
12688
|
this.activeFieldId = null;
|
|
12677
|
-
this.fieldMenuActive = signal({}, ...(ngDevMode ? [{ debugName: "fieldMenuActive" }] :
|
|
12689
|
+
this.fieldMenuActive = signal({}, ...(ngDevMode ? [{ debugName: "fieldMenuActive" }] : []));
|
|
12678
12690
|
this.fieldMenuPopoverRef = null;
|
|
12679
12691
|
this.currentPopoverFieldId = null;
|
|
12680
12692
|
this.slideRef = inject(ThySlideRef);
|
|
@@ -12813,10 +12825,10 @@ class RecordDetailComponent {
|
|
|
12813
12825
|
return (Array.isArray(value) && value.length === 0) || isUndefinedOrNull(value);
|
|
12814
12826
|
}
|
|
12815
12827
|
}
|
|
12816
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12817
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
12828
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RecordDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12829
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: RecordDetailComponent, isStandalone: true, selector: "ai-record-detail", inputs: { aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: true, isRequired: true, transformFunction: null }, recordId: { classPropertyName: "recordId", publicName: "recordId", isSignal: true, isRequired: true, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { recordId: "recordIdChange", recordIdChange: "recordIdChange" }, viewQueries: [{ propertyName: "fieldOperationsMenuTemplate", first: true, predicate: ["fieldOperationsMenuTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"d-flex flex-column ai-record-detail\">\n <div class=\"d-flex align-items-center justify-content-between pl-8 pr-5 record-detail-header\">\n <span class=\"record-title\" thyFlexibleText [thyTooltipContent]=\"recordTitle()\">\n {{ recordTitle() }}\n </span>\n\n <div class=\"record-navigation\">\n <a thyAction href=\"javascript:;\" [thyDisabled]=\"!recordNavigation()?.hasPrevious\" (click)=\"previousRecord()\"\n ><thy-icon thyIconName=\"angle-up\"></thy-icon\n ></a>\n\n <a thyAction href=\"javascript:;\" [thyDisabled]=\"!recordNavigation()?.hasNext\" (click)=\"nextRecord()\"\n ><thy-icon thyIconName=\"angle-down\"></thy-icon\n ></a>\n </div>\n <thy-divider [thyVertical]=\"true\" thyColor=\"light\"></thy-divider>\n <div class=\"header-operations\">\n <a\n thyAction\n thyActiveClass=\"active\"\n href=\"javascript:;\"\n [thyDropdown]=\"headerMoreMenu\"\n thyTrigger=\"click\"\n thyPlacement=\"bottomRight\"\n ><thy-icon thyIconName=\"list\"></thy-icon\n ></a>\n\n <thy-dropdown-menu #headerMoreMenu>\n <a\n class=\"ai-table-record-detail-remove\"\n thyDropdownMenuItem\n [thyDisabled]=\"readonly()\"\n href=\"javascript:;\"\n (click)=\"deleteRecord()\"\n >\n <thy-icon thyIconName=\"trash\"></thy-icon>\n <span>{{ i18nTexts().deleteRecord }}</span>\n </a>\n </thy-dropdown-menu>\n\n <a thyAction href=\"javascript:;\" (click)=\"close()\"><thy-icon thyIconName=\"close\"></thy-icon></a>\n </div>\n </div>\n\n <div class=\"record-detail-body\">\n <div class=\"px-8 cell-list-viewport\">\n @for (field of fields(); track field._id) {\n <div class=\"pt-4 cell-item\" [class.active]=\"activeFieldId === field._id\">\n <div #fieldMenuOrigin class=\"d-flex align-items-center justify-content-between mb-2 cell-header\">\n <div class=\"d-flex align-items-center cell-label\">\n <span class=\"d-flex align-items-center mr-2 text-muted font-size-md\">\n @if (fieldIconPath(field)) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n <path [attr.d]=\"fieldIconPath(field)\" fill=\"currentColor\"></path>\n </svg>\n }\n </span>\n <span class=\"d-flex align-items-center font-size-base\">\n {{ field.name }}\n </span>\n </div>\n @if (!readonly()) {\n <a\n class=\"field-action\"\n thyAction\n [thyActionActive]=\"fieldMenuActive()[field._id]\"\n href=\"javascript:;\"\n (click)=\"fieldMenuMoreClick($event, field._id, fieldMenuOrigin)\"\n ><thy-icon thyIconName=\"more-vertical\"></thy-icon\n ></a>\n }\n </div>\n\n <div class=\"dynamic-cell-editor\" (click)=\"cellClick(field._id)\">\n <ai-dynamic-cell-editor\n [aiTable]=\"aiTable()\"\n [fieldId]=\"field._id\"\n [recordId]=\"currentRecordId()\"\n [references]=\"references()\"\n (updateFieldValues)=\"fieldValueChange($event)\"\n >\n </ai-dynamic-cell-editor>\n </div>\n </div>\n }\n </div>\n <div class=\"py-4 px-5\">\n @if (!readonly()) {\n <button class=\"p-0\" thyButton=\"link-secondary\" thySize=\"md\" (click)=\"addNewField($event)\">\n <thy-icon thyIconName=\"plus\"></thy-icon>\n <span>{{ i18nTexts().addField }}</span>\n </button>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: ThyButton, selector: "thy-button,[thy-button],[thyButton]", inputs: ["thyButton", "thyType", "thyLoading", "thyLoadingText", "thySize", "thyIcon", "thyBlock"] }, { kind: "component", type: ThyAction, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyDivider, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "directive", type: ThyDropdownDirective, selector: "[thyDropdown]", inputs: ["thyDropdownMenu", "thyDropdown", "thyTrigger", "thyShowDelay", "thyHideDelay", "thyActiveClass", "thyPopoverOptions", "thyPlacement", "thyMenuInsideClosable", "thyPanelClass"], outputs: ["thyActiveChange"] }, { kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "component", type: ThyDropdownMenuComponent, selector: "thy-dropdown-menu", inputs: ["thyWidth", "thyImmediateRender"] }, { kind: "component", type: DynamicCellEditorComponent, selector: "ai-dynamic-cell-editor", inputs: ["aiTable", "fieldId", "recordId", "references"], outputs: ["updateFieldValues"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12818
12830
|
}
|
|
12819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RecordDetailComponent, decorators: [{
|
|
12820
12832
|
type: Component,
|
|
12821
12833
|
args: [{ selector: 'ai-record-detail', imports: [
|
|
12822
12834
|
ThyButton,
|
|
@@ -13061,10 +13073,10 @@ class AITableGridEventService {
|
|
|
13061
13073
|
});
|
|
13062
13074
|
return ref;
|
|
13063
13075
|
}
|
|
13064
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13065
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13076
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13077
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridEventService }); }
|
|
13066
13078
|
}
|
|
13067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridEventService, decorators: [{
|
|
13068
13080
|
type: Injectable
|
|
13069
13081
|
}] });
|
|
13070
13082
|
|
|
@@ -13113,38 +13125,38 @@ class AITableGridFieldService {
|
|
|
13113
13125
|
});
|
|
13114
13126
|
return ref;
|
|
13115
13127
|
}
|
|
13116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13117
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridFieldService, deps: [{ token: i1$1.ThyPopover }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13129
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridFieldService }); }
|
|
13118
13130
|
}
|
|
13119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridFieldService, decorators: [{
|
|
13120
13132
|
type: Injectable
|
|
13121
13133
|
}], ctorParameters: () => [{ type: i1$1.ThyPopover }] });
|
|
13122
13134
|
|
|
13123
13135
|
class AITableGridBase {
|
|
13124
13136
|
constructor() {
|
|
13125
|
-
this.aiRecords = model.required(...(ngDevMode ? [{ debugName: "aiRecords" }] :
|
|
13126
|
-
this.aiFields = model.required(...(ngDevMode ? [{ debugName: "aiFields" }] :
|
|
13127
|
-
this.aiContextMenuItems = input(...(ngDevMode ? [undefined, { debugName: "aiContextMenuItems" }] :
|
|
13128
|
-
this.aiFieldConfig = input(...(ngDevMode ? [undefined, { debugName: "aiFieldConfig" }] :
|
|
13129
|
-
this.aiReadonly = input(false, ...(ngDevMode ? [{ debugName: "aiReadonly" }] :
|
|
13130
|
-
this.aiPlugins = input(...(ngDevMode ? [undefined, { debugName: "aiPlugins" }] :
|
|
13131
|
-
this.aiMaxFields = input(...(ngDevMode ? [undefined, { debugName: "aiMaxFields" }] :
|
|
13132
|
-
this.aiMaxRecords = input(...(ngDevMode ? [undefined, { debugName: "aiMaxRecords" }] :
|
|
13133
|
-
this.aiMaxSelectOptions = input(...(ngDevMode ? [undefined, { debugName: "aiMaxSelectOptions" }] :
|
|
13134
|
-
this.aiReferences = input.required(...(ngDevMode ? [{ debugName: "aiReferences" }] :
|
|
13135
|
-
this.aiBuildRenderDataFn = input(...(ngDevMode ? [undefined, { debugName: "aiBuildRenderDataFn" }] :
|
|
13136
|
-
this.aiBuildGroupLinearRowsFn = input(...(ngDevMode ? [undefined, { debugName: "aiBuildGroupLinearRowsFn" }] :
|
|
13137
|
-
this.aiSortKeysMap = input(...(ngDevMode ? [undefined, { debugName: "aiSortKeysMap" }] :
|
|
13138
|
-
this.aiGetI18nTextByKey = input(...(ngDevMode ? [undefined, { debugName: "aiGetI18nTextByKey" }] :
|
|
13139
|
-
this.aiKeywords = input(...(ngDevMode ? [undefined, { debugName: "aiKeywords" }] :
|
|
13140
|
-
this.aiFrozenColumnCountFn = input(...(ngDevMode ? [undefined, { debugName: "aiFrozenColumnCountFn" }] :
|
|
13141
|
-
this.aiRecordHeight = input(AITableRecordHeightType.low, ...(ngDevMode ? [{ debugName: "aiRecordHeight" }] :
|
|
13142
|
-
this.aiRecordDetailConfig = input(...(ngDevMode ? [undefined, { debugName: "aiRecordDetailConfig" }] :
|
|
13137
|
+
this.aiRecords = model.required(...(ngDevMode ? [{ debugName: "aiRecords" }] : []));
|
|
13138
|
+
this.aiFields = model.required(...(ngDevMode ? [{ debugName: "aiFields" }] : []));
|
|
13139
|
+
this.aiContextMenuItems = input(...(ngDevMode ? [undefined, { debugName: "aiContextMenuItems" }] : []));
|
|
13140
|
+
this.aiFieldConfig = input(...(ngDevMode ? [undefined, { debugName: "aiFieldConfig" }] : []));
|
|
13141
|
+
this.aiReadonly = input(false, ...(ngDevMode ? [{ debugName: "aiReadonly" }] : []));
|
|
13142
|
+
this.aiPlugins = input(...(ngDevMode ? [undefined, { debugName: "aiPlugins" }] : []));
|
|
13143
|
+
this.aiMaxFields = input(...(ngDevMode ? [undefined, { debugName: "aiMaxFields" }] : []));
|
|
13144
|
+
this.aiMaxRecords = input(...(ngDevMode ? [undefined, { debugName: "aiMaxRecords" }] : []));
|
|
13145
|
+
this.aiMaxSelectOptions = input(...(ngDevMode ? [undefined, { debugName: "aiMaxSelectOptions" }] : []));
|
|
13146
|
+
this.aiReferences = input.required(...(ngDevMode ? [{ debugName: "aiReferences" }] : []));
|
|
13147
|
+
this.aiBuildRenderDataFn = input(...(ngDevMode ? [undefined, { debugName: "aiBuildRenderDataFn" }] : []));
|
|
13148
|
+
this.aiBuildGroupLinearRowsFn = input(...(ngDevMode ? [undefined, { debugName: "aiBuildGroupLinearRowsFn" }] : []));
|
|
13149
|
+
this.aiSortKeysMap = input(...(ngDevMode ? [undefined, { debugName: "aiSortKeysMap" }] : []));
|
|
13150
|
+
this.aiGetI18nTextByKey = input(...(ngDevMode ? [undefined, { debugName: "aiGetI18nTextByKey" }] : []));
|
|
13151
|
+
this.aiKeywords = input(...(ngDevMode ? [undefined, { debugName: "aiKeywords" }] : []));
|
|
13152
|
+
this.aiFrozenColumnCountFn = input(...(ngDevMode ? [undefined, { debugName: "aiFrozenColumnCountFn" }] : []));
|
|
13153
|
+
this.aiRecordHeight = input(AITableRecordHeightType.low, ...(ngDevMode ? [{ debugName: "aiRecordHeight" }] : []));
|
|
13154
|
+
this.aiRecordDetailConfig = input(...(ngDevMode ? [undefined, { debugName: "aiRecordDetailConfig" }] : []));
|
|
13143
13155
|
this.AITableFieldType = AITableFieldType;
|
|
13144
13156
|
this.AITableSelectOptionStyle = AITableSelectOptionStyle;
|
|
13145
13157
|
this.isSelectedAll = computed(() => {
|
|
13146
13158
|
return this.aiTable.selection().selectedRecords.size === this.aiRecords().length;
|
|
13147
|
-
}, ...(ngDevMode ? [{ debugName: "isSelectedAll" }] :
|
|
13159
|
+
}, ...(ngDevMode ? [{ debugName: "isSelectedAll" }] : []));
|
|
13148
13160
|
this.aiTableInitialized = output();
|
|
13149
13161
|
this.aiAddRecord = output();
|
|
13150
13162
|
this.aiRemoveRecord = output();
|
|
@@ -13165,7 +13177,7 @@ class AITableGridBase {
|
|
|
13165
13177
|
return fieldMenusFn(this.aiTable);
|
|
13166
13178
|
}
|
|
13167
13179
|
return [];
|
|
13168
|
-
}, ...(ngDevMode ? [{ debugName: "fieldMenus" }] :
|
|
13180
|
+
}, ...(ngDevMode ? [{ debugName: "fieldMenus" }] : []));
|
|
13169
13181
|
this.gridData = computed(() => {
|
|
13170
13182
|
this.aiTable.recordsWillHidden();
|
|
13171
13183
|
if (this.aiBuildRenderDataFn && this.aiBuildRenderDataFn() && this.aiTable) {
|
|
@@ -13175,7 +13187,7 @@ class AITableGridBase {
|
|
|
13175
13187
|
records: this.aiRecords(),
|
|
13176
13188
|
fields: this.aiFields()
|
|
13177
13189
|
};
|
|
13178
|
-
}, ...(ngDevMode ? [{ debugName: "gridData" }] :
|
|
13190
|
+
}, ...(ngDevMode ? [{ debugName: "gridData" }] : []));
|
|
13179
13191
|
this.ngZone = inject(NgZone);
|
|
13180
13192
|
this.elementRef = inject(ElementRef);
|
|
13181
13193
|
this.destroyRef = inject(DestroyRef);
|
|
@@ -13264,10 +13276,10 @@ class AITableGridBase {
|
|
|
13264
13276
|
this.aiTableGridEventService.openEdit(cellDom);
|
|
13265
13277
|
}
|
|
13266
13278
|
}
|
|
13267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13268
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
13279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridBase, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13280
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableGridBase, isStandalone: true, selector: "ai-table-grid-base", inputs: { aiRecords: { classPropertyName: "aiRecords", publicName: "aiRecords", isSignal: true, isRequired: true, transformFunction: null }, aiFields: { classPropertyName: "aiFields", publicName: "aiFields", isSignal: true, isRequired: true, transformFunction: null }, aiContextMenuItems: { classPropertyName: "aiContextMenuItems", publicName: "aiContextMenuItems", isSignal: true, isRequired: false, transformFunction: null }, aiFieldConfig: { classPropertyName: "aiFieldConfig", publicName: "aiFieldConfig", isSignal: true, isRequired: false, transformFunction: null }, aiReadonly: { classPropertyName: "aiReadonly", publicName: "aiReadonly", isSignal: true, isRequired: false, transformFunction: null }, aiPlugins: { classPropertyName: "aiPlugins", publicName: "aiPlugins", isSignal: true, isRequired: false, transformFunction: null }, aiMaxFields: { classPropertyName: "aiMaxFields", publicName: "aiMaxFields", isSignal: true, isRequired: false, transformFunction: null }, aiMaxRecords: { classPropertyName: "aiMaxRecords", publicName: "aiMaxRecords", isSignal: true, isRequired: false, transformFunction: null }, aiMaxSelectOptions: { classPropertyName: "aiMaxSelectOptions", publicName: "aiMaxSelectOptions", isSignal: true, isRequired: false, transformFunction: null }, aiReferences: { classPropertyName: "aiReferences", publicName: "aiReferences", isSignal: true, isRequired: true, transformFunction: null }, aiBuildRenderDataFn: { classPropertyName: "aiBuildRenderDataFn", publicName: "aiBuildRenderDataFn", isSignal: true, isRequired: false, transformFunction: null }, aiBuildGroupLinearRowsFn: { classPropertyName: "aiBuildGroupLinearRowsFn", publicName: "aiBuildGroupLinearRowsFn", isSignal: true, isRequired: false, transformFunction: null }, aiSortKeysMap: { classPropertyName: "aiSortKeysMap", publicName: "aiSortKeysMap", isSignal: true, isRequired: false, transformFunction: null }, aiGetI18nTextByKey: { classPropertyName: "aiGetI18nTextByKey", publicName: "aiGetI18nTextByKey", isSignal: true, isRequired: false, transformFunction: null }, aiKeywords: { classPropertyName: "aiKeywords", publicName: "aiKeywords", isSignal: true, isRequired: false, transformFunction: null }, aiFrozenColumnCountFn: { classPropertyName: "aiFrozenColumnCountFn", publicName: "aiFrozenColumnCountFn", isSignal: true, isRequired: false, transformFunction: null }, aiRecordHeight: { classPropertyName: "aiRecordHeight", publicName: "aiRecordHeight", isSignal: true, isRequired: false, transformFunction: null }, aiRecordDetailConfig: { classPropertyName: "aiRecordDetailConfig", publicName: "aiRecordDetailConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { aiRecords: "aiRecordsChange", aiFields: "aiFieldsChange", aiTableInitialized: "aiTableInitialized", aiAddRecord: "aiAddRecord", aiRemoveRecord: "aiRemoveRecord", aiAddField: "aiAddField", aiCopyRecords: "aiCopyRecords", aiMoveField: "aiMoveField", aiUpdateFieldValues: "aiUpdateFieldValues", aiSetField: "aiSetField", aiSetFieldWidth: "aiSetFieldWidth", aiSetFieldStatType: "aiSetFieldStatType", aiMoveRecords: "aiMoveRecords", aiClick: "aiClick", aiDbClick: "aiDbClick", aiRowGroupCollapseClick: "aiRowGroupCollapseClick" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13269
13281
|
}
|
|
13270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGridBase, decorators: [{
|
|
13271
13283
|
type: Component,
|
|
13272
13284
|
args: [{
|
|
13273
13285
|
selector: 'ai-table-grid-base',
|
|
@@ -13290,10 +13302,10 @@ class AITableDomGrid extends AITableGridBase {
|
|
|
13290
13302
|
fieldMenus: this.fieldMenus()
|
|
13291
13303
|
});
|
|
13292
13304
|
}
|
|
13293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13294
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: AITableDomGrid, isStandalone: true, selector: "ai-table-dom-grid", host: { classAttribute: "ai-table-grid ai-table-dom-grid" }, providers: [AITableGridEventService, AITableGridFieldService], usesInheritance: true, ngImport: i0, template: "<div class=\"grid-header d-flex\">\n <div class=\"grid-column-checkbox grid-cell grid-checkbox\">\n <label thyCheckbox thyLabelText=\"\" [ngModel]=\"isSelectedAll()\" (ngModelChange)=\"toggleSelectAll($event)\"></label>\n </div>\n @for (field of gridData().fields; track field._id) {\n <div\n class=\"grid-cell grid-field\"\n #fieldAction\n [attr.fieldId]=\"field._id\"\n [ngClass]=\"{ highlight: aiTable.selection().selectedFields.has(field._id) }\"\n >\n <!-- [ngStyle]=\"{ width: gridData().fieldsSizeMap[field._id] + 'px' }\" -->\n <span class=\"text-truncate\">\n <thy-icon [thyIconName]=\"field.icon!\" class=\"mr-2 text-muted\"></thy-icon>\n <span>{{ field.name }}</span>\n </span>\n <a\n href=\"javascript:;\"\n class=\"grid-field-action\"\n thyAction\n thyIcon=\"more-vertical\"\n (click)=\"openFieldMenu($event, field, fieldAction)\"\n >\n </a>\n </div>\n }\n <div class=\"grid-column-blank cursor-pointer\" #gridColumnBlank (click)=\"addField(gridColumnBlank)\">\n <thy-icon thyIconName=\"plus\"></thy-icon>\n </div>\n</div>\n<div class=\"grid-body d-flex\">\n @for (record of gridData().records; track record._id; let index = $index) {\n <div class=\"grid-row d-flex\" [ngClass]=\"{ highlight: (record._id | isSelectRecord: aiTable.selection()) }\">\n <div class=\"grid-row-index grid-checkbox\">\n <label\n [ngClass]=\"(record._id | isSelectRecord: aiTable.selection()) ? 'checked-box' : 'unchecked-box'\"\n thyCheckbox\n thyLabelText=\"\"\n [ngModel]=\"record._id | isSelectRecord: aiTable.selection()\"\n (ngModelChange)=\"toggleSelectRecord(record._id)\"\n ></label>\n <span [ngClass]=\"(record._id | isSelectRecord: aiTable.selection()) ? 'grid-row-no-number' : 'grid-row-number'\">\n {{ index + 1 }}\n </span>\n </div>\n @for (field of gridData().fields; track field._id) {\n <!-- [ngClass]=\"{\n highlight: aiTable.selection().selectedCells.has(record._id) || aiTable.selection().selectedFields.has(field._id),\n selected: aiTable.selection().selectedCells.get(record._id)?.hasOwnProperty(field._id)\n }\" -->\n <div #cell class=\"grid-cell\" [attr.type]=\"[field.type]\" [attr.fieldId]=\"[field._id]\" [attr.recordId]=\"[record._id]\">\n <!-- [ngStyle]=\"{ width: gridData().fieldsSizeMap[field._id] + 'px' }\" -->\n @switch (field.type) {\n @case (AITableFieldType.select) {\n @let fieldValue = record.values[field._id];\n @let settings = field.settings! | selectSetting;\n @let options = settings['options'];\n @let optionStyle = settings['option_style'] || AITableSelectOptionStyle.tag;\n @let isTagStyle = optionStyle === AITableSelectOptionStyle.tag;\n\n @if (!settings['is_multiple'] && fieldValue | selectOption: options; as selectedOption) {\n @if (isTagStyle) {\n <select-option class=\"mb-1 mr-1\" [field]=\"field\" [displayOption]=\"selectedOption\"></select-option>\n } @else {\n <div thyTag class=\"mb-1 mr-1\">\n <select-option [field]=\"field\" [displayOption]=\"selectedOption\"></select-option>\n </div>\n }\n } @else {\n @let maxShowCount = 2;\n\n <div class=\"d-flex\">\n @if (fieldValue | selectOptions: options; as selectedOptions) {\n @for (option of selectedOptions; track option!._id; let i = $index) {\n @if (i + 1 <= maxShowCount) {\n @if (isTagStyle) {\n <select-option\n class=\"mb-1 mr-1\"\n [field]=\"field\"\n [displayOption]=\"option!\"\n ></select-option>\n } @else {\n <div thyTag class=\"mb-1 mr-1\">\n <select-option [field]=\"field\" [displayOption]=\"option!\"></select-option>\n </div>\n }\n }\n }\n\n @let selectedLength = selectedOptions.length || 0;\n @if (selectedOptions && maxShowCount < selectedLength) {\n @let shape = isTagStyle ? 'pill' : 'rectangle';\n @let isHidden = maxShowCount >= selectedLength;\n\n <thy-tag\n class=\"cursor-pointer\"\n [class.multi-property-value-hidden]=\"isHidden\"\n [thyShape]=\"shape\"\n >\n <span class=\"text-truncate\"> +{{ selectedLength - maxShowCount }} </span>\n </thy-tag>\n }\n }\n </div>\n }\n }\n @case (AITableFieldType.date) {\n {{ record.values[field._id].timestamp | thyDatePickerFormat }}\n }\n @case (AITableFieldType.updatedAt) {\n <div class=\"d-block user-select-none\">\n <span class=\"text-truncate\">\n {{ record.values[field._id] | thyDatePickerFormat: 'yyyy-MM-dd HH:mm' }}\n </span>\n </div>\n }\n @case (AITableFieldType.createdAt) {\n <div class=\"d-block user-select-none\">\n <span class=\"text-truncate\">\n {{ record.values[field._id] | thyDatePickerFormat: 'yyyy-MM-dd HH:mm' }}\n </span>\n </div>\n }\n @case (AITableFieldType.rate) {\n <thy-rate [ngModel]=\"record.values[field._id]\"></thy-rate>\n }\n @case (AITableFieldType.link) {\n <a\n class=\"d-block\"\n target=\"_blank\"\n [href]=\"record.values[field._id]?.url\"\n thyStopPropagation\n thyFlexibleText\n [thyTooltipContent]=\"record.values[field._id]?.text\"\n >\n {{ record.values[field._id]?.text }}\n </a>\n }\n @case (AITableFieldType.progress) {\n <thy-progress\n class=\"w-100\"\n [thyValue]=\"record.values[field._id] || 0\"\n [thySize]=\"record.values[field._id]?.config?.size || 'md'\"\n [thyMax]=\"record.values[field._id]?.config?.max || 100\"\n [thyType]=\"record.values[field._id]?.config?.progressType || 'success'\"\n >\n <span> {{ record.values[field._id] || 0 }}{{ record.values[field._id]?.config?.suffix || '%' }} </span>\n </thy-progress>\n }\n @case (AITableFieldType.member) {\n @let settings = field.settings! | memberSetting;\n\n @if (!settings!['is_multiple']) {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n @if (recordValues && recordValues.length) {\n <thy-avatar\n [thyName]=\"recordValues[0].display_name!\"\n [thySrc]=\"recordValues[0].avatar!\"\n thySize=\"xs\"\n thyShowName=\"true\"\n ></thy-avatar>\n }\n } @else {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n <thy-avatar-list thyAvatarSize=\"xs\">\n @for (item of recordValues; track $index) {\n <thy-avatar [thyName]=\"item.display_name!\" [thySrc]=\"item.avatar!\"></thy-avatar>\n }\n </thy-avatar-list>\n }\n }\n @case (AITableFieldType.createdBy) {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n @if (recordValues && recordValues.length) {\n <thy-avatar\n [thyName]=\"recordValues[0].display_name!\"\n [thySrc]=\"recordValues[0].avatar!\"\n thySize=\"xs\"\n thyShowName=\"true\"\n ></thy-avatar>\n }\n }\n @case (AITableFieldType.updatedBy) {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n @if (recordValues && recordValues.length) {\n <thy-avatar\n [thyName]=\"recordValues[0].display_name!\"\n [thySrc]=\"recordValues[0].avatar!\"\n thySize=\"xs\"\n thyShowName=\"true\"\n ></thy-avatar>\n }\n }\n @default {\n <span class=\"text-truncate\"> {{ record.values[field._id] }}</span>\n }\n }\n <div class=\"autofill-container\"></div>\n </div>\n }\n <div class=\"grid-column-blank\"></div>\n </div>\n }\n <div class=\"grid-row-insert grid-row cursor-pointer\" (click)=\"addRecord()\">\n <thy-icon thyIconName=\"plus\"></thy-icon>\n </div>\n</div>\n\n<div #activeBorder class=\"active-border\"></div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ThyTag, selector: "thy-tag,[thyTag]", inputs: ["thyTag", "thyShape", "thyColor", "thyTheme", "thySize", "thyHoverable"] }, { kind: "ngmodule", type: ThyPopoverModule }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyRate, selector: "thy-rate", inputs: ["thyValue", "currentValue", "hasHalf", "thyCount", "thyDisabled", "thyAllowHalf", "thyAllowClear", "thyTooltips", "thyIconTemplate"], outputs: ["thyValueChange", "currentValueChange", "hasHalfChange", "thyItemHoverChange"] }, { kind: "component", type: ThyProgress, selector: "thy-progress", inputs: ["thyType", "thySize", "thyValue", "thyMax", "thyTips", "thyShape", "thyGapDegree", "thyGapPosition", "thyStrokeWidth"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }, { kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "component", type: ThyAction, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "ngmodule", type: ThyCheckboxModule }, { kind: "component", type: i2$2.ThyCheckbox, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: ["thyIndeterminate"] }, { kind: "ngmodule", type: ThyAvatarModule }, { kind: "component", type: i3$1.ThyAvatar, selector: "thy-avatar", inputs: ["thyShowName", "thySrc", "thyName", "thySize", "thyShowRemove", "thyRemovable", "thyImgClass", "thyDisabled", "thyLoading", "thyFetchPriority"], outputs: ["thyOnRemove", "thyRemove", "thyError", "thySizeChange"] }, { kind: "component", type: i3$1.ThyAvatarList, selector: "thy-avatar-list", inputs: ["thyMode", "thyAvatarSize"] }, { kind: "component", type: SelectOptionComponent, selector: "select-option", inputs: ["field", "displayOption"] }, { kind: "pipe", type: SelectOptionPipe, name: "selectOption" }, { kind: "pipe", type: SelectOptionsPipe, name: "selectOptions" }, { kind: "pipe", type: ThyDatePickerFormatPipe, name: "thyDatePickerFormat" }, { kind: "pipe", type: IsSelectRecordPipe, name: "isSelectRecord" }, { kind: "pipe", type: UserPipe, name: "user" }, { kind: "pipe", type: SelectSettingPipe, name: "selectSetting" }, { kind: "pipe", type: MemberSettingPipe, name: "memberSetting" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13305
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableDomGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
13306
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableDomGrid, isStandalone: true, selector: "ai-table-dom-grid", host: { classAttribute: "ai-table-grid ai-table-dom-grid" }, providers: [AITableGridEventService, AITableGridFieldService], usesInheritance: true, ngImport: i0, template: "<div class=\"grid-header d-flex\">\n <div class=\"grid-column-checkbox grid-cell grid-checkbox\">\n <label thyCheckbox thyLabelText=\"\" [ngModel]=\"isSelectedAll()\" (ngModelChange)=\"toggleSelectAll($event)\"></label>\n </div>\n @for (field of gridData().fields; track field._id) {\n <div\n class=\"grid-cell grid-field\"\n #fieldAction\n [attr.fieldId]=\"field._id\"\n [ngClass]=\"{ highlight: aiTable.selection().selectedFields.has(field._id) }\"\n >\n <!-- [ngStyle]=\"{ width: gridData().fieldsSizeMap[field._id] + 'px' }\" -->\n <span class=\"text-truncate\">\n <thy-icon [thyIconName]=\"field.icon!\" class=\"mr-2 text-muted\"></thy-icon>\n <span>{{ field.name }}</span>\n </span>\n <a\n href=\"javascript:;\"\n class=\"grid-field-action\"\n thyAction\n thyIcon=\"more-vertical\"\n (click)=\"openFieldMenu($event, field, fieldAction)\"\n >\n </a>\n </div>\n }\n <div class=\"grid-column-blank cursor-pointer\" #gridColumnBlank (click)=\"addField(gridColumnBlank)\">\n <thy-icon thyIconName=\"plus\"></thy-icon>\n </div>\n</div>\n<div class=\"grid-body d-flex\">\n @for (record of gridData().records; track record._id; let index = $index) {\n <div class=\"grid-row d-flex\" [ngClass]=\"{ highlight: (record._id | isSelectRecord: aiTable.selection()) }\">\n <div class=\"grid-row-index grid-checkbox\">\n <label\n [ngClass]=\"(record._id | isSelectRecord: aiTable.selection()) ? 'checked-box' : 'unchecked-box'\"\n thyCheckbox\n thyLabelText=\"\"\n [ngModel]=\"record._id | isSelectRecord: aiTable.selection()\"\n (ngModelChange)=\"toggleSelectRecord(record._id)\"\n ></label>\n <span [ngClass]=\"(record._id | isSelectRecord: aiTable.selection()) ? 'grid-row-no-number' : 'grid-row-number'\">\n {{ index + 1 }}\n </span>\n </div>\n @for (field of gridData().fields; track field._id) {\n <!-- [ngClass]=\"{\n highlight: aiTable.selection().selectedCells.has(record._id) || aiTable.selection().selectedFields.has(field._id),\n selected: aiTable.selection().selectedCells.get(record._id)?.hasOwnProperty(field._id)\n }\" -->\n <div #cell class=\"grid-cell\" [attr.type]=\"[field.type]\" [attr.fieldId]=\"[field._id]\" [attr.recordId]=\"[record._id]\">\n <!-- [ngStyle]=\"{ width: gridData().fieldsSizeMap[field._id] + 'px' }\" -->\n @switch (field.type) {\n @case (AITableFieldType.select) {\n @let fieldValue = record.values[field._id];\n @let settings = field.settings! | selectSetting;\n @let options = settings['options'];\n @let optionStyle = settings['option_style'] || AITableSelectOptionStyle.tag;\n @let isTagStyle = optionStyle === AITableSelectOptionStyle.tag;\n\n @if (!settings['is_multiple'] && fieldValue | selectOption: options; as selectedOption) {\n @if (isTagStyle) {\n <select-option class=\"mb-1 mr-1\" [field]=\"field\" [displayOption]=\"selectedOption\"></select-option>\n } @else {\n <div thyTag class=\"mb-1 mr-1\">\n <select-option [field]=\"field\" [displayOption]=\"selectedOption\"></select-option>\n </div>\n }\n } @else {\n @let maxShowCount = 2;\n\n <div class=\"d-flex\">\n @if (fieldValue | selectOptions: options; as selectedOptions) {\n @for (option of selectedOptions; track option!._id; let i = $index) {\n @if (i + 1 <= maxShowCount) {\n @if (isTagStyle) {\n <select-option\n class=\"mb-1 mr-1\"\n [field]=\"field\"\n [displayOption]=\"option!\"\n ></select-option>\n } @else {\n <div thyTag class=\"mb-1 mr-1\">\n <select-option [field]=\"field\" [displayOption]=\"option!\"></select-option>\n </div>\n }\n }\n }\n\n @let selectedLength = selectedOptions.length || 0;\n @if (selectedOptions && maxShowCount < selectedLength) {\n @let shape = isTagStyle ? 'pill' : 'rectangle';\n @let isHidden = maxShowCount >= selectedLength;\n\n <thy-tag\n class=\"cursor-pointer\"\n [class.multi-property-value-hidden]=\"isHidden\"\n [thyShape]=\"shape\"\n >\n <span class=\"text-truncate\"> +{{ selectedLength - maxShowCount }} </span>\n </thy-tag>\n }\n }\n </div>\n }\n }\n @case (AITableFieldType.date) {\n {{ record.values[field._id].timestamp | thyDatePickerFormat }}\n }\n @case (AITableFieldType.updatedAt) {\n <div class=\"d-block user-select-none\">\n <span class=\"text-truncate\">\n {{ record.values[field._id] | thyDatePickerFormat: 'yyyy-MM-dd HH:mm' }}\n </span>\n </div>\n }\n @case (AITableFieldType.createdAt) {\n <div class=\"d-block user-select-none\">\n <span class=\"text-truncate\">\n {{ record.values[field._id] | thyDatePickerFormat: 'yyyy-MM-dd HH:mm' }}\n </span>\n </div>\n }\n @case (AITableFieldType.rate) {\n <thy-rate [ngModel]=\"record.values[field._id]\"></thy-rate>\n }\n @case (AITableFieldType.link) {\n <a\n class=\"d-block\"\n target=\"_blank\"\n [href]=\"record.values[field._id]?.url\"\n thyStopPropagation\n thyFlexibleText\n [thyTooltipContent]=\"record.values[field._id]?.text\"\n >\n {{ record.values[field._id]?.text }}\n </a>\n }\n @case (AITableFieldType.progress) {\n <thy-progress\n class=\"w-100\"\n [thyValue]=\"record.values[field._id] || 0\"\n [thySize]=\"record.values[field._id]?.config?.size || 'md'\"\n [thyMax]=\"record.values[field._id]?.config?.max || 100\"\n [thyType]=\"record.values[field._id]?.config?.progressType || 'success'\"\n >\n <span> {{ record.values[field._id] || 0 }}{{ record.values[field._id]?.config?.suffix || '%' }} </span>\n </thy-progress>\n }\n @case (AITableFieldType.member) {\n @let settings = field.settings! | memberSetting;\n\n @if (!settings!['is_multiple']) {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n @if (recordValues && recordValues.length) {\n <thy-avatar\n [thyName]=\"recordValues[0].display_name!\"\n [thySrc]=\"recordValues[0].avatar!\"\n thySize=\"xs\"\n thyShowName=\"true\"\n ></thy-avatar>\n }\n } @else {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n <thy-avatar-list thyAvatarSize=\"xs\">\n @for (item of recordValues; track $index) {\n <thy-avatar [thyName]=\"item.display_name!\" [thySrc]=\"item.avatar!\"></thy-avatar>\n }\n </thy-avatar-list>\n }\n }\n @case (AITableFieldType.createdBy) {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n @if (recordValues && recordValues.length) {\n <thy-avatar\n [thyName]=\"recordValues[0].display_name!\"\n [thySrc]=\"recordValues[0].avatar!\"\n thySize=\"xs\"\n thyShowName=\"true\"\n ></thy-avatar>\n }\n }\n @case (AITableFieldType.updatedBy) {\n @let recordValues = record.values[field._id] | user: aiReferences()!;\n\n @if (recordValues && recordValues.length) {\n <thy-avatar\n [thyName]=\"recordValues[0].display_name!\"\n [thySrc]=\"recordValues[0].avatar!\"\n thySize=\"xs\"\n thyShowName=\"true\"\n ></thy-avatar>\n }\n }\n @default {\n <span class=\"text-truncate\"> {{ record.values[field._id] }}</span>\n }\n }\n <div class=\"autofill-container\"></div>\n </div>\n }\n <div class=\"grid-column-blank\"></div>\n </div>\n }\n <div class=\"grid-row-insert grid-row cursor-pointer\" (click)=\"addRecord()\">\n <thy-icon thyIconName=\"plus\"></thy-icon>\n </div>\n</div>\n\n<div #activeBorder class=\"active-border\"></div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ThyTag, selector: "thy-tag,[thyTag]", inputs: ["thyTag", "thyShape", "thyColor", "thyTheme", "thySize", "thyHoverable"] }, { kind: "ngmodule", type: ThyPopoverModule }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "component", type: ThyRate, selector: "thy-rate", inputs: ["thyValue", "currentValue", "hasHalf", "thyCount", "thyDisabled", "thyAllowHalf", "thyAllowClear", "thyTooltips", "thyIconTemplate"], outputs: ["thyValueChange", "currentValueChange", "hasHalfChange", "thyItemHoverChange"] }, { kind: "component", type: ThyProgress, selector: "thy-progress", inputs: ["thyType", "thySize", "thyValue", "thyMax", "thyTips", "thyShape", "thyGapDegree", "thyGapPosition", "thyStrokeWidth"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }, { kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "component", type: ThyAction, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "ngmodule", type: ThyCheckboxModule }, { kind: "component", type: i2$2.ThyCheckbox, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: ["thyIndeterminate"] }, { kind: "ngmodule", type: ThyAvatarModule }, { kind: "component", type: i3$1.ThyAvatar, selector: "thy-avatar", inputs: ["thyShowName", "thySrc", "thyName", "thySize", "thyShowRemove", "thyRemovable", "thyImgClass", "thyDisabled", "thyLoading", "thyFetchPriority"], outputs: ["thyOnRemove", "thyRemove", "thyError", "thySizeChange"] }, { kind: "component", type: i3$1.ThyAvatarList, selector: "thy-avatar-list", inputs: ["thyMode", "thyAvatarSize"] }, { kind: "component", type: SelectOptionComponent, selector: "select-option", inputs: ["field", "displayOption"] }, { kind: "pipe", type: SelectOptionPipe, name: "selectOption" }, { kind: "pipe", type: SelectOptionsPipe, name: "selectOptions" }, { kind: "pipe", type: ThyDatePickerFormatPipe, name: "thyDatePickerFormat" }, { kind: "pipe", type: IsSelectRecordPipe, name: "isSelectRecord" }, { kind: "pipe", type: UserPipe, name: "user" }, { kind: "pipe", type: SelectSettingPipe, name: "selectSetting" }, { kind: "pipe", type: MemberSettingPipe, name: "memberSetting" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13295
13307
|
}
|
|
13296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableDomGrid, decorators: [{
|
|
13297
13309
|
type: Component,
|
|
13298
13310
|
args: [{ selector: 'ai-table-dom-grid', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
13299
13311
|
class: 'ai-table-grid ai-table-dom-grid'
|
|
@@ -13513,10 +13525,10 @@ class AITableScrollControllerService {
|
|
|
13513
13525
|
this.mouseUpSubscription = null;
|
|
13514
13526
|
}
|
|
13515
13527
|
}
|
|
13516
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13517
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13528
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableScrollControllerService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13529
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableScrollControllerService }); }
|
|
13518
13530
|
}
|
|
13519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableScrollControllerService, decorators: [{
|
|
13520
13532
|
type: Injectable
|
|
13521
13533
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
13522
13534
|
|
|
@@ -13605,17 +13617,17 @@ class RecordDetailService {
|
|
|
13605
13617
|
}
|
|
13606
13618
|
});
|
|
13607
13619
|
}
|
|
13608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13609
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13620
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RecordDetailService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13621
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RecordDetailService }); }
|
|
13610
13622
|
}
|
|
13611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RecordDetailService, decorators: [{
|
|
13612
13624
|
type: Injectable
|
|
13613
13625
|
}] });
|
|
13614
13626
|
|
|
13615
13627
|
class AITableDragComponent {
|
|
13616
13628
|
constructor() {
|
|
13617
|
-
this.horizontalBar = input(...(ngDevMode ? [undefined, { debugName: "horizontalBar" }] :
|
|
13618
|
-
this.verticalBar = input(...(ngDevMode ? [undefined, { debugName: "verticalBar" }] :
|
|
13629
|
+
this.horizontalBar = input(...(ngDevMode ? [undefined, { debugName: "horizontalBar" }] : []));
|
|
13630
|
+
this.verticalBar = input(...(ngDevMode ? [undefined, { debugName: "verticalBar" }] : []));
|
|
13619
13631
|
this.dragEnd = output();
|
|
13620
13632
|
this.aiTableGridEventService = inject(AITableGridEventService);
|
|
13621
13633
|
this.render2 = inject(Renderer2);
|
|
@@ -14054,10 +14066,10 @@ class AITableDragComponent {
|
|
|
14054
14066
|
}
|
|
14055
14067
|
this.scrollControllerService.destroy();
|
|
14056
14068
|
}
|
|
14057
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14058
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
14069
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableDragComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14070
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.14", type: AITableDragComponent, isStandalone: true, selector: "ai-table-drag", inputs: { horizontalBar: { classPropertyName: "horizontalBar", publicName: "horizontalBar", isSignal: true, isRequired: false, transformFunction: null }, verticalBar: { classPropertyName: "verticalBar", publicName: "verticalBar", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dragEnd: "dragEnd" }, host: { classAttribute: "ai-table-drag-container" }, ngImport: i0, template: "<div class=\"rect\"></div>\n<div class=\"auxiliary-line\"></div>", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14059
14071
|
}
|
|
14060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableDragComponent, decorators: [{
|
|
14061
14073
|
type: Component,
|
|
14062
14074
|
args: [{ selector: 'ai-table-drag', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
14063
14075
|
class: 'ai-table-drag-container'
|
|
@@ -14065,10 +14077,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
14065
14077
|
}], ctorParameters: () => [], propDecorators: { horizontalBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontalBar", required: false }] }], verticalBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalBar", required: false }] }], dragEnd: [{ type: i0.Output, args: ["dragEnd"] }] } });
|
|
14066
14078
|
|
|
14067
14079
|
class AITableGrid extends AITableGridBase {
|
|
14080
|
+
shouldIgnoreMouseEvents() {
|
|
14081
|
+
return this.ignoreMouseEventsUntil > Date.now();
|
|
14082
|
+
}
|
|
14083
|
+
ignoreMouseEventsFor(durationMs) {
|
|
14084
|
+
this.ignoreMouseEventsUntil = Date.now() + durationMs;
|
|
14085
|
+
}
|
|
14086
|
+
ignoreMouseEventsAfterTouchScroll() {
|
|
14087
|
+
this.ignoreMouseEventsFor(this.touchScrollMouseSuppressionMs);
|
|
14088
|
+
}
|
|
14068
14089
|
constructor() {
|
|
14069
14090
|
super();
|
|
14070
14091
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
14071
14092
|
this.isDragSelectionAutoScrolling = false;
|
|
14093
|
+
this.touchPanState = {
|
|
14094
|
+
isTouching: false,
|
|
14095
|
+
lastClientX: 0,
|
|
14096
|
+
lastClientY: 0,
|
|
14097
|
+
hasMoved: false
|
|
14098
|
+
};
|
|
14099
|
+
this.touchScrollMouseSuppressionMs = 450;
|
|
14100
|
+
this.ignoreMouseEventsUntil = 0;
|
|
14072
14101
|
this.dragSelectState = {
|
|
14073
14102
|
isDragging: false,
|
|
14074
14103
|
startCell: null
|
|
@@ -14083,7 +14112,7 @@ class AITableGrid extends AITableGridBase {
|
|
|
14083
14112
|
this.recordDetailService = inject(RecordDetailService);
|
|
14084
14113
|
this.isPopoverOpen = false;
|
|
14085
14114
|
this.fieldHeadHeight = AI_TABLE_FIELD_HEAD_HEIGHT;
|
|
14086
|
-
this.containerRect = signal({ width: 0, height: 0 }, ...(ngDevMode ? [{ debugName: "containerRect" }] :
|
|
14115
|
+
this.containerRect = signal({ width: 0, height: 0 }, ...(ngDevMode ? [{ debugName: "containerRect" }] : []));
|
|
14087
14116
|
this.frozenColumnCount = computed(() => {
|
|
14088
14117
|
const containerWidth = this.containerRect().width;
|
|
14089
14118
|
const aiFrozenColumnCountFn = this.aiFrozenColumnCountFn();
|
|
@@ -14091,17 +14120,17 @@ class AITableGrid extends AITableGridBase {
|
|
|
14091
14120
|
return aiFrozenColumnCountFn(containerWidth);
|
|
14092
14121
|
}
|
|
14093
14122
|
return AI_TABLE_MIN_FROZEN_COLUMN_COUNT;
|
|
14094
|
-
}, ...(ngDevMode ? [{ debugName: "frozenColumnCount" }] :
|
|
14095
|
-
this.showExpandIcon = computed(() => !!this.aiRecordDetailConfig()?.showExpandIcon, ...(ngDevMode ? [{ debugName: "showExpandIcon" }] :
|
|
14123
|
+
}, ...(ngDevMode ? [{ debugName: "frozenColumnCount" }] : []));
|
|
14124
|
+
this.showExpandIcon = computed(() => !!this.aiRecordDetailConfig()?.showExpandIcon, ...(ngDevMode ? [{ debugName: "showExpandIcon" }] : []));
|
|
14096
14125
|
this.hasContainerRect = computed(() => {
|
|
14097
14126
|
return this.containerRect().width > 0 && this.containerRect().height > 0;
|
|
14098
|
-
}, ...(ngDevMode ? [{ debugName: "hasContainerRect" }] :
|
|
14099
|
-
this.container = viewChild('container', ...(ngDevMode ? [{ debugName: "container" }] :
|
|
14100
|
-
this.verticalBarRef = viewChild('verticalBar', ...(ngDevMode ? [{ debugName: "verticalBarRef" }] :
|
|
14101
|
-
this.horizontalBarRef = viewChild('horizontalBar', ...(ngDevMode ? [{ debugName: "horizontalBarRef" }] :
|
|
14127
|
+
}, ...(ngDevMode ? [{ debugName: "hasContainerRect" }] : []));
|
|
14128
|
+
this.container = viewChild('container', ...(ngDevMode ? [{ debugName: "container" }] : []));
|
|
14129
|
+
this.verticalBarRef = viewChild('verticalBar', ...(ngDevMode ? [{ debugName: "verticalBarRef" }] : []));
|
|
14130
|
+
this.horizontalBarRef = viewChild('horizontalBar', ...(ngDevMode ? [{ debugName: "horizontalBarRef" }] : []));
|
|
14102
14131
|
this.linearRows = computed(() => {
|
|
14103
14132
|
return buildGridLinearRows(this.gridData().records, !this.aiReadonly(), this.aiTable, this.aiBuildGroupLinearRowsFn?.());
|
|
14104
|
-
}, ...(ngDevMode ? [{ debugName: "linearRows" }] :
|
|
14133
|
+
}, ...(ngDevMode ? [{ debugName: "linearRows" }] : []));
|
|
14105
14134
|
this.domToolTips = computed(() => {
|
|
14106
14135
|
const scrollTop = this.aiTable.context.scrollState().scrollTop;
|
|
14107
14136
|
const rowIndices = this.toolTipRowIndices();
|
|
@@ -14114,7 +14143,7 @@ class AITableGrid extends AITableGridBase {
|
|
|
14114
14143
|
tooltip
|
|
14115
14144
|
};
|
|
14116
14145
|
});
|
|
14117
|
-
}, ...(ngDevMode ? [{ debugName: "domToolTips" }] :
|
|
14146
|
+
}, ...(ngDevMode ? [{ debugName: "domToolTips" }] : []));
|
|
14118
14147
|
this.toolTipRowIndices = computed(() => {
|
|
14119
14148
|
const hiddenRows = this.aiTable.recordsWillHidden() || [];
|
|
14120
14149
|
const moveRows = this.aiTable.recordsWillMove() || [];
|
|
@@ -14131,11 +14160,11 @@ class AITableGrid extends AITableGridBase {
|
|
|
14131
14160
|
});
|
|
14132
14161
|
});
|
|
14133
14162
|
return toolTipRowIndices;
|
|
14134
|
-
}, ...(ngDevMode ? [{ debugName: "toolTipRowIndices" }] :
|
|
14163
|
+
}, ...(ngDevMode ? [{ debugName: "toolTipRowIndices" }] : []));
|
|
14135
14164
|
this.visibleColumnsIndexMap = computed(() => {
|
|
14136
14165
|
const columns = AITable.getVisibleFields(this.aiTable);
|
|
14137
14166
|
return new Map(columns?.map((item, index) => [item._id, index]));
|
|
14138
|
-
}, ...(ngDevMode ? [{ debugName: "visibleColumnsIndexMap" }] :
|
|
14167
|
+
}, ...(ngDevMode ? [{ debugName: "visibleColumnsIndexMap" }] : []));
|
|
14139
14168
|
this.fieldOptions = computed(() => {
|
|
14140
14169
|
let allFieldOptions = getDefaultFieldOptions().map((fieldOption) => {
|
|
14141
14170
|
const name = getI18nTextByKey(this.aiTable, fieldOption.name);
|
|
@@ -14151,16 +14180,16 @@ class AITableGrid extends AITableGridBase {
|
|
|
14151
14180
|
allFieldOptions = filterFieldOptions(allFieldOptions);
|
|
14152
14181
|
}
|
|
14153
14182
|
return allFieldOptions;
|
|
14154
|
-
}, ...(ngDevMode ? [{ debugName: "fieldOptions" }] :
|
|
14183
|
+
}, ...(ngDevMode ? [{ debugName: "fieldOptions" }] : []));
|
|
14155
14184
|
this.fieldOptionMap = computed(() => {
|
|
14156
14185
|
return new Map(this.fieldOptions().map((fieldOption) => [fieldOption.type, fieldOption]));
|
|
14157
|
-
}, ...(ngDevMode ? [{ debugName: "fieldOptionMap" }] :
|
|
14186
|
+
}, ...(ngDevMode ? [{ debugName: "fieldOptionMap" }] : []));
|
|
14158
14187
|
this.visibleRowsIndexMap = computed(() => {
|
|
14159
14188
|
return new Map(this.linearRows().map((row, index) => [row._id, index]));
|
|
14160
|
-
}, ...(ngDevMode ? [{ debugName: "visibleRowsIndexMap" }] :
|
|
14189
|
+
}, ...(ngDevMode ? [{ debugName: "visibleRowsIndexMap" }] : []));
|
|
14161
14190
|
this.containerElement = computed(() => {
|
|
14162
14191
|
return this.container().nativeElement;
|
|
14163
|
-
}, ...(ngDevMode ? [{ debugName: "containerElement" }] :
|
|
14192
|
+
}, ...(ngDevMode ? [{ debugName: "containerElement" }] : []));
|
|
14164
14193
|
this.trackBy = (index, item) => {
|
|
14165
14194
|
return item.sort_by ?? index;
|
|
14166
14195
|
};
|
|
@@ -14192,25 +14221,25 @@ class AITableGrid extends AITableGridBase {
|
|
|
14192
14221
|
maxRecords: this.aiMaxRecords(),
|
|
14193
14222
|
maxSelectOptions: this.aiMaxSelectOptions()
|
|
14194
14223
|
};
|
|
14195
|
-
}, ...(ngDevMode ? [{ debugName: "rendererConfig" }] :
|
|
14224
|
+
}, ...(ngDevMode ? [{ debugName: "rendererConfig" }] : []));
|
|
14196
14225
|
this.coordinate = computed(() => {
|
|
14197
14226
|
return this.rendererConfig().coordinate;
|
|
14198
|
-
}, ...(ngDevMode ? [{ debugName: "coordinate" }] :
|
|
14227
|
+
}, ...(ngDevMode ? [{ debugName: "coordinate" }] : []));
|
|
14199
14228
|
this.scrollState = computed(() => {
|
|
14200
14229
|
return this.aiTable.context.scrollState();
|
|
14201
|
-
}, ...(ngDevMode ? [{ debugName: "scrollState" }] :
|
|
14230
|
+
}, ...(ngDevMode ? [{ debugName: "scrollState" }] : []));
|
|
14202
14231
|
this.scrollTotalHeight = computed(() => {
|
|
14203
14232
|
return Math.max(this.coordinate().totalHeight, this.containerRect().height - this.fieldHeadHeight);
|
|
14204
|
-
}, ...(ngDevMode ? [{ debugName: "scrollTotalHeight" }] :
|
|
14233
|
+
}, ...(ngDevMode ? [{ debugName: "scrollTotalHeight" }] : []));
|
|
14205
14234
|
this.scrollbarWidth = computed(() => {
|
|
14206
14235
|
return this.coordinate().totalWidth + AI_TABLE_FIELD_ADD_BUTTON_WIDTH;
|
|
14207
|
-
}, ...(ngDevMode ? [{ debugName: "scrollbarWidth" }] :
|
|
14236
|
+
}, ...(ngDevMode ? [{ debugName: "scrollbarWidth" }] : []));
|
|
14208
14237
|
this.i18nTexts = computed(() => {
|
|
14209
14238
|
this.aiGetI18nTextByKey();
|
|
14210
14239
|
return {
|
|
14211
14240
|
rowAddFilterTooltip: getI18nTextByKey(this.aiTable, AITableGridI18nKey.rowAddFilterTooltip)
|
|
14212
14241
|
};
|
|
14213
|
-
}, ...(ngDevMode ? [{ debugName: "i18nTexts" }] :
|
|
14242
|
+
}, ...(ngDevMode ? [{ debugName: "i18nTexts" }] : []));
|
|
14214
14243
|
// rowAddFilterTooltip = getI18nTextByKey(this.aiTable, AITableGridI18nKey.rowAddFilterTooltip);
|
|
14215
14244
|
this.rowIndicesMap = computed(() => {
|
|
14216
14245
|
const rowIndicesMap = {};
|
|
@@ -14223,7 +14252,7 @@ class AITableGrid extends AITableGridBase {
|
|
|
14223
14252
|
}
|
|
14224
14253
|
});
|
|
14225
14254
|
return rowIndicesMap;
|
|
14226
|
-
}, ...(ngDevMode ? [{ debugName: "rowIndicesMap" }] :
|
|
14255
|
+
}, ...(ngDevMode ? [{ debugName: "rowIndicesMap" }] : []));
|
|
14227
14256
|
this.actions = {
|
|
14228
14257
|
updateFieldValues: (data) => {
|
|
14229
14258
|
this.aiUpdateFieldValues.emit(data);
|
|
@@ -14434,6 +14463,9 @@ class AITableGrid extends AITableGridBase {
|
|
|
14434
14463
|
}
|
|
14435
14464
|
}
|
|
14436
14465
|
stageMousemove(e) {
|
|
14466
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14467
|
+
return;
|
|
14468
|
+
}
|
|
14437
14469
|
if (this.timer) {
|
|
14438
14470
|
cancelAnimationFrame(this.timer);
|
|
14439
14471
|
}
|
|
@@ -14480,6 +14512,9 @@ class AITableGrid extends AITableGridBase {
|
|
|
14480
14512
|
});
|
|
14481
14513
|
}
|
|
14482
14514
|
stageMousedown(e) {
|
|
14515
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14516
|
+
return;
|
|
14517
|
+
}
|
|
14483
14518
|
const mouseEvent = e.event.evt;
|
|
14484
14519
|
const _targetName = e.event.target.name();
|
|
14485
14520
|
const { targetName, fieldId, recordId } = getDetailByTargetName(_targetName);
|
|
@@ -14554,6 +14589,9 @@ class AITableGrid extends AITableGridBase {
|
|
|
14554
14589
|
}
|
|
14555
14590
|
}
|
|
14556
14591
|
stageMouseup(e) {
|
|
14592
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14593
|
+
return;
|
|
14594
|
+
}
|
|
14557
14595
|
this.updateDragSelectState(false, null);
|
|
14558
14596
|
if (this.dragFillState.isDragging) {
|
|
14559
14597
|
this.performFill(e);
|
|
@@ -14591,11 +14629,58 @@ class AITableGrid extends AITableGridBase {
|
|
|
14591
14629
|
});
|
|
14592
14630
|
}
|
|
14593
14631
|
stageWheel(e) {
|
|
14632
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14633
|
+
return;
|
|
14634
|
+
}
|
|
14594
14635
|
e.event.evt.preventDefault();
|
|
14595
14636
|
this.aiTableGridEventService.closeCellEditor();
|
|
14596
14637
|
this.scrollAction({ deltaX: e.event.evt.deltaX, deltaY: e.event.evt.deltaY, shiftKey: e.event.evt.shiftKey });
|
|
14597
14638
|
}
|
|
14639
|
+
stageTouchstart(e) {
|
|
14640
|
+
const touch = e.event.evt.touches?.[0];
|
|
14641
|
+
if (!touch) {
|
|
14642
|
+
return;
|
|
14643
|
+
}
|
|
14644
|
+
this.touchPanState = {
|
|
14645
|
+
isTouching: true,
|
|
14646
|
+
lastClientX: touch.clientX,
|
|
14647
|
+
lastClientY: touch.clientY,
|
|
14648
|
+
hasMoved: false
|
|
14649
|
+
};
|
|
14650
|
+
}
|
|
14651
|
+
stageTouchmove(e) {
|
|
14652
|
+
const touch = e.event.evt.touches?.[0];
|
|
14653
|
+
if (!touch || !this.touchPanState.isTouching) {
|
|
14654
|
+
return;
|
|
14655
|
+
}
|
|
14656
|
+
const deltaX = this.touchPanState.lastClientX - touch.clientX;
|
|
14657
|
+
const deltaY = this.touchPanState.lastClientY - touch.clientY;
|
|
14658
|
+
this.touchPanState.lastClientX = touch.clientX;
|
|
14659
|
+
this.touchPanState.lastClientY = touch.clientY;
|
|
14660
|
+
if (Math.abs(deltaX) < 0.5 && Math.abs(deltaY) < 0.5) {
|
|
14661
|
+
return;
|
|
14662
|
+
}
|
|
14663
|
+
e.event.evt.preventDefault();
|
|
14664
|
+
this.aiTableGridEventService.closeCellEditor();
|
|
14665
|
+
if (!this.touchPanState.hasMoved && (Math.abs(deltaX) > 2 || Math.abs(deltaY) > 2)) {
|
|
14666
|
+
this.touchPanState.hasMoved = true;
|
|
14667
|
+
}
|
|
14668
|
+
if (this.touchPanState.hasMoved) {
|
|
14669
|
+
this.ignoreMouseEventsAfterTouchScroll();
|
|
14670
|
+
}
|
|
14671
|
+
this.scrollAction({ deltaX, deltaY, shiftKey: false });
|
|
14672
|
+
}
|
|
14673
|
+
stageTouchend(e) {
|
|
14674
|
+
if (this.touchPanState.hasMoved) {
|
|
14675
|
+
this.ignoreMouseEventsAfterTouchScroll();
|
|
14676
|
+
}
|
|
14677
|
+
this.touchPanState.isTouching = false;
|
|
14678
|
+
this.touchPanState.hasMoved = false;
|
|
14679
|
+
}
|
|
14598
14680
|
stageContextmenu(e) {
|
|
14681
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14682
|
+
return;
|
|
14683
|
+
}
|
|
14599
14684
|
const mouseEvent = e.event.evt;
|
|
14600
14685
|
mouseEvent.preventDefault();
|
|
14601
14686
|
if (this.aiReadonly()) {
|
|
@@ -14626,6 +14711,9 @@ class AITableGrid extends AITableGridBase {
|
|
|
14626
14711
|
});
|
|
14627
14712
|
}
|
|
14628
14713
|
stageClick(e) {
|
|
14714
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14715
|
+
return;
|
|
14716
|
+
}
|
|
14629
14717
|
const targetNameDetail = getDetailByTargetName(e.event.target.name());
|
|
14630
14718
|
this.aiClick.emit({
|
|
14631
14719
|
...e,
|
|
@@ -14734,6 +14822,9 @@ class AITableGrid extends AITableGridBase {
|
|
|
14734
14822
|
return;
|
|
14735
14823
|
}
|
|
14736
14824
|
stageDblclick(e) {
|
|
14825
|
+
if (this.shouldIgnoreMouseEvents()) {
|
|
14826
|
+
return;
|
|
14827
|
+
}
|
|
14737
14828
|
const _targetName = e.event.target.name();
|
|
14738
14829
|
const targetNameDetail = getDetailByTargetName(_targetName);
|
|
14739
14830
|
this.aiDbClick.emit({
|
|
@@ -15174,14 +15265,14 @@ class AITableGrid extends AITableGridBase {
|
|
|
15174
15265
|
}
|
|
15175
15266
|
});
|
|
15176
15267
|
}
|
|
15177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15178
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
15268
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGrid, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15269
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AITableGrid, isStandalone: true, selector: "ai-table-grid", host: { classAttribute: "ai-table-grid" }, providers: [AITableGridEventService, AITableGridFieldService, AITableScrollControllerService, RecordDetailService], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "verticalBarRef", first: true, predicate: ["verticalBar"], descendants: true, isSignal: true }, { propertyName: "horizontalBarRef", first: true, predicate: ["horizontalBar"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n (koWheel)=\"stageWheel($event)\"\n (koTouchstart)=\"stageTouchstart($event)\"\n (koTouchmove)=\"stageTouchmove($event)\"\n (koTouchend)=\"stageTouchend($event)\"\n >\n @if (domToolTips().length > 0) {\n <div\n class=\"ai-table-left-background-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n @for (domToolTip of domToolTips(); track trackBy(idx, domToolTip); let idx = $index) {\n <div\n class=\"ai-table-left-background\"\n [thyTooltip]=\"domToolTip.tooltip\"\n [style.--scroll-top.px]=\"domToolTip.top\"\n [style.height.px]=\"domToolTip.height\"\n >\n <thy-icon class=\"text-white\" thyIconName=\"filter-line\"></thy-icon>\n </div>\n }\n </div>\n }\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag [horizontalBar]=\"horizontalBarRef()\" [verticalBar]=\"verticalBarRef()\" (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n", dependencies: [{ kind: "component", type: AITableRenderer, selector: "ai-table-renderer", inputs: ["config"], outputs: ["koMousemove", "koMousedown", "koMouseup", "koContextmenu", "koWheel", "koClick", "koDblclick", "koMouseleave", "koTouchstart", "koTouchmove", "koTouchend", "onScrollPosition"] }, { kind: "component", type: AITableDragComponent, selector: "ai-table-drag", inputs: ["horizontalBar", "verticalBar"], outputs: ["dragEnd"] }, { kind: "directive", type: ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15179
15270
|
}
|
|
15180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AITableGrid, decorators: [{
|
|
15181
15272
|
type: Component,
|
|
15182
15273
|
args: [{ selector: 'ai-table-grid', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
15183
15274
|
class: 'ai-table-grid'
|
|
15184
|
-
}, imports: [AITableRenderer, AITableDragComponent, ThyTooltipDirective, ThyIcon], providers: [AITableGridEventService, AITableGridFieldService, AITableScrollControllerService, RecordDetailService], template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n (koWheel)=\"stageWheel($event)\"\n >\n @if (domToolTips().length > 0) {\n <div\n class=\"ai-table-left-background-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n @for (domToolTip of domToolTips(); track trackBy(idx, domToolTip); let idx = $index) {\n <div\n class=\"ai-table-left-background\"\n [thyTooltip]=\"domToolTip.tooltip\"\n [style.--scroll-top.px]=\"domToolTip.top\"\n [style.height.px]=\"domToolTip.height\"\n >\n <thy-icon class=\"text-white\" thyIconName=\"filter-line\"></thy-icon>\n </div>\n }\n </div>\n }\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag [horizontalBar]=\"horizontalBarRef()\" [verticalBar]=\"verticalBarRef()\" (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n" }]
|
|
15275
|
+
}, imports: [AITableRenderer, AITableDragComponent, ThyTooltipDirective, ThyIcon], providers: [AITableGridEventService, AITableGridFieldService, AITableScrollControllerService, RecordDetailService], template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n (koWheel)=\"stageWheel($event)\"\n (koTouchstart)=\"stageTouchstart($event)\"\n (koTouchmove)=\"stageTouchmove($event)\"\n (koTouchend)=\"stageTouchend($event)\"\n >\n @if (domToolTips().length > 0) {\n <div\n class=\"ai-table-left-background-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n @for (domToolTip of domToolTips(); track trackBy(idx, domToolTip); let idx = $index) {\n <div\n class=\"ai-table-left-background\"\n [thyTooltip]=\"domToolTip.tooltip\"\n [style.--scroll-top.px]=\"domToolTip.top\"\n [style.height.px]=\"domToolTip.height\"\n >\n <thy-icon class=\"text-white\" thyIconName=\"filter-line\"></thy-icon>\n </div>\n }\n </div>\n }\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag [horizontalBar]=\"horizontalBarRef()\" [verticalBar]=\"verticalBarRef()\" (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n" }]
|
|
15185
15276
|
}], ctorParameters: () => [], propDecorators: { container: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], verticalBarRef: [{ type: i0.ViewChild, args: ['verticalBar', { isSignal: true }] }], horizontalBarRef: [{ type: i0.ViewChild, args: ['horizontalBar', { isSignal: true }] }] } });
|
|
15186
15277
|
|
|
15187
15278
|
/**
|