@edsis/angular 22.2.15 → 22.2.17
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/README.md +2 -2
- package/fesm2022/edsis-angular-component-input.mjs +1 -1
- package/fesm2022/edsis-angular-component-native-select.mjs +1 -1
- package/fesm2022/edsis-angular-component-select.mjs +2 -2
- package/fesm2022/edsis-angular-component-textarea.mjs +1 -1
- package/fesm2022/{edsis-angular-navigation-navigation-badge-count.component-CLXtMyMX.mjs → edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs} +28 -18
- package/fesm2022/{edsis-angular-navigation-navigation-dockbar-menu.component-CR1lXxx1.mjs → edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs} +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-entry-grid.component-i-VwrAJS.mjs → edsis-angular-navigation-navigation-entry-grid.component-CSqoookZ.mjs} +3 -1
- package/fesm2022/{edsis-angular-navigation-navigation-flyout-menu.component-Ct8i6p-m.mjs → edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs} +4 -4
- package/fesm2022/{edsis-angular-navigation-navigation-horizontal.component-BVjyL0ay.mjs → edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs} +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-item.component-2MB3EwH9.mjs → edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs} +13 -3
- package/fesm2022/{edsis-angular-navigation-navigation-list.component-CbX6dceu.mjs → edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs} +1 -1
- package/fesm2022/edsis-angular-navigation.mjs +33 -12
- package/fesm2022/edsis-angular-theme-component-settings.mjs +2 -1
- package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +24 -0
- package/fesm2022/edsis-angular-theme-page-root.mjs +1 -0
- package/fesm2022/edsis-angular-theme-shell.mjs +1 -0
- package/fesm2022/edsis-angular-theme-styles.mjs +1 -1
- package/navigation/README.md +17 -0
- package/package.json +5 -5
- package/theme/styles/css/base/components.css +90 -0
- package/theme/styles/css/base/tokens.css +13 -0
- package/types/edsis-angular-component-card.d.ts +1 -1
- package/types/edsis-angular-component-command.d.ts +1 -1
- package/types/edsis-angular-navigation-types.d.ts +6 -0
- package/types/edsis-angular-navigation.d.ts +12 -2
- package/types/edsis-angular-theme-layout-wrapper.d.ts +12 -2
package/README.md
CHANGED
|
@@ -122,8 +122,8 @@ ng generate @edsis/angular:sdk
|
|
|
122
122
|
|
|
123
123
|
## Links
|
|
124
124
|
|
|
125
|
-
- Source: git+https://github.com/ojiepermana/angular.git
|
|
126
|
-
- Documentation: https://github.com/ojiepermana/angular#readme
|
|
125
|
+
- Source: git+https://github.com/ojiepermana/angular-ui.git
|
|
126
|
+
- Documentation: https://github.com/ojiepermana/angular-ui#readme
|
|
127
127
|
|
|
128
128
|
## License
|
|
129
129
|
|
|
@@ -8,7 +8,7 @@ const BASE = [
|
|
|
8
8
|
"text-sm transition-colors",
|
|
9
9
|
"file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground",
|
|
10
10
|
"placeholder:text-muted-foreground",
|
|
11
|
-
"focus-ring",
|
|
11
|
+
"focus-ring [--focus-ring-offset:calc(-1*var(--focus-ring-width))]",
|
|
12
12
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
13
13
|
"aria-[invalid=true]:border-destructive aria-[invalid=true]:[--focus-ring-color:hsl(var(--destructive))]"
|
|
14
14
|
].join(" ");
|
|
@@ -5,7 +5,7 @@ const BASE = [
|
|
|
5
5
|
"block h-control-md w-full appearance-none rounded-md border border-input bg-transparent px-3 py-2",
|
|
6
6
|
"pr-10 text-sm transition-colors",
|
|
7
7
|
"text-foreground",
|
|
8
|
-
"focus-ring",
|
|
8
|
+
"focus-ring [--focus-ring-offset:calc(-1*var(--focus-ring-width))]",
|
|
9
9
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
10
10
|
"aria-[invalid=true]:border-destructive aria-[invalid=true]:[--focus-ring-color:hsl(var(--destructive))]"
|
|
11
11
|
].join(" ");
|
|
@@ -376,7 +376,7 @@ var SelectComponent = class SelectComponent extends SelectMaterialBridge {
|
|
|
376
376
|
</ng-template>
|
|
377
377
|
`,
|
|
378
378
|
isInline: true,
|
|
379
|
-
styles: ["@keyframes _mat-select-enter{0%{opacity:0;transform:scaleY(.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{0%{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var( --mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12) )}.mat-mdc-select-disabled,.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var( --mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent) )}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media(forced-colors:active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;box-sizing:border-box;transform-origin:top center;border-radius:0 0 4px 4px;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-radius:4px 4px 0 0;transform-origin:bottom center}@media(forced-colors:active){div.mat-mdc-select-panel{outline:solid 1px}}.mat-select-panel-animations-enabled{animation:_mat-select-enter .12s cubic-bezier(0,0,.2,1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit .1s linear}.mat-mdc-select-placeholder{transition:color .4s .1333333333333s cubic-bezier(.25,.8,.25,1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-mdc-select-min-line:empty:before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n", "selectfield.mat-mdc-select{display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--control-height-md);padding:0;border:1px solid hsl(var(--input));border-radius:var(--radius-base);background:transparent;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);cursor:pointer}selectfield .mat-mdc-select-trigger{height:100%;padding:0 calc(var(--spacing-base) * 3)}selectfield.mat-mdc-select:focus{outline:none}selectfield.mat-mdc-select:focus-visible:not(.mat-select-open){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset)}selectfield.mat-mdc-select-disabled{cursor:not-allowed;opacity:.5;background:hsl(var(--muted) / .4)}selectfield.mat-mdc-select-invalid{border-color:hsl(var(--destructive))}selectfield .mat-mdc-select-value{color:hsl(var(--foreground))}selectfield .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}selectfield .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}div.mat-mdc-select-panel.select-panel{--mat-select-panel-background-color: hsl(var(--popover));display:flex;flex-direction:column;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--ring));border-radius:var(--radius-base);box-shadow:0 0 0 1px hsl(var(--ring)),var(--shadow-md, 0 8px 18px -14px hsl(var(--foreground) / .24));padding:calc(var(--spacing-base) * 1);overflow:hidden}.select-panel .select-options{min-height:0;overflow:auto;outline:none}.select-search{flex:0 0 auto;margin-block-end:calc(var(--spacing-base) * 1)}.select-search-input{box-sizing:border-box;width:100%;height:var(--control-height-md);border:1px solid hsl(var(--input));border-radius:var(--radius-base);outline:none;background:transparent;color:hsl(var(--popover-foreground));padding-inline:calc(var(--spacing-base) * 3);font:inherit}.select-search-input::placeholder{color:hsl(var(--muted-foreground))}.select-search-input:focus-visible{border-color:hsl(var(--input));box-shadow:none}.select-search-input::-webkit-search-cancel-button{cursor:pointer}.select-empty{color:hsl(var(--muted-foreground));padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);font-size:var(--text-sm);line-height:var(--text-sm--line-height);text-align:center}.select-panel .mat-mdc-option{--mat-option-label-text-color: hsl(var(--popover-foreground));--mat-option-label-text-font: var(--font-sans);--mat-option-label-text-size: var(--text-sm);--mat-option-label-text-line-height: var(--text-sm--line-height);--mat-option-label-text-weight: 400;--mat-option-hover-state-layer-color: hsl(var(--accent));--mat-option-focus-state-layer-color: hsl(var(--accent));--mat-option-selected-state-layer-color: hsl(var(--accent));--mat-option-selected-state-label-text-color: hsl(var(--accent-foreground));min-height:var(--control-height-md);border-radius:var(--radius-base)}.select-panel .mat-mdc-option+.mat-mdc-option{margin-block-start:calc(var(--spacing-base) * .5)}.select-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:hsl(var(--accent-foreground))}.select-panel .mat-mdc-optgroup-label{--mat-optgroup-label-text-color: hsl(var(--muted-foreground));--mat-optgroup-label-text-font: var(--font-sans);--mat-optgroup-label-text-size: var(--text-xs);min-height:var(--control-height-xs)}\n"],
|
|
379
|
+
styles: ["@keyframes _mat-select-enter{0%{opacity:0;transform:scaleY(.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{0%{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var( --mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12) )}.mat-mdc-select-disabled,.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var( --mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent) )}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media(forced-colors:active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;box-sizing:border-box;transform-origin:top center;border-radius:0 0 4px 4px;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-radius:4px 4px 0 0;transform-origin:bottom center}@media(forced-colors:active){div.mat-mdc-select-panel{outline:solid 1px}}.mat-select-panel-animations-enabled{animation:_mat-select-enter .12s cubic-bezier(0,0,.2,1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit .1s linear}.mat-mdc-select-placeholder{transition:color .4s .1333333333333s cubic-bezier(.25,.8,.25,1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-mdc-select-min-line:empty:before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n", "selectfield.mat-mdc-select{--focus-ring-offset: calc(-1 * var(--focus-ring-width));display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--control-height-md);padding:0;border:1px solid hsl(var(--input));border-radius:var(--radius-base);background:transparent;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);cursor:pointer}selectfield .mat-mdc-select-trigger{height:100%;padding:0 calc(var(--spacing-base) * 3)}selectfield.mat-mdc-select:focus{outline:none}selectfield.mat-mdc-select:focus-visible:not(.mat-select-open){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset)}selectfield.mat-mdc-select-disabled{cursor:not-allowed;opacity:.5;background:hsl(var(--muted) / .4)}selectfield.mat-mdc-select-invalid{--focus-ring-color: hsl(var(--destructive));border-color:hsl(var(--destructive))}selectfield .mat-mdc-select-value{color:hsl(var(--foreground))}selectfield .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}selectfield .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}div.mat-mdc-select-panel.select-panel{--mat-select-panel-background-color: hsl(var(--popover));display:flex;flex-direction:column;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--ring));border-radius:var(--radius-base);box-shadow:0 0 0 1px hsl(var(--ring)),var(--shadow-md, 0 8px 18px -14px hsl(var(--foreground) / .24));padding:calc(var(--spacing-base) * 1);overflow:hidden}.select-panel .select-options{min-height:0;overflow:auto;outline:none}.select-search{flex:0 0 auto;margin-block-end:calc(var(--spacing-base) * 1)}.select-search-input{box-sizing:border-box;width:100%;height:var(--control-height-md);border:1px solid hsl(var(--input));border-radius:var(--radius-base);outline:none;background:transparent;color:hsl(var(--popover-foreground));padding-inline:calc(var(--spacing-base) * 3);font:inherit}.select-search-input::placeholder{color:hsl(var(--muted-foreground))}.select-search-input:focus-visible{border-color:hsl(var(--input));box-shadow:none}.select-search-input::-webkit-search-cancel-button{cursor:pointer}.select-empty{color:hsl(var(--muted-foreground));padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);font-size:var(--text-sm);line-height:var(--text-sm--line-height);text-align:center}.select-panel .mat-mdc-option{--mat-option-label-text-color: hsl(var(--popover-foreground));--mat-option-label-text-font: var(--font-sans);--mat-option-label-text-size: var(--text-sm);--mat-option-label-text-line-height: var(--text-sm--line-height);--mat-option-label-text-weight: 400;--mat-option-hover-state-layer-color: hsl(var(--accent));--mat-option-focus-state-layer-color: hsl(var(--accent));--mat-option-selected-state-layer-color: hsl(var(--accent));--mat-option-selected-state-label-text-color: hsl(var(--accent-foreground));min-height:var(--control-height-md);border-radius:var(--radius-base)}.select-panel .mat-mdc-option+.mat-mdc-option{margin-block-start:calc(var(--spacing-base) * .5)}.select-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:hsl(var(--accent-foreground))}.select-panel .mat-mdc-optgroup-label{--mat-optgroup-label-text-color: hsl(var(--muted-foreground));--mat-optgroup-label-text-font: var(--font-sans);--mat-optgroup-label-text-size: var(--text-xs);min-height:var(--control-height-xs)}\n"],
|
|
380
380
|
dependencies: [
|
|
381
381
|
{
|
|
382
382
|
kind: "ngmodule",
|
|
@@ -562,7 +562,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
562
562
|
</div>
|
|
563
563
|
</ng-template>
|
|
564
564
|
`,
|
|
565
|
-
styles: ["@keyframes _mat-select-enter{0%{opacity:0;transform:scaleY(.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{0%{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var( --mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12) )}.mat-mdc-select-disabled,.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var( --mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent) )}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media(forced-colors:active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;box-sizing:border-box;transform-origin:top center;border-radius:0 0 4px 4px;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-radius:4px 4px 0 0;transform-origin:bottom center}@media(forced-colors:active){div.mat-mdc-select-panel{outline:solid 1px}}.mat-select-panel-animations-enabled{animation:_mat-select-enter .12s cubic-bezier(0,0,.2,1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit .1s linear}.mat-mdc-select-placeholder{transition:color .4s .1333333333333s cubic-bezier(.25,.8,.25,1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-mdc-select-min-line:empty:before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n", "selectfield.mat-mdc-select{display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--control-height-md);padding:0;border:1px solid hsl(var(--input));border-radius:var(--radius-base);background:transparent;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);cursor:pointer}selectfield .mat-mdc-select-trigger{height:100%;padding:0 calc(var(--spacing-base) * 3)}selectfield.mat-mdc-select:focus{outline:none}selectfield.mat-mdc-select:focus-visible:not(.mat-select-open){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset)}selectfield.mat-mdc-select-disabled{cursor:not-allowed;opacity:.5;background:hsl(var(--muted) / .4)}selectfield.mat-mdc-select-invalid{border-color:hsl(var(--destructive))}selectfield .mat-mdc-select-value{color:hsl(var(--foreground))}selectfield .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}selectfield .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}div.mat-mdc-select-panel.select-panel{--mat-select-panel-background-color: hsl(var(--popover));display:flex;flex-direction:column;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--ring));border-radius:var(--radius-base);box-shadow:0 0 0 1px hsl(var(--ring)),var(--shadow-md, 0 8px 18px -14px hsl(var(--foreground) / .24));padding:calc(var(--spacing-base) * 1);overflow:hidden}.select-panel .select-options{min-height:0;overflow:auto;outline:none}.select-search{flex:0 0 auto;margin-block-end:calc(var(--spacing-base) * 1)}.select-search-input{box-sizing:border-box;width:100%;height:var(--control-height-md);border:1px solid hsl(var(--input));border-radius:var(--radius-base);outline:none;background:transparent;color:hsl(var(--popover-foreground));padding-inline:calc(var(--spacing-base) * 3);font:inherit}.select-search-input::placeholder{color:hsl(var(--muted-foreground))}.select-search-input:focus-visible{border-color:hsl(var(--input));box-shadow:none}.select-search-input::-webkit-search-cancel-button{cursor:pointer}.select-empty{color:hsl(var(--muted-foreground));padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);font-size:var(--text-sm);line-height:var(--text-sm--line-height);text-align:center}.select-panel .mat-mdc-option{--mat-option-label-text-color: hsl(var(--popover-foreground));--mat-option-label-text-font: var(--font-sans);--mat-option-label-text-size: var(--text-sm);--mat-option-label-text-line-height: var(--text-sm--line-height);--mat-option-label-text-weight: 400;--mat-option-hover-state-layer-color: hsl(var(--accent));--mat-option-focus-state-layer-color: hsl(var(--accent));--mat-option-selected-state-layer-color: hsl(var(--accent));--mat-option-selected-state-label-text-color: hsl(var(--accent-foreground));min-height:var(--control-height-md);border-radius:var(--radius-base)}.select-panel .mat-mdc-option+.mat-mdc-option{margin-block-start:calc(var(--spacing-base) * .5)}.select-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:hsl(var(--accent-foreground))}.select-panel .mat-mdc-optgroup-label{--mat-optgroup-label-text-color: hsl(var(--muted-foreground));--mat-optgroup-label-text-font: var(--font-sans);--mat-optgroup-label-text-size: var(--text-xs);min-height:var(--control-height-xs)}\n"]
|
|
565
|
+
styles: ["@keyframes _mat-select-enter{0%{opacity:0;transform:scaleY(.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{0%{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var( --mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12) )}.mat-mdc-select-disabled,.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var( --mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent) )}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media(forced-colors:active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;box-sizing:border-box;transform-origin:top center;border-radius:0 0 4px 4px;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-radius:4px 4px 0 0;transform-origin:bottom center}@media(forced-colors:active){div.mat-mdc-select-panel{outline:solid 1px}}.mat-select-panel-animations-enabled{animation:_mat-select-enter .12s cubic-bezier(0,0,.2,1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit .1s linear}.mat-mdc-select-placeholder{transition:color .4s .1333333333333s cubic-bezier(.25,.8,.25,1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-mdc-select-min-line:empty:before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n", "selectfield.mat-mdc-select{--focus-ring-offset: calc(-1 * var(--focus-ring-width));display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--control-height-md);padding:0;border:1px solid hsl(var(--input));border-radius:var(--radius-base);background:transparent;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);cursor:pointer}selectfield .mat-mdc-select-trigger{height:100%;padding:0 calc(var(--spacing-base) * 3)}selectfield.mat-mdc-select:focus{outline:none}selectfield.mat-mdc-select:focus-visible:not(.mat-select-open){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset)}selectfield.mat-mdc-select-disabled{cursor:not-allowed;opacity:.5;background:hsl(var(--muted) / .4)}selectfield.mat-mdc-select-invalid{--focus-ring-color: hsl(var(--destructive));border-color:hsl(var(--destructive))}selectfield .mat-mdc-select-value{color:hsl(var(--foreground))}selectfield .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}selectfield .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}div.mat-mdc-select-panel.select-panel{--mat-select-panel-background-color: hsl(var(--popover));display:flex;flex-direction:column;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--ring));border-radius:var(--radius-base);box-shadow:0 0 0 1px hsl(var(--ring)),var(--shadow-md, 0 8px 18px -14px hsl(var(--foreground) / .24));padding:calc(var(--spacing-base) * 1);overflow:hidden}.select-panel .select-options{min-height:0;overflow:auto;outline:none}.select-search{flex:0 0 auto;margin-block-end:calc(var(--spacing-base) * 1)}.select-search-input{box-sizing:border-box;width:100%;height:var(--control-height-md);border:1px solid hsl(var(--input));border-radius:var(--radius-base);outline:none;background:transparent;color:hsl(var(--popover-foreground));padding-inline:calc(var(--spacing-base) * 3);font:inherit}.select-search-input::placeholder{color:hsl(var(--muted-foreground))}.select-search-input:focus-visible{border-color:hsl(var(--input));box-shadow:none}.select-search-input::-webkit-search-cancel-button{cursor:pointer}.select-empty{color:hsl(var(--muted-foreground));padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);font-size:var(--text-sm);line-height:var(--text-sm--line-height);text-align:center}.select-panel .mat-mdc-option{--mat-option-label-text-color: hsl(var(--popover-foreground));--mat-option-label-text-font: var(--font-sans);--mat-option-label-text-size: var(--text-sm);--mat-option-label-text-line-height: var(--text-sm--line-height);--mat-option-label-text-weight: 400;--mat-option-hover-state-layer-color: hsl(var(--accent));--mat-option-focus-state-layer-color: hsl(var(--accent));--mat-option-selected-state-layer-color: hsl(var(--accent));--mat-option-selected-state-label-text-color: hsl(var(--accent-foreground));min-height:var(--control-height-md);border-radius:var(--radius-base)}.select-panel .mat-mdc-option+.mat-mdc-option{margin-block-start:calc(var(--spacing-base) * .5)}.select-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:hsl(var(--accent-foreground))}.select-panel .mat-mdc-optgroup-label{--mat-optgroup-label-text-color: hsl(var(--muted-foreground));--mat-optgroup-label-text-font: var(--font-sans);--mat-optgroup-label-text-size: var(--text-xs);min-height:var(--control-height-xs)}\n"]
|
|
566
566
|
}]
|
|
567
567
|
}],
|
|
568
568
|
ctorParameters: () => [],
|
|
@@ -13,7 +13,7 @@ var TextareaComponent = class TextareaComponent {
|
|
|
13
13
|
"flex min-h-15 w-full resize-y rounded-md border border-input bg-transparent px-3 py-2",
|
|
14
14
|
"text-sm transition-colors",
|
|
15
15
|
"placeholder:text-muted-foreground",
|
|
16
|
-
"focus-ring",
|
|
16
|
+
"focus-ring [--focus-ring-offset:calc(-1*var(--focus-ring-width))]",
|
|
17
17
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
18
|
"aria-[invalid=true]:border-destructive aria-[invalid=true]:[--focus-ring-color:hsl(var(--destructive))]"
|
|
19
19
|
].join(" "), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
@@ -163,15 +163,20 @@ var NavigationBadgeCountComponent = class NavigationBadgeCountComponent {
|
|
|
163
163
|
ngImport: i0,
|
|
164
164
|
template: `
|
|
165
165
|
@if (resolvedBadge(); as resolved) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
166
|
+
<!-- The slot is layout neutral (display: contents) except under
|
|
167
|
+
badge-indicator="dot", where it anchors the dot. It sits outside the
|
|
168
|
+
badge so the dot inherits the item's text color, not the badge's. -->
|
|
169
|
+
<span data-navigation-badge-slot="true" class="contents">
|
|
170
|
+
<span
|
|
171
|
+
role="status"
|
|
172
|
+
aria-atomic="true"
|
|
173
|
+
data-navigation-badge="true"
|
|
174
|
+
[attr.data-navigation-badge-count]="resolved.count"
|
|
175
|
+
[attr.aria-label]="resolved.accessibleLabel"
|
|
176
|
+
[class]="badgeClasses()"
|
|
177
|
+
>
|
|
178
|
+
{{ resolved.display }}
|
|
179
|
+
</span>
|
|
175
180
|
</span>
|
|
176
181
|
}
|
|
177
182
|
`,
|
|
@@ -190,15 +195,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
190
195
|
host: { class: "contents" },
|
|
191
196
|
template: `
|
|
192
197
|
@if (resolvedBadge(); as resolved) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
<!-- The slot is layout neutral (display: contents) except under
|
|
199
|
+
badge-indicator="dot", where it anchors the dot. It sits outside the
|
|
200
|
+
badge so the dot inherits the item's text color, not the badge's. -->
|
|
201
|
+
<span data-navigation-badge-slot="true" class="contents">
|
|
202
|
+
<span
|
|
203
|
+
role="status"
|
|
204
|
+
aria-atomic="true"
|
|
205
|
+
data-navigation-badge="true"
|
|
206
|
+
[attr.data-navigation-badge-count]="resolved.count"
|
|
207
|
+
[attr.aria-label]="resolved.accessibleLabel"
|
|
208
|
+
[class]="badgeClasses()"
|
|
209
|
+
>
|
|
210
|
+
{{ resolved.display }}
|
|
211
|
+
</span>
|
|
202
212
|
</span>
|
|
203
213
|
}
|
|
204
214
|
`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-
|
|
1
|
+
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs";
|
|
2
|
+
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
1
|
+
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -263,6 +263,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
263
263
|
<Icon
|
|
264
264
|
name="chevron-right"
|
|
265
265
|
size="inherit"
|
|
266
|
+
data-navigation-chevron="true"
|
|
266
267
|
[class]="entryChevronClasses(child)"
|
|
267
268
|
/>
|
|
268
269
|
</button>
|
|
@@ -593,6 +594,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
593
594
|
<Icon
|
|
594
595
|
name="chevron-right"
|
|
595
596
|
size="inherit"
|
|
597
|
+
data-navigation-chevron="true"
|
|
596
598
|
[class]="entryChevronClasses(child)"
|
|
597
599
|
/>
|
|
598
600
|
</button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-
|
|
1
|
+
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-CSqoookZ.mjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
5
5
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -387,7 +387,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
387
387
|
node: Menu
|
|
388
388
|
})],
|
|
389
389
|
ngImport: i0,
|
|
390
|
-
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
390
|
+
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n data-navigation-chevron=\"true\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
391
391
|
styles: ["[data-navigation-flyout-floating=true]{width:var(--nav-flyout-floating-width, min(22rem, 85vw));max-width:var(--nav-flyout-floating-max-width, 85vw)}[data-navigation-flyout-floating-card=true]{border-radius:var(--nav-flyout-floating-radius, var(--radius-xl))}[data-navigation-flyout-panel=true]{-webkit-app-region:no-drag;app-region:no-drag}\n"],
|
|
392
392
|
dependencies: [
|
|
393
393
|
{
|
|
@@ -493,7 +493,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
493
493
|
"[class]": "hostClasses()",
|
|
494
494
|
"(keydown.escape)": "onEscape($event)"
|
|
495
495
|
},
|
|
496
|
-
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
496
|
+
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n data-navigation-chevron=\"true\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
497
497
|
styles: ["[data-navigation-flyout-floating=true]{width:var(--nav-flyout-floating-width, min(22rem, 85vw));max-width:var(--nav-flyout-floating-max-width, 85vw)}[data-navigation-flyout-floating-card=true]{border-radius:var(--nav-flyout-floating-radius, var(--radius-xl))}[data-navigation-flyout-panel=true]{-webkit-app-region:no-drag;app-region:no-drag}\n"]
|
|
498
498
|
}]
|
|
499
499
|
}],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-
|
|
3
|
-
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
1
|
+
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-CSqoookZ.mjs";
|
|
3
|
+
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
1
|
+
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, InjectionToken, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -901,7 +901,12 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
901
901
|
/>
|
|
902
902
|
|
|
903
903
|
@if (!compact()) {
|
|
904
|
-
<Icon
|
|
904
|
+
<Icon
|
|
905
|
+
name="chevron-right"
|
|
906
|
+
size="inherit"
|
|
907
|
+
data-navigation-chevron="true"
|
|
908
|
+
[class]="chevronClasses()"
|
|
909
|
+
/>
|
|
905
910
|
}
|
|
906
911
|
</button>
|
|
907
912
|
|
|
@@ -1296,7 +1301,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1296
1301
|
/>
|
|
1297
1302
|
|
|
1298
1303
|
@if (!compact()) {
|
|
1299
|
-
<Icon
|
|
1304
|
+
<Icon
|
|
1305
|
+
name="chevron-right"
|
|
1306
|
+
size="inherit"
|
|
1307
|
+
data-navigation-chevron="true"
|
|
1308
|
+
[class]="chevronClasses()"
|
|
1309
|
+
/>
|
|
1300
1310
|
}
|
|
1301
1311
|
</button>
|
|
1302
1312
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
1
|
+
import { t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { s as NAVIGATION_SHELL } from "./edsis-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-
|
|
1
|
+
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs";
|
|
2
|
+
import { s as NAVIGATION_SHELL } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, DestroyRef, Directive, ElementRef, Injector, TemplateRef, ViewContainerRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal } from "@angular/core";
|
|
6
6
|
import { ActivatedRoute } from "@angular/router";
|
|
@@ -86,6 +86,10 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
86
86
|
alias: "collapse-tree"
|
|
87
87
|
});
|
|
88
88
|
rail = input("default", ...ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []);
|
|
89
|
+
badgeIndicator = input("chevron", {
|
|
90
|
+
...ngDevMode ? { debugName: "badgeIndicator" } : /* istanbul ignore next */ {},
|
|
91
|
+
alias: "badge-indicator"
|
|
92
|
+
});
|
|
89
93
|
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
90
94
|
itemClass = input("", ...ngDevMode ? [{ debugName: "itemClass" }] : /* istanbul ignore next */ []);
|
|
91
95
|
groupClass = input("", {
|
|
@@ -390,6 +394,13 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
390
394
|
isRequired: false,
|
|
391
395
|
transformFunction: null
|
|
392
396
|
},
|
|
397
|
+
badgeIndicator: {
|
|
398
|
+
classPropertyName: "badgeIndicator",
|
|
399
|
+
publicName: "badge-indicator",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
},
|
|
393
404
|
class: {
|
|
394
405
|
classPropertyName: "class",
|
|
395
406
|
publicName: "class",
|
|
@@ -457,6 +468,7 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
457
468
|
"attr.data-type-style": "typeStyle()",
|
|
458
469
|
"attr.data-position": "resolvedState().position",
|
|
459
470
|
"attr.data-collapse-tree": "collapseTree()",
|
|
471
|
+
"attr.data-navigation-badge-indicator": "badgeIndicator() === \"dot\" ? \"dot\" : null",
|
|
460
472
|
"attr.data-preview-expanded": "previewRailExpanded() ? \"true\" : null",
|
|
461
473
|
"attr.data-motion": "motionArmed() ? null : \"off\""
|
|
462
474
|
}
|
|
@@ -507,6 +519,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
507
519
|
"[attr.data-type-style]": "typeStyle()",
|
|
508
520
|
"[attr.data-position]": "resolvedState().position",
|
|
509
521
|
"[attr.data-collapse-tree]": "collapseTree()",
|
|
522
|
+
"[attr.data-navigation-badge-indicator]": "badgeIndicator() === \"dot\" ? \"dot\" : null",
|
|
510
523
|
"[attr.data-preview-expanded]": "previewRailExpanded() ? \"true\" : null",
|
|
511
524
|
"[attr.data-motion]": "motionArmed() ? null : \"off\"",
|
|
512
525
|
"(document:pointerdown)": "armMotion()",
|
|
@@ -585,6 +598,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
585
598
|
required: false
|
|
586
599
|
}]
|
|
587
600
|
}],
|
|
601
|
+
badgeIndicator: [{
|
|
602
|
+
type: i0.Input,
|
|
603
|
+
args: [{
|
|
604
|
+
isSignal: true,
|
|
605
|
+
alias: "badge-indicator",
|
|
606
|
+
required: false
|
|
607
|
+
}]
|
|
608
|
+
}],
|
|
588
609
|
class: [{
|
|
589
610
|
type: i0.Input,
|
|
590
611
|
args: [{
|
|
@@ -820,9 +841,9 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
820
841
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
821
842
|
}],
|
|
822
843
|
deferBlockDependencies: [
|
|
823
|
-
() => [import("./edsis-angular-navigation-navigation-flyout-menu.component-
|
|
824
|
-
() => [import("./edsis-angular-navigation-navigation-horizontal.component-
|
|
825
|
-
() => [import("./edsis-angular-navigation-navigation-dockbar-menu.component-
|
|
844
|
+
() => [import("./edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs").then((m) => m.NavigationFlyoutMenuComponent)],
|
|
845
|
+
() => [import("./edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs").then((m) => m.NavigationHorizontalComponent)],
|
|
846
|
+
() => [import("./edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs").then((m) => m.NavigationDockbarMenuComponent)]
|
|
826
847
|
]
|
|
827
848
|
});
|
|
828
849
|
};
|
|
@@ -832,9 +853,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
832
853
|
ngImport: i0,
|
|
833
854
|
type: NavigationContentComponent,
|
|
834
855
|
resolveDeferredDeps: () => [
|
|
835
|
-
import("./edsis-angular-navigation-navigation-flyout-menu.component-
|
|
836
|
-
import("./edsis-angular-navigation-navigation-horizontal.component-
|
|
837
|
-
import("./edsis-angular-navigation-navigation-dockbar-menu.component-
|
|
856
|
+
import("./edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs").then((m) => m.NavigationFlyoutMenuComponent),
|
|
857
|
+
import("./edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs").then((m) => m.NavigationHorizontalComponent),
|
|
858
|
+
import("./edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs").then((m) => m.NavigationDockbarMenuComponent)
|
|
838
859
|
],
|
|
839
860
|
resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
|
|
840
861
|
decorators: [{
|
|
@@ -1773,7 +1794,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1773
1794
|
exportAs: ["Tooltip"]
|
|
1774
1795
|
}
|
|
1775
1796
|
],
|
|
1776
|
-
deferBlockDependencies: [() => [import("./edsis-angular-navigation-navigation-badge-count.component-
|
|
1797
|
+
deferBlockDependencies: [() => [import("./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)]]
|
|
1777
1798
|
});
|
|
1778
1799
|
};
|
|
1779
1800
|
i0.ɵɵngDeclareClassMetadataAsync({
|
|
@@ -1781,7 +1802,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1781
1802
|
version: "22.2.6",
|
|
1782
1803
|
ngImport: i0,
|
|
1783
1804
|
type: NavigationDockbarComponent,
|
|
1784
|
-
resolveDeferredDeps: () => [import("./edsis-angular-navigation-navigation-badge-count.component-
|
|
1805
|
+
resolveDeferredDeps: () => [import("./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)],
|
|
1785
1806
|
resolveMetadata: (NavigationBadgeCountComponent) => ({
|
|
1786
1807
|
decorators: [{
|
|
1787
1808
|
type: Component,
|
|
@@ -2778,7 +2799,7 @@ function deriveNavigationInitials(name) {
|
|
|
2778
2799
|
const last = parts[parts.length - 1] ?? "";
|
|
2779
2800
|
return (first.charAt(0) + last.charAt(0)).toUpperCase();
|
|
2780
2801
|
}
|
|
2781
|
-
const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary
|
|
2802
|
+
const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary text-primary-foreground";
|
|
2782
2803
|
function setupNavigationInitial(sources) {
|
|
2783
2804
|
return {
|
|
2784
2805
|
resolvedInitials: computed(() => sources.initials()?.slice(0, 2).toUpperCase() || deriveNavigationInitials(sources.name())),
|
|
@@ -1637,6 +1637,10 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1637
1637
|
...ngDevMode ? { debugName: "navRail" } : /* istanbul ignore next */ {},
|
|
1638
1638
|
alias: "nav-rail"
|
|
1639
1639
|
});
|
|
1640
|
+
navBadgeIndicator = input("chevron", {
|
|
1641
|
+
...ngDevMode ? { debugName: "navBadgeIndicator" } : /* istanbul ignore next */ {},
|
|
1642
|
+
alias: "nav-badge-indicator"
|
|
1643
|
+
});
|
|
1640
1644
|
dockbarRouteContext = input(null, {
|
|
1641
1645
|
...ngDevMode ? { debugName: "dockbarRouteContext" } : /* istanbul ignore next */ {},
|
|
1642
1646
|
alias: "dockbar-route-context"
|
|
@@ -1802,6 +1806,13 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1802
1806
|
isRequired: false,
|
|
1803
1807
|
transformFunction: null
|
|
1804
1808
|
},
|
|
1809
|
+
navBadgeIndicator: {
|
|
1810
|
+
classPropertyName: "navBadgeIndicator",
|
|
1811
|
+
publicName: "nav-badge-indicator",
|
|
1812
|
+
isSignal: true,
|
|
1813
|
+
isRequired: false,
|
|
1814
|
+
transformFunction: null
|
|
1815
|
+
},
|
|
1805
1816
|
dockbarRouteContext: {
|
|
1806
1817
|
classPropertyName: "dockbarRouteContext",
|
|
1807
1818
|
publicName: "dockbar-route-context",
|
|
@@ -1966,6 +1977,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1966
1977
|
data-id="main"
|
|
1967
1978
|
[data]="data()"
|
|
1968
1979
|
[rail]="navRail()"
|
|
1980
|
+
[badge-indicator]="navBadgeIndicator()"
|
|
1969
1981
|
[badge-context]="resolvedBadgeContext()"
|
|
1970
1982
|
ariaLabel="Primary navigation"
|
|
1971
1983
|
class="h-full w-full"
|
|
@@ -1994,6 +2006,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1994
2006
|
[data-id]="desktopDataId()"
|
|
1995
2007
|
[data]="desktopData()"
|
|
1996
2008
|
[rail]="navRail()"
|
|
2009
|
+
[badge-indicator]="navBadgeIndicator()"
|
|
1997
2010
|
[badge-context]="resolvedBadgeContext()"
|
|
1998
2011
|
[class]="navClass()"
|
|
1999
2012
|
>
|
|
@@ -2166,6 +2179,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
2166
2179
|
"compact",
|
|
2167
2180
|
"collapse-tree",
|
|
2168
2181
|
"rail",
|
|
2182
|
+
"badge-indicator",
|
|
2169
2183
|
"class",
|
|
2170
2184
|
"itemClass",
|
|
2171
2185
|
"nav-group-class",
|
|
@@ -2347,6 +2361,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
2347
2361
|
data-id="main"
|
|
2348
2362
|
[data]="data()"
|
|
2349
2363
|
[rail]="navRail()"
|
|
2364
|
+
[badge-indicator]="navBadgeIndicator()"
|
|
2350
2365
|
[badge-context]="resolvedBadgeContext()"
|
|
2351
2366
|
ariaLabel="Primary navigation"
|
|
2352
2367
|
class="h-full w-full"
|
|
@@ -2375,6 +2390,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
2375
2390
|
[data-id]="desktopDataId()"
|
|
2376
2391
|
[data]="desktopData()"
|
|
2377
2392
|
[rail]="navRail()"
|
|
2393
|
+
[badge-indicator]="navBadgeIndicator()"
|
|
2378
2394
|
[badge-context]="resolvedBadgeContext()"
|
|
2379
2395
|
[class]="navClass()"
|
|
2380
2396
|
>
|
|
@@ -2525,6 +2541,14 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
2525
2541
|
required: false
|
|
2526
2542
|
}]
|
|
2527
2543
|
}],
|
|
2544
|
+
navBadgeIndicator: [{
|
|
2545
|
+
type: i0.Input,
|
|
2546
|
+
args: [{
|
|
2547
|
+
isSignal: true,
|
|
2548
|
+
alias: "nav-badge-indicator",
|
|
2549
|
+
required: false
|
|
2550
|
+
}]
|
|
2551
|
+
}],
|
|
2528
2552
|
dockbarRouteContext: [{
|
|
2529
2553
|
type: i0.Input,
|
|
2530
2554
|
args: [{
|
|
@@ -467,7 +467,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
467
467
|
type: ThemeSpaceService,
|
|
468
468
|
decorators: [{ type: Service }]
|
|
469
469
|
});
|
|
470
|
-
const UI_THEME_RELEASE_VERSION = "22.2.
|
|
470
|
+
const UI_THEME_RELEASE_VERSION = "22.2.17";
|
|
471
471
|
const THEME_STORAGE_VERSION_KEY = "theme-storage-version";
|
|
472
472
|
function validateThemeStorageReset(options) {
|
|
473
473
|
if ("storageVersion" in options) throw new Error("storageVersion was removed. Migrate to storageReset: { preserveKeys: [] }; the package supplies the version.");
|
package/navigation/README.md
CHANGED
|
@@ -63,6 +63,22 @@ Type dipilih lewat komponen anak deklaratif (`NavigationSidebar`, `NavigationDoc
|
|
|
63
63
|
- `badge-context` on `Navigation` supplies one reactive badge registry for every navigation type, keyed by
|
|
64
64
|
`NavigationItem.badge.source` (and route `data.navigationBadge` for the dockbar header).
|
|
65
65
|
`NavigationDockbar` also accepts `badge-context`; its legacy `dockbar-badge` input remains supported.
|
|
66
|
+
- `badge-indicator` on `Navigation` accepts `chevron` (default) or `dot`. With `dot`, a collapsible
|
|
67
|
+
target that shows a visible count badge drops its chevron, the badge takes the chevron's place at
|
|
68
|
+
the end of the row, and a small dot sits on the badge's bottom-right corner: filled while closed,
|
|
69
|
+
outlined while open. It applies to sidebar and drawer items (every level), the dockbar side panel,
|
|
70
|
+
a collapsed sidebar while its hover/focus preview is expanded, flyout tabs (including descendant
|
|
71
|
+
totals), and navbar/flyout grid entries. Compact rails and the minidock render no chevron and are
|
|
72
|
+
untouched. A badge that drops to zero brings the chevron back. The dot is a decorative
|
|
73
|
+
pseudo-element; `aria-expanded` and the badge's `aria-label` are unchanged. The dot takes the
|
|
74
|
+
item's own text color in its current state (foreground at rest, accent foreground on hover,
|
|
75
|
+
primary foreground when active), so it keeps that text's contrast on every surface. The ring
|
|
76
|
+
around the dot is a transparent cutout in the badge, so it always shows the item's real surface
|
|
77
|
+
(rest, hover, active, light or dark). Tune it with `--nav-badge-dot-size`,
|
|
78
|
+
`--nav-badge-dot-offset`, `--nav-badge-dot-color` (default `currentColor`),
|
|
79
|
+
`--nav-badge-dot-ring`, `--nav-badge-dot-ring-color` (default `transparent`, which keeps the
|
|
80
|
+
cutout), and `--nav-badge-dot-stroke` (the open-state outline).
|
|
81
|
+
`LayoutWrapperDefault` forwards it to its desktop and mobile navigation as `nav-badge-indicator`.
|
|
66
82
|
- `ariaLabel` overrides the host navigation label and defaults to `Primary navigation`.
|
|
67
83
|
- `label` on `NavigationFlyout` sets the single trigger label and defaults to `Menu`.
|
|
68
84
|
- `icon` on `NavigationFlyout` renders a Lucide icon on the trigger (the name must be registered with `provideIcons()`); `icon-position` (`start`/`end`) sets its placement and `icon-only` hides the label visually while keeping it as the accessible name (compact mode is always icon-only and falls back to the `menu` icon).
|
|
@@ -131,6 +147,7 @@ Inputs pada `<Navigation>` (container):
|
|
|
131
147
|
| `ariaLabel` | `string` | Accessible label on the host navigation landmark. |
|
|
132
148
|
| `compact` | `boolean` | Compatibility alias for collapsed-rail item layout. |
|
|
133
149
|
| `rail` | `default \| rail-active` | Extent of parent to child connectors in sidebar and dockbar. |
|
|
150
|
+
| `badge-indicator` | `chevron \| dot` | Swap a collapsible's chevron for a dot on its visible count badge. |
|
|
134
151
|
| `collapse-tree` | `stairs \| straight` | Controls nested connector styling for collapsible items. |
|
|
135
152
|
| `class` | `string` | Extra classes for the host `nav`. |
|
|
136
153
|
| `itemClass` | `string` | Shared classes applied to rendered nav items. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edsis/angular",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.17",
|
|
4
4
|
"description": "Accessible, tree-shakable Angular 22 design system from Edsis: UI components, charts, navigation shells, theme tokens, and an OpenAPI SDK generator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/ojiepermana/angular.git",
|
|
30
|
+
"url": "git+https://github.com/ojiepermana/angular-ui.git",
|
|
31
31
|
"directory": "packages/angular"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://github.com/ojiepermana/angular#readme",
|
|
33
|
+
"homepage": "https://github.com/ojiepermana/angular-ui#readme",
|
|
34
34
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/ojiepermana/angular/issues",
|
|
35
|
+
"url": "https://github.com/ojiepermana/angular-ui/issues",
|
|
36
36
|
"email": "me@ojiepermana.com"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -508,5 +508,5 @@
|
|
|
508
508
|
"module": "fesm2022/edsis-angular.mjs",
|
|
509
509
|
"typings": "types/edsis-angular.d.ts",
|
|
510
510
|
"type": "module",
|
|
511
|
-
"gitHead": "
|
|
511
|
+
"gitHead": "062a9b9565741eef6ebce6bb09a723cc134907ca"
|
|
512
512
|
}
|
|
@@ -192,6 +192,96 @@
|
|
|
192
192
|
z-index: 20;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
/* Navigation[badge-indicator='dot'] — a collapsible target that shows BOTH its
|
|
196
|
+
* chevron and a visible count badge trades the chevron for a dot on the badge.
|
|
197
|
+
* Everything is keyed on what is rendered, so a badge that drops to zero (the
|
|
198
|
+
* badge element leaves the DOM) brings the chevron straight back, and compact
|
|
199
|
+
* targets, which render no chevron, are never matched.
|
|
200
|
+
*
|
|
201
|
+
* The dot is painted by the badge's slot, not the badge, so `currentColor` is
|
|
202
|
+
* the item's own text color in every state (rest, hover accent, active
|
|
203
|
+
* primary): text that already meets contrast on the item's surface. A color
|
|
204
|
+
* captured on the trigger could not reach a pseudo-element inside the badge,
|
|
205
|
+
* because currentColor inherits as a keyword and re-resolves against the
|
|
206
|
+
* badge's own text color.
|
|
207
|
+
*
|
|
208
|
+
* The ring is not painted either: the badge's mask cuts a hole the size of the
|
|
209
|
+
* dot plus the ring, so the item's real surface (rest, hover, active, layout
|
|
210
|
+
* patterns, light or dark) shows through it. --nav-badge-dot-ring-color paints
|
|
211
|
+
* it instead when a consumer wants an explicit color. */
|
|
212
|
+
[data-navigation-badge-indicator='dot']
|
|
213
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
214
|
+
> [data-navigation-chevron]
|
|
215
|
+
):has([data-navigation-badge])
|
|
216
|
+
> [data-navigation-chevron] {
|
|
217
|
+
/* The Icon carries a display utility, and @layer utilities outranks this
|
|
218
|
+
* layer however specific the selector is. */
|
|
219
|
+
display: none !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[data-navigation-badge-indicator='dot']
|
|
223
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
224
|
+
> [data-navigation-chevron]
|
|
225
|
+
)
|
|
226
|
+
[data-navigation-badge-slot] {
|
|
227
|
+
--nav-badge-dot-radius: calc(var(--nav-badge-dot-size) / 2);
|
|
228
|
+
--nav-badge-dot-center: calc(var(--nav-badge-dot-offset) + var(--nav-badge-dot-radius));
|
|
229
|
+
/* The slot takes over the badge's place in the row. `contents` is a
|
|
230
|
+
* utility, so only an important declaration in this earlier layer wins. */
|
|
231
|
+
display: inline-flex !important;
|
|
232
|
+
position: relative;
|
|
233
|
+
flex-shrink: 0;
|
|
234
|
+
align-self: center;
|
|
235
|
+
margin-inline-start: auto;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[data-navigation-badge-indicator='dot']
|
|
239
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
240
|
+
> [data-navigation-chevron]
|
|
241
|
+
)
|
|
242
|
+
[data-navigation-badge] {
|
|
243
|
+
--nav-badge-dot-hole: calc(var(--nav-badge-dot-radius) + var(--nav-badge-dot-ring));
|
|
244
|
+
--nav-badge-dot-mask: radial-gradient(
|
|
245
|
+
circle at calc(100% - var(--nav-badge-dot-center)) calc(100% - var(--nav-badge-dot-center)),
|
|
246
|
+
transparent var(--nav-badge-dot-hole),
|
|
247
|
+
#000 var(--nav-badge-dot-hole)
|
|
248
|
+
);
|
|
249
|
+
-webkit-mask-image: var(--nav-badge-dot-mask);
|
|
250
|
+
mask-image: var(--nav-badge-dot-mask);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Closed: a filled dot. */
|
|
254
|
+
[data-navigation-badge-indicator='dot']
|
|
255
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
256
|
+
> [data-navigation-chevron]
|
|
257
|
+
)
|
|
258
|
+
[data-navigation-badge-slot]::after {
|
|
259
|
+
content: '';
|
|
260
|
+
position: absolute;
|
|
261
|
+
right: var(--nav-badge-dot-offset);
|
|
262
|
+
bottom: var(--nav-badge-dot-offset);
|
|
263
|
+
box-sizing: border-box;
|
|
264
|
+
width: var(--nav-badge-dot-size);
|
|
265
|
+
height: var(--nav-badge-dot-size);
|
|
266
|
+
border-radius: 9999px;
|
|
267
|
+
border: var(--nav-badge-dot-stroke) solid var(--nav-badge-dot-color);
|
|
268
|
+
background-color: var(--nav-badge-dot-color);
|
|
269
|
+
box-shadow: 0 0 0 var(--nav-badge-dot-ring) var(--nav-badge-dot-ring-color);
|
|
270
|
+
pointer-events: none;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* Open: an outlined dot. The badge's hole already spans the dot, so the
|
|
274
|
+
* hollow shows the item surface rather than the badge fill behind it. */
|
|
275
|
+
[data-navigation-badge-indicator='dot']
|
|
276
|
+
:is(
|
|
277
|
+
.nav-trigger,
|
|
278
|
+
[data-navigation-flyout-tab],
|
|
279
|
+
[data-navigation-flyout-entry]
|
|
280
|
+
)[aria-expanded='true']:has(> [data-navigation-chevron])
|
|
281
|
+
[data-navigation-badge-slot]::after {
|
|
282
|
+
background-color: transparent;
|
|
283
|
+
}
|
|
284
|
+
|
|
195
285
|
/* Modal overlay backdrop shared by Dialog, Sheet, and Drawer. The element is
|
|
196
286
|
* rendered inside the CDK overlay container (outside component view
|
|
197
287
|
* encapsulation), so its styles must live in this global layer. The default
|
|
@@ -152,6 +152,19 @@
|
|
|
152
152
|
--nav-count-padding: var(--spacing-base);
|
|
153
153
|
--nav-count-offset: calc(var(--spacing-base) * -2);
|
|
154
154
|
--nav-count-font-size: calc(var(--font-size-base) * 0.625);
|
|
155
|
+
/* Navigation[badge-indicator='dot']: the open/closed dot pinned to the count
|
|
156
|
+
* badge's bottom-right corner. Size and offset ride --spacing-base so the dot
|
|
157
|
+
* keeps its place on the badge at every density; ring and stroke are hairlines.
|
|
158
|
+
* The color is the item's own text color in its current state (currentColor
|
|
159
|
+
* resolves where the dot is painted, inside the item). The ring is a
|
|
160
|
+
* transparent cutout, so it always shows the item's own surface; a ring
|
|
161
|
+
* color paints over that cutout when a consumer sets one. */
|
|
162
|
+
--nav-badge-dot-size: calc(var(--spacing-base) * 1.75); /* 7px @ normal */
|
|
163
|
+
--nav-badge-dot-offset: calc(var(--spacing-base) * -0.5); /* -2px @ normal */
|
|
164
|
+
--nav-badge-dot-color: currentColor;
|
|
165
|
+
--nav-badge-dot-ring: 1.5px;
|
|
166
|
+
--nav-badge-dot-ring-color: transparent;
|
|
167
|
+
--nav-badge-dot-stroke: 1.5px;
|
|
155
168
|
/* Item subtitles/descriptions — a quiet 12px tier under labels. */
|
|
156
169
|
--nav-subtitle-size: calc(var(--font-size-base) * 0.75);
|
|
157
170
|
--nav-subtitle-line-height: 1.35;
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export type CardSize = 'default' | 'sm';
|
|
5
5
|
export declare class CardComponent {
|
|
6
6
|
protected readonly componentScale: ComponentScaleDirective;
|
|
7
|
-
readonly radius: import("@angular/core").InputSignal<"
|
|
7
|
+
readonly radius: import("@angular/core").InputSignal<"inherit" | "none" | "xs" | "sm" | "md" | "xl" | "full">;
|
|
8
8
|
readonly density: import("@angular/core").InputSignal<"inherit" | "compact" | "normal" | "relaxed" | "spacious">;
|
|
9
9
|
readonly size: import("@angular/core").InputSignal<CardSize>;
|
|
10
10
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
@@ -165,7 +165,7 @@ export declare class CommandItemComponent {
|
|
|
165
165
|
* on the input instead, which is the listbox pattern.
|
|
166
166
|
*/
|
|
167
167
|
readonly selectedState: import("@angular/core").InputSignal<boolean>;
|
|
168
|
-
readonly selected: import("@angular/core").OutputEmitterRef<
|
|
168
|
+
readonly selected: import("@angular/core").OutputEmitterRef<MouseEvent | KeyboardEvent>;
|
|
169
169
|
/** The highlighted row. Drives styling and `aria-activedescendant`, not `aria-selected`. */
|
|
170
170
|
readonly active: import("@angular/core").WritableSignal<boolean>;
|
|
171
171
|
readonly visible: import("@angular/core").Signal<boolean>;
|
|
@@ -8,6 +8,12 @@ export type NavigationType = NavigationVerticalType | NavigationHorizontalType;
|
|
|
8
8
|
export type NavigationCollapseTree = 'stairs' | 'straight';
|
|
9
9
|
/** Jangkauan konektor parent ke child, tanpa mengubah bentuk collapse tree. */
|
|
10
10
|
export type NavigationRail = 'default' | 'rail-active';
|
|
11
|
+
/**
|
|
12
|
+
* Penanda buka/tutup pada item collapsible yang sedang menampilkan count badge.
|
|
13
|
+
* `chevron` (default) mempertahankan chevron; `dot` menggantinya dengan titik kecil
|
|
14
|
+
* di sudut badge, dan chevron kembali begitu badge hilang.
|
|
15
|
+
*/
|
|
16
|
+
export type NavigationBadgeIndicator = 'chevron' | 'dot';
|
|
11
17
|
export type NavigationAppearance = 'flat' | 'border-rail';
|
|
12
18
|
export type NavigationVerticalPosition = 'left' | 'right';
|
|
13
19
|
export type NavigationHorizontalPosition = 'top' | 'bottom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationIconDirective, NavigationIconDirective as NavigationIconDirective$1 } from "@edsis/angular/navigation/icon";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Signal, TemplateRef } from "@angular/core";
|
|
4
|
-
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationActionHandler, NavigationAppearance, NavigationAppearance as NavigationAppearance$1, NavigationBadgeAriaLabel, NavigationBadgeContext, NavigationBadgeContext as NavigationBadgeContext$1, NavigationBadgeCount, NavigationBadgeSource, NavigationBadgeSource as NavigationBadgeSource$1, NavigationBadgeValueSource, NavigationCollapseTree, NavigationCollapseTree as NavigationCollapseTree$1, NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationDockbarRouteConfig, NavigationDockbarRouteContext, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationFlyoutIconPosition, NavigationFlyoutIconPosition as NavigationFlyoutIconPosition$1, NavigationFlyoutTriggerVariant, NavigationFlyoutTriggerVariant as NavigationFlyoutTriggerVariant$1, NavigationHorizontalPosition, NavigationHorizontalPosition as NavigationHorizontalPosition$1, NavigationHorizontalType, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationItemBadge, NavigationItemClasses, NavigationItemType, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationNormalizedItemType, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRail, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationResolvedRouteContext as NavigationResolvedRouteContext$1, NavigationRouteData, NavigationSelection, NavigationSelection as NavigationSelection$1, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1, NavigationVerticalPosition, NavigationVerticalPosition as NavigationVerticalPosition$1, NavigationVerticalType, NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems } from "@edsis/angular/navigation/types";
|
|
4
|
+
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationActionHandler, NavigationAppearance, NavigationAppearance as NavigationAppearance$1, NavigationBadgeAriaLabel, NavigationBadgeContext, NavigationBadgeContext as NavigationBadgeContext$1, NavigationBadgeCount, NavigationBadgeIndicator, NavigationBadgeIndicator as NavigationBadgeIndicator$1, NavigationBadgeSource, NavigationBadgeSource as NavigationBadgeSource$1, NavigationBadgeValueSource, NavigationCollapseTree, NavigationCollapseTree as NavigationCollapseTree$1, NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationDockbarRouteConfig, NavigationDockbarRouteContext, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationFlyoutIconPosition, NavigationFlyoutIconPosition as NavigationFlyoutIconPosition$1, NavigationFlyoutTriggerVariant, NavigationFlyoutTriggerVariant as NavigationFlyoutTriggerVariant$1, NavigationHorizontalPosition, NavigationHorizontalPosition as NavigationHorizontalPosition$1, NavigationHorizontalType, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationItemBadge, NavigationItemClasses, NavigationItemType, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationNormalizedItemType, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRail, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationResolvedRouteContext as NavigationResolvedRouteContext$1, NavigationRouteData, NavigationSelection, NavigationSelection as NavigationSelection$1, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1, NavigationVerticalPosition, NavigationVerticalPosition as NavigationVerticalPosition$1, NavigationVerticalType, NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems } from "@edsis/angular/navigation/types";
|
|
5
5
|
export * from "@edsis/angular/navigation/core";
|
|
6
6
|
/**
|
|
7
7
|
* Konfigurasi yang didaftarkan komponen type (`<NavigationSidebar>`,
|
|
@@ -86,6 +86,11 @@ export declare class NavigationContainerComponent implements NavigationShellCont
|
|
|
86
86
|
readonly compact: import("@angular/core").InputSignal<boolean>;
|
|
87
87
|
readonly collapseTree: import("@angular/core").InputSignal<NavigationCollapseTree$1>;
|
|
88
88
|
readonly rail: import("@angular/core").InputSignal<NavigationRail>;
|
|
89
|
+
/**
|
|
90
|
+
* `dot` mengganti chevron item collapsible yang count badge-nya tampil dengan titik
|
|
91
|
+
* di sudut badge (penuh saat tertutup, kosong saat terbuka). Default `chevron`.
|
|
92
|
+
*/
|
|
93
|
+
readonly badgeIndicator: import("@angular/core").InputSignal<NavigationBadgeIndicator$1>;
|
|
89
94
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
90
95
|
readonly itemClass: import("@angular/core").InputSignal<string>;
|
|
91
96
|
/** Kelas Tailwind untuk container `<li>` group horizontal (flyout tab / navbar group). */
|
|
@@ -223,6 +228,11 @@ export declare class NavigationContainerComponent implements NavigationShellCont
|
|
|
223
228
|
"required": false;
|
|
224
229
|
"isSignal": true;
|
|
225
230
|
};
|
|
231
|
+
"badgeIndicator": {
|
|
232
|
+
"alias": "badge-indicator";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
226
236
|
"class": {
|
|
227
237
|
"alias": "class";
|
|
228
238
|
"required": false;
|
|
@@ -866,4 +876,4 @@ export declare class NavigationHeaderTitleComponent {
|
|
|
866
876
|
* memakai dua huruf pertamanya.
|
|
867
877
|
*/
|
|
868
878
|
export declare function deriveNavigationInitials(name: string): string;
|
|
869
|
-
export { NAVIGATION_DOCKBAR_FALLBACK_ICON, type NavigationActionHandler, type NavigationAppearance, type NavigationBadgeAriaLabel, type NavigationBadgeContext, type NavigationBadgeCount, type NavigationBadgeSource, type NavigationBadgeValueSource, type NavigationCollapseTree, type NavigationDockbarMode, type NavigationDockbarRouteConfig, type NavigationDockbarRouteContext, type NavigationFlyoutIconPosition, type NavigationFlyoutTriggerVariant, type NavigationHorizontalPosition, type NavigationHorizontalType, type NavigationIconContext, NavigationIconDirective, type NavigationItem, type NavigationItemBadge, type NavigationItemClasses, type NavigationItemType, type NavigationLink, type NavigationNormalizedItem, type NavigationNormalizedItemType, type NavigationOrientation, type NavigationPosition, type NavigationRegisterInput, type NavigationResolvedRouteContext, type NavigationRouteData, type NavigationSelection, type NavigationState, type NavigationType, type NavigationVerticalPosition, type NavigationVerticalType, type NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };
|
|
879
|
+
export { NAVIGATION_DOCKBAR_FALLBACK_ICON, type NavigationActionHandler, type NavigationAppearance, type NavigationBadgeAriaLabel, type NavigationBadgeContext, type NavigationBadgeCount, type NavigationBadgeIndicator, type NavigationBadgeSource, type NavigationBadgeValueSource, type NavigationCollapseTree, type NavigationDockbarMode, type NavigationDockbarRouteConfig, type NavigationDockbarRouteContext, type NavigationFlyoutIconPosition, type NavigationFlyoutTriggerVariant, type NavigationHorizontalPosition, type NavigationHorizontalType, type NavigationIconContext, NavigationIconDirective, type NavigationItem, type NavigationItemBadge, type NavigationItemClasses, type NavigationItemType, type NavigationLink, type NavigationNormalizedItem, type NavigationNormalizedItemType, type NavigationOrientation, type NavigationPosition, type NavigationRegisterInput, type NavigationResolvedRouteContext, type NavigationRouteData, type NavigationSelection, type NavigationState, type NavigationType, type NavigationVerticalPosition, type NavigationVerticalType, type NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { ElementRef, InjectionToken, Provider } from "@angular/core";
|
|
3
3
|
import { ThemeSettingsNavigationMode, ThemeSettingsNavigationType } from "@edsis/angular/theme/component/settings";
|
|
4
4
|
import { NavigationDockbarRouteContext } from "@edsis/angular/navigation";
|
|
5
|
-
import { NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationItem, NavigationRail, NavigationType } from "@edsis/angular/navigation/types";
|
|
5
|
+
import { NavigationBadgeIndicator, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationItem, NavigationRail, NavigationType } from "@edsis/angular/navigation/types";
|
|
6
6
|
/**
|
|
7
7
|
* The identity shape the layout wrappers consume. The library defines the structure
|
|
8
8
|
* only; the concrete brand and user values come from the consumer as inputs.
|
|
@@ -521,6 +521,11 @@ export declare class LayoutWrapperDefault {
|
|
|
521
521
|
readonly navTypeMode: import("@angular/core").InputSignal<ThemeSettingsNavigationMode>;
|
|
522
522
|
/** Extent of parent to child rails in sidebar and dockbar menus. */
|
|
523
523
|
readonly navRail: import("@angular/core").InputSignal<NavigationRail>;
|
|
524
|
+
/**
|
|
525
|
+
* Forwarded to the desktop and mobile `<Navigation>` as `badge-indicator`. `dot` swaps a
|
|
526
|
+
* collapsible's chevron for a dot on its visible count badge; default `chevron`.
|
|
527
|
+
*/
|
|
528
|
+
readonly navBadgeIndicator: import("@angular/core").InputSignal<NavigationBadgeIndicator>;
|
|
524
529
|
/** Opt-in route-aware dockbar state; ignored by other navigation types. */
|
|
525
530
|
readonly dockbarRouteContext: import("@angular/core").InputSignal<NavigationDockbarRouteContext$1 | null>;
|
|
526
531
|
/** Registry badge untuk semua jenis navigasi desktop dan sidebar mobile. */
|
|
@@ -570,7 +575,7 @@ export declare class LayoutWrapperDefault {
|
|
|
570
575
|
/** Minidock only accepts flat data, so grouped data is flattened before it reaches the rail. */
|
|
571
576
|
private readonly minidockData;
|
|
572
577
|
/** Data id of the desktop `<Navigation>`; its state id stays `main` for persistence. */
|
|
573
|
-
protected readonly desktopDataId: import("@angular/core").Signal<"main" | "main
|
|
578
|
+
protected readonly desktopDataId: import("@angular/core").Signal<"main-minidock" | "main">;
|
|
574
579
|
/** Data of the desktop `<Navigation>`: flattened for minidock, unfiltered for every other type. */
|
|
575
580
|
protected readonly desktopData: import("@angular/core").Signal<readonly NavigationItem[]>;
|
|
576
581
|
/** Lebar host `<Navigation>`: penuh-tinggi (vertical) atau penuh-lebar (horizontal). */
|
|
@@ -617,6 +622,11 @@ export declare class LayoutWrapperDefault {
|
|
|
617
622
|
"required": false;
|
|
618
623
|
"isSignal": true;
|
|
619
624
|
};
|
|
625
|
+
"navBadgeIndicator": {
|
|
626
|
+
"alias": "nav-badge-indicator";
|
|
627
|
+
"required": false;
|
|
628
|
+
"isSignal": true;
|
|
629
|
+
};
|
|
620
630
|
"dockbarRouteContext": {
|
|
621
631
|
"alias": "dockbar-route-context";
|
|
622
632
|
"required": false;
|