@seniorsistemas/angular-components 17.2.20 → 17.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-angular-components.umd.js +437 -5
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/kanban/components/kanban-column/kanban-column.component.d.ts +16 -0
- package/components/kanban/components/kanban-item/kanban-item.component.d.ts +13 -0
- package/components/kanban/components/kanban-item-dragging/kanban-item-dragging.component.d.ts +3 -0
- package/components/kanban/index.d.ts +4 -0
- package/components/kanban/kanban-event.service.d.ts +12 -0
- package/components/kanban/kanban.component.d.ts +41 -0
- package/components/kanban/kanban.module.d.ts +2 -0
- package/components/kanban/models/index.d.ts +2 -0
- package/components/kanban/models/kanban-data.d.ts +20 -0
- package/components/kanban/models/kanban-template-types.d.ts +7 -0
- package/components/kanban/template.directive.d.ts +6 -0
- package/esm2015/components/kanban/components/kanban-column/kanban-column.component.js +82 -0
- package/esm2015/components/kanban/components/kanban-item/kanban-item.component.js +44 -0
- package/esm2015/components/kanban/components/kanban-item-dragging/kanban-item-dragging.component.js +19 -0
- package/esm2015/components/kanban/index.js +5 -0
- package/esm2015/components/kanban/kanban-event.service.js +27 -0
- package/esm2015/components/kanban/kanban.component.js +209 -0
- package/esm2015/components/kanban/kanban.module.js +45 -0
- package/esm2015/components/kanban/models/index.js +2 -0
- package/esm2015/components/kanban/models/kanban-data.js +1 -0
- package/esm2015/components/kanban/models/kanban-template-types.js +9 -0
- package/esm2015/components/kanban/template.directive.js +20 -0
- package/esm2015/components/progressbar/components/progressbar-determinate/progressbar-determinate.component.js +1 -1
- package/esm2015/locale/fallback.js +3 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/seniorsistemas-angular-components.js +5 -1
- package/esm5/components/kanban/components/kanban-column/kanban-column.component.js +84 -0
- package/esm5/components/kanban/components/kanban-item/kanban-item.component.js +45 -0
- package/esm5/components/kanban/components/kanban-item-dragging/kanban-item-dragging.component.js +20 -0
- package/esm5/components/kanban/index.js +5 -0
- package/esm5/components/kanban/kanban-event.service.js +28 -0
- package/esm5/components/kanban/kanban.component.js +213 -0
- package/esm5/components/kanban/kanban.module.js +48 -0
- package/esm5/components/kanban/models/index.js +2 -0
- package/esm5/components/kanban/models/kanban-data.js +1 -0
- package/esm5/components/kanban/models/kanban-template-types.js +9 -0
- package/esm5/components/kanban/template.directive.js +21 -0
- package/esm5/components/progressbar/components/progressbar-determinate/progressbar-determinate.component.js +1 -1
- package/esm5/locale/fallback.js +3 -1
- package/esm5/public-api.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +5 -1
- package/fesm2015/seniorsistemas-angular-components.js +415 -2
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +428 -2
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/seniorsistemas-angular-components.d.ts +4 -0
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('primeng/breadcrumb'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@ngx-translate/core'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/slider'), require('primeng/api'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@angular/cdk/clipboard'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('primeng/confirmdialog'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/router', 'primeng/breadcrumb', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@ngx-translate/core', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/slider', 'primeng/api', 'primeng/progressbar', '@angular/platform-browser', '@angular/cdk/clipboard', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', 'primeng/confirmdialog', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter'], factory) :
|
|
4
|
-
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.router, global.breadcrumb, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.core$1, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.slider, global.api, global.progressbar, global.ng.platformBrowser, global.ng.cdk.clipboard, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.confirmdialog, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter));
|
|
5
|
-
}(this, (function (exports, core, animations, rxjs, operators, common, forms, router, breadcrumb, tieredmenu, tooltip, dom, calendar, core$1, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, slider, api, progressbar, platformBrowser, clipboard, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, confirmdialog, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('primeng/breadcrumb'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@ngx-translate/core'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/slider'), require('primeng/api'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@angular/cdk/clipboard'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('primeng/confirmdialog'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter'), require('@angular/cdk/drag-drop')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/router', 'primeng/breadcrumb', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@ngx-translate/core', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/slider', 'primeng/api', 'primeng/progressbar', '@angular/platform-browser', '@angular/cdk/clipboard', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', 'primeng/confirmdialog', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter', '@angular/cdk/drag-drop'], factory) :
|
|
4
|
+
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.router, global.breadcrumb, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.core$1, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.slider, global.api, global.progressbar, global.ng.platformBrowser, global.ng.cdk.clipboard, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.confirmdialog, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter, global.ng.cdk['drag-drop']));
|
|
5
|
+
}(this, (function (exports, core, animations, rxjs, operators, common, forms, router, breadcrumb, tieredmenu, tooltip, dom, calendar, core$1, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, slider, api, progressbar, platformBrowser, clipboard, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, confirmdialog, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter, dragDrop) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var BigNumber__default = 'default' in BigNumber ? BigNumber['default'] : BigNumber;
|
|
8
8
|
Cropper = Cropper && Cropper.hasOwnProperty('default') ? Cropper['default'] : Cropper;
|
|
@@ -15639,7 +15639,7 @@
|
|
|
15639
15639
|
core.Component({
|
|
15640
15640
|
selector: "s-progressbar-determinate",
|
|
15641
15641
|
template: "<div class=\"progressbar-determinate\">\n <div class=\"progressbar-container\">\n <div\n class=\"progressbar-active\"\n [ngClass]=\"{\n 'progressbar-active--blue' : activeColor === 'blue',\n 'progressbar-active--green': activeColor === 'green',\n 'progressbar-active--red': activeColor === 'red',\n 'progressbar-active--yellow': activeColor === 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n {{ showValue && value ? value + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || value + '%' }}\n </span>\n </div>\n </div>\n ",
|
|
15642
|
-
styles: [".progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
15642
|
+
styles: [".progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10;color:#212533}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
15643
15643
|
})
|
|
15644
15644
|
], ProgressBarDeterminateComponent);
|
|
15645
15645
|
return ProgressBarDeterminateComponent;
|
|
@@ -15898,6 +15898,8 @@
|
|
|
15898
15898
|
}());
|
|
15899
15899
|
|
|
15900
15900
|
var fallback = {
|
|
15901
|
+
"platform.angular_components.count_items_in_target": "{{ count }} itens em {{ target }}",
|
|
15902
|
+
"platform.angular_components.count_items_selected": "{{ count }} itens selecionados",
|
|
15901
15903
|
"platform.angular_components.january": "Janeiro",
|
|
15902
15904
|
"platform.angular_components.february": "Fevereiro",
|
|
15903
15905
|
"platform.angular_components.march": "Março",
|
|
@@ -16194,6 +16196,429 @@
|
|
|
16194
16196
|
"platform.angular_components.date_modified_custom_blob": "Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}"
|
|
16195
16197
|
};
|
|
16196
16198
|
|
|
16199
|
+
|
|
16200
|
+
(function (KanbanTemplateTypes) {
|
|
16201
|
+
KanbanTemplateTypes["ColumnHeader"] = "column-header";
|
|
16202
|
+
KanbanTemplateTypes["ColumnEmptyMessage"] = "column-empty-message";
|
|
16203
|
+
KanbanTemplateTypes["ItemHeader"] = "item-header";
|
|
16204
|
+
KanbanTemplateTypes["ItemBody"] = "item-body";
|
|
16205
|
+
KanbanTemplateTypes["ItemFooter"] = "item-footer";
|
|
16206
|
+
})(exports.KanbanTemplateTypes || (exports.KanbanTemplateTypes = {}));
|
|
16207
|
+
|
|
16208
|
+
var TemplateDirective = /** @class */ (function () {
|
|
16209
|
+
function TemplateDirective(template) {
|
|
16210
|
+
this.template = template;
|
|
16211
|
+
}
|
|
16212
|
+
TemplateDirective.ctorParameters = function () { return [
|
|
16213
|
+
{ type: core.TemplateRef }
|
|
16214
|
+
]; };
|
|
16215
|
+
__decorate([
|
|
16216
|
+
core.Input("sTemplate")
|
|
16217
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
16218
|
+
TemplateDirective = __decorate([
|
|
16219
|
+
core.Directive({
|
|
16220
|
+
selector: "[sTemplate]",
|
|
16221
|
+
})
|
|
16222
|
+
], TemplateDirective);
|
|
16223
|
+
return TemplateDirective;
|
|
16224
|
+
}());
|
|
16225
|
+
|
|
16226
|
+
var KanbanEventService = /** @class */ (function () {
|
|
16227
|
+
function KanbanEventService() {
|
|
16228
|
+
this.selectAllColumnItemsEvent = new core.EventEmitter();
|
|
16229
|
+
this.unselectAllColumnItemsEvent = new core.EventEmitter();
|
|
16230
|
+
this.selectItemEvent = new core.EventEmitter();
|
|
16231
|
+
this.unselectItemEvent = new core.EventEmitter();
|
|
16232
|
+
}
|
|
16233
|
+
KanbanEventService.prototype.emitSelectAllColumnItemsEvent = function (column) {
|
|
16234
|
+
this.selectAllColumnItemsEvent.emit(column);
|
|
16235
|
+
};
|
|
16236
|
+
KanbanEventService.prototype.emitUnselectAllColumnItemsEvent = function (column) {
|
|
16237
|
+
this.unselectAllColumnItemsEvent.emit(column);
|
|
16238
|
+
};
|
|
16239
|
+
KanbanEventService.prototype.emitSelectItemEvent = function (item) {
|
|
16240
|
+
this.selectItemEvent.emit(item);
|
|
16241
|
+
};
|
|
16242
|
+
KanbanEventService.prototype.emitUnselectItemEvent = function (item) {
|
|
16243
|
+
this.unselectItemEvent.emit(item);
|
|
16244
|
+
};
|
|
16245
|
+
KanbanEventService = __decorate([
|
|
16246
|
+
core.Injectable()
|
|
16247
|
+
], KanbanEventService);
|
|
16248
|
+
return KanbanEventService;
|
|
16249
|
+
}());
|
|
16250
|
+
|
|
16251
|
+
var KanbanComponent = /** @class */ (function () {
|
|
16252
|
+
function KanbanComponent(kanbanEventService) {
|
|
16253
|
+
this.kanbanEventService = kanbanEventService;
|
|
16254
|
+
this.itemsMoved = new core.EventEmitter();
|
|
16255
|
+
this.dataUpdated = new core.EventEmitter();
|
|
16256
|
+
this.itemsSelected = new core.EventEmitter();
|
|
16257
|
+
this.selectedItems = new Set();
|
|
16258
|
+
this.draggingItems = new Set();
|
|
16259
|
+
this._unsubscribe$ = new rxjs.Subject();
|
|
16260
|
+
}
|
|
16261
|
+
KanbanComponent.prototype.ngOnInit = function () {
|
|
16262
|
+
this._subscribeEvents();
|
|
16263
|
+
this._normalizeData();
|
|
16264
|
+
this._validateInputs();
|
|
16265
|
+
};
|
|
16266
|
+
KanbanComponent.prototype.ngAfterContentInit = function () {
|
|
16267
|
+
this._getTemplates();
|
|
16268
|
+
};
|
|
16269
|
+
KanbanComponent.prototype.ngOnDestroy = function () {
|
|
16270
|
+
this._unsubscribe$.next();
|
|
16271
|
+
this._unsubscribe$.complete();
|
|
16272
|
+
};
|
|
16273
|
+
KanbanComponent.prototype.drop = function (event) {
|
|
16274
|
+
var _this = this;
|
|
16275
|
+
var _a;
|
|
16276
|
+
var previousColumn = this.data.columns.find(function (column) { return column.id === event.previousContainer.id; });
|
|
16277
|
+
var targetColumn = this.data.columns.find(function (column) { return column.id === event.container.id; });
|
|
16278
|
+
if (!previousColumn || !targetColumn) {
|
|
16279
|
+
throw new Error("Unable to obtain information about columns when performing drag and drop");
|
|
16280
|
+
}
|
|
16281
|
+
if (event.previousContainer === event.container) {
|
|
16282
|
+
dragDrop.moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
|
|
16283
|
+
}
|
|
16284
|
+
else {
|
|
16285
|
+
dragDrop.transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
|
|
16286
|
+
}
|
|
16287
|
+
this.selectedItems.forEach(function (item) {
|
|
16288
|
+
var previousIndex = event.previousContainer.data.indexOf(item);
|
|
16289
|
+
if (previousIndex !== -1 && item !== event.item.data) {
|
|
16290
|
+
if (event.previousContainer === event.container) {
|
|
16291
|
+
dragDrop.moveItemInArray(event.container.data, previousIndex, event.currentIndex);
|
|
16292
|
+
}
|
|
16293
|
+
else {
|
|
16294
|
+
dragDrop.transferArrayItem(event.previousContainer.data, event.container.data, previousIndex, event.currentIndex);
|
|
16295
|
+
}
|
|
16296
|
+
}
|
|
16297
|
+
});
|
|
16298
|
+
this.selectedItems.add(event.item.data);
|
|
16299
|
+
this.itemsMoved.emit({
|
|
16300
|
+
items: __spread(this.selectedItems),
|
|
16301
|
+
previousColumn: previousColumn,
|
|
16302
|
+
targetColumn: targetColumn,
|
|
16303
|
+
});
|
|
16304
|
+
if ((_a = this.dataUpdated.observers) === null || _a === void 0 ? void 0 : _a.length) {
|
|
16305
|
+
this.dataUpdated.emit(__assign({}, this.data));
|
|
16306
|
+
}
|
|
16307
|
+
this.data.columns.forEach(function (column) {
|
|
16308
|
+
_this.kanbanEventService.emitUnselectAllColumnItemsEvent(column);
|
|
16309
|
+
});
|
|
16310
|
+
this.selectedItems.clear();
|
|
16311
|
+
};
|
|
16312
|
+
KanbanComponent.prototype.selectItem = function (event, item, column) {
|
|
16313
|
+
if (event.ctrlKey) {
|
|
16314
|
+
if (this.selectedItems.delete(item)) {
|
|
16315
|
+
this.kanbanEventService.emitUnselectItemEvent(item);
|
|
16316
|
+
}
|
|
16317
|
+
else {
|
|
16318
|
+
if (this.selectedColumn && !this.selectedColumn.items.includes(item)) {
|
|
16319
|
+
this.selectedItems.clear();
|
|
16320
|
+
}
|
|
16321
|
+
this.selectedItems.add(item);
|
|
16322
|
+
this.selectedColumn = column;
|
|
16323
|
+
this.kanbanEventService.emitSelectItemEvent(item);
|
|
16324
|
+
}
|
|
16325
|
+
}
|
|
16326
|
+
else {
|
|
16327
|
+
this.selectedItems.clear();
|
|
16328
|
+
this.selectedItems.add(item);
|
|
16329
|
+
this.selectedColumn = column;
|
|
16330
|
+
this.kanbanEventService.emitSelectItemEvent(item);
|
|
16331
|
+
}
|
|
16332
|
+
};
|
|
16333
|
+
KanbanComponent.prototype.dragStarted = function () {
|
|
16334
|
+
var _this = this;
|
|
16335
|
+
this.selectedItems.forEach(function (item) {
|
|
16336
|
+
_this.draggingItems.add(item);
|
|
16337
|
+
});
|
|
16338
|
+
};
|
|
16339
|
+
KanbanComponent.prototype.dragReleased = function () {
|
|
16340
|
+
this.draggingItems.clear();
|
|
16341
|
+
};
|
|
16342
|
+
KanbanComponent.prototype.getLinkedColumns = function (currentColumn) {
|
|
16343
|
+
return this.data.columns
|
|
16344
|
+
.filter(function (column) { return column != currentColumn; })
|
|
16345
|
+
.map(function (column) { return column.id; });
|
|
16346
|
+
};
|
|
16347
|
+
KanbanComponent.prototype.getColumnHeaderTemplate = function () {
|
|
16348
|
+
return this._getCustomTemplate(exports.KanbanTemplateTypes.ColumnHeader);
|
|
16349
|
+
};
|
|
16350
|
+
KanbanComponent.prototype.getColumnEmptyMessageTemplate = function () {
|
|
16351
|
+
return this._getCustomTemplate(exports.KanbanTemplateTypes.ColumnEmptyMessage);
|
|
16352
|
+
};
|
|
16353
|
+
KanbanComponent.prototype.getItemHeaderTemplate = function () {
|
|
16354
|
+
return this._getCustomTemplate(exports.KanbanTemplateTypes.ItemHeader);
|
|
16355
|
+
};
|
|
16356
|
+
KanbanComponent.prototype.getItemBodyTemplate = function () {
|
|
16357
|
+
return this._getCustomTemplate(exports.KanbanTemplateTypes.ItemBody);
|
|
16358
|
+
};
|
|
16359
|
+
KanbanComponent.prototype.getItemFooterTemplate = function () {
|
|
16360
|
+
return this._getCustomTemplate(exports.KanbanTemplateTypes.ItemFooter);
|
|
16361
|
+
};
|
|
16362
|
+
KanbanComponent.prototype._getCustomTemplate = function (type) {
|
|
16363
|
+
var _a;
|
|
16364
|
+
return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
|
|
16365
|
+
};
|
|
16366
|
+
KanbanComponent.prototype._subscribeEvents = function () {
|
|
16367
|
+
var _this = this;
|
|
16368
|
+
this.kanbanEventService.selectAllColumnItemsEvent
|
|
16369
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16370
|
+
.subscribe(function (column) {
|
|
16371
|
+
column.items
|
|
16372
|
+
.filter(function (item) { return !item.disabled; })
|
|
16373
|
+
.forEach(function (item) {
|
|
16374
|
+
_this.selectedItems.add(item);
|
|
16375
|
+
});
|
|
16376
|
+
_this.selectedColumn = column;
|
|
16377
|
+
_this.itemsSelected.emit(__spread(_this.selectedItems));
|
|
16378
|
+
});
|
|
16379
|
+
this.kanbanEventService.unselectAllColumnItemsEvent
|
|
16380
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16381
|
+
.subscribe(function (_) {
|
|
16382
|
+
_this.selectedItems.clear();
|
|
16383
|
+
});
|
|
16384
|
+
this.kanbanEventService.selectItemEvent
|
|
16385
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16386
|
+
.subscribe(function (item) {
|
|
16387
|
+
if (_this.selectedColumn && !_this.selectedColumn.items.includes(item)) {
|
|
16388
|
+
_this.selectedItems.clear();
|
|
16389
|
+
}
|
|
16390
|
+
_this.selectedItems.add(item);
|
|
16391
|
+
_this.itemsSelected.emit(__spread(_this.selectedItems));
|
|
16392
|
+
// Finding the item column and setting selectedColumn.
|
|
16393
|
+
_this.data.columns.forEach(function (column) {
|
|
16394
|
+
column.items.forEach(function (currentItem) {
|
|
16395
|
+
if (currentItem === item) {
|
|
16396
|
+
_this.selectedColumn = column;
|
|
16397
|
+
return;
|
|
16398
|
+
}
|
|
16399
|
+
});
|
|
16400
|
+
});
|
|
16401
|
+
});
|
|
16402
|
+
this.kanbanEventService.unselectItemEvent
|
|
16403
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16404
|
+
.subscribe(function (item) {
|
|
16405
|
+
_this.selectedItems.delete(item);
|
|
16406
|
+
});
|
|
16407
|
+
};
|
|
16408
|
+
KanbanComponent.prototype._normalizeData = function () {
|
|
16409
|
+
this.data.columns.forEach(function (column) {
|
|
16410
|
+
column.id = column.id || "id-" + Math.random().toString(36).substring(2, 9) + "-" + Date.now().toString(36);
|
|
16411
|
+
});
|
|
16412
|
+
};
|
|
16413
|
+
KanbanComponent.prototype._validateInputs = function () {
|
|
16414
|
+
var columns = this.data.columns;
|
|
16415
|
+
var columnIds = this.data.columns.map(function (column) { return column.id; });
|
|
16416
|
+
if (new Set(columnIds).size !== columns.length) {
|
|
16417
|
+
throw new Error("Repeated IDs are not accepted.");
|
|
16418
|
+
}
|
|
16419
|
+
};
|
|
16420
|
+
KanbanComponent.prototype._getTemplates = function () {
|
|
16421
|
+
this.columnHeaderTemplate = this.getColumnHeaderTemplate();
|
|
16422
|
+
this.columnEmptyMessageTemplate = this.getColumnEmptyMessageTemplate();
|
|
16423
|
+
this.itemHeaderTemplate = this.getItemHeaderTemplate();
|
|
16424
|
+
this.itemBodyTemplate = this.getItemBodyTemplate();
|
|
16425
|
+
this.itemFooterTemplate = this.getItemFooterTemplate();
|
|
16426
|
+
};
|
|
16427
|
+
KanbanComponent.ctorParameters = function () { return [
|
|
16428
|
+
{ type: KanbanEventService }
|
|
16429
|
+
]; };
|
|
16430
|
+
__decorate([
|
|
16431
|
+
core.Input()
|
|
16432
|
+
], KanbanComponent.prototype, "data", void 0);
|
|
16433
|
+
__decorate([
|
|
16434
|
+
core.Output()
|
|
16435
|
+
], KanbanComponent.prototype, "itemsMoved", void 0);
|
|
16436
|
+
__decorate([
|
|
16437
|
+
core.Output()
|
|
16438
|
+
], KanbanComponent.prototype, "dataUpdated", void 0);
|
|
16439
|
+
__decorate([
|
|
16440
|
+
core.Output()
|
|
16441
|
+
], KanbanComponent.prototype, "itemsSelected", void 0);
|
|
16442
|
+
__decorate([
|
|
16443
|
+
core.ContentChildren(TemplateDirective)
|
|
16444
|
+
], KanbanComponent.prototype, "templates", void 0);
|
|
16445
|
+
KanbanComponent = __decorate([
|
|
16446
|
+
core.Component({
|
|
16447
|
+
selector: 's-kanban',
|
|
16448
|
+
template: "<div class=\"kanban\">\n <s-kanban-column\n *ngFor=\"let column of data.columns\"\n [data]=\"column\"\n [headerTemplate]=\"columnHeaderTemplate\">\n <div\n [id]=\"column.id\"\n style=\"height: 100%; width: 100%;\"\n cdkDropList\n #dynamicList=\"cdkDropList\"\n [cdkDropListData]=\"column.items\"\n [cdkDropListConnectedTo]=\"getLinkedColumns(column)\"\n (cdkDropListDropped)=\"drop($event)\">\n\n <ng-container *ngIf=\"!columnEmptyMessageTemplate; then defaultEmptyMessageTemplate else customEmptyMessageTemplate\"></ng-container>\n\n <ng-template #defaultEmptyMessageTemplate>\n <div *ngIf=\"!column.items.length\" class=\"empty-message\">\n <p class=\"text\">\n <span class=\"fas fa-clock\"></span> \n <span>{{ \"platform.angular_components.count_items_in_target\" | translate:{ count: column.items.length, target: column.title } }}</span>\n </p>\n </div>\n </ng-template>\n\n <ng-template #customEmptyMessageTemplate>\n <ng-container *ngTemplateOutlet=\"columnEmptyMessageTemplate; context: { $implicit: column }\"></ng-container>\n </ng-template>\n\n <div\n *ngFor=\"let item of column.items\"\n cdkDrag\n [cdkDragData]=\"item\"\n [cdkDragDisabled]=\"item.disabled\"\n (cdkDragStarted)=\"dragStarted()\"\n (cdkDragReleased)=\"dragReleased()\"\n (click)=\"selectItem($event, item, column)\">\n \n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n\n <ng-container *cdkDragPreview>\n <ng-container *ngIf=\"selectedItems.size > 1; then itemDraggingTemplate else itemTemplate\"></ng-container>\n </ng-container>\n\n <ng-template #itemTemplate>\n <s-kanban-item\n [item]=\"item\"\n [selected]=\"selectedItems.has(item)\"\n [headerTemplate]=\"itemHeaderTemplate\"\n [bodyTemplate]=\"itemBodyTemplate\"\n [footerTemplate]=\"itemFooterTemplate\">\n </s-kanban-item>\n </ng-template>\n\n <ng-template #itemDraggingTemplate>\n <s-kanban-item-dragging [quantityItems]=\"selectedItems.size\"></s-kanban-item-dragging>\n </ng-template>\n\n <div *cdkDragPlaceholder>\n <div class=\"placeholder\">\n <div class=\"placeholder-line\"></div>\n </div>\n </div>\n </div>\n </div>\n </s-kanban-column>\n</div>\n\n",
|
|
16449
|
+
styles: [".kanban{display:-ms-flexbox;display:flex;gap:16px;width:100%}.kanban .empty-message{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:16px}.kanban .empty-message .text{overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%;white-space:nowrap}@media screen and (max-width:600px){.kanban{-ms-flex-direction:column;flex-direction:column}}s-kanban-column{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;min-width:292px}.placeholder{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.placeholder .placeholder-line{background-color:#a5a5b2;height:1px;margin:6px 0;width:50%}"]
|
|
16450
|
+
})
|
|
16451
|
+
], KanbanComponent);
|
|
16452
|
+
return KanbanComponent;
|
|
16453
|
+
}());
|
|
16454
|
+
|
|
16455
|
+
var KanbanItemComponent = /** @class */ (function () {
|
|
16456
|
+
function KanbanItemComponent(_kanbanEventService) {
|
|
16457
|
+
this._kanbanEventService = _kanbanEventService;
|
|
16458
|
+
this.selected = false;
|
|
16459
|
+
}
|
|
16460
|
+
KanbanItemComponent.prototype.onSelectedChange = function (value) {
|
|
16461
|
+
if (value) {
|
|
16462
|
+
this._kanbanEventService.emitSelectItemEvent(this.item);
|
|
16463
|
+
}
|
|
16464
|
+
else {
|
|
16465
|
+
this._kanbanEventService.emitUnselectItemEvent(this.item);
|
|
16466
|
+
}
|
|
16467
|
+
};
|
|
16468
|
+
KanbanItemComponent.ctorParameters = function () { return [
|
|
16469
|
+
{ type: KanbanEventService }
|
|
16470
|
+
]; };
|
|
16471
|
+
__decorate([
|
|
16472
|
+
core.Input()
|
|
16473
|
+
], KanbanItemComponent.prototype, "item", void 0);
|
|
16474
|
+
__decorate([
|
|
16475
|
+
core.Input()
|
|
16476
|
+
], KanbanItemComponent.prototype, "selected", void 0);
|
|
16477
|
+
__decorate([
|
|
16478
|
+
core.Input()
|
|
16479
|
+
], KanbanItemComponent.prototype, "headerTemplate", void 0);
|
|
16480
|
+
__decorate([
|
|
16481
|
+
core.Input()
|
|
16482
|
+
], KanbanItemComponent.prototype, "bodyTemplate", void 0);
|
|
16483
|
+
__decorate([
|
|
16484
|
+
core.Input()
|
|
16485
|
+
], KanbanItemComponent.prototype, "footerTemplate", void 0);
|
|
16486
|
+
KanbanItemComponent = __decorate([
|
|
16487
|
+
core.Component({
|
|
16488
|
+
selector: 's-kanban-item',
|
|
16489
|
+
template: "<p-tieredMenu\n #optionsMenu\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"9999\"\n [model]=\"item.options\">\n</p-tieredMenu>\n\n<div\n class=\"kanban-item\"\n [ngClass]=\"{\n 'kanban-item--selected': selected && !item.disabled,\n 'kanban-item--disabled': item.disabled\n }\">\n <div class=\"kanban-item__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"!item.disabled\"\n type=\"checkbox\"\n name=\"checkbox\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"onSelectedChange($event)\"\n (click)=\"$event.stopPropagation()\">\n </form>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <button\n *ngIf=\"item.options && !item.disabled\"\n class=\"options-button\"\n (click)=\"optionsMenu.toggle($event); $event.stopPropagation();\">\n <i class=\"fas fa-ellipsis-v\"></i>\n </button>\n </div>\n <div class=\"kanban-item__body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"kanban-item__footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: { $implicit: item }\"></ng-container> \n </div>\n</div>",
|
|
16490
|
+
styles: [".kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}"]
|
|
16491
|
+
})
|
|
16492
|
+
], KanbanItemComponent);
|
|
16493
|
+
return KanbanItemComponent;
|
|
16494
|
+
}());
|
|
16495
|
+
|
|
16496
|
+
var KanbanColumnComponent = /** @class */ (function () {
|
|
16497
|
+
function KanbanColumnComponent(kanbanEventService) {
|
|
16498
|
+
this.kanbanEventService = kanbanEventService;
|
|
16499
|
+
this.selectionControl = new forms.FormControl(false);
|
|
16500
|
+
this._unsubscribe$ = new rxjs.Subject();
|
|
16501
|
+
}
|
|
16502
|
+
KanbanColumnComponent.prototype.ngOnInit = function () {
|
|
16503
|
+
this._validateInputs();
|
|
16504
|
+
this._subscriveEvents();
|
|
16505
|
+
};
|
|
16506
|
+
KanbanColumnComponent.prototype.ngOnDestroy = function () {
|
|
16507
|
+
this._unsubscribe$.next();
|
|
16508
|
+
this._unsubscribe$.complete();
|
|
16509
|
+
};
|
|
16510
|
+
KanbanColumnComponent.prototype._subscriveEvents = function () {
|
|
16511
|
+
var _this = this;
|
|
16512
|
+
this.selectionControl.valueChanges
|
|
16513
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16514
|
+
.subscribe(function (value) {
|
|
16515
|
+
if (value) {
|
|
16516
|
+
_this.kanbanEventService.emitSelectAllColumnItemsEvent(_this.data);
|
|
16517
|
+
}
|
|
16518
|
+
else {
|
|
16519
|
+
_this.kanbanEventService.emitUnselectAllColumnItemsEvent(_this.data);
|
|
16520
|
+
}
|
|
16521
|
+
});
|
|
16522
|
+
this.kanbanEventService.unselectItemEvent
|
|
16523
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16524
|
+
.subscribe(function (_) {
|
|
16525
|
+
_this.selectionControl.setValue(false, { emitEvent: false });
|
|
16526
|
+
});
|
|
16527
|
+
this.kanbanEventService.selectItemEvent
|
|
16528
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16529
|
+
.subscribe(function (item) {
|
|
16530
|
+
if (!_this.data.items.includes(item)) {
|
|
16531
|
+
_this.selectionControl.setValue(false, { emitEvent: false });
|
|
16532
|
+
}
|
|
16533
|
+
});
|
|
16534
|
+
this.kanbanEventService.selectAllColumnItemsEvent
|
|
16535
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16536
|
+
.subscribe(function (column) {
|
|
16537
|
+
if (_this.data !== column) {
|
|
16538
|
+
_this.selectionControl.setValue(false, { emitEvent: false });
|
|
16539
|
+
}
|
|
16540
|
+
});
|
|
16541
|
+
this.kanbanEventService.unselectAllColumnItemsEvent
|
|
16542
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
16543
|
+
.subscribe(function (column) {
|
|
16544
|
+
if (_this.data !== column) {
|
|
16545
|
+
_this.selectionControl.setValue(false, { emitEvent: false });
|
|
16546
|
+
}
|
|
16547
|
+
});
|
|
16548
|
+
};
|
|
16549
|
+
KanbanColumnComponent.prototype._validateInputs = function () {
|
|
16550
|
+
if (!this.data) {
|
|
16551
|
+
throw new Error("data parameter is required");
|
|
16552
|
+
}
|
|
16553
|
+
};
|
|
16554
|
+
KanbanColumnComponent.ctorParameters = function () { return [
|
|
16555
|
+
{ type: KanbanEventService }
|
|
16556
|
+
]; };
|
|
16557
|
+
__decorate([
|
|
16558
|
+
core.Input()
|
|
16559
|
+
], KanbanColumnComponent.prototype, "data", void 0);
|
|
16560
|
+
__decorate([
|
|
16561
|
+
core.Input()
|
|
16562
|
+
], KanbanColumnComponent.prototype, "headerTemplate", void 0);
|
|
16563
|
+
KanbanColumnComponent = __decorate([
|
|
16564
|
+
core.Component({
|
|
16565
|
+
selector: "s-kanban-column",
|
|
16566
|
+
template: "<div class=\"kanban-column\">\n <div class=\"kanban-column__header\">\n <div class=\"content\">\n <form>\n <input\n type=\"checkbox\"\n name=\"checkbox\"\n [formControl]=\"selectionControl\">\n </form>\n\n <ng-container *ngIf=\"!headerTemplate; then defaultHeaderTemplate else customHeaderTemplate\"></ng-container>\n \n <ng-template #defaultHeaderTemplate>\n <div class=\"header\">\n <span class=\"title\">{{ data.title }} ({{ data.items.length }})</span>\n </div>\n </ng-template>\n \n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: data }\"></ng-container>\n </ng-template>\n </div>\n <s-button\n *ngIf=\"data.options\"\n priority=\"default\"\n [disabled]=\"false\"\n [auxiliary]=\"true\"\n size=\"small\"\n [model]=\"data.options\">\n </s-button>\n </div>\n <div class=\"kanban-column__body\">\n <ng-content></ng-content>\n </div>\n</div>",
|
|
16567
|
+
styles: [".kanban-column{-ms-flex-align:center;align-items:center;background-color:#fbfafc;border:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;min-height:120px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.kanban-column .kanban-column__header{-ms-flex-align:center;align-items:center;border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 16px 8px;width:100%}.kanban-column .kanban-column__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-column .kanban-column__header .content .teste{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:\"Open Sans\" sans-serif}.kanban-column .kanban-column__header .content .teste .title{font-size:14px;font-weight:800}.kanban-column .kanban-column__header .content .teste .description{font-size:12px}.kanban-column .kanban-column__body{display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;width:100%}"]
|
|
16568
|
+
})
|
|
16569
|
+
], KanbanColumnComponent);
|
|
16570
|
+
return KanbanColumnComponent;
|
|
16571
|
+
}());
|
|
16572
|
+
|
|
16573
|
+
var KanbanItemDraggingComponent = /** @class */ (function () {
|
|
16574
|
+
function KanbanItemDraggingComponent() {
|
|
16575
|
+
this.quantityItems = 0;
|
|
16576
|
+
}
|
|
16577
|
+
__decorate([
|
|
16578
|
+
core.Input()
|
|
16579
|
+
], KanbanItemDraggingComponent.prototype, "quantityItems", void 0);
|
|
16580
|
+
KanbanItemDraggingComponent = __decorate([
|
|
16581
|
+
core.Component({
|
|
16582
|
+
selector: "s-kanban-item-dragging",
|
|
16583
|
+
template: "<div\n *ngIf=\"quantityItems\"\n class=\"kanban-item-dragging\">\n</div>\n\n<div\n class=\"kanban-item-dragging\"\n [ngClass]=\"{ 'kanban-item-dragging--over': quantityItems }\">\n <div class=\"content\">\n <input type=\"checkbox\" checked />\n <s-badge\n [text]=\"'platform.angular_components.count_items_selected' | translate:{ count: quantityItems }\"\n color=\"blue\">\n </s-badge>\n </div>\n</div>",
|
|
16584
|
+
styles: [".kanban-item-dragging{background-color:#fff;border:1px solid #428bca;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);height:52px;padding:16px;width:260px}.kanban-item-dragging .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item-dragging--over{left:12px;position:relative;top:-64px}"]
|
|
16585
|
+
})
|
|
16586
|
+
], KanbanItemDraggingComponent);
|
|
16587
|
+
return KanbanItemDraggingComponent;
|
|
16588
|
+
}());
|
|
16589
|
+
|
|
16590
|
+
var KanbanModule = /** @class */ (function () {
|
|
16591
|
+
function KanbanModule() {
|
|
16592
|
+
}
|
|
16593
|
+
KanbanModule = __decorate([
|
|
16594
|
+
core.NgModule({
|
|
16595
|
+
imports: [
|
|
16596
|
+
common.CommonModule,
|
|
16597
|
+
forms.FormsModule,
|
|
16598
|
+
forms.ReactiveFormsModule,
|
|
16599
|
+
core$1.TranslateModule,
|
|
16600
|
+
dragDrop.DragDropModule,
|
|
16601
|
+
BadgeModule,
|
|
16602
|
+
ButtonModule,
|
|
16603
|
+
tieredmenu.TieredMenuModule,
|
|
16604
|
+
],
|
|
16605
|
+
declarations: [
|
|
16606
|
+
KanbanComponent,
|
|
16607
|
+
KanbanItemComponent,
|
|
16608
|
+
KanbanColumnComponent,
|
|
16609
|
+
KanbanItemDraggingComponent,
|
|
16610
|
+
TemplateDirective,
|
|
16611
|
+
],
|
|
16612
|
+
exports: [
|
|
16613
|
+
KanbanComponent,
|
|
16614
|
+
TemplateDirective,
|
|
16615
|
+
],
|
|
16616
|
+
providers: [KanbanEventService],
|
|
16617
|
+
})
|
|
16618
|
+
], KanbanModule);
|
|
16619
|
+
return KanbanModule;
|
|
16620
|
+
}());
|
|
16621
|
+
|
|
16197
16622
|
exports.AccordionComponent = AccordionComponent;
|
|
16198
16623
|
exports.AccordionModule = AccordionModule;
|
|
16199
16624
|
exports.AccordionPanelComponent = AccordionPanelComponent;
|
|
@@ -16257,6 +16682,8 @@
|
|
|
16257
16682
|
exports.ImageCropperService = ImageCropperService;
|
|
16258
16683
|
exports.InfoSignDirective = InfoSignDirective;
|
|
16259
16684
|
exports.InfoSignModule = InfoSignModule;
|
|
16685
|
+
exports.KanbanComponent = KanbanComponent;
|
|
16686
|
+
exports.KanbanModule = KanbanModule;
|
|
16260
16687
|
exports.LoadingStateComponent = LoadingStateComponent;
|
|
16261
16688
|
exports.LoadingStateDirective = LoadingStateDirective;
|
|
16262
16689
|
exports.LoadingStateModule = LoadingStateModule;
|
|
@@ -16326,6 +16753,7 @@
|
|
|
16326
16753
|
exports.TableHeaderCheckboxModule = TableHeaderCheckboxModule;
|
|
16327
16754
|
exports.TableModule = TableModule;
|
|
16328
16755
|
exports.TaxCalculationLanguageConfigs = TaxCalculationLanguageConfigs;
|
|
16756
|
+
exports.TemplateDirective = TemplateDirective;
|
|
16329
16757
|
exports.TextAreaField = TextAreaField;
|
|
16330
16758
|
exports.TextField = TextField;
|
|
16331
16759
|
exports.ThumbnailComponent = ThumbnailComponent;
|
|
@@ -16390,6 +16818,10 @@
|
|
|
16390
16818
|
exports.ɵcp = TieredMenuDividerComponent;
|
|
16391
16819
|
exports.ɵcq = ProgressBarDeterminateComponent;
|
|
16392
16820
|
exports.ɵcr = ProgressBarIndeterminateComponent;
|
|
16821
|
+
exports.ɵcs = KanbanEventService;
|
|
16822
|
+
exports.ɵct = KanbanItemComponent;
|
|
16823
|
+
exports.ɵcu = KanbanColumnComponent;
|
|
16824
|
+
exports.ɵcv = KanbanItemDraggingComponent;
|
|
16393
16825
|
exports.ɵd = LocalizedCurrencyImpurePipe;
|
|
16394
16826
|
exports.ɵe = LocalizedBignumberPipe;
|
|
16395
16827
|
exports.ɵf = LocalizedBignumberImpurePipe;
|