You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
15 KiB
8 lines
15 KiB
8 months ago
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-overlay.mjs"],
|
||
|
"sourcesContent": ["import { __decorate } from 'tslib';\nimport * as i1 from '@angular/cdk/overlay';\nimport { ConnectionPositionPair, CdkOverlayOrigin } from '@angular/cdk/overlay';\nimport * as i0 from '@angular/core';\nimport { ElementRef, Directive, Input, NgModule } from '@angular/core';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i2 from 'ng-zorro-antd/core/services';\nimport { NzDestroyService } from 'ng-zorro-antd/core/services';\nimport { InputBoolean } from 'ng-zorro-antd/core/util';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst POSITION_MAP = {\n top: new ConnectionPositionPair({\n originX: 'center',\n originY: 'top'\n }, {\n overlayX: 'center',\n overlayY: 'bottom'\n }),\n topCenter: new ConnectionPositionPair({\n originX: 'center',\n originY: 'top'\n }, {\n overlayX: 'center',\n overlayY: 'bottom'\n }),\n topLeft: new ConnectionPositionPair({\n originX: 'start',\n originY: 'top'\n }, {\n overlayX: 'start',\n overlayY: 'bottom'\n }),\n topRight: new ConnectionPositionPair({\n originX: 'end',\n originY: 'top'\n }, {\n overlayX: 'end',\n overlayY: 'bottom'\n }),\n right: new ConnectionPositionPair({\n originX: 'end',\n originY: 'center'\n }, {\n overlayX: 'start',\n overlayY: 'center'\n }),\n rightTop: new ConnectionPositionPair({\n originX: 'end',\n originY: 'top'\n }, {\n overlayX: 'start',\n overlayY: 'top'\n }),\n rightBottom: new ConnectionPositionPair({\n originX: 'end',\n originY: 'bottom'\n }, {\n overlayX: 'start',\n overlayY: 'bottom'\n }),\n bottom: new ConnectionPositionPair({\n originX: 'center',\n originY: 'bottom'\n }, {\n overlayX: 'center',\n overlayY: 'top'\n }),\n bottomCenter: new ConnectionPositionPair({\n originX: 'center',\n originY: 'bottom'\n }, {\n overlayX: 'center',\n overlayY: 'top'\n }),\n bottomLeft: new ConnectionPositionPair({\n originX: 'start',\n originY: 'bottom'\n }, {\n overlayX: 'start',\n overlayY: 'top'\n }),\n bottomRight: new ConnectionPositionPair({\n originX: 'end',\n originY: 'bottom'\n }, {\n overlayX: 'end',\n overlayY: 'top'\n }),\n left: new ConnectionPositionPair({\n originX: 'start',\n originY: 'center'\n }, {\n overlayX: 'end',\n overlayY: 'center'\n }),\n leftTop: new ConnectionPositionPair({\n originX: 'start',\n originY: 'top'\n }, {\n overlayX: 'end',\n overlayY: 'top'\n }),\n leftBottom: new ConnectionPositionPair({\n originX: 'start',\n originY: 'bottom'\n }, {\n overlayX: 'end',\n overlayY: 'bottom'\n })\n};\nconst DEFAULT_TOOLTIP_POSITIONS = [POSITION_MAP.top, POSITION_MAP.right, POSITION_MAP.bottom, POSITION_MAP.left];\nconst DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topLeft, POSITION_MAP.topRight, POSITION_MAP.topCenter, POSITION_MAP.bottomCenter];\nconst DEFAULT_MENTION_TOP_POSITIONS = [new ConnectionPositionPair({\n originX: 'start',\n originY: 'bottom'\n}, {\n overlayX: 'start',\n overlayY: 'bottom'\n}), new ConnectionPositionPair({\n originX: 'start',\n originY: 'bottom'\n}, {\n overlayX: 'end',\n overlayY: 'bottom'\n})];\nconst DEFAULT_MENTION_BOTTOM_POSITIONS = [POSITION_MAP.bottomLeft, new ConnectionPositionPair({\n originX: 'start',\n originY: 'bottom'\n}, {\n overlayX: 'end',\n overlayY: 'top'\n})];\nfunction getPlacementName(position) {\n for (const placement in POSITION_MAP) {\n if (position.connectionPair.originX === POSITION_MAP[placement].originX && position.connectionPair.originY === POSITION_MAP[placement].originY && position.connectionPair.overlayX === POSITION_MAP[placement].overlayX && position.connectionPair.overlayY === POSITION_MAP[placement].overlayY) {\n return placement;\n }\n }\n return undefined;\n}\nconst DATE_PICKER_POSITION_MAP = {\n bottomLeft: new ConnectionPositionPair({\n
|
||
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAM,eAAe;AAAA,EACnB,KAAK,IAAI,uBAAuB;AAAA,IAC9B,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,WAAW,IAAI,uBAAuB;AAAA,IACpC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,SAAS,IAAI,uBAAuB;AAAA,IAClC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,UAAU,IAAI,uBAAuB;AAAA,IACnC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,OAAO,IAAI,uBAAuB;AAAA,IAChC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,UAAU,IAAI,uBAAuB;AAAA,IACnC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,aAAa,IAAI,uBAAuB;AAAA,IACtC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC;AAAA,EACD,QAAQ,IAAI,uBAAuB;AAAA,IACjC,SAAS;AAAA,IACT,SAAS;AAAA,EACX,GAAG;AAAA,IACD,UAAU;AAAA,I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