@cityway/bo-ui 1.0.9 → 1.0.10-beta002

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.
Files changed (113) hide show
  1. package/cityway-bo-ui-1.0.10-beta001.tgz +0 -0
  2. package/cityway-bo-ui-1.0.10-beta002.tgz +0 -0
  3. package/fesm2022/cityway-bo-ui.mjs +110 -1447
  4. package/fesm2022/cityway-bo-ui.mjs.map +1 -1
  5. package/index.d.ts +49 -451
  6. package/package.json +3 -9
  7. package/cityway-bo-ui-1.0.9.tgz +0 -0
  8. package/lib/assets/fonts/bo/_variables.scss +0 -43
  9. package/lib/assets/fonts/bo/bo.scss +0 -61
  10. package/lib/assets/fonts/bo/bo.woff +0 -0
  11. package/lib/assets/fonts/bo/bo.woff2 +0 -0
  12. package/lib/assets/fonts/nunito/_nunito.scss +0 -15
  13. package/lib/assets/fonts/nunito/nunito-bold.woff +0 -0
  14. package/lib/assets/fonts/nunito/nunito-bold.woff2 +0 -0
  15. package/lib/assets/fonts/nunito/nunito-extrabold.woff +0 -0
  16. package/lib/assets/fonts/nunito/nunito-extrabold.woff2 +0 -0
  17. package/lib/assets/fonts/nunito/nunito-regular.woff +0 -0
  18. package/lib/assets/fonts/nunito/nunito-regular.woff2 +0 -0
  19. package/lib/assets/fonts/nunito/nunito-semi-bold.woff +0 -0
  20. package/lib/assets/fonts/nunito/nunito-semi-bold.woff2 +0 -0
  21. package/lib/assets/fonts/optyweb/_variables.scss +0 -336
  22. package/lib/assets/fonts/optyweb/optyweb.scss +0 -358
  23. package/lib/assets/fonts/optyweb/optyweb.woff +0 -0
  24. package/lib/assets/fonts/optyweb/optyweb.woff2 +0 -0
  25. package/lib/assets/i18n/common.en.json +0 -248
  26. package/lib/assets/i18n/common.fr.json +0 -242
  27. package/lib/assets/i18n/label.en.json +0 -29
  28. package/lib/assets/i18n/label.fr.json +0 -29
  29. package/lib/assets/images/common/bg-loader.svg +0 -3
  30. package/lib/assets/images/common/bg-menu.svg +0 -6
  31. package/lib/assets/images/common/bg-round.svg +0 -3
  32. package/lib/assets/images/common/check-mark.svg +0 -3
  33. package/lib/assets/images/common/loader.svg +0 -3
  34. package/lib/assets/images/common/logo-en-bw.svg +0 -7
  35. package/lib/assets/images/common/logo-en.svg +0 -8
  36. package/lib/assets/images/common/logo-fr-bw.svg +0 -4
  37. package/lib/assets/images/common/logo-fr.svg +0 -8
  38. package/lib/assets/images/favicon/android-chrome-192x192.png +0 -0
  39. package/lib/assets/images/favicon/android-chrome-512x512.png +0 -0
  40. package/lib/assets/images/favicon/apple-touch-icon.png +0 -0
  41. package/lib/assets/images/favicon/favicon-16x16.png +0 -0
  42. package/lib/assets/images/favicon/favicon-32x32.png +0 -0
  43. package/lib/assets/images/favicon/favicon-96x96.png +0 -0
  44. package/lib/assets/images/favicon/favicon.ico +0 -0
  45. package/lib/assets/images/favicon/site.webmanifest +0 -19
  46. package/lib/assets/images/icon/referential-icon.svg +0 -1
  47. package/lib/assets/images/login/login-bg.jpg +0 -0
  48. package/lib/assets/images/login/logo-cityway-baseline.svg +0 -16
  49. package/lib/assets/images/toast/warning.svg +0 -3
  50. package/lib/assets/styles/scss/_components.scss +0 -23
  51. package/lib/assets/styles/scss/_core.scss +0 -5
  52. package/lib/assets/styles/scss/_custom-bootstrap.scss +0 -22
  53. package/lib/assets/styles/scss/bootstrap/_accordion.scss +0 -1
  54. package/lib/assets/styles/scss/bootstrap/_alert.scss +0 -32
  55. package/lib/assets/styles/scss/bootstrap/_badge.scss +0 -36
  56. package/lib/assets/styles/scss/bootstrap/_breadcrumb.scss +0 -46
  57. package/lib/assets/styles/scss/bootstrap/_button-group.scss +0 -107
  58. package/lib/assets/styles/scss/bootstrap/_buttons.scss +0 -324
  59. package/lib/assets/styles/scss/bootstrap/_card.scss +0 -107
  60. package/lib/assets/styles/scss/bootstrap/_close.scss +0 -8
  61. package/lib/assets/styles/scss/bootstrap/_dropdown.scss +0 -53
  62. package/lib/assets/styles/scss/bootstrap/_forms.scss +0 -259
  63. package/lib/assets/styles/scss/bootstrap/_input-group.scss +0 -61
  64. package/lib/assets/styles/scss/bootstrap/_lists.scss +0 -30
  65. package/lib/assets/styles/scss/bootstrap/_modal.scss +0 -152
  66. package/lib/assets/styles/scss/bootstrap/_pagination.scss +0 -21
  67. package/lib/assets/styles/scss/bootstrap/_popover.scss +0 -5
  68. package/lib/assets/styles/scss/bootstrap/_progress.scss +0 -6
  69. package/lib/assets/styles/scss/bootstrap/_reboot.scss +0 -5
  70. package/lib/assets/styles/scss/bootstrap/_tables.scss +0 -155
  71. package/lib/assets/styles/scss/bootstrap/_tabs.scss +0 -71
  72. package/lib/assets/styles/scss/bootstrap/_tooltip.scss +0 -3
  73. package/lib/assets/styles/scss/bootstrap/_type.scss +0 -55
  74. package/lib/assets/styles/scss/components/_forms-firefox.scss +0 -17
  75. package/lib/assets/styles/scss/components/_leaflet.scss +0 -41
  76. package/lib/assets/styles/scss/components/_legend.scss +0 -36
  77. package/lib/assets/styles/scss/components/_ng-select.scss +0 -148
  78. package/lib/assets/styles/scss/components/_ng2-dragula.scss +0 -36
  79. package/lib/assets/styles/scss/components/_ng2-validation.scss +0 -39
  80. package/lib/assets/styles/scss/components/_ng5-slider.scss +0 -28
  81. package/lib/assets/styles/scss/components/_ngb-datepicker.scss +0 -165
  82. package/lib/assets/styles/scss/components/_ngb-timepicker.scss +0 -19
  83. package/lib/assets/styles/scss/components/_ngx-chips.scss +0 -102
  84. package/lib/assets/styles/scss/components/_ngx-editor.scss +0 -10
  85. package/lib/assets/styles/scss/components/_ngx-file-drop.scss +0 -15
  86. package/lib/assets/styles/scss/components/_ngx-intl-tel-input.scss +0 -21
  87. package/lib/assets/styles/scss/components/_ngx-slider.scss +0 -34
  88. package/lib/assets/styles/scss/components/_ngx-toast.scss +0 -74
  89. package/lib/assets/styles/scss/components/_pwd-policy.scss +0 -18
  90. package/lib/assets/styles/scss/components/_table.scss +0 -8
  91. package/lib/assets/styles/scss/components/_vis.scss +0 -50
  92. package/lib/assets/styles/scss/components/_wizard-stepper.scss +0 -82
  93. package/lib/assets/styles/scss/components/table/_table-action.scss +0 -77
  94. package/lib/assets/styles/scss/components/table/_table-bg-cell.scss +0 -6
  95. package/lib/assets/styles/scss/components/table/_table-double-scroll.scss +0 -38
  96. package/lib/assets/styles/scss/components/table/_table-filter.scss +0 -128
  97. package/lib/assets/styles/scss/components/table/_table-pagination.scss +0 -34
  98. package/lib/assets/styles/scss/components/table/_table-popover.scss +0 -39
  99. package/lib/assets/styles/scss/components/table/_table-sorting.scss +0 -64
  100. package/lib/assets/styles/scss/core/_footer.scss +0 -15
  101. package/lib/assets/styles/scss/core/_header.scss +0 -170
  102. package/lib/assets/styles/scss/core/_layout.scss +0 -59
  103. package/lib/assets/styles/scss/core/_menu.scss +0 -253
  104. package/lib/assets/styles/scss/core/_sidebar.scss +0 -195
  105. package/lib/assets/styles/scss/mixins/_utilities.scss +0 -9
  106. package/lib/assets/styles/scss/styles.scss +0 -86
  107. package/lib/assets/styles/scss/tools/_focus.scss +0 -39
  108. package/lib/assets/styles/scss/tools/_loader.scss +0 -106
  109. package/lib/assets/styles/scss/variables/_colors.scss +0 -43
  110. package/lib/assets/styles/scss/variables/_custom.scss +0 -451
  111. package/lib/assets/styles/scss/variables/_site.scss +0 -68
  112. package/styles.min.css +0 -5
  113. package/styles.min.css.map +0 -1
package/index.d.ts CHANGED
@@ -1,224 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, ElementRef, NgZone, OnChanges, EventEmitter, SimpleChanges, TemplateRef, QueryList, AfterViewInit, ChangeDetectorRef, AfterContentInit } from '@angular/core';
3
- import { Title } from '@angular/platform-browser';
4
- import { Router, ActivatedRoute } from '@angular/router';
5
- import { TranslateService } from '@ngx-translate/core';
6
- import { NgbModalRef, NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
7
- import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ValidationErrors, FormGroup, FormControl } from '@angular/forms';
2
+ import { OnInit, TemplateRef, EventEmitter } from '@angular/core';
8
3
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
9
- import { Options as Options$1 } from '@angular-slider/ngx-slider';
10
-
11
- interface Options {
12
- heading?: string;
13
- parent?: Parent | Array<Parent>;
14
- removeFooter?: boolean;
15
- }
16
- interface Parent {
17
- title: string;
18
- link: string;
19
- }
20
- declare class AdminLayoutComponent implements OnInit, OnDestroy {
21
- private _element;
22
- private router;
23
- private route;
24
- translate: TranslateService;
25
- private titleService;
26
- private zone;
27
- sidebar: any;
28
- sideMenu: any;
29
- parentProperties: Parent | Array<Parent>;
30
- routeOptions: Options;
31
- urlParamsOptions: any;
32
- formattedHeading: string;
33
- options: {
34
- lang: string;
35
- theme: string;
36
- settings: boolean;
37
- docked: boolean;
38
- boxed: boolean;
39
- opened: boolean;
40
- };
41
- lang: string;
42
- isMenuOpened: boolean;
43
- menuReponsiveMode: boolean;
44
- private _router;
45
- private mediaMatcher;
46
- private mediaMatcherLg;
47
- constructor(_element: ElementRef, router: Router, route: ActivatedRoute, translate: TranslateService, titleService: Title, zone: NgZone);
48
- ngOnInit(): void;
49
- ngOnDestroy(): void;
50
- isOver(): boolean;
51
- isClosed(): void;
52
- receiveMessage($event: any): void;
53
- toggleFullscreen(): void;
54
- private runOnRouteChange;
55
- private onLangChange;
56
- private setTitle;
57
- onToggleMenu(): void;
58
- private handleMediaMatcherLg;
59
- private handleMediaMatcher;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<AdminLayoutComponent, never>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<AdminLayoutComponent, "app-admin", never, {}, {}, never, never, true, never>;
62
- }
63
-
64
- declare class FooterComponent implements OnInit {
65
- private modalService;
66
- modalRef: NgbModalRef;
67
- private _today;
68
- constructor(modalService: NgbModal);
69
- get today(): number;
70
- set today(value: number);
71
- ngOnInit(): void;
72
- open(content: any, size?: string): void;
73
- close(): void;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "app-footer", never, {}, {}, never, never, true, never>;
76
- }
77
-
78
- declare class HeaderComponent implements OnInit, OnChanges {
79
- translateService: TranslateService;
80
- private fb;
81
- heading: string;
82
- headingUrlParamsOptions: Array<string>;
83
- parent: any;
84
- isMenuOpened: boolean;
85
- toggleSidenav: EventEmitter<void>;
86
- parentTitle: string | Array<string>;
87
- parentLink: string | Array<string>;
88
- loadMenu: boolean;
89
- extractedBy: string;
90
- loginName: string;
91
- formHeader: UntypedFormGroup;
92
- lang: string;
93
- private jwtHelper;
94
- constructor(translateService: TranslateService, fb: UntypedFormBuilder);
95
- ngOnInit(): void;
96
- changeLang(lang: string): void;
97
- ngOnChanges(simpleChanges: SimpleChanges): void;
98
- /** Renvoie un tableau de menus */
99
- getMenus(parent: Parent | Array<Parent>): any[];
100
- onClick(): void;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
102
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "app-header", never, { "heading": { "alias": "heading"; "required": false; }; "headingUrlParamsOptions": { "alias": "headingUrlParamsOptions"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "isMenuOpened": { "alias": "isMenuOpened"; "required": false; }; }, { "toggleSidenav": "toggleSidenav"; }, never, never, true, never>;
103
- }
104
-
105
- declare class MenuComponent {
106
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, {}, {}, never, never, true, never>;
108
- }
109
-
110
- declare class SidebarComponent {
111
- toggleSidenav: EventEmitter<void>;
112
- isOpened: boolean;
113
- onClick(): void;
114
- static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
115
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "app-sidebar", never, { "isOpened": { "alias": "isOpened"; "required": false; }; }, { "toggleSidenav": "toggleSidenav"; }, never, never, true, never>;
116
- }
117
-
118
- declare class SkipLinksComponent implements OnInit {
119
- constructor();
120
- ngOnInit(): void;
121
- static ɵfac: i0.ɵɵFactoryDeclaration<SkipLinksComponent, never>;
122
- static ɵcmp: i0.ɵɵComponentDeclaration<SkipLinksComponent, "app-skip-links", never, {}, {}, never, never, true, never>;
123
- }
124
-
125
- declare class TitleBreadcrumbComponent {
126
- heading: string;
127
- static ɵfac: i0.ɵɵFactoryDeclaration<TitleBreadcrumbComponent, never>;
128
- static ɵcmp: i0.ɵɵComponentDeclaration<TitleBreadcrumbComponent, "app-title-breadcrumb", never, { "heading": { "alias": "heading"; "required": false; }; }, {}, never, never, true, never>;
129
- }
130
-
131
- declare class AccordionsContentComponent {
132
- title: string;
133
- disabled: boolean;
134
- collapsed: boolean;
135
- templateRef: TemplateRef<any>;
136
- get fragment(): string;
137
- private slugify;
138
- static ɵfac: i0.ɵɵFactoryDeclaration<AccordionsContentComponent, never>;
139
- static ɵcmp: i0.ɵɵComponentDeclaration<AccordionsContentComponent, "app-accordions-content", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
140
- }
141
-
142
- declare class AccordionsComponent {
143
- title?: string;
144
- closeOthers: boolean;
145
- id: string;
146
- destroyOnHide: boolean;
147
- accordions: QueryList<AccordionsContentComponent>;
148
- constructor();
149
- static ɵfac: i0.ɵɵFactoryDeclaration<AccordionsComponent, never>;
150
- static ɵcmp: i0.ɵɵComponentDeclaration<AccordionsComponent, "app-accordions", never, { "title": { "alias": "title"; "required": false; }; "closeOthers": { "alias": "closeOthers"; "required": false; }; "id": { "alias": "id"; "required": false; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; }, {}, ["accordions"], never, true, never>;
151
- }
152
-
153
- declare enum UiTypeEnum {
154
- primary = "primary",
155
- secondary = "secondary",
156
- light = "light",
157
- info = "info",
158
- success = "success",
159
- warning = "warning",
160
- danger = "danger",
161
- link = "link",
162
- dark = "dark"
163
- }
164
-
165
- declare class AlertComponent implements OnInit {
166
- type: UiTypeEnum;
167
- title?: string;
168
- isDismissible: boolean;
169
- cssClass: string;
170
- dataTest: string;
171
- btnAction: EventEmitter<string>;
172
- isVisible: boolean;
173
- constructor();
174
- ngOnInit(): void;
175
- closeAlert(): void;
176
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
177
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "app-alert", never, { "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isDismissible": { "alias": "isDismissible"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "dataTest": { "alias": "dataTest"; "required": false; }; }, { "btnAction": "btnAction"; }, never, ["*"], true, never>;
178
- }
179
-
180
- declare class BadgeComponent implements OnInit {
181
- type: UiTypeEnum;
182
- label: string;
183
- withIcon: string;
184
- cssClass: string;
185
- dataTest: string;
186
- constructor();
187
- ngOnInit(): void;
188
- static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
189
- static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "app-badge", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "withIcon": { "alias": "withIcon"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "dataTest": { "alias": "dataTest"; "required": false; }; }, {}, never, never, true, never>;
190
- }
191
-
192
- declare class ButtonComponent implements OnInit {
193
- type: UiTypeEnum;
194
- isDropdown: boolean;
195
- withIcon: string;
196
- withOnlyIcon: boolean;
197
- isMinWidth: boolean;
198
- isDisabled: boolean;
199
- isLoading: boolean;
200
- label: string;
201
- small: boolean;
202
- dataTest: string;
203
- btnAction: EventEmitter<string>;
204
- constructor();
205
- ngOnInit(): void;
206
- onBtnAction(): void;
207
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
208
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "app-button", never, { "type": { "alias": "type"; "required": false; }; "isDropdown": { "alias": "isDropdown"; "required": false; }; "withIcon": { "alias": "withIcon"; "required": false; }; "withOnlyIcon": { "alias": "withOnlyIcon"; "required": false; }; "isMinWidth": { "alias": "isMinWidth"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "label": { "alias": "label"; "required": false; }; "small": { "alias": "small"; "required": false; }; "dataTest": { "alias": "dataTest"; "required": false; }; }, { "btnAction": "btnAction"; }, never, ["*"], true, never>;
209
- }
210
-
211
- declare class CardComponent implements OnInit, AfterViewInit {
212
- private cdRef;
213
- title: string;
214
- cardFooter: ElementRef<any>;
215
- showFooter: boolean;
216
- constructor(cdRef: ChangeDetectorRef);
217
- ngOnInit(): void;
218
- ngAfterViewInit(): void;
219
- static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
220
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "app-card", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, ["*", "[card-footer]"], true, never>;
221
- }
4
+ import { BoButtonTypeEnum, BadgeTypeEnum, SpriteIconEnum, BadgePositionEnum } from '@cityway/basic-ui';
222
5
 
223
6
  interface DataCustomList {
224
7
  label: string;
@@ -259,242 +42,28 @@ declare class DragNDropListComponent {
259
42
  static ɵcmp: i0.ɵɵComponentDeclaration<DragNDropListComponent, "app-drag-n-drop-list", never, { "availableItems": { "alias": "availableItems"; "required": false; }; "activeItems": { "alias": "activeItems"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; }, { "availableItemsChange": "availableItemsChange"; "activeItemsChange": "activeItemsChange"; }, never, never, true, never>;
260
43
  }
261
44
 
262
- declare enum FormFieldTypeEnum {
263
- text = "text",
264
- date = "date",
265
- time = "time",
266
- dateTime = "datetime-local",
267
- textarea = "textarea",
268
- select = "select",
269
- radio = "radio",
270
- radioInline = "radioInline",
271
- radioButton = "radioButton",
272
- checkbox = "checkbox",
273
- checkboxInline = "checkboxInline",
274
- checkboxButton = "checkboxButton",
275
- switch = "switch",
276
- switchSmall = "switchSmall",
277
- ngSelect = "ngSelect",
278
- ngSelectMultiple = "ngSelectMultiple",
279
- number = "number",
280
- color = "color",
281
- file = "file",
282
- password = "password",
283
- email = "email",
284
- slider = "slider",
285
- dateToDate = "dateToDate",
286
- datePlusOne = "datePlusOne",
287
- datePlusTwo = "datePlusTwo",
288
- datePlusSeven = "datePlusSeven",
289
- dateComplexe = "dateComplexe",
290
- dateTimeToDateTime = "dateTimeToDateTime",
291
- timeToTime = "timeToTime"
292
- }
293
- interface FormFieldOption {
45
+ type ColumnType = 'text' | 'badge' | 'link' | 'actions';
46
+ interface BadgeConfig {
294
47
  value: string;
295
- label: string;
296
- }
297
-
298
- declare function rangeValidator(group: AbstractControl, type: 'date' | 'time' | 'datetime'): ValidationErrors | null;
299
- declare class FormFieldComponent implements OnInit {
300
- control: AbstractControl;
301
- formGroup: FormGroup;
302
- type: FormFieldTypeEnum;
303
- label: string;
304
- displayLabel: boolean;
305
- name: string;
306
- placeholder: string;
307
- options: FormFieldOption[];
308
- isRequired: boolean;
309
- help: string;
310
- tooltip: string;
311
- addonLeft: TemplateRef<any>;
312
- addonRight: TemplateRef<any>;
313
- isInAddon: boolean;
314
- isReadonly: boolean;
315
- isDisabled: boolean;
316
- sliderValue: number;
317
- sliderOptions: Options$1;
318
- cssClass: string;
319
- inTableFilter: boolean;
320
- clearFieldFilter: EventEmitter<string>;
321
- refreshEvent: EventEmitter<void>;
322
- textChanged: EventEmitter<string>;
323
- optionTemplate?: TemplateRef<any>;
324
- labelTemplate?: TemplateRef<any>;
325
- typeField: typeof FormFieldTypeEnum;
326
- get hostClasses(): string;
327
- constructor();
328
- get isRange(): boolean;
329
- get formControl(): FormControl;
330
- get controlOrGroup(): AbstractControl<any, any, any>;
331
- ngOnInit(): void;
332
- onCheckboxChange(event: Event): void;
333
- onBlur(): void;
334
- isInInputGroup(): boolean;
335
- getControl(path: 'start' | 'end'): FormControl | null;
336
- getInputType(): string;
337
- onClearFieldFilter(): void;
338
- onClearFieldPeriod(path: 'start' | 'end'): void;
339
- onClearField(control: FormControl): void;
340
- onDateAddDay(direction: 'prev' | 'next'): void;
341
- onTodayAddDay(days: number): void;
342
- onRefresh(): void;
343
- private getDateValue;
344
- private formatDate;
345
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
346
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "app-form-field", never, { "control": { "alias": "control"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "displayLabel": { "alias": "displayLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "help": { "alias": "help"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "addonLeft": { "alias": "addonLeft"; "required": false; }; "addonRight": { "alias": "addonRight"; "required": false; }; "isInAddon": { "alias": "isInAddon"; "required": false; }; "isReadonly": { "alias": "isReadonly"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "sliderValue": { "alias": "sliderValue"; "required": false; }; "sliderOptions": { "alias": "sliderOptions"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "inTableFilter": { "alias": "inTableFilter"; "required": false; }; }, { "clearFieldFilter": "clearFieldFilter"; "refreshEvent": "refreshEvent"; "textChanged": "textChanged"; }, ["optionTemplate", "labelTemplate"], never, true, never>;
347
- }
348
-
349
- declare class IconComponent implements OnInit {
350
- icon: string;
351
- font: string;
352
- withOnlyIcon: boolean;
353
- label: string;
354
- iconCssClass?: string;
355
- iconColorCustom?: string;
356
- constructor();
357
- get hostClasses(): string;
358
- ngOnInit(): void;
359
- static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
360
- static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "app-icon", never, { "icon": { "alias": "icon"; "required": false; }; "font": { "alias": "font"; "required": false; }; "withOnlyIcon": { "alias": "withOnlyIcon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "iconCssClass": { "alias": "iconCssClass"; "required": false; }; "iconColorCustom": { "alias": "iconColorCustom"; "required": false; }; }, {}, never, never, true, never>;
361
- }
362
-
363
- declare enum LegendTypeEnum {
364
- icon = "icon",
365
- badge = "badge",
366
- color = "color"
367
- }
368
-
369
- interface DataLegend {
370
- label: string;
371
- type: LegendTypeEnum;
372
- labelBadge?: string;
373
- colorUi?: UiTypeEnum;
374
- colorCustom?: string;
375
- icon?: string;
376
- }
377
- interface Legend {
378
- title?: string;
379
- data: DataLegend[];
380
- }
381
-
382
- declare class LegendComponent {
383
- legend: Legend;
384
- legendTypeEnum: typeof LegendTypeEnum;
385
- constructor();
386
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
387
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "app-legend", never, { "legend": { "alias": "legend"; "required": false; }; }, {}, never, never, true, never>;
388
- }
389
-
390
- declare class LoaderComponent {
391
- constructor();
392
- static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
393
- static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "app-loader", never, {}, {}, never, never, true, never>;
394
- }
395
-
396
- declare enum ModalsType {
397
- delete = "delete",
398
- loader = "loader",
399
- quickSideView = "quicksideview",
400
- custom = "custom"
401
- }
402
-
403
- declare class ModalsComponent implements OnInit {
404
- activeModal: NgbActiveModal;
405
- private translateService;
406
- type: ModalsType;
407
- modalTitle: string;
408
- itemsToDelete: any[];
409
- itemsToDeleteTitle: any;
410
- labelBtnAction: string;
411
- customBodyTemplate?: TemplateRef<any>;
412
- customBodyContext?: any;
413
- btnAction: EventEmitter<string>;
414
- modalsType: typeof ModalsType;
415
- buttonTypeEnum: typeof UiTypeEnum;
416
- constructor(activeModal: NgbActiveModal, translateService: TranslateService);
417
- ngOnInit(): void;
418
- actionClick(): void;
419
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalsComponent, never>;
420
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalsComponent, "app-modals", never, { "type": { "alias": "type"; "required": false; }; "modalTitle": { "alias": "modalTitle"; "required": false; }; "itemsToDelete": { "alias": "itemsToDelete"; "required": false; }; "itemsToDeleteTitle": { "alias": "itemsToDeleteTitle"; "required": false; }; "labelBtnAction": { "alias": "labelBtnAction"; "required": false; }; "customBodyTemplate": { "alias": "customBodyTemplate"; "required": false; }; "customBodyContext": { "alias": "customBodyContext"; "required": false; }; }, { "btnAction": "btnAction"; }, never, never, true, never>;
421
- }
422
-
423
- declare class TabContentComponent {
424
- title: string;
425
- disabled: boolean;
426
- templateRef: TemplateRef<any>;
427
- get fragment(): string;
428
- private slugify;
429
- static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, never>;
430
- static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "app-tab-content", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
431
- }
432
-
433
- declare class TabComponent implements AfterContentInit {
434
- private router;
435
- private route;
436
- useFragment: boolean;
437
- title?: string;
438
- id: string;
439
- basicDisplay?: boolean;
440
- tabs: QueryList<TabContentComponent>;
441
- tabChanged: EventEmitter<number>;
442
- activeId: number;
443
- constructor(router: Router, route: ActivatedRoute);
444
- ngAfterContentInit(): void;
445
- onTabChange(newIndex: number): void;
446
- static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
447
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "app-tab", never, { "useFragment": { "alias": "useFragment"; "required": false; }; "title": { "alias": "title"; "required": false; }; "id": { "alias": "id"; "required": false; }; "basicDisplay": { "alias": "basicDisplay"; "required": false; }; }, { "tabChanged": "tabChanged"; }, ["tabs"], never, true, never>;
448
- }
449
-
450
- declare class TableComponent {
451
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
452
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "app-table", never, {}, {}, never, never, true, never>;
453
- }
454
-
455
- declare class WizardStepComponent {
456
- title: string;
457
- completed: boolean;
458
- templateRef: TemplateRef<any>;
459
- static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepComponent, never>;
460
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepComponent, "app-wizard-step", never, { "title": { "alias": "title"; "required": false; }; "completed": { "alias": "completed"; "required": false; }; }, {}, never, ["*"], true, never>;
461
- }
462
-
463
- declare class WizardStepperComponent {
464
- steps: QueryList<WizardStepComponent>;
465
- stepChange: EventEmitter<number>;
466
- stepNext: EventEmitter<number>;
467
- stepPrevious: EventEmitter<number>;
468
- stepEnd: EventEmitter<number>;
469
- selectedIndex: number;
470
- get stepList(): WizardStepComponent[];
471
- goToStep(index: number): void;
472
- nextStep(): void;
473
- previousStep(): void;
474
- endWizard(): void;
475
- static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepperComponent, never>;
476
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepperComponent, "app-wizard-stepper", never, {}, { "stepChange": "stepChange"; "stepNext": "stepNext"; "stepPrevious": "stepPrevious"; "stepEnd": "stepEnd"; }, ["steps"], never, true, never>;
48
+ label?: string;
49
+ type: BadgeTypeEnum;
50
+ withIcon?: SpriteIconEnum;
51
+ iconPosition?: BadgePositionEnum;
477
52
  }
478
-
479
- declare class ModalsService {
480
- private modalService;
481
- constructor(modalService: NgbModal);
482
- openModal(type: ModalsType, config?: Partial<ModalsComponent>, sizeOverride?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl'): NgbModalRef;
483
- private getModalSizeByType;
484
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalsService, never>;
485
- static ɵprov: i0.ɵɵInjectableDeclaration<ModalsService>;
53
+ type SortDirection = 'asc' | 'desc';
54
+ interface SortEvent {
55
+ key: string;
56
+ direction: SortDirection;
486
57
  }
487
-
488
58
  interface TableColumn {
489
59
  key: string;
490
60
  label: string;
61
+ type?: ColumnType;
62
+ align?: 'left' | 'right' | 'center';
63
+ badges?: BadgeConfig[];
491
64
  sort?: boolean;
492
- filter?: TableFilter;
493
- }
494
- interface TableFilter {
495
- type: FormFieldTypeEnum;
496
- options?: FormFieldOption[];
497
- defaultFilter?: boolean;
65
+ defaultSort?: SortDirection;
66
+ hidden?: boolean;
498
67
  }
499
68
  declare enum ActionOnTableType {
500
69
  add = "add",
@@ -505,9 +74,38 @@ declare enum ActionOnTableType {
505
74
  }
506
75
  interface ActionOnTable {
507
76
  action: ActionOnTableType;
508
- type?: UiTypeEnum;
77
+ type?: BoButtonTypeEnum;
509
78
  label?: string;
510
79
  }
511
80
 
512
- export { AccordionsComponent, AccordionsContentComponent, ActionOnTableType, AdminLayoutComponent, AlertComponent, BadgeComponent, ButtonComponent, CardComponent, CustomListComponent, DragNDropListComponent, FooterComponent, FormFieldComponent, FormFieldTypeEnum, HeaderComponent, IconComponent, LegendComponent, LegendTypeEnum, LoaderComponent, MenuComponent, ModalsComponent, ModalsService, ModalsType, SidebarComponent, SkipLinksComponent, TabComponent, TabContentComponent, TableComponent, TitleBreadcrumbComponent, UiTypeEnum, WizardStepComponent, WizardStepperComponent, rangeValidator };
513
- export type { ActionOnTable, DataCustomList, DataCustomListGroup, DataLegend, DragItem, FormFieldOption, Legend, Options, Parent, TableColumn, TableFilter };
81
+ declare class TableComponent {
82
+ checkbox: boolean;
83
+ title: string;
84
+ columns: TableColumn[];
85
+ data: any[];
86
+ loading: boolean;
87
+ rowClick: EventEmitter<any>;
88
+ sortChange: EventEmitter<SortEvent>;
89
+ selectionChange: EventEmitter<any[]>;
90
+ actionsTemplate?: TemplateRef<{
91
+ $implicit: any;
92
+ }>;
93
+ currentSortKey: string | null;
94
+ currentSortDirection: SortDirection;
95
+ selectedRows: Set<any>;
96
+ ngOnInit(): void;
97
+ get allSelected(): boolean;
98
+ get someSelected(): boolean;
99
+ setSortProperty(key: string): void;
100
+ getSortClass(key: string): string;
101
+ getBadge(column: TableColumn, value: string): BadgeConfig;
102
+ onCellClick(row: any): void;
103
+ toggleAll(): void;
104
+ toggleRow(row: any): void;
105
+ isSelected(row: any): boolean;
106
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "cw-table", never, { "checkbox": { "alias": "checkbox"; "required": false; }; "title": { "alias": "title"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "rowClick": "rowClick"; "sortChange": "sortChange"; "selectionChange": "selectionChange"; }, ["actionsTemplate"], never, true, never>;
108
+ }
109
+
110
+ export { ActionOnTableType, CustomListComponent, DragNDropListComponent, TableComponent };
111
+ export type { ActionOnTable, BadgeConfig, ColumnType, DataCustomList, DataCustomListGroup, DragItem, SortDirection, SortEvent, TableColumn };
package/package.json CHANGED
@@ -1,22 +1,16 @@
1
1
  {
2
2
  "name": "@cityway/bo-ui",
3
- "version": "1.0.9",
3
+ "version": "1.0.10-beta002",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",
7
7
  "@angular/forms": "^20.3.0",
8
8
  "@angular/animations": "^20.3.0",
9
9
  "@angular/cdk": "^20.2.2",
10
- "@angular/platform-browser": "^20.3.0"
10
+ "@angular/platform-browser": "^20.3.0",
11
+ "@cityway/basic-ui": "^1.0.2-beta010"
11
12
  },
12
13
  "dependencies": {
13
- "@ng-bootstrap/ng-bootstrap": "19.0.1",
14
- "@ng-select/ng-select": "20.0.1",
15
- "bootstrap": "5.3.0",
16
- "@angular-slider/ngx-slider": "20.0.0",
17
- "ngx-toastr": "19.1.0",
18
- "@ngx-loading-bar/core": "^7.0.0",
19
- "@ngx-loading-bar/router": "^7.0.0",
20
14
  "tslib": "^2.8.0"
21
15
  },
22
16
  "sideEffects": false,
Binary file
@@ -1,43 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- //
4
- // Variables font BO
5
- // --------------------------------------------------
6
-
7
- $bo-family-icons: "font-bo";
8
-
9
- $bo-alert-success: "\f071";
10
- $bo-analysis: "\f083";
11
- $bo-change-app: "\f078";
12
- $bo-change-password: "\f084";
13
- $bo-city: "\f076";
14
- $bo-dashboard: "\f073";
15
- $bo-data: "\f074";
16
- $bo-down: "\f097";
17
- $bo-duplicate: "\f091";
18
- $bo-export: "\f089";
19
- $bo-file-drop: "\f101";
20
- $bo-folder: "\f072";
21
- $bo-help: "\f093";
22
- $bo-import: "\f088";
23
- $bo-login: "\f094";
24
- $bo-manual: "\f098";
25
- $bo-menu-collapsed: "\f099";
26
- $bo-menu-expanded: "\f100";
27
- $bo-minus: "\f095";
28
- $bo-misc-hour: "\f075";
29
- $bo-nearby: "\f081";
30
- $bo-poi-stop-invalid: "\f087";
31
- $bo-poi-stop-other: "\f085";
32
- $bo-poi-stop-valid: "\f086";
33
- $bo-real-time-data-flow: "\f092";
34
- $bo-route-plus: "\f079";
35
- $bo-route: "\f077";
36
- $bo-save: "\f082";
37
- $bo-sort: "\f102";
38
- $bo-sort-asc: "\f103";
39
- $bo-sort-desc: "\f104";
40
- $bo-thumbs-up: "\f090";
41
- $bo-up: "\f096";
42
- $bo-users: "\f080";
43
- $bo-waiting-people: "\f070";
@@ -1,61 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- @import "variables";
4
-
5
- @font-face {
6
- font-family: "font-bo";
7
- src:url("./lib/assets/fonts/bo/bo.woff") format("woff"), url("./lib/assets/fonts/bo/bo.woff2") format("woff2"); // chemins en absolus
8
- font-weight: normal;
9
- font-style: normal;
10
- }
11
-
12
- .bo-icons {
13
- font-size: $cw-font-size;
14
- font-family: $bo-family-icons;
15
- font-style: normal;
16
- font-weight: 400;
17
- line-height: 1;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing:grayscale;
20
- &:before { position: relative; }
21
- }
22
-
23
- //
24
- // Styles font OPTYWEB
25
- // --------------------------------------------------
26
-
27
- .bo-alert-success:before { content: $bo-alert-success; }
28
- .bo-analysis:before { content: $bo-analysis; }
29
- .bo-change-app:before { content: $bo-change-app; }
30
- .bo-change-password:before { content: $bo-change-password; }
31
- .bo-city:before { content: $bo-city; }
32
- .bo-dashboard:before { content: $bo-dashboard; }
33
- .bo-data:before { content: $bo-data; }
34
- .bo-down::before { content: $bo-down; }
35
- .bo-duplicate:before { content: $bo-duplicate; }
36
- .bo-export:before { content: $bo-export; }
37
- .bo-file-drop:before { content: $bo-file-drop; }
38
- .bo-folder:before { content: $bo-folder; }
39
- .bo-help::before { content: $bo-help; }
40
- .bo-import:before { content: $bo-import; }
41
- .bo-login::before { content: $bo-login; }
42
- .bo-manual::before { content: $bo-manual; }
43
- .bo-menu-collapsed::before { content: $bo-menu-collapsed; }
44
- .bo-menu-expanded::before { content: $bo-menu-expanded; }
45
- .bo-minus::before { content: $bo-minus; }
46
- .bo-misc-hour:before { content: $bo-misc-hour; }
47
- .bo-nearby:before { content: $bo-nearby; }
48
- .bo-poi-stop-invalid:before { content: $bo-poi-stop-invalid; }
49
- .bo-poi-stop-other:before { content: $bo-poi-stop-other; }
50
- .bo-poi-stop-valid:before { content: $bo-poi-stop-valid; }
51
- .bo-real-time-data-flow::before { content: $bo-real-time-data-flow; }
52
- .bo-route-plus:before { content: $bo-route-plus; }
53
- .bo-route:before { content: $bo-route; }
54
- .bo-save:before { content: $bo-save; }
55
- .bo-sort::before { content: $bo-sort; }
56
- .bo-sort-asc::before { content: $bo-sort-asc; }
57
- .bo-sort-desc::before { content: $bo-sort-desc; }
58
- .bo-thumbs-up:before { content: $bo-thumbs-up; }
59
- .bo-up::before { content: $bo-up; }
60
- .bo-users:before { content: $bo-users; }
61
- .bo-waiting-people:before {content: $bo-waiting-people; }
Binary file
Binary file