@colijnit/corecomponents_v12 12.2.14 → 12.2.16

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.
@@ -9203,6 +9203,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
9203
9203
  this.defaultTextAlign = ColumnAlign.Left;
9204
9204
  this.showAdd = false;
9205
9205
  this.showDelete = false;
9206
+ this.editOnCellClick = true;
9206
9207
  this.rightToolbar = false;
9207
9208
  this.rowsPerPage = 1000;
9208
9209
  this.editing = false;
@@ -9334,17 +9335,25 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
9334
9335
  this._detectChanges();
9335
9336
  }
9336
9337
  handleDblClickRow(event, index, row) {
9337
- if (this.isRowDisabled(row)) {
9338
- this.selectedRowIndex = -1;
9339
- return;
9340
- }
9341
- this._doubleClicked = true;
9342
- this.dblClickRow.next(this.data[index]);
9343
- this.selectTheRow(index, false);
9344
- if (this.inlineEdit) {
9345
- this.editRow(event);
9346
- }
9347
- this._resetDblClick();
9338
+ return __awaiter(this, void 0, void 0, function* () {
9339
+ if (this.isRowDisabled(row)) {
9340
+ this.selectedRowIndex = -1;
9341
+ return;
9342
+ }
9343
+ let canEdit = true;
9344
+ if (this.canRowBeEdittedFn && typeof this.canRowBeEdittedFn === 'function') {
9345
+ canEdit = yield this.canRowBeEdittedFn.call(this);
9346
+ }
9347
+ if (canEdit) {
9348
+ this._doubleClicked = true;
9349
+ this.dblClickRow.next(this.data[index]);
9350
+ this.selectTheRow(index, false);
9351
+ if (this.inlineEdit) {
9352
+ this.editRow(event);
9353
+ }
9354
+ }
9355
+ this._resetDblClick();
9356
+ });
9348
9357
  }
9349
9358
  editRow(event, selectCell = true) {
9350
9359
  this.editRowIndex = this.selectedRowIndex;
@@ -9358,16 +9367,21 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
9358
9367
  this._detectChanges();
9359
9368
  }
9360
9369
  handleCellClick(event, row, rowIndex, cellIndex) {
9361
- if (this.isRowDisabled(row)) {
9362
- this.selectedRowIndex = -1;
9363
- return;
9370
+ if (this.editOnCellClick) {
9371
+ if (this.isRowDisabled(row)) {
9372
+ this.selectedRowIndex = -1;
9373
+ return;
9374
+ }
9375
+ this.selectTheRow(rowIndex, false);
9376
+ if (this.inlineEdit) {
9377
+ this.editRowIndex = rowIndex;
9378
+ this.editCellIndex = cellIndex;
9379
+ this.editing = true;
9380
+ this.editRow(event, false);
9381
+ }
9364
9382
  }
9365
- this.selectTheRow(rowIndex, false);
9366
- if (this.inlineEdit) {
9367
- this.editRowIndex = rowIndex;
9383
+ else {
9368
9384
  this.editCellIndex = cellIndex;
9369
- this.editing = true;
9370
- this.editRow(event, false);
9371
9385
  }
9372
9386
  this._detectChanges();
9373
9387
  }
@@ -9614,9 +9628,11 @@ SimpleGridComponent.propDecorators = {
9614
9628
  headerCells: [{ type: ViewChildren, args: ['headerCell',] }],
9615
9629
  showAdd: [{ type: Input }],
9616
9630
  showDelete: [{ type: Input }],
9631
+ editOnCellClick: [{ type: Input }],
9617
9632
  rightToolbar: [{ type: Input }],
9618
9633
  rowsPerPage: [{ type: Input }],
9619
9634
  rowDisabledFn: [{ type: Input }],
9635
+ canRowBeEdittedFn: [{ type: Input }],
9620
9636
  showClass: [{ type: HostBinding, args: ['class.co-simple-grid',] }],
9621
9637
  handleKeyDown: [{ type: HostListener, args: ['keydown', ['$event'],] }]
9622
9638
  };
@@ -12388,6 +12404,105 @@ InputScannerModule.decorators = [
12388
12404
  },] }
12389
12405
  ];
12390
12406
 
12407
+ class LoaderComponent {
12408
+ showClass() {
12409
+ return true;
12410
+ }
12411
+ }
12412
+ LoaderComponent.decorators = [
12413
+ { type: Component, args: [{
12414
+ selector: 'co-loader',
12415
+ template: `
12416
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
12417
+ viewBox="0 0 200 200" xml:space="preserve">
12418
+ <defs>
12419
+ <linearGradient id="gradientFade" x1="20%" x2="50%" y1="60%" y2="100%">
12420
+ <stop offset="0%" class="spinner-gradient-stop" />
12421
+ <stop offset="25%" stop-opacity="75%" class="spinner-gradient-stop" />
12422
+ <stop offset="50%" stop-opacity="50%" class="spinner-gradient-stop" />
12423
+ <stop offset="75%" stop-opacity="25%" class="spinner-gradient-stop" />
12424
+ <stop offset="100%" stop-opacity="5%" class="spinner-gradient-stop" />
12425
+ </linearGradient>
12426
+ </defs>
12427
+ <g id="mask">
12428
+ <ellipse transform="matrix(0.7071 -0.7071 0.7071 0.7071 -41.0887 100.8995)" class="circle" cx="101.25" cy="101.25" rx="77.58"
12429
+ ry="77.58"/>
12430
+ </g>
12431
+ <g>
12432
+ <circle id="ring" class="ring-color" cx="100" cy="100" r="90" fill="transparent" />
12433
+ </g>
12434
+ <g id="js">
12435
+ <path class="main-color" d="M87.93,149.17c-0.12-0.17-0.08-0.4,0.09-0.52l0.61-0.45c2.92-2.14,4.34-4.61,4.34-7.56l0-20.64h2.47
12436
+ c0.74,0,1.34,0.6,1.34,1.34v18.32c0,2.97-0.65,5.4-1.93,7.23c-0.61,0.89-1.25,1.66-1.9,2.28c-0.63,0.6-1.41,1.23-2.3,1.87
12437
+ l-0.65,0.47c-0.18,0.12-0.42,0.08-0.54-0.1L87.93,149.17z"/>
12438
+ <path class="main-color" d="M107.12,142.92c-2.24,0-4.18-0.59-5.79-1.75l0,0c-0.47-0.34-0.59-1-0.27-1.48l1.06-1.59
12439
+ c0.12-0.17,0.35-0.22,0.53-0.11l0.58,0.38c1.18,0.77,2.43,1.14,3.84,1.14c1.36,0,2.39-0.25,3.05-0.75
12440
+ c0.59-0.44,0.86-1.04,0.86-1.92c0-0.59-0.22-1.15-0.68-1.71c-0.55-0.67-1.23-1.29-2.02-1.84c-0.85-0.58-1.74-1.22-2.66-1.88
12441
+ c-0.97-0.7-1.81-1.55-2.5-2.53c-0.75-1.06-1.12-2.23-1.12-3.46c0-1.67,0.63-3.02,1.89-4.01c1.17-0.93,2.74-1.4,4.66-1.4
12442
+ c1.83,0,3.55,0.37,5.13,1.11l0.62,0.29c0.19,0.09,0.27,0.31,0.19,0.5l-1.03,2.37c-0.08,0.19-0.31,0.28-0.5,0.2l-0.64-0.27
12443
+ c-1.22-0.52-2.45-0.78-3.64-0.78c-3.01,0-3.01,1.31-3.01,1.94c0,0.63,0.22,1.21,0.68,1.77c0.55,0.67,1.22,1.28,2.01,1.8
12444
+ c0.91,0.61,1.8,1.22,2.66,1.82c0.97,0.68,1.82,1.52,2.5,2.47c0.75,1.04,1.13,2.2,1.13,3.44c0,2.05-0.72,3.64-2.14,4.72
12445
+ C111.17,142.4,109.36,142.92,107.12,142.92z"/>
12446
+ </g>
12447
+ <g id="i">
12448
+ <path class="second-color" d="M38.1,100.24V80.62c0-0.18,0.14-0.32,0.32-0.32h2.53c0.88,0,1.6,0.72,1.6,1.6v18.34
12449
+ c0,0.18-0.14,0.32-0.32,0.32h-3.8C38.25,100.56,38.1,100.42,38.1,100.24z"/>
12450
+ </g>
12451
+ <g id="n">
12452
+ <path class="second-color" d="M126.95,107l-14.97-17.18c-0.19-0.22-0.56-0.09-0.56,0.21v16.62c0,0.18-0.14,0.32-0.32,0.32h-3.8
12453
+ c-0.18,0-0.32-0.14-0.32-0.32V82.12c0-0.88,0.72-1.6,1.6-1.6h1.07c0.09,0,0.18,0.04,0.24,0.11l14.97,17.22
12454
+ c0.19,0.22,0.56,0.09,0.56-0.21V80.99c0-0.18,0.14-0.32,0.32-0.32h3.8c0.18,0,0.32,0.14,0.32,0.32v25.81
12455
+ c0,0.18-0.14,0.32-0.32,0.32h-2.35C127.1,107.11,127.01,107.07,126.95,107z"/>
12456
+ </g>
12457
+ <g id="e">
12458
+ <path class="second-color" d="M150.28,105.37V80.99c0-0.18,0.14-0.32,0.32-0.32h13.12c0.18,0,0.32,0.14,0.32,0.32v3.59
12459
+ c0,0.18-0.14,0.32-0.32,0.32h-8.68c-0.18,0-0.32,0.14-0.32,0.32v5.14c0,0.18,0.14,0.32,0.32,0.32h7.77c0.18,0,0.32,0.14,0.32,0.32
12460
+ v3.55c0,0.18-0.14,0.32-0.32,0.32h-7.77c-0.18,0-0.32,0.14-0.32,0.32v7.17c0,0.18,0.14,0.32,0.32,0.32h9.04
12461
+ c0.18,0,0.32,0.14,0.32,0.32v3.66c0,0.18-0.14,0.32-0.32,0.32h-12.2C151,106.97,150.28,106.25,150.28,105.37z"/>
12462
+ </g>
12463
+ <g id="o">
12464
+ <path class="second-color" d="M67.44,86.2c0.59,0.54,0.68,1.43,0.23,2.09c-0.41,0.6-0.75,1.24-1.01,1.92c-0.42,1.1-0.63,2.31-0.63,3.61
12465
+ c0,1.3,0.21,2.51,0.63,3.61c0.42,1.1,1.04,2.1,1.88,2.98c0.82,0.87,1.75,1.53,2.8,1.97c1.04,0.44,2.19,0.66,3.44,0.66
12466
+ c1.25,0,2.4-0.22,3.43-0.66c1.04-0.44,1.97-1.09,2.78-1.97c0.83-0.88,1.45-1.88,1.86-2.98c0.42-1.1,0.63-2.31,0.63-3.61
12467
+ c0-1.3-0.21-2.51-0.63-3.62c-0.42-1.1-1.04-2.11-1.87-3c-0.81-0.87-1.74-1.53-2.78-1.97c-1.04-0.44-2.18-0.66-3.43-0.66
12468
+ c-0.77,0-1.49,0.08-2.18,0.25c-0.75,0.18-1.53-0.19-1.84-0.9l-1.03-2.32c-0.07-0.17,0-0.36,0.17-0.43
12469
+ c1.49-0.58,3.12-0.87,4.86-0.87c1.87,0,3.59,0.33,5.17,0.99c1.58,0.66,3,1.64,4.27,2.95c1.26,1.3,2.21,2.76,2.84,4.36
12470
+ c0.63,1.6,0.95,3.34,0.95,5.22c0,1.88-0.32,3.62-0.95,5.22c-0.63,1.6-1.58,3.06-2.84,4.36c-1.27,1.31-2.69,2.29-4.27,2.95
12471
+ c-1.58,0.66-3.31,0.99-5.17,0.99c-1.87,0-3.6-0.33-5.17-0.99c-1.58-0.66-3-1.64-4.27-2.95c-1.26-1.3-2.21-2.76-2.84-4.36
12472
+ c-0.63-1.6-0.95-3.34-0.95-5.22c0-1.88,0.32-3.62,0.95-5.22c0.6-1.51,1.47-2.88,2.63-4.13c0.12-0.13,0.32-0.13,0.45-0.02
12473
+ L67.44,86.2z"/>
12474
+ </g>
12475
+ <g id="smile">
12476
+ <path class="main-color" d="M101.26,178.35c-3.73-0.01-7.38-0.28-10.86-0.82c-3.62-0.57-6.94-1.38-9.85-2.4c-3.01-1.05-5.69-2.3-7.94-3.73
12477
+ c-1.09-0.71-2.1-1.76-2.99-2.84c0.98,0.74,2.03,1.44,3.16,2.07c2.38,1.38,5.13,2.58,8.16,3.55c5.99,1.93,13.15,2.99,20.17,2.99
12478
+ h0.31c7.01,0,14.17-1.06,20.16-2.99c3.03-0.97,5.78-2.16,8.17-3.55c1.12-0.64,2.17-1.32,3.15-2.06c-0.89,1.08-1.89,2.13-2.99,2.83
12479
+ c-2.25,1.42-4.92,2.67-7.94,3.72c-2.91,1.02-6.23,1.83-9.85,2.4C108.65,178.07,105,178.35,101.26,178.35z"/>
12480
+ </g>
12481
+ </svg>
12482
+ `,
12483
+ encapsulation: ViewEncapsulation.None
12484
+ },] }
12485
+ ];
12486
+ LoaderComponent.propDecorators = {
12487
+ showClass: [{ type: HostBinding, args: ['class.co-loader',] }]
12488
+ };
12489
+
12490
+ class LoaderModule {
12491
+ }
12492
+ LoaderModule.decorators = [
12493
+ { type: NgModule, args: [{
12494
+ imports: [
12495
+ CommonModule
12496
+ ],
12497
+ declarations: [
12498
+ LoaderComponent
12499
+ ],
12500
+ exports: [
12501
+ LoaderComponent
12502
+ ]
12503
+ },] }
12504
+ ];
12505
+
12391
12506
  class FilterPipe {
12392
12507
  transform(items, field, value) {
12393
12508
  if (!items || !field) {
@@ -13079,5 +13194,5 @@ ColorSequenceService.decorators = [
13079
13194
  * Generated bundle index. Do not edit.
13080
13195
  */
13081
13196
 
13082
- export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, PaginationService as ɵba, PaginatePipe as ɵbb, SimpleGridCellComponent as ɵbc, ListOfValuesMultiselectPopupComponent as ɵbd, ConfirmationDialogComponent as ɵbe, DialogBaseComponent as ɵbf, CoreDynamicComponentService as ɵbg, PrependPipeModule as ɵbh, PrependPipe as ɵbi, CheckmarkOverlayComponent as ɵbj, ScannerService as ɵbk, TooltipModule as ɵbl, TooltipComponent as ɵbm, TooltipDirective as ɵbn, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, CoreLocalizePipe as ɵp, CoreDictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw, PopupShowerService as ɵx, BaseSimpleGridComponent as ɵy, ObserveVisibilityDirective as ɵz };
13197
+ export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, PaginationService as ɵba, PaginatePipe as ɵbb, SimpleGridCellComponent as ɵbc, ListOfValuesMultiselectPopupComponent as ɵbd, ConfirmationDialogComponent as ɵbe, DialogBaseComponent as ɵbf, CoreDynamicComponentService as ɵbg, PrependPipeModule as ɵbh, PrependPipe as ɵbi, CheckmarkOverlayComponent as ɵbj, ScannerService as ɵbk, TooltipModule as ɵbl, TooltipComponent as ɵbm, TooltipDirective as ɵbn, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, CoreLocalizePipe as ɵp, CoreDictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw, PopupShowerService as ɵx, BaseSimpleGridComponent as ɵy, ObserveVisibilityDirective as ɵz };
13083
13198
  //# sourceMappingURL=colijnit-corecomponents_v12.js.map