@stratusjs/angular 0.5.4 → 0.5.6
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/dist/angular.bundle.js +69693 -75980
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/core/dialog.interface.js.map +1 -0
- package/src/editor/code-mirror-bridge.js +14 -6
- package/src/editor/code-mirror-bridge.js.map +1 -1
- package/src/editor/code-mirror-bridge.min.js +1 -1
- package/src/editor/code-mirror-bridge.ts +18 -9
- package/src/editor/editor.component.js +56 -21
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +71 -29
- package/src/selector/selector.component.css +8 -7
- package/src/selector/selector.component.css.map +1 -1
- package/src/selector/selector.component.html +9 -2
- package/src/selector/selector.component.js +39 -3
- package/src/selector/selector.component.js.map +1 -1
- package/src/selector/selector.component.min.css +1 -1
- package/src/selector/selector.component.min.html +1 -1
- package/src/selector/selector.component.min.js +1 -1
- package/src/selector/selector.component.scss +5 -4
- package/src/selector/selector.component.ts +41 -0
- package/src/editor/quill-break-blot.plugin.js +0 -38
- package/src/editor/quill-break-blot.plugin.js.map +0 -1
- package/src/editor/quill-break-blot.plugin.min.js +0 -1
- package/src/editor/quill-html-edit.plugin.js +0 -164
- package/src/editor/quill-html-edit.plugin.js.map +0 -1
- package/src/editor/quill-html-edit.plugin.min.js +0 -1
- package/src/editor/quill-image-format.plugin.js +0 -50
- package/src/editor/quill-image-format.plugin.js.map +0 -1
- package/src/editor/quill-image-format.plugin.min.js +0 -1
- package/src/editor/quill-input-button.plugin.js +0 -98
- package/src/editor/quill-input-button.plugin.js.map +0 -1
- package/src/editor/quill-input-button.plugin.min.js +0 -1
- package/src/froala/editor/froala-editor.directive.js +0 -328
- package/src/froala/editor/froala-editor.directive.js.map +0 -1
- package/src/froala/editor/froala-editor.directive.min.js +0 -1
- package/src/froala/editor/froala-editor.module.js +0 -37
- package/src/froala/editor/froala-editor.module.js.map +0 -1
- package/src/froala/editor/froala-editor.module.min.js +0 -1
- package/src/froala/editor/index.js +0 -22
- package/src/froala/editor/index.js.map +0 -1
- package/src/froala/editor/index.min.js +0 -1
- package/src/froala/plugins/image_manager.js +0 -364
- package/src/froala/plugins/image_manager.js.map +0 -1
- package/src/froala/plugins/image_manager.min.js +0 -1
- package/src/froala/view/froala-view.directive.js +0 -49
- package/src/froala/view/froala-view.directive.js.map +0 -1
- package/src/froala/view/froala-view.directive.min.js +0 -1
- package/src/froala/view/froala-view.module.js +0 -37
- package/src/froala/view/froala-view.module.js.map +0 -1
- package/src/froala/view/froala-view.module.min.js +0 -1
- package/src/froala/view/index.js +0 -22
- package/src/froala/view/index.js.map +0 -1
- package/src/froala/view/index.min.js +0 -1
- package/src/root/root.component.js +0 -43
- package/src/root/root.component.js.map +0 -1
- package/src/root/root.component.min.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["selector.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["selector.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuDM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,UAAU,CAAA;YAGvB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAGhI,GAAG,GAAG,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAAC,gBAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,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;+DAAkB;YACjB;gBAAR,YAAK,EAAE;;6DAAgB;YACf;gBAAR,YAAK,EAAE;;0DAAY;YACX;gBAAR,YAAK,EAAE;;8DAAgB;YAGf;gBAAR,YAAK,EAAE;;2DAAa;YACZ;gBAAR,YAAK,EAAE;;+DAAiB;YAChB;gBAAR,YAAK,EAAE;;+DAAiB;YAChB;gBAAR,YAAK,EAAE;;qEAAwB;YApBvB,iBAAiB;gBAZ7B,gBAAS,CAAC;oBAEP,QAAQ,EAAE,MAAM,UAAU,EAAE;oBAC5B,WAAW,EAAE,GAAG,QAAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;iBAO9E,CAAC;iDA6D4B,sBAAe;oBAClB,+BAAY;oBAChB,wBAAiB;oBACZ,iBAAU;eA9DzB,iBAAiB,CAmZ7B;;QACD,CAAC","file":"selector.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.admin-select-content .content-type,.autocomplete-option .content-type,.sa-selector .content-type,.selected-box.cdk-drag-preview .content-type{margin-bottom:2px}.admin-select-content .content-type mat-icon,.admin-select-content .content-type md-icon,.autocomplete-option .content-type mat-icon,.autocomplete-option .content-type md-icon,.sa-selector .content-type mat-icon,.sa-selector .content-type md-icon,.selected-box.cdk-drag-preview .content-type mat-icon,.selected-box.cdk-drag-preview .content-type md-icon{margin-right:4px;height:14px;width:14px;min-height:14px;min-width:14px}.admin-select-content .content-type .content-type-name,.autocomplete-option .content-type .content-type-name,.sa-selector .content-type .content-type-name,.selected-box.cdk-drag-preview .content-type .content-type-name{font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:1px}.admin-select-content .no-image-icon mat-icon,.admin-select-content .no-image-icon md-icon,.autocomplete-option .no-image-icon mat-icon,.autocomplete-option .no-image-icon md-icon,.sa-selector .no-image-icon mat-icon,.sa-selector .no-image-icon md-icon,.selected-box.cdk-drag-preview .no-image-icon mat-icon,.selected-box.cdk-drag-preview .no-image-icon md-icon{height:28px;width:28px;min-height:28px;min-width:28px}.admin-select-content .no-image-icon mat-icon svg g,.admin-select-content .no-image-icon md-icon svg g,.autocomplete-option .no-image-icon mat-icon svg g,.autocomplete-option .no-image-icon md-icon svg g,.sa-selector .no-image-icon mat-icon svg g,.sa-selector .no-image-icon md-icon svg g,.selected-box.cdk-drag-preview .no-image-icon mat-icon svg g,.selected-box.cdk-drag-preview .no-image-icon md-icon svg g{fill:#fff}.admin-select-content .shapeholder,.autocomplete-option .shapeholder,.sa-selector .shapeholder,.selected-box.cdk-drag-preview .shapeholder{width:100%;display:block}.admin-select-content .column-title h3,.content-selector-autocomplete .column-title h3,.selected-box.cdk-drag-preview .column-title h3{margin:0 0 5px;font-size:16px}.content-selector,md-autocomplete{margin-top:12px}.selector-filter md-checkbox{padding-right:10px}.md-autocomplete-suggestions li{height:80px}.content-selector-autocomplete .autocomplete-row{padding:4px 0;border-bottom:1px solid rgba(0,0,0,.1)}.content-selector-autocomplete .autocomplete-row *{line-height:1.4}.content-selector-autocomplete .autocomplete-row .column-image .image-container{margin-right:18px}.content-selector-autocomplete .autocomplete-row h3{font-size:14px}.content-selector-autocomplete .autocomplete-row .routing{font-size:13px}.content-selector-autocomplete .selected .column-title,.content-selector-autocomplete .selected .image{opacity:.3}.content-selector-autocomplete .selected mat-icon.selected-icon,.content-selector-autocomplete .selected md-icon.selected-icon{z-index:5;height:40px;width:40px;min-height:40px;min-width:40px}.content-selector-autocomplete .selected mat-icon.selected-icon svg,.content-selector-autocomplete .selected md-icon.selected-icon svg{filter:drop-shadow(0 0 1px rgba(0, 0, 0, .5));-webkit-filter:drop-shadow(0 0 1px rgba(0, 0, 0, .5))}.content-selector-autocomplete .selected mat-icon.selected-icon svg g,.content-selector-autocomplete .selected md-icon.selected-icon svg g{fill:#fff}.selector-wrapper{background:rgba(255,255,255,.4);margin-top:20px;padding:40px}.selected-list{margin:0 auto;max-width:600px;min-height:60px;display:block;border-radius:4px;overflow:hidden}.selected-box{padding:12px 16px;color:rgba(0,0,0,.87);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px}.selected-box.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:2px 2px 4px rgba(0,0,0,.3)}.cdk-drag-animating{transition:transform 250ms cubic-bezier(0,0,.2,1)}.selected-box:last-child{border:none}.selected-list.cdk-drop-list-dragging .selected-box:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,.2,1)}.custom-ghost-placeholder{background:rgba(0,0,0,.4);min-height:60px;transition:transform 250ms cubic-bezier(0,0,.2,1)}.selected-box.cdk-drag-preview .column-action,.selected-box.cdk-drag-preview .column-image,.selected-box.cdk-drag-preview .column-title,sa-selector .column-action,sa-selector .column-image,sa-selector .column-title{float:left}sa-selector .column-image{width:15%;padding-right:10px}sa-selector .column-image .image,sa-selector .column-image .no-image-icon{margin-right:10px}sa-selector .column-title{width:
|
|
1
|
+
.admin-select-content .content-type,.autocomplete-option .content-type,.sa-selector .content-type,.selected-box.cdk-drag-preview .content-type{margin-bottom:2px}.admin-select-content .content-type mat-icon,.admin-select-content .content-type md-icon,.autocomplete-option .content-type mat-icon,.autocomplete-option .content-type md-icon,.sa-selector .content-type mat-icon,.sa-selector .content-type md-icon,.selected-box.cdk-drag-preview .content-type mat-icon,.selected-box.cdk-drag-preview .content-type md-icon{margin-right:4px;height:14px;width:14px;min-height:14px;min-width:14px}.admin-select-content .content-type .content-type-name,.autocomplete-option .content-type .content-type-name,.sa-selector .content-type .content-type-name,.selected-box.cdk-drag-preview .content-type .content-type-name{font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:1px}.admin-select-content .no-image-icon mat-icon,.admin-select-content .no-image-icon md-icon,.autocomplete-option .no-image-icon mat-icon,.autocomplete-option .no-image-icon md-icon,.sa-selector .no-image-icon mat-icon,.sa-selector .no-image-icon md-icon,.selected-box.cdk-drag-preview .no-image-icon mat-icon,.selected-box.cdk-drag-preview .no-image-icon md-icon{height:28px;width:28px;min-height:28px;min-width:28px}.admin-select-content .no-image-icon mat-icon svg g,.admin-select-content .no-image-icon md-icon svg g,.autocomplete-option .no-image-icon mat-icon svg g,.autocomplete-option .no-image-icon md-icon svg g,.sa-selector .no-image-icon mat-icon svg g,.sa-selector .no-image-icon md-icon svg g,.selected-box.cdk-drag-preview .no-image-icon mat-icon svg g,.selected-box.cdk-drag-preview .no-image-icon md-icon svg g{fill:#fff}.admin-select-content .shapeholder,.autocomplete-option .shapeholder,.sa-selector .shapeholder,.selected-box.cdk-drag-preview .shapeholder{width:100%;display:block}.admin-select-content .column-title h3,.content-selector-autocomplete .column-title h3,.selected-box.cdk-drag-preview .column-title h3{margin:0 0 5px;font-size:16px}.content-selector,md-autocomplete{margin-top:12px}.selector-filter md-checkbox{padding-right:10px}.md-autocomplete-suggestions li{height:80px}.content-selector-autocomplete .autocomplete-row{padding:4px 0;border-bottom:1px solid rgba(0,0,0,.1)}.content-selector-autocomplete .autocomplete-row *{line-height:1.4}.content-selector-autocomplete .autocomplete-row .column-image .image-container{margin-right:18px}.content-selector-autocomplete .autocomplete-row h3{font-size:14px}.content-selector-autocomplete .autocomplete-row .routing{font-size:13px}.content-selector-autocomplete .selected .column-title,.content-selector-autocomplete .selected .image{opacity:.3}.content-selector-autocomplete .selected mat-icon.selected-icon,.content-selector-autocomplete .selected md-icon.selected-icon{z-index:5;height:40px;width:40px;min-height:40px;min-width:40px}.content-selector-autocomplete .selected mat-icon.selected-icon svg,.content-selector-autocomplete .selected md-icon.selected-icon svg{filter:drop-shadow(0 0 1px rgba(0, 0, 0, .5));-webkit-filter:drop-shadow(0 0 1px rgba(0, 0, 0, .5))}.content-selector-autocomplete .selected mat-icon.selected-icon svg g,.content-selector-autocomplete .selected md-icon.selected-icon svg g{fill:#fff}.selector-wrapper{background:rgba(255,255,255,.4);margin-top:20px;padding:40px}.selected-list{margin:0 auto;max-width:600px;min-height:60px;display:block;border-radius:4px;overflow:hidden}.selected-box{padding:12px 16px;color:rgba(0,0,0,.87);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px}.selected-box.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:2px 2px 4px rgba(0,0,0,.3)}.cdk-drag-animating{transition:transform 250ms cubic-bezier(0,0,.2,1)}.selected-box:last-child{border:none}.selected-list.cdk-drop-list-dragging .selected-box:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,.2,1)}.custom-ghost-placeholder{background:rgba(0,0,0,.4);min-height:60px;transition:transform 250ms cubic-bezier(0,0,.2,1)}.selected-box.cdk-drag-preview .column-action,.selected-box.cdk-drag-preview .column-image,.selected-box.cdk-drag-preview .column-title,sa-selector .column-action,sa-selector .column-image,sa-selector .column-title{float:left}sa-selector .column-image{width:15%;padding-right:10px}sa-selector .column-image .image,sa-selector .column-image .no-image-icon{margin-right:10px}sa-selector .column-title{width:60%;padding-right:10px}sa-selector .column-action{width:25%}sa-selector .column-action>*{display:inline-block;vertical-align:middle;margin-bottom:2px}sa-selector .column-action>:last-child{margin-bottom:0}.selected-box.cdk-drag-preview .column-image{width:15%}.selected-box.cdk-drag-preview .column-title{width:85%}sa-selector{margin:0 auto}sa-selector .routing{color:#333;font-size:13px}sa-selector .selected-list .selected-list-header{margin-bottom:20px;padding-bottom:20px}sa-selector .selected-list .selected-list-header .note,sa-selector .selected-list .selected-list-header h3{margin:0;display:inline-block;vertical-align:text-bottom;line-height:1.2}sa-selector .selected-list .selected-list-header .note{padding-left:10px}sa-selector .selected-list .selected-list-container{width:100%}sa-selector .selected-list .selected-list-row{margin-bottom:10px;padding:12px 16px;background:rgba(0,0,0,.04);border-radius:2px}sa-selector .selected-list .selected-list-row.inactive{background:#ddd}sa-selector .selected-list .selected-list-row.unpublished{background:#ddd}sa-selector .selected-list .btn.btn-delete,sa-selector .selected-list .btn.btn-edit,sa-selector .selected-list .btn.btn-status{float:right;width:35px;min-width:unset;height:35px;font-size:10px;margin-left:3px;padding:0;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3)}sa-selector .selected-list .btn.btn-delete:hover,sa-selector .selected-list .btn.btn-edit:hover,sa-selector .selected-list .btn.btn-status:hover{background:#fff;box-shadow:0 0 2px rgba(0,0,0,.8)}sa-selector .selected-list .btn.btn-delete svg,sa-selector .selected-list .btn.btn-edit svg,sa-selector .selected-list .btn.btn-status svg{margin:0 auto;width:60%}sa-selector .selected-list .btn.btn-delete svg g,sa-selector .selected-list .btn.btn-edit svg g,sa-selector .selected-list .btn.btn-status svg g{fill:#222}.firefox .btn.btn-delete svg,.firefox .btn.btn-delete svg g,.firefox .btn.btn-edit svg,.firefox .btn.btn-edit svg g{max-width:28px;max-height:28px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<mat-progress-bar mode="indeterminate" *ngIf="!styled"></mat-progress-bar><ng-template #emptyList><div class="selected-list-header border-default border-default-bottom"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3></div><div class="selected-message-box">Nothing has been selected.</div></ng-template><div class="selected-list" *ngIf="styled"><div class="selected-list-header border-default border-default-bottom" *ngIf="!empty; else emptyList"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3><p class="note">Drag to reorder</p></div><div cdkDropList (cdkDropListDropped)="drop($event)"><div cdkDrag class="selected-list-row selected-box" [ngClass]="{'active': _.get(selectedModel, 'status') === 1, 'inactive' : _.get(selectedModel, 'status') !== 1, 'published': _.get(selectedModel, 'version.published') === 1, 'unpublished': _.get(selectedModel, 'version.published') !== 1}" *ngFor="let selectedModel of dataSub | async"><div class="custom-ghost-placeholder" *cdkDragPlaceholder></div><div class="selected-list-container"><div class="column-image position-anchor"><div class="image position-all" *ngIf="has(selectedModel, 'version.bestImage._thumbnailUrl')" [attr.data-stratus-src]="!_.get(selectedModel, 'version.bestImage.service') ? true : false" [ngStyle]="{'background': 'url(' + _.get(selectedModel, 'version.bestImage._thumbnailUrl') + ') no-repeat center center', 'background-size': 'cover'}"></div><div class="no-image-icon position-all" *ngIf="!has(selectedModel, 'version.bestImage._thumbnailUrl')" [ngClass]="_.get(selectedModel, 'contentType.class') + '-background-color'"><mat-icon class="content-type-icon position-center" [svgIcon]="getSvg(Stratus.BaseUrl + (_.get(selectedModel, 'contentType.iconResourcePath') || _.get(selectedModel, 'iconResourcePath'))) | async">Icon</mat-icon></div><img class="shapeholder" [src]="Stratus.BaseUrl + 'sitetheorycore/images/shapeholder-square.png'"></div><div class="column-title"><div class="content-type" *ngIf="has(selectedModel, 'contentType.iconResourcePath')"><mat-icon class="content-type-icon" [svgIcon]="getSvg(Stratus.BaseUrl + _.get(selectedModel, 'contentType.iconResourcePath')) | async">ContentType Icon</mat-icon><span class="comment content-type-name font-body" [ngClass]="((_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name')) | lowercase) + '-color'" [textContent]="(_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name')) + ((_.get(selectedModel, 'status') !== 1) ? ' (hidden)' : '') + ((_.get(selectedModel, 'version.published') !== 1) ? ' (unpublished)' : '')"></span></div><h3 [innerHTML]="_.get(selectedModel, 'version.bestIdentifier') || _.get(selectedModel, 'name') || (_.get(selectedModel, 'contentType.controller') === 'Content\\Module' ? _.get(selectedModel, 'version.internalIdentifier') : 'Untitled ' + _.get(selectedModel, 'contentType.name') + ' (' + _.get(selectedModel, 'id') + ')')"></h3><span class="routing" [textContent]="(has(selectedModel, 'routing') ? '/' + _.get(selectedModel, 'routing[0].url') : null) || _.get(selectedModel, 'description') || ''"></span></div><div class="column-action"><a mat-button [matTooltip]="'Delete ' + (_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name'))" aria-label="Delete Item" class="btn btn-delete" (click)="remove(selectedModel)"><mat-icon svgIcon="selector_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button *ngIf="has(selectedModel, 'contentType.editUrl')" [matTooltip]="'Edit ' + (_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name'))" aria-label="Edit Item in New Window" class="btn btn-edit" (click)="goToUrl(selectedModel, '_blank');"><mat-icon svgIcon="selector_edit" aria-hidden="false" aria-label="Edit
|
|
1
|
+
<mat-progress-bar mode="indeterminate" *ngIf="!styled"></mat-progress-bar><ng-template #emptyList><div class="selected-list-header border-default border-default-bottom"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3></div><div class="selected-message-box">Nothing has been selected.</div></ng-template><div class="selected-list" *ngIf="styled"><div class="selected-list-header border-default border-default-bottom" *ngIf="!empty; else emptyList"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3><p class="note">Drag to reorder</p></div><div cdkDropList (cdkDropListDropped)="drop($event)"><div cdkDrag class="selected-list-row selected-box" [ngClass]="{'active': _.get(selectedModel, 'status') === 1, 'inactive' : _.get(selectedModel, 'status') !== 1, 'published': _.get(selectedModel, 'version.published') === 1, 'unpublished': _.get(selectedModel, 'version.published') !== 1}" *ngFor="let selectedModel of dataSub | async"><div class="custom-ghost-placeholder" *cdkDragPlaceholder></div><div class="selected-list-container"><div class="column-image position-anchor"><div class="image position-all" *ngIf="has(selectedModel, 'version.bestImage._thumbnailUrl')" [attr.data-stratus-src]="!_.get(selectedModel, 'version.bestImage.service') ? true : false" [ngStyle]="{'background': 'url(' + _.get(selectedModel, 'version.bestImage._thumbnailUrl') + ') no-repeat center center', 'background-size': 'cover'}"></div><div class="no-image-icon position-all" *ngIf="!has(selectedModel, 'version.bestImage._thumbnailUrl')" [ngClass]="_.get(selectedModel, 'contentType.class') + '-background-color'"><mat-icon class="content-type-icon position-center" [svgIcon]="getSvg(Stratus.BaseUrl + (_.get(selectedModel, 'contentType.iconResourcePath') || _.get(selectedModel, 'iconResourcePath'))) | async">Icon</mat-icon></div><img class="shapeholder" [src]="Stratus.BaseUrl + 'sitetheorycore/images/shapeholder-square.png'"></div><div class="column-title"><div class="content-type" *ngIf="has(selectedModel, 'contentType.iconResourcePath')"><mat-icon class="content-type-icon" [svgIcon]="getSvg(Stratus.BaseUrl + _.get(selectedModel, 'contentType.iconResourcePath')) | async">ContentType Icon</mat-icon><span class="comment content-type-name font-body" [ngClass]="((_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name')) | lowercase) + '-color'" [textContent]="(_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name')) + ((_.get(selectedModel, 'status') !== 1) ? ' (hidden)' : '') + ((_.get(selectedModel, 'version.published') !== 1) ? ' (unpublished)' : '')"></span></div><h3 [innerHTML]="_.get(selectedModel, 'version.bestIdentifier') || _.get(selectedModel, 'name') || (_.get(selectedModel, 'contentType.controller') === 'Content\\Module' ? _.get(selectedModel, 'version.internalIdentifier') : 'Untitled ' + _.get(selectedModel, 'contentType.name') + ' (' + _.get(selectedModel, 'id') + ')')"></h3><span class="routing" [textContent]="(has(selectedModel, 'routing') ? '/' + _.get(selectedModel, 'routing[0].url') : null) || _.get(selectedModel, 'description') || ''"></span></div><div class="column-action"><a mat-button [matTooltip]="'Delete ' + (_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name')) + ' [THIS COLLECTION ONLY]'" aria-label="Delete Item" class="btn btn-delete" (click)="remove(selectedModel)"><mat-icon svgIcon="selector_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button [matTooltip]="'Toggle ' + (_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name')) + ' Status ' + (_.get(selectedModel, 'status') ? 'Off' : 'On') + ' [ALL CONTEXTS]'" aria-label="Toggle Status" class="btn btn-status" (click)="toggleStatus(selectedModel)"><mat-icon svgIcon="selector_status" aria-hidden="false" aria-label="Toggle Status">Toggle Status</mat-icon></a><a mat-button *ngIf="has(selectedModel, 'contentType.editUrl')" [matTooltip]="'Edit ' + (_.get(selectedModel, 'contentType.name') || _.get(selectedModel, 'name'))" aria-label="Edit Item in New Window" class="btn btn-edit" (click)="goToUrl(selectedModel, '_blank');"><mat-icon svgIcon="selector_edit" aria-hidden="false" aria-label="Edit">Edit</mat-icon></a></div></div></div></div></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/forms","@angular/cdk/drag-drop","rxjs","@angular/platform-browser","@angular/material/icon","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component","@stratusjs/angularjs/services/registry","@stratusjs/core/events/eventManager"],function(e
|
|
1
|
+
System.register(["@angular/core","@angular/forms","@angular/cdk/drag-drop","rxjs","@angular/platform-browser","@angular/material/icon","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component","@stratusjs/angularjs/services/registry","@stratusjs/core/events/eventManager","@stratusjs/core/datastore/xhr"],function(t,e){"use strict";var r,s,o,i,n,a,c,l,d,u,h,g,f,p,y,m,v,S=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},b=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){r=t},function(t){s=t},function(t){o=t},function(t){i=t},function(t){n=t},function(t){a=t},function(t){c=t},function(t){l=t},function(t){d=t},function(t){u=t},function(t){h=t},function(t){g=t},function(t){f=t}],execute:function(){"@stratusjs/angular","selector",p=d.cookie("env")?"":".min",y=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,m=(t,e)=>l.default.has(t,e)&&!l.default.isEmpty(l.default.get(t,e)),v=class extends u.RootComponent{constructor(t,e,r,o){super(),this.iconRegistry=t,this.sanitizer=e,this.ref=r,this.elementRef=o,this.title="selector_component",this._=l.default,this.has=m,this.log=console.log,this.Stratus=c.Stratus,this.selectCtrl=new s.FormControl,this.registry=new h.Registry,this.onChange=new i.Subject,this.svgIcons={},this.styled=!1,this.empty=!1,this.uid=l.default.uniqueId(`sa_${l.default.snakeCase("selector")}_component_`),c.Stratus.Instances[this.uid]=this,this.dataSub=new i.Observable(t=>this.dataDefer(t)),l.default.forEach({selector_delete:c.Stratus.BaseUrl+"sitetheorycore/images/icons/actionButtons/delete.svg",selector_status:c.Stratus.BaseUrl+"sitetheorycore/images/icons/actionButtons/visibility.svg",selector_edit:c.Stratus.BaseUrl+"sitetheorycore/images/icons/actionButtons/edit.svg"},(r,s)=>t.addSvgIcon(s,e.bypassSecurityTrustResourceUrl(r)).getNamedSvgIcon(s)),c.Stratus.Internals.CssLoader(`${y}selector/selector.component${p}.css`).then(()=>{this.styled=!0,this.refresh()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.styled=!0,this.refresh()}),this.hydrate(o,e,["title","uid","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","ignorePriority","_","has","log","Stratus","selectCtrl","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","styled","empty","iconRegistry","sanitizer","ref","elementRef","drop","goToUrl","toggleStatus","remove","fetchData","dataDefer","dataRef","onDataChange","prioritize","getSvg","addSvgIcon","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(t=>{if(!(t&&t instanceof g.EventManager))return void console.warn("Unable to bind data from Registry!");const e=()=>{t.completed&&(this.dataDefer(this.subscriber),this.prioritize(),this.refresh())};t.on("change",e),e()})}drop(t){const e=this.dataRef();if(e&&e.length){if(o.moveItemInArray(e,t.previousIndex,t.currentIndex),!this.ignorePriority){let t=0;l.default.forEach(e,e=>e.priority=t++)}this.model.trigger("change")}}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}toggleStatus(t){const e=t.status;t.status=1===e?0:1;new f.XHR({method:"PUT",url:"/Api/Content/"+t.id,data:{route:{},meta:{},payload:{status:t.status}},type:"application/json"}).send().then(r=>{if(!l.default.isObject(r)||"SUCCESS"!==l.default.get(r,"meta.status[0].code"))return console.error("error[toggleStatus]:",r),t.status=e,void this.refresh();console.log("success[toggleStatus]:",r)}).catch(r=>{console.error("error[toggleStatus]:",r),t.status=e,this.refresh()})}remove(t){const e=this.dataRef();if(!e||!e.length)return console.error("unable to remove model from selection:",e),void this.refresh();let r=e.indexOf(t);if(-1===r){const s=e.map(e=>t.id===e.id?e:null).filter(t=>t);l.default.isArray(s)&&s.length&&(r=e.indexOf(l.default.first(s)))}-1!==r?(e.splice(r,1),this.model.trigger("change")):console.error("unable to find model:",t,"in selection:",e)}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(c.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(t){if(this.subscriber=this.subscriber||t,!this.subscriber||!this.model||!this.model.completed)return void setTimeout(()=>{this.dataDefer(t)},500);const e=this.dataRef();this.empty=!e.length,this.subscriber.next(e),this.refresh()}dataRef(){if(!this.model)return[];const t=this.model.get(this.property);return t&&l.default.isArray(t)?t:[]}onDataChange(){this.prioritize(),this.dataDefer(this.subscriber),this.refresh()}prioritize(){const t=this.dataRef();if(t&&t.length&&!this.ignorePriority){let e=0;l.default.forEach(t,t=>t.priority=e++)}}getSvg(t,e){const r=this.addSvgIcon(t,e);return new i.Observable(e=>{this.iconRegistry.getNamedSvgIcon(r).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(r)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const r=this.svgIcons[t]=l.default.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(r,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),r}},S([r.Input(),b("design:type",String)],v.prototype,"target",void 0),S([r.Input(),b("design:type",String)],v.prototype,"targetSuffix",void 0),S([r.Input(),b("design:type",Number)],v.prototype,"id",void 0),S([r.Input(),b("design:type",Boolean)],v.prototype,"manifest",void 0),S([r.Input(),b("design:type",Boolean)],v.prototype,"decouple",void 0),S([r.Input(),b("design:type",Boolean)],v.prototype,"direct",void 0),S([r.Input(),b("design:type",Object)],v.prototype,"api",void 0),S([r.Input(),b("design:type",String)],v.prototype,"urlRoot",void 0),S([r.Input(),b("design:type",String)],v.prototype,"type",void 0),S([r.Input(),b("design:type",String)],v.prototype,"property",void 0),S([r.Input(),b("design:type",String)],v.prototype,"endpoint",void 0),S([r.Input(),b("design:type",Boolean)],v.prototype,"ignorePriority",void 0),v=S([r.Component({selector:"sa-selector",templateUrl:`${y}/selector/selector.component${p}.html`}),b("design:paramtypes",[a.MatIconRegistry,n.DomSanitizer,r.ChangeDetectorRef,r.ElementRef])],v),t("SelectorComponent",v)}}});
|
|
@@ -177,10 +177,11 @@ sa-selector {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
.column-title {
|
|
180
|
-
width:
|
|
180
|
+
width: 60%;
|
|
181
|
+
padding-right: 10px;
|
|
181
182
|
}
|
|
182
183
|
.column-action {
|
|
183
|
-
width:
|
|
184
|
+
width: 25%;
|
|
184
185
|
> * {
|
|
185
186
|
display: inline-block;
|
|
186
187
|
vertical-align: middle;
|
|
@@ -249,13 +250,13 @@ sa-selector {
|
|
|
249
250
|
background: #DDD;
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
|
-
.btn.btn-delete, .btn.btn-edit {
|
|
253
|
+
.btn.btn-delete, .btn.btn-edit, .btn.btn-status {
|
|
253
254
|
float: right;
|
|
254
255
|
width: 35px;
|
|
255
256
|
min-width: unset;
|
|
256
257
|
height: 35px;
|
|
257
258
|
font-size: 10px;
|
|
258
|
-
margin-left:
|
|
259
|
+
margin-left: 3px;
|
|
259
260
|
padding: 0;
|
|
260
261
|
background: #fff;
|
|
261
262
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
|
|
@@ -49,6 +49,9 @@ import {EventBase} from '@stratusjs/core/events/eventBase'
|
|
|
49
49
|
import {Model} from '@stratusjs/angularjs/services/model'
|
|
50
50
|
import {Collection} from '@stratusjs/angularjs/services/collection'
|
|
51
51
|
|
|
52
|
+
import {XHR} from '@stratusjs/core/datastore/xhr'
|
|
53
|
+
import {LooseObject} from '@stratusjs/core/misc'
|
|
54
|
+
|
|
52
55
|
// Local Setup
|
|
53
56
|
const systemDir = '@stratusjs/angular'
|
|
54
57
|
const moduleName = 'selector'
|
|
@@ -157,6 +160,7 @@ export class SelectorComponent extends RootComponent { // implements OnInit, OnC
|
|
|
157
160
|
// SVG Icons
|
|
158
161
|
_.forEach({
|
|
159
162
|
selector_delete: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,
|
|
163
|
+
selector_status: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`,
|
|
160
164
|
selector_edit: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`
|
|
161
165
|
}, (value, key) => iconRegistry.addSvgIcon(key, sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key))
|
|
162
166
|
|
|
@@ -255,6 +259,43 @@ export class SelectorComponent extends RootComponent { // implements OnInit, OnC
|
|
|
255
259
|
window.open(model.contentType.editUrl + '?id=' + model.id, '_blank')
|
|
256
260
|
}
|
|
257
261
|
|
|
262
|
+
toggleStatus(model: any) {
|
|
263
|
+
// model is not directly a model, but just a sub entity of content.version.modules
|
|
264
|
+
// so we have to create a special API call to update just this one model
|
|
265
|
+
// 'Content/' + model.id
|
|
266
|
+
const statusOriginal = model.status
|
|
267
|
+
model.status = statusOriginal === 1 ? 0 : 1
|
|
268
|
+
// Create a direct XHR
|
|
269
|
+
const xhr = new XHR({
|
|
270
|
+
method: 'PUT',
|
|
271
|
+
url: '/Api/Content/' + model.id,
|
|
272
|
+
data: {
|
|
273
|
+
route: {},
|
|
274
|
+
meta: {},
|
|
275
|
+
payload: {
|
|
276
|
+
status: model.status
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
type: 'application/json'
|
|
280
|
+
})
|
|
281
|
+
xhr.send()
|
|
282
|
+
.then((response: LooseObject | Array<LooseObject> | string) => {
|
|
283
|
+
if (!_.isObject(response) || _.get(response, 'meta.status[0].code') !== 'SUCCESS') {
|
|
284
|
+
console.error('error[toggleStatus]:', response)
|
|
285
|
+
model.status = statusOriginal
|
|
286
|
+
this.refresh()
|
|
287
|
+
return
|
|
288
|
+
}
|
|
289
|
+
console.log('success[toggleStatus]:', response)
|
|
290
|
+
})
|
|
291
|
+
.catch((error: any) => {
|
|
292
|
+
console.error('error[toggleStatus]:', error)
|
|
293
|
+
model.status = statusOriginal
|
|
294
|
+
this.refresh()
|
|
295
|
+
})
|
|
296
|
+
return
|
|
297
|
+
}
|
|
298
|
+
|
|
258
299
|
remove(model: any) {
|
|
259
300
|
const models = this.dataRef()
|
|
260
301
|
if (!models || !models.length) {
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var quill_1, environment_1, Break, Embed, QuillBreak;
|
|
4
|
-
var __moduleName = context_1 && context_1.id;
|
|
5
|
-
return {
|
|
6
|
-
setters: [
|
|
7
|
-
function (quill_1_1) {
|
|
8
|
-
quill_1 = quill_1_1;
|
|
9
|
-
},
|
|
10
|
-
function (environment_1_1) {
|
|
11
|
-
environment_1 = environment_1_1;
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
execute: function () {
|
|
15
|
-
Break = quill_1.default.import('blots/break');
|
|
16
|
-
Embed = quill_1.default.import('blots/embed');
|
|
17
|
-
QuillBreak = class QuillBreak extends Break {
|
|
18
|
-
length() {
|
|
19
|
-
return 1;
|
|
20
|
-
}
|
|
21
|
-
value() {
|
|
22
|
-
return '\n';
|
|
23
|
-
}
|
|
24
|
-
insertInto(parent, ref) {
|
|
25
|
-
if (environment_1.cookie('env')) {
|
|
26
|
-
console.log('insertInto:', parent, ref);
|
|
27
|
-
}
|
|
28
|
-
Embed.prototype.insertInto.call(this, parent, ref);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports_1("QuillBreak", QuillBreak);
|
|
32
|
-
QuillBreak.blotName = 'break';
|
|
33
|
-
QuillBreak.tagName = 'BR';
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=quill-break-blot.plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["quill-break-blot.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;YAKM,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;YACnC,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;YAWzC,aAAA,MAAa,UAAW,SAAQ,KAAK;gBACjC,MAAM;oBACF,OAAO,CAAC,CAAA;gBACZ,CAAC;gBACD,KAAK;oBACD,OAAO,IAAI,CAAA;gBACf,CAAC;gBAED,UAAU,CAAC,MAAW,EAAE,GAAQ;oBAC5B,IAAI,oBAAM,CAAC,KAAK,CAAC,EAAE;wBACf,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;qBAC1C;oBACD,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;gBACtD,CAAC;aACJ,CAAA;;YAED,UAAU,CAAC,QAAQ,GAAG,OAAO,CAAA;YAC7B,UAAU,CAAC,OAAO,GAAG,IAAI,CAAA;QACzB,CAAC","file":"quill-break-blot.plugin.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["quill","@stratusjs/core/environment"],function(t,e){"use strict";var n,r,o,s,i;e&&e.id;return{setters:[function(t){n=t},function(t){r=t}],execute:function(){o=n.default.import("blots/break"),s=n.default.import("blots/embed"),t("QuillBreak",i=class extends o{length(){return 1}value(){return"\n"}insertInto(t,e){r.cookie("env")&&console.log("insertInto:",t,e),s.prototype.insertInto.call(this,t,e)}}),i.blotName="break",i.tagName="BR"}}});
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
System.register(["quill"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var quill_1, debug, Logger, QuillHtmlEditPlugin;
|
|
4
|
-
var __moduleName = context_1 && context_1.id;
|
|
5
|
-
function $create(elName) {
|
|
6
|
-
return document.createElement(elName);
|
|
7
|
-
}
|
|
8
|
-
function $setAttr(el, key, value) {
|
|
9
|
-
return el.setAttribute(key, value);
|
|
10
|
-
}
|
|
11
|
-
function launchPopupEditor(quill, options) {
|
|
12
|
-
const htmlFromEditor = quill.container.querySelector('.ql-editor').innerHTML;
|
|
13
|
-
const popupContainer = $create('div');
|
|
14
|
-
const overlayContainer = $create('div');
|
|
15
|
-
const msg = options.msg || 'Edit HTML here, when you click "OK" the quill editor\'s contents will be replaced';
|
|
16
|
-
const cancelText = options.cancelText || 'Cancel';
|
|
17
|
-
const okText = options.okText || 'Ok';
|
|
18
|
-
$setAttr(overlayContainer, 'class', 'ql-html-overlayContainer');
|
|
19
|
-
$setAttr(popupContainer, 'class', 'ql-html-popupContainer');
|
|
20
|
-
const popupTitle = $create('i');
|
|
21
|
-
$setAttr(popupTitle, 'class', 'ql-html-popupTitle');
|
|
22
|
-
popupTitle.innerText = msg;
|
|
23
|
-
const textContainer = $create('div');
|
|
24
|
-
textContainer.appendChild(popupTitle);
|
|
25
|
-
$setAttr(textContainer, 'class', 'ql-html-textContainer');
|
|
26
|
-
const textArea = $create('textarea');
|
|
27
|
-
$setAttr(textArea, 'class', 'ql-html-textArea');
|
|
28
|
-
textArea.value = formatHTML(htmlFromEditor);
|
|
29
|
-
const buttonCancel = $create('button');
|
|
30
|
-
buttonCancel.innerHTML = cancelText;
|
|
31
|
-
$setAttr(buttonCancel, 'class', 'ql-html-buttonCancel');
|
|
32
|
-
const buttonOk = $create('button');
|
|
33
|
-
buttonOk.innerHTML = okText;
|
|
34
|
-
const buttonGroup = $create('div');
|
|
35
|
-
$setAttr(buttonGroup, 'class', 'ql-html-buttonGroup');
|
|
36
|
-
buttonGroup.appendChild(buttonCancel);
|
|
37
|
-
buttonGroup.appendChild(buttonOk);
|
|
38
|
-
textContainer.appendChild(textArea);
|
|
39
|
-
textContainer.appendChild(buttonGroup);
|
|
40
|
-
popupContainer.appendChild(textContainer);
|
|
41
|
-
overlayContainer.appendChild(popupContainer);
|
|
42
|
-
document.body.appendChild(overlayContainer);
|
|
43
|
-
buttonCancel.onclick = () => {
|
|
44
|
-
document.body.removeChild(overlayContainer);
|
|
45
|
-
};
|
|
46
|
-
overlayContainer.onclick = buttonCancel.onclick;
|
|
47
|
-
popupContainer.onclick = (e) => {
|
|
48
|
-
e.preventDefault();
|
|
49
|
-
e.stopPropagation();
|
|
50
|
-
};
|
|
51
|
-
buttonOk.onclick = () => {
|
|
52
|
-
const output = textArea.value.split(/\r?\n/g).map((el) => el.trim());
|
|
53
|
-
const noNewlines = output.join('');
|
|
54
|
-
quill.container.querySelector('.ql-editor').innerHTML = noNewlines;
|
|
55
|
-
document.body.removeChild(overlayContainer);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function formatHTML(code) {
|
|
59
|
-
'use strict';
|
|
60
|
-
const stripWhiteSpaces = true;
|
|
61
|
-
const stripEmptyLines = true;
|
|
62
|
-
const whitespace = ' '.repeat(2);
|
|
63
|
-
let currentIndent = 0;
|
|
64
|
-
const newlineChar = '\n';
|
|
65
|
-
let char = null;
|
|
66
|
-
let nextChar = null;
|
|
67
|
-
let result = '';
|
|
68
|
-
for (let pos = 0; pos <= code.length; pos++) {
|
|
69
|
-
char = code.substr(pos, 1);
|
|
70
|
-
nextChar = code.substr(pos + 1, 1);
|
|
71
|
-
const isBrTag = code.substr(pos, 4) === '<br>';
|
|
72
|
-
const isOpeningTag = char === '<' && nextChar !== '/' && !isBrTag;
|
|
73
|
-
const isClosingTag = char === '<' && nextChar === '/' && !isBrTag;
|
|
74
|
-
if (isBrTag) {
|
|
75
|
-
result += newlineChar;
|
|
76
|
-
currentIndent--;
|
|
77
|
-
pos += 4;
|
|
78
|
-
}
|
|
79
|
-
if (isOpeningTag) {
|
|
80
|
-
result += newlineChar + whitespace.repeat(currentIndent);
|
|
81
|
-
currentIndent++;
|
|
82
|
-
}
|
|
83
|
-
else if (isClosingTag) {
|
|
84
|
-
if (--currentIndent < 0) {
|
|
85
|
-
currentIndent = 0;
|
|
86
|
-
}
|
|
87
|
-
result += newlineChar + whitespace.repeat(currentIndent);
|
|
88
|
-
}
|
|
89
|
-
else if (stripWhiteSpaces === true && char === ' ' && nextChar === ' ') {
|
|
90
|
-
char = '';
|
|
91
|
-
}
|
|
92
|
-
else if (stripEmptyLines === true && char === newlineChar) {
|
|
93
|
-
if (code.substr(pos, code.substr(pos).indexOf('<')).trim() === '') {
|
|
94
|
-
char = '';
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
result += char;
|
|
98
|
-
}
|
|
99
|
-
Logger.log('formatHTML', {
|
|
100
|
-
before: code,
|
|
101
|
-
after: result
|
|
102
|
-
});
|
|
103
|
-
return result;
|
|
104
|
-
}
|
|
105
|
-
return {
|
|
106
|
-
setters: [
|
|
107
|
-
function (quill_1_1) {
|
|
108
|
-
quill_1 = quill_1_1;
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
execute: function () {
|
|
112
|
-
debug = false;
|
|
113
|
-
Logger = {
|
|
114
|
-
prefixString() {
|
|
115
|
-
return `</> quill-html-edit-button: `;
|
|
116
|
-
},
|
|
117
|
-
get log() {
|
|
118
|
-
if (!debug) {
|
|
119
|
-
return () => { };
|
|
120
|
-
}
|
|
121
|
-
const boundLogFn = console.log.bind(console, this.prefixString());
|
|
122
|
-
return boundLogFn;
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
QuillHtmlEditPlugin = class QuillHtmlEditPlugin {
|
|
126
|
-
constructor(quill, options) {
|
|
127
|
-
debug = options && options.debug;
|
|
128
|
-
Logger.log('logging enabled');
|
|
129
|
-
const toolbarModule = quill.getModule('toolbar');
|
|
130
|
-
if (!toolbarModule) {
|
|
131
|
-
throw new Error('quill.htmlEditButton requires the "toolbar" module to be included too');
|
|
132
|
-
}
|
|
133
|
-
this.registerDivModule();
|
|
134
|
-
const toolbarEl = toolbarModule.container;
|
|
135
|
-
const buttonContainer = $create('span');
|
|
136
|
-
$setAttr(buttonContainer, 'class', 'ql-formats');
|
|
137
|
-
const button = $create('button');
|
|
138
|
-
button.innerHTML = options.buttonHTML || '<>';
|
|
139
|
-
button.title = options.buttonTitle || 'Show HTML source';
|
|
140
|
-
button.onclick = (e) => {
|
|
141
|
-
e.preventDefault();
|
|
142
|
-
launchPopupEditor(quill, options);
|
|
143
|
-
};
|
|
144
|
-
buttonContainer.appendChild(button);
|
|
145
|
-
toolbarEl.appendChild(buttonContainer);
|
|
146
|
-
}
|
|
147
|
-
registerDivModule() {
|
|
148
|
-
const Block = quill_1.default.import('blots/block');
|
|
149
|
-
class Div extends Block {
|
|
150
|
-
}
|
|
151
|
-
Div.tagName = 'div';
|
|
152
|
-
Div.blotName = 'div';
|
|
153
|
-
Div.allowedChildren = Block.allowedChildren;
|
|
154
|
-
Div.allowedChildren.push(Block);
|
|
155
|
-
quill_1.default.register(Div);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
exports_1("QuillHtmlEditPlugin", QuillHtmlEditPlugin);
|
|
159
|
-
exports_1("default", QuillHtmlEditPlugin);
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
//# sourceMappingURL=quill-html-edit.plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["quill-html-edit.plugin.ts"],"names":[],"mappings":";;;;IAQA,SAAS,OAAO,CAAC,MAAW;QACxB,OAAO,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACzC,CAAC;IACD,SAAS,QAAQ,CA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AAO,GAAG,KAAK,CAAA;oBACnB,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAA;oBACpB,GAAG,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;oBAC3C,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAC/B,eAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;gBACvB,CAAC;aACJ,CAAA;;iCA6Gc,mBAAmB;QAElC,CAAC","file":"quill-html-edit.plugin.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["quill"],function(t,e){"use strict";var n,l,o,i;e&&e.id;function r(t){return document.createElement(t)}function s(t,e,n){return t.setAttribute(e,n)}function c(t,e){const n=t.container.querySelector(".ql-editor").innerHTML,l=r("div"),i=r("div"),c=e.msg||'Edit HTML here, when you click "OK" the quill editor\'s contents will be replaced',u=e.cancelText||"Cancel",d=e.okText||"Ok";s(i,"class","ql-html-overlayContainer"),s(l,"class","ql-html-popupContainer");const a=r("i");s(a,"class","ql-html-popupTitle"),a.innerText=c;const p=r("div");p.appendChild(a),s(p,"class","ql-html-textContainer");const h=r("textarea");s(h,"class","ql-html-textArea"),h.value=function(t){const e=" ".repeat(2);let n=0;let l=null,i=null,r="";for(let o=0;o<=t.length;o++){l=t.substr(o,1),i=t.substr(o+1,1);const s="<br>"===t.substr(o,4),c="<"===l&&"/"===i&&!s;s&&(r+="\n",n--,o+=4),"<"===l&&"/"!==i&&!s?(r+="\n"+e.repeat(n),n++):c?(--n<0&&(n=0),r+="\n"+e.repeat(n)):(" "===l&&" "===i||"\n"===l&&""===t.substr(o,t.substr(o).indexOf("<")).trim())&&(l=""),r+=l}return o.log("formatHTML",{before:t,after:r}),r}(n);const b=r("button");b.innerHTML=u,s(b,"class","ql-html-buttonCancel");const m=r("button");m.innerHTML=d;const g=r("div");s(g,"class","ql-html-buttonGroup"),g.appendChild(b),g.appendChild(m),p.appendChild(h),p.appendChild(g),l.appendChild(p),i.appendChild(l),document.body.appendChild(i),b.onclick=()=>{document.body.removeChild(i)},i.onclick=b.onclick,l.onclick=t=>{t.preventDefault(),t.stopPropagation()},m.onclick=()=>{const e=h.value.split(/\r?\n/g).map(t=>t.trim()).join("");t.container.querySelector(".ql-editor").innerHTML=e,document.body.removeChild(i)}}return{setters:[function(t){n=t}],execute:function(){l=!1,o={prefixString:()=>"</> quill-html-edit-button: ",get log(){if(!l)return()=>{};return console.log.bind(console,this.prefixString())}},t("QuillHtmlEditPlugin",i=class{constructor(t,e){l=e&&e.debug,o.log("logging enabled");const n=t.getModule("toolbar");if(!n)throw new Error('quill.htmlEditButton requires the "toolbar" module to be included too');this.registerDivModule();const i=n.container,u=r("span");s(u,"class","ql-formats");const d=r("button");d.innerHTML=e.buttonHTML||"<>",d.title=e.buttonTitle||"Show HTML source",d.onclick=n=>{n.preventDefault(),c(t,e)},u.appendChild(d),i.appendChild(u)}registerDivModule(){const t=n.default.import("blots/block");class e extends t{}e.tagName="div",e.blotName="div",e.allowedChildren=t.allowedChildren,e.allowedChildren.push(t),n.default.register(e)}}),t("default",i)}}});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
System.register(["quill"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var quill_1, BaseImage, ATTRIBUTES, QuillImageFormatPlugin;
|
|
4
|
-
var __moduleName = context_1 && context_1.id;
|
|
5
|
-
return {
|
|
6
|
-
setters: [
|
|
7
|
-
function (quill_1_1) {
|
|
8
|
-
quill_1 = quill_1_1;
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
execute: function () {
|
|
12
|
-
BaseImage = quill_1.default.import('formats/image');
|
|
13
|
-
ATTRIBUTES = [
|
|
14
|
-
'alt',
|
|
15
|
-
'height',
|
|
16
|
-
'width',
|
|
17
|
-
'stratus-src',
|
|
18
|
-
'stratusSrc'
|
|
19
|
-
];
|
|
20
|
-
QuillImageFormatPlugin = class QuillImageFormatPlugin extends BaseImage {
|
|
21
|
-
constructor() {
|
|
22
|
-
super(...arguments);
|
|
23
|
-
this.blotName = 'imageCustom';
|
|
24
|
-
this.tagName = 'IMG';
|
|
25
|
-
}
|
|
26
|
-
format(name, value) {
|
|
27
|
-
console.log('format:', name, value, this.domNode.getAttribute('src'));
|
|
28
|
-
if (ATTRIBUTES.indexOf(name) === -1) {
|
|
29
|
-
super.format(name, value);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (!value) {
|
|
33
|
-
this.domNode.removeAttribute(name);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (name === 'stratus-src') {
|
|
37
|
-
console.log('stratus-src:', value);
|
|
38
|
-
}
|
|
39
|
-
if (name === 'stratusSrc') {
|
|
40
|
-
console.log('stratusSrc:', value);
|
|
41
|
-
}
|
|
42
|
-
this.domNode.setAttribute(name, value);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports_1("QuillImageFormatPlugin", QuillImageFormatPlugin);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
//# sourceMappingURL=quill-image-format.plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["quill-image-format.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;YACM,SAAS,GAAG,eAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;YAEzC,UAAU,GAAG;gBACf,KAAK;gBACL,QAAQ;gBACR,OAAO;gBACP,aAAa;gBACb,YAAY;aACf,CAAA;YAED,yBAAA,MAAa,sBAAuB,SAAQ,SAAS;gBAArD;;oBAGI,aAAQ,GAAG,aAAa,CAAA;oBACxB,YAAO,GAAG,KAAK,CAAA;gBA2DnB,CAAC;gBApBG,MAAM,CAAC,IAAS,EAAE,KAAU;oBACxB,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;oBACrE,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;wBACjC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;wBACzB,OAAM;qBACT;oBACD,IAAI,CAAC,KAAK,EAAE;wBACR,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;wBAClC,OAAM;qBACT;oBACD,IAAI,IAAI,KAAK,aAAa,EAAE;wBACxB,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,CAAA;qBAErC;oBACD,IAAI,IAAI,KAAK,YAAY,EAAE;wBACvB,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAA;qBAEpC;oBACD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;gBAC1C,CAAC;aACJ,CAAA;;QACD,CAAC","file":"quill-image-format.plugin.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["quill"],function(t,s){"use strict";var e,r,o;s&&s.id;return{setters:[function(t){e=t}],execute:function(){r=e.default.import("formats/image"),o=["alt","height","width","stratus-src","stratusSrc"],t("QuillImageFormatPlugin",class extends r{constructor(){super(...arguments),this.blotName="imageCustom",this.tagName="IMG"}format(t,s){console.log("format:",t,s,this.domNode.getAttribute("src")),-1!==o.indexOf(t)?s?("stratus-src"===t&&console.log("stratus-src:",s),"stratusSrc"===t&&console.log("stratusSrc:",s),this.domNode.setAttribute(t,s)):this.domNode.removeAttribute(t):super.format(t,s)}})}}});
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
System.register(["@stratusjs/runtime/stratus", "lodash", "quill"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var stratus_1, lodash_1, quill_1, QuillInputButtonPlugin;
|
|
4
|
-
var __moduleName = context_1 && context_1.id;
|
|
5
|
-
return {
|
|
6
|
-
setters: [
|
|
7
|
-
function (stratus_1_1) {
|
|
8
|
-
stratus_1 = stratus_1_1;
|
|
9
|
-
},
|
|
10
|
-
function (lodash_1_1) {
|
|
11
|
-
lodash_1 = lodash_1_1;
|
|
12
|
-
},
|
|
13
|
-
function (quill_1_1) {
|
|
14
|
-
quill_1 = quill_1_1;
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
execute: function () {
|
|
18
|
-
QuillInputButtonPlugin = class QuillInputButtonPlugin {
|
|
19
|
-
constructor(quill, options) {
|
|
20
|
-
this.debug = false;
|
|
21
|
-
this.buttonHTML = '<i class="fas fa-carrot"></i>';
|
|
22
|
-
this.buttonTitle = 'Input Button';
|
|
23
|
-
this.name = 'inputButton';
|
|
24
|
-
this.eventName = 'input-button';
|
|
25
|
-
this.uid = lodash_1.default.uniqueId(`quill_input_button_`);
|
|
26
|
-
stratus_1.Stratus.Instances[this.uid] = this;
|
|
27
|
-
this.debug = options && options.debug;
|
|
28
|
-
if (!options || typeof options !== 'object') {
|
|
29
|
-
options = {};
|
|
30
|
-
}
|
|
31
|
-
this.buttonHTML = options.buttonHTML || this.buttonHTML;
|
|
32
|
-
this.buttonTitle = options.buttonTitle || this.buttonTitle;
|
|
33
|
-
this.name = options.name || this.name;
|
|
34
|
-
this.eventName = options.eventName || this.eventName;
|
|
35
|
-
this.createToolbarModule(quill);
|
|
36
|
-
}
|
|
37
|
-
createToolbarModule(quill) {
|
|
38
|
-
const toolbarModule = quill.getModule('toolbar');
|
|
39
|
-
if (!toolbarModule) {
|
|
40
|
-
throw new Error(`quill.${this.name} requires the "toolbar" module`);
|
|
41
|
-
}
|
|
42
|
-
this.registerDivModule();
|
|
43
|
-
const toolbarEl = toolbarModule.container;
|
|
44
|
-
const buttonContainer = document.createElement('span');
|
|
45
|
-
buttonContainer.setAttribute('class', 'ql-formats');
|
|
46
|
-
const button = document.createElement('button');
|
|
47
|
-
button.innerHTML = this.buttonHTML;
|
|
48
|
-
button.title = this.buttonTitle;
|
|
49
|
-
button.onclick = (e) => {
|
|
50
|
-
e.preventDefault();
|
|
51
|
-
this.onClick(quill);
|
|
52
|
-
};
|
|
53
|
-
buttonContainer.appendChild(button);
|
|
54
|
-
toolbarEl.appendChild(buttonContainer);
|
|
55
|
-
}
|
|
56
|
-
registerDivModule() {
|
|
57
|
-
const Block = quill_1.default.import('blots/block');
|
|
58
|
-
class Div extends Block {
|
|
59
|
-
}
|
|
60
|
-
Div.tagName = 'div';
|
|
61
|
-
Div.blotName = 'div';
|
|
62
|
-
Div.allowedChildren = Block.allowedChildren;
|
|
63
|
-
Div.allowedChildren.push(Block);
|
|
64
|
-
quill_1.default.register(Div);
|
|
65
|
-
}
|
|
66
|
-
findUID(el) {
|
|
67
|
-
if ('uid' in el.dataset) {
|
|
68
|
-
return el.dataset.uid;
|
|
69
|
-
}
|
|
70
|
-
return this.findUID(el.parentElement);
|
|
71
|
-
}
|
|
72
|
-
getInstance(uid) {
|
|
73
|
-
if (!(uid in stratus_1.Stratus.Instances)) {
|
|
74
|
-
return undefined;
|
|
75
|
-
}
|
|
76
|
-
return stratus_1.Stratus.Instances[uid];
|
|
77
|
-
}
|
|
78
|
-
onClick(quill) {
|
|
79
|
-
const container = quill.container;
|
|
80
|
-
const uid = this.findUID(container);
|
|
81
|
-
const instance = this.getInstance(uid);
|
|
82
|
-
if (!instance) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
instance.trigger(this.eventName, null, this);
|
|
86
|
-
}
|
|
87
|
-
trigger(name, data, callee) {
|
|
88
|
-
if (this.debug) {
|
|
89
|
-
console.log(`quill.${this.name}.trigger:`, name, data, callee);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
exports_1("QuillInputButtonPlugin", QuillInputButtonPlugin);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
//# sourceMappingURL=quill-input-button.plugin.js.map
|