@cityway/basic-ui 1.0.2-beta031 → 1.1.0-beta001
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/cityway-basic-ui-1.1.0-beta001.tgz +0 -0
- package/docs/00-overview.md +137 -0
- package/docs/components/accordion.md +162 -0
- package/docs/components/alert.md +141 -0
- package/docs/components/autocomplete.md +233 -0
- package/docs/components/badge.md +145 -0
- package/docs/components/breadcrumb.md +133 -0
- package/docs/components/button.md +174 -0
- package/docs/components/card.md +175 -0
- package/docs/components/dropdown.md +140 -0
- package/docs/components/file-to-download.md +115 -0
- package/docs/components/form-field/README.md +218 -0
- package/docs/components/form-field/checkbox.md +76 -0
- package/docs/components/form-field/color.md +36 -0
- package/docs/components/form-field/date.md +87 -0
- package/docs/components/form-field/email.md +39 -0
- package/docs/components/form-field/file.md +51 -0
- package/docs/components/form-field/number.md +46 -0
- package/docs/components/form-field/password.md +41 -0
- package/docs/components/form-field/phone.md +55 -0
- package/docs/components/form-field/radio.md +55 -0
- package/docs/components/form-field/select.md +72 -0
- package/docs/components/form-field/slider-range.md +81 -0
- package/docs/components/form-field/text.md +43 -0
- package/docs/components/form-field/textarea.md +38 -0
- package/docs/components/form-field/zipcode.md +39 -0
- package/docs/components/icon-notification.md +108 -0
- package/docs/components/icon.md +187 -0
- package/docs/components/image.md +118 -0
- package/docs/components/language-selector.md +142 -0
- package/docs/components/legend.md +160 -0
- package/docs/components/loader.md +115 -0
- package/docs/components/modals.md +217 -0
- package/docs/components/numerical-range.md +174 -0
- package/docs/components/required-info.md +102 -0
- package/docs/components/skiplinks.md +122 -0
- package/docs/components/stepper.md +106 -0
- package/docs/components/tab.md +159 -0
- package/docs/components/theme-selector.md +159 -0
- package/docs/components/title.md +139 -0
- package/docs/components/toast.md +172 -0
- package/docs/components/tooltip.md +150 -0
- package/docs/for-claude.md +196 -0
- package/fesm2022/cityway-basic-ui.mjs +328 -151
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +173 -59
- package/lib/assets/i18n/common.en.json +10 -2
- package/lib/assets/i18n/common.fr.json +10 -2
- package/package.json +2 -2
- package/styles/basic-ui.styles.bo.min.css +1 -1
- package/styles/basic-ui.styles.bo.min.css.map +1 -1
- package/styles/basic-ui.styles.fo.min.css +1 -1
- package/styles/basic-ui.styles.fo.min.css.map +1 -1
- package/cityway-basic-ui-1.0.2-beta029.tgz +0 -0
- package/cityway-basic-ui-1.0.2-beta030.tgz +0 -0
- package/cityway-basic-ui-1.0.2-beta031.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -34,21 +34,18 @@ declare enum CardTitleRankEnum {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
declare enum IconSizeEnum {
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'sm' = "sm",
|
|
45
|
-
'xs' = "xs",
|
|
46
|
-
'2xs' = "2xs",
|
|
47
|
-
'3xs' = "3xs"
|
|
37
|
+
'2xs' = "2xs",// 10px
|
|
38
|
+
'xs' = "xs",// 12px
|
|
39
|
+
'sm' = "sm",// 16px
|
|
40
|
+
'md' = "md",// 20px
|
|
41
|
+
'lg' = "lg",// 24px
|
|
42
|
+
'xl' = "xl",// 32px
|
|
43
|
+
'2xl' = "2xl"
|
|
48
44
|
}
|
|
49
45
|
declare enum IconTypeEnum {
|
|
50
46
|
default = "default",
|
|
51
|
-
|
|
47
|
+
circular = "circular",
|
|
48
|
+
square = "square"
|
|
52
49
|
}
|
|
53
50
|
declare enum IconUiTypeEnum {
|
|
54
51
|
default = "default",
|
|
@@ -589,6 +586,8 @@ declare class CardComponent implements OnInit, AfterViewInit {
|
|
|
589
586
|
readonly cssClass: _angular_core.InputSignal<string>;
|
|
590
587
|
readonly collapsible: _angular_core.ModelSignal<boolean>;
|
|
591
588
|
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
589
|
+
/** Panneau collapsible desactive : non depliable/repliable, grise. Sans effet si non collapsible. */
|
|
590
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
592
591
|
/**
|
|
593
592
|
* Applique `stretched-link` sur le bouton de collapse (clic sur tout l'en-tête).
|
|
594
593
|
* À passer à `false` quand l'en-tête contient des éléments interactifs (poignée de
|
|
@@ -616,7 +615,7 @@ declare class CardComponent implements OnInit, AfterViewInit {
|
|
|
616
615
|
private updateCollapseState;
|
|
617
616
|
get collapsed_state(): boolean;
|
|
618
617
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
619
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "cw-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "titleRank": { "alias": "titleRank"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "collapseStretched": { "alias": "collapseStretched"; "required": false; "isSignal": true; }; "collapseId": { "alias": "collapseId"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; }, { "collapsible": "collapsibleChange"; "destroyOnHide": "destroyOnHideChange"; "collapseClicked": "collapseClicked"; }, never, ["[header-start]", "[header-custom-area]", "*", "[card-footer]"], true, never>;
|
|
618
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "cw-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "titleRank": { "alias": "titleRank"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "collapseStretched": { "alias": "collapseStretched"; "required": false; "isSignal": true; }; "collapseId": { "alias": "collapseId"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; }, { "collapsible": "collapsibleChange"; "destroyOnHide": "destroyOnHideChange"; "collapseClicked": "collapseClicked"; }, never, ["[header-start]", "[header-custom-area]", "*", "[card-footer]"], true, never>;
|
|
620
619
|
}
|
|
621
620
|
|
|
622
621
|
declare class AccordionComponent implements AfterContentInit {
|
|
@@ -641,7 +640,6 @@ declare class AccordionComponent implements AfterContentInit {
|
|
|
641
640
|
}
|
|
642
641
|
|
|
643
642
|
declare enum AlertTypeEnum {
|
|
644
|
-
primary = "primary",
|
|
645
643
|
info = "info",
|
|
646
644
|
success = "success",
|
|
647
645
|
warning = "warning",
|
|
@@ -770,7 +768,6 @@ declare class ToastItemComponent implements OnInit, OnDestroy {
|
|
|
770
768
|
}
|
|
771
769
|
|
|
772
770
|
declare enum BadgeTypeEnum {
|
|
773
|
-
lightPrimary = "light-primary",
|
|
774
771
|
lightInfo = "light-info",
|
|
775
772
|
lightSuccess = "light-success",
|
|
776
773
|
lightWarning = "light-warning",
|
|
@@ -815,9 +812,7 @@ declare enum BoButtonTypeEnum {
|
|
|
815
812
|
primary = "primary",
|
|
816
813
|
secondary = "secondary",
|
|
817
814
|
link = "link",
|
|
818
|
-
|
|
819
|
-
warning = "warning",
|
|
820
|
-
success = "success",
|
|
815
|
+
linkLike = "link-like",
|
|
821
816
|
danger = "danger",
|
|
822
817
|
dangerOutline = "danger-outline",
|
|
823
818
|
light = "light",
|
|
@@ -1591,13 +1586,13 @@ declare class IconComponent {
|
|
|
1591
1586
|
|
|
1592
1587
|
declare class IconNotificationComponent implements OnInit {
|
|
1593
1588
|
readonly type: _angular_core.InputSignal<IconNotifTypeEnum>;
|
|
1594
|
-
readonly iconSize: _angular_core.InputSignal<IconNotifSizeEnum>;
|
|
1595
1589
|
icon: SpriteIconEnum;
|
|
1596
1590
|
label: string;
|
|
1591
|
+
iconSizeEnum: typeof IconSizeEnum;
|
|
1597
1592
|
get hostClasses(): string;
|
|
1598
1593
|
ngOnInit(): void;
|
|
1599
1594
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconNotificationComponent, never>;
|
|
1600
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconNotificationComponent, "cw-icon-notification", never, { "type": { "alias": "type"; "required": false; "isSignal": true; };
|
|
1595
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconNotificationComponent, "cw-icon-notification", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1601
1596
|
}
|
|
1602
1597
|
|
|
1603
1598
|
declare enum LegendTypeEnum {
|
|
@@ -1641,22 +1636,34 @@ declare class LegendComponent {
|
|
|
1641
1636
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendComponent, "cw-legend", never, { "legend": { "alias": "legend"; "required": true; "isSignal": true; }; "displayInline": { "alias": "displayInline"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1642
1637
|
}
|
|
1643
1638
|
|
|
1639
|
+
declare enum LoaderSizeEnum {
|
|
1640
|
+
md = "md",
|
|
1641
|
+
sm = "sm"
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
1644
|
declare class LoaderComponent {
|
|
1645
|
-
|
|
1645
|
+
readonly size: _angular_core.InputSignal<LoaderSizeEnum>;
|
|
1646
|
+
readonly displayText: _angular_core.InputSignal<boolean>;
|
|
1646
1647
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoaderComponent, never>;
|
|
1647
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoaderComponent, "cw-loader", never, {}, {}, never, never, true, never>;
|
|
1648
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoaderComponent, "cw-loader", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "displayText": { "alias": "displayText"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1648
1649
|
}
|
|
1649
1650
|
|
|
1650
1651
|
declare enum ModalsType {
|
|
1652
|
+
default = "default",
|
|
1653
|
+
state = "state",
|
|
1651
1654
|
delete = "delete",
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1655
|
+
sidepanel = "sidepanel",
|
|
1656
|
+
loader = "loader"
|
|
1657
|
+
}
|
|
1658
|
+
declare enum ModalsState {
|
|
1656
1659
|
info = "info",
|
|
1660
|
+
success = "success",
|
|
1657
1661
|
warning = "warning",
|
|
1658
|
-
danger = "danger"
|
|
1659
|
-
|
|
1662
|
+
danger = "danger"
|
|
1663
|
+
}
|
|
1664
|
+
declare enum ModalsTextType {
|
|
1665
|
+
short = "short",
|
|
1666
|
+
long = "long"
|
|
1660
1667
|
}
|
|
1661
1668
|
declare enum ModalsSize {
|
|
1662
1669
|
sm = "sm",
|
|
@@ -1674,6 +1681,8 @@ declare class ModalsComponent implements OnInit, AfterViewInit {
|
|
|
1674
1681
|
readonly scrollable: _angular_core.InputSignal<boolean>;
|
|
1675
1682
|
readonly isAutcompModal: _angular_core.InputSignal<boolean>;
|
|
1676
1683
|
readonly type: _angular_core.InputSignal<ModalsType>;
|
|
1684
|
+
readonly state: _angular_core.InputSignal<ModalsState>;
|
|
1685
|
+
readonly textType: _angular_core.InputSignal<ModalsTextType>;
|
|
1677
1686
|
readonly modalTitle: _angular_core.InputSignal<string>;
|
|
1678
1687
|
readonly itemsToDelete: _angular_core.InputSignal<any[]>;
|
|
1679
1688
|
readonly itemsToDeleteTitle: _angular_core.InputSignal<string>;
|
|
@@ -1686,13 +1695,12 @@ declare class ModalsComponent implements OnInit, AfterViewInit {
|
|
|
1686
1695
|
readonly btnAction1: _angular_core.OutputEmitterRef<string>;
|
|
1687
1696
|
readonly btnAction2: _angular_core.OutputEmitterRef<string>;
|
|
1688
1697
|
readonly modalsType: typeof ModalsType;
|
|
1698
|
+
readonly modalsState: typeof ModalsState;
|
|
1689
1699
|
readonly buttonTypeEnum: {
|
|
1690
1700
|
primary: BoButtonTypeEnum.primary;
|
|
1691
1701
|
secondary: BoButtonTypeEnum.secondary;
|
|
1692
1702
|
link: BoButtonTypeEnum.link;
|
|
1693
|
-
|
|
1694
|
-
warning: BoButtonTypeEnum.warning;
|
|
1695
|
-
success: BoButtonTypeEnum.success;
|
|
1703
|
+
linkLike: BoButtonTypeEnum.linkLike;
|
|
1696
1704
|
danger: BoButtonTypeEnum.danger;
|
|
1697
1705
|
dangerOutline: BoButtonTypeEnum.dangerOutline;
|
|
1698
1706
|
light: BoButtonTypeEnum.light;
|
|
@@ -1702,6 +1710,11 @@ declare class ModalsComponent implements OnInit, AfterViewInit {
|
|
|
1702
1710
|
readonly iconType: typeof IconTypeEnum;
|
|
1703
1711
|
readonly iconSize: typeof IconSizeEnum;
|
|
1704
1712
|
readonly iconUiType: typeof IconUiTypeEnum;
|
|
1713
|
+
private static readonly STATE_ICON;
|
|
1714
|
+
readonly isStateLike: _angular_core.Signal<boolean>;
|
|
1715
|
+
readonly statusIcon: _angular_core.Signal<SpriteIconEnum>;
|
|
1716
|
+
readonly statusUiType: _angular_core.Signal<IconUiTypeEnum>;
|
|
1717
|
+
readonly isBodyCentered: _angular_core.Signal<boolean>;
|
|
1705
1718
|
ngOnInit(): void;
|
|
1706
1719
|
ngAfterViewInit(): void;
|
|
1707
1720
|
onKeyDown(e: KeyboardEvent): void;
|
|
@@ -1710,7 +1723,7 @@ declare class ModalsComponent implements OnInit, AfterViewInit {
|
|
|
1710
1723
|
closeModal(): void;
|
|
1711
1724
|
private trapFocus;
|
|
1712
1725
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalsComponent, never>;
|
|
1713
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalsComponent, "cw-modals", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "isAutcompModal": { "alias": "isAutcompModal"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "modalTitle": { "alias": "modalTitle"; "required": false; "isSignal": true; }; "itemsToDelete": { "alias": "itemsToDelete"; "required": false; "isSignal": true; }; "itemsToDeleteTitle": { "alias": "itemsToDeleteTitle"; "required": false; "isSignal": true; }; "labelBtnAction1": { "alias": "labelBtnAction1"; "required": false; "isSignal": true; }; "labelBtnAction2": { "alias": "labelBtnAction2"; "required": false; "isSignal": true; }; "disableBtnAction1": { "alias": "disableBtnAction1"; "required": false; "isSignal": true; }; "disableBtnAction2": { "alias": "disableBtnAction2"; "required": false; "isSignal": true; }; "customBodyTemplate": { "alias": "customBodyTemplate"; "required": false; "isSignal": true; }; "customBodyContext": { "alias": "customBodyContext"; "required": false; "isSignal": true; }; }, { "btnAction1": "btnAction1"; "btnAction2": "btnAction2"; }, never, never, true, never>;
|
|
1726
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalsComponent, "cw-modals", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "isAutcompModal": { "alias": "isAutcompModal"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "textType": { "alias": "textType"; "required": false; "isSignal": true; }; "modalTitle": { "alias": "modalTitle"; "required": false; "isSignal": true; }; "itemsToDelete": { "alias": "itemsToDelete"; "required": false; "isSignal": true; }; "itemsToDeleteTitle": { "alias": "itemsToDeleteTitle"; "required": false; "isSignal": true; }; "labelBtnAction1": { "alias": "labelBtnAction1"; "required": false; "isSignal": true; }; "labelBtnAction2": { "alias": "labelBtnAction2"; "required": false; "isSignal": true; }; "disableBtnAction1": { "alias": "disableBtnAction1"; "required": false; "isSignal": true; }; "disableBtnAction2": { "alias": "disableBtnAction2"; "required": false; "isSignal": true; }; "customBodyTemplate": { "alias": "customBodyTemplate"; "required": false; "isSignal": true; }; "customBodyContext": { "alias": "customBodyContext"; "required": false; "isSignal": true; }; }, { "btnAction1": "btnAction1"; "btnAction2": "btnAction2"; }, never, never, true, never>;
|
|
1714
1727
|
}
|
|
1715
1728
|
|
|
1716
1729
|
declare class TabContentComponent {
|
|
@@ -1729,7 +1742,7 @@ declare enum FoTabTypeEnum {
|
|
|
1729
1742
|
defaultXl = "default-xl"
|
|
1730
1743
|
}
|
|
1731
1744
|
declare enum BoTabTypeEnum {
|
|
1732
|
-
|
|
1745
|
+
default = "default",
|
|
1733
1746
|
card = "card"
|
|
1734
1747
|
}
|
|
1735
1748
|
|
|
@@ -1759,30 +1772,6 @@ declare class TabComponent implements AfterContentInit {
|
|
|
1759
1772
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabComponent, "cw-tab", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "useFragment": { "alias": "useFragment"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "tabContentCssClass": { "alias": "tabContentCssClass"; "required": false; "isSignal": true; }; "activeTabIndex": { "alias": "activeTabIndex"; "required": false; "isSignal": true; }; }, { "tabChanged": "tabChanged"; }, ["tabs"], ["*"], true, never>;
|
|
1760
1773
|
}
|
|
1761
1774
|
|
|
1762
|
-
declare class WizardStepComponent {
|
|
1763
|
-
readonly title: _angular_core.InputSignal<string>;
|
|
1764
|
-
readonly completed: _angular_core.InputSignal<boolean>;
|
|
1765
|
-
readonly templateRef: _angular_core.Signal<TemplateRef<unknown>>;
|
|
1766
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WizardStepComponent, never>;
|
|
1767
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WizardStepComponent, "cw-wizard-step", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
declare class WizardStepperComponent {
|
|
1771
|
-
readonly steps: _angular_core.Signal<readonly WizardStepComponent[]>;
|
|
1772
|
-
readonly stepChange: _angular_core.OutputEmitterRef<number>;
|
|
1773
|
-
readonly stepNext: _angular_core.OutputEmitterRef<number>;
|
|
1774
|
-
readonly stepPrevious: _angular_core.OutputEmitterRef<number>;
|
|
1775
|
-
readonly stepEnd: _angular_core.OutputEmitterRef<number>;
|
|
1776
|
-
selectedIndex: number;
|
|
1777
|
-
get stepList(): readonly WizardStepComponent[];
|
|
1778
|
-
goToStep(index: number): void;
|
|
1779
|
-
nextStep(): void;
|
|
1780
|
-
previousStep(): void;
|
|
1781
|
-
endWizard(): void;
|
|
1782
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WizardStepperComponent, never>;
|
|
1783
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WizardStepperComponent, "cw-wizard-stepper", never, {}, { "stepChange": "stepChange"; "stepNext": "stepNext"; "stepPrevious": "stepPrevious"; "stepEnd": "stepEnd"; }, ["steps"], never, true, never>;
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
1775
|
declare class StepperComponent {
|
|
1787
1776
|
readonly activeStep: _angular_core.InputSignal<number>;
|
|
1788
1777
|
readonly steps: _angular_core.InputSignal<string[]>;
|
|
@@ -1910,6 +1899,9 @@ interface CwBreadcrumbItem {
|
|
|
1910
1899
|
declare class BreadcrumbComponent {
|
|
1911
1900
|
readonly items: _angular_core.InputSignal<CwBreadcrumbItem[]>;
|
|
1912
1901
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
1902
|
+
readonly separatorIcon = SpriteIconEnum.navRight;
|
|
1903
|
+
readonly iconSizeEnum: typeof IconSizeEnum;
|
|
1904
|
+
readonly iconType: typeof IconTypeEnum;
|
|
1913
1905
|
isClickable(item: CwBreadcrumbItem): boolean;
|
|
1914
1906
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
1915
1907
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "cw-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1953,6 +1945,57 @@ declare class LanguageSelectorComponent {
|
|
|
1953
1945
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageSelectorComponent, "cw-language-selector", never, { "languages": { "alias": "languages"; "required": false; "isSignal": true; }; "currentLang": { "alias": "currentLang"; "required": true; "isSignal": true; }; "showReloadHint": { "alias": "showReloadHint"; "required": false; "isSignal": true; }; }, { "languageChange": "languageChange"; }, never, never, true, never>;
|
|
1954
1946
|
}
|
|
1955
1947
|
|
|
1948
|
+
/**
|
|
1949
|
+
* Décrit un thème proposé dans le `cw-theme-selector`.
|
|
1950
|
+
*
|
|
1951
|
+
* Ajouter un thème = ajouter une entrée dans le tableau `themes` du composant.
|
|
1952
|
+
*/
|
|
1953
|
+
interface CwThemeOption {
|
|
1954
|
+
/** Clé logique du thème (ex. 'light' | 'dark' | 'auto'), émise par `themeChange`. */
|
|
1955
|
+
key: string;
|
|
1956
|
+
/** Picto sprite affiché dans la liste et repris dans le trigger quand le thème est actif. */
|
|
1957
|
+
icon: SpriteIconEnum;
|
|
1958
|
+
/** Clé i18n du libellé, ex. '_COMMON._THEME.LBL_LIGHT'. */
|
|
1959
|
+
labelKey: string;
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Jeu de thèmes par défaut : Clair / Sombre / Auto.
|
|
1963
|
+
* Sert de point de départ aux consommateurs (et aux stories).
|
|
1964
|
+
*/
|
|
1965
|
+
declare const CW_DEFAULT_THEME_OPTIONS: CwThemeOption[];
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* Sélecteur de thème présentationnel.
|
|
1969
|
+
*
|
|
1970
|
+
* Affiche un trigger `cw-button [isDropdown]` icône-seule (le picto du thème actif + caret)
|
|
1971
|
+
* qui ouvre un panneau listant les thèmes (picto + libellé), avec une coche sur l'actif.
|
|
1972
|
+
*
|
|
1973
|
+
* Le composant N'A AUCUN effet de bord : il ne touche pas au `localStorage`, ne pose pas
|
|
1974
|
+
* `data-cw-theme` et ne recharge pas la page. Il se contente d'émettre `themeChange` (la KEY).
|
|
1975
|
+
* C'est le consommateur (typiquement via `ThemeService.setTheme()`) qui gère l'effet de bord.
|
|
1976
|
+
*
|
|
1977
|
+
* Extensible : la liste `themes` est ouverte — ajouter un thème = ajouter une entrée.
|
|
1978
|
+
*/
|
|
1979
|
+
declare class ThemeSelectorComponent {
|
|
1980
|
+
/** Thèmes à proposer (ex. Clair / Sombre / Auto). Ajouter un thème = ajouter une entrée. */
|
|
1981
|
+
readonly themes: _angular_core.InputSignal<CwThemeOption[]>;
|
|
1982
|
+
/** Clé du thème actif (ex. 'auto'). Pilote le picto du trigger + la coche. */
|
|
1983
|
+
readonly currentTheme: _angular_core.InputSignal<string>;
|
|
1984
|
+
/** Affiche/masque la ligne d'avertissement « recharge la page ». Défaut: true. */
|
|
1985
|
+
readonly showReloadHint: _angular_core.InputSignal<boolean>;
|
|
1986
|
+
/** Émis au clic sur un thème différent de l'actif. Émet la KEY (ex. 'dark'). */
|
|
1987
|
+
readonly themeChange: _angular_core.OutputEmitterRef<string>;
|
|
1988
|
+
protected readonly trigger: _angular_core.Signal<ButtonComponent>;
|
|
1989
|
+
protected readonly spriteIcon: typeof SpriteIconEnum;
|
|
1990
|
+
protected readonly iconSizeEnum: typeof IconSizeEnum;
|
|
1991
|
+
protected readonly btnType: typeof FoButtonTypeEnum;
|
|
1992
|
+
/** Option active : alimente le picto du trigger et son libellé accessible (visually-hidden). */
|
|
1993
|
+
protected readonly activeOption: _angular_core.Signal<CwThemeOption>;
|
|
1994
|
+
protected onSelect(key: string): void;
|
|
1995
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeSelectorComponent, never>;
|
|
1996
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeSelectorComponent, "cw-theme-selector", never, { "themes": { "alias": "themes"; "required": false; "isSignal": true; }; "currentTheme": { "alias": "currentTheme"; "required": true; "isSignal": true; }; "showReloadHint": { "alias": "showReloadHint"; "required": false; "isSignal": true; }; }, { "themeChange": "themeChange"; }, never, never, true, never>;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1956
1999
|
declare class ClickOutsideDirective {
|
|
1957
2000
|
private elementRef;
|
|
1958
2001
|
clickOutside: EventEmitter<void>;
|
|
@@ -2012,6 +2055,18 @@ declare enum PlacementEnum {
|
|
|
2012
2055
|
Right = "right"
|
|
2013
2056
|
}
|
|
2014
2057
|
|
|
2058
|
+
/**
|
|
2059
|
+
* Clés logiques des thèmes gérés par défaut.
|
|
2060
|
+
*
|
|
2061
|
+
* Extensible : `ThemeService` accepte n'importe quelle clé. Une clé inconnue `x`
|
|
2062
|
+
* est résolue en `data-cw-theme="<product>-x"` (ex. un futur thème contrasté).
|
|
2063
|
+
*/
|
|
2064
|
+
declare enum CwThemeKeyEnum {
|
|
2065
|
+
light = "light",
|
|
2066
|
+
dark = "dark",
|
|
2067
|
+
auto = "auto"
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2015
2070
|
interface ModalRef {
|
|
2016
2071
|
componentInstance: ModalsComponent;
|
|
2017
2072
|
result: Promise<any>;
|
|
@@ -2024,6 +2079,10 @@ interface ModalRef {
|
|
|
2024
2079
|
setActionDisabled: (action: 1 | 2, disabled: boolean) => void;
|
|
2025
2080
|
}
|
|
2026
2081
|
interface ModalConfig {
|
|
2082
|
+
/** Statut visuel pour une modale de type `state` (icone + habillage). Ignore pour les autres types. */
|
|
2083
|
+
state?: ModalsState;
|
|
2084
|
+
/** Alignement du texte du body (state/delete) : short = centre, long = a gauche. */
|
|
2085
|
+
textType?: ModalsTextType;
|
|
2027
2086
|
modalTitle?: string;
|
|
2028
2087
|
itemsToDelete?: any[];
|
|
2029
2088
|
itemsToDeleteTitle?: string;
|
|
@@ -2068,6 +2127,61 @@ declare class FocusTrackerService implements OnDestroy {
|
|
|
2068
2127
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FocusTrackerService>;
|
|
2069
2128
|
}
|
|
2070
2129
|
|
|
2130
|
+
interface ThemeServiceConfig {
|
|
2131
|
+
/** Préfixe produit utilisé pour `data-cw-theme`, ex. 'cw-bo' | 'cw-fo'. */
|
|
2132
|
+
product: string;
|
|
2133
|
+
/** Thème par défaut si aucun choix n'est persisté. Défaut: 'auto'. */
|
|
2134
|
+
defaultTheme?: string;
|
|
2135
|
+
/** Clé localStorage de persistance. Défaut: 'cw-theme'. */
|
|
2136
|
+
storageKey?: string;
|
|
2137
|
+
/** Élément cible portant l'attribut. Défaut: `document.documentElement` (`<html>`). */
|
|
2138
|
+
target?: HTMLElement;
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Applique, persiste et résout le thème actif via l'attribut `data-cw-theme`.
|
|
2142
|
+
*
|
|
2143
|
+
* Règle de résolution (clé logique → valeur d'attribut), selon le `product` configuré :
|
|
2144
|
+
* - `light` → `<product>` (ex. `cw-bo`)
|
|
2145
|
+
* - `dark` → `<product>-dark` (ex. `cw-bo-dark`)
|
|
2146
|
+
* - `auto` → résolu via `prefers-color-scheme` (clair/sombre), avec écoute live
|
|
2147
|
+
* - toute autre clé `x` → `<product>-x` (réservé aux thèmes futurs)
|
|
2148
|
+
*
|
|
2149
|
+
* Le composant `cw-theme-selector` reste purement présentationnel : il émet une clé,
|
|
2150
|
+
* c'est le consommateur qui appelle `setTheme()` (puis recharge la page si voulu).
|
|
2151
|
+
*/
|
|
2152
|
+
declare class ThemeService {
|
|
2153
|
+
private static readonly DEFAULT_STORAGE_KEY;
|
|
2154
|
+
private static readonly DARK_SUFFIX;
|
|
2155
|
+
private static readonly DARK_QUERY;
|
|
2156
|
+
private static readonly THEME_ATTR;
|
|
2157
|
+
private product;
|
|
2158
|
+
private storageKey;
|
|
2159
|
+
private target;
|
|
2160
|
+
private readonly _currentTheme;
|
|
2161
|
+
/** Thème logique actif ('light' | 'dark' | 'auto' | …). À binder sur `[currentTheme]`. */
|
|
2162
|
+
readonly currentTheme: _angular_core.Signal<string>;
|
|
2163
|
+
private media;
|
|
2164
|
+
private readonly onMediaChange;
|
|
2165
|
+
/**
|
|
2166
|
+
* À appeler une fois au démarrage (ex. `APP_INITIALIZER` ou bootstrap du shell).
|
|
2167
|
+
* Lit le thème persisté (ou `defaultTheme`) et l'applique immédiatement.
|
|
2168
|
+
*/
|
|
2169
|
+
init(config: ThemeServiceConfig): void;
|
|
2170
|
+
/** Change le thème actif : met à jour le signal, persiste et applique `data-cw-theme`. */
|
|
2171
|
+
setTheme(key: string): void;
|
|
2172
|
+
/** Valeur `data-cw-theme` correspondant à une clé logique, selon le produit. */
|
|
2173
|
+
resolve(key: string): string;
|
|
2174
|
+
private darkValue;
|
|
2175
|
+
private prefersDark;
|
|
2176
|
+
private applyAttribute;
|
|
2177
|
+
/** Active/désactive l'écoute live de `prefers-color-scheme` (utile seulement en 'auto'). */
|
|
2178
|
+
private bindMedia;
|
|
2179
|
+
private readStored;
|
|
2180
|
+
private writeStored;
|
|
2181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
2182
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2071
2185
|
interface DataCustomList {
|
|
2072
2186
|
label: string;
|
|
2073
2187
|
value: any;
|
|
@@ -2081,5 +2195,5 @@ interface DataCustomListGroup {
|
|
|
2081
2195
|
fields: DataCustomList[];
|
|
2082
2196
|
}
|
|
2083
2197
|
|
|
2084
|
-
export { AccordionComponent, AlertComponent, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, CwTooltipDirective, DropdownComponent, DropdownItemDirective, DropdownPositionEnum, FileToDownloadComponent, FoButtonTypeEnum, FoTabTypeEnum, FocusTrackerService, FormFieldComponent, FormFieldTypeEnum, IconComponent, IconNotifSizeEnum, IconNotifTypeEnum, IconNotificationComponent, IconSizeEnum, IconTypeEnum, IconUiTypeEnum, ImageComponent, LanguageSelectorComponent, LegendComponent, LegendTypeEnum, LoaderComponent, ModalsComponent, ModalsService, ModalsSize, ModalsType, NumericalRangeComponent, NumericalRangeLabelPositionEnum, NumericalRangeTypeEnum, PlacementEnum, RequiredInfoComponent, ResponsiveService, SkipLinksComponent, SpriteIconEnum, StepperComponent, TOAST_AUTOHIDE_DELAY_MS, TabComponent, TabContentComponent, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TooltipPositionEnum, TriggerTooltipEnum, TypeTooltipEnum,
|
|
2085
|
-
export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptions, CwAutocompleteResolver, CwBreadcrumbItem, DataCustomList, DataCustomListGroup, DataLegend, FormFieldOption, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalConfig, ModalRef, ShowToastOptions, SkipLink, Toast, ToastAction };
|
|
2198
|
+
export { AccordionComponent, AlertComponent, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CW_DEFAULT_THEME_OPTIONS, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, CwThemeKeyEnum, CwTooltipDirective, DropdownComponent, DropdownItemDirective, DropdownPositionEnum, FileToDownloadComponent, FoButtonTypeEnum, FoTabTypeEnum, FocusTrackerService, FormFieldComponent, FormFieldTypeEnum, IconComponent, IconNotifSizeEnum, IconNotifTypeEnum, IconNotificationComponent, IconSizeEnum, IconTypeEnum, IconUiTypeEnum, ImageComponent, LanguageSelectorComponent, LegendComponent, LegendTypeEnum, LoaderComponent, LoaderSizeEnum, ModalsComponent, ModalsService, ModalsSize, ModalsState, ModalsTextType, ModalsType, NumericalRangeComponent, NumericalRangeLabelPositionEnum, NumericalRangeTypeEnum, PlacementEnum, RequiredInfoComponent, ResponsiveService, SkipLinksComponent, SpriteIconEnum, StepperComponent, TOAST_AUTOHIDE_DELAY_MS, TabComponent, TabContentComponent, ThemeSelectorComponent, ThemeService, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TooltipPositionEnum, TriggerTooltipEnum, TypeTooltipEnum, rangeValidator, resolveArrowPos };
|
|
2199
|
+
export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptions, CwAutocompleteResolver, CwBreadcrumbItem, CwThemeOption, DataCustomList, DataCustomListGroup, DataLegend, FormFieldOption, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalConfig, ModalRef, ShowToastOptions, SkipLink, ThemeServiceConfig, Toast, ToastAction };
|
|
@@ -241,6 +241,13 @@
|
|
|
241
241
|
"CHECK_LINE": "Check line"
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
|
+
"_THEME": {
|
|
245
|
+
"LBL_THEME": "Theme",
|
|
246
|
+
"LBL_LIGHT": "Light",
|
|
247
|
+
"LBL_DARK": "Dark",
|
|
248
|
+
"LBL_AUTO": "Auto",
|
|
249
|
+
"RELOAD_HINT": "Selecting a theme reloads the page."
|
|
250
|
+
},
|
|
244
251
|
"_USER": {
|
|
245
252
|
"LBL_HELP": "Help",
|
|
246
253
|
"LBL_LOGIN": "Login",
|
|
@@ -254,8 +261,9 @@
|
|
|
254
261
|
"_MODAL_DELETE": {
|
|
255
262
|
"TITLE": "Deleting {{number}} {{name}}",
|
|
256
263
|
"DEFAULT_TYPE": "elements",
|
|
257
|
-
"SIMPLE_TEXT": "
|
|
258
|
-
"MULTIPLE_TEXT": "
|
|
264
|
+
"SIMPLE_TEXT": "You are about to delete the following item:",
|
|
265
|
+
"MULTIPLE_TEXT": "You are about to delete the following items:",
|
|
266
|
+
"IRREVERSIBLE": "This action is <strong>irreversible</strong> and will delete all associated data."
|
|
259
267
|
},
|
|
260
268
|
"_VERSION": {
|
|
261
269
|
"INCLUDED": "Embedded versions"
|
|
@@ -236,6 +236,13 @@
|
|
|
236
236
|
"CHECK_LINE": "Cocher la ligne"
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
+
"_THEME": {
|
|
240
|
+
"LBL_THEME": "Thème",
|
|
241
|
+
"LBL_LIGHT": "Clair",
|
|
242
|
+
"LBL_DARK": "Sombre",
|
|
243
|
+
"LBL_AUTO": "Auto",
|
|
244
|
+
"RELOAD_HINT": "La sélection d'un thème recharge la page."
|
|
245
|
+
},
|
|
239
246
|
"_USER": {
|
|
240
247
|
"LBL_HELP": "Aide",
|
|
241
248
|
"LBL_LOGIN": "Connexion",
|
|
@@ -249,8 +256,9 @@
|
|
|
249
256
|
"_MODAL_DELETE": {
|
|
250
257
|
"TITLE": "Suppression de {{number}} {{name}} ",
|
|
251
258
|
"DEFAULT_TYPE": "éléments",
|
|
252
|
-
"SIMPLE_TEXT": "
|
|
253
|
-
"MULTIPLE_TEXT": "
|
|
259
|
+
"SIMPLE_TEXT": "Vous êtes sur le point de supprimer l'élément suivant :",
|
|
260
|
+
"MULTIPLE_TEXT": "Vous êtes sur le point de supprimer les éléments suivants :",
|
|
261
|
+
"IRREVERSIBLE": "Cette action est <strong>irréversible</strong> et supprimera toutes les données associées."
|
|
254
262
|
},
|
|
255
263
|
"_VERSION": {
|
|
256
264
|
"INCLUDED": "Versions embarquées"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityway/basic-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-beta001",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.3.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@angular/animations": "^20.3.0",
|
|
10
10
|
"@angular/cdk": "^20.2.2",
|
|
11
11
|
"@angular/platform-browser": "^20.3.0",
|
|
12
|
-
"@cityway/design-tokens": "1.0
|
|
12
|
+
"@cityway/design-tokens": "1.1.0-beta001",
|
|
13
13
|
"intl-tel-input": "^28.0.7"
|
|
14
14
|
},
|
|
15
15
|
"peerDependenciesMeta": {
|