@wizishop/angular-components 0.0.137 → 0.0.141
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/angular-components.scss +5002 -4728
- package/bundles/wizishop-angular-components.umd.js +87 -8
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +2 -2
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.component.js +17 -0
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.dto.js +2 -0
- package/esm2015/lib/components/card-price/card-price.component.js +29 -0
- package/esm2015/lib/components/hn/h1/h1.component.js +4 -2
- package/esm2015/lib/components/shared-components.module.js +10 -2
- package/esm2015/lib/components/switch/switch.component.js +4 -2
- package/esm2015/lib/components/text-area/text-area.component.js +4 -2
- package/esm2015/lib/components/wrapper-sidebar/wrapper-sidebar.component.js +19 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/wizishop-angular-components.js +78 -5
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +7 -0
- package/lib/components/breadcrumbs/breadcrumbs.dto.d.ts +5 -0
- package/lib/components/card-price/card-price.component.d.ts +14 -0
- package/lib/components/hn/h1/h1.component.d.ts +1 -0
- package/lib/components/switch/switch.component.d.ts +1 -0
- package/lib/components/text-area/text-area.component.d.ts +1 -0
- package/lib/components/wrapper-sidebar/wrapper-sidebar.component.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/wizishop-angular-components-0.0.141.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.137.tgz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router));
|
|
5
|
-
}(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router'), require('ngx-autosize')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router', 'ngx-autosize'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router, global.ngxAutosize));
|
|
5
|
+
}(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router, ngxAutosize) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1991,6 +1991,7 @@
|
|
|
1991
1991
|
this.size = null;
|
|
1992
1992
|
this.min = null;
|
|
1993
1993
|
this.max = null;
|
|
1994
|
+
this.dynamicSize = false;
|
|
1994
1995
|
this.progressBar = false;
|
|
1995
1996
|
this.disabled = false;
|
|
1996
1997
|
this.id = 'wac-textarea__' +
|
|
@@ -2026,7 +2027,7 @@
|
|
|
2026
2027
|
TextAreaComponent.decorators = [
|
|
2027
2028
|
{ type: i0.Component, args: [{
|
|
2028
2029
|
selector: 'wac-text-area',
|
|
2029
|
-
template: "<div class=\"field wac-text-area\">\n <div class=\"field-label is-normal has-text-left\">\n <label class=\"label has-text-weight-normal\" [innerHTML]=\"label\" [for]=\"id\"></label>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p class=\"control\" [ngClass]=\"{ 'has-icons-right': textError }\">\n <textarea\n class=\"textarea\"\n [id]=\"id\"\n [ngClass]=\"{ 'is-danger': textError, 'has-help-text': textInfo != '' || size }\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n ></textarea>\n\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n <span\n *ngIf=\"textInfo && (textError === null || textError === '')\"\n class=\"is-size-7 wac-text-area__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n <span *ngIf=\"textError\" class=\"is-size-7 wac-text-area__error has-text-danger\" [innerHtml]=\"textError\"></span>\n <span\n *ngIf=\"size && !progressBar\"\n class=\"is-size-7 wac-text-area__size\"\n [ngClass]=\"value && value.length > size ? 'has-text-danger' : ''\"\n >{{ value ? value.length : 0 }}/{{ size }}</span\n >\n </p>\n <wac-progress-bar *ngIf=\"progressBar && value\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
|
|
2030
|
+
template: "<div class=\"field wac-text-area\" [ngClass]=\"{'dynamic': dynamicSize}\">\n <div class=\"field-label is-normal has-text-left\">\n <label class=\"label has-text-weight-normal\" [innerHTML]=\"label\" [for]=\"id\"></label>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p class=\"control\" [ngClass]=\"{ 'has-icons-right': textError }\">\n <textarea\n class=\"textarea\"\n [id]=\"id\"\n [ngClass]=\"{ 'is-danger': textError, 'has-help-text': textInfo != '' || size }\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n [autosize]=\"dynamicSize\"\n [onlyGrow]=\"true\"\n ></textarea>\n\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n <span\n *ngIf=\"textInfo && (textError === null || textError === '')\"\n class=\"is-size-7 wac-text-area__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n <span *ngIf=\"textError\" class=\"is-size-7 wac-text-area__error has-text-danger\" [innerHtml]=\"textError\"></span>\n <span\n *ngIf=\"size && !progressBar\"\n class=\"is-size-7 wac-text-area__size\"\n [ngClass]=\"value && value.length > size ? 'has-text-danger' : ''\"\n >{{ value ? value.length : 0 }}/{{ size }}</span\n >\n </p>\n <wac-progress-bar *ngIf=\"progressBar && value\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
|
|
2030
2031
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: TextAreaComponent, multi: true }]
|
|
2031
2032
|
},] }
|
|
2032
2033
|
];
|
|
@@ -2039,11 +2040,13 @@
|
|
|
2039
2040
|
size: [{ type: i0.Input }],
|
|
2040
2041
|
min: [{ type: i0.Input }],
|
|
2041
2042
|
max: [{ type: i0.Input }],
|
|
2043
|
+
dynamicSize: [{ type: i0.Input }],
|
|
2042
2044
|
progressBar: [{ type: i0.Input }]
|
|
2043
2045
|
};
|
|
2044
2046
|
|
|
2045
2047
|
var H1Component = /** @class */ (function () {
|
|
2046
2048
|
function H1Component() {
|
|
2049
|
+
this.annotation = '';
|
|
2047
2050
|
this.withImg = false;
|
|
2048
2051
|
}
|
|
2049
2052
|
H1Component.prototype.ngOnInit = function () { };
|
|
@@ -2052,11 +2055,12 @@
|
|
|
2052
2055
|
H1Component.decorators = [
|
|
2053
2056
|
{ type: i0.Component, args: [{
|
|
2054
2057
|
selector: 'wac-h1',
|
|
2055
|
-
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg}\"><ng-content></ng-content></h1>\n"
|
|
2058
|
+
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg}\"><ng-content></ng-content><small *ngIf=\"annotation !== ''\">{{ annotation }}</small></h1>\n"
|
|
2056
2059
|
},] }
|
|
2057
2060
|
];
|
|
2058
2061
|
H1Component.ctorParameters = function () { return []; };
|
|
2059
2062
|
H1Component.propDecorators = {
|
|
2063
|
+
annotation: [{ type: i0.Input }],
|
|
2060
2064
|
withImg: [{ type: i0.Input }]
|
|
2061
2065
|
};
|
|
2062
2066
|
|
|
@@ -2374,6 +2378,7 @@
|
|
|
2374
2378
|
this.textStateDisable = '';
|
|
2375
2379
|
this.showInput = false;
|
|
2376
2380
|
this.danger = false;
|
|
2381
|
+
this.whiteSpace = false;
|
|
2377
2382
|
this.switchChange = new i0.EventEmitter(); // todo set emitted type
|
|
2378
2383
|
this.changeInput = new i0.EventEmitter(); // todo set emitted type
|
|
2379
2384
|
}
|
|
@@ -2391,7 +2396,7 @@
|
|
|
2391
2396
|
SwitchComponent.decorators = [
|
|
2392
2397
|
{ type: i0.Component, args: [{
|
|
2393
2398
|
selector: 'wac-switch',
|
|
2394
|
-
template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span
|
|
2399
|
+
template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span\n *ngIf=\"textState\"\n [ngStyle]=\"{'whiteSpace': whiteSpace ? 'nowrap' :'normal'}\"\n >{{ textState }} <strong class=\"disable\" *ngIf=\"textStateDisable\">{{ textStateDisable }}</strong>\n <strong class=\"enable\" *ngIf=\"textStateEnable\">{{ textStateEnable }}</strong></span\n ></span\n >\n </label>\n</div>\n<div class=\"wac-show-input\" *ngIf=\"showInput && value\">\n <input [placeholder]=\"placholderInput\" type=\"text\" [(ngModel)]=\"valueInput\" (blur)=\"triggerInput()\" />\n</div>\n"
|
|
2395
2400
|
},] }
|
|
2396
2401
|
];
|
|
2397
2402
|
SwitchComponent.ctorParameters = function () { return []; };
|
|
@@ -2403,6 +2408,7 @@
|
|
|
2403
2408
|
showInput: [{ type: i0.Input }],
|
|
2404
2409
|
placholderInput: [{ type: i0.Input }],
|
|
2405
2410
|
danger: [{ type: i0.Input }],
|
|
2411
|
+
whiteSpace: [{ type: i0.Input }],
|
|
2406
2412
|
switchChange: [{ type: i0.Output }],
|
|
2407
2413
|
changeInput: [{ type: i0.Output }]
|
|
2408
2414
|
};
|
|
@@ -4183,6 +4189,72 @@
|
|
|
4183
4189
|
},] }
|
|
4184
4190
|
];
|
|
4185
4191
|
|
|
4192
|
+
var WrapperSidebarComponent = /** @class */ (function () {
|
|
4193
|
+
function WrapperSidebarComponent() {
|
|
4194
|
+
this.reverse = false;
|
|
4195
|
+
}
|
|
4196
|
+
WrapperSidebarComponent.prototype.ngOnInit = function () {
|
|
4197
|
+
};
|
|
4198
|
+
return WrapperSidebarComponent;
|
|
4199
|
+
}());
|
|
4200
|
+
WrapperSidebarComponent.decorators = [
|
|
4201
|
+
{ type: i0.Component, args: [{
|
|
4202
|
+
selector: 'wac-wrapper-sidebar',
|
|
4203
|
+
template: "<div class=\"wac-wrapper-sidebar\" [ngClass]=\"{'reverse': reverse}\">\n <div class=\"wac-wrapper-sidebar__left\">\n <ng-content select=\"[sidebar]\"></ng-content>\n </div>\n <div class=\"wac-wrapper-sidebar__right\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n</div>\n"
|
|
4204
|
+
},] }
|
|
4205
|
+
];
|
|
4206
|
+
WrapperSidebarComponent.ctorParameters = function () { return []; };
|
|
4207
|
+
WrapperSidebarComponent.propDecorators = {
|
|
4208
|
+
reverse: [{ type: i0.Input }]
|
|
4209
|
+
};
|
|
4210
|
+
|
|
4211
|
+
var BreadcrumbsComponent = /** @class */ (function () {
|
|
4212
|
+
function BreadcrumbsComponent() {
|
|
4213
|
+
}
|
|
4214
|
+
BreadcrumbsComponent.prototype.ngOnInit = function () {
|
|
4215
|
+
};
|
|
4216
|
+
return BreadcrumbsComponent;
|
|
4217
|
+
}());
|
|
4218
|
+
BreadcrumbsComponent.decorators = [
|
|
4219
|
+
{ type: i0.Component, args: [{
|
|
4220
|
+
selector: 'wac-breadcrumbs',
|
|
4221
|
+
template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
|
|
4222
|
+
},] }
|
|
4223
|
+
];
|
|
4224
|
+
BreadcrumbsComponent.ctorParameters = function () { return []; };
|
|
4225
|
+
BreadcrumbsComponent.propDecorators = {
|
|
4226
|
+
breadcrumbs: [{ type: i0.Input }]
|
|
4227
|
+
};
|
|
4228
|
+
|
|
4229
|
+
var CardPriceComponent = /** @class */ (function () {
|
|
4230
|
+
function CardPriceComponent() {
|
|
4231
|
+
this.click = new i0.EventEmitter();
|
|
4232
|
+
}
|
|
4233
|
+
CardPriceComponent.prototype.ngOnInit = function () {
|
|
4234
|
+
};
|
|
4235
|
+
CardPriceComponent.prototype.triggerClick = function () {
|
|
4236
|
+
this.click.emit(true);
|
|
4237
|
+
};
|
|
4238
|
+
return CardPriceComponent;
|
|
4239
|
+
}());
|
|
4240
|
+
CardPriceComponent.decorators = [
|
|
4241
|
+
{ type: i0.Component, args: [{
|
|
4242
|
+
selector: 'wac-card-price',
|
|
4243
|
+
template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" extraClasses=\"is-success\" (click)=\"triggerClick()\"></wac-button>\n </div>\n</div>\n"
|
|
4244
|
+
},] }
|
|
4245
|
+
];
|
|
4246
|
+
CardPriceComponent.ctorParameters = function () { return []; };
|
|
4247
|
+
CardPriceComponent.propDecorators = {
|
|
4248
|
+
amount: [{ type: i0.Input }],
|
|
4249
|
+
title: [{ type: i0.Input }],
|
|
4250
|
+
price: [{ type: i0.Input }],
|
|
4251
|
+
currency: [{ type: i0.Input }],
|
|
4252
|
+
priceWording: [{ type: i0.Input }],
|
|
4253
|
+
subtitle: [{ type: i0.Input }],
|
|
4254
|
+
btnLabel: [{ type: i0.Input }],
|
|
4255
|
+
click: [{ type: i0.Output }]
|
|
4256
|
+
};
|
|
4257
|
+
|
|
4186
4258
|
var components = [
|
|
4187
4259
|
TagComponent,
|
|
4188
4260
|
TabComponent,
|
|
@@ -4224,7 +4296,10 @@
|
|
|
4224
4296
|
WrapperBlocsComponent,
|
|
4225
4297
|
SnackbarComponent,
|
|
4226
4298
|
SearchComponent,
|
|
4227
|
-
SelectedListComponent
|
|
4299
|
+
SelectedListComponent,
|
|
4300
|
+
WrapperSidebarComponent,
|
|
4301
|
+
BreadcrumbsComponent,
|
|
4302
|
+
CardPriceComponent
|
|
4228
4303
|
];
|
|
4229
4304
|
var exportsFromModule = [
|
|
4230
4305
|
PaginationComponent,
|
|
@@ -4269,6 +4344,7 @@
|
|
|
4269
4344
|
ngxPerfectScrollbar.PerfectScrollbarModule,
|
|
4270
4345
|
AlertPopupModule,
|
|
4271
4346
|
router.RouterModule,
|
|
4347
|
+
ngxAutosize.AutosizeModule,
|
|
4272
4348
|
TreeModule
|
|
4273
4349
|
],
|
|
4274
4350
|
declarations: components,
|
|
@@ -4325,8 +4401,10 @@
|
|
|
4325
4401
|
exports.AutoHideDirective = AutoHideDirective;
|
|
4326
4402
|
exports.BackComponent = BackComponent;
|
|
4327
4403
|
exports.BlockComponent = BlockComponent;
|
|
4404
|
+
exports.BreadcrumbsComponent = BreadcrumbsComponent;
|
|
4328
4405
|
exports.ButtonComponent = ButtonComponent;
|
|
4329
4406
|
exports.CalendarComponent = CalendarComponent;
|
|
4407
|
+
exports.CardPriceComponent = CardPriceComponent;
|
|
4330
4408
|
exports.CheckBoxRow = CheckBoxRow;
|
|
4331
4409
|
exports.CheckboxComponent = CheckboxComponent;
|
|
4332
4410
|
exports.DebounceKeyupDirective = DebounceKeyupDirective;
|
|
@@ -4389,6 +4467,7 @@
|
|
|
4389
4467
|
exports.WiziComponentsModule = WiziComponentsModule;
|
|
4390
4468
|
exports.WrapperBlocsComponent = WrapperBlocsComponent;
|
|
4391
4469
|
exports.WrapperComponent = WrapperComponent;
|
|
4470
|
+
exports.WrapperSidebarComponent = WrapperSidebarComponent;
|
|
4392
4471
|
exports.WzEditInPlaceComponent = WzEditInPlaceComponent;
|
|
4393
4472
|
exports.ZindexToggleDirective = ZindexToggleDirective;
|
|
4394
4473
|
exports.ɵa = DomService;
|